body { background: #0e0e12; color: #fff; font-family: 'Space Grotesk', system-ui, sans-serif; }

/* Default (and reduced motion): normal stacked full-height sections. */
.panel { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
.panel__outer, .panel__inner { width: 100%; height: 100%; overflow: hidden; }
.panel__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.panel__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgb(0 0 0 / 0.55)); }
.panel__content { position: absolute; left: clamp(16px, 5vw, 64px); right: clamp(16px, 5vw, 64px); bottom: clamp(72px, 12vh, 120px); }
.panel h2 {
  margin: 0; font: 700 clamp(64px, 17vw, 240px)/0.85 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.06em;
}
.panel p { margin: 16px 0 0; font-size: clamp(16px, 2vw, 22px); max-width: 28ch; }

/* Slider mode: panels stack on top of each other; only the current one is visible. */
html.is-slider, html.is-slider body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.is-slider .panel { position: fixed; inset: 0; visibility: hidden; }
/* Masks the rising characters; the padding keeps descenders (g, y) from being clipped. */
html.is-slider .panel__content h2 { overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
/* Overscan so the image can drift during the wipe without showing an edge. */
html.is-slider .panel__bg { inset: -15% 0; }

.hud { display: none; }
html.is-slider .hud {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 20px clamp(16px, 5vw, 64px);
  font: 500 13px ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase;
}
.hud__dots { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hud__dots button { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: none; cursor: pointer; }
.hud__dots button[aria-current="true"] { background: #fff; }
.hud__hint { margin-left: auto; opacity: 0.7; }
