/* ==========================================================================
   Deck Style Guide: F39
   The F39 Brand Guide (web/styleguide.html, tokens in web/css/f39.css) applied
   to the deck vocabulary. Same slides as every other style; only the look changes.

   What each slide role looks like here:
     Base slide      Scroll paper, Ink type (Outfit display, Inter text)
     Picture slides  Ink, with an Ink fade from the text side
     Today's Filter  .slide.invert floods Tekhelet, the blue thread "to remember" (Num 15:39)
     The Big Idea    .slide.invert.bigidea floods Cedar, with the five-section bar on top
     Your turn       solid Gold fill + Ink text (.card.callout, .callout-chip, .callout-mark)
     Tension         Clay, sparingly (the brand's "don't" color)
     Scripture       Newsreader italic

   Built on tokens, so a future partner style can be this file with their own
   colors, fonts and logo in :root. Contrast is WCAG AA in every context below.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400;1,6..72,500&display=swap");

:root {
  /* Brand palette (same values as web/css/f39.css) */
  --ink: #161514;
  --scroll: #F7F3EC;
  --linen: #EBE4D6;
  --stone: #6A645B;
  --gold: #BA9554;
  --gold-deep: #8A6A33;
  --gold-light: #F0D9A8;
  --cedar: #1E3B34;
  --tekhelet: #2A5B8C;
  --clay: #B24A26;
  --law: #BA9554; --history: #B24A26; --poetry: #6E8F79; --major: #2D5A4F; --minor: #5E4670;
  --bar39: linear-gradient(90deg, var(--law) 0 12.82%, var(--history) 12.82% 43.59%, var(--poetry) 43.59% 56.41%, var(--major) 56.41% 69.23%, var(--minor) 69.23% 100%);
  --logo: url("/assets/logo/f39-mark.svg");

  /* Roles on a light (Scroll) slide */
  --bg: var(--scroll);
  --surface: #FFFFFF;
  --surface-2: var(--linen);
  --line: rgba(22, 21, 20, .14);
  --text: var(--ink);
  --soft: #3D3A35;
  --muted: var(--stone);
  --accent: var(--tekhelet);
  --tension: var(--clay);
  --kicker: var(--gold-deep);
  --rule: var(--gold);
  --callout: var(--gold);
  --callout-ink: var(--ink);

  /* Names the deck content uses in inline styles (from the Bold system), mapped to F39 */
  --ink-950: var(--ink); --ink-900: #1F1E1C; --ink-800: #2A2826; --ink-700: rgba(22, 21, 20, .2); --ink-500: var(--stone);
  --bone-50: var(--scroll); --bone-200: #E4DED3; --bone-400: #B8B1A4;

  /* Type */
  --font-display: "Outfit", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  /* Scale, in stage pixels (1920x1080). Outfit is wider than a condensed face, so titles run smaller than Bold. */
  --t-mega: 200px;
  --t-xl: 128px;
  --t-l: 92px;
  --t-m: 62px;
  --t-body: 44px;
  --t-s: 32px;
  --t-kicker: 24px;

  --pad: 128px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Dark contexts: picture slides, trailers, image tiles ---------------- */
.slide.has-bg:not(.invert), .slide.trailer, .slide.duo-slide, .tile, .text-panel {
  --bg: var(--ink);
  --surface: #22201E;
  --surface-2: #2C2A27;
  --line: rgba(247, 243, 236, .16);
  --text: var(--scroll);
  --soft: #E4DED3;
  --muted: #B8B1A4;
  --accent: #8DB6E2;
  --tension: #E58A63;
  --kicker: var(--gold);
  --ink-700: rgba(247, 243, 236, .18);
  --logo: url("/assets/logo/f39-mark-reversed.svg");
}

/* ---- Stage --------------------------------------------------------------- */
html, body { background: var(--ink); font-family: var(--font-sans); }
.stage { background: var(--scroll); color: var(--ink); }
/* The stage matches the slide's tone, so the chrome (logo, series, counter) always sits on the
   right color, for screen readers' contrast checks as well as during slide changes. */
body:is(.has-image, .is-trailer) .stage { background: var(--ink); }
body.is-invert .stage { background: var(--tekhelet); }
body.is-bigidea .stage { background: var(--cedar); }
.slide {
  padding: var(--pad);
  gap: 40px;
  background: var(--bg);
  color: var(--text);
}
.slide.center { align-items: center; text-align: center; }

/* ---- Type ---------------------------------------------------------------- */
/* Kicker: the site's eyebrow (wide-tracked caps after a short Gold bar) */
.kicker {
  display: flex; align-items: center; gap: 22px;
  font-family: var(--font-display); font-size: var(--t-kicker); font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--kicker);
}
.kicker::before { content: ""; flex: none; width: 56px; height: 5px; background: var(--rule); }
.slide.center .kicker { justify-content: center; }
.slide.flip .kicker { justify-content: flex-end; }
.display {
  font-family: var(--font-display);
  font-size: var(--t-xl); font-weight: 900;
  text-transform: uppercase; line-height: .9; letter-spacing: -.035em;
  text-wrap: balance;
}
.display.mega { font-size: var(--t-mega); }
.statement {
  font-family: var(--font-display);
  font-size: var(--t-l); font-weight: 800;
  line-height: 1.04; letter-spacing: -.025em;
  max-width: 1560px; text-wrap: balance;
}
.statement.m { font-size: var(--t-m); line-height: 1.12; }
.lede { font-size: var(--t-body); line-height: 1.38; color: var(--soft); max-width: 1400px; }
.small { font-size: var(--t-s); color: var(--muted); }
.accent { color: var(--accent); }
.tension { color: var(--tension); }
.muted { color: var(--muted); }
.hl { background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 88% / 100% .14em; padding-bottom: .02em; }

/* Scripture: the only serif. The Word stands apart. */
.scripture {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: var(--t-m); line-height: 1.28; max-width: 1500px; color: var(--text);
}
.scripture.l { font-size: 88px; line-height: 1.18; }
.ref {
  font-family: var(--font-display); font-size: var(--t-kicker); font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}

/* ---- Layout blocks ------------------------------------------------------- */
.row { display: flex; gap: 48px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

/* Cards: the site's resource card, a white block with a Gold top edge */
.card {
  background: var(--surface);
  border: 1px solid var(--line); border-top: 8px solid var(--gold);
  border-radius: var(--radius);
  padding: 48px 52px;
  display: flex; flex-direction: column; gap: 20px;
}
.card h3 { font-family: var(--font-display); font-size: 48px; font-weight: 800; line-height: 1.06; letter-spacing: -.015em; }
.card p { font-size: var(--t-s); line-height: 1.38; color: var(--soft); }
.card .small { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.card .scripture { font-size: 44px; }
.card.is-accent { border-top-color: var(--accent); }
.card.is-tension { border-top-color: var(--tension); }
.card p.tension { color: var(--tension); }
.card p.accent { color: var(--accent); }
.card.wide { margin-top: 36px; flex-direction: row; align-items: center; gap: 56px; }
.card.wide h3 { font-size: 92px; white-space: nowrap; }
.card.wide p { font-size: 38px; }
.card.wide > div:first-child { flex: 0 0 auto; }
.card.wide .kicker { white-space: nowrap; }
.card h3.q { font-size: 36px; line-height: 1.22; }
.card.is-blur h3, .card.is-blur p:not(.ref) { filter: blur(12px); user-select: none; }

.section-no { font-family: var(--font-display); font-size: 280px; font-weight: 900; line-height: .8; color: var(--kicker); }   /* Gold-deep on Scroll: Gold text fails there */

/* Trailer: pure Ink, one line */
.slide.trailer { align-items: center; text-align: center; }
.slide.trailer .display { font-size: 140px; max-width: 1600px; line-height: .98; }

/* Mirror table: before / after */
.mirror { display: grid; grid-template-columns: 260px 1fr 70px 1fr; row-gap: 14px; column-gap: 24px; align-items: center; }
.mirror .m-label { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.mirror .m-cell { font-size: 34px; line-height: 1.22; padding: 20px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.mirror .m-cell small { display: block; font-size: 21px; color: var(--muted); margin-top: 4px; letter-spacing: .06em; }
.mirror .m-before { border-left: 6px solid var(--tension); }
.mirror .m-after { border-left: 6px solid var(--accent); }
.mirror .m-arrow { font-size: 44px; color: var(--muted); text-align: center; }
.mirror .m-head { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-left: 28px; }
.mirror .row-wrap { display: contents; }
.mirror .step { transform: translateX(-12px); }
.mirror .step.is-shown { transform: none; }
.m-empty {
  font-size: 34px; padding: 20px 28px; border-radius: var(--radius);
  border: 2px dashed var(--accent); color: var(--accent); text-align: center; font-weight: 800;
  animation: f39-pulse 2.4s ease-in-out infinite;
}
.m-empty small { display: block; margin-top: 4px; font-size: 21px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
@keyframes f39-pulse { 50% { opacity: .35; } }
.m-swap { position: relative; display: grid; }
.m-swap > * { grid-area: 1 / 1; }
.m-cell.m-answer { border: 2px solid var(--accent); border-left-width: 6px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.m-swap .m-empty:has(~ .m-answer.is-shown) { animation: none; visibility: hidden; }
.mirror.how .m-after small { color: var(--accent); font-size: 23px; letter-spacing: .04em; }
.mirror .m-cell.m-callout { background: var(--callout); border-color: var(--callout); border-left-color: var(--ink); color: var(--callout-ink); }
.mirror .m-cell.m-callout small { color: var(--callout-ink); }

/* Numbered takeaways */
.takeaways { display: flex; flex-direction: column; gap: 32px; }
.takeaway { display: flex; align-items: baseline; gap: 40px; font-family: var(--font-display); font-size: 76px; font-weight: 800; letter-spacing: -.02em; }
.takeaway b { font-weight: 900; color: var(--accent); min-width: 80px; }
.tk-list { display: flex; flex-direction: column; gap: 28px; }
.tk-list > div { display: flex; gap: 40px; align-items: baseline; font-family: var(--font-display); font-size: 70px; font-weight: 900; letter-spacing: -.03em; line-height: 1.02; }
.tk-list > div b { font-size: 32px; font-weight: 800; letter-spacing: .14em; color: var(--accent); min-width: 70px; }

/* Talking points: bold lines led by the F39 arrow */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 88px; align-items: center; }
.split .display { font-size: 96px; }
.split .display.passage { font-size: 104px; margin: 28px 0; padding-left: 36px; border-left: 10px solid var(--gold); line-height: .92; }
.split .display.passage + .lede .accent { display: block; }
.points { list-style: none; display: flex; flex-direction: column; gap: 32px; }
.points > li {
  font-family: var(--font-display); font-size: 58px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em;
  padding-left: 56px; position: relative;
}
.points > li::before {
  content: ""; position: absolute; left: 0; top: .22em;
  width: 24px; height: 30px; background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.points > li.is-tension::before { background: var(--tension); }
.points > li.is-accent::before { background: var(--gold); }
.points > li small {
  display: block; margin-top: 10px;
  font-family: var(--font-sans); font-size: 24px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.points.s > li { font-size: 48px; }
.points.focus > .step.is-shown:has(~ .step.is-shown) { opacity: .32; }

/* Word chain: Hiding → Warned → Claiming */
.chain { display: flex; align-items: baseline; gap: 36px; flex-wrap: wrap; }
.chain .link { display: flex; flex-direction: column; gap: 12px; }
.chain .link b { font-family: var(--font-display); font-size: 104px; font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.03em; }
.chain .arrow { font-size: 72px; color: var(--muted); }

/* ---- Pictures ------------------------------------------------------------ */
.bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(22,21,20,.94) 0%, rgba(22,21,20,.72) 42%, rgba(22,21,20,.12) 100%),
    var(--img, none);
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transform-origin: var(--focus, 60% 40%);
}
.bg.center { background-image: radial-gradient(ellipse at center, rgba(22,21,20,.35) 0%, rgba(22,21,20,.88) 85%), var(--img, none); }
.bg.right { background-image: linear-gradient(270deg, rgba(22,21,20,.94) 0%, rgba(22,21,20,.72) 42%, rgba(22,21,20,.12) 100%), var(--img, none); }
.bg.tri { background-image: linear-gradient(180deg, rgba(22,21,20,.8) 0%, transparent 22%, transparent 48%, rgba(22,21,20,.96) 88%), var(--img, none); }
.bg.swap { opacity: 0; transition: opacity 1.2s var(--ease); }
.slide:has(.step.is-shown) > .bg.swap { opacity: 1; }
.slide.passage-bg > .bg.reveal { opacity: 0; transition: opacity 1s var(--ease); }
.slide.passage-bg:has(.step.is-shown) > .bg.reveal { opacity: 1; }
.slide.passage-bg:has(.step.is-shown) > .bg.swap { transition-delay: 1.8s; }
.slide.passage-bg .points.step.is-shown { transition-delay: 2.4s; }
.no-motion .slide.passage-bg:has(.step.is-shown) > .bg.swap, .no-motion .slide.passage-bg .points.step.is-shown { transition-delay: 0s; }
/* Series art is black-and-white manga: keep it that way. .tint keeps one picture's color. */
[data-series] .bg, [data-series] .duo-panel::before, [data-series] .tile::before { filter: grayscale(1) contrast(1.06); }
[data-series] .bg.tint { filter: contrast(1.06); }
.bg.blur::after {
  content: ""; position: absolute; inset: 0;
  -webkit-backdrop-filter: blur(var(--bg-blur, 5px)); backdrop-filter: blur(var(--bg-blur, 5px));
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 20%, transparent 70%); mask-image: linear-gradient(90deg, #000 0%, #000 20%, transparent 70%);
}
.slide.flip { align-items: flex-end; text-align: right; }
.bg.right.blur::after {
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 20%, transparent 70%); mask-image: linear-gradient(270deg, #000 0%, #000 20%, transparent 70%);
}

/* Motion: calmer than Bold. A slow drift on the active picture; no film grain. */
.slide.is-active .bg { animation: f39-drift var(--drift-time, 48s) ease-in-out infinite alternate; }
@keyframes f39-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.1) translate3d(-1%, -.6%, 0); }
}
.bg.still, .slide.is-active .bg.still { animation: none; transform: scale(1.04); }
.bg.push-in { transform-origin: var(--zoom-at, var(--focus, 60% 40%)); }
.slide.is-active .bg.push-in { animation: f39-push-in var(--push-time, 12s) cubic-bezier(.25, .1, .25, 1) forwards; }
@keyframes f39-push-in { from { transform: scale(1.03); } to { transform: scale(1.16); } }
.no-motion .bg { transform: scale(1.04); }

@keyframes f39-recede {
  from { filter: grayscale(1) contrast(1.06) blur(0) brightness(1); }
  to   { filter: grayscale(1) contrast(1.06) blur(var(--recede-blur, 8px)) brightness(var(--recede-dim, .3)); }
}
.slide.is-active .bg.recede {
  animation: f39-drift var(--drift-time, 48s) ease-in-out infinite alternate,
             f39-recede var(--recede-time, 1.6s) var(--recede-delay, .35s) ease-in-out both;
}
.bg.receded { filter: grayscale(1) contrast(1.06) blur(var(--recede-blur, 8px)) brightness(var(--recede-dim, .3)); }
.no-motion .slide.is-active .bg.recede { animation: none; filter: grayscale(1) contrast(1.06) blur(var(--recede-blur, 8px)) brightness(var(--recede-dim, .3)); }

/* Effect layers, softened */
.fx.ash::before, .fx.ash::after { content: ""; position: absolute; left: -10%; right: -10%; top: 0; height: 200%; background-repeat: repeat; }
.fx.ash::before {
  background-image:
    radial-gradient(circle at 33.1% 16.5%, rgba(247,243,236,.4) 0 2.2px, transparent 4px),
    radial-gradient(circle at 53.4% 37.1%, rgba(247,243,236,.5) 0 1.6px, transparent 3px),
    radial-gradient(circle at 5.6% 43.6%, rgba(247,243,236,.4) 0 1.6px, transparent 3px),
    radial-gradient(circle at 42.8% 81.4%, rgba(247,243,236,.45) 0 1.8px, transparent 3.2px),
    radial-gradient(circle at 62.2% 93%, rgba(247,243,236,.5) 0 2.2px, transparent 4px),
    radial-gradient(circle at 95.7% 6.5%, rgba(247,243,236,.45) 0 2.4px, transparent 4.4px),
    radial-gradient(circle at 15.8% 13.3%, rgba(247,243,236,.55) 0 2px, transparent 3.6px),
    radial-gradient(circle at 67.3% 43%, rgba(247,243,236,.5) 0 2px, transparent 3.6px),
    radial-gradient(circle at 86% 32.1%, rgba(247,243,236,.5) 0 2.4px, transparent 4.4px),
    radial-gradient(circle at 47.5% 65.8%, rgba(247,243,236,.55) 0 1.7px, transparent 3px);
  background-size: 1130px 1270px;
}
.fx.ash::after {
  background-image:
    radial-gradient(circle at 64.1% 97.3%, rgba(247,243,236,.22) 0 6px, transparent 10.7px),
    radial-gradient(circle at 18.1% 13.2%, rgba(247,243,236,.3) 0 3.7px, transparent 6.6px),
    radial-gradient(circle at 9.7% 45.1%, rgba(247,243,236,.3) 0 5px, transparent 9px),
    radial-gradient(circle at 80.7% 84.9%, rgba(247,243,236,.25) 0 4.3px, transparent 7.8px);
  background-size: 1730px 1490px; filter: blur(1.5px);
}
.slide.is-active .fx.ash::before { animation: f39-rise 44s linear infinite; }
.slide.is-active .fx.ash::after { animation: f39-rise 30s linear infinite; }
@keyframes f39-rise { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-4%, -50%, 0); } }
.fx.ash.ambient { z-index: 5; opacity: .35; transition: opacity .8s ease; }
.fx.ash.ambient::before { animation: f39-rise 44s linear infinite; }
.fx.ash.ambient::after { animation: f39-rise 30s linear infinite; }
body.has-image .fx.ash.ambient { opacity: .8; }
body:not(.has-image) .fx.ash.ambient, body.is-invert .fx.ash.ambient { opacity: 0; }
.fx.sweep::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 30%; left: -40%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.08) 45%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.08) 55%, transparent 100%);
  mix-blend-mode: soft-light; transform: skewX(-12deg);
}
.slide.is-active .fx.sweep::before { animation: f39-sweep 13s ease-in-out infinite; }
@keyframes f39-sweep { 0%, 45% { left: -40%; } 85%, 100% { left: 120%; } }
.fx.flicker { background: #000; opacity: 0; }
.slide.is-active .fx.flicker { animation: f39-flicker 8s steps(1) infinite; }
@keyframes f39-flicker { 0% { opacity: 0; } 12% { opacity: .07; } 14% { opacity: 0; } 50% { opacity: .1; } 53% { opacity: 0; } 81% { opacity: .05; } 83% { opacity: 0; } }

/* ---- Today's Filter: the slide floods Tekhelet --------------------------- */
.slide.invert {
  --bg: var(--tekhelet);
  --surface: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .3);
  --text: #FFFFFF;
  --soft: #E6EEF7;
  --muted: #C9D9EA;
  --accent: var(--gold-light);
  --tension: #FFC9B3;
  --kicker: var(--gold-light);
  --rule: var(--gold-light);
  --logo: url("/assets/logo/f39-mark-reversed.svg");
}
.slide.invert .statement { font-size: 112px; font-weight: 900; letter-spacing: -.035em; line-height: .98; }
.slide.invert .lede { font-weight: 500; }
.tk-tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 20px;
  background: #FFFFFF; color: var(--tekhelet);
  padding: 16px 28px; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  letter-spacing: .24em; text-transform: uppercase;
}
.tk-tag::before { content: ""; width: 18px; height: 22px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.tk-tag b { color: var(--gold-deep); letter-spacing: .1em; }
.slide.center .tk-tag { align-self: center; }
.tk-corner {
  position: absolute; right: var(--pad); top: 84px;
  font-family: var(--font-display); font-size: 21px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  border: 2px solid currentColor; border-radius: 999px; padding: 10px 22px;
}
.slide.invert .card { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); border-top-color: var(--gold-light); }
.slide.invert .card.is-accent { border-top-color: #FFFFFF; }
.slide.invert .mirror .m-cell { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.slide.invert .mirror .m-head, .slide.invert .mirror .m-label { color: #FFFFFF; font-weight: 800; }
.slide.invert .mirror .m-before { background: transparent; border-left: 8px solid var(--tension); color: var(--soft); }
.slide.invert .mirror .m-after { background: #FFFFFF; border: 2px solid #FFFFFF; border-left: 8px solid var(--gold); color: var(--ink); font-weight: 700; }
.slide.invert .mirror .m-after small { color: var(--tekhelet); }
.slide.invert .mirror .m-arrow { color: #FFFFFF; font-weight: 900; }
.slide.invert .card.callout, .slide.invert .mirror .m-cell.m-callout { background: var(--callout); border-color: var(--callout); }
.filter-q { font-family: var(--font-display); font-size: 58px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }

/* ---- The Big Idea: the slide floods Cedar -------------------------------- */
.slide.invert.bigidea {
  --bg: var(--cedar);
  --text: var(--scroll);
  --soft: #E4DED3;
  --muted: #B8B1A4;
  --accent: var(--gold);
  --kicker: var(--gold);
  --rule: var(--gold);
}
.slide.bigidea::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: var(--bar39); }
.slide.invert.bigidea .statement { max-width: none; }
.slide.invert.bigidea .statement.accent { color: var(--gold); }
.slide.bigidea .tk-tag { background: var(--gold); color: var(--ink); }

/* ---- Your turn: solid Gold, Ink text. Nothing else uses a Gold fill. ----- */
.card.callout { background: var(--callout); border-color: var(--callout); }
.card.callout h3, .card.callout p, .card.callout p.tension, .card.callout .small { color: var(--callout-ink); }
.card.callout .small { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.card.callout .small::before { content: ""; width: 16px; height: 20px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.callout-chip {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--callout); color: var(--callout-ink);
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-display); font-size: 23px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
}
.kicker-row { display: flex; justify-content: space-between; align-items: center; }
.callout-mark {
  background: var(--callout); color: var(--callout-ink);
  padding: 0 .12em; border-radius: .06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---- The Witness: a faint figure behind the text -------------------------
   The art is a light figure on black. On dark slides the screen blend drops the black;
   on Scroll the figure is inverted and multiplied, so it reads as a faint Ink drawing. */
.slide.has-figure { isolation: isolate; }
.figure-ghost {
  position: absolute; top: 0; bottom: 0; right: var(--fig-right, 4%); width: var(--fig-w, 46%);
  z-index: -1; pointer-events: none;
  background: var(--img) right bottom / contain no-repeat;
  mix-blend-mode: multiply; filter: invert(1) grayscale(1) contrast(1.4); opacity: 0;
}
/* contrast() crushes the art's near-black background to true black, so screen leaves no box on Tekhelet */
.slide.has-bg .figure-ghost, .slide.trailer .figure-ghost, .slide.invert .figure-ghost { mix-blend-mode: screen; filter: contrast(1.5); }
/* .ink art is dark on white: multiply drops the white in every context */
.slide .figure-ghost.ink, .slide.invert .figure-ghost.ink, .slide.has-bg .figure-ghost.ink { mix-blend-mode: multiply; filter: contrast(1.3); --fig-opacity: .14; }
.slide.is-active .figure-ghost { animation: f39-figure-in 2.4s ease .5s forwards; }
@keyframes f39-figure-in { to { opacity: var(--fig-opacity, .2); } }
.figure-ghost.still, .slide.is-active .figure-ghost.still { animation: none; opacity: var(--fig-opacity, .2); }

.text-panel {
  position: relative; z-index: 2; align-self: flex-start; max-width: 1180px;
  padding: 48px 56px; border-radius: var(--radius);
  background: rgba(22, 21, 20, .86); border: 1px solid var(--line); border-top: 8px solid var(--gold);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 28px; color: var(--text);
}

.aside-line { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--kicker) !important; margin-top: 14px; }
.card .aside-line { font-size: 42px; }

.quote-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 150px; margin: 0; }
.quote-foot blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 44px; line-height: 1.22; color: var(--soft); max-width: 1400px; }
.quote-foot figcaption { margin-top: 14px; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.quote-foot cite { font-style: normal; }

/* Bullet: a tracer goes through one word once and leaves a cut */
.bullet { position: relative; display: inline-block; }
.bullet::before, .bullet::after { content: ""; position: absolute; top: 56%; pointer-events: none; }
.bullet::before { left: 0; width: 0; height: 4px; margin-top: 1px; background: var(--bg); }
.bullet::after {
  left: -70%; width: 70%; height: 5px; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--accent) 20%, transparent) 40%, var(--accent) 100%);
}
.slide.is-active .is-shown .bullet::after { animation: f39-bullet-fly .7s linear .5s 1 both; }
.slide.is-active .is-shown .bullet::before { animation: f39-bullet-scar .7s linear .5s 1 both; }
@keyframes f39-bullet-fly { 0% { left: -70%; opacity: 0; } 6% { opacity: 1; } 90% { opacity: 1; } 100% { left: 140%; opacity: 0; } }
@keyframes f39-bullet-scar { 0% { width: 0; } 47.6% { width: 100%; } 100% { width: 100%; } }
.no-motion .slide.is-active .is-shown .bullet::after { animation: none; }
.no-motion .slide.is-active .is-shown .bullet::before { animation: none; width: 100%; }

/* Duo: two pictures facing each other, text in the middle */
.duo-panel { position: absolute; top: 0; bottom: 0; width: var(--duo-w, 38%); overflow: hidden; z-index: 0; }
.duo-panel.l { left: 0; }
.duo-panel.r { right: 0; }
.duo-panel::before { content: ""; position: absolute; inset: 0; background-image: var(--img, none); background-size: cover; background-position: var(--pos, 50%) 50%; }
.duo-panel.flip::before { transform: scaleX(-1); }
.duo-panel::after { content: ""; position: absolute; inset: 0; }
.duo-panel.l::after { background: linear-gradient(90deg, rgba(22,21,20,.25) 0%, rgba(22,21,20,.55) 65%, var(--bg) 100%); }
.duo-panel.r::after { background: linear-gradient(270deg, rgba(22,21,20,.25) 0%, rgba(22,21,20,.55) 65%, var(--bg) 100%); }
.slide.duo-slide > :not(.duo-panel):not(.notes) { position: relative; z-index: 1; max-width: 560px; }
.slide.duo-slide.wide-mid > :not(.duo-panel):not(.notes) { max-width: 760px; }
.duo-line { font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.duo-line small { display: block; margin-top: 8px; font-family: var(--font-sans); font-size: 23px; font-weight: 600; letter-spacing: .16em; color: var(--muted); }
.duo-big { font-family: var(--font-display); font-size: 76px; font-weight: 800; line-height: 1.04; letter-spacing: -.025em; }
.duo-cap {
  position: absolute; left: 0; right: 0; bottom: 120px; z-index: 1; text-align: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--scroll);
}
.duo-cap span { display: block; margin-top: 6px; font-size: 48px; letter-spacing: .02em; font-weight: 900; }

/* Triptych: a three-panel picture with one word under each panel */
.slide.arc3 { justify-content: space-between; padding: 92px 0 120px; }
.slide.arc3 > .kicker { padding: 0 var(--pad); }
.arc3-row { display: grid; grid-template-columns: var(--cols, 1fr 1fr 1fr); }
.arc3-row > div { padding: 0 40px 0 56px; display: flex; flex-direction: column; gap: 10px; }
.arc3-row b { font-family: var(--font-display); font-size: 96px; font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.03em; }
.arc3-row span { font-size: 28px; line-height: 1.3; color: var(--soft); }

/* Trait cards: six compact cards, 3x2 */
.grid-3.traits { gap: 24px; }
.card.trait { padding: 32px 38px; gap: 10px; border-top-width: 6px; }
.card.trait h3 { font-size: 42px; }
.card.trait p { font-size: 27px; }
.grid-3.traits.two-r .card.trait p { font-size: 36px; font-weight: 700; line-height: 1.2; }

/* Table discussion */
.roles { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: -8px 0 44px; font-size: 26px; color: var(--muted); }
.roles span { white-space: nowrap; }
.roles b { color: var(--text); font-weight: 800; margin-right: 8px; }
.qlist { list-style: none; counter-reset: q; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 72px; }
.qlist li { counter-increment: q; display: flex; gap: 24px; font-size: 37px; font-weight: 600; line-height: 1.26; letter-spacing: -.01em; }
.qlist li::before { content: counter(q, decimal-leading-zero); font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: .1em; color: var(--kicker); min-width: 52px; padding-top: .2em; }

/* Tiles: a 3x2 grid of picture tiles with a caption */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 340px; gap: 22px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 30px 34px;
}
.tile::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(22,21,20,.05) 15%, rgba(22,21,20,.94) 100%), var(--img, none);
  background-size: cover; background-position: var(--pos, 50% 30%);
}
.tile > * { position: relative; }
.tile.evil { box-shadow: inset 0 -8px 0 var(--tension); }
.tile.good { box-shadow: inset 0 -8px 0 var(--gold); }
.tile.is-final { box-shadow: inset 0 0 0 5px var(--gold); }
.tile-tag { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.tile.evil .tile-tag { color: var(--tension); }
.tile.good .tile-tag { color: var(--gold); }
.tile h3 { font-family: var(--font-display); font-size: 50px; font-weight: 800; line-height: 1; letter-spacing: -.015em; }
.tile p:last-child { font-size: 27px; line-height: 1.25; color: var(--soft); }

/* Parallel: two named columns, lined up row for row */
.parallel { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); }
.par-col { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 32px; padding: 0 64px 0 0; }
.par-col + .par-col { padding: 0 0 0 64px; border-left: 2px solid var(--line); }
.par-name { font-family: var(--font-display); font-size: 100px; font-weight: 900; line-height: .9; letter-spacing: -.035em; text-transform: uppercase; }
.par-col.is-accent .par-name { color: var(--accent); }
.par-col p { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.par-col p small { display: block; margin-top: 8px; font-family: var(--font-sans); font-size: 22px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }

/* The Redline: an old passage, answered. Never struck out. */
.redline { font-family: var(--font-serif); font-style: italic; font-size: 54px; line-height: 2.3; max-width: 1680px; color: var(--text); transition: color .6s var(--ease); }
.redline .rl { position: relative; white-space: nowrap; transition: color .6s var(--ease); text-decoration: underline 2px transparent; text-underline-offset: 10px; }
.redline .rl ins {
  position: absolute; left: 0; bottom: 78%; white-space: nowrap;
  font-family: var(--font-display); font-style: normal; font-weight: 800; font-size: 29px; letter-spacing: .01em;
  text-decoration: none; color: var(--accent);
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease) .25s, transform .5s var(--ease) .25s;
}
.redline .rl.add { display: inline-block; width: 0; }
.redline .rl.add::before { content: "‸"; position: absolute; left: -.12em; bottom: -.05em; font-style: normal; font-weight: 700; color: var(--accent); opacity: 0; transition: opacity .5s var(--ease) .25s; }
.slide:has(.step.is-shown) .redline { color: color-mix(in srgb, var(--text) 45%, var(--bg)); }
.slide:has(.step.is-shown) .redline .rl:not(.same):not(.add) { color: var(--tension); text-decoration-color: var(--tension); }
.slide:has(.step.is-shown) .redline .rl ins, .slide:has(.step.is-shown) .redline .rl.add::before { opacity: 1; transform: none; }
.redline .rl.same { border-radius: var(--radius); padding: 0 .12em; box-shadow: inset 0 0 0 2px transparent; transition: color .6s var(--ease), box-shadow .6s var(--ease); }
.slide:has(.step.is-shown) .redline .rl.same { color: var(--text); box-shadow: inset 0 0 0 3px var(--gold); }
.redline-head { display: flex; justify-content: space-between; align-items: baseline; gap: 40px; margin-bottom: 18px; }
.redline-head .kicker.step { color: var(--accent); }
.redline-head .kicker.step::before { background: var(--accent); }

/* Content-specific blocks from individual decks: keep them inside the F39 type scale */
.name-rows p { font-family: var(--font-display); letter-spacing: -.03em; font-size: 128px !important; }
.life-cycle .display { font-size: 72px; }

/* ---- Chrome: logo, series, counter, progress ----------------------------- */
.chrome {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 44px; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--stone); pointer-events: none;
}
.chrome > span:first-child { display: flex; align-items: center; gap: 22px; }
.chrome > span:first-child::before { content: ""; width: 64px; height: 33px; background: url("/assets/logo/f39-mark.svg") left center / contain no-repeat; }
body.has-image .chrome, body.is-trailer .chrome { color: #B8B1A4; }
body.has-image .chrome > span:first-child::before, body.is-trailer .chrome > span:first-child::before,
body.is-invert .chrome > span:first-child::before { background-image: url("/assets/logo/f39-mark-reversed.svg"); }
body.is-invert .chrome { color: #C9D9EA; }
body.is-bigidea .chrome { color: #B8B1A4; }
body.is-trailer .chrome { opacity: 0; }
.progress { position: absolute; left: 0; bottom: 0; height: 8px; z-index: 6; background: var(--bar39); background-size: 1920px 100%; transition: width .4s var(--ease); }
