/* ==========================================================================
   Present — theme
   Line-art / warm-orange style. Every slide is a 1920×1080 canvas that
   deck.js scales to fit the window, so all sizes below are canvas pixels.
   ========================================================================== */

@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
/* Chinese: Zev Hei TC 宙黑體 (geometric, HK forms, SIL OFL). The file is built
   per deck by `npm run fonts` with only the characters that deck uses. */
@font-face {
  font-family: "Zev Hei TC";
  src: url("fonts/zev-hei-tc.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+20000-2FA1F;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #fbf8f4;          /* page / slide paper */
  --paper: #ffffff;       /* cards */
  --ink: #141414;         /* text + line art */
  --ink-2: #3d3a37;       /* body text */
  --muted: #8a847d;       /* captions */
  --line: #ebe5de;        /* hairlines */
  --accent: #f26a1f;      /* the orange */
  --accent-ink: #d9530b;  /* orange text on light bg */
  --tint: #fdeee3;        /* peach badge / card wash */
  --tint-2: #fff6ef;      /* lighter wash */
  --code-bg: #171513;

  --font: "Jakarta", "Zev Hei TC", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei",
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --pad-x: 140px;         /* slide side margin */
  --pad-top: 150px;       /* below the chrome bar */
  --pad-bottom: 110px;
  --shadow: 0 2px 0 rgba(20, 20, 20, .03), 0 18px 40px -24px rgba(60, 30, 10, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #ece7e1;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Stage
   -------------------------------------------------------------------------- */
.deck { position: fixed; inset: 0; }

.slide {
  position: absolute;
  left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  margin: -540px 0 0 -960px;
  transform: scale(var(--scale, 1));
  background: var(--bg);
  overflow: hidden;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  font-size: 30px;
  line-height: 1.5;
  color: var(--ink-2);
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.slide.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity .35s ease;
}
.slide > .notes { display: none; }

/* chrome injected by deck.js: logo · section · page number */
.chrome {
  position: absolute; left: var(--pad-x); right: var(--pad-x); top: 56px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 22px; font-weight: 600; color: var(--ink);
  pointer-events: none;
}
.chrome .logo { font-size: 44px; }
.chrome .section { position: relative; color: var(--accent-ink); }
.chrome .section::after {
  content: ""; position: absolute; left: 50%; bottom: -12px;
  width: 22px; height: 4px; margin-left: -11px; border-radius: 4px; background: var(--accent);
}
.foot {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 48px;
  display: flex; justify-content: space-between;
  font-size: 18px; font-weight: 500; color: var(--muted);
  pointer-events: none;
}
.foot .pageno b { color: var(--ink); font-weight: 700; }
.slide.no-chrome .chrome, .slide.no-chrome .foot { display: none; }

.logo { font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.logo i { font-style: normal; color: var(--accent); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: 132px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
h2 { font-size: 68px; font-weight: 800; }
h2.dash { margin-bottom: 40px; }
h3 { font-size: 36px; font-weight: 700; }
h4 { font-size: 28px; font-weight: 700; }
p { margin: 0 0 .7em; }
em, .hl { font-style: normal; color: var(--accent); }
strong { color: var(--ink); font-weight: 700; }
a { color: inherit; }
small, .muted { color: var(--muted); }

/* short orange underline under headings / kickers */
.dash::after, h2.dash::after {
  content: ""; display: block;
  width: 64px; height: 6px; border-radius: 6px;
  background: var(--accent);
  margin-top: 22px;
}
.dash.center::after { margin-left: auto; margin-right: auto; }

.kicker {
  display: inline-block; font-size: 32px; font-weight: 600; color: var(--ink);
}
.kicker.dash::after { width: 44px; height: 5px; margin-top: 10px; }
.eyebrow {
  font-size: 22px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.lead { font-size: 34px; line-height: 1.55; color: var(--ink-2); }
.subtitle { font-size: 38px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; }

code, kbd {
  font-family: var(--mono); font-size: .86em;
  background: var(--tint); color: var(--accent-ink);
  padding: .08em .35em; border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Components
   -------------------------------------------------------------------------- */
.btns { display: flex; gap: 28px; margin-top: 52px; }
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  height: 84px; padding: 0 40px; border-radius: 16px;
  font-size: 28px; font-weight: 700; text-decoration: none;
  border: 3px solid var(--ink); color: var(--ink); background: var(--paper);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn .ico { width: 30px; height: 30px; }

/* icons from the sprite: <svg class="ico"><use href="#rocket"/></svg> */
.ico {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.14em;
}

/* round peach badge holding an icon */
.badge {
  display: grid; place-items: center; flex: none;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--tint); color: var(--ink);
}
.badge .ico { width: 52px; height: 52px; }
.badge.sm { width: 84px; height: 84px; }
.badge.sm .ico { width: 38px; height: 38px; }
.badge.solid { background: var(--accent); color: #fff; }

.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card .media {
  background: var(--tint-2);
  display: grid; place-items: center;
  height: 330px; padding: 30px;
}
.card .media img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.card .body { padding: 34px 40px 40px; }
.card h3 { display: flex; align-items: center; gap: 14px; font-size: 34px; margin-bottom: 14px; }
.card h3 .ico { color: var(--accent); width: 28px; height: 28px; }
.card p { font-size: 25px; line-height: 1.5; }

.tags { display: flex; flex-wrap: wrap; gap: 0; font-size: 21px; font-weight: 600; color: var(--ink-2); margin: 0; padding: 0; list-style: none; }
.tags li + li::before { content: "•"; color: var(--accent); margin: 0 14px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 22px; border-radius: 999px;
  background: var(--tint); color: var(--accent-ink);
  font-size: 22px; font-weight: 700;
}
.pill.ink { background: var(--ink); color: #fff; }

/* bullet list with orange tick marks */
ul.list { list-style: none; margin: 0; padding: 0; }
ul.list > li { position: relative; padding-left: 52px; margin: 0 0 26px; font-size: 32px; line-height: 1.45; }
ul.list > li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 22px; height: 6px; border-radius: 6px; background: var(--accent);
}
ul.list > li strong { display: block; font-size: 34px; margin-bottom: 2px; }

/* icon + label feature list (the “Problem Solver / Detail Oriented” grid) */
.features { display: grid; grid-template-columns: repeat(3, auto); gap: 38px 54px; margin-top: 56px; justify-content: start; }
.features > div { display: flex; align-items: center; gap: 18px; font-size: 26px; font-weight: 700; color: var(--ink); }
.features .ico { width: 42px; height: 42px; color: var(--accent); }

/* tiles (skills & technologies) */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); gap: 30px; }
.tile {
  aspect-ratio: 1 / 1.08;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  font-size: 24px; font-weight: 700; color: var(--ink);
}
.tile .ico { width: 78px; height: 78px; stroke-width: 1.5; }
.tile.hot { background: var(--accent); border-color: var(--accent); color: #fff; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 36px; }
.stat {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 50px 50px 46px; box-shadow: var(--shadow);
}
.stat .value { font-size: 120px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.stat .value small { font-size: .45em; color: var(--accent); letter-spacing: -.02em; }
.stat .label { margin-top: 18px; font-size: 28px; font-weight: 700; color: var(--ink); }
.stat p { margin: 10px 0 0; font-size: 23px; color: var(--muted); }
.stat.hot { background: var(--accent); border-color: var(--accent); }
.stat.hot .value, .stat.hot .label, .stat.hot p, .stat.hot .value small { color: #fff; }

/* --------------------------------------------------------------------------
   Device frames — drop any screenshot inside
   -------------------------------------------------------------------------- */
.browser {
  border: 4px solid var(--ink); border-radius: 22px; background: var(--paper); overflow: hidden;
  box-shadow: 14px 14px 0 var(--tint);
}
.browser::before {
  content: ""; display: block; height: 44px; border-bottom: 4px solid var(--ink);
  background:
    radial-gradient(circle at 26px 50%, var(--accent) 7px, transparent 8px),
    radial-gradient(circle at 52px 50%, var(--ink) 6px, transparent 7px),
    radial-gradient(circle at 76px 50%, var(--ink) 6px, transparent 7px),
    var(--paper);
}
.browser > img, .browser > video, .browser > iframe { display: block; width: 100%; border: 0; }

.monitor { display: flex; flex-direction: column; align-items: center; }
.monitor > .screen {
  width: 100%; border: 14px solid var(--ink); border-radius: 22px; background: var(--paper); overflow: hidden;
}
.monitor > .screen > img { display: block; width: 100%; }
.monitor::after {
  content: ""; width: 26%; height: 70px; margin-top: -2px;
  background:
    linear-gradient(var(--ink), var(--ink)) center top / 18% 52px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center bottom / 100% 14px no-repeat;
  border-radius: 0 0 8px 8px;
}

.phone {
  width: 340px; aspect-ratio: 9 / 19; border: 12px solid var(--ink); border-radius: 52px;
  background: var(--paper); overflow: hidden; position: relative;
  box-shadow: 14px 14px 0 var(--tint);
}
.phone::before {
  content: ""; position: absolute; top: 14px; left: 50%; width: 90px; height: 24px; margin-left: -45px;
  border-radius: 20px; background: var(--ink); z-index: 1;
}
.phone > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.row { display: flex; gap: 60px; }
.col { flex: 1; min-width: 0; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.mt-0 { margin-top: 0 !important; } .mt-s { margin-top: 24px; } .mt-m { margin-top: 48px; } .mt-l { margin-top: 80px; }
.slide > h2, .slide > .head { margin-bottom: 64px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; }
.head .more { font-size: 24px; font-weight: 700; color: var(--ink); display: flex; gap: 14px; align-items: center; text-decoration: none; }
.head .more .ico { color: var(--accent); width: 30px; height: 30px; }

/* --------------------------------------------------------------------------
   Layouts
   -------------------------------------------------------------------------- */

/* Default (no layout-* class): heading + content, centred vertically */
.slide:not([class*="layout-"]) { display: flex; flex-direction: column; justify-content: center; }
.slide.top { justify-content: flex-start; }

/* Hero — text left, illustration right */
.layout-hero { display: grid; grid-template-columns: 1fr 820px; align-items: center; gap: 40px; padding-top: 120px; }
.layout-hero h1 { margin: 26px 0 30px; }
.layout-hero .subtitle { margin-bottom: 40px; }
.layout-hero .lead { max-width: 820px; }
.layout-hero .art { align-self: end; margin-bottom: -20px; }
.layout-hero .art img { width: 100%; display: block; }

/* Section divider */
.layout-section { display: grid; grid-template-columns: 1fr 720px; align-items: center; gap: 80px; background: var(--tint-2); }
.layout-section .num {
  font-size: 260px; font-weight: 800; line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 4px var(--ink);
}
.layout-section .num em { -webkit-text-stroke: 0; color: var(--accent); }
.layout-section h2 { font-size: 104px; margin-top: 50px; letter-spacing: -.04em; }
.layout-section p { margin-top: 30px; max-width: 760px; }
.layout-section .art img { width: 100%; }

/* Split — illustration one side, text the other (the “About me” block) */
.layout-split { display: grid; grid-template-columns: 700px 1fr; gap: 110px; align-items: center; }
.layout-split.flip { grid-template-columns: 1fr 700px; }
.layout-split.flip .art { order: 2; }
.layout-split .art img { width: 100%; display: block; }
.layout-split h2 { margin-bottom: 40px; }

/* Agenda */
.layout-agenda { display: grid; grid-template-columns: 560px 1fr; gap: 120px; align-items: center; }
.layout-agenda .art img { width: 100%; }
.agenda { list-style: none; margin: 50px 0 0; padding: 0; counter-reset: ag; }
.agenda li {
  counter-increment: ag; display: grid; grid-template-columns: 110px 1fr; align-items: center;
  padding: 26px 0; border-bottom: 2px dashed var(--line); font-size: 38px; font-weight: 700; color: var(--ink);
}
.agenda li::before { content: counter(ag, decimal-leading-zero); font-size: 30px; color: var(--accent); font-weight: 800; }
.agenda li span { display: block; font-size: 24px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.agenda li.is-current { color: var(--accent-ink); }

/* Timeline (experience / milestones) */
.timeline { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 50px; margin-top: 30px; }
.timeline .item { display: grid; grid-template-columns: 120px 1fr; gap: 30px; position: relative; }
.timeline .item:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; right: -10px; width: 90px;
  border-top: 3px dashed #e9c8b1;
}
.timeline .item:not(:last-child)::before {
  content: ""; position: absolute; top: 31px; right: -16px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent);
}
.timeline .when { font-size: 23px; font-weight: 700; color: var(--accent-ink); }
.timeline h3 { font-size: 32px; margin: 8px 0 4px; }
.timeline .where { font-size: 22px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.timeline p { font-size: 23px; line-height: 1.55; }

/* Process (01 → 05) */
.process { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); text-align: center; margin-top: 60px; }
.process > div { position: relative; padding: 0 18px; }
.process > div:not(:last-child)::after {
  content: ""; position: absolute; top: 80px; left: calc(50% + 110px); right: calc(-50% + 110px);
  border-top: 3px dashed #e9c8b1;
}
.process .badge { width: 160px; height: 160px; margin: 0 auto 34px; }
.process .badge .ico { width: 64px; height: 64px; }
.process .n { font-size: 26px; font-weight: 800; color: var(--accent); }
.process h3 { font-size: 34px; margin: 6px 0 14px; }
.process p { font-size: 23px; color: var(--muted); line-height: 1.5; }

/* Code */
.layout-code { display: grid; grid-template-columns: 1fr 1.45fr; gap: 80px; align-items: center; }
pre.code {
  margin: 0; background: var(--code-bg); color: #ece6df; border-radius: var(--radius);
  padding: 76px 48px 44px; font-family: var(--mono); font-size: 23px; line-height: 1.6;
  position: relative; overflow: hidden; box-shadow: 18px 18px 0 var(--tint); white-space: pre;
}
pre.code::before {
  content: attr(data-file); position: absolute; left: 0; right: 0; top: 0; height: 52px; padding: 0 0 0 120px;
  line-height: 52px; font-size: 19px; color: #9a918a; border-bottom: 1px solid #2e2a27;
  background:
    radial-gradient(circle at 30px 50%, var(--accent) 7px, transparent 8px),
    radial-gradient(circle at 56px 50%, #4a4440 7px, transparent 8px),
    radial-gradient(circle at 82px 50%, #4a4440 7px, transparent 8px);
}
pre.code code { background: none; color: inherit; padding: 0; font-size: inherit; }
/* hand-tag tokens: <span class="k">const</span> */
pre.code .k { color: #ff9a5c; }       /* keyword */
pre.code .s { color: #b7d98b; }       /* string */
pre.code .c { color: #7c736c; font-style: italic; } /* comment */
pre.code .f { color: #ffd38a; }       /* function */
pre.code .n { color: #8fc7ff; }       /* number / constant */
pre.code .hl-line { display: inline-block; width: calc(100% + 96px); margin: 0 -48px; padding: 0 48px; background: rgba(242, 106, 31, .16); box-shadow: inset 5px 0 0 var(--accent); }

/* Screenshot */
.layout-shot { display: grid; grid-template-columns: 1.55fr 1fr; gap: 90px; align-items: center; }
.callouts { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: co; }
.callouts li { counter-increment: co; display: grid; grid-template-columns: 64px 1fr; gap: 24px; margin-bottom: 34px; font-size: 26px; }
.callouts li::before {
  content: counter(co); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 26px;
}
.callouts strong { display: block; font-size: 30px; }

/* Compare (before / after) */
.compare { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: stretch; }
.compare .side { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 50px; box-shadow: var(--shadow); }
.compare .side.good { border: 3px solid var(--accent); background: var(--tint-2); }
.compare .vs { display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--accent); }
.compare .vs .ico { width: 60px; height: 60px; }
.compare h3 { display: flex; gap: 16px; align-items: center; margin-bottom: 30px; }
.compare ul.list > li { font-size: 28px; margin-bottom: 20px; }
.compare .side:not(.good) ul.list > li::before { background: #cfc7bf; }

/* Chart (inline SVG) */
.chart text { font-family: var(--font); fill: var(--ink-2); }
.chart .axis { stroke: var(--line); stroke-width: 2; }
.chart .bar { fill: var(--ink); }
.chart .bar.hot { fill: var(--accent); }
.chart .val { font-weight: 800; fill: var(--ink); }

/* Quote */
.layout-quote { display: grid; grid-template-columns: 1fr 560px; gap: 100px; align-items: center; }
.layout-quote blockquote { margin: 0; font-size: 66px; font-weight: 700; line-height: 1.22; letter-spacing: -.03em; color: var(--ink); position: relative; }
.layout-quote blockquote::before {
  content: "“"; position: absolute; left: -10px; top: -150px; font-size: 260px; color: var(--accent); line-height: 1;
}
.layout-quote cite { display: block; margin-top: 50px; font-style: normal; font-size: 28px; font-weight: 600; color: var(--muted); }
.layout-quote cite b { color: var(--ink); }
.layout-quote .art img { width: 100%; }

/* Closing */
.layout-closing { display: grid; grid-template-rows: 1fr auto; padding-bottom: 0; }
.layout-closing .top { display: grid; grid-template-columns: 1fr 720px; gap: 80px; align-items: center; }
.layout-closing h2 { font-size: 104px; letter-spacing: -.045em; line-height: 1.04; }
.layout-closing .art img { width: 100%; }
.layout-closing .band {
  margin: 0 calc(-1 * var(--pad-x)); padding: 50px var(--pad-x) 60px;
  background: var(--tint-2); border-top: 2px solid var(--line);
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 60px; align-items: center;
}
.contact { list-style: none; margin: 0; padding: 0; font-size: 26px; font-weight: 600; color: var(--ink); }
.contact li { display: flex; gap: 20px; align-items: center; margin: 10px 0; }
.contact .ico { width: 30px; height: 30px; }
.socials { display: flex; gap: 20px; }
.socials a {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px;
  border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
}
.socials .ico { width: 34px; height: 34px; }

/* Full-bleed accent slide */
.slide.accent { background: var(--accent); color: #fff; }
.slide.accent h1, .slide.accent h2, .slide.accent strong { color: #fff; }
.slide.accent .dash::after { background: #fff; }
.slide.accent .chrome, .slide.accent .chrome .logo, .slide.accent .foot, .slide.accent .foot .pageno b { color: #fff; }
.slide.accent .logo i { color: var(--ink); }
.slide.accent .chrome .section { color: #fff; }
.slide.accent .chrome .section::after { background: #fff; }

/* --------------------------------------------------------------------------
   Builds — add class="step" to reveal on next keypress
   -------------------------------------------------------------------------- */
.step { transition: opacity .3s ease, transform .3s ease; }
.slide .step:not(.is-shown) { opacity: 0; transform: translateY(14px); }
.deck.overview .step, .is-printing .step { opacity: 1 !important; transform: none !important; }

/* --------------------------------------------------------------------------
   UI: progress, help, notes, overview
   -------------------------------------------------------------------------- */
.progress { position: fixed; left: 0; bottom: 0; height: 4px; background: var(--accent); width: 0; transition: width .3s ease; z-index: 10; }

.hud {
  position: fixed; right: 18px; bottom: 16px; z-index: 11;
  display: flex; gap: 8px; opacity: 0; transition: opacity .25s;
}
body:hover .hud, .hud:focus-within { opacity: 1; }
.hud button {
  font: 600 13px var(--font); color: var(--ink); background: rgba(255,255,255,.92);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer;
}
.hud button:hover { border-color: var(--accent); color: var(--accent-ink); }

.notes-panel {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 12;
  width: min(900px, calc(100vw - 32px)); max-height: 34vh; overflow: auto;
  background: rgba(20, 20, 20, .94); color: #f4efe9; border-radius: 16px; padding: 18px 22px;
  font: 400 17px/1.55 var(--font); display: none;
}
.notes-panel.open { display: block; }
.notes-panel b { color: var(--accent); }

.help {
  position: fixed; inset: 0; z-index: 20; display: none; place-items: center; background: rgba(20,20,20,.45);
}
.help.open { display: grid; }
.help > div { background: #fff; border-radius: 20px; padding: 28px 34px; font: 500 16px/1.9 var(--font); color: var(--ink-2); min-width: 340px; }
.help h4 { font-size: 20px; margin-bottom: 8px; }
.help kbd { font-size: 13px; }

/* Overview grid (press O) */
.deck.overview { overflow: auto; padding: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(384px, 1fr)); gap: 28px; align-content: start; background: #ece7e1; }
.deck.overview .frame { position: relative; height: 0; padding-bottom: 56.25%; border-radius: 12px; overflow: hidden; cursor: pointer; outline: 3px solid transparent; box-shadow: 0 8px 24px -12px rgba(0,0,0,.25); }
.deck.overview .frame.is-current { outline-color: var(--accent); }
.deck.overview .frame .slide {
  visibility: visible; opacity: 1; transition: none;
  left: 0; top: 0; margin: 0; transform-origin: 0 0; transform: scale(var(--thumb, .2));
}
.deck.overview .frame::after { content: attr(data-n); position: absolute; left: 10px; bottom: 8px; font: 700 13px var(--font); color: var(--muted); }

/* --------------------------------------------------------------------------
   Print / PDF — one slide per page (use the browser's Save as PDF)
   -------------------------------------------------------------------------- */
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { height: auto; overflow: visible; background: none; }
  .deck { position: static; }
  .frame { break-after: page; page-break-after: always; }
  .slide {
    position: relative; left: 0; top: 0; margin: 0; transform: none !important;
    visibility: visible !important; opacity: 1 !important; transition: none !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .step { opacity: 1 !important; transform: none !important; }
  .progress, .hud, .notes-panel, .help { display: none !important; }
}
