/* HSKB V5 digital tokens. */
:root {
  --navy: #11131a;
  --navy-2: #34414b;
  --yellow: #c7ff3d;
  --cream: #f5f4ee;
  --cream-2: #fbfaf6;
  --ink: #11131a;
  --gray: #505b63;
  --coral: #0e6075;
  --coral-ink: #0e6075;
  --pale-yellow: #edf2df;
  --green: #0e6075;
  --white: #ffffff;
  --line: rgba(17, 19, 26, 0.18);
  --font-sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --font-display: Bahnschrift, Inter, "Arial Narrow", "Microsoft YaHei", sans-serif;
  --font-number: Anton, Impact, "Inter Black", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); color: var(--ink); }
body { min-height: 100vh; margin: 0; font-family: var(--font-sans); }
body.dialog-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--yellow);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--yellow);
  color: var(--navy);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Course hub */
.hub-shell { min-height: 100vh; background: var(--cream); }
.hub-header {
  min-height: 82px;
  padding: 0 clamp(24px, 5vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--navy);
  background: var(--cream-2);
}
.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-lockup > span:last-child { display: flex; flex-direction: column; }
.brand-lockup strong { color: var(--navy); font: 900 17px/1 var(--font-display); letter-spacing: .12em; }
.brand-lockup small { margin-top: 7px; color: var(--gray); font: 800 9px/1 var(--font-display); letter-spacing: .15em; }
.brand-square {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: 2px solid var(--navy);
  border-radius: 12px;
  box-shadow: none;
  color: var(--navy);
  font: 900 24px/1 var(--font-display);
}
.header-meta { display: flex; align-items: center; gap: 28px; color: var(--gray); font: 800 10px/1 var(--font-display); letter-spacing: .12em; }
.header-meta img { width: 48px; height: 48px; object-fit: contain; }
.fullscreen-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid var(--navy); border-radius: 12px; background: var(--cream-2); color: var(--navy); cursor: pointer; font: 900 11px/1 var(--font-display); letter-spacing: .08em; }
.fullscreen-button:hover:not(:disabled), .fullscreen-button[aria-pressed="true"] { background: var(--yellow); color: var(--navy); }
.fullscreen-button:disabled { opacity: .42; cursor: not-allowed; }
.fullscreen-button > span:first-child { font-size: 18px; line-height: 1; }
.fullscreen-button.is-compact { min-height: 100%; padding: 0; }

.hub-hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  border-bottom: 1px solid var(--navy);
}
.hub-intro { align-self: center; padding: clamp(58px, 7vw, 110px) clamp(28px, 7vw, 112px); }
.eyebrow { margin: 0 0 20px; color: var(--navy-2); font: 800 12px/1.2 var(--font-display); letter-spacing: .18em; }
.hub-intro h1 { max-width: 840px; margin: 0; color: var(--navy); font-size: clamp(48px, 6vw, 96px); line-height: .99; letter-spacing: -.028em; font-weight: 900; }
.hub-intro h1 span { display: block; color: var(--coral); }
.hub-lead { max-width: 760px; margin: 30px 0 34px; color: var(--navy-2); font-size: clamp(16px, 1.4vw, 21px); line-height: 1.85; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 14px 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.hub-stats span { display: flex; align-items: baseline; gap: 8px; color: var(--gray); font: 800 10px/1 var(--font-display); letter-spacing: .13em; }
.hub-stats strong { color: var(--navy); font-size: 29px; letter-spacing: 0; }
.hub-poster { position: relative; min-height: 520px; overflow: hidden; padding: 42px; background: var(--yellow); color: var(--navy); border-left: 1px solid var(--navy); isolation: isolate; }
.hub-poster::after { content: ""; position: absolute; z-index: -1; width: 62%; aspect-ratio: 1; right: -12%; bottom: 9%; border: 3px solid var(--navy); border-radius: 50%; }
.poster-kicker { font: 800 10px/1 var(--font-display); letter-spacing: .16em; }
.poster-number { position: absolute; top: 8%; right: -4%; color: var(--coral); font: 900 clamp(180px, 25vw, 400px)/.8 var(--font-number); letter-spacing: -.1em; }
.poster-copy { position: absolute; left: 10%; bottom: 15%; margin: 0; font: 900 clamp(48px, 7vw, 104px)/.77 var(--font-display); letter-spacing: -.06em; }
.poster-foot { position: absolute; right: 38px; bottom: 28px; font: 800 10px/1 var(--font-display); letter-spacing: .15em; writing-mode: vertical-rl; }

.course-index { padding: 88px clamp(24px, 5vw, 78px) 108px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -.04em; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--gray); font-size: 14px; line-height: 1.7; }
.course-list { border-top: 2px solid var(--navy); }
.empty-state { margin: 0; padding: 34px 0; color: var(--gray); font-size: 16px; line-height: 1.6; }
.course-row {
  min-height: 172px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 90px 150px;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--navy);
  transition: background .2s ease, padding .2s ease;
}
.course-row:hover { padding-inline: 18px; background: var(--cream-2); }
.course-number { color: var(--coral); font: 900 48px/1 var(--font-number); letter-spacing: -.05em; }
.course-row > div:nth-child(2) > p { margin: 0 0 9px; color: var(--gray); font: 800 10px/1 var(--font-display); letter-spacing: .14em; }
.course-row h3 { margin: 0 0 11px; color: var(--navy); font-size: clamp(23px, 2.4vw, 36px); line-height: 1.2; letter-spacing: -.025em; }
.course-row h3 + span { color: var(--gray); font-size: 14px; line-height: 1.6; }
.course-count { text-align: center; color: var(--navy); }
.course-count strong { display: block; font: 900 35px/1 var(--font-number); }
.course-count span { font: 800 9px/1 var(--font-display); letter-spacing: .14em; }
.course-enter { min-height: 48px; display: grid; grid-template-columns: 1fr auto; place-items: center; padding: 0 16px; background: var(--navy); color: var(--white); font-size: 14px; font-weight: 800; }
.course-enter:hover { background: var(--yellow); color: var(--navy); }
.hub-footer { padding: 27px clamp(24px, 5vw, 78px); display: flex; justify-content: space-between; gap: 20px; background: var(--navy); color: var(--white); font: 800 10px/1 var(--font-display); letter-spacing: .13em; }

/* Deck shell */
.deck-shell { height: 100dvh; min-height: 590px; overflow: hidden; background: #d9dbd7; }
.deck-header {
  position: relative;
  z-index: 10;
  height: 68px;
  display: grid;
  grid-template-columns: auto minmax(180px, 330px) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 3vw, 46px);
  background: var(--cream-2);
  border-bottom: 1px solid var(--navy);
}
.deck-header > *, .deck-controls > * { min-width: 0; }
.deck-brand { align-self: stretch; display: flex; border-inline: 1px solid var(--navy); }
.deck-brand span { width: 54px; display: grid; place-items: center; background: var(--yellow); color: var(--navy); font: 900 26px/1 var(--font-display); }
.deck-brand b { width: 48px; display: grid; place-items: center; color: var(--navy); font: 900 14px/1 var(--font-display); }
.deck-title { min-width: 0; display: flex; flex-direction: column; }
.deck-title small { margin-bottom: 5px; color: var(--gray); font: 800 8px/1 var(--font-display); letter-spacing: .15em; }
.deck-title strong { overflow: hidden; color: var(--navy); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.deck-progress { height: 4px; overflow: hidden; background: rgba(0, 48, 87, .12); }
.deck-progress div { height: 100%; background: var(--coral); transition: width .25s ease; }
.deck-logo { width: 52px; height: 52px; object-fit: contain; }
.deck-stage { height: calc(100dvh - 132px); min-height: 458px; display: grid; place-items: center; padding: clamp(10px, 1.5vw, 22px); }
.slide-canvas { position: relative; width: min(100%, calc((100dvh - 166px) * 1.7778)); max-height: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-2); border: 1px solid rgba(17, 19, 26, .28); border-radius: 14px; box-shadow: 0 16px 36px rgba(17, 19, 26, .13); }
.canvas-code { position: absolute; right: 22px; bottom: 12px; color: rgba(0, 48, 87, .58); font: 800 7px/1 var(--font-display); letter-spacing: .14em; }

/* Cover and section */
.cover-slide { display: grid; grid-template-columns: minmax(0, 1fr) 31%; }
.cover-main { position: relative; padding: 8% 7% 7%; background: var(--cream-2); }
.slide-kicker { margin: 0; color: var(--coral-ink); font: 800 clamp(10px, .78vw, 13px)/1.2 var(--font-display); letter-spacing: .14em; }
.cover-main h1 { max-width: 94%; margin: 4.2% 0 3.5%; color: var(--navy); font-size: clamp(34px, 5.35vw, 84px); line-height: 1.04; letter-spacing: -.028em; font-weight: 900; }
.cover-description { max-width: 78%; margin: 0; color: var(--navy-2); font-size: clamp(12px, 1.35vw, 21px); line-height: 1.65; }
.cover-note { max-width: 76%; margin: 2.5% 0 0; color: var(--gray); font-size: clamp(9px, .78vw, 13px); line-height: 1.55; }
.cover-route { position: absolute; left: 7%; bottom: 8%; display: flex; align-items: center; gap: 10px; color: var(--navy); font: 800 clamp(7px, .62vw, 10px)/1 var(--font-display); letter-spacing: .14em; }
.cover-route i { width: clamp(18px, 3vw, 54px); height: 1px; background: var(--navy); }
.cover-rail { position: relative; padding: 8% 9%; display: flex; flex-direction: column; overflow: hidden; background: var(--navy); color: var(--white); }
.cover-rail::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; right: -30%; top: 19%; border: 2px solid var(--yellow); border-radius: 50%; opacity: .74; }
.cover-rail > span { color: var(--yellow); font: 800 clamp(7px, .7vw, 11px)/1 var(--font-display); letter-spacing: .16em; }
.cover-rail > strong { margin: auto 0 0; color: var(--yellow); font: 900 clamp(80px, 13vw, 200px)/.74 var(--font-number); letter-spacing: -.12em; }
.cover-rail > p { max-width: 94%; margin: 8% 0; font-size: clamp(10px, 1vw, 16px); line-height: 1.6; font-weight: 800; }
.cover-rail > div { display: flex; justify-content: space-between; padding-top: 8%; border-top: 1px solid rgba(255,255,255,.35); font: 800 clamp(6px, .55vw, 9px)/1 var(--font-display); letter-spacing: .12em; }

.section-slide { padding: 7% 7% 6%; display: grid; grid-template-rows: auto 1fr auto auto; background: var(--navy); color: var(--white); }
.section-slide > p { margin: 0; color: var(--yellow); font: 800 clamp(8px, .8vw, 13px)/1 var(--font-display); letter-spacing: .16em; }
.section-slide > strong { align-self: center; color: rgba(244, 237, 31, .16); font: 900 clamp(150px, 23vw, 360px)/.7 var(--font-number); letter-spacing: -.12em; }
.section-slide h1 { max-width: 82%; margin: 0; color: var(--white); font-size: clamp(36px, 5vw, 78px); line-height: 1.08; letter-spacing: -.045em; }
.section-slide > span { max-width: 72%; margin-top: 2%; color: #d7e0e8; font-size: clamp(12px, 1.25vw, 20px); line-height: 1.6; }
.section-slide img { position: absolute; right: 6%; bottom: 7%; width: 15%; }

/* Content slides */
.standard-slide { height: 100%; display: grid; grid-template-rows: auto 1px minmax(0, 1fr); padding: 5% 5.7% 4.2%; }
.standard-slide > header { display: grid; gap: 2%; padding-bottom: 2.3%; }
.standard-slide > header h1 { max-width: 96%; margin: 0; color: var(--navy); font-size: clamp(24px, 3.35vw, 53px); line-height: 1.14; letter-spacing: -.045em; }
.slide-rule { background: var(--navy); }
.slide-body { min-height: 0; padding-top: 3.1%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.4%; }
.with-images .slide-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.standard-slide, .slide-body, .content-grid, .image-mosaic { min-width: 0; width: 100%; }
.standard-slide > header h1 { overflow-wrap: anywhere; word-break: break-word; line-break: strict; }
.content-grid { min-height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(6px, .7vw, 12px); align-content: start; overflow: auto; padding-right: 4px; }
.content-block { min-width: 0; padding: clamp(9px, 1vw, 17px); border-top: 3px solid var(--navy); border-radius: 10px; background: var(--cream); color: var(--ink); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.55; overflow-wrap: anywhere; }
.content-block p { margin: 0; }
.content-block > strong:first-child { display: block; margin-bottom: 8px; color: var(--navy); font: 900 clamp(11px, 1vw, 16px)/1 var(--font-display); letter-spacing: .04em; }
.content-block ul { margin: 0; padding-left: 1.25em; }
.content-block li + li { margin-top: .42em; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }
.tone-key { background: var(--navy); color: var(--white); border-top-color: var(--yellow); }
.tone-key > strong:first-child { color: var(--yellow); }
.tone-danger { border-top-color: var(--coral); }
.tone-safe { border-top-color: var(--green); }
.tone-caution { border-top-color: #9f8700; background: var(--pale-yellow); }
.metric { display: flex; min-height: 118px; flex-direction: column; justify-content: space-between; }
.metric strong { color: var(--navy); font: 900 clamp(28px, 3.4vw, 54px)/.92 var(--font-number) !important; letter-spacing: -.04em !important; }
.metric span { color: var(--gray); font: 800 clamp(8px, .72vw, 12px)/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.tone-key.metric strong { color: var(--yellow); }
.tone-key.metric span { color: var(--white); }
.step strong { color: var(--coral-ink) !important; }
blockquote.content-block { margin: 0; color: var(--navy); font-size: clamp(14px, 1.5vw, 24px); font-weight: 900; }

.image-mosaic { min-height: 0; display: grid; gap: clamp(6px, .7vw, 11px); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.image-mosaic--1 { grid-template-columns: 1fr; }
.image-mosaic--3, .image-mosaic--5, .image-mosaic--7 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.image-mosaic--3 .image-frame:first-child, .image-mosaic--5 .image-frame:first-child { grid-column: span 2; }
.image-mosaic--7 .image-frame:first-child { grid-column: span 2; grid-row: span 2; }
.image-frame { position: relative; min-width: 0; min-height: 0; overflow: hidden; padding: 0; border: 1px solid var(--navy); border-radius: 10px; background: var(--white); cursor: zoom-in; }
.image-frame img { display: block; width: 100%; height: 100%; }
.image-frame span { position: absolute; left: 0; bottom: 0; padding: 5px 8px; background: var(--yellow); color: var(--navy); font: 900 clamp(7px, .58vw, 10px)/1 var(--font-display); }
.image-frame:hover { box-shadow: inset 0 0 0 3px var(--yellow); }

.deck-controls { position: relative; z-index: 10; height: 64px; padding: 0 clamp(18px, 3vw, 46px); display: grid; grid-template-columns: 54px 94px minmax(120px, 1fr) 64px 78px 54px; align-items: stretch; background: var(--navy); color: var(--white); }
.deck-controls button { min-width: 0; padding: 0; border: 0; border-left: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--white); cursor: pointer; font-weight: 900; }
.deck-controls button:last-child { border-right: 1px solid rgba(255,255,255,.2); }
.deck-controls button:hover:not(:disabled) { background: var(--yellow); color: var(--navy); }
.deck-controls button:disabled { opacity: .3; cursor: default; }
.page-counter { display: flex; align-items: baseline; justify-content: center; gap: 5px; border-left: 1px solid rgba(255,255,255,.2); }
.page-counter strong { color: var(--yellow); font: 900 23px/1 var(--font-number); }
.page-counter span { color: rgba(255,255,255,.72); font: 800 9px/1 var(--font-display); }
.deck-controls input[type="range"] { min-width: 0; width: calc(100% - 48px); margin: auto 24px; accent-color: var(--yellow); cursor: pointer; }

/* Dialogs */
.dialog-scrim { position: fixed; z-index: 40; inset: 0; background: rgba(0, 24, 43, .7); }
.outline-dialog { position: fixed; z-index: 45; top: 0; right: 0; width: min(480px, 94vw); height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--cream-2); box-shadow: -20px 0 60px rgba(0, 24, 43, .35); }
.outline-dialog > header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; background: var(--navy); color: var(--white); }
.outline-dialog header small { color: var(--yellow); font: 800 9px/1 var(--font-display); letter-spacing: .15em; }
.outline-dialog h2 { margin: 8px 0 0; font-size: 20px; }
.icon-button { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.6); background: transparent; color: var(--white); font-size: 28px; cursor: pointer; }
#outline-body { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.course-switcher { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); border-bottom: 1px solid var(--navy); }
.course-switcher a { min-height: 54px; display: grid; place-items: center; border-right: 1px solid var(--navy); color: var(--gray); font: 900 15px/1 var(--font-display); }
.course-switcher a:last-child { border-right: 0; }
.course-switcher a[aria-current="page"] { background: var(--yellow); color: var(--navy); }
.outline-list { margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.outline-list li { border-bottom: 1px solid var(--line); }
.outline-list a { min-height: 58px; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; align-items: start; padding: 17px 22px; }
.outline-list a:hover { background: var(--cream); }
.outline-list a[aria-current="page"] { background: var(--yellow); }
.outline-list span { color: var(--coral-ink); font: 900 12px/1.4 var(--font-number); }
.outline-list strong { color: var(--navy); font-size: 14px; line-height: 1.45; }

.lightbox { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 7vh 5vw 11vh; background: rgba(0, 24, 43, .95); }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; background: var(--white); box-shadow: 0 0 0 1px rgba(255,255,255,.45); }
.lightbox-close { position: absolute; top: 20px; right: 24px; }
.lightbox p { position: absolute; bottom: 24px; left: 50%; width: min(760px, 84vw); margin: 0; transform: translateX(-50%); color: var(--white); text-align: center; font-size: 14px; line-height: 1.5; }

@media (max-width: 900px) {
  .header-meta > span { display: none; }
  .hub-hero { grid-template-columns: 1fr; }
  .hub-poster { min-height: 390px; border-left: 0; border-top: 1px solid var(--navy); }
  .course-row { grid-template-columns: 66px minmax(0,1fr) 76px; }
  .course-enter { grid-column: 2 / 4; justify-self: start; min-width: 190px; }
  .deck-header { grid-template-columns: auto minmax(110px, 250px) 1fr auto; gap: 14px; }
  .deck-logo { width: 96px; }
}

@media (max-width: 640px) {
  .hub-header { min-height: 68px; padding-inline: 16px; }
  .brand-lockup > span:last-child { display: none; }
  .brand-square { width: 38px; height: 38px; box-shadow: 3px 3px 0 var(--navy); }
  .header-meta img { width: 42px; height: 42px; }
  .header-meta { gap: 12px; }
  .header-meta > span { display: none; }
  .fullscreen-button { min-width: 42px; padding: 0 10px; }
  .fullscreen-label { display: none; }
  .hub-intro { padding: 60px 24px 66px; }
  .hub-intro h1 { font-size: 48px; }
  .hub-poster { min-height: 330px; padding: 28px 24px; }
  .poster-number { font-size: 190px; }
  .poster-copy { font-size: 52px; }
  .course-index { padding: 66px 20px 82px; }
  .section-heading { align-items: start; flex-direction: column; }
  .course-row { grid-template-columns: 48px minmax(0,1fr); gap: 16px; padding: 24px 0; }
  .course-number { font-size: 34px; }
  .course-count { display: none; }
  .course-enter { grid-column: 2; min-width: 0; width: 100%; }
  .hub-footer { flex-direction: column; }

  .deck-shell { min-height: 560px; }
  .deck-header { height: 58px; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; padding: 0 12px; }
  .deck-brand b, .deck-progress { display: none; }
  .deck-brand span { width: 46px; }
  .deck-logo { width: 78px; }
  .deck-stage { height: calc(100dvh - 116px); min-height: 444px; padding: 8px; }
  .slide-canvas { width: 100%; height: 100%; aspect-ratio: auto; overflow-x: hidden; overflow-y: auto; }

  .cover-slide { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) 31%; }
  .cover-main { padding: 10% 8%; }
  .cover-main h1 { margin-top: 8%; font-size: clamp(36px, 11.5vw, 62px); }
  .cover-description { max-width: 96%; font-size: 16px; }
  .cover-note { max-width: 96%; font-size: 12px; }
  .cover-rail { padding: 6% 8%; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; }
  .cover-rail > span, .cover-rail > div { display: none; }
  .cover-rail > strong { margin: 0; font-size: 74px; }
  .cover-rail > p { margin: 0; font-size: 13px; }

  .section-slide { min-height: 100%; padding: 10% 8%; }
  .section-slide > strong { font-size: 180px; }
  .section-slide h1 { max-width: 100%; font-size: clamp(38px, 10vw, 56px); }
  .section-slide > span { max-width: 92%; font-size: 16px; }
  .section-slide img { width: 30%; right: 8%; bottom: 8%; }

  .standard-slide { min-height: 100%; height: auto; padding: 8% 6% 6%; }
  .standard-slide > header h1 { font-size: clamp(27px, 7.2vw, 39px); }
  .slide-body, .with-images .slide-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(180px, 1fr); gap: 14px; }
  .content-grid { overflow: visible; }
  .content-block { padding: 10px; font-size: 15px; line-height: 1.48; }
  .span-2, .span-3, .span-4 { grid-column: span 6; }
  .span-6, .span-12 { grid-column: span 12; }
  .metric { min-height: 100px; }
  .metric strong { font-size: 34px !important; }
  .image-mosaic { min-height: 220px; }
  .canvas-code { display: none; }

  .deck-controls { height: 58px; padding: 0; grid-template-columns: 42px 54px minmax(0,1fr) 46px 54px 42px; }
  .deck-controls input[type="range"] { width: calc(100% - 12px); margin-inline: 6px; }
  .page-counter strong { font-size: 20px; }
}

@media (max-height: 600px) and (orientation: landscape) {
  .deck-shell { height: 100dvh; min-height: 0; }
  .deck-header { height: 48px; min-height: 48px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding-inline: 12px; }
  .deck-brand b, .deck-progress, .deck-title small { display: none; }
  .deck-brand span { width: 44px; }
  .deck-logo { width: 72px; height: 40px; }
  .deck-stage { height: calc(100dvh - 100px); min-height: 0; padding: 6px; }
  .slide-canvas { width: min(100%, calc((100dvh - 112px) * 1.7778)); height: auto; aspect-ratio: 16 / 9; overflow: hidden; }
  .deck-controls { height: 52px; padding: 0; grid-template-columns: 42px 54px minmax(0, 1fr) 46px 54px 42px; }
  .deck-controls input[type="range"] { width: calc(100% - 12px); margin-inline: 6px; }
}

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

:fullscreen .deck-shell, :fullscreen .hub-shell { min-height: 100vh; }
:fullscreen .deck-shell { height: 100vh; }
:-webkit-full-screen .deck-shell, :-webkit-full-screen .hub-shell { min-height: 100vh; }
:-webkit-full-screen .deck-shell { height: 100vh; }
