/* WAKE WORD — landing site (modernized)
   Palette: warm near-black + amber spectrogram (series cover system)
   Type: IBM Plex Mono (forensic voice) / Fraunces (grief voice) / IBM Plex Sans (body) */

:root {
  --ink: #060504;
  --ink2: #0a0906;
  --panel: #14100a;
  --line: #2a2318;
  --line-warm: #4a3411;
  --amber: #f0a030;
  --amber-hot: #ffd37a;
  --amber-dim: #7a4a12;
  --bone: #e8e0d0;
  --bone-hot: #f2ead8;
  --ash: #8b8272;
  --ash-dim: #5c5344;
  --red: #e5484d;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Fraunces", georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber-hot); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

@keyframes ww-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.12; } }
@keyframes ww-scrollcue { 0%, 100% { transform: translateY(0); opacity: 0.7; } 50% { transform: translateY(8px); opacity: 0.25; } }
@keyframes ww-scanline { 0% { top: -8%; } 100% { top: 108%; } }
@keyframes ww-anomaly { 0%, 92%, 100% { opacity: 1; } 93%, 95% { opacity: 0.25; } 96%, 98% { opacity: 0.7; } }

/* ---------- sticky topbar + progress ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: rgba(6, 5, 4, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 35, 24, 0.8);
}
.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ash);
}
.topbar-file { color: var(--amber); display: flex; align-items: center; gap: 0.5rem; }
.topbar-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: ww-blink 2.4s infinite; }
.topbar-series { text-align: center; }
.topbar-date { text-align: right; }
.progress { height: 2px; width: 0%; background: linear-gradient(90deg, var(--amber-dim), var(--amber), var(--amber-hot)); }

/* ---------- full-bleed hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 24px 80px;
}
.hero-backdrop {
  position: absolute;
  inset: -12% 0;
  background-image: url("assets/cover.jpg");
  background-size: cover;
  background-position: center 62%;
  opacity: 0.45;
  will-change: transform;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(6,5,4,0) 0%, rgba(6,5,4,0.55) 55%, rgba(6,5,4,0.97) 100%);
}
.hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,5,4,0.95) 0%, rgba(6,5,4,0.4) 20%, rgba(6,5,4,0) 38%, rgba(6,5,4,0) 60%, var(--ink) 100%);
}
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 1.9rem;
}
.hero-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(3.6rem, 13vw, 10rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--bone-hot);
  text-shadow: 0 0 90px rgba(240, 160, 48, 0.35);
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--amber-hot);
  margin-top: 2.1rem;
  max-width: 32ch;
  line-height: 1.4;
}
.hero-byline {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 1.6rem 0 2.75rem;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.94rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--ink);
  background: var(--amber);
  padding: 1rem 2.1rem;
  border-radius: 3px;
  transition: background 0.2s, box-shadow 0.3s;
}
.cta:hover { background: var(--amber-hot); color: var(--ink); box-shadow: 0 0 60px rgba(240,160,48,0.4); }
.listen-btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--ash);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.94rem 1.4rem;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.listen-btn:hover { border-color: var(--amber); color: var(--amber-hot); }
.listen-btn.on { color: var(--amber-hot); border-color: var(--amber-dim); }
#wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 180px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
#wave.on { opacity: 1; }
.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  margin-left: -8px;
  z-index: 2;
  color: var(--ash);
  font-size: 1.25rem;
  animation: ww-scrollcue 2.2s ease-in-out infinite;
}

/* ---------- spectrogram exhibit ---------- */
.spectro-section { max-width: 70rem; margin: 0 auto; padding: 2.5rem 1.5rem 1.5rem; }
.spectro-frame {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 0.875rem 0.875rem 0.625rem;
  box-shadow: inset 0 1px 0 rgba(255,211,122,0.04);
}
.spectro-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--ash);
  padding: 0 2px 10px;
}
.rec { display: flex; align-items: center; gap: 7px; }
.rec-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: ww-blink 1.6s infinite; }
#spectrogram { display: block; width: 100%; height: auto; border-radius: 3px; background: var(--ink); }
.readout {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  text-align: left;
  color: var(--ash);
  padding: 0.875rem 0.375rem 0.25rem;
  min-height: 6.2em;
  white-space: pre-wrap;
}
.readout .verified { color: var(--amber-hot); font-weight: 700; }

/* ---------- anomaly row ---------- */
.anomaly-wrap { max-width: 70rem; margin: 0 auto 1.5rem; padding: 0 1.5rem; opacity: 0; }
.anomaly {
  border: 1px solid var(--line-warm);
  background: rgba(240,160,48,0.05);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.04em;
  animation: ww-anomaly 7s infinite;
}
.anomaly .warn { color: var(--red); margin-right: 10px; }

/* ---------- sections & field labels ---------- */
.section { max-width: 60rem; margin: 0 auto; padding: clamp(3rem, 8vh, 5rem) 1.5rem; }
.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--amber);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
  margin-bottom: 2.5rem;
}
.field-ref { color: var(--ash); letter-spacing: 0.14em; }

/* premise */
#premise { padding-bottom: 2.5rem; }
.premise-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.premise-lede {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
  line-height: 1.32;
  margin-bottom: 1.75rem;
  color: var(--bone-hot);
}
.premise-lede em { color: var(--amber-hot); font-style: italic; }
.premise-body p { margin-bottom: 1.1rem; max-width: 62ch; }
.premise-close {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.19rem;
  color: var(--amber-hot);
}
.exhibit {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.exhibit img { display: block; width: 100%; }
.exhibit .scanline {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240,160,48,0.8), transparent);
  animation: ww-scanline 4.5s linear infinite;
}
.exhibit figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--ash);
  background: linear-gradient(transparent, rgba(6,5,4,0.9));
}

/* findings */
.findings { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.findings-list { display: grid; gap: 3px; font-family: var(--mono); }
.finding {
  display: flex;
  gap: 14px;
  align-items: baseline;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.875rem 1.125rem;
  transition: border-color 0.25s;
}
.finding:hover { border-color: var(--amber-dim); }
.finding.verified { border-color: var(--line-warm); }
.finding .check { color: var(--amber); font-size: 0.8rem; }
.finding .text { font-size: 0.9rem; }
.finding .status { margin-left: auto; font-size: 0.66rem; color: var(--ash-dim); letter-spacing: 0.14em; }
.finding.verified .status { color: var(--amber); }

/* static band */
.static-section { padding: 1.875rem 0; }
.static-inner { max-width: 75rem; margin: 0 auto; padding: 0 1.5rem; }
.static-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--ash);
  padding: 0 4px 10px;
}
#staticband { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--ink); }
.static-caption {
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  color: var(--ash);
  font-size: 0.94rem;
  margin-top: 1.125rem;
}

/* arc */
.arc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.arc-copy h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.625rem, 3.4vw, 2.25rem);
  line-height: 1.22;
  margin-bottom: 1.25rem;
}
.arc-copy h2 em { color: var(--amber-hot); }
.arc-copy p { margin-bottom: 1rem; max-width: 55ch; }
.arc-note { font-size: 0.94rem; color: var(--ash); }

.arc-form {
  background: rgba(20, 16, 10, 0.85);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem;
  backdrop-filter: blur(6px);
}
.arc-form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 1rem 0 0.375rem;
}
.arc-form label:first-of-type { margin-top: 0; }
.arc-form input,
.arc-form select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.69rem 0.75rem;
  transition: border-color 0.2s;
}
.arc-form input:focus,
.arc-form select:focus { border-color: var(--amber); outline: none; }
.arc-form button {
  width: 100%;
  margin-top: 1.375rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--amber);
  border: none;
  border-radius: 3px;
  padding: 0.94rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.3s;
}
.arc-form button:hover { background: var(--amber-hot); box-shadow: 0 0 44px rgba(240,160,48,0.35); }
.form-fine { font-size: 0.78rem; color: var(--ash); margin-top: 0.875rem; line-height: 1.5; }
.hidden-field { display: none; }

/* fit */
.fit {
  background: var(--ink2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 8vh, 4.5rem) 1.5rem;
}
.fit-grid {
  max-width: 60rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.fit-col h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--amber-hot);
}

/* author */
.author-body p { max-width: 62ch; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 1.5rem 2rem; }
.footer-signup { max-width: 34rem; margin: 0 auto 2.75rem; text-align: center; }
.footer-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--amber);
  margin-bottom: 0.625rem;
}
.footer-signup p { color: var(--ash); font-size: 0.94rem; margin-bottom: 1.25rem; }
.footer-signup iframe { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 60rem;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  color: var(--ash);
}

/* ---------- reveal (JS adds .revealed) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .topbar-series { display: none; }
  .premise-grid { grid-template-columns: 1fr; }
  .exhibit { max-width: 280px; margin: 0 auto; }
}

/* mic trust note */
.mic-note {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--ash-dim);
  margin-top: 0.9rem;
}
