/* =========================================================================
   XNOV AI — style.css
   Monochrome system close to awmedia.marketing (see CLAUDE.md › Design system)
   ========================================================================= */

@font-face {
  font-family: "Rethink Sans";
  src: url("../fonts/RethinkSans-Variable-latin.woff2") format("woff2-variations"),
       url("../fonts/RethinkSans-Variable-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --bg: #0B0B0B;
  --bg-2: #111113;
  --ink: #F5F5F7;
  --ink-86: rgba(245, 245, 247, .86);
  --ink-66: rgba(245, 245, 247, .66);
  --ink-55: rgba(245, 245, 247, .55);   /* lowest tier allowed for text */
  --ink-20: rgba(245, 245, 247, .2);    /* decorative only */
  --glass: rgba(255, 255, 255, .04);
  --glass-2: rgba(255, 255, 255, .07);
  --hair: rgba(255, 255, 255, .12);
  --hair-2: rgba(255, 255, 255, .2);
  --signal: #5EF2A0;

  --chrome: linear-gradient(180deg, #fff 8%, #d4d4d9 46%, #8a8a90 96%);
  --chrome-dim: linear-gradient(180deg, #fff 6%, #b4b4b9 52%, #6e6e73 100%);

  /* type */
  --font: "Rethink Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-body: 1.0625rem;                                  /* 17px */
  --fs-h1: clamp(3rem, 1rem + 8.2vw, 9.25rem);
  --fs-h2: clamp(2.35rem, 1.2rem + 4.6vw, 5.5rem);
  --fs-h3: clamp(1.25rem, 1rem + .8vw, 1.6rem);
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.3rem);

  /* space & shape */
  --maxw: 1408px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 10vw, 150px);
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .6s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--bg); }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 600; transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.section { position: relative; padding-block: var(--section); }

/* ---------- ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.watch-bg {   /* scroll-scrubbed watch assembly video (driven by js/main.js) */
  position: absolute; inset: 0; opacity: .4; will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 58%, transparent 100%);
}
.watch-poster, .watch-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.watch-poster:not([src]) { visibility: hidden; }
.watch-video { opacity: 0; transition: opacity .6s var(--ease); }
.watch-bg.is-video .watch-video { opacity: 1; }
.bloom {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.11) 0%, rgba(255,255,255,.03) 38%, rgba(255,255,255,0) 66%);
  will-change: transform;
}
.b1 { width: 70vmax; height: 70vmax; left: -20vmax; top: -25vmax; animation: drift1 36s var(--ease) infinite alternate; }
.b2 { width: 60vmax; height: 60vmax; right: -22vmax; top: 20vh; animation: drift2 44s ease-in-out infinite alternate; }
.b3 { width: 50vmax; height: 50vmax; left: 25vw; bottom: -30vmax; animation: drift3 28s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(12vw, 10vh, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-14vw, -8vh, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(-10vw, -12vh, 0) scale(1.08); } }
.grain {
  position: absolute; inset: -50%; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

main { position: relative; }

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%), rgba(11,11,12,.88);
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 60px -30px rgba(0,0,0,.8);
}
/* Real blur is reserved for the floating control layer (nav, menu), not content. */
.glass-blur {
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}

/* Soft dark halo behind body copy so it reads cleanly over the lattice background.
   (Not applied to chrome-gradient headings: background-clip text and shadows don't mix.) */
main p, main li, main dd, main td, main th, main label, .footer a, .footer p {
  text-shadow: 0 0 10px rgba(11,11,11,.95), 0 0 3px rgba(11,11,11,.9);
}

/* ---------- type helpers ---------- */
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-55);
}
.h2 {
  font-size: var(--fs-h2); line-height: .98; letter-spacing: -.045em; font-weight: 600;
  margin-top: .9rem; max-width: 16ch;
}
.center .h2, .center .cta-title { margin-inline: auto; }
.h2 > span, .cta-title > span, .hero-title .hl { display: block; }
.chrome, .chrome-dim, .chrome-dim .line { -webkit-background-clip: text; background-clip: text; color: transparent; }
.chrome-dim, .chrome-dim .line { background-image: var(--chrome-dim); }
.lead { font-size: var(--fs-lead); color: var(--ink-66); max-width: 54ch; margin-top: 1.5rem; }
.lead.center { margin-inline: auto; }
.note { margin-top: 1.5rem; color: var(--ink-66); font-size: .95rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: .4em; margin-top: .75rem; font-weight: 600; border-bottom: 1px solid var(--hair-2); padding-bottom: 2px; transition: border-color .3s; }
.text-link:hover { border-color: var(--ink); }
.text-link span { transition: transform .4s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* SplitText: gradient moves from the wrapper to each split line */
.chrome-dim.is-split { background-image: none; }

/* SplitText line masks */
.line-mask { overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- live dot ---------- */
.live-dot, .idle-dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.live-dot { background: var(--signal); box-shadow: 0 0 10px rgba(94, 242, 160, .6); }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--signal);
  opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
.idle-dot { background: var(--ink-20); }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- chips & buttons ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1.05rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-86);
}
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: scale .5s var(--ease), box-shadow .6s var(--ease), background-color .3s, border-color .3s;
}
.btn-sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .875rem; }
.btn-primary {
  color: #000;
  background: linear-gradient(180deg, #fff 0%, #e6e6eb 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.14), 0 8px 30px -8px rgba(255,255,255,.35);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.14), 0 12px 44px -6px rgba(255,255,255,.5); }
.btn-glass {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(40,40,44,.55), rgba(18,18,20,.5));
  border: 1px solid var(--hair-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.btn-glass:hover { border-color: rgba(255,255,255,.4); }
.btn:active { scale: .97; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px var(--gutter) 0;
  transition: transform .6s var(--ease);
}
.nav-pill {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(14,14,16,.35);
  transition: background-color .4s, border-color .4s;
}
.nav.is-scrolled .nav-pill { background: rgba(14,14,16,.7); }
.logo { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; }
.logo-mark { width: 26px; height: 26px; fill: var(--ink); }
.logo-word { font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; }
.logo-ai { font-size: .6em; font-weight: 600; letter-spacing: .08em; color: var(--ink-55); margin-left: .1em; vertical-align: .55em; }
.nav-links { display: flex; gap: .25rem; margin-left: auto; }
.nav-links a {
  padding: .6rem .9rem; border-radius: 999px; font-size: .9rem; color: var(--ink-86);
  transition: color .25s, background-color .25s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.06); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 90; padding: 84px var(--gutter) var(--gutter); background: rgba(5,5,6,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet[hidden] { display: none; }
.sheet-inner { border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a { font-size: 1.9rem; font-weight: 600; letter-spacing: -.035em; padding: .35rem 0; border-bottom: 1px solid var(--hair); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 120px 0 110px; text-align: center; isolation: isolate;
}
.hero::before { /* soft spotlight behind headline */
  content: ""; position: absolute; inset: 10% 15% 25%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.08), transparent 65%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  margin-top: 1.75rem;
  font-size: var(--fs-h1); line-height: .9; letter-spacing: -.055em; font-weight: 700;
}
.hero-title .hl:first-child { color: var(--ink); }
.hero-sub { margin-top: 2rem; max-width: 40ch; font-size: var(--fs-lead); color: var(--ink-66); }
.hero-ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hero-proof { margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-55); }
.hero-proof li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-55); }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-55);
  padding: 6px;
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--ink-55), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* hero render: sits behind the headline, darkened where text lands */
.hero-media {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 60%), linear-gradient(180deg, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 30%, #000 60%), linear-gradient(180deg, #000 72%, transparent 100%);
  mask-composite: intersect;
}
.hero-pic, .hero-pic img { display: block; width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 100% 50%; opacity: .95; }
.hero::after { /* keeps the copy block legible over the render */
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 40% 42% at 50% 56%, rgba(11,11,11,.82), rgba(11,11,11,0) 100%);
}

/* ---------- showcase ---------- */
.built .h2 { max-width: none; }
.frame {
  margin-top: clamp(40px, 6vw, 72px);
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--hair);
  background: #0e0e10;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03), inset 0 1px 0 rgba(255,255,255,.06);
  transform-origin: 50% 0;
}
.frame-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--hair); background: rgba(255,255,255,.025); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.frame-url { font-size: .75rem; color: var(--ink-55); padding: 5px 16px; border-radius: 999px; border: 1px solid var(--hair); background: rgba(255,255,255,.03); max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console { display: grid; grid-template-columns: 260px 1fr; min-height: clamp(360px, 42vw, 560px); font-size: .9rem; }
.console-side { border-right: 1px solid var(--hair); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.console-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-55); font-weight: 600; margin-top: 6px; }
.console-side ul { display: grid; gap: 4px; }
.console-side li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--ink-66); }
.console-side li.is-active { background: rgba(255,255,255,.06); color: var(--ink); }
.console-kpis { display: grid; gap: 10px; }
.console-kpis div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--hair); background: rgba(255,255,255,.02); }
.console-kpis dt { font-size: .75rem; color: var(--ink-55); }
.console-kpis dd { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.console-main { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; background: radial-gradient(ellipse at 70% 0%, rgba(255,255,255,.05), transparent 60%); }
.console-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 1.05rem; }
.tag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: var(--signal); border: 1px solid rgba(94,242,160,.35); background: rgba(94,242,160,.07); }
.console-log { display: grid; gap: 10px; counter-reset: log; }
.console-log li {
  position: relative; display: flex; gap: 14px; align-items: baseline;
  padding: 13px 16px 13px 46px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); color: var(--ink-66);
}
.console-log li::before {
  counter-increment: log; content: counter(log, decimal-leading-zero);
  position: absolute; left: 16px; font-size: .72rem; color: var(--ink-55); font-variant-numeric: tabular-nums;
}
.console-log b { color: var(--ink); font-weight: 600; min-width: 92px; }
.console-log li.ok { border-color: rgba(94,242,160,.3); background: rgba(94,242,160,.05); }
.console-log li.ok b { color: var(--signal); }
.frame-cap { margin: 1.5rem auto 0; max-width: 60ch; text-align: center; color: var(--ink-66); }

/* ---------- marquee ---------- */
.marquee { position: relative; padding-block: clamp(36px, 5vw, 64px); overflow: hidden; border-block: 1px solid var(--hair);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-row { display: flex; flex: none; }
.marquee-row li {
  display: flex; align-items: center; flex: none;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 4.25rem); font-weight: 600; letter-spacing: -.045em; line-height: 1;
  padding-inline: clamp(18px, 2.4vw, 36px);
}
.marquee-row li::after { content: "✦"; font-size: .4em; color: var(--ink-55); margin-left: clamp(36px, 4.8vw, 72px); }
.marquee-row li.dim { color: transparent; -webkit-text-stroke: 1px rgba(245,245,247,.5); }

/* ---------- services ---------- */
.split-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem 4rem; align-items: end; }
.split-head .h2 { max-width: 14ch; }
.split-copy p { color: var(--ink-66); font-size: var(--fs-lead); max-width: 42ch; }
.card-grid { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 32px);
  min-height: 260px; display: flex; flex-direction: column;
  transition: translate .6s var(--ease), border-color .4s, background-color .4s;
}
.card:hover { translate: 0 -4px; border-color: var(--hair-2); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.corner { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair); color: var(--ink-66); transition: rotate .6s var(--ease), background-color .3s, color .3s; }
.card:hover .corner { rotate: 45deg; background: var(--ink); color: var(--bg); }
.card h3 { margin-top: 3.25rem; font-size: var(--fs-h3); letter-spacing: -.03em; line-height: 1.1; }
.card p { margin-top: .6rem; color: var(--ink-66); font-size: .975rem; }

/* ---------- work ---------- */
.work .h2 { max-width: 15ch; }
.work-grid { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card { border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: translate .6s var(--ease), border-color .4s; }
.work-card:hover { translate: 0 -4px; border-color: var(--hair-2); }
.work-visual {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(255,255,255,.12), transparent 60%), #0d0d0f;
  border-bottom: 1px solid var(--hair);
}
.work-pic, .work-pic img { display: block; width: 100%; height: 100%; }
.work-pic img { object-fit: cover; transition: scale 1.2s var(--ease); }
.work-card:hover .work-pic img { scale: 1.05; }
.work-body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.work-body h3 { font-size: var(--fs-h3); letter-spacing: -.03em; line-height: 1.12; }
.work-body > p:not(.eyebrow) { color: var(--ink-66); font-size: .975rem; }
.tags { margin-top: auto; padding-top: .8rem; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--hair); color: var(--ink-86); }

/* ---------- lanes ---------- */
.table-wrap { margin-top: clamp(40px, 5vw, 64px); border-radius: var(--r-lg); overflow-x: auto; }
.lanes-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.lanes-table th, .lanes-table td { text-align: left; vertical-align: top; padding: 20px clamp(18px, 2.4vw, 32px); border-bottom: 1px solid var(--hair); }
.lanes-table tbody tr:last-child > * { border-bottom: 0; }
.lanes-table thead th { padding-block: 28px; width: 38%; }
.lanes-table thead th + th, .lanes-table tbody td + td { border-left: 1px solid var(--hair); }
.lanes-table thead th .eyebrow { display: block; }
.lane-name { display: block; margin-top: .6rem; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.35rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.lane-sub { display: block; margin-top: .55rem; color: var(--ink-66); font-weight: 400; font-size: .95rem; }
.lanes-table tbody th { font-weight: 600; color: var(--ink-86); font-size: .95rem; width: 24%; }
.lanes-table tbody td { color: var(--ink-66); }
.lanes-table tbody tr { transition: background-color .3s; }
.lanes-table tbody tr:hover { background: rgba(255,255,255,.025); }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-sticky { position: sticky; top: 120px; }
.process-meter { margin-top: clamp(32px, 5vw, 64px); }
.process-num {
  display: block; font-size: clamp(5rem, 3rem + 9vw, 11rem); font-weight: 600; letter-spacing: -.06em; line-height: .85;
  background-image: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.process-bar { display: block; margin-top: 24px; width: min(320px, 70%); height: 2px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.process-bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(.2); transition: transform .8s var(--ease); }
.steps { display: grid; gap: 16px; }
.step { border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 34px); transition: border-color .6s, background-color .6s; }
.step > * { transition: opacity .6s var(--ease); }
.step h3 { margin-top: .8rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -.035em; line-height: 1.08; }
.step p:not(.eyebrow) { margin-top: .6rem; color: var(--ink-66); }
.js .process.is-live .step > * { opacity: .4; }
.js .process.is-live .step.is-active > * { opacity: 1; }
.js .process.is-live .step.is-active { border-color: var(--hair-2); background-color: rgba(24,24,26,.94); }

/* ---------- band: agents on shift ---------- */
.band { position: relative; padding-block: clamp(24px, 4vw, 48px) 0; }
.band-figure { position: relative; overflow: hidden; width: 100%; height: clamp(420px, 43vw, 92vh); }
.band-pic { position: absolute; inset: 0; display: block; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 62%, transparent 100%); }
.band-pic img { width: 100%; height: 116%; margin-top: -8%; object-fit: cover; object-position: 50% 50%; }
.band-cap { position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vw, 64px); z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-inline: auto; }
.band-line { font-size: clamp(1.6rem, 1rem + 2.4vw, 3.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; max-width: 20ch; }

/* ---------- proof ---------- */
.proof { overflow: hidden; }
.watermark {
  position: absolute; left: 50%; top: 40%; translate: -50% -50%; z-index: -1;
  font-size: clamp(14rem, 34vw, 34rem); font-weight: 700; letter-spacing: -.07em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06); white-space: nowrap; pointer-events: none;
}
.proof .h2 { max-width: none; }
.stats { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-lg); }
.stat { padding: clamp(24px, 2.6vw, 36px); }
.stat + .stat { border-left: 1px solid var(--hair); }
.stat dd { display: flex; flex-direction: column; gap: .7rem; }
.stat-num { font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.25rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums;
  background-image: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .eyebrow { color: var(--ink-86); }
.stat-note { color: var(--ink-66); font-size: .9rem; }

/* ---------- why ---------- */
.why-grid { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); }
.why-grid li { padding: 32px clamp(16px, 2vw, 28px) 8px 0; }
.why-grid li + li { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--hair); }
.why-grid h3 { margin-top: 0; font-size: var(--fs-h3); letter-spacing: -.03em; line-height: 1.12; }
.why-grid p { margin-top: .7rem; color: var(--ink-66); font-size: .975rem; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item h3 { font-size: inherit; }
.faq-item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 26px 0; text-align: left; min-height: 64px;
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.25;
  transition: color .3s;
}
.faq-item button:hover { color: #fff; }
.faq-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair-2); transition: transform .6s var(--ease), background-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .6s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item button[aria-expanded="true"] .faq-icon { transform: rotate(180deg); background: rgba(255,255,255,.08); }
.faq-item button[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-panel {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .6s var(--ease), visibility 0s linear .6s;
}
.faq-panel > div { overflow: hidden; }
.faq-panel p { padding: 0 3.5rem 28px 0; color: var(--ink-66); max-width: 62ch; }
button[aria-expanded="true"] + .faq-panel, .faq-item.is-open .faq-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .6s var(--ease), visibility 0s; }

/* ---------- cta + form ---------- */
.cta { padding-bottom: clamp(72px, 8vw, 120px); isolation: isolate; overflow: hidden; }
.cta-title { font-size: clamp(2.8rem, 1rem + 7vw, 8rem); line-height: .92; letter-spacing: -.055em; font-weight: 700; max-width: 13ch; }
.contact-form {
  margin: clamp(40px, 5vw, 64px) auto 0; max-width: 880px; border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink-86); }
.opt { font-weight: 400; color: var(--ink-55); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: var(--r-sm);
  background: rgba(0,0,0,.35); border: 1px solid var(--hair-2); color: var(--ink);
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field ::placeholder { color: var(--ink-55); }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
.field [aria-invalid="true"] { border-color: #ff8b8b; }
.field-err { font-size: .85rem; color: #ffb3b3; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 6px; }
.form-status { color: var(--ink-66); font-size: .95rem; }
.form-status.is-ok { color: var(--signal); }
.form-status.is-err { color: #ffb3b3; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- footer ---------- */
.footer { position: relative; border-top: 1px solid var(--hair); padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.footer-mail { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; border-bottom: 1px solid var(--hair-2); padding-bottom: 2px; transition: border-color .3s; }
.footer-mail:hover { border-color: var(--ink); }
.footer-col { display: flex; flex-direction: column; }
.footer-col .eyebrow { margin-bottom: .6rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-66); transition: color .25s; width: fit-content; }
.footer-col a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 80px); padding-block: 24px; border-top: 1px solid var(--hair); color: var(--ink-55); font-size: .875rem; }
.footer-base { align-items: center; }
.footer-base a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-base a:hover { color: var(--ink); }
.footer-word {
  font-size: clamp(6rem, 26vw, 26rem); font-weight: 700; letter-spacing: -.07em; line-height: .78;
  text-align: center; margin-bottom: -.12em; user-select: none;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- custom cursor (desktop, fine pointer only) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  border: 1px solid rgba(255,255,255,.5);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), rgba(255,255,255,.02) 70%);
  -webkit-backdrop-filter: blur(2px) brightness(1.2); backdrop-filter: blur(2px) brightness(1.2);
  transition: opacity .3s, width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: rgba(255,255,255,.7); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- reveal states (only when JS + motion are available) ---------- */
.js.motion [data-hero], .js.motion [data-reveal], .js.motion [data-stagger] > *, .js.motion [data-hero-title] { opacity: 0; }
.js.motion [data-split] { visibility: hidden; }
/* Fail-safe: if scripts never run, reveal everything after 2.5s */
.js.is-loading [data-hero], .js.is-loading [data-reveal], .js.is-loading [data-stagger] > *, .js.is-loading [data-hero-title] { animation: failsafe 0s linear 2.5s forwards; }
.js.is-loading [data-split] { animation: failsafe-vis 0s linear 2.5s forwards; }
@keyframes failsafe { to { opacity: 1; } }
@keyframes failsafe-vis { to { visibility: visible; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .card-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid li:nth-child(3) { border-left: 0; padding-left: 0; }
  .console { grid-template-columns: 210px 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .split-head, .process-grid, .faq-grid { grid-template-columns: 1fr; }
  .process-sticky { position: relative; top: 0; }
  .process-meter { display: none; }
  .js .process.is-live .step > * { opacity: 1; }
  .console { grid-template-columns: 1fr; }
  .console-side { display: none; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .card-grid, .work-grid, .why-grid, .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--hair); }
  .why-grid li, .why-grid li + li { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--hair); padding-bottom: 28px; }
  .card { min-height: 0; }
  .card h3 { margin-top: 2rem; }
  .hero { padding-top: 110px; }
  .hero-media { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .hero-pic img { object-position: 84% 50%; opacity: .34; }
  .hero::after { background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(11,11,11,.75), rgba(11,11,11,0) 100%); }
  .band-figure { height: 78vh; }
  .band-pic img { object-position: 46% 50%; }
  .hero-proof { flex-direction: column; align-items: center; gap: .6rem; }
  .console-log li { padding-left: 40px; flex-direction: column; gap: 2px; }
  .console-log li::before { left: 14px; top: 15px; }
  .frame-bar { grid-template-columns: auto 1fr; gap: 12px; }
  .frame-bar > span:last-child { display: none; }
  .frame-url { max-width: none; }
  .faq-panel p { padding-right: 0; }
  .btn { width: 100%; }
  .hero-ctas { width: 100%; max-width: 360px; }
  .nav .btn, .form-foot .btn { width: auto; }
  .form-foot .btn { width: 100%; }
}

@media (max-width: 700px) {
  .lanes-table { min-width: 0; }
  .lanes-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lanes-table, .lanes-table tbody, .lanes-table tr, .lanes-table th, .lanes-table td { display: block; width: auto; }
  .lanes-table tbody tr { padding: 18px 20px; border-bottom: 1px solid var(--hair); }
  .lanes-table tbody tr:last-child { border-bottom: 0; }
  .lanes-table tbody th, .lanes-table tbody td { padding: 0; border: 0 !important; }
  .lanes-table tbody th { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-55); margin-bottom: 10px; }
  .lanes-table tbody td { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding-block: 4px; }
  .lanes-table tbody td::before { content: attr(data-label); font-weight: 600; color: var(--ink); }
}
@media (max-width: 600px), (max-height: 700px) { .scroll-cue { display: none; } }
@media (max-width: 600px) { .chip-more { display: none; } }

/* ---------- increased contrast ---------- */
@media (prefers-contrast: more) {
  :root {
    --ink-86: rgba(245,245,247,.96); --ink-66: rgba(245,245,247,.86); --ink-55: rgba(245,245,247,.78);
    --hair: rgba(255,255,255,.32); --hair-2: rgba(255,255,255,.5);
    --chrome-dim: linear-gradient(180deg, #fff 10%, #d8d8dc 100%);
  }
  .marquee-row li.dim { color: var(--ink); -webkit-text-stroke: 0; }
}

/* ---------- reduced transparency ---------- */
@media (prefers-reduced-transparency: reduce) {
  .glass-blur, .btn-glass, .sheet, .cursor { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-pill, .nav.is-scrolled .nav-pill, .sheet-inner { background: #141416; }
  .btn-glass { background: #1a1a1d; }
  .sheet { background: rgba(5,5,6,.92); }
  .grain { display: none; }
}

/* ---------- 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; }
  .bloom, .grain { animation: none !important; }
  .live-dot::after { display: none; }
  .marquee-track { width: auto; }
  .marquee-row { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .marquee-row[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .cursor { display: none; }
}
