/*!
 * Cinematic site engine — page styles.
 * Tokens on :root are the Kage benchmark defaults; each site overrides them in its own <style> block.
 * Section blocks: hero, split (+stats / +media), cards (cloth), gallery (cloth row), grid (cells),
 * list (rows), quote, faq, contact, finale, footer. Foreground cut-out placement is generated per site.
 */
/* ======================================================================
   Tokens
   ====================================================================== */
:root {
  --ink: #05070a; --ink-2: #0a0e12; --ink-3: #0f141a;
  --bone: #dfe7e0; --bone-2: #aab4ad; --bone-3: #c2cdc5;
  --mute: #78837c; --body: #9aa5a0;
  --verm: #e0231c; --ember: #ff5a3c; --gold: #c9a24a;
  --bone-rgb: 223, 231, 224; --ink-rgb: 5, 7, 10; --shade-rgb: 3, 4, 6; --accent-rgb: 224, 35, 28; --glow-rgb: 255, 170, 110;
  --cell-hover-a: rgba(40, 10, 10, .72); --cell-hover-b: rgba(12, 6, 8, .88);
  --sky-a: #06080c; --sky-b: #111925; --sky-c: #0b0f14;
  --rule: rgba(var(--bone-rgb), .13);
  --rule-soft: rgba(var(--bone-rgb), .07);
  --pad: clamp(20px, 3.4vw, 56px);
  --nav-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --sans: Onest, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --jp: "Kage JP", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --display-font: var(--sans);
  --display-case: uppercase;
  --display-weight: 400;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--ink); color: var(--bone);
  font: 300 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--verm); color: var(--bone); }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }
.jp { font-family: var(--jp); font-weight: 200; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 120; padding: 10px 16px; background: var(--bone); color: var(--ink); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transform: translateY(-160%); transition: transform .3s var(--ease-out); }
.skip:focus { transform: none; }

/* ======================================================================
   Fixed layers
   ====================================================================== */
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; background: var(--ink); }
.fallback-sky { position: fixed; inset: 0; z-index: 0; display: none; background:
  radial-gradient(60% 50% at 70% 18%, rgba(var(--accent-rgb), .28), transparent 60%),
  linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 55%, var(--sky-c) 100%); }
.fallback-sky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.85) brightness(.8); }
.no-webgl .fallback-sky { display: block; }
.no-webgl #world { display: none; }

.vignette { position: fixed; inset: 0; z-index: 55; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(var(--shade-rgb), .55) 100%),
    linear-gradient(180deg, rgba(var(--shade-rgb), .5) 0%, transparent 16%, transparent 80%, rgba(var(--shade-rgb), .45) 100%); }
.grain { position: fixed; inset: -2px; z-index: 60; pointer-events: none; opacity: .1; mix-blend-mode: overlay; background-size: 160px 160px; animation: grain 1s steps(6) infinite; }
@keyframes grain {
  0% { background-position: 0 0; } 17% { background-position: -41px 23px; } 33% { background-position: 37px -58px; }
  50% { background-position: -83px -12px; } 67% { background-position: 19px 71px; } 83% { background-position: 64px -33px; } 100% { background-position: 0 0; }
}
.trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 78; pointer-events: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 80; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: none;
  border: 1px solid rgba(var(--bone-rgb), .5); border-radius: 50%; opacity: 0;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s, opacity .3s; }
.cursor::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: var(--bone); opacity: .85; transition: opacity .3s; }
.has-cursor .cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: rgba(var(--bone-rgb), .75); background: rgba(var(--bone-rgb), .06); }
.cursor.is-hover::after { opacity: 0; }
.cursor.is-down { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* ======================================================================
   Loader
   ====================================================================== */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--ink);
  transition: opacity .8s var(--ease), visibility .8s; }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-in { width: min(420px, calc(100vw - 48px)); display: grid; justify-items: center; gap: 0; }
.loader .mark { width: 44px; height: 44px; animation: breathe 2.6s var(--ease-io) infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.94); } }
.loader-jp { margin-top: 26px; font-size: 13px; letter-spacing: .6em; padding-left: .6em; color: var(--bone-2); }
.loader-bar { position: relative; width: 100%; height: 1px; margin-top: 20px; background: var(--rule); overflow: hidden; }
.loader-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--accent-rgb), .7), var(--bone)); transform: scaleX(0); transform-origin: 0 50%; }
.loader-meta { display: flex; justify-content: space-between; width: 100%; margin-top: 12px; font-size: 9px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.loader-meta b { font-weight: 400; color: var(--bone-2); font-variant-numeric: tabular-nums; }

/* ======================================================================
   Top bar
   ====================================================================== */
.topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 58; height: var(--nav-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: transform .55s var(--ease), background-color .5s var(--ease); }
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease);
  background: linear-gradient(180deg, rgba(var(--ink-rgb), .82), rgba(var(--ink-rgb), .55));
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--rule-soft); }
.topbar.is-stuck::before { opacity: 1; }
.topbar.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand-tx { display: grid; gap: 2px; }
.brand-tx b { font-weight: 500; font-size: 12px; letter-spacing: .28em; line-height: 1; }
.brand-tx i { font-style: normal; font-size: 7.5px; font-weight: 400; letter-spacing: .34em; text-transform: uppercase; color: var(--mute); line-height: 1.1; }
.links { display: flex; gap: clamp(22px, 2.7vw, 40px); margin-left: auto; }
.links a { position: relative; display: block; overflow: hidden; height: 15px; font-size: 11px; font-weight: 500; letter-spacing: .2em; line-height: 15px; text-transform: uppercase; color: var(--bone-2); }
.links a span { display: block; transition: transform .55s var(--ease-out), color .3s; }
.links a .alt { position: absolute; left: 0; right: 0; top: 0; transform: translateY(100%); color: var(--bone); font-family: var(--jp); font-weight: 300; letter-spacing: .32em; }
.links a .alt--same { font-family: var(--sans); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.links a:hover span:first-child, .links a:focus-visible span:first-child { transform: translateY(-100%); }
.links a:hover .alt, .links a:focus-visible .alt { transform: none; }
.links a::after { content: ""; position: absolute; left: 0; right: .2em; bottom: 0; height: 1px; background: var(--verm); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-out); }
.links a.is-on { color: var(--bone); }
.links a.is-on span:first-child { color: var(--bone); }
.links a.is-on::after { transform: scaleX(1); }
.burger { position: relative; width: 26px; height: 16px; margin-left: clamp(24px, 4vw, 64px); flex: none; }
.burger i { position: absolute; right: 0; height: 1.5px; background: var(--bone); transition: transform .5s var(--ease-out), width .5s var(--ease-out), top .5s var(--ease-out); }
.burger i:nth-child(1) { top: 4px; width: 26px; }
.burger i:nth-child(2) { top: 11px; width: 17px; }
.burger:hover i:nth-child(2) { width: 26px; }
.menu-open .burger i:nth-child(1) { top: 7.5px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 7.5px; width: 26px; transform: rotate(-45deg); }

/* full-screen menu */
.menu { position: fixed; inset: 0; z-index: 57; display: grid; align-content: center; padding: calc(var(--nav-h) + 20px) var(--pad) 48px;
  background: rgba(var(--ink-rgb), .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.menu ol { display: grid; gap: clamp(8px, 2vh, 18px); counter-reset: m; }
.menu li { overflow: hidden; }
.menu a { display: flex; align-items: baseline; gap: 18px; font-size: clamp(30px, 7vw, 76px); font-weight: 400; line-height: 1.1; letter-spacing: -.015em; text-transform: uppercase;
  transform: translateY(105%); transition: transform .8s var(--ease-out), color .3s; }
.menu a small { font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--verm); }
.menu a .jp { font-size: .42em; color: var(--mute); letter-spacing: .2em; white-space: nowrap; flex: none; }
.menu a:hover { color: var(--bone-2); }
.menu-open .menu a { transform: none; }
.menu-open .menu li:nth-child(2) a { transition-delay: .06s; }
.menu-open .menu li:nth-child(3) a { transition-delay: .12s; }
.menu-open .menu li:nth-child(4) a { transition-delay: .18s; }
.menu-open .menu li:nth-child(5) a { transition-delay: .24s; }
.menu-open .menu li:nth-child(6) a { transition-delay: .3s; }
.menu-open .menu li:nth-child(7) a { transition-delay: .36s; }
.menu-open .menu li:nth-child(8) a { transition-delay: .42s; }
.menu-open .menu li:nth-child(9) a { transition-delay: .48s; }
.menu-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 32px; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }

/* ======================================================================
   Shared type + reveal
   ====================================================================== */
.page { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 500; line-height: 16px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-2); }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--verm); box-shadow: 0 0 10px rgba(var(--accent-rgb), .8); flex: none; }
.display { font-family: var(--display-font); font-weight: var(--display-weight); line-height: 1.055; letter-spacing: -.012em; text-transform: var(--display-case); color: var(--bone); }
.h-hero { font-size: clamp(28px, 3.05vw, 58px); }
.h-sec { font-size: clamp(32px, 3.95vw, 72px); line-height: 1.07; }
.lead { font-size: clamp(15px, 1.16vw, 19px); line-height: 1.66; color: var(--bone-3); }
.body { font-size: 14px; line-height: 1.68; color: var(--body); }
.body-lg { font-size: clamp(14px, 1.05vw, 17px); line-height: 1.7; color: var(--bone-3); }
.label { font-size: 9px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }

/* word masks */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .08em; margin: -.04em -.02em -.08em; }
.wi { display: inline-block; will-change: transform; }
.js .wi { transform: translate3d(0, 112%, 0); opacity: 0;
  transition: transform .82s var(--ease-out), opacity .5s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 55ms); }
.js .is-in .wi, .js .is-in.wi { transform: none; opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .9s var(--ease-out), transform 1.05s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.reduced [data-reveal], .reduced .wi { transform: none !important; }

/* section heads */
.sec-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 22px; }
.sec-head .k { font-size: 10px; font-weight: 500; line-height: 16px; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-2); white-space: nowrap; }
.sec-head .k b { font-weight: 500; color: var(--verm); margin-right: 6px; }
.sec-head .k.jp { font-family: var(--jp); letter-spacing: .3em; font-weight: 300; }
.sec-head .rule { flex: 1; height: 1px; background: var(--rule-soft); transform-origin: 0 50%; }
.js .sec-head .rule { transform: scaleX(0); transition: transform 1.4s var(--ease-out) .15s; }
.js .sec-head.is-in .rule { transform: none; }

/* ======================================================================
   Hero
   ====================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 23px) var(--pad) 0; display: flex; flex-direction: column; }
.hero-fade { flex: 1; display: flex; flex-direction: column; opacity: calc(1 - var(--hp, 0)); }
.hero-copy { position: relative; z-index: 2; width: min(590px, 44vw); }
.hero .h-hero { margin-top: 20px; }
.hero-sub { margin-top: 26px; max-width: 330px; font-size: 14px; line-height: 1.68; color: var(--body); }
.hero-side { position: absolute; right: var(--pad); top: calc(var(--nav-h) + 27px); z-index: 2; writing-mode: vertical-rl; font-size: clamp(30px, 3.2vw, 56px); line-height: 1.6; letter-spacing: .12em; color: rgba(var(--bone-rgb), .62); pointer-events: none; }
.wordmark-fallback { display: none; }
.no-webgl .wordmark-fallback { display: block; position: absolute; left: 0; right: 0; top: 49%; z-index: 1; text-align: center; font-size: 22vw; font-weight: 600; line-height: .8; letter-spacing: .06em; color: rgba(var(--bone-rgb), .86); pointer-events: none; }
.hero-foot { position: relative; z-index: 2; margin-top: auto; padding-bottom: 36px; width: min(480px, 100%); }
.cue { display: inline-flex; align-items: center; gap: 12px; font-size: 9px; font-weight: 300; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.cue i { position: relative; width: 54px; height: 1px; background: var(--rule); overflow: hidden; }
.cue i::after { content: ""; position: absolute; inset: 0; background: var(--bone); transform: translateX(-100%); animation: cue 2.8s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 55% { transform: translateX(0); } 100% { transform: translateX(100%); } }
.chips { display: flex; gap: 0; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--rule-soft); }
.chips > li { width: calc(100% / var(--chips, 4)); }
.chip { position: relative; display: inline-block; }
.chip .num { display: block; font-size: clamp(30px, 3.1vw, 50px); font-weight: 300; line-height: 1; letter-spacing: -.02em; color: var(--bone); transition: color .4s, transform .5s var(--ease-out); }
.chip:hover .num, .chip:focus-visible .num { color: var(--ember); transform: translateY(-3px); }
.chip .tx { position: absolute; left: 0; bottom: calc(100% + 18px); width: 210px; padding: 14px 16px; border: 1px solid var(--rule); background: rgba(var(--ink-rgb), .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .4s var(--ease), transform .5s var(--ease-out); }
.chip .tx b { display: block; font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--bone); }
.chip .tx span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--body); }
.chip:hover .tx, .chip:focus-visible .tx { opacity: 1; transform: none; }
.peek { position: absolute; right: var(--pad); bottom: 63px; z-index: 2; width: 230px; }
.peek-frame { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--rule); background: var(--ink-2); }
.peek-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.9) brightness(.86); }
.peek:hover .peek-frame img { transform: scale(1.06); filter: none; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play svg { width: 44px; height: 44px; transition: transform .6s var(--ease-out); }
.peek:hover .play svg { transform: scale(1.12); }
.peek-cap { display: flex; gap: 16px; margin-top: 9px; }
.peek-cap b { font-size: 26px; line-height: 1.12; writing-mode: vertical-rl; letter-spacing: .1em; color: var(--bone-2); font-weight: 200; }
.peek-cap i { font-style: normal; margin-top: 26px; font-size: 9px; letter-spacing: .3em; line-height: 1.6; text-transform: uppercase; color: var(--mute); }

/* ======================================================================
   Chapters
   ====================================================================== */
.chapter { position: relative; padding: 135px var(--pad) 110px; overflow-x: hidden; overflow-x: clip; }

/* 01 gate */
.gate-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 472px); gap: 60px; margin-top: 62px; align-items: start; }
.gate-grid .h-sec { max-width: 560px; margin-top: 26px; }
.gate-copy .lead { margin-top: 49px; }
.gate-copy .body { margin-top: 19px; }
.arrowlink { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--bone); }
.arrowlink .ar { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--rule); border-radius: 50%; overflow: hidden;
  transition: background-color .45s var(--ease), border-color .45s, transform .5s var(--ease-out); }
.arrowlink .ar svg { width: 12px; height: 12px; transition: transform .5s var(--ease-out); }
.arrowlink:hover .ar { background: var(--bone); border-color: var(--bone); color: var(--ink); transform: rotate(45deg); }
.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 98px; border-top: 1px solid var(--rule-soft); padding-top: 25px; }
.stats li { padding: 18px 18px 22px; border-left: 1px solid var(--rule-soft); }
.stats b { display: block; font-size: clamp(30px, 2.25vw, 40px); font-weight: 300; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 9px; font-size: 9px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }

/* 02 courts — cloth cards */
.cards { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 2.07fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px; margin-top: 44px; }
.card { position: relative; margin: 0; }
.card--xl { grid-row: span 2; display: flex; flex-direction: column; }
.card-fr { position: relative; display: block; overflow: hidden; border-radius: 18px; background: var(--ink-2); outline: 1px solid rgba(var(--bone-rgb), .08); outline-offset: -1px; transition: outline-color .5s var(--ease); }
.card--xl .card-fr { flex: 1; min-height: 520px; }
.card:not(.card--xl) .card-fr { aspect-ratio: 433 / 303; }
.card-fr:hover { outline-color: rgba(var(--bone-rgb), .22); }
.card-fr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease); }
.cloth-on .card-fr img { opacity: 0; }
.card-glow { position: absolute; z-index: 3; width: 60%; aspect-ratio: 1; left: 20%; top: -25%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--glow-rgb), .16), transparent); opacity: 0; transition: opacity .6s var(--ease); }
.card-fr:hover .card-glow { opacity: 1; }
.card-lab { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; pointer-events: none; }
.card-lab b { font-size: 16px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: var(--bone); }
.card-lab .jp { font-size: 11px; letter-spacing: .3em; color: var(--bone-2); font-weight: 300; }
.card-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.cloth { position: absolute; z-index: 1; pointer-events: none; left: -48px; top: -48px; }
@media (max-width: 820px) { .cloth { left: -20px; top: -20px; } }

/* 03 craft */
.craft-head { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 794px); gap: 60px; margin-top: 62px; }
.craft-head .h-sec { max-width: 520px; margin-top: 26px; }
.craft-head p { margin-top: 41px; }
.craft-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 54px; border: 1px solid var(--rule); }
.cell { position: relative; grid-column: span 3; min-height: 250px; padding: 24px 24px 28px; background: rgba(var(--ink-rgb), .84); border-left: 1px solid var(--rule-soft); border-top: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; transition: padding .5s var(--ease-out), background-color .5s var(--ease); }
.cell:nth-child(n+3) { grid-column: span 2; }
.cell:nth-child(1), .cell:nth-child(3) { border-left: 0; }
.cell:nth-child(-n+2) { border-top: 0; }
.cell .n { font-size: 10px; letter-spacing: .24em; color: var(--mute); transition: color .4s; }
.cell h3 { margin-top: 18px; font-size: clamp(22px, 1.9vw, 30px); font-weight: 400; line-height: 1.2; letter-spacing: -.005em; }
.cell h3 em { font-style: normal; font-family: var(--jp); font-weight: 300; font-size: .7em; letter-spacing: .2em; color: var(--bone-2); margin-left: 6px; }
.cell p { margin-top: 14px; max-width: 310px; font-size: 13px; line-height: 1.62; color: var(--body); letter-spacing: .01em; }
.cell .t { margin-top: auto; padding-top: 24px; font-size: 10px; letter-spacing: .2em; color: var(--mute); }
.cell .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--verm); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out); }
.cell:hover { background: linear-gradient(180deg, var(--cell-hover-a), var(--cell-hover-b)); padding-left: 30px; }
.cell:hover .n { color: var(--ember); }
.cell:hover .bar { transform: scaleX(1); }

/* 04 nightfall */
.finale { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; padding-bottom: 120px; }
.finale .eyebrow { position: relative; z-index: 2; }
.h-fin { position: absolute; z-index: 2; right: var(--pad); top: 50%; font-size: min(clamp(56px, 5.7vw, 104px), calc(78svh / (var(--len, 9) * .64))); line-height: .94; letter-spacing: -.03em; writing-mode: vertical-rl; transform: translateY(-50%); white-space: nowrap; }
.finale .body-lg { position: relative; z-index: 2; max-width: 440px; margin-top: 110px; }
.cta { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 16px; align-self: flex-start; margin-top: 110px; padding: 18px 30px; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--bone); isolation: isolate; transition: color .45s var(--ease), border-color .45s; }
.cta::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--bone); border-radius: inherit; transform: translateY(101%); transition: transform .62s var(--ease-out); }
.cta svg { width: 12px; height: 12px; transition: transform .5s var(--ease-out); }
.cta:hover { color: var(--ink); border-color: var(--bone); }
.cta:hover::before { transform: none; }
.cta:hover svg { transform: translate(2px, -2px); }

/* footer */
.foot { position: relative; z-index: 2; padding: 72px var(--pad) 0; border-top: 1px solid var(--rule-soft); background: linear-gradient(180deg, rgba(var(--ink-rgb), .55), rgba(var(--ink-rgb), .88) 40%, rgba(var(--ink-rgb), .96)); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.foot-brand { grid-column: 1 / -1; display: flex; gap: 32px; align-items: flex-start; padding-bottom: 42px; border-bottom: 1px solid var(--rule-soft); }
.foot-brand .mark { width: 42px; height: 42px; flex: none; margin-top: 6px; }
.foot-brand p { max-width: 960px; font-size: clamp(20px, 2vw, 34px); line-height: 1.35; color: var(--bone-2); font-weight: 300; }
.foot-col { padding-top: 64px; padding-bottom: 50px; }
.foot-col + .foot-col { border-left: 1px solid var(--rule-soft); padding-left: 32px; }
.foot-col h4 { font-size: 9px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.foot-col ul { margin-top: 22px; display: grid; gap: 9px; }
.foot-col a, .foot-col li { font-size: 13px; color: var(--bone-2); }
.foot-col a { position: relative; display: inline-block; transition: color .3s, transform .5s var(--ease-out); }
.foot-col a::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 1px; background: var(--verm); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease-out); }
.foot-col a:hover { color: var(--bone); transform: translateX(8px); }
.foot-col a:hover::before { transform: scaleX(1); }
.foot-base { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 24px 0 30px; border-top: 1px solid var(--rule-soft); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.foot-base .jp { font-size: 10px; letter-spacing: .2em; text-transform: none; font-weight: 300; }
.foot-base span:last-child { text-align: right; }

/* ======================================================================
   Foreground stage — alpha cut-outs pinned to the viewport bottom
   ====================================================================== */
.fg-stage { position: fixed; inset: 0; z-index: 52; pointer-events: none; overflow: hidden; }
.fg { position: absolute; inset: 0; transform: translate3d(0, var(--py, 0px), 0); }
.fg-el { position: absolute; display: block; opacity: 0; transform: translate3d(var(--fx, 0px), var(--fy, 34px), 0); filter: blur(8px);
  transition: opacity .9s var(--ease), transform 1.3s var(--ease-out), filter .9s var(--ease); will-change: opacity, transform; }
.fg-el img { width: 100%; height: auto; filter: saturate(.9) brightness(.86); transform-origin: var(--ox, 50%) var(--oy, 100%); }
.fg.is-on .fg-el { opacity: 1; transform: none; filter: blur(0); transition-delay: var(--d, 0ms); }
.fg.is-off .fg-el { opacity: 0; filter: blur(12px); transform: translate3d(0, 22px, 0); transition-duration: .85s, 1s, .85s; transition-delay: 0ms; }
.fg-flip img { transform: scaleX(-1); }
.fg-sway img { animation: sway 7.5s var(--ease-io) infinite alternate; }
.fg-flip.fg-sway img { animation-name: sway-flip; }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.2deg); } }
@keyframes sway-flip { from { transform: scaleX(-1) rotate(-1.4deg); } to { transform: scaleX(-1) rotate(1.2deg); } }
.reduced .fg-sway img { animation: none; }

/* ======================================================================
   Chapter rail
   ====================================================================== */
.rail { position: fixed; right: calc(var(--pad) - 18px); top: 50%; z-index: 57; display: grid; gap: 12px; transform: translateY(-50%); }
.rail button { position: relative; display: flex; justify-content: flex-end; width: 22px; height: 10px; }
.rail button i { width: 14px; height: 1px; margin-top: 4.5px; background: rgba(var(--bone-rgb), .26); transition: width .5s var(--ease-out), background-color .5s var(--ease-out); }
.rail button:hover i { width: 18px; background: rgba(var(--bone-rgb), .6); }
.rail button.is-on i { width: 22px; background: var(--bone); }
.rail button span { position: absolute; right: 32px; top: 50%; white-space: nowrap; font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--bone-2);
  opacity: 0; transform: translate(6px, -50%); transition: opacity .35s var(--ease), transform .45s var(--ease-out); pointer-events: none; }
.rail button:hover span, .rail button:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* ======================================================================
   Section library (engine additions) — same visual language as the benchmark
   ====================================================================== */
/* split + media: copy beside a single cloth plate */
.feature { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 110px); margin-top: 62px; align-items: center; }
.feature.is-flip .feature-media { order: -1; }
.feature .h-sec { max-width: 560px; }
.feature-copy .lead { margin-top: 44px; }
.feature-copy .body { margin-top: 19px; }
.feature-media .card-fr { aspect-ratio: 5 / 6; }
.feature .cloth { left: -48px; top: -48px; }

/* gallery: a row of cloth plates */
.cards--row { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-template-rows: auto; }
.cards--row .card:not(.card--xl) .card-fr { aspect-ratio: 4 / 5; }

/* grid variants by cell count */
.craft-grid[data-n="3"] .cell, .craft-grid[data-n="6"] .cell { grid-column: span 2; }
.craft-grid[data-n="3"] .cell:nth-child(n) { border-top: 0; }
.craft-grid[data-n="3"] .cell:nth-child(2), .craft-grid[data-n="3"] .cell:nth-child(3) { border-left: 1px solid var(--rule-soft); }
.craft-grid[data-n="6"] .cell:nth-child(3) { border-top: 0; border-left: 1px solid var(--rule-soft); }
.craft-grid[data-n="6"] .cell:nth-child(4) { border-left: 0; }
.craft-grid[data-n="4"] .cell, .craft-grid[data-n="4"] .cell:nth-child(n+3) { grid-column: span 3; }
.craft-grid[data-n="4"] .cell:nth-child(3) { border-left: 0; }
.craft-grid[data-n="4"] .cell:nth-child(4) { border-left: 1px solid var(--rule-soft); }

/* list: rows (services, rooms, menus, programmes) */
.rows { position: relative; z-index: 2; margin-top: 54px; border-top: 1px solid var(--rule); }
.row { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(90px, auto); gap: 28px; align-items: baseline; padding: 28px 20px 28px 0;
  border-bottom: 1px solid var(--rule-soft); background: rgba(var(--ink-rgb), .62); transition: padding .5s var(--ease-out), background-color .5s var(--ease); }
.row .n { padding-left: 22px; font-size: 10px; letter-spacing: .24em; color: var(--mute); transition: color .4s; }
.row h3 { font-size: clamp(20px, 1.75vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -.005em; }
.row h3 em { font-style: normal; font-family: var(--jp); font-weight: 300; font-size: .7em; letter-spacing: .2em; color: var(--bone-2); margin-left: 6px; }
.row p { max-width: 470px; font-size: 13px; line-height: 1.62; color: var(--body); }
.row .t { justify-self: end; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-2); white-space: nowrap; }
.row .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--verm); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out); }
.row:hover { background: linear-gradient(90deg, var(--cell-hover-a), var(--cell-hover-b)); padding-left: 10px; }
.row:hover .n { color: var(--ember); }
.row:hover .bar { transform: scaleX(1); }

/* quote */
.quote { position: relative; z-index: 2; margin: 62px 0 0; max-width: 1180px; }
.h-quote { font-size: clamp(28px, 3.3vw, 60px); line-height: 1.12; letter-spacing: -.016em; text-transform: none; }
.quote-by { display: flex; align-items: center; gap: 16px; margin-top: 44px; }
.quote-by i { width: 44px; height: 1px; background: var(--verm); }
.quote-by b { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--bone); }
.quote-by span { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.quotes { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 84px; border-top: 1px solid var(--rule-soft); }
.quotes li { padding: 26px 28px 8px 0; }
.quotes li + li { border-left: 1px solid var(--rule-soft); padding-left: 28px; }
.quotes p { font-size: 14px; line-height: 1.68; color: var(--bone-3); }
.quotes span { display: block; margin-top: 16px; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }

/* faq */
.faq, .contact { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 794px); gap: 60px; margin-top: 62px; align-items: start; }
.faq .h-sec, .contact .h-sec { max-width: 500px; }
.faq .body-lg, .contact .body-lg { margin-top: 36px; max-width: 460px; }
.qa-list { border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule-soft); background: rgba(var(--ink-rgb), .6); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 22px; cursor: pointer;
  font-size: clamp(15px, 1.2vw, 19px); font-weight: 400; line-height: 1.4; color: var(--bone); transition: padding .5s var(--ease-out), color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 14px; height: 14px; flex: none; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--verm); transition: transform .5s var(--ease-out); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa summary:hover { padding-left: 30px; }
.qa-a { padding: 0 22px 26px; max-width: 640px; font-size: 14px; line-height: 1.72; color: var(--body); }
.qa[open] .qa-a { animation: qa-in .7s var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-8px); } }

/* contact */
.contact .cta { margin-top: 48px; }
.contact-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); }
.contact-cols > div { padding: 26px 22px 30px; border-left: 1px solid var(--rule-soft); background: rgba(var(--ink-rgb), .72); }
.contact-cols > div:first-child { border-left: 0; }
.contact-cols h4 { font-size: 9px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.contact-cols p, .contact-cols a { display: block; margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--bone-3); }
.contact-cols a { transition: color .3s; }
.contact-cols a:hover { color: var(--ember); }

@media (max-width: 1100px) {
  .feature, .faq, .contact { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .feature.is-flip .feature-media { order: 0; }
  .craft-grid[data-n="3"] .cell, .craft-grid[data-n="6"] .cell, .craft-grid[data-n="4"] .cell { grid-column: span 1; }
  .craft-grid[data-n="3"] .cell:nth-child(3) { grid-column: span 2; border-left: 0; border-top: 1px solid var(--rule-soft); }
}
@media (max-width: 820px) {
  .feature { margin-top: 44px; }
  .feature-media .card-fr { aspect-ratio: 350 / 400; }
  .cards--row { grid-template-columns: minmax(0, 1fr); }
  .cards--row .card:not(.card--xl) .card-fr { aspect-ratio: 350 / 300; }
  .row { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 14px; padding: 22px 18px 22px 0; }
  .row .n { padding-left: 14px; }
  .row p, .row .t { grid-column: 2; }
  .row .t { justify-self: start; margin-top: 6px; }
  .h-quote { font-size: clamp(24px, 6.6vw, 36px); }
  .quotes { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .quotes li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-soft); }
  .faq, .contact { margin-top: 44px; }
  .contact-cols { grid-template-columns: minmax(0, 1fr); }
  .contact-cols > div { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .contact-cols > div:first-child { border-top: 0; }
  .craft-grid[data-n] .cell { grid-column: auto !important; border-left: 0 !important; }
}

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1100px) {
  .gate-grid, .craft-head { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gate-copy .lead, .craft-head p { margin-top: 36px; }
  .gate-copy { max-width: 620px; }
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
  .cell, .cell:nth-child(n+3) { grid-column: span 1; }
  .cell:nth-child(5) { grid-column: span 2; }
  .cell:nth-child(3) { border-left: 0; }
  .cell:nth-child(4) { border-left: 1px solid var(--rule-soft); }
}
@media (max-width: 820px) {
  :root { --nav-h: 76px; }
  .links, .rail, .peek { display: none; }
  .burger { margin-left: auto; }
  .hero { padding-top: calc(var(--nav-h) + 30px); }
  .hero-copy { width: calc(100% - 64px); }
  .h-hero { font-size: clamp(24px, 6.7vw, 36px); }
  .hero .h-hero { margin-top: 18px; }
  .hero-sub { margin-top: 22px; max-width: 330px; font-size: 14px; }
  .hero-side { top: calc(var(--nav-h) + 26px); font-size: 28px; line-height: 1.2; }
  .hero-foot { width: 100%; padding-bottom: 28px; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; border-top: 0; margin-top: 0; padding-top: 0; }
  .chips > li { width: auto; }
  .chips > li.chip-more { display: none; }
  .chip .num { font-size: 30px; }
  .chip .tx { position: static; width: auto; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; transform: none; }
  .chip .tx b { margin-top: 12px; font-size: 9px; letter-spacing: .26em; }
  .chip .tx span { font-size: 11px; line-height: 1.45; color: var(--mute); }
  .cue { display: none; }
  .chapter { padding: 110px var(--pad) 90px; }
  .h-sec { font-size: clamp(28px, 7.4vw, 40px); }
  .gate-grid { margin-top: 44px; }
  .gate-grid .h-sec { margin-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 70px; padding-top: 0; border-top: 0; border: 1px solid var(--rule-soft); }
  .stats li:nth-child(odd) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card--xl { grid-row: auto; }
  .card--xl .card-fr { min-height: 0; aspect-ratio: 350 / 440; flex: none; }
  .card:not(.card--xl) .card-fr { aspect-ratio: 350 / 220; }
  .card-meta { margin-bottom: 14px; }
  .craft-head { margin-top: 44px; }
  .craft-head .h-sec { margin-top: 0; }
  .craft-grid { grid-template-columns: minmax(0, 1fr); margin-top: 60px; }
  .cell, .cell:nth-child(n+3), .cell:nth-child(5) { grid-column: auto; border-left: 0 !important; min-height: 0; padding: 26px 20px 22px; }
  .cell:nth-child(2) { border-top: 1px solid var(--rule-soft); }
  .cell .t { padding-top: 22px; }
  .finale { align-items: center; text-align: center; }
  .h-fin { position: relative; right: auto; top: auto; transform: none; writing-mode: horizontal-tb; margin-top: 26px; font-size: clamp(38px, 11vw, 60px); }
  .finale .body-lg { margin-top: 26px; }
  .cta { align-self: center; margin-top: 46px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-brand { flex-direction: column; gap: 24px; }
  .foot-col { padding-top: 38px; padding-bottom: 0; }
  .foot-col + .foot-col { border-left: 0; padding-left: 0; }
  .foot-base { grid-template-columns: 1fr; gap: 10px; margin-top: 56px; }
  .foot-base span:last-child { text-align: left; }
}
@media (hover: none), (pointer: coarse) { .cursor, .trail { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .cue i::after, .loader .mark { animation: none; }
}

/* ======================================================================
   Chapters that share the screen with a hero object (product stage): the copy keeps to one side.
   ====================================================================== */
/* one-sided chapters are a desktop layout: phones keep the normal single-column layouts */
@media (min-width: 821px) {
  .chapter.side-left > *, .chapter.side-right > * { width: min(100%, calc(50vw - var(--pad))); }
  .chapter.side-right > * { margin-left: auto; }
  .side-left .gate-grid, .side-right .gate-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .side-left .stats, .side-right .stats { grid-template-columns: repeat(2, 1fr); margin-top: 70px; }
  .side-left .feature, .side-right .feature { grid-template-columns: minmax(0, 1fr); }
  .side-left .rows, .side-right .rows { margin-top: 44px; }
  .side-left .craft-head, .side-right .craft-head { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .side-left .row, .side-right .row { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; }
  .side-left .row .t, .side-right .row .t { display: none; }
}

/* steps: a process or a timeline; the line draws across as the steps reveal */
.steps { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin-top: 60px; padding-top: 46px; list-style: none; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); }
.steps::after { background: var(--verm); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s var(--ease-out) .15s; }
.steps:has(> .is-in)::after { transform: none; }
.step { position: relative; padding: 0 30px 10px 0; }
.step::before { content: ""; position: absolute; left: 0; top: -51px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--bone-2); transition: background-color .6s var(--ease) .5s, border-color .6s var(--ease) .5s, box-shadow .6s var(--ease) .5s; }
.step.is-in::before { background: var(--verm); border-color: var(--verm); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .16); }
.step .n { font-size: 10px; letter-spacing: .24em; color: var(--mute); }
.step .when { display: block; margin-top: 10px; font-family: var(--jp); font-size: 15px; color: var(--ember); }
.step h3 { margin-top: 14px; font-size: clamp(20px, 1.6vw, 27px); font-weight: 400; line-height: 1.2; letter-spacing: -.005em; }
.step h3 em { font-style: normal; font-family: var(--jp); font-weight: 300; font-size: .7em; letter-spacing: .12em; color: var(--bone-2); margin-left: 6px; }
.step p { margin-top: 12px; max-width: 290px; font-size: 13px; line-height: 1.62; color: var(--body); }
@media (min-width: 821px) { .side-left .steps, .side-right .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }

/* pricing: two to four plans, one can be featured */
.plans { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); margin-top: 54px; border: 1px solid var(--rule); list-style: none; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 28px 32px; background: rgba(var(--ink-rgb), .84); border-left: 1px solid var(--rule-soft); transition: background-color .5s var(--ease), padding .5s var(--ease-out); }
.plan:first-child { border-left: 0; }
.plan .n { font-size: 10px; letter-spacing: .24em; color: var(--mute); transition: color .4s; }
.plan h3 { margin-top: 18px; font-size: clamp(22px, 1.9vw, 30px); font-weight: 400; line-height: 1.2; letter-spacing: -.005em; }
.plan h3 em { font-style: normal; font-family: var(--jp); font-weight: 300; font-size: .7em; letter-spacing: .12em; color: var(--bone-2); margin-left: 6px; }
.plan .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 26px; }
.plan .price b { font-family: var(--display-font); font-weight: var(--display-weight); font-size: clamp(40px, 3.4vw, 60px); line-height: 1; letter-spacing: -.02em; color: var(--bone); }
.plan .price span { font-size: 12px; letter-spacing: .06em; color: var(--bone-2); }
.plan > p:not(.price) { margin-top: 16px; max-width: 320px; font-size: 13px; line-height: 1.62; color: var(--body); }
.plan ul { margin: 22px 0 30px; padding-top: 18px; border-top: 1px solid var(--rule-soft); list-style: none; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--bone-3); }
.plan li::before { content: ""; position: absolute; left: 0; top: .66em; width: 8px; height: 1px; background: var(--verm); }
.plan .cta { margin-top: auto; }
.plan .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--verm); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out); }
.plan:hover { padding-left: 34px; }
.plan:hover .n { color: var(--ember); }
.plan:hover .bar { transform: scaleX(1); }
.plan.is-featured { background: linear-gradient(180deg, var(--cell-hover-a), var(--cell-hover-b)); }
.plan.is-featured::after { content: attr(data-flag); position: absolute; top: 26px; right: 24px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.plans-note { position: relative; z-index: 2; margin-top: 18px; font-size: 12px; color: var(--mute); }
.side-left .plans, .side-right .plans { grid-template-columns: minmax(0, 1fr); }
.side-left .plan, .side-right .plan { border-left: 0; border-top: 1px solid var(--rule-soft); }
.side-left .plan:first-child, .side-right .plan:first-child { border-top: 0; }
@media (max-width: 1100px) {
  .plans[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans[data-n="4"] .plan:nth-child(3) { border-left: 0; }
  .plans[data-n="4"] .plan:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
  .steps[data-n="5"], .steps[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 820px) {
  .steps, .steps[data-n] { grid-template-columns: minmax(0, 1fr); margin-top: 44px; padding: 0 0 0 30px; row-gap: 0; }
  .steps::before, .steps::after { left: 4px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: 50% 0; }
  .steps:has(> .is-in)::after { transform: none; }
  .step { padding: 0 0 34px; }
  .step::before { left: -30px; top: 3px; }
  .plans, .plans[data-n] { grid-template-columns: minmax(0, 1fr); }
  .plan, .plans[data-n] .plan { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .plan:first-child { border-top: 0; }
}

/* Callouts pinned to object parts */
.callouts { position: fixed; inset: 0; z-index: 42; pointer-events: none; }
.callout { position: absolute; left: 0; top: 0; margin: 0; opacity: 0; transition: opacity .5s var(--ease); will-change: transform; }
.callout.is-on { opacity: 1; transition-duration: .9s; }
.callout i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--verm); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18), 0 0 14px rgba(var(--accent-rgb), .7); }
.callout .ln { position: absolute; left: 0; bottom: 6px; width: 1px; height: 54px; background: linear-gradient(0deg, rgba(var(--bone-rgb), .55), rgba(var(--bone-rgb), .12)); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .8s var(--ease-out); }
.callout.is-on .ln { transform: none; }
.callout .tx { position: absolute; left: -2px; bottom: 66px; display: grid; gap: 4px; white-space: nowrap; }
.callout .tx b { font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--bone); }
.callout .tx span { font-size: 12px; letter-spacing: .01em; color: var(--bone-2); }
.callout.below .ln { bottom: auto; top: 6px; transform-origin: 50% 0; background: linear-gradient(180deg, rgba(var(--bone-rgb), .55), rgba(var(--bone-rgb), .12)); }
.callout.below .tx { bottom: auto; top: 66px; }
.callout.left .tx { left: auto; right: -2px; text-align: right; }
@media (max-width: 820px) {
  .chapter.side-left > *, .chapter.side-right > * { width: auto; margin-left: 0; }
  .callout .tx span { display: none; }
}

/* ======================================================================
   Light pages (theme.mode = "light"). The site's tokens flip ink/bone; these soften the effects that
   assume a dark page: vignette and grain lighten, cut-outs and previews keep their own brightness.
   ====================================================================== */
.theme-light .vignette { background:
    radial-gradient(120% 90% at 50% 45%, transparent 62%, rgba(var(--shade-rgb), .14) 100%),
    linear-gradient(180deg, rgba(var(--shade-rgb), .08) 0%, transparent 14%, transparent 86%, rgba(var(--shade-rgb), .08) 100%); }
.theme-light .grain { opacity: .06; mix-blend-mode: multiply; }
.theme-light ::selection { color: var(--ink); }
.theme-light .fallback-sky img { opacity: .9; filter: none; }
.theme-light .fg-el img, .theme-light .peek-frame img { filter: none; }
@media (max-width: 820px) { .callouts { display: none; } }

/* phones: the stage sits behind the copy, so on dark pages a soft halo keeps text legible over bright highlights */
@media (max-width: 820px) {
  html:not(.theme-light) :is(.hero, .chapter) :is(h1, h2, h3, p, li, dt, dd, summary) {
    text-shadow: 0 0 22px rgba(var(--ink-rgb), .7), 0 1px 3px rgba(var(--ink-rgb), .5);
  }
}
