:root { --ink: #f6efe3; --muted: rgba(246,239,227,.68); --gold: #e9c46a; --red: #b3122a; --bg: #0c0a12; --glass: rgba(18,14,26,.72); --line: rgba(246,239,227,.14); --safe-b: env(safe-area-inset-bottom, 0px); }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--ink); font-family: Outfit, system-ui, sans-serif; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
canvas#c { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
.shade { position: fixed; inset: 0; background: linear-gradient(180deg, rgba(12,10,18,.15) 0%, rgba(12,10,18,.55) 45%, rgba(12,10,18,.95) 100%); opacity: 0; pointer-events: none; transition: opacity .5s; }
.shade.show { opacity: 1; }
#cam { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.home { position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; opacity: 0; pointer-events: none; transition: opacity .45s; }
.home.show { opacity: 1; pointer-events: auto; }
.top { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: linear-gradient(180deg, rgba(12,10,18,.8), rgba(12,10,18,0)); z-index: 2; }
.brand { font-family: "Playfair Display", serif; font-size: 22px; font-weight: 700; letter-spacing: .2px; }
.brand.small { font-size: 18px; margin-bottom: 18px; }
.mark { color: var(--gold); }
.link { color: var(--gold); font-weight: 600; font-size: 15px; }
.hero { min-height: 78vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 24px 34px; }
.kicker { color: var(--gold); letter-spacing: 2px; text-transform: uppercase; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
h1 { font-family: "Playfair Display", serif; font-size: clamp(42px, 12vw, 64px); line-height: 1.02; font-weight: 700; }
h1 em { color: var(--gold); font-style: italic; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.5; margin: 14px 0 22px; max-width: 30em; }
.cta-row, .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta { background: var(--gold); color: #1d1406; font-weight: 600; padding: 14px 22px; border-radius: 999px; font-size: 16px; box-shadow: 0 8px 28px rgba(233,196,106,.25); }
.ghost { border: 1px solid var(--line); background: rgba(255,255,255,.06); padding: 13px 20px; border-radius: 999px; font-size: 15px; }
.ghost.rec { background: rgba(179,18,42,.4); border-color: #ff5d6c; }
.fine { color: var(--muted); font-size: 13px; margin-top: 14px; }
.block { padding: 28px 20px; background: var(--bg); }
.block h2 { font-family: "Playfair Display", serif; font-size: 28px; margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.card { text-align: left; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .thumb { display: block; aspect-ratio: 3/4; background-size: cover; background-position: center; }
.card b { font-family: "Playfair Display", serif; font-size: 17px; padding: 10px 12px 2px; }
.card small { color: var(--muted); font-size: 12.5px; padding: 0 12px 12px; line-height: 1.35; }
.how ol { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.how li { counter-increment: s; padding-left: 44px; position: relative; color: var(--muted); line-height: 1.45; }
.how li b { color: var(--ink); }
.how li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-weight: 600; }
.trust p { color: var(--muted); line-height: 1.5; }
.foot { padding: 30px 20px calc(30px + var(--safe-b)); color: var(--muted); font-size: 13px; background: var(--bg); }

.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: #15111d; border-top-left-radius: 24px; border-top-right-radius: 24px; border-top: 1px solid var(--line); padding: 18px 18px calc(20px + var(--safe-b)); transform: translateY(105%); transition: transform .35s ease; z-index: 20; }
.sheet.show { transform: none; }
.sheet header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.sheet small { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.sheet h3 { font-family: "Playfair Display", serif; font-size: 24px; }
.x { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 15px; }
.rows { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input, textarea { font: inherit; font-size: 16px; color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; resize: none; }
.hint-line { font-size: 13px; color: var(--muted); line-height: 1.4; }
.media-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.media-row img { height: 64px; border-radius: 10px; border: 2px solid #fff; }
.media-row img.fig { background: repeating-conic-gradient(#3a3a48 0 25%, #24242e 0 50%) 0 0/12px 12px; border-color: var(--gold); }
.media-row audio { height: 36px; max-width: 210px; }
.note { font-size: 13px; color: var(--muted); }

.overlay { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(12,10,18,.55), rgba(12,10,18,.92)); opacity: 0; pointer-events: none; transition: opacity .4s; z-index: 15; text-align: center; padding: 24px; }
.overlay.show { opacity: 1; pointer-events: auto; }
.splash-in h2 { font-family: "Playfair Display", serif; font-size: 32px; line-height: 1.15; }
.bar { position: fixed; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); z-index: 10; max-width: calc(100vw - 16px); overflow-x: auto; }
.bar button { padding: 10px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.bar button.main { background: var(--gold); color: #1d1406; font-weight: 600; }
.bar.hidden, .chip.hidden, .rec.hidden { display: none; }
.chip { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; z-index: 10; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee38a; }
.cue { position: fixed; top: 18%; left: 50%; transform: translateX(-50%); padding: 10px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: 15px; opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 11; text-align: center; }
.cue.show { opacity: 1; }
.toast { position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 14px; background: rgba(0,0,0,.78); font-size: 14px; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 30; text-align: center; }
.toast.show { opacity: 1; }
.rec { position: fixed; left: 16px; right: 16px; bottom: calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); z-index: 12; font-size: 14px; }
.rec-bar { width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.rec-bar i { display: block; height: 100%; width: 0; background: var(--gold); }
