@font-face { font-family: 'Cormorant'; src: url(/fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(/fonts/jost-latin-300-normal.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(/fonts/jost-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(/fonts/jost-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --iv: #FBF6EE; --paper: #FFFDF8; --cream: #F3EBDD;
  --ruby: #7A1E2C; --ruby-d: #3E0D17; --gold: #B8894D; --gold-d: #8A6230; --gold-l: #E2C08A; --mari: #E39A2D;
  --ink: #4A3A33; --muted: #8A7A6E; --line: rgba(184,137,77,.24);
  --serif: 'Cormorant', Georgia, serif; --sans: 'Jost', system-ui, sans-serif;
  --tabs: 68px; --fs: 1;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: radial-gradient(120% 80% at 80% 0%, #5A1422 0%, #2A0911 60%, #14040A 100%) fixed; font-family: var(--serif); color: var(--ink); }
html.big { --fs: 1.17; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: var(--ruby); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--mari); outline-offset: 2px; }

/* desktop side panel */
.desk { display: none; }
@media (min-width: 980px) {
  .desk { display: block; position: fixed; left: max(40px, calc(50vw - 560px)); top: 50%; transform: translateY(-50%); width: 320px; color: #F1E2CB; }
  .desk-brand { font-family: var(--sans); letter-spacing: .4em; font-size: 14px; color: #F3D39C; text-decoration: none; }
  .desk-brand i { font-family: var(--serif); letter-spacing: 0; font-size: 16px; }
  .desk-k { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-l); margin: 40px 0 10px; }
  .desk h2 { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.05; color: #FFF4E6; margin: 0 0 16px; }
  .desk p { font-size: 19px; line-height: 1.5; color: #E3CDB0; margin: 0; }
  .desk-qr { display: flex; gap: 16px; align-items: center; margin: 28px 0; }
  .desk-qr img { background: #fff; padding: 8px; border-radius: 12px; }
  .desk-qr figcaption { font-family: var(--sans); font-size: 13px; line-height: 1.6; color: #E3CDB0; }
  .desk-qr b { color: #F3D39C; }
  .desk-cta { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #F3D39C; text-decoration: none; border-bottom: 1px solid rgba(243,211,156,.4); padding-bottom: 4px; }
  .app { margin-left: max(400px, calc(50vw - 120px)) !important; }
}
@media (min-width: 520px) { .app { margin: 24px auto; min-height: calc(100dvh - 48px); border-radius: 34px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); overflow: clip; } }

.app { position: relative; max-width: 440px; margin: 0 auto; min-height: 100dvh; background: var(--iv); font-size: calc(18px * var(--fs)); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; height: 60px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 0 8px; padding-top: env(safe-area-inset-top); background: rgba(251,246,238,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar.dark { background: rgba(42,9,16,.86); border-color: rgba(226,192,138,.18); color: #F3D39C; }
.bar .mono { justify-self: center; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: italic; font-size: 17px; color: var(--ruby); box-shadow: inset 0 0 0 1px var(--gold-l); text-decoration: none; }
.bar.dark .mono { color: #F3D39C; }
.ib { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; color: inherit; }
.ib svg { width: 22px; height: 22px; }

/* bottom tabs */
.tabs { position: sticky; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,253,248,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--muted); font-family: var(--sans); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.tabs a svg { width: 22px; height: 22px; }
.tabs a.on { color: var(--ruby); }
.tabs a.on::before { content: ''; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--ruby); }
.tabs .dot { position: absolute; top: 10px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: var(--mari); }

.scr { padding: 22px 20px 34px; min-height: calc(100dvh - 60px - var(--tabs)); animation: scrIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes scrIn { from { opacity: 0; transform: translateY(10px); } }
.scr.dark { background: radial-gradient(120% 70% at 70% 0%, #5A1422, #2A0911 70%); color: #F1E2CB; }

/* type */
.cap { font-family: var(--sans); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-d); margin: 0; }
.dark .cap, .cap.l { color: var(--gold-l); }
.h1 { font-family: var(--serif); font-weight: 500; font-size: calc(36px * var(--fs)); line-height: 1.05; color: var(--ruby-d); margin: 6px 0 0; }
.dark .h1 { color: #FFF4E6; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: calc(25px * var(--fs)); line-height: 1.15; color: var(--ruby-d); margin: 0; }
.dark .h2 { color: #FFF4E6; }
.lede { font-size: calc(19px * var(--fs)); line-height: 1.5; margin: 10px 0 0; }
.small { font-family: var(--sans); font-size: calc(13px * var(--fs)); line-height: 1.5; color: var(--muted); }
.dark .small { color: #CDB9A0; }
.head { text-align: center; margin: 4px 0 22px; }
.head .rule { width: 46px; height: 1px; background: var(--gold); margin: 14px auto 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: transform .2s; }
.btn:active { transform: scale(.98); }
.btn.w { width: 100%; }
.btn-ruby { background: var(--ruby); color: #FFF4E6; }
.btn-gold { background: linear-gradient(135deg, #F3D39C, #C9A063); color: #2A0A10; box-shadow: 0 16px 30px -16px rgba(201,160,99,.9); }
.btn-line { background: transparent; box-shadow: inset 0 0 0 1px var(--gold); color: var(--ruby); }
.dark .btn-line { box-shadow: inset 0 0 0 1px rgba(226,192,138,.5); color: #F3D39C; }
.btn-ig { background: linear-gradient(90deg, #F58529, #DD2A7B, #8134AF); color: #fff; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack { display: grid; gap: 10px; }

.card { background: var(--paper); border-radius: 20px; box-shadow: 0 14px 30px -24px rgba(62,13,23,.5), inset 0 0 0 1px var(--line); }
.dark .card { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(226,192,138,.2); }
.pad { padding: 18px; }
.upd { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--mari); padding: 4px 9px; border-radius: 99px; }
.tag { display: inline-block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: var(--cream); color: var(--gold-d); }

/* PIN */
.gate { position: relative; min-height: 100dvh; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px 26px calc(34px + env(safe-area-inset-bottom)); background: #2A0911 center 20% / cover; }
@media (min-width: 520px) { .gate { min-height: calc(100dvh - 48px); } }
.gate::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,4,8,.15) 0%, rgba(20,4,8,.2) 35%, rgba(20,4,8,.92) 75%); }
.gate > * { position: relative; }
.gate .mono-c { position: absolute; top: calc(26px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-style: italic; font-size: 22px; color: #FFE9C8; box-shadow: inset 0 0 0 1px rgba(255,233,200,.7); backdrop-filter: blur(4px); }
.gate .sv { font-family: var(--serif); font-size: 22px; color: #F3D39C; text-align: center; margin: 0; }
.gate h1 { font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1; text-align: center; margin: 6px 0 8px; color: #FFF8EC; }
.gate h1 em { color: #F3D39C; }
.gate .when { font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-align: center; color: #F1E2CB; margin: 0 0 26px; }
.pin { display: flex; justify-content: center; gap: 12px; margin: 0 0 14px; }
.pin input { width: 54px; height: 62px; border-radius: 16px; border: 0; text-align: center; font-family: var(--sans); font-size: 26px; background: rgba(255,248,236,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,233,200,.45); backdrop-filter: blur(6px); }
.pin input:focus { outline: none; box-shadow: inset 0 0 0 2px #F3D39C; }
.pin.err { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.gate .hint { text-align: center; font-family: var(--sans); font-size: 12.5px; color: #E3CDB0; margin: 6px 0 0; }

/* find invite */
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 54px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.search input { flex: 1; border: 0; background: none; font-size: 19px; outline: none; min-width: 0; }
.who { display: flex; gap: 14px; align-items: center; padding: 14px; text-align: left; width: 100%; border: 0; }
.who img, .av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold-l); }
.who b { display: block; font-weight: 600; font-size: 20px; color: var(--ruby-d); }
.who span { font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.who i { margin-left: auto; font-style: normal; color: var(--gold); font-size: 20px; }

/* home */
.hero { position: relative; margin: -22px -20px 0; height: 470px; background: #2A0911 center 25% / cover; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; text-align: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,4,8,0) 35%, rgba(20,4,8,.85)); }
.hero > * { position: relative; }
.hero .hash { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 99px; background: rgba(255,248,236,.18); backdrop-filter: blur(6px); font-family: var(--sans); font-size: 12px; letter-spacing: .06em; color: #FFE9C8; box-shadow: inset 0 0 0 1px rgba(255,233,200,.35); white-space: nowrap; }
.hero .sv { font-size: 20px; color: #F3D39C; margin: 0; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: 48px; line-height: 1; margin: 4px 0 8px; color: #FFF8EC; }
.hero .when { font-family: var(--sans); font-size: 11.5px; letter-spacing: .3em; margin: 0 0 18px; }
.count { display: flex; justify-content: center; gap: 8px; }
.count div { min-width: 64px; padding: 9px 8px 7px; border-radius: 14px; background: rgba(255,248,236,.14); box-shadow: inset 0 0 0 1px rgba(255,233,200,.3); backdrop-filter: blur(6px); }
.count b { display: block; font-family: var(--sans); font-weight: 400; font-size: 24px; line-height: 1; }
.count span { font-family: var(--sans); font-size: 9.5px; letter-spacing: .2em; color: #F1E2CB; }
.hi { margin-top: 18px; display: flex; gap: 14px; align-items: center; padding: 16px; }
.hi .t { font-size: 22px; font-weight: 600; color: var(--ruby-d); line-height: 1.1; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-top: 12px; text-decoration: none; color: inherit; }
.alert p { margin: 6px 0 0; font-size: 17px; line-height: 1.35; }
.next { margin-top: 12px; display: grid; grid-template-columns: 92px 1fr; overflow: hidden; text-decoration: none; color: inherit; }
.next .im { background: center/cover; min-height: 112px; }
.next .b { padding: 14px 16px; }
.next h3 { margin: 4px 0 2px; font-weight: 600; font-size: 22px; color: var(--ruby-d); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.tile { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ruby-d); text-align: center; padding: 8px; position: relative; }
.tile .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ruby); font-size: 19px; }
.tile .ic svg { width: 21px; height: 21px; }
.tile span { font-family: var(--sans); font-size: calc(11px * var(--fs)); letter-spacing: .06em; line-height: 1.25; }
.tile.hot .ic { background: linear-gradient(135deg, #F3D39C, #C9A063); color: var(--ruby-d); }
.tile .new { position: absolute; top: 8px; right: 8px; font-family: var(--sans); font-size: 8.5px; letter-spacing: .14em; padding: 3px 6px; border-radius: 99px; background: var(--ruby); color: #FFF4E6; }
.demo-pill { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px 16px; border-radius: 18px; background: var(--ruby-d); color: #F1E2CB; text-decoration: none; }
.demo-pill b { color: #F3D39C; font-weight: 500; }
.demo-pill span { font-family: var(--sans); font-size: 12.5px; line-height: 1.45; }

/* functions */
.daylbl { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; color: var(--gold-d); margin: 22px 0 10px; }
.fn { overflow: hidden; margin-bottom: 12px; }
.fn summary { list-style: none; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
.fn summary::-webkit-details-marker { display: none; }
.fn .fi { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ruby); font-size: 20px; }
.fn h3 { margin: 0; font-size: 23px; font-weight: 600; color: var(--ruby-d); }
.fn .meta { font-family: var(--sans); font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.fn .chev { color: var(--gold); transition: transform .3s; }
.fn[open] .chev { transform: rotate(90deg); }
.fn .body { padding: 0 16px 18px; }
.fn .ph { height: 150px; border-radius: 14px; background: center/cover; margin-bottom: 12px; }
.fn .body p { margin: 0 0 10px; font-size: 18px; line-height: 1.45; }
.fn .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fn .acts .btn { min-height: 40px; padding: 0 14px; font-size: 10.5px; }
.sw { display: flex; gap: 6px; margin: 8px 0 4px; }
.sw i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* dress */
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 16px; padding: 0 20px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 38px; padding: 0 16px; border-radius: 99px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--sans); font-size: 12px; letter-spacing: .08em; color: var(--ink); }
.seg button.on { background: var(--ruby); color: #FFF4E6; box-shadow: none; }
.mood { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 130px 130px; gap: 8px; }
.mood div { border-radius: 16px; background: center/cover; }
.mood div:first-child { grid-row: span 2; }
.palette { display: flex; height: 64px; border-radius: 16px; overflow: hidden; margin: 14px 0; box-shadow: inset 0 0 0 1px var(--line); }
.palette i { flex: 1; }
.note { display: flex; gap: 12px; padding: 14px 16px; font-size: 17px; line-height: 1.4; margin-top: 10px; }

/* RSVP */
.q { margin: 20px 0 10px; font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-d); }
.chk { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 8px; cursor: pointer; }
.chk input { position: absolute; opacity: 0; }
.chk .bx { width: 24px; height: 24px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--gold); display: grid; place-items: center; color: transparent; flex: none; }
.chk input:checked + .bx { background: var(--ruby); box-shadow: none; color: #fff; }
.chk input:focus-visible + .bx { outline: 2px solid var(--mari); outline-offset: 2px; }
.chk b { font-weight: 600; font-size: 20px; color: var(--ruby-d); }
.chk small { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; }
.stepper div { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ruby); font-size: 20px; }
.stepper b { font-family: var(--sans); font-weight: 400; font-size: 20px; min-width: 20px; text-align: center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: inline-flex; height: 42px; padding: 0 18px; align-items: center; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--sans); font-size: 13px; cursor: pointer; }
.pills input:checked + span { background: var(--ruby); color: #FFF4E6; box-shadow: none; }
.pills input:focus-visible + span { outline: 2px solid var(--mari); outline-offset: 2px; }
.field { width: 100%; height: 50px; border-radius: 14px; border: 0; padding: 0 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; }
textarea.field { height: 110px; padding: 12px 14px; resize: vertical; }
.done { text-align: center; padding: 26px 18px; }
.done .big { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: linear-gradient(135deg, #F3D39C, #C9A063); color: var(--ruby-d); font-size: 32px; }

/* travel */
.stay { overflow: hidden; }
.stay .im { height: 150px; background: center/cover; position: relative; }
.stay .im span { position: absolute; left: 12px; top: 12px; background: #2E7D4F; color: #fff; font-family: var(--sans); font-size: 10px; letter-spacing: .16em; padding: 5px 9px; border-radius: 99px; }
.li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.li .ic2 { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ruby); }
.li b { display: block; font-weight: 600; font-size: 19px; color: var(--ruby-d); }
.li span { font-family: var(--sans); font-size: 13px; color: var(--muted); line-height: 1.5; }

/* updates */
.up { padding: 16px; margin-bottom: 10px; }
.up .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.up h3 { margin: 0 0 4px; font-size: 21px; font-weight: 600; color: var(--ruby-d); }
.up p { margin: 0; font-size: 17px; line-height: 1.45; }

/* AI */
.ai-intro { text-align: center; }
.ai-intro .stack-im { position: relative; height: 300px; margin: 18px 0 8px; }
.ai-intro .stack-im div { position: absolute; width: 180px; aspect-ratio: 1; top: 30px; border-radius: 6px; background: #fff center/cover; border: 8px solid #FFFDF9; border-bottom-width: 30px; box-shadow: 0 30px 40px -20px rgba(0,0,0,.7); }
.ai-intro .s1 { left: calc(50% - 170px); transform: rotate(-8deg); }
.ai-intro .s2 { left: calc(50% - 90px); top: 0 !important; z-index: 2; }
.ai-intro .s3 { left: calc(50% - 10px); transform: rotate(8deg); }
.consent { display: flex; gap: 12px; text-align: left; padding: 14px 16px; margin: 16px 0; font-family: var(--sans); font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.consent input { width: 22px; height: 22px; accent-color: var(--mari); flex: none; margin: 1px 0 0; }
.selfie { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto; background: center/cover; box-shadow: 0 0 0 3px var(--ruby-d), 0 0 0 5px var(--gold-l); }
.scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.scene { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; border: 0; padding: 0; background: center/cover; text-align: left; box-shadow: inset 0 0 0 1px rgba(226,192,138,.25); }
.scene::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,4,8,.85)); }
.scene b { position: absolute; left: 12px; bottom: 12px; right: 12px; font-weight: 500; font-size: 19px; color: #FFF4E6; }
.scene small { position: absolute; left: 10px; top: 10px; font-family: var(--sans); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; background: rgba(0,0,0,.45); color: #F1E2CB; }
.scene.on { box-shadow: 0 0 0 3px #F3D39C; }
.scene.on::after { content: '✓'; position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: #F3D39C; color: var(--ruby-d); display: grid; place-items: center; font-family: var(--sans); font-size: 14px; }
.opt { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; border-bottom: 1px solid rgba(226,192,138,.15); font-family: var(--sans); font-size: 13.5px; }
.sw-t { width: 44px; height: 26px; border-radius: 99px; background: #C9A063; position: relative; flex: none; }
.sw-t::after { content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.gen { text-align: center; padding-top: 40px; }
.gen .orb { width: 140px; height: 140px; margin: 0 auto 28px; border-radius: 50%; background: center/cover; position: relative; box-shadow: 0 0 0 3px rgba(243,211,156,.4); }
.gen .orb::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid transparent; border-top-color: #F3D39C; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gen ol { list-style: none; padding: 0; margin: 20px auto 0; max-width: 300px; text-align: left; font-family: var(--sans); font-size: 14px; display: grid; gap: 10px; }
.gen li { opacity: .35; transition: opacity .4s; }
.gen li.on { opacity: 1; }
.gen li.on::before { content: '✓ '; color: #F3D39C; }
.result-c { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.7); }

/* photos */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 -20px; }
.gal button { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: #ddd center/cover; }
.gal button em { position: absolute; right: 5px; bottom: 5px; font-family: var(--serif); font-style: italic; font-size: 11px; color: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.8); border-radius: 50%; padding: 0 4px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.gal button i { position: absolute; left: 5px; top: 5px; font-style: normal; font-family: var(--sans); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 6px; border-radius: 99px; background: var(--mari); color: #fff; }
.finder { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin: 14px 0; text-align: left; width: 100%; border: 0; }
.finder .ic2 { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #F3D39C, #C9A063); color: var(--ruby-d); background-size: cover; background-position: center; }
.finder b { display: block; font-weight: 600; font-size: 20px; color: var(--ruby-d); }
.finder span { font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.scan { position: relative; width: 200px; height: 200px; margin: 30px auto 20px; border-radius: 50%; background: center/cover; overflow: hidden; box-shadow: 0 0 0 4px var(--gold-l); }
.scan::after { content: ''; position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(243,211,156,.7), transparent); animation: scanl 1.2s ease-in-out infinite alternate; }
@keyframes scanl { from { top: -40%; } to { top: 100%; } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 38px; padding: 0 15px; border-radius: 99px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--sans); font-size: 12px; letter-spacing: .06em; }
.chips button.on { background: var(--ruby); color: #FFF4E6; box-shadow: none; }

/* sheet / viewer */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(14,4,8,.6); backdrop-filter: blur(4px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet .in { width: 100%; max-width: 440px; max-height: 94dvh; overflow: auto; background: var(--iv); border-radius: 26px 26px 0 0; padding: 16px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .35s cubic-bezier(.2,.7,.2,1); }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(0,0,0,.15); margin: 0 auto 12px; }
.sheet canvas, .sheet .pv { width: 100%; height: auto; border-radius: 10px; display: block; background: #eee; }
.sheet .x { float: right; }

/* studio */
.st-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin: 16px -20px 0; padding: 4px 20px 10px; scrollbar-width: none; }
.st-row::-webkit-scrollbar { display: none; }
.st-card { flex: none; width: 200px; scroll-snap-align: start; border: 0; padding: 0; background: none; text-align: left; }
.st-card .pv { width: 200px; aspect-ratio: 9/16; border-radius: 16px; background: #e9e0d0 center/cover; box-shadow: 0 20px 30px -20px rgba(62,13,23,.6); }
.st-card b { display: block; margin-top: 10px; font-weight: 600; font-size: 18px; color: var(--ruby-d); }
.st-card span { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.journey { display: grid; gap: 10px; margin-top: 22px; }

/* family */
.side { margin: 22px 0 10px; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-d); }
.person { display: flex; gap: 14px; align-items: center; padding: 12px 14px; margin-bottom: 8px; width: 100%; border: 0; text-align: left; }
.person b { display: block; font-weight: 600; font-size: 19px; color: var(--ruby-d); }
.person span { font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.person p { margin: 6px 0 0; font-size: 16.5px; line-height: 1.4; display: none; }
.person.open p { display: block; }

/* blessings */
.bl { padding: 16px; margin-bottom: 10px; }
.bl p { margin: 0 0 10px; font-size: 19px; line-height: 1.45; font-style: italic; }
.bl b { font-weight: 600; color: var(--ruby-d); }
.bl span { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.vn { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vn button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ruby); color: #fff; display: grid; place-items: center; }
.wave { display: flex; align-items: center; gap: 2px; height: 26px; flex: 1; }
.wave i { flex: 1; background: var(--gold-l); border-radius: 2px; }
.rec { display: flex; align-items: center; gap: 10px; }
.rec .dotr { width: 10px; height: 10px; border-radius: 50%; background: #D33; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* faq / more */
.faq details { padding: 0 16px; margin-bottom: 8px; }
.faq summary { padding: 16px 0; font-weight: 600; font-size: 19px; color: var(--ruby-d); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--gold); font-family: var(--sans); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 16px; font-size: 17.5px; line-height: 1.5; }
.menu a, .menu button { display: flex; align-items: center; gap: 14px; padding: 15px 16px; width: 100%; border: 0; background: none; text-align: left; text-decoration: none; color: var(--ruby-d); font-size: 20px; border-bottom: 1px solid var(--line); }
.menu .ic2 { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ruby); flex: none; font-size: 16px; }
.menu .r { margin-left: auto; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.tog { width: 48px; height: 28px; border-radius: 99px; background: #D8CDBC; position: relative; flex: none; margin-left: auto; transition: background .2s; }
.tog::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tog.on { background: var(--ruby); }
.tog.on::after { transform: translateX(20px); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; width: min(400px, calc(100vw - 32px)); display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255,253,249,.98); color: var(--ruby-d); box-shadow: 0 24px 40px -18px rgba(0,0,0,.55); font-family: var(--sans); font-size: 13.5px; line-height: 1.4; animation: up .35s; }
@media (min-width: 980px) { .toast { left: calc(max(400px, calc(50vw - 120px)) + 220px); } }
.toast b { display: block; font-size: 14.5px; }
.toast .pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--mari); flex: none; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227,154,45,.6); } 70% { box-shadow: 0 0 0 12px rgba(227,154,45,0); } 100% { box-shadow: 0 0 0 0 rgba(227,154,45,0); } }
.toast a { margin-left: auto; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ruby); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* v2 — explainer components */
.bdot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--mari); }
.lockchip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; background: rgba(243,211,156,.14); color: #F3D39C; box-shadow: inset 0 0 0 1px rgba(243,211,156,.4); }
.lockchip.light { background: var(--cream); color: var(--ruby); box-shadow: inset 0 0 0 1px var(--line); }
.q.l { color: var(--gold-l); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(226,192,138,.2); }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-size: 13px; background: linear-gradient(135deg, #F3D39C, #C9A063); color: var(--ruby-d); }
.steps b { font-weight: 600; font-size: 19px; color: #FFF4E6; }
.steps span { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: #CDB9A0; }
.scene { cursor: default; }
.dl { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 17px; line-height: 1.4; }
.dark .dl { color: #F1E2CB; }
.dl li::marker { color: var(--gold-l); }
.album { margin-top: 26px; }
.drops { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.drops li { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 16px; }
.drops b { display: block; font-weight: 600; font-size: 19px; color: var(--ruby-d); }
.drops span { font-family: var(--sans); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.drops em { flex: none; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-family: var(--sans); font-size: 11px; letter-spacing: .04em; padding: 6px 10px; border-radius: 99px; background: var(--cream); color: var(--gold-d); white-space: nowrap; }
.drops em.ok { background: #2E7D4F; color: #fff; }
.lk { display: block; text-decoration: none; color: inherit; margin-top: 14px; }
.vb { width: 38px; height: 38px; border-radius: 50%; background: var(--ruby); color: #fff; display: grid; place-items: center; flex: none; }

/* v3 — motion & visual-first */
.gate, .hero { overflow: hidden; isolation: isolate; }
.gate > .kb, .hero > .kb, .aiband > .kb { position: absolute !important; inset: 0; background: center / cover no-repeat; z-index: 0; animation: kb 22s ease-in-out infinite alternate; will-change: transform; }
.gate::before, .hero::before { z-index: 1; }
.gate > :not(.kb), .hero > :not(.kb) { z-index: 2; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.15) translate(-1.5%, -2%); } }
.hero h1 { animation: titleIn 1.1s cubic-bezier(.2,.7,.2,1) both .15s; }
.hero .sv, .hero .when { animation: titleIn 1.1s cubic-bezier(.2,.7,.2,1) both .3s; }
.hero .count div { animation: titleIn .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .count div:nth-child(2) { animation-delay: .5s; } .hero .count div:nth-child(3) { animation-delay: .6s; } .hero .count div:nth-child(1) { animation-delay: .4s; }
@keyframes titleIn { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }

#main :is(.card, .tile, .gal button, .scene, .steps li, .chipsrow li, .daylbl) { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.tile.hot .ic { animation: glow 2.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(227,154,45,.18); } }
.gal button { overflow: hidden; }
.gal button:active { transform: scale(.97); }

.lockchip { position: relative; overflow: hidden; }
.lockchip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.4s ease-in-out infinite 1s; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }

.steps4 { grid-template-columns: 1fr 1fr; }
.steps4 li { grid-template-columns: 32px 1fr; align-items: center; padding: 12px; }
.steps4 li::before { grid-row: auto; }
.steps4 b { font-size: 17px; }
.chipsrow { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chipsrow li { font-family: var(--sans); font-size: 12px; padding: 8px 12px; border-radius: 99px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(226,192,138,.3); color: #F1E2CB; }
.aiband { position: relative; height: 128px; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; color: #FFF4E6; isolation: isolate; }
.aiband::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,4,8,.05), rgba(20,4,8,.8)); }
.aiband span { position: relative; z-index: 2; font-family: var(--sans); font-size: 12.5px; }
.aiband b { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.drops li { padding: 14px 16px; }
@media (prefers-reduced-motion: reduce) { .kb, #main * { animation: none !important; } }
