/* Zealously — site styles. Tokens follow the Zealously brand sheet. */
:root {
  --navy-900: #0F2438;
  --navy-800: #15314C;
  --navy-600: #244A72;
  --gold: #D0AC54;
  --gold-light: #E7CF93;
  --gold-ink: #8A6A1F;         /* gold dark enough for text on white (5:1) */
  --cream: #F6F3EC;
  --rose: #EBB9B9;

  --ink: #0F2438;
  --ink-body: #2B3E52;
  --ink-muted: #4E6378;
  --line: #E3E8EE;
  --paper: #FFFFFF;

  --on-navy: #FFFFFF;
  --on-navy-body: #DCE4EC;
  --on-navy-muted: #9FB0C2;

  --bg-navy: radial-gradient(125% 90% at 50% 6%, #244A72 0%, #15314C 46%, #0F2438 100%);

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .7, .24, 1);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --focus: #244A72;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-navy { --focus: var(--gold-light); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Shared type ---------- */
.eyebrow {
  margin: 0;
  font: 700 13px/1.2 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.on-navy .eyebrow { color: var(--gold); }
.rule { display: block; width: 72px; height: 3px; background: var(--gold); border-radius: 2px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head h2 {
  margin: 14px 0 20px;
  font: 500 clamp(32px, 4.4vw, 52px)/1.08 var(--serif);
  letter-spacing: -.01em;
}
.section-head .rule { margin: 0 auto; }
.section-head p:not(.eyebrow) { margin-top: 20px; color: var(--ink-muted); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  font: 700 15px/1 var(--sans); letter-spacing: .02em;
  text-decoration: none;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s, color .2s;
  touch-action: manipulation;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 28px -12px rgba(208, 172, 84, .7); }
.btn-gold:hover { background: #DCBA65; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-600); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--on-navy);
  --focus: var(--gold-light);
  transition: transform .35s var(--ease), background-color .25s, box-shadow .25s, color .25s;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
  --focus: var(--navy-600);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header:focus-within { transform: none; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-height: 44px; }
.brand-badge {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream); box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: background-color .25s, box-shadow .25s;
}
.brand-badge img { width: auto; height: 27px; }
.is-solid .brand-badge { background: transparent; box-shadow: none; }
.brand-word { font: 500 26px/1 var(--serif); letter-spacing: -.005em; }

.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font: 600 15px/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; opacity: .86;
  transition: opacity .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px;
  height: 2px; border-radius: 2px; background: var(--gold);
}

@media (max-width: 400px) {
  .brand { gap: 10px; }
  .brand-word { font-size: 23px; }
  .site-nav a { padding: 0 10px; }
  .site-nav a[aria-current="page"]::after { left: 10px; right: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-navy);
  color: var(--on-navy);
  min-height: min(100svh, 940px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + clamp(28px, 6vw, 64px)) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero-copy { max-width: 560px; }
.hero-title {
  margin: 18px 0 0;
  color: #fff;
  font: 500 clamp(64px, 21vw, 104px)/.95 var(--serif);
  letter-spacing: -.02em;
}
.hero .rule { margin: 28px 0 26px; width: 96px; }
.hero-tagline {
  font: 400 clamp(24px, 6.4vw, 34px)/1.25 var(--serif);
  color: #fff;
}
.hero-tagline .gold { color: var(--gold-light); }
.hero-tagline .dot { color: var(--gold); padding-left: .28em; }
.hero-tagline .nw { white-space: nowrap; }
.hero-cta { margin-top: 36px; }

.hero-media { min-width: 0; }
.hero-media .stage { box-shadow: 0 40px 80px -30px rgba(3, 10, 20, .8), 0 0 0 1px rgba(255, 255, 255, .1); }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .hero-title { font-size: clamp(76px, 7.6vw, 116px); }
  .hero-tagline { font-size: clamp(26px, 2.3vw, 34px); }
}
@media (max-width: 959px) {
  .hero { min-height: 0; }
  .hero-media { margin: 0 calc(var(--gutter) * -1 + 8px); }
}

/* ---------- Animated stages (1920×1080 compositions scaled to fit) ---------- */
.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(12px, 1.6vw, 20px);
  background: var(--navy-900);
  isolation: isolate;
}
.stage-toggle {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15, 36, 56, .55); color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  opacity: .55; transition: opacity .2s, background-color .2s;
  --focus: var(--gold-light);
}
.stage-toggle:hover, .stage-toggle:focus-visible { opacity: 1; background: rgba(15, 36, 56, .85); }
.stage-toggle svg { width: 16px; height: 16px; }
.stage-toggle .i-play { display: none; }
.stage-toggle[aria-pressed="true"] .i-play { display: block; }
.stage-toggle[aria-pressed="true"] .i-pause { display: none; }
.stage.is-static .stage-toggle { display: none; }
@media (max-width: 600px) {
  .stage-toggle { right: 6px; bottom: 6px; width: 32px; height: 32px; }
  .stage-toggle svg { width: 13px; height: 13px; }
}

.cv {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  transform: scale(var(--s, .3));
  background: var(--bg-navy);
  color: #E8EEF3;
  font-family: var(--sans);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.cv-box { position: absolute; inset: 0; display: flex; flex-direction: column; will-change: transform; }
.cv [data-slide] { will-change: transform, opacity; }
.cv-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cv-badge {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); box-shadow: 0 12px 34px rgba(0, 0, 0, .30);
}
.cv-badge img { width: auto; height: 40px; }
.cv-eyebrow { margin-top: 22px; font: 700 24px/1 var(--sans); letter-spacing: .3em; color: var(--gold); }
.cv-title { margin: 18px 0 0; text-align: center; font: 500 66px/1.02 var(--serif); letter-spacing: -.01em; color: #fff; }
.cv-rule { width: 120px; height: 3px; margin: 22px auto 0; background: var(--gold); }
.cv-lbl { font: 700 24px/1 var(--sans); letter-spacing: .16em; white-space: nowrap; }
.cv-gold { color: var(--gold-light); }
.cv-rose { color: var(--rose); }

.cv-bar {
  position: relative; height: 66px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(248, 0, 0, .16);
}
.cv-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(208, 172, 84, .30), rgba(208, 172, 84, .07));
}
.cv-bar-in { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; }
.cv-bar-in--l { left: 24px; }
.cv-bar-in--r { right: 24px; }
.cv-bar-div { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--gold); }

/* Hero loop */
.cv--hero .cv-box { padding: 84px 120px; }
.cv-hero-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 40px; margin-top: 28px; }
.cv-labels { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.cv-marker-row { position: relative; height: 58px; }
.cv-marker { position: absolute; left: 70%; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; opacity: 0; }
.cv-marker-tick { width: 2px; height: 16px; background: rgba(208, 172, 84, .7); }
.cv-marker .cv-lbl { margin-top: 10px; }
.cv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: stretch; }
.cv-tiles > [data-slide] { display: flex; }
.cv-tile {
  flex: 1; border-radius: 20px; padding: 40px 44px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(159, 176, 194, .34);
}
.cv-tile-n { font: 700 24px/1 var(--sans); letter-spacing: .2em; color: rgb(214, 223, 231); }
.cv-tile-h { margin: 16px 0 0; font: 600 46px/1.15 var(--serif); color: #fff; }

/* Application loop */
.cv--app .cv-box { padding: 96px 130px; }
.cv-app-eyebrow { font: 700 26px/1 var(--sans); letter-spacing: .2em; color: var(--gold); }
.cv--app .cv-title { margin-top: 22px; font-size: 80px; }
.cv--app .cv-rule { margin-top: 26px; }
.cv-app-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; margin-top: 48px; }
.cv-app-left { display: flex; flex-direction: column; gap: 48px; }
.cv-app-left .cv-app-eyebrow { margin-bottom: 18px; }
.cv-app-q { font: 400 42px/1.45 var(--serif); color: #F4F8FB; }
.cv-app-q strong { font-weight: 600; color: #fff; }
.cv-app-ask { font: 400 36px/1.45 var(--sans); color: #C2CED8; }
.cv-answer { position: relative; height: 100%; min-height: 520px; }
.cv-layer {
  position: absolute; inset: 0; border-radius: 22px; padding: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.cv-layer--q { gap: 28px; background: rgba(255, 255, 255, .045); border: 2px dashed rgba(208, 172, 84, .42); }
.cv-layer--a { opacity: 0; background: rgba(248, 0, 0, .13); border: 2px solid rgba(235, 185, 185, .48); }
.cv-qmark { font: 500 168px/1 var(--serif); color: var(--gold); }
.cv-qlbl { font: 700 28px/1.3 var(--sans); letter-spacing: .16em; color: var(--on-navy-muted); }
.cv-a-inner { display: flex; flex-direction: column; align-items: center; }
.cv-a-inner .cv-app-eyebrow { color: var(--rose); }
.cv-verdict { margin-top: 22px; font: 800 96px/1 var(--sans); letter-spacing: -.01em; color: #fff; }
.cv-a-rule { width: 120px; height: 3px; margin-top: 30px; background: var(--rose); }
.cv-a-why { margin-top: 28px; max-width: 560px; font: 400 32px/1.45 var(--sans); color: #E4EBF1; }

/* Formula loop */
.cv--formula .cv-box { padding: 96px 120px; }
.cv--formula .cv-title { font-size: 72px; }
.cv--formula .cv-rule { margin-top: 24px; }
.cv-formula-main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cv-card { border-radius: 22px; padding: 52px 64px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(208, 172, 84, .3); }
.cv-card-eyebrow { margin-bottom: 30px; font: 700 24px/1 var(--sans); letter-spacing: .2em; color: var(--gold); }
.cv-formula {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .26em;
  font: 400 56px/1.5 var(--serif); color: #F4F8FB;
}
.cv-w { display: inline-block; }
.cv-pill {
  display: inline-block; padding: 4px 18px; border-radius: 8px; vertical-align: .08em;
  font: 600 .72em/1.5 var(--sans); color: var(--navy-900); background: var(--gold-light);
}
.cv--formula .cv-bar { margin-top: 40px; height: 62px; }
.cv--formula .cv-bar-fill { background: linear-gradient(90deg, rgba(208, 172, 84, .28), rgba(208, 172, 84, .06)); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--cream { background: var(--cream); }

.feature { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature-media .stage { box-shadow: 0 30px 60px -28px rgba(15, 36, 56, .6); }
.feature-copy h3 { margin: 12px 0 16px; font: 500 clamp(30px, 3.4vw, 44px)/1.1 var(--serif); letter-spacing: -.01em; }
.feature-copy p { max-width: 46ch; font-size: 18px; }
.feature-copy p + p { margin-top: 14px; }
.feature-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px;
  font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--gold);
}
.feature-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.feature-link:hover svg { transform: translateX(3px); }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .feature--flip { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .feature--flip .feature-media { order: 2; }
}

.topics {
  display: grid; gap: 12px; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.topic {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 20px;
  background: #fff; border: 1px solid #E6E0D2; border-radius: 14px;
  text-decoration: none; color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.topic:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 12px 26px -16px rgba(15, 36, 56, .35); }
.topic-name { font: 500 22px/1.2 var(--serif); }
.topic-rule { flex: none; font: 700 12px/1 var(--sans); letter-spacing: .16em; color: var(--gold-ink); }
.topics-foot { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; text-align: center; }
.topics-foot p { color: var(--ink-muted); font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-navy); color: var(--on-navy-body); padding: clamp(56px, 7vw, 80px) 0 28px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr .8fr 1.5fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-badge { width: 48px; height: 48px; }
.footer-brand .brand-badge img { height: 32px; }
.footer-brand .brand-word { font-size: 30px; }
.footer-tag { margin-top: 18px; font: 700 13px/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.footer-col h2 { margin: 6px 0 16px; font: 700 13px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--on-navy-muted); }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--on-navy-body); }
.footer-col li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-col p { color: var(--on-navy-body); font-size: 16px; }
.footer-mail {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px;
  color: var(--gold-light); font-weight: 600; text-decoration: underline; text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.footer-mail:hover { color: #fff; }
.footer-mail svg { flex: none; width: 18px; height: 18px; }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px); padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px; color: var(--on-navy-muted);
}

/* ---------- Content page ---------- */
.page-head { padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { margin: 14px 0 18px; font: 500 clamp(44px, 6.4vw, 68px)/1.02 var(--serif); letter-spacing: -.015em; }
.page-head .rule { margin-bottom: 22px; }
.page-head p { max-width: 60ch; font-size: 18px; }
.soon {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 8px 14px; border-radius: 999px; background: var(--cream);
  font: 600 14px/1.2 var(--sans); color: var(--ink-body);
}
.soon::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.deck-grid {
  display: grid; gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  margin: 0 0 clamp(80px, 10vw, 128px); padding: 0; list-style: none;
}
.deck-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.deck-card:hover { transform: translateY(-3px); border-color: #CBD5DF; box-shadow: 0 22px 44px -22px rgba(15, 36, 56, .45); }
.deck-card:focus-visible { outline-offset: 4px; border-radius: 18px; }
.deck-cover { position: relative; aspect-ratio: 16 / 9; background: var(--navy-800); }
.deck-cover img { width: 100%; height: 100%; object-fit: cover; }
.deck-count {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(15, 36, 56, .78); color: #fff;
  font: 600 12px/1 var(--sans); letter-spacing: .04em;
}
.deck-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; }
.deck-rule {
  align-self: flex-start; padding: 6px 11px; border-radius: 999px;
  border: 1px solid rgba(138, 106, 31, .4);
  font: 700 12px/1 var(--sans); letter-spacing: .16em; color: var(--gold-ink);
}
.deck-title { margin: 4px 0 0; font: 500 28px/1.12 var(--serif); letter-spacing: -.005em; }
.deck-desc { flex: 1; font-size: 16px; line-height: 1.55; }
.deck-cta { margin-top: 10px; width: 100%; pointer-events: none; }
.deck-card:hover .deck-cta { background: var(--navy-600); }
.deck-card:hover .deck-cta svg { transform: translateX(3px); }

/* ---------- Slide viewer ---------- */
html.viewer-open { overflow: hidden; }
.viewer {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #0B1B2B; color: #fff;
  --focus: var(--gold-light);
}
.viewer::backdrop { background: rgba(6, 14, 24, .85); }
.viewer[open] { display: flex; flex-direction: column; animation: viewer-in .28s var(--ease); }
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
.v-top {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px clamp(12px, 2vw, 24px);
  padding-top: max(10px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.v-heading { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.v-rule {
  flex: none; padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(208, 172, 84, .5);
  font: 700 11px/1 var(--sans); letter-spacing: .16em; color: var(--gold-light);
}
.v-title { margin: 0; min-width: 0; color: #fff; font: 500 clamp(19px, 2.2vw, 24px)/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-count { flex: none; font: 600 14px/1 var(--sans); color: var(--on-navy-muted); font-variant-numeric: tabular-nums; }
.v-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .2s, opacity .2s;
  touch-action: manipulation;
}
.v-btn:hover { background: rgba(255, 255, 255, .14); }
.v-btn:disabled { opacity: .35; cursor: default; background: rgba(255, 255, 255, .06); }
.v-btn svg { width: 20px; height: 20px; }
.v-stage {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(10px, 2.4vw, 32px) clamp(10px, 3vw, 40px);
  touch-action: pan-y;
}
.v-frame {
  position: relative; width: 100%;
  max-width: calc((100dvh - 168px) * 16 / 9);
  aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: var(--navy-800);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
  cursor: pointer;
}
.v-frame img { width: 100%; height: 100%; object-fit: contain; transition: opacity .18s; }
.v-hint { display: none; margin-top: 18px; text-align: center; font-size: 14px; color: var(--on-navy-muted); }
@media (max-width: 600px) and (orientation: portrait) {
  .v-stage { flex-direction: column; }
  .v-hint { display: block; }
}
.v-frame.is-loading img { opacity: .25; }
.v-bottom {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 20px);
  padding: 12px clamp(12px, 2vw, 24px);
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.v-progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.v-progress span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 4px; transition: width .25s var(--ease); }
.v-next-deck { min-height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.v-next-deck[hidden] { display: none; }
.viewer:fullscreen { background: #000; }
/* Short landscape screens (phones turned sideways): give the slide the height. */
@media (max-height: 520px) and (orientation: landscape) {
  .viewer[open] { position: fixed; }
  .v-top { min-height: 52px; padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 6px; }
  .v-stage { padding: 8px 64px; }
  .v-frame { max-width: calc((100dvh - 72px) * 16 / 9); }
  .v-bottom {
    position: absolute; left: 0; right: 0; top: calc(50% + 26px); transform: translateY(-50%);
    justify-content: space-between; padding: 0 max(10px, env(safe-area-inset-left)); pointer-events: none;
  }
  .v-bottom > * { pointer-events: auto; }
  .v-progress { visibility: hidden; }
  .v-next-deck { position: absolute; left: 50%; bottom: calc(-50vh + 52px); transform: translateX(-50%); }
}
@media (max-width: 520px) {
  .v-rule { display: none; }
  .v-next-deck .v-next-label { display: none; }
}

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