/* ───────────────────────────────────────────────────────────
   AESTHETICS HARMONY 常道 — palette sampled from the film:
   navy f0010 #0b1836 · night f0300 #0a1a3d · silk mist f0200
   #c1b097 · jade cloud f0390 #155b59 · autumn cloud f0445
   #a56e37 · moon f0310 #c9c5c6. Gold leaf and seal vermilion
   are the two accents. The film keeps its subject on the
   centre line with the left 40% open: copy lives on the left,
   gold hairline callouts point at the painted subject.
   ─────────────────────────────────────────────────────────── */

:root {
  --navy:   #0b1836;
  --navy-2: #0a1a3d;
  --navy-3: #07112a;
  --navy-4: #101f45;
  --silk:   #c1b097;
  --silk-2: #e8dfcb;
  --silk-3: #d8cbb0;
  --gold:   #d2a54a;
  --gold-2: #e8c877;
  --gold-3: #9c7630;
  --jade:   #155b59;
  --amber:  #a56e37;
  --moon:   #e9e6df;
  --seal:   #b3322a;
  --seal-2: #cf4535;
  --ink:    #151b2c;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --cjk:   "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "DM Mono", ui-monospace, Menlo, monospace;

  --fg:   var(--moon);
  --fg-2: rgba(233,230,223,.66);
  --line: rgba(210,165,74,.42);

  --gut:  clamp(16px, 3.4vw, 56px);
  --ease: cubic-bezier(.22,1,.36,1);
  --snap: cubic-bezier(.76,0,.24,1);
  --scroll-length: 1150vh;
  --p: 0;
  /* film cover box, for pinning callouts to painted subjects */
  --fw: max(100vw, 177.78vh);
  --fh: max(56.25vw, 100vh);
}
:root.is-light { --fg: var(--ink); --fg-2: rgba(21,27,44,.7); --line: rgba(21,27,44,.4); }

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: auto; }
body {
  margin: 0; background: var(--navy); color: var(--moon);
  font-family: var(--sans); font-weight: 300; font-size: 15.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.cjk { font-family: var(--cjk); font-weight: 400; letter-spacing: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 300; background: var(--gold); color: var(--navy); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 1.5px solid var(--gold-2); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--navy); }

/* ── seal stamp (brand atom) ────────────────────────────── */
.seal { display: inline-grid; grid-template-columns: 1fr 1fr; place-items: center; background: var(--seal); color: #f6e9d2; font-family: var(--cjk); font-weight: 900; border-radius: 3px; position: relative; line-height: 1; flex: none; }
.seal::after { content: ""; position: absolute; inset: 2px; border: 1px solid rgba(246,233,210,.8); border-radius: 2px; }
.seal--sm { width: 30px; height: 30px; font-size: 11px; padding: 0 2px; }
.seal--xs { width: 24px; height: 24px; font-size: 9px; padding: 0 1px; }
.seal--lg { width: 88px; height: 88px; font-size: 32px; padding: 0 6px; }

/* ── loader ─────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--navy); transition: opacity .9s var(--ease), visibility .9s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__seal { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.loader__seal svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.loader__seal circle { fill: none; stroke-width: 1; stroke: rgba(210,165,74,.2); }
.loader__fill { stroke: var(--gold) !important; stroke-width: 1.6 !important; stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset .3s linear; }
.loader__stamp { width: 48px; height: 48px; display: grid; grid-template-columns: 1fr 1fr; place-items: center; background: var(--seal); color: #f6e9d2; font-family: var(--cjk); font-weight: 900; font-size: 17px; border-radius: 3px; animation: breathe 2.2s ease-in-out infinite; }
.loader__mark { font-family: var(--serif); font-size: 28px; letter-spacing: .08em; }
.loader__meta { color: var(--fg-2); }
@keyframes breathe { 50% { transform: scale(.94); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── film ───────────────────────────────────────────────── */
.film { position: fixed; inset: 0; z-index: 0; background: var(--navy); overflow: hidden; }
.film canvas, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-mode="scrub"] .film video { display: none; }
[data-mode="video"] .film canvas { display: none; }
.film__veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
  background: linear-gradient(90deg, rgba(7,17,42,.86) 0%, rgba(7,17,42,.62) 34%, rgba(7,17,42,.12) 62%, rgba(7,17,42,0) 80%); }
[data-mode="video"] .film__veil { opacity: 1; }
.film__grain { position: absolute; inset: -50%; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .7 0 0 0 0 .5 0 0 0 1.3 -.3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(5) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ── doors: the mode-switch transition ──────────────────── */
.doors { position: fixed; inset: 0; z-index: 180; pointer-events: none; overflow: hidden; }
.doors i { position: absolute; top: 0; bottom: 0; width: 51%; background: var(--navy-3); transition: transform .7s var(--snap) .05s; }
.doors__l { left: 0; transform: translateX(-102%);
  background: linear-gradient(90deg, var(--navy-3) 88%, var(--navy-4)) !important;
  clip-path: polygon(0 0, 100% 0, 98% 8%, 100% 17%, 97.5% 26%, 99.5% 35%, 97% 46%, 100% 55%, 98% 66%, 99.5% 77%, 97% 88%, 100% 100%, 0 100%); }
.doors__r { right: 0; transform: translateX(102%);
  background: linear-gradient(270deg, var(--navy-3) 88%, var(--navy-4)) !important;
  clip-path: polygon(2% 0, 100% 0, 100% 100%, 0 100%, 3% 90%, .5% 80%, 2.5% 68%, 0 57%, 3% 45%, 1% 34%, 3% 22%, 0 11%); }
.doors i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--gold-3), var(--gold-2) 30%, var(--gold) 60%, var(--gold-3)); }
.doors__l::after { right: 1%; }
.doors__r::after { left: 1.5%; }
.doors__seal { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 0 6px;
  background: var(--seal); color: #f6e9d2; font-family: var(--cjk); font-weight: 900; font-size: 26px; border-radius: 4px;
  transform: scale(2.2) rotate(-14deg); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
.doors__seal::after { content: ""; position: absolute; inset: 4px; border: 1.5px solid rgba(246,233,210,.8); border-radius: 2px; }
:root.is-switching .doors i { transform: none; transition-duration: .26s; transition-delay: 0s; }
:root.is-switching .doors__seal { transform: scale(1) rotate(-4deg); opacity: 1; transition-delay: .12s; }

/* ── HUD ────────────────────────────────────────────────── */
.hud { position: fixed; inset: 0; z-index: 15; pointer-events: none; color: var(--fg); transition: opacity .5s var(--ease), color .4s; }
:root.is-page .hud, :root.is-page .chapter { opacity: 0; }
.hud__br { position: absolute; width: 20px; height: 20px; border: 0 solid var(--line); transition: border-color .4s; }
.hud__br--tl { top: 78px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.hud__br--tr { top: 78px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.hud__br--bl { bottom: 16px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.hud__br--br { bottom: 16px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
.hud__side { position: absolute; top: 50%; display: flex; gap: 26px; align-items: center; white-space: nowrap; color: var(--fg-2); }
.hud__side--l { left: 16px; writing-mode: vertical-rl; transform: translateY(calc(-50% + (var(--p) - .5) * -140px)); }
.hud__side--l .cjk { font-size: 13px; letter-spacing: .6em; color: var(--fg); }
.hud__side--l .mono { font-size: 9.5px; }
.hud__side--r { right: 16px; writing-mode: vertical-rl; gap: 20px; transform: translateY(calc(-50% + (var(--p) - .5) * 140px)); font-size: 9.5px; }
.hud__side--r b { color: var(--fg); font-weight: 500; }
.hud__fig { position: absolute; top: 86px; left: 50%; transform: translateX(-50%); color: var(--fg-2); display: flex; gap: 6px; align-items: baseline; }
.hud__fig b { color: var(--gold); font-weight: 500; }
.hud__figcn { font-size: 13px; color: var(--fg); }
:root.is-light .hud__fig b { color: var(--seal); }
.hud__compass { position: absolute; right: calc(var(--gut) + 24px); bottom: 34px; width: 58px; height: 58px; color: var(--gold); transform: rotate(calc(var(--p) * -360deg)); }
.hud__compass svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: .8; overflow: visible; }
.hud__compass .dash { stroke-dasharray: 2 3; }
.hud__compass text { fill: currentColor; stroke: none; font-family: var(--cjk); font-size: 13px; }
:root.is-light .hud__compass { color: var(--ink); }

/* ── header ─────────────────────────────────────────────── */
.chrome { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 26px; padding: 16px var(--gut); color: var(--fg); transition: color .4s, background-color .5s var(--ease), box-shadow .5s; }
.chrome::after { content: ""; position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); transform: scaleX(0); transition: transform .9s var(--ease); }
:root.is-revealed .chrome::after { transform: scaleX(1); }
:root.is-page .chrome { --fg: var(--moon); --fg-2: rgba(233,230,223,.66); --line: rgba(210,165,74,.42); background: rgba(7,17,42,.94); }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.mark .seal { transition: transform .6s var(--ease); }
.mark:hover .seal { transform: rotate(-8deg) scale(1.08); }
.mark__txt { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.mark__txt i { font-weight: 400; letter-spacing: .06em; text-transform: none; font-size: 21px; }
.chrome__nav { margin-left: auto; display: flex; gap: 26px; }
.chrome__nav a { font-size: 13px; letter-spacing: .06em; text-decoration: none; color: var(--fg-2); position: relative; padding: 4px 0; transition: color .3s; }
.chrome__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.chrome__nav a:hover { color: var(--fg); }
.chrome__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* the switch — a seal that slides along a gold rail */
.switch { display: inline-flex; align-items: center; gap: 12px; padding: 5px 8px 5px 16px; border-radius: 3px; border: 1px solid var(--line); background: rgba(7,17,42,.42); color: var(--fg); transform: var(--mag, none); transition: border-color .3s, background-color .3s; position: relative; }
.switch::before, .switch::after { content: ""; position: absolute; width: 6px; height: 6px; border: 0 solid var(--gold); }
.switch::before { top: -3px; left: -3px; border-top-width: 1px; border-left-width: 1px; }
.switch::after { bottom: -3px; right: -3px; border-bottom-width: 1px; border-right-width: 1px; }
:root.is-light .switch { background: rgba(232,223,203,.55); }
.switch:hover { border-color: var(--gold); }
.switch__txt { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.switch__track { position: relative; width: 56px; height: 28px; border-radius: 2px; background: rgba(233,230,223,.08); box-shadow: inset 0 0 0 1px var(--line); transition: background .5s var(--ease); overflow: hidden; }
.switch__track::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 3px, transparent 3px 6px); opacity: .5; }
.switch[aria-checked="true"] .switch__track { background: linear-gradient(100deg, var(--gold-3), var(--gold) 45%, var(--gold-2) 60%, var(--gold)); box-shadow: none; }
.switch[aria-checked="true"] .switch__track::before { opacity: 0; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 2px; background: #7c7a78; color: #f6e9d2; display: flex; flex-direction: column; align-items: center; overflow: hidden;
  font-family: var(--cjk); font-weight: 900; font-size: 13px; line-height: 22px; box-shadow: 0 2px 6px rgba(0,0,0,.4), inset 0 0 0 1px rgba(246,233,210,.45);
  transition: transform .55s cubic-bezier(.5,1.5,.45,1), background-color .4s; }
.switch__knob b { display: block; height: 22px; flex: none; transform: translateY(-22px); transition: transform .5s var(--ease); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(28px) rotate(360deg); background: var(--seal); }
.switch[aria-checked="true"] .switch__knob b { transform: translateY(0); }
.switch__roll, .pill__roll { position: relative; height: 1.2em; overflow: hidden; display: inline-flex; flex-direction: column; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; line-height: 1.2em; min-width: 3.2ch; }
.switch__roll span, .pill__roll span { display: block; transition: transform .55s var(--ease); }
[aria-checked="false"] > .switch__roll span, [aria-checked="false"] > .pill__roll span { transform: translateY(-100%); }

.burger { display: none; background: none; border: 0; padding: 8px; margin-left: -6px; }
.burger span { display: block; width: 22px; height: 1px; background: var(--fg); transition: transform .35s var(--ease); }
.burger span + span { margin-top: 7px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.navPanel { position: fixed; inset: 0; z-index: 59; background: var(--navy-3); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--gut); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.navPanel.is-open { opacity: 1; visibility: visible; }
.navPanel a { font-family: var(--serif); font-size: clamp(38px, 11vw, 70px); font-weight: 300; text-decoration: none; color: var(--moon); line-height: 1.15; display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid rgba(210,165,74,.2); padding: 6px 0; }
.navPanel a .cjk { font-size: .45em; color: var(--gold); }

/* ── dock, chapter, rail ────────────────────────────────── */
.pill { position: fixed; z-index: 70; left: 50%; bottom: 22px; display: inline-flex; align-items: center; gap: 12px; padding: 7px 7px 7px 7px; border-radius: 3px; border: 1px solid var(--gold); background: rgba(7,17,42,.9); color: var(--moon); box-shadow: 0 14px 36px -12px rgba(0,0,0,.7); transform: translateX(-50%) var(--mag, translate(0,0)); transition: background-color .3s, transform .1s linear; }
.pill:hover { background: var(--navy-4); }
.pill__seal { width: 26px; height: 26px; display: grid; place-items: center; background: #6f6d6b; color: #f6e9d2; font-family: var(--cjk); font-weight: 900; font-size: 14px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(246,233,210,.45); transition: transform .7s cubic-bezier(.5,1.5,.45,1), background-color .4s; }
.pill[aria-checked="true"] .pill__seal { background: var(--seal); transform: rotate(-8deg); }
.pill__txt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; white-space: nowrap; }
.pill__roll { background: var(--gold); color: var(--navy-3); border-radius: 2px; padding: 0 10px; height: 24px; line-height: 24px; margin-left: 2px; }
.pill__roll span { height: 24px; }
.pill[aria-checked="false"] .pill__roll { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

.chapter { position: fixed; z-index: 16; left: calc(var(--gut) + 24px); bottom: 30px; display: flex; gap: 12px; align-items: baseline; color: var(--fg-2); pointer-events: none; transition: opacity .4s, color .4s; }
.chapter__n { font-size: 11px; }
.chapter__n b { color: var(--fg); font-weight: 500; font-size: 20px; font-family: var(--serif); letter-spacing: 0; }
.chapter__n i { font-style: normal; margin: 0 3px; color: var(--gold); }
.chapter__cn { font-size: 18px; color: var(--gold); }
:root.is-light .chapter__cn { color: var(--seal); }
.chapter__name { color: var(--fg); font-family: var(--serif); font-style: italic; font-size: 19px; }
.chapter.is-roll .chapter__name, .chapter.is-roll b, .chapter.is-roll .chapter__cn { animation: roll .7s var(--ease); }
@keyframes roll { 0% { opacity: 0; transform: translateY(80%); } 100% { opacity: 1; transform: none; } }

.rail { position: fixed; z-index: 65; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(210,165,74,.14); pointer-events: none; }
.rail__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transform-origin: 0 50%; transform: scaleX(0); }
.rail__ticks i { position: absolute; bottom: 0; width: 1px; height: 8px; background: var(--gold); opacity: .7; }
[data-mode="video"] .rail__ticks { display: none; }

/* ── stage / modes ──────────────────────────────────────── */
.stage { position: relative; z-index: 20; }
[data-mode="scrub"] .stage__spacer { height: var(--scroll-length); }
[data-mode="video"] .stage__spacer { height: 0; }

[data-mode="scrub"] .beats { position: fixed; inset: 0; pointer-events: none; }
[data-mode="scrub"] .beat { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity; }
.lay { position: absolute; inset: 0; }

[data-mode="video"] .beats { position: relative; --fg: var(--moon); --fg-2: rgba(233,230,223,.7); }
[data-mode="video"] .beat { position: relative; height: 100vh; height: 100svh; min-height: 560px; }
[data-mode="video"] .beat + .beat::before { content: ""; position: absolute; top: 0; left: var(--gut); width: min(40vw, 520px); height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .5; }

.z { position: absolute; left: calc(var(--gut) + 44px); width: min(40vw, 560px); pointer-events: auto; color: var(--fg); transition: color .4s; }
.z--l  { top: 50%; transform: translateY(-50%); }
.z--tl { top: 118px; }
.z--wide { width: min(42vw, 600px); }
.z--bl { bottom: 96px; }
.z--tc { top: 128px; left: 50%; width: min(620px, 52vw); transform: translateX(-50%); text-align: center; }
.z--tc .tag { justify-content: center; }
.z--tc .chips { justify-content: center; }

/* scroll-coupled drift (small, transform only) */
[data-mode="scrub"] .z--tl, [data-mode="scrub"] .z--bl { translate: 0 calc(var(--t, 0) * -18px); }
[data-mode="scrub"] .z--l { translate: calc(var(--t, 0) * -14px) 0; }
[data-mode="scrub"] .z--tc { translate: 0 calc(var(--t, 0) * -12px); }

/* panels for copy over the painted clouds */
.panel { position: relative; padding: 26px 28px 28px; background: rgba(7,17,42,.86); color: var(--moon);
  clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease) .1s; }
.panel::before { content: ""; position: absolute; inset: 7px; pointer-events: none; border: 1px solid rgba(210,165,74,.35);
  background:
    linear-gradient(var(--gold),var(--gold)) 0 0/14px 1px no-repeat, linear-gradient(var(--gold),var(--gold)) 0 0/1px 14px no-repeat,
    linear-gradient(var(--gold),var(--gold)) 100% 100%/14px 1px no-repeat, linear-gradient(var(--gold),var(--gold)) 100% 100%/1px 14px no-repeat; }
.panel .tag { color: rgba(233,230,223,.7) !important; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .panel { clip-path: inset(0 0 0 0); }

/* ── split text ─────────────────────────────────────────── */
.ln { display: block; overflow: hidden; padding: 0 .04em .1em; margin: 0 -.04em -.1em; }
.ln > i { display: block; font-style: inherit; transform: translate3d(0, 110%, 0) rotate(2.5deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease) calc(var(--li, 0) * 110ms + 80ms); }
.ch { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .06em; margin-bottom: -.06em; }
.ch > i { display: inline-block; font-style: inherit; transform: translate3d(0, -112%, 0); transition: transform 1.1s var(--ease) calc(var(--ci, 0) * 140ms + 100ms); }
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wd > i { display: inline-block; font-style: inherit; opacity: 0; transition: transform .9s var(--ease) calc(var(--wi, 0) * 40ms + 150ms), opacity .6s calc(var(--wi, 0) * 40ms + 150ms); }
.wd:nth-child(3n+1) > i { transform: translate3d(0, 105%, 0); }
.wd:nth-child(3n+2) > i { transform: translate3d(-60%, 0, 0); }
.wd:nth-child(3n)   > i { transform: translate3d(0, -105%, 0); }
:is(.beat.is-live, [data-mode="video"] .beat.is-in, [data-reveal].is-in) :is(.ln, .ch, .wd) > i { transform: none; opacity: 1; }

/* staggered bits inside beats */
.beat .lede, .beat .row, .beat .stats li, .beat .steps li, .beat .chips li, .beat .cue, .beat .tiers-peek li, .beat .callout {
  opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + 320ms); }
.beat .stats li:nth-child(even), .beat .steps li:nth-child(even) { transform: translate3d(-24px, 0, 0); }
.beat .tag { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease) .1s; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) :is(.lede, .row, .stats li, .steps li, .chips li, .cue, .tiers-peek li, .callout) { opacity: 1; transform: none; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .tag { clip-path: inset(0 0 0 0); }

/* ── type ───────────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--fg-2); }
.tag::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 7.4vw, 124px); line-height: .9; letter-spacing: -.01em; margin: 0 0 22px; text-transform: uppercase; }
.display em { text-transform: none; font-weight: 300; font-size: 1.08em; letter-spacing: -.02em; color: var(--gold-2); }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.1vw, 66px); line-height: 1; letter-spacing: -.005em; margin: 0 0 20px; }
.h2 em { color: var(--gold-2); }
.h2--xl { font-size: clamp(42px, 5vw, 82px); }
:root.is-light .beat .h2 em, :root.is-light .beat .quote em { color: var(--seal); }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 8px 0 10px; }
.lede { font-size: 16.5px; line-height: 1.6; max-width: 46ch; margin: 0 0 24px; color: var(--fg); opacity: .92; }
.lede em { font-size: 1.12em; color: inherit; }
.z--tc .lede { margin-inline: auto; }
.quote { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.6vw, 76px); line-height: 1; margin: 0 0 22px; }

.hero { display: flex; gap: clamp(18px, 2.4vw, 36px); align-items: flex-start; }
.hero__cjk { writing-mode: vertical-rl; font-family: var(--cjk); font-weight: 600; font-size: clamp(40px, 4.4vw, 72px); line-height: 1; color: var(--gold); letter-spacing: .12em; padding-top: .1em; border-left: 1px solid var(--line); padding-left: clamp(10px, 1.4vw, 20px); }
.beat--hero .z--l { width: min(48vw, 680px); }

.row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { --bg: transparent; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: 1px solid var(--gold); background: var(--bg); color: var(--fg); text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; border-radius: 2px; overflow: hidden; isolation: isolate; transform: var(--mag, none); transition: color .4s var(--ease), border-color .3s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-2); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--navy-3); }
.btn--gold { --bg: var(--gold); color: var(--navy-3); }
.btn--gold::before { background: var(--moon); }
.btn--line { color: var(--fg); }
:root.is-light .beat .btn--line { border-color: var(--ink); }
.btn--block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 10px; min-width: 110px; }
.stats b { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.stats span { font-size: 12.5px; color: var(--fg-2); margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--serif); font-size: 21px; font-style: italic; }
.steps li { display: flex; gap: 10px; align-items: baseline; }
.steps .mono { color: var(--gold); font-style: normal; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.chips li { border: 1px solid var(--line); padding: 7px 14px; font-size: 13px; border-radius: 2px; }
.chips b { font-family: var(--mono); font-weight: 500; font-size: 11px; margin-left: 6px; }
.tiers-peek { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 0; }
.tiers-peek li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px dashed rgba(210,165,74,.3); font-family: var(--serif); font-size: 24px; }
.tiers-peek .cjk { color: var(--gold); font-size: 20px; width: 1.2em; }
.tiers-peek b { margin-left: auto; font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--gold-2); }
.tiers-peek b::after { content: " /mo"; color: rgba(233,230,223,.5); }
.cue { display: inline-flex; align-items: center; gap: 12px; color: var(--fg-2); }
.cue i { width: 1px; height: 38px; background: var(--line); position: relative; overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-2); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ── callouts pinned to painted subjects ────────────────── */
.callout { position: absolute; left: calc(50% + (var(--fx) - .5) * var(--fw)); top: calc(50% + (var(--fy) - .5) * var(--fh)); display: grid; gap: 4px; padding-left: calc(var(--len, 90px) + 14px); color: var(--fg); pointer-events: none; }
.callout .mono { color: var(--gold); font-size: 9.5px; }
.callout__t { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.2; white-space: nowrap; }
.callout__dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border: 1px solid var(--gold-2); border-radius: 50%; }
.callout__dot::after { content: ""; position: absolute; inset: 3.5px; background: var(--gold-2); border-radius: 50%; }
.callout__dot::before { content: ""; position: absolute; inset: -7px; border: 1px solid var(--gold); border-radius: 50%; opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.callout__line { position: absolute; left: 8px; top: 0; width: var(--len, 90px); height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 5px); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s var(--ease) .5s; }
:is(.beat.is-live, [data-mode="video"] .beat.is-in) .callout__line { transform: scaleX(1); }
:root.is-light .callout__line { background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px); }
.callout--scholar { --fx: .515; --fy: .70; --len: 110px; }
.callout--strip   { --fx: .59;  --fy: .40; --len: 120px; }
.callout--lamp    { --fx: .19;  --fy: .73; --len: 150px; }
.callout--cranes  { --fx: .56;  --fy: .38; --len: 190px; }
.callout--roof    { --fx: .72;  --fy: .58; --len: 100px; }
[data-mode="video"] .callout { display: none; }

/* ── page sections ──────────────────────────────────────── */
.page { position: relative; z-index: 30; background: var(--navy-3); color: var(--moon); }
.page::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.sec { position: relative; padding: clamp(80px, 11vw, 160px) var(--gut); max-width: 1480px; margin: 0 auto; }
.sec--silk { max-width: none; background: var(--silk-2); color: var(--ink); --fg: var(--ink); --fg-2: rgba(21,27,44,.66); --line: rgba(21,27,44,.26); }
.sec--silk > * { max-width: 1400px; margin-inline: auto; }
.sec--silk .h2 em { color: var(--seal); }
.sec--deep { max-width: none; background: linear-gradient(180deg, var(--navy-3), var(--navy) 60%, var(--navy-3)); }
.sec--deep > * { max-width: 1400px; margin-inline: auto; }
.sec__head { display: grid; grid-template-columns: auto minmax(0,1.3fr) minmax(0,1fr); gap: 28px 44px; align-items: end; margin-bottom: 56px; }
.sec__cn { writing-mode: vertical-rl; font-family: var(--cjk); font-weight: 600; font-size: 46px; line-height: 1; color: var(--gold); letter-spacing: .1em; align-self: start; border-left: 1px solid var(--line); padding-left: 14px; }
.sec--silk .sec__cn { color: var(--seal); }
.sec__head .h2 { margin: 0; font-size: clamp(38px, 4.4vw, 70px); }
.sec__lede { margin: 0; font-size: 16px; color: var(--fg-2); max-width: 44ch; }
[data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.sec__head[data-reveal] { opacity: 1; transform: none; }
.sec__head .tag, .sec__head .sec__lede, .sec__head .sec__cn { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .9s var(--ease) .35s, transform 1s var(--ease) .35s; }
.sec__head .sec__cn { transform: translate3d(0, -30px, 0); transition-delay: .1s; }
.sec__head.is-in :is(.tag, .sec__lede, .sec__cn) { opacity: 1; transform: none; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid rgba(210,165,74,.25); padding: 22px 0; transform: skewX(var(--skew, 0deg)); }
.marquee__track { display: flex; width: max-content; gap: 56px; animation: marq 38s linear infinite; }
.marquee span { font-family: var(--cjk); font-weight: 600; font-size: clamp(34px, 4vw, 58px); color: var(--gold); display: inline-flex; align-items: baseline; gap: 16px; white-space: nowrap; }
.marquee span i { font-family: var(--serif); font-weight: 300; font-size: .8em; color: var(--moon); }
.marquee span::after { content: "◇"; font-size: .35em; color: var(--seal-2); margin-left: 40px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ── tea menu ───────────────────────────────────────────── */
.filter { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(210,165,74,.25); }
.filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { position: relative; border: 1px solid rgba(210,165,74,.35); background: none; padding: 9px 16px; border-radius: 2px; font-size: 13.5px; letter-spacing: .04em; color: var(--moon); display: inline-flex; gap: 8px; align-items: baseline; overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s; }
.fchip .cjk { color: var(--gold); font-size: 12px; transition: color .35s; }
.fchip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease); }
.fchip:hover { border-color: var(--gold); }
.fchip.is-on { color: var(--navy-3); border-color: var(--gold); }
.fchip.is-on::before { clip-path: inset(0 0 0 0); }
.fchip.is-on .cjk { color: var(--seal); }
.filter__right { display: flex; gap: 20px; align-items: center; }
.sel { display: inline-flex; gap: 10px; align-items: center; color: rgba(233,230,223,.6); }
.sel select { background: transparent; border: 1px solid rgba(210,165,74,.35); color: var(--moon); padding: 8px 10px; border-radius: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.sel option { background: var(--navy-3); }
.filter__count { color: var(--gold); min-width: 7ch; text-align: right; }

.teas { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.tea { position: relative; border: 1px solid rgba(210,165,74,.22); padding: 22px 22px 20px; background: linear-gradient(170deg, rgba(16,31,69,.7), rgba(7,17,42,.2)); display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .4s, opacity .5s var(--ease); }
.tea:hover { border-color: var(--gold); }
.tea.is-enter { animation: teaIn .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes teaIn { from { opacity: 0; transform: translate3d(0, 30px, 0); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.tea__top { display: flex; justify-content: space-between; align-items: center; color: rgba(233,230,223,.55); }
.tea__type { display: inline-flex; gap: 8px; align-items: center; }
.tea__type i { width: 8px; height: 8px; border-radius: 50%; background: var(--hue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue) 25%, transparent); }
.tea__art { height: 112px; display: grid; place-items: center; position: relative; }
.tea__art svg { width: 140px; height: 112px; overflow: visible; }
.tea__art path { fill: none; stroke: var(--gold); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.8s var(--ease) .15s; }
.tea__art .fill { fill: var(--hue); stroke: none; opacity: .18; }
.tea.is-drawn .tea__art path { stroke-dashoffset: 0; }
.tea__art .tea__cn { position: absolute; right: 0; top: 0; writing-mode: vertical-rl; font-family: var(--cjk); font-size: 22px; color: var(--moon); letter-spacing: .1em; }
.tea__name { font-family: var(--serif); font-size: 27px; line-height: 1.05; font-weight: 400; margin: 0; }
.tea__name em { display: block; font-size: .6em; color: var(--gold-2); margin-top: 4px; }
.tea__notes { font-size: 13.5px; color: rgba(233,230,223,.72); margin: 0; min-height: 3.1em; }
.tea__meta { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px dashed rgba(210,165,74,.25); padding: 9px 0; }
.tea__meta div { display: flex; flex-direction: column; gap: 2px; }
.tea__meta dt { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: rgba(233,230,223,.45); text-transform: uppercase; }
.tea__meta dd { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--moon); }
.tea__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.tea__price { font-family: var(--serif); font-size: 24px; }
.tea__price small { font-family: var(--mono); font-size: 10px; color: rgba(233,230,223,.5); margin-left: 6px; letter-spacing: .08em; }
.steep { position: relative; display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid rgba(210,165,74,.5); color: var(--gold-2); padding: 6px 12px 6px 6px; border-radius: 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.steep svg { width: 22px; height: 22px; transform: rotate(-90deg); }
.steep circle { fill: none; stroke: rgba(210,165,74,.3); stroke-width: 2; }
.steep circle + circle { stroke: var(--gold-2); stroke-dasharray: 57; stroke-dashoffset: 57; }
.steep:hover { border-color: var(--gold-2); }
.steep.is-on { color: var(--moon); }
.steep.is-done { background: var(--gold); color: var(--navy-3); }
.teas__empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 24px; color: rgba(233,230,223,.6); }

/* ── ceremony booking ───────────────────────────────────── */
.book { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 36px; align-items: start; }
.book__main { display: grid; gap: 26px; }
.book__step { border: 0; border-top: 1px solid rgba(21,27,44,.2); margin: 0; padding: 22px 0 0; min-width: 0; }
.book__step legend { font-family: var(--serif); font-size: 26px; padding: 0 14px 0 0; display: flex; gap: 12px; align-items: baseline; }
.book__step legend .mono { color: var(--seal); }
.ctypes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.ctype { position: relative; text-align: left; border: 1px solid rgba(21,27,44,.22); background: rgba(255,255,255,.35); padding: 18px 18px 16px; border-radius: 2px; display: grid; gap: 6px; transition: border-color .3s, background-color .3s, transform .4s var(--ease); color: var(--ink); }
.ctype:hover { transform: translateY(-3px); border-color: var(--ink); }
.ctype[aria-checked="true"] { background: var(--navy-3); color: var(--moon); border-color: var(--navy-3); }
.ctype__cn { font-family: var(--cjk); font-size: 22px; font-weight: 600; color: var(--seal); }
.ctype[aria-checked="true"] .ctype__cn { color: var(--gold); }
.ctype__n { font-family: var(--serif); font-size: 22px; line-height: 1.05; }
.ctype__d { font-size: 13px; opacity: .75; }
.ctype__p { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; margin-top: 6px; }
.ctype__stamp { position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; background: var(--seal); color: #f6e9d2; font-family: var(--cjk); font-weight: 900; font-size: 13px; display: grid; place-items: center; border-radius: 2px; transform: scale(2) rotate(-20deg); opacity: 0; transition: transform .4s var(--ease), opacity .25s; }
.ctype[aria-checked="true"] .ctype__stamp { transform: scale(1) rotate(-6deg); opacity: 1; }
.book__row { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; margin-top: 16px; }
.book__row .field { flex: 1 1 220px; }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid rgba(21,27,44,.3); border-radius: 2px; height: 50px; }
.stepper button { width: 46px; height: 100%; border: 0; background: none; font-size: 20px; color: var(--ink); transition: background-color .25s; }
.stepper button:hover { background: rgba(21,27,44,.08); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { width: 44px; text-align: center; font-family: var(--serif); font-size: 28px; }
.stepper .mono { padding: 0 14px; border-left: 1px solid rgba(21,27,44,.2); height: 100%; display: grid; place-items: center; color: rgba(21,27,44,.6); }
.field { display: grid; gap: 7px; margin-top: 4px; }
.field > .mono { color: rgba(21,27,44,.62); }
.field input { width: 100%; background: rgba(255,255,255,.45); border: 0; border-bottom: 1px solid rgba(21,27,44,.45); padding: 12px 12px; font-size: 16px; color: var(--ink); border-radius: 2px 2px 0 0; transition: border-color .3s, background-color .3s; }
.field input:focus { outline: none; border-bottom-color: var(--seal); background: rgba(255,255,255,.7); }
.field.is-bad input { border-bottom-color: var(--seal); background: rgba(179,50,42,.07); }
.field__err { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--seal); min-height: 1em; display: block; }
.slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 18px; }
.slot { border: 1px solid rgba(21,27,44,.26); background: none; padding: 12px 6px; border-radius: 2px; font-family: var(--mono); font-size: 12px; color: var(--ink); display: grid; gap: 3px; transition: background-color .25s, color .25s, border-color .25s; }
.slot small { font-size: 9px; letter-spacing: .1em; opacity: .6; text-transform: uppercase; }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot[aria-checked="true"] { background: var(--seal); color: #f6e9d2; border-color: var(--seal); }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slots__none { grid-column: 1 / -1; font-family: var(--serif); font-style: italic; font-size: 19px; color: rgba(21,27,44,.6); padding: 8px 0; }
.check { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed rgba(21,27,44,.18); cursor: pointer; font-size: 15.5px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { width: 22px; height: 22px; border: 1px solid rgba(21,27,44,.45); border-radius: 2px; position: relative; flex: none; transition: background-color .25s, border-color .25s; }
.check i::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #f6e9d2; font-size: 13px; transform: scale(0); transition: transform .35s cubic-bezier(.5,1.8,.4,1); }
.check input:checked + i { background: var(--seal); border-color: var(--seal); }
.check input:checked + i::after { transform: scale(1); }
.check input:focus-visible + i { outline: 1.5px solid var(--seal); outline-offset: 3px; }
.check b { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .06em; margin-left: 8px; color: rgba(21,27,44,.62); }

.bill { position: sticky; top: 96px; background: var(--navy-3); color: var(--moon); padding: 26px; border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(7,17,42,.6); }
.bill::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(210,165,74,.3); pointer-events: none; }
.bill__head { display: flex; justify-content: space-between; align-items: center; color: var(--gold); margin-bottom: 16px; }
.bill__lines { margin: 0 0 16px; display: grid; gap: 0; }
.bill__lines div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(210,165,74,.2); font-size: 14px; }
.bill__lines dt { color: rgba(233,230,223,.72); }
.bill__lines dd { margin: 0; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.bill__lines .is-disc dd { color: var(--gold-2); }
.bill__total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0 12px; }
.bill__total b { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.bill__total b.is-bump { animation: bumpy .5s var(--ease); }
@keyframes bumpy { 40% { transform: translateY(-4px); color: var(--moon); } }
.bill__note { color: rgba(233,230,223,.5); margin: 0 0 18px; }

.ticket { margin-top: 10px; display: grid; place-items: center; }
.ticket__inner { position: relative; width: min(560px, 100%); background: var(--navy-3); color: var(--moon); padding: 44px 40px 34px; text-align: center; display: grid; justify-items: center; gap: 8px;
  clip-path: polygon(0 0, 100% 0, 100% 42%, 97% 46%, 100% 50%, 100% 100%, 0 100%, 0 50%, 3% 46%, 0 42%); animation: ticketIn 1s var(--ease) both; }
.ticket__inner::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(210,165,74,.35); pointer-events: none; }
.ticket__inner > .mono { color: var(--gold); }
.ticket__inner p { margin: 0 0 8px; color: rgba(233,230,223,.8); }
.ticket__stamp { margin-bottom: 8px; animation: stamp .7s cubic-bezier(.5,1.6,.4,1) .35s both; }
.ticket__bar { width: 220px; height: 30px; margin: 6px 0 14px; fill: var(--gold); }
@keyframes ticketIn { from { opacity: 0; transform: translateY(40px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { transform: scale(2.6) rotate(-24deg); opacity: 0; } to { transform: scale(1) rotate(-6deg); opacity: 1; } }

/* ── calendar ───────────────────────────────────────────── */
.cal { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 48px; align-items: start; }
.cal__side { position: sticky; top: 96px; }
.cal__months { display: flex; border: 1px solid rgba(210,165,74,.3); border-radius: 2px; margin-bottom: 22px; }
.cal__months button { flex: 1; background: none; border: 0; padding: 12px 6px; font-family: var(--serif); font-size: 19px; color: rgba(233,230,223,.6); position: relative; transition: color .3s; }
.cal__months button + button { border-left: 1px solid rgba(210,165,74,.3); }
.cal__months button[aria-selected="true"] { color: var(--navy-3); background: var(--gold); }
.cal__months button small { display: block; font-family: var(--cjk); font-size: 11px; opacity: .7; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 20px; }
.cal__dow { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: rgba(233,230,223,.4); text-align: center; padding-bottom: 6px; }
.cal__day { aspect-ratio: 1; border: 1px solid transparent; background: none; font-family: var(--mono); font-size: 12px; color: rgba(233,230,223,.4); border-radius: 2px; position: relative; display: grid; place-items: center; padding: 0; }
.cal__day.has { color: var(--moon); border-color: rgba(210,165,74,.2); }
.cal__day.has:hover { border-color: var(--gold); }
.cal__day .dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.cal__day .dots i { width: 4px; height: 4px; border-radius: 50%; }
.cal__day.is-sel { background: var(--seal); color: #f6e9d2; border-color: var(--seal); }
.cal__day.is-mon { opacity: .45; }
.cal__day:disabled { cursor: default; }
.k--exhibition { background: var(--gold); } .k--salon { background: #57a79b; } .k--recital { background: var(--moon); } .k--workshop { background: var(--seal-2); }
.cal__kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cal__kinds .fchip { padding: 7px 12px; font-size: 12.5px; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: rgba(233,230,223,.5); align-items: center; font-size: 9.5px; }
.cal__legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: -8px; }
.cal__listhead { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid rgba(210,165,74,.3); color: var(--gold); }
.events { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 92px 150px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(210,165,74,.16); animation: evIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes evIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.ev__date { display: grid; font-family: var(--serif); line-height: 1; }
.ev__date b { font-weight: 300; font-size: 50px; color: var(--moon); }
.ev__date span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: rgba(233,230,223,.55); margin-top: 6px; text-transform: uppercase; }
.ev__img { width: 150px; height: 100px; overflow: hidden; border-radius: 2px; position: relative; }
.ev__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ev:hover .ev__img img { transform: scale(1.08); }
.ev__kind { display: inline-flex; align-items: center; gap: 8px; color: rgba(233,230,223,.6); }
.ev__kind i { width: 7px; height: 7px; border-radius: 50%; }
.ev h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 6px 0 4px; }
.ev h3 .cjk { font-size: .62em; color: var(--gold); margin-left: 8px; }
.ev p { margin: 0; font-size: 14px; color: rgba(233,230,223,.7); }
.save { background: none; border: 1px solid rgba(210,165,74,.4); color: var(--gold-2); padding: 9px 12px; border-radius: 2px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background-color .3s, color .3s; }
.save i { width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 2px; display: grid; place-items: center; font-style: normal; font-family: var(--cjk); font-size: 9px; }
.save[aria-pressed="true"] { background: var(--seal); border-color: var(--seal); color: #f6e9d2; }
.save[aria-pressed="true"] i { animation: stamp .5s cubic-bezier(.5,1.6,.4,1); }
.events__none { padding: 40px 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: rgba(233,230,223,.55); }

/* ── membership ─────────────────────────────────────────── */
.bill-toggle { position: relative; display: inline-flex; border: 1px solid var(--gold); border-radius: 2px; justify-self: end; isolation: isolate; }
.bill-toggle button { position: relative; z-index: 1; background: none; border: 0; padding: 12px 20px; font-family: var(--serif); font-size: 18px; color: var(--moon); transition: color .4s; display: inline-flex; gap: 8px; align-items: baseline; white-space: nowrap; }
.bill-toggle button .mono { font-size: 9px; color: var(--gold-2); transition: color .4s; }
.bill-toggle button[aria-checked="true"] { color: var(--navy-3); }
.bill-toggle button[aria-checked="true"] .mono { color: var(--seal); }
.bill-toggle__knob { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: var(--kw, 50%); background: var(--gold); transform: translateX(var(--kx, 0)); transition: transform .55s var(--ease), width .55s var(--ease); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { position: relative; border: 1px solid rgba(210,165,74,.28); padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 14px; background: rgba(7,17,42,.55); overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .4s, background-color .4s; }
.tier::after { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 90%; background: radial-gradient(closest-side, rgba(210,165,74,.16), transparent); pointer-events: none; opacity: 0; transition: opacity .6s; }
.tier:hover { border-color: var(--gold); }
.tier:hover::after { opacity: 1; }
.tier.is-feature { border-color: var(--gold); background: linear-gradient(180deg, rgba(21,91,89,.35), rgba(7,17,42,.6)); }
.tier.is-chosen { border-color: var(--seal-2); }
.tier__cn { font-family: var(--cjk); font-weight: 900; font-size: 88px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); position: absolute; right: 18px; top: 16px; opacity: .55; }
.tier__badge { position: absolute; top: 0; left: 30px; background: var(--gold); color: var(--navy-3); padding: 4px 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; }
.tier__num { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--gold); }
.tier h3 { font-family: var(--serif); font-weight: 400; font-size: 38px; margin: 0; line-height: 1; }
.tier__sub { font-size: 14px; color: rgba(233,230,223,.7); margin: 0; min-height: 3em; max-width: 30ch; }
.tier__price { display: flex; align-items: baseline; gap: 8px; padding: 14px 0; border-block: 1px dashed rgba(210,165,74,.3); }
.tier__price b { font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.tier__price span { font-family: var(--mono); font-size: 11px; color: rgba(233,230,223,.55); letter-spacing: .08em; }
.tier ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.tier li { display: flex; gap: 10px; align-items: baseline; }
.tier li::before { content: "◇"; color: var(--gold); font-size: 10px; }
.tier .btn { margin-top: auto; }
.tier__stamp { position: absolute; right: 26px; bottom: 90px; width: 70px; height: 70px; display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 0 6px; background: var(--seal); color: #f6e9d2; font-family: var(--cjk); font-weight: 900; font-size: 22px; border-radius: 3px; transform: scale(2.4) rotate(-26deg); opacity: 0; pointer-events: none; transition: transform .5s cubic-bezier(.5,1.6,.4,1), opacity .25s; }
.tier__stamp::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(246,233,210,.8); }
.tier.is-chosen .tier__stamp { transform: scale(1) rotate(-8deg); opacity: .92; }

/* ── visit / faq / news ─────────────────────────────────── */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.hours { margin: 26px 0 40px; display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px dashed rgba(210,165,74,.25); }
.hours dt { font-family: var(--serif); font-size: 20px; }
.hours dd { margin: 0; font-family: var(--mono); font-size: 12px; color: rgba(233,230,223,.75); align-self: center; }
.polaroid { margin: 0; width: min(400px, 90%); background: var(--silk-2); padding: 12px 12px 14px; transform: perspective(900px) rotate(-3deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); box-shadow: 0 30px 50px -30px rgba(0,0,0,.8); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.polaroid figcaption { color: var(--ink); padding-top: 10px; font-size: 9.5px; }
.faq details { border-bottom: 1px solid rgba(210,165,74,.25); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: 23px; line-height: 1.2; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-2); }
.faq summary i { width: 16px; height: 16px; position: relative; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold); transition: transform .45s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details[open] summary i::before { transform: rotate(180deg); }
.faq p { margin: 0; padding: 0 0 22px; color: rgba(233,230,223,.75); max-width: 60ch; animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }
.news { margin-top: 48px; padding: 26px; border: 1px solid rgba(210,165,74,.3); position: relative; }
.news label { color: var(--gold); display: block; margin-bottom: 14px; }
.news__row { display: flex; gap: 10px; }
.news input { flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid rgba(233,230,223,.4); padding: 12px 2px; color: var(--moon); font-size: 16px; }
.news input:focus { outline: none; border-bottom-color: var(--gold); }
.news__ok { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-2); margin: 10px 0 0; }

/* ── footer ─────────────────────────────────────────────── */
.foot { position: relative; padding: 90px var(--gut) 90px; border-top: 1px solid rgba(210,165,74,.25); overflow: hidden; }
.foot__big { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 48px); margin-bottom: 70px; }
.foot__cjk { font-family: var(--cjk); font-weight: 900; font-size: clamp(110px, 21vw, 340px); line-height: .85; color: var(--gold); letter-spacing: -.02em; }
.foot__word { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 7vw, 120px); line-height: .9; text-transform: uppercase; padding-bottom: .1em; }
.foot__word em { text-transform: none; color: var(--gold-2); }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 30px 0; border-top: 1px solid rgba(210,165,74,.25); }
.foot__cols .mono { color: var(--gold); }
.foot__cols p { margin: 12px 0 0; color: rgba(233,230,223,.75); line-height: 1.8; }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { color: var(--gold-2); }
.foot__base { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding-top: 24px; color: rgba(233,230,223,.5); }
.foot__base a { text-decoration: none; color: var(--gold); }
.foot__bar { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, rgba(210,165,74,.5) 0 2px, transparent 2px 6px); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--silk-2); color: var(--ink); padding: 12px 18px; border-radius: 2px; font-size: 14px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); transition: opacity .35s, transform .5s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast::before { content: "常"; width: 22px; height: 22px; background: var(--seal); color: #f6e9d2; font-family: var(--cjk); font-weight: 900; font-size: 12px; display: grid; place-items: center; border-radius: 2px; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── cursor ─────────────────────────────────────────────── */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary { cursor: none; }
.has-cursor input, .has-cursor select { cursor: auto; }
.cur { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; }
.cur--dot { width: 5px; height: 5px; background: var(--gold-2); border-radius: 50%; }
.cur--ring { width: 34px; height: 34px; }
.cur--ring::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(210,165,74,.8); border-radius: 50%; transition: border-radius .35s var(--ease), transform .45s var(--ease), background-color .3s, border-color .3s; }
.cur--ring.is-on::before { border-radius: 3px; transform: rotate(45deg) scale(.9); background: rgba(210,165,74,.12); }
.cur--ring.is-lg::before { transform: rotate(0) scale(2); border-radius: 3px; background: var(--seal); border-color: var(--seal); }
.cur--ring.is-down::before { transform: scale(.7); }
.cur--ring.is-out { opacity: 0; }
.cur__l { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #f6e9d2; white-space: nowrap; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .chrome__nav { display: none; }
  .burger { display: block; order: -1; }
  .mark { margin-right: auto; }
  .ctypes { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .tiers { grid-template-columns: 1fr; max-width: 560px; }
  .ev { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .ev__img { display: none; }
}
@media (max-width: 900px) {
  .book, .cal, .visit { grid-template-columns: 1fr; }
  .bill, .cal__side { position: relative; top: 0; }
  .sec__head { grid-template-columns: auto minmax(0, 1fr); }
  .sec__head .sec__lede, .sec__head .bill-toggle { grid-column: 1 / -1; justify-self: start; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .hide-sm { display: none !important; }
  .mark__txt { font-size: 14px; letter-spacing: .1em; }
  .mark__txt i { font-size: 16px; }
  .switch { padding: 4px 5px 4px 10px; gap: 8px; }
  .switch__txt { display: none; }
  .switch__roll { display: none; }
  .chrome { gap: 12px; }
  .mark { gap: 8px; min-width: 0; }
  .mark__txt { font-size: 12.5px; letter-spacing: .08em; }
  .mark__txt i { font-size: 14px; }
  .beat--hero .z--tl { display: none; }
  .hud__side, .hud__fig, .hud__compass, .hud__br--tl, .hud__br--tr { display: none; }
  .chapter { left: var(--gut); bottom: 76px; }
  .chapter__name { font-size: 16px; }
  .pill { bottom: 16px; }

  .z, .z--wide, .beat--hero .z--l { left: var(--gut); right: var(--gut); width: auto; }
  .z--l, .z--tl, .z--bl, .z--tc { top: auto; bottom: 120px; transform: none; text-align: left; }
  .z--tc .tag, .z--tc .chips { justify-content: flex-start; }
  .z--tc .lede { margin-inline: 0; }
  /* every beat sits on a card on phones: the film's subject is centre-frame */
  .z:not(:has(.panel)) { background: rgba(7,17,42,.84); padding: 20px 20px 22px; color: var(--moon); --fg: var(--moon); --fg-2: rgba(233,230,223,.7); }
  [data-mode="scrub"] .beat--ink .z { background: rgba(232,223,203,.9); color: var(--ink); --fg: var(--ink); --fg-2: rgba(21,27,44,.7); }
  .z .panel { padding: 20px; }
  .display { font-size: 38px; }
  .hero { gap: 14px; }
  .hero__cjk { font-size: 30px; padding-left: 10px; }
  .h2, .h2--xl, .quote { font-size: 32px; }
  .lede { font-size: 14.5px; margin-bottom: 16px; }
  .stats { gap: 16px; }
  .stats li { min-width: 80px; }
  .stats b { font-size: 30px; }
  .steps { font-size: 17px; gap: 12px; }
  .tiers-peek li { font-size: 19px; padding: 7px 0; }
  .btn { padding: 12px 16px; }
  [data-mode="video"] .beat { min-height: 640px; }

  .sec__cn { font-size: 32px; }
  .filter { flex-direction: column; align-items: stretch; }
  .filter__right { justify-content: space-between; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .ev { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .ev__date b { font-size: 38px; }
  .ev .save { grid-column: 2; justify-self: start; }
  .bill-toggle button { padding: 10px 12px; font-size: 16px; }
  .tier__cn { font-size: 64px; }
  .foot__big { flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__base { flex-wrap: wrap; }
  .foot__bar { display: none; }
  .news__row { flex-direction: column; }
  .ticket__inner { padding: 40px 24px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
}
.tier[data-reveal].is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

@media (min-width: 761px) { .beat--eaves .z--bl { width: min(34vw, 500px); } }
.ticket .btn--line { color: var(--moon); --fg: var(--moon); }
:root.is-page .rail__ticks { opacity: 0; }
