/* Descent scrolly — native overflow. No hijack. */
:root {
  --bg: #0c0b09;
  --ink: #f2ece4;
  --dim: #cfc6b8;
  --faint: #8a8378;
  --brass: #d4c4a8;
  --cta-ink: #0c0b09;
  --serif: "Newsreader", "Iowan Old Style", Palatino, serif;
  --sans: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body.is-white {
  background: #fff;
  color: #111;
}

::selection { background: var(--brass); color: var(--cta-ink); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 40;
  background: #eee;
  color: #111;
  padding: 8px 12px;
  font-size: 13px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 18px 24px;
  mix-blend-mode: normal;
}
body.is-white header { color: #111; }

.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 14px;
}
.wordmark span { color: var(--brass); }
body.is-white .wordmark span { color: #8a7350; }

header nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
}
header nav a { text-decoration: none; color: var(--dim); }
body.is-white header nav a { color: #555; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--ink);
  color: var(--cta-ink);
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.cta:disabled { cursor: wait; opacity: 0.68; }
body.is-white .cta {
  background: #111;
  color: #fff;
}
body.is-white.is-content header,
body.is-content header {
  color: var(--ink);
  background: rgba(12, 11, 9, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
body.is-white.is-content header nav a,
body.is-content header nav a { color: var(--dim); }
body.is-white.is-content .wordmark span,
body.is-content .wordmark span { color: var(--brass); }
body.is-white.is-content header .cta,
body.is-content header .cta { background: var(--ink); color: var(--cta-ink); }

#descent {
  position: relative;
  height: 620vh;
}

#descentView {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}
body.is-white #descentView { background: #fff; }

#whiteout {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

#descentTrack {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
body.is-white #descentTrack { background: #fff; }

#descentTrack img,
#descentTrack video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal-x, 50%) 50%;
  pointer-events: none;
}
#filmLoad { position:absolute; z-index:5; top:12%; left:20px; padding:10px 16px; border:1px solid #888; background:#111; color:#fff; font:inherit; cursor:pointer; }
#filmLoad[hidden] { display:none; }
#descentPoster { z-index: 0; }
#descentFilm, #descentReverse { z-index: 1; opacity: 0; visibility: hidden; }
body.is-live:not([data-film-direction="reverse"]) #descentFilm,
body.is-live[data-film-direction="reverse"] #descentReverse { opacity: 1; visibility: visible; }
body.is-live #descentPoster { opacity: 0; }

.descent-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(12,11,9,.80), transparent 38%), linear-gradient(180deg, rgba(12,11,9,.50), transparent 18%);
  z-index: 1;
}
body.is-white .descent-veil { background: none; }

#descentCopy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 12vh;
  z-index: 3;
  max-width: 22rem;
  pointer-events: none;
}
#descentCopy .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 8px;
}
#descentCopy .line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  line-height: 1.25;
  margin: 0;
  text-wrap: pretty;
}
#descentHint {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  pointer-events: none;
}
body.is-white #descentCopy .kicker { color: #8a7350; }
body.is-white #descentCopy .line { color: #111; }
body.is-white #descentHint { color: #888; }

#content {
  position: relative;
  z-index: 3;
  background: var(--bg);
  color: var(--ink);
}
body.is-white #content { background: var(--bg); color: var(--ink); }
/* The film's white finale must not recolor the dark content UI/footer. */
body.is-white.is-content { background: var(--bg); color: var(--ink); }
body.is-white.is-content #content .cta { background: var(--ink); color: var(--cta-ink); }
body.is-white.is-content footer { background: var(--bg); color: var(--dim); }
#compose, #local, #status, #waitlist { scroll-margin-top: 80px; }

.wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0; }
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 16px;
}
.steps { display: grid; gap: 32px; }
@media (min-width: 880px) {
  .steps { grid-template-columns: 1fr 1fr 1fr; }
}
.step h2, #local h2, #status h2, .close h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 8px;
}
.idx { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.step p, #status p, .close p, .fact dd {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}
.scope-note {
  max-width: 38rem;
  margin: 32px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
}
.rule { border: 0; border-top: 1px solid rgba(232,220,200,0.12); margin: 0; }
.split { display: grid; gap: 32px; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1.2fr; }
}
.facts { margin: 0; }
.fact { margin: 0 0 20px; }
.fact dt { font-family: var(--mono); font-size: 11px; color: var(--brass); }
.local-scope { grid-column: 1 / -1; }
.status-block { max-width: 38rem; }
.close { padding: 72px 0 96px; }
.close-inner {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}
.close-copy { max-width: 29rem; }
.waitlist-form { width: min(100%, 34rem); }
.waitlist-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.waitlist-noscript { max-width: 34rem; color: var(--dim); font-size: 0.85rem; }
.waitlist-row { display: flex; gap: 8px; }
.waitlist-row input[type="email"] {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(232,220,200,0.28);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
}
.waitlist-row input[type="email"]::placeholder { color: var(--faint); }
.waitlist-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 0.78rem;
}
.waitlist-consent input { flex: 0 0 auto; margin: 0; accent-color: var(--brass); }
.waitlist-privacy {
  margin-top: 8px !important;
  color: var(--faint) !important;
  font-size: 0.75rem !important;
  line-height: 1.5;
}
.waitlist-privacy a { text-underline-offset: 2px; }
.waitlist-status {
  min-height: 1.4em;
  margin-top: 10px !important;
  font-size: 0.78rem !important;
}
.waitlist-status[data-state="error"] { color: #f0b9ae; }
.waitlist-status[data-state="success"] { color: #b9d7b4; }
.waitlist-form :focus-visible,
header a:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
.waitlist-form [aria-invalid="true"] { border-color: #f0b9ae; }
.sr-only,
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  font-size: 12px;
  color: var(--faint);
}
footer a { text-decoration: none; }

@media (max-width: 720px) {
  #descent { height: 420vh; }
  #compose, #local, #status, #waitlist { scroll-margin-top: 104px; }
  header { flex-wrap: wrap; }
  header nav {
    order: 3;
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 24px;
    font-size: 11px;
  }
  header nav a { display: inline-flex; align-items: center; min-height: 40px; }
  #descentTrack { top: 18%; bottom: 25%; }
  #descentCopy { bottom: 7vh; left: 20px; max-width: 19rem; }
  .descent-veil { background: linear-gradient(180deg, #000 8%, transparent 22%, transparent 62%, #000 80%); }
  #descentCopy .line { font-size: 1.35rem; }
  #descentHint { right: 20px; bottom: max(36px, env(safe-area-inset-bottom)); }
  header { padding: max(12px, env(safe-area-inset-top)) 16px 8px; }
  header .cta { min-height: 44px; }
  .close-inner { align-items: stretch; }
  .waitlist-row { flex-direction: column; }
  .waitlist-row .cta { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  #descent { height: auto; }
  #descentView {
    position: relative;
    height: 70vh;
  }
  #descentFilm, #descentReverse { display: none; }
  #descentPoster { opacity: 1 !important; }
  .descent-veil { display: none; }
  #descentCopy, #descentHint { position: static; padding: 24px; max-width: none; }
  body.is-white { background: var(--bg); color: var(--ink); }
}

/* ---- CTA v2: warm brass pill with arrow (replaces flat block) ---- */
.cta,
body.is-white .cta,
body.is-content header .cta,
body.is-white.is-content header .cta,
body.is-white.is-content #content .cta {
  position: relative;
  gap: 10px;
  padding: 11px 20px 11px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #16120c;
  background: linear-gradient(135deg, #f6ead3 0%, #dcc7a1 48%, #b8986a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.7), inset 0 0 0 1px rgba(255, 240, 210, 0.25),
    0 10px 28px -12px rgba(214, 186, 138, 0.75), 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  white-space: nowrap;
}
.cta::after {
  content: "\2192";
  display: inline-block;
  font-size: 1.05em;
  transition: transform 0.25s ease;
}
.cta:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.8), inset 0 0 0 1px rgba(255, 240, 210, 0.35),
    0 14px 34px -10px rgba(226, 196, 146, 0.9), 0 3px 8px rgba(0, 0, 0, 0.4);
}
.cta:hover:not(:disabled)::after { transform: translateX(4px); }
.cta:active:not(:disabled) { transform: translateY(0); filter: brightness(0.97); }
.cta:disabled::after { content: none; }
.cta:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.waitlist-row .cta { padding: 12px 24px 12px 26px; font-size: 14px; }
.waitlist-row input[type="email"] { border-radius: 999px; padding: 11px 18px; }
@media (max-width: 720px) {
  header { justify-content: flex-end; }
  .waitlist-row .cta { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cta, .cta::after { transition: none; }
}
