/* EDICLOCK — TIME IN MOTION · promotional microsite
 * Art direction: the page keeps time. Night (film) and paper (score) alternate like the clock face's
 * odd / even seconds; Anton numerals and Space Grotesk labels come from the app; Shippori Mincho B1 carries
 * the Japanese voice; sand gold is taken from the app icon. Fonts: SIL OFL 1.1 (see ../fonts/LICENSE-OFL.txt).
 */

@font-face { font-family: 'Anton'; src: url('../fonts/anton-latin-v1.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-v1.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'EC Mincho'; src: url('../fonts/ec-mincho-subset-v1.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --night: #0b0c0a;
  --ink: #191916;
  --paper: #f3f0e5;
  --chalk: #e8e7df;
  --sand: #d9b77c;
  --sand-soft: rgba(217, 183, 124, .32);
  --red: #d33c27;
  --lime: #dfff00;
  --cobalt: #234ce6;
  --coral: #ef654f;
  --navy: #202b47;
  --f-display: 'Anton', Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --f-label: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mincho: 'EC Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, 'Noto Serif JP', 'Noto Serif CJK JP', serif;
  --f-sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', 'Yu Gothic', YuGothic, Meiryo, system-ui, sans-serif;
  --gutter: clamp(20px, 4.4vw, 72px);
  --max: 1320px;
  --header: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hair: 1px solid color-mix(in srgb, currentColor 26%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lime); color: #172016; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--night); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.mincho { font-family: var(--f-mincho); font-weight: 600; font-feature-settings: 'palt'; letter-spacing: .04em; }
.display { font-size: clamp(36px, 6.2vw, 100px); line-height: 1.16; letter-spacing: .03em; }
.lead { font-size: clamp(15px, 1.25vw, 18px); line-height: 2.05; max-width: 31em; }
.footnote { font-size: 12.5px; line-height: 1.9; opacity: .66; }
.kicker { display: flex; flex-wrap: wrap; gap: .4em 1.4em; font-family: var(--f-label); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.kicker span + span { font-family: var(--f-sans); letter-spacing: .24em; font-weight: 400; }
.link-arrow { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; font-weight: 600; text-decoration: none; letter-spacing: .06em; border-bottom: 1px solid currentColor; }
.link-arrow span { transition: transform .5s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }
.link-arrow.quiet { font-weight: 400; border-bottom-color: color-mix(in srgb, currentColor 40%, transparent); }

/* ─────────────────────────────── masthead ── */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px;
  height: var(--header); padding: 0 var(--gutter);
  color: var(--paper);
  background: linear-gradient(180deg, rgba(5, 6, 5, .62), rgba(5, 6, 5, 0));
  transition: background-color .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.masthead.is-solid { background: rgba(11, 12, 10, .86); border-bottom-color: rgba(243, 240, 229, .09); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.masthead-mark { display: flex; align-items: baseline; gap: 14px; text-decoration: none; min-height: 44px; align-items: center; }
.masthead-word { font-family: var(--f-display); font-size: 24px; letter-spacing: .03em; line-height: 1; }
.masthead-tag { font-family: var(--f-label); font-size: 10.5px; letter-spacing: .24em; opacity: .7; }
.masthead-clock { justify-self: center; display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.masthead-time { font-family: var(--f-display); font-size: 21px; letter-spacing: .06em; min-width: 6.2em; text-align: right; }
.beats { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.beats i { width: 7px; height: 4px; background: currentColor; opacity: .28; transition: height .25s var(--ease), opacity .25s; }
.beats b { width: 6px; }
.beats i.on { height: 14px; opacity: 1; }
.beats i.on.is-body { background: var(--sand); }
.masthead-nav { display: flex; gap: 22px; font-size: 13px; letter-spacing: .14em; }
.masthead-nav a { text-decoration: none; opacity: .78; padding: 10px 0; transition: opacity .3s; }
.masthead-nav a:hover { opacity: 1; }
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(243, 240, 229, .32); background: transparent; cursor: pointer; font-size: 12px; letter-spacing: .1em; }
.motion-toggle:hover { border-color: var(--paper); }
.motion-icon { position: relative; width: 10px; height: 12px; }
.motion-icon::before, .motion-icon::after { content: ''; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; }
.motion-icon::before { left: 0; } .motion-icon::after { right: 0; }
.motion-toggle[aria-pressed='true'] .motion-icon::before { left: 1px; width: 0; height: 0; background: none; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.motion-toggle[aria-pressed='true'] .motion-icon::after { display: none; }

/* ─────────────────────────────── hero ── */
.hero { position: relative; isolation: isolate; height: 100vh; height: 100svh; min-height: 600px; max-height: 1180px; overflow: hidden; background: #050605; color: var(--paper); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-backdrop { display: none; }
.hero-frame { position: absolute; inset: 0; overflow: hidden; background: #050605; }
.hero-poster, .hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-film { opacity: 0; transition: opacity 1.2s ease; }
.hero-film.is-ready { opacity: 1; }
.hero-grain { position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 5, .62) 0%, rgba(5, 6, 5, .18) 38%, rgba(5, 6, 5, 0) 58%, rgba(5, 6, 5, .1) 78%, rgba(5, 6, 5, .58) 100%),
    linear-gradient(0deg, rgba(5, 6, 5, .86) 0%, rgba(5, 6, 5, .32) 30%, rgba(5, 6, 5, 0) 52%),
    linear-gradient(180deg, rgba(5, 6, 5, .45) 0%, rgba(5, 6, 5, 0) 18%); }

.hero-copy { position: absolute; inset: calc(var(--header) + 3vh) var(--gutter) 84px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero .kicker { grid-column: 1; grid-row: 1; opacity: .9; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.hero-title {
  grid-column: 2; grid-row: 1 / span 2; justify-self: end;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: clamp(40px, 5.5vw, 92px); line-height: 1.22; letter-spacing: .1em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .55);
}
.hero-line { display: block; }
.hero-line + .hero-line { margin-right: .28em; }
.hero-foot { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: auto minmax(0, 30em); align-items: end; gap: 0 clamp(24px, 3.4vw, 56px); }
.hero-wordmark { font-family: var(--f-display); font-size: clamp(64px, 11.2vw, 196px); line-height: .8; letter-spacing: .005em; margin-bottom: -.04em; text-shadow: 0 2px 40px rgba(0, 0, 0, .35); }
.hero-lead { padding-bottom: 6px; text-shadow: 0 1px 18px rgba(0, 0, 0, .6); }
.hero-lead > p:first-child { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.95; letter-spacing: .06em; }
.hero-sub { margin-top: .5em; font-size: 13px; opacity: .78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 14px; }

.hud { font-family: var(--f-label); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.hero-hud { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(243, 240, 229, .22); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hud-cast { justify-self: end; }
.hud-edition { opacity: .6; }
.hud-dots { display: inline-flex; gap: 9px; }
.hud-dots i { width: 6px; height: 6px; background: rgba(243, 240, 229, .4); transition: background .2s; }
.hud-dots i.on { background: var(--paper); }
.hud-toggle { position: relative; width: 44px; height: 44px; margin: -12px 0; border: 1px solid rgba(243, 240, 229, .35); background: rgba(5, 6, 5, .25); cursor: pointer; }
.hud-toggle:hover { border-color: var(--paper); }
.hud-toggle-icon { position: absolute; left: 50%; top: 50%; width: 10px; height: 12px; transform: translate(-50%, -50%); border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hud-toggle[aria-pressed='true'] .hud-toggle-icon { width: 0; height: 0; border-right: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; transform: translate(-35%, -50%); }

/* ─────────────────────────────── sheets ── */
.sheet { position: relative; padding: clamp(84px, 11vw, 168px) var(--gutter); }
.sheet > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.paper { background: var(--paper); color: var(--ink); }
.night { background: var(--night); color: var(--paper); }
.sheet-rule { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 18px; padding-top: 14px; margin-bottom: clamp(40px, 6vw, 88px); border-top: var(--hair); font-family: var(--f-label); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; }
.sheet-rule span:last-child { justify-self: end; font-family: var(--f-sans); font-weight: 400; letter-spacing: .24em; opacity: .7; }
.rule-no { font-family: var(--f-display); font-size: 15px; letter-spacing: .08em; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ─────────────────────────────── 01 score ── */
.score-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px clamp(32px, 6vw, 110px); align-items: end; margin-bottom: clamp(48px, 7vw, 104px); }
.score-figure { margin: 0 auto; }
.score-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 18px repeat(5, minmax(0, 1fr)); gap: 6px; }
.score-strip .cell:nth-child(6) { grid-column: 7; }
.cell { position: relative; aspect-ratio: 16 / 9.4; background: #d9d6cb; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
.cell canvas, .cell img { width: 100%; height: 100%; object-fit: cover; }
.cell-n { position: absolute; left: 0; top: calc(100% + 8px); font-family: var(--f-display); font-size: 15px; letter-spacing: .06em; opacity: .4; transition: opacity .2s, color .2s; }
.cell.is-now { outline-color: var(--red); }
.cell.is-now .cell-n { opacity: 1; color: var(--red); }
.cell::after { content: ''; position: absolute; left: 0; bottom: -3px; height: 3px; width: 0; background: var(--red); }
.cell.is-now::after { width: calc(var(--frac, 0) * 100%); }
.score-scale { display: grid; grid-template-columns: 1fr 18px 1fr; gap: 6px; margin-top: 46px; font-size: 13px; letter-spacing: .12em; }
.score-scale span { padding-top: 10px; border-top: 1px solid currentColor; }
.score-scale .scale-body { grid-column: 3; }
.score-scale b { font-family: var(--f-label); font-weight: 600; margin-right: .8em; letter-spacing: .16em; }
.score-figure figcaption { margin-top: 26px; max-width: 46em; font-size: 13px; line-height: 1.9; opacity: .72; }
.sums { display: grid; gap: clamp(40px, 6vw, 80px); margin-top: clamp(80px, 11vw, 160px); }
.sum { display: grid; gap: 10px; }
.sum-eq { font-family: var(--f-display); font-size: clamp(56px, 11.5vw, 188px); line-height: .9; letter-spacing: .005em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-eq em { font-style: normal; color: var(--red); margin: 0 .12em; font-size: .62em; vertical-align: .18em; }
.sum + .sum .sum-eq { text-align: right; }
.sum + .sum .sum-text { justify-self: end; }
.sum-text { font-size: clamp(14px, 1.2vw, 17px); letter-spacing: .08em; padding-top: 12px; border-top: 1px solid currentColor; min-width: min(100%, 24em); }

/* ─────────────────────────────── 02 exhibit ── */
.exhibit-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px clamp(32px, 6vw, 110px); align-items: end; margin-bottom: clamp(44px, 6vw, 84px); }
.zone { margin-top: 18px; font-family: var(--f-label); font-size: 12px; letter-spacing: .14em; color: var(--sand); }
.exhibit-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); grid-template-areas: 'stage panel' 'caption panel'; gap: 22px clamp(24px, 3vw, 48px); align-items: start; }
.exhibit-stage { grid-area: stage; position: relative; justify-self: center; width: 100%; aspect-ratio: 16 / 9; background: #050605; outline: 1px solid rgba(243, 240, 229, .16); outline-offset: 10px; transition: width .6s var(--ease); }
.exhibit-stage[data-orientation='portrait'] { width: min(100%, calc(min(78vh, 760px) * 9 / 16)); aspect-ratio: 9 / 16; }
.exhibit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.exhibit-media { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.exhibit-media video { width: 1px; height: 1px; }
.exhibit-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 14px; background: #050605; }
.js .exhibit-fallback { display: none; }
.exhibit-panel { grid-area: panel; display: grid; gap: 22px; }
.control-group { display: grid; gap: 9px; }
.control-label { font-size: 12px; letter-spacing: .12em; opacity: .75; }
.control-label b { font-family: var(--f-label); font-weight: 600; letter-spacing: .18em; margin-right: .7em; }
.segmented { display: flex; flex-wrap: wrap; }
.segmented button { flex: 1 1 auto; min-height: 44px; padding: 0 12px; border: 1px solid rgba(243, 240, 229, .26); margin: 0 -1px -1px 0; background: transparent; cursor: pointer; font-family: var(--f-label); font-size: 12px; font-weight: 500; letter-spacing: .12em; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.segmented button span { font-family: var(--f-sans); letter-spacing: 0; margin-left: .3em; opacity: .8; }
.segmented button:hover { border-color: rgba(243, 240, 229, .7); position: relative; }
.segmented button[aria-pressed='true'] { background: var(--paper); color: var(--night); border-color: var(--paper); position: relative; }
.control-legend { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(243, 240, 229, .16); font-size: 12.5px; line-height: 1.7; opacity: .78; }
.control-legend div { display: grid; grid-template-columns: 4.6em 1fr; gap: 8px; }
.control-legend dt { font-family: var(--f-label); font-weight: 600; letter-spacing: .14em; }
.exhibit-caption { grid-area: caption; min-height: 5.4em; padding-top: 16px; border-top: 1px solid rgba(243, 240, 229, .18); }
.caption-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--f-label); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; }
.caption-now { color: var(--sand); font-weight: 600; }
.caption-cast, .caption-daypart { opacity: .62; }
.caption-title { margin-top: 8px; font-size: clamp(20px, 2vw, 28px); line-height: 1.5; }
.exhibit .footnote { margin-top: 36px; }

/* ─────────────────────────────── 03 day ── */
.day { position: relative; --day-bg: var(--night); --day-fg: var(--paper); --day-accent: var(--sand); background: var(--day-bg); color: var(--day-fg); transition: background-color 1.4s ease, color 1.4s ease; }
.day-intro { padding-bottom: clamp(24px, 4vw, 56px); }
.day-intro .display { margin-bottom: clamp(26px, 3vw, 40px); }
.day-now { margin-top: 26px; font-size: 14px; letter-spacing: .08em; }
.day-now b { font-family: var(--f-label); font-weight: 600; letter-spacing: .16em; padding: 3px 8px; background: var(--day-fg); color: var(--day-bg); }
.chapter { position: relative; padding: clamp(56px, 8vw, 120px) var(--gutter); }
.chapter > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.chapter-head { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 6px clamp(18px, 3vw, 44px); margin-bottom: clamp(26px, 4vw, 56px); padding-bottom: 16px; border-bottom: var(--hair); }
.chapter-hour { grid-row: 1 / span 2; font-family: var(--f-display); font-size: clamp(104px, 17vw, 260px); line-height: .78; letter-spacing: -.01em; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px currentColor; margin-bottom: -.02em; }
.chapter-name { font-size: clamp(22px, 2.6vw, 36px); font-weight: 400; letter-spacing: .1em; line-height: 1.2; }
.chapter-name span { font-family: var(--f-display); font-weight: 400; letter-spacing: .05em; margin-right: .3em; }
.chapter-range { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: var(--f-label); font-size: 12px; letter-spacing: .14em; opacity: .74; }
.chapter-range span + span { font-family: var(--f-sans); letter-spacing: .06em; }
.chapter-badge { grid-column: 3; grid-row: 1; align-self: start; padding: 6px 10px; background: var(--lime); color: #172016; font-family: var(--f-label); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.plates { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 36px); align-items: start; }
.plate { margin: 0; }
.plate-a { grid-column: 1 / span 7; }
.plate-b { grid-column: 9 / span 4; margin-top: clamp(80px, 12vw, 220px); }
.chapter:nth-of-type(even) .plate-a { grid-column: 6 / span 7; grid-row: 1; }
.chapter:nth-of-type(even) .plate-b { grid-column: 1 / span 4; grid-row: 1; }
.plate-media { position: relative; aspect-ratio: 864 / 496; overflow: hidden; background: rgba(0, 0, 0, .25); }
.plate-media img, .plate-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate-media video { opacity: 0; transition: opacity .6s ease; }
.plate.is-playing .plate-media video.is-ready { opacity: 1; }
.plate-hud { position: absolute; inset: 0; pointer-events: none; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; padding: clamp(10px, 1.4vw, 18px); font-family: var(--f-label); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; color: var(--paper); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); opacity: 0; transition: opacity .5s ease; }
.plate-hud span:nth-child(2) { justify-self: end; }
.plate-hud span:nth-child(3) { grid-row: 3; }
.plate.is-playing .plate-hud, .plate-media:hover .plate-hud, .plate-media:focus-within .plate-hud { opacity: 1; }
.plate-play { position: absolute; right: clamp(10px, 1.4vw, 18px); bottom: clamp(10px, 1.4vw, 18px); width: 44px; height: 44px; border: 1px solid rgba(243, 240, 229, .6); background: rgba(5, 6, 5, .35); color: var(--paper); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .3s, border-color .3s; }
.plate-play:hover { background: rgba(5, 6, 5, .6); border-color: var(--paper); }
.plate-play::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.plate-play[aria-pressed='true']::before { width: 10px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; transform: translate(-50%, -50%); }
.plate figcaption { padding-top: 14px; }
.plate-title { font-size: clamp(18px, 1.75vw, 25px); line-height: 1.55; }
.plate-meta { margin-top: 6px; font-family: var(--f-label); font-size: 11px; letter-spacing: .16em; opacity: .66; }

/* per-chapter light — progressive: without JS each chapter carries its own colour */
.chapter[data-chapter='MIDNIGHT'] { --c-bg: #0b0c0a; --c-fg: #f3f0e5; }
.chapter[data-chapter='DAWN'] { --c-bg: #e7dbd6; --c-fg: #232520; }
.chapter[data-chapter='MORNING'] { --c-bg: #edf0d6; --c-fg: #172016; }
.chapter[data-chapter='DAYLIGHT'] { --c-bg: #f3f0e5; --c-fg: #191916; }
.chapter[data-chapter='DUSK'] { --c-bg: #ef654f; --c-fg: #1a2340; }
.chapter[data-chapter='NIGHT'] { --c-bg: #16224f; --c-fg: #f0f0df; }
.chapter { background: var(--c-bg); color: var(--c-fg); }
.day.is-live .chapter { background: transparent; color: inherit; }
.day.is-live .day-intro { background: transparent; }

/* ─────────────────────────────── 04 catalogue ── */
.catalogue { overflow: hidden; }
.catalogue-intro { position: relative; margin-bottom: clamp(44px, 6vw, 84px); }
.catalogue-intro .display { position: relative; margin-bottom: 28px; }
.catalogue-intro .lead { position: relative; }
.catalogue-number { position: absolute; right: -.04em; top: -.2em; font-family: var(--f-display); font-size: clamp(160px, 30vw, 460px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(217, 183, 124, .45); pointer-events: none; user-select: none; }
.mosaic { margin: 0 auto; }
.mosaic-board { position: relative; background: #050605; }
.mosaic-board img { width: 100%; height: auto; }
.mosaic-board::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(11, 12, 10, .9) 1px, transparent 1px), linear-gradient(180deg, rgba(11, 12, 10, .9) 1px, transparent 1px);
  background-size: calc(100% / 16) calc(100% / 16); }
.mosaic-playhead { position: absolute; z-index: 2; left: calc(var(--col, 0) * 100% / 16); top: calc(var(--row, 0) * 100% / 16); width: calc(100% / 16); height: calc(100% / 16); outline: 2px solid var(--lime); outline-offset: 0; box-shadow: 0 0 0 4px rgba(11, 12, 10, .65), 0 0 28px 6px rgba(223, 255, 0, .55); transition: left .9s var(--ease), top .9s var(--ease); }
.mosaic-playhead span { position: absolute; left: 0; bottom: calc(100% + 6px); padding: 2px 6px; background: var(--lime); color: #172016; font-family: var(--f-label); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.mosaic-playhead.is-low span { bottom: auto; top: calc(100% + 6px); }
.mosaic-playhead { display: none; }
.js .mosaic-playhead { display: block; }
.mosaic figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 40px; margin-top: 22px; font-size: 14px; }
.mosaic figcaption .footnote { align-self: end; }

/* ─────────────────────────────── 05 display ── */
.display-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px clamp(32px, 6vw, 110px); align-items: end; margin-bottom: clamp(48px, 7vw, 100px); }
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 48px); }
.mode { display: grid; align-content: start; gap: 6px; }
.phone { position: relative; width: min(100%, 230px); aspect-ratio: 9 / 19.5; margin: 0 auto 18px; border-radius: 30px; padding: 7px; background: #111210; box-shadow: 0 30px 60px -30px rgba(25, 25, 22, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 24px; background: #0b0c0a; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen.is-fill .fg { object-fit: cover; object-position: 50% 50%; }
.screen.is-fit .fg { object-fit: contain; }
.screen.is-cinema .bg { object-fit: cover; filter: blur(16px) saturate(1.1) brightness(.5); transform: scale(1.18); }
.screen.is-cinema .fg { object-fit: contain; }
.mode-name { font-family: var(--f-display); font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: .03em; }
.mode-text { font-size: 14px; line-height: 1.8; }
.mode-note { font-size: 12px; line-height: 1.7; opacity: .66; }
.display-modes .footnote { margin-top: 40px; }

/* ─────────────────────────────── 06 quiet ── */
.quiet-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px clamp(32px, 6vw, 110px); align-items: start; }
.quiet-intro .lead { margin-top: 28px; }
.nots { display: grid; }
.nots li { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 10px 0 12px; border-bottom: 1px solid rgba(243, 240, 229, .14); }
.not-en { position: relative; font-family: var(--f-display); font-size: clamp(36px, 5.6vw, 82px); line-height: 1; letter-spacing: .02em; color: rgba(243, 240, 229, .92); }
.not-en::after { content: ''; position: absolute; left: -2%; right: -2%; top: 52%; height: max(2px, .055em); background: var(--red); transform-origin: left center; transform: scaleX(1); transition: transform 1s var(--ease) .25s; }
.js .nots li[data-reveal]:not(.is-revealed) .not-en::after { transform: scaleX(0); }
.not-ja { font-size: 13px; letter-spacing: .1em; opacity: .74; white-space: nowrap; }
.switches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 64px); margin-top: clamp(64px, 9vw, 130px); }
.switches li { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding-top: 18px; border-top: 1px solid rgba(243, 240, 229, .24); }
.switch { position: relative; width: 38px; height: 20px; border: 1px solid rgba(243, 240, 229, .7); }
.switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; background: var(--sand); }
.switch-en { font-family: var(--f-label); font-size: 13px; font-weight: 600; letter-spacing: .18em; }
.switch-ja { grid-column: 1 / -1; font-size: 14px; line-height: 1.8; opacity: .82; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; margin-top: clamp(64px, 9vw, 130px); padding-top: 22px; border-top: 1px solid rgba(243, 240, 229, .24); }
.price-en { font-family: var(--f-display); font-size: clamp(72px, 13vw, 210px); line-height: .82; color: var(--sand); }
.price-ja { font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .1em; }

/* ─────────────────────────────── 07 get ── */
.sand { background: radial-gradient(ellipse 60% 70% at 22% 40%, rgba(217, 183, 124, .16), transparent 70%), #100f0b; color: var(--paper); }
.get-grid { display: grid; grid-template-columns: minmax(180px, 320px) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 110px); align-items: center; }
.get-icon { width: 100%; height: auto; border-radius: 22.5%; box-shadow: 0 40px 120px -30px rgba(217, 183, 124, .5), 0 0 0 1px rgba(217, 183, 124, .2); }
.get-sub { margin-top: 22px; font-size: 15px; letter-spacing: .1em; }
.get-sub span { display: block; margin-top: 4px; font-family: var(--f-label); font-size: 11.5px; letter-spacing: .22em; opacity: .66; }
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 34px; max-width: 640px; }
.store { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 20px; border: 1px solid var(--sand-soft); text-decoration: none; }
.store-name { font-family: var(--f-label); font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.store-state { font-size: 13px; letter-spacing: .12em; color: var(--sand); }
.store[data-state='in_review'], .store[data-state='unconfirmed'], .store[data-state='coming'] { color: rgba(243, 240, 229, .86); border-style: dashed; cursor: default; }
a.store[data-state='live'] { background: var(--sand); border-color: var(--sand); color: #14110b; transition: background .3s, transform .4s var(--ease); }
a.store[data-state='live'] .store-state { color: #14110b; }
a.store[data-state='live']:hover { background: #ecd2a2; transform: translateY(-2px); }
.get-platforms { margin-top: 18px; font-size: 13.5px; opacity: .78; }
.get-links { display: flex; flex-wrap: wrap; gap: 4px 30px; margin-top: 24px; font-size: 14px; }

/* ─────────────────────────────── 08 finale ── */
.finale { position: relative; isolation: isolate; min-height: min(92vh, 860px); display: grid; align-items: end; overflow: hidden; color: var(--paper); background: #050605; }
.finale-media { position: absolute; inset: 0; z-index: -1; }
.finale-media img, .finale-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.finale-media video { opacity: 0; transition: opacity 1s ease; }
.finale-media video.is-ready { opacity: 1; }
.finale-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 6, 5, .94) 0%, rgba(5, 6, 5, .5) 34%, rgba(5, 6, 5, 0) 62%), linear-gradient(180deg, rgba(11, 12, 10, 1) 0%, rgba(11, 12, 10, 0) 16%); }
.finale-copy { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.finale-copy h2 { margin: 14px 0 22px; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.3; }

/* ─────────────────────────────── colophon ── */
.colophon { padding: clamp(56px, 7vw, 96px) var(--gutter) 40px; background: var(--night); color: var(--paper); border-top: 1px solid rgba(243, 240, 229, .1); }
.colophon-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px clamp(32px, 6vw, 110px); }
.colophon-mark { display: grid; gap: 6px; }
.colophon-mark .masthead-word { font-size: 40px; }
.colophon-mark span:last-child { font-family: var(--f-label); font-size: 11px; letter-spacing: .22em; opacity: .66; }
.colophon-notes { display: grid; gap: 10px; font-size: 13px; line-height: 1.9; opacity: .78; }
.colophon-links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 13px; }
.colophon-links a { display: inline-block; padding: 10px 0; text-decoration: none; border-bottom: 1px solid rgba(243, 240, 229, .3); }
.colophon-links a:hover { border-color: var(--paper); }
.colophon-copy { align-self: end; justify-self: end; font-family: var(--f-label); font-size: 11px; letter-spacing: .18em; opacity: .6; }

/* ─────────────────────────────── responsive ── */
@media (max-width: 1180px) {
  .score-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 8px; }
  .score-strip .cell:nth-child(6) { grid-column: auto; }
  .score-scale { display: none; }
  .cell.is-time:first-child::before, .cell.is-body:nth-child(6)::before { position: absolute; left: 0; bottom: calc(100% + 8px); font-family: var(--f-label); font-size: 11px; font-weight: 600; letter-spacing: .16em; }
  .cell.is-time:first-child::before { content: 'TIME / 05  時刻'; }
  .cell.is-body:nth-child(6)::before { content: 'BODY / 05  世界'; }
  .score-strip { margin-top: 26px; }
  .masthead-nav { display: none; }
}

@media (max-width: 1023px) {
  .exhibit-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'caption' 'panel'; }
  .exhibit-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
  .control-legend { grid-column: 1 / -1; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .switches { grid-template-columns: minmax(0, 1fr); }
  .quiet-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --header: 56px; }
  .masthead { grid-template-columns: auto 1fr auto; gap: 10px; }
  .masthead-tag { display: none; }
  .masthead-word { font-size: 21px; }
  .masthead-time { font-size: 18px; min-width: 0; }
  .masthead-clock { gap: 10px; }
  .beats { display: none; }
  .motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .motion-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .score-intro, .exhibit-intro, .display-intro { grid-template-columns: minmax(0, 1fr); }
  .score-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 26px 10px; }
  .exhibit-panel { grid-template-columns: minmax(0, 1fr); }
  .sum + .sum .sum-eq { text-align: left; }
  .sum + .sum .sum-text { justify-self: start; }
  .plates { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .plate-a, .plate-b, .chapter:nth-of-type(even) .plate-a, .chapter:nth-of-type(even) .plate-b { grid-column: 1; grid-row: auto; margin-top: 0; }
  .plate-b { width: 82%; justify-self: end; }
  .chapter:nth-of-type(even) .plate-b { justify-self: start; }
  .chapter-head { grid-template-columns: auto 1fr; }
  .chapter-badge { grid-column: 2; grid-row: 1; justify-self: end; }
  .chapter-range { grid-column: 1 / -1; }
  .chapter-hour { grid-row: 1; }
  .mosaic figcaption { grid-template-columns: minmax(0, 1fr); }
  .get-grid { grid-template-columns: minmax(0, 1fr); }
  .get-icon { width: min(56vw, 240px); }
  .stores { grid-template-columns: minmax(0, 1fr); }
  .colophon-grid { grid-template-columns: minmax(0, 1fr); }
  .colophon-copy { justify-self: start; }
  .nots li { flex-wrap: wrap; }
}

/* Portrait screens: the hero becomes the app's CINEMA mode — the whole frame over a softened enlargement. */
@media (max-aspect-ratio: 1 / 1) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; align-content: center; height: auto; min-height: 100svh; max-height: none; padding: calc(var(--header) + 28px) 0 30px; }
  .hero-media, .hero-copy { display: contents; }
  .hero-backdrop { display: block; position: absolute; z-index: -2; inset: -8%; width: 116%; height: 116%; max-width: none; filter: blur(30px) saturate(1.2) brightness(.48); transform: translateZ(0); }
  .hero-frame { position: relative; z-index: -1; grid-row: 3; inset: auto; width: 100%; aspect-ratio: 16 / 9; margin: 22px 0 0; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
  .hero-frame::after { background: none; }
  .hero-poster, .hero-film { object-position: 50% 50%; }
  .hero .kicker { grid-row: 1; padding: 0 var(--gutter); margin-bottom: 18px; }
  .hero-title { grid-row: 2; grid-column: 1; justify-self: start; writing-mode: horizontal-tb; padding: 0 var(--gutter); font-size: clamp(34px, 9.6vw, 76px); line-height: 1.3; letter-spacing: .06em; }
  .hero-line + .hero-line { margin-right: 0; }
  .hero-hud { position: relative; grid-row: 4; left: auto; right: auto; bottom: auto; margin: 0 var(--gutter); padding-top: 12px; border-top: 0; grid-template-columns: 1fr auto auto; }
  .hero-hud .hud-dots { display: none; }
  .hero-foot { grid-row: 5; grid-template-columns: minmax(0, 1fr); padding: 26px var(--gutter) 0; gap: 18px; }
  .hero-wordmark { font-size: clamp(64px, 19vw, 150px); }
}

@media (max-aspect-ratio: 1 / 1) and (min-width: 600px) {
  .hero-frame { width: calc(100% - var(--gutter) * 2); margin-left: var(--gutter); margin-right: var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.motion-off [data-reveal] { opacity: 1 !important; transform: none !important; }
.motion-off .mosaic-playhead { transition: none; }

@media print {
  .masthead, .hero-media, .exhibit, .finale-media video { display: none; }
  body, .night, .day, .sand { background: #fff; color: #000; }
}
