/* M11 slide motion for the homepage (index.html). Layered on style.css.
   slides.js adds html.motion-on and injects every decorative element (big number, logo arcs,
   transition band). Without the script, or with reduced motion, the page is unchanged.
   Headings are never hidden: words only shift into place, so they can be read as a slide arrives. */

/* The outlined panel number becomes an SVG so it can draw itself and drift like a camera move */
.motion-on .panel::after { content: none; }
.signal { --stroke: rgba(1, 1, 1, .16); }
.bignum {
  position: absolute; z-index: -1;
  right: calc(var(--gutter) - 8px); bottom: -2%;
  width: clamp(300px, 46vw, 720px); height: auto;
  overflow: visible; pointer-events: none;
}
.bignum text {
  font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 280px;
  fill: none; stroke: var(--stroke); stroke-width: 1.5;
}

/* Headline words move individually but stay visible the whole time */
.wi { display: inline-block; will-change: transform; }

/* Home: the logo's two arcs sweep around the headline */
.hero-arc { position: absolute; z-index: -1; max-width: none; pointer-events: none; opacity: .5; }
.hero-arc-blue { width: min(1100px, 92vw); left: 2vw; top: calc(var(--header) + 4vh); }
.hero-arc-orange { width: min(980px, 82vw); right: 2vw; bottom: 6vh; }

/* ---------- The transition band ---------- */
.band {
  position: fixed; left: -5vw; right: -5vw; top: 0; z-index: 25;
  height: 92vh; height: 92svh;
  transform: translate3d(0, 110vh, 0);
  pointer-events: none; will-change: transform;
}
.band svg { display: block; width: 100%; height: 100%; }
.band-blue { fill: var(--blue); }
.band-orange { fill: var(--orange); }
.band-label {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 14px; margin: 0; color: var(--ink);
}
.band-title { display: flex; gap: 14px; align-items: baseline; margin: 0; white-space: nowrap; will-change: transform; }
.band-title b { font-size: clamp(13px, 1.4vw, 16px); font-weight: 600; }
.band-title span { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(24px, 5vw, 64px); text-transform: uppercase; }
.band-progress { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 12px; letter-spacing: .08em; }
.band-progress em { font-style: normal; font-weight: 600; }
.band-bar { position: relative; display: block; width: clamp(120px, 22vw, 260px); height: 4px; background: rgba(1, 1, 1, .22); }
.band-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; }

/* A rule that draws under each title */
.h-rule { display: block; width: min(220px, 40%); height: 3px; margin-top: 14px; background: var(--blue); transform-origin: 0 50%; }
.paper .h-rule { background: var(--blue-ink); }
.signal .h-rule { background: var(--ink); }
.wi { transform-origin: 0 100%; }

@media (max-width: 1000px) {
  .hero-arc-blue { width: 140vw; left: -10vw; top: calc(var(--header) + 2vh); }
  .hero-arc-orange { width: 120vw; right: -20vw; bottom: 22vh; }
}
@media (max-width: 600px) {
  .bignum { width: 86vw; right: 14px; bottom: auto; top: calc(var(--header) - 6px); }
}
@media (max-width: 600px) and (max-height: 720px) {
  .bignum { width: 64vw; }
}
@media (max-width: 600px) and (max-height: 720px) {
  .h-rule { margin-top: 8px; height: 2px; }
}

/* Letters for the slides whose title entrance moves single letters (04, 09, 10) */
.ch { display: inline-block; will-change: transform; }

/* Split titles: a word must never break between its letters */
.wi { white-space: nowrap; }
