@font-face {
  font-family: "SPELLLENS";
  src: url("assets/fonts/spelllens-9.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #050505;
  --ink: #11110f;
  --paper: #f3f1e9;
  --white: #fffefa;
  --fog: #aaa79f;
  --line: rgba(255, 254, 250, 0.22);
  --signal: #ff4a19;
  --diagnostic: #d9ff43;
  --stage-w: 1920;
  --stage-h: 1080;
  --scale: 1;
  --display: "SPELLLENS", "Arial Black", Impact, sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--black); }
body { color: var(--white); font-family: var(--body); user-select: none; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { display: block; }

#deck { position: fixed; inset: 0; overflow: hidden; background: #000; }
#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--stage-w) * 1px);
  height: calc(var(--stage-h) * 1px);
  transform: translate(-50%, -50%) scale(var(--scale));
  transform-origin: center;
  overflow: hidden;
  background: var(--black);
}
#stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 90;
  opacity: 0.055;
  pointer-events: none;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#slides, .slide { position: absolute; inset: 0; }
.slide {
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--black);
  color: var(--white);
}
.slide[aria-hidden="false"] { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; }
.slide.entering .reveal { animation: hard-rise 220ms cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--delay, 0ms); }
@keyframes hard-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.slide-frame { position: absolute; inset: 0; padding: 104px 88px 74px; }
.slide-header { position: relative; z-index: 10; max-width: 1640px; }
.slide-title {
  margin: 0;
  max-width: 1640px;
  font-family: var(--display);
  font-size: 86px;
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
.slide-title--xl { font-size: 132px; line-height: .87; }
.slide-title--wide { font-size: 74px; }
.slide-thesis {
  margin: 28px 0 0;
  max-width: 1300px;
  font-size: 37px;
  line-height: 1.16;
  font-weight: 590;
  text-wrap: balance;
}
.slide-footer {
  position: absolute;
  z-index: 15;
  left: 88px;
  right: 88px;
  bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  color: var(--fog);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}
.source-line { max-width: 1200px; }
.source-line a { text-decoration: none; border-bottom: 1px solid currentColor; }
.slide-number { color: var(--white); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--display);
  font-size: 25px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.signal { color: var(--signal); }
.diagnostic { color: var(--diagnostic); }
.paper { background: var(--paper); color: var(--ink); }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 16px;
  background: var(--diagnostic);
  color: var(--ink);
  font-family: var(--display);
  font-size: 25px;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

/* 01 — cold open */
.layout-hero-question .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: contrast(1.06); }
.layout-hero-question .hero-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.86) 0 37%, rgba(0,0,0,.15) 66%, rgba(0,0,0,.04)); }
.layout-hero-question .hero-copy { position: absolute; z-index: 4; left: 88px; top: 92px; width: 790px; }
.layout-hero-question .hero-copy .slide-title { margin-top: 250px; font-size: 126px; }
.layout-hero-question .hero-thesis { margin-top: 36px; max-width: 650px; color: rgba(255,255,255,.72); font-size: 30px; line-height: 1.2; }
.layout-hero-question .hero-prompt { position: absolute; z-index: 6; right: 88px; top: 80px; }

/* 02 — annotated evidence */
.layout-annotated-evidence .annotated-photo { position: absolute; inset: 0 0 0 38%; width: 62%; height: 100%; object-fit: cover; object-position: 56% 25%; filter: contrast(1.08); }
.layout-annotated-evidence .evidence-copy { position: absolute; z-index: 4; inset: 0 auto 0 0; width: 48%; padding: 100px 70px 80px 88px; background: linear-gradient(90deg, #050505 0 84%, rgba(5,5,5,0)); }
.layout-annotated-evidence .evidence-copy .slide-title { margin-top: 170px; font-size: 92px; }
.layout-annotated-evidence .evidence-copy .slide-thesis { max-width: 710px; font-size: 31px; }
.annotation { position: absolute; z-index: 8; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 14px; color: var(--diagnostic); font-size: 24px; font-weight: 800; white-space: nowrap; text-transform: uppercase; }
.annotation::before { content: ""; width: 64px; height: 2px; background: currentColor; }
.annotation[data-align="right"] { flex-direction: row-reverse; }
.annotation-dot { width: 12px; height: 12px; background: currentColor; outline: 2px solid var(--black); }
.annotation span { padding: 7px 10px 5px; background: rgba(5,5,5,.9); color: var(--diagnostic); }
.evidence-warning { position: absolute; z-index: 8; left: 88px; bottom: 46px; color: var(--signal); font-size: 24px; font-weight: 900; text-transform: uppercase; }

/* 03 — timeline */
.layout-timeline { background: var(--paper); color: var(--ink); }
.layout-timeline .slide-frame { padding-top: 92px; }
.timeline-rail { position: absolute; left: 88px; right: 88px; top: 470px; height: 365px; border-top: 3px solid var(--ink); display: grid; grid-template-columns: repeat(3, 1fr); }
.timeline-node { position: relative; padding: 28px 34px 0 0; border-right: 1px solid rgba(17,17,15,.28); }
.timeline-node:last-child { border-right: 0; padding-left: 30px; }
.timeline-node::before { content: ""; position: absolute; top: -13px; left: 0; width: 24px; height: 24px; background: var(--ink); }
.timeline-node.signal-node::before { background: var(--signal); }
.timeline-year { font-family: var(--display); font-size: 89px; line-height: .8; }
.timeline-name { margin-top: 24px; font-family: var(--display); font-size: 34px; text-transform: uppercase; }
.timeline-copy { margin-top: 12px; max-width: 420px; font-size: 27px; line-height: 1.18; font-weight: 650; }
.control-line { position: absolute; left: 88px; right: 88px; bottom: 116px; display: grid; grid-template-columns: repeat(3,1fr); color: var(--signal); font-family: var(--display); font-size: 27px; text-transform: uppercase; }
.control-line span::after { content: "→"; float: right; margin-right: 34px; color: var(--ink); }
.control-line span:last-child::after { content: ""; }
.layout-timeline .slide-footer { color: rgba(17,17,15,.65); }
.layout-timeline .slide-number { color: var(--ink); }

/* 04 — prompt era */
.layout-prompt-era .prompt-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.1) brightness(.58); }
.layout-prompt-era::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.94) 0 49%, rgba(5,5,5,.32) 75%, rgba(5,5,5,.12)); }
.prompt-copy { position: absolute; z-index: 5; left: 88px; top: 86px; width: 930px; }
.prompt-copy .slide-title { margin-top: 82px; font-size: 95px; }
.prompt-copy .slide-thesis { max-width: 820px; font-size: 33px; }
.prompt-box { position: absolute; z-index: 7; left: 88px; right: 88px; bottom: 170px; height: 86px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 0 24px; background: rgba(5,5,5,.92); border: 2px solid var(--white); font-size: 28px; box-shadow: 10px 10px 0 var(--signal); }
.prompt-box b { font-family: var(--display); color: var(--signal); font-size: 27px; }
.prompt-loop { position: absolute; z-index: 7; right: 88px; top: 95px; display: flex; gap: 2px; }
.prompt-loop span { padding: 12px 14px; background: var(--paper); color: var(--ink); font-family: var(--display); font-size: 22px; text-transform: uppercase; }

/* 05 — control mosaic */
.layout-control-mosaic .slide-frame { padding-top: 76px; }
.layout-control-mosaic .slide-title { font-size: 77px; }
.layout-control-mosaic .slide-thesis { margin-top: 18px; font-size: 31px; }
.control-panels { position: absolute; left: 88px; right: 88px; top: 340px; bottom: 82px; display: grid; grid-template-columns: 1.1fr .9fr 1fr 1fr; gap: 8px; }
.control-panel { position: relative; overflow: hidden; background: #1a1a18; }
.control-panel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.04); transition: filter .2s; }
.control-panel:nth-child(2) img { object-position: 50% 50%; }
.control-panel:nth-child(3) img, .control-panel:nth-child(4) img { object-position: 50% 22%; }
.control-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.08) 50%, rgba(0,0,0,.82)); }
.control-panel-copy { position: absolute; z-index: 3; left: 24px; right: 24px; bottom: 22px; }
.control-panel-copy b { display: block; font-family: var(--display); font-size: 38px; text-transform: uppercase; }
.control-panel-copy span { display: block; margin-top: 4px; color: var(--diagnostic); font-size: 22px; font-weight: 800; }
.control-panel-copy small { display: block; margin-top: 10px; color: rgba(255,255,255,.68); font-size: 19px; }

/* 06 — layers */
.layout-layers { background: var(--paper); color: var(--ink); }
.layout-layers .slide-title { font-size: 82px; }
.layer-stack { position: absolute; left: 88px; right: 88px; top: 400px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.layer { position: relative; min-height: 360px; padding: 32px 30px; border-right: 3px solid var(--ink); }
.layer:last-child { border-right: 0; background: var(--signal); }
.layer-index { font-family: var(--display); font-size: 26px; }
.layer-name { margin-top: 56px; font-family: var(--display); font-size: 47px; line-height: .92; text-transform: uppercase; }
.layer-copy { margin-top: 20px; font-size: 25px; font-weight: 700; color: rgba(17,17,15,.65); }
.layer-example { position: absolute; left: 30px; bottom: 28px; font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.layer-arrow { position: absolute; z-index: 4; right: -19px; top: 154px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--white); font-size: 27px; }
.layout-layers .slide-footer { color: rgba(17,17,15,.65); }
.layout-layers .slide-number { color: var(--ink); }

/* 07 — contracts */
.layout-contracts .slide-frame { padding-top: 72px; }
.layout-contracts .slide-title { font-size: 75px; }
.layout-contracts .slide-thesis { margin-top: 16px; font-size: 29px; }
.contract-rows { position: absolute; left: 88px; right: 88px; top: 300px; bottom: 82px; display: grid; grid-template-rows: repeat(5, 1fr); border-top: 1px solid var(--line); }
.contract-row { position: relative; display: grid; grid-template-columns: 310px 1fr 690px; align-items: center; min-height: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.contract-row::after { content: ""; position: absolute; inset: 0 0 0 63%; z-index: 0; background: linear-gradient(90deg, var(--black), transparent 20%); pointer-events: none; }
.contract-row img { position: absolute; z-index: -1; inset: 0 0 0 60%; width: 40%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.55); }
.contract-row:nth-child(3) img { object-position: 50% 25%; }
.contract-name { position: relative; z-index: 2; font-family: var(--display); color: var(--signal); font-size: 36px; text-transform: uppercase; }
.contract-question { position: relative; z-index: 2; font-size: 25px; font-weight: 750; }
.contract-models { position: relative; z-index: 2; justify-self: end; max-width: 650px; padding-left: 50px; font-size: 22px; line-height: 1.15; font-weight: 800; text-align: right; }
.contract-models small { display: block; margin-top: 8px; color: rgba(255,255,255,.6); font-size: 18px; font-weight: 750; }

/* 08 — routing */
.layout-routing .slide-frame { padding-top: 78px; }
.layout-routing .slide-title { max-width: 1500px; font-size: 105px; }
.routing-list { position: absolute; left: 88px; right: 88px; top: 480px; border-top: 3px solid var(--white); }
.routing-row { display: grid; grid-template-columns: 370px 110px 430px 1fr; align-items: center; min-height: 108px; border-bottom: 1px solid var(--line); }
.routing-invariant { font-family: var(--display); color: var(--signal); font-size: 35px; text-transform: uppercase; }
.routing-arrow { font-size: 38px; color: var(--diagnostic); }
.routing-need { font-size: 28px; font-weight: 800; }
.routing-route { text-align: right; color: var(--fog); font-size: 24px; font-weight: 700; }

/* 09 — experiment matrix */
.layout-experiment-grid .slide-frame { padding-top: 76px; }
.layout-experiment-grid .slide-title { font-size: 78px; }
.layout-experiment-grid .slide-thesis { margin-top: 18px; font-size: 31px; }
.experiment-status { position: absolute; right: 88px; top: 285px; max-width: 620px; padding: 10px 14px; border: 2px solid var(--diagnostic); color: var(--diagnostic); font-family: var(--display); font-size: 20px; line-height: 1.05; text-transform: uppercase; text-align: right; }
.experiment-table { position: absolute; left: 88px; right: 88px; top: 380px; display: grid; grid-template-columns: 300px repeat(4,1fr); border-top: 3px solid var(--white); border-left: 3px solid var(--white); }
.experiment-cell { min-height: 160px; display: grid; place-items: center; padding: 22px; border-right: 3px solid var(--white); border-bottom: 3px solid var(--white); text-align: center; }
.experiment-cell.header { min-height: 112px; background: var(--paper); color: var(--ink); font-family: var(--display); font-size: 25px; line-height: 1; text-transform: uppercase; }
.experiment-cell.corner { background: var(--signal); }
.experiment-cell.workflow { justify-items: start; place-content: center start; background: #111; text-align: left; }
.experiment-cell.workflow b { font-family: var(--display); color: var(--signal); font-size: 40px; }
.experiment-cell.workflow span { margin-top: 8px; font-size: 21px; color: var(--fog); }
.experiment-cell.slot { position: relative; color: rgba(255,255,255,.38); font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.experiment-cell.slot::after { content: "protocol"; position: absolute; right: 12px; bottom: 9px; color: var(--diagnostic); font-size: 15px; }

/* 10 — canonical packet */
.layout-canonical-packet { background: var(--paper); color: var(--ink); }
.layout-canonical-packet .slide-frame { padding-top: 76px; }
.layout-canonical-packet .slide-title { font-size: 79px; }
.packet-photo { position: absolute; left: 88px; top: 365px; bottom: 88px; width: 580px; object-fit: cover; object-position: 55% 20%; filter: grayscale(1) contrast(1.08); border: 3px solid var(--ink); }
.packet-list { position: absolute; left: 720px; right: 88px; top: 365px; border-top: 3px solid var(--ink); }
.packet-row { display: grid; grid-template-columns: 220px 1fr; align-items: center; min-height: 108px; border-bottom: 1px solid rgba(17,17,15,.35); }
.packet-label { font-family: var(--display); color: var(--signal); font-size: 27px; text-transform: uppercase; }
.packet-value { font-size: 32px; font-weight: 800; }
.layout-canonical-packet .slide-footer { color: rgba(17,17,15,.65); }
.layout-canonical-packet .slide-number { color: var(--ink); }

/* 11 — workflow comparison */
.layout-workflow-compare .slide-frame { padding-top: 76px; }
.layout-workflow-compare .slide-title { font-size: 77px; }
.workflow-columns { position: absolute; left: 88px; right: 88px; top: 365px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.workflow-column { min-height: 360px; padding: 34px 40px; background: var(--paper); color: var(--ink); }
.workflow-column.structured { background: var(--signal); }
.workflow-label { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--ink); padding-bottom: 18px; }
.workflow-label b { font-family: var(--display); font-size: 72px; }
.workflow-label span { font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.workflow-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 42px; }
.workflow-step { position: relative; min-height: 130px; font-size: 24px; line-height: 1.13; font-weight: 800; }
.workflow-step:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 30px; font-size: 32px; }
.edit-test { position: absolute; left: 88px; right: 88px; bottom: 96px; display: grid; grid-template-columns: 1fr 90px 1fr 1.3fr; align-items: center; min-height: 112px; border-top: 3px solid var(--white); border-bottom: 3px solid var(--white); }
.edit-test b { font-family: var(--display); font-size: 38px; text-transform: uppercase; }
.edit-test .to { color: var(--signal); }
.edit-test .arrow { color: var(--diagnostic); font-size: 40px; }
.edit-test small { font-size: 21px; line-height: 1.15; color: var(--fog); }

/* 12 — rubric */
.layout-rubric { background: var(--paper); color: var(--ink); }
.layout-rubric .slide-frame { padding-top: 76px; }
.layout-rubric .slide-title { font-size: 76px; }
.rubric-body { position: absolute; left: 88px; right: 88px; top: 380px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 90px; }
.criteria-list { border-top: 3px solid var(--ink); }
.criterion { display: grid; grid-template-columns: 70px 1fr; align-items: center; min-height: 78px; border-bottom: 1px solid rgba(17,17,15,.32); font-size: 29px; font-weight: 800; }
.criterion span { font-family: var(--display); color: var(--signal); font-size: 25px; }
.score-scale { display: grid; grid-template-columns: repeat(3,1fr); border: 3px solid var(--ink); }
.score-item { min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border-right: 3px solid var(--ink); }
.score-item:last-child { border-right: 0; background: var(--signal); }
.score-item b { font-family: var(--display); font-size: 92px; }
.score-item span { font-size: 20px; line-height: 1.1; font-weight: 800; }
.rubric-status { margin-top: 36px; padding: 18px; background: var(--ink); color: var(--diagnostic); font-family: var(--display); font-size: 30px; text-align: center; text-transform: uppercase; }
.layout-rubric .slide-footer { color: rgba(17,17,15,.65); }
.layout-rubric .slide-number { color: var(--ink); }

/* 13 — method */
.layout-method .slide-frame { padding-top: 76px; }
.layout-method .slide-title { font-size: 87px; }
.method-steps { position: absolute; left: 88px; right: 88px; top: 410px; display: grid; grid-template-columns: repeat(9,1fr); border-top: 3px solid var(--white); }
.method-step { position: relative; min-height: 350px; padding: 34px 18px 20px 0; border-right: 1px solid var(--line); }
.method-step:last-child { border-right: 0; }
.method-step::before { content: ""; position: absolute; top: -12px; left: 0; width: 22px; height: 22px; background: var(--fog); }
.method-step[data-owner="human"]::before { background: var(--signal); }
.method-step[data-owner="model"]::before { background: var(--diagnostic); }
.method-index { font-family: var(--display); color: var(--fog); font-size: 21px; }
.method-name { margin-top: 46px; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-size: 27px; line-height: 1; text-transform: uppercase; }
.method-owner { position: absolute; bottom: 15px; left: 0; color: var(--fog); font-size: 15px; font-weight: 900; text-transform: uppercase; }
.method-step[data-owner="human"] .method-owner { color: var(--signal); }
.method-step[data-owner="model"] .method-owner { color: var(--diagnostic); }

/* 14 — CTA */
.layout-cta { background: var(--signal); color: var(--ink); }
.layout-cta .slide-frame { padding-top: 82px; }
.layout-cta .eyebrow { color: var(--ink); }
.layout-cta .slide-title { max-width: 1660px; font-size: 112px; }
.layout-cta .slide-thesis { max-width: 960px; font-size: 34px; }
.cta-body { position: absolute; left: 88px; right: 88px; top: 530px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; }
.deliverables { border-top: 3px solid var(--ink); }
.deliverable { display: grid; grid-template-columns: 70px 1fr; align-items: center; min-height: 82px; border-bottom: 1px solid rgba(17,17,15,.45); font-size: 28px; font-weight: 850; }
.deliverable span { font-family: var(--display); font-size: 22px; }
.cta-contact { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; border: 3px solid var(--ink); padding: 30px; background: var(--paper); color: var(--ink); }
.cta-contact small { font-size: 23px; line-height: 1.15; font-weight: 750; }
.cta-contact a { font-family: var(--display); font-size: 57px; text-decoration: none; text-transform: uppercase; border-bottom: 5px solid var(--ink); }
.cta-proof { font-size: 20px; font-weight: 800; }
.layout-cta .slide-footer { color: rgba(17,17,15,.7); }
.layout-cta .slide-number { color: var(--ink); }

/* appendix */
.appendix-ribbon { position: absolute; right: 88px; top: 44px; z-index: 20; width: auto; background: var(--diagnostic); color: var(--ink); text-align: center; font-family: var(--display); font-size: 19px; padding: 8px 14px; text-transform: uppercase; }
.map-rows, .glossary-list, .niche-list, .limitation-list { position: absolute; left: 88px; right: 88px; top: 340px; border-top: 3px solid var(--white); }
.map-row, .glossary-row, .niche-row, .limitation-row { display: grid; align-items: center; min-height: 116px; border-bottom: 1px solid var(--line); }
.map-row { grid-template-columns: 340px 1fr; }
.map-row b, .glossary-row b, .niche-row b { font-family: var(--display); color: var(--signal); font-size: 32px; text-transform: uppercase; }
.map-row span { text-align: right; font-size: 28px; line-height: 1.15; font-weight: 750; }
.glossary-row { grid-template-columns: 370px 1fr; }
.glossary-row span, .niche-row span { font-size: 28px; font-weight: 750; }
.niche-row { grid-template-columns: 390px 1fr 520px; }
.niche-row small { text-align: right; color: var(--fog); font-size: 20px; }
.limitation-row { grid-template-columns: 90px 1fr; font-size: 31px; font-weight: 800; }
.limitation-row b { color: var(--signal); font-family: var(--display); font-size: 28px; }

/* chrome + overlays */
#topline { position: fixed; z-index: 130; left: 24px; right: 24px; top: 18px; display: flex; justify-content: space-between; color: rgba(255,255,255,.58); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity .18s; }
body.controls-visible #topline { opacity: 1; }
#chrome { position: fixed; z-index: 140; left: 22px; right: 22px; bottom: 18px; display: flex; gap: 8px; align-items: center; opacity: 0; transform: translateY(12px); transition: opacity .18s, transform .18s; pointer-events: none; }
body.controls-visible #chrome { opacity: 1; transform: none; pointer-events: auto; }
#chrome button, #slide-count { min-width: 46px; height: 44px; display: grid; place-items: center; padding: 0 14px; border: 1px solid #555; background: #111; color: var(--white); font-weight: 900; }
#chrome button { cursor: pointer; }
#chrome button:hover, #chrome button:focus-visible { border-color: var(--diagnostic); outline: 2px solid transparent; }
#slide-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.hit-zone { position: fixed; z-index: 35; top: 0; bottom: 0; width: 17vw; border: 0; background: transparent; cursor: default; pointer-events: none; }
.hit-zone--prev { left: 0; }
.hit-zone--next { right: 0; }
#progress { position: fixed; z-index: 150; left: 0; right: 0; bottom: 0; height: 4px; background: #242424; }
#progress i { display: block; height: 100%; width: 0; background: var(--signal); transition: width .18s; }
#toast { position: fixed; z-index: 220; left: 50%; bottom: 82px; transform: translate(-50%, 12px); opacity: 0; max-width: 680px; padding: 14px 20px; background: var(--diagnostic); color: var(--ink); font-weight: 900; text-align: center; transition: .18s; pointer-events: none; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
#blackout { display: none; position: fixed; z-index: 300; inset: 0; background: #000; }
body.blackout #blackout { display: block; }

#presenter { position: fixed; z-index: 200; top: 20px; right: 20px; width: min(560px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow: auto; padding: 22px; border: 1px solid #555; background: rgba(5,5,5,.97); color: var(--white); box-shadow: 10px 10px 0 rgba(255,74,25,.75); user-select: text; }
.presenter-head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #555; color: var(--diagnostic); font-family: var(--display); font-size: 19px; }
#timer { font-variant-numeric: tabular-nums; }
#timer.warn { color: var(--signal); }
#note-timing { color: var(--fog); font-size: 14px; font-weight: 800; }
#note-copy { font-size: 20px; line-height: 1.42; }
.presenter-help { margin-top: 20px; color: var(--fog); font-size: 13px; }

#overview { position: fixed; z-index: 190; inset: 0; overflow: auto; padding: 40px; background: rgba(0,0,0,.96); color: var(--white); }
#overview header { display: flex; justify-content: space-between; align-items: center; max-width: 1500px; margin: 0 auto 28px; }
#overview h2, #help h2 { margin: 0; font-family: var(--display); font-size: 56px; text-transform: uppercase; }
#overview header button { border: 1px solid #666; background: transparent; padding: 12px 18px; cursor: pointer; }
#overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 1500px; margin: auto; }
.overview-item { aspect-ratio: 16/9; padding: 20px; border: 1px solid #444; background: #111; color: var(--white); text-align: left; cursor: pointer; }
.overview-item:hover, .overview-item:focus-visible, .overview-item.current { border-color: var(--signal); outline: 0; }
.overview-item small { color: var(--signal); font-weight: 900; }
.overview-item strong { display: block; margin-top: 16px; font-family: var(--display); font-size: 20px; line-height: 1.05; text-transform: uppercase; }
.overview-item em { color: var(--diagnostic); font-size: 12px; }

#help { position: fixed; z-index: 210; left: 50%; top: 50%; width: min(740px, calc(100vw - 40px)); transform: translate(-50%,-50%); padding: 34px; border: 2px solid var(--white); background: var(--black); }
#help dl { margin: 28px 0 0; }
#help dl div { display: grid; grid-template-columns: 1fr 1fr; padding: 11px 0; border-top: 1px solid #444; }
#help dt { color: var(--diagnostic); font-weight: 900; }
#help dd { margin: 0; text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 900px), (max-height: 560px) {
  #topline { display: none; }
  #chrome { left: 8px; right: 8px; bottom: 8px; }
  #chrome button:nth-of-type(n+3):nth-of-type(-n+5) { display: none; }
  .hit-zone { width: 24vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  html, body { overflow: visible; background: #fff; }
  #deck { position: static; }
  #stage { position: static; width: 1920px; height: auto; transform: none; }
  .slide { position: relative; width: 1920px; height: 1080px; opacity: 1; visibility: visible; page-break-after: always; }
  #chrome, #topline, #progress, .hit-zone, #presenter, #overview, #help { display: none !important; }
}
