/* ONE PIECE | Luffy
   White paper, black ink, Luffy's crimson. The footage carries the colour;
   the page stays quiet around it. */

:root {
  --white: #ffffff;
  --ink: #000000;
  --red: #b1001f;        /* Luffy's crimson, sampled from the footage */
  --red-deep: #6e0012;
  --blood: #120004;      /* the footage's own shadows, so dark edges melt into the video */
  --gray: #6b6464;
  --rule: rgba(0, 0, 0, .14);
  --paper: #efe3c6;      /* wanted-poster stock */

  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --cond: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --poster: "Ultra", Georgia, serif;

  --gutter: clamp(20px, 4vw, 72px);
  --arch-w: 32vw;
  --arch-top: 24vh;
  --arch-bottom: 12vh;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--white); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(16px, .45vw + 11px, 19px);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: none; }
h1, h2, h3, p, figure, blockquote, ol { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
body.is-loading { overflow: hidden; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 60;
  background: var(--white);
}
.loader__sun {
  --d: min(44vh, 62vw);
  position: absolute; left: 50%; top: 50%;
  width: var(--d); height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%;
  background: var(--red);
  transform: scale(.02);
  display: grid; place-items: center;
}
.loader__count {
  font-family: var(--cond); font-weight: 600;
  font-size: clamp(13px, 1.1vw, 18px);
  letter-spacing: .24em; padding-left: .24em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.loader__mark {
  position: absolute; left: 0; right: 0;
  top: calc(50% + min(22vh, 31vw) + 5vh);
  text-align: center;
  font-weight: 600;
  font-size: clamp(12px, .95vw, 15px);
  letter-spacing: .5em; padding-left: .5em;
}

/* ---------- Header ---------- */
.hud {
  position: fixed; inset: 0 0 auto; z-index: 40;
  padding: clamp(14px, 2.4vh, 28px) var(--gutter) 0;
  color: var(--ink);
  pointer-events: none;
  opacity: 0;
  transition: color .6s ease;
}
.hud[data-theme="dark"] { color: var(--white); }
.hud__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.hud__mark {
  pointer-events: auto;
  font-weight: 600;
  font-size: clamp(20px, 2.3vw, 40px);
  line-height: 1;
  letter-spacing: .34em; padding-left: .34em;
}
.hud__label {
  overflow: hidden;
  line-height: 1.5;
  font-size: clamp(10px, .7vw, 12px);
  letter-spacing: .26em;
  text-transform: uppercase;
}
.hud__label--r {
  text-align: right;
  text-transform: none;
  letter-spacing: .34em;
  font-size: clamp(12px, .9vw, 15px);
}
.hud__roll { display: inline-block; will-change: transform; }
.hud__rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: clamp(10px, 1.5vh, 16px);
}
.hud__rule::before, .hud__rule::after {
  content: "";
  height: 4px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: .42;
}
.hud__pill { display: flex; align-items: center; gap: 9px; }
.hud__pill i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.hud__pillbox {
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 99px;
  padding: 4px 13px 3px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .26em; padding-right: calc(13px - .26em);
  text-transform: uppercase;
}

/* ---------- Shared film layers ---------- */
.film {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--blood);
  will-change: clip-path;
}
.film__video, .frame > .film__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.film__grade {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 50%, transparent 52%, rgba(18, 0, 4, .62) 100%),
    linear-gradient(180deg, rgba(18, 0, 4, .5) 0%, transparent 24%, transparent 74%, rgba(18, 0, 4, .55) 100%);
}
/* the colour burn: hot orange in one corner, crimson in the other */
.film__grade::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(118deg, rgba(255, 92, 20, .5) 0%, transparent 34%, transparent 62%, rgba(177, 0, 31, .55) 100%);
  mix-blend-mode: color-burn;
}
.film__grain {
  position: absolute; inset: -50%;
  pointer-events: none;
  background-image: var(--noise);
  background-size: 170px;
  opacity: .16;
  mix-blend-mode: overlay;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-7%, 4%); }
  40%  { transform: translate(5%, -6%); }
  60%  { transform: translate(-3%, 7%); }
  80%  { transform: translate(7%, 2%); }
  100% { transform: translate(0, 0); }
}
.letterbox { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.letterbox i {
  position: absolute; left: 0; right: 0;
  height: 9vh;
  background: #000;
  transform: scaleY(0);
}
.letterbox i:first-child { top: 0; transform-origin: 50% 0; }
.letterbox i:last-child { bottom: 0; transform-origin: 50% 100%; }

/* film burn: a hot flare that washes across the frame on big reveals */
.burn {
  position: absolute; inset: -25%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(30% 36% at 28% 56%, rgba(255, 64, 18, .95), rgba(255, 64, 18, 0) 72%),
    radial-gradient(26% 32% at 50% 44%, rgba(255, 168, 64, .9), rgba(255, 168, 64, 0) 72%),
    radial-gradient(18% 22% at 64% 58%, rgba(255, 246, 224, .95), rgba(255, 246, 224, 0) 72%),
    radial-gradient(40% 50% at 80% 40%, rgba(177, 0, 31, .8), rgba(177, 0, 31, 0) 70%);
}
.burn--white {
  background:
    radial-gradient(34% 40% at 40% 50%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 72%),
    radial-gradient(26% 30% at 60% 46%, rgba(255, 236, 170, .9), rgba(255, 236, 170, 0) 72%),
    radial-gradient(40% 50% at 75% 60%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%);
}

/* ---------- Prologue ---------- */
.prologue { position: relative; background: var(--white); }
.prologue__stage { position: relative; height: 100vh; overflow: hidden; }
.prologue__film { clip-path: circle(0px at 50% 50%); }
.prologue__intro {
  position: absolute; inset: 4vh 0 0; z-index: 4;
  width: min(640px, 84vw); height: fit-content;
  margin: auto;
  text-align: center;
  color: var(--white);
  font-weight: 500;
  font-size: clamp(17px, 1.3vw, 23px);
  line-height: 1.95;
  text-shadow: 0 2px 34px rgba(18, 0, 4, .75);
  visibility: hidden;
}
/* a soft pool of shadow so the copy reads over the brightest frames */
.prologue__intro::before {
  content: "";
  position: absolute; inset: -16vh -12vw; z-index: -1;
  background: radial-gradient(closest-side, rgba(18, 0, 4, .72), rgba(18, 0, 4, .42) 58%, rgba(18, 0, 4, 0));
  pointer-events: none;
}
.band {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  height: 30vh;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3vw;
  padding: 0 var(--gutter);
  background: var(--blood);
  color: var(--white);
}
.band__title {
  font-family: var(--cond);
  font-weight: 800;
  font-size: clamp(42px, 6.6vw, 124px);
  line-height: .9;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-align: center;
}
.band__title span { display: block; }
.seal {
  writing-mode: vertical-rl;
  padding: .55em .36em;
  border-radius: 3px;
  background: var(--red);
  color: var(--blood);
  font-weight: 800;
  font-size: clamp(18px, 1.7vw, 30px);
  line-height: 1;
  letter-spacing: .14em;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: calc(9vh + 18px); z-index: 4;
  translate: -50% 0;
  color: var(--white);
  font-size: 11px;
  letter-spacing: .32em; padding-left: .32em;
  text-transform: uppercase;
  opacity: 0;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px; height: 34px;
  margin: 10px auto 0;
  background: currentColor;
  transform-origin: 50% 0;
  animation: cue 2.2s cubic-bezier(.7, 0, .3, 1) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: 50% 0; }
  45%  { transform: scaleY(1); transform-origin: 50% 0; }
  55%  { transform: scaleY(1); transform-origin: 50% 100%; }
  100% { transform: scaleY(0); transform-origin: 50% 100%; }
}

/* ---------- Name ticker ---------- */
.marquee {
  position: relative;
  padding: 13vh 0 11vh;
  overflow: hidden;
  background: var(--white);
}
.marquee__row { display: flex; white-space: nowrap; }
.marquee__track { display: flex; align-items: center; flex: 0 0 auto; will-change: transform; }
.marquee__track span { padding: 0 .3em; }
.marquee__track i {
  flex: 0 0 auto;
  width: .2em; height: .2em;
  border-radius: 50%;
}
.marquee__row--a {
  font-family: var(--cond);
  font-weight: 900;
  font-size: 13vw;
  line-height: .9;
  text-transform: uppercase;
  color: var(--red);
}
.marquee__row--a i { background: var(--ink); }
.marquee__row--b {
  margin-top: 1.6vh;
  font-weight: 800;
  font-size: 6.2vw;
  line-height: 1.15;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
}
.marquee__row--b i { width: .16em; height: .16em; background: var(--red); }

/* ---------- Bounty ---------- */
.wanted { position: relative; background: var(--white); }
.wanted__stage { position: relative; height: 100vh; overflow: hidden; }
.wanted__title {
  position: absolute; inset: 0 0 20vh; z-index: 1;
  width: min(13ch, 64vw); height: fit-content;
  margin: auto;
  text-align: center;
  font-weight: 500;
  font-size: clamp(40px, 5.8vw, 108px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.wanted__posters {
  position: absolute; inset: 0; z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 9vw 16vh;
  pointer-events: none;
}
.poster {
  width: min(18vw, 34vh);
  display: flex; flex-direction: column; align-items: center;
  perspective: 1000px;
  pointer-events: auto;
}
.poster__body { width: 100%; transform-style: preserve-3d; will-change: transform; }
.poster__paper {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 5 / 7;
  display: flex; flex-direction: column; align-items: center;
  padding: 6% 8% 5%;
  text-align: center;
  color: #2a1b10;
  background:
    radial-gradient(140% 110% at 50% 38%, transparent 58%, rgba(112, 72, 22, .32) 100%),
    linear-gradient(180deg, #f3e9d0, #e8d6b0);
  box-shadow: 0 38px 60px -34px rgba(46, 22, 0, .55), 0 2px 4px rgba(0, 0, 0, .08);
}
.poster__paper::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: var(--noise);
  background-size: 120px;
  opacity: .26;
  mix-blend-mode: multiply;
}
.poster__wanted { font-family: var(--poster); font-size: 19cqw; line-height: 1; letter-spacing: .03em; }
.poster__photo {
  width: 100%;
  aspect-ratio: 1 / .9;
  margin: 3.5cqw 0 3cqw;
  border: 1px solid rgba(42, 27, 16, .7);
  overflow: hidden;
  background: #d9c59c;
}
.poster__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: sepia(.18) contrast(1.04); }
.poster__doa { font-family: var(--poster); font-size: 8.4cqw; line-height: 1.1; letter-spacing: .02em; }
.poster__name { margin-top: 1.5cqw; font-weight: 800; font-size: 7.2cqw; line-height: 1.1; letter-spacing: .02em; }
.poster__bounty {
  margin-top: 2.2cqw;
  font-family: var(--poster);
  font-size: 10cqw;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.poster--now .poster__bounty { font-size: 8.6cqw; }
.berry { position: relative; display: inline-block; margin-right: .1em; }
.berry::before {
  content: "";
  position: absolute; left: 50%; top: -.14em; bottom: -.14em;
  width: .08em;
  background: currentColor;
  transform: translateX(-60%);
}
.poster__marine { margin-top: auto; font-weight: 700; font-size: 4.6cqw; letter-spacing: .5em; padding-left: .5em; }
.plinth {
  position: relative;
  width: 118%;
  height: min(9vh, 74px);
  margin-top: min(4.5vh, 36px);
  background: linear-gradient(180deg, #f7f7f7 0%, #ebebeb 100%);
  box-shadow: 0 26px 34px -24px rgba(0, 0, 0, .3);
}
.plinth i {
  position: absolute; left: 0; right: 0; bottom: 100%;
  height: 12px;
  background: linear-gradient(180deg, #fdfdfd, #f2f2f2);
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
}
.plinth::before {
  content: "";
  position: absolute; left: 15%; right: 15%; bottom: calc(100% + 6px);
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 20, 0, .28), transparent);
  filter: blur(2px);
}
.poster figcaption { margin-top: 1.6vh; font-size: 13px; color: var(--gray); text-align: center; }
.bounty-line {
  position: absolute; left: 9vw; right: 9vw; bottom: 4.5vh; z-index: 3;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding-top: 18px;
}
.bounty-line::before {
  content: "";
  position: absolute; left: 0; right: calc(100% / 7); top: 0;
  height: 1px;
  background: var(--rule);
}
.bounty-line__fill {
  position: absolute; left: 0; right: calc(100% / 7); top: -.5px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.bounty-line li {
  position: relative;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--gray);
}
.bounty-line li::before {
  content: "";
  position: absolute; left: -3px; top: -21px;
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--white);
  transition: background .3s, border-color .3s, transform .3s;
}
.bounty-line b {
  font-family: var(--cond);
  font-weight: 800;
  font-size: clamp(18px, 1.6vw, 28px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ink);
  transition: color .3s;
}
.bounty-line li.is-on::before { background: var(--red); border-color: var(--red); transform: scale(1.3); }
.bounty-line li.is-on b { color: var(--red); }

/* ---------- Chapters ---------- */
.chapter { position: relative; background: var(--white); }
.chapter__pin { position: relative; height: 100vh; overflow: hidden; }
.chapter__track {
  position: relative;
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
}
.panel { position: relative; flex: 0 0 auto; height: 100%; }
.panel--opener { width: 100vw; overflow: hidden; }

.arch {
  position: absolute;
  top: var(--arch-top); bottom: var(--arch-bottom);
  width: var(--arch-w);
  overflow: hidden;
  border-radius: calc(var(--arch-w) / 2) calc(var(--arch-w) / 2) 0 0;
  background: #efefef;
  z-index: 1;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--l { left: calc(50% - var(--arch-w) * 1.5 - 4vw); }
.arch--r { left: calc(50% + var(--arch-w) * .5 + 4vw); }

.opener__film {
  z-index: 2;
  clip-path: inset(var(--arch-top) calc(50% - var(--arch-w) / 2) var(--arch-bottom) calc(50% - var(--arch-w) / 2) round calc(var(--arch-w) / 2) calc(var(--arch-w) / 2) 0 0);
}
.opener__title {
  position: absolute; left: 0; right: 0; bottom: 5vh; z-index: 4;
  display: flex; align-items: flex-end; gap: 2.2vw;
  padding: 0 var(--gutter);
  color: var(--white);
  pointer-events: none;
}
.opener__kanji {
  font-weight: 800;
  font-size: min(38vh, 27vw);
  line-height: .84;
  letter-spacing: -.02em;
  white-space: nowrap;
  opacity: 0;
  text-shadow: 0 10px 80px rgba(18, 0, 4, .45);
}
.opener__en {
  padding-bottom: 2.6vh;
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 32px);
  white-space: nowrap;
  opacity: 0;
}

/* editorial panels */
.panel__body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: clamp(14px, 1.5vw, 26px);
}
.vjp {
  writing-mode: vertical-rl;
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .34em;
  padding-top: .5em;
}
.panel--text {
  width: clamp(340px, 34vw, 640px);
  padding: 0 3vw;
  display: flex; flex-direction: column; justify-content: center;
}
.panel--text.is-high { justify-content: flex-start; padding-top: 25vh; }
.panel--text.is-low { justify-content: flex-end; padding-bottom: 12vh; }
.panel__h {
  max-width: 12ch;
  margin-bottom: .62em;
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -.018em;
}
.panel__p { max-width: 34ch; line-height: 1.95; }

.panel--image, .panel--film {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 2.6vw;
}
.panel--film.is-low, .panel--image.is-low { justify-content: flex-end; padding-bottom: 11vh; }
.panel--film.is-high, .panel--image.is-high { justify-content: flex-start; padding-top: 22vh; }
.frame { position: relative; overflow: hidden; background: #f0f0f0; }
.frame--dark { background: #000; }
.frame > img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.frame--tall { height: 72vh; aspect-ratio: 9 / 16; }
.frame--poster { height: 64vh; aspect-ratio: 736 / 946; }
.frame--wide { width: min(46vw, 120vh); aspect-ratio: 16 / 9; }
.frame--cine { width: min(58vw, 150vh); aspect-ratio: 2.39 / 1; }
.frame--portrait { height: 68vh; aspect-ratio: 4 / 5; }
.frame .film__grade::after { display: none; }
.panel figcaption { margin-top: 14px; font-size: 13px; color: var(--gray); }
.panel figcaption::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--red);
}

.panel--roster {
  padding: 9vh 3vw 0;
  display: flex; align-items: center; gap: clamp(24px, 3vw, 56px);
}
.roster__list { width: clamp(280px, 25vw, 460px); }
.frame--flags { height: 74vh; aspect-ratio: 320 / 1278; flex: 0 0 auto; }
.roster__note { margin-bottom: 1.3em; font-size: 13px; color: var(--gray); }
.roster { counter-reset: crew; }
.roster li {
  counter-increment: crew;
  display: grid;
  grid-template-columns: 2.6em 1fr auto;
  align-items: baseline;
  padding: .6em 0 .5em;
  border-bottom: 1px solid var(--rule);
}
.roster li::before {
  content: counter(crew, decimal-leading-zero);
  font-family: var(--cond);
  font-weight: 800;
  font-size: .9em;
  letter-spacing: .04em;
  color: var(--red);
}
.roster b { font-weight: 600; font-size: clamp(20px, 1.7vw, 30px); line-height: 1.1; }
.roster span { font-size: 14px; color: var(--gray); }

.panel--strip {
  display: flex; flex-direction: column; justify-content: center;
  gap: 2vh;
  padding: 9vh 2.6vw 0;
}
.panel--strip .frame { height: 23vh; aspect-ratio: 16 / 9; }

.panel--quote {
  width: max(54vw, 620px);
  margin: 0;
  padding: 0 6vw 0 3vw;
  display: flex; flex-direction: column; justify-content: center;
}
.panel--quote .vjp { position: absolute; left: 0; top: 25vh; }
.quote {
  font-weight: 500;
  font-size: clamp(46px, 6.2vw, 116px);
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--red);
}
.is-end { margin-right: 9vw; }

/* ---------- The voyage: pictures fly past the camera ---------- */
.voyage { position: relative; background: var(--white); }
.voyage__stage { position: relative; height: 100vh; overflow: hidden; }
.voyage__space {
  position: absolute; inset: 0; z-index: 1;
  perspective: 1000px;
  transform-style: preserve-3d;
  pointer-events: none;
}
.card {
  position: absolute; left: 50%; top: 50%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .45);
}
.card img { display: block; width: 100%; height: auto; }
/* the title inverts whatever passes beneath it: black on paper, negative over pictures */
.voyage__intro {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 var(--gutter);
  text-align: center;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.voyage__kicker {
  margin-bottom: 2.6vh;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5em; padding-left: .5em;
}
.voyage__title {
  font-weight: 500;
  font-size: clamp(46px, 6.6vw, 128px);
  line-height: 1;
  letter-spacing: -.028em;
}
.voyage__sub { margin-top: 3.4vh; font-size: 15px; letter-spacing: .04em; }

/* ---------- The awakening: scroll scrubs the footage ---------- */
.awaken { position: relative; background: #000; }
.awaken__stage { position: relative; height: 100vh; overflow: hidden; background: #000; }
.awaken__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.awaken .film__grade { z-index: 1; }
.awaken .film__grain { z-index: 1; }
.letterbox--tall i { height: 12vh; }
/* subtitles live in the bottom bar, like a film print */
.awaken__subs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  height: 12vh;
  pointer-events: none;
}
.sub {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 1.1em;
  padding: 0 var(--gutter);
  color: #fff;
  font-weight: 500;
  font-size: clamp(18px, 2.1vw, 36px);
  line-height: 1.2;
  letter-spacing: .01em;
  opacity: 0;
}
.sub span {
  color: #ff3347;
  font-weight: 600;
  font-size: .5em;
  letter-spacing: .3em;
}
.awaken__title {
  position: absolute; left: 0; right: 0; top: 15vh; z-index: 4;
  display: flex; flex-direction: column; align-items: center;
  color: #fff;
  pointer-events: none;
}
.awaken__jp {
  margin-bottom: 1.6em;
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 20px);
  letter-spacing: .5em; padding-left: .5em;
  opacity: 0;
}
.awaken__gear {
  font-family: var(--cond);
  font-weight: 900;
  font-size: min(21vw, 34vh);
  line-height: .84;
  letter-spacing: .01em;
  opacity: 0;
  text-shadow: 0 0 40px rgba(255, 255, 255, .55), 0 0 120px rgba(255, 220, 140, .45);
}
.awaken__meter {
  position: absolute; left: 0; right: 0; bottom: 12vh; z-index: 4;
  height: 2px;
  background: rgba(255, 255, 255, .14);
}
.awaken__meter i {
  position: absolute; inset: 0;
  background: #ff3347;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Epilogue ---------- */
.epilogue { position: relative; background: var(--white); }
.epilogue__stage { position: relative; height: 100vh; overflow: hidden; }
/* a plain block, centred by margins: as a flex box its split lines sat side by side ("isstill") */
.epilogue__line {
  position: absolute; inset: 0; z-index: 1;
  height: fit-content; margin: auto;
  padding: 0 var(--gutter);
  text-align: center;
  font-weight: 500;
  font-size: clamp(44px, 6.6vw, 128px);
  line-height: 1.02;
  letter-spacing: -.028em;
  color: var(--red);
}
.epilogue__tbc {
  position: absolute; inset: 0; z-index: 5;
  width: min(58vw, 120vh); height: auto;
  aspect-ratio: 1421 / 1058;
  margin: auto;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .95)) drop-shadow(0 22px 50px rgba(0, 0, 0, .6));
}
.epilogue__film { z-index: 2; clip-path: inset(100% 0% 0% 0%); }
.epilogue__mark {
  position: absolute; inset: 0; z-index: 4;
  height: fit-content;
  margin: auto 0;
  text-align: center;
  color: var(--white);
  font-weight: 600;
  font-size: min(8.6vw, 15vh);
  line-height: 1;
  letter-spacing: .3em; padding-left: .3em;
  opacity: 0;
  text-shadow: 0 8px 60px rgba(18, 0, 4, .6);
}

/* ---------- Footer ---------- */
.foot {
  display: grid; justify-items: center; gap: 4vh;
  padding: 14vh var(--gutter) 7vh;
  text-align: center;
  background: var(--white);
}
.foot__again {
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: transparent;
  padding: 1em 2.6em;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .35s, border-color .35s, color .35s;
}
.foot__again:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.foot__note { max-width: 62ch; font-size: 13px; line-height: 1.8; color: var(--gray); }

/* ---------- Phones and narrow windows ---------- */
@media (max-width: 820px) {
  :root { --arch-w: 74vw; --arch-top: 22vh; --arch-bottom: 14vh; }
  .hud__label { display: none; }
  .hud__row { grid-template-columns: 1fr; justify-items: center; }
  .arch--l, .arch--r { display: none; }
  .chapter__pin { height: auto; overflow: visible; }
  .chapter__track { flex-direction: column; width: auto; height: auto; }
  .panel { height: auto; }
  .panel--opener { height: 100vh; }
  .panel--text, .panel--roster, .panel--quote, .panel--image, .panel--film, .panel--strip {
    width: auto; padding: 9vh var(--gutter);
  }
  .panel--text.is-high, .panel--text.is-low, .panel--film.is-low, .panel--film.is-high { padding: 9vh var(--gutter); }
  .frame--tall, .frame--poster { height: auto; width: 100%; }
  .panel--roster { flex-direction: column; align-items: stretch; }
  .frame--flags { height: 60vh; align-self: center; }
  .roster__list { width: auto; }
  .frame--wide, .frame--cine, .panel--strip .frame { width: 100%; height: auto; }
  .frame--portrait { width: 100%; height: auto; }
  .panel--image.is-high, .panel--image.is-low { padding: 9vh var(--gutter); }
  .panel--quote .vjp { position: static; margin-bottom: 1.4em; }
  .marquee { padding: 9vh 0 7vh; }
  .marquee__row--a { font-size: 19vw; }
  .marquee__row--b { font-size: 9vw; -webkit-text-stroke-width: 1px; }
  .voyage__sub { font-size: 13px; }
  .sub { font-size: 17px; flex-direction: column; gap: .3em; }
  .awaken__title { top: 18vh; }
  .is-end { margin-right: 0; }
  .band { grid-template-columns: 1fr; justify-items: center; gap: 2vh; height: 34vh; }
  .band .seal { display: none; }
  .wanted__title { top: 30%; }
  .wanted__posters { padding: 0 6vw 18vh; }
  .poster { width: 40vw; }
  .bounty-line { left: 5vw; right: 5vw; }
  .bounty-line span { display: none; }
  .bounty-line b { font-size: 15px; }
}

/* ---------- Reduced motion: a still, readable page ---------- */
.is-static .hud { opacity: 1; }
.is-static .loader { display: none; }
.is-static .prologue__film, .is-static .opener__film, .is-static .epilogue__film { clip-path: none; }
.is-static .prologue__intro { visibility: visible; }
.band { visibility: hidden; }
.is-static .band { visibility: visible; }
.is-static .opener__kanji, .is-static .opener__en, .is-static .epilogue__mark { opacity: 1; }
.is-static .arch { display: none; }
.is-static .chapter__pin { height: auto; overflow: visible; }
.is-static .chapter__track { flex-direction: column; width: auto; height: auto; }
.is-static .panel { height: auto; min-height: 60vh; }
.is-static .panel--opener { height: 100vh; }
.is-static .epilogue__line { position: relative; height: 100vh; }
.is-static .epilogue__stage { height: auto; }
.is-static .epilogue__film { position: relative; height: 100vh; }
.is-static .epilogue__tbc { position: relative; inset: auto; margin: 8vh auto; opacity: 1; }
.is-static .voyage__stage { height: auto; overflow: visible; padding: 14vh var(--gutter); }
.is-static .voyage__intro { position: relative; inset: auto; margin-bottom: 8vh; color: var(--ink); mix-blend-mode: normal; }
.is-static .voyage__space { position: relative; inset: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; perspective: none; }
.is-static .card { position: relative; left: auto; top: auto; width: auto !important; opacity: 1; visibility: visible; transform: none !important; }
.is-static .awaken__stage { height: 100vh; }
.is-static .sub:nth-child(3), .is-static .awaken__gear, .is-static .awaken__jp { opacity: 1; }
.is-static .film__grain, .is-static .scroll-cue::after { animation: none; }


/* ---------- Story progress / accessibility polish ---------- */
.skip-link {
  position: fixed;
  z-index: 10000;
  left: 18px;
  top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: 600 12px/1 system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.chapter-nav {
  --nav-line: rgba(16,16,16,.2);
  --nav-edge: rgba(16,16,16,.52);
  --nav-dot: rgba(16,16,16,.28);
  --nav-active: #111;
  --nav-ring: rgba(16,16,16,.08);
  position: fixed;
  z-index: 160;
  right: clamp(14px, 2vw, 30px);
  top: 50%;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}
.hud[data-theme="dark"] + .chapter-nav {
  --nav-line: rgba(255,255,255,.18);
  --nav-edge: rgba(255,255,255,.58);
  --nav-dot: rgba(255,255,255,.3);
  --nav-active: #fff;
  --nav-ring: rgba(255,255,255,.08);
}
.chapter-nav::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: var(--nav-line);
  transform: translateX(-50%);
  pointer-events: none;
}
.chapter-nav__link {
  position: relative;
  width: 11px;
  height: 11px;
  border: 1px solid var(--nav-edge);
  border-radius: 50%;
  background: rgba(0,0,0,.22);
  box-shadow: 0 0 0 0 rgba(255,255,255,0);
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.chapter-nav__link::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: var(--nav-dot);
  transition: background-color .25s ease;
}
.chapter-nav__link span {
  position: absolute;
  right: 20px;
  top: 50%;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(8,8,8,.72);
  color: #fff;
  font: 600 10px/1 system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px,-50%);
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.chapter-nav__link:hover span,
.chapter-nav__link:focus-visible span {
  opacity: 1;
  transform: translate(0,-50%);
}
.chapter-nav__link.is-active {
  transform: scale(1.35);
  background: rgba(255,255,255,.22);
  box-shadow: 0 0 0 4px var(--nav-ring);
}
.chapter-nav__link.is-active::after { background: var(--nav-active); }

@media (max-width: 760px) {
  .chapter-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .chapter-nav__link,
  .chapter-nav__link::after,
  .chapter-nav__link span {
    transition: none;
  }
}


/* ---------- Clean loading state ---------- */
.is-loading .chapter-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.chapter-nav {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility .45s ease;
}
.is-loading .skip-link {
  opacity: 0;
  visibility: hidden;
}


.foot__credit {
  margin-top: 1vh;
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
}
.foot__credit span {
  color: var(--ink);
}
