:root {
  --bg: #0b0810;
  --bg-2: #130d19;
  --ink: #f6eee8;
  --muted: #b9abb6;
  --dim: #7f7280;
  --rose: #f2b8c6;
  --rose-2: #e392a8;
  --wine: #6a2440;
  --gold: #ecd3a4;
  --glass: rgba(255, 240, 245, 0.055);
  --glass-2: rgba(255, 240, 245, 0.09);
  --line: rgba(255, 230, 240, 0.13);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100svh; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--rose); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--rose); outline-offset: 3px; border-radius: 8px; }

/* ---------- ambient layers ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 52vmax; height: 52vmax; background: #6a2440; top: -18vmax; left: -14vmax; }
.aurora i:nth-child(2) { width: 40vmax; height: 40vmax; background: #3b1d4d; bottom: -16vmax; right: -10vmax; animation-delay: -9s; }
.aurora i:nth-child(3) { width: 26vmax; height: 26vmax; background: #b0607a; top: 40%; left: 55%; opacity: .14; animation-delay: -17s; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(1%,3%)} }

main, .foot { position: relative; z-index: 2; }
body.locked main, body.locked .foot { visibility: hidden; }

/* ---------- gate ---------- */
#gate {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  padding: 20px 16px; overflow-y: auto; background: radial-gradient(120% 80% at 50% 0%, rgba(106,36,64,.35), transparent 60%), rgba(11,8,16,.35);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), visibility 0s 1.1s;
}
#gate.open { opacity: 0; transform: scale(1.08); visibility: hidden; pointer-events: none; }
.gate-inner { width: min(340px, 100%); text-align: center; }
.gate-eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.gate-lock {
  width: 48px; height: 48px; margin: clamp(12px, 2.4svh, 22px) auto clamp(8px, 1.6svh, 14px); border-radius: 50%; display: grid; place-items: center;
  color: var(--rose); background: var(--glass); border: 1px solid var(--line);
}
.gate-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 7vw, 38px); line-height: 1.1; }
.gate-title em { color: var(--rose); }
.gate-sub { margin-top: 8px; font-size: 13px; color: var(--dim); min-height: 1.6em; transition: color .3s; }
.gate-sub.hint { color: var(--gold); }
.dots { display: flex; justify-content: center; gap: 16px; margin: clamp(14px, 2.6svh, 22px) 0 clamp(16px, 3svh, 26px); }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.4px solid var(--rose); transition: background .2s, transform .2s; }
.dots i.on { background: var(--rose); transform: scale(1.1); }
.dots.shake { animation: shake .45s; }
.dots.ok i { background: var(--gold); border-color: var(--gold); }
@keyframes shake { 20%,60%{transform:translateX(-9px)} 40%,80%{transform:translateX(9px)} }
.keypad { --k: clamp(56px, 9svh, 72px); display: grid; grid-template-columns: repeat(3, var(--k)); justify-content: center; gap: clamp(10px, 1.6svh, 14px) 22px; }
.keypad button {
  width: var(--k); height: var(--k); border-radius: 50%; font-size: 26px; font-weight: 300;
  background: var(--glass); border: 1px solid var(--line); display: grid; place-items: center;
  transition: background .2s, transform .15s;
}
.keypad button:hover { background: var(--glass-2); }
.keypad button:active { transform: scale(.93); background: rgba(242,184,198,.22); }
.keypad button[data-k="del"] { background: none; border-color: transparent; color: var(--muted); }
.gate-count { margin-top: clamp(14px, 2.6svh, 26px); font-size: 12.5px; color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center;
  padding: 0 12px; opacity: 0; transform: translateY(-16px);
  transition: opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s;
}
body.unlocked .nav { opacity: 1; transform: none; }
.nav-pill {
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(20, 13, 25, .55); border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.nav-pill a {
  font-size: 13.5px; padding: 8px 14px; border-radius: 999px; color: var(--muted);
  transition: color .25s, background .25s;
}
.nav-pill a:hover { color: var(--ink); }
.nav-pill a.active { color: var(--ink); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line); }
.music-btn {
  width: 36px; height: 36px; margin-left: 4px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--glass);
}
.eq { display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.eq i { width: 2.5px; height: 3px; background: var(--rose); border-radius: 2px; transition: height .3s; }
.playing .eq i { animation: eq 1s ease-in-out infinite; }
.playing .eq i:nth-child(2) { animation-delay: -.3s; }
.playing .eq i:nth-child(3) { animation-delay: -.6s; }
.playing .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100%{height:3px} 50%{height:13px} }

/* ---------- shared ---------- */
section { position: relative; padding: clamp(88px, 13vw, 150px) var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--rose);
}
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 84px); line-height: 1.02; letter-spacing: -.01em; margin-top: 14px; }
.h2 em { color: var(--rose); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 15.5px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rose); color: #2a0f1a; box-shadow: 0 10px 30px -8px rgba(242,184,198,.55); }
.btn-primary:hover { box-shadow: 0 14px 40px -8px rgba(242,184,198,.75); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--glass-2); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.circle-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line); transition: background .25s, transform .25s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.circle-btn:hover { background: var(--glass-2); }
.circle-btn.sm { width: 38px; height: 38px; }

.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

.arch {
  position: relative; overflow: hidden; border-radius: 999px 999px 28px 28px;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 8px rgba(255,240,245,.025);
  transform-style: preserve-3d; transition: transform .5s var(--ease);
}
.arch img, .arch video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: clamp(32px, 6vw, 90px); padding-top: 120px;
}
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(58px, 10vw, 136px); line-height: .95; letter-spacing: -.02em; margin-top: 18px; }
.hero-title em {
  background: linear-gradient(100deg, var(--rose) 0%, var(--gold) 55%, var(--rose-2) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s ease-in-out infinite alternate; padding-right: .06em;
}
@keyframes shimmer { to { background-position: 100% 0; } }
.typer { margin-top: 22px; font-size: clamp(17px, 2vw, 21px); color: var(--ink); min-height: 1.7em; }
.typer-pre { color: var(--dim); }
#typer { font-family: var(--serif); font-style: italic; font-size: 1.25em; color: var(--gold); }
.caret { color: var(--rose); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { margin-top: 18px; max-width: 520px; color: var(--muted); font-size: 16px; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; justify-self: center; width: min(400px, 100%); }
.hero-visual .arch { aspect-ratio: 3 / 4.1; }
.float-polaroid {
  position: absolute; width: 38%; padding: 7px 7px 26px; background: #f7f0ea; border-radius: 4px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.7); animation: bob 6s ease-in-out infinite;
}
.float-polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.fp-1 { left: -18%; bottom: 12%; transform: rotate(-9deg); }
.fp-2 { right: -14%; top: 8%; width: 30%; transform: rotate(8deg); animation-delay: -3s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.badge { position: absolute; right: -10%; bottom: -6%; width: 128px; height: 128px; }
.badge text { fill: var(--gold); font-size: 13.5px; letter-spacing: .18em; text-transform: uppercase; font-family: var(--sans); }
.badge > text:first-of-type { animation: spin 22s linear infinite; transform-origin: 100px 100px; }
.badge .badge-num { font-family: var(--serif); font-style: italic; font-size: 44px; letter-spacing: 0; fill: var(--rose); text-transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.alive { grid-column: 1 / -1; justify-self: center; text-align: center; margin-top: 10px; }
.alive-label { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.alive-grid { display: flex; gap: 10px; margin-top: 12px; justify-content: center; flex-wrap: wrap; }
.alive-grid div {
  min-width: 86px; padding: 12px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.alive-grid b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.alive-grid span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 22px; height: 36px; border-radius: 12px; border: 1px solid var(--line); translate: -50% 0; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--rose); translate: -50% 0; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; top: 6px; } 40% { opacity: 1; } 100% { opacity: 0; top: 20px; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: center; max-width: 1240px; margin: 0 auto; }
.about-photo { position: relative; width: min(420px, 100%); justify-self: center; }
.arch-tall { aspect-ratio: 9 / 15.5; }
.tag {
  position: absolute; font-family: var(--hand); font-size: 22px; color: var(--gold);
  padding: 4px 14px; border-radius: 999px; background: rgba(20,13,25,.65); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap;
}
.tag-a { top: 16%; left: -12%; rotate: -6deg; }
.tag-b { bottom: 9%; right: -10%; rotate: 4deg; font-size: 18px; color: var(--muted); }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 16.5px; margin-top: 18px; max-width: 560px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.bento-card {
  padding: 20px 18px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line);
  transition: transform .4s var(--ease), background .4s;
}
.bento-card:hover { transform: translateY(-4px); background: var(--glass-2); }
.bento-card b { display: block; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; color: var(--rose); }
.bento-card span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ---------- moments board ---------- */
.board { position: relative; height: clamp(560px, 78vh, 780px); max-width: 1180px; margin: 50px auto 0; }
.pol {
  position: absolute; width: var(--w, 210px); padding: 9px 9px 0; background: #f8f1eb; border-radius: 4px;
  box-shadow: 0 18px 38px -14px rgba(0,0,0,.75); cursor: grab; touch-action: none; user-select: none;
  -webkit-user-select: none; transition: box-shadow .3s, scale .3s var(--ease); will-change: transform;
}
.pol:hover { box-shadow: 0 28px 50px -14px rgba(0,0,0,.85); }
.pol.dragging { cursor: grabbing; scale: 1.06; box-shadow: 0 40px 70px -18px rgba(0,0,0,.9); }
.pol img { width: 100%; aspect-ratio: var(--ar, 1); object-fit: cover; pointer-events: none; border-radius: 1px; background: #ddd; }
.pol figcaption { font-family: var(--hand); font-size: 19px; color: #3a2430; text-align: center; padding: 6px 4px 9px; line-height: 1.15; }
.pol::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; translate: -50% 0; rotate: -3deg;
  background: rgba(242,184,198,.55); backdrop-filter: blur(2px);
}
.board-actions { text-align: center; margin-top: 18px; }

.marquee {
  margin: clamp(70px, 10vw, 120px) calc(var(--gutter) * -1) 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 250px; width: auto; border-radius: 14px; border: 1px solid var(--line); object-fit: cover; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-caption { text-align: center; margin-top: 20px; font-family: var(--hand); font-size: 22px; color: var(--muted); }

/* ---------- reels ---------- */
.reels { padding-left: 0; padding-right: 0; }
.reels .section-head { padding: 0 var(--gutter); }
.reel-row {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 50px var(--gutter) 20px;
  scrollbar-width: none; scroll-padding: 0 var(--gutter);
}
.reel-row::-webkit-scrollbar { display: none; }
.reel:first-child { margin-left: auto; }
.reel:last-child { margin-right: auto; }
.reel {
  position: relative; flex: 0 0 auto; width: clamp(220px, 24vw, 280px); aspect-ratio: 9 / 16; border-radius: 28px;
  overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); background: var(--bg-2);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.9); cursor: pointer; transition: transform .5s var(--ease);
}
.reel:hover { transform: translateY(-6px); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; font-size: 13.5px;
  background: linear-gradient(transparent, rgba(11,8,16,.85));
}
.reel-cap b { display: block; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 22px; line-height: 1.1; }
.reel-sound {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(11,8,16,.5); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.reel-sound .on { display: none; }
.reel.unmuted .reel-sound .on { display: block; }
.reel.unmuted .reel-sound .off { display: none; }
.reel.unmuted { box-shadow: 0 0 0 2px var(--rose), 0 30px 60px -28px rgba(0,0,0,.9); }
.reel-nav { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }

/* ---------- reasons ---------- */
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; max-width: 1140px; margin: 0 auto; }
.deck-progress { margin-top: 26px; font-family: var(--serif); font-size: 26px; color: var(--muted); }
.deck-progress span { color: var(--rose); font-size: 40px; }
.deck { position: relative; width: min(340px, 100%); aspect-ratio: 3 / 4; justify-self: center; cursor: pointer; perspective: 1200px; }
.card {
  position: absolute; inset: 0; border-radius: 26px; padding: 30px 26px; display: flex; flex-direction: column;
  justify-content: space-between; border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(0,0,0,.9);
  transition: transform .8s var(--ease), opacity .6s var(--ease);
}
.card-back {
  align-items: center; justify-content: center; text-align: center; gap: 8px;
  background: radial-gradient(circle at 30% 20%, #8a3555, #3a1428 70%);
}
.card-back::after { content: ""; position: absolute; inset: 10px; border-radius: 18px; border: 1px dashed rgba(236,211,164,.35); }
.card-back span { font-size: 44px; color: var(--gold); animation: spin 14s linear infinite; }
.card-back p { font-family: var(--hand); font-size: 26px; color: var(--rose); }
.card-face { background: linear-gradient(160deg, #fbf4ee, #f1e2dc); color: #2b1520; transform-origin: 50% 100%; }
.card-face .num { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--wine); }
.card-face p { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 29px); line-height: 1.22; }
.card-face small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8a6b78; }
.card-face.out { transform: translate(120%, -10%) rotate(18deg); opacity: 0; }
.deck .card-face:nth-last-child(2) { transform: rotate(-4deg) translateY(6px); }
.deck .card-face:nth-last-child(3) { transform: rotate(5deg) translateY(10px); }
.deck .card-face:nth-last-child(n+4) { opacity: 0; }
.deck .card.out { transform: translate(120%, -10%) rotate(18deg); opacity: 0; }

/* ---------- song ---------- */
.song { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 1140px; margin: 0 auto; }
.player {
  display: grid; grid-template-columns: 170px 1fr; gap: 22px; padding: 22px; border-radius: 28px;
  background: rgba(20,13,25,.6); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
}
.player-cover { aspect-ratio: 1; border-radius: 16px; overflow: hidden; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s linear; }
.playing .player-cover img { transform: scale(1.12); }
.player-kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.player-title { font-family: var(--serif); font-size: 36px; line-height: 1.05; margin-top: 4px; }
.player-artist { font-size: 13px; color: var(--muted); }
.player-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin-top: 18px; cursor: pointer; position: relative; }
.player-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--rose); }
.player-time { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin-top: 6px; font-variant-numeric: tabular-nums; }
.player-controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.play-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: transform .25s; }
.play-btn:hover { transform: scale(1.06); }
.play-btn .i-pause { display: none; }
.playing .play-btn .i-pause { display: block; }
.playing .play-btn .i-play { display: none; }
#pLike.liked { color: var(--rose); }
#pLike.liked svg { fill: currentColor; }

/* ---------- letter ---------- */
.envelope {
  position: relative; width: min(420px, 92%); aspect-ratio: 1.55; margin: 60px auto 0; cursor: pointer;
  transition: transform .6s var(--ease);
}
.envelope:hover { transform: translateY(-6px) rotate(-1deg); }
.env-back, .env-front, .env-flap { position: absolute; inset: 0; border-radius: 10px; }
.env-back { background: #5a2238; }
.env-paper {
  position: absolute; left: 7%; right: 7%; top: 8%; height: 84%; border-radius: 6px; background: #f8f0e8;
  display: grid; place-items: center; text-align: center; font-family: var(--hand); font-size: 24px; color: #4b2535; line-height: 1.2;
  transition: transform 1s var(--ease) .35s;
}
.env-front {
  background: linear-gradient(135deg, #7c2f4c, #5e2239);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
}
.env-flap {
  background: linear-gradient(180deg, #8b3858, #6c2742); clip-path: polygon(0 0, 100% 0, 50% 56%);
  transform-origin: top; transition: transform .7s var(--ease), z-index 0s .35s; z-index: 2;
}
.env-seal {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; color: #f9e2c4;
  background: radial-gradient(circle at 35% 30%, #d4a35d, #9a6a2c 70%); box-shadow: 0 4px 12px rgba(0,0,0,.4), inset 0 -3px 6px rgba(0,0,0,.25);
  transition: transform .5s var(--ease), opacity .4s;
}
.envelope.open .env-seal { transform: scale(0) rotate(90deg); opacity: 0; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 0; }
.envelope.open .env-paper { transform: translateY(-46%); }

.letter-modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px 16px;
  background: rgba(8,5,12,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .5s var(--ease);
}
.letter-modal.show { opacity: 1; }
.paper {
  position: relative; width: min(620px, 100%); max-height: 86svh; overflow-y: auto; padding: clamp(36px, 6vw, 60px) clamp(24px, 6vw, 58px);
  border-radius: 6px; color: #3a1e2b; transform: translateY(30px) scale(.97); transition: transform .7s var(--ease);
  background: #f9f2ea repeating-linear-gradient(transparent 0 37px, rgba(160,110,130,.18) 37px 38px);
  background-position: 0 30px; box-shadow: 0 50px 100px -30px rgba(0,0,0,.9);
}
.letter-modal.show .paper { transform: none; }
.paper-close { position: sticky; top: 0; float: right; margin: -14px -10px 0 12px; color: #5a2a3c; background: rgba(90,42,60,.06); border-color: rgba(90,42,60,.15); }
.paper-text { font-family: var(--hand); font-size: clamp(22px, 3.4vw, 26px); line-height: 38px; white-space: pre-wrap; }
.paper-text .sig { display: block; text-align: right; margin-top: 18px; color: #8a3555; }

/* ---------- wish ---------- */
.wish { text-align: center; }
.cake-wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; margin-top: 70px; }
.cake { position: relative; width: 260px; height: 230px; }
.tier { position: absolute; left: 50%; translate: -50% 0; border-radius: 14px 14px 10px 10px; }
.tier-bot { bottom: 18px; width: 240px; height: 86px; background: linear-gradient(#f4dfe0, #e8c3c9); }
.tier-top { bottom: 98px; width: 170px; height: 70px; background: linear-gradient(#fbeeee, #f0d0d5); z-index: 1; }
.tier::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; border-radius: 14px 14px 0 0;
  background: radial-gradient(circle at 10px 18px, var(--rose-2) 9px, transparent 10px) 0 0 / 22px 26px repeat-x, var(--rose-2);
  clip-path: inset(0 0 0 0 round 14px 14px 0 0); mask: linear-gradient(#000 60%, transparent);
}
.tier-bot::after, .tier-top::after {
  content: "✦  ✦  ✦  ✦"; position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--wine); font-size: 12px; letter-spacing: .4em; opacity: .5;
}
.plate { position: absolute; bottom: 4px; left: 50%; translate: -50% 0; width: 280px; height: 20px; border-radius: 50%; background: linear-gradient(#e9dcd6, #b9a6a4); }
.candles { position: absolute; bottom: 164px; left: 50%; translate: -50% 0; display: flex; gap: 22px; z-index: 2; }
.candle { position: relative; width: 34px; height: 54px; border-radius: 6px; background: linear-gradient(90deg, #ecd3a4, #f8ead0 50%, #d9b77c); display: grid; place-items: center; }
.candle span { font-family: var(--serif); font-size: 32px; color: var(--wine); line-height: 1; }
.candle::before { content: ""; position: absolute; top: -10px; left: 50%; width: 2px; height: 10px; background: #3a2a2a; translate: -50% 0; }
.flame {
  position: absolute; top: -40px; left: 50%; width: 16px; height: 30px; translate: -50% 0; cursor: pointer;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 70%, #fff 0 18%, #ffe39a 30%, #ffb347 60%, rgba(255,120,60,0) 72%);
  box-shadow: 0 0 30px 10px rgba(255,190,110,.35); animation: flicker .14s ease-in-out infinite alternate;
  transform-origin: 50% 90%; transition: opacity .4s, transform .4s;
}
.flame { rotate: calc(var(--blow, 0) * -38deg); scale: calc(1 + var(--blow, 0) * .15) calc(1 - var(--blow, 0) * .45); transition: rotate .12s, scale .12s, opacity .4s, transform .4s; }
@keyframes flicker { from { transform: rotate(-3deg) scaleY(1); } to { transform: rotate(3deg) scaleY(1.07); } }
.cake.out .flame { opacity: 0; transform: scaleY(.2); animation: none; }
.smoke { position: absolute; top: -30px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: rgba(220,210,220,.5); filter: blur(3px); animation: smoke 1.6s ease-out forwards; }
@keyframes smoke { to { transform: translate(var(--dx, 6px), -70px) scale(4); opacity: 0; } }
#micBtn.listening { border-color: var(--rose); color: var(--rose); }

.finale { margin: 70px auto 0; max-width: 620px; animation: rise 1.4s var(--ease) both; }
.finale-photo { width: min(320px, 80%); margin: 0 auto; padding: 10px 10px 40px; background: #f8f1eb; border-radius: 4px; rotate: -2deg; box-shadow: 0 30px 60px -20px rgba(0,0,0,.85); }
.finale-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.finale-title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 64px); margin-top: 40px; line-height: 1.05; }
.finale-title em { color: var(--rose); }
.finale-text { color: var(--muted); margin: 16px auto 26px; font-size: 16.5px; max-width: 520px; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 80px var(--gutter) 60px; border-top: 1px solid var(--line); }
.foot-big { font-family: var(--serif); font-size: clamp(34px, 6vw, 64px); line-height: 1.05; }
.foot-big em { color: var(--rose); }
.foot-small { margin-top: 12px; color: var(--dim); font-size: 13px; }
.foot-top { display: inline-block; margin-top: 22px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 20px 16px; background: rgba(8,5,12,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .35s;
}
.lightbox.show { opacity: 1; }
.lightbox figure { justify-self: center; text-align: center; max-width: 100%; }
.lightbox img { max-height: 76svh; max-width: min(900px, 100%); margin: 0 auto; border-radius: 10px; box-shadow: 0 40px 90px -30px #000; transition: opacity .25s; }
.lightbox figcaption { font-family: var(--hand); font-size: 26px; color: var(--rose); margin-top: 14px; }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 2; }

/* ---------- sparkle cursor trail ---------- */
.spark { position: fixed; z-index: 70; pointer-events: none; width: 10px; height: 10px; translate: -50% -50%; color: var(--gold); font-size: 10px; line-height: 1; animation: spark .9s ease-out forwards; }
@keyframes spark { to { opacity: 0; transform: translateY(16px) scale(.3) rotate(90deg); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; gap: 50px; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { width: min(300px, 74%); }
  .alive { margin-top: 0; }
  .about, .reasons, .song { grid-template-columns: 1fr; text-align: center; }
  .about-copy p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .about-photo { width: min(330px, 78%); }
  .tag-a { left: -14%; } .tag-b { right: -12%; }
  .bento { max-width: 520px; margin-left: auto; margin-right: auto; }
  .deck { width: min(300px, 88%); }
}
@media (max-width: 600px) {
  .nav-pill a { padding: 8px 9px; font-size: 12.5px; }
  .bento { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .bento-card { padding: 16px 10px; border-radius: 18px; }
  .bento-card b { font-size: 36px; }
  .bento-card span { font-size: 11.5px; }
  .bento-card span br { display: none; }
  .alive-grid div { min-width: 70px; padding: 10px; }
  .alive-grid b { font-size: 24px; }
  .board { height: 620px; }
  .marquee-track img { height: 180px; }
  .player { grid-template-columns: 1fr; text-align: left; }
  .player-cover { max-width: 100%; aspect-ratio: 16 / 10; }
  .tag { font-size: 18px; }
  .tag-b { font-size: 15px; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 24px; z-index: 2; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
  .badge { width: 100px; height: 100px; right: -14%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* hidden YouTube audio player */
.yt-wrap { position: fixed; right: 0; bottom: 0; width: 200px; height: 200px; overflow: hidden; opacity: .01; pointer-events: none; z-index: -1; }
.yt-wrap iframe { width: 100%; height: 100%; display: block; }
.yt-wrap.show { opacity: 1; pointer-events: auto; z-index: 96; border-radius: 16px; box-shadow: 0 20px 50px -15px #000, 0 0 0 1px var(--line); }
.music-sheet {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px 16px;
  background: rgba(8,5,12,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.music-sheet.show { opacity: 1; }
.ms-card { width: min(340px, 100%); text-align: center; }
.ms-title { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.05; margin-top: 10px; }
.ms-title em { color: var(--rose); }
.ms-sub { color: var(--muted); font-size: 14px; margin-top: 8px; }
.ms-slot { width: 100%; height: 200px; margin: 22px 0 18px; border-radius: 16px; background: rgba(255,255,255,.04); }
.ms-skip { font-size: 13px; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.music-btn.nudge { animation: nudge 1.6s ease-in-out infinite; border-color: var(--rose); }
.music-btn.nudge::after {
  content: "ketuk buat nyalain lagu ♪"; position: absolute; top: calc(100% + 10px); right: 0; white-space: nowrap;
  font-size: 12px; padding: 6px 12px; border-radius: 999px; background: var(--rose); color: #2a0f1a;
}
.music-btn { position: relative; }
@keyframes nudge { 50% { box-shadow: 0 0 0 8px rgba(242,184,198,.18); } }

/* ---------- dinner invitation ---------- */
.dinner { text-align: center; }
.invite {
  position: relative; width: min(460px, 100%); margin: 56px auto 0; padding: 10px; border-radius: 22px;
  background: linear-gradient(150deg, #f9f1ea, #efdfd8); color: #3a1e2b;
  box-shadow: 0 50px 100px -35px rgba(0,0,0,.9), 0 0 0 1px rgba(236,211,164,.5);
}
.invite::before, .invite::after {
  content: ""; position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); translate: 0 -50%;
}
.invite::before { left: -13px; } .invite::after { right: -13px; }
.invite-inner { border: 1px solid rgba(154,106,44,.45); border-radius: 16px; padding: 38px 26px 32px; }
.invite-kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #9a6a2c; }
.invite-title { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 11vw, 62px); line-height: 1; margin-top: 14px; color: #2b1520; }
.invite-title em { color: var(--wine); }
.invite-sub { font-family: var(--hand); font-size: 24px; color: #8a3555; margin-top: 4px; }
.invite-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #b0607a; }
.invite-divider::before, .invite-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(154,106,44,.5), transparent); }
.invite-when { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.invite-when > div { display: flex; flex-direction: column; align-items: center; }
.invite-when small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #8a6b78; }
.invite-when b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; color: #2b1520; }
.invite-date { padding: 4px 22px; border-left: 1px solid rgba(154,106,44,.4); border-right: 1px solid rgba(154,106,44,.4); }
.invite-date b { font-size: 60px; line-height: 1; color: var(--wine); }
.invite-note { margin-top: 24px; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.35; color: #4b2535; }
.invite-count { margin-top: 12px; font-size: 12.5px; color: #8a6b78; letter-spacing: .04em; font-variant-numeric: tabular-nums; min-height: 1.5em; }
.rsvp { margin-top: 22px; }
.rsvp-q { font-size: 14px; color: #6b4a58; }
.rsvp-btns { position: relative; display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; min-height: 50px; }
.invite .btn-primary { background: var(--wine); color: #fbeef0; box-shadow: 0 10px 24px -8px rgba(106,36,64,.6); }
.invite .btn-ghost { background: rgba(90,42,60,.06); border-color: rgba(90,42,60,.22); color: #5a2a3c; backdrop-filter: none; }
.rsvp-no { transition: transform .35s var(--ease); }
.rsvp-yay { font-family: var(--hand); font-size: 28px; color: var(--wine); margin-bottom: 12px; }
.rsvp-done { margin-top: 22px; animation: rise 1s var(--ease) both; }
