/* Deck chrome: bottom gradient progress line, round nav buttons (bottom-right), overview grid */
.chrome { position: absolute; inset: 0; pointer-events: none; z-index: 50; }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .08); transition: background .8s var(--ease); }
.progress i {
  position: absolute; inset: 0;
  background: var(--grad-x);
  transform: scaleX(0); transform-origin: right center; /* RTL: fills from the right */
  transition: transform .6s var(--ease);
}

.nav { position: absolute; right: 64px; bottom: 48px; display: flex; gap: 16px; direction: ltr; pointer-events: auto; }
.nav button {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  transition: transform .2s var(--ease), background .8s var(--ease), box-shadow .2s var(--ease);
}
.nav button:hover { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(255, 255, 255, .10); }
.nav button:active { transform: scale(.96); }
.nav button:focus-visible { outline: 2px solid var(--folly); outline-offset: 4px; }
.nav svg { width: 22px; height: 22px; fill: none; stroke: var(--eerie); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .8s var(--ease); }

/* light spec pages invert the chrome */
body[data-theme="light"] .nav button { background: var(--eerie); }
body[data-theme="light"] .nav svg { stroke: var(--white); }
body[data-theme="light"] .progress { background: rgba(0, 0, 0, .06); }

/* ---------- overview (G) ---------- */
#stage.is-overview .slide {
  visibility: visible; opacity: 1; pointer-events: auto;
  transform-origin: 0 0; cursor: pointer;
  background: var(--eerie);
  outline: 8px solid transparent; outline-offset: 0;
  transition: outline-color .2s var(--ease);
}
#stage.is-overview .slide[data-theme="light"] { background: var(--seasalt); }
#stage.is-overview .slide * { pointer-events: none; }
#stage.is-overview .slide:hover { outline-color: rgba(255, 255, 255, .35); }
#stage.is-overview .slide.is-active { outline-color: var(--folly); }
#stage.is-overview .nav { display: none; }

/* ---------- pagination: "NN / 47" bottom-left of every slide, level with the nav buttons ---------- */
.pager { position: absolute; left: 64px; bottom: 64px; z-index: 3; direction: ltr; font-weight: 400; font-size: 20px; line-height: 24px; letter-spacing: 2px; color: rgba(255, 255, 255, .6); pointer-events: none; }
.pager b { font-weight: 800; color: var(--white); }
.slide[data-theme="light"] .pager { color: var(--onyx); }
.slide[data-theme="light"] .pager b { color: var(--eerie); }
