/* ============================================================
   ZEROVYN v3 — CINEMATIC SYSTEMS LAYER
   Design tokens. Every visual decision traces to this file.
   Direction: scrolltide.co (canvas hero + scrim + bottom fade,
   Bricolage Grotesque / Inter) x motionsites.ai (massive
   uppercase 900 editorial h1). Zerovyn 6-hue Spectrum kept;
   no lime. This file outranks components.css — check both.
   ============================================================ */

:root {
  /* --- surfaces: never pure black --- */
  --void:     #07080A;
  --dark:     #0B0C0F;
  --lifted:   #121316;
  --panel:    #17191D;
  --line:     rgba(255,255,255,0.08);
  --line-2:   rgba(255,255,255,0.14);

  /* --- ink (body text tuned for >= 7:1 on every surface) --- */
  --txt:      #F5F7FA;
  --txt-2:    #C3CAD4;
  --txt-3:    #A9B2BD;
  /* scrolltide reference names, mapped onto this palette so new chrome can
     be written the way the reference writes it instead of re-deriving hex. */
  --bone:     #F3F5F8;
  --mist:     #9AA2AD;
  --dim:      #5B636E;
  --surface:  #101318;

  /* --- signal --- */
  --sig:      #818CF8;
  --sig-dim:  #5B63C9;
  --sig-ink:  #0B0C0F;

  /* ---- Zerovyn Spectrum: six hues, one discipline each. No lime. ---- */
  --hue-1:  #38BDF8;  /* intelligence — sky    */
  --hue-2:  #818CF8;  /* product    — indigo  */
  --hue-3:  #C084FC;  /* application — violet */
  --hue-4:  #F472B6;  /* automation — rose    */
  --hue-5:  #FB7185;  /* growth     — coral   */
  --hue-6:  #22D3EE;  /* operations — cyan    */

  /* brand gradient — the signature sweep */
  --zv-grad: linear-gradient(112deg, #38BDF8 0%, #818CF8 36%, #C084FC 66%, #F472B6 100%);

  /* --- alert / warn (sparse) --- */
  --amber:    #FF9F43;
  --green:    #2FA84F;

  /* --- type: Bricolage Grotesque display + Inter body --- */
  --f-display: "Bricolage Grotesque", "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* --- rhythm --- */
  --r:   14px;
  --r-s: 10px;
  --r-l: 22px;
  --wrap: 1200px;
  --gut:  clamp(20px, 4.4vw, 64px);
  --nav-h: 66px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--txt);
  /* soft ambient hue bloom — the static layer under the hero canvas */
  background-image:
    radial-gradient(70% 46% at 14% -10%, color-mix(in srgb, var(--hue-1) 13%, transparent) 0%, transparent 64%),
    radial-gradient(54% 42% at 88% 4%, color-mix(in srgb, var(--hue-3) 11%, transparent) 0%, transparent 62%),
    radial-gradient(76% 60% at 50% 114%, color-mix(in srgb, var(--hue-4) 8%, transparent) 0%, transparent 68%);
  background-attachment: fixed;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Leo 2026-09-28: hard width clamp. Any element that computes wider than
     the viewport must be clipped here, never allowed to stretch the layout
     width — that stretch is exactly what makes mobile browsers allow a
     pinch-zoom-OUT past 1:1, which reads as a broken page. */
  max-width: 100vw;
  /* NOTE: do NOT add `contain: layout` here — it downgrades position:fixed
     children to absolute, which breaks the pinned chat widget. The width
     clamp above is what guards the mobile zoom-out bug. — Leo 2026-09-28 */
}
/* Same clamp on html: visualViewport width is what the browser actually
   lets the user see, and it is the one that drives the zoom-out bug. */
html { overflow-x: clip; max-width: 100%; }

/* Gate is up => the page is not navigable yet */
body.is-booting { overflow: hidden; }

::selection { background: color-mix(in srgb, var(--hue-2) 55%, transparent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--sig);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gut);
}

/* Scrolltide's section spacing is clamp(72px,10.5vw,134px) on every section.
   Match it exactly so the whole page breathes at one consistent pace. */
.section { padding-block: clamp(72px, 10.5vw, 134px); position: relative; }
.section--well { background: var(--dark); border-block: 1px solid var(--line); }

/* ---------- type scale ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--txt-3);
  font-weight: 500;
}

/* Scrolltide's kickers sit at 11px / +0.05em tracking. Tighten the loose
   0.16em spread, which read as airy against the rest of the page. */
.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--txt-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--sig);
  flex: none;
}

.h1 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.03;
  font-size: clamp(30px, 4.3vw, 58px);
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.024em;
  line-height: 1.08;
  font-size: clamp(24px, 3vw, 40px);
  margin: 0;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.15;
  font-size: clamp(19px, 1.9vw, 28px);
  margin: 0;
}
.lead {
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.66;
  color: var(--txt-2);
  max-width: 64ch;
  margin: 0;
}
.body { color: var(--txt-2); max-width: 64ch; margin: 0; }
.body--sm { font-size: 14px; line-height: 1.62; }

/* ---------- badges & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sig) 40%, transparent);
  color: #C7CCF8;
  background: color-mix(in srgb, var(--sig) 9%, transparent);
  white-space: nowrap;
}
.badge i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sig);
  animation: pulse 2.1s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .28; } }

/* pill chips — filter + filterable groups (ScrollTide DNA) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--void);
  color: var(--txt-2);
  white-space: nowrap;
}
.pill i {
  font-style: normal;
  font-size: 9px;
  color: var(--txt-3);
  font-variant-numeric: tabular-nums;
}
.pill b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--txt-3);
}
.pill--live {
  color: #C7CCF8;
  border-color: color-mix(in srgb, var(--sig) 46%, transparent);
  background: color-mix(in srgb, var(--sig) 9%, transparent);
}
.pill--live i, .pill--live b { color: #C7CCF8; }
.pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0; padding: 0; list-style: none;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--lifted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--txt);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;          /* Leo: keeps the rotating button light ring clipped */
  isolation: isolate;        /* Leo: keeps the light layer under the label */
  transition: border-color .24s ease, color .24s ease, background .24s ease,
              transform .24s cubic-bezier(.16,1,.3,1), box-shadow .24s ease;
}
.btn svg { flex: none; }
.btn:hover { border-color: var(--sig); color: var(--sig); transform: translateY(-2px); }
.btn--p {
  background: var(--zv-grad);
  border-color: transparent;
  color: #0B0C0F;
  box-shadow: 0 10px 32px -12px color-mix(in srgb, var(--hue-3) 62%, transparent);
}
.btn--p:hover { color: #0B0C0F; filter: brightness(1.08); transform: translateY(-2px); }
.btn--ghost { --bg: transparent; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- panels ---------- */
.panel {
  background: var(--dark);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(20px, 2.4vw, 34px);
}
.panel--lift { background: var(--lifted); }

/* ============================================================
   NAV — fixed 66px, solidifies past 24px
   ============================================================ */
.nav {
  /* Scrolltide navbar: sticky, transparent, hairline border-b on the inner strip */
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav--solid {
  background: rgba(7,8,10,.72);
  border-bottom-color: var(--line);
}
.nav__in {
  display: flex; align-items: center; gap: 24px;
  width: 100%; max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--gut);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  font-size: 14px; font-weight: 400; color: #9aa2ad;
  text-decoration: none; border-radius: 999px;
  padding: 6px 14px;
  transition: color .24s ease, background .24s ease;
}
.nav__links a:hover { color: #f3f5f8; background: rgba(255,255,255,.05); }
.nav__cta-solid {
  /* Leo 2026-09-29: Zerovyn Spectrum gradient — the brand sweep, not flat white. */
  font-size: 14px; font-weight: 600;
  letter-spacing: .01em;
  background: var(--zv-grad);
  color: #07080a;
  border-radius: 999px; padding: 8px 16px;
  text-decoration: none;
  position: relative;
  transition: transform .28s cubic-bezier(.16,1,.3,1), filter .28s ease;
}
.nav__cta-solid:hover { transform: translateY(-1px); filter: brightness(1.12); }
.nav__cta-solid:active { transform: translateY(0); }
.nav__cta-solid:focus-visible {
  outline: 2px solid var(--sig);
  outline-offset: 3px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--zv-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-decoration: none;
  flex: none;
}
.brand__name {
  font-family: "Bricolage Grotesque", var(--f-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: normal;
}
.brand__mark { width: 24px; height: 24px; flex: none; }

.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__links a {
  position: relative;
  font-size: 13px;
  color: var(--txt-2);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav__links a:hover { color: var(--txt); background: color-mix(in srgb, #fff 5%, transparent); }
.nav__links a.is-active { color: var(--txt); background: color-mix(in srgb, var(--sig) 12%, transparent); }
.nav__cta { margin-left: 12px; padding: 10px 18px; font-size: 12.5px; }

.nav__toggle { display: none; }
.nav__drawer { display: none; }

/* ============================================================
   BOOT GATE
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gate--closed { display: none; }
.gate__in { width: min(660px, 100%); display: flex; flex-direction: column; gap: 16px; }
.gate__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--dark);
  padding: 14px 18px;
}
.gate__brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--txt);
}
.gate__brand svg { width: 24px; height: 24px; }
.gate__name {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.03em; font-size: 16px;
}
.gate__ver {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--txt-3);
}
.gate__log {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.95;
  color: var(--txt-3);
  min-height: 188px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--dark);
  overflow: hidden;
}
.gate__log .l { display: block; white-space: pre-wrap; }
.gate__log .l--ok { color: var(--sig); }
.gate__log .l--key { color: var(--txt); }
.gate__log .cur {
  display: inline-block; width: 7px; height: 12px;
  background: var(--sig); vertical-align: -1px; margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.gate__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.gate__bar i { display: block; height: 100%; width: 0%; background: var(--zv-grad); }
.gate__cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.gate__hint {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--txt-3);
}
.gate__hint b { color: var(--sig); font-weight: 500; }
.gate__skip {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--txt-3);
  background: none; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 3px 1px; cursor: pointer; transition: color .18s ease, border-color .18s ease;
}
.gate__skip:hover { color: var(--sig); border-bottom-color: var(--sig); }
.gate--leaving { transition: opacity .5s ease, clip-path .6s cubic-bezier(.7,0,.2,1); }

/* ============================================================
   HERO — "The Convergence"
   One idea: many independent systems, one coherent core.
   ------------------------------------------------------------
   Art direction: concentric rings + stacked orbital layers
   collapsing into a single bright point. Depth via scale and
   opacity only — no chrome, no glow, no dashboard.
   Graphite, off-white, one accent.
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 40px 128px;
  overflow: hidden;
  isolation: isolate;
  background: var(--void);
}

/* ---- field: hairline grid + one controlled bloom + scrim + bottom fade ---- */
.hero__field { position: absolute; inset: 0; z-index: 0; overflow: hidden; contain: layout paint; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 66% at 50% 46%, #000 6%, rgba(0,0,0,.35) 52%, transparent 82%);
  -webkit-mask-image: radial-gradient(70% 66% at 50% 46%, #000 6%, rgba(0,0,0,.35) 52%, transparent 82%);
}
.hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(56% 50% at 74% 46%, color-mix(in srgb, var(--sig) 13%, transparent), transparent 64%);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(64% 58% at 40% 50%, color-mix(in srgb, var(--void) 64%, transparent), transparent 80%),
    linear-gradient(90deg, var(--void) 0%, color-mix(in srgb, var(--void) 76%, transparent) 36%, transparent 62%);
}
.hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(180deg, transparent, var(--void));
}

/* ---- the stage: two columns, visual right, wordmark left ---- */
.hero__in {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100svh - 168px);
}

/* ---- The Mesh: canvas particle network (replaces the old orb) ----
   Visible by default: the CSS paints a soft static glow + grid behind the
   canvas, so the hero never looks empty even if JS fails or the canvas is
   blank. The JS only ADDS moving nodes/links. Never add a resting opacity:0. */
.hero__mesh {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
}
.hero__mesh::before {                       /* the art-directed fallback disc */
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(52% 52% at 50% 50%, color-mix(in srgb, var(--sig) 12%, transparent), transparent 70%),
    radial-gradient(72% 72% at 50% 50%, transparent 58%, color-mix(in srgb, var(--panel) 60%, transparent) 59%, transparent 61%);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.9);
}
.hero__mesh canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* ---- the wordmark column ---- */
.hero__col { position: relative; max-width: 640px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--txt-3);
}
.kicker__mark {
  width: 26px; height: 1px;
  background: color-mix(in srgb, var(--sig) 78%, transparent);
}
.hero:hover .kicker__mark { background: var(--sig); }

.hero__title {
  font-family: "Bricolage Grotesque", var(--f-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 24px 0 0;
  color: var(--bone);
  text-wrap: balance;
}
.hero__title-x {
  font-style: normal;
  background: var(--zv-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead {
  margin: 22px 0 0;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--mist);
  text-wrap: pretty;
}
.hero__cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- hero entrance: visible by default. JS adds .hero__in--pre to arm the
       transition, then .hero__in--run to release it. If JS fails in ANY way,
       --pre is never applied and the hero is simply visible — the safe
       default. Never add a resting opacity:0 to any hero element. ---- */
.hero__in--pre > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.hero__in--pre.hero__in--run > * { opacity: 1; transform: none; }
.hero__in--pre.hero__in--run > *:nth-child(2) { transition-delay: .07s; }
.hero__in--pre.hero__in--run > *:nth-child(3) { transition-delay: .14s; }
.hero__in--pre.hero__in--run > *:nth-child(4) { transition-delay: .21s; }
.hero__in--pre.hero__in--run > *:nth-child(5) { transition-delay: .28s; }

/* ---- premium ambient motion: the rings breathe, the layers drift
       on independent periods. Slow, quiet, never looping tight. ---- */
@keyframes zv-cv-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.045); }
}
@keyframes zv-cv-orbit {
  0%   { transform: translate(-52%, -49%) scale(1); }
  34%  { transform: translate(-48%, -51%) scale(1.03); }
  68%  { transform: translate(-51%, -48%) scale(.985); }
  100% { transform: translate(-52%, -49%) scale(1); }
}
.cv--ring { animation: zv-cv-breathe 12s cubic-bezier(.45,0,.55,1) infinite; }
.cv--l1   { animation: zv-cv-orbit 22s cubic-bezier(.45,0,.55,1) infinite; }
.cv--l2   { animation: zv-cv-orbit 28s cubic-bezier(.45,0,.55,1) infinite reverse; animation-delay: -6s; }
.cv--l3   { animation: zv-cv-breathe 9s cubic-bezier(.45,0,.55,1) infinite; animation-delay: -3s; }
.cv--core { animation: zv-cv-breathe 6.5s cubic-bezier(.45,0,.55,1) infinite; }

/* the mesh's static fallback disc breathes too (canvas anims are JS-bound) */
.hero__mesh::before { animation: zv-cv-breathe 12s cubic-bezier(.45,0,.55,1) infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero__mesh::before, .hero__mesh { animation: none; }
  .cv--l1, .cv--l2, .cv--l3, .cv--core { opacity: 1; }
}

/* ---- tablet: recompose — wordmark above, convergence beneath ---- */
@media (max-width: 1024px) {
  .hero { padding-block: 32px 108px; }
  .hero__in {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: clamp(24px, 4vw, 40px);
    min-height: 0;
  }
  .hero__grid3d { order: 2; width: min(420px, 78%); justify-self: center; }
  .hero__col { order: 1; max-width: 640px; }
  .hero__title { font-size: clamp(2.7rem, 8.4vw, 4rem); }
}

/* ---- mobile: dedicated composition — compact convergence, tight stack ---- */
@media (max-width: 640px) {
  .hero { padding-block: 26px 84px; }
  .hero__in { gap: 30px; }
  .hero__grid3d { width: 86%; }
  .hero__col { max-width: none; }
  .hero__title { font-size: clamp(2.35rem, 10.5vw, 3.3rem); margin-top: 20px; }
  .hero__lead { font-size: 15.5px; }
  .hero__cta { margin-top: 30px; }
  .hero__cta .btn { padding: 13px 20px; }
}

/* ============================================================
   reveal — visible by default, JS arms the enhancement
   ============================================================ */
.rv.rv--armed.rv--hide { opacity: 0; transform: translateY(16px); will-change: opacity, transform; }
.rv.rv--armed.rv--hide.rv--seen { opacity: 1; transform: none; will-change: auto; }
.rv--in { opacity: 1; transform: none; }

/* ============================================================
   utility
   ============================================================ */
.grid { display: grid; gap: clamp(16px, 1.8vw, 24px); }
.row { display: flex; gap: clamp(12px, 1.5vw, 20px); flex-wrap: wrap; }
.center { text-align: center; }
.mx { margin-inline: auto; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: clamp(36px, 4vw, 60px); }
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 120;
  background: var(--sig); color: var(--sig-ink);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 600;
  padding: 11px 16px; border-radius: 999px; text-decoration: none;
  transition: top .18s ease-out;
}
.skip:focus { top: 16px; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1080px) {
  .moves { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta, .nav__cta-solid { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto;
    width: 40px; height: 40px;
    background: var(--lifted); border: 1px solid var(--line-2);
    border-radius: 999px; color: var(--txt); cursor: pointer;
  }
  .nav__toggle:hover { border-color: var(--sig); color: var(--sig); }
  .nav__drawer {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    z-index: 89;
    background: var(--dark); border-bottom: 1px solid var(--line);
    padding: 10px var(--gut) 20px;
    display: none; flex-direction: column; gap: 2px;
  }
  .nav__drawer--open { display: flex; }
  .nav__drawer a {
    font-size: 14px; color: var(--txt-2);
    text-decoration: none; padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav__drawer a:hover { color: var(--sig); }
  .nav__drawer .btn { margin-top: 16px; }
  /* Leo 2026-09-28: the drawer link rule above (class + element) outranks
     .btn--p (class only), so the Start a Project CTA lost its black text and
     gradient fill inside the mobile drawer. Re-assert explicitly. */
  .nav__drawer a.btn--p {
    color: #0B0C0F;
    background: var(--zv-grad);
    border-color: transparent;
    justify-content: center;
  }
  .nav__drawer a.btn--p:hover { color: #0B0C0F; filter: brightness(1.08); }

  .section { padding-block: clamp(58px, 14vw, 92px); }
  .hero { padding-block: calc(var(--nav-h) + 34px) 148px; }
}

@media (max-width: 680px) {
  :root { --gut: 20px; }
  .lead { font-size: 15.5px; }
  .grid { gap: 14px; }
  .moves { grid-template-columns: 1fr; }
  .field__2 { grid-template-columns: 1fr; }
  .hero__meta div { min-width: 72px; }
  .btn { padding: 14px 22px; }
}

/* ============================================================
   reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
  .badge i, .gate__log .cur { animation: none; }
}
/* ============================================================
   COMPONENT CHROME — scrolltide.co reference, retinted to the Spectrum.
   This sheet loads AFTER base.css, so these rules win over the older
   .spectrum / .badge / .pill / .h1 declarations wherever the class
   matches. Scrolltide's "foam" role maps to cyan (#22D3EE) and its
   "tide" role to sky (#38BDF8) — those are the two roles that carry
   colour in the reference.
   ============================================================ */

/* --- 1. HERO EYEBROW — one live pill, the rest are quiet spec tags --- */
.hero__eyebrow {
  margin: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  margin-inline: auto;
  gap: 8px;
  padding: 2px;          /* room for the blur/border without clipping */
  scrollbar-width: none;
}
.hero__eyebrow::-webkit-scrollbar { display: none; }
/* The single primary pill — rounded-full, translucent surface, blurred. */
.hero__eyebrow .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(16, 19, 24, .6);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--mist);
  white-space: nowrap;
  flex: none;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.hero__eyebrow .badge:hover {
  border-color: var(--line-2);
  color: var(--bone);
  background: rgba(16, 19, 24, .8);
}
.hero__eyebrow .badge i {
  width: 6px; height: 6px;
  background: #22D3EE;
  box-shadow: 0 0 10px rgba(34, 211, 238, .7);
}
.hero__eyebrow .arrow {
  color: var(--dim);
  transition: transform .3s ease, color .3s ease;
}
.hero__eyebrow .badge:hover .arrow {
  transform: translateX(3px);
  color: var(--bone);
}
/* The quiet spec tags sit behind it, still readable, never wrapping. */
.hero__eyebrow .pill {
  padding: 6px 12px;
  font-size: 10.5px;
  background: transparent;
  border-color: var(--line);
  color: var(--dim);
  white-space: nowrap;
  flex: none;
}

/* --- 2. HERO CTA — solid light primary + ghost secondary, scoped so
       the nav / footer / uplink .btn--p keep their gradient fill. --- */
.hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.hero__cta .btn--p {
  background: var(--bone);
  color: #07080A;
  border-color: transparent;
  box-shadow: 0 10px 32px -12px rgba(56, 189, 248, .5);
}
.hero__cta .btn--p:hover {
  background: #ffffff;
  color: #07080A;
  border-color: transparent;
  filter: none;
}
/* The gradient running-light ring reads wrong around a solid pill: kill it. */
.hero__cta .btn--p::after { content: none; }
.hero__cta .btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--bone);
}
.hero__cta .btn--ghost:hover {
  background: rgba(16, 19, 24, .6);
  border-color: var(--line-2);
  color: var(--bone);
  filter: none;
}
.hero__cta .btn svg { transition: transform .3s ease; }
.hero__cta .btn:hover svg { transform: translateX(3px); }

/* --- 3. SECTION EYEBROW — accent mono, no leading bar (opt-in) --- */
.kicker.sec-head {
  color: #22D3EE;
  justify-content: flex-start;
}
.kicker.sec-head::before {
  content: none;
  display: none;
  width: 0;
  background: none;
}

/* --- 4. SECTION TITLE — the reference's display weight for section h2s --- */
/* Scrolltide runs one section-head scale site-wide: h2 36px / 1.11 / 700 /
   -0.025em, kicker 11px mono right above it, lead 16px/1.52 mist. Pin ours to
   the same numbers so all six section heads feel like one system. */
.h1.h2--sec {
  font-weight: 700;
  font-size: clamp(24px, 2.8125vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.11;
}
/* a section lead sits under the h2 in mist, never the brighter txt-2 */
.h2--sec + .lead,
.rv > .lead {
  color: var(--mist);
}

/* --- 5. SEGMENTED CONTROL — rounded-full, active button filled in bone --- */
.seg {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(16, 19, 24, .5);
  border-radius: 999px;
  padding: 4px;
}
.seg button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--mist);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease;
}
.seg button:hover { color: var(--bone); }
.seg button[aria-selected="true"] {
  color: #07080A;
  font-weight: 600;
}
.seg button[aria-selected="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--bone);
  z-index: -1;
}

/* --- 6. ACCENT TAG — the reference's "Premium" chip, Spectrum-tinted --- */
.tag--ac {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid rgba(56, 189, 248, .4);
  background: rgba(56, 189, 248, .1);
  color: #22D3EE;
}

/* --- 7. AGENT CARDS — retint the existing masked rim, never the mask --- */
.agent {
  border-radius: 16px;
  background: #0B0C0F;
  border-color: var(--line);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1),
              border-color .5s cubic-bezier(.22, 1, .36, 1),
              box-shadow .5s cubic-bezier(.22, 1, .36, 1),
              background .5s ease;
}
.agent:hover {
  transform: translateY(-4px);
  background: #0F1114;
  border-color: var(--line-2);
  box-shadow: 0 18px 60px -18px rgba(56, 189, 248, .4);
}
.agent .card-glow {
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 295deg,
    #22D3EE 330deg,      /* foam role */
    #38BDF8 350deg,      /* tide role */
    transparent 360deg
  );
}
.agent__foot { align-items: center; }
.agent__foot > span { min-width: 0; }

@media (max-width: 680px) {
  .seg {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .seg::-webkit-scrollbar { display: none; }
  .hero__cta { align-items: stretch; }
  .hero__cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow .arrow,
  .hero__cta .btn svg,
  .seg button { transition: none; }
  .hero__eyebrow .badge:hover .arrow { transform: none; }
  .hero__cta .btn:hover svg { transform: none; }
}
