/* ─── GENESCI landing — base ─────────────────────────────────────── */

:root {
  /* Copper / gold (default) */
  --c-accent: #d6a771;
  --c-accent-hot: #f3c994;
  --c-accent-deep: #7a4a1f;
  --c-glow: 214, 167, 113;        /* rgb of accent for shadows */
  --c-helix-a: #f0c98a;
  --c-helix-b: #6ad4e0;
}

[data-palette="cyan"] {
  --c-accent: #6ad4e0;
  --c-accent-hot: #b7f5ff;
  --c-accent-deep: #0a4a55;
  --c-glow: 106, 212, 224;
  --c-helix-a: #6ad4e0;
  --c-helix-b: #c4a8ff;
}

[data-palette="matrix"] {
  --c-accent: #6cf09a;
  --c-accent-hot: #c8ffd9;
  --c-accent-deep: #08401f;
  --c-glow: 108, 240, 154;
  --c-helix-a: #6cf09a;
  --c-helix-b: #f0e96c;
}

/* Theme */
[data-theme="dark"] {
  --bg: #050407;
  --bg-2: #0a0810;
  --fg: #f5efe5;
  --fg-dim: rgba(245, 239, 229, 0.62);
  --fg-faint: rgba(245, 239, 229, 0.35);
  --line: rgba(245, 239, 229, 0.08);
  --line-strong: rgba(245, 239, 229, 0.18);
  --panel: rgba(12, 10, 18, 0.55);
}

[data-theme="light"] {
  --bg: #ede4d4;
  --bg-2: #f7f0e1;
  --fg: #1a1410;
  --fg-dim: rgba(26, 20, 16, 0.7);
  --fg-faint: rgba(26, 20, 16, 0.4);
  --line: rgba(26, 20, 16, 0.1);
  --line-strong: rgba(26, 20, 16, 0.25);
  --panel: rgba(255, 248, 232, 0.65);
}

/* Intensity scales glow + particle opacity via CSS vars consumed in JS too */
[data-intensity="low"]    { --glow-mult: 0.35; --blur-mult: 0.6; }
[data-intensity="medium"] { --glow-mult: 0.7;  --blur-mult: 1; }
[data-intensity="high"]   { --glow-mult: 1.2;  --blur-mult: 1.4; }

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  /* Belt + suspenders: both axes constrained, no horizontal scroll possible */
  overflow-x: clip;
  max-width: 100vw;
}
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.mono { font-family: 'Space Mono', ui-monospace, monospace; }
.display {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 0.86;
}

/* Hide elements until JS is ready (prevents FOUC of unstyled fragments) */
.no-js-hidden { visibility: hidden; }

/* ─── App shell ───────────────────────────────────────────────────── */
.app {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--c-glow), 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(var(--c-glow), 0.04), transparent 70%),
    var(--bg);
}
[data-theme="dark"] .bg-layer::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.starfield-canvas {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: calc(0.9 * var(--glow-mult, 1));
}
[data-theme="light"] .starfield-canvas { opacity: calc(0.35 * var(--glow-mult, 1)); mix-blend-mode: multiply; }

/* ─── Top bar ─────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.tb-mark {
  display: flex; align-items: center; gap: 10px;
}
.tb-mark .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 12px rgba(var(--c-glow), 0.9);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

.tb-meta { display: flex; gap: 28px; align-items: center; }
.tb-meta .item { display: flex; align-items: center; gap: 8px; }
.tb-meta .label { color: var(--fg-faint); }
.tb-meta .value { color: var(--fg); }

.tb-actions { display: flex; gap: 10px; align-items: center; }

.tb-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg-dim);
  padding: 8px 12px;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  border-radius: 0;
  transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tb-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.tb-btn.on { border-color: var(--c-accent); color: var(--c-accent); background: rgba(var(--c-glow), 0.06); }

.tb-lang .sep { opacity: 0.3; margin: 0 2px; }
.tb-lang .active { color: var(--c-accent); }

.eq {
  display: inline-flex; gap: 2px; height: 10px; align-items: end;
}
.eq span {
  display: block; width: 2px; background: currentColor; opacity: 0.85;
  animation: eq 0.9s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 30%; animation-delay: 0s; }
.eq span:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.eq span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.eq span:nth-child(4) { height: 90%; animation-delay: 0.45s; }
.tb-audio:not(.on) .eq span { animation: none; height: 30%; opacity: 0.4; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ─── Section primitives ──────────────────────────────────────────── */
.section {
  position: relative;
  padding: 120px 32px;
  max-width: 1480px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--c-accent);
}

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-copy { position: relative; z-index: 2; }

.hero-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 0.86;
  font-size: clamp(80px, 13vw, 200px);
  margin: 24px 0 0;
  color: var(--fg);
  position: relative;
  text-shadow:
    0 0 calc(60px * var(--glow-mult, 1)) rgba(var(--c-glow), 0.6),
    0 0 calc(120px * var(--glow-mult, 1)) rgba(var(--c-glow), 0.3);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.hero-title .char {
  display: inline-block;
  background: linear-gradient(180deg, var(--c-accent-hot) 0%, var(--c-accent) 45%, var(--c-accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
[data-theme="light"] .hero-title {
  text-shadow: 0 0 calc(20px * var(--glow-mult, 1)) rgba(var(--c-glow), 0.4);
}

.hero-subtitle {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 36px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 18px 0 0;
  color: var(--fg);
  opacity: 0.95;
}

.hero-tagline {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 520px;
  margin: 28px 0 40px;
  font-weight: 300;
}

/* Decorative circuit lines flanking title */
.hero-deco {
  position: absolute;
  left: -40px;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  opacity: calc(0.7 * var(--glow-mult, 1));
}
.hero-deco svg { width: 100%; height: 100%; }

/* CTA cluster */
.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn {
  appearance: none;
  border: 0;
  font: inherit;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 18px 28px;
  display: inline-flex; align-items: center; gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-primary {
  background: var(--c-accent);
  color: #0a0808;
  box-shadow:
    0 0 0 1px var(--c-accent),
    0 0 calc(40px * var(--glow-mult, 1)) rgba(var(--c-glow), 0.5),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--c-accent-hot),
    0 0 calc(60px * var(--glow-mult, 1)) rgba(var(--c-glow), 0.8),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary .arrow { transition: transform .25s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* Oversized variant — used as the single hero CTA in the preorder section */
.btn-large {
  padding: 22px 40px;
  font-size: 16px;
  letter-spacing: 0.18em;
}
.btn-large .arrow { width: 18px; height: 14px; }

.cta-meta {
  margin-top: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex; align-items: center; gap: 10px;
}
.cta-meta .pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 10px rgba(var(--c-glow), 0.8);
}

/* Book mock */
.hero-book {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  perspective: 1800px;
  z-index: 1;
}
.book-frame {
  display: block;
  position: relative;
  width: min(520px, 90%);
  aspect-ratio: 1080 / 1572;
  transform-style: preserve-3d;
  transform: rotateY(-9deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  outline: 0;
}
.hero-book:hover .book-frame,
.book-frame:focus-visible {
  transform: rotateY(-3deg) rotateX(0deg) translateY(-6px);
}
.book-frame:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 14px;
}

.book-frame::before {
  /* spine shadow */
  content: '';
  position: absolute;
  left: -2px; top: 1%; bottom: 1%;
  width: 18px;
  background: linear-gradient(90deg, rgba(0,0,0,0.6), transparent);
  transform: translateZ(-2px);
  filter: blur(2px);
}
.book-frame img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 0 calc(120px * var(--glow-mult, 1)) rgba(var(--c-glow), 0.3),
    0 0 0 1px rgba(var(--c-glow), 0.25);
  transition: box-shadow 0.6s cubic-bezier(.2,.7,.2,1);
}
.hero-book:hover .book-frame img,
.book-frame:focus-visible img {
  box-shadow:
    0 40px 110px rgba(0,0,0,0.85),
    0 0 calc(180px * var(--glow-mult, 1)) rgba(var(--c-glow), 0.55),
    0 0 0 1px rgba(var(--c-glow), 0.5);
}

/* Floating data labels around book */
.book-tag {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  opacity: 0;
  animation: tag-in 0.8s ease forwards;
}
.book-tag .ln {
  display: block;
  height: 1px;
  background: var(--c-accent);
  flex: 0 0 auto;
}
.book-tag .dot-sq {
  width: 6px; height: 6px;
  border: 1px solid var(--c-accent);
  background: rgba(var(--c-glow), 0.2);
  flex: 0 0 auto;
}
.book-tag.tl { top: 8%; left: -120px; }
.book-tag.tl .ln { width: 80px; }
.book-tag.br { bottom: 18%; right: -180px; animation-delay: 0.3s; }
.book-tag.br .ln { width: 100px; }
.book-tag.bl { bottom: 6%; left: -60px; animation-delay: 0.6s; }
.book-tag.bl .ln { width: 40px; }

@keyframes tag-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Marquee scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line {
  width: 1px; height: 36px; background: linear-gradient(180deg, transparent, var(--c-accent), transparent);
  background-size: 100% 200%;
  animation: cue-flow 1.8s linear infinite;
}
@keyframes cue-flow {
  0% { background-position: 0% -100%; }
  100% { background-position: 0% 100%; }
}

/* ─── DNA / Conspiracy section ────────────────────────────────────── */
.dna-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 80px;
}

.dna-copy { max-width: 540px; }
.dna-copy h2 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin: 20px 0 56px;
  text-transform: uppercase;
}
.dna-copy h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--c-accent-hot), var(--c-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dna-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-dim);
  margin: 0 0 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  padding: 24px 20px;
  background: var(--bg);
  position: relative;
}
.stat .num {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--c-accent-hot), var(--c-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.stat .lbl {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 8px;
}

/* DNA stage */
.dna-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.dna-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dna-rings .ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--c-glow), 0.15);
  border-radius: 50%;
  animation: ring-rot 60s linear infinite;
}
.dna-rings .ring:nth-child(2) { inset: 8%; border-style: dashed; animation-duration: 80s; animation-direction: reverse; }
.dna-rings .ring:nth-child(3) { inset: 18%; border-color: rgba(var(--c-glow), 0.08); animation-duration: 100s; }
@keyframes ring-rot { to { transform: rotate(360deg); } }

.dna-readout {
  position: absolute;
  top: 12%;
  right: 4%;
  text-align: right;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--fg-faint);
  line-height: 1.7;
}
.dna-readout .row { display: flex; justify-content: flex-end; gap: 8px; align-items: baseline; }
.dna-readout .row b { color: var(--c-accent); font-weight: 400; }

.dna-readout-bl {
  position: absolute;
  bottom: 8%;
  left: 4%;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--fg-faint);
  line-height: 1.7;
}

/* ─── Sinopse ─────────────────────────────────────────────────────── */
.synopsis-section {
  position: relative;
  text-align: center;
  padding-top: 140px;
  padding-bottom: 140px;
  max-width: 1100px;
}
.synopsis-section .eyebrow { justify-content: center; }
.synopsis-section .eyebrow::after {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--c-accent);
}

.synopsis-section h2 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1;
  margin: 24px auto 40px;
  text-transform: uppercase;
}

.synopsis-frame {
  position: relative;
  padding: 64px 72px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.synopsis-frame::before,
.synopsis-frame::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--c-accent);
}
.synopsis-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.synopsis-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.corner-tr, .corner-bl {
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--c-accent);
}
.corner-tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.corner-bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }

.synopsis-frame p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--fg);
  margin: 0 0 20px;
  text-align: left;
  font-weight: 300;
}
.synopsis-frame p:last-child { margin-bottom: 0; }
.synopsis-frame .lead {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  text-align: center;
  color: var(--c-accent-hot);
  font-family: 'Big Shoulders Display', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 24px;
  line-height: 1.2;
}

/* Punch — a strong subhead between the question (lead) and the body */
.synopsis-frame .punch {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.025em;
  text-align: center;
  text-transform: none;
  color: var(--fg);
  margin: 0 0 36px;
  padding: 18px 12px;
  line-height: 1.4;
  border-top: 1px solid rgba(var(--c-glow), 0.25);
  border-bottom: 1px solid rgba(var(--c-glow), 0.25);
  text-shadow: 0 0 calc(30px * var(--glow-mult, 1)) rgba(var(--c-glow), 0.4);
}

/* Author's note — small footer-style callout inside the frame */
.synopsis-frame .author-note {
  margin: 40px -8px 0;
  padding: 18px 20px;
  background: rgba(var(--c-glow), 0.04);
  border-left: 2px solid var(--c-accent);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
}
.synopsis-frame .author-note .an-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  white-space: nowrap;
  padding-top: 3px;
  flex: 0 0 auto;
}
.synopsis-frame .author-note p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-dim);
  margin: 0;
  font-style: italic;
  text-align: left;
}
@media (max-width: 640px) {
  .synopsis-frame .author-note {
    flex-direction: column;
    gap: 8px;
    margin: 32px -4px 0;
    padding: 14px 16px;
  }
}

/* ─── Themes / pillars ────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 60px;
}
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
.pillar {
  padding: 36px 28px;
  background: var(--bg);
  text-align: left;
  position: relative;
  transition: background .3s;
}
.pillar:hover { background: var(--bg-2); }
.pillar:hover .p-num { color: var(--c-accent-hot); }
.pillar .p-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-accent);
  transition: color .3s;
}
.pillar h3 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 16px 0 12px;
  letter-spacing: 0.02em;
}
.pillar p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: 0;
}

/* ─── Author ──────────────────────────────────────────────────────── */
.author-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 140px;
}

.author-portrait {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.4),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Photo — base layer */
.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: contrast(1.05) saturate(0.78) brightness(1.02);
  z-index: 0;
}
[data-theme="light"] .portrait-photo {
  filter: contrast(1.02) saturate(0.85) brightness(1.04);
}

/* Subtle copper tint (top-left only) + slight bottom darken for the name strip */
.author-portrait::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(var(--c-glow), 0.22), transparent 50%),
    linear-gradient(180deg, transparent 65%, rgba(5, 4, 7, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
[data-theme="light"] .author-portrait::before {
  background:
    linear-gradient(135deg, rgba(var(--c-glow), 0.18), transparent 55%),
    linear-gradient(180deg, transparent 70%, rgba(255, 248, 232, 0.55) 100%);
}

/* Scan lines */
.author-portrait::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255,255,255,0.03) 3px, rgba(255,255,255,0.03) 4px);
  pointer-events: none;
  z-index: 2;
}
[data-theme="light"] .author-portrait::after {
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(0,0,0,0.025) 3px, rgba(0,0,0,0.025) 4px);
}

/* Top metadata strip */
.author-meta {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  display: flex; justify-content: space-between;
  text-transform: uppercase;
  z-index: 3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Bottom name strip */
.portrait-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 20px;
  background:
    linear-gradient(0deg, rgba(0,0,0,0.65) 0%, transparent 100%);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: flex; justify-content: center;
  z-index: 3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(var(--c-glow), 0.25);
}
[data-theme="light"] .portrait-overlay {
  background: linear-gradient(0deg, rgba(255,248,232,0.7) 0%, transparent 100%);
  text-shadow: none;
}

.author-copy h2 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 20px 0 32px;
}
.author-copy p {
  font-size: 17px; line-height: 1.7;
  color: var(--fg-dim);
  margin: 0 0 20px;
  max-width: 560px;
}
.author-list {
  margin-top: 40px;
  list-style: none;
  padding: 0;
}
.author-list li {
  display: flex;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.author-list li:last-child { border-bottom: 1px solid var(--line); }
.author-list .yr {
  flex: 0 0 80px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
}
.author-list .entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.author-list .phase {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1;
}
.author-list .desc {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-dim);
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .author-list li { gap: 16px; padding: 18px 0; }
  .author-list .yr { flex: 0 0 60px; font-size: 12px; }
  .author-list .phase { font-size: 17px; }
  .author-list .desc { font-size: 12px; }
}

/* ─── Pré-venda CTA ───────────────────────────────────────────────── */
.preorder-section {
  position: relative;
  text-align: center;
  padding-top: 160px;
  padding-bottom: 160px;
  max-width: 1100px;
}

.preorder-section .eyebrow { justify-content: center; }
.preorder-section .eyebrow::after {
  content: ''; display: block; width: 32px; height: 1px; background: var(--c-accent);
}

.preorder-section h2 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.9;
  margin: 32px auto;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--c-accent-hot), var(--c-accent), var(--c-accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 calc(80px * var(--glow-mult, 1)) rgba(var(--c-glow), 0.4);
}

.preorder-section .sub {
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.6;
}
.preorder-section .sub em {
  font-style: normal;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 1.25em;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, var(--c-accent-hot), var(--c-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  text-shadow: 0 0 calc(24px * var(--glow-mult, 1)) rgba(var(--c-glow), 0.5);
  padding: 0 4px;
}

.countdown {
  display: flex; justify-content: center; gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
/* After release, the countdown is irrelevant — hide it. */
[data-phase="released"] .countdown { display: none; }
.cd-cell {
  min-width: 96px;
  padding: 20px 16px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}
.cd-cell .n {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  background: linear-gradient(180deg, var(--c-accent-hot), var(--c-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.cd-cell .l {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 8px;
}

.preorder-section .cta-row { justify-content: center; }

/* ─── Channel ticker (bottom strip) ───────────────────────────────── */
.ticker {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  z-index: 30;
  border-top: 1px solid var(--line);
  background: rgba(5, 4, 7, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex; align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  pointer-events: none;
}
[data-theme="light"] .ticker { background: rgba(237, 228, 212, 0.75); }
.ticker-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: tick 60s linear infinite;
  padding-left: 100%;
}
.ticker-track.live { color: var(--c-accent); }
@keyframes tick {
  to { transform: translateX(-50%); }
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 32px 60px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  max-width: 1480px;
  margin: 80px auto 0;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Settings panel (thematic — replaces authoring tweaks panel) ─── */
.settings-fab {
  position: fixed;
  right: 24px;
  bottom: 56px;
  z-index: 60;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--fg-dim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(var(--c-glow), 0.05);
  transition: border-color .2s, color .2s, transform .2s, box-shadow .25s;
}
.settings-fab:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 30px rgba(var(--c-glow), 0.4);
}
.settings-fab svg { width: 18px; height: 18px; animation: settings-spin 18s linear infinite; }
.settings-fab.open svg { animation-duration: 4s; }
@keyframes settings-spin { to { transform: rotate(360deg); } }

.settings-panel {
  position: fixed;
  right: 24px;
  bottom: 110px;
  z-index: 61;
  width: 280px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  padding: 18px 18px 20px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(var(--c-glow), 0.06),
    inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.settings-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.settings-panel::before,
.settings-panel::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--c-accent);
}
.settings-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.settings-panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.settings-panel .sp-title {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--c-accent);
  font-size: 10px;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.settings-panel .sp-title .sp-id { color: var(--fg-faint); }

.settings-panel .sp-group { margin-bottom: 14px; }
.settings-panel .sp-group:last-child { margin-bottom: 0; }
.settings-panel .sp-label {
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--fg-faint);
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: 0.22em;
}
.settings-panel .sp-label .sp-val { color: var(--c-accent); }

.sp-seg {
  display: flex;
  border: 1px solid var(--line-strong);
  background: rgba(0,0,0,0.18);
}
[data-theme="light"] .sp-seg { background: rgba(0,0,0,0.04); }
.sp-seg button {
  appearance: none;
  flex: 1;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--fg-dim);
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 8px 6px;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-transform: uppercase;
}
.sp-seg button:last-child { border-right: 0; }
.sp-seg button:hover { color: var(--c-accent); background: rgba(var(--c-glow), 0.06); }
.sp-seg button[aria-pressed="true"] {
  color: #0a0808;
  background: var(--c-accent);
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}
[data-theme="light"] .sp-seg button[aria-pressed="true"] { color: #0a0808; }

.sp-swatches {
  display: flex; gap: 6px;
}
.sp-swatches button {
  flex: 1;
  height: 36px;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--swatch);
  cursor: pointer;
  position: relative;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.sp-swatches button:hover { transform: translateY(-1px); border-color: var(--c-accent); }
.sp-swatches button[aria-pressed="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--c-accent), 0 0 16px var(--swatch);
}
.sp-swatches button[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,255,255,0.45);
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .book-tag.br { right: -120px; }
  .book-tag.br .ln { width: 60px; }
  .book-tag.tl { left: -100px; }
  .book-tag.tl .ln { width: 60px; }
}

@media (max-width: 1100px) {
  .tb-meta { display: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 40px; }
  .hero-book { order: -1; max-width: 360px; margin: 0 auto; }
  .dna-section { grid-template-columns: 1fr; }
  .dna-wrap { height: min(560px, 88vw); }
  .author-section { grid-template-columns: 1fr; }
  .author-portrait { max-width: 420px; margin: 0 auto; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .book-tag.tl, .book-tag.bl, .book-tag.br { display: none; }
  .topbar { padding: 14px 16px; gap: 12px; }
  .tb-meta { display: none; }
  .scroll-cue { display: none; }
  .hero-deco { display: none; }
  /* Hide secondary topbar labels — keep just GENESCI · dot, lang switch, audio EQ + state */
  .tb-classified, .tb-classified-sep,
  .tb-audio-label, .tb-audio-sep { display: none; }
  .tb-audio { padding: 8px 10px; gap: 6px; }
  .tb-actions { gap: 6px; }
}
@media (max-width: 640px) {
  .section { padding: 80px 20px; }
  .synopsis-frame { padding: 32px 24px; }
  .stat-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 12px; align-items: flex-start; }
  .countdown { gap: 12px; }
  .cd-cell { min-width: 72px; padding: 14px 10px; }
  .cd-cell .n { font-size: 36px; }
  .settings-panel { width: calc(100vw - 32px); right: 16px; }
  .settings-fab { right: 16px; bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
