/* =====================================================================
   NEXTGEN AI — V2 · Design system
   Identity: monochrome on near-black. Silver-white light, one system.
   Type: Space Grotesk (display) · Inter (body) · Space Mono (labels).
   Motion styling lives here; choreography lives in js/motion.js.
   ===================================================================== */

:root {
  /* Surfaces */
  --bg:        #050506;
  --bg-black:  #000000;
  --bg-raise:  #0b0b0d;
  --line:      rgba(244, 245, 247, 0.10);
  --line-soft: rgba(244, 245, 247, 0.06);

  /* Ink */
  --ink:       #f4f5f7;
  --ink-dim:   rgba(244, 245, 247, 0.62);
  --ink-mute:  rgba(244, 245, 247, 0.38);
  --ink-ghost: rgba(244, 245, 247, 0.14);
  --silver:    #c9ced9;

  /* Type */
  --f-disp: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;

  /* Rhythm */
  --nav-h: 72px;
  --gutter: clamp(20px, 5vw, 96px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 200;
  padding: 10px 18px; background: var(--ink); color: var(--bg);
  font-weight: 600; border-radius: 4px; transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.kicker {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute);
}
.kicker::before { content: "// "; color: var(--ink-ghost); }

/* ------------------------------ Nav -------------------------------- */
#site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  height: var(--nav-h); padding: 0 var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
#site-nav.is-scrolled {
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav-mark { width: 30px; height: 30px; color: var(--ink); }
.nav-word { font-family: var(--f-disp); font-size: 15px; letter-spacing: 0.04em; }
.nav-word b { font-weight: 700; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 13px; color: var(--ink-dim); letter-spacing: 0.02em;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-cta {
  padding: 10px 20px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; font-weight: 600;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nav-burger { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg-black);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 var(--gutter);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--f-disp); font-size: clamp(32px, 9vw, 44px);
  font-weight: 600; padding: 8px 0; color: var(--ink-dim);
}
.mobile-menu a:active { color: var(--ink); }
.mobile-menu-cta { color: var(--ink) !important; }

/* ------------------------------ Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 999px;
  font-family: var(--f-disp); font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
  will-change: transform;
}
.btn--solid { background: var(--ink); color: var(--bg-black); }
.btn--solid:hover { background: #ffffff; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-dim); }
.btn--wide { width: 100%; }
.btn:active { transform: scale(0.97); }

/* =====================================================================
   HERO — The Depth Field
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh;
  background: var(--bg-black);
  display: grid; place-items: center;
  overflow: clip;
}
.hero-stage {
  position: absolute; inset: 0;
  perspective: 1200px; perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}
.hs-layer {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Atmosphere: structural grid + light beams */
.hs-atmos { transform: translateZ(-420px) scale(1.6); }
.hs-grid {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 72%);
  opacity: 0.55;
}
.hs-beam {
  position: absolute; width: 1px; height: 140%;
  background: linear-gradient(180deg, transparent, rgba(244,245,247,0.16), transparent);
}
.hs-beam--1 { left: 22%; transform: rotate(14deg); }
.hs-beam--2 { right: 26%; transform: rotate(-11deg); }

/* Depth typography */
.hs-type-back  { transform: translateZ(-260px) scale(1.35); }
.hs-type-front { transform: translateZ(160px) translateY(-17vh) scale(0.86); }
.hs-word {
  font-family: var(--f-disp); font-weight: 700;
  letter-spacing: -0.02em; line-height: 0.86; white-space: nowrap;
  user-select: none;
}
.hs-type-back .hs-word {
  font-size: clamp(90px, 17.5vw, 300px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 245, 247, 0.22);
}
.hs-type-front .hs-word {
  font-size: clamp(120px, 24vw, 400px);
  color: var(--ink);
  mix-blend-mode: exclusion;
}
.hs-word .ch { display: inline-block; will-change: transform, opacity; }

/* Project surfaces travelling between the letters */
.hs-media { transform: translateZ(-60px); }
.hs-card {
  position: absolute; overflow: hidden; border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.hs-card img, .hs-card video { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.hs-card-tag {
  position: absolute; left: 10px; bottom: 8px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(244,245,247,0.85);
  background: rgba(0,0,0,0.55); padding: 3px 8px; border-radius: 3px;
}
.hs-card--a { width: clamp(140px, 17vw, 300px); aspect-ratio: 1;      top: 16%; left: 10%; }
.hs-card--b { width: clamp(150px, 20vw, 360px); aspect-ratio: 16/10;  bottom: 11%; right: 4%; }
.hs-card--c { width: clamp(120px, 15vw, 270px); aspect-ratio: 4/5;    top: 13%; right: 18%; }
.hs-card--d { width: clamp(130px, 17vw, 300px); aspect-ratio: 16/9;   bottom: 27%; left: 6%; }

/* Foreground copy */
.hero-copy {
  position: relative; z-index: 3; text-align: center;
  padding: 0 var(--gutter); max-width: 760px;
  transform: translateY(clamp(110px, 21vh, 230px));
}
.hero-h1 { font-family: var(--f-disp); font-weight: 500; }
.hero-h1-line {
  display: block; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-sub {
  margin: 18px auto 0; max-width: 470px;
  color: var(--ink-dim); font-size: 15px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* HUD */
.hero-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hud-item {
  position: absolute; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.14em; color: var(--ink-mute);
}
.hud-tl { top: calc(var(--nav-h) + 18px); left: var(--gutter); }
.hud-tr { top: calc(var(--nav-h) + 18px); right: var(--gutter); }
.hud-bl { bottom: 24px; left: var(--gutter); }
.hud-br { bottom: 24px; right: var(--gutter); }

.hero-scrollcue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 44px; overflow: hidden; z-index: 2;
}
.hero-scrollcue span {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent, var(--ink-dim));
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* =====================================================================
   SELECTED WORK — The Z-Stack
   ===================================================================== */
.work { position: relative; background: var(--bg); }
.work-head {
  padding: clamp(90px, 14vh, 160px) var(--gutter) 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px 48px;
}
.work-title {
  font-family: var(--f-disp); font-weight: 600;
  font-size: clamp(40px, 7vw, 104px); letter-spacing: -0.02em; line-height: 1;
}
.work-title em { font-style: normal; color: transparent; -webkit-text-stroke: 1px var(--ink-dim); }

.work-viewport { position: relative; height: 100svh; overflow: clip; }
.work-rail {
  position: absolute; z-index: 5; left: var(--gutter); bottom: 34px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-mute);
}
.work-rail-index { font-size: 22px; color: var(--ink); }
.work-rail-bar { width: 120px; height: 1px; background: var(--line); position: relative; }
.work-rail-bar i { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--ink); }

.work-stack {
  position: absolute; inset: 0;
  perspective: 1400px; transform-style: preserve-3d;
}
.wk-panel {
  position: absolute; inset: 0;
  display: grid; align-items: center;
  grid-template-columns: minmax(300px, 44%) 1fr;
  gap: clamp(20px, 4vw, 64px);
  padding: 0 var(--gutter);
  will-change: transform, opacity, filter;
  pointer-events: none;
}
.wk-panel.is-active { pointer-events: auto; }
.wk-info { position: relative; z-index: 2; }
.wk-index {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute);
  display: block; margin-bottom: 14px;
}
.wk-label {
  display: inline-block; margin-bottom: 18px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-dim);
}
.wk-label--real { border-color: rgba(244,245,247,0.34); color: var(--ink); }
.wk-name {
  font-family: var(--f-disp); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.02em;
}
.wk-line { margin-top: 16px; max-width: 420px; color: var(--ink-dim); font-size: 15px; }
.wk-meta {
  margin-top: 26px; display: grid; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.wk-meta b { color: var(--ink-dim); font-weight: 400; }
.wk-visit {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-family: var(--f-disp); font-size: 14px; font-weight: 600;
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: border-color 0.3s var(--ease);
}
.wk-visit:hover { border-color: var(--ink); }
.wk-visit::after { content: "↗"; font-size: 12px; }

.wk-media {
  position: relative; height: min(64svh, 620px);
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
  transform-style: preserve-3d;
}
.wk-media img, .wk-media video { width: 100%; height: 100%; object-fit: cover; }
.wk-media-extra {
  position: absolute; right: -6%; bottom: -8%;
  width: 38%; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.wk-media-extra img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   WHAT WE BUILD — Service field
   ===================================================================== */
.svc { position: relative; background: var(--bg-black); overflow: clip; }
.svc-scenes { position: absolute; inset: 0; }
.svc-scene {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.svc-scene.is-on { opacity: 1; }
.svc-scene img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.22; filter: grayscale(1) contrast(1.05);
  transform: scale(1.06);
}
.svc-scene::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 30%, var(--bg-black) 88%);
}
.svc-scene--system canvas { width: 100%; height: 100%; opacity: 0.5; }
.svc-scene--tap { display: grid; place-items: center; }
.tap-rings { position: relative; width: 300px; height: 300px; }
.tap-rings i {
  position: absolute; inset: 0; border: 1px solid rgba(244,245,247,0.28);
  border-radius: 50%; animation: tap 2.6s var(--ease) infinite;
}
.tap-rings i:nth-child(2) { animation-delay: 0.6s; }
.tap-rings i:nth-child(3) { animation-delay: 1.2s; }
@keyframes tap {
  0% { transform: scale(0.18); opacity: 0; }
  25% { opacity: 0.9; }
  100% { transform: scale(1.15); opacity: 0; }
}

.svc-head { position: relative; z-index: 2; padding: clamp(90px, 14vh, 150px) var(--gutter) 12px; }
.svc-list { position: relative; z-index: 2; padding-bottom: clamp(70px, 10vh, 130px); }
.svc-item { border-top: 1px solid var(--line-soft); }
.svc-item:last-child { border-bottom: 1px solid var(--line-soft); }
.svc-btn {
  display: grid; width: 100%;
  grid-template-columns: auto 1fr; align-items: baseline;
  gap: 10px clamp(16px, 3vw, 44px);
  padding: clamp(20px, 3.4vh, 34px) var(--gutter);
  text-align: left;
}
.svc-num { font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); }
.svc-name {
  font-family: var(--f-disp); font-weight: 600;
  font-size: clamp(30px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--ink-mute);
  transition: color 0.4s var(--ease), transform 0.5s var(--ease), letter-spacing 0.5s var(--ease);
  transform-origin: left center;
}
.svc-item.is-on .svc-name { color: var(--ink); letter-spacing: 0; transform: translateX(clamp(6px, 1vw, 18px)); }
.svc-line {
  grid-column: 2; max-width: 560px;
  color: var(--ink-dim); font-size: 14px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.55s var(--ease), opacity 0.45s var(--ease), margin 0.55s var(--ease);
}
.svc-item.is-on .svc-line { max-height: 120px; opacity: 1; margin-top: 8px; }

/* =====================================================================
   DIFFERENTIATION — Template Collapse
   ===================================================================== */
.diff { position: relative; background: var(--bg); height: 280svh; }
.diff-sticky {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  display: grid; place-items: center;
}
.diff-title {
  position: relative; z-index: 3; text-align: center;
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(34px, 7.4vw, 110px); line-height: 1.02; letter-spacing: -0.02em;
  mix-blend-mode: exclusion;
}
.diff-line { display: block; will-change: transform, opacity; }
.diff-line--em { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }

.diff-demo { position: absolute; inset: 0; display: grid; place-items: center; }
.tmpl {
  position: absolute; width: min(66vw, 720px); aspect-ratio: 16/10;
  display: grid; gap: 10px; padding: 14px;
  grid-template: "n n n" 12% "h h h" 38% "a b c" 1fr "f f f" 10% / 1fr 1fr 1fr;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raise);
  will-change: transform, opacity;
}
.tmpl i { background: rgba(244, 245, 247, 0.07); border-radius: 4px; will-change: transform, opacity; }
.tmpl .t-nav { grid-area: n; } .tmpl .t-hero { grid-area: h; }
.tmpl .t-card:nth-of-type(3) { grid-area: a; }
.tmpl .t-card:nth-of-type(4) { grid-area: b; }
.tmpl .t-card:nth-of-type(5) { grid-area: c; }
.tmpl .t-foot { grid-area: f; }

.diff-real {
  position: absolute; width: min(70vw, 780px); aspect-ratio: 16/10;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  opacity: 0; will-change: transform, opacity;
}
.diff-real img, .diff-real video { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.diff-real figcaption {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; background: rgba(0,0,0,0.6);
  padding: 5px 10px; border-radius: 3px;
}
.diff-note {
  position: absolute; bottom: clamp(28px, 6vh, 60px); left: 50%; transform: translateX(-50%);
  width: min(88vw, 560px); text-align: center;
  color: var(--ink-dim); font-size: 15px; z-index: 3;
  opacity: 0; will-change: opacity, transform;
}

/* =====================================================================
   PROCESS — production line
   ===================================================================== */
.proc { position: relative; background: var(--bg-black); height: 380svh; }
.proc-sticky {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  display: flex; flex-direction: column; justify-content: center;
}
.proc-head {
  position: absolute; top: calc(var(--nav-h) + 26px);
  left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: baseline;
}
.proc-count { color: var(--ink-mute); }
.proc-track {
  display: flex; gap: clamp(40px, 7vw, 120px);
  padding-left: var(--gutter);
  will-change: transform; width: max-content;
}
.proc-stage { width: min(74vw, 460px); flex: none; }
.proc-num { display: block; color: var(--ink-ghost); font-size: 13px; margin-bottom: 18px; }
.proc-stage h3 {
  font-family: var(--f-disp); font-weight: 600;
  font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -0.02em;
}
.proc-stage p { margin-top: 18px; color: var(--ink-dim); font-size: 15px; max-width: 400px; }
.proc-rail {
  position: absolute; bottom: 40px; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--line);
}
.proc-rail i { display: block; height: 100%; width: 0%; background: var(--ink); }

/* =====================================================================
   REEL
   ===================================================================== */
.reel { background: var(--bg); padding: clamp(90px, 14vh, 160px) 0 clamp(70px, 10vh, 120px); }
.reel-head { padding: 0 var(--gutter); max-width: 900px; }
.reel-title {
  font-family: var(--f-disp); font-weight: 600;
  font-size: clamp(36px, 6vw, 92px); letter-spacing: -0.02em; line-height: 1;
  margin-top: 10px;
}
.reel-note { margin-top: 14px; color: var(--ink-mute); font-size: 13px; }

/* Film reel: native horizontal scroll + drag + arrows. Cards run past
   the viewport edge on purpose — trailing gutter keeps the last film
   fully reachable. */
.reel-shell { position: relative; margin-top: 44px; }
.reel-strip {
  display: flex; gap: clamp(18px, 2.4vw, 34px);
  padding: 6px var(--gutter) 10px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
}
.reel-strip::-webkit-scrollbar { display: none; }
.reel-strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel-strip::after { content: ""; flex: none; width: calc(var(--gutter) * 0.5); }
.reel-strip:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.reel-card {
  position: relative; flex: none;
  width: min(78vw, 620px);
  scroll-snap-align: center;
  text-align: left; padding: 0;
}
.reel-card-frame {
  position: relative; display: block; aspect-ratio: 16/9;
  overflow: hidden; border-radius: 4px; border: 1px solid var(--line);
  background: var(--bg-raise);
  transition: border-color 0.4s var(--ease);
}
.reel-card:hover .reel-card-frame { border-color: var(--ink-mute); }
.reel-card img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.9;
  transition: opacity 0.4s var(--ease), transform 0.8s var(--ease);
}
.reel-card:hover img { opacity: 1; transform: scale(1.035); }
.reel-card-index {
  position: absolute; top: 12px; left: 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  color: rgba(244, 245, 247, 0.85);
  background: rgba(0, 0, 0, 0.5); padding: 4px 9px; border-radius: 3px;
}
.reel-card-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid rgba(244,245,247,0.5); background: rgba(0,0,0,0.42);
  display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.reel-card:hover .reel-card-play { transform: translate(-50%, -50%) scale(1.1); background: rgba(0,0,0,0.62); }
.reel-card-play::after {
  content: ""; display: block; margin-left: 4px;
  border-left: 15px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.reel-card-credit {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 2px 0; border-top: 0;
}
.reel-card-num { font-family: var(--f-mono); font-size: 11px; color: var(--ink-mute); }
.reel-card-name { font-family: var(--f-disp); font-weight: 600; font-size: clamp(16px, 1.6vw, 21px); letter-spacing: 0.01em; }
.reel-card-kind {
  margin-left: auto; font-family: var(--f-mono); font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim);
  white-space: nowrap;
}

.reel-bar {
  display: flex; align-items: center; gap: 22px;
  padding: 22px var(--gutter) 0;
}
.reel-cue { color: var(--ink-mute); letter-spacing: 0.18em; transition: opacity 0.6s var(--ease); }
.reel-cue.is-done { opacity: 0; }
.reel-progress { margin-left: auto; color: var(--ink-dim); font-size: 12px; }
.reel-arrows { display: flex; gap: 10px; }
.reel-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  display: grid; place-items: center; font-size: 15px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s;
}
.reel-arrow:hover { background: var(--ink); color: var(--bg-black); border-color: var(--ink); }
.reel-arrow:disabled { opacity: 0.3; pointer-events: none; }

/* =====================================================================
   PRICING — editorial
   ===================================================================== */
.price { background: var(--bg-black); padding: clamp(100px, 15vh, 180px) var(--gutter); }
.price-head { max-width: 900px; }
.price-title {
  font-family: var(--f-disp); font-weight: 600;
  font-size: clamp(36px, 6vw, 92px); letter-spacing: -0.02em; line-height: 1;
  margin-top: 10px;
}
.price-title em { font-style: normal; color: transparent; -webkit-text-stroke: 1px var(--ink-dim); }
.price-note { margin-top: 16px; color: var(--ink-dim); max-width: 520px; font-size: 15px; }

.price-list { margin-top: clamp(44px, 7vh, 80px); max-width: 1100px; }
.price-row {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 8px clamp(20px, 4vw, 60px);
  padding: clamp(20px, 3.4vh, 32px) 0;
  border-top: 1px solid var(--line-soft);
}
.price-row:last-child { border-bottom: 1px solid var(--line-soft); }
.price-row dt {
  font-family: var(--f-disp); font-weight: 500;
  font-size: clamp(19px, 2.6vw, 32px); letter-spacing: -0.01em;
}
.price-row dd { text-align: right; }
.price-mode { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.price-value {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(22px, 3.4vw, 44px); letter-spacing: -0.01em;
}
.price-value--custom { font-size: clamp(15px, 1.8vw, 20px); font-weight: 500; color: var(--ink-dim); }
.price-row-static { padding: 20px 0; color: var(--ink-dim); }

/* =====================================================================
   FINAL — BUILD WHAT'S NEXT + contact
   ===================================================================== */
.final { position: relative; background: var(--bg-black); padding-bottom: clamp(80px, 10vh, 140px); overflow: clip; }
.final-statement {
  min-height: 92svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  user-select: none;
}
.final-line {
  display: block; font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(64px, 16vw, 260px); line-height: 0.9; letter-spacing: -0.03em;
  will-change: transform, opacity, letter-spacing;
}
.final-line--em { color: transparent; -webkit-text-stroke: clamp(1px, 0.18vw, 2.5px) var(--ink); }

.final-panel {
  position: relative; z-index: 2;
  width: min(92vw, 640px); margin: 0 auto;
}
.final-h2 { font-family: var(--f-disp); font-weight: 600; font-size: clamp(24px, 3vw, 36px); }
.final-sub { margin-top: 10px; color: var(--ink-dim); font-size: 15px; }
.final-mail { color: var(--ink); border-bottom: 1px solid var(--line); }
.final-mail:hover { border-color: var(--ink); }

.final-form { margin-top: 34px; display: grid; gap: 18px; }
.ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ff-field { display: grid; gap: 8px; }
.ff-field span {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(244, 245, 247, 0.74);
}
.ff-privacy { font-style: normal; color: rgba(244, 245, 247, 0.48); letter-spacing: 0.12em; }
.ff-field input, .ff-field textarea {
  width: 100%; padding: 14px 16px;
  background: #16161a; border: 1px solid rgba(244, 245, 247, 0.24);
  border-radius: 6px; color: #fafbfc; font: inherit; font-size: 15px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ff-field input::placeholder, .ff-field textarea::placeholder { color: rgba(244, 245, 247, 0.46); }
.ff-field input:hover, .ff-field textarea:hover { border-color: rgba(244, 245, 247, 0.4); }
.ff-field input:focus, .ff-field textarea:focus {
  outline: none; border-color: var(--silver);
  box-shadow: 0 0 0 3px rgba(201, 206, 217, 0.12);
}
.ff-field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ff-status { min-height: 22px; font-size: 14px; color: var(--ink-dim); }
.ff-status.is-error { color: #ffb4b4; }
.ff-status.is-ok { color: var(--ink); }

/* ------------------------------ Footer ------------------------------ */
.footer { background: var(--bg-black); border-top: 1px solid var(--line-soft); padding: 34px var(--gutter) 40px; }
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px;
  justify-content: space-between;
}
.footer-brand { font-family: var(--f-disp); font-size: 14px; letter-spacing: 0.04em; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { font-size: 13px; color: var(--ink-dim); }
.footer-nav a:hover { color: var(--ink); }
.footer-mail { font-family: var(--f-mono); font-size: 12px; color: var(--ink-dim); }
.footer-mail:hover { color: var(--ink); }
.footer-row--legal {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--ink-mute);
}
.footer-disclosure { max-width: 480px; }

/* ------------------------------ Modal ------------------------------- */
.vmodal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; }
.vmodal[hidden] { display: none; }
.vmodal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(8px); }
.vmodal-body { position: relative; width: min(94vw, 1080px); }
.vmodal-body video { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #000; }
.vmodal-cap { margin-top: 10px; color: var(--ink-mute); }
.vmodal-x {
  position: absolute; top: -46px; right: 0; font-size: 26px; line-height: 1;
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); display: grid; place-items: center;
}
.vmodal-x:hover { background: var(--ink); color: var(--bg-black); }

/* ------------------------------ Cursor ------------------------------ */
.cursor { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; display: none; }
.cursor-dot {
  position: absolute; top: -4px; left: -4px; width: 8px; height: 8px;
  background: var(--ink); border-radius: 50%;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.cursor-label {
  position: absolute; top: -30px; left: 12px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--bg-black); background: var(--ink);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transform: scale(0.7); transform-origin: left bottom;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.cursor.has-label .cursor-label { opacity: 1; transform: scale(1); }
.cursor.has-label .cursor-dot { transform: scale(2.4); }
@media (pointer: fine) {
  body.cursor-on .cursor { display: block; }
}

/* ------------------------------ Reveals ------------------------------ */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
body.static [data-reveal] { opacity: 1; transform: none; transition: none; }

/* =====================================================================
   STATIC MODE — reduced motion / no JS / old browsers.
   Layout stays complete and readable with zero choreography.
   ===================================================================== */
body.static .hero-stage { perspective: none; }
body.static .hs-layer,
body.static .hs-card, body.static .tmpl, body.static .diff-real { transform: none !important; }
body.static .diff { height: auto; }
body.static .diff-sticky { position: static; height: auto; padding: 90px 0; }
body.static .diff-demo { display: none; }
body.static .diff-note { position: static; transform: none; opacity: 1; margin: 26px auto 0; }
body.static .proc { height: auto; }
body.static .proc-sticky { position: static; height: auto; padding: 90px 0; }
body.static .proc-track { flex-direction: column; width: auto; padding: 0 var(--gutter); gap: 60px; }
body.static .proc-rail { display: none; }
body.static .work-viewport { height: auto; }
body.static .wk-panel { position: static; opacity: 1 !important; filter: none !important; pointer-events: auto; padding-bottom: 70px; }
body.static .work-rail { display: none; }
body.static .final-line { opacity: 1 !important; transform: none !important; }
body.static .hero-scrollcue span { animation: none; }
body.static .tap-rings i { animation: none; opacity: 0.4; transform: scale(0.7); }
body.no-js .wk-panel { position: static; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 767px) {
  :root { --nav-h: 60px; }
  .nav-cta { display: none; }

  .hs-card--a { width: 32vw; top: 12%; left: 5%; }
  .hs-card--b { width: 40vw; bottom: 24%; right: 4%; }
  .hs-card--c { width: 30vw; top: 10%; right: 8%; }
  .hs-card--d { width: 34vw; bottom: 28%; left: 6%; }
  .hero-copy { transform: translateY(60px); }
  .hud-tr, .hud-br { display: none; }

  .wk-panel { grid-template-columns: 1fr; align-content: center; gap: 22px; padding-top: 40px; }
  .wk-media { height: 34svh; order: -1; }
  .wk-media-extra { display: none; }
  .wk-line { font-size: 14px; }
  .work-rail { bottom: 18px; }

  .svc-btn { grid-template-columns: 1fr; gap: 6px; }
  .svc-num { display: none; }
  .svc-line { grid-column: 1; }

  .ff-row { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .vmodal-x { top: -44px; }

  /* Mobile reel: one film dominates, the next peeks in; hard snap */
  .reel-strip { scroll-snap-type: x mandatory; gap: 14px; }
  .reel-card { width: 84vw; }
  .reel-bar { gap: 14px; }
  .reel-cue { display: none; }
}
@media (max-width: 374px) {
  .hero-h1-line { font-size: 24px; }
  .hs-type-back .hs-word { font-size: 96px; }
}
