:root {
  --ink: #f6f3eb;
  --muted: rgba(246, 243, 235, 0.72);
  --dim: rgba(246, 243, 235, 0.46);
  --line: rgba(246, 243, 235, 0.16);
  --panel: rgba(12, 14, 18, 0.66);
  --aqua: #4de7ff;
  --acid: #d8ff5d;
  --ember: #ff6f4d;
  --rose: #ff4fd8;
  --black: #050609;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--black);
  overflow-x: hidden;
}

.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 33%, rgba(77, 231, 255, 0.25), transparent 22%),
    radial-gradient(circle at 21% 78%, rgba(255, 79, 216, 0.19), transparent 27%),
    radial-gradient(circle at 50% 8%, rgba(216, 255, 93, 0.14), transparent 24%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, 72px 72px, 72px 72px;
}

a {
  color: inherit;
  text-decoration: none;
}

#webgl-stage {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  pointer-events: none;
  background: transparent;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 10px 10px 12px;
  background: rgba(5, 6, 9, 0.58);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.site-nav,
.hero-actions,
.chapter-points,
.bot-preview {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #050609;
  background: conic-gradient(from 140deg, var(--acid), var(--aqua), var(--rose), var(--ember), var(--acid));
  border-radius: 50%;
}

.site-nav {
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.scroll-story {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.scroll-chapter {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding: 118px max(22px, calc((100vw - 1180px) / 2)) 76px;
}

.hero-chapter {
  min-height: 120vh;
}

.chapter-content {
  width: min(690px, 100%);
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px);
}

.hero-content {
  width: min(600px, 100%);
  background: linear-gradient(135deg, rgba(5, 6, 9, 0.18), rgba(5, 6, 9, 0.58));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.wide-content {
  width: min(980px, 100%);
}

.contact-content {
  margin-left: auto;
}

.chapter-kicker {
  margin: 0 0 18px;
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5vw, 5.45rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.chapter-content p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-weight: 900;
  gap: 14px;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  width: min(100%, 530px);
  align-items: center;
  margin-top: 26px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(77, 231, 255, 0.08);
  border: 1px solid rgba(77, 231, 255, 0.32);
  border-radius: 8px;
  transition: transform 180ms ease, background 180ms ease;
}

.project-link:hover {
  background: rgba(77, 231, 255, 0.16);
  transform: translateY(-2px);
}

.project-link span,
.project-link em {
  color: var(--aqua);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-action {
  color: #050609;
  background: linear-gradient(135deg, var(--acid), var(--aqua));
  box-shadow: 0 18px 60px rgba(77, 231, 255, 0.24);
}

.primary-action:hover {
  box-shadow: 0 22px 75px rgba(77, 231, 255, 0.38);
  transform: translateY(-2px);
}

.secondary-action {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
}

.scene-label {
  position: absolute;
  right: max(22px, calc((100vw - 1180px) / 2));
  bottom: 70px;
  width: min(260px, calc(100% - 44px));
  padding: 18px;
  background: rgba(5, 6, 9, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(16px);
}

.scene-label span,
.process-list span {
  display: block;
  color: var(--dim);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scene-label strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

.chapter-points,
.bot-preview {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chapter-points span,
.bot-preview span {
  padding: 11px 13px;
  color: var(--ink);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.bot-preview span:nth-child(1) {
  color: #050609;
  background: var(--aqua);
}

.bot-preview span:nth-child(2) {
  background: rgba(255, 111, 77, 0.18);
}

.bot-preview span:nth-child(3) {
  color: #050609;
  background: var(--acid);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.process-list article {
  min-height: 230px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.process-list h3 {
  margin-top: 42px;
}

.process-list p {
  font-size: 0.98rem;
}

.contact-chapter {
  min-height: 115vh;
}

/* Cinematic portfolio layer — keeps the existing sections and WebGL stage intact. */
.hero-chapter {
  display: block;
  min-height: 100svh;
  padding: 0 max(22px, calc((100vw - 1320px) / 2));
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.hero-chapter::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(5, 6, 9, 0.9) 0%, rgba(5, 6, 9, 0.24) 56%, rgba(5, 6, 9, 0.7) 100%);
}

.hero-portrait-wrap {
  position: absolute;
  inset: 0 max(-22px, calc((1320px - 100vw) / 2)) 0 auto;
  z-index: 0;
  width: min(64vw, 890px);
  overflow: hidden;
  pointer-events: none;
}

.hero-portrait-reveal {
  width: 100%;
  height: 100%;
  background: #6f6b69;
  clip-path: inset(0 0 0 100%);
  animation: portrait-reveal 1.4s cubic-bezier(0.76, 0, 0.24, 1) 100ms forwards;
}

.hero-globe {
  position: absolute;
  top: 23%;
  right: 47%;
  z-index: 0;
  width: clamp(150px, 18vw, 300px);
  aspect-ratio: 1;
  overflow: hidden;
  opacity: 0.8;
  background:
    radial-gradient(circle at 35% 31%, rgba(77, 231, 255, 0.86), rgba(77, 231, 255, 0.12) 37%, transparent 67%),
    repeating-linear-gradient(18deg, transparent 0 14px, rgba(246, 243, 235, 0.27) 15px 16px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(246, 243, 235, 0.18) 22px 23px),
    #071319;
  border: 1px solid rgba(246, 243, 235, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 75px rgba(77, 231, 255, 0.26), inset -25px -20px 35px rgba(0, 0, 0, 0.72);
  animation: globe-float 6s ease-in-out infinite;
}

.hero-globe::before,
.hero-globe::after,
.hero-globe span,
.hero-globe i,
.hero-globe b { position: absolute; display: block; content: ""; border: 1px solid rgba(216, 255, 93, 0.58); border-radius: 50%; }
.hero-globe::before { inset: 13% 3%; }
.hero-globe::after { inset: 29% 2%; transform: rotate(90deg); }
.hero-globe span { top: 4%; bottom: 4%; left: 27%; right: 27%; }
.hero-globe i { top: 4%; bottom: 4%; left: 43%; right: 43%; }
.hero-globe b { top: 43%; right: 4%; bottom: 43%; left: 4%; }

.about-orbit-card {
  position: absolute;
  top: 19%;
  right: max(28px, calc((100vw - 1280px) / 2));
  z-index: 10;
  width: clamp(235px, 27vw, 420px);
  aspect-ratio: 1.36;
  overflow: hidden;
  margin: 0;
  color: #10151e;
  background: #eeece6;
  border: 1px solid rgba(216, 255, 93, 0.78);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(-5deg);
  transform-origin: 50% 120%;
  animation: about-card-orbit 9s ease-in-out infinite;
  will-change: transform;
}

.about-card-chrome {
  display: flex;
  height: 13%;
  align-items: center;
  gap: 4%;
  padding: 0 5%;
  background: #10151e;
}

.about-card-chrome i {
  display: block;
  width: 4.5%;
  aspect-ratio: 1;
  background: var(--aqua);
  border-radius: 50%;
}

.about-card-chrome span { width: 65%; height: 30%; margin-left: 4%; background: #c4c6c9; }

.about-card-copy {
  position: absolute;
  top: 21%;
  left: 7%;
  z-index: 1;
  width: 43%;
}

.about-card-copy p { margin: 0 0 8%; font-size: clamp(0.8rem, 1.6vw, 1.48rem); font-weight: 900; letter-spacing: -0.06em; }
.about-card-copy span { display: block; color: #45505c; font-size: clamp(0.45rem, 0.86vw, 0.78rem); font-weight: 800; line-height: 1.35; text-transform: uppercase; }

.about-orbit-card img {
  position: absolute;
  top: 13%;
  right: 0;
  width: 52%;
  height: 87%;
  object-fit: cover;
  object-position: 50% 24%;
  filter: saturate(0.82) contrast(1.04);
}

.about-orbit-card small {
  position: absolute;
  bottom: 6%;
  left: 7%;
  z-index: 1;
  font-size: clamp(0.4rem, 0.72vw, 0.65rem);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 25%;
  opacity: 0;
  filter: saturate(0.68) contrast(1.03) brightness(0.72);
  transform: scale(1.11);
  animation: portrait-fade 1.2s ease 350ms forwards;
  will-change: transform;
}

.hero-topline,
.hero-bottom {
  position: absolute;
  right: max(22px, calc((100vw - 1320px) / 2));
  left: max(22px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(246, 243, 235, 0.7);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-topline,
.hero-title-lockup,
.hero-bottom { z-index: 12; }

.hero-topline { top: 112px; animation: fade-up 700ms ease 500ms both; }
.hero-bottom { bottom: 34px; animation: fade-up 700ms ease 720ms both; }

.hero-title-lockup {
  position: absolute;
  right: max(22px, calc((100vw - 1320px) / 2));
  bottom: clamp(90px, 13vh, 150px);
  left: max(22px, calc((100vw - 1320px) / 2));
}

.hero-title-lockup h1 {
  position: relative;
  z-index: 1;
  width: min-content;
  margin: 0 0 12px -0.08em;
  color: #f6f3eb;
  font-size: clamp(7rem, 19.5vw, 18rem);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.12em;
  animation: hero-name 1s cubic-bezier(0.16, 1, 0.3, 1) 250ms both;
}

.hero-dot { color: var(--acid); }
.hero-kicker { margin: 0 0 clamp(18px, 3vw, 42px); animation: fade-up 700ms ease 380ms both; }

.hero-intro {
  position: absolute;
  right: 1%;
  bottom: 5px;
  width: min(310px, 25vw);
  margin: 0;
  color: rgba(246, 243, 235, 0.84);
  font-size: clamp(0.88rem, 1.05vw, 1.04rem);
  line-height: 1.45;
  animation: fade-up 700ms ease 550ms both;
}

.hero-scroll-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.hero-scroll-link b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #090b0d;
  font-size: 1.2rem;
  background: var(--acid);
  border-radius: 50%;
}

.hero-side-note { max-width: 150px; text-align: right; line-height: 1.45; }

.reveal-item {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1), border-color 250ms ease;
}

.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

.case-card::after {
  width: 70px;
  height: 70px;
  content: "VIEW";
  color: #080a0c;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  background: var(--acid);
  transform: translate(8px, -8px) scale(0.8);
}

.case-card:hover::after { transform: translate(0, 0) scale(1); }

.contact-chapter {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 140px;
  padding-bottom: 30px;
}

.footer-rule { width: 100%; border-top: 1px solid var(--line); }

.contact-content {
  position: relative;
  width: 100%;
  padding: clamp(26px, 4vw, 60px) 0;
}

.contact-content h2 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(4rem, 9.4vw, 9rem);
  letter-spacing: -0.09em;
}

.contact-content h2 em { color: var(--acid); font-family: Georgia, serif; font-weight: 400; }

.footer-cta {
  position: absolute;
  right: 8%;
  bottom: 9%;
  display: grid;
  width: clamp(128px, 15vw, 190px);
  aspect-ratio: 1;
  align-content: center;
  justify-items: center;
  color: #07090b;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  background: var(--acid);
  border-radius: 50%;
  transition: background 200ms ease, transform 200ms ease;
}

.footer-cta b { margin-top: 12px; font-size: 1.45rem; }
.footer-cta:hover { background: var(--aqua); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  width: 100%;
  padding-top: 20px;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

.site-footer a { color: var(--ink); }

@keyframes portrait-reveal { to { clip-path: inset(0); } }
@keyframes portrait-fade { to { opacity: 1; transform: scale(1); } }
@keyframes hero-name { from { opacity: 0; transform: translateY(115%); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes globe-float { 50% { transform: translateY(-16px) rotate(8deg); } }
@keyframes about-card-orbit { 50% { transform: translate(-18px, 14px) rotate(4deg); } }

.projects-chapter {
  display: block;
  min-height: auto;
  padding-top: 148px;
  padding-bottom: 128px;
}

.projects-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  gap: 24px 60px;
  width: min(100%, 900px);
  margin-bottom: 48px;
}

.projects-intro .chapter-kicker,
.projects-intro h2 {
  grid-column: 1;
}

.projects-intro h2 {
  margin: 0;
  font-size: clamp(3rem, 6.3vw, 7rem);
}

.projects-intro p:not(.chapter-kicker) {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.case-card {
  position: relative;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 25px;
  color: var(--ink);
  isolation: isolate;
  background: #16191f;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 250ms ease;
}

.case-card:hover {
  border-color: rgba(255, 255, 255, 0.54);
  transform: translateY(-7px);
}

.case-card img,
.case-shade,
.bot-art,
.crm-art,
.nordhaus-art {
  position: absolute;
  inset: 0;
}

.case-card img {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.85;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-card:hover img {
  transform: scale(1.055);
}

.case-shade {
  z-index: -2;
  background: linear-gradient(180deg, rgba(3, 5, 10, 0.08) 18%, rgba(3, 5, 10, 0.94) 95%);
}

.case-card::after {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  content: "↗";
  color: #06080d;
  font-weight: 900;
  background: var(--acid);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.case-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.case-tesla { grid-column: span 7; min-height: 510px; }
.case-stroy { grid-column: span 5; min-height: 510px; }
.case-law { grid-column: span 5; }
.case-bot { grid-column: span 3; }
.case-crm { grid-column: span 4; }
.case-nordhaus { grid-column: span 7; }

.case-number,
.case-link {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case-number { margin-bottom: auto; color: rgba(255,255,255,0.76); }
.case-title { position: relative; z-index: 1; margin-top: 24px; font-size: clamp(1.5rem, 2.4vw, 2.5rem); font-weight: 900; letter-spacing: -0.06em; }
.case-description { position: relative; z-index: 1; max-width: 300px; margin-top: 7px; color: rgba(255,255,255,0.75); font-size: 0.9rem; line-height: 1.35; }
.case-link { margin-top: 20px; color: var(--acid); }

.case-bot { background: radial-gradient(circle at 100% 0%, #3fa4ca 0, transparent 42%), linear-gradient(145deg, #0e4260, #071019 68%); }
.case-crm { background: linear-gradient(140deg, #e8f2eb 0%, #b7e5cf 55%, #83b8a5 100%); color: #092b25; }
.case-nordhaus { background: linear-gradient(135deg, #d2d1c9, #777d77); color: #111613; }
.case-crm .case-number, .case-nordhaus .case-number { color: rgba(10, 29, 24, 0.62); }
.case-crm .case-description, .case-nordhaus .case-description { color: rgba(10, 29, 24, 0.74); }
.case-crm .case-link { color: #0d6651; }
.case-nordhaus .case-link { color: #304235; }

.bot-art i { position: absolute; display: block; width: 118px; height: 68px; background: rgba(255,255,255,0.88); border-radius: 18px 18px 18px 4px; transform: rotate(-8deg); box-shadow: 0 14px 30px rgba(0,0,0,0.16); }
.bot-art i:nth-child(1) { top: 64px; left: 18px; }
.bot-art i:nth-child(2) { top: 143px; right: 12px; width: 92px; background: #b5eeff; transform: rotate(7deg); }
.bot-art i:nth-child(3) { top: 218px; left: 38px; width: 78px; height: 46px; background: rgba(255,255,255,0.46); transform: rotate(-3deg); }
.bot-art b { position: absolute; top: 155px; left: 53px; color: #efffe8; font-size: 4rem; filter: drop-shadow(0 0 12px rgba(255,255,255,0.7)); }

.crm-art { z-index: -1; padding: 54px 25px; transform: rotate(-7deg) scale(1.2); }
.crm-art i { display: block; height: 22px; margin-bottom: 15px; background: rgba(7, 73, 57, 0.14); border-radius: 5px; }
.crm-art i:nth-child(1) { width: 78%; background: rgba(7, 73, 57, 0.7); }
.crm-art i:nth-child(2) { width: 96%; }
.crm-art i:nth-child(3) { width: 64%; }
.crm-art i:nth-child(4) { width: 83%; }

.nordhaus-art { z-index: -1; background: linear-gradient(155deg, transparent 0 42%, rgba(255,255,255,0.42) 42.3% 43%, transparent 43.3%), linear-gradient(25deg, transparent 0 52%, rgba(255,255,255,0.42) 52.3% 53%, transparent 53.3%); }
.nordhaus-art i { position: absolute; bottom: 34px; width: 29%; background: rgba(238,239,229,0.56); box-shadow: inset 0 -32px 0 rgba(35,43,36,0.16); }
.nordhaus-art i:nth-child(1) { left: 8%; height: 164px; }
.nordhaus-art i:nth-child(2) { left: 37%; height: 235px; }
.nordhaus-art i:nth-child(3) { left: 66%; height: 128px; }

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .scroll-chapter {
    padding-top: 152px;
  }

  .chapter-content {
    padding: 22px;
  }

  .scene-label {
    position: static;
    margin-top: 24px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .projects-intro { grid-template-columns: 1fr; gap: 18px; }
  .projects-intro .chapter-kicker, .projects-intro h2, .projects-intro p:not(.chapter-kicker) { grid-column: auto; grid-row: auto; }
  .projects-intro p:not(.chapter-kicker) { margin: 0; }
  .case-card { grid-column: span 6; min-height: 380px; }
  .case-tesla, .case-stroy { min-height: 440px; }

  .hero-portrait-wrap { width: 82vw; opacity: 0.72; }
  .hero-globe { top: 17%; right: 61%; }
  .about-orbit-card { top: 23%; right: 3%; width: min(42vw, 330px); }
  .hero-title-lockup { bottom: 115px; }
  .hero-title-lockup h1 { font-size: clamp(6.1rem, 23vw, 11rem); }
  .hero-intro { right: 0; width: min(280px, 49vw); }
  .footer-cta { right: 2%; bottom: 2%; }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand {
    font-size: 0.9rem;
  }

  .site-nav a {
    padding: 8px 7px;
    font-size: 0.88rem;
  }

  h1 {
    font-size: 3.25rem;
  }

  .chapter-content p {
    font-size: 1rem;
  }

  .projects-chapter { padding-top: 126px; padding-bottom: 86px; }
  .projects-intro { margin-bottom: 28px; }
  .case-card, .case-tesla, .case-stroy { grid-column: span 12; min-height: 360px; }
  .case-title { font-size: 2rem; }

  .hero-chapter { min-height: 760px; }
  .hero-topline { top: 102px; font-size: 0.58rem; }
  .hero-topline span:last-child { display: none; }
  .hero-portrait-wrap { width: 100%; opacity: 0.5; }
  .hero-globe { top: 21%; right: 61%; width: 40vw; opacity: 0.58; }
  .about-orbit-card { top: 18%; right: 6%; width: min(58vw, 285px); }
  .hero-chapter::before { background: linear-gradient(0deg, rgba(5, 6, 9, 0.97) 0%, rgba(5, 6, 9, 0.2) 90%); }
  .hero-title-lockup { bottom: 128px; }
  .hero-title-lockup h1 { margin-left: -0.07em; font-size: clamp(5.5rem, 25vw, 8.8rem); }
  .hero-kicker { font-size: 0.63rem; }
  .hero-intro { position: static; width: min(305px, 84vw); margin-top: 28px; font-size: 0.94rem; }
  .hero-bottom { bottom: 23px; font-size: 0.6rem; }
  .hero-side-note { display: none; }
  .hero-scroll-link b { width: 42px; height: 42px; }
  .contact-content h2 { font-size: clamp(3.5rem, 16vw, 5.6rem); }
  .footer-cta { position: static; width: 128px; margin-top: 36px; }
  .site-footer { grid-template-columns: 1fr auto; gap: 16px; }
  .site-footer a { grid-row: 2; }
  .site-footer span:last-child { grid-column: 2; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .hero-portrait-reveal { clip-path: inset(0); }
  .hero-portrait, .reveal-item { opacity: 1; transform: none; }
}
