/*
 * Enzocircle landing — forensic register (positioning §11).
 * Sealed file / private archive / quiet courtroom. Not wellness, not
 * e-commerce, not dark-mode startup.
 *
 * GOLD AUDIT (§11 — gold is a seal, not decoration). Gold on this page:
 *   .continue   — S1 forward action (spec'd gold)
 *   .file-tab   — the FILE 01 tab (base seal surface)
 *   .gold       — file references in the sealed record header
 *   .cta        — the Begin FILE 01 action
 * Nothing else. If a sixth surface goes gold, cut it.
 */

:root {
  --bg: #080807;
  --surface: #11100e;
  --panel: #15130f;
  --text-primary: #ede8dd;
  --text-secondary: #a8a197;
  --text-muted: #7d766d;
  --gold: #b89b5e;
  --border: #2a2722;
  --pad: 24px;
  --serif: 'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Sections — one viewport each, single vertical scroll ─────────────────── */

.section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(env(safe-area-inset-top), 24px) var(--pad)
    max(env(safe-area-inset-bottom), 24px);
  overflow: hidden;
}

.flat {
  background: var(--bg);
}

.stack {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

/* ── S1 · Hero ─────────────────────────────────────────────────────────────── */

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Legibility shade: darker at centre band + heavy at the foot for the action. */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 8, 7, 0.35) 0%,
      rgba(8, 8, 7, 0.55) 45%,
      rgba(8, 8, 7, 0.55) 60%,
      rgba(8, 8, 7, 0.82) 100%
    );
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  min-height: 5.2em; /* reserve — lines swap without the layout moving */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 6.4vw, 40px);
  line-height: 1.35;
  color: var(--text-primary);
  white-space: pre-line; /* "\n" in heroLines renders as a line break */
  opacity: 0;
  transition: opacity 250ms ease; /* short beats — keep in step with FADE_MS */
}

.hero-line.shown {
  opacity: 1;
}

/* GOLD AUDIT: S1 Continue — quiet typographic action, gold, no button chrome. */
.continue {
  position: absolute;
  bottom: max(env(safe-area-inset-bottom), 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: none;
  border: none;
  padding: 14px 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  transition: opacity 700ms ease;
}

.continue.shown {
  opacity: 1;
}

/* ── Shared copy + actions ─────────────────────────────────────────────────── */

.body-line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 4.6vw, 24px);
  line-height: 1.55;
  color: var(--text-primary);
}

.emphasis {
  font-weight: 600;
}

.quiet-triplet {
  color: var(--text-secondary);
  font-size: clamp(17px, 4vw, 20px);
}

/* Section-forward actions — quiet typographic, small-caps serif, NOT gold
   (they are wayfinding, not seals). Warm on hover only. */
.ghost-action {
  background: none;
  border: 1px solid var(--border);
  padding: 14px 28px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 300ms ease, border-color 300ms ease;
}

.ghost-action:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ── S3 / S4 · The file ────────────────────────────────────────────────────── */

.file {
  position: relative;
  width: min(300px, 72vw);
  margin-top: 8px;
}

/* GOLD AUDIT: the file tab — base seal surface. */
.file-tab {
  display: inline-block;
  padding: 7px 16px 5px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-bottom: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.file-body {
  height: 120px;
  background: var(--panel);
  border: 1px solid var(--border);
}

/* S4: a blank slip sits slightly proud of the opened file. */
.file-open .file-slip {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 14px;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  transform: rotate(-1.2deg);
  z-index: 1;
}

.file-open .file-body {
  margin-top: 24px; /* the file sits slightly open under the slip */
}

/* ── S5 · Sealed record card ───────────────────────────────────────────────── */

.record-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 24px;
  text-align: left;
}

.record-header {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* GOLD AUDIT: file reference in a sealed record header (§11 exception). */
.gold {
  color: var(--gold);
}

.sealed-word {
  color: var(--text-secondary);
}

/* Evidence quotes: structure visible, words unreadable. */
.evidence-quote {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text-secondary);
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.record-label {
  margin: 22px 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.finding-line {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 4.4vw, 22px);
  line-height: 1.5;
  color: var(--text-primary);
}

/* GOLD AUDIT: the Begin CTA — the page's one action seal. Dead control for
   now (no app link); styled live, cursor stays default via aria-disabled. */
.cta {
  background: none;
  border: 1px solid var(--gold);
  padding: 16px 32px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: default;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.footer {
  padding: 72px var(--pad) max(env(safe-area-inset-bottom), 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.founder {
  margin: 0;
  max-width: 560px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.colophon {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.privacy-link {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.privacy-link:hover {
  color: var(--text-secondary);
}

/* ── Scroll reveal — forensic: a quiet fade, nothing more ─────────────────── */

.reveal {
  opacity: 0;
  transition: opacity 900ms ease;
}

.reveal.revealed {
  opacity: 1;
}

/* ── Reduced motion — static page, final hero line held ───────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-line,
  .continue,
  .reveal {
    transition: none;
    opacity: 1;
  }
}
