/* =========================================================
   Undangan Pernikahan Digital — editorial · cinematic · 3D
   ========================================================= */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --night: #120a0d;
  --night-2: #1d1116;
  --plum: #2c1623;
  --merlot: #5a1627;
  --merlot-2: #7c2439;
  --olive: #5f6136;
  --champagne: #dcc39a;
  --gold: #c9a46a;
  --paper: #f4eee6;
  --paper-2: #ebe3d7;
  --ink: #1b1315;
  --ink-2: #4a3d3b;
  --ink-3: #7d6f6a;
  --line: rgba(27, 19, 21, .14);
  --line-light: rgba(255, 244, 232, .16);
  --cream: #fbf5ec;
  --digicam: #ff8a3d;
  --holo: linear-gradient(115deg, #f7d4e4 0%, #dcd3fb 22%, #c9efe4 44%, #f8e6c1 66%, #f4c9d9 88%, #dcd3fb 100%);

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(20px, 5.5vw, 32px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --feed-w: 100vw;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; background: var(--night); }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }
body.is-locked { overflow: hidden; height: 100svh; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--merlot); color: var(--cream); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Film grain (dipakai di banyak tempat) */
.grain {
  position: absolute; inset: -50%; pointer-events: none; z-index: 3; opacity: .09; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 550; letter-spacing: .01em;
  transition: background-color .3s, color .3s, box-shadow .35s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--merlot); }
.btn--line { border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.btn--line:hover { background: var(--cream); }
.btn--ghost-light { border: 1px solid var(--line-light); color: var(--cream); background: rgba(255,255,255,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn--holo {
  position: relative; color: var(--ink); background: var(--cream); isolation: isolate;
  box-shadow: 0 10px 40px -10px rgba(220, 195, 154, .55), inset 0 0 0 1px rgba(255,255,255,.6);
  overflow: hidden;
}
.btn--holo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--holo); background-size: 250% 100%;
  animation: holo-shift 5s linear infinite; opacity: .95;
}
.btn--holo::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  animation: shine 3.2s var(--ease) infinite 1.2s;
}
@keyframes holo-shift { to { background-position: 250% 0; } }
@keyframes shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: var(--cream); border: 1px solid var(--line-light);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color .25s, transform .25s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.18); }
.icon-btn:active { transform: scale(.92); }

/* ================= LOADER ================= */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--night); color: var(--champagne);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mono { font-family: var(--serif); font-size: 56px; line-height: 1; display: flex; gap: .12em; align-items: baseline; }
.loader__mono i { font-size: .72em; opacity: .7; }
.loader__mono span, .loader__mono i { animation: rise 1s var(--ease) both; }
.loader__mono i { animation-delay: .1s; } .loader__mono span:last-child { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(40%); opacity: 0; filter: blur(8px); } }
.loader__bar { width: 120px; height: 1px; background: rgba(220,195,154,.2); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--champagne); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .3s; }
.loader__pct { color: rgba(220,195,154,.6); font-size: 10px; }

/* ================= COVER ================= */
.cover {
  position: fixed; inset: 0; z-index: 100; overflow: hidden; color: var(--cream);
  background: radial-gradient(120% 80% at 50% 45%, #3a1522 0%, #1c0c12 45%, #0b0608 100%);
  --iris: 0;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent calc(var(--iris) * 1vmax), #000 calc(var(--iris) * 1vmax + 1px));
          mask-image: radial-gradient(circle at 50% 50%, transparent calc(var(--iris) * 1vmax), #000 calc(var(--iris) * 1vmax + 1px));
  touch-action: none;
}
.cover.is-gone { display: none; }
.cover__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 30% at 50% 46%, rgba(232, 190, 140, .22), transparent 70%),
    radial-gradient(30% 25% at 30% 70%, rgba(175, 120, 200, .12), transparent 70%),
    radial-gradient(35% 25% at 72% 28%, rgba(240, 150, 170, .12), transparent 70%);
  animation: glow-breathe 7s ease-in-out infinite alternate;
}
@keyframes glow-breathe { to { transform: scale(1.12); opacity: .75; } }
.cover__scene { position: absolute; inset: 0; z-index: 1; }
.cover__scene canvas { width: 100% !important; height: 100% !important; display: block; }
.cover__fallback { position: absolute; left: 50%; top: 46%; width: 0; height: 0; z-index: 1; display: none; }
.cover.no-webgl .cover__fallback { display: block; }
.fallback-ring {
  position: absolute; width: 150px; height: 150px; left: -105px; top: -75px; border-radius: 50%;
  border: 14px solid transparent;
  background: linear-gradient(145deg, #fff3d6, #c9a15c 35%, #7a5522 60%, #f3d9a0 85%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box;
          mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box;
  transform: rotateX(60deg) rotateZ(-20deg); animation: fr-spin 8s linear infinite;
}
.fallback-ring--2 { left: -45px; background: linear-gradient(145deg, #fde4da, #d99c86 35%, #8c5647 60%, #f6cdbd 85%) border-box; animation-duration: 10s; animation-direction: reverse; }
@keyframes fr-spin { to { transform: rotateX(60deg) rotateZ(340deg); } }
.cover__grain { opacity: .12; }
.cover__ui {
  position: relative; z-index: 4; height: 100%; display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gutter) calc(24px + var(--safe-b));
  pointer-events: none;
}
.cover__ui > * { pointer-events: none; }
.cover__ui button, .cover__ui a { pointer-events: auto; }
.cover__top { display: flex; justify-content: space-between; color: rgba(251,245,236,.7); }
.cover__center { display: grid; align-content: start; justify-items: center; padding-top: 5svh; }
.cover__names {
  margin: 0; font-family: var(--serif); font-weight: 400; text-align: center;
  font-size: clamp(56px, 17vw, 132px); line-height: .86; letter-spacing: -.02em;
  text-shadow: 0 10px 50px rgba(0,0,0,.45);
}
.cover__names .amp { display: block; font-style: italic; font-size: .5em; color: var(--champagne); line-height: 1.1; }
.cover__names .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.cover__names .ln > span { display: inline-block; }
.cover__bottom { display: grid; justify-items: center; gap: 16px; text-align: center; }
.cover__guest { display: grid; gap: 4px; }
.cover__guest-label { font-size: 12px; color: rgba(251,245,236,.62); }
.cover__guest-name { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.1; }
.cover__hint { color: rgba(251,245,236,.4); font-size: 9.5px; margin: 0; }
.cover.is-opening .cover__hint, .cover.no-webgl .cover__hint { display: none; }

/* ================= DESKTOP STAGE ================= */
.stage { display: none; }

/* ================= FEED / SECTIONS ================= */
.feed { position: relative; width: 100%; }
.sec { position: relative; padding: clamp(84px, 16vw, 120px) var(--gutter); overflow: hidden; }
.sec--paper { background: var(--paper); }
.sec--paper2 { background: var(--paper-2); }
.sec--night { background: var(--night); color: var(--cream); }
.sec-head { display: grid; gap: 14px; margin-bottom: 44px; }
.sec-head__idx { display: flex; align-items: center; gap: 12px; color: var(--ink-3); }
.sec--night .sec-head__idx { color: rgba(251,245,236,.5); }
.sec-head__idx::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.sec-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 14vw, 76px); line-height: .92; letter-spacing: -.02em; }
.sec-title em { font-style: italic; color: var(--merlot); }
.sec--night .sec-title em { color: var(--champagne); }
.sec-lead { margin: 0; color: var(--ink-2); max-width: 34ch; }
.sec--night .sec-lead { color: rgba(251,245,236,.66); }

/* split-text helper */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .12em .08em 0; margin: 0 -.12em -.08em 0; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; background: var(--night); color: var(--cream); overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
.hero__media video { opacity: 0; transition: opacity 1.2s; }
.hero__media.is-playing video { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.18) translate(-2%, -2%); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,5,7,.55) 0%, rgba(10,5,7,.05) 30%, rgba(10,5,7,.1) 55%, rgba(10,5,7,.88) 100%); }
.hero__bars::before, .hero__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 4.5svh; background: #000; z-index: 2; }
.hero__bars::before { top: 0; } .hero__bars::after { bottom: 0; }
.hero__hud { position: absolute; z-index: 4; inset: calc(4.5svh + 14px) 16px auto; display: flex; gap: 14px; align-items: center; color: rgba(255,255,255,.85); font-size: 10px; }
.hero__fmt { opacity: .6; }
.hero__rec { display: inline-flex; align-items: center; gap: 7px; }
.hero__rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__frame { position: absolute; z-index: 3; inset: calc(4.5svh + 44px) 14px calc(4.5svh + 14px); pointer-events: none; }
.hero__frame i { position: absolute; width: 18px; height: 18px; border: 1.5px solid rgba(255,255,255,.55); }
.hero__frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero__frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero__frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero__frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero__content { position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(4.5svh + 84px + var(--safe-b)); padding: 0 var(--gutter); display: grid; gap: 14px; }
.hero__kicker { color: rgba(251,245,236,.75); }
.hero__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 20vw, 120px); line-height: .84; letter-spacing: -.025em; }
.hero__title em { color: var(--champagne); }
.hero__date { font-family: var(--serif); font-size: 22px; font-style: italic; color: rgba(251,245,236,.9); margin: 0; }
.chips { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; flex: none;
  border: 1px solid var(--line-light); background: rgba(255,255,255,.08); color: var(--cream);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12.5px; text-decoration: none;
  transition: background-color .25s;
}
.chip:hover { background: rgba(255,255,255,.18); }
.chip:active { transform: scale(.96); }
.chip .ic { width: 16px; height: 16px; }
.hero__scroll { position: absolute; z-index: 4; right: var(--gutter); bottom: calc(4.5svh + 150px + var(--safe-b)); width: 1px; height: 64px; background: rgba(255,255,255,.2); overflow: hidden; }
.hero__scroll::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--cream); animation: scrolldown 1.8s var(--ease) infinite; }
@keyframes scrolldown { to { top: 110%; } }

/* ---------- INTRO ---------- */
.intro { text-align: center; }
.intro__salam { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.25; margin: 0 auto 18px; max-width: 18ch; color: var(--merlot); }
.intro__text { max-width: 34ch; margin: 0 auto; color: var(--ink-2); }
.verse { margin: 64px auto 0; max-width: 30ch; }
.verse__mark { font-family: var(--serif); font-size: 90px; line-height: .5; color: var(--gold); display: block; height: 36px; }
.verse__text { font-family: var(--serif); font-size: clamp(25px, 7vw, 32px); line-height: 1.22; margin: 0; letter-spacing: -.005em; }
.verse__text .vw { opacity: .16; transition: opacity .2s; }
.verse__src { margin-top: 20px; color: var(--ink-3); }
.monogram {
  margin: 56px auto 0; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; position: relative;
  font-family: var(--serif); font-size: 34px; color: var(--merlot);
}
.monogram svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.monogram text { font-family: var(--mono); font-size: 7.4px; letter-spacing: .28em; fill: var(--ink-3); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- MARQUEE ---------- */
.marquee-wrap { position: relative; z-index: 2; overflow: hidden; padding: 26px 0; margin: -26px 0; pointer-events: none; }
.marquee { background: var(--merlot); color: var(--cream); overflow: hidden; padding: 16px 0; transform: rotate(-2deg) scale(1.05); margin: -10px 0; position: relative; z-index: 2; box-shadow: 0 10px 30px -12px rgba(90,22,39,.6); }
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: 28px; line-height: 1; white-space: nowrap; padding-right: 26px; display: inline-flex; align-items: center; gap: 26px; }
.marquee__track span i { font-style: italic; color: var(--champagne); }
.marquee__track .ic { width: 16px; height: 16px; color: var(--champagne); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- COUPLE ---------- */
.couple__grid { display: grid; gap: 26px; }
.person { display: grid; gap: 18px; }
.person--groom { text-align: right; justify-items: end; }
.holo-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --o: 0;
  position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 26px;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; transition: transform .6s var(--ease);
  box-shadow: 0 30px 60px -28px rgba(40, 10, 20, .55), 0 0 0 1px rgba(255,255,255,.4) inset;
  background: var(--plum);
}
.person__media { width: 100%; }
.holo-par { width: min(86%, 360px); }
.person--groom .holo-par { margin-left: auto; }
.holo-card.is-tilting { transition: transform .08s linear; }
.holo-card__img { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.holo-card__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translate(calc((var(--mx) - 50%) * -.06), calc((var(--my) - 50%) * -.06)); transition: transform .6s var(--ease); }
.holo-card__sheen {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: color-dodge; opacity: calc(.18 + var(--o) * .4);
  background:
    radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 45%),
    repeating-linear-gradient(115deg, #ff9ecd 0%, #b69cff 7%, #7ee6d0 14%, #ffe29a 21%, #ff9ecd 28%);
  background-size: 100% 100%, 300% 300%;
  background-position: center, var(--mx) var(--my);
  transition: opacity .4s;
}
.holo-card__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255,255,255,.35), transparent 55%); mix-blend-mode: soft-light; }
.holo-card__tag { position: absolute; z-index: 2; left: 16px; top: 16px; transform: translateZ(40px); color: var(--cream); background: rgba(20,10,14,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 7px 11px; border-radius: 999px; font-size: 9.5px; }
.person--groom .holo-card__tag { left: auto; right: 16px; }
.holo-card__nick { position: absolute; z-index: 2; left: 18px; bottom: 12px; transform: translateZ(60px); font-family: var(--serif); font-style: italic; color: var(--cream); font-size: 64px; line-height: 1; text-shadow: 0 6px 30px rgba(0,0,0,.45); }
.person--groom .holo-card__nick { left: auto; right: 18px; }
.person__name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; }
.person__parents { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 30ch; }
.person__ig { display: inline-flex; align-items: center; gap: 8px; color: var(--merlot); text-decoration: none; font-size: 14px; font-weight: 550; }
.couple__amp { font-family: var(--serif); font-style: italic; font-size: 120px; line-height: .6; text-align: center; color: var(--gold); margin: 6px 0 -6px; }

/* ---------- STORY ---------- */
.story { background: radial-gradient(90% 60% at 50% 0%, #2d1320 0%, var(--night) 70%); }
.highlights { display: flex; gap: 16px; justify-content: center; margin-bottom: 28px; }
.hl { display: grid; justify-items: center; gap: 8px; color: rgba(251,245,236,.65); font-size: 12px; }
.hl__ring { width: 62px; height: 62px; border-radius: 50%; padding: 2.5px; background: rgba(251,245,236,.18); transition: background .3s; }
.hl.is-active .hl__ring, .hl.is-seen .hl__ring { background: var(--holo); }
.hl.is-seen:not(.is-active) .hl__ring { opacity: .55; }
.hl__ring span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid var(--night); overflow: hidden; }
.hl__ring img { width: 100%; height: 100%; object-fit: cover; }
.hl.is-active { color: var(--cream); }
.story-player {
  position: relative; width: min(100%, 380px); aspect-ratio: 9 / 16; max-height: 76svh; margin: 0 auto; border-radius: 26px; overflow: hidden;
  background: #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.story-player__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.story-player__slide.is-active { opacity: 1; }
.story-player__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.story-player__slide.is-active img { animation: story-zoom 6s linear forwards; }
@keyframes story-zoom { to { transform: scale(1.14); } }
.story-player__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 22%, transparent 50%, rgba(0,0,0,.8) 100%); pointer-events: none; }
.story-player__bars { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; }
.story-player__bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.story-player__bars b { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.story-player__head { position: absolute; z-index: 3; top: 26px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; }
.story-player__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--holo); display: grid; place-items: center; color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 15px; }
.story-player__head b { font-weight: 600; }
.story-player__head small { opacity: .7; font-size: 12px; }
.story-player__head .icon-btn { margin-left: auto; width: 34px; height: 34px; }
.story-player__head .icon-btn .ic { width: 16px; height: 16px; }
.story-player__cap { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 22px; color: #fff; }
.story-player__year { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--digicam); margin-bottom: 6px; }
.story-player__title { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.story-player__text { margin: 0; font-size: 14.5px; line-height: 1.5; opacity: .9; }
.story-player__tap { position: absolute; z-index: 2; top: 0; bottom: 0; }
.story-player__tap--l { left: 0; width: 35%; } .story-player__tap--r { right: 0; width: 65%; }
.story-hint { margin: 18px 0 0; text-align: center; color: rgba(251,245,236,.4); }

/* ---------- JOURNEY (3D scroll-driven) ---------- */
.journey { position: relative; height: 560svh; background: #120a0d; color: var(--cream); }
.journey__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.journey__canvas { position: absolute; inset: 0; }
.journey__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.journey__vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 75% at 50% 45%, transparent 55%, rgba(8,4,6,.75) 100%), linear-gradient(180deg, rgba(18,10,13,.8) 0%, transparent 18%, transparent 48%, rgba(18,10,13,.96) 100%); }
.journey .grain { z-index: 2; opacity: .07; }
.journey__hud { position: absolute; z-index: 3; top: calc(24px + env(safe-area-inset-top, 0px)); left: var(--gutter); right: 80px; display: grid; gap: 14px; color: rgba(251,245,236,.62); }
.journey__track { position: relative; height: 1px; background: rgba(251,245,236,.2); margin-bottom: 16px; }
.journey__bar { position: absolute; inset: 0; background: linear-gradient(90deg, var(--champagne), #f3b8cd); transform-origin: left; transform: scaleX(0); }
.journey__track b { position: absolute; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: #120a0d; border: 1px solid rgba(251,245,236,.5); transform: translateX(-50%); transition: background .4s, border-color .4s, box-shadow .4s; }
.journey__track b span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 9px; letter-spacing: .1em; color: rgba(251,245,236,.45); transition: color .4s; }
.journey__track b.is-on { background: var(--champagne); border-color: var(--champagne); box-shadow: 0 0 12px rgba(220,195,154,.8); }
.journey__track b.is-on span { color: var(--champagne); }
.journey__intro { position: absolute; z-index: 3; inset: 0; display: grid; align-content: center; justify-items: center; gap: 14px; text-align: center; padding: 0 var(--gutter); opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .8s var(--ease), transform 1s var(--ease); pointer-events: none; }
.journey.is-start .journey__intro { opacity: 1; transform: none; }
.journey__intro::before { content: ""; position: absolute; inset: -10% -20%; z-index: -1; background: radial-gradient(50% 40% at 50% 50%, rgba(18,10,13,.92), rgba(18,10,13,.6) 55%, transparent 80%); }
.journey__intro .mono { color: rgba(251,245,236,.55); margin: 0; }
.journey__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 19vw, 104px); line-height: .88; letter-spacing: -.02em; text-shadow: 0 10px 40px rgba(0,0,0,.6); }
.journey__title em { color: var(--champagne); }
.journey__lead { margin: 0; max-width: 30ch; color: rgba(251,245,236,.78); }
.journey__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; color: rgba(251,245,236,.55); }
.journey__scroll i { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(251,245,236,.5); position: relative; }
.journey__scroll i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--cream); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.journey__caps { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(100px + var(--safe-b)); height: 0; }
.journey__cap { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity .6s var(--ease), transform .9s var(--ease), filter .6s; pointer-events: none; }
.journey__cap.is-active { opacity: 1; transform: none; filter: none; }
.journey__year { color: var(--digicam); font-size: 10.5px; }
.journey__cap h3 { margin: 8px 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 12vw, 56px); line-height: .95; text-shadow: 0 8px 30px rgba(0,0,0,.6); }
.journey__cap p { margin: 0; max-width: 32ch; color: rgba(251,245,236,.82); font-size: 15px; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.journey__end { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(104px + var(--safe-b)); text-align: center; padding: 0 var(--gutter); opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform 1s var(--ease); pointer-events: none; }
.journey.is-end .journey__end { opacity: 1; transform: none; }
.journey__end .mono { color: rgba(251,245,236,.6); margin: 0; }
.journey__end h3 { margin: 10px 0 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 17vw, 88px); line-height: 1; letter-spacing: -.01em; background: linear-gradient(100deg, #fbf5ec, #e8cfa0 40%, #f3b8cd 70%, #fbf5ec); -webkit-background-clip: text; background-clip: text; color: transparent; }
.journey__names { margin: 0; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--champagne); }

/* ---------- COUNTDOWN ---------- */
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 40px; }
.count__cell { text-align: center; border-top: 1px solid var(--line); padding-top: 14px; }
.count__num { font-family: var(--serif); font-size: clamp(46px, 13vw, 64px); line-height: 1; display: block; height: 1em; overflow: hidden; position: relative; font-variant-numeric: tabular-nums; }
.count__num span { display: block; }
.count__num.tick span { animation: tick .55s var(--ease); }
@keyframes tick { from { transform: translateY(-100%); opacity: 0; } }
.count__lbl { color: var(--ink-3); margin-top: 8px; display: block; font-size: 9.5px; }
.cal { background: var(--cream); border-radius: var(--radius); padding: 22px 18px 20px; box-shadow: 0 30px 60px -40px rgba(60,20,30,.4); border: 1px solid var(--line); }
.cal__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cal__month { font-family: var(--serif); font-size: 30px; line-height: 1; }
.cal__month em { color: var(--merlot); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; text-align: center; font-size: 14px; }
.cal__grid .dow { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); letter-spacing: .1em; padding-bottom: 6px; }
.cal__grid .d { height: 36px; display: grid; place-items: center; position: relative; color: var(--ink-2); }
.cal__grid .d.muted { color: transparent; }
.cal__grid .d.is-day { color: var(--merlot); font-weight: 700; }
.cal__grid .d.is-day svg { position: absolute; width: 50px; height: 44px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); overflow: visible; }
.cal__grid .d.is-day path { fill: none; stroke: var(--merlot); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.4s var(--ease) .3s; }
.cal.is-in .d.is-day path { stroke-dashoffset: 0; }
.cal__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cal__actions .btn { flex: 1 1 140px; }

/* ---------- EVENTS ---------- */
.tickets { display: grid; gap: 22px; }
.ticket { position: relative; filter: drop-shadow(0 26px 34px rgba(60, 20, 30, .18)); }
.ticket__top, .ticket__bottom { background: var(--cream); position: relative; }
.ticket__top { border-radius: 22px 22px 0 0; padding: 22px 22px 20px; }
.ticket__bottom { border-radius: 0 0 22px 22px; padding: 18px 22px 22px; }
.ticket__tear { height: 22px; background: var(--cream); position: relative;
  -webkit-mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.ticket__tear::after { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 1.5px dashed var(--line); }
.ticket__row { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); }
.ticket__badge { display: inline-flex; align-items: center; gap: 6px; background: var(--merlot); color: var(--cream); padding: 6px 10px; border-radius: 999px; font-size: 9.5px; }
.ticket--resepsi .ticket__badge { background: var(--olive); }
.ticket__title { margin: 18px 0 2px; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: .95; }
.ticket__title em { color: var(--merlot); }
.ticket__date { margin: 0; color: var(--ink-2); }
.ticket__time { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.ticket__time b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; }
.ticket__time span { color: var(--ink-3); }
.ticket__venue { margin: 0; font-weight: 600; font-size: 17px; }
.ticket__addr { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
.ticket__note { margin: 10px 0 0; color: var(--ink-3); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.ticket__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.barcode { height: 34px; flex: 1; max-width: 150px; opacity: .8; }
.map { margin-top: 22px; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: var(--paper); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.2) contrast(1.02); }
.map__load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; background:
  repeating-linear-gradient(0deg, transparent 0 31px, rgba(27,19,21,.06) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(27,19,21,.06) 31px 32px), var(--cream); }
.map__load .pin { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--merlot); color: var(--cream); box-shadow: 0 0 0 10px rgba(90,22,39,.12), 0 0 0 22px rgba(90,22,39,.06); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(90,22,39,.1), 0 0 0 30px rgba(90,22,39,.03); } }
.dress { margin-top: 22px; padding: 20px; border-radius: var(--radius); background: var(--ink); color: var(--cream); display: grid; gap: 14px; }
.dress__title { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1; }
.dress__note { margin: 0; color: rgba(251,245,236,.7); font-size: 14px; }
.swatches { display: flex; }
.swatches span { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); margin-right: -10px; box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset; }
.live { margin-top: 12px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream); text-decoration: none; }
.live__dot { width: 40px; height: 40px; border-radius: 50%; background: #ffe7e7; color: #e0245e; display: grid; place-items: center; }
.live b { display: block; font-weight: 600; }
.live small { color: var(--ink-3); }
.live .ic:last-child { margin-left: auto; color: var(--ink-3); }

/* ---------- GALLERY ---------- */
.gallery { padding-left: 0; padding-right: 0; background: radial-gradient(80% 50% at 50% 12%, #2a1420 0%, var(--night) 70%); }
.gallery .sec-head { padding: 0 var(--gutter); }
.carousel { position: relative; height: 380px; perspective: 1100px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; margin-bottom: 18px; }
.carousel:active { cursor: grabbing; }
.carousel__ring { position: absolute; left: 50%; top: 42%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.carousel__card {
  position: absolute; width: 150px; height: 210px; left: -75px; top: -105px; border-radius: 14px; overflow: hidden;
  background: var(--plum); box-shadow: 0 0 0 1px rgba(255,255,255,.12);
  -webkit-box-reflect: below 8px linear-gradient(transparent 55%, rgba(255,255,255,.22));
}
.carousel__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.carousel__card .shade { position: absolute; inset: 0; background: #0b0608; opacity: 0; pointer-events: none; }
.carousel__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 40%); pointer-events: none; }
.carousel__floor { position: absolute; left: 10%; right: 10%; bottom: 30px; height: 60px; background: radial-gradient(50% 50% at 50% 50%, rgba(220,195,154,.18), transparent 70%); filter: blur(6px); }
.carousel__hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; color: rgba(251,245,236,.45); }
.reel { margin: 44px var(--gutter) 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.reel__card { position: relative; width: min(100%, 320px); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; margin: 0 auto; background: var(--plum); box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.reel__card video, .reel__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__card img { animation: kenburns 16s ease-in-out infinite alternate; }
.reel__card video { opacity: 0; transition: opacity .8s; }
.reel__card.is-playing video { opacity: 1; }
.reel__ui { position: absolute; inset: auto 14px 16px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; color: #fff; }
.reel__ui b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; display: block; }
.reel__ui small { opacity: .75; }
.reel__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7)); pointer-events: none; }
.reel__tag { position: absolute; z-index: 2; top: 14px; left: 14px; color: #fff; display: inline-flex; gap: 6px; align-items: center; background: rgba(0,0,0,.35); padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 9.5px; }
.filters { display: flex; gap: 8px; padding: 44px var(--gutter) 18px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-light); color: rgba(251,245,236,.8); font-size: 13px; flex: none; transition: all .25s; }
.filter.is-active { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.masonry { columns: 2; column-gap: 10px; padding: 0 var(--gutter); }
.m-item { break-inside: avoid; margin-bottom: 10px; position: relative; border-radius: 14px; overflow: hidden; background: var(--plum); display: block; width: 100%; }
.m-item.is-hidden { display: none; }
.m-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.m-item:hover img { transform: scale(1.05); }
.m-item__stamp { position: absolute; right: 10px; bottom: 8px; font-family: var(--mono); font-size: 11px; color: var(--digicam); letter-spacing: .06em; text-shadow: 0 0 6px rgba(255,120,40,.75), 0 0 1px rgba(255,120,40,1); font-weight: 500; }
.m-item__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.4); }
.m-item__play .ic { margin-left: 3px; }
.m-item__dur { position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 10px; color: #fff; background: rgba(0,0,0,.45); padding: 3px 7px; border-radius: 6px; }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(8, 4, 6, .96); color: var(--cream); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .35s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 10px; color: rgba(251,245,236,.7); }
.lightbox__stage { position: relative; overflow: hidden; touch-action: none; }
.lightbox__slide { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 12px; will-change: transform; }
.lightbox__slide img, .lightbox__slide video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lightbox__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(16px + var(--safe-b)); }
.lightbox__cap { margin: 0; text-align: center; font-family: var(--serif); font-size: 20px; font-style: italic; flex: 1; }

/* ---------- RSVP ---------- */
.rsvp-card { background: var(--cream); border-radius: 26px; padding: 22px; border: 1px solid var(--line); box-shadow: 0 40px 70px -50px rgba(60,20,30,.5); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > label, .field > .lbl { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.input:focus { border-color: var(--merlot); box-shadow: 0 0 0 4px rgba(90,22,39,.12); background: #fff; }
textarea.input { min-height: 110px; resize: vertical; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 5px; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { min-height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 13.5px; font-weight: 550; color: var(--ink-2); cursor: pointer; transition: all .25s var(--ease); text-align: center; line-height: 1.15; padding: 4px; }
.seg input:checked + label { background: var(--ink); color: var(--cream); box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.seg input:focus-visible + label { outline: 2px solid var(--gold); }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); width: max-content; }
.stepper button { width: 48px; height: 48px; font-size: 22px; line-height: 1; }
.stepper output { min-width: 44px; text-align: center; font-family: var(--serif); font-size: 26px; }
.rsvp__actions { display: grid; gap: 10px; margin-top: 6px; }
.rsvp__actions .btn { width: 100%; }
.rsvp__done { text-align: center; padding: 18px 4px; }
.rsvp__done h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 8px 0; line-height: 1; }
.rsvp__done p { color: var(--ink-2); margin: 0 0 18px; }
.rsvp__deadline { margin: 14px 0 0; text-align: center; color: var(--ink-3); font-size: 12.5px; }
.stats { display: flex; gap: 8px; margin: 40px 0 16px; }
.stat { flex: 1; border-radius: 16px; padding: 12px 12px; background: var(--paper-2); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1; }
.stat span { font-size: 11.5px; color: var(--ink-3); }
.wishes { display: grid; gap: 10px; }
.wishes__more { justify-self: center; margin-top: 6px; }
.wish { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; background: var(--cream); border-radius: 18px; border: 1px solid var(--line); }
.wish.is-new { animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.wish__av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; color: var(--cream); }
.wish__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 4px; }
.wish__head b { font-weight: 600; font-size: 14.5px; }
.wish__badge { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: #e6efdc; color: #3e5a22; font-weight: 600; }
.wish__badge.tidak { background: #f5e0e3; color: var(--merlot); }
.wish__badge.ragu { background: #f3ead6; color: #7a5a1c; }
.wish__time { color: var(--ink-3); font-size: 11.5px; margin-left: auto; }
.wish p { margin: 0; font-size: 14.5px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- GIFT ---------- */
.bank-cards { display: grid; gap: 16px; }
.bank-wrap { perspective: 1200px; }
.bank {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; aspect-ratio: 1.586; border-radius: 20px; padding: 20px; color: var(--cream); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease);
  box-shadow: 0 30px 50px -28px rgba(40,10,20,.7);
  background: radial-gradient(120% 120% at 0% 0%, #8a2c44 0%, #4a1020 45%, #230810 100%);
}
.bank.is-tilting { transition: transform .08s linear; }
.bank--2 { background: radial-gradient(120% 120% at 0% 0%, #7b7d48 0%, #454624 45%, #1f2012 100%); }
.bank::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, #ff9ecd 0%, #b69cff 7%, #7ee6d0 14%, #ffe29a 21%, #ff9ecd 28%); background-size: 300% 300%; background-position: var(--mx) var(--my); mix-blend-mode: color-dodge; opacity: .14; pointer-events: none; }
.bank::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; border: 36px solid rgba(255,255,255,.05); pointer-events: none; }
.bank__top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.bank__name { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; }
.bank__chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f3dca5, #b8904f 50%, #f0d493); position: relative; z-index: 1; align-self: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.bank__chip::before { content: ""; position: absolute; inset: 7px 12px; border: 1px solid rgba(0,0,0,.25); border-radius: 4px; }
.bank__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; position: relative; z-index: 1; }
.bank__num { font-family: var(--mono); font-size: clamp(16px, 4.8vw, 19px); letter-spacing: .08em; }
.bank__holder { font-size: 12px; opacity: .75; margin-top: 4px; }
.bank .btn { background: rgba(255,255,255,.14); color: var(--cream); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bank .btn:hover { background: rgba(255,255,255,.24); }
.gift-addr { margin-top: 16px; padding: 20px; border-radius: 20px; border: 1px dashed rgba(27,19,21,.3); display: grid; gap: 8px; }
.gift-addr b { font-weight: 600; }
.gift-addr p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.gift-addr .btn { justify-self: start; margin-top: 6px; }

/* ---------- CLOSING ---------- */
.closing { position: relative; min-height: 100svh; background: radial-gradient(120% 60% at 50% 25%, #3a1522 0%, #1c0c12 50%, #0b0608 100%); color: var(--cream); overflow: hidden; display: flex; flex-direction: column; padding-bottom: calc(110px + var(--safe-b)); }
.closing__scene { position: relative; flex: 1 0 auto; height: 44svh; min-height: 280px; margin-bottom: -4svh; }
.closing__scene canvas { width: 100% !important; height: 100% !important; }
.closing__content { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); display: grid; justify-items: center; gap: 16px; }
.closing__thanks { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 19vw, 110px); line-height: .85; letter-spacing: -.02em; }
.closing__thanks em { color: var(--champagne); }
.closing__text { margin: 0; color: rgba(251,245,236,.72); max-width: 34ch; }
.closing__names { font-family: var(--serif); font-size: 28px; font-style: italic; margin: 8px 0 0; }
.closing__salam { margin: 0; color: rgba(251,245,236,.6); font-size: 13.5px; }
.closing__foot { position: relative; z-index: 2; margin-top: 44px; text-align: center; color: rgba(251,245,236,.35); font-size: 9.5px; }

/* ================= FLOATING UI ================= */
.dock {
  position: fixed; z-index: 60; left: 50%; bottom: calc(14px + var(--safe-b));
  display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  background: rgba(22, 12, 16, .62); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.6);
  transform: translate(-50%, 140%); transition: transform .8s var(--ease);
}
.dock.is-in { transform: translate(-50%, 0); }
.dock a { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: rgba(251,245,236,.6); transition: color .3s, background-color .3s; }
.dock a .ic { width: 20px; height: 20px; }
.dock a.is-active { color: var(--ink); background: var(--cream); }
.dock a:not(.is-active):hover { color: var(--cream); }
.music {
  position: fixed; z-index: 61; right: 14px; top: calc(14px + env(safe-area-inset-top, 0px)); width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cream); background: rgba(22,12,16,.6); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .6s, transform .6s var(--ease);
}
.music.is-in { opacity: 1; transform: none; pointer-events: auto; }
.music__disc { display: grid; place-items: center; }
.music__eq { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 3px; }
.music__eq i { width: 3px; height: 14px; border-radius: 2px; background: var(--champagne); animation: eq .9s ease-in-out infinite; transform-origin: bottom; }
.music__eq i:nth-child(2) { animation-delay: -.3s; } .music__eq i:nth-child(3) { animation-delay: -.6s; } .music__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.music.is-playing .music__disc { display: none; }
.music.is-playing .music__eq { display: flex; }
.music.is-playing { box-shadow: 0 0 0 0 rgba(220,195,154,.5); animation: ring-pulse 2.4s infinite; }
@keyframes ring-pulse { 70% { box-shadow: 0 0 0 12px rgba(220,195,154,0); } 100% { box-shadow: 0 0 0 0 rgba(220,195,154,0); } }
.music-tip { position: fixed; z-index: 61; right: 72px; top: calc(26px + env(safe-area-inset-top, 0px)); background: var(--cream); color: var(--ink); padding: 8px 12px; border-radius: 999px; font-size: 10px; opacity: 0; transform: translateX(10px); pointer-events: none; transition: all .5s var(--ease); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.music-tip.is-in { opacity: 1; transform: none; }
.toast { position: fixed; z-index: 170; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--cream); color: var(--ink); padding: 12px 16px; border-radius: 999px; font-size: 10.5px; opacity: 0; pointer-events: none; transition: all .45s var(--ease); box-shadow: 0 16px 40px -14px rgba(0,0,0,.45); white-space: nowrap; }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; z-index: 160; pointer-events: none; width: 100%; height: 100%; }

/* ---------- Reveal defaults (hanya aktif jika GSAP ada) ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(36px); }
.js-anim .w > span { transform: translateY(110%); }
.js-anim .is-shown.w > span, .js-anim .is-shown .w > span { transform: none; }

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {
  :root { --feed-w: clamp(440px, 34vw, 500px); }
  body { background: var(--night); }
  .stage { display: block; position: fixed; inset: 0 var(--feed-w) 0 0; overflow: hidden; color: var(--cream); background: var(--night); }
  .stage__slides { position: absolute; inset: 0; }
  .stage__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease; transform: scale(1.06); }
  .stage__slides img.is-active { opacity: 1; animation: kenburns 14s ease-out forwards; }
  .stage__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,5,7,.1), rgba(10,5,7,.2) 60%, rgba(10,5,7,.85)), linear-gradient(0deg, rgba(10,5,7,.85), transparent 55%); }
  .stage__content { position: absolute; left: 56px; bottom: 56px; right: 56px; z-index: 4; }
  .stage__kicker { color: rgba(251,245,236,.7); margin: 0 0 16px; }
  .stage__names { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(90px, 9vw, 150px); line-height: .82; letter-spacing: -.03em; }
  .stage__names em { color: var(--champagne); }
  .stage__date { font-family: var(--serif); font-style: italic; font-size: 28px; margin: 18px 0 18px; color: rgba(251,245,236,.9); }
  .stage__count { display: flex; gap: 22px; color: rgba(251,245,236,.7); }
  .stage__count b { display: block; font-family: var(--serif); font-size: 44px; font-weight: 400; letter-spacing: 0; color: var(--cream); line-height: 1; margin-bottom: 4px; }
  .feed { width: var(--feed-w); margin-left: auto; box-shadow: -30px 0 80px rgba(0,0,0,.5); }
  .dock { left: calc(100% - var(--feed-w) / 2); }
  .music { right: 20px; }
  .toast { left: calc(100% - var(--feed-w) / 2); }
  .music-tip { right: 78px; }
  .cover__names { font-size: clamp(90px, 11vw, 170px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js-anim [data-reveal] { opacity: 1; transform: none; }
  .js-anim .w > span { transform: none; }
}
