/* ───────────────────────────────────────────────────────────
   La Maison d'Argent — académie de peinture
   Palette sampled from the film's frames:
     page     #b19f77   engraving ink  #212336 / navy #2b3576
     gilt     #a8781f / #d9ae4c / #573a1b
     wheat    #9a6907 / #c79420   sky #8a9a95
     night    #06204e / #05153d   moon #e2d68c
   ─────────────────────────────────────────────────────────── */

:root {
  --paper: #b19f77;
  --paper-hi: #cdbd94;
  --vellum: #e6dcbf;
  --ink: #212336;
  --navy: #2b3576;
  --night: #06204e;
  --night-2: #05153d;
  --gold: #a8781f;
  --gold-hi: #d9ae4c;
  --gold-dk: #573a1b;
  --wheat: #c79420;
  --wheat-dk: #9a6907;
  --sky: #8a9a95;
  --moon: #e2d68c;
  --cypress: #0f2a2a;
  --red: #8c2a1c;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --text: "Cormorant Garamond", "Garamond", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --jp: "Noto Serif JP", serif;

  --ease: cubic-bezier(.19, 1, .22, 1);
  --swing: cubic-bezier(.65, 0, .35, 1);
  --gut: clamp(16px, 3vw, 44px);
  --top: 84px;
  --scroll-length: 1150vh;

  --cx: var(--vellum);          /* chrome ink, flips on light film */
  --cx-soft: rgba(230, 220, 191, .6);
  --gilt: linear-gradient(135deg, #6e4a17 0%, #d9ae4c 22%, #8a5f1c 45%, #f0cf7a 62%, #a8781f 80%, #5e3d12 100%);
}
:root.is-light, [data-mode="video"] { --cx: var(--ink); --cx-soft: rgba(33, 35, 54, .55); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.45;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
[lang="ja"] { font-family: var(--jp); letter-spacing: .08em; }
em { font-style: italic; }
sup { font-size: .6em; }
::selection { background: var(--gold-hi); color: var(--ink); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: var(--vellum); padding: 10px 14px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ── loader ───────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 400; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--paper); color: var(--ink);
  transition: opacity .9s var(--ease) .1s, visibility 0s linear 1s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__orn svg { width: 240px; fill: none; stroke: var(--ink); stroke-width: 1; }
.loader__orn circle { fill: var(--ink); }
.loader__med { position: relative; width: 120px; height: 120px; }
.loader__med svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.loader__med circle { fill: none; stroke-width: 2.2; }
.loader__track { stroke: rgba(33, 35, 54, .18); }
#loaderFill { stroke: var(--gold); stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset .3s linear; stroke-linecap: round; }
.loader__med b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 34px; font-weight: 500; }
.loader__word { font-family: var(--serif); font-size: clamp(28px, 4vw, 46px); letter-spacing: .02em; }
.loader__meta { display: flex; gap: 22px; opacity: .7; }
.loader__jp { font-size: 13px; opacity: .6; }

/* ── the change of room (mode switch) ─────────────────── */
.iris {
  position: fixed; inset: 0; z-index: 350; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(230, 220, 191, .0) 30%, rgba(33, 35, 54, .22) 100%),
    var(--paper);
  clip-path: circle(0% at 50% 50%);
  visibility: hidden;
  transition: clip-path .7s var(--swing), visibility 0s linear .7s;
  display: grid; place-items: center;
}
.iris__frame { position: absolute; width: min(56vw, 560px); aspect-ratio: 4 / 3; transform: scale(.4) rotate(-4deg); transition: transform .8s var(--ease); }
.iris__frame i { position: absolute; inset: 0; border: 14px solid transparent; border-image: var(--gilt) 1; box-shadow: 0 30px 60px rgba(33, 35, 54, .35), inset 0 0 0 2px var(--gold-dk); }
.iris__frame i + i { inset: 22px; border: 1px solid var(--ink); border-image: none; box-shadow: none; }
.iris__word { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .6s var(--ease); }
.iris__word b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(30px, 4vw, 54px); }
.iris__word em { font-style: normal; font-size: 14px; opacity: .7; }
:root.is-switching .iris { clip-path: circle(80% at 50% 50%); visibility: visible; transition: clip-path .26s var(--swing), visibility 0s; }
:root.is-switching .iris__frame { transform: scale(1) rotate(0deg); transition-duration: .3s; }
:root.is-switching .iris__word { opacity: 1; transform: none; }

/* ── film ─────────────────────────────────────────────── */
.film { position: fixed; inset: 0; z-index: 0; background: var(--paper); }
.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; }
[data-mode="video"] .film__veil {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(177, 159, 119, .55) 0%, rgba(177, 159, 119, .12) 45%, rgba(177, 159, 119, 0) 70%),
    linear-gradient(180deg, rgba(33, 35, 54, .10), rgba(33, 35, 54, .28));
}

/* ── HUD ──────────────────────────────────────────────── */
.hud { position: fixed; inset: 0; z-index: 15; pointer-events: none; color: var(--cx); transition: color .5s; }
.hud__br { position: absolute; width: 26px; height: 26px; border: 0 solid currentColor; opacity: .7; }
.hud__br::after { content: ""; position: absolute; width: 5px; height: 5px; border: 1px solid currentColor; transform: rotate(45deg); }
.hud__br--tl { top: calc(var(--top) - 6px); left: var(--gut); border-width: 1px 0 0 1px; }
.hud__br--tr { top: calc(var(--top) - 6px); right: var(--gut); border-width: 1px 1px 0 0; }
.hud__br--bl { bottom: 22px; left: var(--gut); border-width: 0 0 1px 1px; }
.hud__br--br { bottom: 22px; right: var(--gut); border-width: 0 1px 1px 0; }
.hud__br--tl::after { top: -4px; left: -4px; } .hud__br--tr::after { top: -4px; right: -4px; }
.hud__br--bl::after { bottom: -4px; left: -4px; } .hud__br--br::after { bottom: -4px; right: -4px; }
.hud__side { position: absolute; top: 50%; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; opacity: .8; }
.hud__side--l { left: calc(var(--gut) - 4px); transform: translateY(-50%) rotate(180deg); }
.hud__side--l [lang="ja"] { font-size: 12px; writing-mode: vertical-rl; }
.hud__side--l i { width: 1px; height: 40px; background: currentColor; opacity: .5; }
.hud__side--r { right: calc(var(--gut) - 4px); transform: translateY(-50%); }
.hud__tc { position: absolute; left: calc(var(--gut) + 30px); bottom: 26px; display: grid; gap: 3px; opacity: .85; }
.hud__tc b { font-weight: 500; font-size: 13px; }
.hud__orn { position: absolute; }
.hud__orn--a { right: calc(var(--gut) + 30px); top: calc(var(--top) + 20px); width: 54px; opacity: .6; transform: translate3d(0, calc(var(--p, 0) * -60px), 0); }
.hud__orn--a svg { fill: none; stroke: currentColor; stroke-width: 1; }
.hud__orn--a .hand { transform-origin: 40px 40px; transform: rotate(calc(var(--p, 0) * 720deg)); stroke-width: 1.6; }
.hud__orn--b { right: calc(var(--gut) + 30px); bottom: 30px; opacity: .6; transform: translate3d(calc(var(--p, 0) * -80px), 0, 0); }
[data-mode="video"] .hud__orn, [data-mode="video"] .hud__side--r { display: none; }

/* ── header ───────────────────────────────────────────── */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 72px;
  display: flex; align-items: center; gap: 22px; padding: 0 var(--gut);
  color: var(--cx); transition: color .5s, background .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.chrome.is-solid, [data-mode="video"] .chrome { background: rgba(205, 189, 148, .94); color: var(--ink); border-color: rgba(33, 35, 54, .25); }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark__oval { position: relative; width: 34px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gilt); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .15); }
.mark__oval::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--night); }
.mark__oval b, .mark__oval i { position: relative; font-family: var(--serif); color: var(--moon); line-height: 1; }
.mark__oval b { font-size: 16px; font-weight: 600; transform: translate(-3px, -3px); }
.mark__oval i { position: absolute; font-size: 13px; transform: translate(5px, 5px); }
.mark__word { display: grid; line-height: 1; }
.mark__word small { font-family: var(--mono); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.mark__word b { font-family: var(--serif); font-weight: 500; font-size: 22px; font-style: italic; letter-spacing: .01em; }
.chrome__nav { display: flex; gap: 22px; }
.chrome__nav a { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; position: relative; padding: 4px 0; }
.chrome__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.chrome__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; 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; inset: 72px 0 auto 0; z-index: 59; background: var(--paper-hi); border-bottom: 1px solid var(--ink); display: grid; padding: 10px var(--gut) 20px; transform: translateY(-110%); transition: transform .6s var(--ease); visibility: hidden; }
.navPanel.is-open { transform: none; visibility: visible; }
.navPanel a { font-family: var(--serif); font-size: 30px; text-decoration: none; padding: 8px 0; border-bottom: 1px dotted rgba(33, 35, 54, .4); display: flex; gap: 14px; align-items: baseline; }
.navPanel a i { font-family: var(--mono); font-size: 11px; font-style: normal; width: 30px; }

/* ── buttons ──────────────────────────────────────────── */
.btn {
  --mag: translate(0, 0);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transform: var(--mag); transition: color .4s, background .4s, box-shadow .4s;
  overflow: hidden; isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn--lg { height: 52px; padding: 0 26px; }
.btn--ink { background: var(--ink); color: var(--vellum); }
.btn--ink::before { background: var(--navy); }
.btn--gold { background: var(--gilt); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(87, 58, 27, .6); }
.btn--gold::before { background: var(--ink); }
.btn--gold:hover { color: var(--moon); }
.btn--line { box-shadow: inset 0 0 0 1px currentColor; }
.btn--line::before { background: currentColor; }
.btn--line:hover { color: var(--paper-hi); }
.cartel--night .btn--line:hover { color: var(--night); }
.link { text-decoration: underline; text-underline-offset: 3px; }

/* ── the gilt switch ──────────────────────────────────── */
.gsw { --mag: translate(0, 0); display: inline-flex; align-items: center; gap: 12px; transform: var(--mag); }
.gsw__track {
  position: relative; width: 56px; height: 30px; border-radius: 16px; padding: 3px;
  background: var(--gilt); box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.gsw__track::before { content: ""; position: absolute; inset: 3px; border-radius: 13px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4), inset 0 2px 6px rgba(0, 0, 0, .6); transition: background .4s; }
.gsw[aria-checked="false"] .gsw__track::before { background: #3a3222; }
.gsw__knob {
  position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fff6c8 0%, var(--moon) 30%, #b58e2e 75%, #6d4b16 100%);
  box-shadow: 0 0 0 1px rgba(87, 58, 27, .8), 0 0 14px rgba(226, 214, 140, .8);
  transform: translateX(26px); transition: transform .55s var(--ease), box-shadow .5s, background .5s;
}
.gsw__knob i { position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgba(87, 58, 27, .55); animation: spin 6s linear infinite; }
.gsw[aria-checked="false"] .gsw__knob { transform: translateX(0); background: radial-gradient(circle at 36% 34%, #e6dcbf, #9c8b63 70%, #574a2e); box-shadow: 0 0 0 1px rgba(33, 35, 54, .6); }
.gsw[aria-checked="false"] .gsw__knob i { animation-play-state: paused; }
.gsw__txt { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.gsw__roll { display: inline-block; height: 1.3em; line-height: 1.3em; overflow: hidden; }
.gsw__roll b { display: block; font-weight: 500; transition: transform .5s var(--ease); }
.gsw[aria-checked="false"] .gsw__roll b { transform: translateY(-100%); }
.gsw__k.is-roll { animation: roll .6s var(--ease); }
@keyframes roll { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.gsw--lg .gsw__track { width: 66px; height: 34px; border-radius: 18px; }
.gsw--lg .gsw__knob { width: 24px; height: 24px; transform: translateX(32px); }
.gsw--lg[aria-checked="false"] .gsw__knob { transform: translateX(0); }
.gsw--lg .gsw__txt { font-size: 12px; }

/* ── dock + rail ──────────────────────────────────────── */
.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 55; transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px; padding: 8px 10px 8px 20px;
  background: rgba(205, 189, 148, .95); color: var(--ink); border-radius: 40px;
  box-shadow: 0 0 0 1px rgba(87, 58, 27, .45), 0 0 0 4px rgba(205, 189, 148, .6), 0 0 0 5px rgba(168, 120, 31, .7), 0 14px 40px rgba(0, 0, 0, .3);
}
.dock .gsw { padding: 6px 14px 6px 6px; border-radius: 30px; background: var(--ink); color: var(--vellum); }
.dock__ch { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.dock__ch b { font-family: var(--serif); font-size: 22px; font-weight: 500; min-width: 2.2em; text-align: right; display: inline-block; }
.dock__ch b.is-flip { animation: flip .6s var(--ease); }
.dock__ch em { font-family: var(--serif); font-size: 16px; margin-left: 6px; min-width: 7.5em; }
@keyframes flip { from { transform: translateY(-60%) rotateX(80deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rail { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 70; background: rgba(33, 35, 54, .12); }
.rail > span { position: absolute; inset: 0; background: var(--gilt); transform-origin: left; transform: scaleX(0); }
.rail__marks i { position: absolute; top: 0; width: 1px; height: 7px; background: var(--gold-dk); }

/* ── stage + beats ────────────────────────────────────── */
.stage { position: relative; z-index: 10; }
.overlays { pointer-events: none; }
.beat { --t: 0; color: var(--ink); }
.beat[data-tone="dark"] { color: var(--vellum); }
.beat > * { pointer-events: none; }
.beat a, .beat button { pointer-events: auto; }

[data-mode="scrub"] .stage__spacer { height: var(--scroll-length); }
[data-mode="scrub"] .overlays { position: fixed; inset: 0; z-index: 20; }
[data-mode="scrub"] .beat { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity; }

[data-mode="video"] .stage__spacer { height: 0; }
[data-mode="video"] .overlays { position: relative; z-index: 20; }
[data-mode="video"] .beat { position: relative; min-height: 100vh; min-height: 100svh; opacity: 1; visibility: visible; overflow-x: clip; }
[data-mode="video"] .beat .lay { clip-path: inset(0 0 22% 0); opacity: .001; transition: clip-path 1.1s var(--ease), opacity .7s var(--ease); }
[data-mode="video"] .beat.is-live .lay { clip-path: inset(0); opacity: 1; }
[data-mode="video"] .beat + .beat::before { content: ""; position: absolute; left: var(--gut); right: var(--gut); top: 0; height: 1px; background: repeating-linear-gradient(90deg, rgba(33, 35, 54, .5) 0 3px, transparent 3px 7px); }
[data-mode="video"] .callout, [data-mode="video"] .cue i { display: none; }
[data-mode="video"] .cue span::after { content: " · film en lecture"; }
/* video: every piece of copy sits on its own plate, the film is not in sync */
[data-mode="video"] .bare { background: rgba(205, 189, 148, .9); padding: .2em .35em; box-shadow: 0 0 0 1px rgba(33, 35, 54, .3); }
[data-mode="video"] .beat[data-tone="dark"] .bare { background: rgba(5, 21, 61, .86); box-shadow: 0 0 0 1px rgba(217, 174, 76, .4); }

.lay { position: absolute; inset: 0; padding: calc(var(--top) + 20px) calc(var(--gut) + 34px) 110px; }
[data-mode="video"] .lay { position: relative; min-height: 100vh; min-height: 100svh; }
.z { position: absolute; display: flex; flex-direction: column; gap: 16px; }
.z--tl { top: calc(var(--top) + 24px); left: calc(var(--gut) + 40px); max-width: min(46vw, 640px); }
.z--tr { top: calc(var(--top) + 24px); right: calc(var(--gut) + 40px); align-items: flex-end; }
.z--bl { bottom: 104px; left: calc(var(--gut) + 40px); max-width: min(44vw, 620px); }
.z--br { bottom: 104px; right: calc(var(--gut) + 40px); align-items: flex-end; max-width: min(40vw, 520px); }
.z--r { top: 50%; right: calc(var(--gut) + 40px); transform: translateY(-50%); max-width: min(34vw, 470px); }

/* parallax: zones drift a little with the beat's own time */
[data-mode="scrub"] .z { translate: 0 calc(var(--t) * -14px); }
[data-mode="scrub"] .z--r { translate: 0 calc(var(--t) * -20px); }

/* ── the cartel (museum label) ────────────────────────── */
.cartel {
  position: relative; padding: 26px 28px 26px; color: var(--ink);
  background: rgba(214, 200, 162, .94);
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px rgba(214, 200, 162, .94), 0 0 0 6px var(--ink), 0 22px 50px rgba(33, 35, 54, .28);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease);
}
.beat.is-live .cartel { clip-path: inset(-8px -8px -60px -8px); }
.cartel::before, .cartel::after { content: "✦"; position: absolute; font-size: 10px; color: var(--gold-dk); }
.cartel::before { top: 6px; left: 8px; } .cartel::after { bottom: 6px; right: 8px; }
.cartel--sm { padding: 20px 22px; }
.cartel--night { color: var(--vellum); background: rgba(5, 21, 61, .84); box-shadow: 0 0 0 1px rgba(217, 174, 76, .8), 0 0 0 5px rgba(5, 21, 61, .84), 0 0 0 6px rgba(217, 174, 76, .5), 0 22px 50px rgba(0, 0, 0, .4); }
.cartel--night::before, .cartel--night::after { color: var(--gold-hi); }
.cartel--hero { padding: 30px 32px; }

/* ── type ─────────────────────────────────────────────── */
.kicker { display: inline-flex; align-items: center; gap: 10px; opacity: .85; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(140, 42, 28, .2); animation: pulse 2s ease-in-out infinite; }
.dot--gold { background: var(--gold-hi); box-shadow: 0 0 0 3px rgba(217, 174, 76, .25); }
@keyframes pulse { 50% { transform: scale(.6); } }
.mega { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.4vw, 108px); line-height: .92; letter-spacing: -.01em; }
.mega em { font-weight: 400; color: var(--navy); }
.mega--end { font-size: clamp(40px, 5.2vw, 88px); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.3vw, 54px); line-height: 1.02; letter-spacing: -.005em; }
.h2 em { color: var(--navy); }
.beat[data-tone="dark"] .h2 em, .cartel--night .h2 em { color: var(--moon); }
.h2--xl { font-size: clamp(42px, 5.6vw, 96px); line-height: .95; }
.lede { margin: 0; font-size: clamp(18px, 1.35vw, 22px); line-height: 1.4; max-width: 36em; }
.lede--sm { font-size: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* split type — chars rise out of a mask */
.w { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding: 0 .02em; margin: 0 -.02em; }
.ch { display: inline-block; transform: translate3d(0, 108%, 0) rotate(var(--rr, 0deg)); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 28ms); }
.is-live .ch { transform: none; }
.ln { display: block; overflow: clip; overflow-clip-margin: .14em; }
.ln > i { display: block; font-style: normal; transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease); transition-delay: calc(120ms + var(--li, 0) * 90ms); }
.is-live .ln > i { transform: none; }

.beat .lede, .beat .row, .beat .kicker, .beat .numerals li, .beat .stats li, .beat .steps li { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(.3s + var(--i, 0) * 90ms); }
.beat.is-live .lede, .beat.is-live .row, .beat.is-live .kicker, .beat.is-live .numerals li, .beat.is-live .stats li, .beat.is-live .steps li { opacity: 1; transform: none; }
.beat .row { transition-delay: .5s; }

/* ── callouts: dotted leaders onto the subject ────────── */
.callout {
  position: absolute; width: 0; height: 0;
  left: calc(50% + (var(--fx) - 50) * 1vw * var(--kx, 1));
  top:  calc(50% + (var(--fy) - 50) * 1vh * var(--ky, 1));
  color: inherit;
}
.callout__x { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; }
.callout__x::before, .callout__x::after { content: ""; position: absolute; background: currentColor; }
.callout__x::before { left: 11.5px; top: 0; width: 1px; height: 24px; }
.callout__x::after { top: 11.5px; left: 0; height: 1px; width: 24px; }
.callout__x--ring { border: 1px solid currentColor; border-radius: 50%; animation: spin 14s linear infinite; }
.callout__x--ring::before { top: -6px; height: 36px; } .callout__x--ring::after { left: -6px; width: 36px; }
.callout__lead {
  position: absolute; left: 0; top: 0; height: 0; width: var(--len, 100px);
  border-top: 1px dashed currentColor; transform-origin: 0 0; transform: rotate(var(--ang, 0deg)) scaleX(0);
  transition: transform .9s var(--ease) .15s;
}
.callout__lbl {
  position: absolute; left: var(--lx); top: var(--ly); transform: translate(0, -50%); white-space: nowrap; line-height: 1.5;
  padding: 7px 10px; background: rgba(214, 200, 162, .92); color: var(--ink); box-shadow: 0 0 0 1px var(--ink);
  opacity: 0; transition: opacity .5s .5s, translate .8s var(--ease) .5s; translate: 0 8px;
}
.callout__lbl b { font-weight: 500; letter-spacing: .04em; text-transform: none; font-family: var(--text); font-style: italic; font-size: 15px; }
.beat[data-tone="dark"] .callout__lbl { background: rgba(5, 21, 61, .88); color: var(--vellum); box-shadow: 0 0 0 1px var(--gold-hi); }
.callout--r .callout__lbl { transform: translate(-100%, -50%); }
.callout[style*="--lx:-"] .callout__lbl { transform: translate(-100%, -50%); }
.is-live .callout__lead { transform: rotate(var(--ang, 0deg)) scaleX(1); }
.is-live .callout__lbl { opacity: 1; translate: 0 0; }
.callout__x { scale: 0; transition: scale .6s var(--ease); }
.is-live .callout__x { scale: 1; }

/* ── I hero ───────────────────────────────────────────── */
.beat--hero .cartel--hero { max-width: 560px; }
.beat--hero .z--tr { gap: 18px; }
.stamp { position: relative; width: 118px; height: 118px; color: var(--ink); background: rgba(214, 200, 162, .9); border-radius: 50%; box-shadow: 0 0 0 1px var(--ink); }
.stamp svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.stamp text { font-family: var(--mono); font-size: 8.4px; letter-spacing: .2em; fill: currentColor; }
.stamp b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 30px; }
.jpv { writing-mode: vertical-rl; font-size: 22px; padding: 12px 8px; background: rgba(214, 200, 162, .9); box-shadow: 0 0 0 1px var(--ink); color: var(--ink); }
.beat .stamp, .beat .jpv { opacity: 0; transform: translate3d(0, -20px, 0) rotate(-8deg); transition: opacity .8s var(--ease) .4s, transform 1.2s var(--ease) .4s; }
.beat.is-live .stamp, .beat.is-live .jpv { opacity: 1; transform: none; }
.cue { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); background: rgba(214, 200, 162, .9); padding: 8px 12px; box-shadow: 0 0 0 1px rgba(33, 35, 54, .4); }
.cue i { width: 1px; height: 30px; background: currentColor; transform-origin: top; animation: drip 1.8s var(--swing) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ── II introduction · rôle ───────────────────────────── */
.vtitle {
  position: absolute; top: calc(var(--top) + 14px); bottom: 100px; left: calc(var(--gut) + 44px);
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; gap: 18px;
  padding: 22px 12px; background: rgba(214, 200, 162, .94); box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px rgba(214, 200, 162, .94), 0 0 0 6px var(--ink);
  font-family: var(--serif); color: var(--ink);
  clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease);
}
.is-live .vtitle { clip-path: inset(-8px); }
.vtitle__a { font-size: clamp(46px, 6.6vh, 84px); line-height: 1; font-weight: 400; }
.vtitle__b { font-size: clamp(46px, 6.6vh, 84px); line-height: 1; font-style: italic; color: var(--navy); }
.vtitle__dot { font-size: 40px; color: var(--gold); }
.vtitle__jp { font-size: 15px; letter-spacing: .4em; transform: rotate(180deg); opacity: .75; margin-top: auto; }
.vtitle > span:not(.vtitle__jp) { transform: translate3d(calc(var(--t) * 10px), calc(var(--t) * 30px), 0); }
.numerals { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.numerals li { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; padding: 12px 0; border-top: 1px dotted rgba(33, 35, 54, .5); }
.numerals b { grid-row: span 2; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; color: var(--gold-dk); }
.numerals span { font-family: var(--serif); font-size: 20px; font-style: italic; }
.numerals em { font-size: 16px; font-style: normal; opacity: .8; }

/* ── III the frame ────────────────────────────────────── */
.axis { position: absolute; left: 0; right: 0; top: calc(var(--top) + 6vh); margin: 0; text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8.6vw, 150px); line-height: .9; color: var(--ink); }
[data-mode="scrub"] .axis { background: none; box-shadow: none; }
.axis__w { display: inline-block; opacity: 0; transform: translate3d(calc(var(--ax) * 40vw), calc(var(--ay) * 26vh), 0); transition: transform 1.3s var(--ease), opacity .6s; }
.axis__w em { color: var(--navy); }
.is-live .axis__w { opacity: 1; transform: translate3d(calc(var(--t) * var(--ax) * -30px), 0, 0) scale(calc(1 + var(--t) * .04)); }
.axis__w:nth-child(2) { transition-delay: .08s; } .axis__w:nth-child(3) { transition-delay: .16s; }
.push__meta { position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; white-space: nowrap; padding: 8px 14px; background: rgba(214, 200, 162, .9); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.push__rule { width: 50px; height: 1px; background: currentColor; }

/* ── IV wheat ─────────────────────────────────────────── */
.beat--wheat .h2--xl { color: var(--ink); }
[data-mode="scrub"] .beat--wheat .bare { text-shadow: 0 0 30px rgba(230, 220, 191, .6); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stats li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 16px; padding-bottom: 12px; border-bottom: 1px dotted currentColor; }
.stats li:last-child { border-bottom: 0; padding-bottom: 0; }
.stats b { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 56px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; min-width: 3.2ch; }
.stats span { font-size: 17px; line-height: 1.25; max-width: 16em; }
.stats--row { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 18px; margin-top: 18px; }
.stats--row li { grid-template-columns: 1fr; border-bottom: 0; border-left: 1px dotted currentColor; padding: 0 0 0 14px; }
.stats--row span { font-size: 15px; }
.cartel--night .stats b { color: var(--moon); }

/* ── V the sky turns ──────────────────────────────────── */
.turn { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%); margin: 0; text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 8vw, 140px); line-height: 1; color: var(--ink); }
[data-mode="video"] .turn { display: table; left: 50%; transform: translate(-50%, -58%); }
.turn span, .turn em { display: inline-block; opacity: 0; transform: rotate(calc((var(--k) - 2) * 24deg)) translate3d(0, 60px, 0); transform-origin: 50% 300%; transition: transform 1.3s var(--ease), opacity .7s; transition-delay: calc(var(--k) * 70ms); }
.turn em { color: var(--navy); }
.is-live .turn span, .is-live .turn em { opacity: 1; transform: rotate(calc(var(--t) * (var(--k) - 2) * 5deg)); }
.jpbig { position: absolute; right: calc(var(--gut) + 60px); top: 50%; font-size: clamp(120px, 20vw, 320px); line-height: 1; color: rgba(33, 35, 54, .14); transform: translateY(-50%) rotate(calc(var(--t) * 40deg)); }
.sky__note { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); white-space: nowrap; color: var(--ink); }

/* ── VI night / VII cypress / VIII swirl / IX star ────── */
.beat--night .h2--xl { color: var(--vellum); }
[data-mode="scrub"] .beat[data-tone="dark"] .bare { text-shadow: 0 2px 30px rgba(5, 21, 61, .9), 0 0 2px rgba(5, 21, 61, .8); }
.roman { font-family: var(--serif); }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 10px 0; border-top: 1px dotted rgba(217, 174, 76, .5); transition: opacity .7s, transform .9s var(--ease), color .4s; }
.steps li b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; color: var(--gold-hi); transition: transform .5s var(--ease); }
.steps h3 { margin: 0 0 2px; font-family: var(--serif); font-weight: 500; font-size: 20px; font-style: italic; }
.steps p { margin: 0; font-size: 16px; line-height: 1.3; opacity: .85; max-height: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
.steps li.is-on p { max-height: 4em; }
.beat.is-live .steps li:not(.is-on) { opacity: .45; }
.steps li.is-on b { transform: scale(1.25); }
.spiral { position: absolute; left: 50%; top: 50%; width: min(70vh, 64vw); transform: translate(-50%, -50%) rotate(calc(var(--t) * -60deg)); fill: none; stroke: var(--moon); stroke-width: 1.2; stroke-dasharray: 1 0.012; opacity: .75; }
.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.is-live .draw path { stroke-dashoffset: 0; }
.quote { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; text-align: center; width: min(900px, 86vw); }
.quote p { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(36px, 4.6vw, 78px); line-height: 1.02; font-weight: 400; }
.quote p em { color: var(--moon); }
.quote cite { font-style: normal; opacity: .8; }
[data-mode="video"] .quote { padding: 30px; }

/* ── X the wall ───────────────────────────────────────── */
.polas { position: absolute; right: calc(var(--gut) + 60px); top: calc(var(--top) + 30px); display: flex; gap: 18px; }
.pola { --r: 0deg; margin: 0; width: clamp(150px, 13vw, 210px); padding: 10px 10px 34px; background: #efe6cc; box-shadow: 0 16px 34px rgba(33, 35, 54, .35), 0 0 0 1px rgba(33, 35, 54, .2); position: relative; opacity: 0; transform: translate3d(0, 60px, 0) rotate(calc(var(--r) * 3)); transition: opacity .7s, transform 1.2s var(--ease); transition-delay: calc(.2s + var(--i) * .15s); }
.pola span { display: block; aspect-ratio: 4 / 5; background-size: cover; background-position: center; }
.pola figcaption { position: absolute; left: 10px; right: 10px; bottom: 8px; font-family: var(--text); font-style: italic; font-size: 13px; line-height: 1.1; color: var(--ink); }
.pola::before { content: ""; position: absolute; top: -9px; left: 50%; width: 60px; height: 18px; margin-left: -30px; background: rgba(217, 174, 76, .55); transform: rotate(-3deg); }
.is-live .pola { opacity: 1; transform: translate3d(0, calc(var(--t) * -24px * (var(--i) + 1)), 0) rotate(var(--r)); }

/* ── XI end ───────────────────────────────────────────── */
.ticket { display: grid; gap: 6px; width: 200px; padding: 16px 16px 14px; background: rgba(214, 200, 162, .94); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); position: relative; opacity: 0; transform: rotate(5deg) translate3d(0, -30px, 0); transition: opacity .7s .3s, transform 1.2s var(--ease) .3s; font-size: 10px; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.ticket::before { left: -7px; } .ticket::after { right: -7px; }
.ticket b { font-family: var(--serif); font-size: 26px; letter-spacing: .02em; font-weight: 500; text-transform: none; }
.barcode { width: 100%; height: 34px; fill: var(--ink); }
.is-live .ticket { opacity: 1; transform: rotate(4deg); }

/* ════════════════ below the film ════════════════ */
.after { position: relative; z-index: 30; background: var(--paper-hi); }
.after::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: radial-gradient(rgba(33, 35, 54, .18) .6px, transparent .8px); background-size: 5px 5px; }

.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--ink); background: var(--ink); color: var(--moon); }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 34px; font-family: var(--serif); font-size: clamp(44px, 6vw, 96px); line-height: 1; white-space: nowrap; will-change: transform; padding-right: 34px; }
.marquee__track i { font-style: normal; font-size: .4em; color: var(--gold-hi); }
.marquee__track [lang="ja"] { font-size: .6em; color: var(--vellum); }

.sec { position: relative; padding: clamp(80px, 11vw, 160px) var(--gut); max-width: 1500px; margin: 0 auto; }
.sec--tight { padding-top: 60px; }
.sec--ink, .sec--night { max-width: none; color: var(--vellum); }
.sec--ink { background: var(--ink); }
.sec--night {
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, var(--moon), transparent),
    radial-gradient(1px 1px at 38% 62%, var(--moon), transparent),
    radial-gradient(1.5px 1.5px at 72% 28%, var(--moon), transparent),
    radial-gradient(1px 1px at 88% 78%, var(--moon), transparent),
    radial-gradient(1px 1px at 55% 12%, var(--moon), transparent),
    radial-gradient(ellipse at 80% 0%, rgba(43, 53, 118, .7), transparent 60%),
    linear-gradient(180deg, var(--night), var(--night-2));
}
.sec--ink > *, .sec--night > * { max-width: 1500px; margin-left: auto; margin-right: auto; }
.sec__head { display: grid; grid-template-columns: auto 1fr minmax(0, 420px); gap: 28px; align-items: end; margin-bottom: 56px; padding-bottom: 26px; border-bottom: 1px solid currentColor; position: relative; }
.sec__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; border-bottom: 1px solid currentColor; opacity: .4; }
.sec__num { font-family: var(--serif); font-size: clamp(80px, 10vw, 170px); line-height: .8; color: var(--gold); font-weight: 400; font-style: italic; }
.sec--ink .sec__num, .sec--night .sec__num { color: var(--gold-hi); }
.h2--sec { font-size: clamp(44px, 6vw, 100px); line-height: .92; margin-top: 10px; }
.sec--ink .h2 em, .sec--night .h2 em { color: var(--moon); }
.sec__lede { margin: 0; font-size: 20px; line-height: 1.4; }
.sec__head .h2 .ln > i, .sec__head .kicker, .sec__head .sec__lede, .sec__num { transition: transform 1.1s var(--ease), opacity .8s; }
.sec__head:not(.is-live) .sec__num { transform: translate3d(0, 40px, 0) rotate(-6deg); opacity: 0; }
.sec__head:not(.is-live) .sec__lede, .sec__head:not(.is-live) .kicker { transform: translate3d(0, 20px, 0); opacity: 0; }
.sec__head .sec__lede { transition-delay: .25s; }
.sec__head::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.sec__head.is-live::before { transform: scaleX(1); }

/* ── I courses ────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-bottom: 34px; }
.filters__g { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__g > .mono { margin-right: 6px; opacity: .7; }
.chip { height: 36px; padding: 0 16px; border-radius: 20px; font-family: var(--text); font-size: 17px; box-shadow: inset 0 0 0 1px rgba(33, 35, 54, .5); transition: background .3s, color .3s, box-shadow .3s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.is-on { background: var(--ink); color: var(--moon); box-shadow: inset 0 0 0 1px var(--ink); }
.filters__count { margin: 0 0 0 auto; }
.filters__count b { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: 0; }
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.course {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; background: #d9cba6; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(33, 35, 54, .55), 0 0 0 5px #d9cba6, 0 0 0 6px rgba(33, 35, 54, .35);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), opacity .45s, scale .45s var(--ease), box-shadow .4s;
  animation: cardIn .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 30px, 0); } }
.course.is-out { opacity: 0; scale: .92; }
.course:hover { box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px #d9cba6, 0 0 0 6px var(--gold), 0 26px 50px rgba(33, 35, 54, .3); }
.course__img { position: relative; aspect-ratio: 5 / 4; background-size: cover; background-position: center; margin: 10px 10px 0; box-shadow: inset 0 0 0 6px transparent; overflow: hidden; }
.course__img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 8px rgba(168, 120, 31, .85), inset 0 0 0 9px var(--gold-dk); }
.course__code { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 3px 8px; background: var(--ink); color: var(--moon); }
.course__body { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; }
.course__med { opacity: .75; }
.course h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; }
.course p { margin: 0; font-size: 17px; line-height: 1.3; }
.course__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 12px; border-top: 1px dotted rgba(33, 35, 54, .5); }
.course__meta b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.lvl { display: inline-flex; gap: 3px; }
.lvl i { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink); }
.lvl i.on { background: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-dk); }
.courses__empty { font-size: 22px; text-align: center; padding: 40px; }

/* ── II builder ───────────────────────────────────────── */
.builder { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 48px; align-items: start; }
.builder__form { display: grid; gap: 34px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-size: 26px; margin-bottom: 14px; padding: 0; }
legend b { font-weight: 400; font-style: italic; color: var(--gold-hi); width: 40px; }
legend .mono { opacity: .6; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pick { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; box-shadow: inset 0 0 0 1px rgba(230, 220, 191, .3); cursor: pointer; transition: box-shadow .3s, background .3s; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__box { width: 18px; height: 18px; box-shadow: inset 0 0 0 1px var(--vellum); display: grid; place-items: center; transition: background .3s; }
.pick__box::after { content: "✓"; font-size: 13px; color: var(--ink); transform: scale(0); transition: transform .4s var(--ease); }
.pick input:checked ~ .pick__box { background: var(--gold-hi); box-shadow: none; }
.pick input:checked ~ .pick__box::after { transform: scale(1); }
.pick:has(input:checked) { box-shadow: inset 0 0 0 1px var(--gold-hi); background: rgba(217, 174, 76, .08); }
.pick:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.pick:has(input:focus-visible) { outline: 2px solid var(--gold-hi); }
.pick__n { font-size: 18px; line-height: 1.1; }
.pick__n em { display: block; font-family: var(--mono); font-size: 10px; font-style: normal; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin-top: 3px; }
.pick__f { font-family: var(--serif); font-size: 18px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; box-shadow: inset 0 0 0 1px currentColor; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; gap: 2px; text-align: center; padding: 12px 8px; font-size: 18px; transition: background .35s, color .35s; }
.seg span em { font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.seg label + label span { box-shadow: -1px 0 0 currentColor; }
.seg input:checked + span { background: var(--gold-hi); color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.range { display: flex; align-items: center; gap: 18px; }
.range input { flex: 1; appearance: none; -webkit-appearance: none; height: 2px; background: linear-gradient(90deg, var(--gold-hi) var(--fill, 30%), rgba(230, 220, 191, .3) var(--fill, 30%)); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #fff6c8, var(--moon) 30%, #b58e2e 75%); box-shadow: 0 0 0 1px var(--gold-dk); cursor: grab; }
.range input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--moon); border: 1px solid var(--gold-dk); }
.range output { font-size: 14px; min-width: 50px; text-align: right; }
.toggles { display: grid; gap: 12px; }
.tog { display: flex; align-items: center; gap: 14px; cursor: pointer; font-size: 18px; }
.tog input { position: absolute; opacity: 0; }
.tog__s { flex: none; width: 42px; height: 22px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--vellum); position: relative; transition: background .3s; }
.tog__s::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--vellum); transition: transform .45s var(--ease), background .3s; }
.tog input:checked + .tog__s { background: var(--gold-hi); box-shadow: none; }
.tog input:checked + .tog__s::after { transform: translateX(20px); background: var(--ink); }
.tog input:focus-visible + .tog__s { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.tog em { font-family: var(--mono); font-size: 11px; font-style: normal; letter-spacing: .08em; opacity: .7; margin-left: 6px; }
.bill { position: sticky; top: 96px; padding: 28px; background: #e8dfc4; color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 0 0 6px #e8dfc4, 0 0 0 7px var(--gold); }
.bill::before { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: radial-gradient(circle at 7px 0, transparent 6px, #e8dfc4 6.5px) 0 0 / 14px 14px repeat-x; }
.bill__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.bill__seal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #f0d9c0; font-family: var(--serif); font-style: italic; box-shadow: 0 0 0 3px rgba(140, 42, 28, .3); transform: rotate(-12deg); }
.bill__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 120px; }
.bill__lines li { display: flex; align-items: baseline; gap: 8px; font-size: 17px; animation: lineIn .5s var(--ease) both; }
.bill__lines li::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(33, 35, 54, .5); }
.bill__lines li b { order: 2; font-family: var(--mono); font-size: 13px; font-weight: 400; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-10px); } }
.bill__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 3px double var(--ink); }
.bill__total span { font-family: var(--serif); font-style: italic; font-size: 20px; }
.bill__total b { font-family: var(--serif); font-size: clamp(38px, 3.4vw, 54px); font-weight: 500; font-variant-numeric: tabular-nums; }
.bill__total b.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: translateY(-4px); color: var(--gold-dk); } }
.bill__sub { display: flex; justify-content: space-between; margin-top: 6px; opacity: .7; }
.bill__cta { width: 100%; margin-top: 22px; }

/* ── III quiz ─────────────────────────────────────────── */
.quiz { position: relative; max-width: 1080px; margin: 0 auto; }
.quiz__bar { height: 3px; background: rgba(33, 35, 54, .15); margin-bottom: 30px; }
.quiz__bar span { display: block; height: 100%; background: var(--gilt); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease); }
.q { display: grid; grid-template-columns: 200px 1fr; gap: 40px; animation: qIn .7s var(--ease) both; }
.q.is-leave { animation: qOut .35s var(--swing) both; }
@keyframes qIn { from { opacity: 0; transform: translate3d(40px, 0, 0); } }
@keyframes qOut { to { opacity: 0; transform: translate3d(-40px, 0, 0); } }
.q__n { font-family: var(--serif); font-size: 130px; line-height: .8; font-style: italic; color: var(--gold); }
.q__n small { display: block; font-family: var(--mono); font-size: 11px; font-style: normal; letter-spacing: .1em; color: var(--ink); margin-top: 16px; }
.q h3 { margin: 0 0 24px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; }
.q__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q__opt { --mag: translate(0, 0); text-align: left; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline; padding: 18px 20px; font-size: 19px; line-height: 1.25; background: #d9cba6; box-shadow: 0 0 0 1px rgba(33, 35, 54, .5); transition: background .3s, box-shadow .3s, transform .4s var(--ease); }
.q__opt b { font-family: var(--mono); font-size: 11px; font-weight: 500; }
.q__opt:hover { box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px rgba(168, 120, 31, .5); transform: translateY(-2px); }
.q__opt.is-picked { background: var(--ink); color: var(--moon); }
.quiz__result { animation: qIn .9s var(--ease) both; }
.card-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--night); color: var(--vellum); box-shadow: 0 0 0 1px var(--gold-hi), 0 0 0 6px var(--night), 0 0 0 7px var(--gold), 0 30px 70px rgba(33, 35, 54, .35); }
.card-res__img { position: relative; min-height: 380px; background-size: cover; background-position: center; margin: 14px; }
.card-res__img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 10px rgba(168, 120, 31, .9), inset 0 0 0 11px var(--gold-dk); }
.card-res__img span { position: absolute; left: 22px; bottom: 22px; background: var(--ink); color: var(--moon); padding: 4px 8px; }
.card-res__b { padding: 34px 36px 30px 16px; display: grid; gap: 14px; align-content: start; }
.card-res h3 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 4.4vw, 70px); line-height: .95; font-weight: 400; }
.card-res h3 em { color: var(--moon); }
.card-res p { margin: 0; font-size: 19px; }
.card-res__traits { display: flex; flex-wrap: wrap; gap: 8px; }
.card-res__traits span { padding: 4px 12px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(217, 174, 76, .7); font-size: 16px; }
.card-res__bars { display: grid; gap: 8px; margin: 6px 0; }
.card-res__bars div { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; }
.card-res__bars i { height: 4px; background: rgba(230, 220, 191, .15); position: relative; overflow: hidden; }
.card-res__bars i::after { content: ""; position: absolute; inset: 0; background: var(--gold-hi); transform-origin: left; transform: scaleX(var(--v, 0)); animation: grow 1.4s var(--ease) both .4s; }
@keyframes grow { from { transform: scaleX(0); } }
.card-res__rec { padding: 14px 16px; box-shadow: inset 0 0 0 1px rgba(217, 174, 76, .5); }
.card-res__rec b { font-family: var(--serif); font-size: 22px; font-weight: 400; font-style: italic; display: block; }
.card-res .row { margin-top: 6px; }
.card-res .btn--line:hover { color: var(--night); }

/* ── IV masters archive ───────────────────────────────── */
.eras { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.era { font-family: var(--serif); font-size: 24px; padding: 6px 18px; border-radius: 30px; box-shadow: inset 0 0 0 1px rgba(217, 174, 76, .5); transition: background .3s, color .3s; }
.era.is-on { background: var(--gold-hi); color: var(--night); }
.masters { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(217, 174, 76, .5); }
.m { border-bottom: 1px solid rgba(217, 174, 76, .3); animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.m__row { width: 100%; display: grid; grid-template-columns: 110px minmax(0, 1.6fr) minmax(0, 1fr) 150px 30px; gap: 20px; align-items: baseline; text-align: left; padding: 22px 0; position: relative; }
.m__row::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(217, 174, 76, .14), transparent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.m__row:hover::before, .m.is-open .m__row::before { transform: scaleX(1); }
.m__c { font-family: var(--serif); font-size: 22px; color: var(--gold-hi); }
.m__name { font-family: var(--serif); font-size: clamp(26px, 3vw, 46px); line-height: 1; transition: transform .5s var(--ease); }
.m__row:hover .m__name { transform: translateX(14px); font-style: italic; }
.m__med { font-size: 18px; opacity: .8; }
.m__plus { position: relative; width: 18px; height: 18px; }
.m__plus::before, .m__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
.m__plus::after { transform: rotate(90deg); }
.m.is-open .m__plus::after { transform: rotate(0); }
.m__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.m.is-open .m__more { grid-template-rows: 1fr; }
.m__more > div { overflow: hidden; display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.m__more p { margin: 0 0 22px; font-size: 19px; grid-column: 2; }
.m__more .mono { grid-column: 3; opacity: .7; line-height: 1.8; margin-bottom: 22px; }
.peek { position: fixed; left: 0; top: 0; z-index: 90; width: 240px; aspect-ratio: 4 / 5; pointer-events: none; opacity: 0; transform: translate3d(-999px, 0, 0); transition: opacity .3s; box-shadow: 0 0 0 8px var(--gold), 0 0 0 9px var(--gold-dk), 0 24px 50px rgba(0, 0, 0, .5); }
.peek span { position: absolute; inset: 0; background-size: cover; background-position: center; }
.peek.is-on { opacity: 1; }

/* ── V application ────────────────────────────────────── */
.apply { position: relative; max-width: 1080px; margin: 0 auto; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.field { display: grid; gap: 8px; }
.field--wide, .form .check, .err--check { grid-column: 1 / -1; }
.field label, .field .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; }
.opt { opacity: .6; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 20px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 10px 2px; border-radius: 0;
  transition: border-color .3s, background .3s;
}
.field textarea { resize: vertical; border: 1px solid var(--ink); padding: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: rgba(217, 174, 76, .12); border-color: var(--gold-dk); }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--red); }
.field--radio .seg { color: var(--ink); }
.field--radio .seg input:checked + span { background: var(--ink); color: var(--moon); }
.err { color: var(--red); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .3s; }
.is-bad .err, .err.is-on { max-height: 30px; opacity: 1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ink); }
.form__send { justify-self: start; }
.form.is-sending .form__send { pointer-events: none; opacity: .6; }
.sealed { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 50px 20px; animation: qIn .9s var(--ease) both; }
.sealed:focus { outline: none; }
.sealed p { max-width: 30em; font-size: 20px; margin: 0; }
.wax { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #c0503a, var(--red) 55%, #5d1a10); color: #f3d6bf; font-family: var(--serif); font-style: italic; font-size: 38px; box-shadow: 0 0 0 6px rgba(140, 42, 28, .25), 0 20px 40px rgba(93, 26, 16, .4); animation: seal 1s var(--ease) both .2s; }
.wax span { transform: rotate(-10deg); }
@keyframes seal { from { transform: scale(2.2) rotate(-40deg); opacity: 0; } 60% { transform: scale(.92); opacity: 1; } }

/* ── VI faq ───────────────────────────────────────────── */
.faq { display: grid; max-width: 1000px; }
.faq details { border-bottom: 1px solid rgba(33, 35, 54, .4); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 60px 1fr 20px; align-items: baseline; gap: 14px; padding: 22px 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary b { font-weight: 400; font-style: italic; color: var(--gold); }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px 74px; font-size: 20px; max-width: 40em; animation: qIn .6s var(--ease) both; }

/* ── footer ───────────────────────────────────────────── */
.foot { position: relative; background: var(--ink); color: var(--vellum); padding: 70px var(--gut) 110px; overflow: hidden; }
.foot__orn svg { width: 100%; height: 30px; fill: none; stroke: var(--gold-hi); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.foot.is-live .foot__orn svg path { stroke-dashoffset: 0; }
.foot__orn path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.foot.is-live .foot__orn path { stroke-dashoffset: 0; }
.foot__word { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25em; font-family: var(--serif); font-size: clamp(56px, 12.5vw, 230px); line-height: .9; letter-spacing: -.02em; margin: 40px 0 60px; }
.foot__word em { color: var(--moon); }
.foot__word span, .foot__word em { transform: translate3d(0, 40px, 0); opacity: 0; transition: transform 1.4s var(--ease), opacity 1s; }
.foot__word em { transition-delay: .12s; }
.foot.is-live .foot__word span, .foot.is-live .foot__word em { transform: none; opacity: 1; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 30px 0; border-block: 1px solid rgba(217, 174, 76, .4); }
.foot__cols .mono { color: var(--gold-hi); }
.foot__cols p { margin: 10px 0 0; font-size: 19px; line-height: 1.45; }
.foot__jp p { font-family: var(--jp); font-size: 15px; line-height: 1.9; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; opacity: .7; }
.foot__base a { text-decoration: none; }

/* ── cursor: a loaded brush ───────────────────────────── */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.cur { position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; }
.cur--dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 1px var(--ink); }
.cur--ring { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), opacity .3s; }
.cur--ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--gold); animation: spin 9s linear infinite; }
.cur--ring.is-on { width: 58px; height: 58px; }
.cur--ring.is-lg { width: 86px; height: 86px; }
.cur--ring.is-lg::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(6, 32, 78, .85); z-index: -1; }
.cur--ring.is-down { width: 28px; height: 28px; }
.cur--ring.is-out { opacity: 0; }
.cur__l { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--moon); }

/* ════════════════ 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; }
  .builder { grid-template-columns: 1fr; }
  .bill { position: relative; top: 0; }
  .z--r { max-width: 44vw; }
}
@media (max-width: 760px) {
  :root { --top: 64px; }
  body { font-size: 17px; }
  .chrome { height: 60px; gap: 10px; }
  .navPanel { top: 60px; }
  .chrome__cta { display: none; }
  .mark__word small { display: none; }
  .mark__word b { font-size: 18px; }
  .chrome .gsw__txt { display: none; }
  .hud__side, .hud__orn, .hud__tc { display: none; }
  .dock { left: 12px; right: 12px; transform: none; justify-content: space-between; bottom: 12px; padding: 6px 6px 6px 14px; gap: 10px; }
  .dock__ch em { display: none; }
  .dock .gsw--lg .gsw__txt { font-size: 10px; letter-spacing: .08em; }
  .lay { padding: calc(var(--top) + 10px) 16px 96px; }
  .z--tl, .z--tr, .z--bl, .z--br, .z--r { left: 16px; right: 16px; max-width: none; }
  .z--tl { top: calc(var(--top) + 14px); }
  .z--tr { top: calc(var(--top) + 14px); }
  .z--bl, .z--br { bottom: 84px; }
  .z--br { align-items: stretch; }
  .z--r { top: auto; bottom: 84px; transform: none; }
  [data-mode="scrub"] .z--r { translate: 0 0; }
  .cartel, .cartel--hero { padding: 18px 18px; }
  .mega { font-size: 50px; }
  .mega--end { font-size: 42px; }
  .h2 { font-size: 30px; }
  .h2--xl { font-size: 46px; }
  .lede { font-size: 17px; }
  .btn--lg { height: 46px; padding: 0 16px; }
  .beat--hero .z--tr { display: none; }
  .cue { display: none; }
  .callout { display: none; }
  .vtitle { left: 16px; right: 16px; bottom: auto; top: calc(var(--top) + 12px); writing-mode: horizontal-tb; transform: none; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .vtitle__a, .vtitle__b { font-size: 40px; }
  .vtitle__jp { transform: none; margin: 0; font-size: 12px; }
  .numerals { margin-top: 12px; }
  .numerals li { padding: 8px 0; }
  .numerals em { display: none; }
  .axis { font-size: 58px; top: calc(var(--top) + 30px); }
  .push__meta { font-size: 9px; gap: 8px; bottom: 96px; }
  .push__rule { width: 16px; }
  .stats b { font-size: 34px; }
  .stats span { font-size: 15px; }
  .beat--wheat .stats li:nth-child(3) { display: none; }
  .turn { font-size: 54px; }
  .jpbig { right: 10px; font-size: 140px; }
  .sky__note { white-space: normal; text-align: center; width: calc(100% - 32px); bottom: 96px; }
  .steps p { font-size: 15px; }
  [data-mode="scrub"] .steps li:not(.is-on) { display: none; }
  .quote p { font-size: 36px; }
  .stats--row { gap: 10px; }
  .stats--row b { font-size: 30px; }
  .polas { right: 16px; left: 16px; top: calc(var(--top) + 20px); justify-content: center; }
  .pola { width: 130px; }
  .ticket { display: none; }
  .beat--end .z--tr { display: none; }
  .sec { padding: 70px 16px; }
  .sec__head { gap: 16px; margin-bottom: 34px; }
  .sec__num { font-size: 72px; }
  .filters__count { margin-left: 0; }
  .q { grid-template-columns: 1fr; gap: 10px; }
  .q__n { font-size: 70px; }
  .q__opts { grid-template-columns: 1fr; }
  .card-res { grid-template-columns: 1fr; }
  .card-res__img { min-height: 240px; }
  .card-res__b { padding: 10px 20px 26px; }
  .m__row { grid-template-columns: 64px 1fr 24px; gap: 12px; }
  .m__med, .m__dates { display: none; }
  .m__more > div { grid-template-columns: 1fr; }
  .m__more p, .m__more .mono { grid-column: 1; }
  .peek { display: none; }
  .form { grid-template-columns: 1fr; }
  .seg span { font-size: 16px; padding: 10px 4px; }
  .faq summary { grid-template-columns: 40px 1fr 20px; }
  .faq details p { margin-left: 54px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot { padding-bottom: 100px; }
}

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

/* ── pass 2: calibration fixes from real-frame screenshots ── */
.chrome::before { content: ""; position: absolute; inset: 0 0 -34px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 21, 61, .72), rgba(5, 21, 61, 0)); transition: opacity .5s; }
:root.is-light .chrome::before { background: linear-gradient(180deg, rgba(190, 172, 130, .95) 0%, rgba(190, 172, 130, .75) 55%, rgba(190, 172, 130, 0)); }
.chrome.is-solid::before, [data-mode="video"] .chrome::before { opacity: 0; }
.beat--hero .z--bl, .beat--end .z--bl { left: calc(var(--gut) + 28px); }
.beat--hero .cartel--hero, .beat--end .cartel--hero { max-width: min(29.5vw, 440px); padding: 24px 24px; }
.beat--hero .mega { font-size: clamp(46px, 5.1vw, 84px); }
.beat--end .mega--end { font-size: clamp(40px, 4.2vw, 70px); }
.beat--hero .lede, .beat--end .lede { font-size: 18px; }
.beat--hero .btn--lg, .beat--end .btn--lg { height: 46px; padding: 0 16px; }
.cue { flex-direction: row; bottom: 110px; padding: 7px 12px; }
.cue i { width: 34px; height: 1px; transform-origin: left; animation: dripx 1.8s var(--swing) infinite; }
@keyframes dripx { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.beat--intro .z--r { right: calc(var(--gut) + 26px); max-width: min(25.5vw, 380px); }
.beat--intro .cartel { padding: 22px 22px; }
.beat--intro .h2 { font-size: clamp(26px, 2.4vw, 40px); }
.beat--intro .numerals em { font-size: 15px; }
.stats { grid-template-columns: auto 1fr; }
.stats li { grid-column: 1 / -1; grid-template-columns: subgrid; }
.stats--row { grid-template-columns: none; }
.stats--row li { grid-column: auto; grid-template-columns: 1fr; }
.stats.cartel { padding: 22px 24px; }
.spiral { opacity: .38; }
.jpbig { right: calc(var(--gut) + 20px); color: rgba(33, 35, 54, .1); }
.beat--wall .z--bl { left: calc(var(--gut) + 28px); max-width: min(30vw, 440px); }
.beat--wall .cartel { padding: 22px 24px; }
.beat--wall .h2 { font-size: clamp(28px, 2.9vw, 46px); }
.beat--wall .polas { right: calc(var(--gut) + 20px); top: calc(var(--top) + 40px); flex-direction: column; gap: 0; }
.beat--wall .pola { width: clamp(140px, 12vw, 180px); }
.beat--wall .pola + .pola { margin-top: -60px; margin-left: -70px; }
@media (max-width: 760px) {
  .beat--hero .z--bl, .beat--end .z--bl, .beat--wall .z--bl { left: 16px; max-width: none; }
  .beat--hero .cartel--hero, .beat--end .cartel--hero { max-width: none; }
  .beat--hero .mega { font-size: 50px; }
  .beat--intro .z--r { right: 16px; max-width: none; }
  .beat--wall .polas { flex-direction: row; left: 16px; right: 16px; justify-content: center; }
  .beat--wall .pola + .pola { margin: 20px 0 0 -20px; }
  .beat--wall .pola { width: 120px; }
}
.gsw__k { white-space: nowrap; }
@media (max-width: 760px) {
  .beat--end .z--br { display: none; }
  .beat--night .z--bl { top: calc(var(--top) + 14px); bottom: auto; }
  .dock .gsw--lg .gsw__txt { font-size: 9px; letter-spacing: .06em; }
}
.course[hidden], [hidden] { display: none !important; }
.sec__num { padding-right: .18em; min-width: 1.2em; }
