/* =================================================================
   OnVio Studios — stylesheet
   ================================================================= */

:root {
  --bg: #000;
  --bg-1: #0a0a0a;
  --bg-2: #121212;
  --fg: #F5F5F2;
  --fg-dim: rgba(245,245,242,.62);
  --fg-mute: rgba(245,245,242,.38);
  --line: rgba(245,245,242,.10);
  --line-strong: rgba(245,245,242,.22);
  --accent: #B6E6FF;
  --accent-soft: rgba(182,230,255,.14);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --grain-opacity: .05;

  --container: 1320px;
  --pad: clamp(20px, 3.2vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #000; }

.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.label { color: var(--fg-mute); text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.dim { color: var(--fg-mute); }
.italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
em.italic { font-style: italic; }

/* ================================================================
   GATE (intro scene with animated globe + door split reveal)
================================================================ */
body.gated { overflow: hidden; height: 100vh; }
body.gate-open > main,
body.gate-open > .nav,
body.gate-open > .foot { visibility: hidden; }

.gate {
  position: fixed; inset: 0; z-index: 300;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
}
.gate.opening { cursor: default; pointer-events: none; }
.gate.gone { display: none; }

/* Door halves — on click, split L/R */
.gate__door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(var(--side, 90deg), #050505, #0a0a0a 80%, #0f0f0f);
  z-index: 2;
  transition: transform 1.6s cubic-bezier(.76,0,.24,1);
  pointer-events: none;
}
.gate__door--l { left: 0; --side: 90deg; transform-origin: left; }
.gate__door--r { right: 0; --side: -90deg; transform-origin: right; }
.gate__edge {
  position: absolute; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(182,230,255,.6) 50%, transparent);
  box-shadow: 0 0 28px rgba(182,230,255,.4);
  opacity: 0;
  transition: opacity .4s .2s;
}
.gate__door--l .gate__edge { right: 0; }
.gate__door--r .gate__edge { left: 0; }

.gate.opening .gate__door--l { transform: translateX(-100%); }
.gate.opening .gate__door--r { transform: translateX(100%); }
.gate.opening .gate__edge { opacity: 1; }

/* Inner content — fades out as doors open */
.gate__inner {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transition: opacity .6s cubic-bezier(.76,0,.24,1);
  z-index: 3;
}
.gate.opening .gate__inner { opacity: 0; transition-duration: .5s; }

/* Seam line (visible while closed) */
.gate__seam {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; transform: translateX(-0.5px);
  background: linear-gradient(to bottom, transparent 5%, rgba(182,230,255,.45) 50%, transparent 95%);
  box-shadow: 0 0 14px rgba(182,230,255,.3);
  z-index: 4;
  transition: opacity .4s;
}
.gate.opening .gate__seam { opacity: 0; }

/* HUD corners */
.gate__hud {
  position: absolute; z-index: 5;
  font-size: 10px; letter-spacing: .12em;
  color: var(--fg-dim); text-transform: uppercase;
  line-height: 1.5;
  display: inline-flex; align-items: center; gap: 6px;
}
.gate__hud--tl { top: 28px; left: 28px; }
.gate__hud--tr { top: 28px; right: 28px; text-align: right; display: block; }
.gate__hud--bl { bottom: 28px; left: 28px; }
.gate__hud--br { bottom: 28px; right: 28px; }
.gate__hud kbd {
  font-family: var(--mono);
  padding: 2px 6px; border: 1px solid var(--line-strong);
  border-radius: 4px; font-size: 10px;
  margin: 0 2px; color: var(--fg);
  background: rgba(255,255,255,.04);
}

/* Corner brackets */
.gate__bracket {
  position: absolute; width: 26px; height: 26px;
  border-color: var(--accent);
  border-style: solid; border-width: 0;
  opacity: .6;
  z-index: 4;
}
.gate__bracket--tl { top: 22px; left: 22px; border-top-width: 1px; border-left-width: 1px; }
.gate__bracket--tr { top: 22px; right: 22px; border-top-width: 1px; border-right-width: 1px; }
.gate__bracket--bl { bottom: 22px; left: 22px; border-bottom-width: 1px; border-left-width: 1px; }
.gate__bracket--br { bottom: 22px; right: 22px; border-bottom-width: 1px; border-right-width: 1px; }

/* Globe container */
.globe {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.globe canvas {
  width: min(720px, 70vmin);
  height: min(720px, 70vmin);
  display: block;
  filter: drop-shadow(0 0 60px rgba(182,230,255,.15));
}
.globe__ring {
  position: absolute; top: 50%; left: 50%;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: .08;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.globe__ring--a { width: min(820px, 78vmin); height: min(820px, 78vmin); }
.globe__ring--b { width: min(920px, 88vmin); height: min(920px, 88vmin); opacity: .05; border-style: dashed; animation: ringspin 80s linear infinite; }
.globe__ring--c { width: min(680px, 66vmin); height: min(680px, 66vmin); opacity: .1; }
@keyframes ringspin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Title block */
.gate__titleblock {
  position: relative; z-index: 6;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
  pointer-events: none;
}
.gate__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .25em;
  color: var(--fg-mute); text-transform: uppercase;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
}
.gate__eyebrow i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
.gate__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(70px, 11vw, 180px);
  line-height: .9;
  letter-spacing: -.03em;
  margin: 0;
  text-shadow: 0 0 60px rgba(182,230,255,.15);
}
.gate__title span { color: var(--fg); }
.gate__title em {
  font-style: italic;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(182,230,255,.5);
}
.gate__slogan {
  color: var(--fg-dim);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  max-width: 44ch;
  margin: 20px auto 36px;
  text-wrap: balance;
}
.gate__cta {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 10px 14px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  color: var(--fg);
  font-size: 14px; letter-spacing: .02em;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
  cursor: pointer;
}
.gate__cta:hover { background: rgba(182,230,255,.1); border-color: var(--accent); transform: translateY(-2px); }
.gate__cta-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--fg); color: #000;
  display: grid; place-items: center;
  transition: background .3s, transform .3s;
}
.gate__cta:hover .gate__cta-icon { background: var(--accent); transform: rotate(-45deg); }

/* Subtle intro-breath on gate content */
.gate__inner > *:not(.globe) { animation: gatefadein .9s cubic-bezier(.16,1,.3,1) both; }
.gate__hud--tl { animation-delay: .1s !important; }
.gate__hud--tr { animation-delay: .15s !important; }
.gate__hud--bl { animation-delay: .25s !important; }
.gate__hud--br { animation-delay: .3s !important; }
.gate__titleblock { animation-delay: .35s !important; }
@keyframes gatefadein {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .gate__hud { font-size: 9px; }
  .gate__hud--tr { max-width: 140px; }
  .gate__title { font-size: clamp(60px, 16vw, 100px); }
}

/* ================================================================
   LOADER
================================================================ */
.loader {
  position: fixed; inset: 0;
  background: #000;
  z-index: 200;
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
body:not(.loading) .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; color: var(--fg); }
.loader__mark { width: 36px; height: 36px; color: var(--fg); margin: 0 auto 14px; }
.loader__spin {
  transform-origin: center;
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader__text {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: .02em;
}
.loader__text em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .35em;
  color: var(--fg-dim);
  margin-top: 4px;
}
.loader__bar {
  width: 160px; height: 1px; background: var(--line);
  margin: 20px auto 0; overflow: hidden;
}
.loader__bar i {
  display: block; height: 100%; width: 0;
  background: var(--fg);
  animation: load 1.6s var(--ease) forwards;
}
@keyframes load { to { width: 100%; } }

/* ================================================================
   GRAIN + GRID OVERLAY
================================================================ */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}
.grid-overlay {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 80px 100%,
    radial-gradient(1200px 600px at 80% -10%, rgba(182,230,255,.06), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(182,230,255,.04), transparent 60%);
}

/* ================================================================
   NAV
================================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,.4) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .3s var(--ease);
}
.nav.scrolled { background: rgba(0,0,0,.72); border-bottom: 1px solid var(--line); }

.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 20px; letter-spacing: .01em;
}
.nav__brand em { font-style: italic; color: var(--fg-dim); }
.nav__logo { width: 26px; height: 26px; color: var(--fg); }

.nav__links {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; gap: 2px;
  padding: 6px; border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10,10,10,.6);
}
.nav__links a {
  padding: 8px 14px;
  font-size: 13px; color: var(--fg-dim);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--fg); background: rgba(255,255,255,.05); }

.nav__actions { display: inline-flex; gap: 10px; align-items: center; }

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn--lg { padding: 14px 22px; font-size: 14px; }
.btn--primary {
  background: var(--fg); color: #000;
  border-color: var(--fg);
}
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: var(--line-strong); }
.btn__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #12D964; box-shadow: 0 0 8px rgba(18,217,100,.6);
  animation: blink 1.6s var(--ease) infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.nav__menu {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--fg); color: #000;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  transition: background .2s;
}
.nav__menu span { width: 14px; height: 1.5px; background: #000; display: block; }
.nav__menu:hover { background: var(--accent); }

/* ================================================================
   TAGS
================================================================ */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: 12px; color: var(--fg-dim);
}
.tag__pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(182,230,255,.6); }
  70% { box-shadow: 0 0 0 10px rgba(182,230,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(182,230,255,0); }
}

/* ================================================================
   HERO
================================================================ */
.hero {
  padding: 40px var(--pad) 0;
  position: relative;
  min-height: calc(100vh - 80px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(30px, 6vh, 80px) 0;
}
.hero__left { max-width: 620px; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 7.4vw, 120px);
  line-height: .94;
  letter-spacing: -.018em;
  margin: 22px 0 26px;
}
.display .line { display: block; }
.display .mono-num {
  font-family: var(--mono); font-size: .46em; font-weight: 400;
  color: var(--accent); vertical-align: middle;
  padding: .14em .4em; border: 1px solid var(--accent-soft);
  border-radius: .2em;
  display: inline-block;
  transform: translateY(-.18em);
}

.lede {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--fg-dim);
  max-width: 520px;
  line-height: 1.6;
}

.hero__cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero__meta {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 540px;
}
.hero__meta > div { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.hero__meta .label { margin-bottom: 2px; }

/* Mosaic */
.hero__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
  min-height: 460px;
  position: relative;
}
.mos {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #0d0d0d, #050505);
  padding: 14px;
  transition: transform .7s var(--ease-out), border-color .3s;
}
.mos:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.mos--1 { grid-column: 1; grid-row: 1; }
.mos--2 { grid-column: 2; grid-row: 1 / span 2; background: linear-gradient(135deg, #0e1420, #04070c); }
.mos--3 { grid-column: 1; grid-row: 2; background: radial-gradient(circle at 30% 40%, #1a2230, #030609); }
.mos--4 { grid-column: 1 / span 2; grid-row: 3; background: linear-gradient(180deg, #060606, #0a0a0a); padding: 16px 18px; }

.hero__mosaic { grid-template-rows: 220px 220px auto; }

.mos__header {
  display: inline-flex; align-items: center; gap: 6px;
  padding-bottom: 8px;
  font-size: 10px; color: var(--fg-mute);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.g { background: #22c55e; } .dot.y { background: #eab308; } .dot.r { background: #ef4444; }
.mos__header .mono { margin-left: 6px; }

/* chart A (canvas) */
.mos__chart { width: 100%; height: calc(100% - 22px); }
.mos__chart canvas { width: 100%; height: 100%; display: block; }

/* mos 2 blueprint */
.mos__blueprint { width: 100%; height: 100%; }
.mos__blueprint svg { width: 100%; height: 100%; }
.scan {
  animation: scan 4s linear infinite;
}
@keyframes scan { 0% { transform: translateY(0); } 100% { transform: translateY(210px); } }
.mos__tag {
  position: absolute; bottom: 14px; left: 18px;
  font-size: 10px; color: var(--fg-dim);
  padding: 4px 8px; background: rgba(0,0,0,.7); border: 1px solid var(--line);
  border-radius: 4px;
}

/* mos 3 chip */
.mos__chip { height: 100%; display: grid; place-items: center; position: relative; }
.chip {
  position: relative;
  width: 78px; height: 78px;
  background: linear-gradient(135deg, #1b2636, #0a0f17);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid; place-items: center;
  box-shadow: 0 0 40px rgba(182,230,255,.2), inset 0 0 20px rgba(182,230,255,.1);
}
.chip__core {
  font-family: var(--serif); font-size: 24px;
  color: var(--accent); letter-spacing: .03em;
  font-style: italic;
}
.chip__pins {
  position: absolute; top: -6px; left: 10px; right: 10px;
  height: 6px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
}
.chip__pins::before, .chip__pins::after { display: none; }
.chip__pins > * { background: var(--fg-mute); }
.chip__pins {
  background-image: repeating-linear-gradient(to right, var(--fg-mute) 0 4px, transparent 4px 10px);
  height: 4px; top: -5px; left: 14px; right: 14px;
}
.chip__pins--b { top: auto; bottom: -5px; }
.mos__signal {
  position: absolute; bottom: 14px; left: 14px; display: flex; gap: 3px;
}
.mos__signal i {
  width: 3px; background: var(--accent); opacity: .5;
  border-radius: 1px;
}
.mos__signal i:nth-child(1) { height: 6px; animation: sig 1.2s ease-in-out infinite; }
.mos__signal i:nth-child(2) { height: 10px; animation: sig 1.2s ease-in-out infinite .15s; }
.mos__signal i:nth-child(3) { height: 14px; animation: sig 1.2s ease-in-out infinite .3s; }
@keyframes sig { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.mos__word {
  position: absolute; right: -8px; bottom: 8px;
  font-family: var(--serif); font-style: italic;
  font-size: 42px; color: rgba(182,230,255,.22);
  letter-spacing: -.02em; white-space: nowrap;
  overflow: hidden;
}

/* mos 4 terminal */
.mos__terminal { font-family: var(--mono); font-size: 11px; line-height: 1.85; color: var(--fg); }
.term__row { display: flex; gap: 8px; align-items: baseline; }
.term__row .gm { color: var(--accent); width: 12px; display: inline-block; }
.caret { color: var(--accent); animation: caret 1s steps(1) infinite; margin-left: 4px; }
@keyframes caret { 50% { opacity: 0; } }

/* Marquee */
.marquee {
  margin: 40px calc(-1 * var(--pad)) 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255,255,255,.015);
}
.marquee__track {
  display: inline-flex; gap: 28px; align-items: center;
  white-space: nowrap;
  animation: marquee 45s linear infinite;
  font-family: var(--serif);
  font-size: 22px; letter-spacing: -.01em;
}
.marquee__track span { color: var(--fg); }
.marquee__track i { color: var(--accent); font-style: normal; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================================
   CONTEXT STRIP
================================================================ */
.context {
  padding: 32px var(--pad);
  border-bottom: 1px solid var(--line);
}
.context__row {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.context__items {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--serif); font-size: 20px;
  color: var(--fg-dim);
}
.context__items i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--fg-mute);
}

/* ================================================================
   SECTION HEAD
================================================================ */
.section__head {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(80px, 10vh, 140px) var(--pad) 48px;
  text-align: center;
}
.section__eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 88px);
  line-height: 1;
  letter-spacing: -.02em;
  font-weight: 400;
  margin: 0 auto;
  max-width: 14ch;
  text-wrap: balance;
}
.section__lede {
  color: var(--fg-dim);
  font-size: 16px;
  max-width: 56ch;
  margin: 20px auto 0;
  text-wrap: pretty;
}

/* ================================================================
   SYSTEM / PIPELINE
================================================================ */
.system { position: relative; }
.pipeline {
  max-width: var(--container);
  margin: 20px auto 0;
  padding: 0 var(--pad) 80px;
  position: relative;
}
.pipeline__track {
  position: absolute; left: var(--pad); right: var(--pad); top: 96px; height: 80px;
  pointer-events: none;
}
.pipeline__wire { width: 100%; height: 100%; }
.pipeline__flow {
  stroke-dasharray: 180 1200;
  animation: flow 4s linear infinite;
  animation-duration: calc(4s / var(--pipeline-speed, 1));
}
@keyframes flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -1380; }
}

.pipeline__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 200px;
}
.step {
  position: relative;
  padding: 26px 24px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20,20,20,.7), rgba(6,6,6,.5));
  backdrop-filter: blur(4px);
  overflow: hidden;
  min-height: 420px;
  display: flex; flex-direction: column;
  transition: border-color .4s, transform .4s var(--ease-out);
}
.step:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.step__num { font-size: 11px; color: var(--fg-mute); letter-spacing: .2em; }
.step__icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--fg); color: #000;
  display: grid; place-items: center;
  margin: 14px 0 18px;
  align-self: flex-start;
}
.step h3 { font-family: var(--serif); font-size: 30px; margin: 0 0 10px; font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
.step p { color: var(--fg-dim); font-size: 14px; margin: 0 0 18px; line-height: 1.55; }

.step__feed {
  margin-top: auto;
  height: 170px;
  position: relative;
  overflow: hidden;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  mask-image: linear-gradient(to bottom, black 60%, transparent);
}
.feedrow {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 10px;
  font-size: 11px;
  padding: 6px 0;
  color: var(--fg);
  animation: feedscroll 12s linear infinite;
}
.feedrow .mono { color: var(--accent); }
.feedrow:nth-child(2) { animation-delay: -2.4s; }
.feedrow:nth-child(3) { animation-delay: -4.8s; }
.feedrow:nth-child(4) { animation-delay: -7.2s; }
.feedrow:nth-child(5) { animation-delay: -9.6s; }
@keyframes feedscroll {
  from { transform: translateY(170px); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  to { transform: translateY(-30px); opacity: 0; }
}

.step__graph {
  margin-top: auto;
  position: relative;
  height: 180px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}
.node {
  position: absolute;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(0,0,0,.8);
  font-family: var(--mono); font-size: 10px;
}
.node.n1 { left: 0; top: 30px; }
.node.n2 { left: 45%; top: 80px; transform: translateX(-50%); border-color: var(--accent-soft); color: var(--accent); }
.node.n3 { right: 0; top: 30px; }
.node.n4 { right: 0; bottom: 10px; }
.step__wires { position: absolute; inset: 0; width: 100%; height: 100%; }

.step__cal {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.calhead { font-size: 11px; color: var(--fg-mute); margin-bottom: 8px; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-family: var(--mono); font-size: 11px; }
.calgrid span { color: var(--fg-mute); text-align: center; padding: 6px 0; font-size: 9px; }
.calgrid b {
  text-align: center; padding: 8px 0; font-weight: 400;
  border: 1px solid transparent; border-radius: 4px;
  color: var(--fg-dim);
}
.calgrid b.on {
  background: rgba(182,230,255,.1);
  border-color: var(--accent-soft);
  color: var(--accent);
}
.calbook {
  margin-top: 14px; padding: 10px 12px;
  background: var(--fg); color: #000;
  border-radius: 8px; font-size: 11px;
  display: flex; align-items: center; gap: 8px;
}
.calbook .dot.g { box-shadow: 0 0 8px rgba(34,197,94,.5); }

/* ================================================================
   PROCESS LIST
================================================================ */
.process { padding-bottom: 80px; }
.process__list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  border-top: 1px solid var(--line);
}
.prow {
  display: grid;
  grid-template-columns: 80px 260px 1fr 240px;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding .4s var(--ease);
  position: relative;
}
.prow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(182,230,255,.03), transparent);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.prow:hover::before { opacity: 1; }
.prow:hover { padding-left: 12px; }
.prow__idx { font-size: 12px; color: var(--fg-mute); padding-top: 6px; }
.prow__title {
  font-family: var(--serif);
  font-size: 32px; line-height: 1;
  letter-spacing: -.01em;
}
.prow__sub {
  display: inline-block; margin-top: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-mute); letter-spacing: .05em;
  text-transform: uppercase;
}
.prow__body p { margin: 0; color: var(--fg-dim); font-size: 15px; max-width: 60ch; line-height: 1.6; }
.prow__tag { font-size: 11px; color: var(--fg-mute); padding-top: 8px; text-align: right; }

/* ================================================================
   RESULTS / METRICS
================================================================ */
.metrics {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 200px;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.metric:last-child { border-right: 0; }
.metric::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.metric:hover::after { transform: scaleX(1); }
.metric__num {
  font-family: var(--serif);
  font-size: clamp(56px, 6.5vw, 96px);
  line-height: .95;
  letter-spacing: -.025em;
  display: flex; align-items: baseline; gap: 4px;
}
.metric__num em {
  font-family: var(--mono); font-size: 24px;
  color: var(--accent); font-style: normal;
}
.metric__label {
  color: var(--fg-dim); font-size: 13px; line-height: 1.5;
  max-width: 30ch;
}

.quote {
  max-width: 920px; margin: 80px auto 0;
  padding: 0 var(--pad) 60px;
  text-align: center;
  position: relative;
}
.quote__mark {
  font-family: var(--serif);
  font-size: 180px; line-height: 0;
  color: var(--accent);
  opacity: .5;
  display: block; height: 80px;
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2; letter-spacing: -.01em;
  margin: 10px 0 30px; text-wrap: balance;
}
.quote footer {
  display: inline-flex; align-items: center; gap: 14px;
  justify-content: center;
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #333, #111);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px;
  color: var(--fg);
}
.quote footer div { text-align: left; font-size: 13px; }
.quote footer b { font-weight: 500; }

/* ================================================================
   TEAM
================================================================ */
.people {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--pad) 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.person {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #0a0a0a, #050505);
  overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease-out);
}
.person:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.person:hover .person__glow { opacity: 1; }

.person__portrait {
  position: relative; aspect-ratio: 1/1.05;
  background: radial-gradient(circle at 50% 40%, #1a1a1a, #050505 70%);
  overflow: hidden;
}
.person__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.person__placeholder .label { position: absolute; top: 14px; left: 14px; color: var(--fg-mute); }
.person__initials {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(90px, 12vw, 160px);
  color: rgba(245,245,242,.9);
  letter-spacing: -.02em;
  text-shadow: 0 8px 40px rgba(182,230,255,.2);
}
.person__grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 100%,
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 100% 40px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
}
.person__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%) contrast(1.05);
  transition: filter .4s var(--ease), transform .6s var(--ease);
}
.person:hover .person__photo {
  filter: grayscale(0%) contrast(1.08);
  transform: scale(1.03);
}
.person__glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 50%);
  opacity: .6; transition: opacity .5s;
  pointer-events: none;
}

.person__body { padding: 24px 26px 28px; }
.person__meta { font-size: 11px; color: var(--fg-mute); margin-bottom: 8px; }
.person h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 32px; line-height: 1.05; letter-spacing: -.01em;
  margin: 0 0 10px;
}
.person__role { color: var(--fg-dim); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.person__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.person__tags span {
  font-family: var(--mono); font-size: 10px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-dim);
  transition: border-color .2s, color .2s;
}
.person:hover .person__tags span { border-color: var(--accent-soft); color: var(--accent); }

/* ================================================================
   FAQ
================================================================ */
.faq__list {
  max-width: 980px; margin: 0 auto;
  padding: 0 var(--pad) 100px;
  border-top: 1px solid var(--line);
}
.faq__list details {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  transition: padding .3s var(--ease);
}
.faq__list details[open] { padding: 28px 0 30px; }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative; width: 28px; height: 28px;
  border-radius: 50%; border: 1px solid var(--line-strong);
  flex-shrink: 0;
  transition: border-color .3s, background .3s;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; inset: 50% 30%;
  height: 1px; background: var(--fg);
  transform: translateY(-50%);
}
.faq__icon::after { transform: translateY(-50%) rotate(90deg); transition: transform .3s var(--ease); }
details[open] .faq__icon { background: var(--accent); border-color: var(--accent); }
details[open] .faq__icon::before, details[open] .faq__icon::after { background: #000; }
details[open] .faq__icon::after { transform: translateY(-50%) rotate(0); }
.faq__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease), padding .4s var(--ease);
}
details[open] .faq__body { max-height: 300px; padding-top: 16px; }
.faq__body p { color: var(--fg-dim); font-size: 15px; line-height: 1.7; max-width: 70ch; margin: 0; }

/* ================================================================
   CTA
================================================================ */
.cta {
  padding: 40px var(--pad) 80px;
  max-width: var(--container);
  margin: 0 auto;
}
.cta__card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(50px, 8vw, 100px) clamp(30px, 6vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(182,230,255,.08), transparent 60%),
    radial-gradient(80% 80% at 100% 100%, rgba(182,230,255,.05), transparent 60%),
    linear-gradient(180deg, #0a0a0a, #030303);
  text-align: center;
}
.cta__aurora {
  position: absolute; inset: -40%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(182,230,255,0), rgba(182,230,255,.18), rgba(182,230,255,0) 30%);
  filter: blur(60px);
  opacity: .4;
  animation: aurora 18s linear infinite;
  pointer-events: none;
}
@keyframes aurora { to { transform: rotate(360deg); } }
.cta__grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 40px 100%,
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 100% 40px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
  pointer-events: none;
}
.cta__eyebrow { position: relative; color: var(--fg-mute); font-size: 11px; letter-spacing: .2em; margin-bottom: 20px; }
.cta__title {
  position: relative;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 1; letter-spacing: -.02em;
  margin: 0 auto; max-width: 16ch;
  text-wrap: balance;
}
.cta__lede {
  position: relative;
  color: var(--fg-dim); font-size: 16px;
  max-width: 56ch; margin: 22px auto 36px;
  line-height: 1.6;
}
.cta__actions {
  position: relative;
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

/* ================================================================
   FOOTER
================================================================ */
.foot {
  padding: 80px var(--pad) 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 60px;
  max-width: var(--container);
  margin: 0 auto;
}
.foot__brand { display: flex; gap: 14px; align-items: flex-start; }
.foot__brand .nav__logo { width: 36px; height: 36px; flex-shrink: 0; }
.foot__brand h4 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 8px; }
.foot__brand p { color: var(--fg-dim); font-size: 14px; line-height: 1.55; margin: 0; max-width: 40ch; }

.foot__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.foot__cols > div { display: flex; flex-direction: column; gap: 10px; }
.foot__cols .label { margin-bottom: 6px; }
.foot__cols a { font-size: 14px; color: var(--fg-dim); transition: color .2s; }
.foot__cols a:hover { color: var(--fg); }

.foot__base {
  grid-column: 1 / -1;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.foot__mark { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); letter-spacing: .2em; }

/* ================================================================
   REVEAL + MOTION
================================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

[data-stagger] .line {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
}
[data-stagger].in .line { opacity: 1; transform: none; }
[data-stagger].in .line:nth-child(1) { transition-delay: .05s; }
[data-stagger].in .line:nth-child(2) { transition-delay: .18s; }
[data-stagger].in .line:nth-child(3) { transition-delay: .31s; }
[data-stagger].in .line:nth-child(4) { transition-delay: .44s; }

/* ================================================================
   TWEAKS
================================================================ */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 280px;
  background: rgba(10,10,10,.94);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(20px);
  font-size: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.tweaks__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--fg-dim);
}
.tweaks__head button { font-size: 20px; line-height: 1; color: var(--fg-dim); }
.tweak {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  align-items: center; padding: 8px 0;
  color: var(--fg-dim);
}
.tweak input, .tweak select {
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--fg); padding: 5px 8px; font-size: 12px; border-radius: 6px;
  width: 130px;
}
.tweak input[type="color"] { padding: 0; height: 28px; width: 60px; }
.tweak input[type="range"] { width: 130px; accent-color: var(--accent); }
.tweak input[type="checkbox"] { width: auto; accent-color: var(--accent); }

/* ================================================================
   ONBOARDING MODAL
================================================================ */
.onb {
  position: fixed; inset: 0; z-index: 260;
  display: grid; place-items: center;
  padding: 24px;
}
.onb[hidden] { display: none !important; }
.onb__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(16px);
  animation: onbFade .35s var(--ease-out);
}
@keyframes onbFade { from { opacity: 0; } to { opacity: 1; } }

.onb__dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(860px, 94vh);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(180deg, #0a0a0a, #040404);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 60px 140px rgba(0,0,0,.7), 0 0 0 1px var(--line) inset;
  animation: onbRise .5s var(--ease-out);
}
@keyframes onbRise {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.onb__head {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.onb__brand { display: inline-flex; align-items: center; gap: 10px; }
.onb__brand .nav__logo { width: 28px; height: 28px; }
.onb__brand-title { font-family: var(--serif); font-size: 18px; display: block; line-height: 1; }
.onb__brand-sub { color: var(--fg-mute); font-size: 10px; letter-spacing: .12em; }

.onb__progress {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 14px;
  flex: 1; max-width: 420px;
}
.onb__progress-bar {
  flex: 1; height: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.onb__progress-bar i {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: width .5s var(--ease-out);
}
.onb__progress .mono { font-size: 11px; color: var(--fg-mute); letter-spacing: .1em; }

.onb__close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--fg); transition: background .2s;
}
.onb__close:hover { background: rgba(255,255,255,.12); }

/* Body (scrollable) */
.onb__body {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px clamp(24px, 4vw, 56px);
}
.onb__step {
  display: none;
  animation: onbStepIn .45s var(--ease-out);
}
.onb__step.is-active { display: block; }
@keyframes onbStepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.onb__eyebrow { color: var(--fg-mute); font-size: 11px; letter-spacing: .2em; margin-bottom: 16px; }
.onb__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.05; letter-spacing: -.015em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.onb__title em { color: var(--fg); }
.onb__lede { color: var(--fg-dim); font-size: 16px; line-height: 1.6; max-width: 58ch; margin: 0 0 26px; }
.onb__sub { color: var(--fg-mute); font-size: 13px; margin: -6px 0 22px; }

.onb__checks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.onb__checks li { display: flex; align-items: center; gap: 10px; color: var(--fg-dim); font-size: 15px; }
.onb__tick { color: var(--accent); font-family: var(--mono); }

/* Options — card style */
.onb__options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 10px;
}
.onb__opt {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  color: var(--fg);
  transition: background .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.onb__opt b { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: -.01em; }
.onb__opt span { color: var(--fg-dim); font-size: 13px; }
.onb__opt:hover { background: rgba(255,255,255,.05); border-color: var(--line-strong); }
.onb__opt.is-selected {
  background: rgba(182,230,255,.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

/* Chip style (team size) */
.onb__options--chips { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.onb__opt--chip {
  padding: 18px 14px;
  text-align: center;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
}
.onb__opt--chip b { display: none; }

/* Tag style (stack) */
.onb__options--tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  grid-template-columns: unset;
}
.onb__opt--tag {
  flex: 0 0 auto;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 999px;
  font-family: var(--sans);
}

/* Slider */
.onb__slider { margin-top: 28px; }
.onb__slider input[type="range"] {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 2px; background: var(--line); border-radius: 2px;
  outline: none;
}
.onb__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
  border: 3px solid #000;
  cursor: grab;
  box-shadow: 0 0 0 1px var(--accent), 0 0 20px var(--accent);
}
.onb__slider input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid #000;
  cursor: grab;
}
.onb__slider-out {
  display: flex; align-items: baseline; gap: 10px;
  margin: 24px 0 10px;
  font-family: var(--serif);
}
.onb__slider-num { font-size: 72px; color: var(--fg); letter-spacing: -.02em; }
.onb__slider-lbl { color: var(--fg-dim); font-size: 18px; }
.onb__slider-ticks {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; color: var(--fg-mute); margin-top: 12px;
  letter-spacing: .1em;
}

/* Form */
.onb__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 10px;
}
.onb__field { display: flex; flex-direction: column; gap: 6px; }
.onb__field > span { font-size: 12px; color: var(--fg-dim); letter-spacing: .02em; }
.onb__field-opt { font-family: var(--serif); font-style: italic; color: var(--fg-mute); }
.onb__field input {
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg);
  font-family: var(--sans); font-size: 15px;
  transition: border-color .2s, background .2s;
}
.onb__field input::placeholder { color: var(--fg-mute); }
.onb__field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(182,230,255,.04);
}

/* Scheduler */
.onb__sched {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px;
  margin-top: 14px;
}
.onb__sched-cal, .onb__sched-slots {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.onb__sched-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.onb__sched-head .mono { font-size: 13px; letter-spacing: .08em; color: var(--fg); }
.onb__sched-nav {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 18px; line-height: 1;
  transition: background .2s;
}
.onb__sched-nav:hover { background: rgba(255,255,255,.1); }
.onb__sched-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  font-family: var(--mono); font-size: 12px;
}
.onb__sched-grid .dayh {
  text-align: center; padding: 6px 0;
  color: var(--fg-mute); font-size: 10px; letter-spacing: .1em;
}
.onb__sched-grid .day {
  aspect-ratio: 1/1; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 8px;
  color: var(--fg-dim); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.onb__sched-grid .day:hover:not(.is-disabled) {
  background: rgba(255,255,255,.05); color: var(--fg);
}
.onb__sched-grid .day.is-disabled { color: rgba(245,245,242,.18); cursor: not-allowed; }
.onb__sched-grid .day.is-today { color: var(--accent); }
.onb__sched-grid .day.is-selected {
  background: var(--fg); color: #000;
  border-color: var(--fg);
}
.onb__sched-grid .day.is-empty { visibility: hidden; }
.onb__sched-tz { margin-top: 14px; color: var(--fg-mute); font-size: 10px; letter-spacing: .1em; }

.onb__sched-slotshead { font-size: 11px; color: var(--fg-dim); margin-bottom: 12px; letter-spacing: .1em; }
.onb__slot-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 280px; overflow-y: auto; }
.onb__slot {
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--mono); font-size: 12px;
  text-align: center;
  transition: background .15s, border-color .15s;
}
.onb__slot:hover { background: rgba(255,255,255,.08); }
.onb__slot.is-selected {
  background: var(--accent); color: #000; border-color: var(--accent);
}
.onb__slot-empty { grid-column: 1 / -1; color: var(--fg-mute); font-size: 13px; padding: 30px 0; text-align: center; }

/* Final */
.onb__step--final { text-align: center; padding-top: 20px; }
.onb__done-mark {
  width: 88px; height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(182,230,255,.08);
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  color: var(--accent);
}
.onb__step--final.is-active #onbCheck {
  animation: check .6s .2s var(--ease-out) forwards;
}
@keyframes check { to { stroke-dashoffset: 0; } }
.onb__summary {
  display: grid; gap: 10px;
  max-width: 480px; margin: 28px auto 28px;
  padding: 20px 24px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  font-size: 14px;
}
.onb__summary .label { display: inline-block; min-width: 110px; }
.onb__done-cta { margin-top: 10px; }

/* Footer */
.onb__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.4);
}
.onb__foot-meta { color: var(--fg-mute); font-size: 11px; letter-spacing: .08em; }
.onb__foot .btn[disabled] { opacity: .35; cursor: not-allowed; }

@media (max-width: 760px) {
  .onb__options { grid-template-columns: 1fr; }
  .onb__options--chips { grid-template-columns: repeat(3, 1fr); }
  .onb__form { grid-template-columns: 1fr; }
  .onb__sched { grid-template-columns: 1fr; }
  .onb__head { flex-wrap: wrap; gap: 14px; }
  .onb__progress { order: 3; max-width: 100%; width: 100%; }
}
body[data-variant="technical"] .display { font-family: var(--sans); font-weight: 500; letter-spacing: -.03em; }
body[data-variant="technical"] .section__title,
body[data-variant="technical"] .cta__title,
body[data-variant="technical"] .quote p { font-family: var(--sans); font-weight: 500; letter-spacing: -.03em; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mosaic { min-height: 420px; }
  .pipeline__steps { grid-template-columns: 1fr; }
  .pipeline__track { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
  .people { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 48px 1fr; gap: 20px; }
  .prow__title { grid-column: 2; }
  .prow__body { grid-column: 1 / -1; }
  .prow__tag { grid-column: 1 / -1; text-align: left; }
  .foot { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .marquee__track { font-size: 16px; gap: 16px; }
  .hero__mosaic { grid-template-columns: 1fr; grid-template-rows: 180px 180px 180px 180px; min-height: auto; }
  .mos--2 { grid-column: 1; grid-row: 2; }
  .mos--3 { grid-row: 3; }
  .mos--4 { grid-column: 1; grid-row: 4; }
  .hero__meta { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot__cols { grid-template-columns: 1fr; }
}

/* ================================================================
   FOOTER INSTAGRAM ICON
================================================================ */
.foot__ig {
  display: inline-flex;
  align-items: center;
  color: var(--fg-dim);
  transition: color .2s;
  width: fit-content;
}
.foot__ig:hover { color: var(--fg); }
.foot__ig svg { display: block; }

/* ================================================================
   MOBILE NAV DRAWER
================================================================ */
.nav__drawer {
  position: fixed;
  top: 60px;
  left: 0; right: 0;
  background: rgba(0,0,0,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 90;
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease-out);
}
.nav__drawer.is-open { max-height: 420px; }
.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 0 16px;
}
.nav__drawer-links a {
  padding: 14px var(--pad);
  font-size: 15px;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--line);
  transition: color .15s, background .15s;
  display: block;
}
.nav__drawer-links a:last-child { border-bottom: 0; }
.nav__drawer-links a:hover { color: var(--fg); background: rgba(255,255,255,.03); }
.nav__drawer-links .btn {
  margin: 8px var(--pad) 0;
  text-align: center;
  display: flex;
  justify-content: center;
}

/* ================================================================
   CALENDLY INLINE WIDGET CONTAINER
================================================================ */
.onb__calendly {
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.onb__calendly iframe { border: none !important; }

/* ================================================================
   RESPONSIVE — additional mobile fixes
================================================================ */
@media (max-width: 1080px) {
  .nav__menu { display: inline-flex; }
}
@media (min-width: 1081px) {
  .nav__menu { display: none; }
  .nav__drawer { display: none; }
}
@media (max-width: 768px) {
  .section__head { text-align: center; }
  .section__eyebrow { margin: 0 auto 12px; }
  .cta__actions { flex-direction: column; align-items: center; }
  .cta__actions .btn { width: 100%; max-width: 360px; justify-content: center; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .faq { padding: 60px var(--pad); }
}
@media (max-width: 480px) {
  .gate__title { font-size: clamp(52px, 14vw, 80px); }
  .gate__slogan { font-size: 13px; }
  .display { font-size: clamp(40px, 11vw, 64px); }
  .section__title { font-size: clamp(30px, 8vw, 48px); }
  .onb { padding: 0; }
  .onb__inner { border-radius: 0; height: 100dvh; }
  .onb__calendly { min-height: 460px; }
  .foot { padding: 40px var(--pad); }
  .foot__brand h4 { font-size: 22px; }
}
