@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-sub.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Italic-sub.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

/* Serif = the author's words. Sans = Loudlore talking. */
:root {
  --ink: #12142a;
  --raised: #1a1d36;
  --rule: #2c3054;
  --paper: #f2efe6;
  --muted: #aeb2cb;
  --quiet: #9599b5;
  --grakk: #4cc3cf;
  --mira: #c267b8;
  --amber: #f2b04a;
  --narrator: #e4e1d8;
  --tag: #8e93b0;

  --band: #e8eaf1;
  --band-ink: #12142a;
  --band-muted: #4a4f6a;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--grakk); }
:focus-visible { outline: 3px solid var(--grakk); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.wordmark { font: 800 26px/1 var(--display); letter-spacing: -0.035em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark::before { content: ""; width: 26px; height: 28px; background: url("mark.svg") center / contain no-repeat; }
.wordmark:hover { color: var(--paper); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--amber); color: var(--ink);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--paper); color: var(--ink); }
.button.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.button.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--rule); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--amber); color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: 48px 64px; align-items: center;
  padding-top: 64px; padding-bottom: 112px;
}
.hero h1 { font-size: clamp(50px, 6vw, 84px); line-height: 0.94; letter-spacing: -0.05em; margin-bottom: 28px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 30rem; margin: 0 0 36px; }

.stage { margin: 0; }
.scene { margin: 0 0 10px calc(6.5rem + 24px); font-size: 14px; color: var(--quiet); }
.scene cite { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); }

/* The script: one scene, performed once */
.script {
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 30px); line-height: 1.32;
  padding: 8px 0;
}
.line {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 24px;
  margin: 0; padding: 14px 0;
  position: relative;
}
.line + .line { border-top: 1px solid var(--rule); }
.who {
  font: 600 14px/1 var(--sans); letter-spacing: 0.01em;
  padding-top: 0.62em; text-align: right;
  color: var(--c);
}
.said { color: var(--c); max-width: 30ch; }
.line.narrator { --c: var(--narrator); }
.line.narrator .who { color: var(--quiet); }
.line.narrator .said { font-style: italic; }
.line.grakk { --c: var(--grakk); }
.line.mira { --c: var(--mira); }
.tag { color: var(--tag); }

/* Performance: each line lights up in turn, a cue bar marks who is speaking */
.line::before {
  content: ""; position: absolute; left: calc(6.5rem + 10px); top: 18px; bottom: 18px; width: 3px; border-radius: 3px;
  background: var(--c); opacity: 0; transform: scaleY(0.3);
}
.perform .line { animation: speak 0.7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(0.35s + var(--i) * 1.05s); }
.perform .line::before { animation: cue 1.05s ease-out both; animation-delay: calc(0.35s + var(--i) * 1.05s); }
.perform .tag { animation: skip 0.6s ease-out both; animation-delay: calc(0.9s + var(--i) * 1.05s); }
@keyframes speak { from { opacity: 0.12; } to { opacity: 1; } }
@keyframes cue { 0% { opacity: 0; transform: scaleY(0.3); } 25% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }
@keyframes skip { from { color: var(--c); } }

.legend {
  display: flex; gap: 10px; align-items: baseline; max-width: 34rem;
  margin: 20px 0 0 calc(6.5rem + 24px);
  font-size: 15px; color: var(--quiet);
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; transform: translateY(1px); }
.dot.tag { background: var(--tag); }

/* Audio sample (hidden until the file loads) */
.sample { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 24px 0 0 calc(6.5rem + 24px); }
.sample[hidden] { display: none; }
.play {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 20px 0 8px; border-radius: 999px;
  border: 0; background: var(--raised); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--rule);
  font: 600 15px/1 var(--sans); cursor: pointer;
}
.play:hover { box-shadow: inset 0 0 0 1.5px var(--grakk); }
.play-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--grakk); position: relative; }
.play-icon::after { content: ""; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--ink); }
.play[aria-pressed="true"] .play-icon::after { left: 11px; top: 11px; width: 4px; height: 12px; border: 0; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); box-sizing: content-box; }
.sample-label { font-size: 14px; color: var(--quiet); }

/* ---------- App band (light, like the app) ---------- */
.app { background: var(--band); color: var(--band-ink); padding-top: 104px; padding-bottom: 104px; }
.app a:hover { color: #0f7680; }
.app :focus-visible { outline-color: #0f7680; }
.app h2 { max-width: 16ch; margin-bottom: 18px; }
.section-lead { font-size: 19px; color: var(--band-muted); max-width: 36rem; margin: 0 0 56px; }

.app-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px 56px; align-items: center; }

.window {
  margin: 0; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(18, 20, 42, 0.06), 0 30px 60px -30px rgba(18, 20, 42, 0.35), 0 0 0 1px rgba(18, 20, 42, 0.08);
}
.window-bar { display: flex; gap: 7px; padding: 13px 16px; background: #f4f4f7; border-bottom: 1px solid #e3e4ea; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4d6df; }
.window img { display: block; width: 100%; padding: 28px 32px 32px; }

.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.notes li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; color: var(--band-muted); font-size: 17px; }
.notes strong { display: block; color: var(--band-ink); font-weight: 600; font-size: 18px; margin-bottom: 2px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; }
.swatch.grakk { background: linear-gradient(90deg, #087780 50%, #633e5d 50%); }
.swatch.narrator-light { background: #1d1d1f; }
.swatch.tag { background: #8a8a8a; }

.app-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin-top: 88px; }
.panel { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.panel h3 { font-size: 26px; margin-bottom: 8px; }
.panel p { margin: 0; color: var(--band-muted); max-width: 32rem; }
.paper {
  background: #fff; border-radius: 14px; margin-top: auto;
  box-shadow: 0 0 0 1px rgba(18, 20, 42, 0.08), 0 18px 40px -26px rgba(18, 20, 42, 0.3);
}
.paper img { display: block; width: 100%; }
.crops { display: grid; gap: 12px; padding: 22px 24px; }
.crops img:first-child { width: auto; max-width: 78%; margin-bottom: 8px; }
.graph .paper { padding: 8px; }

.shot-note { margin: 48px 0 0; font-size: 15px; color: var(--band-muted); max-width: 40rem; }

/* ---------- Pilot timeline ---------- */
.pilot { padding-top: 112px; padding-bottom: 40px; }
.pilot h2 { margin-bottom: 56px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.timeline li { counter-increment: step; position: relative; padding-top: 64px; }
.timeline li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 800 18px/1 var(--display); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--rule); background: var(--ink);
}
.timeline li::after { content: ""; position: absolute; left: 48px; right: -24px; top: 20px; height: 1.5px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline li:nth-child(2)::before { box-shadow: inset 0 0 0 1.5px var(--grakk); color: var(--grakk); }
.timeline h3 { margin-bottom: 10px; }
.timeline p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Honesty ---------- */
.honest { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 72px; padding-top: 112px; padding-bottom: 112px; }
.honest h2 { max-width: 12ch; }
.honest-body > p { font-family: var(--serif); font-size: 24px; line-height: 1.45; margin: 0 0 28px; color: var(--paper); }
.plain { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.plain li { padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { padding-top: 24px; padding-bottom: 112px; }
.faq h2 { margin-bottom: 40px; }
.faq-list { border-top: 1px solid var(--rule); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font: 600 19px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font: 500 24px/1 var(--sans); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--amber); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 44rem; }

/* ---------- Join ---------- */
.join-wrap { background: var(--raised); padding-top: 104px; padding-bottom: 104px; scroll-margin-top: 0; }
.join-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px 72px; align-items: start; }
.founder h2 { margin-bottom: 24px; max-width: 11ch; }
.founder p { color: var(--muted); max-width: 34rem; margin: 0; }

.join { display: flex; flex-direction: column; }
.join label { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.join input {
  width: 100%; min-height: 52px; padding: 0 16px; margin-bottom: 20px;
  border: 1.5px solid var(--rule); border-radius: 12px; background: var(--ink); color: var(--paper);
  font: 400 17px var(--sans);
}
.join input:hover { border-color: #3d4270; }
.join input:focus-visible { border-color: var(--grakk); outline-offset: 2px; }
.join input::placeholder { color: var(--quiet); }
.join .optional { font-weight: 400; color: var(--quiet); }
.join .button { align-self: flex-start; margin-top: 4px; }
.join .fine { font-size: 15px; color: var(--muted); margin: 18px 0 0; }
.hidden { position: absolute; left: -9999px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 32px; padding-bottom: 48px; font-size: 15px; color: var(--quiet); }
.foot span:last-child { display: flex; gap: 24px; }
.foot a { color: var(--muted); }

/* Simple text pages */
.page { padding-top: 24px; padding-bottom: 96px; }
.page > * { max-width: 44rem; }
.page h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.045em; margin: 40px 0 28px; }
.page h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 10px; }
.page p, .page li { color: var(--muted); }
.page .button { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero, .app-main, .honest, .join-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 32px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .timeline li:nth-child(2)::after { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-bottom: 80px; gap: 40px; }
  .hero h1 { font-size: 50px; }
  .lead { font-size: 18px; }
  .line { grid-template-columns: minmax(0, 1fr); padding: 12px 0 14px 16px; }
  .who { text-align: left; padding: 0 0 6px; font-size: 13px; }
  .line::before { left: 0; top: 14px; }
  .script { font-size: 23px; }
  .legend, .sample, .scene { margin-left: 0; }
  .app, .join-wrap { padding-top: 72px; padding-bottom: 72px; }
  .section-lead { margin-bottom: 36px; }
  .window img { padding: 16px 16px 20px; }
  .app-pair { grid-template-columns: minmax(0, 1fr); margin-top: 64px; gap: 56px; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline li { padding: 0 0 36px 60px; }
  .timeline li::after { display: block; left: 19px; right: auto; top: 48px; bottom: 6px; width: 1.5px; height: auto; }
  .timeline li:nth-child(2)::after { display: block; }
  .timeline li:last-child::after { display: none; }
  .pilot, .honest { padding-top: 80px; }
  .honest { padding-bottom: 80px; }
  .honest-body > p { font-size: 21px; }
  .join .button { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
