/* Dor de Remi — palette and type lifted from the game client (NativeWidgets, RemiFinalArt). */

@font-face {
  font-family: "Cormorant";
  src: url("../fonts/Cormorant.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/ManropeMedium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/ManropeBold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --night: #04110e;
  --green: #0b2b20;
  --card: #0b211b;
  --ivory: #faf3df;
  --paper: #f3ecd9;
  --gold: #deb871;
  --mint: #65dd9f;
  --muted: #8fa295;
  --edge: #465e4f;

  --shell: min(1280px, 100% - 2 * var(--gutter));
  --gutter: clamp(20px, 5vw, 64px);

  --serif: "Cormorant", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--gold);
  color: var(--night);
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Film grain + warm bloom, fixed over everything. Purely decorative. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.17;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 55;
  background: linear-gradient(90deg, var(--gold), var(--mint));
  transform: scaleX(var(--read, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--night) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav[data-lifted="false"] {
  background: transparent;
  backdrop-filter: none;
}

.nav[data-lifted="true"] {
  border-bottom-color: color-mix(in srgb, var(--edge) 45%, transparent);
}

.nav__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  margin-right: auto;
  white-space: nowrap;
}

.brand__mark {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--night);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  border-radius: 3px;
}

.nav__tag {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
}

.nav__links {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
}

.nav__links a {
  transition: color 0.25s;
}

.nav__links a:hover {
  color: var(--paper);
}

/* ---------- Play button ---------- */

.play {
  --play-bg: var(--mint);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 22px 13px 18px;
  background: var(--play-bg);
  color: var(--night);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  box-shadow: 0 6px 30px -10px color-mix(in srgb, var(--mint) 70%, transparent);
}

.play:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px -12px color-mix(in srgb, var(--mint) 85%, transparent);
}

.play:active {
  transform: translateY(0);
}

.play--sm {
  padding: 9px 17px 9px 14px;
  font-size: 12.5px;
}

.play--lg {
  padding: 19px 34px 19px 27px;
  font-size: 17px;
}

.play__icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: currentColor;
}

/* A slow ring that breathes out of the hero button. */
.play--ring::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid var(--mint);
  border-radius: inherit;
  opacity: 0;
  animation: ring 3.4s var(--ease) infinite;
  pointer-events: none;
}

@keyframes ring {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

/* ---------- Generic type ---------- */

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--mint);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ivory);
}

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.lede {
  color: var(--paper);
  opacity: 0.78;
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 54ch;
}

/* ---------- Scene scaffolding ---------- */

/* Each scrubbed scene is a tall track with a pinned viewport inside it.
   --p (0..1) is written by site.js as the track passes the viewport. */
.track {
  position: relative;
}

.pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
  display: grid;
}

/* ---------- 1. Hero ---------- */

#hero {
  height: 320svh;
}

.hero__pin {
  place-items: center;
}

.hero__plate {
  position: absolute;
  inset: 0;
}

.hero__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
}

/* Wide camera push-in, then a cross-dissolve to the closer framing. */
.hero__layer--wide {
  transform: scale(calc(1.06 + 0.16 * var(--p, 0))) translateY(calc(var(--p, 0) * -3vh));
  opacity: calc(1 - clamp(0, (var(--p, 0) - 0.42) / 0.3, 1));
}

.hero__layer--close {
  transform: scale(calc(1.16 - 0.1 * var(--p, 0)));
  opacity: clamp(0, (var(--p, 0) - 0.42) / 0.3, 1);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(125% 95% at 74% 56%, transparent 0%, color-mix(in srgb, var(--night) 62%, transparent) 82%),
    linear-gradient(to right, color-mix(in srgb, var(--night) 92%, transparent) 0%, color-mix(in srgb, var(--night) 46%, transparent) 40%, transparent 68%),
    linear-gradient(to top, var(--night) 1%, transparent 38%);
  opacity: calc(0.82 + 0.18 * var(--p, 0));
}

.hero__copy {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  padding-top: var(--nav-h);
  /* The whole block drifts up and dims as the scene scrubs past. */
  transform: translateY(calc(var(--p, 0) * -8vh));
  opacity: calc(1 - clamp(0, (var(--p, 0) - 0.66) / 0.26, 1));
  will-change: transform, opacity;
}

.hero__title {
  font-size: clamp(56px, 12.5vw, 184px);
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.28em;
}

/* The hero reads before any scrolling happens, so the copy lands on load and
   the scrub only handles the camera move and the drift-away. */
.hero__word {
  display: block;
  animation: lift 1.15s var(--ease) both;
  animation-delay: calc(0.15s + var(--i) * 0.12s);
}

@keyframes lift {
  from { opacity: 0; transform: translateY(0.46em); filter: blur(14px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.hero__sig {
  font-size: clamp(22px, 3.2vw, 40px);
  margin: clamp(14px, 2.4vh, 26px) 0 0;
  animation: rise 1s var(--ease) 0.56s both;
}

.hero__sub {
  margin: clamp(18px, 3vh, 30px) 0 clamp(26px, 4vh, 40px);
  max-width: 40ch;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--paper);
  animation: rise-dim 1s var(--ease) 0.68s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  animation: rise 1s var(--ease) 0.8s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.7em); }
  to { opacity: 1; transform: none; }
}

@keyframes rise-dim {
  from { opacity: 0; transform: translateY(0.7em); }
  to { opacity: 0.78; transform: none; }
}

.hero__note {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
}

.cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 9px;
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--muted);
  opacity: calc(1 - clamp(0, var(--p, 0) / 0.12, 1));
}

.cue__rail {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  overflow: hidden;
  position: relative;
}

.cue__rail::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: var(--mint);
  animation: cue 2.1s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(-14px); }
  100% { transform: translateY(44px); }
}

/* ---------- 2. Manifesto: word-by-word illumination ---------- */

#manifesto {
  height: 240svh;
}

.manifesto__pin {
  place-items: center;
  background: var(--night);
}

.manifesto__inner {
  width: var(--shell);
  margin-inline: auto;
}

.manifesto__text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 5.4vw, 74px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 24ch;
}

/* --n is the word's index, --total the count; both set in the markup. */
.word {
  --lit: clamp(0, (var(--p, 0) * 1.35 * var(--total) - var(--n)), 1);
  color: color-mix(in srgb, var(--ivory) calc(var(--lit) * 100%), color-mix(in srgb, var(--edge) 55%, transparent));
  transition: color 0.08s linear;
}

.word--gold {
  color: color-mix(in srgb, var(--gold) calc(var(--lit) * 100%), color-mix(in srgb, var(--edge) 55%, transparent));
}

.manifesto__foot {
  margin-top: clamp(28px, 5vh, 54px);
  display: flex;
  gap: clamp(22px, 4vw, 56px);
  flex-wrap: wrap;
  opacity: clamp(0, (var(--p, 0) - 0.72) / 0.2, 1);
}

.stat__n {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  color: var(--mint);
  line-height: 1;
}

.stat__l {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 7px;
  font-weight: 500;
}

/* ---------- 3. The deal ---------- */

#deal {
  height: 360svh;
}

.deal__pin {
  place-items: center;
  background:
    radial-gradient(80% 60% at 50% 42%, color-mix(in srgb, var(--green) 92%, #14503a) 0%, var(--night) 72%);
}

.deal__felt {
  position: absolute;
  inset: 0;
  background-image: url("../art/table-top@1000.webp");
  background-size: cover;
  background-position: center;
  opacity: calc(0.09 + 0.06 * var(--p, 0));
  filter: saturate(0.65) blur(7px);
}

.deal__inner {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: clamp(22px, 4vh, 48px);
  text-align: center;
}

.deal__head {
  opacity: clamp(0, var(--p, 0) / 0.1, 1);
}

.deal__title {
  font-size: clamp(26px, 4vw, 54px);
}

.deal__stage {
  position: relative;
  width: min(880px, 100%);
  aspect-ratio: 16 / 7;
}

/* Two walnut rack rows the tiles settle into. */
.rack {
  position: absolute;
  left: 0;
  right: 0;
  height: 35%;
  border-radius: 8px;
  background: linear-gradient(180deg, #4a2f1c, #33200f 60%, #26180b);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--gold) 26%, transparent),
    inset 0 -8px 18px rgba(0, 0, 0, 0.6), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  opacity: clamp(0, (var(--p, 0) - 0.04) / 0.1, 1);
}

.rack--top { top: 4%; }
.rack--bottom { bottom: 4%; }

.tile {
  position: absolute;
  top: 0;
  left: 0;
  width: 9%;
  aspect-ratio: 5 / 7;
  border-radius: 6px;
  background: linear-gradient(170deg, #fffdf4 0%, #f6efd8 55%, #e6dcbd 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16), inset 0 1px 0 #fff,
    0 10px 20px -8px rgba(0, 0, 0, 0.75);
  display: grid;
  place-content: center;
  gap: 0.04em;
  color: #23201a;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1;
  /* Position/rotation are interpolated in site.js and land here. */
  transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg)) scale(var(--sc, 1));
  opacity: var(--op, 0);
  will-change: transform, opacity;
}

.tile__n {
  font-size: 0.37em;
}

.tile__s {
  font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", serif;
  font-size: 0.24em;
  line-height: 1;
  text-align: center;
}

.tile[data-suit="r"] { color: #b5342a; }
.tile[data-suit="k"] { color: #1e1b16; }
.tile[data-suit="b"] { color: #23539f; }
.tile[data-suit="g"] { color: #a8781f; }

.deal__caption {
  font-size: clamp(17px, 2.1vw, 28px);
  opacity: clamp(0, (var(--p, 0) - 0.82) / 0.14, 1);
}

/* ---------- 4. Filmstrip ---------- */

#strip {
  height: 420svh;
}

.strip__pin {
  align-content: center;
  background: var(--night);
}

.strip__rail {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  padding-inline: var(--gutter);
  width: max-content;
  /* --shift is the total overflow, measured by site.js. */
  transform: translate3d(calc(var(--p, 0) * var(--shift, 0px) * -1), 0, 0);
  will-change: transform;
}

.frame {
  width: clamp(240px, 42vw, 560px);
  flex: none;
}

.frame__media {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  background: var(--card);
  box-shadow: 0 30px 70px -30px #000;
}

.frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame__meta {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 15px;
}

.frame__i {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 15px;
  flex: none;
}

.frame__t {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.strip__head {
  position: absolute;
  top: calc(var(--nav-h) + clamp(18px, 4vh, 46px));
  left: 50%;
  translate: -50% 0;
  width: var(--shell);
  text-align: center;
}

/* ---------- 5. Rules ---------- */

.band {
  height: 84px;
  background-image: url("../art/folk-pattern.webp");
  background-size: auto 168px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.5;
  border-block: 1px solid color-mix(in srgb, var(--edge) 40%, transparent);
}

.section {
  padding-block: clamp(80px, 13vh, 150px);
}

.section__head {
  margin-bottom: clamp(38px, 6vh, 68px);
  max-width: 60ch;
}

.section__title {
  font-size: clamp(30px, 4.4vw, 60px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.card {
  padding: clamp(22px, 2.4vw, 32px);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--edge) 38%, transparent);
  border-radius: 10px;
}

.card__i {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.card__t {
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 400;
  color: var(--ivory);
  margin: 12px 0 10px;
  line-height: 1.2;
}

.card__b {
  margin: 0;
  font-size: 14.5px;
  color: var(--paper);
  opacity: 0.72;
  line-height: 1.62;
}

/* Staggered entrance for anything marked [data-rise]. */
[data-rise] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}

[data-rise].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 6. Dusk parallax ---------- */

#dusk {
  height: 200svh;
}

.dusk__pin {
  place-items: center;
}

.dusk__img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  transform: translateY(calc(var(--p, 0) * -10%)) scale(1.04);
  will-change: transform;
}

.dusk__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--night) 4%, color-mix(in srgb, var(--night) 40%, transparent) 55%, color-mix(in srgb, var(--night) 65%, transparent));
}

.dusk__copy {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  text-align: center;
  transform: translateY(calc((0.5 - var(--p, 0)) * 12vh));
}

.dusk__title {
  font-size: clamp(30px, 6vw, 84px);
  max-width: 20ch;
  margin-inline: auto;
}

/* ---------- 7. Final call ---------- */

.finale {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: clip;
  padding-block: clamp(80px, 12vh, 140px);
}

.finale__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.finale__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 55%, transparent, color-mix(in srgb, var(--night) 88%, transparent) 70%),
    linear-gradient(to top, var(--night), transparent 60%);
}

.finale__inner {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vh, 30px);
}

.finale__title {
  font-size: clamp(40px, 8.5vw, 116px);
}

.finale__hint {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  max-width: 46ch;
}

.finale__hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--gold);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid color-mix(in srgb, var(--edge) 34%, transparent);
  padding-block: 40px 52px;
  background: var(--night);
}

.footer__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.footer__inner p {
  margin: 0;
}

.footer__sig {
  margin-left: auto;
  font-size: 17px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav__links,
  .nav__tag {
    display: none;
  }
  #hero { height: 280svh; }
  #strip { height: 340svh; }
  #deal { height: 300svh; }
  .frame { width: 74vw; }
  .deal__stage { aspect-ratio: 5 / 4; }
  .tile { width: 11.5%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__title { font-size: clamp(44px, 15vw, 72px); }
  .band { height: 58px; background-size: auto 116px; }
}

/* ---------- Reduced motion ----------
   Scenes are unpinned and pushed to their finished state, so the page reads
   as a plain stack of sections with no scroll-driven movement at all. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .track { height: auto !important; }

  .pin {
    position: static;
    height: auto;
    padding-block: clamp(80px, 12vh, 140px);
  }

  .hero__pin { min-height: 92svh; align-content: center; }

  .hero__layer--wide,
  .hero__layer--close,
  .hero__copy,
  .dusk__img,
  .dusk__copy,
  .strip__rail,
  .tile {
    transform: none !important;
  }

  .hero__layer--close,
  .cue,
  .deal__stage {
    display: none;
  }

  .hero__layer--wide { opacity: 1 !important; }

  .hero__word,
  .hero__sig,
  .hero__sub,
  .hero__actions,
  .deal__head,
  .deal__caption,
  .manifesto__foot,
  .rack {
    opacity: 1 !important;
    filter: none !important;
  }

  .hero__sub { opacity: 0.78 !important; }

  .hero__word,
  .hero__sig,
  .hero__sub,
  .hero__actions {
    animation: none !important;
    transform: none !important;
  }

  .word { color: var(--ivory); }
  .word--gold { color: var(--gold); }

  .strip__pin { overflow: visible; }

  .strip__rail {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .strip__head {
    position: static;
    translate: none;
    margin: 0 auto clamp(28px, 5vh, 48px);
  }

  .play--ring::after,
  .cue__rail::after {
    animation: none;
  }

  [data-rise] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- No JavaScript ----------
   Without site.js nothing writes --p, so every scrubbed element would sit at
   its opening (invisible) keyframe. Unpin the tracks and show finished state;
   CSS-only animations are still fine here. */
/* !important is required: the per-section #hero/#deal/... height rules are
   ID-specific and would otherwise keep the tracks at full scrub length. */
.no-js .track { height: auto !important; }

.no-js .pin {
  position: static;
  height: auto;
  padding-block: clamp(80px, 12vh, 140px);
}

.no-js .hero__pin {
  min-height: 92svh;
  align-content: center;
  padding-block: 0;
}

.no-js .hero__layer--wide,
.no-js .hero__copy,
.no-js .dusk__img,
.no-js .dusk__copy,
.no-js .strip__rail,
.no-js .hero__word,
.no-js .hero__sig,
.no-js .hero__sub,
.no-js .hero__actions {
  transform: none;
}

.no-js .hero__layer--close,
.no-js .cue,
.no-js .deal__stage {
  display: none;
}

.no-js .hero__word,
.no-js .hero__sig,
.no-js .hero__actions,
.no-js .deal__head,
.no-js .deal__caption,
.no-js .manifesto__foot,
.no-js .hero__layer--wide,
.no-js .rack {
  opacity: 1;
  filter: none;
}

.no-js .hero__sub { opacity: 0.78; }

.no-js .hero__word,
.no-js .hero__sig,
.no-js .hero__sub,
.no-js .hero__actions { animation: none; }

.no-js .word,
.no-js .manifesto__text { color: var(--ivory); }
.no-js .word--gold { color: var(--gold); }

.no-js .strip__pin { overflow: visible; }

.no-js .strip__rail {
  flex-wrap: wrap;
  width: auto;
  justify-content: center;
}

.no-js .strip__head {
  position: static;
  translate: none;
  margin: 0 auto clamp(28px, 5vh, 48px);
}

.no-js [data-rise] {
  opacity: 1;
  transform: none;
}
