/* Open Source in the age of AI deck theme */
:root {
  --forest: #3D5F58;
  --deep: #2E4742;
  --deeper: #22352F;
  --ink: #231F20;
  --paper: #F2F2EB;
  --sky: #8BB2DE;
  --ochre: #F5B726;
  --pink: #E97B77;
  --orange: #E53927;
  --maroon: #671912;

  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;

  --pad-x: 128px;
}

html, body, .reveal-viewport { background: var(--deep); }
.reveal { font-family: var(--body); color: var(--paper); font-size: 32px; }
.reveal .slides { text-align: left; }
.reveal .slides > section {
  height: 1080px;
  padding: 0;
  box-sizing: border-box;
}
.reveal h1, .reveal h2, .reveal h3, .reveal p, .reveal ul, .reveal ol, .reveal pre, .reveal figure { margin: 0; }
.reveal a { color: inherit; text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 6px; text-decoration-thickness: 3px; }
.reveal code { font-family: var(--mono); font-size: .85em; background: rgba(0,0,0,.22); padding: 2px 10px; border-radius: 4px; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.dim { opacity: .55; }
.hl-red { color: var(--orange); }
.hl-ochre { color: var(--ochre); }
.hl-orange { color: var(--orange); }
.hl-forest { color: var(--forest); }

/* ── content slide frame ─────────────────────────── */
.s { padding: 112px var(--pad-x) 168px !important; display: flex !important; flex-direction: column; gap: 40px; }
.kicker { font-family: var(--mono); font-size: 24px; text-transform: uppercase; letter-spacing: .1em; color: var(--ochre); }
.kicker.ink { color: var(--ink); }
.kicker.forest { color: var(--forest); }
.title { font-family: var(--display); font-weight: 700; font-size: 96px; line-height: 1.02; text-transform: uppercase; letter-spacing: .005em; }
.huge { font-family: var(--display); font-weight: 800; font-size: 150px; line-height: .98; text-transform: uppercase; }
.lead { font-size: 38px; line-height: 1.35; max-width: 1400px; }
.lead.ink { color: var(--ink); }
.fine { font-size: 26px; opacity: .8; }

.foot { position: absolute; left: var(--pad-x); bottom: 56px; display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 22px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.foot img { height: 34px; }
.reveal .slide-number { font-family: var(--mono); font-size: 16px; background: transparent; color: var(--paper); opacity: .7; left: 2.2vw; right: auto; bottom: 2.6vh; }

/* light slides */
.light { color: var(--ink); }
.light .card { background: #fff; border-color: rgba(35,31,32,.12); border-top-color: var(--c); }
.light .card p { color: rgba(35,31,32,.8); }
.light .foot { color: var(--ink); }
.reveal.light-current .slide-number { color: var(--ink); }
.global-foot .reveal .slides .foot { display: none; }
.deck-foot { position: absolute; z-index: 30; line-height: 1; font-family: var(--mono); font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--paper); opacity: .7; pointer-events: none; }
.reveal.light-current .deck-foot { color: var(--ink); }

/* ── cards ───────────────────────────────────────── */
.cards { display: grid; gap: 32px; margin-top: auto; margin-bottom: auto; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: rgba(242,242,235,.06); border: 2px solid rgba(242,242,235,.14); border-top: 10px solid var(--c); border-radius: 6px; padding: 40px 44px 48px; display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1.05; }
.card p { font-size: 30px; line-height: 1.4; color: rgba(242,242,235,.86); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto !important; }
.chips span { font-family: var(--mono); font-size: 20px; padding: 6px 12px; border-radius: 4px; background: rgba(242,242,235,.12); border: 1px solid rgba(242,242,235,.25); }
.card .card-k { font-size: 22px; text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.light .card .card-k { color: var(--forest); }

/* ── cover + end ─────────────────────────────────── */
.cover { padding: 0 !important; }
canvas.scene { position: absolute; inset: 0; width: 1920px; height: 1080px; display: block; }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46,71,66,.97) 0%, rgba(46,71,66,.85) 34%, rgba(46,71,66,0) 62%); pointer-events: none; }
.cover-copy { position: absolute; left: var(--pad-x); top: 120px; width: 1600px; display: flex; flex-direction: column; gap: 36px; }
.cover-logo { width: 820px; }
.cover h1 { font-family: var(--display); font-weight: 800; font-size: 120px; line-height: 1; text-transform: uppercase; }
.byline { font-size: 26px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.partners { position: absolute; left: var(--pad-x); bottom: 72px; display: flex; align-items: center; gap: 22px; background: var(--paper); color: var(--ink); padding: 18px 30px; border-radius: 6px; }
.partners .mono { font-size: 20px; text-transform: uppercase; letter-spacing: .08em; }
.partners img { height: 48px; }
.partners .x { font-size: 32px; font-weight: 600; }
.partners .sep { padding-left: 22px; border-left: 2px solid rgba(35,31,32,.2); }
.end .cover-copy { top: 150px; gap: 20px; }
.contact { list-style: none; padding: 0; margin-top: 36px !important; font-size: 30px; display: flex; flex-direction: column; gap: 14px; }

/* ── record reminder ─────────────────────────────── */
.record { display: flex !important; flex-direction: column; justify-content: center; padding: 0 var(--pad-x) !important; gap: 32px; }
.record-title { font-family: var(--display); font-weight: 800; font-size: 150px; line-height: .98; }
.record-sub { font-size: 34px; opacity: .7; }
.rec { position: absolute; top: 80px; right: 120px; display: flex; align-items: center; gap: 18px; font-size: 32px; }
.rec-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* old camcorder / CRT look: scanlines, vignette, flicker, fringing, tracking glitch */
.record { overflow: hidden; }
.record-title { text-shadow: 4px 0 rgba(255,60,60,.55), -4px 0 rgba(60,200,255,.55); animation: crt-jitter 5s infinite; }
.record-sub, .rec, .cam-top, .cam-time { text-shadow: 2px 0 rgba(255,60,60,.5), -2px 0 rgba(60,200,255,.5); }
.cam-top { position: absolute; top: 80px; left: 120px; font-size: 32px; }
.cam-time { position: absolute; bottom: 80px; right: 120px; font-size: 32px; letter-spacing: .1em; }
.vf { position: absolute; width: 90px; height: 90px; border: 0 solid rgba(242,242,235,.8); }
.vf.tl { top: 40px; left: 60px; border-width: 5px 0 0 5px; } .vf.tr { top: 40px; right: 60px; border-width: 5px 5px 0 0; }
.vf.bl { bottom: 40px; left: 60px; border-width: 0 0 5px 5px; } .vf.br { bottom: 40px; right: 60px; border-width: 0 5px 5px 0; }
.crt { position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 2px, transparent 2px 6px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.7) 100%);
  animation: crt-flicker .12s steps(2, jump-none) infinite; }
.crt::before { content: ""; position: absolute; left: 0; right: 0; height: 220px; top: -220px;
  background: linear-gradient(to bottom, transparent, rgba(242,242,235,.09), transparent); animation: crt-roll 6s linear infinite; }
.tape-bar { position: absolute; left: 0; right: 0; height: 14px; top: 0; z-index: 4; pointer-events: none;
  background: rgba(242,242,235,.16); mix-blend-mode: screen; transform: translateX(0); animation: tape-glitch 7s steps(1) infinite; }
@keyframes crt-flicker { 0% { opacity: .96; } 50% { opacity: 1; } }
@keyframes crt-roll { to { transform: translateY(1500px); } }
@keyframes crt-jitter { 0%, 92%, 100% { transform: none; } 93% { transform: translateX(-10px) skewX(-3deg); } 95% { transform: translateX(8px); } 97% { transform: translateX(-4px); } }
@keyframes tape-glitch { 0% { top: 62%; opacity: 0; } 85% { top: 62%; opacity: 0; } 86% { top: 64%; opacity: 1; transform: translateX(-30px); } 88% { top: 66%; opacity: 1; transform: translateX(40px); } 90% { top: 66%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .crt, .crt::before, .tape-bar, .record-title { animation: none; } }

/* ── about ───────────────────────────────────────── */
.about { display: grid; grid-template-columns: 520px 1fr; gap: 96px; align-items: center; margin: auto 0; }
.photo-frame { position: relative; width: 520px; height: 520px; }
.photo-frame::before { content: ""; position: absolute; inset: 0; transform: translate(28px, 28px); background: var(--ochre); border-radius: 6px; }
.photo-frame img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.about-copy { display: flex; flex-direction: column; gap: 36px; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.tags li { font-size: 28px; padding: 10px 22px; border: 2px solid rgba(242,242,235,.35); border-radius: 999px; }
.stat { display: flex; align-items: center; gap: 28px; }
.stat .big { font-family: var(--display); font-weight: 800; font-size: 180px; line-height: .8; color: var(--ochre); min-width: 1ch; }
.stat .mono { font-size: 26px; text-transform: uppercase; letter-spacing: .08em; line-height: 1.5; }

/* ── terminal ────────────────────────────────────── */
.terminal { background: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); margin: auto 0; }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 18px 24px; background: #2f2a2b; font-family: var(--mono); font-size: 20px; color: rgba(242,242,235,.6); }
.term-bar i { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); }
.term-bar i:nth-child(2) { background: var(--ochre); }
.term-bar i:nth-child(3) { background: #5CB87A; }
.term-bar span { margin-left: 14px; }
.terminal pre { font-family: var(--mono); font-size: 34px; line-height: 1.75; padding: 36px 48px 44px; white-space: pre; color: var(--paper); }
.terminal .prompt, .code-fig .prompt { color: var(--ochre); }
.terminal .ok { color: var(--ink); background: var(--ochre); padding: 0 10px; }
.terminal .fragment { display: inline; }
.step-stage .terminal { margin: 0 auto; width: 100%; }
.step-stage .terminal.agenda pre { font-size: 30px; }
.terminal.agenda pre { font-size: 28px; line-height: 1.55; padding: 26px 44px 30px; }

/* ── dividers ────────────────────────────────────── */
.divider { display: flex !important; flex-direction: column; justify-content: flex-start; gap: 36px; padding: 330px var(--pad-x) 0 !important; overflow: hidden; }
.type-line { font-size: 84px; font-weight: 600; letter-spacing: 0 !important; white-space: nowrap; position: relative; z-index: 1; }
.type { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; padding-bottom: .2em; margin-bottom: -.2em; width: calc(var(--n, 20) * 1ch + .05em); }
.type-line::after { content: ""; display: inline-block; width: .55ch; height: .9em; margin-left: .15ch; background: var(--ochre); vertical-align: -.08em; animation: blink 1s steps(2, jump-none) infinite; }
.present .type { animation: typing 1.1s steps(var(--n, 20)) .25s both; }
@keyframes typing { from { width: 0; } }
.divider-sub { font-size: 40px; opacity: .85; max-width: 1500px; position: relative; z-index: 1; }
.present .divider-sub { animation: rise .6s ease 1.4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.pixels { position: absolute; inset: 0; pointer-events: none; }
.pixels i { position: absolute; width: 76px; height: 76px; background: var(--c); opacity: var(--o); }
.present .pixels i.tw { animation: twinkle 3.2s ease-in-out var(--d) infinite; }
@keyframes twinkle { 50% { opacity: calc(var(--o) * .25); } }

/* ── timeline ────────────────────────────────────── */
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: auto 0; position: relative; }
.timeline li { position: relative; padding-top: 72px; display: flex; flex-direction: column; gap: 16px; }
.timeline li::before { content: ""; position: absolute; top: 18px; left: 0; height: 8px; width: 0; background: var(--c); transition: width .8s ease .1s; }
.timeline li.visible::before { width: calc(100% + 48px); }
.timeline li::after { content: ""; position: absolute; top: 4px; left: 0; width: 36px; height: 36px; background: var(--c); }
.timeline .yr { font-family: var(--display); font-weight: 800; font-size: 110px; line-height: .9; color: var(--c); }
.timeline h3 { font-family: var(--display); font-size: 48px; font-weight: 700; }
.timeline p { font-size: 30px; line-height: 1.4; opacity: .88; }

/* ── statement ───────────────────────────────────── */
.statement { color: var(--ink); justify-content: center; }
.statement .huge { font-size: 132px; }
.strike { position: relative; display: inline-block; color: rgba(35,31,32,.55); }
.strike::after { content: ""; position: absolute; left: -2%; top: 52%; height: 14px; width: 104%; background: var(--orange); }
.present .strike::after { animation: strike .7s ease .6s both; }
@keyframes strike { from { width: 0; } }

/* ── why tiles ───────────────────────────────────── */
.grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-2x2 .tile { display: flex; align-items: center; gap: 32px; padding: 36px 40px; background: rgba(0,0,0,.14); border-left: 12px solid var(--c); border-radius: 4px; }
.grid-2x2 .n { font-size: 26px; color: var(--c); }
.grid-2x2 h3 { font-family: var(--display); font-size: 54px; font-weight: 700; line-height: 1.05; }
.grid-2x2 code { font-size: .8em; }

/* ── where ───────────────────────────────────────── */
.where { display: grid; grid-template-columns: 1fr 600px; gap: 64px; margin: auto 0; align-items: center; }
.links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 26px; font-size: 38px; }
.links li { display: flex; align-items: baseline; gap: 28px; }
.links .src { font-size: 20px; text-transform: uppercase; letter-spacing: .08em; background: rgba(0,0,0,.2); padding: 6px 12px; border-radius: 4px; min-width: 110px; text-align: center; }
.where-side { display: flex; flex-direction: column; gap: 28px; }
.callout { background: rgba(0,0,0,.16); border-top: 10px solid var(--c); padding: 32px 36px; border-radius: 4px; }
.callout h3 { font-family: var(--display); font-size: 48px; font-weight: 700; color: var(--c); }
.callout p { font-size: 30px; line-height: 1.4; margin-top: 10px !important; }

/* ── stepper ─────────────────────────────────────── */
.stepper { display: grid; grid-template-columns: 470px 1fr; gap: 36px; flex: 1; min-height: 0; margin: -36px -68px -68px 0; } /* breaks out into the header and side margins for room */
.step-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.step-list li { flex-wrap: wrap; font-family: var(--display); font-size: 31px; font-weight: 600; padding: 11px 18px; border-radius: 4px; display: flex; gap: 22px; align-items: baseline; white-space: nowrap; opacity: .38; transition: all .35s; }
.step-list li .mono { font-size: 19px; color: var(--ochre); }
.step-note { white-space: normal; flex-basis: 100%; font-family: var(--body, inherit); font-size: 22px; font-weight: 400; line-height: 1.35; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .35s; }
.step-note code { background: none; padding: 0; font-size: .9em; }
.step-note b { font-weight: 700; }
.step-note a { color: inherit; text-decoration: underline; }
.step-list li.active .step-note { max-height: 160px; opacity: 1; margin-top: 4px; }
.step-list li.past { opacity: .7; }
.step-list li.active { opacity: 1; background: var(--ochre); color: var(--ink); transform: translateX(12px); }
.step-list li.active .mono { color: var(--ink); }
.step-stage { position: relative; }
.step-stage figure { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .45s, transform .45s; }
.step-stage figure.active { opacity: 1; transform: none; }
.step-stage img, .step-stage video { max-width: 100%; max-height: 700px; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.4); align-self: center; }
.step-stage .pts img, .step-stage .pts video { max-height: 510px; }
.step-stage .pts { gap: 14px; }
.step-points { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 24px; line-height: 1.3; opacity: .92; }
.step-points b { color: var(--ochre); }
.step-stage figcaption { font-size: 30px; text-align: center; opacity: .9; }
.code-fig pre { font-family: var(--mono); font-size: 26px; line-height: 1.7; background: var(--ink); padding: 26px 32px; border-radius: 8px; }
.code-fig img, .code-fig video { max-height: 300px; }

/* ── two versions of the year ───────────────────── */
.calendar { gap: 28px; }
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.panel { display: flex; flex-direction: column; gap: 10px; }
.panel-k { font-size: 22px; text-transform: uppercase; letter-spacing: .12em; }
.panel.myth .panel-k { color: var(--ochre); }
.panel.real .panel-k { color: var(--ochre); }
.panel h3 { font-family: var(--display); font-size: 48px; font-weight: 700; line-height: 1.05; margin-bottom: 10px; }
.year { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cal-month { position: relative; padding: 10px 14px 14px; border: 2px solid rgba(242,242,235,.1); border-radius: 6px; overflow: hidden; }
.cal-name { height: 26px; display: flex; align-items: center; font-size: 18px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; opacity: .8; }
.cal-name i { font-style: normal; color: var(--orange); margin-left: 6px; letter-spacing: .02em; font-size: 12px; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-days b { aspect-ratio: 1; border-radius: 2px; background: var(--sky); }
.cal-days .gap { background: none; }
/* the myth: only October is lit */
.myth .cal-month:not(.oct) .cal-days b:not(.gap) { background: none; box-shadow: inset 0 0 0 1px rgba(242,242,235,.14); }
.myth .cal-month:not(.oct) .cal-name { opacity: .4; }
/* the reality: every month has activity */
.real .cal-month { background: #213732; border-color: #4f6f67; }
.real .cal-month .cal-days b:not(.gap) { background: #324b45; }
.real .cal-month .cal-days b[data-l="1"] { background: #0e4429; }
.real .cal-month .cal-days b[data-l="2"] { background: #006d32; }
.real .cal-month .cal-days b[data-l="3"] { background: #26a641; }
.real .cal-month .cal-days b[data-l="4"] { background: #39d353; }
/* October, in both: the loud one */
.cal-month.oct { z-index: 2; overflow: visible; transform: scale(1.18); background: rgba(229,57,39,.22); border: 4px solid var(--orange); }
.cal-month.oct .cal-days b:not(.gap) { background: var(--orange); opacity: var(--o); }
.cal-month.oct .cal-days b:not(.gap):nth-child(3n) { background: var(--ochre); }
.cal-month.oct .cal-name { color: var(--paper); opacity: 1; font-size: 22px; }
.cal-month.oct .cal-name i { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 3; background: var(--orange); color: var(--paper); padding: 2px 8px; border-radius: 3px; margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-shadow: none; }
.panel.myth .cal-month:not(.oct) { opacity: .6; }
.web { position: absolute; bottom: -2px; right: -2px; width: 90px; height: 90px; transform: scale(-1, -1); color: rgba(242,242,235,.6); pointer-events: none; z-index: 3; }
.spider { position: absolute; right: 30px; bottom: 30px; width: 16px; height: 16px; color: #000; z-index: 4; pointer-events: none; animation: skitter 3.2s ease-in-out infinite; }
@keyframes skitter { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(-10px, -6px) rotate(-12deg); } 70% { transform: translate(-4px, -12px) rotate(8deg); } }

/* ── the now (+ xkcd 2347) ───────────────────────── */
.now { margin: auto 0; }
.now-main { max-width: 1000px; display: flex; flex-direction: column; gap: 22px; }
.examples { display: flex; flex-direction: column; gap: 22px; }
.eg { font-size: 22px; text-transform: uppercase; letter-spacing: .1em; color: var(--ochre); margin-bottom: -8px; }
.facts { display: flex; flex-direction: column; gap: 16px; }
.fact { border-left: 10px solid var(--c); padding: 6px 0 6px 28px; }
.fact h3 { font-family: var(--display); font-size: 42px; font-weight: 700; line-height: 1.05; }
.fact p { font-size: 26px; line-height: 1.35; color: rgba(242,242,235,.86); }
.fact .card-k { font-size: 20px; text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
#now .title { font-size: 88px; }
.xkcd { position: absolute; right: var(--pad-x); top: 186px; display: flex; flex-direction: column; gap: 14px; }
.tw-box { width: 598px; height: 760px; background: #fff; padding: 14px; border-radius: 6px; box-sizing: content-box; overflow: hidden; }
#tower { display: block; width: 598px; height: 760px; }
.xkcd figcaption { font-family: var(--mono); font-size: 15px; opacity: .75; white-space: nowrap; }

/* ── the siege (AI at the castle gates): three.js scene in js/siege.js ── */
.siege-stage { position: relative; height: 410px; border-radius: 6px; overflow: hidden; background: linear-gradient(#16261f, #2E4742 45%, #d98a45 80%, #3d5f58 80%); }
.siege-stage canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.siege-fallback { display: none; }
.siege-stage.no-webgl canvas { display: none; }
.siege-stage.no-webgl .siege-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; position: absolute; inset: 0; margin: 0; font-size: 30px; text-transform: uppercase; letter-spacing: .08em; }
.siege-fallback span { font-size: 96px; letter-spacing: 0; }

/* ── rules (etiquette) ───────────────────────────── */
.rules { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; margin: auto 0; }
.rules li { display: flex; gap: 28px; align-items: flex-start; }
.rules .mono { font-size: 26px; background: var(--ochre); color: var(--ink); padding: 12px 14px; border-radius: 4px; }
.rules h3 { font-family: var(--display); font-size: 54px; font-weight: 700; line-height: 1; }
.rules p { font-size: 30px; line-height: 1.4; margin-top: 10px !important; color: rgba(242,242,235,.86); }

/* ── own your AI output ───────────────────────────── */
.own-big { font-family: var(--display); font-weight: 800; font-size: 66px; line-height: 1.02; text-transform: uppercase; max-width: 1500px; }
.cons { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.con { border-left: 10px solid var(--c); padding: 6px 0 6px 28px; }
.con h3 { font-family: var(--display); font-size: 46px; font-weight: 700; line-height: 1.05; }
.con p { font-size: 30px; line-height: 1.35; color: rgba(242,242,235,.86); margin-top: 8px !important; }
.prompts { display: flex; flex-direction: column; gap: 10px; }
#own { gap: 44px; }
#own .prompts { gap: 18px; }
#own .prompts li { font-size: 26px; padding: 16px 24px 16px 20px; }
#own .prompts ul { gap: 20px 26px; }
.prompts-k { font-size: 22px; text-transform: uppercase; letter-spacing: .1em; color: var(--ochre); }
.prompts ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.prompts li { font-family: var(--mono); font-size: 22px; line-height: 1.3; background: #1c1f22; border: 2px solid rgba(242,242,235,.14); border-radius: 6px; padding: 10px 18px 10px 16px; display: flex; gap: 12px; color: rgba(242,242,235,.92); }
.prompts li span { color: var(--ochre); font-weight: 600; }
.prompts li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.proof { display: flex; flex-direction: column; gap: 22px; }
.proof-k { font-size: 26px; text-transform: uppercase; letter-spacing: .1em; color: var(--sky); }
.proof-k span { color: rgba(242,242,235,.7); }
.proof ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.proof li { display: flex; align-items: center; background: rgba(242,242,235,.06); border-bottom: 8px solid var(--c); border-radius: 6px 6px 0 0; padding: 18px 20px; }
.proof li h3 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; text-transform: uppercase; }
.proof li p { font-size: 22px; opacity: .75; margin-top: 4px !important; }
.proof .fine { margin: 0; }

/* ── newspaper slide ──────────────────────────────── */
.news { color: #1d1a14; padding-top: 44px !important; padding-bottom: 150px !important; gap: 16px; background-image: radial-gradient(ellipse at center, transparent 55%, rgba(110,80,30,.28) 100%); }
.np-head { text-align: center; border-bottom: 5px double #1d1a14; padding-bottom: 14px; }
.np-top, .np-sub { display: flex; justify-content: space-between; font-family: "Old Standard TT", serif; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; border-top: 2px solid #1d1a14; border-bottom: 2px solid #1d1a14; padding: 6px 4px; }
.np-top { margin-bottom: 4px; }
.np-sub { margin-top: 6px; }
.np-sub b { font-style: italic; text-transform: none; font-weight: 400; font-size: 24px; }
.np-name { font-family: "UnifrakturCook", serif; font-weight: 700; font-size: 128px; line-height: 1.02; margin: 0; letter-spacing: .01em; }
.np-cols { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 0; flex: 1; }
.np-art { display: flex; flex-direction: column; padding: 0 34px; border-left: 2px solid #1d1a14; font-family: "Old Standard TT", serif; }
.np-art:first-child { border-left: 0; padding-left: 0; }
.np-art:last-child { padding-right: 0; }
.lead-story h3 { font-size: 58px; }
.lead-story p:not(.np-tag):not(.np-by):not(.np-cite) { font-size: 25px; }
.np-tag { display: inline-block; font-size: 20px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; background: #1d1a14; color: #E8DDBF; padding: 3px 12px; margin-bottom: 10px; }
.np-art h3 { font-family: "Playfair Display", serif; font-weight: 900; font-size: 49px; line-height: 1.02; letter-spacing: -.01em; margin-bottom: 8px; }
.np-by { font-size: 19px; font-style: italic; border-top: 1px solid #1d1a14; border-bottom: 1px solid #1d1a14; padding: 3px 0; margin-bottom: 10px !important; }
.np-art p:not(.np-tag):not(.np-by):not(.np-cite) { font-size: 24px; line-height: 1.32; text-align: justify; hyphens: auto; }
.np-foot { font-family: "Playfair Display", serif; font-size: 30px; text-align: center; border-top: 5px double #1d1a14; padding-top: 12px; }
.np-foot b { font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.np-cite { margin-top: auto !important; padding-top: 10px; border-top: 1px solid #1d1a14; font-family: "Old Standard TT", serif; font-size: 17px; font-style: italic; opacity: .8; }

/* ── doors (the AI opens doors) ───────────────────── */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin: auto 0; }
.door { position: relative; height: 440px; perspective: 1800px; overflow: hidden; border-radius: 130px 130px 6px 6px; }
.dslide .door.fragment { opacity: 1; visibility: visible; }
.door-in, .door-leaf { position: absolute; inset: 0; border-radius: 130px 130px 6px 6px; }
.door-in { border: 6px solid var(--c); background: radial-gradient(ellipse at 50% 100%, rgba(245,183,38,.42), rgba(18,30,27,.96) 72%); padding: 118px 38px 34px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.door-in h3 { font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1.05; }
.door-in p { font-size: 30px; line-height: 1.4; color: rgba(242,242,235,.9); }
.door-in .card-k { font-size: 22px; text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.door-leaf { transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(.5, 0, .2, 1); display: grid; place-items: center; border: 6px solid rgba(0,0,0,.3); box-shadow: 0 12px 40px rgba(0,0,0,.35);
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 3px, transparent 3px 46px), linear-gradient(180deg, color-mix(in srgb, var(--c) 85%, #fff), color-mix(in srgb, var(--c) 70%, #000)); }
.door-leaf::after { content: ""; position: absolute; right: 30px; top: 54%; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 5px var(--paper); }
.door-leaf span { font-size: 30px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); font-weight: 600; text-align: center; padding: 0 70px 0 30px; line-height: 1.3; }
.door.visible .door-leaf { transform: rotateY(-100deg); }
@media (prefers-reduced-motion: reduce) { .door-leaf { transition: none; } }

/* ── the siege slide: projects that put up walls ──── */
.siege { gap: 22px; }
.walls-k { font-size: 22px; text-transform: uppercase; letter-spacing: .12em; color: var(--ochre); margin-bottom: -6px; }
.walls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.wall { background: rgba(242,242,235,.07); border: 2px solid rgba(242,242,235,.16); border-top: 8px solid var(--c); border-radius: 6px; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.wall-head { display: flex; align-items: center; gap: 10px; }
.wall-head b { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; }
.wall-head b a { color: inherit; text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.chip { margin-left: auto; font-family: var(--mono); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: var(--c); color: var(--ink); white-space: nowrap; }
.wall p { font-size: 26px; line-height: 1.25; color: rgba(242,242,235,.9); }

/* ── licenses ─────────────────────────────────────── */
.spectrum { display: flex; flex-direction: column; gap: 10px; }
.sp-ends { display: flex; justify-content: space-between; font-size: 24px; text-transform: uppercase; letter-spacing: .1em; color: rgba(242,242,235,.75); }
.sp-kind { display: flex; font-size: 20px; opacity: .7; }
.sp-kind span { text-align: center; }
.sp-bar i.na { background: #0f1011; box-shadow: 0 0 0 3px rgba(242,242,235,.55); }
.sp-bar { position: relative; height: 76px; border-radius: 38px; background: linear-gradient(90deg, #8bb2de 0%, #f5b726 38%, #e53927 64%, #5a5b61 69%, #2a2b30 100%); }
.sp-bar i { position: absolute; top: 50%; transform: translate(-50%, -50%); font-style: normal; font-family: var(--mono); font-weight: 600; font-size: 26px; padding: 9px 16px; border-radius: 22px; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 3px rgba(242,242,235,.9); white-space: nowrap; }
.lic-row { display: grid; grid-template-columns: 1fr 440px; gap: 40px; align-items: stretch; }
.matrix { display: flex; flex-direction: column; gap: 10px; }
.mrow { display: grid; grid-template-columns: 2.3fr repeat(4, 1fr); align-items: center; gap: 8px; background: rgba(242,242,235,.06); border-radius: 6px; padding: 16px 20px; }
.mrow b { font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1.05; }
.mrow span { text-align: center; font-size: 42px; font-weight: 700; }
.mrow .yes { color: #5CB87A; } .mrow .no { color: #E97B77; }
.mhead { background: none; padding-top: 0; padding-bottom: 0; } .mhead span { white-space: nowrap; font-size: 22px; font-weight: 600; letter-spacing: .04em; color: var(--ochre); }
.nolic { border: 2px dashed rgba(233,123,119,.7); border-radius: 8px; padding: 20px 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.nolic .lock { font-size: 76px; line-height: 1; }
.nolic .card-k { font-size: 22px; text-transform: uppercase; letter-spacing: .08em; color: var(--pink); }
.nolic h3 { font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1.05; }
.nolic p { font-size: 30px; line-height: 1.35; color: rgba(242,242,235,.9); }

/* ── fun-fact aside (open source inspiration) ───── */
.fun-fact { display: flex; align-items: center; gap: 26px; border-left: 10px solid var(--ochre); background: rgba(242,242,235,.07); border-radius: 0 6px 6px 0; padding: 16px 28px 16px 22px; }
.fun-fact > div { display: flex; flex-direction: column; gap: 4px; }
.fun-fact .fun-k { font-size: 20px; text-transform: uppercase; letter-spacing: .1em; color: var(--ochre); }
.fun-fact p:not(.fun-k) { font-size: 28px; line-height: 1.3; color: rgba(242,242,235,.92); }
.fun-fact a { color: var(--ochre); text-decoration: underline; text-underline-offset: 5px; white-space: nowrap; }
.ing-icon { flex: none; width: 96px; height: 80px; animation: ing-hover 3s ease-in-out infinite; }
.ing-icon .ing-rotor { transform-box: fill-box; transform-origin: center; }
.ing-icon .r1 { animation: ing-spin .18s linear infinite; }
.ing-icon .r2 { animation: ing-spin .26s linear infinite reverse; }
@keyframes ing-spin { 0% { transform: scaleX(1); } 50% { transform: scaleX(.12); } 100% { transform: scaleX(1); } }
@keyframes ing-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .ing-icon, .ing-icon .ing-rotor { animation: none; } }

/* ── carousel ────────────────────────────────────── */
.carousel { display: grid; grid-template-columns: 640px 1fr; gap: 40px; height: 760px; }
.details { position: relative; z-index: 2; }
.details article { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 18px; justify-content: center; opacity: 0; transform: translateX(-30px); transition: opacity .15s, transform .15s; }
.details article.active { opacity: 1; transform: none; transition: opacity .4s .2s, transform .4s .2s; }
.details .tagline { font-size: 24px; color: var(--ochre); text-transform: uppercase; letter-spacing: .08em; }
.details .title { font-size: 80px; }
.details p { font-size: 32px; line-height: 1.4; }
.details h3 { font-family: var(--mono); font-size: 22px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-top: 18px !important; }
.details ul { padding-left: 1.1em; font-size: 32px; line-height: 1.5; }
.details .repo { font-size: 22px; margin-top: 12px; letter-spacing: 0; white-space: nowrap; }
.ring-wrap { position: relative; perspective: 2600px; perspective-origin: 50% 50%; display: grid; place-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.ring { position: relative; width: 900px; height: 470px; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.6,0,.2,1); transform: translateZ(-1350px) rotateX(calc(var(--step, 0) * 20deg)); }
.ring-card { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: var(--ink); border: 4px solid rgba(242,242,235,.15); transform: rotateX(calc(var(--i) * -20deg)) translateZ(1350px); transition: border-color .5s, filter .5s; filter: brightness(.4); }
.ring-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* tall phone screenshots: show the whole image, with a blurred copy filling the sides */
.ring-card.portrait::before { content: ""; position: absolute; inset: -30px; background: url(../assets/img/shuttle.png) center / 100% 100%; filter: blur(34px); }
.ring-card.portrait img { position: relative; object-fit: contain; object-position: center; }
.ring-card.active { border-color: var(--ochre); filter: none; }
.ring-card.placeholder { display: grid; place-items: center; border-style: dashed; background: var(--deeper); }
.ring-card.placeholder span { font-size: 60px; color: var(--ochre); }

/* invisible click markers for step-driven slides: keep them out of the layout */
.fragment.step { position: absolute; width: 0; height: 0; overflow: hidden; }
.ring-card { backface-visibility: hidden; }

/* exporter: no transitions between slides */
.export .reveal .slides section { transition: none !important; }

#tower { cursor: pointer; }

/* ── cord cut (own your own devices) ───────────────────────── */
.cord-wall { flex: none; margin-top: 4px; }
.cord-wall svg { display: block; width: 100%; height: 560px; overflow: visible; }
.cord-wall .dev, .cord-wall .dev-in { fill: none; stroke: #7c8985; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.cord-wall .cord path { fill: none; stroke: #9aa5a1; stroke-width: 3; stroke-dasharray: 9 7; }
.cord-wall .snip { font-size: 34px; fill: var(--ochre); opacity: 0; }
.cord-wall .dlabel { font-family: var(--mono); font-size: 22px; fill: #7c8985; text-transform: uppercase; letter-spacing: .08em; }
.cord-wall .ctext { font-family: var(--mono); font-size: 19px; fill: #2b3a37; letter-spacing: .1em; }
.cord-wall .badges rect { fill: none; stroke: #9aa5a1; stroke-width: 2; }
.cord-wall .badges text { font-family: var(--mono); font-size: 16px; fill: #9aa5a1; }
.cord-wall .fclock { font-family: var(--display); font-weight: 700; font-size: 44px; fill: var(--c); stroke: none; opacity: 0; }
.cord-wall .fcal { stroke: var(--c); opacity: 0; }
.cord-wall .osrc, .cord-wall .repo { font-family: var(--mono); font-size: 30px; fill: var(--ochre); letter-spacing: .14em; opacity: 0; }
.cord-wall .repo { font-size: 24px; letter-spacing: .04em; }
.cord-wall.visible .cord-top { animation: cut-up .5s ease-in var(--d) forwards; }
.cord-wall.visible .cord-bot { animation: cut-down .6s ease-in var(--d) forwards; }
.cord-wall.visible .snip { animation: snip .7s ease-out var(--d) forwards; }
.cord-wall.visible .dev { animation: own .6s cubic-bezier(.3,1.5,.5,1) calc(var(--d) + .1s) forwards; }
.cord-wall.visible .dev-in { animation: own-in .6s ease calc(var(--d) + .1s) forwards; }
.cord-wall.visible .dlabel { animation: own-label .5s ease calc(var(--d) + .1s) forwards; }
.cord-wall.visible .dev-frame .fclock, .cord-wall.visible .dev-frame .fcal { animation: show .6s ease calc(var(--d) + .5s) forwards; }
.cord-wall.visible .cloud { animation: cloud-out .7s ease 4.2s forwards; }
.cord-wall.visible .osrc { animation: show .6s ease 5s forwards; }
.cord-wall.visible .dl-frame { animation: own-label .5s ease 3.7s forwards; }
.cord-wall .ddesc { font-size: 22px; fill: rgba(242,242,235,.88); opacity: 0; }
.cord-wall.visible .ddesc { animation: show .6s ease calc(var(--d) + .5s) forwards; }
.cord-wall.visible .repo { animation: show .6s ease 5.4s forwards; }
.late.visible { transition-delay: 5.8s; }
@keyframes cut-up { to { opacity: 0; transform: translateY(-22px); } }
@keyframes cut-down { to { opacity: 0; transform: translateY(26px); } }
@keyframes snip { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(1); } }
@keyframes own { from { translate: 0 0; } to { translate: 0 16px; } }
@keyframes own-in { to { stroke: var(--c); } }
@keyframes own-label { to { fill: var(--c); } }
@keyframes cloud-out { to { opacity: 0; transform: translateY(-30px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
@keyframes hide { to { opacity: 0; } }

/* ── door slides ─────────────────────────────────────────── */
.dslide { display: grid; grid-template-columns: 560px 1fr; gap: 56px; align-items: center; margin-top: 10px; }
.dslide .door { height: 560px; }
.dslide .door-in { padding: 92px 34px 28px; background: radial-gradient(ellipse at 50% 100%, rgba(245,183,38,.3), rgba(14,24,22,.97) 72%); }
.dright { display: flex; flex-direction: column; gap: 28px; }
.prompts.one ul { grid-template-columns: 1fr; }
.sc { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.door-in .sc-k { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; color: var(--c); }
/* door 1: setup checklist */
.chk { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; font-family: var(--mono); font-size: 20px; margin-top: 6px; }
.chk li { display: flex; gap: 14px; align-items: center; opacity: .55; }
.chk li::before { content: "✓"; display: grid; place-items: center; width: 30px; height: 30px; border: 3px solid var(--c); border-radius: 6px; font-size: 20px; color: transparent; flex: none; }
.prog { height: 12px; border-radius: 6px; background: rgba(242,242,235,.14); margin-top: 8px; }
.prog b { display: block; width: 0; height: 100%; border-radius: 6px; background: var(--c); }
.door-in .rdy { font-size: 20px; color: #5CB87A; opacity: 0; margin-top: auto; }
.door.visible .chk li { animation: chk-on .4s ease calc(1.3s + var(--n) * .75s) forwards; }
.door.visible .chk li::before { animation: chk-box .4s ease calc(1.3s + var(--n) * .75s) forwards; }
.door.visible .prog b { animation: fill 3.2s linear 1.2s forwards; }
.door.visible .rdy { animation: show .5s ease 4.5s forwards, glow 1.6s ease-in-out 5s infinite; }
@keyframes chk-on { to { opacity: 1; } }
@keyframes chk-box { to { background: var(--c); color: var(--ink); } }
@keyframes fill { to { width: 100%; } }
@keyframes glow { 50% { text-shadow: 0 0 14px #5CB87A; } }
/* door 2: architecture map */
.sc2 { background-image: radial-gradient(rgba(242,242,235,.12) 2px, transparent 2px); background-size: 28px 28px; margin: 0 -34px; padding: 0 34px; }
.mm { width: 100%; height: auto; }
.mm .e { fill: none; stroke: #F2F2EB; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mm .n rect { fill: #1c1f22; stroke: var(--c); stroke-width: 3; }
.mm .n text { font-family: var(--mono); font-size: 24px; fill: #F2F2EB; text-anchor: middle; }
.mm .n { opacity: 0; transform-box: fill-box; transform-origin: center; }
.mm .here { fill: none; stroke: var(--ochre); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mm .you { font-family: var(--mono); font-size: 14px; fill: var(--ochre); opacity: 0; }
.door.visible .mm .n { animation: node-in .45s cubic-bezier(.3,1.5,.5,1) calc(1.3s + var(--n) * .7s) forwards; }
.door.visible .mm .e { animation: draw .5s ease calc(1.6s + var(--n) * .7s) forwards; }
.door.visible .mm .here { animation: show .3s ease 4.8s forwards, ring 1.6s ease-out 4.8s infinite; }
.door.visible .mm .you { animation: show .5s ease 4.9s forwards; }
@keyframes node-in { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes ring { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
/* door 3: commit timeline */
.tl { width: 100%; height: auto; }
.tl .spine { fill: none; stroke: rgba(242,242,235,.5); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tl .c { opacity: 0; }
.tl .c circle { fill: var(--c); }
.tl .cd { font-family: var(--mono); font-size: 25px; fill: rgba(242,242,235,.75); }
.tl .cm { font-family: var(--mono); font-size: 22px; fill: rgba(242,242,235,.55); }
.tl .c.hl .cd, .tl .c.hl .cm { fill: #F2F2EB; }
.tl .ping { fill: none; stroke: var(--c); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.tl .why { opacity: 0; }
.tl .why rect { fill: var(--c); }
.tl .why text { font-family: var(--mono); font-size: 21px; fill: var(--ink); font-weight: 600; }
.door.visible .tl .spine { animation: draw 2.6s ease-in-out 1.2s forwards; }
.door.visible .tl .c { animation: show-o .4s ease calc(1.3s + var(--n) * .55s) forwards; }
.door.visible .tl .c.hl { --o: 1; }
@keyframes show-o { to { opacity: var(--o, 1); } }
.door.visible .tl .ping { animation: show .2s ease 4s forwards, ring 1.4s ease-out 4s 3; }
.door.visible .tl .why { animation: show .5s ease 4.3s forwards; }
/* ── door slides: flat doorway frame ─────────────────────── */
.dslide { grid-template-columns: 640px 1fr; }
.dslide .door { height: 590px; border-radius: 3px; margin: 22px; overflow: hidden; box-shadow: 0 0 0 16px #14201d, 0 0 0 20px var(--c), 0 30px 60px rgba(0,0,0,.45); }
.dslide .door-in, .dslide .door-leaf { border-radius: 2px; }
.dslide .door-in { border: none; background: linear-gradient(180deg, #0c1513, #15231f); padding: 40px 40px 30px; }
.dslide .door-leaf::before { content: ""; position: absolute; inset: 36px 36px 54%; border: 4px solid rgba(0,0,0,.28); border-radius: 4px; }
.dslide .door-leaf { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), color-mix(in srgb, var(--c) 62%, #000)); }
.chk { font-size: 24px; }
.door-in .rdy { font-size: 24px; }

/* door 4: log rewind */
.logwin { position: relative; flex: none; height: 400px; margin-top: 10px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
.logs { list-style: none; padding: 0; margin: 0; will-change: transform; }
.logs li { height: 30px; line-height: 30px; font-family: var(--mono); font-size: 14px; white-space: nowrap; overflow: hidden; color: rgba(242,242,235,.7); }
.logs .ts { opacity: .5; margin-right: 10px; }
.logs .lv { display: inline-block; width: 62px; font-weight: 600; }
.logs .warn .lv { color: var(--ochre); }
.logs .info .lv { color: var(--sky); }
.logs .dbg .lv { color: rgba(242,242,235,.45); }
.logs .err { color: #fff; }
.logs .err .lv { color: #ff6a5c; }
.logs .sub { color: rgba(242,242,235,.8); }
.pin { position: absolute; left: -4px; right: -4px; top: 185px; height: 30px; border: 3px solid #ff6a5c; border-radius: 6px; background: rgba(255,106,92,.18); opacity: 0; }
.rew { position: absolute; right: 6px; top: 8px; font-size: 18px; color: var(--ochre); background: rgba(0,0,0,.55); padding: 2px 10px; border-radius: 4px; opacity: 0; }
/* a diagonal corner banner across the door's top-right */
/* a diagonal corner banner across the door's top-right; centred well inside the corner so the lettering clears both edges */
/* a diagonal banner across the door's top-right corner, above the frame and everything else (it overhangs the door, so it lives outside it) */
.door-wrap { position: relative; }
.rootc { position: absolute; z-index: 20; top: 69px; right: -58px; width: 320px; text-align: center; white-space: nowrap; transform: rotate(45deg); font-size: 22px; line-height: 46px; letter-spacing: .12em; text-transform: uppercase; background: #ff6a5c; color: var(--ink); font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.4); opacity: 0; pointer-events: none; }
/* the log is already tailing before the door opens (it starts with the slide), then rewinds to the root cause */
#door4.present .logs { animation: logs-run 5.4s linear forwards; }
.door.visible .pin { animation: show .3s ease 3.9s forwards, pin-pulse 1.2s ease-in-out 4.2s infinite; }
.door.visible .rew { animation: rew-flash 1.2s steps(2) 2.4s 1 forwards; }
.door.visible ~ .rootc { animation: show .4s ease 4.1s forwards; }
@keyframes logs-run {
  0% { transform: translateY(0); filter: blur(0); }
  5% { filter: blur(1.5px); }
  46% { transform: translateY(-1760px); filter: blur(1.5px); }
  56% { transform: translateY(-1760px); filter: blur(0); animation-timing-function: ease-in-out; }
  67% { filter: blur(1.5px); }
  78% { transform: translateY(-1495px); filter: blur(0); }
  100% { transform: translateY(-1495px); filter: blur(0); }
}
}
}
}
}
@keyframes rew-flash { 0% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pin-pulse { 50% { background: rgba(255,106,92,.32); } }


/* ── PR comparison (proof slide): real GitHub screenshots ── */
.prcmp { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.prcmp figure { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.prcmp figcaption { font-size: 22px; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); }
.prcmp .good figcaption { color: #5CB87A; }
.prcmp img { width: 100%; aspect-ratio: 1272 / 660; object-fit: cover; object-position: top left; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.4); border-top: 8px solid var(--orange); }
.prcmp .good img { border-top-color: #5CB87A; }

/* ── the AI vocabulary slide: mini concept icons + a round-peg / square-hole analogy ── */
.jargon { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(14,24,22,.55); border-bottom: 6px solid var(--c); border-radius: 6px 6px 0 0; padding: 18px 6px 14px; color: var(--c); }
.mini svg { flex: none; width: 64px; height: 64px; max-width: 64px; max-height: 64px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mini span { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.1; text-align: center; color: var(--paper); }
.mini svg { overflow: visible; }
.mini svg .spin { transform-box: view-box; transform-origin: 24px 24px; animation: spin 5s linear infinite; }
.mini svg * { transform-box: fill-box; transform-origin: center; }
.mini.mcp svg * { transform-box: view-box; transform-origin: 0 0; } /* the plug's moves are SVG-native; keep CSS origins out of them */
.mini .zap { fill: currentColor; fill-opacity: .25; }
/* each icon moves in its own way, only while its slide is showing */
.present .mini .a-eye { animation: blink 3.4s ease-in-out infinite; }
.present .mini .a-tip { fill: currentColor; animation: pulse 1.4s ease-in-out infinite; }
.present .mini .zap { animation: zap 2.4s ease-in-out infinite; }
.mini .puff { fill: currentColor; fill-opacity: .55; stroke: none; opacity: 0; }
.present .mini .puff { animation: smoke 3s ease-out infinite; }
.present .mini .p2 { animation-delay: 1s; }
.present .mini .p3 { animation-delay: 2s; }
.mini .ln { stroke-dasharray: 16; stroke-dashoffset: 16; }
.present .mini .ln { animation: write 4s ease-in-out infinite; }
.present .mini .l2 { animation-delay: .5s; }
.present .mini .l3 { animation-delay: 1s; }
.present .mini .l4 { animation-delay: 1.5s; }
.mini .cx { fill: currentColor; fill-opacity: .7; stroke: none; transform-origin: left center; transform: scaleX(0); }
.present .mini .cx { animation: fill-in 4s ease-in-out infinite; }
.present .mini .c2 { animation-delay: .5s; }
.present .mini .c3 { animation-delay: 1s; }
.present .mini .kid { animation: kid 2.4s ease-in-out infinite; }
.present .mini .k2 { animation-delay: .8s; }
.present .mini .k3 { animation-delay: 1.6s; }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .6; } }
@keyframes zap { 0%, 60%, 100% { fill-opacity: .25; transform: scale(1); } 68% { fill-opacity: 1; transform: scale(1.15) rotate(-4deg); } 76% { fill-opacity: .25; transform: scale(1); } 84% { fill-opacity: 1; transform: scale(1.1); } }
@keyframes smoke { 0% { opacity: .8; transform: translate(0, 0) scale(.5); } 100% { opacity: 0; transform: translate(4px, -17px) scale(1.7); } }
@keyframes write { 0% { stroke-dashoffset: 16; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 16; } }
@keyframes fill-in { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes kid { 0%, 55%, 100% { transform: scale(1); } 70% { transform: scale(1.25); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-5px); } }
.pegs { display: flex; flex-direction: column; gap: 10px; }
.floors-k { white-space: nowrap; font-size: 20px; text-transform: uppercase; letter-spacing: .1em; color: var(--ochre); }
.floors-k span { color: rgba(242,242,235,.65); }
.pegrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.peg { display: flex; flex-direction: column; align-items: center; gap: 4px; border-top: 8px solid var(--c); background: rgba(14,24,22,.4); border-radius: 6px; padding: 8px 10px 14px; }
.peg svg { width: 100%; max-width: 230px; height: auto; }
.peg b { display: block; text-align: center; font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; color: var(--c); }
.peg span { display: block; text-align: center; font-size: 24px; color: rgba(242,242,235,.88); }

/* shape-sorter pieces and the MCP plug: plain CSS animations (they only run while the slide is showing) */
.peg .pc { opacity: 0; }
.peg .rot { transform-box: view-box; }
.present .peg .pc { animation: pc-drop 6s ease-in infinite; animation-delay: var(--d, 0s); }
.present .peg .pc.slow { animation-name: pc-slow; animation-timing-function: ease-in-out; }
.present .peg .rot { animation: pc-rot 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.peg .pc.slow .rot { animation-delay: inherit; }
@keyframes pc-drop { 0% { opacity: 1; transform: translateY(-78px); } 15% { opacity: 1; transform: translateY(0); } 15.1%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes pc-slow { 0% { opacity: 1; transform: translateY(-78px); } 6% { opacity: 1; transform: translateY(-36px); } 20% { opacity: 1; transform: translateY(-36px); } 28% { opacity: 1; transform: translateY(0); } 28.1%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes pc-rot { 0%, 6% { transform: rotate(var(--a)); } 20%, 100% { transform: rotate(0deg); } }
.mini.mcp .pl-move { transform: translateX(-6px); }
.present .mini.mcp .pl-move { animation: pl-move 4s ease-in-out infinite; }
.present .mini.mcp .pl-tint { animation: pl-tint 4s linear infinite; }
.present .mini.mcp .pl-spark { animation: pl-spark 4s linear infinite; }
@keyframes pl-move { 0%, 22% { transform: translateX(-6px); } 40%, 75% { transform: translateX(15px); } 90%, 100% { transform: translateX(-6px); } }
@keyframes pl-tint { 0%, 38% { fill-opacity: 0; } 42%, 75% { fill-opacity: .4; } 90%, 100% { fill-opacity: 0; } }
@keyframes pl-spark { 0%, 38% { opacity: 0; } 43% { opacity: 1; } 50%, 100% { opacity: 0; } }
.mini .dot { offset-rotate: 0deg; }
.present .mini .dot { animation: dot-run 2.4s linear infinite; }
.mini .dd2 { animation-delay: .8s !important; }
.mini .dd3 { animation-delay: 1.6s !important; }
@keyframes dot-run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
/* the closing note on the workflow slide sits on the slide itself, not in a box */
#heading .fun-fact { background: none; border-left: 0; padding: 0; border-radius: 0; }
#heading .fun-fact p:not(.fun-k) { font-size: 34px; }

/* Chromium card: the (public domain) Chromium logo, centred on a soft blue glow */
.ring-card.logo { background: radial-gradient(circle at 50% 50%, #3b6db8 0%, #25416e 34%, #16222b 74%); }
.ring-card.logo img { position: absolute; inset: 0; margin: auto; width: auto; height: 62%; object-fit: contain; object-position: center; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }

/* two-by-two cards (why do open source) */
.cards.two { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.cards.two .card { padding: 30px 36px 34px; gap: 12px; }
.cards.two .card h3 { font-size: 46px; }
.cards.two .card p { font-size: 28px; }

/* skill tree: contributing unlocks four branches */
.skilltree svg { width: 100%; height: 570px; display: block; overflow: visible; }
.skilltree .br { fill: none; stroke: var(--c); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; }
.skilltree .sn circle { fill: #17231f; stroke: var(--c); stroke-width: 4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.skilltree .sn text { font-family: var(--mono); font-size: 21px; text-anchor: middle; fill: rgba(242,242,235,.75); opacity: 0; }
.skilltree .bn circle { fill: #17231f; stroke: var(--c); stroke-width: 6; }
.skilltree .bn path { fill: var(--c); }
.skilltree .bn, .skilltree .bt, .skilltree .bd { opacity: 0; }
.skilltree .bn { transform-box: fill-box; transform-origin: center; }
.skilltree .bt { font-family: var(--display); font-weight: 800; font-size: 46px; text-transform: uppercase; fill: var(--c); }
.skilltree .bd { font-size: 29px; fill: rgba(242,242,235,.9); }
.skilltree .root circle { fill: #17231f; stroke: var(--ochre); stroke-width: 6; }
.skilltree .rt { font-family: var(--display); font-weight: 800; font-size: 40px; text-anchor: middle; fill: var(--paper); }
.skilltree .rs { font-family: var(--mono); font-size: 20px; text-anchor: middle; fill: var(--ochre); }
.present .skilltree .br { animation: st-draw 1.1s ease-out var(--d) forwards; }
.present .skilltree .sn circle { animation: st-pop .45s ease-out calc(var(--d) + .3s + var(--k) * .22s) forwards; }
.present .skilltree .sn text { animation: st-fade .4s ease-out calc(var(--d) + .4s + var(--k) * .22s) forwards; }
.present .skilltree .bn { animation: st-pop .6s cubic-bezier(.3,1.6,.5,1) calc(var(--d) + 1.1s) forwards, st-glow 2.6s ease-in-out calc(var(--d) + 1.8s) infinite; }
.present .skilltree .bt, .present .skilltree .bd { animation: st-fade .6s ease-out calc(var(--d) + 1.2s) forwards; }
.present .skilltree .root circle { animation: st-glow 2.6s ease-in-out infinite; }
@keyframes st-draw { to { stroke-dashoffset: 0; } }
@keyframes st-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes st-fade { to { opacity: 1; } }
@keyframes st-glow { 50% { filter: drop-shadow(0 0 14px var(--c, var(--ochre))); } }
.skilltree .xl path { fill: none; stroke: rgba(242,242,235,.5); stroke-width: 3; stroke-dasharray: 5 9; stroke-linecap: round; }
.skilltree .xl { opacity: 0; }
.present .skilltree .xl { animation: st-fade 1.2s ease-out 5.2s forwards; }

/* character sheet: contributing raises your stats */
@property --n { syntax: '<integer>'; inherits: false; initial-value: 0; }
.charsheet { position: relative; align-self: center; width: 100%; background: #17231f; border: 6px solid var(--ochre); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.4); overflow: hidden; }
.cs-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 32px; background: var(--ochre); color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: .14em; }
.cs-lvl { position: relative; display: inline-block; min-width: 110px; text-align: right; }
.cs-lvl b { font-weight: 700; }
.cs-lvl .l2 { position: absolute; right: 0; top: 0; opacity: 0; }
.cs-body { display: grid; grid-template-columns: 210px 1fr 330px; gap: 44px; padding: 40px 48px 46px; align-items: center; }
.cs-avatar { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cs-av { width: 190px; height: auto; image-rendering: pixelated; }
.cs-avatar p { font-size: 22px; letter-spacing: .12em; color: rgba(242,242,235,.6); text-transform: uppercase; }
.cs-stats { display: flex; flex-direction: column; gap: 34px; }
.cs-top { display: flex; align-items: baseline; gap: 22px; }
.cs-top b { font-family: var(--display); font-weight: 800; font-size: 46px; text-transform: uppercase; color: var(--c); min-width: 190px; }
.cs-desc { flex: 1; font-size: 30px; color: rgba(242,242,235,.88); }
.cs-n { font-family: var(--mono); font-size: 40px; color: var(--c); counter-reset: n var(--n); }
.cs-n::after { content: counter(n); }
.cs-bar { position: relative; height: 26px; border-radius: 13px; background: rgba(242,242,235,.12); margin-top: 8px; }
.cs-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 1%); border-radius: 13px; background: var(--c); }
.cs-bar em { position: absolute; right: 0; top: -48px; font-style: normal; font-size: 22px; font-weight: 700; color: var(--ink); background: var(--c); border-radius: 6px; padding: 2px 12px; opacity: 0; }
.cs-stamp-wrap { display: grid; place-items: center; }
.cs-stamp { text-align: center; line-height: 1; font-family: var(--display); font-weight: 800; font-size: 84px; letter-spacing: .06em; color: var(--ochre); border: 8px solid var(--ochre); border-radius: 12px; padding: 12px 26px; transform: rotate(-9deg) scale(1.6); opacity: 0; background: rgba(23,35,31,.92); }
.present .cs-n { animation: cs-count 1.3s ease-out var(--d) forwards; }
.present .cs-bar i { animation: cs-fill 1.3s ease-out var(--d) backwards; }
.present .cs-bar em { animation: cs-pop 1.4s ease-out calc(var(--d) + 1.1s) forwards; }
.present .cs-stamp { animation: cs-stamp .5s cubic-bezier(.3,1.5,.5,1) 5.6s forwards; }
.present .cs-lvl .l1 { animation: cs-out .3s ease 5.5s forwards; }
.present .cs-lvl .l2 { animation: cs-in .3s ease 5.6s forwards; }
@keyframes cs-count { to { --n: var(--v); } }
@keyframes cs-fill { from { width: 0; } }
@keyframes cs-pop { 0% { opacity: 0; transform: translateY(14px); } 20%, 70% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes cs-stamp { to { opacity: 1; transform: rotate(-9deg) scale(1); } }
@keyframes cs-out { to { opacity: 0; } }
@keyframes cs-in { to { opacity: 1; } }

/* D&D-style character sheet (why do open source) */
.dnd { position: relative; align-self: center; width: 100%; background: #efe6cf; color: #2b2118; border: 6px solid #8f1d1d; outline: 3px solid #efe6cf; outline-offset: -14px; border-radius: 10px; padding: 24px 34px 30px; box-shadow: 0 24px 60px rgba(0,0,0,.45); font-family: "Playfair Display", Georgia, serif; }
.dd-top { display: grid; grid-template-columns: 1fr 1.7fr; gap: 28px; align-items: end; padding-bottom: 12px; border-bottom: 3px double #8f1d1d; }
.dd-name b { display: block; font-size: 54px; font-weight: 800; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.dd-name span, .dd-meta > div > span, .dd-pb span, .dd-vitals span { display: block; font-family: var(--mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #8f1d1d; margin-top: 4px; }
.dd-meta { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.dd-meta > div { border-bottom: 2px solid #2b2118; padding-bottom: 2px; }
.dd-meta b { font-size: 28px; font-weight: 700; }
.dd-meta .dd-lv { position: relative; display: inline-block; min-width: 1ch; margin-left: 6px; font: inherit; letter-spacing: 0; text-transform: none; color: #8f1d1d; }
.dd-lv i { font-style: normal; }
.dd-lv i + i { position: absolute; left: 0; top: 0; opacity: 0; }
.dd-grid { display: grid; grid-template-columns: 310px 330px 1fr; gap: 26px; padding-top: 20px; align-items: stretch; }
.dd-abils { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; align-content: space-between; }
.dd-ab { text-align: center; }
.dd-ab p { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #8f1d1d; font-weight: 700; }
.dd-box { position: relative; margin: 4px auto 0; width: 112px; height: 92px; border: 4px solid #2b2118; border-radius: 14px; background: #f8f1de; display: grid; place-items: start center; padding-top: 6px; }
.dd-mod { font-size: 50px; font-weight: 800; line-height: 1.1; opacity: 0; }
.dd-oval { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); min-width: 62px; background: #efe6cf; border: 3px solid #2b2118; border-radius: 999px; font-size: 24px; font-weight: 800; line-height: 1.25; padding: 0 8px; }
.dd-sc { font-style: normal; counter-reset: n var(--n); }
.dd-sc::after { content: counter(n); }
.dd-ab em { display: none; font-style: normal; font-family: var(--display); font-size: 22px; font-weight: 800; text-transform: uppercase; color: var(--c); filter: brightness(.7); margin-top: 22px; line-height: 1; min-height: 22px; }
.dd-skills { border: 3px solid #2b2118; border-radius: 10px; padding: 14px 20px; display: flex; flex-direction: column; gap: 8px; }
.dd-pb { display: flex; align-items: center; gap: 14px; border: 3px solid #2b2118; border-radius: 10px; padding: 4px 12px; background: #f8f1de; }
.dd-pb b { font-size: 36px; font-weight: 800; }
.dd-pb span { margin: 0; }
.dd-h { font-family: var(--mono); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: #8f1d1d; font-weight: 700; }
.dd-skills ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dd-skills li { display: flex; align-items: center; gap: 12px; font-size: 25px; border-bottom: 1px solid rgba(43,33,24,.35); padding-bottom: 2px; }
.dd-skills u { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #2b2118; flex: none; box-sizing: border-box; background: transparent; }
.dd-skills u.on { background: #2b2118; }
.dd-skills u.on { transform: scale(0); }
.dd-right { display: flex; flex-direction: column; gap: 16px; }
.dd-vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dd-vitals > div { border: 3px solid #2b2118; border-radius: 10px; text-align: center; padding: 6px 4px 8px; background: #f8f1de; }
.dd-vitals .dd-ac { border-radius: 10px 10px 40px 40px; }
.dd-vitals b { font-size: 40px; font-weight: 800; line-height: 1.1; }
.dd-feat { position: relative; flex: 1; border: 3px solid #2b2118; border-radius: 10px; padding: 14px 24px 14px; }
.dd-feat ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.dd-feat li { font-size: 29px; line-height: 1.25; border-left: 8px solid var(--c); padding-left: 16px; opacity: 0; }
.dd-feat li b { font-weight: 800; font-style: italic; }
.dd-stamp { position: absolute; right: 22px; bottom: 16px; font-family: var(--display); font-weight: 800; font-size: 66px; letter-spacing: .06em; line-height: 1; color: #8f1d1d; border: 7px solid #8f1d1d; border-radius: 10px; padding: 2px 20px; transform: rotate(-8deg) scale(1.7); opacity: 0; background: rgba(239,230,207,.92); }
.present .dd-sc { animation: dd-roll 1.1s steps(14, end) var(--d) forwards; }
.present .dd-mod { animation: dd-in .3s ease-out calc(var(--d) + 1.1s) forwards; }
.present .dd-feat li { animation: dd-in .5s ease-out calc(.6s + var(--i) * .6s) forwards; }
.present .dd-skills li u.on { animation: dd-dot .35s cubic-bezier(.3,1.6,.5,1) calc(1.2s + var(--i, 0) * .35s) forwards; }
.present .dd-lv i:first-child { animation: dd-out .25s ease 4.6s forwards; }
.present .dd-lv i + i { animation: dd-in .25s ease 4.7s forwards; }
.present .dd-stamp { animation: dd-stamp .5s cubic-bezier(.3,1.5,.5,1) 4.8s forwards; }
@keyframes dd-roll { to { --n: var(--v); } }
@keyframes dd-in { to { opacity: 1; } }
@keyframes dd-out { to { opacity: 0; } }
@keyframes dd-dot { to { transform: scale(1); } }
@keyframes dd-stamp { to { opacity: 1; transform: rotate(-8deg) scale(1); } }

/* dungeons & devs: logo line, category tags in the features, a table-top backdrop */
.dd-logo { font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: .24em; text-transform: uppercase; color: #8f1d1d; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.dd-logo i { font-style: normal; font-family: "Playfair Display", Georgia, serif; font-size: 30px; letter-spacing: 0; }
.dd-logo::before, .dd-logo::after { content: ""; width: 28px; height: 3px; background: #8f1d1d; }
.dd-logo::after { display: none; }
.dd-cat { display: inline-block; font-family: var(--mono); font-style: normal; font-size: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #2b2118; background: var(--c); border-radius: 4px; padding: 2px 10px; margin-right: 12px; vertical-align: 4px; }
.dd-box { border-color: #2b2118; }

/* the sheet itself: aged parchment with mottled fibres, darker burnt edges */
.dnd {
  background-color: #e9dcb8;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .24  0 0 0 0 .1  0 0 0 .22 0'/></filter><rect width='400' height='400' filter='url(%23n)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='b' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .38  0 0 0 0 .16  0 0 0 .38 0'/></filter><rect width='900' height='900' filter='url(%23b)'/></svg>"),
    radial-gradient(ellipse at 50% 50%, #f3e8c8 0%, #e6d6ac 62%, #cdb888 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 70px rgba(110,70,25,.38);
}
.dd-box, .dd-pb, .dd-vitals > div { background: rgba(250,244,226,.7); }
.dd-feat li { font-size: 26px; line-height: 1.3; }
.dd-feat ul { gap: 12px; }
/* only the features & traits bullets animate; the rest of the sheet is already filled in */
.dd-sc { --n: var(--v); }
.dd-mod { opacity: 1; }
.dd-skills u.on { transform: none; }
.dd-lv i:first-child { opacity: 0; }
.dd-lv i + i { opacity: 1; }
.present .dd-sc, .present .dd-mod, .present .dd-skills li u.on, .present .dd-lv i:first-child, .present .dd-lv i + i { animation: none; }
.dd-pb b { position: relative; top: -4px; }
#why.s { padding: 72px var(--pad-x) 110px !important; gap: 14px; }
#proof.s { padding: 72px var(--pad-x) 100px !important; gap: 18px; }
#proof .prcmp { gap: 24px; }
#proof .prcmp img { aspect-ratio: 1272 / 480; }
#proof .fun-fact { padding: 10px 24px 10px 20px; }
#proof .fun-fact p:not(.fun-k) { font-size: 26px; }
