@import url("assets/fonts/fonts.css");

/* ------------------------------------------------------------------
   Through the eyepiece.
   A thin blood smear on a glass slide, read under Giemsa stain.
   Giemsa has two dyes, and the deck uses them as its only data colours:
   azure (methylene blue)  = REAL data
   eosin (pink)            = SYNTHETIC (ChatGPT) data
   ------------------------------------------------------------------ */
:root {
  --glass: #f4f6f5;          /* the slide: cool, faintly green like soda glass */
  --glass-2: #e9eeec;
  --frost: #dfe5e2;          /* the frosted label end */
  --ink: #1c1724;            /* chromatin-dark ink */
  --ink-2: #463d52;
  --ink-3: #6f6779;
  --rule: #cfd6d3;
  --azure: #2b4f9e;          /* methylene blue: real */
  --azure-soft: #dbe3f3;
  --eosin: #c93f78;          /* eosin: synthetic */
  --eosin-soft: #f6dbe6;
  --cell: #eab7c5;           /* an uninfected red cell */
  --chromatin: #4a2477;      /* parasite */
  --pass: #2e7a55;
  --tube: #131016;           /* inside the microscope tube */
  --display: "Brygada 1918", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --data: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --W: 1600px; --H: 900px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--tube); color: var(--ink); font-family: var(--display); font-size: 18px; line-height: 1.5; overflow: hidden; -webkit-font-smoothing: antialiased; font-kerning: normal; }
::selection { background: var(--eosin-soft); color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 3px; }
a { color: var(--azure); text-underline-offset: .18em; text-decoration-thickness: 1px; }

/* ---------- the stage: one 1600x900 glass slide, scaled to the window ---------- */
#viewport { position: fixed; inset: 0; display: grid; place-items: center; }
#stage { width: var(--W); height: var(--H); position: absolute; left: 50%; top: 50%; background: var(--glass); overflow: hidden; transform-origin: center; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
/* a faint smear texture across the whole slide: drawn once into a canvas */
#smear-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }

.slide { position: absolute; inset: 0; padding: 86px 96px 104px; visibility: hidden; opacity: 0; filter: blur(14px); transform: scale(1.012); }
.slide.active { visibility: visible; opacity: 1; filter: blur(0); transform: none; transition: opacity 520ms var(--ease), filter 620ms var(--ease), transform 620ms var(--ease); }
.slide.leaving { visibility: visible; opacity: 0; filter: blur(14px); transform: scale(.992); transition: opacity 260ms ease-in, filter 260ms ease-in, transform 260ms ease-in; }

/* ---------- chrome: slide label (frosted end), fine-focus knob ---------- */
#label { position: absolute; left: 0; top: 0; bottom: 0; width: 40px; background: var(--frost); z-index: 6; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 28px; }
#label span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--data); font-size: 13px; color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; }
#label::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1.2px); background-size: 4px 4px; pointer-events: none; }
#knob { position: absolute; right: 34px; bottom: 26px; z-index: 6; display: flex; align-items: center; gap: 14px; font-family: var(--data); font-size: 14px; color: var(--ink-3); }
#knob .wheel { width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(from 0deg, #2a2530, #4a4452, #2a2530, #4a4452, #2a2530); position: relative; transition: transform 620ms var(--ease); box-shadow: 0 3px 8px rgba(0,0,0,.25), inset 0 0 0 4px rgba(255,255,255,.06); }
#knob .wheel::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(rgba(255,255,255,.18) 0 2deg, transparent 2deg 12deg); mask: radial-gradient(circle, transparent 60%, #000 61%); }
#knob .wheel::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 12px; margin-left: -1.5px; border-radius: 2px; background: var(--eosin); }
#knob button.step { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule); background: var(--glass); display: grid; place-items: center; color: var(--ink-2); transition: border-color 150ms, color 150ms; }
#knob button.step:hover { border-color: var(--ink); color: var(--ink); }
#knob button.step svg { width: 14px; height: 14px; }
#knob .count { font-variant-numeric: tabular-nums; min-width: 54px; text-align: center; }
#knob .count b { color: var(--ink); font-weight: 600; }
#knob .all { border: 1px solid var(--rule); border-radius: 18px; padding: 6px 14px; background: var(--glass); color: var(--ink-2); }
#knob .all:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- type roles ---------- */
.title-xl { font-family: var(--display); font-weight: 500; font-size: 92px; line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.title { font-family: var(--display); font-weight: 500; font-size: 50px; line-height: 1.06; letter-spacing: -.018em; text-wrap: balance; max-width: 980px; }
.deck { font-size: 25px; line-height: 1.38; color: var(--ink-2); text-wrap: pretty; max-width: 34ch; }
p { font-size: 19px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; max-width: 62ch; }
p + p { margin-top: .7em; }
.note { font-family: var(--data); font-size: 14.5px; line-height: 1.45; color: var(--ink-3); max-width: 70ch; }
.fig-num { font-family: var(--data); font-variant-numeric: tabular-nums lining-nums; }
.k { font-family: var(--data); font-size: 15px; color: var(--ink-3); }
.v { font-family: var(--display); font-weight: 500; font-size: 64px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.v.azure { color: var(--azure); } .v.eosin { color: var(--eosin); }
.real { color: var(--azure); } .syn { color: var(--eosin); }
.chip { display: inline-block; width: .72em; height: .72em; border-radius: 50%; vertical-align: .02em; margin-right: .3em; }
.chip.real { background: var(--azure); } .chip.syn { background: var(--eosin); }
.source { position: absolute; left: 96px; bottom: 34px; right: 380px; font-family: var(--data); font-size: 13px; line-height: 1.4; color: var(--ink-3); }

/* ---------- the eyepiece: a circular field of view ---------- */
.eyepiece { position: absolute; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 14px #1b171f, 0 0 0 15px #3a3440, 0 24px 60px rgba(0,0,0,.35); }
.eyepiece::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, transparent 58%, rgba(0,0,0,.18) 80%, rgba(0,0,0,.55) 100%); }
.eyepiece canvas, .eyepiece img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.reticle { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

/* ---------- slide 1 ---------- */
.s1 .eyepiece { width: 760px; height: 760px; right: 70px; top: 70px; }
.s1 .text { position: absolute; left: 96px; top: 150px; width: 640px; }
.s1 .deck { margin-top: 34px; }
.s1 .byline { position: absolute; left: 96px; bottom: 34px; width: 640px; font-family: var(--data); font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.s1 .legend { position: absolute; left: 96px; top: 772px; display: flex; gap: 26px; font-family: var(--data); font-size: 15px; color: var(--ink-2); }

/* ---------- two-column frame ---------- */
.split { display: grid; grid-template-columns: 560px 1fr; gap: 64px; height: 100%; }
.split.wide-left { grid-template-columns: 1fr 620px; }
.col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.figures { display: flex; gap: 48px; margin-top: 8px; }
.figures .k { margin-top: 8px; max-width: 18ch; }

/* ---------- patient dots ---------- */
.patients { display: grid; grid-template-columns: repeat(21, 1fr); gap: 9px; width: 560px; }
.patients i { width: 18px; height: 18px; border-radius: 50%; background: var(--azure-soft); box-shadow: inset 0 0 0 1.5px var(--azure); display: block; transition: background 400ms var(--ease), transform 400ms var(--ease); }
.patients i.test { background: var(--ink); box-shadow: none; }

/* ---------- the generation flow ---------- */
.flow { display: flex; align-items: center; gap: 14px; }
.flow .node { font-family: var(--data); font-size: 14.5px; line-height: 1.3; color: var(--ink-2); max-width: 118px; }
.flow .node b { display: block; font-family: var(--display); font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1.05; margin-bottom: 4px; }
.flow svg.arrow { width: 26px; height: 14px; color: var(--ink-3); }
.prompt { font-family: var(--data); font-size: 15.5px; line-height: 1.55; color: var(--ink-2); padding: 20px 24px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; max-width: 640px; }
.prompt mark { background: var(--eosin-soft); color: var(--ink); padding: 0 3px; border-radius: 2px; }
.prompt mark.vary { background: var(--glass-2); }

/* ---------- spot the fake ---------- */
.spot { display: grid; grid-template-columns: repeat(4, 132px); gap: 14px; }
.spot button { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; position: relative; background: #fdfbfc; box-shadow: 0 0 0 3px transparent; transition: box-shadow 160ms var(--ease), transform 160ms var(--ease); }
.spot button img { width: 100%; height: 100%; display: block; transform: scale(.94); }
.spot button:hover { box-shadow: 0 0 0 3px var(--rule); }
.spot button[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--eosin); }
.spot button .verdict { position: absolute; inset: auto 0 8px 0; text-align: center; font-family: var(--data); font-size: 13px; font-weight: 600; color: var(--ink); text-shadow: 0 0 4px #fff, 0 0 8px #fff; opacity: 0; transition: opacity 300ms; }
.revealed .spot button .verdict { opacity: 1; }
.revealed .spot button.is-real { box-shadow: 0 0 0 4px var(--azure); }
.revealed .spot button.is-syn { box-shadow: 0 0 0 4px var(--eosin); }
.revealed .spot button.missed { outline: 2px dashed var(--ink); outline-offset: 6px; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 20px; font-family: var(--data); font-size: 16px; font-weight: 500; transition: background 150ms, color 150ms; }
.btn:hover { background: var(--ink); color: var(--glass); }
.score-line { font-family: var(--data); font-size: 17px; color: var(--ink-2); min-height: 26px; }

/* ---------- charts ---------- */
svg.chart text { font-family: var(--data); fill: var(--ink-3); font-size: 14px; }
svg.chart .axis { stroke: var(--rule); }
svg.chart .grid { stroke: var(--rule); stroke-dasharray: 2 4; }
svg.chart .bar-line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 5; }
svg.chart .curve { fill: none; stroke: var(--ink); stroke-width: 2.5; }
svg.chart .seed { fill: var(--ink-3); opacity: .45; }
svg.chart .hit { fill: var(--pass); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--eosin), var(--azure)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--eosin), var(--azure)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--glass); border: 2px solid var(--ink); margin-top: -9px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--glass); border: 2px solid var(--ink); }

/* ---------- mix bars (design slide) ---------- */
.mixbars { display: grid; grid-template-columns: 70px 1fr 90px; row-gap: 9px; column-gap: 16px; align-items: center; font-family: var(--data); font-size: 15px; color: var(--ink-2); }
.mixbars .bar { height: 22px; border-radius: 3px; overflow: hidden; display: flex; background: var(--eosin); }
.mixbars .bar span { background: var(--azure); display: block; height: 100%; }
.mixbars .r { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- tables ---------- */
table.data { border-collapse: collapse; font-family: var(--data); font-size: 15.5px; font-variant-numeric: tabular-nums; width: 100%; }
table.data th { font-weight: 500; color: var(--ink-3); text-align: right; padding: 6px 10px; border-bottom: 1.5px solid var(--ink); }
table.data td { text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data tr.pass td { color: var(--ink); font-weight: 600; background: rgba(46,122,85,.09); }
table.data td.no { color: var(--ink-3); }

/* ---------- recommendation memo ---------- */
.memo { background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 34px 40px; max-width: 760px; box-shadow: 0 12px 30px rgba(28,23,36,.08); }
.memo .to { font-family: var(--data); font-size: 15px; color: var(--ink-3); margin-bottom: 14px; }
.memo p { font-size: 18.5px; }
.ledger { display: grid; grid-template-columns: auto auto; gap: 12px 26px; align-items: baseline; font-family: var(--data); font-size: 17px; color: var(--ink-2); }
.ledger .n { font-family: var(--display); font-size: 40px; font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: lining-nums tabular-nums; line-height: 1; }

/* ---------- limits ---------- */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 56px; max-width: 1340px; }
.qa h3 { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--ink); margin-bottom: 8px; }
.qa p { font-size: 17px; }

/* ---------- overview ---------- */
#overview { position: fixed; inset: 0; z-index: 40; background: rgba(19,16,22,.95); display: none; padding: 54px 64px; overflow: auto; }
#overview.open { display: block; }
#overview .head { display: flex; justify-content: space-between; align-items: center; color: #eee; margin-bottom: 26px; font-family: var(--data); }
#overview .head button { border: 1px solid rgba(255,255,255,.35); border-radius: 18px; padding: 6px 16px; color: #eee; }
#overview ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
#overview li button { width: 100%; text-align: left; background: var(--glass); border-radius: 4px; padding: 16px 18px; min-height: 116px; display: flex; flex-direction: column; gap: 6px; transition: transform 150ms var(--ease); }
#overview li button:hover { transform: translateY(-2px); }
#overview li .n { font-family: var(--data); font-size: 13px; color: var(--eosin); }
#overview li .h { font-size: 18px; line-height: 1.25; }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.active, .slide.leaving { filter: none !important; transform: none !important; transition: opacity 200ms linear !important; }
  #knob .wheel { transition: none; }
}

/* ================= v2: composition, plates, motifs ================= */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; height: 100%; }
.grid2.wide-left { grid-template-columns: 1fr 620px; }
.grid2 .col.center { align-items: center; justify-content: center; }
.center-t { text-align: center; }
.k { display: block; }

/* plate: a calibrated specimen frame, hairline box with corner registration marks */
.plate { position: relative; border: 1px solid var(--rule); background: rgba(255,255,255,.62); padding: 18px 22px; border-radius: 2px; }
.plate::before, .plate::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--ink-2); border-style: solid; pointer-events: none; }
.plate::before { left: -5px; top: -5px; border-width: 1.5px 0 0 1.5px; }
.plate::after { right: -5px; bottom: -5px; border-width: 0 1.5px 1.5px 0; }
.plate > .k:first-child { margin-bottom: 6px; color: var(--eosin); font-weight: 500; }
figure.plate { margin: 0; padding: 12px; }
figure.plate img { width: 100%; display: block; }
figure.plate figcaption { font-family: var(--data); font-size: 13.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.4; }
.plate-stack { gap: 26px; }

/* slide 1 */
.s1 .text { top: 132px; }
.answer-strip { position: absolute; left: 96px; top: 640px; width: 620px; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 22px; padding: 18px 24px; }
.answer-strip .v { font-size: 52px; display: block; }
.answer-strip .k { margin-top: 6px; font-size: 14px; line-height: 1.3; }
.s1 .legend { top: 760px; }
.s1 .byline { bottom: 32px; }

/* slide 2: the scanning eyepiece */
.scan-eye { position: relative; width: 600px; height: 600px; }
.scan-readout { display: flex; gap: 40px; margin-top: 30px; font-size: 17px; color: var(--ink-2); }
.scan-readout b { font-family: var(--display); font-size: 40px; font-weight: 500; color: var(--azure); margin-right: 8px; }
.scan-readout b.purple { color: var(--chromatin); }
.decider { margin-top: 18px; max-width: 560px; }
.decider-t { font-size: 22px; line-height: 1.4; color: var(--ink); }

/* slide 3: pipeline strip, patient cells */
.pipeline { display: grid; grid-template-columns: auto 26px auto 26px auto; align-items: center; gap: 12px 14px; margin-top: 8px; max-width: 600px; }
.pipeline figure { margin: 0; text-align: center; }
.pipeline img { height: 96px; display: block; margin: 0 auto 6px; }
.pipeline img.px { image-rendering: pixelated; }
.pipeline figcaption { font-family: var(--data); font-size: 13px; color: var(--ink-3); }
.pipeline .note { grid-column: 1 / -1; margin-top: 4px; }
.pipeline svg.arrow { width: 26px; height: 14px; color: var(--ink-3); }
.patients { width: 620px; gap: 8px; }
.patients i { width: 20px; height: 20px; background: radial-gradient(circle at 50% 50%, #f6dbe6 0 26%, var(--cell) 34% 100%); box-shadow: inset 0 0 0 1.2px rgba(169,85,112,.55); }
.patients i.test { background: radial-gradient(circle at 50% 50%, #5c5266 0 26%, var(--ink) 34% 100%); box-shadow: none; transform: scale(1.04); }
.figures .v { font-size: 58px; }

/* slide 4 */
.hl-class { background: var(--eosin-soft); padding: 0 3px; }
.hl-vary { background: var(--glass-2); padding: 0 3px; }

/* slide 5 */
.btn-row { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.btn.ghost { border-color: var(--rule); }
.spot { grid-template-columns: repeat(4, 150px); gap: 20px; }
.spot button { width: 150px; height: 150px; }
.machine { margin-top: auto; max-width: 560px; opacity: .35; transition: opacity 400ms var(--ease); }
.revealed .machine { opacity: 1; }
.machine-t { font-size: 20px; line-height: 1.45; color: var(--ink); }

/* slide 7 */
.rules { display: grid; gap: 10px; margin-top: 6px; max-width: 600px; }
.rules > div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; font-family: var(--data); font-size: 15.5px; color: var(--ink-2); }
.rules .k { color: var(--eosin); font-size: 15px; }
.mixbars { width: 640px; }

/* slide 8 */
.result-grid { grid-template-columns: 1fr 400px; gap: 48px; }
.chart-plate { padding: 10px 12px 4px; }

/* slide 9 */
.side-notes { gap: 18px; padding-top: 8px; }
.side-notes .plate p:not(.k) { font-size: 16.5px; }

/* slide 11: waffle of the 800 training slots */
.waffle-plate { padding: 24px; }
.waffle { display: grid; grid-template-columns: repeat(32, 1fr); gap: 4px; }
.waffle i { aspect-ratio: 1; border-radius: 50%; display: block; background: var(--eosin); opacity: .9; transform: scale(.2); transition: transform 500ms var(--ease); }
.waffle i.r { background: var(--azure); }
.waffle.on i { transform: scale(1); }
.waffle-key { display: flex; gap: 26px; margin-top: 16px; font-size: 15px; color: var(--ink-2); flex-wrap: wrap; }
.waffle-key b { font-family: var(--display); font-size: 30px; font-weight: 500; margin-right: 6px; }
.memo { max-width: 720px; }

/* slide 12 */
.qa { gap: 26px 34px; max-width: none; grid-template-columns: 1fr 1fr; }
.qa .plate { padding: 22px 26px 22px 92px; min-height: 200px; }
.qa .ico { position: absolute; left: 24px; top: 24px; width: 46px; height: 46px; color: var(--eosin); }
.mosquito-rest { position: absolute; right: 70px; top: 40px; width: 230px; height: 164px; opacity: .9; transform: rotate(-6deg); }

/* slide 13: files as glass slides with frosted label ends */
.slides-box { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.glass { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto auto; height: 74px; background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(233,240,238,.85)); border: 1px solid #c7d2ce; border-radius: 3px; box-shadow: 0 4px 12px rgba(28,23,36,.08); overflow: hidden; max-width: 640px; }
.glass .frost { grid-row: 1 / 3; background: var(--frost); display: grid; place-items: center; font-family: var(--data); font-size: 14px; color: var(--ink-2); background-image: radial-gradient(rgba(0,0,0,.06) 1px, transparent 1.2px); background-size: 4px 4px; }
.glass .name { font-family: var(--data); font-size: 17px; color: var(--ink); padding: 12px 18px 0; font-weight: 500; }
.glass .what { font-size: 15px; color: var(--ink-3); padding: 2px 18px 0; }
.glass::after { content: ""; }
.grid2 .col > .plate + .plate { margin-top: 6px; }

/* the mosquito flight on load: one authored moment */
.mosquito-fly { position: absolute; width: 190px; height: 136px; left: 0; top: 0; z-index: 4; pointer-events: none; opacity: 0; will-change: transform; }
.mosquito-fly.flying .wing, .mosquito-fly.flying use { }
@keyframes buzz { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.35); } }
.mosquito-fly .wing { transform-origin: 250px 108px; }

/* v2 fixes */
.s1 .title-xl { font-size: 84px; }
.s1 .deck { font-size: 22px; margin-top: 28px; max-width: 30ch; }
.answer-strip { top: 700px; }
.s1 .byline { width: 1300px; }
.scan-eye { width: 540px; height: 540px; }
.scan-readout { margin-top: 24px; }
.s1 .byline { max-width: none; width: 1180px; bottom: 26px; }
.answer-strip { top: 668px; }
.mosquito-fly { width: 230px; height: 164px; }
.s1 .byline { width: 980px; }
.fail5 img { max-width: 520px; } .fail5 { align-self: flex-start; }
.qa .plate { min-height: 292px; }
.closing { position: absolute; left: 96px; right: 380px; bottom: 96px; display: grid; grid-template-columns: auto auto auto 1fr; gap: 44px; align-items: end; padding: 20px 28px; }
.closing .v { font-size: 52px; display: block; }
.closing .k { margin-top: 4px; }
.closing-t { font-size: 21px; color: var(--ink); max-width: 30ch; justify-self: end; }

/* presenter timer */
#timer { position: fixed; top: 14px; left: 50%; transform: translate(-50%, -8px); z-index: 60; display: none; align-items: center; gap: 8px; font-family: var(--data); font-size: 16px; font-variant-numeric: tabular-nums; color: #f4f6f5; background: rgba(28,23,36,.88); border-radius: 999px; padding: 6px 14px; cursor: pointer; opacity: 0; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
#timer.show { display: inline-flex; opacity: 1; transform: translate(-50%, 0); }
#timer .lim { color: #b7a8c0; font-size: 13px; }
#timer .dot { width: 8px; height: 8px; border-radius: 50%; background: #6f6779; }
#timer .dot.on { background: var(--eosin); }
#timer.over { background: var(--eosin); }
#timer.over .lim { color: #fff; }
/* cover answer box: one-line labels */
.answer-strip { width: 680px; grid-template-columns: auto auto auto; justify-content: space-between; gap: 30px; top: 698px; }
.answer-strip .k { white-space: nowrap; }

/* slide 7: nested rings + design matrix */
.s7 { grid-template-columns: 1fr 640px; gap: 60px; }
.nest-row { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: center; }
.nest { width: 250px; height: 250px; }
.nest-text p:not(.k) { font-size: 17px; }
.nest-text .k { color: var(--eosin); margin-bottom: 4px; }
.matrix-plate { padding: 22px 24px 18px; }
.matrix { display: grid; grid-template-columns: repeat(10, 1fr); gap: 12px; }
.matrix .colm { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.matrix .stack { display: grid; grid-template-columns: repeat(4, 9px); gap: 3px; }
.matrix .stack i { width: 9px; height: 9px; border-radius: 50%; background: var(--eosin); display: block; transform: scale(.15); transition: transform 420ms var(--ease); }
.matrix .stack i.r { background: var(--azure); }
.matrix.on .stack i { transform: scale(1); }
.matrix .lab { font-family: var(--data); font-size: 14px; color: var(--ink); font-weight: 500; }
.matrix .cnt { font-family: var(--data); font-size: 11.5px; color: var(--ink-3); text-align: center; line-height: 1.25; }
.matrix .seeds { display: grid; grid-template-columns: repeat(5, 7px); gap: 2px; }
.matrix .seeds b { width: 7px; height: 7px; background: var(--ink-2); border-radius: 1px; display: block; }
.matrix-key { display: flex; gap: 22px; margin-top: 16px; font-family: var(--data); font-size: 14px; color: var(--ink-2); }
.matrix-key .sq { display: inline-block; width: 9px; height: 9px; background: var(--ink-2); border-radius: 1px; margin-right: 6px; }
.matrix .stack { grid-template-columns: repeat(4, 11px); gap: 4px; }
.matrix .stack i { width: 11px; height: 11px; }
.matrix .seeds { grid-template-columns: repeat(5, 9px); }
.matrix .seeds b { width: 9px; height: 9px; }

.matrix { gap: 8px; }
.matrix .stack { grid-template-columns: repeat(4, 10px); gap: 3px; }
.matrix .stack i { width: 10px; height: 10px; }
.matrix .seeds { grid-template-columns: repeat(5, 8px); }
.matrix .seeds b { width: 8px; height: 8px; }
.matrix .cnt { font-size: 11px; }
.matrix-plate { overflow: hidden; }
.pat-plate { margin-top: 18px; }
.s7 > .col:last-child { gap: 0; }
