:root {
  --bg: #0b0b0a;
  --fg: #f3efe6;
  --muted: #a39e93;
  --accent: #c96b45;
  --line: rgba(243, 239, 230, 0.16);
  --pad: clamp(24px, 5vw, 72px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  overflow: hidden;
}

body {
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}

body[data-theme="paper"] {
  --bg: #f3efe6;
  --fg: #161412;
  --muted: #5c574f;
  --accent: #9a4328;
  --line: rgba(22, 20, 18, 0.14);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.28) 100%);
  z-index: 1;
}

body[data-theme="paper"]::after {
  background: radial-gradient(ellipse at center, transparent 60%, rgba(40, 28, 18, 0.08) 100%);
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 8;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #c96b45;
  transition: width 0.35s linear;
}

.mark {
  position: fixed;
  z-index: 6;
  top: 28px;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.mark i {
  display: block;
  width: 36px;
  height: 1px;
  background: #c96b45;
}

#thread {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  padding: 14vh var(--pad) 12vh;
  display: flex;
  align-items: center;
  outline: none;
}

.stage.is-entering .pane {
  animation: rise 0.65s var(--ease);
}

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

.pane { width: min(1280px, 100%); }

.kicker {
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.kicker.greet {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 450;
  margin-bottom: 10px;
}

h1, h2, h3, p { margin: 0; }

.mega {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(5.2rem, 18vw, 14.5rem);
  line-height: 0.78;
  letter-spacing: -0.055em;
}

.display {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(3.2rem, 7.4vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.lede {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.25;
  max-width: 22ch;
}

em { font-style: italic; color: #c96b45; }

body[data-theme="paper"] em { color: #9a4328; }

.cue {
  position: fixed;
  z-index: 6;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.cue-map {
  display: flex;
  align-items: flex-end;
  gap: clamp(3px, 0.45vw, 5px);
  max-width: min(92vw, 520px);
}

.cue-chapter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
}

.cue-tick {
  display: block;
  width: clamp(8px, 1.1vw, 14px);
  height: 2px;
  border-radius: 1px;
  background: var(--line);
  transition: width 0.35s var(--ease), background 0.35s var(--ease), opacity 0.35s var(--ease);
}

.cue-chapter.is-past .cue-tick {
  background: var(--muted);
  opacity: 0.35;
}

.cue-chapter.is-current .cue-tick {
  width: clamp(18px, 2.4vw, 28px);
  background: var(--accent);
  opacity: 1;
}

.cue-beats {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  min-height: 4px;
}

.cue-beat {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
  opacity: 0.55;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.cue-beat.is-past {
  background: var(--muted);
  opacity: 0.4;
}

.cue-beat.is-here {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.35);
}

.cue-hint {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.65;
}

.cue-hint span:first-child {
  letter-spacing: 0.06em;
}

body.cue-hidden .cue { visibility: hidden; }

/* Intro */
.letters { display: flex; gap: 0.02em; }

.letter {
  display: inline-block;
  animation: land 0.75s var(--ease) both;
  animation-delay: calc(var(--i) * 0.07s);
}

.kicker.greet { display: grid; }

.greet-a,
.greet-b {
  grid-area: 1 / 1;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.greet-b { opacity: 0; transform: translateY(8px); }

.kicker.greet.is-on .greet-a { opacity: 0; transform: translateY(-8px); }

.kicker.greet.is-on .greet-b { opacity: 1; transform: none; }

.intro-name {
  font-size: clamp(3.2rem, 10.5vw, 9.5rem);
  transition: font-size 0.8s 0.45s var(--ease);
}

.intro-name.is-on { font-size: clamp(5.2rem, 18vw, 14.5rem); }

.drop {
  display: inline-block;
  max-width: 1em;
  transition:
    transform 0.6s var(--ease),
    opacity 0.45s var(--ease),
    max-width 0.55s 0.35s var(--ease);
  transition-delay: calc(var(--d) * 0.06s), calc(var(--d) * 0.06s), 0.35s;
}

.intro-name.is-on .drop {
  max-width: 0;
  opacity: 0;
  transform: translateY(70%) rotate(calc(8deg + var(--d) * 6deg));
}

.surname {
  display: flex;
  gap: 0.02em;
  font-size: 0.46em;
  letter-spacing: 0.01em;
  line-height: 1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease), margin 0.55s var(--ease);
}

.surname.is-on { max-height: 1.3em; margin-top: 0.35em; }

.s-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(46%) rotate(7deg);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--i) * 0.04s);
}

.surname.is-on .s-letter { opacity: 1; transform: none; }

.intro-name.is-on .surname {
  max-height: 0;
  margin-top: 0;
  transition-delay: 0.4s;
}

.intro-name.is-on .s-letter {
  opacity: 0;
  transform: translateY(80%) rotate(calc(4deg + var(--i) * 2deg));
  transition-delay: calc(var(--i) * 0.03s);
}

@keyframes land {
  from { opacity: 0; transform: translateY(46%) rotate(7deg); }
  to { opacity: 1; transform: none; }
}

.words {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.words li {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.words li.is-on { opacity: 1; transform: none; }

.words li.is-current { color: #c96b45; }

/* Facts */
.facts {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 26%) 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  width: 100%;
}

.facts-map {
  display: none;
  position: absolute;
  top: -12%;
  left: -4%;
  width: min(46%, 320px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

.facts-map.is-on {
  display: block;
  animation: rise 0.7s var(--ease);
}

.facts-map img {
  display: block;
  width: 100%;
  height: auto;
}

.facts-side {
  position: relative;
  z-index: 1;
  align-self: end;
}

.facts-copy {
  position: relative;
  z-index: 2;
}

.facts-walk {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 18px);
  width: min(100%, 240px);
  pointer-events: none;
  z-index: 1;
}

.facts-walk.is-on {
  display: block;
  animation: walk-in 0.55s var(--ease);
}

@keyframes walk-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.facts-walk img {
  display: block;
  width: 100%;
  height: auto;
}

.rail { display: flex; flex-direction: column; gap: 14px; }

.mini {
  display: none;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.mini.is-on { display: block; opacity: 0.38; }

.mini.is-current { opacity: 1; color: var(--accent); }

.mini b {
  display: block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.mini span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.3;
  max-width: 22ch;
}

.fact-hero { min-height: 42vh; display: flex; flex-direction: column; justify-content: flex-end; }

.fact-slide {
  display: none;
}

.fact-slide.is-on { display: block; animation: rise 0.55s var(--ease); }

.fact-no {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.fact-slide p {
  margin-top: 22px;
  max-width: 36ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.45;
  color: var(--muted);
}

/* Why */
.why {
  width: 100%;
  max-width: 52rem;
}

.why-lines { position: relative; min-height: 28vh; margin-top: 22px; }

.why-line {
  position: absolute;
  inset: 0 auto auto 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 18ch;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.why-line.is-on { opacity: 1; transform: none; }

.strike-wrap { position: relative; display: inline-block; }

.strike {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 3px;
  background: #c96b45;
  transform: scaleX(0);
  transform-origin: left center;
}

.why-line.is-on .strike { transform: scaleX(1); transition: transform 0.55s 0.15s var(--ease); }

.ph {
  border: 1px dashed var(--line);
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  background:
    linear-gradient(160deg, rgba(201, 107, 69, 0.16), transparent 46%),
    rgba(255, 255, 255, 0.02);
}

.ph[data-from] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.ph[data-from].is-on { opacity: 1; transform: none; }

.ph small {
  display: block;
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 13px;
  line-height: 1.4;
  max-width: 28ch;
}

/* Belief */
.quote {
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(2.6rem, 6.4vw, 6.3rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 14ch;
}

.quote span {
  display: inline;
  opacity: 0;
  animation: word 0.7s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.12s);
}

@keyframes word {
  to { opacity: 1; }
}

.room {
  margin-top: 36px;
  max-width: 28ch;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.room.is-on { opacity: 1; transform: none; }

.room b {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.room span {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.25;
}

/* Build */
.build-viewport { overflow: hidden; width: 100%; margin-top: 28px; }

.build-track {
  display: flex;
  gap: 28px;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}

.build-card {
  flex: none;
  width: min(68vw, 760px);
  min-height: 42vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: end;
  opacity: 0.28;
  transition: opacity 0.45s var(--ease);
}

.build-card .ph { min-height: 28vh; }

.ph.has-loop {
  min-height: 0;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border-style: solid;
  background: #0b0b0a;
}

.ph.has-loop iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

button.ph.has-loop {
  position: relative;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}

button.ph.has-loop:hover,
button.ph.has-loop:focus-visible {
  border-color: rgba(243, 239, 230, 0.4);
  transform: translateY(-2px);
  outline: none;
}

.loop-expand {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(243, 239, 230, 0.35);
  border-radius: 50%;
  background: rgba(11, 11, 10, 0.6);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.loop-expand::before,
.loop-expand::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--fg);
}

.loop-expand::before { top: 7px; right: 7px; border-left: 0; border-bottom: 0; }
.loop-expand::after { bottom: 7px; left: 7px; border-right: 0; border-top: 0; }

button.ph.has-loop:hover .loop-expand,
button.ph.has-loop:focus-visible .loop-expand { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(11, 11, 10, 0.55);
  backdrop-filter: blur(18px) saturate(0.9);
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox.is-open { opacity: 1; }

.lightbox-frame {
  margin: 0;
  width: min(88vw, 76vh * 1.6);
  cursor: default;
  transform: scale(0.94);
  transition: transform 0.45s var(--ease);
}

.lightbox.is-open .lightbox-frame { transform: none; }

.lightbox-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: #0b0b0a;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.lightbox-frame figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--fg);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 400 12px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible { color: var(--fg); border-color: rgba(243, 239, 230, 0.4); outline: none; }

.build-card.is-current { opacity: 1; }

.build-card:first-child { width: min(78vw, 980px); }

.build-copy .idx {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.build-copy h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-top: 10px;
}

.build-copy .line {
  margin-top: 14px;
  font-size: 1.15rem;
  color: var(--fg);
}

.build-copy .detail {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 38ch;
}

/* Film */
.film-head { margin-bottom: 28px; }

.frames {
  display: flex;
  gap: 14px;
  align-items: stretch;
  height: min(46vh, 460px);
}

.frame {
  flex: 0.55;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(154, 67, 40, 0.14), transparent 50%),
    rgba(20, 18, 16, 0.04);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: transparent;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  filter: saturate(0.4);
  transition: flex 0.65s var(--ease), filter 0.45s var(--ease), color 0.35s var(--ease);
  cursor: pointer;
}

.frame.is-current { color: var(--muted); }

.frame.is-current { flex: 2.6; filter: none; }

.frame.has-image { position: relative; padding: 0; }

.frame.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-copy { margin-top: 26px; min-height: 7.5rem; position: relative; }

.film-slide {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.film-slide.is-on { opacity: 1; transform: none; }

.film-slide h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 560;
  letter-spacing: -0.04em;
}

.film-slide p {
  margin-top: 8px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.4;
}

/* Mixtape */
.frame.has-tape {
  align-items: center;
  justify-content: center;
  padding: 0;
  background: linear-gradient(180deg, #2a2521, #141210);
}

.frame.has-tape:not(.is-current) .tape-graffiti,
.frame.has-tape:not(.is-current) .tape-screw { opacity: 0; }

.tape {
  width: min(84%, 380px);
  flex-shrink: 0;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}

.tape-shell {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 66%;
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(180deg, #524e48 0%, #2f2c28 48%, #171614 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -12px 20px rgba(0, 0, 0, 0.38);
}

.tape-screw {
  position: absolute;
  z-index: 3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 45%, #151311 45% 55%, transparent 55%),
    radial-gradient(circle at 32% 28%, #f5f1e8, #8a857b 44%, #262320 72%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.tape-screw.tl { top: 8px; left: 9px; }
.tape-screw.tr { top: 8px; right: 9px; }
.tape-screw.bl { bottom: 8px; left: 9px; }
.tape-screw.br { bottom: 8px; right: 9px; }

.tape-window,
.tape-label {
  position: absolute;
  left: 7%;
  right: 7%;
}

.tape-window {
  top: 9%;
  height: 38%;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 36%),
    linear-gradient(180deg, #ebe2d4, #b8aea0);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.42),
    inset 0 8px 12px rgba(255, 255, 255, 0.28);
}

.tape-spool {
  position: absolute;
  top: 10%;
  width: 38%;
  height: 78%;
}

.tape-spool.left { left: 6%; }
.tape-spool.right { right: 6%; }

.tape-roll {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  margin: 0;
  transform: translate(-50%, -50%);
  animation: tape-spin 2.35s linear infinite;
}

.tape-spool.right .tape-roll {
  animation-duration: 3.05s;
  animation-direction: reverse;
}

.tape-pack,
.tape-hub {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.tape-pack {
  left: 50%;
  top: 50%;
  width: 96%;
  height: 96%;
  transform: translate(-50%, -50%) scale(1);
  background: repeating-radial-gradient(circle at 50% 50%, #6d4332 0 1px, #3f2519 1.5px 3px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: transform 0.85s var(--ease);
}

.tape-spool.right .tape-pack { transform: translate(-50%, -50%) scale(0.58); }

.tape-hub {
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 24%, #12100e 25% 36%, transparent 37%),
    repeating-conic-gradient(#d8c9b3 0 12deg, #161412 12deg 24deg);
  box-shadow: 0 0 0 2px #1a1714;
}

.tape-label {
  top: 52%;
  bottom: 7%;
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 4px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 34%),
    #efe4d2;
  box-shadow: inset 0 0 0 1px rgba(90, 60, 40, 0.18);
}

.tape-arts {
  position: relative;
  min-height: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #141210;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.tape-art {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.tape-art.is-on { opacity: 1; }

.tape-art span {
  position: absolute;
  inset: -10%;
  display: block;
}

.tape-art.a1 { background: #120f0d; }

.tape-art.a1 span {
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #c96b45 0 16%, #141210 17% 26%, transparent 27%),
    repeating-radial-gradient(circle at 50% 50%, #3a342e 0 2px, #100e0c 3px 6px);
  animation: tape-spin-center 4.4s linear infinite;
}

.tape-art.a2 {
  background: linear-gradient(160deg, #f3efe6 0 46%, #1a1612 46% 52%, #c96b45 52% 100%);
}

.tape-art.a2 span {
  background:
    linear-gradient(#1a1612, #1a1612) 14% 22% / 34% 8% no-repeat,
    linear-gradient(#f3efe6, #f3efe6) 58% 68% / 28% 8% no-repeat,
    linear-gradient(#9a4328, #9a4328) 18% 62% / 22% 22% no-repeat;
  animation: tape-drift 5.4s ease-in-out infinite alternate;
}

.tape-art.a3 {
  background: linear-gradient(180deg, #243044, #10151c 70%);
}

.tape-art.a3 span {
  background:
    linear-gradient(#e7b199, #c96b45) 64% 16% / 20% 26% no-repeat,
    linear-gradient(rgba(243, 239, 230, 0.85), rgba(243, 239, 230, 0.85)) 18% 72% / 28% 6% no-repeat,
    linear-gradient(rgba(243, 239, 230, 0.55), rgba(243, 239, 230, 0.55)) 22% 62% / 8% 16% no-repeat,
    linear-gradient(rgba(243, 239, 230, 0.55), rgba(243, 239, 230, 0.55)) 36% 62% / 8% 16% no-repeat;
  animation: tape-glow 3.3s ease-in-out infinite alternate;
}

.tape-graffiti {
  position: relative;
  min-width: 0;
  color: #1a1612;
}

.tape-meta {
  position: absolute;
  top: 2px;
  left: 1px;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a6556;
}

.tape-tag {
  position: absolute;
  left: 0;
  top: 38%;
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.tape-tag.t0 {
  color: #9a4328;
  font-size: clamp(22px, 3.4vh, 36px);
  transform: rotate(-7deg);
}

.tape-tag.t1 {
  color: #1d4e89;
  font-size: clamp(20px, 3vh, 30px);
  transform: rotate(3deg);
}

.tape-tag.t2 {
  color: #2f6b3a;
  font-size: clamp(18px, 2.8vh, 28px);
  transform: rotate(-2deg);
}

.tape-tag.is-on {
  opacity: 1;
  animation: tape-spray 0.7s var(--ease);
}

.tape-tag.is-on::after {
  content: "";
  position: absolute;
  left: 42%;
  bottom: -2px;
  width: 2px;
  height: 0;
  background: currentColor;
  border-radius: 2px;
  animation: tape-drip 0.7s 0.3s var(--ease) forwards;
}

@keyframes tape-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes tape-drift {
  to { transform: translate(-6%, -4%) rotate(-3deg) scale(1.08); }
}

@keyframes tape-glow {
  from { filter: brightness(0.75); transform: scale(1); }
  to { filter: brightness(1.2); transform: scale(1.05); }
}

@keyframes tape-spray {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes tape-drip {
  to { height: 8px; }
}

@keyframes tape-spin-center {
  to { transform: rotate(360deg); }
}

/* People */
.people-stage { position: relative; min-height: 48vh; width: 100%; }

.people-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}

.people-slide.is-on { opacity: 1; transform: none; }

.people-slide h2 { max-width: 12ch; }

.theme {
  margin-top: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
}

.people-slide .detail {
  margin-top: 16px;
  max-width: 36ch;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
  font-family: var(--serif);
}

/* Superhero */
.hero-title {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(3.4rem, 9vw, 8.4rem);
  line-height: 0.84;
  letter-spacing: -0.05em;
}

.super {
  display: inline-block;
  position: relative;
  color: #c96b45;
  transition: letter-spacing 0.7s var(--ease), opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.stage[data-beat="1"] .super,
.stage[data-beat="2"] .super {
  letter-spacing: 0.18em;
  opacity: 0.35;
  transform: translateY(-6px);
}

.super .strike {
  top: 58%;
  height: 4px;
}

.stage[data-beat="1"] .super .strike,
.stage[data-beat="2"] .super .strike {
  transform: scaleX(1);
  transition: transform 0.55s var(--ease);
}

.remains, .hero-room {
  max-width: 22ch;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.25;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.remains.is-on, .hero-room.is-on { opacity: 1; transform: none; }

.hero-room { color: #e7b199; font-size: clamp(1.2rem, 2vw, 1.6rem); }

.hero-stage { display: grid; }

.hero-panel {
  grid-area: 1 / 1;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.stage[data-beat="3"] .hero-super,
.stage[data-beat="4"] .hero-super {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}

.hero-complete { opacity: 0; transform: translateY(16px); }

.hero-complete.is-on { opacity: 1; transform: none; transition-delay: 0.2s; }

.perfect {
  display: inline-block;
  position: relative;
  color: #c96b45;
}

.perfect .strike { top: 58%; height: 4px; }

.hero-complete.is-on .perfect .strike {
  transform: scaleX(1);
  transition: transform 0.55s 0.8s var(--ease);
}

/* Path */
.path-line {
  margin: 28px 0 18px;
  height: 2px;
  background: var(--line);
  position: relative;
}

.path-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc((var(--beat) + 1) / var(--count) * 100%);
  background: #c96b45;
  transition: width 0.55s var(--ease);
}

.years {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 18px;
  padding: 0;
  margin: 0;
  align-items: start;
}

.years button {
  position: relative;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 22px 0 0;
  opacity: 0.28;
  transition: opacity 0.35s var(--ease);
}

.years button.is-on { opacity: 0.55; }

.years button.is-current { opacity: 1; }

.years .yr {
  position: absolute;
  top: 0;
  left: 0;
  color: #c96b45;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.years .wt {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.path-detail {
  display: none;
  margin-top: 28px;
  max-width: 42ch;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.4;
  color: var(--muted);
}

.path-detail.is-on { display: block; animation: rise 0.45s var(--ease); }

/* Close */
.stack { display: flex; flex-direction: column; }

.stack span {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(3.4rem, 10vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.stack span.is-on { opacity: 1; transform: none; }

.stack span.accent { color: #c96b45; }

.curious {
  margin-top: 8px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.curious.is-on { opacity: 1; transform: none; }

.curious .mega { font-size: clamp(4rem, 12vw, 9rem); }

.thanks {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  max-width: 28ch;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.thanks.is-on { opacity: 1; transform: none; }

.stage[data-beat="3"] .stack span,
.stage[data-beat="4"] .stack span { opacity: 0.22; font-size: clamp(1.4rem, 3vw, 2.4rem); }

@media (max-width: 800px) {
  .facts-map {
    width: min(54%, 220px);
    top: -6%;
    left: -2%;
    opacity: 0.58;
  }

  .facts-walk {
    width: min(100%, 200px);
    left: 0;
    right: auto;
    bottom: calc(100% + 10px);
  }

  .facts, .why, .build-card, .build-card:first-child {
    grid-template-columns: 1fr;
  }

  .why-line, .quote, .lede { max-width: none; }

  .frames { height: 28vh; }

  .years { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }

  .ph { min-height: 24vh; }
  .cue-map { gap: 2px; max-width: 94vw; }

  .cue-tick { width: 6px; }

  .cue-chapter.is-current .cue-tick { width: 14px; }

  .people-stage { min-height: 58vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
