/* CRAFID — template Robin Sage (kit robin-sage / robin-sage-foto), dari PSD "Elegant wedding invitation with watercolor bird & botanical elements".
   Kertas putih gading, lengkung emas timbul, ranting daun sage dan burung robin cat air, percikan emas.
   Satu tampilan terang yang disengaja (kartu undangan), jadi semua warna ditetapkan eksplisit. */
:root {
  color-scheme: light;
  --paper: #f3f1ed; --paper-2: #f8f7f4; --ink: #6f6b67; --mauve: #8f8487; --rose: #7d8a5c; --rose-deep: #5e6844;
  --blush: #e6e3d6; --gold: #a08b65; --gold-2: #93804f; --line: #a08b653d;
  --f-serif: 'Playfair Display', Didot, 'Bodoni 72', Georgia, serif;
  --f-script: 'Pinyon Script', 'Great Vibes', 'Snell Roundhand', cursive;
  --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-robin/paper-a.webp") center / cover; }
.paper-b { background: var(--paper) url("../images/crafid-robin/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 emas (kartu Invitation 1) =================== */
/* Panggung selebar kartu PSD (1173 × 1658), setinggi layar. Daun menempel ke tepi atas/bawah,
   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; }
/* lebar panggung dibatasi tinggi layar supaya isi lengkung selalu muat di atas kartu tamu */
.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; }
.gl.tl { left: 0; top: 0; width: 22.6cqw; }
.gl.tr { right: 0; top: 0; width: 32.7cqw; }
.gl.l { left: 0; bottom: 0; width: 30.8cqw; }
.gl.bl { left: 0; bottom: 0; width: 38.3cqw; }
.gl.br { right: 6cqw; bottom: 0; width: 40.3cqw; }
.gl.bird { right: 0; bottom: 0; width: 40cqw; }
.g-splash { left: 60.4cqw; top: calc(max(2svh, 10px) + 4cqw); width: 59.3cqw; opacity: .95; }
.g-splash2 { left: -35cqw; top: calc(max(2svh, 10px) + 40cqw); width: 59.3cqw; rotate: 160deg; opacity: .8; }
.archbox { position: absolute; left: 6.65cqw; width: 86.8cqw; top: calc(max(3svh, 12px) + 8cqw); bottom: -2px; display: flex; flex-direction: column; filter: drop-shadow(0 1px 1px #8a785633) drop-shadow(0 8px 16px #8a785622); }
.archbox .arch-top { width: 100%; height: auto; flex: none; }
.archbox .arch-pillar { flex: 1; background: url("../images/crafid-robin/arch-pillar.webp") top center / 100% auto repeat-y; }
.cv-text { position: absolute; left: 18cqw; right: 18cqw; top: calc(max(3svh, 12px) + 8cqw + 18cqw); 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: #9e9094; z-index: 3; }
.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: 26cqw; height: auto; margin-inline: auto; }
.mono .mono-live { font: 400 17cqw/1 var(--f-script); color: var(--gold); display: inline-flex; align-items: baseline; gap: .06em; text-shadow: 0 1px 0 #fff; }
.mono .mono-live i { font-style: normal; font-size: .45em; }
.cv-text .nm { width: 100%; color: #a08b65; }
.cv-text .nm .fit { font: 400 9.4cqw/1.15 var(--f-script); }
.cv-text .dt { font: 600 4.4cqw/1.3 var(--f-serif); letter-spacing: .12em; }
.cv-text .qt { font: italic 500 4.2cqw/1.4 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: #fbfaf7d0; border: 1px solid #ffffffd0; box-shadow: 0 18px 40px -26px #5e6844; -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: #fbfaf5; 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 #5e6844; 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: burung besar + DETAILS (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; }
.h-bird { left: 0; bottom: 0; width: 66.67cqw; z-index: 2; }
.h-shadow { left: -14.66cqw; bottom: -7.67cqw; width: 84.48cqw; z-index: 1; }
.h-tr { right: 0; top: 0; width: 20cqw; z-index: 2; }
.h-splash { left: 39.2cqw; top: -11.9cqw; width: 59.3cqw; z-index: 1; }
.h-text { position: absolute; right: 21cqw; top: calc(var(--H) * .13 + var(--sy) * .4); z-index: 3; width: 66cqw; text-align: right; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: end; gap: 2.4cqw; }
.h-k { font: 700 clamp(11px, 3cqw, 17px)/1.2 var(--f-serif); letter-spacing: .3em; text-transform: uppercase; color: #a08b65; margin-right: -.3em; }
.h-names { display: block; color: #a08b65; width: 100%; text-align: right; }
.h-names .fit { font: 400 9.6cqw/1.2 var(--f-script); }
.h-names .amp { font-size: .62em; }
.h-info { display: grid; gap: .6cqw; color: #7c7975; font: 600 clamp(10.5px, 2.8cqw, 15px)/1.45 var(--f-serif); letter-spacing: .18em; text-transform: uppercase; }
.h-info p { margin-right: -.2em; }
.h-info .big { font-size: clamp(11.5px, 3.1cqw, 17px); }
.h-info .gap { margin-top: 1.8cqw; }
.h-info .sm { font-weight: 500; font-size: clamp(9.5px, 2.5cqw, 14px); letter-spacing: .16em; text-transform: none; }
/* foto kosong: bunga PSD memudar ke atas + inisial (tanpa siluet orang) */
.empty-ph { position: absolute; inset: 0; background: linear-gradient(180deg, #f4f2ec, #ebe8dc 70%, #e3e0d0); 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-robin/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.92: 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 #5e6844, inset 0 0 0 1px #a08b6588; }
.pframe::before { content: ''; position: absolute; inset: 2.2%; border-radius: inherit; border: 1px solid #a08b65aa; 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: #fbfaf5; }
.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, #eeece4, #e4e2d6); 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: #fbfaf5; }
.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, #f3f2ec, #e9e8de); 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: #fbfaf5e6; color: var(--rose-deep); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -14px #5e6844; }
.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: #fbfaf5; 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; } }
@keyframes hop { 0%, 100% { translate: 0 0; } 6% { translate: 0 -3%; } 12% { translate: 0 0; } }
.motion .archbox { animation: rise 2.4s var(--ease-out) .2s both; }
.motion .gl { animation: sway var(--d) ease-in-out var(--dl) infinite alternate, bloom 2.6s var(--ease-out) both; }
.motion .gl.tl { animation-delay: var(--dl), .4s; transform-origin: 0 0; } .motion .gl.tr { animation-delay: var(--dl), .7s; }
.motion .gl.l { animation-delay: var(--dl), 1s; } .motion .gl.bl { animation-delay: var(--dl), 1.2s; } .motion .gl.br { animation-delay: var(--dl), 1.4s; }
.motion .gl.bird { animation: sway var(--d) ease-in-out var(--dl) infinite alternate, bloom 2.2s var(--ease-out) 1.6s both; }
.motion .g-splash, .motion .g-splash2 { 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, daun 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.tl, .motion .gate.gone .gl.l, .motion .gate.gone .gl.bl { translate: -45% 0; opacity: 0; transition: translate 1.1s cubic-bezier(.6, 0, .3, 1), opacity .9s ease .2s; }
.motion .gate.gone .gl.tr, .motion .gate.gone .gl.br, .motion .gate.gone .gl.bird { translate: 45% 0; opacity: 0; transition: translate 1.1s cubic-bezier(.6, 0, .3, 1), opacity .9s ease .2s; }
/* hero setelah dibuka */
@keyframes wipeL { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.motion .hero:not(.play) .h-anim { opacity: 0; }
.motion .hero.play .h-bird, .motion .hero.play .h-shadow { animation: sway var(--d) ease-in-out var(--dl) infinite alternate, rise 2s var(--ease-out) .2s both; }
.motion .hero.play .h-tr { animation: sway var(--d) ease-in-out var(--dl) infinite alternate, bloom 2s var(--ease-out) .5s both; }
.motion .hero.play .h-splash { animation: inkIn 2s ease .8s both; }
.motion .hero.play .h-k { animation: fadeUp 1.1s var(--ease-soft) .9s both; }
.motion .hero.play .h-names { animation: wipeL 1.8s cubic-bezier(.65, 0, .25, 1) 1.2s 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, .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; }
}

