/* SANJIRO detail prototype — WEB_MOTION_PLAN v0.1 / v0.2 LIVING.
   One event per screen; the amber 1 px line is the UI signature (loader, progress, wipe, cursor ring, CTA underline).
   Motion tokens: fast 240 / base 600 / cinematic 1200–1600 ms; expo.out for entrances, power3.inOut for transitions.
   Every interactive element defines default / hover / pressed / focus / loading / disabled / reduced-motion. */

@font-face { font-family: 'SUIT'; src: url('../assets/fonts/SUIT-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'SNJ Dash'; src: url('../assets/fonts/SNJDash-Regular.woff2') format('woff2'); unicode-range: U+2013; font-display: swap; }
@font-face { font-family: 'SNJ Dash'; src: url('../assets/fonts/Satoshi-Regular.otf') format('opentype'); unicode-range: U+2014; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../assets/fonts/Satoshi-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../assets/fonts/Satoshi-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }

:root {
  --ink: #0E0F11; --paper: #F4F1EA; --bone: #E9E5DC; --stone: #8C877E; --basalt: #2A2A2C; --amber: #D98A3A; --light: #ECE9E2;
  --dim: rgba(236, 233, 226, .64); --line-d: rgba(236, 233, 226, .16); --line-l: rgba(14, 15, 17, .14);
  --kr: 'SNJ Dash', 'SUIT', system-ui, sans-serif; --lat: 'SNJ Dash', 'Satoshi', 'SUIT', system-ui, sans-serif;
  --gx: clamp(16px, 4.45vw, 64px); --rail-w: 0px;
  --fast: 240ms; --base: 600ms; --cine: 1400ms;
  --expo: cubic-bezier(.16, 1, .3, 1); --inout: cubic-bezier(.65, 0, .35, 1);
}
@media (min-width: 861px) { :root { --rail-w: 72px; } }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--light); font: 400 16px/1.6 var(--kr); overflow-x: clip; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; background-size: cover; background-position: center; }
figure, h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gx); padding-right: calc(var(--gx) + var(--rail-w)); }
.kicker { font: 500 12px/1.4 var(--lat); letter-spacing: .12em; color: var(--stone); }
.kicker .kn { color: var(--light); margin-right: .8em; }
.tag { display: inline-block; font: 500 11px/1 var(--kr); padding: 5px 7px 4px; border: 1px solid currentColor; border-radius: 2px; opacity: .8; white-space: nowrap; }
.paper { background: var(--paper); color: var(--ink); }
.ink { background: var(--ink); color: var(--light); }
html.fine, html.fine * { cursor: none; }
html.fine input, html.fine [contenteditable] { cursor: text; }

/* ---------------------------------------------------------------- cursor (B1) */
.cursor { position: fixed; z-index: 200; left: 0; top: 0; pointer-events: none; display: none; }
html.fine .cursor { display: block; }
.cur-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--light); mix-blend-mode: difference; }
.cur-ring { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 999px; border: 1px solid var(--amber); opacity: 0; transform: scale(.4);
  transition: opacity var(--fast) var(--expo), transform var(--fast) var(--expo), width var(--fast) var(--expo), height var(--fast) var(--expo), margin var(--fast) var(--expo); display: grid; place-items: center; }
.cur-l { font: 500 10.5px/1 var(--kr); color: var(--light); white-space: nowrap; letter-spacing: .02em; opacity: 0; transition: opacity var(--fast); }
.cursor[data-c="link"] .cur-ring { opacity: 1; transform: none; }
.cursor[data-c="link"] .cur-dot { opacity: 0; }
.cursor[data-c="view"] .cur-ring, .cursor[data-c="drag"] .cur-ring, .cursor[data-c="360"] .cur-ring { opacity: 1; transform: none; width: 76px; height: 76px; margin: -38px 0 0 -38px; background: rgba(14, 15, 17, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cursor[data-c="view"] .cur-l, .cursor[data-c="drag"] .cur-l, .cursor[data-c="360"] .cur-l { opacity: 1; }
.cursor[data-c="time"] .cur-ring { opacity: 1; transform: none; border-radius: 50%; border-style: dashed; }
.cursor[data-c="text"] .cur-dot { width: 2px; height: 22px; margin: -11px 0 0 -1px; border-radius: 1px; }
.cursor.is-down .cur-ring { transform: scale(.86); }

/* ---------------------------------------------------------------- header (B9) */
.hd { position: fixed; z-index: 60; inset: 0 0 auto 0; height: 56px; display: flex; align-items: center; gap: 18px; padding: 0 var(--gx); background: linear-gradient(180deg, rgba(5, 6, 8, .55), rgba(5, 6, 8, 0)); transition: transform var(--base) var(--expo); }
.hd.is-hidden { transform: translateY(-100%); }
.wordmark { display: flex; gap: 10px; align-items: baseline; text-decoration: none; margin-right: auto; }
.wordmark b { font: 500 15px/1 var(--lat); letter-spacing: .2em; }
.wordmark span { font-size: 12px; color: var(--dim); }
.now { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--kr); color: var(--dim); }
.now-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(217, 138, 58, .6); animation: pulse 2.4s var(--inout) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(217, 138, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 138, 58, 0); } }
.proto-badge { font: 500 10.5px/1 var(--kr); border: 1px dashed rgba(236, 233, 226, .45); padding: 5px 8px; color: var(--dim); }
.hd-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--amber); transform-origin: 0 0; transform: scaleX(0); }
@media (max-width: 560px) { .proto-badge { display: none; } .wordmark span { display: none; } }

/* ---------------------------------------------------------------- altitude rail (B5) */
.rail { position: fixed; z-index: 50; right: 14px; top: 50%; height: min(58vh, 520px); width: 60px; transform: translateY(-50%); pointer-events: none; opacity: 0; transition: opacity var(--base); }
.rail.is-on { opacity: 1; }
.rail::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .3; }
.rail ol { position: absolute; inset: 0; }
.rl-t { position: absolute; right: 0; bottom: calc(var(--y) * 100%); transform: translateY(50%); }
.rl-t button { pointer-events: auto; position: relative; display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding: 4px 12px 4px 4px; font: 400 9.5px/1 var(--lat); white-space: nowrap; opacity: .5; transition: opacity var(--fast); }
.rl-t button::after { content: ''; position: absolute; right: 0; top: 50%; width: 6px; height: 1px; background: currentColor; }
.rl-n { max-width: 0; overflow: hidden; opacity: 0; transition: max-width var(--base) var(--expo), opacity var(--fast); }
.rl-t button:hover .rl-n, .rl-t button:focus-visible .rl-n, .rl-t.is-cur .rl-n { max-width: 90px; opacity: 1; }
.rl-t button:hover, .rl-t.is-cur button { opacity: 1; }
.rl-t button:active { transform: translateX(-2px); }
.rl-t button[aria-disabled="true"] { opacity: .28; }
.rl-t button[aria-disabled="true"]:hover { opacity: .5; }
.rl-47 { right: 58px; }
.rl-47 button { padding-right: 12px; }
.rl-47 .rl-v { display: none; }
.rl-47 button::after { width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; background: none; margin-top: -3px; }
.rl-summit button::after { width: 12px; background: var(--amber); }
.rl-summit.glow button::after { box-shadow: 0 0 10px 2px rgba(217, 138, 58, .6); transition: box-shadow 1.2s; }
.rl-mark { position: absolute; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); bottom: 0; transform: translateY(50%); }
@media (max-width: 860px) { .rail { display: none; } }

/* ---------------------------------------------------------------- image entrance (B4) */
.img-in { overflow: hidden; }
html.motion .img-in img { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.2s var(--expo), transform 1.2s var(--expo), filter 400ms; }
html.motion .img-in.is-in img { clip-path: inset(0 0 0 0); transform: none; }
img.is-loading { filter: blur(14px); }
.img-in:hover img { filter: brightness(1.04); }
.img-in figcaption .tag { transform: translateY(6px); opacity: 0; transition: transform var(--fast) var(--expo), opacity var(--fast); }
.img-in:hover figcaption .tag, .img-in:focus-within figcaption .tag { transform: none; opacity: .8; }
html.rm .img-in figcaption .tag { transform: none; opacity: .8; }

/* ---------------------------------------------------------------- typography (B2) */
.reveal-lines .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.reveal-lines .ln-i { display: block; }
html.motion .reveal-lines.split .ln-i { transform: translateY(105%); filter: blur(4px); transition: transform 1.1s var(--expo), filter 1.1s var(--expo); transition-delay: calc(var(--i) * 80ms); }
html.motion .reveal-lines.split.is-in .ln-i { transform: none; filter: none; }
html.motion .fade-up { opacity: 0; transform: translateY(12px); transition: opacity var(--base) var(--expo), transform var(--base) var(--expo); }
html.motion .fade-up.is-in { opacity: 1; transform: none; }
html.motion .k-open { letter-spacing: .3em; opacity: 0; transition: letter-spacing 1.2s var(--expo), opacity var(--base); }
html.motion .k-open.is-in { letter-spacing: .12em; opacity: 1; }
h1, h2 { text-wrap: balance; }
.odo { display: inline-flex; font-family: var(--lat); font-feature-settings: 'tnum' 1, 'lnum' 1; line-height: 1; vertical-align: baseline; }
.odo .od { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo .od-c { display: flex; flex-direction: column; transition: transform 1.1s var(--expo); transition-delay: calc(var(--i) * 45ms); }
.odo .od-c span { height: 1em; }
.odo .od-s { opacity: 0; transition: opacity var(--base) var(--expo) .6s; }
.odo.is-in .od-s { opacity: 1; }
html.rm .odo .od-c { transition: none; }
.odo-xl { font-size: clamp(56px, 8vw, 128px); letter-spacing: -.03em; font-weight: 400; }

/* ---------------------------------------------------------------- buttons, chips, toggles (B3): 7 states */
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 500 14px/1 var(--kr); color: var(--light);
  transition: transform var(--fast) var(--expo), background var(--fast), color var(--fast), opacity var(--fast); will-change: transform; }
.btn-line { border: 1px solid rgba(236, 233, 226, .32); }
.btn-draw { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; }
.btn-draw rect { width: calc(100% - 2px); height: calc(100% - 2px); fill: none; stroke: var(--amber); stroke-width: 1; stroke-dasharray: var(--per, 600); stroke-dashoffset: var(--per, 600); transition: stroke-dashoffset 800ms var(--expo); }
.btn-line:hover .btn-draw rect, .btn-line:focus-visible .btn-draw rect { stroke-dashoffset: 0; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.btn[data-loading] { pointer-events: none; }
.btn[data-loading]::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 9px; height: 1px; background: linear-gradient(90deg, transparent, var(--amber), transparent); background-size: 50% 100%; animation: load 1.1s linear infinite; }
@keyframes load { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.btn[aria-disabled="true"], .chip[aria-disabled="true"], .tog[aria-disabled="true"] { opacity: .38; pointer-events: auto; }
.btn-ghost { border: 1px solid rgba(236, 233, 226, .24); background: rgba(14, 15, 17, .3); min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-ghost:hover { background: rgba(236, 233, 226, .12); }
.btn-ic { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border: 1px solid rgba(236, 233, 226, .24); border-radius: 999px; font: 500 13px/1 var(--kr); background: rgba(14, 15, 17, .4); transition: background var(--fast), border-color var(--fast), transform var(--fast) var(--expo), opacity var(--fast); }
.btn-ic:hover { background: rgba(236, 233, 226, .14); border-color: rgba(236, 233, 226, .5); }
.btn-ic:active { transform: scale(.96); }
.btn-ic:disabled, .btn-ic[aria-disabled="true"] { opacity: .3; }
.chip { position: relative; overflow: hidden; min-height: 36px; padding: 0 14px; border: 1px solid rgba(236, 233, 226, .3); border-radius: 999px; font: 500 12.5px/1 var(--kr); color: var(--light); background: rgba(14, 15, 17, .3); }
.chip::before { content: ''; position: absolute; inset: 0; background: var(--light); transform: scaleY(0); transform-origin: 50% 0; transition: transform var(--base) var(--expo); }
.chip span { position: relative; transition: color var(--fast); }
.chip.is-on::before { transform: scaleY(1); }
.chip.is-on span { color: var(--ink); }
.chip:hover:not(.is-on) { border-color: rgba(236, 233, 226, .7); }
.chip:active { transform: scale(.97); }
.tog { min-height: 40px; padding: 0 16px; border: 1px solid rgba(236, 233, 226, .3); border-radius: 999px; font: 500 13px/1 var(--kr); }
.tog[aria-pressed="true"] { background: var(--light); color: var(--ink); }
html.rm .btn, html.rm .chip::before, html.rm .btn-draw rect { transition: none; }
.link { text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) 100% 100% / 0 1px no-repeat; transition: background-size var(--base) var(--expo); }
.link:hover, .link:focus-visible { background-position: 0 100%; background-size: 100% 1px; }

/* ---------------------------------------------------------------- shared stage */
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .035; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(12) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -5%); } 75% { transform: translate(-2%, -3%); } 100% { transform: translate(4%, 2%); } }
html.rm .grain { animation: none; }
.tx-gl, .fl-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--base); }
.tx-gl.is-ready, .fl-gl.is-ready { opacity: 1; }

/* ---------------------------------------------------------------- 1. exterior time of day */
.tx { position: relative; height: 340vh; }
.tx-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.tx-media, .ax-media { position: absolute; inset: 0; background: #0b1424; overflow: hidden; }
.tx-img, .ax-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tx-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 6, 9, .78) 0, rgba(5, 6, 9, .1) 38%, rgba(5, 6, 9, 0) 58%), linear-gradient(180deg, rgba(5, 6, 9, .4), rgba(5, 6, 9, 0) 18%); pointer-events: none; }
.tx-copy { position: absolute; left: var(--gx); bottom: 178px; max-width: 640px; display: grid; gap: 12px; }
.tx-h { font: 300 clamp(32px, 4.2vw, 62px)/1.15 var(--kr); letter-spacing: -.02em; }
.tx-lead { display: grid; gap: 2px; color: var(--dim); font-size: 16px; }
.tx-views { position: absolute; top: 76px; right: calc(var(--gx) + var(--rail-w)); display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tx-ui { position: absolute; left: var(--gx); right: calc(var(--gx) + var(--rail-w)); bottom: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px 28px; align-items: end; }
.tx-clock { display: grid; gap: 4px; min-width: 140px; }
.tx-time { font: 400 34px/1 var(--lat); letter-spacing: -.02em; font-feature-settings: 'tnum' 1; }
.tx-state { font: 500 12px/1 var(--kr); color: var(--dim); }
.tx-sun { width: 120px; height: 44px; }
.tx-arc { fill: none; stroke: rgba(236, 233, 226, .3); stroke-width: 1; stroke-dasharray: 2 3; }
.tx-sundot { fill: var(--amber); }
.tx-scrub { position: relative; padding-top: 6px; }
.tx-track { position: relative; height: 26px; outline-offset: 6px; touch-action: none; }
.tx-track::before { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 1px; background: rgba(236, 233, 226, .3); }
.tx-fill { position: absolute; left: 0; top: 12px; height: 1px; width: 100%; background: var(--amber); transform-origin: 0 0; transform: scaleX(0); }
.tx-thumb { position: absolute; top: 1px; left: 0; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--ink); border: 1px solid var(--amber); display: grid; place-items: center; transition: transform var(--fast) var(--expo); }
.tx-thumb svg { width: 16px; height: 16px; fill: var(--amber); stroke: var(--amber); stroke-width: 1.2; }
.tx-track:hover .tx-thumb, .tx-track.is-drag .tx-thumb { transform: scale(1.18); }
.tx-track:focus-visible .tx-thumb { outline: 2px solid var(--amber); outline-offset: 3px; }
.tx-stops { position: relative; display: flex; justify-content: space-between; margin-top: 4px; }
.tx-stop-b { display: grid; justify-items: center; gap: 6px; min-height: 40px; padding: 4px 6px; font: 500 12px/1 var(--kr); color: var(--dim); transition: color var(--fast); }
.tx-stop-b i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tx-stop-b:hover, .tx-stop-b.is-cur { color: var(--light); }
.tx-stop-b.is-cur i { background: var(--amber); }
.tx-stop-b[aria-disabled="true"] { opacity: .3; }
.tx-stop-b[aria-disabled="true"] i { background: none; border: 1px solid currentColor; }
.tx-tag { position: absolute; top: 76px; left: var(--gx); color: var(--light); }
.tx-now[hidden] { display: none; }
@media (max-width: 860px) {
  .tx-copy { bottom: 210px; right: var(--gx); }
  .tx-views { top: auto; bottom: 168px; left: var(--gx); right: var(--gx); justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tx-ui { grid-template-columns: 1fr auto; bottom: 16px; }
  .tx-clock { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; }
  .tx-sun { display: none; }
  .tx-time { font-size: 26px; }
  .tx-scrub { grid-column: 1 / 2; }
}

/* ---------------------------------------------------------------- 1 m gap crossing */
.gap { position: relative; height: 220vh; }
.gap-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1400px; background: var(--ink); }
.gap-a, .gap-b { position: absolute; inset: 0; background-size: cover; background-position: center; }
.gap-a { transform-origin: 100% 50%; z-index: 2; }
.gap-b { z-index: 1; filter: brightness(.6); }
.gap-line { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--amber); transform: scaleY(0); transform-origin: 50% 0; }
.gap-copy { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: min(90vw, 760px); display: grid; gap: 14px; }
.gap-h { font: 300 clamp(30px, 4vw, 56px)/1.2 var(--kr); }
.gap-f { color: var(--dim); font-size: 15px; }

/* ---------------------------------------------------------------- 1147 intro */
.ax { position: relative; height: 300vh; }
.ax-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ax-img { object-position: 50% 40%; }
.ax-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 9, .82) 0, rgba(5, 6, 9, .35) 42%, rgba(5, 6, 9, 0) 64%), linear-gradient(0deg, rgba(5, 6, 9, .6), rgba(5, 6, 9, 0) 30%); pointer-events: none; }
.ax-copy { position: absolute; left: var(--gx); top: 50%; transform: translateY(-50%); max-width: 520px; display: grid; gap: 14px; }
.ax-h { font: 300 clamp(32px, 4vw, 60px)/1.15 var(--kr); letter-spacing: -.02em; }
.ax-lead { display: grid; gap: 2px; color: var(--dim); }
.ax-lines { position: relative; min-height: 3.4em; margin-top: 10px; border-top: 1px solid var(--line-d); padding-top: 12px; }
.ax-line { position: absolute; inset: 12px 0 auto 0; font-size: 15px; opacity: 0; transform: translateY(8px); transition: opacity var(--base) var(--expo), transform var(--base) var(--expo); }
.ax-line.is-cur { opacity: 1; transform: none; }
.ax-ui { grid-template-columns: 1fr; left: auto; width: min(520px, calc(100% - 2 * var(--gx))); }
@media (max-width: 860px) { .ax-copy { top: auto; bottom: 150px; transform: none; right: var(--gx); } .ax-ui { left: var(--gx); width: auto; } }
.ax-facts { padding-block: clamp(96px, 16vh, 180px); }
.axf-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.axf-h { font: 300 clamp(24px, 2.6vw, 38px)/1.3 var(--kr); margin: 8px 0 18px; }
.axf-num { color: var(--ink); }
.facts { display: grid; }
.fact { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-l); font-size: 15px; }
.fact dt { color: #6f6a62; }
.fact[data-status="assumption"] dd { border-left: 1px dashed #6f6a62; padding-left: 12px; }
@media (max-width: 860px) { .axf-grid { grid-template-columns: minmax(0, 1fr); } .fact { grid-template-columns: 84px 1fr; } }

/* ---------------------------------------------------------------- transparent media screen */
.sc { padding-block: clamp(96px, 16vh, 180px); }
.sc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.sc-label { display: inline-block; border: 1px dashed rgba(236, 233, 226, .4); padding: 6px 10px; color: var(--light); letter-spacing: .04em; }
.sc-h { font: 300 clamp(28px, 3vw, 46px)/1.2 var(--kr); margin: 16px 0; }
.sc-concept { display: grid; gap: 8px; color: var(--dim); }
.sc-toggle { display: flex; gap: 8px; margin-top: 24px; }
.sc-fig { position: relative; aspect-ratio: 1500 / 650; overflow: hidden; background: #111; }
.sc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s var(--inout); }
.sc-fig[data-screen-state="on"] .sc-off { opacity: 0; }
.sc-fig[data-screen-state="off"] .sc-on { opacity: 0; }
.sc-fig figcaption { position: absolute; right: 12px; bottom: 12px; }
.sc-tables { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(24px, 4vw, 64px); margin-top: 40px; }
.sc-diag { grid-column: 1 / -1; }
.sd { width: 100%; max-width: 340px; height: auto; }
.sd-pane { fill: rgba(236, 233, 226, .06); stroke: rgba(236, 233, 226, .7); stroke-width: 1; }
.sd-dim { stroke: var(--amber); stroke-width: 1; }
.sd-t { font: 500 9px var(--kr); fill: var(--light); }
.sc-diag figcaption { font-size: 12.5px; color: var(--stone); margin-top: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl caption { text-align: left; font: 500 12px var(--kr); color: var(--stone); padding-bottom: 8px; }
.tbl th, .tbl td { text-align: left; padding: 10px 0; border-top: 1px solid var(--line-d); font-weight: 400; vertical-align: top; }
.tbl th { width: 34%; color: var(--stone); }
.sc-note { grid-column: 1 / -1; font-size: 13px; color: var(--stone); }
@media (max-width: 860px) { .sc-grid, .sc-tables { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- 1147 2F chapter */
.fl { position: relative; }
.fl-enter { height: 70vh; display: grid; place-items: center; position: relative; }
.fl-enter-line { position: absolute; left: 50%; bottom: 0; width: 1px; height: 100%; background: var(--amber); transform-origin: 50% 100%; transform: scaleY(0); }
.fl-enter-n { position: relative; color: var(--light); }
.fl-hero { position: relative; height: 230vh; }
.fl-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.fl-media { position: absolute; inset: 0; overflow: hidden; background: #07080a; }
.fl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 8, 10, .8) 0, rgba(7, 8, 10, .1) 46%, rgba(7, 8, 10, 0) 70%); pointer-events: none; }
.fl-copy { position: absolute; left: var(--gx); right: calc(var(--gx) + var(--rail-w)); bottom: clamp(56px, 10vh, 112px); display: grid; gap: 16px; justify-items: start; }
.fl-h { font: 300 clamp(34px, 5vw, 76px)/1.12 var(--kr); letter-spacing: -.022em; max-width: 14em; }
.fl-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.fl-tag { position: absolute; right: calc(var(--gx) + var(--rail-w)); bottom: 24px; }
.fl-wow { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); padding-block: clamp(96px, 15vh, 180px); align-items: end; }
.fl-one { font: 300 clamp(22px, 2.4vw, 34px)/1.45 var(--kr); }
.fl-wow-b { border-top: 1px solid var(--line-d); padding-top: 18px; display: grid; gap: 10px; }
.fl-wow-b h3 { font: 600 15px/1.4 var(--kr); }
.fl-wow-b p { color: var(--dim); font-size: 15px; line-height: 1.75; }
@media (max-width: 860px) { .fl-wow { grid-template-columns: minmax(0, 1fr); } }

/* snap gallery (B7) */
.gl { padding-bottom: 40px; }
.gl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.gl-count { display: flex; gap: 6px; align-items: baseline; font: 400 18px/1 var(--lat); }
.gl-sep { color: var(--stone); }
.gl-nav { display: flex; gap: 8px; }
.gl-track { position: relative; display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gx); scroll-padding-inline: var(--gx); outline-offset: -2px; overscroll-behavior-x: contain; }
.gl-track::-webkit-scrollbar { display: none; }
.gl-track.is-drag { scroll-snap-type: none; user-select: none; }
.gl-card { flex: none; width: min(62vw, 980px); scroll-snap-align: start; transition: transform 500ms var(--expo); }
.gl-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.gl-card figcaption { display: flex; gap: 12px; align-items: center; padding-top: 12px; font-size: 13px; color: var(--dim); }
.cap-k { font: 500 11px/1 var(--lat); color: var(--stone); }
.gl-bar { margin-top: 22px; }
.gl-bar::before { content: ''; display: block; height: 1px; background: var(--line-d); }
.gl-prog { display: block; height: 1px; margin-top: -1px; background: var(--amber); transform-origin: 0 0; transform: scaleX(.25); transition: transform 500ms var(--expo); }
@media (max-width: 860px) { .gl-card { width: 86vw; } .gl-nav { display: none; } }

/* 360 card + film */
.fl-pano { padding-block: clamp(64px, 10vh, 120px) 0; }
.pano-card { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 2px; text-align: left; }
.pano-thumb { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform 1.2s var(--expo), filter var(--base); }
.pano-card:hover .pano-thumb, .pano-card:focus-visible .pano-thumb { transform: scale(1.03); filter: brightness(1.06); }
.pano-card-l { position: absolute; left: 20px; bottom: 18px; display: grid; gap: 6px; }
.pano-card-cta { font: 300 clamp(22px, 2.4vw, 34px)/1.2 var(--kr); }
.pano-card .tag { position: absolute; right: 16px; bottom: 18px; }
.pano-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 6, 9, .7), rgba(5, 6, 9, 0) 55%); pointer-events: none; }
.pano-card > * { z-index: 1; }
.fl-film { padding-top: clamp(32px, 5vh, 64px); }
.film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.film figcaption { display: flex; justify-content: space-between; padding-top: 10px; font-size: 13px; color: var(--dim); }
.fl-ascent { height: 50vh; display: grid; place-content: center; justify-items: center; gap: 18px; }
.asc-rule { width: 1px; height: 90px; background: linear-gradient(180deg, transparent, rgba(236, 233, 226, .6)); }
.asc-v { font: 300 clamp(28px, 3vw, 44px)/1 var(--kr); }

/* spec drawer */
dialog::backdrop { background: rgba(3, 3, 3, .55); }
.drawer { margin: 0 0 0 auto; padding: 0; border: 0; width: min(560px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; background: var(--paper); color: var(--ink); overflow-y: auto; }
.drawer[open] { animation: drawer var(--base) var(--expo); }
@keyframes drawer { from { transform: translateX(48px); opacity: 0; } }
.dr-in { padding: 28px clamp(20px, 3vw, 40px) 48px; display: grid; gap: 26px; }
.dr-head { display: flex; justify-content: space-between; gap: 18px; }
.dr-h { font: 300 26px/1.25 var(--kr); margin-top: 8px; }
.drawer .btn-ic { color: var(--ink); background: none; border-color: var(--line-l); }
.dr-dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-l); font-size: 14.5px; }
.dr-dl dt { color: #6f6a62; }
.dr-dl dd { display: grid; gap: 4px; }
.dr-dl .odo { font-size: 18px; }
.dr-dl small { color: #6f6a62; font-size: 12.5px; }
.dr-plan { background: #fff; padding: 10px; border: 1px solid var(--line-l); }
.dr-plan figcaption { font-size: 12.5px; color: #6f6a62; margin-top: 8px; }
@media (max-width: 860px) {
  .drawer { margin: auto 0 0; width: 100vw; height: 86dvh; border-radius: 14px 14px 0 0; }
  .drawer[open] { animation: sheet var(--base) var(--expo); }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }

/* ---------------------------------------------------------------- full-page 360 (B6) */
.pv { position: fixed; inset: 0; z-index: 120; background: #000; color: var(--light); }
.pv[hidden] { display: none; }
.pv-stage, .pv-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.pv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px var(--gx); background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent); }
.pv-title { display: flex; align-items: baseline; gap: 12px; font-size: 14px; }
.pv-alt { font-size: 20px; }
.pv-tools { display: flex; gap: 8px; }
.pv-bot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 18px var(--gx); background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent); }
.pv-nav, .pv-zoom { display: flex; gap: 8px; align-items: center; }
.pv-fov { width: 70px; height: 1px; background: rgba(236, 233, 226, .3); position: relative; }
.pv-fov::after { content: ''; position: absolute; left: 0; top: 0; height: 1px; width: var(--z, 0%); background: var(--amber); }
.pv-orient { display: flex; gap: 12px; align-items: flex-end; }
.pv-compass { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(236, 233, 226, .35); }
.pv-compass i { position: absolute; left: 50%; top: 5px; width: 1px; height: 18px; background: var(--amber); transform-origin: 50% 18px; transform: rotate(var(--n, 0deg)); }
.pv-n { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 500 10px var(--lat); }
.pv-map { position: relative; width: 180px; overflow: hidden; border: 1px solid rgba(236, 233, 226, .25); background: #fff; }
.pv-map img { width: 100%; opacity: .9; }
.pv-cone { position: absolute; width: 0; height: 0; left: var(--cx); top: var(--cy); }
.pv-cone::before { content: ''; position: absolute; left: -40px; top: -60px; width: 80px; height: 60px; background: conic-gradient(from calc(var(--half) * -1), rgba(217, 138, 58, .55) 0deg, rgba(217, 138, 58, .55) calc(var(--half) * 2), transparent 0);
  transform-origin: 50% 100%; transform: rotate(var(--b, 0deg)); clip-path: polygon(50% 100%, 0 0, 100% 0); }
.pv-cone::after { content: ''; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.pv-map.is-off { display: none; }
.pv-hot { position: absolute; inset: 0; pointer-events: none; }
.hs { position: absolute; left: 0; top: 0; pointer-events: auto; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid var(--light); background: rgba(14, 15, 17, .35); }
.hs::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--amber); }
.hs::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--amber); animation: breathe 2.6s var(--inout) infinite; }
@keyframes breathe { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
html.rm .hs::after { animation: none; }
.hs-card { position: absolute; pointer-events: auto; width: min(320px, 80vw); padding: 16px 18px; background: rgba(244, 241, 234, .96); color: var(--ink); border-radius: 2px; font-size: 13.5px; line-height: 1.65; transform-origin: 0 0; animation: card var(--base) var(--expo); }
.hs-card h3 { font: 600 14px/1.4 var(--kr); margin-bottom: 6px; }
@keyframes card { from { opacity: 0; transform: translateY(8px); } }
.pv-load { position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.pv-load span { display: block; height: 1px; background: var(--amber); transform-origin: 0 0; transform: scaleX(0); transition: transform 400ms var(--expo); }
.pv-fail { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); font-size: 13px; background: rgba(14, 15, 17, .7); padding: 8px 12px; }
.pv.is-entering .pv-top, .pv.is-entering .pv-bot { opacity: 0; }
.pv-top, .pv-bot { transition: opacity var(--base) var(--expo); }
@media (max-width: 860px) { .pv-map { width: 120px; } .pv-bot { flex-wrap: wrap; } .pv-zoom { display: none; } }

/* ---------------------------------------------------------------- footer + mobile tap ripple (B10) */
.ft { padding-block: 64px 48px; font-size: 12.5px; color: var(--stone); display: grid; gap: 6px; }
.ripple { position: fixed; z-index: 210; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1px solid var(--amber); pointer-events: none; animation: ripple 200ms var(--expo) forwards; }
@keyframes ripple { to { transform: scale(5); opacity: 0; } }
html.rm .ripple { display: none; }

/* reduced motion: pinned scrubs become plain screens; scrubbers stay usable as tabs */
html.rm .tx, html.rm .ax { height: auto; }
html.rm .tx-pin, html.rm .ax-pin { position: relative; }
html.rm .gap { height: auto; }
html.rm .gap-pin { position: relative; height: 60vh; }
html.rm .gap-a { display: none; }
html.rm .gap-line { transform: none; }
html.rm .fl-hero { height: auto; }
html.rm .fl-pin { position: relative; }
html.rm .fl-enter { height: 30vh; }
html.rm .fl-enter-line { transform: none; }
video:focus-visible, .film video:focus { outline: 2px solid var(--amber); outline-offset: 2px; }
/* native media controls take focus inside the video's shadow root: ring the figure while they do */
.film:focus-within { outline: 2px solid var(--amber); outline-offset: 4px; }
@media (max-width: 560px) {
  .pv-top { align-items: flex-start; padding-top: 12px; }
  .pv-title { flex-wrap: wrap; gap: 4px 10px; max-width: 46%; }
  .pv-tools .btn-ic { min-height: 36px; padding: 0 10px; font-size: 12px; }
  .pv-map { width: 92px; }
}
/* no layout shift: the Jeju-now chip and the clock keep their space before data arrives */
.now[hidden] { display: flex; visibility: hidden; }
.now { min-width: 168px; justify-content: flex-end; }
.tx-clock { width: 150px; }
@media (max-width: 860px) { .tx-clock { width: auto; } }
/* reserve the state line before the clock fills it (removes the 11 px rise of the scrubber row at load) */
.tx-state { display: block; min-height: 12px; }

/* ---------------------------------------------------------------- cursor B1 (corrected 2026-10-10)
   default dot; labels only over their own targets; sun icon on the time scrubber; amber ring on links/buttons */
.cur-sun { display: none; width: 18px; height: 18px; fill: var(--amber); stroke: var(--amber); stroke-width: 1.3; stroke-linecap: round; }
.cursor[data-c="time"] .cur-dot { opacity: 0; }
.cursor[data-c="time"] .cur-ring { border-style: solid; width: 34px; height: 34px; margin: -17px 0 0 -17px; background: rgba(14, 15, 17, .45); }
.cursor[data-c="time"] .cur-sun { display: block; }
.cursor[data-c="view"] .cur-dot, .cursor[data-c="drag"] .cur-dot, .cursor[data-c="360"] .cur-dot { opacity: 0; }

/* ---------------------------------------------------------------- hero legibility (2026-10-10)
   title + lead sit in a calm dark band at the bottom; the time scrubber below them is the divider; the building
   face above stays clear. Desktop: full-bleed image, band overlays the ground. <=860 px: the image ends where the
   band begins, so the band never covers the facade. */
.tx-shade { background: linear-gradient(180deg, rgba(5, 6, 9, .4), rgba(5, 6, 9, 0) 18%); }
.tx-band { --fade: clamp(72px, 11vh, 112px); position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 20px;
  padding: var(--fade) calc(var(--gx) + var(--rail-w)) 22px var(--gx);
  background: linear-gradient(0deg, rgba(9, 10, 13, .92) 0, rgba(9, 10, 13, .88) calc(100% - var(--fade)), rgba(9, 10, 13, 0) 100%); }
.tx-band .tx-copy { position: static; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 48px; row-gap: 10px; align-items: end; }
.tx-band .tx-copy .kicker { grid-column: 1 / -1; }
.tx-band .tx-h { font-size: clamp(28px, 3vw, 44px); line-height: 1.18; }
.tx-band .tx-lead { color: rgba(236, 233, 226, .74); font-size: 15px; line-height: 1.6; }
.tx-band .tx-ui { position: static; }
@media (max-width: 860px) {
  .tx-pin { display: flex; flex-direction: column; }
  .tx-media { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; }
  .tx-band { --fade: 48px; position: relative; margin-top: calc(-1 * var(--fade)); gap: 14px; padding: var(--fade) var(--gx) 14px;
    background: linear-gradient(0deg, var(--ink) 0, var(--ink) calc(100% - var(--fade)), rgba(14, 15, 17, 0) 100%); }
  .tx-band .tx-copy { grid-template-columns: 1fr; row-gap: 8px; }
  .tx-band .tx-h { font-size: 26px; }
  .tx-band .tx-lead { font-size: 14px; line-height: 1.55; }
  .tx-copy { right: auto; bottom: auto; }
  .tx-views { top: 62px; bottom: auto; left: calc(var(--gx) + 52px); right: var(--gx); justify-content: flex-end; }
  .tx-tag { top: 66px; }
}
html.rm .tx-pin { height: 100vh; height: 100svh; }
.tx-band .kicker { color: rgba(236, 233, 226, .66); }
/* the band is static so the view chips inside it still position against the pin on desktop (top right),
   and drop into the band as its first row at <=860 px, off the facade */
.tx-pin { z-index: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.tx-media { z-index: -1; }
.tx-band { position: static; }
@media (max-width: 860px) {
  .tx-pin { justify-content: flex-start; }
  .tx-band .tx-views { position: static; order: -1; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gx)); padding: 0 var(--gx) 2px; }
  .tx-band .tx-views::-webkit-scrollbar { display: none; }
}

/* ---------------------------------------------------------------- hero v3 (2026-10-10, main-session review)
   copy in the upper-left sky under the header (local scrim, strength per view/state, crossfaded with the frame);
   the bottom band is thin and low and carries only views/clock/scrubber/now, so the crew above ~82 % stays clean */
.tx-scrim { position: absolute; inset: 0; pointer-events: none; opacity: var(--scrim, .7); transition: opacity 600ms var(--inout);
  background: radial-gradient(ellipse 44% 60% at 0% 14%, rgba(7, 9, 14, .84) 0, rgba(7, 9, 14, .6) 46%, rgba(7, 9, 14, 0) 100%); }
#time-ext .tx-copy { position: absolute; left: var(--gx); top: 112px; right: auto; bottom: auto; max-width: 380px; display: grid; gap: 12px; z-index: 1; }
#time-ext .tx-copy .kicker { color: rgba(236, 233, 226, .72); }
#time-ext .tx-h { font: 300 clamp(28px, 2.6vw, 40px)/1.2 var(--kr); }
#time-ext .tx-lead { max-width: 360px; font-size: 15px; line-height: 1.6; color: rgba(236, 233, 226, .84); }
#time-ext .tx-band { gap: 0; padding: 40px calc(var(--gx) + var(--rail-w)) 10px var(--gx);
  background: linear-gradient(0deg, rgba(9, 10, 13, .8) 0, rgba(9, 10, 13, .5) 55%, rgba(9, 10, 13, 0) 100%); }
#time-ext .tx-ui { grid-template-columns: 196px 1fr auto; align-items: center; gap: 0 28px; }
#time-ext .tx-clock { display: flex; align-items: baseline; gap: 8px; width: 196px; min-width: 0; }
#time-ext .tx-time { font-size: 22px; }
#time-ext .tx-state { display: inline-block; min-width: 3.6em; }
#time-ext .tx-sun { width: 56px; height: 20px; align-self: center; }
html.fine #time-ext .tx-stop-b { min-height: 30px; }
@media (max-width: 860px) {
  #time-ext .tx-pin { justify-content: flex-start; }
  #time-ext .tx-copy { position: static; order: -2; max-width: none; padding: 68px var(--gx) 14px; gap: 8px; }
  #time-ext .tx-h { font-size: 24px; }
  #time-ext .tx-lead { max-width: none; font-size: 14px; line-height: 1.55; color: rgba(236, 233, 226, .8); }
  #time-ext .tx-media { order: -1; }
  .tx-scrim { display: none; }
  .tx-media .tx-tag { top: 12px; }
  #time-ext .tx-band { margin-top: -36px; gap: 10px; padding: 36px var(--gx) 8px; background: linear-gradient(0deg, var(--ink) 0, var(--ink) calc(100% - 36px), rgba(14, 15, 17, 0) 100%); }
  #time-ext .tx-ui { grid-template-columns: 1fr auto; gap: 4px 16px; }
  #time-ext .tx-clock { width: auto; grid-column: 1 / -1; }
  #time-ext .tx-sun { display: none; }
}

/* ---------------------------------------------------------------- 1147 front: bottom band (no crew in this frame) */
.ax-pin { z-index: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.ax-media { z-index: -1; }
.ax-shade { background: linear-gradient(180deg, rgba(5, 6, 9, .4), rgba(5, 6, 9, 0) 18%); }
.ax-media .tx-tag { top: 76px; }
.ax-band .ax-copy { position: static; transform: none; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 48px; row-gap: 10px; align-items: end; }
.ax-band .ax-copy .kicker { grid-column: 1 / -1; color: rgba(236, 233, 226, .7); }
.ax-band .ax-h { font-size: clamp(28px, 3vw, 44px); line-height: 1.18; }
.ax-band .ax-lead { color: rgba(236, 233, 226, .78); font-size: 15px; line-height: 1.6; }
.ax-band .ax-ui { position: static; width: auto; }
html.rm .ax-pin { height: 100vh; height: 100svh; }
@media (max-width: 860px) {
  .ax-pin { justify-content: flex-start; }
  .ax-media { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; }
  .ax-media .tx-tag { top: 64px; }
  .ax-band { --fade: 48px; margin-top: calc(-1 * var(--fade)); gap: 12px; padding: var(--fade) var(--gx) 12px; background: linear-gradient(0deg, var(--ink) 0, var(--ink) calc(100% - var(--fade)), rgba(14, 15, 17, 0) 100%); }
  .ax-band .ax-copy { grid-template-columns: 1fr; row-gap: 8px; }
  .ax-band .ax-h { font-size: 26px; }
  .ax-band .ax-lead { font-size: 14px; }
}

/* ---------------------------------------------------------------- gallery card button + lightbox (B7) */
.gl-open { display: block; width: 100%; padding: 0; border-radius: 0; }
.gl-open:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 150; color: var(--light); }
.lb[hidden] { display: none; }
.lb-bg { position: absolute; inset: 0; background: rgba(8, 9, 12, .96); }
.lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.lb-frame { position: absolute; transform-origin: 0 0; will-change: transform; }
.lb-img { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; user-select: none; -webkit-user-drag: none; transition: transform 380ms var(--expo); }
.lb.is-zoom .lb-img { transition: none; }
.lb-top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 20px; padding: 16px var(--gx); }
.lb-count { display: flex; gap: 6px; align-items: baseline; font: 400 16px/1 var(--lat); }
.lb-sep { color: var(--stone); }
.lb-cap { flex: 1; font-size: 13px; color: rgba(236, 233, 226, .78); }
.lb-prev, .lb-next { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; }
.lb-prev { left: var(--gx); } .lb-next { right: var(--gx); }
.lb-hint { position: absolute; z-index: 2; left: 50%; bottom: 16px; translate: -50% 0; font-size: 12px; color: rgba(236, 233, 226, .62); white-space: nowrap; }
@media (max-width: 700px) {
  .lb-prev, .lb-next { top: auto; bottom: 12px; translate: none; }
  .lb-hint { bottom: 64px; }
}
/* scrim shaped to the copy block (centre ~ the title/lead, soft falloff into the sky) */
.tx-scrim { background: radial-gradient(ellipse 560px 400px at calc(var(--gx) + 150px) 236px, rgba(7, 9, 14, .9) 0, rgba(7, 9, 14, .8) 42%, rgba(7, 9, 14, .36) 72%, rgba(7, 9, 14, 0) 100%); }
#time-ext .tx-stop-b, #time-ext .tx-state { color: rgba(236, 233, 226, .78); }
#time-ext .tx-band { background: linear-gradient(0deg, rgba(9, 10, 13, .84) 0, rgba(9, 10, 13, .56) 55%, rgba(9, 10, 13, 0) 100%); }

/* ---------------------------------------------------------------- living Jeju background (2026-10-10)
   html carries the live sky tint (--bg-ink) + a 4.5 % basalt veil as the CSS fallback; the WebGL layer sits on top
   of it at z-index -1 and below every section. Sections that used the flat ink are transparent so it shows. */
html { background: var(--bg-ink, #0E0F11) url(../assets/bg/basalt_fallback_256.png) repeat; background-size: 512px 512px; transition: background-color 2s linear; }
body { background: transparent; }
.sc.ink { background: transparent; }
.bg-gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
/* small grey labels that sit directly on the living background get one step lighter (measured: >= 4.5:1 in every sky state) */
.sc th, .ft, .gl-sep, .lb-sep { color: #9A958C; }

/* ---------------------------------------------------------------- 360 in-floor points + detail macros (plan 2026-10-10) */
.pv-ring, .pv-macro { position: absolute; left: 0; top: 0; pointer-events: auto; }
.pv-ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; transform-origin: 50% 50%; }
.pv-ring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amber); transform: perspective(240px) rotateX(64deg);
  box-shadow: 0 0 18px rgba(217, 138, 58, .35), inset 0 0 12px rgba(217, 138, 58, .25); transition: background var(--fast), transform var(--fast) var(--expo); }
.pv-ring:hover i { background: rgba(217, 138, 58, .16); }
.pv-ring:active i { transform: perspective(240px) rotateX(64deg) scale(.9); }
.pv-ring:focus-visible { outline: none; }
.pv-ring:focus-visible i { outline: 2px solid var(--light); outline-offset: 4px; }
.pv-macro { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1.5px solid var(--amber); background: rgba(14, 15, 17, .4); }
.pv-macro::before, .pv-macro::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--amber); }
.pv-macro::before { width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; }
.pv-macro::after { width: 1.5px; height: 12px; margin: -6px 0 0 -.75px; }
.pv-macro i { position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--amber); animation: breathe 2.4s var(--inout) infinite; }
.pv-macro-l { position: absolute; left: 22px; top: 50%; translate: 0 -50%; white-space: nowrap; padding: 5px 9px; font-size: 12px; color: var(--light); background: rgba(14, 15, 17, .78);
  opacity: 0; pointer-events: none; transition: opacity var(--fast); }
.pv-macro:hover .pv-macro-l, .pv-macro:focus-visible .pv-macro-l { opacity: 1; }
.pv-macro:hover { background: rgba(217, 138, 58, .18); }
/* pressed: inner ring tightens (never scale the button itself: its transform carries the screen position) */
.pv-macro:active { background: rgba(217, 138, 58, .32); }
.pv-macro:active i { animation: none; transform: scale(.86); }
.pv-macro:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
html.rm .pv-macro i { animation: none; }
.pv-pts { position: absolute; inset: 0; }
.pv-pt { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; }
.pv-pt::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; }
.pv-pt.is-cur::after { background: var(--amber); border-color: var(--amber); }
.pv-pt:hover::after { background: rgba(217, 138, 58, .6); }
.pv-pt:focus-visible { outline: 2px solid var(--amber); outline-offset: 0; }

/* ---------------------------------------------------------------- 1147 front v2 (2026-10-10 review): vertical reveal
   desktop: the media box is the plate's own 4:5 at viewport width, moved by JS (pan up, then fit to height on the right);
   the copy + scrubber sit on the left over the ink and the oreum contours of the living background */
.ax-tag { position: absolute; top: 76px; left: var(--gx); }
@media (min-width: 861px) {
  .ax-pin { display: block; }
  .ax-media { position: absolute; inset: auto; left: 0; top: 0; width: 100vw; height: 125vw; transform-origin: 0 0; will-change: transform; z-index: -1; }
  .ax-img { object-position: 50% 50%; }
  .ax-shade { background: linear-gradient(0deg, rgba(5, 6, 9, .35), rgba(5, 6, 9, 0) 12%); }
  .ax-band { position: absolute; left: var(--gx); top: 50%; translate: 0 -50%; width: calc(45vw - var(--gx) - 56px); max-width: 520px; padding: 0; gap: 28px; background: none;
    opacity: var(--axt, 0); transform: translateY(calc((1 - var(--axt, 0)) * 18px)); }
  .ax-band .ax-copy { grid-template-columns: 1fr; }
  .ax-band .ax-h { font-size: clamp(30px, 3vw, 46px); }
  .ax-band .ax-ui { position: static; width: auto; grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ax { height: auto; }
  .ax-pin { position: relative; height: auto; display: block; overflow: visible; }
  .ax-media { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 5; flex: none; }
  .ax-tag { top: 64px; }
  .ax-band { position: relative; }
}
html.rm .ax-pin { overflow: hidden; }

/* ---------------------------------------------------------------- 360 hit areas (2026-10-10 urgent fix)
   the top / bottom gradient bands and the hotspot layer no longer swallow drag and wheel; only real controls do */
.pv-top, .pv-bot, .pv-hot, .pv-title, .pv-load, .pv-fail { pointer-events: none; }
.pv-top button, .pv-bot button, .pv-map, .pv-compass, .pv-hot button, .pv-hot .hs-card { pointer-events: auto; }
.pv { touch-action: none; }

/* ---------------------------------------------------------------- cursor in modal layers + on light surfaces
   the cursor node is re-hosted into an open modal (top layer) by main.js; on paper it is solid ink (no blend tricks) */
.cursor.on-paper .cur-dot { background: var(--ink); mix-blend-mode: normal; }
.cursor.on-paper .cur-ring { border-color: var(--ink); }
.cursor.on-paper[data-c="link"] .cur-ring { border-width: 1.5px; }
.cursor[data-c="360"] .cur-ring { transform: scale(var(--pvz, 1)); }
.cursor.is-grab[data-c="360"] .cur-ring { transform: scale(calc(var(--pvz, 1) * .82)); background: rgba(217, 138, 58, .22); border-width: 2px; }
/* labelled cursor states keep their label readable over bright panos / images (measured >= 4.5:1) */
.cursor[data-c="view"] .cur-ring, .cursor[data-c="drag"] .cur-ring, .cursor[data-c="360"] .cur-ring { background: rgba(14, 15, 17, .62); }
/* neighbours that are not in view from here: a direction arrow on the screen edge ("← 3.1 m · 지점 2") */
.pv-edge { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; margin: -20px 0 0 0;
  border-radius: 999px; border: 1.5px solid var(--amber); background: rgba(14, 15, 17, .66); color: var(--light); font-size: 12.5px; white-space: nowrap; translate: -50% 0; }
.pv-edge.is-left { translate: 0 0; } .pv-edge.is-right { translate: -100% 0; }
.pv-edge-a { color: var(--amber); font-size: 15px; }
.pv-edge:hover { background: rgba(217, 138, 58, .25); }
.pv-edge:active { background: rgba(217, 138, 58, .4); }
.pv-edge:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; }
.pv-pt.is-pending::after { background: transparent; border-color: rgba(14, 15, 17, .55); border-style: dashed; }
.pv-pt.is-pending { cursor: not-allowed; }
