/* ============================================================
   deck.css — shared presentation system for the two-session talk
   Fixed 1280x720 stage, scaled to fit any screen/projector.
   Themes: [data-theme="dawn"] (Session 1) / [data-theme="dusk"] (Session 2)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Themes ---------------------------------------- */

[data-theme="dawn"] {
  --bg:        #17120c;
  --bg-deep:   #0d0a07;
  --panel:     #221a12;
  --ink:       #f6efe6;
  --ink-dim:   #b6a794;
  --ink-faint: #6d6053;
  --accent:    #f7a831;   /* amber */
  --accent-2:  #ff7a59;   /* ember */
  --accent-3:  #7fd1c1;   /* teal, for the "spiritual" tier */
  --line:      #3a2e22;
  --glow: radial-gradient(120% 90% at 50% 0%, rgba(247,168,49,.20), transparent 60%),
          radial-gradient(90% 70% at 12% 100%, rgba(255,122,89,.14), transparent 60%);
}

[data-theme="dusk"] {
  --bg:        #0c0e1a;
  --bg-deep:   #06070f;
  --panel:     #151830;
  --ink:       #eef0fb;
  --ink-dim:   #a2a7c8;
  --ink-faint: #5d6285;
  --accent:    #9b8cff;   /* violet */
  --accent-2:  #4ccfe6;   /* cyan */
  --accent-3:  #ffd479;   /* warm, for the mantra section */
  --line:      #262b4a;
  --glow: radial-gradient(120% 90% at 50% 0%, rgba(155,140,255,.22), transparent 60%),
          radial-gradient(90% 70% at 88% 100%, rgba(76,207,230,.12), transparent 60%);
}

[data-theme="prima"] {
  --bg:        #0e1512;
  --bg-deep:   #080c0a;
  --panel:     #16211c;
  --ink:       #f2f7f3;
  --ink-dim:   #a9bdb3;
  --ink-faint: #5f7268;
  --accent:    #6fd8b0;   /* mint */
  --accent-2:  #f2b84b;   /* warm gold */
  --accent-3:  #8aa6ff;   /* soft blue, for the questions section */
  --line:      #223129;
  --glow: radial-gradient(120% 90% at 50% 0%, rgba(111,216,176,.20), transparent 60%),
          radial-gradient(90% 70% at 88% 100%, rgba(242,184,75,.12), transparent 60%);
}

/* ---------- Shell ----------------------------------------- */

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#stage {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 1280px;
  height: 720px;
  transform-origin: center center;
  background: var(--bg);
  background-image: var(--glow);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}

.slide {
  position: absolute;
  inset: 0;
  padding: 72px 96px 88px;
  display: none;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
}

.slide.is-active {
  display: flex;
  opacity: 1;
  animation: rise .5s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* stagger children of the active slide (frags handle their own reveal — exclude them) */
.slide.is-active > *:not(.frag) { animation: rise .55s var(--ease) both; }
.slide.is-active > *:nth-child(1) { animation-delay: .02s; }
.slide.is-active > *:nth-child(2) { animation-delay: .09s; }
.slide.is-active > *:nth-child(3) { animation-delay: .16s; }
.slide.is-active > *:nth-child(4) { animation-delay: .23s; }
.slide.is-active > *:nth-child(5) { animation-delay: .30s; }
.slide.is-active > *:nth-child(6) { animation-delay: .37s; }

/* ---------- Typography ------------------------------------ */

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

h1 {
  font-family: var(--serif);
  font-size: 82px;
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 500;
}

h2 {
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 640;
}

h3 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.01em;
  font-weight: 620;
}

p, li { font-size: 26px; line-height: 1.5; color: var(--ink-dim); }
p + p { margin-top: 18px; }
strong { color: var(--ink); font-weight: 650; }
em { color: var(--accent); font-style: italic; }

.lede { font-size: 30px; color: var(--ink-dim); max-width: 24ch; }
.small { font-size: 21px; line-height: 1.5; }

ul { list-style: none; padding: 0; display: grid; gap: 16px; }
ul li { padding-left: 34px; position: relative; }
ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .75;
}
ul.plain li { padding-left: 0; }
ul.plain li::before { display: none; }

/* ---------- Slide layouts --------------------------------- */

/* Cover */
.s-cover { justify-content: flex-end; padding-bottom: 108px; }
.s-cover h1 { font-size: 104px; max-width: 15ch; }
.meta {
  margin-top: 34px;
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 19px;
  color: var(--ink-faint);
  letter-spacing: .04em;
}
.meta b { color: var(--ink-dim); font-weight: 600; }

/* Chapter divider */
.s-chapter { align-items: flex-start; }
.s-chapter .num {
  font-family: var(--serif);
  font-size: 150px;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  opacity: .55;
  margin-bottom: 22px;
}
.s-chapter h2 { font-size: 68px; max-width: 18ch; }
.s-chapter .lede { margin-top: 22px; }

/* One big line */
.s-statement { align-items: flex-start; }
.s-statement .big {
  font-family: var(--serif);
  font-size: 68px;
  line-height: 1.16;
  letter-spacing: -.02em;
  max-width: 19ch;
  color: var(--ink);
}
.s-statement .big .hl { color: var(--accent); }
.s-statement.center { align-items: center; text-align: center; }
.s-statement.center .big { max-width: 22ch; }

/* Asked out loud */
.s-ask .q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 62px;
  line-height: 1.2;
  letter-spacing: -.02em;
  max-width: 20ch;
  color: var(--ink);
}
.s-ask .q::before { content: "“"; color: var(--accent); }
.s-ask .q::after  { content: "”"; color: var(--accent); }
.s-ask .follow {
  margin-top: 34px;
  font-size: 25px;
  color: var(--ink-faint);
  max-width: 40ch;
  border-left: 2px solid var(--line);
  padding-left: 20px;
}

/* Text + photo, side by side */
/* NB: .slide.is-active forces display:flex, so grid layouts need to out-specify it */
.slide.s-split.is-active {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}
.slide.s-split.flip.is-active { grid-template-columns: 420px 1fr; }
/* wider right column — for drawn figures, which need more room than a photo */
.slide.s-split.wide.is-active { grid-template-columns: 1fr 1fr; }
.slide.s-split.wide.flip.is-active { grid-template-columns: 1fr 1fr; }
.s-split.flip > .col { order: 2; }
.s-split.flip > .photo { order: 1; }
.s-split .col > * + * { margin-top: 22px; }

/* Full-bleed photo with overlay text */
.s-photo { padding: 0; justify-content: flex-end; }
.s-photo .photo { position: absolute; inset: 0; border-radius: 0; }
.s-photo .overlay {
  position: relative;
  padding: 96px;
  width: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.55) 45%, transparent 100%);
}
.s-photo .overlay h1 { font-size: 92px; max-width: 14ch; }
.s-photo .overlay h2 { max-width: 20ch; }
.s-photo .overlay p { margin-top: 16px; max-width: 44ch; color: #ddd6cc; }

/* ---------- Photo slots ----------------------------------- */

.photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}
.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.92) contrast(1.03);
}
.photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 22px 16px;
  font-size: 15px;
  color: #e8e2d8;
  background: linear-gradient(0deg, rgba(0,0,0,.8), transparent);
}

/* placeholder shown until a real image is dropped in */
.photo.empty img { display: none; }
.photo.empty {
  border: 1.5px dashed var(--line);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 12px, transparent 12px 24px),
    var(--panel);
}
.photo.empty::after {
  content: "◇ " attr(data-hint);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .01em;
  color: var(--ink-faint);
}
.photo.empty figcaption { display: none; }

/* full-bleed slots: pin the note top-left so it never collides with the overlay */
.s-photo .photo.empty::after {
  inset: 56px auto auto 96px;
  width: 620px;
  display: block;
  padding: 18px 22px;
  text-align: left;
  font-size: 15px;
  border-left: 2px solid var(--accent);
  background: rgba(0, 0, 0, .5);
  color: var(--ink-dim);
}

/* two stacked photos (before/after, then/now) */
.photo-pair { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; height: 520px; }
.photo-pair .photo { aspect-ratio: auto; height: 100%; }

/* ---------- Diagrams -------------------------------------- */

.ladder {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
/* .build stacks bottom-up: DOM order is reveal order, lowest tier first.
   Hidden rungs keep their space, so nothing shifts as they appear. */
.ladder.build {
  display: flex;
  flex-direction: column-reverse;
}

/* ---------- Fragments (progressive reveal) ----------------- */

.frag {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.frag.vis { opacity: 1; transform: none; }
.ladder .rung {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 22px;
  padding: 20px 26px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,255,255,.035), transparent);
  transition: all .4s var(--ease);
}
.ladder .rung .idx {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: .1em;
}
.ladder .rung .name { font-size: 30px; font-weight: 640; color: var(--ink-dim); letter-spacing: -.01em; }
.ladder .rung .note { font-size: 19px; color: var(--ink-faint); margin-top: 3px; }
.ladder .rung.on {
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 16%, transparent), transparent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent), 0 18px 50px rgba(0,0,0,.35);
}
.ladder .rung.on .name { color: var(--ink); }
.ladder .rung.dim { opacity: .38; }

/* chain: money -> security -> ... -> happy */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.chain .node {
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size: 24px;
  color: var(--ink-dim);
}
.chain .node.end {
  border-color: var(--accent);
  color: var(--bg-deep);
  background: var(--accent);
  font-weight: 640;
}
.chain .arrow { color: var(--ink-faint); font-size: 20px; }

/* comparison table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 24px;
}
th, td {
  text-align: left;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  border-bottom-color: color-mix(in oklab, var(--accent) 40%, transparent);
}
td { color: var(--ink-dim); }
th:last-child, td:last-child { color: var(--ink); }
th:last-child { color: var(--accent); }
tr:last-child td { border-bottom: none; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px; }
.stat { padding: 26px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.stat .n { font-family: var(--serif); font-size: 46px; color: var(--accent); line-height: 1; }
.stat p { font-size: 19px; margin-top: 12px; }

/* quote block */
blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 30px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.28;
  color: var(--ink);
  max-width: 26ch;
}
blockquote cite {
  display: block;
  margin-top: 20px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 17px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* the mantra */
.mantra {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.55;
  text-align: center;
  color: var(--ink);
  letter-spacing: .01em;
}
.mantra span { display: block; }
.mantra span:nth-child(odd) { color: var(--accent-3); }

/* pill row */
.pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.pill {
  font-size: 19px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  background: rgba(255,255,255,.02);
}

/* a beat of silence */
.s-silence { align-items: center; justify-content: center; }
.s-silence .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  animation: breathe 4.5s ease-in-out infinite;
}
.s-silence p { margin-top: 44px; font-size: 20px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .5; box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 40%, transparent); }
  50%      { transform: scale(1.6); opacity: 1; box-shadow: 0 0 0 26px transparent; }
}

/* ---------- Sit / stand (either-or) ------------------------ */

.slide.s-either.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  position: relative;
}
.s-either .half {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 64px;
}
.s-either .half.stand { border-left: 1px solid var(--line); }
.s-either .cue {
  font-size: 14px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 24px;
}
.s-either .opt {
  font-family: var(--serif);
  font-size: 58px;
  line-height: 1.12;
  letter-spacing: -.02em;
  max-width: 11ch;
  color: var(--ink-dim);
}
.s-either .half.stand .opt { color: var(--accent); }
.s-either .q-num {
  position: absolute;
  top: 40px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--ink-faint);
}

/* ---------- Audio toggle ------------------------------------ */

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink-dim);
  font: inherit;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
}
.audio-toggle:hover { border-color: var(--accent); color: var(--ink); }
.audio-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); }
.audio-toggle.playing .dot { background: var(--accent); animation: breathe 2.4s ease-in-out infinite; }
.s-cover .audio-toggle { position: absolute; top: 56px; right: 96px; }

/* ---------- Stopwatch ---------------------------------------- */

.stopwatch { display: flex; flex-direction: column; align-items: center; gap: 32px; margin-top: 12px; }
.stopwatch .sw-time {
  font-family: var(--mono);
  font-size: 96px;
  letter-spacing: .02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stopwatch .sw-controls { display: flex; gap: 16px; }
.stopwatch button {
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink-dim);
  font: inherit;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.stopwatch button:hover { border-color: var(--accent); color: var(--ink); }
.stopwatch [data-sw-start].running { border-color: var(--accent); color: var(--accent); }

/* ---------- Twin-figure diagrams (pyramid + arrow, etc.) ----- */

.slide.s-diagram.is-active { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.s-diagram .fig-panel { height: 480px; display: flex; flex-direction: column; justify-content: center; }
.s-diagram .arrow-wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.s-diagram .arrow-wrap .cue { font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Centered full figure (photo/illustration only) --- */

.s-figure { align-items: center; text-align: center; }
.s-figure .photo { width: 680px; max-width: 80%; aspect-ratio: 16 / 10; margin: 8px auto 0; }

/* ---------- Question scramble -> distilled mantra ------------- */

.s-scramble .mantra.frag {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 0 96px;
}

/* ---------- Zeros reveal (slide 14) --------------------------- */

.zeros { text-align: center; }
.zeros .num-line {
  font-family: var(--mono);
  font-size: 96px;
  letter-spacing: .04em;
  color: var(--ink-dim);
}
.zeros .one {
  display: inline-block;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.zeros:has(.meaning-b.vis) .one { opacity: 1; transform: none; }
.zeros .meaning { margin-top: 36px; font-family: var(--serif); font-size: 32px; color: var(--ink-faint); max-width: 30ch; margin-left: auto; margin-right: auto; }

/* ---------- Chrome (outside the stage) -------------------- */

#bar {
  position: fixed;
  left: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  transition: width .45s var(--ease);
  z-index: 20;
}

#hud {
  position: fixed;
  right: 22px; bottom: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  z-index: 20;
  user-select: none;
}
#hud b { color: var(--ink-dim); font-weight: 500; }
#clock.run { color: var(--accent); }

#chapterTag {
  position: fixed;
  left: 22px; bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  z-index: 20;
}

#notes {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-height: 42vh;
  overflow: auto;
  padding: 24px 32px 40px;
  background: rgba(8, 8, 12, .95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transform: translateY(101%);
  transition: transform .35s var(--ease);
  z-index: 30;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-dim);
}
#notes.open { transform: none; }
#notes h4 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
#notes ul { gap: 6px; }
#notes li { font-size: 15px; padding-left: 20px; }
#notes li::before { width: 5px; height: 5px; top: .7em; left: 2px; }
#notes p + p { margin-top: 10px; }

#jump {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 10, .93);
  backdrop-filter: blur(14px);
  z-index: 40;
  display: none;
  padding: 56px 8vw;
  overflow: auto;
}
#jump.open { display: block; }
#jump h4 {
  margin: 0 0 22px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
#jump ol { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 56px; }
#jump li {
  font-size: 15px;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--ink-dim);
  break-inside: avoid;
  display: flex;
  gap: 14px;
}
#jump li span { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); min-width: 26px; }
#jump li:hover { background: rgba(255,255,255,.07); color: var(--ink); }
#jump li.here { color: var(--accent); }
#jump li.chap { margin-top: 14px; font-weight: 640; color: var(--ink); }

/* ---------- Handout printing ------------------------------ */

@media print {
  html, body { overflow: visible; height: auto; background: #fff; }
  #bar, #hud, #notes, #jump, #chapterTag { display: none !important; }
  #stage {
    position: static;
    transform: none !important;
    width: 100%;
    height: auto;
    box-shadow: none;
  }
  .slide {
    position: static;
    display: flex !important;
    opacity: 1 !important;
    animation: none !important;
    height: 100vh;
    page-break-after: always;
    break-after: page;
  }
  .slide > * { animation: none !important; }
  .frag { opacity: 1 !important; transform: none !important; }
  .s-scramble .mantra.frag { position: static; background: none; margin-top: 32px; }
  .zeros .one { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Theme: mask — Manual of Life, Day 3 (light bg / dark ink)
   ============================================================ */

[data-theme="mask"] {
  --bg:        #f6f1e6;
  --bg-deep:   #ece2cb;
  --panel:     #fffdf8;
  --ink:       #211b12;
  --ink-dim:   #5a5240;
  --ink-faint: #948a70;
  --accent:    #b1502b;   /* terracotta */
  --accent-2:  #4a4a78;   /* indigo, consciousness/soul */
  --accent-3:  #7c8f5a;   /* sage */
  --line:      #e2d7bd;
  --glow: radial-gradient(120% 90% at 50% 0%, rgba(177,80,43,.09), transparent 60%),
          radial-gradient(90% 70% at 90% 100%, rgba(74,74,120,.08), transparent 60%);
}
[data-theme="mask"] #stage { box-shadow: 0 40px 120px rgba(33,27,18,.16); }
[data-theme="mask"] .photo { box-shadow: 0 24px 60px -22px rgba(33,27,18,.22); background: var(--panel); }
[data-theme="mask"] .photo.empty {
  background: repeating-linear-gradient(45deg, rgba(33,27,18,.028) 0 12px, transparent 12px 24px), var(--panel);
}
[data-theme="mask"] .card,
[data-theme="mask"] .video-slot { box-shadow: 0 18px 50px -26px rgba(33,27,18,.28); }

/* a single slide flipped dark — spotlight moments inside a light deck */
.s-invert {
  --bg: #17120a;
  --bg-deep: #100c06;
  --panel: #221a10;
  --ink: #f8f2e3;
  --ink-dim: #cabfa4;
  --ink-faint: #857a60;
  --line: #372c1c;
  background: var(--bg);
}

/* ---------- extra fig strokes/fills (second + third accent) ---------- */
.fig .ln2   { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fig .ln3   { fill: none; stroke: var(--accent-3); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fig .wash2 { fill: var(--accent-2); opacity: .15; }
.fig .sld2  { fill: var(--accent-2); }

/* ---------- visual-first reveal slide: icon/photo, then statement ---------- */
.s-reveal { align-items: center; text-align: center; }
.s-reveal .visual { width: 100%; display: flex; justify-content: center; align-items: center; gap: 48px; margin-bottom: 6px; }
.s-reveal .visual svg { width: 300px; height: auto; }
.s-reveal .visual svg.xl { width: 420px; }
.s-reveal .visual svg.sm { width: 190px; }
.s-reveal .visual .photo { width: 380px; }
.s-reveal h2 { margin-top: 10px; max-width: 20ch; }
.s-reveal .big { margin-top: 10px; }
.s-reveal .eyebrow { justify-content: center; margin-bottom: 14px; }
.s-reveal .eyebrow::after { display: none; }
.s-reveal .lede { margin: 14px auto 0; text-align: center; }

/* ---------- visual + list, items reveal one at a time ---------- */
.s-list-reveal .visual { width: 190px; margin: 0 0 6px; }
.s-list-reveal .visual svg { width: 100%; height: auto; }
.s-list-reveal .tags { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; max-width: 700px; }
.s-list-reveal .tags .tag {
  font-size: 23px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-dim);
}
.s-list-reveal .tags .tag.frag.vis { border-color: var(--accent); color: var(--ink); }

/* ---------- research / citation card — never a fabricated document ---------- */
.card {
  display: inline-block; text-align: left;
  border: 1px solid var(--line); border-radius: 18px; background: var(--panel);
  padding: 32px 40px; max-width: 560px;
}
.card .k { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.card .name { font-family: var(--serif); font-size: 32px; color: var(--ink); }
.card .sub { margin-top: 10px; font-size: 19px; line-height: 1.5; color: var(--ink-faint); max-width: 34ch; }

/* ---------- video placeholder — never invented content ---------- */
.video-slot {
  width: 760px; max-width: 92%; aspect-ratio: 16/9; border-radius: 20px;
  border: 1.5px dashed var(--line); background: var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  margin: 0 auto;
}
.video-slot .play {
  width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.video-slot .play::after {
  content: ""; border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--accent); margin-left: 4px;
}
.video-slot .label { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; color: var(--ink-faint); }
.video-slot { position: relative; border-style: solid; padding: 0; overflow: hidden; }
.video-slot video { width: 100%; height: 100%; display: block; border-radius: 20px; background: #000; }
.video-slot .ph {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--panel);
}
.video-slot.empty { border-style: dashed; }
.video-slot.empty video { display: none; }
.video-slot.empty .ph { display: flex; }

/* ---------- three concentric tiers: gross body / subtle body / self ---------- */
.tiers { display: flex; align-items: center; gap: 60px; }
.tiers .rings { position: relative; width: 360px; height: 360px; flex: none; }
.tiers .ring-lyr {
  position: absolute; border-radius: 50%; border: 1.5px solid var(--line);
  display: flex; align-items: flex-start; justify-content: center; text-align: center;
}
.tiers .r1 { inset: 0; }
.tiers .r2 { inset: 62px; border-color: color-mix(in oklab, var(--accent-2) 50%, var(--line)); }
.tiers .r3 {
  inset: 132px; border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, var(--panel));
  align-items: center;
}
.tiers .ring-lyr .lbl { margin-top: 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.tiers .r3 .lbl { margin-top: 0; color: var(--accent); font-weight: 650; }
.tiers .legend { text-align: left; }
.tiers .legend .grp { margin-bottom: 24px; }
.tiers .legend .grp h4 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.tiers .legend .grp .items { font-family: var(--serif); font-size: 23px; color: var(--ink-dim); line-height: 1.5; }
.tiers .legend .grp.self .items { color: var(--accent); }

/* ---------- two-up compare (bicycle/friend, car/person, worth table) ---------- */
.compare { display: flex; align-items: stretch; gap: 32px; width: 100%; justify-content: center; }
.compare .item {
  flex: 1; max-width: 300px; padding: 30px 24px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--panel); text-align: center;
}
.compare .item svg { width: 130px; height: auto; margin: 0 auto 18px; }
.compare .item .lbl { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.compare .item .val { margin-top: 10px; font-family: var(--serif); font-size: 26px; color: var(--ink); }
.compare .item.hi { border-color: var(--accent); }
.compare .item.hi .val { color: var(--accent); }

/* ---------- big number ---------- */
.bignum {
  font-family: var(--serif); font-size: 220px; line-height: 1; letter-spacing: -.02em; color: var(--accent);
}
.s-invert .bignum { color: #ffb083; }
