/* ============ Sysverge 5.0 mockup: "A different dimension" ============
   Identity carried from 4.0: #04050d / #1d3bff, Space Grotesk + JetBrains Mono,
   glass-pill nav, flat buttons (no glow), no marquee.
   The WebGL canvas (#gl) sits behind everything; sections stay transparent. */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../assets/fonts/space-grotesk-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
}

:root {
  --bg: #04050d;
  --bg-raise: #0a0c1a;
  --text: #e9ebf3;
  --muted: #828a9d;
  --muted-2: #aab0c4;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #1d3bff;
  --accent-soft: #6d7fff;
  --chrome: #cfd6ea;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid #b8c1ff; outline-offset: 4px; border-radius: 4px; }
:target { scroll-margin-top: 110px; }
.skip-link {
  position: fixed; z-index: 120; top: 12px; left: 16px;
  padding: 12px 18px; background: var(--bg-raise); color: #fff;
  border: 2px solid #b8c1ff; border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- WebGL layer ---- */
#gl {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.no-gl #gl { display: none; }
/* Without WebGL or JS the page keeps a quiet static version of the hero light. */
.no-gl body, html:not(.js) body {
  background:
    radial-gradient(60vw 60vw at 78% 18vh, rgba(29, 59, 255, .22), transparent 70%),
    var(--bg);
}
main, .footer { position: relative; z-index: 1; }

.wrap { width: min(1200px, 88vw); margin: 0 auto; }
.wrap-narrow { width: min(780px, 88vw); margin: 0 auto; }
.act .wrap { width: min(1520px, 88vw); }

/* ---- shared type ---- */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.accent-label { color: var(--accent-soft); }

h2 {
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-top: 14px;
  text-wrap: balance;
}
h3 { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }

.section { padding: clamp(84px, 11vw, 150px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

main p a, .svc-foot a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .18em;
  transition: color .2s;
}
main p a:hover, .svc-foot a:hover { color: #fff; }

/* ---- buttons: solid, flat, no glow ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3550ff; }
.btn-ghost { background: rgba(4, 5, 13, .45); color: var(--text); border-color: rgba(255, 255, 255, .24); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ LOADER (only shown when JS runs) ============ */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.ready .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-box { display: grid; gap: 14px; justify-items: center; }
.loader-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.loader-bar { width: 132px; height: 1px; background: var(--line); display: block; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--accent-soft); transform: scaleX(0); transform-origin: left; }

/* ============ NAV ============ */
.nav-wrap {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}
.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  background: rgba(10, 12, 26, .62);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { width: 76px; height: auto; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-size: 14.5px; color: var(--muted-2); transition: color .25s; }
.nav-links a:hover { color: #fff; }
.nav-cta { padding: 10px 20px; font-size: 14px; gap: 6px; white-space: nowrap; }
.nav-toggle { display: none; }
.nav-links .has-sub { position: relative; display: flex; align-items: center; }
.nav-links .sub {
  display: none; position: absolute; top: calc(100% + 14px); left: -12px;
  min-width: 210px; padding: 10px; border-radius: 14px;
  background: rgba(10, 12, 26, .96);
  border: 1px solid rgba(255, 255, 255, .12);
}
.nav-links .has-sub::after { content: ""; position: absolute; top: 100%; left: -12px; right: -12px; height: 16px; }
.nav-links .has-sub:hover .sub, .nav-links .has-sub:focus-within .sub { display: block; }
.nav-links .sub a { display: block; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav-links .sub a:hover { background: rgba(29, 59, 255, .18); }

/* Promotions pill (added by main.js, same as 4.0) */
.see-offers {
  position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 13px 20px;
  border: 1px solid var(--accent-soft); border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 14.5px; font-weight: 600;
}
.see-offers:hover { background: #3550ff; }
.see-offers[hidden] { display: none; }
body:has(.nav-wrap.open) .see-offers { display: none; }

/* ============ ACT 1: hero + three dimensions ============ */
.act { display: grid; position: relative; }
.stage {
  grid-area: 1 / 1;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  align-self: start;
  pointer-events: none;
}
.stage-slot { position: absolute; inset: 0; }
.stage-tags { position: absolute; inset: 0; overflow: clip; }
.tag {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .4s, color .3s;
  will-change: transform;
}
.tag::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.tag b { font-weight: 500; color: var(--accent-soft); }
.tag.is-on { opacity: 1; }
.tag.is-hot { color: #fff; }
.no-gl .stage { display: none; }

.act-copy { grid-area: 1 / 1; position: relative; z-index: 1; }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 0 40px;
}
.hero-label { margin-bottom: clamp(14px, 2vh, 26px); }
.hero-title { font-weight: 700; perspective: 900px; perspective-origin: 0% 50%; }
.hero-words {
  display: block;
  width: max-content;
  font-size: clamp(60px, min(10vw, 14.6vh), 176px);
  line-height: .88;
  letter-spacing: -.045em;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--mx, 0) * 5deg)) rotateX(calc(var(--my, 0) * -4deg));
  transform-origin: 0% 50%;
}
.word { display: block; width: max-content; transition: color .3s; cursor: default; }
.word i { display: inline-block; font-style: normal; transform-origin: 50% 100%; }
.word:nth-child(2) { transform: translateZ(28px); }
.word:nth-child(3) { transform: translateZ(56px); color: var(--accent-soft); }
.hero-words.has-hot .word { color: rgba(233, 235, 243, .28); }
.hero-words.has-hot .word.is-hot { color: #fff; }
.hero-words.has-hot .word:nth-child(3).is-hot { color: var(--accent-soft); }

.hero-sub {
  display: block;
  margin-top: clamp(12px, 2vh, 22px);
  font-size: clamp(26px, min(4.1vw, 6vh), 64px);
  line-height: 1;
  letter-spacing: -.03em;
  /* stroke painted under a background-coloured fill: clean outline, no inner overlaps */
  color: var(--bg);
  -webkit-text-stroke: 2.6px var(--chrome);
  paint-order: stroke fill;
}
.hero-body { margin-top: clamp(18px, 3vh, 34px); max-width: 560px; }
.hero-lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--text); margin-bottom: 26px; }
.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 40px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 30px; background: linear-gradient(var(--accent-soft), transparent); display: block; }

/* One orchestrated load moment: the three words stand up out of the page. */
.js:not(.ready) .word i { opacity: 0; transform: rotateX(-88deg) translateY(.35em); }
.js:not(.ready) :is(.hero-label, .hero-sub, .hero-body, .hero-foot) { opacity: 0; }
.js .word i { transition: transform 1.1s var(--ease-out), opacity .5s ease; }
.js .word:nth-child(2) i { transition-delay: .09s; }
.js .word:nth-child(3) i { transition-delay: .18s; }
.js :is(.hero-label, .hero-sub, .hero-body, .hero-foot) { transition: opacity .9s ease .55s; }

.dims { padding-bottom: 12vh; }
.dim {
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dim-in { max-width: 440px; }
.dim-intro .dim-in { max-width: 560px; }
.dim-intro h2 { font-size: clamp(30px, 3.5vw, 50px); margin-top: 0; }
.dim-intro p { margin-top: 22px; color: var(--muted-2); max-width: 460px; }
.dim h3 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.025em; margin-top: 14px; }
.dim h3 span { display: block; color: var(--muted-2); font-weight: 500; }
.dim p:not(.label) { margin-top: 20px; color: var(--muted-2); }
.dim ul { margin-top: 20px; display: grid; gap: 10px; }
.dim li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  color: var(--text);
}
.dim li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 10px; height: 1px;
  background: var(--accent-soft);
}
.js .dim[data-step] .dim-in { opacity: .32; transition: opacity .45s ease; }
.js .dim[data-step].is-active .dim-in { opacity: 1; }

/* ============ CINEMATIC ============ */
/* Default (no JS / reduced motion): a framed still with the line over it. */
.cine { position: relative; padding: clamp(40px, 6vw, 90px) 0; }
.cine-frame {
  position: relative;
  width: min(1520px, 88vw);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: #05060f;
}
.cine-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cine-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(4, 5, 13, .88) 0%, rgba(4, 5, 13, .25) 38%, transparent 60%),
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4, 5, 13, .7) 100%);
}
.cine-fig {
  position: absolute; top: clamp(18px, 3vw, 40px); left: clamp(18px, 3vw, 44px); right: clamp(18px, 3vw, 44px);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(233, 235, 243, .7);
}
.cine-copy {
  position: absolute; left: 0; right: 0; bottom: clamp(26px, 6vh, 72px);
  padding: 0 6vw;
  text-align: center;
}
.cine-title {
  margin: 0;
  font-size: clamp(46px, min(10vw, 17vh), 168px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.045em;
}
.cine-sub { margin: clamp(14px, 2.4vh, 26px) auto 0; max-width: 520px; color: var(--muted-2); font-size: clamp(15.5px, 1.3vw, 18.5px); }

/* Scrub mode: the section pins, the frame opens to full bleed, scroll drives the clip. */
.scrub .cine { padding: 0; height: 360vh; }
.scrub .cine-stage {
  position: sticky; top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
}
.scrub .cine-frame {
  width: 100%; height: 100%;
  aspect-ratio: auto;
  border-radius: calc((1 - var(--open, 0)) * 26px);
  transform: scale(calc(.8 + .2 * var(--open, 0)));
  will-change: transform;
}
/* the scene's subject sits near the top; drop it clear of the fixed nav */
.scrub .cine-video { transform: translateY(8%); }
.scrub .cine-shade {
  background:
    linear-gradient(to bottom, #05060f 0%, #05060f 7%, transparent 24%),
    linear-gradient(to top, rgba(4, 5, 13, .88) 0%, rgba(4, 5, 13, .25) 38%, transparent 60%),
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4, 5, 13, .7) 100%);
}
.scrub .cine-copy {
  opacity: var(--say, 0);
  filter: blur(calc((1 - var(--say, 0)) * 16px));
  transform: translateY(calc((1 - var(--say, 0)) * 34px));
  will-change: opacity, filter, transform;
}
.scrub .cine-fig { opacity: calc(.25 + .75 * var(--open, 0)); }

/* ============ SERVICES ============ */
.svc-list { border-bottom: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.15fr) minmax(0, 1fr) 46px;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding: 8px 0;
  border-top: 1px solid var(--line);
  transition: background-color .3s;
}
.svc:hover, .svc:focus-visible { background: linear-gradient(90deg, rgba(29, 59, 255, .10), transparent 70%); }
.svc-shape { display: block; width: 150px; height: 150px; }
.no-gl .svc-shape { background: radial-gradient(circle at 40% 35%, var(--accent-soft), var(--accent) 45%, transparent 70%); border-radius: 50%; transform: scale(.4); }
.svc-main { display: grid; gap: 6px; }
.svc-name {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  transition: transform .35s var(--ease-out);
}
.svc:hover .svc-name { transform: translateX(8px); }
.svc-line { color: var(--muted-2); font-size: 16px; max-width: 420px; }
.svc-list-items { display: grid; gap: 5px; font-size: 14.5px; color: var(--muted); }
.svc-list-items span { position: relative; padding-left: 18px; }
.svc-list-items span::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--accent-soft); }
.svc-go {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  position: relative;
  transition: background-color .25s, border-color .25s;
}
.svc-go::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px;
  border-top: 1.5px solid #fff; border-right: 1.5px solid #fff;
  transform: translate(-30%, -70%);
}
.svc-go::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.5px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.svc:hover .svc-go, .svc:focus-visible .svc-go { background: var(--accent); border-color: var(--accent); }
.svc-foot { margin-top: 28px; color: var(--muted-2); max-width: 640px; }

/* ============ WORK ============ */
/* Default (no JS / reduced motion): a plain two-column grid. */
.work { padding: clamp(84px, 11vw, 150px) 0; }
.work-stage {
  width: min(1200px, 88vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 32px;
  align-items: start;
}
.work-title { grid-column: 1 / -1; }
.work-hint { margin-top: 18px; color: var(--muted-2); }
.work-hud { display: none; }
.work-card { display: block; }
.frame, .poster {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
  transition: border-color .3s;
}
.work-card:hover :is(.frame, .poster), .work-card:focus-visible :is(.frame, .poster) { border-color: var(--accent-soft); }
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #0d1022;
}
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.frame-url { margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.frame img, .poster img { width: 100%; height: auto; }
.work-meta { display: grid; gap: 4px; margin-top: 18px; }
.work-name { font-size: clamp(20px, 1.9vw, 28px); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.work-scope { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }

/* Depth mode: the section pins and the cards travel along the z axis. */
.depth .work { padding: 0; }
.depth .work-stage {
  position: sticky; top: 0;
  width: auto;
  height: 100vh;
  height: 100svh;
  display: block;
  overflow: clip;
  perspective: 1200px;
}
.depth .work-item {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.depth .work-title { width: min(900px, 88vw); text-align: center; }
.depth .work-title h2 { font-size: clamp(44px, 8vw, 128px); line-height: .95; letter-spacing: -.04em; }
.depth .work-card { width: min(58vw, 840px, 104vh); }
.depth .work-card.is-poster { width: min(44vh, 78vw); }
.depth .work-hud {
  position: absolute; left: 6vw; right: 6vw; bottom: 28px;
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.work-track { flex: 1; height: 1px; background: var(--line); display: block; }
.work-track i { display: block; height: 100%; background: var(--accent-soft); transform: scaleX(0); transform-origin: left; }

/* ============ PROCESS ============ */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  perspective: 1400px;
}
.phase {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 12, 26, .66);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), border-color .3s;
  transform-style: preserve-3d;
}
.phase:hover { border-color: rgba(109, 127, 255, .5); transition-duration: .12s, .3s; }
.phase-num {
  display: block;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: #080a17;
  -webkit-text-stroke: 2.4px var(--accent-soft);
  paint-order: stroke fill;
  margin-bottom: 44px;
  transition: transform .5s var(--ease-out);
}
.phase:hover .phase-num { transform: translateZ(34px); }
.phase p { margin-top: 10px; font-size: 15.5px; color: var(--muted-2); }

/* ============ WHY ============ */
.why-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.why-story { margin-top: 26px; color: var(--muted-2); max-width: 540px; }
.why-payoff { margin-top: 20px; padding-left: 18px; border-left: 2px solid var(--accent); max-width: 520px; }
.why-list { display: grid; }
.why-list li { padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted-2); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list strong { display: block; color: var(--text); font-size: 20px; font-weight: 600; margin-bottom: 4px; }

/* ============ FAQ ============ */
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 600;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--accent-soft);
  transition: transform .3s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }
.faq p { padding: 0 48px 26px 0; color: var(--muted-2); max-width: 68ch; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(40px, 5.6vw, 84px); }
.contact-lede { margin-top: 24px; color: var(--muted-2); max-width: 460px; }
.contact-phone {
  display: inline-block;
  margin-top: 34px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -.02em;
  border-bottom: 2px solid var(--accent);
  transition: color .2s;
}
.contact-phone:hover { color: var(--accent-soft); }
.business-hours { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.contact-form {
  display: grid; gap: 16px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(10, 12, 26, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; }
.contact-form label > span { font-size: 13.5px; color: var(--muted-2); }
.contact-form :is(input, select, textarea) {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  font-size: 16px;
  transition: border-color .2s, background-color .2s;
}
.contact-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted-2) 50%), linear-gradient(135deg, var(--muted-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.contact-form select option { background: var(--bg-raise); color: var(--text); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--accent-soft); background: rgba(255, 255, 255, .06); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-status { font-size: 14.5px; color: var(--muted-2); flex: 1; min-width: 200px; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 54px 0 60px; background: rgba(4, 5, 13, .82); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 40px; align-items: start; }
.footer-brand p { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14.5px; color: var(--muted-2); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; gap: 10px; justify-items: end; }
.footer-contact a { font-family: var(--font-mono); font-size: 14px; color: var(--accent-soft); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .phase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { justify-items: start; }
  .svc { grid-template-columns: 96px minmax(0, 1fr) 46px; }
  .svc-shape { width: 96px; height: 96px; }
  .svc-list-items { display: none; }
}

@media (max-width: 900px) {
  .nav-cta { padding: 9px 13px; font-size: 13px; }
  .cta-word { display: none; }
  /* Stage goes full width; the stack sits under the hero copy, then rises
     above the text cards for the three layer steps (positions set in JS). */
  .stage-tags { display: none; }
  .hero { justify-content: flex-start; padding: 104px 0 28px; }
  .hero-words { font-size: clamp(52px, min(18.5vw, 11.5vh), 110px); }
  .hero-sub { font-size: clamp(25px, 7.6vw, 40px); -webkit-text-stroke-width: 2.2px; }
  .hero-body { margin-top: 18px; }
  .hero-lede { font-size: 16px; margin-bottom: 18px; }
  .hero .btn { padding: 13px 20px; font-size: 15px; }
  .hero-foot span:last-child { display: none; }

  .dim { justify-content: flex-end; padding-bottom: 7vh; min-height: 100vh; min-height: 100svh; }
  .dim-in {
    max-width: none;
    padding: 22px 20px 24px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(6, 8, 20, .78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .js .dim[data-step] .dim-in { opacity: .5; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  /* mobile nav (opened by main.js via .nav-wrap.open) */
  .nav-pill { width: 100%; justify-content: space-between; gap: 12px; }
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; gap: 4px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(10, 12, 26, .96);
    border: 1px solid rgba(255, 255, 255, .12);
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links a { padding: 10px 8px; font-size: 16px; }
  .nav-wrap.open .nav-links { display: flex; }
  .nav-links .has-sub { flex-direction: column; align-items: stretch; }
  .nav-links .sub { display: block; position: static; background: none; border: 0; padding: 0 0 4px 16px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px;
    background: transparent; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .25s; }
  .nav-wrap.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-wrap.open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .see-offers { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); padding: 11px 17px; }

  .svc { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .svc-shape { width: 72px; height: 72px; }
  .svc-go { display: none; }
  .svc-line { font-size: 15px; }

  .work-stage { grid-template-columns: 1fr; }
  .depth .work-card { width: 86vw; }
  .depth .work-card.is-poster { width: min(40vh, 74vw); }
  .depth .work-hud { bottom: 18px; }

  .phase-grid { grid-template-columns: 1fr; }
  .phase-num { margin-bottom: 22px; font-size: 52px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-words { transform: none; }
}
