/* ============================================
   PORTFOLIO — Palanivel Rajan Mylsamy
   Dark editorial aesthetic, Solar Gold accents
   (matches The Agentic TPM book portal system)
   ============================================ */

:root {
  --bg-deep: #050403;
  --bg-mid: #0a0807;
  --bg-elevated: #12100e;
  --bg-card: #16130f;

  --gold: #e8c878;
  --gold-mid: #c9a961;
  --gold-deep: #8a7240;
  --gold-solar: #f5a623;

  --ink: #f0ebdb;
  --ink-soft: #b8b1a0;
  --ink-muted: #75705f;
  --ink-quiet: #4a4638;

  --border-soft: rgba(232, 200, 120, 0.15);
  --border-mid: rgba(232, 200, 120, 0.25);

  --font-display: 'Cinzel', 'Georgia', serif;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Syne', 'Inter', sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(232, 200, 120, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 82% 92%, rgba(245, 166, 35, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 4, 3, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-sans); font-weight: 600; font-size: 15px; letter-spacing: 0.05em; }
.brand-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 8px; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--gold); }

.nav-tab {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 2px;
  cursor: pointer;
}

.nav-tab:hover { color: var(--ink); }

.nav-tab.active {
  color: var(--bg-deep);
  background: var(--gold);
  font-weight: 600;
}

.nav-tab-cta { color: var(--bg-deep); background: var(--gold); font-weight: 600; }
.nav-tab-cta:hover { color: var(--bg-deep); }

/* ============ TAB PANELS ============ */
.site-main { position: relative; z-index: 1; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.section-container { max-width: var(--container); margin: 0 auto; padding: 100px 32px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title { font-family: var(--font-display); font-weight: 600; font-size: 38px; color: var(--ink); margin-bottom: 16px; }
.section-lead { font-family: var(--font-body); font-size: 16px; color: var(--ink-soft); line-height: 1.6; max-width: 640px; }
.section-header.centered { text-align: center; margin: 0 auto 64px; max-width: 640px; }
.section-header:not(.centered) { margin-bottom: 48px; }

/* ============ HERO ============ */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 32px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
}

.badge-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-solar);
  display: inline-block;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
@keyframes floatSun { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.badge-text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

.hero-title { font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 1.12; margin-bottom: 24px; }
.hero-title em { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-weight: 500; }
.hero-sub { font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 560px; margin-bottom: 36px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary { background: var(--gold); color: var(--bg-deep); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--border-mid); }
.btn-small { padding: 10px 18px; font-size: 13px; }

.hero-meta { display: flex; gap: 40px; flex-wrap: wrap; }
.meta-num { font-family: var(--font-display); font-size: 28px; color: var(--gold); }
.meta-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-top: 4px; }

.hero-photo-wrap { display: flex; align-items: center; justify-content: center; position: relative; }
.hero-photo-halo {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,216,122,0.16) 0%, rgba(201,169,97,0.05) 55%, transparent 75%);
  animation: floatSun 7s ease-in-out infinite;
}
.hero-photo-frame {
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: var(--bg-mid);
  overflow: hidden;
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ============ PUBLICATIONS STRIP ============ */
.publications-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 24px 32px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.pub-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-quiet); }
.pub-name { font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--ink-muted); letter-spacing: 0.01em; }

.press-list-wrap { max-width: var(--container); margin: 0 auto; padding: 8px 32px 0; }
.press-list { display: flex; flex-direction: column; }
.press-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.press-item:hover { opacity: 0.72; }
.press-outlet { flex: 0 0 160px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }
.press-title { flex: 1; font-family: var(--font-sans); font-size: 15px; color: var(--ink-soft); }
.press-arrow { color: var(--gold); }

/* ============ FLAGSHIP SECTIONS (Home narrative) ============ */
.section-flag { padding: 120px 32px; }
.section-flag-inner { max-width: var(--container); margin: 0 auto; }
.section-flag-tag { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.stag-num { font-family: var(--font-display); font-size: 15px; color: var(--gold-deep); }
.stag-line { flex: 0 0 40px; height: 1px; background: var(--border-mid); }
.stag-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.section-flag-headline { font-family: var(--font-display); font-weight: 600; font-size: 38px; line-height: 1.25; margin-bottom: 24px; }
.ital-em { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-weight: 500; }
.section-flag-lead { font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 720px; }

.section-problem-flag { background: var(--bg-mid); }
.section-gates-flag { background: var(--bg-mid); }

/* ---- Stats (The Problem) ---- */
.stats-flag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.stat-flag { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 4px; padding: 28px; }
.stat-flag-num { font-family: var(--font-display); font-size: 42px; color: var(--gold); font-weight: 600; }
.stat-suffix-flag { font-size: 22px; }
.stat-flag-label { font-size: 14px; color: var(--ink-soft); margin: 10px 0 12px; line-height: 1.5; }
.stat-flag-source { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); letter-spacing: 0.05em; }

/* ---- Shift diagram ---- */
.shift-diagram { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; margin-top: 48px; }
.shift-side { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 4px; padding: 28px; }
.shift-old { opacity: 0.6; }
.shift-new { border-color: var(--border-mid); }
.shift-side-label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.side-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-muted); }
.side-tag-gold { color: var(--gold-deep); }
.side-title { font-family: var(--font-display); font-size: 17px; }
.side-title-gold { color: var(--gold); }
.shift-nodes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.shift-node { font-size: 13px; color: var(--ink-soft); padding: 8px 12px; border: 1px solid var(--border-soft); border-radius: 2px; }
.shift-node-gold { border-color: var(--border-mid); color: var(--ink); }
.shift-side-caption { font-size: 12px; color: var(--ink-muted); font-style: italic; }
.shift-side-caption-gold { color: var(--gold); }
.shift-arrow-big { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.arrow-line-h { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, var(--gold-mid), transparent); }
.arrow-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--gold-deep); writing-mode: vertical-rl; }
.arrow-tip { color: var(--gold); font-size: 12px; }

/* ---- Gates viz ---- */
.gates-viz { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.gates-viz .gate-viz-item { flex: 1 1 140px; }
.gates-viz .gate-viz-connector { flex: 0 0 20px; }
.gate-viz-item { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 4px; padding: 20px 14px; text-align: center; }
.gate-viz-item:hover { border-color: var(--border-mid); }
.gate-viz-code { font-family: var(--font-display); font-size: 24px; color: var(--gold); font-weight: 600; }
.gate-viz-name { font-family: var(--font-sans); font-size: 13px; margin: 8px 0; }
.gate-viz-thresh { font-family: var(--font-mono); font-size: 11px; color: var(--gold-deep); margin-bottom: 6px; }
.gate-viz-role { font-size: 11px; color: var(--ink-muted); }
.gate-viz-connector { display: flex; align-items: center; justify-content: center; }
.gate-viz-connector span { display: block; width: 100%; height: 1px; background: var(--border-mid); }
.gates-caption { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-top: 32px; max-width: 720px; }
.gates-caption strong { color: var(--ink); }

/* ---- Quote interlude ---- */
.interlude-flag { padding: 140px 32px; text-align: center; background: linear-gradient(135deg, var(--bg-card), var(--bg-mid)); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.interlude-inner { max-width: 760px; margin: 0 auto; }
.interlude-marks { font-family: var(--font-display); font-size: 90px; color: var(--gold-deep); line-height: 1; opacity: 0.6; }
.interlude-quote { font-family: var(--font-serif); font-size: 32px; font-weight: 500; line-height: 1.4; color: var(--ink); margin: 16px 0 32px; }
.interlude-quote em { color: var(--gold); font-style: italic; }
.interlude-attr { display: flex; align-items: center; gap: 16px; justify-content: center; }
.interlude-attr span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--gold-deep); }
.attr-rule { flex: 0 0 40px; height: 1px; background: var(--border-mid); }

/* ---- Sneak peek ---- */
.peek-container { margin-top: 48px; }
.peek-book-icon { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 4px; padding: 48px; position: relative; max-width: 760px; }
.peek-book-corner { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 32px 32px 0; border-color: transparent var(--bg-mid) transparent transparent; }
.peek-chapter-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 12px; }
.peek-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: 20px; }
.peek-body p { font-size: 15px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 16px; }
.peek-body em { font-style: italic; color: var(--ink); }
.peek-body p:first-child { color: var(--ink); }
.peek-cta { margin-top: 12px; background: none; border: none; color: var(--gold); font-family: var(--font-sans); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.peek-cta:hover { opacity: 0.8; }
.peek-cta:hover .btn-arrow { transform: translateX(4px); }
.btn-arrow { transition: transform 0.15s ease; display: inline-block; }

/* ---- What's inside (parts) ---- */
.parts-flag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.part-flag { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 4px; padding: 24px; }
.part-flag:hover { border-color: var(--border-mid); }
.part-flag-header { margin-bottom: 16px; }
.part-flag-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--gold-deep); margin-bottom: 4px; }
.part-flag-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.part-flag-list { list-style: none; }
.part-flag-list li { display: flex; gap: 10px; font-size: 13px; color: var(--ink-soft); padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.part-flag-list li:last-child { border-bottom: none; }
.chap-num { font-family: var(--font-mono); color: var(--gold-deep); flex: 0 0 16px; }

/* ---- Author strip ---- */
.author-strip { padding: 100px 32px; background: radial-gradient(ellipse at 30% 50%, rgba(232, 200, 120, 0.04) 0%, transparent 55%), var(--bg-deep); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.author-strip-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 60px; align-items: center; }
.author-strip-photo {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.author-strip-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-strip-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.35em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
.author-strip-name { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin-bottom: 16px; }
.author-strip-bio { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 20px; max-width: 640px; }
.author-strip-bio em { color: var(--ink); font-style: italic; }

/* ---- Final CTA (book launch signup) ---- */
.final-cta-flag { position: relative; padding: 140px 32px; overflow: hidden; text-align: center; }
.final-cta-flag-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.final-cta-flag-inner { position: relative; max-width: 640px; margin: 0 auto; }
.fc-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; margin-bottom: 20px; }
.fc-headline { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.3; margin-bottom: 32px; }
.fc-form { margin-top: 20px; }
.fc-input-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fc-input-row input {
  flex: 1;
  min-width: 240px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}
.fc-input-row input:focus { border-color: var(--gold); }
.fc-input-row input::placeholder { color: var(--ink-muted); }
.fc-thanks { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; color: var(--gold); font-size: 14px; }
.fc-check { font-weight: 700; }
.fc-trust { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); letter-spacing: 0.05em; }
.fc-dot { color: var(--gold-deep); }

/* ---- Buttons (flag variant, used across Home narrative) ---- */
.btn-flag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-flag-primary { background: var(--gold); color: var(--bg-deep); }
.btn-flag-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-mid); }
.btn-flag-small { padding: 10px 18px; font-size: 13px; }
.btn-gold { background: var(--gold); color: var(--bg-deep); font-family: var(--font-sans); font-weight: 600; font-size: 14px; padding: 14px 28px; border-radius: 2px; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }

/* ============ THE BOOK TAB ============ */
/* Book cover — navy field with gold frame, styled after the print cover */
.book-cover-frame {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 22%, rgba(232, 200, 120, 0.10) 0%, transparent 45%),
    linear-gradient(165deg, #0c1a33 0%, #0a1428 55%, #070f1f 100%);
  border: 1px solid rgba(232, 200, 120, 0.35);
  border-radius: 4px;
  padding: 34px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0 60px rgba(0, 0, 0, 0.35);
}
.book-cover-large { aspect-ratio: 5 / 8; }

/* Inner double-line frame with corner ticks */
.book-cover-frameline {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(232, 200, 120, 0.30);
  border-radius: 2px;
  pointer-events: none;
}
.book-cover-frameline::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(232, 200, 120, 0.14);
  border-radius: 1px;
}
.bc-corner { position: absolute; width: 16px; height: 16px; }
.bc-corner::before, .bc-corner::after { content: ''; position: absolute; background: var(--gold); opacity: 0.7; }
.bc-corner::before { width: 16px; height: 1px; }
.bc-corner::after  { width: 1px; height: 16px; }
.bc-corner-tl { top: -1px; left: -1px; }
.bc-corner-tr { top: -1px; right: -1px; }
.bc-corner-tr::before { right: 0; } .bc-corner-tr::after { right: 0; }
.bc-corner-bl { bottom: -1px; left: -1px; }
.bc-corner-bl::before { bottom: 0; } .bc-corner-bl::after { bottom: 0; }
.bc-corner-br { bottom: -1px; right: -1px; }
.bc-corner-br::before { bottom: 0; right: 0; } .bc-corner-br::after { bottom: 0; right: 0; }

.book-cover-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; }
.cover-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.26em; color: #8ea0bd; margin-bottom: 14px; }
.cover-sun { margin-bottom: 18px; filter: drop-shadow(0 0 24px rgba(245, 200, 110, 0.45)); }
.cover-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: 0.06em; color: #f2ecdc; line-height: 1.05; }
.cover-tpm { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: clamp(44px, 6vw, 68px); background: linear-gradient(135deg, #fff2c8 0%, var(--gold) 45%, var(--gold-deep) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; letter-spacing: 0.03em; line-height: 1.02; margin-top: 2px; }
.cover-subtitle { font-family: var(--font-serif); font-style: italic; font-size: clamp(15px, 1.9vw, 20px); color: #d6dbe6; line-height: 1.4; margin-top: 18px; }
.cover-divider { position: relative; width: 150px; max-width: 60%; height: 1px; background: linear-gradient(90deg, transparent, rgba(232, 200, 120, 0.5), transparent); margin: 22px 0; }
.cover-divider-dot { position: absolute; top: 50%; left: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--gold); }
.cover-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(15px, 1.9vw, 20px); color: #c3cbdb; line-height: 1.45; }
.cover-rule { width: 78%; height: 1px; background: rgba(140, 160, 190, 0.18); margin: 22px 0; }
.cover-inside-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; color: #8ea0bd; margin-bottom: 10px; }
.cover-inside-list { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--gold); line-height: 1.7; }
.cover-author { font-family: var(--font-mono); font-size: clamp(12px, 1.5vw, 15px); letter-spacing: 0.2em; color: var(--gold); }
.cover-author-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: #8ea0bd; margin-top: 8px; }

.book-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.book-preview-content h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--gold); margin-top: 36px; margin-bottom: 14px; }
.book-preview-content h3:first-child { margin-top: 0; }
.book-preview-content p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 16px; }
.book-inside-grid { display: flex; flex-direction: column; gap: 14px; }
.inside-item { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.inside-item strong { color: var(--ink); }
.book-cta { margin-top: 40px; padding: 28px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 4px; }
.book-cta h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.signup-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}
.signup-form input:focus { border-color: var(--gold); }
.signup-form input::placeholder { color: var(--ink-muted); }

/* ============ THEMES ============ */
.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.theme-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 4px; padding: 36px; }
.theme-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--gold-deep); margin-bottom: 18px; }
.theme-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-bottom: 14px; }
.theme-card p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }

/* ============ TOOLKIT ============ */
.toolkit-header { margin-top: 88px; }

/* ---- Templates ---- */
.templates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.template-card:hover { border-color: var(--gold-mid); transform: translateY(-2px); }
.template-header { margin-bottom: 16px; }
.template-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding: 4px 10px;
  border: 1px solid var(--gold-deep);
  border-radius: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.template-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; line-height: 1.3; }
.template-card p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 20px; flex: 1; }
.template-actions { display: flex; gap: 8px; }

/* ---- Build Your AI ---- */
.build-ai-sections { display: flex; flex-direction: column; gap: 48px; }
.build-ai-block h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.build-ai-block p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 20px; max-width: 720px; }
.prompt-frame { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 4px; overflow: hidden; }
.prompt-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border-soft); }
.prompt-name { font-family: var(--font-mono); font-size: 12px; color: var(--gold); }
.prompt-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-wrap;
  overflow-x: auto;
}
.prompt-links { display: flex; flex-direction: column; gap: 2px; }
.prompt-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.prompt-link:hover { border-color: var(--border-mid); }
.link-num { font-family: var(--font-mono); font-size: 12px; color: var(--gold-deep); flex: 0 0 28px; }
.link-name { flex: 1; font-family: var(--font-sans); font-size: 14px; color: var(--ink); }
.link-arrow { color: var(--gold); }
.build-ai-github { background: linear-gradient(135deg, var(--bg-card), var(--bg-mid)); border: 1px solid var(--border-mid); border-radius: 4px; padding: 32px; }
.build-ai-github .btn { margin-top: 16px; }

.subscribe-block {
  margin-top: 64px;
  padding: 40px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-mid));
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  text-align: center;
}
.subscribe-block h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-bottom: 10px; }
.subscribe-block > p { font-size: 14px; color: var(--ink-soft); max-width: 480px; margin: 0 auto 24px; }
.subscribe-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}
.subscribe-form input[type="email"]::placeholder { color: var(--ink-muted); }
.subscribe-thanks { margin-top: 16px; color: var(--gold); font-size: 14px; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.about-primary h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--gold); margin-top: 40px; margin-bottom: 16px; letter-spacing: 0.02em; }
.about-primary h3:first-child { margin-top: 0; }
.about-primary p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 20px; }
.about-primary em { color: var(--ink); font-style: italic; }
.about-side { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 4px; padding: 26px; }
.side-card h4 { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.side-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.side-card li { font-size: 14px; color: var(--ink-soft); padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.side-card li:last-child { border-bottom: none; }
.side-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; }
.side-card-highlight { background: linear-gradient(135deg, var(--bg-card), var(--bg-mid)); border-color: var(--border-mid); }

/* ============ CONNECT ============ */
.connect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.connect-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 28px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.connect-card:hover { border-color: var(--gold-mid); transform: translateY(-2px); }
.connect-icon { font-family: var(--font-mono); font-size: 15px; color: var(--gold); }
.connect-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }
.connect-card p { font-size: 13px; line-height: 1.5; color: var(--ink-soft); flex: 1; }
.connect-arrow { color: var(--gold); align-self: flex-end; }
.connect-mentoring { text-align: left; }
.connect-mentoring h4 { text-align: center; }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 32px;
  background: var(--bg-mid);
  position: relative;
  z-index: 1;
}
.footer-inner { max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: 0.03em; }
.footer-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-link { background: none; border: none; color: var(--ink-soft); font-family: var(--font-body); font-size: 13px; cursor: pointer; transition: color 0.2s; }
.footer-link:hover { color: var(--gold); }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); letter-spacing: 0.05em; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-photo-wrap { order: -1; }
  .hero-title { font-size: 40px; }
  .theme-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }

  .stats-flag { grid-template-columns: 1fr; }
  .shift-diagram { grid-template-columns: 1fr; }
  .shift-arrow-big { flex-direction: row; }
  .arrow-line-h { width: 60px; height: 1px; }
  .arrow-label { writing-mode: horizontal-tb; }
  .gates-viz .gate-viz-connector { display: none; }
  .parts-flag-grid { grid-template-columns: repeat(2, 1fr); }
  .author-strip-inner { grid-template-columns: 1fr; text-align: center; }
  .author-strip-photo { margin: 0 auto; }
  .author-strip-bio { margin-left: auto; margin-right: auto; }

  .templates-grid { grid-template-columns: repeat(2, 1fr); }
  .connect-grid { grid-template-columns: repeat(2, 1fr); }
  .book-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .site-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .site-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-mid);
    border-bottom: 1px solid var(--border-soft);
    padding: 16px;
    gap: 4px;
    align-items: stretch;
  }
  .site-nav.mobile-open .nav-tab { width: 100%; text-align: left; padding: 12px 16px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 20px; }
  .brand-role { display: none; }

  .hero { padding: 48px 20px 40px; gap: 40px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-meta { gap: 28px; }
  .hero-photo-halo { width: 220px; height: 220px; }
  .hero-photo-frame { width: 160px; height: 160px; }

  .section-container { padding: 64px 20px; }
  .section-title { font-size: 28px; }

  .publications-strip { padding: 20px; gap: 24px; }
  .press-list-wrap { padding: 8px 20px 0; }
  .press-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .press-outlet { flex: none; }

  .theme-card, .side-card { padding: 24px; }
  .toolkit-header { margin-top: 56px; }
  .subscribe-block { margin-top: 40px; padding: 28px 20px; }
  .subscribe-form { flex-direction: column; }

  .section-flag { padding: 72px 20px; }
  .section-flag-headline { font-size: 28px; }
  .stag-num { font-size: 24px; }

  .stats-flag { margin-top: 32px; }
  .stat-flag { padding: 20px; }
  .stat-flag-num { font-size: 32px; }

  .parts-flag-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .gates-viz { margin-top: 32px; }
  .shift-diagram { margin-top: 32px; gap: 20px; }

  .interlude-flag { padding: 80px 20px; }
  .interlude-marks { font-size: 60px; }
  .interlude-quote { font-size: 24px; }

  .peek-book-icon { padding: 28px 20px; }
  .peek-title { font-size: 20px; }

  .author-strip { padding: 60px 20px; }
  .author-strip-name { font-size: 26px; }

  .final-cta-flag { padding: 80px 20px; }
  .fc-headline { font-size: 26px; }
  .fc-input-row { flex-direction: column; }
  .fc-trust { flex-direction: column; gap: 6px; }

  .templates-grid { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; }
  .book-grid { gap: 32px; }
  .signup-form { flex-direction: column; }
}

/* ============================================
   CINEMATIC INTRO — the "Enter" gateway
   Full-screen agentic overlay shown before the site.
   ============================================ */

body.intro-active { overflow: hidden; }

.cinematic-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(232, 200, 120, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(245, 166, 35, 0.06) 0%, transparent 60%),
    #030201;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
  will-change: opacity, transform;
}

.cinematic-intro.is-leaving {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(6px);
  pointer-events: none;
}

/* Starfield */
.ci-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(240, 235, 219, 0.7) 50%, transparent),
    radial-gradient(1px 1px at 28% 68%, rgba(232, 200, 120, 0.6) 50%, transparent),
    radial-gradient(1px 1px at 47% 14%, rgba(240, 235, 219, 0.5) 50%, transparent),
    radial-gradient(1.4px 1.4px at 64% 78%, rgba(240, 235, 219, 0.65) 50%, transparent),
    radial-gradient(1px 1px at 78% 32%, rgba(232, 200, 120, 0.55) 50%, transparent),
    radial-gradient(1px 1px at 88% 60%, rgba(240, 235, 219, 0.5) 50%, transparent),
    radial-gradient(1.2px 1.2px at 8% 84%, rgba(240, 235, 219, 0.5) 50%, transparent),
    radial-gradient(1px 1px at 55% 90%, rgba(232, 200, 120, 0.5) 50%, transparent),
    radial-gradient(1px 1px at 36% 44%, rgba(240, 235, 219, 0.45) 50%, transparent);
  animation: ci-twinkle 5.5s ease-in-out infinite;
  opacity: 0;
  animation-delay: 0.2s;
  animation-fill-mode: forwards;
}

@keyframes ci-twinkle {
  0%   { opacity: 0; }
  15%  { opacity: 0.9; }
  50%  { opacity: 0.5; }
  85%  { opacity: 0.9; }
  100% { opacity: 0.7; }
}

.ci-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(3, 2, 1, 0.75) 100%);
  pointer-events: none;
}

.ci-skip {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 3;
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 4px;
  opacity: 0;
  animation: ci-fade-in 0.8s ease forwards;
  animation-delay: 1.4s;
  transition: color 0.25s ease;
}
.ci-skip:hover { color: var(--gold); }

.ci-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
}

/* ---- Orbit system ---- */
.ci-orbit-system {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.ci-sun {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.6);
  animation: ci-sun-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.3s;
  filter: drop-shadow(0 0 34px rgba(245, 166, 35, 0.5));
}
.ci-sun-rays { transform-origin: 60px 60px; animation: ci-spin 40s linear infinite; }

.ci-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}
.ci-orbit-ring {
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border: 1px solid rgba(232, 200, 120, 0.16);
  box-shadow: inset 0 0 40px rgba(232, 200, 120, 0.05);
  opacity: 0;
  animation: ci-ring-in 1s ease forwards;
  animation-delay: 0.9s;
}
.ci-orbit-1 {
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  animation: ci-spin 34s linear infinite;
}

.ci-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  /* place on the ring, then counter-rotate the label upright */
  transform: rotate(var(--a)) translateX(150px) rotate(calc(-1 * var(--a)));
  opacity: 0;
  animation: ci-node-in 0.6s ease forwards;
}
.ci-node i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(30, 26, 18, 0.95), rgba(12, 10, 8, 0.95));
  border: 1px solid var(--border-mid);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.04em;
  box-shadow: 0 0 16px rgba(232, 200, 120, 0.18);
}
/* Counter-spin each node label so it stays upright while the orbit rotates */
.ci-orbit-1 .ci-node i { animation: ci-spin-rev 34s linear infinite; }

.ci-node:nth-child(1) { animation-delay: 1.15s; }
.ci-node:nth-child(2) { animation-delay: 1.30s; }
.ci-node:nth-child(3) { animation-delay: 1.45s; }
.ci-node:nth-child(4) { animation-delay: 1.60s; }
.ci-node:nth-child(5) { animation-delay: 1.75s; }

/* ---- Copy ---- */
.ci-copy { max-width: 720px; }

.ci-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: ci-fade-up 0.9s ease forwards;
  animation-delay: 1.7s;
}

.ci-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 8vw, 74px);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 18px 0 0;
  color: var(--ink);
  opacity: 0;
  animation: ci-fade-up 1s ease forwards;
  animation-delay: 2.0s;
}
.ci-tpm {
  background: linear-gradient(135deg, #fff8e0 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ci-tagline {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 22px auto 0;
  max-width: 560px;
  opacity: 0;
  animation: ci-fade-up 1s ease forwards;
  animation-delay: 2.5s;
}
.ci-tagline strong { color: var(--ink); font-weight: 500; }

.ci-enter-wrap {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: ci-fade-up 1s ease forwards;
  animation-delay: 3.0s;
}

.ci-enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 40px;
  border-radius: 3px;
  border: 1px solid var(--gold-mid);
  background: linear-gradient(135deg, rgba(232, 200, 120, 0.14), rgba(245, 166, 35, 0.06));
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
  animation: ci-pulse 2.6s ease-in-out infinite;
  animation-delay: 3.6s;
}
.ci-enter:hover {
  transform: translateY(-2px);
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-mid));
  box-shadow: 0 12px 40px rgba(232, 200, 120, 0.35);
  animation-play-state: paused;
}
.ci-enter-arrow { transition: transform 0.25s ease; }
.ci-enter:hover .ci-enter-arrow { transform: translateX(5px); }
.ci-enter-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(245, 166, 35, 0.4), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.ci-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}
.ci-hint kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border: 1px solid var(--border-mid);
  border-radius: 3px;
  color: var(--gold);
  background: rgba(232, 200, 120, 0.06);
}

/* ---- Keyframes ---- */
@keyframes ci-fade-in { to { opacity: 1; } }
@keyframes ci-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ci-sun-in { to { opacity: 1; transform: scale(1); } }
@keyframes ci-ring-in { to { opacity: 1; } }
@keyframes ci-node-in { to { opacity: 1; } }
@keyframes ci-spin { to { transform: rotate(360deg); } }
@keyframes ci-spin-rev { to { transform: rotate(-360deg); } }
@keyframes ci-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 200, 120, 0.0); }
  50%      { box-shadow: 0 0 30px 2px rgba(232, 200, 120, 0.28); }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .ci-orbit-system { width: 260px; height: 260px; }
  .ci-orbit-ring, .ci-orbit-1 { width: 230px; height: 230px; margin: -115px 0 0 -115px; }
  .ci-node { transform: rotate(var(--a)) translateX(115px) rotate(calc(-1 * var(--a))); width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .ci-node i { font-size: 11px; }
  .ci-skip { top: 16px; right: 16px; }
  .ci-stage { padding: 24px 18px; }
  .ci-enter { padding: 14px 32px; font-size: 14px; }
}

/* ---- Reduced motion: reveal everything, no orbit/pulse ---- */
@media (prefers-reduced-motion: reduce) {
  .cinematic-intro,
  .cinematic-intro * {
    animation: none !important;
    transition: opacity 0.3s ease !important;
  }
  .ci-stars, .ci-skip, .ci-sun, .ci-orbit-ring, .ci-node,
  .ci-eyebrow, .ci-title, .ci-tagline, .ci-enter-wrap {
    opacity: 1 !important;
  }
  .ci-sun { transform: scale(1) !important; }
}
