@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..700,0..100,0..1;1,9..144,300..700,0..100,0..1&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --cream: #EFE2C8; --cream-2: #E4D4B5; --paper-bg: #FBF5E8;
  --ink: #2B1E14; --ink-60: rgba(43, 30, 20, .68); --ink-40: rgba(43, 30, 20, .48);
  --gold: #9C6B24; --gold-2: #B8892E; --gold-3: #D4A847;
  --paper: var(--ink); --paper-60: var(--ink-60); --paper-40: var(--ink-40);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

[hidden] { display: none !important; }
html { background: var(--cream); color: var(--ink); height: 100%; }
body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; font-family: var(--sans); -webkit-font-smoothing: antialiased; background: var(--cream); color: var(--ink); }
body.has-cur, body.has-cur a, body.has-cur button, body.has-cur summary { cursor: none; }

.hall-canvas { position: fixed; inset: 0; z-index: 0; display: block; }
.hall { position: fixed; inset: 0; z-index: 1; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.hall-labels { position: absolute; inset: 0; pointer-events: none; }
.hall-labels > article { position: absolute; left: 0; top: 0; width: 260px; visibility: hidden; opacity: 0; text-align: center; pointer-events: none; }
.hall-labels .gate-label { display: none; margin: 14px 0 0; }
.hall-labels article.near .gate-label { display: block; }
.hall-labels article.near .gate-label h3 { margin: 0; font: 500 14px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hall-labels article.near .gate-label p { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- The type system: lines rise through a mask ---------- */
.rise { display: block; overflow: hidden; }
.rise > span { display: block; opacity: 0; transform: translateY(112%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease) calc(var(--i, 0) * 70ms), opacity .55s ease calc(var(--i, 0) * 70ms); will-change: transform; }
.in .rise > span { opacity: 1; transform: none; }
.rise.ch { display: inline-block; vertical-align: bottom; }
.rise.ch > span { transition-delay: calc(var(--i, 0) * 22ms + 80ms); }

/* ---------- Chrome: four words ---------- */
.mast, .mast-b { position: fixed; z-index: 30; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 26px 34px; pointer-events: none; }
.mast { top: 0; } .mast-b { bottom: 0; padding-top: 0; padding-bottom: 28px; }
.mast a, .mast-b a { pointer-events: auto; color: var(--ink); text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .82; transition: opacity .3s, color .3s; }
.mast-b > * { background: rgba(244, 234, 214, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 9px 14px; border-radius: 999px; }
.mast-b a.talk { padding: 9px 14px; }
.mast a:hover, .mast a.on, .mast-b a:hover, .mast-b a.on { opacity: 1; }
.mast .mark { font: 500 20px/1 var(--serif); font-variation-settings: 'opsz' 24, 'SOFT' 40; letter-spacing: 0; text-transform: none; opacity: 1; }
.mast nav { display: flex; gap: 30px; }
.mast a:focus-visible, .mast-b a:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; border-radius: 2px; }
.mast::before { content: ''; position: absolute; inset: 0 0 -30px; background: linear-gradient(to bottom, rgba(239, 226, 200, .9), rgba(239, 226, 200, 0)); pointer-events: none; z-index: -1; }
.room-toggle { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.room-toggle i { font-style: normal; color: var(--ink-40); font: 500 12px/1 var(--sans); }
.room-toggle a { opacity: .5; } .room-toggle a.on { opacity: 1; }
.mast, .mast-b { opacity: 0; transition: opacity 1.2s ease .3s; }
body.arrived .mast, body.arrived .mast-b { opacity: 1; }

/* ---------- The hero ---------- */
.head { position: fixed; z-index: 4; left: clamp(20px, 3.2vw, 56px); bottom: 74px; max-width: 40vw; pointer-events: none; opacity: var(--walk, 1); }
.head h1 { margin: 0; font: 400 clamp(44px, 5.8vw, 98px)/.96 var(--serif); font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1; letter-spacing: -.02em; color: var(--ink); }
.head h1 em { font-style: italic; color: var(--gold); }
.head p { margin: 20px 0 0; font: 500 17px/1.5 var(--sans); color: var(--ink); max-width: 30ch; }
.head::before { content: ''; position: absolute; inset: -60px -80px -60px -60px; background: radial-gradient(60% 70% at 30% 70%, rgba(244, 234, 214, .8), rgba(244, 234, 214, 0) 75%); z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.head.in::before { opacity: 1; }
.head .cta { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 13px 20px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font: 600 13px/1 var(--sans); letter-spacing: .04em; background: rgba(255, 252, 245, .7); transition: background .3s, transform .3s var(--ease); }
.head .cta:hover { background: rgba(43, 30, 20, .08); transform: translateY(-1px); }
.head .cta:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.head .rise[data-i="3"] { padding-bottom: 4px; }
body.in-gallery .head { display: none; }

/* ---------- The card panel (hall) ---------- */
.card-panel { position: fixed; z-index: 5; left: 34px; bottom: 92px; width: min(400px, 40vw); pointer-events: none; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s var(--ease); }
.card-panel.in { opacity: var(--fade, 1); transform: none; }
.card-panel > * { pointer-events: auto; }
.card-panel h2 { margin: 0; font: 400 clamp(38px, 4.4vw, 64px)/1 var(--serif); font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1; letter-spacing: -.02em; color: var(--ink); }
.card-panel .gloss { margin: 6px 0 0; font: italic 400 22px/1.2 var(--serif); color: var(--gold); }
.card-panel .price { margin: 14px 0 0; padding-bottom: 14px; font: 400 20px/1 var(--serif); color: var(--ink); border-bottom: 1px solid rgba(156, 107, 36, .4); }
.card-panel .price small { font: 400 12px/1 var(--sans); color: var(--ink-60); margin-left: 8px; letter-spacing: .1em; text-transform: uppercase; }
.card-panel .btns { justify-content: flex-start; margin-top: 16px; gap: 18px; }
.card-panel .swap { transition: opacity .25s ease, transform .4s var(--ease); }
.card-panel.swapping .swap { opacity: 0; transform: translateY(6px); }
.card-panel .p-thumb { display: block; width: 56px; height: 121px; object-fit: cover; border-radius: 8px; border: 1px solid var(--gold); box-shadow: 0 10px 30px rgba(43, 30, 20, .25); margin: 0 0 14px; }
.card-panel.right { left: auto; right: 34px; text-align: right; }
.card-panel.right .p-thumb { margin-left: auto; }
.card-panel.right .btns { justify-content: flex-end; }
.names { position: fixed; z-index: 5; left: 50%; transform: translateX(-50%); bottom: 26px; max-width: calc(100% - 400px); display: flex; justify-content: center; gap: 2px 20px; flex-wrap: wrap; padding: 6px 18px; border-radius: 999px; background: rgba(244, 234, 214, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; opacity: 0; transition: opacity .8s ease .4s; }
.names.in { opacity: var(--fade, 1); }
.names a { pointer-events: auto; font: italic 400 14px/1 var(--serif); color: var(--ink-40); text-decoration: none; padding: 6px 2px; position: relative; transition: color .3s; }
.names a::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.names a:hover, .names a.on { color: var(--ink); }
.names a.on::after { transform: scaleX(1); }
.names a:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 2px; }
body.in-gallery .card-panel, body.in-gallery .names, body.in-gallery .hall-labels { display: none; }

/* ---------- The gallery name ---------- */
.gname { position: fixed; z-index: 5; left: 0; right: 0; bottom: 50px; display: none; flex-direction: column; align-items: center; text-align: center; pointer-events: none; }
body.in-gallery .gname.live { display: flex; }
.gname .gn-name { margin: 0; font: italic 400 clamp(44px, 6.6vw, 104px)/1 var(--serif); font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 1; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.gname .gn-line { margin: 10px 0 0; font: 400 17px/1 var(--serif); color: var(--ink-60); display: flex; gap: 12px; align-items: center; }
.gname .gn-line i { font-style: normal; color: var(--gold); }
.gname .gn-gloss { font-style: italic; color: var(--gold); }
.gname .btns { margin-top: 18px; gap: 18px; pointer-events: auto; }
.gname .rise { display: inline-block; overflow: hidden; vertical-align: bottom; }
.gname .rise > span { display: inline-block; }
.gname .gn-line.rise, .gname .btns.rise { display: flex; }

/* ---------- Buttons ---------- */
.btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; text-decoration: none; font: 600 13px/1 var(--sans); letter-spacing: .04em; border: 1px solid rgba(156, 107, 36, .55); color: var(--ink); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.btn:hover { transform: translateY(-1px); border-color: var(--gold); }
.btn.solid { background: var(--gold-2); color: #FFF8EA; border-color: var(--gold-2); }
.btn.solid:hover { background: var(--gold); border-color: var(--gold); }
.btn:focus-visible, .link:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.link { display: inline-flex; align-items: center; padding: 6px 2px; font: 600 13px/1 var(--sans); letter-spacing: .04em; color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(156, 107, 36, .45); transition: border-color .3s; }
.link:hover { border-color: var(--gold); }

/* ---------- The bloom (walking into the light) ---------- */
.bloom { position: fixed; inset: 0; z-index: 25; pointer-events: none; opacity: 0; background: radial-gradient(75% 65% at 50% 42%, #FFF7E3 0%, #F7E9CB 40%, #EFE0BE 100%); }

/* ---------- The sheet: a card grows out of its door ---------- */
.sheet { position: fixed; z-index: 45; left: var(--l); top: var(--t); width: var(--w); height: var(--h); border-radius: var(--r); overflow: hidden; transition: left .72s cubic-bezier(.7, 0, .2, 1), top .72s cubic-bezier(.7, 0, .2, 1), width .72s cubic-bezier(.7, 0, .2, 1), height .72s cubic-bezier(.7, 0, .2, 1), border-radius .72s cubic-bezier(.7, 0, .2, 1); will-change: left, top, width, height; }
.sheet.grown { left: 0; top: 0; width: 100vw; height: 100svh; border-radius: 0; }
.sheet.fade { left: 0; top: 0; width: 100vw; height: 100svh; border-radius: 0; opacity: 0; transition: opacity .55s ease; }
.sheet.fade.grown { opacity: 1; }
.sheet-paper { position: absolute; inset: 0; background: var(--paper-bg); }
.sheet-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .45s ease; background: transparent; }
.sheet.shown .sheet-frame { opacity: 1; }
.sheet-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(43, 30, 20, .25); background: rgba(251, 245, 232, .85); backdrop-filter: blur(8px); cursor: pointer; opacity: 0; transform: scale(.6); transition: opacity .35s ease .3s, transform .45s var(--ease) .3s; }
.sheet.shown .sheet-close { opacity: 1; transform: none; }
.sheet-close span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.sheet-close span + span { transform: translate(-50%, -50%) rotate(-45deg); }
.sheet-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sheet-full { position: absolute; left: 18px; top: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(43, 30, 20, .25); background: rgba(251, 245, 232, .85); backdrop-filter: blur(8px); color: var(--ink); text-decoration: none; opacity: 0; transition: opacity .35s ease .4s; }
.sheet-full svg { display: block; }
.sheet.shown .sheet-full { opacity: 1; }
body.sheet-open .hall { pointer-events: none; }
body.sheet-open .mast, body.sheet-open .mast-b, body.sheet-open .head, body.sheet-open .card-panel, body.sheet-open .names, body.sheet-open .gname { opacity: 0 !important; pointer-events: none !important; transition: opacity .3s ease; }

/* ---------- The leaves: sheets that slide over the live scene ---------- */
.leaf { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-columns: 1fr min(52vw, 720px); }
.leaf-scrim { cursor: pointer; }
.leaf-paper { position: relative; overflow: auto; overscroll-behavior: contain; padding: clamp(84px, 11vh, 140px) clamp(36px, 5vw, 84px) 56px; background: linear-gradient(rgba(247, 238, 222, .9), rgba(247, 238, 222, .9)), url('../styles/assets/hall/marble-cream.webp') center / 900px; box-shadow: -40px 0 90px rgba(43, 30, 20, .18); transform: translateX(104%); transition: transform .9s var(--ease); }
.leaf-paper::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 1px; background: var(--gold-2); }
.leaf-paper::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(156, 107, 36, .28); pointer-events: none; }
.leaf.open .leaf-paper { transform: none; }
.leaf-close { position: absolute; top: 26px; right: 26px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(43, 30, 20, .3); background: transparent; cursor: pointer; z-index: 2; }
.leaf-close span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.leaf-close span + span { transform: translate(-50%, -50%) rotate(-45deg); }
.leaf-close:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.kicker { margin: 0 0 22px; font: 600 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.leaf h2 { margin: 0; font: 400 clamp(40px, 4.4vw, 68px)/1 var(--serif); font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1; letter-spacing: -.02em; color: var(--ink); }
.leaf h2 em { font-style: italic; color: var(--gold); }
.leaf .lede { margin: 26px 0 0; font: 400 19px/1.5 var(--sans); color: var(--ink-60); max-width: 34ch; }
.leaf .steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 0; }
.leaf .steps li > span { display: flex; align-items: baseline; gap: 22px; padding: 20px 0; border-top: 1px solid rgba(156, 107, 36, .3); font: 400 clamp(24px, 2.2vw, 32px)/1.2 var(--serif); font-variation-settings: 'opsz' 40, 'SOFT' 40; color: var(--ink); }
.leaf .steps li:last-child > span { border-bottom: 1px solid rgba(156, 107, 36, .3); }
.leaf .steps i { font-style: italic; color: var(--gold); font-size: .72em; min-width: 1.4em; }
.leaf .amt { margin: 30px 0 0; font: 400 clamp(84px, 11vw, 170px)/1 var(--serif); font-variation-settings: 'opsz' 144, 'SOFT' 30; letter-spacing: -.03em; color: var(--gold); text-shadow: 0 1px 0 rgba(255, 250, 240, .95), 0 -1px 0 rgba(43, 30, 20, .18); }
.leaf .amt small { display: block; font: 600 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-60); margin-top: 14px; text-shadow: none; }
.leaf .btns { justify-content: flex-start; margin-top: 30px; gap: 20px; }
.leaf .faq { margin: 36px 0 0; border-top: 1px solid rgba(156, 107, 36, .3); }
.leaf details { border-bottom: 1px solid rgba(156, 107, 36, .3); }
.leaf summary { list-style: none; cursor: pointer; position: relative; display: flex; align-items: baseline; gap: 18px; padding: 20px 44px 20px 0; font: 400 clamp(19px, 1.7vw, 24px)/1.3 var(--serif); font-variation-settings: 'opsz' 24, 'SOFT' 40; color: var(--ink); }
.leaf summary::-webkit-details-marker { display: none; }
.leaf summary b { font-weight: 400; font-style: italic; color: var(--gold); font-size: .8em; min-width: 1.6em; }
.leaf summary i { position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); transition: transform .4s var(--ease); }
.leaf summary i::before, .leaf summary i::after { content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--gold); }
.leaf summary i::after { transform: rotate(90deg); }
.leaf details.is-open summary i { transform: translateY(-50%) rotate(45deg); }
.leaf details .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .48s var(--ease); }
.leaf details.is-open .a { grid-template-rows: 1fr; }
.leaf details .a > div { overflow: hidden; }
.leaf details p { margin: 0; padding: 0 0 22px 2.4em; font: 400 16px/1.6 var(--sans); color: var(--ink-60); max-width: 48ch; }
.leaf .plaque { margin: 64px 0 0; padding-top: 22px; border-top: 1px solid rgba(156, 107, 36, .3); font: 600 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-60); }
.leaf .plaque small { display: block; margin-top: 8px; font: italic 400 14px/1 var(--serif); letter-spacing: .02em; text-transform: none; color: var(--ink-40); }
body.leaf-open .head, body.leaf-open .card-panel, body.leaf-open .names, body.leaf-open .gname, body.leaf-open .mast-b { opacity: 0 !important; pointer-events: none !important; transition: opacity .35s ease; }

/* ---------- The loader: a wordmark and three dashes ---------- */
.loader { position: fixed; inset: 0; z-index: 60; background: var(--cream); display: grid; place-items: center; transition: opacity .7s ease, background-color .8s ease; }
.loader.doors { background-color: rgba(239, 226, 200, 0); }
.loader.doors .loader-mark { color: #F7EEDC; text-shadow: 0 1px 2px rgba(20, 10, 6, .6), 0 6px 30px rgba(20, 10, 6, .5); }
.loader.doors .loader-dash { background: rgba(247, 238, 220, .3); } .loader.doors .loader-dash i { background: #E3C185; }
.loader-mark, .loader-dash { transition: color .8s ease, background .8s ease; }
.loader.done { opacity: 0; pointer-events: none; }
.loader-in { display: grid; justify-items: center; gap: 26px; }
.loader-mark { font: italic 400 30px/1 var(--serif); font-variation-settings: 'opsz' 40, 'SOFT' 50; color: var(--ink); opacity: 0; animation: lrise .9s var(--ease) .1s forwards; }
.loader-dashes { display: flex; gap: 10px; }
.loader-dash { display: block; width: 26px; height: 1px; background: rgba(156, 107, 36, .25); overflow: hidden; }
.loader-dash i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.loader.done .loader-mark, .loader.done .loader-dashes { animation: lsink .5s ease forwards; }
@keyframes lrise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lsink { to { opacity: 0; transform: translateY(10px); } }

/* ---------- The cursor ---------- */
.cur { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .3s; display: none; }
body.has-cur .cur { display: block; }
.cur.on { opacity: 1; }
.cur .dot { position: absolute; left: var(--x, -100px); top: var(--y, -100px); width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); transition: transform .25s var(--ease), opacity .25s; }
.cur .ring { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(156, 107, 36, .75); display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), border-color .3s, background .3s; will-change: transform; }
.cur .ring span { font: 600 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .25s; white-space: nowrap; padding-left: .22em; }
.cur.gate .ring { width: 74px; height: 74px; border-color: var(--gold); background: rgba(251, 245, 232, .55); backdrop-filter: blur(4px); }
.cur.gate .ring span { opacity: 1; }
.cur.gate .dot { opacity: 0; }
.cur.spin .ring { width: 58px; height: 58px; border-color: rgba(156, 107, 36, .5); }
.cur.spin .ring span { opacity: .8; }
.cur.link .ring { width: 12px; height: 12px; border-color: var(--gold); background: var(--gold); }
.cur.link .dot { opacity: 0; }
.cur.down .ring { transform-origin: center; }
.cur.down .dot { transform: scale(.6); }

/* ---------- Static fallback (no WebGL) ---------- */
body.no-gl { overflow: auto; }
.hall-static { position: relative; z-index: 1; padding: 120px 0 60px; }
.hall-static .wrap { width: min(1180px, calc(100% - 68px)); margin: 0 auto; }
.hall-static h2 { margin: 0; font: 400 clamp(34px, 4.6vw, 66px)/1.02 var(--serif); font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1; letter-spacing: -.02em; color: var(--ink); }
.hall-static h2 em { font-style: italic; color: var(--gold); }
.hall-static .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.hall-static a { display: block; text-decoration: none; color: var(--ink); }
.hall-static img { display: block; width: 100%; aspect-ratio: 600 / 1298; object-fit: cover; border-radius: 14px; border: 1px solid rgba(156, 107, 36, .5); }
.hall-static h3 { margin: 14px 0 0; text-align: center; font: 500 15px/1.2 var(--sans); }
.hall-static p { margin: 4px 0 0; text-align: center; font: italic 400 15px/1.3 var(--serif); color: var(--ink-60); }
body.no-gl .mast, body.no-gl .mast-b { opacity: 1; }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .mast, .mast-b { padding: 16px 16px; } .mast-b { padding-bottom: 18px; } .mast nav { gap: 14px; } .mast nav a:nth-child(2) { display: none; } .mast a, .mast-b a { font-size: 10.5px; letter-spacing: .1em; } .mast .mark { font-size: 17px; } .mast-b > * { padding: 8px 11px; }
  .head { left: 20px; bottom: 96px; max-width: 86vw; } .head p { font-size: 15px; }
  .card-panel { left: 14px; right: 14px; bottom: 60px; width: auto; padding: 14px 14px 14px 92px; border-radius: 18px; background: rgba(244, 234, 214, .86); backdrop-filter: blur(14px); border: 1px solid rgba(43, 30, 20, .12); box-shadow: 0 20px 50px rgba(43, 30, 20, .18); }
  .card-panel .p-thumb { position: absolute; left: 14px; top: 14px; bottom: 14px; height: auto; width: 62px; margin: 0; }
  .card-panel h2 { font-size: 28px; } .card-panel .gloss { font-size: 16px; margin-top: 2px; }
  .card-panel .price { margin-top: 8px; padding-bottom: 8px; font-size: 16px; } .card-panel .price small { font-size: 10px; }
  .card-panel .btns { margin-top: 10px; gap: 12px; flex-wrap: nowrap; } .card-panel .btn { padding: 11px 16px; font-size: 12px; white-space: nowrap; } .card-panel .link { font-size: 12px; }
  .card-panel.right { left: 14px; right: 14px; text-align: left; } .card-panel.right .btns { justify-content: flex-start; } .card-panel.right .p-thumb { margin: 0; }
  .names { display: none; }
  .gname { bottom: 66px; } .gname .gn-name { font-size: 11vw; } .gname .gn-line { font-size: 14px; margin-top: 6px; } .gname .btns { margin-top: 12px; }
  .leaf { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .leaf-paper { max-height: 88svh; padding: 64px 24px 40px; transform: translateY(104%); border-radius: 22px 22px 0 0; box-shadow: 0 -30px 80px rgba(43, 30, 20, .2); }
  .leaf-paper::before { inset: 0 0 auto 0; width: auto; height: 1px; } .leaf-paper::after { inset: 10px; }
  .leaf-close { top: 14px; right: 14px; }
  .leaf .steps li > span { font-size: 21px; gap: 14px; padding: 14px 0; }
  .leaf .amt { font-size: 20vw; }
  .hall-static .wrap { width: calc(100% - 40px); } .hall-static .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 900px) and (min-width: 721px) { .hall-static .grid { grid-template-columns: repeat(3, 1fr); } .leaf { grid-template-columns: 1fr min(70vw, 720px); } }
@media (prefers-reduced-motion: reduce) {
  .rise > span, .leaf-paper, .sheet, .sheet-frame, .sheet-close, .sheet-full, .card-panel, .card-panel .swap, .names, .mast, .mast-b, .leaf details .a { transition: none !important; }
  .loader { display: none; }
}
