/* ───────────────────────────────────────────────────────────
   青空δ AOZORA DELTA — palette sampled off the film's pixels
   f0001 grid paper #edeae5 · polaroid sky #033174 · moon/sandal
   navy #151f4a · sticker shadow #606696 · f0480 solid cobalt
   #033b82 · f0250 magenta #e0339a / #ebb7ce.
   The film is a cut-paper collage on graph paper. The chrome is
   the same stuff: stickers with white borders and periwinkle
   offset shadows, masking tape, a 5 mm grid, sparkle stars.
   ─────────────────────────────────────────────────────────── */

:root {
  --paper:   #edeae5;
  --paper-2: #f7f6f3;
  --cobalt:  #033b82;
  --cobalt-2:#033174;
  --navy:    #151f4a;
  --peri:    #606696;
  --pink:    #e0339a;
  --pink-2:  #ebb7ce;
  --grid:    rgba(3,59,130,.12);
  --grid-2:  rgba(3,59,130,.22);

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --serif-jp:"Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans:    "Zen Kaku Gothic New", "Hiragino Sans", -apple-system, sans-serif;
  --mono:    "DM Mono", ui-monospace, Menlo, monospace;

  --fg:   var(--paper-2);
  --fg-2: rgba(247,246,243,.72);
  --line: rgba(247,246,243,.35);

  --gut:  clamp(16px, 3vw, 48px);
  --ease: cubic-bezier(.22,1,.36,1);
  --pop:  cubic-bezier(.34,1.56,.64,1);
  --snap: cubic-bezier(.7,0,.3,1);
  --scroll-length: 1150vh;
  --p: 0;
  --gridbg: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 20px 20px,
            linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 20px 20px,
            linear-gradient(var(--grid-2) 1px, transparent 1px) 0 0 / 100px 100px,
            linear-gradient(90deg, var(--grid-2) 1px, transparent 1px) 0 0 / 100px 100px;
}
:root.is-light { --fg: var(--navy); --fg-2: rgba(21,31,74,.7); --line: rgba(21,31,74,.3); }

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--cobalt); color: var(--paper-2);
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; line-height: 1.5; }
.jp, .jp-serif { font-family: var(--serif-jp); font-weight: 900; letter-spacing: .02em; }
.jp { font-weight: 600; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 300; background: var(--paper-2); color: var(--navy); padding: 10px 16px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px dashed var(--pink); outline-offset: 3px; }
::selection { background: var(--pink); color: var(--paper-2); }
svg use { fill: currentColor; }

/* ── loader ─────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 260; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--gridbg), var(--paper); color: var(--navy); transition: clip-path 1s var(--snap), visibility 1s; clip-path: inset(0 0 0 0); }
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__pola { background: var(--paper-2); padding: 12px 12px 40px; box-shadow: 8px 8px 0 var(--peri); transform: rotate(-4deg); position: relative; animation: bob 2.4s ease-in-out infinite; }
.loader__img { width: 150px; height: 150px; background: #c9cdd6; position: relative; overflow: hidden; }
.loader__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--cobalt-2), var(--cobalt) 60%, #5d7fb8); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s linear; }
.loader__star { position: absolute; width: 36px; height: 36px; left: 50%; top: 50%; margin: -18px; color: var(--paper-2); animation: twk 1.4s ease-in-out infinite; }
.loader__cap { position: absolute; left: 12px; bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.loader__mark { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; }
.loader__meta { color: rgba(21,31,74,.6); }
@keyframes bob { 50% { transform: rotate(-2deg) translateY(-6px); } }
@keyframes twk { 0%,100% { transform: scale(.6) rotate(0); opacity: .6; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── mode-switch iris ───────────────────────────────────── */
.iris { position: fixed; inset: 0; z-index: 240; pointer-events: none; display: grid; place-items: center; }
.iris__disc { position: absolute; inset: 0; background: linear-gradient(rgba(247,246,243,.14) 1px, transparent 1px) 0 0/20px 20px, linear-gradient(90deg, rgba(247,246,243,.14) 1px, transparent 1px) 0 0/20px 20px, var(--cobalt);
  clip-path: circle(0% at 50% 50%); transition: clip-path .55s var(--snap) .05s; }
.iris__star { position: relative; width: 120px; height: 120px; color: var(--paper-2); transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease); }
.iris__txt { position: absolute; top: calc(50% + 84px); display: flex; gap: 14px; color: var(--paper-2); opacity: 0; transition: opacity .2s; }
:root.is-switching .iris__disc { clip-path: circle(75% at 50% 50%); transition-duration: .26s; transition-delay: 0s; }
:root.is-switching .iris__star { transform: scale(1) rotate(45deg); transition-duration: .3s; }
:root.is-switching .iris__txt { opacity: 1; }

/* ── film ───────────────────────────────────────────────── */
.film { position: fixed; inset: 0; z-index: 0; background: var(--paper); overflow: hidden; }
.film canvas, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-mode="scrub"] .film video { display: none; }
[data-mode="video"] .film canvas { display: none; }
.film__veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(120% 90% at 50% 50%, rgba(21,31,74,.1), rgba(21,31,74,.5)); }
[data-mode="video"] .film__veil { opacity: 1; }

/* ── HUD (parallax on --p) ──────────────────────────────── */
.hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; color: var(--fg); transition: color .4s; }
.reg { position: absolute; width: 22px; height: 22px; }
.reg::before, .reg::after { content: ""; position: absolute; background: currentColor; opacity: .7; }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; }
.reg { border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.reg--tl { left: 10px; top: 76px; } .reg--tr { right: 10px; top: 76px; }
.reg--bl { left: 10px; bottom: 10px; } .reg--br { right: 10px; bottom: 10px; }
.hud__side { position: absolute; top: 50%; display: flex; gap: 26px; white-space: nowrap; writing-mode: vertical-rl; font-size: 11px; }
.hud__side--l { left: 12px; transform: translateY(calc(-50% + var(--p) * -120px)); }
.hud__side--l .jp { letter-spacing: .3em; }
.hud__side--r { right: 12px; transform: translateY(calc(-50% + var(--p) * 120px)); }
.hud__side b { font-weight: 500; font-variant-numeric: tabular-nums; }
.hud__fig { position: absolute; left: 44px; bottom: 16px; display: flex; gap: 6px; align-items: baseline; }
.hud__fig b { font-family: var(--display); font-size: 24px; letter-spacing: 0; }
.hud__spark { position: absolute; right: 48px; top: 96px; width: 16px; height: 16px; transform: rotate(calc(var(--p) * 1080deg)); color: var(--pink); }
[data-mode="video"] .hud { --fg: var(--paper-2); --line: rgba(247,246,243,.35); }

/* ── header ─────────────────────────────────────────────── */
.chrome { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 68px; display: flex; align-items: center; gap: 22px;
  padding: 0 var(--gut); color: var(--fg); transition: color .4s, background .4s; }
.chrome::after { content: ""; position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); }
:root.is-paper .chrome { --fg: var(--navy); --line: rgba(21,31,74,.25); background: rgba(237,234,229,.92); }
.mark { display: flex; align-items: center; gap: 4px; text-decoration: none; margin-right: auto; }
.mark__jp { font-family: var(--serif-jp); font-weight: 900; font-size: 24px; line-height: 1; }
.mark__d { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; color: var(--pink); transform: translateY(-2px); }
.mark__en { font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; line-height: 1.05; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.chrome__nav { display: flex; gap: 22px; }
.chrome__nav a { text-decoration: none; display: grid; line-height: 1.1; position: relative; font-weight: 500; font-size: 14px; }
.chrome__nav small { font-family: var(--serif-jp); font-size: 9.5px; opacity: .6; }
.chrome__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--pink); transform: scaleX(0); transform-origin: 100% 0; transition: transform .45s var(--ease); }
.chrome__nav a:hover::after { transform: scaleX(1); transform-origin: 0 0; }

/* the switch: grid-paper track, star knob, rolling label */
.switch { display: flex; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--fg); border-radius: 999px; padding: 5px 6px 5px 14px; color: var(--fg); transform: var(--mag, none); transition: border-color .4s, color .4s; }
.switch__txt { display: grid; line-height: 1.05; text-align: left; }
.switch__txt b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.switch__txt small { font-family: var(--serif-jp); font-size: 9px; opacity: .65; }
.switch__track { position: relative; width: 58px; height: 28px; border-radius: 999px; background: var(--gridbg), var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--navy); overflow: hidden; }
.switch__track::before { content: ""; position: absolute; inset: 0; background: var(--pink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--paper-2); display: grid; place-items: center; transition: transform .6s var(--pop), background .4s; box-shadow: 2px 2px 0 var(--peri); }
.switch__knob svg { width: 13px; height: 13px; transition: transform .8s var(--ease); }
.switch[aria-checked="true"] .switch__track::before { transform: scaleX(1); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(30px); background: var(--cobalt); }
.switch[aria-checked="true"] .switch__knob svg { transform: rotate(180deg); }
.switch:hover .switch__knob svg { animation: spin 1.2s linear infinite; }
.roll { display: block; height: 14px; overflow: hidden; font-family: var(--display); font-weight: 900; font-size: 15px; line-height: 14px; width: 30px; text-align: left; }
.roll span { display: block; transition: transform .6s var(--pop); }
[aria-checked="false"] .roll span { transform: translateY(-100%); }
.bagBtn { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--fg); font-weight: 500; transform: var(--mag, none); }
.bagBtn b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--pink); color: #fff; font-family: var(--mono); font-size: 11px; transition: transform .4s var(--pop); }
.bagBtn.is-bump b { animation: bump .6s var(--pop); }
@keyframes bump { 40% { transform: scale(1.5) rotate(-12deg); } }
.burger { display: none; width: 40px; height: 40px; background: none; border: 0; position: relative; color: var(--fg); }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.navPanel { position: fixed; z-index: 55; top: 68px; left: 0; right: 0; padding: 20px var(--gut) 28px; display: grid; gap: 8px; background: var(--gridbg), var(--paper); color: var(--navy);
  clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--snap); }
.navPanel.is-open { clip-path: inset(0 0 0 0); }
.navPanel a { font-family: var(--display); font-weight: 900; font-size: 44px; text-decoration: none; text-transform: uppercase; line-height: 1.1; }
.navPanel small { font-family: var(--serif-jp); font-size: 16px; color: var(--pink); }

/* dock: a ticket stub */
.dock { position: fixed; z-index: 60; right: 22px; bottom: 26px; padding: 0; border: 0; background: none; color: var(--navy); transform: var(--mag, translate(0,0)) rotate(-2deg); filter: drop-shadow(5px 5px 0 var(--peri)); }
.dock__in { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; background: var(--paper-2);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 97%, #000) left/51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 97%, #000) right/51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, #0000 97%, #000) left/51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 97%, #000) right/51% 100% no-repeat;
  transition: background .4s, color .4s; }
.dock__in::before { content: ""; position: absolute; left: 58px; top: 6px; bottom: 6px; border-left: 1.5px dashed rgba(21,31,74,.35); }
.dock__bar { width: 34px; height: 26px; margin-left: 6px; }
.dock__bar svg { width: 100%; height: 100%; }
.dock__txt { display: grid; text-align: left; line-height: 1.05; padding-left: 8px; }
.dock__txt b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; }
.dock__txt small { font-family: var(--serif-jp); font-size: 9px; opacity: .6; }
.dock__knob { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); color: var(--paper-2); transition: transform .7s var(--pop), background .4s; }
.dock__knob svg { width: 14px; height: 14px; animation: spin 6s linear infinite; }
.dock[aria-checked="false"] { color: #fff; }
.dock[aria-checked="false"] .dock__in { background: var(--pink); }
.dock[aria-checked="false"] .dock__knob { background: var(--navy); transform: rotate(-180deg) scale(.85); }
.dock[aria-checked="false"] .dock__knob svg { animation-play-state: paused; }
.dock[aria-checked="false"] .dock__in::before { border-color: rgba(255,255,255,.5); }
.dock:hover .dock__knob { transform: scale(1.18) rotate(90deg); }

/* chapter + rail */
.chapter { position: fixed; z-index: 30; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; color: var(--fg); pointer-events: none; transition: color .4s; }
.chapter__n b { font-family: var(--display); font-size: 22px; letter-spacing: 0; font-weight: 900; }
.chapter__name { display: grid; line-height: 1.1; font-weight: 500; font-size: 13px; overflow: hidden; }
.chapter__name small { font-family: var(--serif-jp); font-size: 10px; opacity: .7; }
.chapter.is-roll .chapter__name > * { animation: rollin .6s var(--ease) both; }
.chapter.is-roll .chapter__name small { animation-delay: .06s; }
@keyframes rollin { from { transform: translateY(110%); opacity: 0; } }
.rail { position: fixed; z-index: 30; left: 0; right: 0; top: 68px; height: 3px; pointer-events: none; }
.rail__fill { position: absolute; inset: 0; background: var(--pink); transform-origin: 0 50%; transform: scaleX(0); }
.rail__ticks i { position: absolute; top: -3px; width: 1px; height: 9px; background: var(--fg); opacity: .5; }
[data-mode="video"] .rail__ticks { display: none; }
[data-mode="video"] .chapter { --fg: var(--paper-2); }
:root.is-paper .chapter, :root.is-paper .hud { opacity: 0; transition: opacity .3s; }

/* ── stage / beats ──────────────────────────────────────── */
.stage { position: relative; z-index: 10; }
.stage__spacer { height: var(--scroll-length); }
[data-mode="video"] .stage__spacer { height: 0; }
[data-mode="scrub"] .beats { position: fixed; inset: 0; pointer-events: none; }
[data-mode="scrub"] .beat { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity; }
[data-mode="scrub"] .beat.is-live { pointer-events: none; }
[data-mode="scrub"] .beat.is-live :is(a, button) { pointer-events: auto; }
[data-mode="video"] .beats { position: relative; }
[data-mode="video"] .beat { position: relative; min-height: 100vh; min-height: 100svh; }
.lay { position: absolute; inset: 0; color: var(--fg); }
.z { position: absolute; }

/* typography */
.tag { display: inline-block; color: var(--fg-2); }
.tag--ink { color: rgba(21,31,74,.62) !important; }
.h1 { margin: 10px 0 12px; line-height: .95; color: var(--navy); }
.h1 .jp-serif { display: block; font-size: clamp(48px, 5.4vw, 84px); letter-spacing: .04em; }
.h1__en { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(30px, 3vw, 46px); text-transform: uppercase; color: var(--cobalt); margin-top: 6px; }
.h2 { margin: 8px 0 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 5.6vw, 92px); line-height: .9; letter-spacing: .005em; }
.h2 em { font-style: normal; color: var(--pink); font-family: var(--display); }
.h2--xl { font-size: clamp(56px, 8.4vw, 144px); }
.h2.ink { color: var(--navy); }
.h2.ink em { color: var(--pink); }
.lede { font-size: 15.5px; line-height: 1.55; margin: 12px 0 0; max-width: 40ch; }
.note { font-size: 14px; line-height: 1.55; margin: 8px 0 0; }
.big-jp { font-size: clamp(34px, 3.4vw, 54px); margin: 0; line-height: 1.1; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* shadows so bare type on the film holds up */
.beat:not(.beat--light) .tag:not(.tag--ink) { background: rgba(21,31,74,.62); color: var(--paper-2); padding: 4px 9px; }
.paper .h2 { font-size: clamp(38px, 3.7vw, 60px); }
.paper .h2--xl { font-size: clamp(56px, 6.4vw, 104px); }

/* paper stickers */
.paper { background: var(--paper-2); color: var(--navy); padding: 22px 24px 24px; box-shadow: 0 0 0 5px #fff, 9px 9px 0 5px var(--peri); }
.paper--grid { background: var(--gridbg), var(--paper-2); }
.tilt-l { rotate: -2.2deg; } .tilt-r { rotate: 1.8deg; }
.tape { position: absolute; top: -16px; left: 28px; width: 92px; height: 26px; background: rgba(235,183,206,.78); rotate: -6deg; box-shadow: 0 1px 0 rgba(0,0,0,.05);
  -webkit-mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0), repeating-linear-gradient(0deg, #000 0 3px, transparent 3px 5px);
  -webkit-mask-composite: source-over; }
.tape--r { left: auto; right: 30px; rotate: 7deg; background: rgba(96,102,150,.45); }
.glass { background: rgba(21,31,74,.62); color: var(--paper-2); padding: 18px 20px; border: 1px solid rgba(247,246,243,.25); box-shadow: 6px 6px 0 rgba(3,49,116,.5); }

/* buttons */
.btn { --bg: var(--navy); --fg-b: var(--paper-2); position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border: 1.5px solid var(--navy); border-radius: 999px; overflow: hidden; isolation: isolate;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--fg-b); background: var(--bg); transform: var(--mag, none); transition: color .4s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pink); clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .55s var(--ease); }
.btn:hover::before { clip-path: circle(140% at var(--mx, 50%) var(--my, 50%)); }
.btn:hover { color: #fff; border-color: var(--pink); }
.btn--line { --bg: transparent; --fg-b: var(--navy); }
.btn--paper { --bg: var(--paper-2); --fg-b: var(--navy); border-color: var(--paper-2); }
.btn--sm { padding: 10px 16px; font-size: 10.5px; }
.btn::after { content: ""; width: 9px; height: 9px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transition: transform .6s var(--ease); }
.btn:hover::after { transform: rotate(180deg) scale(1.3); }

/* barcode */
.barcode { display: inline-block; height: 34px; width: 120px; color: currentColor; }
.barcode svg { width: 100%; height: 100%; }
.barcode--v { width: 34px; height: 110px; }

/* stars */
.twinkle { position: absolute; width: 28px; height: 28px; color: var(--paper-2); animation: twk 2.2s ease-in-out infinite; }
.stamp { position: relative; width: 132px; height: 132px; color: var(--cobalt); opacity: 0; transform: rotate(-40deg) scale(1.6); transition: transform .7s var(--pop) .25s, opacity .3s .25s; }
.stamp svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; animation: spin 18s linear infinite; }
.stamp text { fill: currentColor; stroke: none; font-family: var(--mono); font-size: 9.4px; letter-spacing: .12em; }
.stamp b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--serif-jp); font-weight: 900; font-size: 22px; line-height: 1; }
.stamp--pink { color: var(--pink); }
.stamp--pink b { font-family: var(--display); font-size: 40px; }

/* leader lines */
.leader { fill: none; stroke: currentColor; stroke-width: 1.2; overflow: visible; }
.leader path { stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset 1.2s var(--ease) .3s; }
.leader circle { fill: currentColor; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--pop) 1.2s; }

/* ── split + reveal system ──────────────────────────────── */
/* scrub: .beat.is-live (film.js) · video: .beat.is-in · page: [data-reveal].is-in */
.ln, .ch, .wd { display: inline-block; overflow: hidden; vertical-align: top; }
.ln { display: block; padding-bottom: .04em; }
.ln > i, .ch > i, .wd > i { display: inline-block; font-style: inherit; will-change: transform; }
.ln > i { transform: translateY(105%); transition: transform 1s var(--ease) calc(var(--li) * 90ms + 80ms); }
.ch > i { transform: translateY(110%) rotate(8deg); transition: transform .9s var(--ease) calc(var(--ci) * 45ms + 60ms); }
.wd { padding-bottom: .06em; }
.wd > i { transition: transform .9s var(--ease) calc(var(--wi) * 55ms + 150ms), opacity .6s calc(var(--wi) * 55ms + 150ms); opacity: 0; }
.wd:nth-child(3n+1) > i { transform: translateY(100%); }
.wd:nth-child(3n+2) > i { transform: translateX(-60%); }
.wd:nth-child(3n) > i { transform: translateY(-100%); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in, [data-reveal].is-in) :is(.ln, .ch, .wd) > i { transform: none; opacity: 1; }
/* vertical text chars rise sideways */
.b1__vert .ch > i, .b10__jp .ch > i, .b4__jp .ch > i { transform: translateX(-110%); }

.beat .paper, .beat .glass { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--snap) .05s; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) :is(.paper, .glass) { clip-path: inset(-40px -40px -40px -40px); }
.beat .tag, .beat .lede, .beat .row, .beat .note, .beat .chip, .beat .b2__stats li, .beat .b7__r li, .beat .barcode, .beat .b3__fig, .beat .b5__fig span, .beat .b8__meta, .beat .b6__ticket > *, .beat .b1__cue {
  opacity: 0; transform: translateY(18px); transition: opacity .6s .3s, transform .9s var(--ease) .3s; }
.beat .tag { clip-path: inset(0 100% 0 0); transform: none; transition: clip-path .9s var(--ease) .1s, opacity .3s .1s; }
.beat .chip:nth-child(2), .beat .b2__stats li:nth-child(2), .beat .b7__r li:nth-child(2), .beat .b6__ticket > :nth-child(2) { transition-delay: .42s; }
.beat .chip:nth-child(3), .beat .b2__stats li:nth-child(3), .beat .b7__r li:nth-child(3), .beat .b6__ticket > :nth-child(3) { transition-delay: .54s; }
.beat .b6__ticket > :nth-child(4) { transition-delay: .66s; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) :is(.tag, .lede, .row, .note, .chip, .b2__stats li, .b7__r li, .barcode, .b3__fig, .b5__fig span, .b8__meta, .b6__ticket > *, .b1__cue) { opacity: 1; transform: none; clip-path: inset(-4px -4px -4px -4px); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .stamp { opacity: 1; transform: rotate(-12deg) scale(1); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .leader path { stroke-dashoffset: 0; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .leader circle { transform: scale(1); }
.beat .tape { transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease) .7s; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .tape { transform: none; }

/* scrub drift keyed to --t */
[data-mode="scrub"] .beat .z { translate: 0 calc(var(--t, 0) * var(--dy, -14px)); }
[data-mode="scrub"] .b1__num, [data-mode="scrub"] .b10__jp { --dy: -34px; }
[data-mode="scrub"] .b8__jp { --dy: -24px; }

/* ── beat placements (scrub, desktop) ───────────────────── */
@media (min-width: 761px) {
  [data-mode="scrub"] .b1 .z--tl { left: calc(var(--gut) + 30px); top: 90px; }
  [data-mode="scrub"] .b1__vert { left: calc(var(--gut) + 18px); top: 20vh; }
  [data-mode="scrub"] .b1__card { left: 11vw; bottom: 9vh; width: min(410px, 32vw); }
  [data-mode="scrub"] .b1__num { right: calc(var(--gut) + 8px); bottom: 7vh; }
  [data-mode="scrub"] .b1__bar { right: calc(var(--gut) + 30px); top: 88px; display: flex; align-items: center; gap: 12px; }
  [data-mode="scrub"] .b1__cue { left: 50%; bottom: 58px; transform: translateX(-50%); }

  [data-mode="scrub"] .b2__card { right: 5vw; top: 15vh; width: min(390px, 30vw); }
  [data-mode="scrub"] .b2__stats { left: 5vw; bottom: 11vh; }

  [data-mode="scrub"] .b3__head { left: 6vw; top: 17vh; }
  [data-mode="scrub"] .b3__note { right: 5vw; bottom: 12vh; width: 330px; }
  [data-mode="scrub"] .leader--b3 { left: 20vw; top: 48vh; width: 26vw; height: 18vh; }
  [data-mode="scrub"] .b3__fig { left: 6vw; top: 64vh; }

  [data-mode="scrub"] .b4__head { left: 6vw; bottom: 12vh; }
  [data-mode="scrub"] .b4__chips { right: 6vw; top: 17vh; }
  [data-mode="scrub"] .b4__jp { right: 6vw; bottom: 12vh; }

  [data-mode="scrub"] .b5__card { left: 5vw; top: 16vh; width: min(400px, 31vw); }
  [data-mode="scrub"] .b5__fig { left: 55vw; top: 54vh; width: 22vw; }
  [data-mode="scrub"] .b5__stamp { right: 7vw; top: 16vh; }

  [data-mode="scrub"] .b6__head { left: 6vw; top: 17vh; }
  [data-mode="scrub"] .b6__ticket { left: 6vw; bottom: 12vh; width: 330px; }

  [data-mode="scrub"] .b7__l { left: 4vw; top: 50%; transform: translateY(-50%); }
  [data-mode="scrub"] .b7__r { right: 4vw; top: 50%; transform: translateY(-50%); width: 280px; }

  [data-mode="scrub"] .b8__mani { left: 8vw; right: 8vw; top: 50%; transform: translateY(-50%); text-align: center; }
  [data-mode="scrub"] .b8__meta { right: 6vw; bottom: 12vh; }

  [data-mode="scrub"] .b9__card { left: 5vw; bottom: 11vh; width: min(420px, 32vw); }
  [data-mode="scrub"] .b9__stamp { right: 8vw; top: 14vh; }

  [data-mode="scrub"] .b10__head { left: 11vw; bottom: 9vh; width: min(420px, 32vw); }
  [data-mode="scrub"] .b10__jp { left: calc(var(--gut) + 18px); top: 16vh; }
  [data-mode="scrub"] .b10__card { right: 5vw; top: 16vh; width: 320px; }
}

/* beat furniture */
.b1__vert { writing-mode: vertical-rl; font-size: clamp(64px, 7vw, 116px); line-height: 1; color: var(--cobalt); }
.b1__vert .jp-serif { letter-spacing: .08em; }
.b1__num { line-height: .8; }
.num { font-family: var(--display); font-weight: 900; font-size: clamp(150px, 27vh, 300px); color: var(--navy); letter-spacing: -.02em; display: block; text-shadow: 6px 6px 0 var(--peri); }
.num .ch { padding: 0 .02em .04em 0; }
.b1__num .t1 { right: -8px; top: -14px; color: var(--cobalt); }
.b1__num .t2 { left: -22px; top: 40%; width: 18px; height: 18px; color: var(--pink); animation-delay: -1s; }
.b1__bar .barcode { color: var(--navy); height: 30px; width: 100px; }
.b1__cue { display: grid; justify-items: center; gap: 6px; }
.b1__cue i { width: 1px; height: 34px; background: currentColor; transform-origin: 0 0; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: 0 0; } 51% { transform-origin: 0 100%; } 100% { transform: scaleY(0); transform-origin: 0 100%; } }

.b2__stats { list-style: none; margin: 0; padding: 18px 22px; display: flex; gap: 30px; }
.b2__stats li { display: grid; gap: 2px; }
.b2__stats b { font-family: var(--display); font-weight: 900; font-size: 52px; line-height: 1; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.b2__stats .mono { color: rgba(21,31,74,.62); }

.b3__fig { display: grid; gap: 4px; padding-left: 12px; border-left: 2px solid var(--pink); }
.b3__fig b { font-weight: 500; }

.b4__chips { display: flex; gap: 14px; }
.chip { display: grid; gap: 8px; background: var(--paper-2); color: var(--navy); padding: 8px 8px 10px; box-shadow: 5px 5px 0 rgba(21,31,74,.35); }
.chip:nth-child(1) { rotate: -4deg; } .chip:nth-child(2) { rotate: 2deg; } .chip:nth-child(3) { rotate: -1deg; }
.chip i { width: 78px; height: 64px; background: var(--c); }
.b4__jp { writing-mode: vertical-rl; font-size: clamp(40px, 4.2vw, 68px); margin: 0; color: #fff; letter-spacing: .12em; text-shadow: 0 2px 20px rgba(176,20,110,.4); }
.b4 .h2 em { color: var(--navy); }

.b5__fig { display: grid; gap: 8px; color: var(--paper-2); }
.b5__fig .leader { width: 100%; height: 17vh; }
.b5 .stamp { color: var(--paper-2); }

.b6__ticket { display: grid; gap: 8px; }
.b6__date { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .9; color: var(--paper-2); }
.b6__ticket .btn { justify-self: start; }

.b7__r { list-style: none; margin: 0; display: grid; gap: 14px; }
.b7__r li { display: grid; grid-template-columns: 30px 1fr; row-gap: 0; padding-bottom: 12px; border-bottom: 1px dashed rgba(247,246,243,.3); }
.b7__r li:last-child { border: 0; padding: 0; }
.b7__r b { font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; }
.b7__r small { grid-column: 2; font-size: 12px; opacity: .75; }

.b8__jp { font-size: clamp(40px, 6.2vw, 104px); margin: 14px 0 10px; line-height: 1.15; color: var(--paper-2); }
.b8__en { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 38px); text-transform: uppercase; margin: 0; letter-spacing: .03em; color: var(--pink-2); }
.b8__meta { display: grid; gap: 4px; text-align: right; }
.b8__meta .t3 { position: relative; margin: 6px 0 0 auto; color: var(--pink); }

.b10__jp { writing-mode: vertical-rl; font-size: clamp(34px, 3.2vw, 54px); color: var(--cobalt); letter-spacing: .16em; }

/* ── video mode: beats become flowing sections ──────────── */
[data-mode="video"] .lay { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: space-between; gap: 28px 40px;
  padding: 120px max(var(--gut), 64px) 110px; --fg: var(--paper-2); --fg-2: rgba(247,246,243,.75); }
[data-mode="video"] .z { position: relative; translate: none; }
[data-mode="video"] .beat--light .h2.ink { color: var(--paper-2); }
[data-mode="video"] .beat + .beat { border-top: 1px dashed rgba(247,246,243,.25); }
[data-mode="video"] :is(.b1__vert, .b10__jp, .b4__jp, .b1__cue, .leader--b3, .b5__fig) { display: none; }
[data-mode="video"] .z--tl { flex-basis: 100%; }
[data-mode="video"] .b1__card, [data-mode="video"] .b2__card, [data-mode="video"] .b5__card, [data-mode="video"] .b9__card { max-width: 440px; }
[data-mode="video"] .b3__head, [data-mode="video"] .b4__head, [data-mode="video"] .b6__head, [data-mode="video"] .b7__l { background: rgba(21,31,74,.55); padding: 22px 26px; }
[data-mode="video"] .b8__mani { flex-basis: 100%; text-align: center; background: rgba(3,59,130,.78); padding: 40px 24px; }
[data-mode="video"] .b1__bar { display: flex; gap: 12px; align-items: center; background: var(--paper-2); color: var(--navy); padding: 10px 14px; }
[data-mode="video"] .b3__fig, [data-mode="video"] .b8__meta { background: rgba(21,31,74,.55); padding: 12px 14px; }
[data-mode="video"] .b5__fig { background: rgba(21,31,74,.55); padding: 12px 14px; }
[data-mode="video"] .num { color: var(--paper-2); text-shadow: 6px 6px 0 var(--cobalt); }
/* video-mode entrances: whole blocks rise on alternating axes */
[data-mode="video"] .beat .z { opacity: 0; transform: translateY(60px); transition: opacity .8s var(--ease), transform 1.1s var(--ease); }
[data-mode="video"] .beat .z:nth-child(even) { transform: translateX(60px); }
[data-mode="video"] .beat.is-in .z { opacity: 1; transform: none; }
[data-mode="video"] .beat.is-in .z:nth-child(2) { transition-delay: .12s; }
[data-mode="video"] .beat.is-in .z:nth-child(3) { transition-delay: .24s; }
[data-mode="video"] .beat.is-in .z:nth-child(4) { transition-delay: .36s; }

/* ── page ───────────────────────────────────────────────── */
.page { position: relative; z-index: 12; background: var(--gridbg), var(--paper); color: var(--navy); }
.marquee { overflow: hidden; background: var(--cobalt); color: var(--paper-2); padding: 18px 0; border-block: 5px solid #fff; }
.marquee__track { display: flex; width: max-content; animation: mq 34s linear infinite; transform: skewX(var(--skew, 0deg)); }
.marquee__track span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-weight: 900; font-size: clamp(38px, 5vw, 76px); text-transform: uppercase; white-space: nowrap; line-height: 1; }
.marquee__track svg { width: .5em; height: .5em; color: var(--pink); }
@keyframes mq { to { translate: -50% 0; } }

.sec { padding: clamp(80px, 11vw, 150px) var(--gut); max-width: 1440px; margin: 0 auto; position: relative; }
.sec--grid { max-width: none; background: linear-gradient(rgba(3,59,130,.07), rgba(3,59,130,.07)); }
.sec--grid > * { max-width: 1440px; margin-left: auto; margin-right: auto; }
.sec--cobalt { max-width: none; background: linear-gradient(rgba(247,246,243,.12) 1px, transparent 1px) 0 0/20px 20px, linear-gradient(90deg, rgba(247,246,243,.12) 1px, transparent 1px) 0 0/20px 20px, var(--cobalt); color: var(--paper-2); }
.sec--cobalt > * { max-width: 1440px; margin-left: auto; margin-right: auto; }
.sec__head { display: grid; grid-template-columns: auto 1fr minmax(0, 380px); gap: 28px; align-items: end; margin-bottom: 44px; }
.sec__no { font-family: var(--display); font-weight: 900; font-size: clamp(90px, 11vw, 170px); line-height: .78; color: transparent; -webkit-text-stroke: 2px var(--cobalt); }
.sec--cobalt .sec__no { -webkit-text-stroke-color: var(--paper-2); }
.sec--cobalt .tag { color: rgba(247,246,243,.75); }
.sec__lede { margin: 0; font-size: 15.5px; }
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.sec__head .sec__no { display: inline-block; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--snap) .1s; }
.sec__head.is-in .sec__no { clip-path: inset(-10% -10% -10% -10%); }

/* issues */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--paper-2); border: 1.5px solid var(--navy); color: var(--navy); font-weight: 500; position: relative; transition: background .35s, color .35s, transform .4s var(--pop); }
.fbtn small { font-family: var(--serif-jp); font-size: 10px; opacity: .6; }
.fbtn b { font-family: var(--mono); font-size: 10px; font-weight: 500; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 10px; background: rgba(21,31,74,.1); }
.fbtn:hover { transform: translateY(-3px) rotate(-1.5deg); }
.fbtn.is-on { background: var(--navy); color: var(--paper-2); }
.fbtn.is-on b { background: var(--pink); color: #fff; }
.fchk { display: inline-flex; gap: 8px; align-items: center; margin-left: auto; font-size: 14px; cursor: pointer; }
.fchk input { accent-color: var(--pink); width: 16px; height: 16px; }
.filters__count { margin: 16px 0 30px; color: rgba(21,31,74,.6); }
.filters__count b { color: var(--pink); font-size: 14px; }
.issues { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 44px 34px; }
.issue { perspective: 900px; transition: opacity .4s, transform .5s var(--ease); }
.issue.is-out { opacity: 0; transform: scale(.85) rotate(-4deg); }
.issue__card { position: relative; background: #fff; padding: 12px 12px 16px; box-shadow: 8px 8px 0 var(--peri); rotate: var(--r, 0deg); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .4s; transform-style: preserve-3d; }
.issue__card:hover { box-shadow: 14px 14px 0 var(--pink); }
.issue__art { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--cobalt); }
.issue__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.issue__card:hover .issue__art img { transform: scale(1.08) rotate(1deg); }
.issue__no { position: absolute; left: 8px; bottom: -6px; font-family: var(--display); font-weight: 900; font-size: 86px; line-height: 1; color: #fff; text-shadow: 4px 4px 0 var(--navy); transform: translateZ(40px); }
.issue__st { position: absolute; right: 8px; top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 4px 8px; background: var(--paper-2); color: var(--navy); }
.issue__st--new { background: var(--pink); color: #fff; }
.issue__st--out { background: var(--navy); color: var(--paper-2); }
.issue__meta { display: grid; gap: 2px; margin-top: 12px; }
.issue__jp { font-family: var(--serif-jp); font-weight: 900; font-size: 20px; line-height: 1.2; }
.issue__en { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; color: var(--cobalt); line-height: 1.1; }
.issue__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(21,31,74,.25); }
.issue__add { border: 1.5px solid var(--navy); background: none; border-radius: 999px; padding: 6px 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); transition: background .3s, color .3s; }
.issue__add:hover:not(:disabled) { background: var(--navy); color: var(--paper-2); }
.issue__add:disabled { opacity: .35; cursor: not-allowed; }
.issue__spark { position: absolute; width: 22px; height: 22px; right: -10px; bottom: 50px; color: var(--pink); opacity: 0; transform: scale(0) rotate(-90deg); transition: transform .6s var(--pop), opacity .3s; }
.issue__card:hover .issue__spark { opacity: 1; transform: scale(1) rotate(0); }

/* configurator */
.cfg { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.cfg__preview { position: sticky; top: 96px; }
.wall { position: relative; aspect-ratio: 5 / 4; background: var(--gridbg), var(--paper-2); box-shadow: 0 0 0 5px #fff, 10px 10px 0 5px var(--peri); display: grid; place-items: center; overflow: hidden; }
.pframe { margin: 0; width: calc(var(--pw, 30) * 1%); background: #fff; padding: 4%; padding-bottom: 7%; box-shadow: 6px 8px 0 rgba(21,31,74,.25); transition: width .7s var(--pop), padding .5s, box-shadow .5s; position: relative; }
.pframe.has-frame { box-shadow: 0 0 0 10px #e6d7bd, 0 0 0 12px #c8b491, 10px 12px 0 12px rgba(21,31,74,.25); }
.pframe img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: opacity .3s; }
.pframe img.is-swap { opacity: 0; }
.pframe figcaption { display: flex; justify-content: space-between; margin-top: 8px; font-size: 9px; color: rgba(21,31,74,.7); }
.pframe[data-paper="cyan"] img { filter: sepia(.1) saturate(1.2) hue-rotate(-6deg); }
.pframe[data-paper="rag"] { background: #fbf9f3; }
.wall__ruler { position: absolute; left: 16px; top: 14px; color: var(--cobalt); }
.wall__man { position: absolute; right: 7%; bottom: 0; height: 58%; display: grid; justify-items: center; color: rgba(21,31,74,.4); }
.wall__man svg { height: 100%; width: auto; fill: none; stroke: currentColor; stroke-width: 2; }
.wall__man circle { fill: currentColor; }
.wall__man i { position: absolute; top: -18px; font-style: normal; font-size: 9px; }
.cfg__form { display: grid; gap: 26px; }
.cfg__form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cfg__form legend { padding: 0; margin-bottom: 12px; color: var(--cobalt); }
.cfg__form legend small { font-family: var(--serif-jp); text-transform: none; color: var(--pink); margin-left: 6px; }
.arts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.arts button { padding: 0; border: 0; background: #fff; padding: 4px; box-shadow: 3px 3px 0 var(--peri); transition: transform .4s var(--pop), box-shadow .3s; position: relative; }
.arts button img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.arts button:hover { transform: translateY(-4px) rotate(-3deg); }
.arts button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--pink), 5px 5px 0 2px var(--pink); transform: translateY(-4px); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--navy); border-radius: 999px; padding: 4px; position: relative; background: var(--paper-2); }
.seg__knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 999px; background: var(--navy); transition: transform .55s var(--pop); transform: translateX(calc(var(--i, 0) * 100%)); }
.seg button { position: relative; z-index: 1; background: none; border: 0; padding: 9px 4px; display: grid; line-height: 1.15; color: var(--navy); transition: color .35s; }
.seg button b { font-family: var(--display); font-weight: 900; font-size: 20px; }
.seg button small { font-family: var(--mono); font-size: 9px; opacity: .7; }
.seg button[aria-pressed="true"] { color: var(--paper-2); }
.papers { display: grid; gap: 8px; }
.papers label { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--paper-2); border: 1.5px solid rgba(21,31,74,.2); cursor: pointer; transition: border-color .3s, transform .4s var(--ease), background .3s; }
.papers label:hover { transform: translateX(6px); }
.papers input { position: absolute; opacity: 0; }
.papers .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--navy); display: grid; place-items: center; }
.papers .dot::after { content: ""; width: 10px; height: 10px; background: var(--pink); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transform: scale(0) rotate(-90deg); transition: transform .5s var(--pop); }
.papers input:checked + .dot::after { transform: scale(1.3); }
.papers label:has(input:checked) { border-color: var(--navy); background: #fff; }
.papers input:focus-visible + .dot { outline: 2px dashed var(--pink); outline-offset: 3px; }
.papers b { display: block; font-weight: 700; }
.papers small { font-size: 12px; opacity: .7; }
.papers em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--cobalt); }
.cfg__row { display: grid !important; grid-template-columns: 1fr auto; gap: 20px; }
.toggle { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle__t { width: 44px; height: 24px; border-radius: 12px; background: rgba(21,31,74,.15); position: relative; transition: background .3s; }
.toggle__t i { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 1px 1px 0 var(--peri); transition: transform .45s var(--pop); }
.toggle input:checked + .toggle__t { background: var(--cobalt); }
.toggle input:checked + .toggle__t i { transform: translateX(20px); }
.toggle input:focus-visible + .toggle__t { outline: 2px dashed var(--pink); outline-offset: 3px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--navy); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 36px; border: 0; background: none; font-size: 18px; color: var(--navy); }
.qty button:hover { background: var(--navy); color: var(--paper-2); }
.qty output { min-width: 32px; text-align: center; font-family: var(--display); font-weight: 900; font-size: 20px; }
.receiptWrap { filter: drop-shadow(8px 8px 0 var(--peri)); }
.receipt { background: #fff; padding: 20px 22px; position: relative;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; padding-bottom: 30px; }
.receipt__lines { display: grid; gap: 6px; }
.receipt__lines div { display: flex; justify-content: space-between; gap: 12px; }
.receipt__lines div span:first-child { display: flex; gap: 6px; flex: 1; }
.receipt__lines div span:first-child::after { content: ""; flex: 1; border-bottom: 1px dotted rgba(21,31,74,.35); transform: translateY(-4px); }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--navy); }
.receipt__total b { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 4vw, 60px); line-height: 1; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.receipt__foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; }
.receipt__foot .barcode { color: var(--navy); }

/* festival */
.fest { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.fest__prog { list-style: none; margin: 0; padding: 0; display: grid; }
.fest__prog li { display: grid; grid-template-columns: 70px 1fr; gap: 2px 16px; padding: 18px 0; border-bottom: 1px dashed rgba(247,246,243,.3); transition: padding .4s var(--ease); }
.fest__prog li:hover { padding-left: 12px; }
.fest__prog li:hover b { color: var(--pink-2); }
.fest__prog .mono { grid-row: span 2; color: var(--pink-2); padding-top: 6px; }
.fest__prog b { font-family: var(--display); font-weight: 900; font-size: 28px; text-transform: uppercase; line-height: 1.05; transition: color .3s; }
.fest__prog small { opacity: .75; }
.rsvp { display: grid; gap: 18px; background: rgba(21,31,74,.5); padding: clamp(20px, 3vw, 34px); border: 1px solid rgba(247,246,243,.25); }
.field { display: grid; gap: 6px; }
.field--row { grid-template-columns: 1fr auto; gap: 18px; }
.field label, .lbl { font-weight: 500; font-size: 14px; }
.field small, .lbl small { font-family: var(--serif-jp); opacity: .6; margin-left: 4px; }
.field input, .field select { background: transparent; border: 0; border-bottom: 1.5px solid rgba(247,246,243,.5); padding: 10px 2px; color: var(--paper-2); font-size: 17px; outline: none; transition: border-color .3s; border-radius: 0; }
.field select { border: 1.5px solid rgba(247,246,243,.5); padding: 8px 12px; background: var(--navy); }
.field input::placeholder { color: rgba(247,246,243,.35); }
.field input:focus { border-color: var(--pink-2); }
.field.is-bad input { border-color: var(--pink); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.err { color: var(--pink-2); min-height: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 8px 14px; border: 1.5px solid rgba(247,246,243,.5); border-radius: 999px; font-size: 13.5px; transition: background .3s, color .3s, transform .4s var(--pop); }
.chips input:checked + span { background: var(--paper-2); color: var(--navy); transform: rotate(-2deg) scale(1.04); border-color: var(--paper-2); }
.chips input:focus-visible + span { outline: 2px dashed var(--pink-2); outline-offset: 3px; }
.consent { display: flex; gap: 10px; align-items: start; font-size: 14px; cursor: pointer; }
.consent input { accent-color: var(--pink); width: 18px; height: 18px; margin-top: 2px; }
.rsvp .btn { justify-self: start; }
.ticketWrap { position: relative; animation: tk .9s var(--pop) both; }
.ticketShadow { filter: drop-shadow(10px 10px 0 var(--pink)); }
.ticket { position: relative; display: grid; grid-template-columns: 1fr auto; background: var(--paper-2); color: var(--navy); outline: none;
  -webkit-mask: radial-gradient(circle 12px at calc(100% - 78px) 0, #0000 97%, #000) top/100% 51% no-repeat, radial-gradient(circle 12px at calc(100% - 78px) 100%, #0000 97%, #000) bottom/100% 51% no-repeat;
          mask: radial-gradient(circle 12px at calc(100% - 78px) 0, #0000 97%, #000) top/100% 51% no-repeat, radial-gradient(circle 12px at calc(100% - 78px) 100%, #0000 97%, #000) bottom/100% 51% no-repeat; }
@keyframes tk { from { transform: translateY(40px) rotate(-8deg) scale(.9); opacity: 0; } }
.ticket__l { display: grid; gap: 6px; padding: 28px; background: var(--gridbg); }
.ticket__name { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 4vw, 60px); line-height: .95; text-transform: uppercase; color: var(--cobalt); }
.ticket__r { width: 78px; border-left: 2px dashed rgba(21,31,74,.3); display: grid; justify-items: center; align-content: center; gap: 12px; padding: 16px 0; }
.ticket__no { writing-mode: vertical-rl; font-family: var(--mono); font-size: 13px; letter-spacing: .15em; }
.ticket__again { margin-top: 24px; background: none; border: 0; color: var(--paper-2); text-decoration: underline; padding: 0; }

/* contributor call */
.call { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.call__count { display: grid; gap: 14px; padding: 30px; rotate: -1deg; }
.call__count > .mono { color: rgba(21,31,74,.62); }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cd div { display: grid; justify-items: center; background: var(--cobalt); color: var(--paper-2); padding: 12px 4px 8px; box-shadow: 4px 4px 0 var(--peri); }
.cd b { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd div:last-child { background: var(--pink); }
.call__mail { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed rgba(21,31,74,.3); }
.call__mail code { font-family: var(--mono); font-size: 14px; color: var(--cobalt); }
.call__types { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.call__types li { padding: 4px 10px; border: 1px solid rgba(21,31,74,.3); font-size: 12.5px; border-radius: 3px; background: #fff; }
.call__types li:nth-child(odd) { rotate: -2deg; } .call__types li:nth-child(even) { rotate: 1.5deg; }
.faq details { border-bottom: 1.5px solid var(--navy); }
.faq details:first-child { border-top: 1.5px solid var(--navy); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 10px; padding: 20px 0; font-family: var(--display); font-weight: 900; font-size: clamp(22px, 2.2vw, 32px); text-transform: uppercase; line-height: 1.05; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cobalt); }
.faq summary .mono { color: var(--pink); }
.faq summary i { width: 20px; height: 20px; color: var(--pink); background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transition: transform .6s var(--pop); }
.faq details[open] summary i { transform: rotate(135deg) scale(1.15); color: var(--cobalt); }
.faq details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq details[open] > div { grid-template-rows: 1fr; }
.faq details > div > p { overflow: hidden; margin: 0; padding: 0 0 0 54px; max-width: 60ch; }
.faq details[open] > div > p { padding-bottom: 22px; }

/* footer */
.foot { background: var(--navy); color: var(--paper-2); padding: 60px var(--gut) 110px; overflow: hidden; position: relative; }
.foot__big { display: flex; align-items: flex-end; gap: 1vw; line-height: 1.05; font-size: clamp(96px, 22vw, 340px); white-space: nowrap; }
.foot__en { display: grid; align-self: center; margin-left: auto; font-family: var(--display); font-weight: 900; font-size: .3em; line-height: .88; text-align: right; }
.foot__en small { font-size: 10px; margin-top: 14px; color: var(--pink-2); }
.foot__big .jp-serif { letter-spacing: .02em; background: linear-gradient(var(--paper-2), var(--pink-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot__d { font-family: var(--display); font-weight: 900; color: var(--pink); display: inline-block; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(8deg) translateY(-4%); } }
.foot__grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr 1fr; gap: 32px; margin-top: 50px; padding-top: 28px; border-top: 1px dashed rgba(247,246,243,.3); }
.foot__grid .mono { display: block; color: var(--pink-2); margin-bottom: 12px; }
.foot__grid nav { display: grid; gap: 4px; align-content: start; }
.foot__grid nav a { text-decoration: none; width: fit-content; background: linear-gradient(var(--pink), var(--pink)) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
.foot__grid nav a:hover { background-size: 100% 1.5px; }
.foot__grid p { margin: 0; font-size: 14px; opacity: .85; }
.foot__colo .barcode { margin-top: 12px; color: var(--paper-2); }
.news { display: flex; gap: 8px; border-bottom: 1.5px solid rgba(247,246,243,.5); padding-bottom: 8px; }
.news input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--paper-2); font-size: 16px; }
.news input::placeholder { color: rgba(247,246,243,.4); }
.news__msg { min-height: 16px; margin-top: 8px !important; color: var(--pink-2); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; opacity: .7; }
.foot__base a { text-decoration: none; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 84px; transform: translate(-50%, 30px); opacity: 0; background: var(--navy); color: var(--paper-2); padding: 12px 18px; box-shadow: 5px 5px 0 var(--pink); transition: transform .5s var(--pop), opacity .3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* cursor: a sparkle star + a polaroid-corner ring */
.has-cursor, .has-cursor * { cursor: none !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; }
.cur--dot { width: 14px; height: 14px; color: var(--pink); }
.cur--dot svg { width: 100%; height: 100%; animation: spin 4s linear infinite; }
.cur--ring { width: 40px; height: 40px; border: 1.5px solid var(--cobalt); transition: width .35s var(--ease), height .35s var(--ease), background .3s, border-radius .35s, border-color .3s; display: grid; place-items: center; mix-blend-mode: normal; }
.cur--ring.is-on { width: 58px; height: 58px; border-color: var(--pink); border-radius: 50%; }
.cur--ring.is-lg { width: 76px; height: 76px; background: var(--pink); border-color: var(--pink); }
.cur--ring.is-down { width: 30px; height: 30px; }
.cur--ring.is-out { opacity: 0; }
.cur__l { font-family: var(--serif-jp); font-weight: 900; font-size: 15px; color: #fff; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .chrome__nav { display: none; }
  .burger { display: block; }
  .sec__head { grid-template-columns: auto 1fr; }
  .sec__lede { grid-column: 1 / -1; }
  .arts { grid-template-columns: repeat(3, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cfg, .fest, .call { grid-template-columns: 1fr; }
  .cfg__preview { position: relative; top: 0; }
}
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .chrome { gap: 12px; }
  .mark__en, .switch__txt, .bagBtn span { display: none; }
  .switch { padding: 4px; }
  .hud__side, .reg--tl, .reg--tr, .hud__spark { display: none; }
  .hud__fig { left: 16px; bottom: 20px; }
  .chapter { left: 16px; transform: none; bottom: 58px; }
  .dock { right: 12px; bottom: 14px; }
  .dock__in { padding: 8px 12px 8px 10px; }
  .dock__in::before { left: 48px; }
  .dock__bar { width: 24px; }
  [data-mode="scrub"] .lay { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 86px 16px 110px; gap: 16px; }
  [data-mode="scrub"] .z { position: relative; }
  [data-mode="scrub"] .b1 .lay { justify-content: flex-end; }
  .b1__cue { display: none !important; }
  [data-mode="scrub"] .b1 .z--tl { position: absolute; top: 84px; left: 16px; }
  [data-mode="scrub"] .b1__num { position: absolute; right: 16px; top: 118px; }
  .num { font-size: 110px; }
  [data-mode="scrub"] .b8 .lay { justify-content: center; }
  [data-mode="scrub"] .b10 .lay { justify-content: space-between; }
  .paper { padding: 18px 18px 20px; max-width: calc(100vw - 48px); }
  .glass { max-width: calc(100vw - 32px); }
  .h2 { font-size: 46px; }
  .h2--xl { font-size: 60px; }
  .h1 .jp-serif { font-size: 44px; }
  .lede { font-size: 14.5px; }
  .b4__chips { gap: 8px; } .chip i { width: 60px; height: 44px; }
  .b7__r { width: 100%; }
  .b8__jp { font-size: 38px; }
  [data-mode="scrub"] .beat .z { translate: none; }
  [data-mode="video"] .lay { padding: 110px 16px 110px; }
  [data-mode="video"] .z--tl { display: none; }
  .sec__head { grid-template-columns: 1fr; gap: 10px; }
  .sec__no { font-size: 80px; }
  .fchk { margin-left: 0; }
  .issues { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .issue__no { font-size: 56px; }
  .issue__jp, .issue__en { font-size: 16px; }
  .issue__foot { flex-wrap: wrap; gap: 6px; }
  .seg button b { font-size: 16px; }
  .field--row { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__en { display: none; }
  .receipt__foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
}
