:root {
  --ink: #070b16;
  --navy: #0f1a33;
  --navy-2: #1c2a4d;
  --gold: #c9a24a;
  --gold-hi: #f1d78d;
  --ember: #d9432f;
  --teal: #4fb8b0;
  --paper: #f4efe4;
  --muted: #a8b0c4;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--ink); color: var(--paper); overflow: hidden; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Atmosphere ---------- */
.grain, .vignette { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.grain {
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
.vignette { background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.75) 100%); }
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)} }

/* ---------- Slides ---------- */
#deck { position: fixed; inset: 0; }
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 6vw, 110px) clamp(24px, 8vw, 150px) clamp(80px, 9vh, 120px);
  opacity: 0; visibility: hidden;
  transform: scale(1.04); filter: blur(8px);
  transition: opacity .9s var(--ease), transform 1.2s var(--ease), filter .9s var(--ease), visibility 0s .9s;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201,162,74,.12), transparent 60%),
    radial-gradient(ellipse 70% 70% at 10% 90%, rgba(79,184,176,.08), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--ink) 70%);
  overflow: hidden;
}
.slide.active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; z-index: 2; }
.slide.leaving-back { transform: scale(.96); }

.slide::before { /* slow light sweep */
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0 70%, rgba(241,215,141,.07) 78%, transparent 86%);
  animation: sweep 28s linear infinite; pointer-events: none;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.slide > .wrap { position: relative; z-index: 1; max-width: 1200px; width: 100%; margin: 0 auto; }

/* Staggered reveals */
.slide .r { opacity: 0; transform: translateY(28px); }
.slide.active .r { animation: rise 1s var(--ease) forwards; animation-delay: calc(.25s + var(--i, 0) * .14s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Typography ---------- */
.eyebrow { font-family: var(--display); letter-spacing: .32em; text-transform: uppercase; font-size: clamp(11px, 1vw, 14px); color: var(--gold); }
.h-mega { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .92; letter-spacing: -.01em; font-size: clamp(48px, 9vw, 150px); }
.h-xl { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 1; font-size: clamp(36px, 5.6vw, 88px); }
.h-lg { font-family: var(--serif); font-weight: 700; line-height: 1.05; font-size: clamp(30px, 4vw, 60px); }
.lede { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.1vw, 32px); color: #e7dcc2; line-height: 1.35; max-width: 34ch; }
.body { color: var(--muted); font-size: clamp(15px, 1.25vw, 19px); line-height: 1.6; max-width: 64ch; }
.gold { color: var(--gold-hi); }
.ember { color: var(--ember); }
.teal { color: var(--teal); }
.shine {
  background: linear-gradient(100deg, var(--gold) 20%, #fff5d6 45%, var(--gold) 70%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s ease-in-out infinite;
}
@keyframes shine { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.rule { width: 120px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); margin: 28px 0; }
.stack > * + * { margin-top: 18px; }

/* ---------- Cover ---------- */
.t-cover { text-align: center; align-items: center; }
.t-cover .wrap { display: flex; flex-direction: column; align-items: center; }
.t-cover .rule { margin: 30px auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); width: 260px; }
.t-cover .names { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 36px); }
.t-cover .names i { color: var(--gold); display: block; font-size: .7em; margin: 4px 0; }
.motto { font-family: var(--display); letter-spacing: .28em; text-transform: uppercase; font-size: clamp(12px, 1.2vw, 16px); color: var(--muted); }
.motto b { color: var(--gold-hi); font-weight: 600; }

/* ---------- Chapter title card ---------- */
.t-chapter { background: radial-gradient(ellipse at 50% 120%, rgba(217,67,47,.22), transparent 55%), linear-gradient(180deg, #03050b, var(--ink)); }
.t-chapter .num {
  position: absolute; right: -2vw; bottom: -8vh; z-index: 0;
  font-family: var(--display); font-weight: 700; font-size: clamp(220px, 42vw, 640px); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px rgba(201,162,74,.18);
}
.t-chapter .bars::before, .t-chapter .bars::after { /* letterbox */
  content: ""; position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 3;
}
.t-chapter .bars::before { top: 0; } .t-chapter .bars::after { bottom: 0; }
.t-chapter.active .h-mega { animation: rise 1.2s var(--ease) forwards, flicker 2.4s .6s 1; }
@keyframes flicker { 0%,100%{opacity:1} 8%{opacity:.4} 10%{opacity:1} 14%{opacity:.6} 16%{opacity:1} }

/* ---------- Statement ---------- */
.t-statement .quote { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.6vw, 72px); line-height: 1.12; max-width: 22ch; }
.t-statement .quote em { color: var(--gold-hi); font-style: italic; }
.t-statement .cite { margin-top: 28px; font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--gold); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: clamp(12px, 1.6vw, 22px); margin-top: 34px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card {
  position: relative; padding: 22px 22px 24px; border: 1px solid rgba(201,162,74,.28); border-radius: 4px;
  background: linear-gradient(160deg, rgba(28,42,77,.7), rgba(7,11,22,.6)); backdrop-filter: blur(4px);
}
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--gold); }
.card h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: clamp(16px, 1.4vw, 21px); margin-bottom: 8px; color: var(--gold-hi); }
.card p { color: var(--muted); font-size: clamp(13px, 1.05vw, 16px); line-height: 1.5; }
.card .k { font-family: var(--display); font-size: 42px; font-weight: 700; color: var(--ember); line-height: 1; display: block; margin-bottom: 6px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-top: 40px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(48px, 6vw, 96px); line-height: 1; color: var(--gold-hi); }
.stat span { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }

/* ---------- Split (two people) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px); margin-top: 30px; }
.split .col { border-top: 1px solid rgba(201,162,74,.4); padding-top: 22px; }
.split h3 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 40px); }
.split .role { color: var(--gold); font-family: var(--display); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; margin: 6px 0 14px; }
ul.ticks { list-style: none; }
ul.ticks li { position: relative; padding-left: 22px; color: var(--muted); line-height: 1.5; font-size: clamp(13px, 1.1vw, 17px); margin-bottom: 8px; }
ul.ticks li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: .7em; top: .35em; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 40px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.tl { position: relative; padding-top: 34px; }
.tl::before { content: ""; position: absolute; top: 5px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); box-shadow: 0 0 18px var(--gold); }
.tl b { font-family: var(--display); color: var(--gold-hi); font-size: clamp(20px, 2vw, 30px); display: block; }
.tl p { color: var(--muted); font-size: clamp(12px, 1vw, 15px); line-height: 1.45; margin-top: 6px; }

/* ---------- Sequence (Snapped → Shifted → Solid) ---------- */
.seq { display: flex; align-items: stretch; gap: 0; margin-top: 40px; }
.seq .step { flex: 1; padding: 26px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.seq .step h4 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 54px); text-transform: uppercase; line-height: 1; }
.seq .step p { color: var(--muted); margin-top: 12px; line-height: 1.5; font-size: clamp(13px, 1.05vw, 16px); }
.seq .arrow { align-self: center; font-size: clamp(28px, 3vw, 48px); color: var(--gold); padding: 0 10px; }
.seq .s1 h4 { color: var(--ember); } .seq .s2 h4 { color: var(--gold-hi); } .seq .s3 h4 { color: var(--teal); }

/* ---------- Acronym (PRACTICE) ---------- */
.acro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.acro div { padding: 18px; border: 1px solid rgba(201,162,74,.25); background: rgba(15,26,51,.6); }
.acro b { font-family: var(--display); font-size: clamp(38px, 4vw, 64px); color: var(--gold-hi); line-height: 1; display: block; }
.acro span { color: var(--paper); font-size: clamp(13px, 1.05vw, 16px); line-height: 1.35; display: block; margin-top: 6px; }

/* ---------- Embedded original module ---------- */
.t-embed { padding: 0; }
.t-embed .wrap { max-width: none; height: 100%; display: flex; flex-direction: column; }
.t-embed .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; background: #03050b; border-bottom: 1px solid rgba(201,162,74,.3); }
.t-embed .bar a { color: var(--gold-hi); font-size: 13px; text-decoration: none; border: 1px solid rgba(201,162,74,.4); padding: 6px 12px; border-radius: 3px; }
.t-embed iframe { flex: 1; width: 100%; border: 0; background: #000; margin-bottom: 64px; }

/* ---------- Final ---------- */
.t-finale { text-align: center; }
.t-finale .wrap { display: flex; flex-direction: column; align-items: center; }
.legal { margin-top: 36px; max-width: 70ch; font-size: clamp(12px, 1vw, 15px); color: var(--muted); line-height: 1.6; border: 1px solid rgba(201,162,74,.35); padding: 20px 26px; }
.legal strong { color: var(--gold-hi); }

/* ---------- Chrome ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 20; background: rgba(255,255,255,.05); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--gold)); transition: width .6s var(--ease); box-shadow: 0 0 12px var(--gold); }

.hud { position: fixed; right: 18px; bottom: 34px; z-index: 20; display: flex; gap: 6px; align-items: center; opacity: .35; transition: opacity .3s; }
.hud:hover, .hud:focus-within { opacity: 1; }
.hud button { background: rgba(7,11,22,.8); border: 1px solid rgba(201,162,74,.35); padding: 7px 12px; border-radius: 3px; font-size: 13px; }
.hud button:hover { border-color: var(--gold); color: var(--gold-hi); }
.counter { font-family: var(--display); font-size: 13px; letter-spacing: .1em; color: var(--muted); min-width: 64px; text-align: center; }

.copyright {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 19; padding: 7px 18px;
  font-size: clamp(9px, .75vw, 11px); letter-spacing: .04em; color: rgba(244,239,228,.62); text-align: center;
  background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.4));
  border-top: 1px solid rgba(201,162,74,.2);
}

.notes {
  position: fixed; left: 18px; bottom: 34px; z-index: 21; width: min(460px, calc(100vw - 36px)); max-height: 40vh; overflow: auto;
  background: rgba(7,11,22,.94); border: 1px solid var(--gold); padding: 16px 18px; font-size: 14px; line-height: 1.55; color: var(--paper);
}
.notes b { color: var(--gold); font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; display: block; margin-bottom: 6px; }

.menu { position: fixed; inset: 0; z-index: 30; background: rgba(3,5,11,.94); backdrop-filter: blur(6px); overflow: auto; }
.menu-inner { max-width: 980px; margin: 0 auto; padding: 50px 28px 80px; }
.menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.menu-head button { background: none; border: 1px solid rgba(201,162,74,.4); padding: 6px 12px; }
.menu-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.menu-list button { width: 100%; text-align: left; background: rgba(28,42,77,.45); border: 1px solid rgba(255,255,255,.08); padding: 14px 16px; display: flex; gap: 14px; align-items: baseline; }
.menu-list button:hover { border-color: var(--gold); }
.menu-list .n { font-family: var(--display); color: var(--gold); font-size: 22px; min-width: 34px; }
.menu-list .t { font-size: 14px; line-height: 1.35; }

@media (max-width: 760px) {
  .split, .seq { grid-template-columns: 1fr; flex-direction: column; }
  .seq .arrow { transform: rotate(90deg); }
  .timeline { grid-auto-flow: row; }
  .timeline::before { display: none; }
  .acro { grid-template-columns: repeat(2, 1fr); }
  .slide { justify-content: flex-start; overflow-y: auto; padding-top: 48px; }
  .hud #notesBtn, .hud #fsBtn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slide .r { opacity: 1; transform: none; }
}

@media print {
  html, body { overflow: visible; height: auto; }
  .hud, .progress, .grain, .vignette, .notes, .menu { display: none !important; }
  #deck { position: static; }
  .slide { position: relative; opacity: 1; visibility: visible; transform: none; filter: none; height: 100vh; page-break-after: always; }
  .slide .r { opacity: 1; transform: none; }
  .copyright { position: fixed; }
}

/* =========================================================
   Combined-series additions
   ========================================================= */

/* ---------- Cinematic background image ---------- */
.slide > .bgimg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.slide > .bgimg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); opacity: .0; transition: opacity 1.6s var(--ease); }
.slide.active > .bgimg img { opacity: .62; animation: kenburns 24s ease-out forwards; }
.slide > .bgimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,22,.55) 0%, rgba(7,11,22,.25) 40%, rgba(7,11,22,.92) 100%); }
@keyframes kenburns { from { transform: scale(1.12) translate(1%, 1%); } to { transform: scale(1) translate(0, 0); } }
.t-cover .h-mega, .t-finale .h-mega { text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.t-cover .series { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 28px); color: #e7dcc2; }

/* ---------- Audience grid ---------- */
.aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; margin-top: 34px; }
.aud div { padding: 18px 16px; border: 1px solid rgba(201,162,74,.28); background: rgba(15,26,51,.55); text-align: center; }
.aud i { font-style: normal; font-size: 34px; display: block; margin-bottom: 8px; }
.aud b { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: clamp(14px, 1.2vw, 18px); color: var(--gold-hi); display: block; }
.aud span { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; margin-top: 6px; }

/* ---------- Disclosure & disclaimer ---------- */
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 28px; }
.legal-grid section { border: 1px solid rgba(201,162,74,.3); padding: 18px 20px; background: rgba(7,11,22,.55); }
.legal-grid h4 { font-family: var(--display); letter-spacing: .18em; text-transform: uppercase; font-size: 14px; color: var(--gold); margin-bottom: 10px; }
.legal-grid p, .legal-grid li { color: var(--muted); font-size: clamp(12px, 1vw, 15px); line-height: 1.55; }
.legal-grid ul { list-style: none; }
.legal-grid li { padding-left: 16px; position: relative; margin-bottom: 6px; }
.legal-grid li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: .6em; top: .5em; }
.legal-grid .crisis { border-color: var(--ember); }
.legal-grid .crisis h4 { color: var(--ember); }
.legal-grid strong { color: var(--paper); }

/* ---------- Versus (diagnostic blind spot) ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); margin-top: 36px; }
.versus > div { padding: 24px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); }
.versus .late { border-color: rgba(217,67,47,.55); background: rgba(217,67,47,.07); }
.versus h4 { font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--muted); }
.versus .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.versus .row span { color: var(--muted); font-size: clamp(12px, 1vw, 15px); }
.versus .row b { font-family: var(--display); font-size: clamp(36px, 4.4vw, 70px); line-height: 1; color: var(--paper); }
.versus .late .row b { color: var(--ember); }
.versus-note { margin-top: 22px; }

/* ---------- Embedded original module ---------- */
.t-embed .bar .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.t-embed .frame { position: relative; flex: 1; margin-bottom: 30px; background: #000; }
.t-embed .frame iframe { position: absolute; inset: 0; height: 100%; margin: 0; background: transparent; }
.t-embed .hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; pointer-events: none; }
.t-embed .hint b { font-family: var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-size: 13px; }
.t-embed .hint .spin { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(201,162,74,.2); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Books / Amazon ---------- */
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 14px 26px; border: 1px solid var(--gold); color: var(--ink); background: linear-gradient(100deg, var(--gold), var(--gold-hi)); font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: 14px; text-decoration: none; border-radius: 3px; box-shadow: 0 10px 40px rgba(201,162,74,.25); }
.cta:hover { filter: brightness(1.08); }
.cta.ghost { background: transparent; color: var(--gold-hi); box-shadow: none; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 28px; }
.contact section { border: 1px solid rgba(201,162,74,.3); padding: 16px 18px; background: rgba(7,11,22,.6); }
.contact h4 { font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: var(--gold); margin-bottom: 10px; }
.contact p, .contact a { color: var(--paper); font-size: clamp(13px, 1.05vw, 16px); line-height: 1.6; text-decoration: none; word-break: break-word; }
.contact a { display: block; }
.contact a:hover { color: var(--gold-hi); }
.contact small { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }

/* ---------- Share toast ---------- */
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 40; background: rgba(7,11,22,.95); border: 1px solid var(--gold); color: var(--gold-hi); padding: 10px 18px; font-size: 14px; border-radius: 3px; }

.t-finale .legal a { color: var(--gold-hi); }

@media (max-width: 760px) {
  .versus { grid-template-columns: 1fr; }
  .t-embed .frame { min-height: 70vh; }
  .hud #shareBtn { display: none; }
}
