@font-face { font-family: "VORM Caps6"; src: url("../assets/fonts/VORM-Caps6-Variable.woff2") format("woff2"); font-weight: 400; font-display: swap; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 100; left: 12px; top: 12px; padding: 10px 14px; background: var(--solid); color: var(--on-solid); border-radius: var(--r-s); }
:focus-visible { outline: var(--focus); outline-offset: 3px; }
.caps { font-family: "VORM Caps6", var(--sans); font-weight: 400; letter-spacing: .04em; font-variation-settings: "opsz" 24; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--label); }
.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 13px; color: var(--text-2); }
.kicker i { font-family: "VORM Caps6"; font-style: normal; color: var(--label); font-size: 13px; }
.kicker .caps { font-size: 13px; letter-spacing: .22em; }
.kicker::before { content: ""; flex: none; width: var(--dot-size); height: var(--dot-size); margin-right: -4px; border-radius: var(--r-round); background: var(--dot-bg); box-shadow: var(--dot-glow); }
.kicker::after { content: ""; width: 56px; height: 1px; background: var(--line); }
h1 { font-size: clamp(46px, 7.2vw, 116px); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: clamp(30px, 3.9vw, 60px); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; }
h3 { font-size: clamp(19px, 1.5vw, 23px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
p { line-height: 1.68; }

/* Header */
.site-header { position: fixed; z-index: 30; inset: 0 0 auto; height: var(--header); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); background: linear-gradient(180deg, rgb(var(--night-rgb) / .62), rgb(var(--night-rgb) / 0)); }
.site-header { transition: background .35s var(--ease); }
.site-header.solid { background: var(--bar-bg); backdrop-filter: var(--bar-blur); -webkit-backdrop-filter: var(--bar-blur); }
.brand { font-family: "VORM Caps6"; font-size: 27px; letter-spacing: .06em; justify-self: start; }
.chapters { display: flex; gap: clamp(14px, 1.7vw, 30px); font-size: 13px; }
.chapters a { position: relative; color: var(--text-2); padding: 8px 0; transition: color .3s; white-space: nowrap; }
.chapters a i { font-family: "VORM Caps6"; font-style: normal; font-size: 10px; margin-right: 6px; color: var(--text-3); }
.chapters a:hover, .chapters a[aria-current="true"] { color: var(--text); }
.chapters a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--mark); box-shadow: var(--mark-glow); }
.header-actions { justify-self: end; display: flex; gap: 10px; align-items: center; }
.book { min-height: 44px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid var(--btn-2-line); background: var(--btn-2-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px; font-weight: 600; letter-spacing: -.01em; transition: background .3s, color .3s, border-color .3s; }
.book:hover { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); box-shadow: var(--btn-glow); }
.book.large { min-height: 56px; padding: 0 30px; font-size: 16px; background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); box-shadow: var(--btn-glow); }
.book.large:hover { background: var(--btn-hover); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--solid); transition: transform .35s var(--ease); }
.menu-toggle span:first-child { top: 18px; } .menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: var(--fill-4); }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--mark); box-shadow: var(--mark-glow); }
.menu { position: fixed; z-index: 25; inset: 0; background: var(--shade-4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: calc(var(--header) + 24px) var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.menu nav { display: grid; gap: 6px; }
.menu nav a { font-size: clamp(30px, 8vw, 44px); font-weight: 600; letter-spacing: -.03em; padding: 6px 0; }
.menu nav a i { font-family: "VORM Caps6"; font-style: normal; font-size: 13px; color: var(--label); margin-right: 16px; vertical-align: middle; }
.menu > p { font-family: "VORM Caps6"; color: var(--text-3); letter-spacing: .2em; font-size: 12px; }

/* Film stage */
.stage { position: fixed; inset: 0 0 auto; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden; background: var(--bg) url("../assets/film/poster.webp") center / cover no-repeat; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage.no-film canvas { display: none; }
.scrim { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.scrim-left { background: linear-gradient(90deg, rgb(var(--night-rgb) / .78) 0%, rgb(var(--night-rgb) / .45) 32%, rgb(var(--night-rgb) / 0) 58%); }
.scrim-bottom { background: linear-gradient(0deg, rgb(var(--night-rgb) / .9) 0%, rgb(var(--night-rgb) / .55) 30%, rgb(var(--night-rgb) / 0) 58%); }
.ring { position: absolute; left: 0; top: 0; width: 200px; height: 200px; opacity: 0; overflow: visible; pointer-events: none; }
.ring circle { fill: none; }
.ring-track { stroke: var(--text-4); stroke-width: .6; }
.ring-arc { stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); }
.ring-ticks line { stroke: var(--text-4); stroke-width: .5; }
.scan { position: absolute; left: 0; top: 0; transform: translate(-50%, 0); opacity: 0; text-align: center; pointer-events: none; white-space: nowrap; }
.scan ol { display: flex; gap: 6px; justify-content: center; list-style: none; margin: 0 0 10px; padding: 0; }
.scan li { font-size: 12px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-3); background: var(--shade-1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text-2); transition: background .4s, color .4s; }
.scan li.done { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.scan li.done::before { content: "✓ "; }
.scan p { font-size: 12px; color: var(--text-2); text-shadow: 0 1px 12px rgb(var(--black-rgb) / .5); }
.scan b { font-family: "VORM Caps6"; font-weight: 400; color: var(--text); margin-left: 6px; }
.build { position: absolute; right: 9vw; top: 24svh; opacity: 0; pointer-events: none; padding: 14px 18px; border-radius: var(--r-m); background: var(--glass-1); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 14px; white-space: nowrap; }
.build b { font-family: "VORM Caps6"; font-weight: 400; font-size: 22px; margin-right: 2px; }
.tap { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: var(--r-round); border: 1.5px solid var(--lit); opacity: 0; pointer-events: none; }
.tap::after { content: ""; position: absolute; inset: -14px; border-radius: var(--r-round); border: 1px solid var(--lit-line); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.fly { position: absolute; left: 0; top: 0; margin: 0; transform-origin: 50% 50%; opacity: 0; pointer-events: none; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-1); }
.fly img { width: 100%; height: 100%; object-fit: cover; }
.loader { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(240px, 50vw); text-align: center; transition: opacity .6s; }
.loader span { display: block; height: 1px; background: var(--solid); transform-origin: 0 50%; transform: scaleX(0); opacity: .7; }
.loader p { margin-top: 10px; font-size: 11px; letter-spacing: .08em; color: var(--text-3); }
.loader.done { opacity: 0; }

/* Film sections */
main { position: relative; z-index: 1; }
.film { position: relative; height: 520vh; }
.film-report { height: 800vh; }
.film-departure { height: 480vh; }
.film-later { height: 460vh; }
.anchor { position: absolute; top: 0; }
.film-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; pointer-events: none; }
.beat { position: absolute; opacity: 0; will-change: opacity, translate; }
.beat.on { pointer-events: auto; }
.hero { left: var(--pad); bottom: 13svh; max-width: 900px; }
.hero h1 { margin: 18px 0 26px; text-shadow: 0 2px 40px rgb(var(--black-rgb) / .25); }
.hero .eyebrow { font-family: "VORM Caps6"; font-size: 13px; letter-spacing: .3em; color: var(--text-2); }
.hero .lede { font-size: clamp(16px, 1.3vw, 19px); color: var(--text-2); max-width: 560px; text-shadow: 0 1px 20px rgb(var(--black-rgb) / .35); }
.cue { display: flex; align-items: center; gap: 14px; margin-top: 44px; font-size: 12px; letter-spacing: .1em; color: var(--text-3); }
.cue span { position: relative; width: 1px; height: 44px; background: var(--fill-5); overflow: hidden; }
.cue span::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--solid); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
.side { left: var(--pad); top: 50%; transform: translateY(-50%); max-width: 470px; }
.side h2 { margin-bottom: 22px; }
.side p:not(.kicker) { font-size: 16px; color: var(--text-2); }
.note { right: 9vw; top: 50%; transform: translateY(-50%); padding: 20px 24px; border-radius: var(--r-l); background: var(--glass-1); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); max-width: 280px; }
.note p:last-child { margin-top: 6px; font-size: 15px; line-height: 1.55; }
.center-top { left: 0; right: 0; top: 15svh; text-align: center; }
.center-top .kicker { justify-content: center; }
.center-top .kicker::after { display: none; }
.annot { top: 50%; transform: translateY(-50%); width: min(27vw, 380px); }
.annot.left { left: max(var(--pad), 7vw); }
.annot.right { right: max(var(--pad), 7vw); }
.annot .num { font-size: 12px; letter-spacing: .1em; color: var(--label); margin-bottom: 14px; }
.annot .num::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--lit); vertical-align: middle; margin-right: 12px; }
.annot h3 { font-size: clamp(22px, 2vw, 30px); margin-bottom: 14px; }
.annot p:last-child { font-size: 15px; color: var(--text-2); }
.confirm { left: 0; right: 0; top: 13svh; text-align: center; }
.confirm p:last-child { margin-top: 6px; font-size: 17px; }
.next { left: 0; right: 0; bottom: 8svh; text-align: center; font-size: 13px; color: var(--text-2); }
.next .caps { font-size: 11px; letter-spacing: .3em; color: var(--label); }

/* Visit stack */
.chapter-section, .chapter { position: relative; z-index: 2; background: var(--bg); }
/* 05 방문 안내 is ordinary page content: as tall as what it holds (a fixed 360vh, left from the v1 scroll scene,
   left up to two screens of empty page before the footer). */
.visit { background: var(--bg); }
/* the canopy hangs over 05 as it does over the sheets, from under the header: the first page after the film */
.visit > .canopy { top: var(--header); }
.visit > :not(.canopy) { position: relative; z-index: 1; }
.stack-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.layer { position: absolute; inset: 0; margin: 0; overflow: hidden; will-change: clip-path; }
.layer img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.layer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(var(--night-rgb) / .78) 0%, rgb(var(--night-rgb) / .2) 42%, rgb(var(--night-rgb) / .1) 70%, rgb(var(--night-rgb) / .4) 100%); }
.stack-copy { position: absolute; left: var(--pad); bottom: 11svh; max-width: 560px; opacity: 0; will-change: opacity, translate; }
.stack-copy h2 { margin-bottom: 16px; }
.stack-copy p:not(.kicker) { color: var(--text-2); font-size: 16px; }
.staff-card { position: absolute; right: calc(-1 * min(34vw, 460px)); bottom: 0; width: 210px; margin: 0; border-radius: var(--r-l); overflow: hidden; background: var(--panel); box-shadow: var(--shadow-1); }
.staff-card img { height: 300px; width: 100%; object-fit: cover; object-position: 50% 8%; }
.staff-card figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; font-size: 12px; border-radius: var(--r-pill); background: var(--shade-3); }

.flow { position: relative; z-index: 2; background: var(--bg-2); padding: clamp(72px, 10vw, 140px) var(--pad); border-top: 1px solid var(--line); }
.flow-place { position: relative; max-width: 1360px; height: min(62vh, 640px); margin: 0 auto clamp(56px, 7vw, 100px); border-radius: var(--r-xl); overflow: hidden; }
/* 05: the building photo rises more slowly than its frame, like a street seen through a window further back. The
   photo is 1.48 times the frame's height; while the frame crosses the screen the photo slides from its top end to
   its bottom end inside it (.48 frame heights), so it rises about 15% slower than the page. Scroll-driven (off
   the main thread) where supported; js/main.js sets the same path on scroll elsewhere. */
.flow-place { view-timeline: --place block; }
.flow-place img { position: absolute; inset: -24% 0; width: 100%; height: 148%; object-fit: cover; will-change: transform; }
@supports (animation-timeline: view()) {
  .flow-place img { animation: place-drift linear both; animation-timeline: --place; animation-range: cover; }
}
@keyframes place-drift { from { transform: translateY(-16.2%); } to { transform: translateY(16.2%); } }
@media (prefers-reduced-motion: reduce) { .flow-place img { animation: none; transform: none; } }
.flow-place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(var(--night-rgb) / .72), rgb(var(--night-rgb) / 0) 45%); }
.flow-place figcaption { position: absolute; z-index: 1; left: 28px; bottom: 24px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.flow-place figcaption .caps { font-size: 22px; color: var(--text); letter-spacing: .08em; }
/* the plain numbered lists of a flow (방문 전 · 당일 · 후); a list built from parts (ui-steps) keeps its own look */
.flow ol:not([class]) { list-style: none; margin: 0 auto; padding: 0; max-width: 1360px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 56px); }
.flow ol:not([class]) > li { border-top: 1px solid var(--line); padding-top: 26px; }
.flow .num { font-size: 12px; letter-spacing: .12em; color: var(--label); margin-bottom: 18px; }
.flow ol:not([class]) h3 { margin-bottom: 12px; }
.flow ol:not([class]) li p:last-child { color: var(--text-2); font-size: 15px; }

/* Doctors */
.doctors { background: var(--bg); }
.banner { position: relative; height: 92vh; height: 92svh; overflow: hidden; }
.banner img, .treat-hero img, .closing > img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgb(var(--night-rgb) / .6) 30%, rgb(var(--night-rgb) / .05) 70%); }
.banner-copy { position: absolute; z-index: 1; left: var(--pad); bottom: 9svh; }
.doctors-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); padding: clamp(40px, 6vw, 96px) var(--pad) clamp(90px, 12vw, 180px); max-width: 1520px; margin: 0 auto; }
.portrait { position: sticky; top: calc(var(--header) + 24px); align-self: start; margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--panel); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 6%; will-change: transform; }
.lead { font-size: clamp(22px, 2.1vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.4; margin-bottom: 28px; }
.sample { display: inline-block; font-size: 11px; letter-spacing: .06em; color: var(--text-3); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 10px; margin-bottom: 18px; }
.doctor { border-top: 1px solid var(--line); }
.doctor:last-of-type { border-bottom: 1px solid var(--line); }
.doctor summary, .treat summary { list-style: none; cursor: pointer; display: grid; align-items: center; }
.doctor summary::-webkit-details-marker, .treat summary::-webkit-details-marker { display: none; }
.doctor summary { grid-template-columns: auto auto 1fr 28px; gap: 16px; padding: 26px 0; }
.doctor .name { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; }
.doctor .role { font-size: 13px; color: var(--text-2); }
.doctor .field { font-size: 13px; color: var(--text-3); justify-self: end; }
summary i { position: relative; width: 28px; height: 28px; border-radius: var(--r-round); border: 1px solid var(--line); justify-self: end; }
summary i::before, summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 1px; background: var(--solid); transition: transform .35s var(--ease); }
summary i::after { transform: rotate(90deg); }
details[open] summary i::after { transform: rotate(0); }
.doctor > div { padding: 0 0 26px; max-width: 520px; color: var(--text-2); font-size: 15px; }
.doctor > div p + p { margin-top: 8px; font-size: 13px; }
.principles { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 12px; }
.principles li { font-size: 14px; color: var(--text-2); padding-left: 22px; position: relative; }
.principles li::before { content: ""; position: absolute; left: 0; top: .82em; width: 10px; height: 1px; background: var(--lit); }

/* Treatments */
.treatments { background: var(--bg); }
.treat-hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.treat-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--night-rgb) / .86) 0%, rgb(var(--night-rgb) / .5) 40%, rgb(var(--night-rgb) / .05) 75%), linear-gradient(0deg, var(--bg) 0%, rgb(var(--panel-rgb) / 0) 30%); }
.treat-copy { position: absolute; z-index: 1; left: var(--pad); top: 50%; transform: translateY(-50%); max-width: 560px; }
.treat-copy h2 { margin-bottom: 18px; }
.treat-copy p:last-child { color: var(--text-2); font-size: 16px; }
.treat-list { max-width: 1360px; margin: 0 auto; padding: clamp(40px, 6vw, 90px) var(--pad) clamp(100px, 12vw, 180px); }
.treat { border-top: 1px solid var(--line); }
.treat:last-child { border-bottom: 1px solid var(--line); }
.treat summary { grid-template-columns: 70px 1fr auto 28px; gap: 20px; padding: 34px 0; }
.treat .no { font-family: "VORM Caps6"; color: var(--label); font-size: 14px; }
.treat .name { font-size: clamp(26px, 3.3vw, 48px); font-weight: 600; letter-spacing: -.035em; }
.treat .en { font-size: 12px; letter-spacing: .26em; color: var(--text-3); }
.treat-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); padding: 4px 0 40px 90px; }
.treat-body.single { grid-template-columns: 1fr; max-width: 720px; color: var(--text-2); }
.treat-body h4 { font-size: 13px; font-weight: 600; color: var(--label); letter-spacing: .02em; margin-bottom: 10px; }
.treat-body p { font-size: 15px; color: var(--text-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text-2); }

/* Care */
.care { background: linear-gradient(180deg, var(--bg) 0%, var(--panel) 55%, var(--bg) 100%); padding: clamp(80px, 11vw, 170px) var(--pad); overflow: hidden; }
.care-word { position: absolute; left: 0; top: clamp(40px, 6vw, 90px); white-space: nowrap; font-size: clamp(80px, 15vw, 260px); line-height: 1; color: var(--text-4); pointer-events: none; will-change: transform; }
.care-grid { position: relative; max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.care-copy h2 { margin-bottom: 22px; }
.care-copy > p { color: var(--text-2); font-size: 16px; max-width: 480px; }
.care-steps { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.care-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 2px 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.care-steps li::before { content: "0" counter(s); grid-row: span 2; font-family: "VORM Caps6"; color: var(--label); font-size: 13px; padding-top: 3px; }
.care-steps b { font-weight: 600; }
.care-steps span { font-size: 14px; color: var(--text-2); }
.care-phones { position: relative; height: min(78vh, 720px); }
.device { position: absolute; margin: 0; width: min(19vw, 270px); aspect-ratio: 390 / 844; border-radius: var(--r-2xl); padding: 9px; background: var(--device); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--divider); will-change: transform; }
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-2xl); }
.device.front { left: 46%; top: 6%; }
.device.back { left: 8%; top: 18%; opacity: .9; }

/* Closing */
.closing { position: relative; z-index: 2; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; text-align: center; background: var(--bg); }
.closing::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgb(var(--night-rgb) / .35), rgb(var(--night-rgb) / .8) 70%), linear-gradient(0deg, var(--bg), rgb(var(--night-rgb) / 0) 30%); }
.closing-copy { position: relative; z-index: 1; padding: 0 var(--pad); }
.closing-copy .caps { font-size: 13px; letter-spacing: .32em; color: var(--label); margin-bottom: 26px; }
.closing-copy h2 { font-size: clamp(36px, 5vw, 76px); margin-bottom: 40px; }
.closing-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.ghost { min-height: 56px; display: inline-flex; align-items: center; padding: 0 26px; border-radius: var(--r-pill); border: 1px solid var(--line-3); font-size: 15px; }
.ghost:hover { border-color: var(--solid); }
.site-footer { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); padding: 44px var(--pad) calc(44px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; font-size: 13px; color: var(--text-2); }
.brand-foot { font-size: 30px; color: var(--text); letter-spacing: .06em; }
.site-footer::before { content: ""; position: absolute; inset: -1px 0 auto; height: 1px; background: var(--strip); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a[aria-disabled="true"] { color: var(--text-3); pointer-events: none; }

/* Booking: the phone bar that leads to book.html; the booking page itself is css/pages.css (2026-11-08). */
.mobile-book { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[data-book-main][data-cart-n]::after { content: attr(data-cart-n); display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: var(--r-s); background: var(--lit); color: var(--on-solid); font-size: 11.5px; font-weight: 700; line-height: 1; vertical-align: 1px; }

/* Reveal and parallax */
[data-reveal] { opacity: 0; translate: 0 34px; transition: opacity 1.1s var(--ease), translate 1.1s var(--ease); }
[data-reveal].in { opacity: 1; translate: 0 0; }

@media (max-width: 1080px) {
  .chapters { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
}
@media (max-width: 760px), (orientation: portrait) and (max-width: 900px) {
  :root { --header: 64px; }
  .site-header .book { display: none; }
  .mobile-book { display: block; position: fixed; z-index: 28; left: 0; right: 0; bottom: 0; padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgb(var(--night-rgb) / .92) 40%, rgb(var(--night-rgb) / 0)); }
  .mobile-book button { width: 100%; min-height: var(--h-l); border-radius: var(--r-pill); border: 0; background: var(--solid); color: var(--on-solid); font-size: 16px; font-weight: 600; }
  /* not over a sheet, the menu, or a task opened in a card's place (예약 확인's 시간 바꾸기: its last times and button) */
  body.booking-open .mobile-book, body.menu-open .mobile-book, body.task-open .mobile-book { display: none; }
  .hero { right: var(--pad); bottom: calc(104px + env(safe-area-inset-bottom)); }
  .hero .lede br.wide { display: none; }
  .cue { margin-top: 26px; }
  .side, .note, .annot, .annot.left, .annot.right { left: 18px; right: 18px; top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); transform: none; width: auto; max-width: none; }
  .side h2 { font-size: 32px; margin-bottom: 12px; }
  .side p:not(.kicker) { font-size: 15px; line-height: 1.6; }
  .note { padding: 16px 18px; }
  .annot { padding: 16px 18px; border-radius: var(--r-l); background: var(--glass-2); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .annot .num { margin-bottom: 6px; }
  .annot h3 { font-size: 19px; margin-bottom: 4px; }
  .annot h3 br { display: none; }
  .annot p:last-child { font-size: 13px; line-height: 1.55; }
  .center-top { top: calc(var(--header) + 10px); padding: 0 18px; }
  .build { right: auto; left: 18px; top: calc(var(--header) + 12px); }
  .center-top h2 { font-size: 24px; }
  .kicker { margin-bottom: 12px; }
  .confirm { top: calc(var(--header) + 14px); }
  .next { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .stack-copy { right: var(--pad); bottom: calc(100px + env(safe-area-inset-bottom)); }
  .staff-card { position: relative; right: auto; width: 150px; margin-top: 18px; }
  .staff-card img { height: 170px; }
  .flow ol:not([class]) { grid-template-columns: 1fr; }
  .banner { height: 78svh; }
  .doctors-body { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; aspect-ratio: 4 / 4.4; }
  .doctor summary { grid-template-columns: auto 1fr 28px; }
  .doctor .field { grid-column: 1 / 3; grid-row: 2; justify-self: start; }
  .doctor summary i { grid-column: 3; grid-row: 1 / span 2; }
  .treat-hero::after { background: linear-gradient(0deg, rgb(var(--night-rgb) / .92) 0%, rgb(var(--night-rgb) / .5) 45%, rgb(var(--night-rgb) / .1) 80%); }
  .treat-copy { top: auto; bottom: 10svh; transform: none; right: var(--pad); }
  .treat summary { grid-template-columns: 40px 1fr 28px; }
  .treat .en { display: none; }
  .treat-body { grid-template-columns: 1fr; padding-left: 0; }
  .care-grid { grid-template-columns: 1fr; }
  .care-phones { height: 560px; }
  .device { width: 210px; }
  .device.front { left: auto; right: 0; top: 4%; }
  .device.back { left: 0; top: 16%; }
  .closing-copy h2 br { display: none; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .booking { margin: auto 0 0; width: 100vw; max-width: 100vw; height: auto; max-height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .booking[open] { animation: sheet .5s var(--ease); }
  .booking-form, .booking-done { padding: 26px 20px calc(30px + env(safe-area-inset-bottom)); gap: 18px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; translate: none; }
  .cue span::after, .tap::after { animation: none; }
}

/* Story chapters 03-05 */
.film { height: 480vh; }
.film-report { height: 760vh; }
.film-journey { height: 640vh; }
[data-market="kr"] .film-journey { height: 440vh; }
.film-treatment { height: 560vh; }
.film-doctor { height: 540vh; }
.stream { left: 44vw; right: 0; bottom: 9svh; overflow: visible; }
.stream-row { display: flex; gap: 16px; width: max-content; will-change: transform; }
.tcard { width: 300px; min-height: 196px; text-align: left; display: grid; align-content: start; gap: 8px; padding: 22px 22px 18px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--glass-1); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.tcard:hover { background: var(--fill-4); border-color: var(--line-3); transform: translateY(-4px); }
.tcard .no { font-family: "VORM Caps6"; color: var(--label); font-size: 13px; }
.tcard .en { font-size: 11px; letter-spacing: .24em; color: var(--text-3); }
.tcard b { font-size: 24px; letter-spacing: -.03em; font-weight: 600; }
.tcard .lead { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.tcard .more { margin-top: 6px; font-size: 12px; color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--text-4); }
.docs { right: max(var(--pad), 5vw); top: calc(var(--header) + 8svh); width: 360px; height: calc(100svh - var(--header) - 16svh); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent); mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent); padding-top: 40px; }
.docs .sample { margin-bottom: 14px; }
.docs-row { display: flex; flex-direction: column; gap: 12px; will-change: transform; }
.dcard { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto auto; column-gap: 16px; row-gap: 2px; align-items: center; text-align: left; padding: 14px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--glass-1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: background .3s, border-color .3s; }
.dcard:hover { background: var(--fill-4); border-color: var(--line-3); }
.dcard .face { grid-row: 1 / span 3; width: 64px; height: 64px; border-radius: var(--r-m); overflow: hidden; background: var(--face); display: grid; place-items: center; }
.dcard .face img { width: 100%; height: 100%; object-fit: cover; }
.dcard .face i, .panel-face i { font-style: normal; font-size: 24px; font-weight: 600; color: var(--text-2); }
.dcard .who b { font-size: 18px; letter-spacing: -.02em; }
.dcard .who small { font-size: 12px; color: var(--text-2); margin-left: 4px; }
.dcard .field { font-size: 12px; color: var(--label); }
.dcard .quote { font-size: 13px; color: var(--text-2); }
.panel { padding: 0; border: 0; margin: 0 0 0 auto; height: 100vh; height: 100dvh; max-height: none; width: min(500px, 100vw); background: var(--bg-2); color: var(--text); box-shadow: var(--shadow-drawer); }
.panel[open] { animation: drawer .5s var(--ease); }
.panel::backdrop { background: var(--shade-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel .close { position: absolute; right: 22px; top: 22px; width: 44px; height: 44px; border-radius: var(--r-round); border: 1px solid var(--line); background: var(--glass-2); font-size: 22px; line-height: 1; z-index: 1; }
.panel-body { padding: 40px 34px 44px; display: grid; gap: 10px; }
.panel-body .eyebrow-c { font-size: 11px; letter-spacing: .28em; color: var(--label); margin-top: 6px; }
.panel-body h2 { font-size: 34px; margin-bottom: 6px; }
.panel-body h2 small { font-size: 15px; color: var(--text-2); font-weight: 500; margin-left: 6px; }
.panel-body .lead { font-size: 18px; color: var(--text); line-height: 1.55; margin-bottom: 14px; }
.panel-body h4 { font-size: 13px; color: var(--label); margin-top: 14px; }
.panel-body p { color: var(--text-2); font-size: 15px; }
.panel-body .book { margin-top: 26px; }
.panel-face { width: 100%; aspect-ratio: 1; max-width: 300px; border-radius: var(--r-xl); overflow: hidden; background: var(--face); display: grid; place-items: center; margin-bottom: 10px; }
.panel-face img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px), (orientation: portrait) and (max-width: 900px) {
  .stream { left: 18px; right: 0; bottom: calc(92px + env(safe-area-inset-bottom)); }
  .tcard { width: 250px; min-height: 0; padding: 16px; }
  .tcard b { font-size: 20px; }
  .tcard .lead { font-size: 13px; }
  .docs { left: 0; right: 0; top: auto; bottom: calc(88px + env(safe-area-inset-bottom)); width: auto; height: auto; padding-top: 0; -webkit-mask-image: none; mask-image: none; }
  .docs .sample { margin-left: 18px; }
  .docs-row { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 18px 4px; scrollbar-width: none; }
  .docs-row::-webkit-scrollbar { display: none; }
  .dcard { flex: 0 0 248px; scroll-snap-align: start; }
  .panel { margin: auto 0 0; width: 100vw; max-width: 100vw; height: auto; max-height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .panel[open] { animation: sheet .5s var(--ease); }
  .panel-body { padding: 30px 20px calc(30px + env(safe-area-inset-bottom)); }
  .panel-face { max-width: 180px; }
}

/* Cards over bright interiors need their own glass backdrop. */
.film-journey .annot, .film-treatment .annot, .film-doctor .annot, .film-care .annot { padding: 20px 22px; border-radius: var(--r-l); background: var(--glass-1); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.film-care { height: 760vh; }
.finale { left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 var(--pad); }
.finale .caps { font-size: 13px; letter-spacing: .32em; color: var(--label); margin-bottom: 24px; }
.finale h2 { font-size: clamp(34px, 4.8vw, 72px); margin-bottom: 36px; }
@media (max-width: 760px), (orientation: portrait) and (max-width: 900px) {
  .finale { top: auto; bottom: calc(110px + env(safe-area-inset-bottom)); transform: none; }
  .finale h2 { font-size: 30px; }
  .finale .closing-actions { display: none; }
}

/* Consecutive film chapters overlap by one viewport so the film never pauses between chapters. */
.film + .film { margin-top: -100vh; margin-top: -100svh; }

/* Tablet and mobile: chapter tabs stay visible in a second header row (hamburger keeps the full menu). */
@media (max-width: 1080px) {
  :root { --header: 108px; }
  .site-header { height: var(--header); grid-template-rows: 64px minmax(0, 1fr); padding-bottom: 8px; background: linear-gradient(180deg, rgb(var(--night-rgb) / .78) 0%, rgb(var(--night-rgb) / .5) 72%, rgb(var(--night-rgb) / 0) 100%); }
  .chapters { display: flex; position: relative; grid-column: 1 / -1; grid-row: 2; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); }
  .chapters::-webkit-scrollbar { display: none; }
  .chapters a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r-s); font-size: 13px; font-weight: 500; color: var(--text-2); text-shadow: 0 1px 10px rgb(var(--black-rgb) / .45); transition: background .3s, color .3s; }
  .chapters a i { display: none; }
  .chapters a[aria-current="true"] { color: var(--text); background: var(--fill-5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .chapters a[aria-current="true"]::after { display: none; }
  .progress { bottom: 0; }
}

@media (max-width: 1080px) {
  .site-header { background: linear-gradient(180deg, rgb(var(--night-rgb) / .88) 0%, rgb(var(--night-rgb) / .72) 70%, rgb(var(--night-rgb) / 0) 100%); }
  /* Scroll progress moves to the very top edge so it doesn't read as a tab underline. */
  .progress { top: 0; bottom: auto; left: 0; right: 0; height: 2px; background: transparent; }
  .progress span { background: var(--lit); opacity: .7; }
}

/* Mobile/tablet tabs follow the desktop style: numbered labels, a lit line under the active chapter. */
@media (max-width: 1080px) {
  .chapters { gap: clamp(10px, 3.4vw, 22px); }
  .chapters a { min-height: 34px; padding: 0; border-radius: 0; font-size: 12.5px; font-weight: 400; letter-spacing: -.01em; }
  .chapters a i { display: inline; font-size: 9px; margin-right: 4px; color: var(--text-3); }
  .chapters a[aria-current="true"] { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--text); }
  .chapters a[aria-current="true"] i { color: var(--label); }
  .chapters a[aria-current="true"]::after { display: block; content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--lit); }
}

@media (max-width: 1080px) {
  .chapters { gap: clamp(9px, 3vw, 22px); }
}
@media (max-width: 400px) {
  .chapters a { font-size: 12px; }
  .chapters a i { margin-right: 3px; }
}

/* Shorter journey after replacing the arrival with the clinic bridge; doctor hold replaced by a nod. */
.film-journey { height: 580vh; }
[data-market="kr"] .film-journey { height: 380vh; }
.film-doctor { height: 460vh; }

/* Chapter tabs follow the film: the active tab shows a faint line, and its lit line fills (--fill, set from the
   film's playback) while the film plays through that chapter. */
.chapters a[data-chapter]::before, .chapters a[data-chapter]::after { content: ""; display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.chapters a[data-chapter]::before { background: var(--fill-5); }
.chapters a[data-chapter]::after { background: var(--mark); box-shadow: var(--mark-glow); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
.chapters a[aria-current="true"]::before, .chapters a[aria-current="true"]::after { opacity: 1; }
@media (max-width: 1080px) {
  .chapters a[data-chapter]::before, .chapters a[data-chapter]::after { bottom: 3px; }
}
