/* CRAFID — template Hydrangea Mist (kit hydrangea-mist / hydrangea-mist-foto), dari PSD "Elegant hydrangea wedding invitation set".
   Kertas putih berkabut cat air, lengkung putih timbul dengan pita emas bermotif, hydrangea biru & putih samar, percikan emas.
   Satu tampilan terang yang disengaja (kartu undangan), jadi semua warna ditetapkan eksplisit. */
:root {
  color-scheme: light;
  --paper: #f2f2f1; --paper-2: #f7f7f6; --ink: #6e6e70; --mauve: #8f8f94; --rose: #7487ad; --rose-deep: #56688f;
  --blush: #e3e7ef; --gold: #b48760; --gold-2: #a37750; --line: #b487603d;
  --f-serif: 'Playfair Display', Didot, 'Bodoni 72', Georgia, serif;
  --f-script: 'Playfair Display', Didot, Georgia, serif;  /* PSD tidak memakai huruf skrip; nama memakai Playfair */
  --f-ar: 'Amiri', 'Traditional Arabic', serif;
  --ease-soft: cubic-bezier(.22, .8, .24, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.75 var(--f-serif); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
.caps { font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mauve); font-weight: 600; }
.caps.sm { font-size: 0.64rem; letter-spacing: 0.28em; font-weight: 500; }
.paper-a { background: var(--paper) url("../images/crafid-hydrangea/paper-a.webp") center / cover; }
.paper-b { background: var(--paper) url("../images/crafid-hydrangea/paper-b.webp") center / cover; }
.fit { display: block; white-space: nowrap; }

/* ---------- daun & burung bergoyang: tiap tangkai beda amplitudo (--a), tempo (--d), jeda (--dl) ---------- */
.sway { transform-origin: var(--ox, 50%) var(--oy, 100%); animation: sway var(--d, 5.6s) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes sway { from { transform: rotate(calc(var(--a, 3deg) * -1)); } to { transform: rotate(var(--a, 3deg)); } }


/* =================== 1 · SAMPUL: lengkung pita emas (kartu Invitation 1) =================== */
/* Panggung selebar kartu PSD (1173 × 1658), setinggi layar. Hydrangea utuh (tidak terpotong tepi kartu)
   menempel ke tepi bawah dan melebar ke luar panggung di layar lebar,
   lengkung turun sampai bawah layar, teks di dalam lengkung di atas kartu tamu. */
.gate { position: fixed; inset: 0; z-index: 50; overflow: hidden; --foot: 124px; --fb: max(7svh, 28px); }
.gate.gone { opacity: 0; pointer-events: none; transition: opacity .9s ease .35s; }
.gstage { position: absolute; left: 50%; top: 0; bottom: 0; width: min(100vw, calc((100svh - var(--foot) - var(--fb) - max(3svh, 12px) - 10px) / 1.1)); translate: -50% 0; container-type: inline-size; }
.gstage > img { position: absolute; height: auto; max-width: none; user-select: none; pointer-events: none; }
.gb.l { left: -21.99cqw; bottom: -14.66cqw; width: 65.56cqw; } .gb.r { left: 53.37cqw; bottom: -14.58cqw; width: 65.56cqw; }
.gl.f1 { left: -4.94cqw; bottom: -5.54cqw; width: 34.1cqw; z-index: 2; }
.gl.f2 { left: 18.67cqw; bottom: -26.51cqw; width: 28.47cqw; z-index: 3; }
.gl.f3 { left: 86.1cqw; bottom: 7.25cqw; width: 34.02cqw; z-index: 2; }
.gl.f4 { left: 65.81cqw; bottom: -14.66cqw; width: 34.1cqw; z-index: 3; }
.g-splash.a { left: -25.75cqw; top: calc(max(2svh, 8px) + 3.4cqw); width: 59.34cqw; }
.g-splash.b { left: 60.61cqw; bottom: 13.47cqw; width: 59.34cqw; }
.archbox { position: absolute; z-index: 1; left: 8.1cqw; width: 82.27cqw; top: calc(max(3svh, 12px) + 8cqw); bottom: -2px; display: flex; flex-direction: column; filter: drop-shadow(0 1px 1px #7a7f8a33) drop-shadow(0 8px 16px #7a7f8a22); }
.archbox .arch-top { width: 100%; height: auto; flex: none; }
.archbox .arch-pillar { flex: 1; background: url("../images/crafid-hydrangea/arch-pillar.webp") top center / 100% auto repeat-y; }
.cv-text { position: absolute; left: 18cqw; right: 18cqw; top: calc(max(3svh, 12px) + 8cqw + 17cqw); bottom: calc(var(--foot) + var(--fb) + 10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw; text-align: center; color: #9c9c9c; z-index: 4; }
.cv-text .k1 { font: 400 4.6cqw/1.1 var(--f-serif); }
.cv-text .k2 { font: 600 4.6cqw/1.2 var(--f-serif); letter-spacing: .24em; text-transform: uppercase; margin-right: -.24em; }
.cv-text .mono { margin: 4cqw 0 3cqw; }
.mono img { width: 15cqw; height: auto; margin-inline: auto; }
.mono .mono-live { font: italic 400 13cqw/1 var(--f-serif); color: var(--gold); display: inline-flex; align-items: baseline; letter-spacing: -.04em; text-shadow: 0 1px 0 #fff; }
.mono .mono-live i { display: none; }
.cv-text .nm { width: 100%; color: #b48760; }
.cv-text .nm .fit { font: 400 6.6cqw/1.2 var(--f-serif); }
.cv-text .dt { font: 600 4.2cqw/1.3 var(--f-serif); letter-spacing: .12em; }
.cv-text .qt { font: italic 500 4cqw/1.45 var(--f-serif); margin-top: 3cqw; }
.gate-foot { position: absolute; z-index: 6; left: 0; right: 0; margin-inline: auto; bottom: calc(var(--fb) + env(safe-area-inset-bottom, 0px)); width: min(calc(100% - 40px), 244px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 11px 14px 12px; border-radius: 20px;
  background: #fbfbfdd6; border: 1px solid #ffffffd0; box-shadow: 0 18px 40px -26px #56688f; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.to { display: grid; gap: 1px; }
.to .pre { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mauve); }
.to b { font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--rose-deep); overflow-wrap: anywhere; }
.open { appearance: none; border: 1px solid var(--rose); background: var(--rose); color: #fbfbfd; border-radius: 999px; padding: 12px 20px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap;
  font: 600 0.64rem/1 var(--f-serif); letter-spacing: 0.22em; text-transform: uppercase; box-shadow: 0 14px 30px -18px #56688f; position: relative; overflow: hidden; }
.open svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.open:hover { background: var(--rose-deep); }

/* =================== 3 · HERO: nama besar + hamparan hydrangea (kartu Invitation 2) =================== */
.hero { position: relative; min-height: 100svh; overflow: hidden; --W: min(100vw, calc(100svh * 0.7075)); --H: calc(var(--W) * 1.41347); --sy: max(0px, 100svh - var(--H)); }
.hstage { position: absolute; left: 50%; top: 0; height: 100%; min-height: 100svh; width: var(--W); translate: -50% 0; container-type: inline-size; }
.hstage > img { position: absolute; height: auto; max-width: none; pointer-events: none; }
.hb.b9 { left: -13.38cqw; bottom: 13.3cqw; width: 34.1cqw; } .hb.b8 { left: 3.67cqw; bottom: -10.32cqw; width: 34.1cqw; }
.hb.b10 { left: 45.01cqw; bottom: -37.0cqw; width: 67.95cqw; } .hb.b11 { left: 78.94cqw; bottom: 24.72cqw; width: 34.1cqw; }
.hf.f3 { left: -13.38cqw; bottom: -18.93cqw; width: 34.1cqw; z-index: 2; } .hf.f6 { left: 7.93cqw; bottom: -42.54cqw; width: 34.1cqw; z-index: 2; }
.hf.f7 { left: 62.15cqw; bottom: -28.56cqw; width: 56.27cqw; z-index: 2; }
.h-splash.c { left: -21.06cqw; top: calc(var(--H) * .298 + var(--sy) * .4); width: 53.88cqw; }
.h-splash.d { left: 29.24cqw; bottom: -26.51cqw; width: 53.88cqw; z-index: 3; }
.h-text { position: absolute; left: 14cqw; right: 14cqw; top: calc(var(--H) * .118 + var(--sy) * .36); z-index: 4; text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 3cqw; }
.h-k { font: 600 clamp(10px, 3cqw, 16px)/1.5 var(--f-serif); letter-spacing: .3em; text-transform: uppercase; color: #9c9c9c; margin-right: -.3em; }
.h-names { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; color: #b48760; width: 100%; }
.h-names .p1, .h-names .p2 { font: 400 11.6cqw/1.15 var(--f-serif); max-width: 100%; }
.h-names .amp { font: 400 4cqw/1 var(--f-serif); margin: .6cqw 0 1cqw; }
.h-info { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: .7cqw; color: #9c9c9c; }
.h-info .sub { font: 600 clamp(9.5px, 2.6cqw, 14px)/1.5 var(--f-serif); letter-spacing: .26em; text-transform: uppercase; margin: 1.6cqw -.26em 2.4cqw 0; }
.h-info .big { font: 700 clamp(11px, 2.9cqw, 16px)/1.4 var(--f-serif); letter-spacing: .2em; text-transform: uppercase; margin-right: -.2em; }
.h-info .sm { font: 600 clamp(9px, 2.1cqw, 12px)/1.4 var(--f-serif); letter-spacing: .2em; text-transform: uppercase; margin-right: -.2em; }
.h-info .gap { margin-top: 2.4cqw; }
.h-info .note { font: italic 400 clamp(15px, 4.6cqw, 26px)/1.2 var(--f-serif); margin-top: 3cqw; }

/* foto kosong: bunga PSD memudar ke atas + inisial (tanpa siluet orang) */
.empty-ph { position: absolute; inset: 0; background: linear-gradient(180deg, #f1f3f7, #e6eaf2 70%, #dde3ee); overflow: hidden; }
.empty-ph .efl { position: absolute; height: auto; max-width: none; -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 92%); mask-image: linear-gradient(to top, #000 30%, transparent 92%); }
.empty-ph .ini { position: absolute; left: 0; right: 0; display: flex; justify-content: center; align-items: baseline; gap: .12em; color: var(--gold-2); font-family: var(--f-script); line-height: 1; text-shadow: 0 1px 0 #fff8; }
.empty-ph .ini i { font-style: normal; font-size: .5em; }

/* =================== bagian isi: masing-masing setinggi layar, isi di tengah =================== */
main { position: relative; }
.sec { position: relative; min-height: 100svh; display: grid; align-content: center; padding-block: clamp(72px, 12vw, 120px); padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); overflow: hidden; background: var(--paper-2); }
.sec.paper { background: var(--paper) url("../images/crafid-hydrangea/paper-a.webp") center / cover; }
.wrap { position: relative; z-index: 2; max-width: 620px; width: 100%; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center; text-align: center; }
.sec h2 { font-size: clamp(1.25rem, 5.2vw, 1.8rem); letter-spacing: 0.26em; text-transform: uppercase; color: var(--rose); font-weight: 400; }
.sec .kick { font: 400 clamp(1.7rem, 7vw, 2.3rem)/1 var(--f-script); color: var(--gold-2); }
.lead { font-style: italic; color: var(--mauve); max-width: 36ch; }
.ayat { font: 400 clamp(1.6rem, 6.6vw, 2.2rem)/1.9 var(--f-ar); color: var(--rose-deep); direction: rtl; }
.orn { width: 140px; height: 16px; color: var(--gold); }
/* dua tangkai bunga di pojok: di belakang teks, tidak menangkap klik */
/* dua tangkai PSD di pojok (potongan tepi kartu, menempel ke tepi layar), di belakang teks, tidak menangkap klik */
.corner { position: absolute; z-index: 1; pointer-events: none; height: auto; max-width: none; width: calc(var(--w, 30) * min(1vw, 5.2px)); opacity: .96; }
.corner.tl { top: 0; left: 0; } .corner.tr { top: 0; right: 0; } .corner.bl { bottom: 0; left: 0; } .corner.br { bottom: 0; right: 0; }

/* mempelai */
/* V27.96: kolom tidak ikut melebar mengikuti nama panjang; fitOne() membaca lebar kolom ini untuk mengecilkan nama */
.couple { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; width: 100%; }
.person { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: center; min-width: 0; }
.person .pn { font: 400 clamp(2.6rem, 12vw, 3.6rem)/1.1 var(--f-script); color: var(--rose-deep); max-width: 100%; }
.person .of { font-size: 0.9rem; color: var(--ink); max-width: 32ch; }
.person .of b { display: block; font-weight: 700; color: var(--mauve); letter-spacing: .06em; }
.amp { font: 400 3.2rem/1 var(--f-script); color: var(--gold); }
/* varian berfoto: bingkai lengkung bergaris emas seperti lengkung PSD */
.pframe { position: relative; width: min(50vw, 188px); aspect-ratio: 5 / 7; container-type: inline-size; padding: 4.5%; border-radius: 999px 999px 10px 10px; background: #fbfaf7; box-shadow: 0 1px 0 #fff, 0 14px 26px -18px #56688f, inset 0 0 0 1px #b4876088; }
.pframe::before { content: ''; position: absolute; inset: 2.2%; border-radius: inherit; border: 1px solid #b48760aa; pointer-events: none; z-index: 2; }
.pframe .in { position: relative; width: 100%; height: 100%; border-radius: 999px 999px 6px 6px; overflow: hidden; z-index: 1; }
.pframe .in > img.ph { width: 100%; height: 100%; object-fit: cover; }
.pframe .empty-ph .efl.e1 { left: -6%; bottom: -4%; width: 70%; }
.pframe .empty-ph .efl.e2 { right: -8%; left: auto; bottom: -4%; width: 62%; scale: -1 1; }
.pframe .empty-ph .ini { top: 26%; font-size: 40cqw; }
.v-nophoto .pframe { display: none; }

.events { display: grid; gap: 14px; width: 100%; }
.event { border: 1px solid var(--line); border-radius: 999px 999px 22px 22px; padding: 38px 22px 26px; background: #fdfcf9b8; display: grid; gap: 7px; justify-items: center; }
.event h3 { font: 400 2rem/1 var(--f-script); color: var(--rose-deep); }
.event .day { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mauve); font-weight: 700; }
.event .t { font-size: 1.5rem; color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.event .v { font-weight: 700; color: var(--mauve); letter-spacing: 0.08em; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.btn { appearance: none; border: 1px solid var(--rose); background: #fdfcf9cc; color: var(--rose-deep); border-radius: 999px; padding: 11px 18px; cursor: pointer; text-decoration: none;
  font: 700 0.62rem/1 var(--f-serif); letter-spacing: 0.22em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 2; }
.btn.solid { background: var(--rose); color: #fbfbfd; }
.btn:disabled { opacity: 0.55; cursor: default; }

.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 440px; }
.tick { display: grid; gap: 4px; padding: 18px 4px 14px; border-radius: 999px 999px 14px 14px; background: #fdfcf9c4; border: 1px solid var(--line); }
.tick output { font-size: clamp(1.45rem, 7vw, 2rem); color: var(--rose-deep); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tick span { font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mauve); }
.done-note, .it { font-style: italic; color: var(--mauve); }

.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.gal img, .gal .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.gal .ph { border: 1px dashed var(--line); background: linear-gradient(160deg, #eef0f4, #e2e7ef); display: grid; place-items: center; font: italic 400 0.8rem/1.2 var(--f-serif); color: var(--mauve); }

form { display: grid; gap: 14px; width: 100%; text-align: left; position: relative; z-index: 2; }
label, legend { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mauve); font-weight: 700; }
input[type=text], textarea { width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fdfcfa; padding: 12px 14px; font-size: 0.95rem; color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.choice { position: relative; flex: 1 1 120px; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span { display: block; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: #fdfcfa; font-size: 0.86rem; }
.choice input:checked + span { background: var(--rose); border-color: var(--rose); color: #fbfbfd; }
.choice input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.form-note { font-size: 0.86rem; font-style: italic; color: var(--rose-deep); text-align: center; }
.wishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; text-align: left; max-height: 360px; overflow-y: auto; position: relative; z-index: 2; }
.wishes li { background: #fdfcf9d0; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: grid; gap: 2px; }
.wishes li b { color: var(--rose-deep); font-size: 0.92rem; }
.wishes li small { color: var(--mauve); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; }
.wishes li p { font-size: 0.92rem; }
.empty { font-style: italic; color: var(--mauve); font-size: 0.9rem; }

.gifts { display: grid; gap: 12px; width: 100%; justify-items: center; }
.gift { width: 100%; max-width: 420px; border-radius: 20px; padding: 24px 22px; display: grid; gap: 6px; justify-items: center; background: linear-gradient(150deg, #f2f4f8, #e6eaf1); border: 1px solid var(--line); }
.gift .bank { font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700; color: var(--mauve); }
.gift .no { font-size: 1.4rem; letter-spacing: 0.12em; color: var(--rose-deep); font-variant-numeric: tabular-nums; user-select: all; overflow-wrap: anywhere; }
.gift .addr { font-size: 0.95rem; color: var(--rose-deep); max-width: 30ch; }
.tag { font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mauve); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; background: #fdfcf9; }
.stream { width: 100%; max-width: 460px; border: 1px dashed var(--rose); border-radius: 18px; padding: 24px 20px; display: grid; gap: 10px; justify-items: center; background: #fdfcf9b0; }
.story { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 480px; display: grid; text-align: left; }
.story li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding-bottom: 26px; }
.story li::before { content: ''; position: absolute; left: 31px; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.story li:last-child::before { display: none; }
.story .yr { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; background: var(--paper-2); color: var(--rose-deep); font-weight: 700; font-size: 0.88rem; position: relative; z-index: 1; }
.story h3 { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose); font-weight: 700; padding-top: 8px; }
.story p { font-size: 0.9rem; }
.qr { width: 188px; height: 188px; padding: 12px; background: #fff; border-radius: 16px; border: 1px solid var(--line); display: grid; place-items: center; }
.qr canvas, .qr img { width: 164px !important; height: 164px !important; }
.checkin { display: grid; gap: 10px; justify-items: center; }
.preview-note { font-size: 0.7rem; font-style: italic; color: var(--mauve); }
.closing .cl-names { display: grid; justify-items: center; color: var(--rose-deep); width: 100%; }
.closing .cl-names .p1, .closing .cl-names .p2 { font: 400 clamp(2.6rem, 12vw, 3.8rem)/1.1 var(--f-script); max-width: 100%; }
.closing .cl-names .amp { font-size: 2rem; }
footer { text-align: center; padding: 26px 16px calc(26px + env(safe-area-inset-bottom, 0px)); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mauve); background: var(--paper-2); }

.music { position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rose); background: #fbfbfde6; color: var(--rose-deep); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -14px #56688f; }
.music svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.music.on svg { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#petals { position: fixed; inset: 0; z-index: 40; pointer-events: none; width: 100%; height: 100%; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; transition: .4s; background: var(--rose-deep); color: #fbfbfd; border-radius: 999px; padding: 10px 18px; font-size: 0.8rem; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 760px) { .couple { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; } .events { grid-template-columns: 1fr 1fr; } }



/* =================== MOTION: pembukaan sampul 5 detik =================== */
@keyframes rise { from { opacity: 0; translate: 0 7%; scale: .95; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes bloom { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes inkIn { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
@keyframes glint { 0%, 70%, 100% { filter: brightness(1); } 82% { filter: brightness(1.35) drop-shadow(0 0 6px #fff); } }
@keyframes sheen { 0%, 60% { translate: -120% 0; } 85%, 100% { translate: 120% 0; } }
.motion .archbox { animation: rise 2.4s var(--ease-out) .2s both; }
.motion .gb { animation: sway var(--d) ease-in-out var(--dl) infinite alternate, inkIn 2.4s ease .3s both; }
.motion .gl { animation: sway var(--d) ease-in-out var(--dl) infinite alternate, bloom 2.6s var(--ease-out) both; }
.motion .gl.f1 { animation-delay: var(--dl), .5s; } .motion .gl.f2 { animation-delay: var(--dl), .9s; }
.motion .gl.f3 { animation-delay: var(--dl), .7s; } .motion .gl.f4 { animation-delay: var(--dl), 1.1s; }
.motion .g-splash { animation: inkIn 2s ease 1.2s both; }
.motion .cv-text > * { animation: fadeUp 1.3s var(--ease-soft) both; }
.motion .cv-text > :nth-child(1) { animation-delay: 1.6s; } .motion .cv-text > :nth-child(2) { animation-delay: 1.8s; } .motion .cv-text > :nth-child(3) { animation-delay: 2s; }
.motion .cv-text > .mono { animation: inkIn 2s var(--ease-soft) 2.2s both, glint 5s ease-in-out 5.4s infinite; }
.motion .cv-text > :nth-child(5) { animation-delay: 2.9s; } .motion .cv-text > :nth-child(6) { animation-delay: 3.15s; } .motion .cv-text > :nth-child(7) { animation-delay: 3.4s; }
.motion .gate-foot { animation: fadeUp 1.1s var(--ease-soft) 3.9s both; }
.motion .open::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, #ffffff66 50%, transparent 65%); translate: -120% 0; animation: sheen 3.6s ease-in-out 5.6s infinite; }
/* transisi buka: kamera menembus lengkung, hydrangea tersibak */
.motion .gate.gone .archbox { scale: 1.6; opacity: 0; transition: scale 1.2s cubic-bezier(.6, 0, .3, 1), opacity .9s ease .25s; animation: none; }
.motion .gate.gone .cv-text { opacity: 0; transition: opacity .5s ease; }
.motion .gate.gone .gate-foot { opacity: 0; translate: 0 20px; transition: opacity .35s ease, translate .35s ease; animation: none; }
.motion .gate.gone .gl.f1, .motion .gate.gone .gl.f2, .motion .gate.gone .gb.l { translate: -45% 0; opacity: 0; transition: translate 1.1s cubic-bezier(.6, 0, .3, 1), opacity .9s ease .2s; }
.motion .gate.gone .gl.f3, .motion .gate.gone .gl.f4, .motion .gate.gone .gb.r { translate: 45% 0; opacity: 0; transition: translate 1.1s cubic-bezier(.6, 0, .3, 1), opacity .9s ease .2s; }
/* hero setelah dibuka */
.motion .hero:not(.play) .h-anim { opacity: 0; }
.motion .hero.play .hb { animation: sway var(--d) ease-in-out var(--dl) infinite alternate, inkIn 2.2s ease .2s both; }
.motion .hero.play .hf { animation: sway var(--d) ease-in-out var(--dl) infinite alternate, rise 2s var(--ease-out) .4s both; }
.motion .hero.play .h-splash { animation: inkIn 2s ease .9s both; }
.motion .hero.play .h-k { animation: fadeUp 1.1s var(--ease-soft) .8s both; }
.motion .hero.play .h-names { animation: inkIn 1.8s var(--ease-soft) 1.1s both; }
.motion .hero.play .h-info { animation: fadeUp 1.1s var(--ease-soft) 1.9s both; }
/* muncul saat digulir */
.rv { transition: opacity 1s var(--ease-soft), translate 1s var(--ease-soft), filter 1s var(--ease-soft); }
.rv.rv-pre { opacity: 0; translate: 0 22px; filter: blur(3px); }
.corner { transition: translate 1.6s var(--ease-out), opacity 1.6s ease; }
.sec.sec-pre .corner { translate: 0 40px; opacity: 0; }
@keyframes tickIn { from { opacity: 0; translate: 0 -40%; } to { opacity: 1; translate: 0 0; } }
.tick output.tk { animation: tickIn .45s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .sway, .gl, .gb, .music.on svg { animation: none !important; }
  .gate, .gate *, .hero *, .rv, .corner, .tick output { animation: none !important; transition: none !important; }
  .rv.rv-pre, .sec.sec-pre .corner { opacity: 1; translate: none; filter: none; }
  html { scroll-behavior: auto; }
}



/* Hydrangea memakai satu keluarga huruf (Playfair Display) seperti PSD: judul kecil miring, nama tegak */
.sec .kick { font: italic 400 clamp(1.25rem, 5.2vw, 1.6rem)/1.25 var(--f-serif); color: var(--gold-2); }
.person .pn { font: 400 clamp(1.9rem, 8.6vw, 2.6rem)/1.2 var(--f-serif); letter-spacing: .02em; }
.amp { font: italic 400 2rem/1 var(--f-serif); }
.event h3 { font: italic 400 1.6rem/1.1 var(--f-serif); }
.closing .cl-names .p1, .closing .cl-names .p2 { font: 400 clamp(2rem, 9vw, 2.8rem)/1.2 var(--f-serif); }
.closing .cl-names .amp { font-size: 1.4rem; margin: .2rem 0; }
.pframe .empty-ph .ini { font-family: var(--f-serif); font-style: italic; font-size: 34cqw; }
.corner.bl { left: -3%; } .corner.br { right: -3%; }
