/* ==========================================================================
   Truebourne — site styles
   Dark, cinematic, one light source. The accent is used like light: sparingly.
   ========================================================================== */

:root {
  --bg: #050505;
  --surface: #0b0c0e;
  --surface-2: #111317;
  --surface-3: #171a1f;
  --tint-rgb: 214, 228, 255;          /* hairlines and glass */
  --ink-rgb: 237, 241, 247;           /* text */
  --line: rgba(var(--tint-rgb), 0.075);
  --line-2: rgba(var(--tint-rgb), 0.12);
  --line-3: rgba(var(--tint-rgb), 0.22);
  --text: rgb(var(--ink-rgb));
  --text-2: rgba(var(--ink-rgb), 0.66);
  --text-3: rgba(var(--ink-rgb), 0.46);
  --text-4: rgba(var(--ink-rgb), 0.2);

  /* Accent: blue, matching the light in horizon.js and bands.js */
  --accent-50: #eef5ff;
  --accent-100: #d8e7ff;
  --accent-200: #a8c8ff;
  --accent-300: #6fa5ff;
  --accent-500: #3d7cff;
  --accent-700: #1f4fd6;
  --accent-rgb: 111, 165, 255;
  --accent-hi-rgb: 150, 192, 255;
  --glow-rgb: 70, 130, 255;
  --light: #7fa8ff;
  --light-rgb: 110, 150, 255;
  --grad-text: linear-gradient(95deg, #f1f6ff 0%, #b8d3ff 30%, #6fa5ff 62%, #2f68f5 100%);
  --grad-stat: linear-gradient(180deg, #f3f8ff 10%, #8fb9ff 55%, #2c5fe0 100%);
  --grad-bar: linear-gradient(90deg, #1f4fd6, #6fa5ff 70%, #eef5ff);
  --accent-em: #bcd6ff;               /* highlighted words in the statement */
  --doppler: #ffc99a;                 /* the warm counterpoint */

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(150px, 22vh, 280px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: rgba(var(--accent-rgb), 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-300); outline-offset: 3px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--text); color: #08090c; font-weight: 500; transition: top .2s; }
.skip:focus { top: 16px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- type ---------- */
.eyebrow {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-300);
  margin-bottom: 28px;
}
.display {
  font-weight: 500;
  font-size: clamp(34px, 4.8vw, 66px);
  letter-spacing: -0.042em;
  line-height: 1.02;
  text-wrap: balance;
}
.dim { color: var(--text-3); }
.accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.65; color: var(--text-2); max-width: 46ch; }

/* ---------- pills & nav ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(var(--tint-rgb), 0.05);
  color: var(--text);
  font: 500 13.5px/1 var(--sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .25s, box-shadow .3s, color .25s, transform .25s;
}
.pill:hover { background: rgba(var(--tint-rgb), 0.1); }
.pill-solid { background: var(--text); color: #08090c; }
.pill-solid:hover { background: #fff; box-shadow: 0 0 0 1px rgba(var(--accent-hi-rgb), .45), 0 0 30px rgba(var(--glow-rgb), .35); }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--gutter);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 1.2s var(--ease) .35s, transform 1.2s var(--ease) .35s;
}
.nav.is-in, html:not(.js) .nav { opacity: 1; transform: none; }
.simple-hero .nav { transition: none; }
/* once the page is scrolled, a soft scrim keeps the lockup legible over content */
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 5, 5, .86), rgba(5, 5, 5, .5) 55%, rgba(5, 5, 5, 0));
  opacity: 0;
  transition: opacity .5s;
}
.nav.is-solid::before { opacity: 1; }
.nav-brand { pointer-events: auto; display: flex; align-items: center; height: 44px; color: var(--text); transition: opacity .25s; }
.nav-brand:hover { opacity: .8; }
.nav-brand svg { height: 20px; width: auto; aspect-ratio: 1317 / 198; fill: currentColor; }
.nav-group {
  pointer-events: auto;
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(12, 14, 17, 0.5);
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  transition: background .4s;
}
.nav.is-solid .nav-group { background: rgba(11, 13, 16, 0.88); }
.nav-link { color: var(--text-2); }
.nav-link:hover, .nav-link[aria-current="true"] { color: var(--text); }

/* ---------- copy the email address ---------- */
.copy { position: relative; }
.copy-swap { display: inline-grid; }
.copy-idle, .copy-done {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: opacity .35s var(--ease), transform .5s var(--ease), filter .35s var(--ease);
}
.copy-done { opacity: 0; transform: translateY(7px); filter: blur(3px); color: var(--accent-200); }
.copy.is-copied .copy-idle { opacity: 0; transform: translateY(-7px); filter: blur(3px); }
.copy.is-copied .copy-done { opacity: 1; transform: none; filter: none; }
.copy-link .copy-idle, .copy-link .copy-done { justify-content: flex-start; }
.tick { width: 11px; height: 11px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.4l2.6 2.6L10 3.4' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.4l2.6 2.6L10 3.4' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; }
.copy-link { padding: 4px 0; border: 0; background: none; color: var(--text-2); font-size: 14.5px; text-align: left; cursor: pointer; transition: color .2s; }
.copy-link:hover { color: var(--text); }
/* the nav button shows which address it copies */
.copy-hint {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(12, 14, 17, 0.92);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font: 400 12px/1 var(--mono);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease);
}
.copy:hover .copy-hint, .copy:focus-visible .copy-hint { opacity: 1; transform: none; }

/* ---------- the mark, in white ---------- */
.mark { fill: var(--text); }
.mark-sm { width: 40px; height: 40px; margin: 0 auto 36px; }
.mark-md { width: 52px; height: 52px; margin: 0 auto 34px; }

/* ==========================================================================
   HERO — four black holes; the mark is where their horizons meet
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  --hero-shift: 0px;
  --hero-o: 1;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { display: none; }
/* feather the bottom edge into the page as the hero scrolls away */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0), var(--bg));
  pointer-events: none;
  z-index: 1;
}

/* copy sits in the shadows of the two lower black holes */
.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(48px, 9svh, 104px);
  z-index: 2;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  opacity: var(--hero-o);
  transform: translate3d(0, var(--hero-shift), 0);
  will-change: transform, opacity;
}
.hero.is-away .hero-content { pointer-events: none; }
.hero-lead { max-width: min(var(--lead-w, 60vw), 100%); }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero-kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-300); box-shadow: 0 0 10px var(--accent-300); }
.hero-title {
  font-weight: 500;
  font-size: clamp(38px, min(3.6vw, 7.6svh), 72px);
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-side { width: var(--side-w, min(380px, 34vw)); display: grid; gap: 20px; justify-items: start; }
.hero-lede { max-width: 34ch; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

.ticker { display: grid; font-size: 14px; color: var(--text-2); }
.ticker-item svg { display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px; fill: var(--text); }
.ticker-item {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s var(--ease);
}
.ticker-item.is-on { opacity: 1; transform: none; filter: none; }
.ticker-item.is-off { transform: translateY(-8px); }
.ticker-item em { font-style: normal; color: var(--accent-200); margin-left: 6px; }

.capture {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 18, 22, 0.55);
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color .3s, box-shadow .3s;
}
.capture:focus-within { border-color: rgba(var(--accent-hi-rgb), 0.45); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08); }
.capture input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  font-size: 14.5px;
  outline: none;
}
.capture input::placeholder { color: var(--text-3); }

/* Browser autofill paints fields pale yellow or blue with a style pages can't override;
   cover it with an opaque inset shadow in the field's own colour and keep the text ours. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 60px var(--autofill-bg, var(--surface)) inset;
  box-shadow: 0 0 0 60px var(--autofill-bg, var(--surface)) inset;
  filter: none;
  transition: background-color 100000s 0s;
}
/* in the glass signup pills, a filled field reads as a capsule beside the button */
.capture input { --autofill-bg: #12161c; }
.capture input:-webkit-autofill { border-radius: 999px; }
.capture button {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #08090c;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background .25s, box-shadow .3s;
}
.capture button:hover { background: #fff; box-shadow: 0 0 26px rgba(var(--glow-rgb), .35); }
.capture-lg { width: min(480px, 100%); }
.capture-lg input, .capture-lg button { height: 48px; }

/* hero copy arrives once the horizons have met (phones skip the intro and show it at once) */
.js:not(.simple-hero) .hero-kicker,
.js:not(.simple-hero) .hero-title .line,
.js:not(.simple-hero) .hero-side > * {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease), filter 1.2s var(--ease);
}
.js .hero.is-formed .hero-kicker,
.js .hero.is-formed .hero-title .line,
.js .hero.is-formed .hero-side > * { opacity: 1; transform: none; filter: none; }
.js .hero.is-formed .hero-title .line:nth-child(1) { transition-delay: .12s; }
.js .hero.is-formed .hero-title .line:nth-child(2) { transition-delay: .26s; }
.js .hero.is-formed .hero-side > :nth-child(1) { transition-delay: .45s; }
.js .hero.is-formed .hero-side > :nth-child(2) { transition-delay: .58s; }
.js .hero.is-formed .hero-side > :nth-child(3) { transition-delay: .7s; }

/* no WebGL: the four horizons drawn still */
.no-webgl .hero-canvas { display: none; }
.no-webgl .hero { background: radial-gradient(34% 34% at var(--mark-x, 62%) var(--mark-y, 42%), rgba(var(--light-rgb), .16), transparent 70%), var(--bg); }
.no-webgl .hero-fallback { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--hero-o); transform: translate3d(0, calc(var(--hero-shift) * 1.8), 0); }
.hero-fallback path { fill: none; stroke-linecap: round; }
.hero-fallback .fb-glow { stroke: var(--light); stroke-width: 14; opacity: .45; filter: url(#tb-glow); }

/* ==========================================================================
   Reveal
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.15s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ==========================================================================
   Intro statement
   ========================================================================== */
.intro { position: relative; z-index: 1; }
.intro-inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 170px;
  padding-bottom: 170px;
}
.statement {
  max-width: 22em;
  text-wrap: balance;
  font-size: clamp(26px, 3.3vw, 46px);
  font-weight: 400;
  letter-spacing: -0.032em;
  line-height: 1.18;
  color: var(--text);
}
.js .statement .w { color: var(--text-4); transition: color .5s var(--ease), text-shadow .5s; }
.js .statement .w.on { color: var(--text); }
.js .statement .em .w.on { color: var(--accent-em); text-shadow: 0 0 28px rgba(var(--accent-rgb), .25); }

/* ==========================================================================
   Section heads
   ========================================================================== */
.section-head {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  align-items: end;
  column-gap: 96px;
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head .lede { justify-self: end; }
.section-head.center { display: block; text-align: center; }
.section-head.stack { display: block; }
.section-head.stack .lede { justify-self: start; margin-top: 32px; }

/* ==========================================================================
   Platform deck
   ========================================================================== */
.platform { padding-top: var(--section); }
.deck { position: relative; height: 330svh; margin-top: clamp(64px, 8vw, 120px); }
.deck-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px var(--gutter) 60px;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) 1.45fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}
.deck-copy { display: grid; gap: 48px; }
.deck-item { opacity: .34; transition: opacity .6s var(--ease); }
.deck-item.is-active { opacity: 1; }
.deck-index { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.deck-index span { color: var(--accent-300); }
.deck-item h3 { display: inline; font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; margin-right: 10px; }
.deck-item p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--text-2);
  max-width: 36ch;
  transition: max-height .7s var(--ease), opacity .5s var(--ease), margin .7s var(--ease);
}
.deck-item.is-active p { max-height: 9em; opacity: 1; margin-top: 16px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  vertical-align: 5px;
}
.tag-live { color: var(--accent-200); border-color: rgba(var(--accent-rgb), .35); }
.tag-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-300); box-shadow: 0 0 8px var(--accent-300); animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }

.deck-stage { position: relative; height: min(66svh, 600px); }
.deck-card {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #06080c;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  -webkit-user-select: none;   /* product previews, not copy */
  user-select: none;
}
.deck-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(5, 5, 5, .4));
  pointer-events: none;
}
/* cards waiting further back in the stack sit in shadow */
.deck-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--bg);
  opacity: var(--shade, 0);
  pointer-events: none;
}

/* long-exposure light panels — the stand-in for Lassie's motion-blurred photography */
.streaks { position: absolute; inset: -18%; filter: blur(24px) saturate(1.3) contrast(1.15) brightness(1.08); will-change: transform; }
.streaks::after { content: ""; position: absolute; inset: 0; opacity: .5; filter: blur(1.5px); mix-blend-mode: screen; }
.streaks-v {
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(71, 122, 255, .8) 11%, transparent 15%, transparent 20%, rgba(26, 123, 214, .75) 25%, transparent 30%, rgba(200, 212, 255, .55) 36%, transparent 40%, rgba(196, 212, 240, .45) 47%, transparent 52%, rgba(60, 129, 255, .85) 58%, transparent 63%, rgba(150, 176, 255, .6) 70%, transparent 74%, rgba(18, 113, 190, .75) 81%, transparent 86%, rgba(196, 212, 240, .35) 92%, transparent 96%),
    linear-gradient(180deg, #030b12, #030404 55%, #030a0e);
  animation: drift-x 18s ease-in-out infinite alternate;
}
.streaks-v::after { background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(170, 194, 255, .5) 10px, transparent 12px, transparent 23px, rgba(90, 153, 255, .4) 24px, transparent 26px); }
.streaks-h {
  background:
    linear-gradient(180deg, transparent 0 10%, rgba(26, 123, 214, .75) 15%, transparent 21%, rgba(107, 146, 255, .7) 30%, transparent 35%, transparent 42%, rgba(210, 221, 255, .45) 47%, transparent 51%, rgba(50, 128, 255, .8) 60%, transparent 66%, rgba(196, 212, 240, .35) 74%, transparent 79%, rgba(20, 109, 180, .7) 86%, transparent 92%),
    linear-gradient(90deg, #03090f, #030404 50%, #030b12);
  animation: drift-y 20s ease-in-out infinite alternate;
}
.streaks-h::after { background: repeating-linear-gradient(180deg, transparent 0 11px, rgba(160, 192, 255, .45) 12px, transparent 14px, transparent 29px, rgba(70, 150, 255, .35) 30px, transparent 32px); }
.streaks-d {
  background:
    linear-gradient(118deg, transparent 0 12%, rgba(196, 212, 240, .55) 18%, transparent 24%, rgba(107, 146, 255, .7) 33%, transparent 38%, rgba(215, 225, 255, .5) 45%, transparent 49%, rgba(34, 130, 226, .8) 57%, transparent 63%, rgba(90, 143, 255, .6) 71%, transparent 76%, rgba(196, 212, 240, .45) 85%, transparent 91%),
    linear-gradient(160deg, #0a0c07, #030404 55%, #030a11);
  animation: drift-d 22s ease-in-out infinite alternate;
}
.streaks-d::after { background: repeating-linear-gradient(118deg, transparent 0 13px, rgba(180, 205, 255, .45) 14px, transparent 16px); }
@keyframes drift-x { from { transform: translateX(-7%); } to { transform: translateX(7%); } }
/* a close-up of a hero band, filling the panel (bands.js) */
.band { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.has-bands .band { display: block; }
.has-bands .streaks { display: none; }
.has-bands .band-lost .band { display: none; }
.has-bands .band-lost .streaks { display: block; }
@keyframes drift-y { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
@keyframes drift-d { from { transform: translate(-5%, 4%); } to { transform: translate(5%, -4%); } }

/* product chips */
.chip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(420px, 84%);
  transform: translate(-50%, -50%);
  padding: 14px;
  border-radius: 18px;
  background: rgba(10, 12, 15, 0.74);
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .05);
  font-size: 13.5px;
  line-height: 1.4;
}
.chip-mark { width: 13px; height: 13px; fill: var(--accent-300); flex: none; }
.chip-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 12px; font-weight: 500; }
.chip-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--text-3); font-weight: 400; font-size: 12.5px; }
.spinner { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(var(--accent-rgb), .25); border-top-color: var(--accent-300); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tasks { display: grid; gap: 6px; }
.task {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(var(--tint-rgb), .04);
  border: 1px solid var(--line);
}
.task i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-3); }
.task.done i { border-color: var(--accent-300); background: var(--accent-300) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23050b1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 100% no-repeat; }
.task.run i { border-color: rgba(var(--accent-rgb), .25); border-top-color: var(--accent-300); animation: spin .9s linear infinite; }
.task em { font: 400 11.5px/1 var(--mono); font-style: normal; color: var(--text-3); }
.task em b { font-weight: 500; color: var(--accent-200); }
/* Generated campaign variants: equal heights, widths follow each format's aspect ratio */
.variants { display: grid; grid-template-columns: 9fr 16fr 12.8fr 9fr; gap: 6px; margin-top: 10px; }
.variant { position: relative; margin: 0; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-3); }
.v-story { aspect-ratio: 9 / 16; }
.v-square { aspect-ratio: 1; }
.v-portrait { aspect-ratio: 4 / 5; }
.variant svg { display: block; width: 100%; height: 100%; font-family: var(--sans); }
.variant .v-serif { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif; }
/* each variant resolves from a blurred draft, like an image being generated */
.js .variant svg { opacity: .3; filter: blur(6px) saturate(.2); transform: scale(1.12); transition: opacity .9s var(--ease), filter 1.2s var(--ease), transform 1.4s var(--ease); }
.js .variant.on svg { opacity: 1; filter: none; transform: none; }
.variant::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(var(--tint-rgb), .2) 50%, transparent 65%) 0 0 / 250% 100%;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.variant.gen::after { opacity: 1; animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -30% 0; } }

.ask {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  background: rgba(var(--tint-rgb), .05);
  border: 1px solid var(--line-2);
}
.typed { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.typed:empty::before { content: "Ask Cortex anything"; color: var(--text-3); }
.caret { width: 1.5px; height: 17px; background: var(--accent-300); margin-left: -8px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ask-send {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--text);
  color: #08090c;
  font-weight: 600;
}
.answer {
  max-height: 0;
  margin-top: 0;
  padding: 0 14px;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(var(--tint-rgb), .04);
  border: 1px solid transparent;
  opacity: 0;
  transition: max-height .8s var(--ease), padding .8s var(--ease), margin .8s var(--ease), opacity .6s var(--ease) .1s, border-color .6s;
}
.answered .answer { max-height: 240px; margin-top: 10px; padding: 14px; opacity: 1; border-color: var(--line); }
.answer-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-weight: 500; }
.answer-head em { font: 400 11px/1 var(--mono); font-style: normal; color: var(--accent-200); }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 1fr 48px; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.bar i { height: 8px; border-radius: 99px; background: var(--grad-bar); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); width: calc(var(--v) * 100%); box-shadow: 0 0 14px rgba(var(--glow-rgb), .3); }
.answered .bar i { transform: scaleX(1); }
.answered .bar:nth-child(2) i { transition-delay: .1s; }
.answered .bar:nth-child(3) i { transition-delay: .2s; }
.answered .bar:nth-child(4) i { transition-delay: .3s; }

.chip-thread { padding: 0; overflow: hidden; }
.thread-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 500; }
.thread-head .hash { color: var(--text-3); }
.thread-head em { margin-left: auto; font: 400 11px/1 var(--mono); font-style: normal; color: var(--text-3); letter-spacing: .06em; }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 16px; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.msg.on { opacity: 1; transform: none; }
.msg b { color: var(--accent-200); font-weight: 500; }
.avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); font: 500 11px/1 var(--mono); color: var(--text-2); }
.avatar-bot { background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .3); }
.avatar-bot svg { width: 14px; height: 14px; fill: var(--accent-300); }
.trust { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.score { padding: 3px 8px; border-radius: 99px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .35); color: var(--accent-200); font: 500 11px/1.2 var(--mono); }
.exceptions { margin-top: 8px; color: var(--doppler); font-size: 12.5px; }

/* ==========================================================================
   Metrics
   ========================================================================== */
.metrics {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--section) 0;
  overflow: hidden;
}
.metrics::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 120vw);
  aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--glow-rgb), .13), rgba(var(--glow-rgb), .04) 55%, transparent);
  pointer-events: none;
}
.metrics-inner { position: relative; z-index: 2; text-align: center; }
.stat { display: block; }
.stat-num {
  display: block;
  font-size: clamp(88px, 17vw, 236px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: .9;
  font-variant-numeric: tabular-nums;
  background: var(--grad-stat);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(var(--glow-rgb), .18));
}
.stat-label {
  display: block;
  max-width: 17em;
  margin: 36px auto 0;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* ==========================================================================
   Compound
   ========================================================================== */
.compound { padding: calc(var(--section) * .6) 0 var(--section); }
.compound-inner { text-align: center; }
.pull p {
  max-width: 19em;
  text-wrap: balance;
  margin: 0 auto;
  font-size: clamp(30px, 4.3vw, 60px);
  font-weight: 400;
  letter-spacing: -0.042em;
  line-height: 1.08;
}
.cycle { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 64px; font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.cycle span { color: var(--accent-300); margin-right: 10px; }
.cycle .arrow { width: clamp(28px, 6vw, 80px); height: 1px; background: linear-gradient(90deg, var(--line-3), var(--accent-300)); position: relative; }
.cycle .arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--accent-300); border-right: 0; }

/* ==========================================================================
   Capabilities
   ========================================================================== */
.capabilities { padding-bottom: var(--section); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 104px; }
.cap {
  display: flex;
  flex-direction: column;
  padding: 38px 34px 40px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease);
}
.cap:hover { border-color: var(--line-2); }
.cap-k { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.cap h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 14px; }
.cap p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.cap .cap-tags { margin-top: auto; padding-top: 26px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-200); }


/* ==========================================================================
   Approach
   ========================================================================== */
.approach { padding-bottom: var(--section); }
.phases { position: relative; margin-top: 112px; }
.phase-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 52px); }
.phase .node {
  display: block;
  width: 15px;
  height: 15px;
  margin-bottom: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  background: var(--bg);
  transition: border-color .5s, background .5s, box-shadow .5s;
}
.phase.lit .node { border-color: var(--accent-300); background: var(--accent-300); }
.phase-k { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.phase h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 16px; }
.phase p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.deliverable {
  display: inline-flex;
  margin-top: 28px;
  padding: 6px 10px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color .5s, border-color .5s;
}
.phase.lit .deliverable { color: var(--accent-200); border-color: rgba(var(--accent-rgb), .35); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding-bottom: var(--section); }
.faq-inner { max-width: 780px; }
.faq-list { display: grid; gap: 12px; margin-top: 80px; }
.qa { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.qa.open { border-color: var(--line-2); background: var(--surface-2); }
.q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px;
  border: 0;
  background: none;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}
.q i { position: relative; width: 12px; height: 12px; flex: none; }
.q i::before, .q i::after { content: ""; position: absolute; left: 0; top: 5.25px; width: 12px; height: 1.5px; border-radius: 1px; background: var(--text-2); transition: transform .5s var(--ease), background .3s; }
.q i::after { transform: rotate(90deg); }
.qa.open .q i::after { transform: rotate(0deg); }
.qa.open .q i::before, .qa.open .q i::after { background: var(--accent-300); }
.a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.a > div { overflow: hidden; }
.qa.open .a { grid-template-rows: 1fr; }
.a p { padding: 0 28px 28px; color: var(--text-2); max-width: 62ch; }

/* ==========================================================================
   Begin
   ========================================================================== */
.begin { padding-bottom: 48px; }
.begin-panel {
  position: relative;
  min-height: min(88svh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: #06080c;
  text-align: center;
}
.begin-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, rgba(5, 5, 5, .38), rgba(5, 5, 5, 0) 75%); pointer-events: none; }
.streaks-begin {
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(26, 123, 214, .55) 14%, transparent 20%, rgba(107, 146, 255, .5) 29%, transparent 34%, transparent 44%, rgba(205, 217, 255, .35) 49%, transparent 53%, rgba(50, 128, 255, .55) 64%, transparent 70%, rgba(196, 212, 240, .3) 79%, transparent 85%),
    linear-gradient(180deg, #050e18, #050708 60%, #050f1a);
  animation: drift-x 24s ease-in-out infinite alternate;
  opacity: .9;
}
.begin-inner { position: relative; z-index: 1; width: 100%; display: grid; justify-items: center; padding: 130px 28px; }
.begin-inner .display { max-width: 14em; margin-bottom: 28px; }
.begin-inner .lede { margin-bottom: 46px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding-top: 48px; }
/* one row: title, contact, legal — bottoms aligned */
.footer-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 56px;
  padding: clamp(28px, 3.4vw, 44px) clamp(28px, 4vw, 52px);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.footer-title { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.footer-k { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.footer-contact .copy-link { padding-bottom: 0; }
.footer-legal { font: 400 11.5px/1.7 var(--mono); color: var(--text-3); }
.footer-wordmark { margin-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(20px, 3vw, 44px); }
.lockup { position: relative; }
.lockup-svg { width: 100%; height: auto; aspect-ratio: 1317 / 198; }
.band-lockup { position: absolute; inset: 0; }
.has-bands .lockup:not(.band-lost) .lockup-svg { visibility: hidden; }

/* ==========================================================================
   Contact dialog
   ========================================================================== */
.contact {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border-radius: 26px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 140px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(var(--accent-rgb), .05);
}
.contact::backdrop { background: rgba(3, 3, 3, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.contact[open] { animation: dialog-in .6s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.contact-form { position: relative; padding: clamp(28px, 5vw, 44px); }
.contact-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--text-2); cursor: pointer; }
.contact-close:hover { color: var(--text); border-color: var(--line-3); }
.contact .display { font-size: clamp(34px, 5vw, 48px); margin-bottom: 30px; }
.field { display: block; margin-bottom: 22px; }
.field span { display: block; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  font-size: 17px;
  resize: vertical;
  outline: none;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent-300); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.contact-actions .copy-link { color: var(--text-3); font-size: 13.5px; }
.contact-actions .copy-link:hover { color: var(--text); }
.contact-done .lede { margin-bottom: 28px; }
.contact-error { margin-top: 18px; color: #ff9a8a; font-size: 14px; line-height: 1.5; }
.pill:disabled { opacity: .6; cursor: progress; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1099px) {
  .hero-content { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero-side { width: min(420px, 100%); }
}

@media (max-width: 699px) {
  .hero-content { bottom: 32px; gap: 24px; }
  .hero-lead { max-width: 100%; }
  .hero-kicker { margin-bottom: 20px; }
  .hero-lede { display: none; }
  .hero-side { width: 100%; gap: 16px; }

  /* signup forms: email on one line, the button full width beneath */
  .capture, .capture:focus-within { flex-direction: column; align-items: stretch; gap: 8px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .capture input {
    flex: none;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(var(--tint-rgb), 0.12);
    background: rgba(15, 18, 22, 0.6);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 16px;   /* below 16px iOS zooms the page on focus */
    transition: border-color .3s, box-shadow .3s;
  }
  .capture input:focus { border-color: rgba(var(--accent-hi-rgb), 0.45); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08); }
  .capture input:-webkit-autofill:focus { box-shadow: 0 0 0 60px var(--autofill-bg) inset, 0 0 0 4px rgba(var(--accent-rgb), 0.08); }
  .capture button, .capture-lg button { width: 100%; height: 50px; font-size: 15px; }
  .capture-lg { width: 100%; }
}

@media (max-width: 1080px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap:last-child { grid-column: 1 / -1; }
  .phase-list { grid-template-columns: 1fr 1fr; row-gap: 72px; }
}

@media (max-width: 860px) {
  .pill-solid { font-size: 12.5px; padding: 0 12px; height: 34px; }
  .nav .pill { height: 34px; font-size: 12.5px; padding: 0 12px; }

  .section-head { grid-template-columns: 1fr; row-gap: 22px; }
  .section-head .lede { justify-self: start; }

  .deck { height: auto; }
  .deck-sticky { position: static; height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding-top: 8px; }
  .deck-copy, .deck-stage { display: contents; }
  .deck-item, .deck-item.is-active { opacity: 1; margin-top: 48px; }
  .deck-item p { max-height: none; opacity: 1; margin-top: 12px; }
  .deck-item:nth-child(1) { order: 1; }
  .deck-card[data-card="0"] { order: 2; }
  .deck-item:nth-child(2) { order: 3; }
  .deck-card[data-card="1"] { order: 4; }
  .deck-item:nth-child(3) { order: 5; }
  .deck-card[data-card="2"] { order: 6; }
  .deck-card { position: relative; height: 420px; transform: none !important; opacity: 1 !important; }
  .deck-card::before { display: none; }

  .cycle { flex-wrap: wrap; gap: 12px; }

  .cap-grid { grid-template-columns: 1fr; }
  .phase-list { grid-template-columns: 1fr; }
  .footer-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .nav-brand svg { height: 16px; }
  .hero-kicker { font-size: 10px; letter-spacing: .1em; gap: 8px; }
  .hero-kicker span { white-space: nowrap; }
  .cycle .arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; filter: none; transition: opacity .6s linear; }
  .streaks, .tag-live::before, .spinner, .task.run i, .caret, .variant.gen::after { animation: none; }
  .js .variant svg { transform: none; }
  .copy-idle, .copy-done { transform: none; filter: none; }
  .js .hero-kicker, .js .hero-title .line, .js .hero-side > * { transform: none; filter: none; }
}
