:root {
  --cream: #f4efe9;
  --ink: #1f1b1b;
  --pink: #e2186e;
  --pink-hot: #ff4f9a;
  --glass: rgba(12, 8, 10, 0.48);
  --font: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --progress: 0%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: #0a0708;
  color: #fff;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

html:not(.is-film-live),
body:not(.scrub-ready) {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

html.is-film-live,
body.scrub-ready {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
}

html.is-phone-scrub,
html.is-phone-scrub body {
  overflow: hidden !important;
  height: 100%;
  height: 100dvh;
  touch-action: none;
  overscroll-behavior: none;
}

body.menu-open {
  overflow: hidden;
}

/* ——— loader ——— */

.scrub-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #0a0708;
  color: #f7f1f3;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

.scrub-loader.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scrub-loader-inner {
  text-align: center;
}

.loader-kicker {
  margin-bottom: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(247, 241, 243, 0.45);
  animation: rise 0.9s var(--ease) both;
}

.scrub-loader h1 {
  font-size: clamp(2.6rem, 9vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--pink);
  text-shadow: 0 0 48px rgba(226, 24, 110, 0.45);
  animation: rise 1s var(--ease) 0.08s both;
}

.scrub-loader-inner > p:not(.loader-kicker) {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(247, 241, 243, 0.55);
  animation: rise 1s var(--ease) 0.16s both;
}

.scrub-loader .bar {
  width: 168px;
  height: 2px;
  margin: 28px auto 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  animation: rise 1s var(--ease) 0.24s both;
}

#load-pct {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247, 241, 243, 0.42);
  animation: rise 1s var(--ease) 0.28s both;
}

.scrub-loader .bar > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), #fff);
  box-shadow: 0 0 12px var(--pink);
  transition: width 0.25s ease;
}

/* ——— rail ——— */

.scrub-track {
  height: 5600vh;
}

.scrub-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  display: flex;
  width: min(300px, 42vw);
  height: auto;
  padding: 28px 16px 28px 40px;
  flex-direction: column;
  pointer-events: none;
}

.scrub-brand {
  display: grid;
  gap: 4px;
  padding-top: 2px;
}

.scrub-brand b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--pink);
  text-shadow: 0 0 24px rgba(226, 24, 110, 0.5);
}

.scrub-brand i {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.scrub-progress {
  position: absolute;
  top: 0;
  left: 18px;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
}

.scrub-progress > span {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--pink-hot), var(--pink));
  box-shadow: 0 0 10px rgba(226, 24, 110, 0.7);
}

.progress-tip {
  position: absolute;
  left: 50%;
  top: var(--progress, 0%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--pink), 0 0 16px var(--pink-hot);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.scrub-chapters {
  position: relative;
  flex: 1;
  min-height: 0;
  opacity: var(--ch-vis, 1);
  visibility: visible;
  pointer-events: none;
}

.chapter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 10px;
  opacity: 0;
  pointer-events: none;
}

.chapter.is-on {
  opacity: 1;
}

.chapter .kicker,
.chapter .num {
  display: none;
}

.chapter .kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.chapter .num {
  margin-top: 8px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.06em;
  color: var(--pink);
  text-shadow: 0 0 28px rgba(226, 24, 110, 0.4);
}

.chapter h2 {
  margin: 0 0 12px;
  max-width: 100%;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  overflow: visible;
  clip-path: none;
}

.chapter p {
  max-width: 32ch;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7);
  opacity: var(--ch-copy, 1);
}

.chapter.is-anim h2 { animation: rise 0.8s var(--ease) both; }
.chapter.is-anim p { animation: rise 0.85s var(--ease) 0.08s both; }

.scrub-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
}

.scrub-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.35s var(--ease), background 0.3s ease, transform 0.3s ease;
}

.scrub-dots button:hover {
  background: #fff;
}

.scrub-dots button.is-on {
  width: 22px;
  background: var(--pink);
  box-shadow: 0 0 12px rgba(226, 24, 110, 0.65);
}

/* ——— stage ——— */

.scrub-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  height: auto;
  overflow: hidden;
  background: #0a0708;
}

.scrub-film-wrap {
  position: absolute;
  inset: -6px;
  transform: translateZ(0) scale(1.01);
  contain: paint;
  will-change: transform;
}

.scrub-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.08) contrast(1.06) brightness(0.72);
  transform: scale(1.06);
  pointer-events: none;
  z-index: 0;
}

.scrub-poster.is-gone {
  display: none;
}

.scrub-stage canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transform: translateZ(0);
  image-rendering: auto;
}

.scrub-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  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='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.scrub-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 6, 8, 0.28) 0%, transparent 22%),
    linear-gradient(180deg, rgba(8, 6, 8, 0.38) 0%, transparent 18%, transparent 78%, rgba(8, 6, 8, 0.42) 100%);
}

body[data-chapter="06"] .scrub-veil {
  background:
    linear-gradient(90deg, rgba(8, 6, 8, 0.66) 0%, rgba(8, 6, 8, 0.22) 28%, transparent 52%),
    linear-gradient(180deg, rgba(8, 6, 8, 0.24) 0%, transparent 18%, transparent 72%, rgba(8, 6, 8, 0.3) 100%);
}

body[data-chapter="06"] .stat {
  background: rgba(12, 8, 10, 0.72);
  border-color: rgba(226, 24, 110, 0.28);
}

body[data-chapter="07"] .scrub-veil {
  background: rgba(10, 7, 8, 0.42);
}

body[data-chapter="07"] .scrub-hud {
  opacity: 0;
}

/* ——— nav ——— */

.scrub-nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px 26px 20px 28px;
  background: linear-gradient(180deg, rgba(10, 7, 8, 0.6), transparent 100%);
}

.scrub-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(12, 8, 10, 0.38);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.scrub-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(226, 24, 110, 0.22), rgba(255, 79, 154, 0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.scrub-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.scrub-nav a:hover {
  color: #fff;
  border-color: rgba(226, 24, 110, 0.5);
  background: rgba(226, 24, 110, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(226, 24, 110, 0.2), 0 0 0 1px rgba(226, 24, 110, 0.1);
}

.scrub-nav a:hover::before {
  opacity: 1;
}

.scrub-nav a:hover::after {
  transform: translateX(120%);
  transition: transform 0.7s var(--ease);
}

.scrub-nav a:active {
  transform: translateY(0) scale(0.97);
}

.menu-btn {
  display: grid;
  gap: 5px;
  width: 22px;
  margin-left: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 1.5px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

body.menu-open .menu-btn span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .menu-btn span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-btn span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.scrub-mute {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(12, 8, 10, 0.38);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  margin-left: 6px;
  transition: border-color 0.3s ease, background 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.scrub-mute svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.scrub-mute .icon-off { display: none; }

body.is-muted .scrub-mute .icon-on { display: none; }
body.is-muted .scrub-mute .icon-off { display: block; }

.scrub-mute:hover {
  border-color: rgba(226, 24, 110, 0.5);
  background: rgba(226, 24, 110, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(226, 24, 110, 0.22);
}

.scrub-mute:active {
  transform: translateY(0) scale(0.95);
}

/* ——— overlays ——— */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.overlay.is-on {
  opacity: 1;
}

#overlay-spark {
  z-index: 3;
  transition: none;
  perspective: 1100px;
  perspective-origin: 50% 48%;
}

#overlay-spark:not(.is-on) {
  opacity: 0;
  visibility: hidden;
}

#overlay-spark:not(.is-on) .spark-core,
#overlay-spark:not(.is-on) .spark-ring,
#overlay-spark:not(.is-on) .spark-flare,
#overlay-spark:not(.is-on) .hint .mouse i {
  animation: none;
}

.spark-night {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle at 50% 46%, rgba(226, 24, 110, 0.18), transparent 46%),
    #070506;
}

.spark-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 48%;
  pointer-events: none;
  will-change: transform;
}

.spark-floor {
  position: absolute;
  top: 62%;
  left: 50%;
  width: 460px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(226, 24, 110, 0.32), rgba(255, 79, 154, 0.06) 42%, transparent 70%);
  transform: translate3d(-50%, -50%, -60px) rotateX(68deg);
  filter: blur(10px);
  pointer-events: none;
}

.spark {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform, opacity;
}

.spark-ring {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  animation: ring-spin 18s linear infinite;
}

.spark-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, #ff4f9a 42%, var(--pink) 68%, transparent 78%);
  box-shadow:
    0 0 18px 8px rgba(255, 79, 154, 0.85),
    0 0 70px 28px rgba(226, 24, 110, 0.55);
  transform: translate(-50%, -50%);
  animation: spark-pulse 2.4s ease-in-out infinite;
}

.spark-flare {
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), var(--pink), transparent);
  transform-origin: center;
  opacity: 0.9;
}

.spark-flare.h {
  width: 260px;
  height: 2px;
  margin: -1px 0 0 -130px;
  animation: flare-breathe 2.8s ease-in-out infinite;
}

.spark-flare.v {
  width: 2px;
  height: 170px;
  margin: -85px 0 0 -1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), var(--pink), transparent);
  animation: flare-breathe 3.2s ease-in-out infinite 0.2s;
}

.spark-flare.d1,
.spark-flare.d2 {
  width: 160px;
  height: 1.5px;
  margin: -0.75px 0 0 -80px;
  opacity: 0.7;
}

.spark-flare.d1 { transform: rotate(38deg); }
.spark-flare.d2 { transform: rotate(-38deg); }

.hint {
  position: absolute;
  left: 50%;
  bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-align: center;
  transform: translateX(-50%);
  will-change: transform, opacity;
}

.hint .mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
}

.hint .mouse i {
  display: block;
  width: 3px;
  height: 7px;
  margin: 7px auto 0;
  border-radius: 2px;
  background: #fff;
  animation: mouse-wheel 1.4s ease-in-out infinite;
}

.hint span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.sector {
  position: absolute;
  right: 28px;
  bottom: 56px;
  padding: 11px 16px 11px 14px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sector::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  vertical-align: middle;
}

.sector.is-fresh {
  animation: sector-in 0.5s var(--ease);
}

.stats {
  position: absolute;
  top: 50%;
  right: 40px;
  display: grid;
  gap: 14px;
  color: #fff;
  transform: translateY(-50%);
}

.overlay.is-on .stat {
  animation: rise 0.7s var(--ease) both;
}

.overlay.is-on .stat:nth-child(2) { animation-delay: 0.08s; }
.overlay.is-on .stat:nth-child(3) { animation-delay: 0.16s; }

.stat {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 220px;
  padding: 14px 16px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--pink-hot);
}

.stat span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.stat svg {
  width: 26px;
  height: 26px;
  stroke: var(--pink-hot);
  fill: none;
  stroke-width: 1.7;
}

.finale {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding-bottom: min(11vh, 88px);
  color: #fff;
  text-align: center;
}

.finale .mark,
.finale .sub,
.finale p {
  display: none;
}

.finale-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(10, 7, 8, 0.35);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}

.finale-go::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  transform: rotate(45deg);
}

.finale-go:hover {
  border-color: var(--pink);
  background: rgba(226, 24, 110, 0.2);
  transform: translateY(-1px);
}

#overlay-finale.is-on .finale-go {
  pointer-events: auto;
  animation: rise 0.8s var(--ease) 0.15s both;
}

#overlay-pins.is-on {
  pointer-events: none;
}

.pin {
  position: absolute;
  left: auto;
  right: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  transform: translate(18px, -50%) scale(0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}

.pin.is-live {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.pin:not(.is-live) i {
  animation: none;
}

.pin i {
  width: 13px;
  height: 13px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 6px rgba(226, 24, 110, 0.2), 0 0 18px rgba(226, 24, 110, 0.55);
  animation: pin-pulse 2.2s ease-in-out infinite;
}

.pin span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--glass);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pin:hover span {
  background: rgba(226, 24, 110, 0.82);
  border-color: transparent;
}

.finale .down {
  display: block;
  width: 11px;
  height: 11px;
  margin: 22px auto 0;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
  animation: fade-dip 1.6s ease-in-out infinite;
}

/* ——— ad lines on the film ——— */

.ad-frame {
  position: absolute;
  inset: 16px;
  z-index: 4;
  pointer-events: none;
}

.ad-frame::before,
.ad-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.2px solid rgba(255, 255, 255, 0.38);
}

.ad-frame::before {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.ad-frame::after {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
}

.ad-lines {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.ad-card {
  position: absolute;
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  width: max-content;
  max-width: min(11.5em, 40vw);
  padding: 28px 34px 26px 32px;
  overflow: hidden;
  background: rgba(10, 7, 8, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  opacity: 0;
  filter: blur(10px);
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 0.55s var(--ease),
    transform 0.7s var(--ease),
    filter 0.65s var(--ease),
    clip-path 0.7s var(--ease);
}

.ad-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--pink-hot), var(--pink));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.55s var(--ease);
}

.ad-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  transform: translateX(-140%);
  pointer-events: none;
}

.ad-card.is-on {
  opacity: 1;
  filter: none;
  clip-path: inset(0 0 0 0);
}

.ad-card.is-on::before {
  transform: scaleY(1);
}

.ad-card.is-on::after {
  transform: translateX(140%);
  transition: transform 1.15s var(--ease) 0.18s;
}

.ad-card span {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--pink-hot);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
}

.ad-card.is-on span {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}

.ad-card strong {
  display: block;
  font-size: 1em;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.ad-card strong b {
  display: inline;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.ad-card.is-on strong b {
  opacity: 1;
  transition-delay: calc(0.12s + var(--i, 0) * 75ms);
}

.ad-card em {
  display: block;
  max-width: 32ch;
  margin-top: 22px;
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(12px);
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.4s ease, transform 0.4s ease, clip-path 0.4s ease;
}

.ad-card.is-on em {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  transition: opacity 0.55s var(--ease) 0.38s, transform 0.6s var(--ease) 0.38s, clip-path 0.7s var(--ease) 0.38s;
}

.ad-card[data-place="tl"],
.ad-card[data-place="bl"],
.ad-card[data-place="ml"] {
  left: 48px;
  right: auto;
  transform: translate3d(-88px, 10px, 0) scale(0.96);
}

.ad-card[data-place="tr"],
.ad-card[data-place="br"],
.ad-card[data-place="mr"] {
  left: auto;
  right: 36px;
  text-align: right;
  padding-left: 34px;
  padding-right: 32px;
  clip-path: inset(0 0 0 100%);
  transform: translate3d(88px, 10px, 0) scale(0.96);
}

.ad-card[data-place="tr"]::before,
.ad-card[data-place="br"]::before,
.ad-card[data-place="mr"]::before {
  left: auto;
  right: 0;
}

.ad-card[data-place="tr"] em,
.ad-card[data-place="br"] em,
.ad-card[data-place="mr"] em {
  margin-left: auto;
  clip-path: inset(0 0 0 100%);
}

.ad-card[data-place="tr"].is-on em,
.ad-card[data-place="br"].is-on em,
.ad-card[data-place="mr"].is-on em {
  clip-path: inset(0 0 0 0);
}

.ad-card[data-place="tl"].is-on,
.ad-card[data-place="bl"].is-on,
.ad-card[data-place="ml"].is-on,
.ad-card[data-place="tr"].is-on,
.ad-card[data-place="br"].is-on,
.ad-card[data-place="mr"].is-on {
  transform: translate3d(0, 0, 0) scale(1);
  clip-path: inset(0 0 0 0);
}

.ad-card[data-place="tl"] { top: 14%; }
.ad-card[data-place="tr"] { top: 14%; }
.ad-card[data-place="bl"] { bottom: 16%; }
.ad-card[data-place="br"] { bottom: 16%; }
.ad-card[data-place="ml"] { top: 34%; }
.ad-card[data-place="mr"] { top: 34%; }

body[data-chapter="07"] .ad-lines,
body[data-chapter="07"] .ad-frame {
  opacity: 0;
}

/* ——— hud ——— */

.scrub-hud {
  position: absolute;
  left: 72px;
  right: 28px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  transition: opacity 0.4s ease;
}

#overlay-spark.is-on ~ .scrub-hud {
  opacity: 0;
}

.scrub-filmbar {
  flex: 1;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.scrub-filmbar > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), #fff);
  box-shadow: 0 0 10px var(--pink);
}

/* ——— menu ——— */

.scrub-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(8, 6, 8, 0.78);
  backdrop-filter: blur(18px);
  animation: menu-in 0.4s var(--ease);
}

.scrub-menu[hidden] {
  display: none;
}

.menu-panel {
  display: grid;
  gap: 6px;
  min-width: min(420px, 86vw);
}

.menu-panel > p {
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--pink);
}

.menu-panel a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(10px);
  animation: rise 0.6s var(--ease) both;
}

.menu-panel a:nth-child(2) { animation-delay: 0.04s; }
.menu-panel a:nth-child(3) { animation-delay: 0.08s; }
.menu-panel a:nth-child(4) { animation-delay: 0.12s; }
.menu-panel a:nth-child(5) { animation-delay: 0.16s; }
.menu-panel a:nth-child(6) { animation-delay: 0.2s; }
.menu-panel a:nth-child(7) { animation-delay: 0.24s; }
.menu-panel a:nth-child(8) { animation-delay: 0.28s; }

.menu-panel a b {
  color: var(--pink);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.menu-panel a:hover {
  color: var(--pink-hot);
}

/* ——— motion ——— */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); opacity: 0.35; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes sector-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes mouse-wheel {
  0%, 100% { opacity: 1; transform: translateY(0); }
  55% { opacity: 0.15; transform: translateY(8px); }
}

@keyframes spark-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.86); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-dip {
  0%, 100% { opacity: 1; }
  55% { opacity: 0.25; }
}

@keyframes pin-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(226, 24, 110, 0.18), 0 0 14px rgba(226, 24, 110, 0.4); }
  50% { box-shadow: 0 0 0 9px rgba(226, 24, 110, 0.08), 0 0 22px rgba(226, 24, 110, 0.55); }
}

@keyframes flare-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes menu-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 860px) {
  .scrub-track {
    height: 2200vh;
  }

  .scrub-rail {
    width: 100%;
    max-width: none;
    height: auto;
    padding: 16px 16px 18px 22px;
    justify-content: space-between;
  }

  .scrub-progress {
    left: 10px;
  }

  .scrub-chapters {
    display: flex;
    align-items: flex-end;
  }

  .chapter {
    position: relative;
    inset: auto;
    justify-content: flex-end;
  }

  .chapter:not(.is-on) {
    display: none;
  }

  .chapter .num {
    font-size: 1.6rem;
  }

  .chapter h2 {
    margin: 8px 0 6px;
    max-width: 18ch;
    font-size: 1.08rem;
  }

  .chapter p {
    max-width: 28ch;
    font-size: 16px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
  }

  .scrub-brand i {
    display: none;
  }

  .scrub-nav {
    gap: 6px;
    padding: 12px 14px 12px 16px;
    justify-content: flex-end;
  }

  .scrub-nav a:not(.keep) {
    display: none;
  }

  .scrub-nav a {
    font-size: 10px;
    padding: 8px 14px;
  }

  .scrub-hud {
    display: none;
  }

  .stats {
    right: 14px;
    left: 14px;
    top: auto;
    bottom: 52px;
    transform: none;
  }

  .stat {
    min-width: 0;
  }

  .pin span {
    display: none;
  }

  .sector {
    right: 14px;
    bottom: 48px;
  }

  .ad-card {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    width: max-content;
    max-width: min(12em, 78vw);
    padding: 20px 22px 18px 22px;
  }

  .ad-card em {
    display: block;
    max-width: 28ch;
    margin-top: 14px;
    font-size: 13px;
  }

  .ad-card[data-place="tl"],
  .ad-card[data-place="bl"],
  .ad-card[data-place="ml"] {
    top: auto;
    left: 18px;
    right: auto;
    bottom: 86px;
  }

  .ad-card[data-place="tr"],
  .ad-card[data-place="br"],
  .ad-card[data-place="mr"] {
    top: auto;
    left: auto;
    right: 16px;
    bottom: 86px;
  }

  .hint {
    bottom: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter.is-anim .kicker,
  .chapter.is-anim .num,
  .chapter.is-anim h2,
  .chapter.is-anim p,
  .overlay.is-on .stat,
  .pin i,
  .spark-core,
  .spark-ring,
  .spark-flare.h,
  .spark-flare.v,
  .hint .mouse i,
  .menu-panel a,
  .finale-go,
  .sector.is-fresh,
  .scrub-menu {
    animation: none;
  }

  .ad-card,
  .ad-card.is-on,
  .ad-card.is-on strong b,
  .ad-card span,
  .ad-card em,
  .ad-card::before,
  .ad-card::after {
    transform: none !important;
    filter: none;
    opacity: 1;
    clip-path: none;
    transition: none;
  }

  .chapter h2 {
    clip-path: none;
  }

  .spark-scene,
  .spark-floor {
    transform: none !important;
  }
}
