/* Director's Chair — landing page. A dark, film-first page: the frames are the
   design, type stays quiet. Tungsten amber is the single accent. */
:root {
  --night: #0b0d10;
  --panel: #14171c;
  --line: #262a31;
  --paper: #ece6da;
  --muted: #9a958b;
  --tungsten: #f0a33a;
  --tungsten-ink: #1a1206;
  --ok: #7fc48a;
  --err: #e4796b;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
code { font: 500 0.9em var(--mono); color: var(--tungsten); }
em { font-style: italic; }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: 0.01em; line-height: 0.98; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8vw, 6.4rem); text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; }

.slate, .scene {
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tungsten);
  margin: 0 0 14px;
}
.section-lede { color: var(--muted); max-width: 62ch; margin: 18px 0 0; font-size: 1.08rem; }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  background: linear-gradient(var(--night), rgba(11, 13, 16, 0));
}
.wordmark { font: 800 1.4rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; }
.nav-cta {
  font: 500 0.85rem/1 var(--body); text-decoration: none; padding: 9px 14px;
  border: 1px solid var(--tungsten); color: var(--tungsten); border-radius: 2px;
}
.nav-cta:hover { background: var(--tungsten); color: var(--tungsten-ink); }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--night) 4%, rgba(11, 13, 16, 0.55) 45%, rgba(11, 13, 16, 0.15) 75%),
    linear-gradient(to right, rgba(11, 13, 16, 0.7), rgba(11, 13, 16, 0) 65%);
}
.hero-copy { position: relative; padding: 140px var(--gutter) clamp(48px, 8vh, 96px); max-width: 860px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #d8d2c6; max-width: 56ch; margin: 22px 0 28px; }
.fine { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; }

/* ── waitlist form ───────────────────────────────────────────────────── */
.join { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.join input[type="email"], .join textarea {
  flex: 1 1 260px; min-width: 0;
  background: rgba(20, 23, 28, 0.85); color: var(--paper);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 14px 16px; font: 400 1rem var(--body);
}
.join textarea { flex-basis: 100%; resize: vertical; }
.join input:focus-visible, .join textarea:focus-visible, .join button:focus-visible, .nav-cta:focus-visible, summary:focus-visible {
  outline: 2px solid var(--tungsten); outline-offset: 2px;
}
.join button {
  flex: 0 0 auto; cursor: pointer;
  background: var(--tungsten); color: var(--tungsten-ink);
  border: 0; border-radius: 2px; padding: 14px 22px;
  font: 600 1rem var(--body);
}
.join button:hover { filter: brightness(1.08); }
.join button[disabled] { opacity: 0.6; cursor: progress; }
.form-status { flex-basis: 100%; margin: 4px 0 0; min-height: 1.4em; font-size: 0.92rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.making-label { flex-basis: 100%; font-size: 0.92rem; color: var(--muted); margin-top: 6px; }
.making-label span { color: #6f6b63; }

/* ── made-with ───────────────────────────────────────────────────────── */
.made { padding: clamp(64px, 10vw, 120px) 0 24px; }

/* ── the seven beats ─────────────────────────────────────────────────── */
.story { padding: clamp(48px, 8vw, 96px) 0; }
.beats { list-style: none; margin: 48px auto 0; padding: 0 var(--gutter); max-width: 1120px; display: grid; gap: clamp(56px, 9vw, 112px); }
.beat { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.beat:nth-child(even) .beat-media { order: 2; }
.beat-copy p:not(.scene) { color: #cfc9bd; max-width: 46ch; margin: 16px 0 0; }
.beat-media { border-radius: 3px; overflow: hidden; background: var(--panel); }
.beat-media > img, .beat-media > video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.cast { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; background: var(--night); }
.cast img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.handoff { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--night); }
.handoff figure { margin: 0; position: relative; }
.handoff img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.handoff figcaption {
  position: absolute; left: 8px; bottom: 8px;
  font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(11, 13, 16, 0.8); padding: 6px 8px; color: var(--tungsten);
}

.listen { position: relative; }
.listen video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sound {
  position: absolute; right: 10px; bottom: 10px; cursor: pointer;
  font: 500 0.78rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(11, 13, 16, 0.82); color: var(--tungsten);
  border: 1px solid var(--tungsten); border-radius: 2px; padding: 9px 12px;
}
.sound[aria-pressed="true"] { background: var(--tungsten); color: var(--tungsten-ink); }
.sound:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 2px; }
.beat-copy .aside { font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.cost-meter { padding: clamp(20px, 3vw, 32px); font: 400 1rem var(--mono); border: 1px solid var(--line); }
.meter-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.meter-row .num { font-variant-numeric: tabular-nums; color: var(--paper); }
.meter-row.total { border-bottom: 0; padding-top: 18px; color: var(--tungsten); }
.meter-row.total .num { color: var(--tungsten); font-weight: 500; }

/* ── assistant / faq / closing ───────────────────────────────────────── */
.assistant { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.faq { padding: clamp(48px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 28px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font-weight: 500; font-size: 1.08rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.5rem var(--mono); color: var(--tungsten); }
details[open] summary::after { content: "–"; }
details p { color: #cfc9bd; margin: 0 0 22px; max-width: 64ch; }

.closing { padding: clamp(64px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.closing h2 { margin-bottom: 28px; }
.join-full { max-width: 640px; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); color: #6f6b63; font-size: 0.85rem;
}

/* ── phone ───────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .beat { grid-template-columns: 1fr; }
  .beat:nth-child(even) .beat-media { order: 0; }
  .hero { min-height: 88vh; }
  .join button { flex: 1 1 100%; }
}
