/* ==========================================================================
   Stories Alive — "Studio Live"
   Bright cinematic product-demo landing page — Tangerine light mode.
   ========================================================================== */

:root {
  /* Brand tokens (mandatory) */
  --canvas: #FCFBF9;
  --surface: #FFFFFF;
  --ink: #191411;
  --ink-muted: #6F675E;
  --ink-faint: #A69C90;
  --accent: #F4530A;
  --accent-pressed: #D9490A;
  --accent-tint-bg: #FDEEE4;
  --accent-tint-text: #C2410C;
  --border: #ECE7E0;
  --success: #1A9E4B;
  --danger: #D92D20;

  /* Studio Live light palette — warm paper, never flat/cold white.
     Kept the --studio-* names so every downstream rule below still resolves,
     but they now point at light-mode surfaces/ink instead of dark charcoal. */
  --studio-0: var(--canvas);
  --studio-1: #FFF7F1;
  --studio-2: #F5F1EC;
  --studio-3: #FDEEE4;
  --studio-line: var(--border);
  --studio-line-strong: #DED6CB;
  --studio-ink: var(--ink);
  --studio-ink-muted: var(--ink-muted);
  --studio-ink-faint: var(--ink-faint);
  --accent-glow: rgba(244, 83, 10, 0.28);
  --accent-glow-soft: rgba(244, 83, 10, 0.14);

  /* Elevation ramp — layered soft shadows + tangerine halo, replaces glow-on-black */
  --shadow-card: 0 0 0 1px rgba(25,20,17,.06), 0 2px 4px rgba(0,0,0,.04), 0 12px 24px -8px rgba(0,0,0,.08);
  --shadow-hero: 0 0 0 1px rgba(25,20,17,.06), 0 2px 4px rgba(0,0,0,.04), 0 12px 24px -8px rgba(0,0,0,.08), 0 40px 60px -30px rgba(244,83,10,.14);
  --shadow-lift: 0 0 0 1px rgba(25,20,17,.07), 0 4px 8px rgba(0,0,0,.05), 0 20px 36px -14px rgba(0,0,0,.12), 0 48px 70px -30px rgba(244,83,10,.16);

  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', 'Space Grotesk', serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --radius-xl: 28px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--studio-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.visually-hidden {
  position: absolute;
  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;
  top: -60px; left: 16px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Ambient background ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.02;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.7;
}
.glow--a {
  width: 800px; height: 700px;
  top: -240px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #FDEEE4 0%, transparent 70%);
}
.glow--b {
  width: 640px; height: 600px;
  bottom: 10%; right: -160px;
  background: radial-gradient(circle, #FFF4EC 0%, transparent 70%);
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(244,83,10,0.45), 0 2px 6px rgba(0,0,0,0.08);
}
.btn--accent:hover { background: var(--accent-pressed); transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(244,83,10,0.5), 0 4px 10px rgba(0,0,0,0.1); }
.btn--ghost {
  background: transparent;
  border-color: var(--studio-line-strong);
  color: var(--studio-ink);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(252, 251, 249, 0.72);
  border-bottom: 1px solid var(--studio-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo-mark { display: inline-flex; }
.header-nav {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--studio-ink-muted);
}
.header-nav a { transition: color 0.2s; }
.header-nav a:hover { color: var(--studio-ink); }
@media (max-width: 800px) {
  .header-nav { display: none; }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-tint-text);
  background: var(--accent-tint-bg);
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  margin: 0 0 20px;
}
.eyebrow--light {
  color: var(--accent-tint-text);
  background: var(--accent-tint-bg);
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px currentColor, 0 0 10px 2px currentColor;
  opacity: 0.9;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  padding: 96px 0 60px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: none;
  color: var(--studio-ink);
}
.hero-title-lead {
  white-space: nowrap;
}
.hero-title-accent {
  color: var(--accent);
  font-style: italic;
}
.hero-sub {
  margin-top: 26px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--studio-ink-muted);
  max-width: 46ch;
  line-height: 1.5;
}

/* ---------- Hero console (faux product UI) ---------- */
.hero-console {
  margin: 52px 0 40px;
  width: 100%;
  max-width: 640px;
}
.console-frame {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  text-align: left;
}
.console-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--studio-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 9px; height: 9px; border-radius: 50%; opacity: 0.85; }
.dot--r { background: #D92D20; }
.dot--y { background: #E0A100; }
.dot--g { background: #1A9E4B; }
.console-title {
  margin-left: 10px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.console-body { padding: 28px 26px 24px; }
.console-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.console-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 500;
  min-height: 1.6em;
  color: var(--ink);
}
.console-caret { color: var(--accent); font-weight: 700; }
.console-cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }
.console-chips {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.chip {
  font-size: 0.78rem;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-tint-bg);
  color: var(--accent-tint-text);
  border: 1px solid rgba(244,83,10,0.18);
  font-weight: 500;
}
.hero-console-caption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- Waitlist form ---------- */
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 480px;
}
.waitlist-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.waitlist-input::placeholder { color: var(--ink-faint); }
.waitlist-input:focus { border-color: var(--accent); background: var(--surface); }
.waitlist-input.is-invalid { border-color: var(--danger); }
.waitlist-msg {
  flex-basis: 100%;
  font-size: 0.88rem;
  min-height: 1.4em;
  color: var(--ink-muted);
}
.waitlist-msg.is-success { color: var(--success); }
.waitlist-msg.is-error { color: var(--danger); }
.hero-microcopy {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.hero-fade {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 1200px;
  margin: 40px auto 0;
}

/* ---------- Section shared ---------- */
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.section-title--dark { color: var(--ink); }
.section-sub {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.section-sub--dark { color: var(--ink-muted); }
.section-sub em { color: var(--accent); font-style: italic; }

/* ---------- Build sequence (signature element) ---------- */
.build {
  position: relative;
  z-index: 2;
  padding: 100px 0 0;
}
.build-stage-wrap {
  position: sticky;
  top: 76px;
  padding-bottom: 24px;
  z-index: 1;
}
.build-scroll-driver {
  height: 60vh;
}
@media (prefers-reduced-motion: reduce) {
  .build-scroll-driver { height: 0; }
}
.build-track-viewport {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 12px 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: var(--studio-line-strong) transparent;
}
.build-track-viewport::-webkit-scrollbar { height: 8px; }
.build-track-viewport::-webkit-scrollbar-thumb { background: var(--studio-line-strong); border-radius: 999px; }
.build-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 380px);
  gap: 24px;
  will-change: transform;
}
/* On fine-pointer (desktop) devices, JS drives the track via transform and
   the outer viewport should not also scroll natively — avoids double-scroll. */
@media (pointer: fine) {
  .build-track-viewport.js-scrub-active {
    overflow-x: hidden;
  }
}

.build-card {
  scroll-snap-align: center;
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  opacity: 1;
  transform: scale(0.97);
  filter: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.build-card.is-active {
  transform: scale(1);
  box-shadow: var(--shadow-lift);
}
@media (prefers-reduced-motion: reduce) {
  .build-card { opacity: 1; transform: none; filter: none; }
}
.build-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--accent), transparent 40%);
  opacity: 0;
  transition: opacity 0.6s;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.build-card.is-active .build-card-glow { opacity: 0.55; }

.build-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--studio-2);
}
.build-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.build-card-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.build-card-tag--final { background: var(--accent); border-color: transparent; color: #fff; }
.build-card-playbtn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding-left: 3px;
  box-shadow: 0 10px 28px -6px rgba(244,83,10,0.5);
}

.build-card-media--wave {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, var(--accent-tint-bg), var(--studio-2) 70%);
}
.wave-visual {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 90px;
}
.wave-visual span {
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), #FFB48A);
  animation: wave 1.4s ease-in-out infinite;
}
.wave-visual span:nth-child(odd) { animation-duration: 1.1s; }
.wave-visual span:nth-child(1) { height: 22px; animation-delay: -1.1s; }
.wave-visual span:nth-child(2) { height: 46px; animation-delay: -0.9s; }
.wave-visual span:nth-child(3) { height: 70px; animation-delay: -0.7s; }
.wave-visual span:nth-child(4) { height: 40px; animation-delay: -1.3s; }
.wave-visual span:nth-child(5) { height: 84px; animation-delay: -0.4s; }
.wave-visual span:nth-child(6) { height: 30px; animation-delay: -1.0s; }
.wave-visual span:nth-child(7) { height: 60px; animation-delay: -0.2s; }
.wave-visual span:nth-child(8) { height: 90px; animation-delay: -0.6s; }
.wave-visual span:nth-child(9) { height: 50px; animation-delay: -0.1s; }
.wave-visual span:nth-child(10) { height: 74px; animation-delay: -0.85s; }
.wave-visual span:nth-child(11) { height: 34px; animation-delay: -0.35s; }
.wave-visual span:nth-child(12) { height: 58px; animation-delay: -1.2s; }
.wave-visual span:nth-child(13) { height: 26px; animation-delay: -0.55s; }
.wave-visual span:nth-child(14) { height: 66px; animation-delay: -0.95s; }
.wave-visual span:nth-child(15) { height: 38px; animation-delay: -0.15s; }
.wave-visual span:nth-child(16) { height: 20px; animation-delay: -0.75s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .wave-visual span { animation: none; transform: scaleY(0.7); }
}

.build-card-media--project {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, var(--accent-tint-bg), var(--studio-2) 70%);
}
.project-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 24px;
}
.tile {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(244,83,10,0.22), rgba(244,83,10,0.06));
  border: 1.5px solid var(--border);
}

.build-card-caption { padding: 20px 22px 26px; }
.build-card-caption h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--ink); }
.build-card-caption p { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.5; }

.build-progress {
  max-width: 900px;
  margin: 8px auto 0;
  padding: 0 24px;
}
.build-progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.build-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #FFB48A);
  transition: width 0.2s linear;
}
.build-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* the scroll driver — tall spacer so the sticky stage has room to progress */
.build-scroll-driver { height: 1px; }

/* ---------- Lucy section ---------- */
.lucy {
  position: relative;
  z-index: 2;
  padding: 120px 0;
  background: var(--studio-1);
}
.lucy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.lucy-bullets { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.lucy-bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.lucy-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent-glow-soft);
}
.lucy-visual { display: flex; justify-content: center; }
.lucy-orb-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lucy-orb {
  width: 210px; height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFB48A, var(--accent) 55%, var(--accent-pressed) 100%);
  box-shadow: 0 0 0 14px rgba(244,83,10,0.08), 0 0 70px 6px rgba(244,83,10,0.35), 0 20px 45px -14px rgba(244,83,10,0.4), inset 0 -10px 30px rgba(0,0,0,0.15);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) { .lucy-orb { animation: none; } }
.lucy-bubble {
  position: absolute;
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--radius-m);
  font-size: 0.85rem;
  max-width: 220px;
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.lucy-bubble--1 { top: 6%; right: -6%; }
.lucy-bubble--2 { bottom: 10%; left: -8%; }

/* ---------- Outputs grid ---------- */
.outputs { position: relative; z-index: 2; padding: 40px 0 120px; }
.outputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.output-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-l);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.output-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244,83,10,0.3);
  box-shadow: var(--shadow-lift);
}
.output-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-tint-bg);
  color: var(--accent);
  margin-bottom: 18px;
}
.output-card h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--ink); }
.output-card p { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.55; }

/* ---------- Quote strip ---------- */
.quote-strip {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  background: var(--studio-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quote-strip-text {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  line-height: 1.4;
  color: var(--ink-muted);
  max-width: 18ch;
  margin: 0 auto;
}
.quote-accent { color: var(--ink); font-style: italic; }

/* ---------- FAQ ---------- */
.faq { position: relative; z-index: 2; padding: 120px 0; background: var(--studio-1); }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 6px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 0 20px;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Closing CTA ---------- */
.closing {
  position: relative;
  z-index: 2;
  padding: 40px 0 120px;
}
.closing-inner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.closing-portrait {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 380px;
}
.closing-content {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.closing-content .waitlist-form { max-width: 420px; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--studio-2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo--footer { font-size: 0.95rem; }
.footer-copy { font-size: 0.85rem; color: var(--ink-faint); }
.footer-nav { display: flex; gap: 24px; font-size: 0.85rem; color: var(--ink-muted); }
.footer-nav a:hover { color: var(--ink); }

/* ---------- Page-load intro ---------- */
body.intro-run .hero-title,
body.intro-run .hero-sub,
body.intro-run .hero-console,
body.intro-run .waitlist-form,
body.intro-run .hero-microcopy,
body.intro-run .eyebrow {
  animation: introUp 1s var(--ease-out) both;
}
body.intro-run .eyebrow { animation-delay: 0.05s; }
body.intro-run .hero-title { animation-delay: 0.15s; }
body.intro-run .hero-sub { animation-delay: 0.30s; }
body.intro-run .hero-console { animation-delay: 0.45s; }
body.intro-run .waitlist-form { animation-delay: 0.6s; }
body.intro-run .hero-microcopy { animation-delay: 0.7s; }
@keyframes introUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body.intro-run .hero-title,
  body.intro-run .hero-sub,
  body.intro-run .hero-console,
  body.intro-run .waitlist-form,
  body.intro-run .hero-microcopy,
  body.intro-run .eyebrow { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .lucy-inner { grid-template-columns: 1fr; gap: 48px; }
  .lucy-visual { order: -1; }
  .outputs-grid { grid-template-columns: repeat(2, 1fr); }
  .closing-inner { grid-template-columns: 1fr; }
  .closing-portrait { min-height: 240px; }
  .closing-content { padding: 40px 32px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero-title-lead { white-space: normal; }
  .hero { padding: 64px 0 40px; }
  .header-inner { height: 64px; }
  .build { padding: 64px 0 24px; }
  .build-stage-wrap { top: 64px; }
  .lucy, .faq { padding: 80px 0; }
  .outputs { padding: 20px 0 80px; }
  .outputs-grid { grid-template-columns: 1fr; }
  .quote-strip { padding: 44px 0; }
  .waitlist-form { flex-direction: column; }
  .waitlist-input, .waitlist-form .btn { width: 100%; }
  .lucy-bubble { position: static; margin-top: 12px; max-width: none; }
  .lucy-orb-frame { flex-direction: column; height: auto; gap: 12px; }
  .lucy-orb { width: 150px; height: 150px; }
  .build-track { grid-auto-columns: 84vw; }
  .build-progress-labels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 6px;
    column-gap: 4px;
    text-align: center;
  }
  .build-progress-labels li { white-space: nowrap; }
}

@media (max-width: 375px) {
  .hero-title { font-size: 2.3rem; }
  .console-body { padding: 22px 18px 20px; }
}

/* ==========================================================================
   Mission band (home) — condensed version of the About story
   ========================================================================== */
.mission {
  position: relative;
  z-index: 2;
  padding: 120px 0;
  background: var(--studio-1);
  border-top: 1px solid var(--border);
}
.mission::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 0%, var(--accent-tint-bg) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.mission-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.mission-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 16px;
  color: var(--ink);
}
.mission-title-accent { color: var(--accent); font-style: italic; }
.mission-lead {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-muted);
}
.mission-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
}
.mission-link span { transition: transform 0.3s var(--ease-out); }
.mission-link:hover span { transform: translateX(5px); }
.mission-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* ==========================================================================
   About page
   ========================================================================== */
.about-hero {
  position: relative;
  z-index: 2;
  padding: 120px 0 40px;
  text-align: center;
  overflow: hidden;
}
.about-hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto 0;
  height: 520px;
  background: radial-gradient(50% 60% at 50% 0%, var(--accent-tint-bg) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}
.about-hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.about-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 14px;
  color: var(--ink);
}
.about-title-accent { color: var(--accent); font-style: italic; }
.about-hero-sub {
  margin-top: 22px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-style: italic;
}
.about-figure {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 8px auto 0;
  padding: 0 24px;
}
.about-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-hero);
}
.about-body { position: relative; z-index: 2; padding: 72px 0 40px; }
.about-copy { max-width: 680px; margin: 0 auto; }
.about-copy p {
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.75;
  color: var(--ink);
}
.about-copy p + p { margin-top: 26px; }
.about-copy .about-lead-first::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--accent);
}
.about-signature {
  position: relative;
  z-index: 2;
  padding: 40px 0 110px;
}
.about-signature-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 34px 36px;
  background: var(--studio-1);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}
.about-signature-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
}
.about-signature-attr {
  margin-top: 18px;
  font-weight: 600;
  color: var(--accent);
}
.about-signature-attr span { display: block; font-weight: 400; color: var(--ink-muted); font-size: 0.95rem; margin-top: 2px; }

@media (max-width: 640px) {
  .mission { padding: 80px 0; }
  .about-hero { padding: 88px 0 24px; }
  .about-body { padding: 48px 0 32px; }
  .about-figure { padding: 0 18px; }
  .about-signature { padding: 24px 0 80px; }
  .about-signature-inner { padding: 26px 22px; }
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-hero {
  position: relative;
  z-index: 2;
  padding: 116px 0 44px;
  text-align: center;
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: -80px 0 auto 0;
  height: 320px;
  background: radial-gradient(42% 64% at 50% 0%, var(--accent-tint-bg) 0%, transparent 74%);
  opacity: 0.78;
  pointer-events: none;
}
.legal-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.legal-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.04;
  color: var(--ink);
}
.legal-updated {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 0.98rem;
}
.legal-body {
  position: relative;
  z-index: 2;
  padding: 32px 0 112px;
}
.legal-copy {
  max-width: 780px;
  margin: 0 auto;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.75;
}
.legal-copy h2 {
  margin-top: 38px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.22;
}
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { margin-top: 14px; }
.legal-copy ul {
  margin: 14px 0 0 22px;
  display: grid;
  gap: 8px;
}
.legal-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-callout,
.legal-note {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 22px 24px;
  color: var(--ink);
}
.legal-note {
  margin-top: 42px;
  background: var(--accent-tint-bg);
}

@media (max-width: 640px) {
  .legal-hero { padding: 88px 0 28px; }
  .legal-body { padding: 24px 0 84px; }
  .legal-callout,
  .legal-note { padding: 18px; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact {
  position: relative;
  z-index: 2;
  padding: 120px 0 110px;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto 0;
  height: 480px;
  background: radial-gradient(46% 60% at 30% 0%, var(--accent-tint-bg) 0%, transparent 72%);
  opacity: 0.7;
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-intro { padding-top: 8px; }
.contact-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-top: 14px;
  color: var(--ink);
}
.contact-title-accent { color: var(--accent); font-style: italic; }
.contact-lead {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 42ch;
}
.contact-details { margin-top: 34px; display: flex; flex-direction: column; gap: 20px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; }
.contact-detail-icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-tint-bg);
  color: var(--accent);
}
.contact-detail-icon svg { width: 20px; height: 20px; }
.contact-detail-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-detail-value { margin-top: 2px; color: var(--ink); font-weight: 500; }
.contact-detail-value a { color: var(--accent); }
.contact-detail-value a:hover { text-decoration: underline; }

.contact-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hero);
  padding: 36px;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.field label .req { color: var(--accent); }
.field-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-m);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input::placeholder { color: var(--ink-faint); }
.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244,83,10,0.14);
}
.field-input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217,45,32,0.12); }
textarea.field-input { min-height: 138px; resize: vertical; line-height: 1.55; }
select.field-input { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236F675E' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.contact-form .btn { align-self: flex-start; }
.contact-msg { font-size: 0.9rem; min-height: 1.4em; color: var(--ink-muted); }
.contact-msg.is-success { color: var(--success); }
.contact-msg.is-error { color: var(--danger); }
.contact-privacy { font-size: 0.82rem; color: var(--ink-faint); margin-top: 2px; }

@media (max-width: 860px) {
  .contact { padding: 92px 0 80px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { padding: 28px 22px; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 18px; }
  .contact-form .btn { align-self: stretch; }
}
