/* ==========================================================================
   TakeStack — landing. Aesthetic: "the edit suite at 2am".
   Warm film-black, playhead amber, track colors borrowed from the app.
   All motion is CSS-only (transform/opacity), disabled under
   prefers-reduced-motion. No frameworks, no libraries.
   ========================================================================== */

:root {
  --bg: #0b0a08;
  --bg-2: #12100c;
  --panel: #161310;
  --panel-2: #1c1813;
  --border: #2a251d;
  --border-2: #383023;
  --text: #f2ede4;
  --muted: #a89e8c;
  --faint: #7a7264;
  --amber: #f5a623;
  --amber-2: #ffc35c;
  --blue: #5b8cff;
  --green: #43d17c;
  --teal: #39c6c0;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-mono: "IBM Plex Mono", monospace;
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--amber); color: #14100a; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ---- atmosphere ---------------------------------------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 3; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}
.glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; border-radius: 50%;
  filter: blur(120px); opacity: 0.14;
}
.glow-a { top: -25vw; right: -20vw; background: #c76a10; animation: drift-a 26s ease-in-out infinite alternate; }
.glow-b { bottom: -30vw; left: -22vw; background: #23405e; animation: drift-b 32s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-6vw, 5vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(5vw, -6vh) scale(1.1); } }

main, .nav, .footer { position: relative; z-index: 1; }

/* ---- scroll reveals ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-snap), transform 0.7s var(--ease-snap);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---- nav ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 10, 8, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
}
.brand-mark { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.brand-mark i {
  width: 4.5px; border-radius: 2px; background: var(--amber);
  animation: mark-eq 2.6s ease-in-out infinite;
}
.brand-mark i:nth-child(1) { height: 8px; animation-delay: 0s; }
.brand-mark i:nth-child(2) { height: 13px; animation-delay: 0.2s; background: var(--amber-2); }
.brand-mark i:nth-child(3) { height: 18px; animation-delay: 0.4s; background: #ffdca3; }
@keyframes mark-eq {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
}
.nav-links { display: flex; gap: 22px; margin-left: 10px; margin-right: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--amber); transition: width 0.25s var(--ease-snap);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ---- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease-snap), box-shadow 0.2s, background 0.2s,
              border-color 0.2s, color 0.2s;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--amber); color: #191204;
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.28);
}
.btn-primary::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -30%;
  width: 20%; transform: skewX(-20deg);
  background: rgba(255, 255, 255, 0.35);
  transition: left 0.45s var(--ease-snap);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(245, 166, 35, 0.4); }
.btn-primary:hover::before { left: 125%; }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-2); transform: translateY(-2px); }
.play-tri {
  width: 0; height: 0; border-left: 9px solid currentColor;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

/* ---- shared kickers -------------------------------------------------------- */
.section-kicker {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 14px;
}
.h2, .band-h {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.12;
}
.rec-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #ff4d3d; margin-right: 8px; vertical-align: middle;
  animation: rec-blink 1.6s ease-in-out infinite;
}
@keyframes rec-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---- hero ------------------------------------------------------------------ */
.hero { padding: 88px 0 70px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 0.94fr 1.06fr; gap: 56px;
  align-items: center;
}
/* Grid/flex children must be allowed to shrink below their content width,
   or a wide panel (mono titles, timeline) drags the whole column past the
   viewport on phones and the copy gets clipped. */
.hero-grid > *, .feature-grid > * { min-width: 0; }
.tlp-head .tlp-title { flex: 1; min-width: 0; }
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(42px, 5.6vw, 68px); line-height: 1.02;
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px;
}
.hero h1 em { color: var(--amber-2); }
.lede { color: var(--muted); font-size: 18.5px; max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.trust-line { color: var(--faint); font-size: 14.5px; }
.trust-line .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-right: 8px;
  box-shadow: 0 0 12px rgba(67, 209, 124, 0.8);
}

/* ---- hero timeline panel (the self-editing cut) ---------------------------- */
.tlp {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.04);
  padding: 18px 18px 14px;
  transform: rotate(0.6deg);
}
.tlp-head {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  padding-bottom: 12px;
}
.tlp-rec { color: #ff8d80; letter-spacing: 0.1em; }
.tlp-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlp-tc { margin-left: auto; color: var(--amber-2); font-weight: 600; }
.tlp-ruler {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 4px 0; margin-bottom: 10px;
}
.tlp-ruler i { width: 1px; height: 7px; background: var(--border-2); }
.tlp-ruler i:nth-child(3n+1) { height: 12px; background: var(--faint); }
.tlp-body { position: relative; display: flex; flex-direction: column; gap: 8px; }
.tlp-playhead {
  position: absolute; top: -6px; bottom: -4px; left: 8%; width: 2px;
  background: var(--amber); z-index: 5; border-radius: 1px;
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.9);
  animation: sweep 8s linear infinite;
}
.tlp-playhead::before {
  content: ""; position: absolute; top: -7px; left: -5px;
  border: 6px solid transparent; border-top-color: var(--amber);
}
@keyframes sweep { 0% { left: 6%; } 100% { left: 97%; } }
.tlp-track { display: flex; align-items: center; gap: 10px; height: 44px; }
.tlp-lbl {
  font-family: var(--font-mono); font-size: 11px; color: var(--faint);
  width: 22px; flex-shrink: 0; text-align: right;
}
.tlp-clip {
  height: 100%; border-radius: 8px; padding: 6px 12px;
  display: flex; flex-direction: column; justify-content: center;
  color: rgba(255, 255, 255, 0.95); line-height: 1.25; min-width: 0;
}
.tlp-clip b { font-size: 12.5px; font-weight: 700; }
.tlp-clip span { font-size: 11px; opacity: 0.75; font-family: var(--font-mono); }
.c-blue   { background: linear-gradient(180deg, #5b8cff, #4571e0); width: 74%; }
.c-orange { background: linear-gradient(180deg, #f09c2c, #d9820f); width: 60%; margin-left: 4%; }
.c-green  { background: linear-gradient(180deg, #43d17c, #2ca75d); width: 48%; margin-left: 10%; }
/* clips assemble on load */
.clip-1, .clip-2, .clip-3 { animation: clip-in 0.9s var(--ease-snap) backwards; }
.clip-2 { animation-delay: 0.25s; }
.clip-3 { animation-delay: 0.45s; }
@keyframes clip-in {
  from { opacity: 0; transform: translateX(60px) scaleX(0.6); transform-origin: left; }
  to   { opacity: 1; transform: none; }
}
/* the "make pick" moment: V1 and V2 trade places every sweep */
.swap-a { animation: clip-in 0.9s var(--ease-snap) backwards, swap-up 8s var(--ease-snap) 1.2s infinite; }
.swap-b { animation: clip-in 0.9s var(--ease-snap) 0.25s backwards, swap-down 8s var(--ease-snap) 1.2s infinite; }
@keyframes swap-up {
  0%, 55% { transform: translateY(0); filter: brightness(1); }
  62% { transform: translateY(-52px) scale(1.03); filter: brightness(1.25); }
  70%, 100% { transform: translateY(-52px); filter: brightness(1.1); }
}
@keyframes swap-down {
  0%, 55% { transform: translateY(0); filter: brightness(1); }
  62% { transform: translateY(52px) scale(0.98); filter: brightness(0.8); }
  70%, 100% { transform: translateY(52px); filter: brightness(0.85); }
}
.tlp-audio { height: 30px; }
.tlp-wave { display: flex; align-items: center; gap: 2.5px; width: 88%; height: 100%; }
.tlp-wave i {
  flex: 1; height: 30%; border-radius: 2px;
  background: rgba(245, 166, 35, 0.55);
  animation: wave-bounce 1.9s ease-in-out infinite;
}
.tlp-wave i:nth-child(3n)  { animation-delay: 0.18s; height: 65%; }
.tlp-wave i:nth-child(4n)  { animation-delay: 0.35s; height: 45%; }
.tlp-wave i:nth-child(5n)  { animation-delay: 0.09s; height: 82%; }
.tlp-wave i:nth-child(7n)  { animation-delay: 0.5s; height: 25%; }
@keyframes wave-bounce { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }
.tlp-cap {
  margin-top: 14px; font-size: 13px; color: var(--faint);
  font-family: var(--font-mono);
}
.tlp-cap .k { color: var(--amber-2); }

/* ---- pain ticker ------------------------------------------------------------ */
.ticker-band {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 13px 0; overflow: hidden;
}
.ticker { display: flex; }
.ticker-inner {
  display: flex; align-items: center; gap: 26px; flex-shrink: 0;
  animation: ticker-roll 42s linear infinite;
  font-family: var(--font-serif); font-style: italic;
  font-size: 17px; color: var(--faint); white-space: nowrap;
  padding-right: 26px;
}
.ticker-inner span { text-decoration: line-through; text-decoration-color: rgba(245, 166, 35, 0.6); text-decoration-thickness: 1.5px; }
.ticker-inner i { color: var(--amber); font-style: normal; }
@keyframes ticker-roll { to { transform: translateX(-50%); } }
.ticker:hover .ticker-inner { animation-play-state: paused; }

/* ---- demo (monitor) ---------------------------------------------------------- */
.demo { padding: 96px 0 60px; }
.monitor {
  max-width: 980px; margin: 40px auto 0;
  background: #060504;
  border: 1px solid var(--border-2);
  border-radius: 18px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255,255,255,0.015);
  overflow: hidden;
}
.monitor-top {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--muted); padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.monitor-tc { margin-left: auto; color: var(--amber-2); }
.demo-frame video { display: block; width: 100%; height: auto; background: #000; }
.demo-cap { text-align: center; color: var(--faint); font-size: 14px; margin-top: 16px; }

/* ---- stat band ---------------------------------------------------------------- */
.stat-band { padding: 90px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-tc {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 8px 0 26px;
}
.stat-label, .stat-after {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
}
.stat-clock {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(54px, 9vw, 108px); letter-spacing: 0.02em;
  color: var(--amber-2); line-height: 1;
  text-shadow: 0 0 42px rgba(245, 166, 35, 0.35);
  font-variant-numeric: tabular-nums;
}
.band-h.center { max-width: 21em; margin: 0 auto 18px; }
.band-sub { color: var(--muted); max-width: 44em; margin: 0 auto; font-size: 17.5px; }

/* ---- how it works ---------------------------------------------------------------- */
.how { padding: 100px 0; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 48px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 26px 24px 24px;
  transition: transform 0.25s var(--ease-snap), border-color 0.25s, box-shadow 0.25s;
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.step-n {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--amber); letter-spacing: 0.14em;
}
.step h3 { font-size: 20px; font-weight: 700; margin: 10px 0 14px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 15.5px; }
.step-viz {
  height: 62px; border-radius: 10px; margin-bottom: 16px;
  background: var(--bg-2); border: 1px dashed var(--border-2);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  overflow: hidden;
}
.viz-ingest .chip {
  width: 34px; height: 22px; border-radius: 5px; display: inline-block;
  animation: chip-drop 2.8s var(--ease-snap) infinite;
}
.viz-ingest .chip.c-blue { background: var(--blue); animation-delay: 0s; }
.viz-ingest .chip.c-orange { background: var(--amber); animation-delay: 0.25s; }
.viz-ingest .chip.c-green { background: var(--green); animation-delay: 0.5s; }
@keyframes chip-drop {
  0% { transform: translateY(-34px); opacity: 0; }
  22%, 78% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.35; }
}
.viz-arrow { color: var(--faint); font-size: 16px; }
.viz-doc {
  width: 26px; height: 32px; border-radius: 4px;
  border: 1.5px solid var(--muted); position: relative;
}
.viz-doc::before, .viz-doc::after {
  content: ""; position: absolute; left: 4px; right: 4px; height: 2px;
  background: var(--faint);
}
.viz-doc::before { top: 8px; } .viz-doc::after { top: 14px; width: 60%; }
.viz-match { flex-direction: column; gap: 7px; padding: 0 18px; }
.viz-line { display: block; height: 7px; border-radius: 4px; width: 100%; background: var(--border-2); position: relative; overflow: hidden; }
.viz-line::after {
  content: ""; position: absolute; inset: 0; border-radius: 4px;
  transform: scaleX(0); transform-origin: left;
  animation: line-match 3.2s var(--ease-snap) infinite;
}
.viz-line.l1::after { background: var(--blue); animation-delay: 0s; }
.viz-line.l2::after { background: var(--amber); animation-delay: 0.35s; }
.viz-line.l3::after { background: var(--green); animation-delay: 0.7s; }
@keyframes line-match {
  0% { transform: scaleX(0); }
  30%, 82% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0.25; }
}
.viz-xml {
  border: 1.5px solid var(--amber); color: var(--amber-2);
  padding: 4px 9px; border-radius: 6px; font-weight: 600;
  animation: xml-pulse 2.6s ease-in-out infinite;
}
@keyframes xml-pulse { 0%, 100% { box-shadow: 0 0 0 rgba(245,166,35,0); } 50% { box-shadow: 0 0 18px rgba(245,166,35,0.45); } }
.viz-nle { color: var(--muted); }

/* ---- wedge (stack A/B) ---------------------------------------------------------- */
.band-feature { padding: 100px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.feature-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 15px; }
.feature-list li { color: var(--muted); font-size: 16px; padding-left: 26px; position: relative; }
.feature-list li::before {
  content: "▸"; position: absolute; left: 0; top: 0;
  color: var(--amber); font-size: 15px;
}
.feature-list strong { color: var(--text); font-weight: 650; }
.stack-card {
  background: var(--panel);
  border: 1px solid var(--border-2); border-radius: 16px;
  padding: 20px 20px 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  transform: rotate(-0.7deg);
}
.stack-head {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  margin-bottom: 14px; letter-spacing: 0.06em;
}
.stack-card .row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.stack-card .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--faint); width: 22px; text-align: right; }
.stack-card .bar {
  flex: 1; height: 40px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 12px;
  font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,0.85);
}
.stack-card .bar.ab { animation: ab-solo 6.4s ease-in-out infinite; }
.stack-card .ab-1 { animation-delay: 0s;   background: linear-gradient(180deg,#4a72cf,#3b5cab); }
.stack-card .ab-2 { animation-delay: 1.6s; background: linear-gradient(180deg,#cf8a1e,#a86f16); }
.stack-card .ab-3 { animation-delay: 3.2s; background: linear-gradient(180deg,#2fae67,#268a52); }
.stack-card .ab-4 { animation-delay: 4.8s; background: linear-gradient(180deg,#3fa8a3,#2f807c); }
@keyframes ab-solo {
  0%, 19% { opacity: 1; transform: translateX(0); box-shadow: 0 0 22px rgba(255,255,255,0.12); }
  25%, 94% { opacity: 0.28; transform: translateX(0); box-shadow: none; }
  100% { opacity: 1; }
}
.stack-tc {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--faint);
  margin-top: 12px; text-align: center;
}

/* ---- trust ------------------------------------------------------------------------ */
.trust { padding: 90px 0; position: relative; }
.trust::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 14px, var(--border) 14px 26px);
  opacity: 0.5; mask-image: linear-gradient(180deg, #000, transparent);
}
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trust-item h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.trust-item h3::before { content: "■ "; color: var(--amber); font-size: 12px; vertical-align: 2px; }
.trust-item p { color: var(--muted); font-size: 15.5px; }

/* ---- CTA slate ---------------------------------------------------------------------- */
.cta { padding: 40px 0 110px; }
.slate {
  max-width: 760px; margin: 0 auto;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-2); border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55);
}
.slate-top {
  display: flex; gap: 26px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--faint); padding: 14px 26px;
  border-bottom: 1px solid var(--border);
  background:
    repeating-linear-gradient(-45deg,
      rgba(245,166,35,0.13) 0 16px, transparent 16px 32px);
}
.slate-top b { color: var(--text); font-weight: 600; }
.slate-body { padding: 40px 44px 44px; text-align: center; }
.slate-body h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-sub { color: var(--muted); max-width: 34em; margin: 0 auto 28px; }
.waitlist { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; }
.waitlist input {
  flex: 1; min-width: 0;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-2); border-radius: 10px;
  padding: 13px 16px; font-family: var(--font-display); font-size: 15.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist input:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
}
.form-note { margin-top: 18px; font-size: 14px; color: var(--faint); }
.form-note.success { color: var(--green); }
.form-note.error { color: #ff7a7a; }

/* ---- footer ---------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding: 30px 0; background: #080706; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand.small { font-size: 16px; }
.footer-tag { color: var(--faint); font-size: 15px; }
.footer-tc { color: var(--faint); font-size: 12px; }

/* ---- focus visibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px;
}

/* ---- responsive -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .feature-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps, .trust-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 50px; }
  .hero-visual { order: 2; }
  .feature-visual { order: -1; }
  .nav-links { display: none; }
  .tlp { transform: none; }
  .stack-card { transform: none; }
}
@media (max-width: 520px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .waitlist { flex-direction: column; }
  .slate-body { padding: 30px 22px 34px; }
  .slate-top { gap: 10px; padding: 12px 16px; }
}

/* ---- reduced motion: everything settles, nothing loops ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .glow-a, .glow-b, .brand-mark i, .rec-dot,
  .tlp-playhead, .clip-1, .clip-2, .clip-3, .swap-a, .swap-b,
  .tlp-wave i, .ticker-inner, .viz-ingest .chip, .viz-line::after,
  .viz-xml, .stack-card .bar.ab {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .viz-line::after { transform: scaleX(1); }
}

/* Netlify Forms honeypot — visually gone, present for bots. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   SCROLL STORY — how it works, told with the real app.
   Sticky stage on the right; the active beat's screenshot floats and
   swaps with a filmic push exactly when its text crosses mid-viewport.
   ========================================================================== */
.story { padding: 110px 0 40px; position: relative; }
.story-hint { color: var(--faint); font-size: 12px; letter-spacing: .2em;
  margin-top: 14px; }
.story-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 52px;
  align-items: start; margin-top: 26px; max-width: 1280px; }

/* ---- left: the beats ----------------------------------------------------- */
.story-steps { position: relative; padding-left: 26px; padding-top: 10vh;
  padding-bottom: 14vh; }
.story-steps::before { /* the rail */
  content: ""; position: absolute; left: 6px; top: 30px; bottom: 30px;
  width: 2px; background: var(--border);
}
.story-step { min-height: 80vh; display: flex; flex-direction: column;
  justify-content: center; opacity: .3; transition: opacity .45s ease;
  position: relative;
}
.story-copy { position: relative; }
.story-copy::before { /* rail dot, beside the beat number */
  content: ""; position: absolute; left: -26px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-2); transform: translateX(1px);
  transition: background .4s ease, box-shadow .4s ease;
}
.story-step.is-active { opacity: 1; }
.story-step.is-active .story-copy::before { background: var(--amber);
  box-shadow: 0 0 14px rgba(245, 166, 35, .8); }
.story-n { color: var(--faint); font-size: 13px; letter-spacing: .18em;
  transition: color .4s ease; }
.story-step.is-active .story-n { color: var(--amber); }
.story-copy h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2;
  margin: 8px 0 12px; }
.story-copy p { color: var(--muted); max-width: 42ch; }
.story-inline-shot { display: none; } /* mobile only */

/* ---- right: the sticky stage --------------------------------------------- */
.story-visual { position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; }
.story-stage { position: relative; width: 100%; aspect-ratio: 16 / 10.5; }
.story-stage::before, .story-stage::after { /* drifting glow blobs */
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(70px); z-index: 0; pointer-events: none;
}
.story-stage::before { width: 46%; height: 46%; left: -8%; top: -6%;
  background: rgba(245, 166, 35, .16);
  animation: blob-a 16s ease-in-out infinite alternate; }
.story-stage::after { width: 40%; height: 40%; right: -6%; bottom: -8%;
  background: rgba(91, 140, 255, .14);
  animation: blob-b 19s ease-in-out infinite alternate; }
@keyframes blob-a { to { transform: translate(30px, 42px) scale(1.15); } }
@keyframes blob-b { to { transform: translate(-36px, -30px) scale(1.1); } }

.story-shot { position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(34px) scale(.96);
  transition: opacity .45s ease, transform .5s ease;
  pointer-events: none;
}
.story-shot.is-active { opacity: 1; transform: none;
  animation: shot-in .7s var(--ease-snap) both,
             shot-float 9s ease-in-out .8s infinite alternate; }
@keyframes shot-in {
  from { opacity: 0; transform: translateY(44px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shot-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}
.shot-chrome { display: flex; align-items: center; gap: 6px;
  background: var(--panel-2); border: 1px solid var(--border-2);
  border-bottom: none; border-radius: 12px 12px 0 0;
  padding: 9px 14px; font-size: 11px; color: var(--faint);
  letter-spacing: .06em;
}
.shot-chrome i { width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-2); display: inline-block; }
.shot-chrome i:nth-child(1) { background: #e0654f; }
.shot-chrome i:nth-child(2) { background: var(--amber); }
.shot-chrome i:nth-child(3) { background: var(--green); }
.shot-chrome span { margin-left: 6px; }
.story-shot > img { display: block; width: 100%;
  border: 1px solid var(--border-2); border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}

/* hero clarity line */
.lede-clear { font-size: clamp(17px, 1.6vw, 20px); color: var(--text); }
.lede-sub { color: var(--faint); font-size: 15px; margin-top: 10px; }

/* ---- story: mobile — stacked, image per step ------------------------------ */
@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-visual { display: none; }
  .story-steps { padding-left: 22px; padding-top: 0; }
  .story-step { min-height: 0; opacity: 1; padding: 34px 0; }
  /* dot: the rail sits closer on mobile */
  .story-copy::before { left: -21px; top: 7px; }
  /* photos push up into place as their beat arrives, then float */
  .story-inline-shot { display: block; width: 100%; margin-top: 18px;
    border: 1px solid var(--border-2); border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
    opacity: 0; transform: translateY(28px) scale(.97);
    transition: opacity .6s ease, transform .65s var(--ease-snap); }
  .story-step.is-seen .story-inline-shot { opacity: 1; transform: none;
    animation: shot-float 9s ease-in-out .8s infinite alternate; }
}

/* ---- story: reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .story-shot, .story-shot.is-active,
  .story-inline-shot, .story-step.is-seen .story-inline-shot,
  .story-stage::before, .story-stage::after { animation: none; }
  .story-inline-shot { opacity: 1; transform: none; transition: none; }
  .story-shot { transition: opacity .2s linear; transform: none; }
  .story-step { opacity: 1; transition: none; }
}
