/* ═══════════════════════════════════════════════════════════
   JAYESH SUDHAKAR — one page
   INSTRUMENT (base) · DEEP FIELD (voidpath band)
   Committed single-theme brand surface. Colours all explicit.
   ═══════════════════════════════════════════════════════════ */

:root {
  --void:   #07090C;
  --panel:  #0E1318;
  --panel2: #131A21;
  --line:   #1D252E;
  --line2:  #2B3540;
  --ink:    #E4EAF1;
  --dim:    #98A3AF;
  --mute:   #69747F;
  --amber:  #E8A33D;
  --live:   #45A597;
  --violet: #7B6CFF;
  --cyan:   #39E0D0;
  --status-live:        #63CBB4;
  --status-early-build: #9BD47A;
  --status-development: #E2B45D;
  --availability:       #A8F47A;

  --sans: "Chivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Bodoni Moda", Didot, Georgia, serif;

  /* Spacing scale. Every gap on the page derives from these — before this
     existed the stylesheet held 13 unrelated magic numbers and each section
     drifted from its neighbours. */
  --s1: 4px;  --s2: 8px;   --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px;  --s8: 64px; --s9: 96px; --s10: 128px;
  --section-y: clamp(72px, 9vw, 128px);   /* rhythm between sections */
  --section-y-tight: clamp(48px, 6vw, 84px); /* after a section that ends on a rule */
  --lead-gap: var(--s7);                  /* heading -> its content */
  --strip-h: 78px;                        /* hero's absolute stat strip */

  --rail: 68px;
  /* The rail is navigation, not the content edge. This establishes a
     generous, stable breathing space between it and every content column. */
  --page-gutter: clamp(28px, 4.25vw, 72px);
  --pad: 34px;
  --maxw: 1240px;
  --maxw-wide: 1360px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(232,163,61,.28); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 2px; }

/* ── custom cursor (fine pointers only) ────────────────── */
.cur-dot, .cur-ring {
  position: fixed; top: 0; left: 0; z-index: 90;
  pointer-events: none; border-radius: 50%;
  opacity: 0; transition: opacity .35s var(--ease);
  will-change: transform;
}
.cur-dot {
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  background: var(--amber);
}
.cur-ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid rgba(232,163,61,.45);
  transition: opacity .35s var(--ease), width .3s var(--ease), height .3s var(--ease),
              margin .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
body.cur-on .cur-dot, body.cur-on .cur-ring { opacity: 1; }
body.cur-hot .cur-ring {
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-color: rgba(232,163,61,.85);
  background: rgba(232,163,61,.07);
}
body.cur-hot .cur-dot { opacity: 0; }
@media (pointer: fine) {
  body.cur-on, body.cur-on a, body.cur-on button,
  body.cur-on .whead, body.cur-on .lk { cursor: none; }
}

/* ── ambient field ─────────────────────────────────────── */
#field { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.shell { position: relative; z-index: 1; }

/* ── boot ──────────────────────────────────────────────── */
#boot {
  position: fixed; inset: 0; z-index: 100; background: var(--void);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
#boot.done { opacity: 0; visibility: hidden; }
#boot { animation: bootFailsafe 0s linear 6s forwards; }
@keyframes bootFailsafe { to { opacity: 0; visibility: hidden; } }
.boot-in {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--mute); width: min(280px, 72vw);
}
.boot-brand { margin: 0 0 18px; color: var(--amber); font-size: 9px; letter-spacing: .24em; }
.boot-brand span { color: var(--mute); }
.boot-line { display: flex; justify-content: space-between; margin-bottom: 12px; }
.boot-line b { color: var(--ink); font-weight: 400; }
.boot-bar { height: 1px; background: var(--line2); position: relative; overflow: hidden; }
.boot-bar i { position: absolute; inset: 0 100% 0 0; background: var(--amber); transition: right .18s linear; }

/* ── rail ──────────────────────────────────────────────── */
.rail {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--rail);
  border-right: 1px solid var(--line); z-index: 40;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; padding: 22px 0;
  background: rgba(7,9,12,.72); backdrop-filter: blur(14px);
}
.rail-mark { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--amber); }
.rail-nav { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.rail-nav a {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--mute);
  writing-mode: vertical-rl; padding: 4px 2px;
  transition: color .25s var(--ease); position: relative;
}
.rail-nav a::before {
  content: ""; position: absolute; left: -9px; top: 50%;
  width: 3px; height: 3px; border-radius: 50%; background: var(--amber);
  transform: translateY(-50%) scale(0); transition: transform .3s var(--ease);
}
.rail-nav a:hover { color: var(--dim); }
.rail-nav a.on { color: var(--ink); }
.rail-nav a.on::before { transform: translateY(-50%) scale(1); }
.rail-prog { width: 1px; height: 56px; background: var(--line2); position: relative; }
.rail-prog i { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--amber); }

/* ── layout ────────────────────────────────────────────── */
.page { margin-left: var(--rail); padding-inline: var(--page-gutter); }
.bound { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.bound-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 var(--pad); }

.sec-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--mute);
  display: flex; align-items: center; gap: 12px; margin: 0 0 var(--s5);
}
.sec-tag::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.sec-tag b { color: var(--amber); font-weight: 500; }

/* Fail-safes. app.js is now an external file: if it 404s or is blocked, the
   page must still be readable rather than blank behind an endless loader.
   Both animations are no-ops when the script runs, because JS reaches the
   same end state first. */
.rv {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  animation: rvFailsafe 0s linear 8s forwards;
}
@keyframes rvFailsafe { to { opacity: 1; transform: none; } }
.rv.in { opacity: 1; transform: none; }

h2 {
  font-weight: 900; font-size: clamp(32px, 6.25vw, 72px); line-height: 1.02;
  letter-spacing: -.032em; margin: 0; max-width: 17ch; text-wrap: balance;
}
.lead-p { font-size: 15.5px; line-height: 1.68; color: var(--dim); max-width: 48ch; margin: 0; }

/* ── hero ──────────────────────────────────────────────── */
/* Capped height: at 100svh on a tall screen, centring left a huge void above
   the content. Bottom padding reserves the absolutely-positioned strip, which
   previously overlapped it. */
.hero {
  min-height: min(100svh, 800px); display: flex; flex-direction: column;
  justify-content: flex-start; position: relative;
  /* Keep the vertical composition, but do not wipe out .bound's side inset. */
  padding: clamp(100px, 16vh, 200px) var(--pad) calc(var(--strip-h) + var(--s6));
}
.avail {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dim);
  border: 1px solid var(--line2); border-radius: 100px;
  padding: 6px 14px 6px 11px; margin-bottom: 34px; align-self: flex-start;
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--availability); flex: none; box-shadow: 0 0 7px rgba(168,244,122,.95), 0 0 16px rgba(123,235,94,.46); animation: pulse 2.5s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 7px rgba(168,244,122,.95), 0 0 0 0 rgba(123,235,94,.62); }
  70% { box-shadow: 0 0 10px rgba(168,244,122,.88), 0 0 0 9px rgba(123,235,94,0); }
  100% { box-shadow: 0 0 7px rgba(168,244,122,.95), 0 0 0 0 rgba(123,235,94,0); }
}
h1 {
  font-weight: 900; font-size: clamp(38px, 7.6vw, 104px);
  line-height: .94; letter-spacing: -.038em; margin: 0 0 30px;
  max-width: 15ch; text-wrap: balance;
}
h1 .fade { color: var(--mute); }
.hero-sub { font-size: clamp(15px, 1.65vw, 19px); line-height: 1.62; color: var(--dim); max-width: 58ch; margin: 0 0 40px; }
.hero-sub b { color: var(--ink); font-weight: 400; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ops-notice {
  position: fixed; z-index: 300; left: calc(var(--rail) + 18px); bottom: 18px;
  width: min(360px, calc(100vw - var(--rail) - 36px)); padding: 12px 13px;
  display: grid; gap: 10px;
  border: 1px solid var(--line2); border-radius: 3px; background: rgba(11,15,20,.94);
  box-shadow: 0 18px 48px rgba(0,0,0,.42); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(12px) scale(.985); pointer-events: none;
  transition: opacity .28s var(--ease), transform .34s var(--ease);
}
.ops-notice.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.ops-notice p { margin: 0; font-family: var(--mono); font-size: 8px; line-height: 1.55; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.ops-notice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-notice button { flex: none; padding: 5px 7px; border: 1px solid var(--line2); border-radius: 2px; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.ops-notice button:hover { color: var(--ink); }
.ops-notice-close { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; padding: 0 !important; font-size: 16px !important; line-height: 1; color: var(--mute) !important; }
.ops-notice-close:hover { border-color: var(--amber) !important; color: var(--amber) !important; }
.ops-notice p { padding-right: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 2px;
  border: 1px solid var(--line2); color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn--solid { background: var(--amber); border-color: var(--amber); color: #0A0C0F; }
.btn--solid:hover { background: #F2B052; border-color: #F2B052; color: #0A0C0F; }
.btn .ar { transition: transform .3s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }

/* Full-bleed band; alignment comes from the inner .bound, not from
   stacking .bound on an element already inside a padded parent. */
.hero-strip { position: absolute; bottom: 0; left: 0; right: 0; border-top: 1px solid var(--line); }
.hero-strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 22px; }
.strip-c { padding: 18px 0; min-width: 0; }
.strip-c .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); display: block; margin-bottom: 4px; }
.strip-c .v { font-size: 14px; color: var(--ink); font-weight: 400; }
.strip-c .v span { color: var(--mute); }

/* ── work ──────────────────────────────────────────────── */
.work { padding-top: var(--section-y-tight); }
.wlist { border-top: 1px solid var(--line); }
.witem { border-bottom: 1px solid var(--line); }
/* Fixed columns throughout: an `auto` kind column sized to its own text,
   so every row started that label at a different x. Fixed width aligns them. */
.whead {
  width: 100%; display: grid;
  grid-template-columns: 46px minmax(0,1fr) 200px max-content 22px;
  gap: 22px; align-items: center; text-align: left;
  padding: 26px 4px; transition: padding-left .35s var(--ease);
}
.whead:hover { padding-left: 14px; }
.wnum { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--mute); font-variant-numeric: tabular-nums; }
.wname { font-size: clamp(21px, 2.9vw, 34px); font-weight: 700; letter-spacing: -.028em; transition: color .3s var(--ease); line-height: 1.1; }
.whead:hover .wname { color: var(--amber); }
.wkind {
  font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wstat { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--line2); border-radius: 2px; color: var(--mute); text-align: center; white-space: nowrap; justify-self: end; }
.wstat.live { color: var(--status-live); border-color: rgba(99,203,180,.48); box-shadow: inset 0 0 14px rgba(99,203,180,.06); }
.wstat.wip  { color: var(--status-development); border-color: rgba(226,180,93,.46); box-shadow: inset 0 0 14px rgba(226,180,93,.05); }
.wstat.early { color: var(--status-early-build); border-color: rgba(155,212,122,.48); box-shadow: inset 0 0 14px rgba(155,212,122,.06); }
.wtog { width: 22px; height: 22px; position: relative; justify-self: end; }
.wtog::before, .wtog::after {
  content: ""; position: absolute; background: var(--dim);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  transition: transform .35s var(--ease), background .3s var(--ease);
}
.wtog::before { width: 13px; height: 1px; }
.wtog::after  { width: 1px; height: 13px; }
.witem.open .wtog::after { transform: translate(-50%,-50%) rotate(90deg); }
.witem.open .wtog::before, .witem.open .wtog::after { background: var(--amber); }
.witem.open .wname { color: var(--amber); }

.wbody { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.witem.open .wbody { grid-template-rows: 1fr; }
.wbody > div { overflow: hidden; }
.wgrid {
  display: grid; grid-template-columns: 46px minmax(0,1.15fr) minmax(0,.85fr);
  gap: 22px 30px; padding: 4px 4px 34px; align-items: start;
}
.wcopy { font-size: 15px; line-height: 1.66; color: var(--dim); max-width: 54ch; }
.wcopy p { margin: 0 0 16px; }
.wcopy p:last-child { margin: 0; }
.wcopy b { color: var(--ink); font-weight: 400; }
.wmeta { display: grid; gap: 16px; align-content: start; }
.wmeta .row { border-top: 1px solid var(--line); padding-top: 11px; }
.wmeta .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); display: block; margin-bottom: 5px; }
.wmeta .v { font-size: 13.5px; color: var(--ink); font-weight: 300; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; padding: 4px 8px; border: 1px solid var(--line2); border-radius: 2px; color: var(--dim); }

/* ── live embed ────────────────────────────────────────── */
/* NOTE: named .embed, not .live — `.wstat live` is a status pill and a
   bare `.live` rule here would hand it this grid-column and break the row. */
.embed {
  border: 1px solid var(--line2); border-radius: 3px; overflow: hidden;
  background: #090C10; grid-column: 1 / -1; margin-top: 8px;
}
.live-bar {
  display: flex; align-items: center; gap: 12px; padding: 9px 14px;
  border-bottom: 1px solid var(--line); background: #0C1015;
  font-family: var(--mono); font-size: 10.5px; color: var(--mute);
}
.live-dots { display: flex; gap: 5px; flex: none; }
.live-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); display: block; }
.live-url {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 100px; padding: 3px 12px;
  color: var(--dim); letter-spacing: .02em;
}
.live-badge { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--live); flex: none; }
.live-stage { position: relative; aspect-ratio: 16 / 10; background: #070A0E; }
.live-stage:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; }
.live-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.live-poster {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(123,108,255,.16), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
    #070A0E;
}
.live-poster .cap { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.live-poster .msg { font-size: 13px; color: var(--dim); max-width: 40ch; line-height: 1.6; margin: 0; }
.live-note {
  display: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber);
  border: 1px dashed rgba(232,163,61,.4); border-radius: 2px; padding: 10px 16px;
}
.embed.is-small [data-role='launch'] { display: none; }
.embed.is-small .live-note { display: block; }
.live-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 10px 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
}
.live-foot a { color: var(--dim); transition: color .3s var(--ease); }
.live-foot a:hover { color: var(--amber); }

/* controls — only once something is actually running */
.embed-ctl {
  display: none; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 10px 14px; border-top: 1px solid var(--line); background: #0C1015;
}
.embed.is-live .embed-ctl { display: flex; }
.embed.is-live .live-foot { display: none; }
.ctl-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 13px; border: 1px solid var(--line2); border-radius: 2px; color: var(--dim);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.ctl-btn:hover { border-color: var(--amber); color: var(--amber); }
.ctl-btn--stop:hover { border-color: #E36B5C; color: #E36B5C; background: rgba(227,107,92,.07); }
.ctl-run {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mute);
}
.ctl-run i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); display: block; animation: pulse 2.8s ease-out infinite; }

/* ── cinema variant — the Voidpath frame ───────────────── */
/* @property lets the conic angle interpolate. Without it (older browsers)
   the beam simply sits still instead of sweeping — a fine fallback. */
@property --beam {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.stagewrap { perspective: 2000px; perspective-origin: 50% 44%; width: 100%; }
.stagewrap::after {
  content: ""; display: block; height: 104px; max-width: 88%; margin: -14px auto 0;
  background: linear-gradient(to bottom, rgba(123,108,255,.20), transparent 70%);
  filter: blur(26px); opacity: .75; pointer-events: none;
}
.embed--cinema {
  position: relative; max-width: 100%; margin: 0 auto; border-radius: 8px;
  border-color: rgba(123,108,255,.30); background: #05070C;
  transform: rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  transform-origin: 50% 100%; will-change: transform;
  transition: box-shadow .5s var(--ease), border-color .4s var(--ease);
  box-shadow: 0 44px 100px -34px rgba(0,0,0,.92), 0 0 90px -22px rgba(123,108,255,.34);
}
.embed--cinema:hover {
  border-color: rgba(123,108,255,.55);
  box-shadow: 0 50px 112px -34px rgba(0,0,0,.94), 0 0 128px -20px rgba(123,108,255,.50);
}

/* Border beam: a light travelling the frame edge. One masked pseudo-element
   ring, so it costs a single composited layer rather than animating borders. */
.embed--cinema::before {
  /* inset:0, not -1px — the frame clips overflow, so a negative inset would
     cut the beam off entirely. */
  content: ""; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--beam),
      transparent 0deg 200deg,
      rgba(57,224,208,.55) 244deg,
      rgba(123,108,255,.95) 268deg,
      rgba(232,163,61,.65) 290deg,
      transparent 330deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: beam 7s linear infinite;
  opacity: .9; transition: opacity .4s var(--ease);
}
.embed--cinema:hover::before { opacity: 1; }
/* Dim it while a build is running — it should frame the game, not compete. */
.embed--cinema.is-live::before { opacity: .35; animation-duration: 14s; }
@keyframes beam { to { --beam: 360deg; } }

/* Amber variant — PureHarvest. Same frame, warm light, so the two demo
   sections read as siblings rather than a repeat of the same moment. */
.embed--amber { border-color: rgba(232,163,61,.26); }
.embed--amber:hover {
  border-color: rgba(232,163,61,.5);
  box-shadow: 0 50px 112px -34px rgba(0,0,0,.94), 0 0 128px -20px rgba(232,163,61,.34);
}
.embed--amber { box-shadow: 0 44px 100px -34px rgba(0,0,0,.92), 0 0 90px -22px rgba(232,163,61,.22); }
.embed--amber::before {
  background: conic-gradient(from var(--beam),
      transparent 0deg 200deg,
      rgba(232,163,61,.5) 244deg,
      rgba(242,176,82,.95) 268deg,
      rgba(69,165,151,.55) 290deg,
      transparent 330deg 360deg);
}
.stagewrap--amber::after { background: linear-gradient(to bottom, rgba(232,163,61,.16), transparent 70%); }

/* ── PureHarvest section ───────────────────────────────── */
.ph { padding-top: var(--section-y); }
.ph-top {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(40px, 6vw, 88px);
  align-items: end; margin: 0 0 var(--lead-gap);
}
.ph-aside { display: grid; gap: var(--s6); padding-bottom: var(--s1); }
.ph-sub { font-size: 15.5px; line-height: 1.66; color: var(--dim); max-width: 46ch; margin: 0; }
.ph-meta {
  display: grid; grid-template-columns: repeat(4, auto); gap: var(--s5) var(--s7);
  justify-content: start; border-top: 1px solid var(--line); padding-top: var(--s5);
}
.ph-meta .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); display: block; margin-bottom: var(--s1); }
.ph-meta .v { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* Slow light sweep across the poster, so the frame reads as lit glass. */
.embed--cinema .live-poster::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(104deg, transparent 38%, rgba(190,196,255,.05) 48%, rgba(190,196,255,.09) 51%, transparent 62%);
  transform: translateX(-40%);
  animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep {
  0%, 62%  { transform: translateX(-45%); }
  100%     { transform: translateX(45%); }
}
/* Live iframe: no transform at all. Transforming it breaks pointer
   coordinates inside the game and forces costly compositing. */
.embed--cinema.is-live { transform: none; will-change: auto; }
.embed--cinema .live-stage { aspect-ratio: 16 / 9; }
.embed--cinema .live-bar { padding: 11px 16px; font-size: 11px; }
.embed--cinema .live-poster { gap: 20px; }
.embed--cinema .live-poster .msg { font-size: 14.5px; max-width: 44ch; }

/* ── voidpath band — DEEP FIELD ────────────────────────── */
.deep {
  position: relative; margin: var(--section-y) 0 0; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding: clamp(84px, 11vh, 140px) 0 clamp(76px, 10vh, 124px);
  background: #05060A; isolation: isolate;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
#deepCv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.deep-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(115% 80% at 20% 6%, rgba(123,108,255,.30), transparent 60%),
    radial-gradient(85% 65% at 90% 98%, rgba(57,224,208,.15), transparent 56%),
    linear-gradient(to top, rgba(5,6,10,.95) 10%, rgba(5,6,10,.3) 58%, transparent 86%);
}
.deep-in { position: relative; z-index: 2; width: 100%; }
/* Header row carries the text so the frame below can run full width —
   previously the frame was capped at 760px and hugged the left edge. */
.deep-top {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(40px, 6vw, 88px);
  align-items: end; margin: 0 0 clamp(48px, 7vh, 86px);
}
.deep-aside { display: grid; gap: 34px; padding-bottom: 6px; }
.deep-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--cyan); margin: 0 0 28px; }
.deep-h { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 9.4vw, 128px); line-height: .84; letter-spacing: -.028em; margin: 0; max-width: 13ch; }
.deep-h em { font-style: italic; background: linear-gradient(96deg, var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.deep-sub { font-size: 16px; line-height: 1.64; color: #8C93A8; max-width: 46ch; margin: 0; }
.deep-meta {
  display: grid; grid-template-columns: repeat(4, auto); gap: 20px 42px;
  justify-content: start; border-top: 1px solid rgba(123,108,255,.24); padding-top: 26px;
}
.deep-meta .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: #6E7590; display: block; margin-bottom: 5px; }
/* Chivo, not Bodoni. The serif is reserved for the one big headline —
   using it for data too made the section read as a different site. */
.deep-meta .v { font-size: 19px; font-weight: 400; color: #ECEEF6; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ── terminal ──────────────────────────────────────────── */
.term-sec { padding-top: var(--section-y); }
.term-lead { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: end; margin-bottom: var(--lead-gap); }
.term { background: #090C10; border: 1px solid var(--line2); border-radius: 3px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.9); }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--mute); background: #0C1015; }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); display: block; }
.term-bar .lbl { margin-left: auto; text-transform: uppercase; letter-spacing: .18em; font-size: 9px; }
/* Terminal output scrolls sideways rather than wrapping — a wrapped
   fixed-width report reads as broken, and the page must never scroll. */
.term-body {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.85;
  padding: 20px 18px 24px; min-height: 340px; color: var(--dim);
  white-space: pre; overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
}
.term-body .c-p { color: var(--live); }
.term-body .c-a { color: var(--amber); }
.term-body .c-r { color: #E36B5C; }
.term-body .c-i { color: var(--ink); }
.term-body .c-d { color: var(--mute); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--amber); vertical-align: -2px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

/* ── approach (expanded) ───────────────────────────────── */
.pri { padding-top: var(--section-y); }
.pri-lead { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: end; margin-bottom: var(--lead-gap); }
.pri-list { border-top: 1px solid var(--line); }
.prow {
  display: grid; grid-template-columns: 46px 1.05fr 1.35fr; gap: 30px;
  padding: 32px 4px; border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), padding-left .4s var(--ease);
}
.prow:hover { background: rgba(19,26,33,.5); padding-left: 14px; }
.prow .pn { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--amber); font-variant-numeric: tabular-nums; padding-top: 5px; }
.prow h3 { font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.024em; margin: 0 0 10px; line-height: 1.16; text-wrap: balance; }
.prow .claim { font-size: 14px; line-height: 1.62; color: var(--mute); margin: 0; max-width: 34ch; }
.prow .detail { font-size: 15px; line-height: 1.7; color: var(--dim); margin: 0; }
.prow .detail b { color: var(--ink); font-weight: 400; }
.prow .src {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 9px;
}
.prow .src i { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); display: block; flex: none; }

/* ── stack ─────────────────────────────────────────────── */
.stack { padding-top: var(--section-y); }
.stk-lead { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: end; margin-bottom: var(--lead-gap); }
.stk-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 3px; overflow: hidden;
}
.stk-col { background: var(--panel); padding: 24px 22px 26px; min-width: 0; transition: background .4s var(--ease); }
.stk-col:hover { background: var(--panel2); }
.stk-col .n { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
.stk-col h3 { font-size: 16px; font-weight: 700; letter-spacing: -.018em; margin: 0 0 14px; line-height: 1.25; }
.stk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stk-list li {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em;
  color: var(--dim); line-height: 1.45; display: flex; gap: 9px; align-items: baseline;
}
.stk-list li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--line2); flex: none; transform: translateY(-3px); }

/* ── services ──────────────────────────────────────────── */
.svc { padding-top: var(--section-y); }
.svc-lead { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: end; margin-bottom: var(--lead-gap); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.scard { background: var(--panel); padding: 30px 26px 32px; display: flex; flex-direction: column; gap: 14px; transition: background .4s var(--ease); }
.scard:hover { background: var(--panel2); }
.scard .top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.scard .n { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.scard .eng { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.scard h3 { font-size: 21px; font-weight: 700; letter-spacing: -.024em; margin: 0; line-height: 1.2; }
.scard p { font-size: 14.5px; line-height: 1.66; color: var(--dim); margin: 0; }
.scard .does { display: grid; gap: 7px; margin-top: 2px; }
.scard .does span { font-size: 13px; color: var(--mute); display: flex; gap: 10px; line-height: 1.5; }
.scard .does span::before { content: "—"; color: var(--line2); flex: none; }
.scard .proof {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.scard .proof b { color: var(--dim); font-weight: 400; }

/* ── console — ship's comms terminal ───────────────────── */
.form-sec { padding-top: var(--section-y); }
.form-lead { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: end; margin-bottom: var(--lead-gap); }
.form-lead h2 { font-size: clamp(32px, 6.25vw, 72px); line-height: .94; letter-spacing: -.045em; max-width: 11ch; }

.cns {
  --sc-void:  #03060D;
  --sc-panel: #070C16;
  --sc-edge:  rgba(126,178,214,.16);
  --sc-phos:  #7FE9D0;
  --sc-amber: #E8A33D;
  --sc-dim:   #5A7288;
  --sc-deep:  #2B3A4C;

  position: relative; max-width: 1040px;
  border-radius: 10px;
  /* Machined frame: a bright top edge and a dark underside, no fake screws. */
  background: linear-gradient(180deg, #101826, #070B13 34%, #050810);
  padding: 12px;
  box-shadow:
    inset 0 1px 0 rgba(160,200,235,.16),
    inset 0 -1px 0 rgba(0,0,0,.7),
    0 40px 90px -40px rgba(0,0,0,.95),
    0 0 70px -30px rgba(57,224,208,.20);
}

.cns-glass {
  position: relative; border-radius: 5px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #071120 0%, var(--sc-void) 70%);
  border: 1px solid var(--sc-edge);
}
/* The curve. A vignette plus a soft top sheen reads as glass over a tube
   far better than a border radius does. */
.cns-glass::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(180,230,255,.030) 0 1px, transparent 1px 3px),
    linear-gradient(178deg, rgba(190,235,255,.07) 0%, transparent 18%),
    radial-gradient(130% 110% at 50% 45%, transparent 52%, rgba(0,0,0,.72) 100%);
}

/* ── top strip ── */
.cns-top {
  display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap;
  padding: 10px var(--s5); border-bottom: 1px solid var(--sc-edge);
  background: linear-gradient(180deg, rgba(127,233,208,.05), transparent);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sc-dim);
}
.cns-id { color: var(--sc-phos); text-shadow: 0 0 12px rgba(127,233,208,.55); }
.cns-lamps { display: flex; gap: 5px; }
.cns-lamps i { width: 5px; height: 5px; border-radius: 50%; background: var(--sc-deep); display: block; }
.cns-lamps i.on { background: var(--sc-phos); box-shadow: 0 0 8px rgba(127,233,208,.9); }
.cns-meter { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.cns-meter .track { width: 88px; height: 3px; border-radius: 3px; background: rgba(127,233,208,.14); overflow: hidden; }
.cns-meter .fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--sc-amber), var(--sc-phos)); transition: width .5s var(--ease); box-shadow: 0 0 10px rgba(127,233,208,.6); }
.cns-meter .pct { color: var(--sc-phos); font-variant-numeric: tabular-nums; }
.cns-restart {
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: #3E5468; transition: color .2s var(--ease);
}
.cns-restart:hover { color: var(--sc-amber); }

/* ── transcript ── */
.cns-screen {
  position: relative; z-index: 2;
  padding: var(--s5) var(--s5) var(--s4);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.8;
  min-height: 380px; max-height: 58vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--s3);
  scrollbar-width: thin; scrollbar-color: rgba(127,233,208,.3) transparent;
}
.cns-screen::-webkit-scrollbar { width: 5px; }
.cns-screen::-webkit-scrollbar-thumb { background: rgba(127,233,208,.3); border-radius: 5px; }

.cns-line { display: flex; gap: var(--s3); align-items: baseline; }
.cns-line .mk { flex: none; width: 10px; text-align: center; opacity: .8; }
.cns-line .tx { min-width: 0; word-break: break-word; }

.cns-sys .mk { color: var(--sc-deep); }
.cns-sys .tx { color: var(--sc-dim); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.cns-bot .mk { color: var(--sc-phos); }
.cns-bot .tx { color: #CFE6E2; text-shadow: 0 0 16px rgba(127,233,208,.22); }
.cns-bot .tx b { color: var(--sc-phos); font-weight: 400; text-shadow: 0 0 16px rgba(127,233,208,.7); }
.cns-you .mk { color: var(--sc-amber); }
.cns-you .tx { color: var(--sc-amber); text-shadow: 0 0 14px rgba(232,163,61,.4); }
/* An answer is edited where it sits — no jumping to the bottom. */
.cns-inline-input {
  background: none; border: 0; outline: none; padding: 0; margin: 0;
  font: inherit; color: var(--sc-amber); caret-color: var(--sc-amber);
  min-width: 12ch; width: 100%; max-width: 40ch; appearance: none;
}
.cns-inline-area {
  display: block; resize: none; max-width: none; min-height: 0;
  line-height: 1.8; overflow-y: auto; white-space: pre-wrap;
}
.cns-line.is-editing { align-items: flex-start; }
.cns-line.is-editing .tx { flex: 1; }
.cns-inline-msg { color: #E36B5C; font-size: 11.5px; }
/* A note, not an error — the answer may well be right. */
.cns-inline-msg.is-warn { color: var(--sc-amber); opacity: .78; }
.cns-line.is-editing { background: rgba(232,163,61,.06); border-radius: 2px; }
.cns-line.is-stale .tx { text-decoration: underline wavy rgba(227,107,92,.5); text-underline-offset: 4px; }
.cns-line.is-warn .tx { text-decoration: underline dotted rgba(232,163,61,.45); text-underline-offset: 4px; }

/* An answer can be clicked to change it. */
.cns-editable { cursor: pointer; border-radius: 2px; transition: background .2s var(--ease); }
.cns-editable:hover, .cns-editable:focus-visible { background: rgba(232,163,61,.09); }
.cns-editable:hover .tx::after,
.cns-editable:focus-visible .tx::after {
  content: "  change"; font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: #6E8FA6; text-shadow: none;
}
/* Already editing — the hint has served its purpose. */
.cns-editable.is-editing { cursor: text; }
.cns-editable.is-editing .tx::after { content: none; }
.cns-note .mk { color: var(--sc-deep); }
.cns-note .tx { color: #7E93A8; font-size: 12.5px; }
.cns-err .mk { color: #E36B5C; }
.cns-err .tx { color: #E36B5C; }
/* One error line per question, rewritten in place. The flash re-fires so a
   repeated mistake still registers even though the row never moved. */
.cns-err.is-flash .tx { animation: errflash .34s var(--ease); }
@keyframes errflash {
  0%   { opacity: .25; transform: translateX(-4px); }
  55%  { opacity: 1;   transform: translateX(3px); }
  100% { opacity: 1;   transform: none; }
}
.cns-inline-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cns-typing .tx::after { content: "▊"; color: var(--sc-phos); margin-left: 2px; animation: blink 1s steps(2) infinite; }

/* What ARC-1 is doing, in the log rather than on a panel. */
.cns-think { display: flex; gap: var(--s3); align-items: baseline; color: var(--sc-amber); }
.cns-think .mk { flex: none; width: 10px; text-align: center; }
.cns-think .tx { opacity: .85; }

/* ── the prompt lives in the log, not in a box under it ── */
.cns-ask { display: flex; gap: var(--s3); align-items: baseline; }
.cns-ask[hidden] { display: none; }
.cns-ask .mk { flex: none; width: 10px; text-align: center; color: var(--sc-amber); }
.cns-entry {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; resize: none;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.8;
  color: var(--sc-amber); caret-color: var(--sc-amber);
  padding: 0; margin: 0; overflow: hidden; appearance: none;
  text-shadow: 0 0 14px rgba(232,163,61,.35);
}
.cns-entry:not(.is-long) { flex: 0 1 auto; }
.cns-entry.is-long { flex: 1; width: auto !important; }
.cns-entry::placeholder { color: #3B5064; text-shadow: none; }
.cns-send {
  flex: none; font-family: var(--mono); font-size: 12px; color: #46617A;
  padding: 0 4px; transition: color .2s var(--ease);
}
.cns-send:hover { color: var(--sc-amber); }
/* Reads as another line of the log — same marker column, same rhythm — but
   it is rewritten in place on every keystroke and never appended, so
   mistakes cannot stack up. */
.cns-status {
  display: flex; gap: var(--s3); align-items: baseline; margin: 0;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.8;
  transition: color .2s var(--ease);
}
.cns-status[hidden] { display: none; }
.cns-status .mk { flex: none; width: 10px; text-align: center; opacity: .9; }
.cns-status .tx { min-width: 0; }
.cns-status.is-idle { color: #35485C; }
.cns-status.is-wait { color: var(--sc-amber); }
.cns-status.is-ok   { color: var(--sc-phos); }

.cns-status.is-bad  { color: #E36B5C; }

/* A suggestion is not a failure — amber, not red. */
.cns-status.is-hint { color: var(--sc-amber); }

.cns-status.is-bad, .cns-status.is-ok, .cns-status.is-hint { animation: statusin .28s var(--ease); }
@keyframes statusin { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }

.cns-send:disabled { opacity: .3; cursor: not-allowed; }
.cns-send:disabled:hover { color: #46617A; }



.cns-hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cns-privacy {
  display: flex; align-items: flex-start; gap: 12px;
  width: min(100%, 1040px); margin: var(--s4) 0 0;
  font-size: 12.5px; color: var(--dim); line-height: 1.62;
}
.cns-privacy::before {
  content: "↳"; flex: none; margin-top: 1px;
  color: var(--cyan); font-family: var(--mono); font-size: 16px; line-height: 1.5;
  text-shadow: 0 0 12px rgba(57,224,208,.36);
}

@media (max-width: 780px) {
  .cns { padding: 8px; }
  .cns-screen { padding: var(--s4); font-size: 12.5px; min-height: 320px; }
  .cns-entry { font-size: 12.5px; }
  .cns-top { font-size: 8.5px; gap: var(--s3); }
}
@media (prefers-reduced-motion: reduce) {
  .cns-inline-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cns-typing .tx::after { animation: none; }
}

/* ── contact ───────────────────────────────────────────── */
.end { border-top: 1px solid var(--line); margin-top: var(--section-y); padding-top: var(--section-y); padding-bottom: var(--s8); }
.end-h { font-weight: 900; font-size: clamp(32px, 6.25vw, 72px); line-height: .96; letter-spacing: -.036em; margin: 0 0 34px; max-width: 14ch; text-wrap: balance; }
.end-h .fade { color: var(--mute); }
.end-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: start; }
.end-p { font-size: 16px; line-height: 1.66; color: var(--dim); max-width: 46ch; margin: 0 0 30px; }
.links { display: grid; gap: 0; border-top: 1px solid var(--line); }
.lk {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  transition: padding-left .35s var(--ease), color .3s var(--ease);
}
.lk:hover { padding-left: 12px; color: var(--amber); }
.lk .t { color: var(--mute); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; flex: none; }
.lk .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot {
  margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}

/* ── responsive ────────────────────────────────────────── */
/* ── ≤1180: tighten the fixed columns before they squeeze ── */
@media (max-width: 1180px) {
  :root { --pad: 26px; }
  .whead { grid-template-columns: 40px minmax(0,1fr) 160px max-content 20px; gap: 16px; }
  .deep-meta { gap: 32px; }
}

/* ── ≤980: two-column layouts collapse ── */
@media (max-width: 980px) {
  .term-lead, .pri-lead, .svc-lead, .stk-lead, .form-lead { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .svc-grid { grid-template-columns: 1fr; }
  .end-grid { grid-template-columns: 1fr; gap: 36px; }
  .wgrid { grid-template-columns: 1fr; gap: 26px; }
  .wgrid .sp { display: none; }
  .prow { grid-template-columns: 1fr; gap: 14px; }
  .prow .pn { padding-top: 0; }
  .prow .claim { max-width: none; }
  .hero-strip-in { grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
  .strip-c { padding: 13px 0; border-top: 1px solid var(--line); }
  .strip-c:nth-child(-n+2) { border-top: 0; }
  .ph-top { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .ph-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
}

/* ── ≤900: the kind column stops fitting beside the name ── */
@media (max-width: 1100px) {
  .deep-top, .ph-top { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .deep-aside, .ph-aside { gap: 22px; }
}
@media (max-width: 900px) {
  .whead { grid-template-columns: 40px minmax(0,1fr) max-content 20px; }
  .wkind { display: none; }
  .deep { min-height: 0; padding: 72px 0 60px; }
  /* No tilt on touch: there is no hover to reward it and it costs paint. */
  .stagewrap { perspective: none; }
  .embed--cinema { transform: none; }
  .stagewrap::after { height: 54px; }
  .deep-meta, .ph-meta { grid-template-columns: repeat(2, auto); }
}

/* ── phone: turn the rail into a compact lower navigation ─ */
@media (max-width: 720px) {
  :root { --rail: 0px; --pad: 24px; --page-gutter: 0px; }
  .rail {
    top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 52px;
    flex-direction: row; padding: 0; border-right: 0; border-top: 1px solid var(--line);
    gap: 0;
    background: linear-gradient(180deg, rgba(20,27,35,.98), rgba(7,9,12,.98) 42%);
    backdrop-filter: blur(16px);
    box-shadow: 0 -1px 0 rgba(228,234,241,.035), 0 -18px 34px rgba(0,0,0,.34);
    transition: transform .32s var(--ease);
  }
  body.mobile-nav-hidden .rail { transform: translateY(calc(100% + 2px)); }
  body.mobile-nav-hidden .rail:focus-within { transform: none; }
  .rail-mark { display: none; }
  .rail-nav { flex-direction: row; gap: 20px; flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; padding: 0 14px; height: 100%; align-items: center; scrollbar-width: none; -ms-overflow-style: none; }
  .rail-nav::-webkit-scrollbar { display: none; }
  .rail-nav a { writing-mode: horizontal-tb; font-size: 9px; letter-spacing: .12em; white-space: nowrap; flex: none; padding: 4px 0; transform: scale(1); transition: color .25s var(--ease), transform .32s var(--ease); }
  .rail-nav a.on { transform: scale(1.08); }
  .rail-nav a::before { left: 50%; top: -2px; transform: translateX(-50%) scale(0); }
  .rail-nav a.on::before { transform: translateX(-50%) scale(1); }
  .rail-prog { width: 100%; height: 1px; position: absolute; top: -1px; left: 0; background: transparent; }
  .rail-prog i { width: 0%; height: 100%; }
  .page { margin-left: 0; padding-inline: 0; padding-bottom: 52px; }
  /* The lower rail can scroll internally; it must never create page-wide
     horizontal scrolling. */
  html, body { overflow-x: clip; }
  /* Phone is a display layout, not a shrunken desktop layout. Keep the
     headings deliberately dominant, while preserving a safe text measure. */
  h1 {
    font-size: clamp(56px, 14vw, 76px);
    max-width: 10ch;
    overflow-wrap: anywhere;
  }
  h2, .form-lead h2, .end-h {
    font-size: clamp(48px, 12vw, 68px);
    max-width: 11ch;
    overflow-wrap: anywhere;
  }
  .deep-h {
    font-size: clamp(54px, 14vw, 76px);
    max-width: 9ch;
    overflow-wrap: anywhere;
  }
  .deep-aside { gap: 28px; padding-bottom: 0; }
  /* Phone-only metadata: keep the facts close together instead of using the
     full section width. Desktop and tablet retain their original layouts. */
  .ph-meta, .deep-meta {
    width: 100%; grid-template-columns: max-content max-content;
    justify-content: start; column-gap: 140px; row-gap: 20px;
    padding-left: var(--s4); padding-right: 0;
  }
  .ph-meta {
    width: auto; grid-template-columns: max-content max-content;
    column-gap: clamp(44px, 12vw, 60px); padding-right: 0;
  }
  .ph-meta .v { font-size: clamp(17px, 5vw, 19px); white-space: nowrap; }
  .deep-meta {
    padding-top: 18px;
    border: 0; border-top: 1px solid rgba(123,108,255,.24);
  }
  .deep-meta > div {
    min-width: 0; padding: 0; border: 0;
  }
  .deep-meta .v { font-size: 18px; }
  /* On phones the copy may be several lines taller than desktop. The facts
     grid therefore belongs in normal flow; an absolutely pinned strip can
     otherwise cover the last lines or the CTA on shorter viewports. */
  .hero { min-height: 0; padding: 84px var(--pad) 0; }
  .ops-notice { left: 12px; bottom: 64px; width: calc(100vw - 24px); }
.hero-strip {
    position: static; left: auto; right: auto; bottom: auto;
    align-self: stretch; width: auto; margin: 44px calc(var(--pad) * -1) 0;
  }
  .whead { grid-template-columns: minmax(0,1fr) max-content 20px; gap: 12px; padding: 20px 2px; }
  .wnum { display: none; }
  .wstat { font-size: 9px; padding: 4px 6px; }
  .term-body { font-size: 11px; padding: 16px 14px 20px; min-height: 280px; }
  .live-stage { aspect-ratio: 4 / 3; }
  /* PureHarvest is a storefront, so its live preview becomes a real phone
     viewport rather than a short landscape crop. This is deliberately scoped
     to the mobile-only frame; desktop keeps the cinema presentation. */
  .embed--phone {
    width: min(100%, 390px);
    margin-inline: auto;
  }
  .embed--phone .live-stage { aspect-ratio: 9 / 16; }
  .live-bar, .live-foot { font-size: 9.5px; }
  /* The idle and running states occupy the same quiet footer lane. The
     controls become compact on a phone instead of turning into a second UI. */
  .embed--phone .live-foot, .embed--phone .embed-ctl {
    min-height: 44px; padding: 8px 10px; gap: 7px;
  }
  .embed--phone .ctl-btn { padding: 5px 7px; font-size: 8.5px; letter-spacing: .1em; }
  .embed--phone .ctl-run { margin-left: auto; font-size: 8px; letter-spacing: .11em; }
  .stk-grid { grid-template-columns: 1fr; }
  .prow { padding: 26px 2px 0; }
  .pri .prow .src {
    height: 64px;
    margin: 16px 0 0;
    padding: 0;
    align-items: center;
  }
  .scard { padding: 26px 20px 28px; }
  .cns-privacy { gap: 10px; font-size: 12.5px; }
  .end { padding-bottom: var(--s5); }
  .foot { display: grid; justify-content: start; margin-top: 42px; padding-top: 16px; gap: 5px; font-size: 9px; line-height: 1.35; letter-spacing: .13em; }
  .foot span { white-space: nowrap; }
}

/* ── ≤400: smallest phones ── */
@media (max-width: 400px) {
  :root { --pad: 20px; }
  .whead { grid-template-columns: minmax(0,1fr) 20px; }
  .wstat { display: none; }
  .hero-strip-in { grid-template-columns: 1fr; }
  .strip-c { border-top: 1px solid var(--line); }
  .strip-c:first-child { border-top: 0; }
  .ph-meta { column-gap: 44px; row-gap: 18px; }
  .deep-meta { column-gap: 140px; row-gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .embed--cinema { transform: none !important; }
  .embed--cinema::before { animation: none; }
  .embed--cinema .live-poster::after { animation: none; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .pulse, .caret { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* section heading spacing (was an inline style attribute) */
.work-h2 { margin-bottom: var(--lead-gap); }

/* No scripting at all — reveal everything, drop the loader and the cursor. */
@media (scripting: none) {
  .rv { opacity: 1; transform: none; animation: none; }
  #boot { display: none; }
  .cur-dot, .cur-ring { display: none; }
}
