/* Samudra — pernikahan di tepi pantai: langit senja, ombak toska, pasir hangat.
   Font di-host di paket (CSP), lisensi di fonts/LISENSI.md. */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; src: url("fonts/dm-serif-display.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; src: url("fonts/dm-serif-display-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Outfit"; font-weight: 300 700; src: url("fonts/outfit.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #0c3550;
  --text: #3d5a6c;
  --ocean: #0f5f80;
  --deep: #0a3d58;
  --sea: #1b8aa6;
  --teal: #3fb8c0;
  --foam: #a9e3de;
  --sand: #fbf5ea;
  --sand-2: #f4e8d4;
  --sand-3: #e6d1ad;
  --coral: #b84d2a;
  --sunset: #ef8a5d;
  --sun: #f7b56c;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 18px 40px -22px rgba(10, 61, 88, 0.45);
 /* warna hasil tone (dulu ditulis langsung) */ --tn-1: #cfe9ec; --tn-2: #0c3550; --tn-3: #9fdcd7; --tn-4: #5cc3c6; --tn-5: #2a9db5; --tn-6: #0a3d58; --tn-7: #0f5f80; --tn-8: #3fb8c0; --tn-9: #e5f2ef; --tn-10: #5a6f7c; --tn-11: #13698a; --tn-12: #1b8aa6;
}

/* Tone warna (field "tone"): toska-laut = bawaan di atas. */
:root[data-tone="biru-laut"] { --ink: #0c1e50; --text: #3d4a6c; --ocean: #0f3980; --deep: #0a2358; --sea: #1b5ba6; --teal: #3f8cc0; --foam: #a9d4e3; --tn-1: #cfdfec; --tn-2: #0c1e50; --tn-3: #9fccdc; --tn-4: #5c9fc6; --tn-5: #2a6eb5; --tn-6: #0a2358; --tn-7: #0f3980; --tn-8: #3f8cc0; --tn-9: #e5f1f2; --tn-10: #5a647c; --tn-11: #13418a; --tn-12: #1b5ba6; }
:root[data-tone="ungu-senja"] { --ink: #3c0c50; --text: #5d3d6c; --ocean: #520f80; --deep: #3d0a58; --sea: #611ba6; --teal: #6e3fc0; --foam: #b6a9e3; --tn-1: #dbcfec; --tn-2: #3c0c50; --tn-3: #ad9fdc; --tn-4: #7f5cc6; --tn-5: #6c2ab5; --tn-6: #3d0a58; --tn-7: #520f80; --tn-8: #6e3fc0; --tn-9: #e6e5f2; --tn-10: #715a7c; --tn-11: #58138a; --tn-12: #611ba6; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.65 var(--sans);
  background: var(--deep) url("img/ombak.svg") center top / 520px auto repeat;
  -webkit-font-smoothing: antialiased;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: 0.005em; }

.page {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  background: var(--sand);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 90px rgba(0, 0, 0, 0.45);
}

.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--coral); margin: 0 0 10px; }
.ico { width: 26px; height: 26px; color: var(--sea); }
.ico-lg { width: 40px; height: 40px; margin-bottom: 14px; }
.muted { color: var(--text); }

/* ───────── Sampul ───────── */
.cover { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; text-align: center; }
.sky {
  position: relative;
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 24px 120px;
  background:
    radial-gradient(90% 50% at 50% 100%, rgba(255, 196, 140, 0.85), transparent 70%),
    linear-gradient(180deg, var(--tn-1) 0%, #f6e3d3 42%, #fbd2b4 72%, #f7b996 100%);
  color: var(--ink);
}
.sun {
  position: absolute; left: 50%; bottom: -78px; z-index: 0;
  width: 210px; height: 210px; margin-left: -105px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffe6b0 0%, #ffc777 45%, #f39563 100%);
  box-shadow: 0 0 60px 20px rgba(255, 190, 120, 0.55), 0 0 140px 60px rgba(255, 170, 120, 0.3);
}
.birds { position: absolute; top: 7%; right: 9%; width: 80px; color: color-mix(in srgb, var(--tn-2) 45%, transparent); stroke-width: 1.6; }
.cover .eyebrow { color: var(--ink); opacity: 0.85; position: relative; z-index: 1; }
.cover h1 { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin: 6px 0 18px; }
.cover h1 .n { font-size: clamp(54px, 17vw, 76px); line-height: 0.98; overflow-wrap: anywhere; }
html.js .cover h1 .n { white-space: nowrap; overflow-wrap: normal; max-width: 100%; }
.cover h1 { max-width: 100%; }
.cover h1 .amp { font-style: italic; font-size: 38px; line-height: 1.1; color: var(--coral); margin: 2px 0; }
.date { position: relative; z-index: 1; font-weight: 500; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; margin: 0; padding: 8px 18px; border-top: 1px solid color-mix(in srgb, var(--tn-2) 30%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--tn-2) 30%, transparent); }

.sea { position: relative; z-index: 1; margin-top: -96px; }
.waves { display: block; width: 100%; height: 110px; }
.waves path { stroke: none; }
.w1 { fill: var(--tn-3); opacity: 0.75; }
.w2 { fill: var(--tn-4); opacity: 0.85; }
.w3 { fill: var(--tn-5); }
.w4 { fill: var(--ocean); }
.waves .foam { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 2.4; }
.cover .w { animation: drift 14s linear infinite; }
.cover .w1 { animation-duration: 22s; animation-direction: reverse; }
.cover .w2 { animation-duration: 15s; }
.cover .w3 { animation-duration: 18s; animation-direction: reverse; }
.cover .w4, .cover .foam { animation-duration: 11s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-1200px); } }

.sea-body {
  margin-top: -1px;
  padding: 6px 24px 40px;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(255, 200, 150, 0.22), transparent 70%),
    linear-gradient(180deg, var(--ocean) 0%, var(--deep) 100%);
  color: #fff;
}
.to p { margin: 0; font-size: 13px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.85); }
.to .guest { font-family: var(--serif); font-size: 30px; line-height: 1.2; color: #fff; margin: 6px 0 2px; letter-spacing: 0; overflow-wrap: anywhere; }
.open { margin-top: 18px; }
.hint { display: none; margin: 14px 0 0; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }

.rise { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.cover h1.rise { animation-delay: 0.15s; }
.cover .date.rise { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Gerbang “Buka undangan” hanya bila JS aktif; tanpa JS semua isi tetap tampil. */
html.js:not(.opened) body { overflow: hidden; }
html.js:not(.opened) .content,
html.js:not(.opened) footer,
html.js:not(.opened) .music-toggle { display: none; }
html.opened .open { display: none; }
html.opened .hint { display: block; }
html.opened .content { animation: fadein 0.9s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ───────── Tombol ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--ocean); color: #fff;
  font: 600 15px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--tn-6) 80%, transparent);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--deep); transform: translateY(-1px); }
.btn:focus-visible, .chip:focus-within, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn-sand { background: var(--sand); color: var(--ink); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5); }
.btn-sand:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ocean); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tn-7) 45%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--tn-8) 12%, transparent); }
.btn-block { width: 100%; }

/* ───────── Isi ───────── */
section { position: relative; padding: 64px 26px; text-align: center; }
section h2 { font-size: 36px; line-height: 1.12; margin-bottom: 22px; }
section + section:not(.band):not(.closing)::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 96px; height: 14px; margin-left: -48px;
  background: url("img/garis-ombak.svg") center / contain no-repeat;
}
.band + section::before { display: none; }

.intro { padding-top: 72px; }
.opening { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink); margin-bottom: 10px; }
.lead { max-width: 34ch; margin: 0 auto; }
.quote { margin: 30px 0 0; padding: 26px 22px 22px; border-radius: 22px; background: var(--sand-2); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font: 72px/1 var(--serif); color: var(--sunset); }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.55; color: var(--ink); }
.quote figcaption { margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--coral); }

.couple { padding-top: 56px; }
.person { margin-top: 10px; }
.portrait {
  position: relative; width: 196px; height: 236px; margin: 0 auto 22px;
  border-radius: 999px 999px 26px 26px; overflow: hidden;
  background: var(--ocean) url("img/potret.svg") center / cover no-repeat;
  box-shadow: 0 0 0 6px var(--sand), 0 0 0 7.5px var(--sand-3), var(--shadow);
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.initial { align-self: start; margin-top: 34px; font-family: var(--serif); font-size: 76px; line-height: 1; color: var(--ink); }
.person h3 { font-size: 30px; line-height: 1.15; margin-bottom: 8px; }
.parents { font-size: 15px; margin: 0; }
.parents b { color: var(--ink); font-weight: 600; }
.and { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 34px 0 30px; }
.and span { width: 60px; height: 1px; background: var(--sand-3); }
.and .ico { color: var(--sunset); width: 30px; height: 30px; }

/* Pita laut untuk hitung mundur */
.band {
  margin: 34px 0;
  padding: 58px 22px 54px;
  color: #fff;
  background: linear-gradient(180deg, var(--sea) 0%, var(--ocean) 55%, var(--deep) 100%);
}
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 24px; background-size: 240px 24px; background-repeat: repeat-x; }
.band::before { top: -22px; background-image: url("img/tepi-atas.svg"); }
.band::after { bottom: -22px; background-image: url("img/tepi-bawah.svg"); }
.band .eyebrow { color: var(--foam); }
.band-title { font: 400 34px/1.15 var(--serif); color: #fff; margin: 0 0 22px; }
.countdown { display: none; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
html.js .countdown { display: grid; }
.cd-fallback { margin: 0 0 22px; font-size: 18px; color: #fff; }
html.js .cd-fallback { display: none; }
.countdown div { padding: 14px 0 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.countdown b { display: block; font: 400 32px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }

.story-text { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink); margin: 0; }
.story h2 { font-size: 32px; }

.events { background: linear-gradient(180deg, var(--sand) 0%, #e8f4f1 16%, var(--tn-9) 84%, var(--sand) 100%); }
.event {
  position: relative;
  margin: 28px 0 0; padding: 44px 22px 24px;
  background: #fff; border-radius: 26px;
  box-shadow: var(--shadow);
}
.event + .event { margin-top: 50px; }
.event-ico {
  position: absolute; top: -26px; left: 50%; margin-left: -26px;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--sun), var(--sunset)); color: #fff;
  box-shadow: 0 0 0 6px #fff;
}
.event-ico svg { width: 26px; height: 26px; stroke-width: 1.6; }
.event h3 { font-size: 30px; margin-bottom: 14px; }
.facts { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px dashed color-mix(in srgb, var(--tn-7) 20%, transparent); color: var(--ink); }
.facts li:first-child { border-top: 0; }
.facts svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--sea); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.actions .btn { flex: 1 1 100%; padding: 0 16px; }
.dresscode { display: flex; gap: 14px; align-items: center; text-align: left; margin-top: 22px; padding: 18px 20px; border-radius: 22px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tn-7) 15%, transparent); }
.dresscode .ico { width: 34px; height: 34px; flex: none; color: var(--sunset); }
.dresscode .eyebrow { margin-bottom: 2px; }
.dresscode p:last-child { margin: 0; color: var(--ink); }

.gallery .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; background: var(--sand-2); }
.gallery img:nth-child(3n + 1) { grid-column: span 2; aspect-ratio: 4 / 3; }

.postcard {
  position: relative; margin-top: 22px; padding: 28px 22px 24px;
  background: #fff; border-radius: 22px; box-shadow: var(--shadow);
  outline: 1.5px dashed color-mix(in srgb, var(--tn-7) 28%, transparent); outline-offset: -10px;
}
.stamp {
  position: absolute; top: 18px; right: 18px; width: 50px; height: 58px;
  display: grid; place-items: center; border-radius: 6px;
  background: linear-gradient(180deg, #fde3c8, #f7b996); color: var(--coral);
  transform: rotate(6deg);
}
.stamp svg { width: 28px; height: 28px; }
.bank { font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); margin: 6px 0 4px; }
.number { font: 400 30px/1.2 var(--serif); color: var(--ink); letter-spacing: 0.04em; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.holder { margin: 0 0 18px; }

.rsvp { padding-bottom: 72px; }
.note { padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--tn-8) 16%, transparent); color: var(--ink); }
.rsvp form { display: flex; flex-direction: column; gap: 16px; text-align: left; background: #fff; padding: 24px 20px; border-radius: 24px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
input, textarea { font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--sand); border: 1px solid var(--sand-3); border-radius: 14px; padding: 12px 14px; min-height: 48px; width: 100%; }
textarea { resize: vertical; min-height: 110px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--sand); box-shadow: inset 0 0 0 1px var(--sand-3); color: var(--ink); font-size: 15px; cursor: pointer; }
.chip input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; border-radius: 50%; border: 1.5px solid var(--sea); background: #fff; }
.chip input:checked { background: var(--sea); box-shadow: inset 0 0 0 3px #fff; }
.chip:has(input:checked) { background: color-mix(in srgb, var(--tn-8) 16%, transparent); box-shadow: inset 0 0 0 1.5px var(--sea); }

.wishes { list-style: none; margin: 26px 0 0; padding: 0 4px 0 0; text-align: left; max-height: 460px; overflow-y: auto; }
.wishes li { padding: 16px 18px; margin-bottom: 10px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 color-mix(in srgb, var(--tn-7) 8%, transparent); }
.wishes li.pinned { background: #fff8ef; box-shadow: inset 0 0 0 1.5px var(--sun); }
.wish-head { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.wish-head .ico { width: 18px; height: 18px; color: var(--sunset); }
.tag { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ocean); background: color-mix(in srgb, var(--tn-8) 16%, transparent); padding: 3px 10px; border-radius: 999px; }
.wishes p { margin: 6px 0 0; }
.wishes time { display: block; margin-top: 6px; font-size: 12px; color: var(--tn-10); }
.wish-reply { margin-top: 10px !important; padding: 10px 12px; border-left: 2px solid var(--teal); background: color-mix(in srgb, var(--tn-8) 8%, transparent); border-radius: 0 12px 12px 0; font-size: 14px; }

/* ───────── Penutup ───────── */
.closing {
  margin-top: 30px;
  padding: 96px 0 0;
  color: #fff;
  background: linear-gradient(180deg, #fbe0cb 0%, #f8c3a0 50%, #f2a07c 100%);
  overflow: hidden;
}
.waves-top { position: absolute; z-index: 2; top: 0; left: 0; height: 46px; }
.waves-top path { fill: var(--sand); }
.sun-sm { position: relative; left: auto; bottom: auto; margin: 0 auto; width: 110px; height: 110px; }
.horizon { display: block; position: relative; z-index: 1; width: 100%; height: 54px; margin-top: -48px; }
.closing-sea { position: relative; z-index: 1; margin-top: -1px; padding: 30px 28px 64px; background: linear-gradient(180deg, var(--tn-5) 0%, var(--tn-11) 16%, var(--ocean) 40%, var(--deep) 100%); }
.horizon path { stroke: none; }
.horizon .h1 { fill: var(--tn-3); opacity: 0.7; }
.horizon .h2 { fill: var(--tn-5); }
.closing-text { max-width: 32ch; margin: 0 auto 18px; font-size: 16px; color: rgba(255, 255, 255, 0.92); }
.closing .opening { color: #fff; }
.closing .eyebrow { color: var(--foam); margin-top: 26px; }
.names { font: 400 48px/1.1 var(--serif); color: #fff; margin: 0; }
.names span { font-style: italic; color: #ffd3ad; }

footer { padding: 22px 16px 30px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.75); background: var(--deep); }
footer a { color: #fff; font-weight: 600; }

/* ───────── Musik ───────── */
.music-toggle {
  position: fixed; z-index: 30; bottom: 18px; right: max(16px, calc(50% - 240px + 16px));
  width: 50px; height: 50px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: color-mix(in srgb, var(--tn-6) 88%, transparent); color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25), 0 12px 28px -10px rgba(0, 0, 0, 0.6);
}
.music-toggle svg { width: 22px; height: 22px; }
.music-toggle[aria-pressed="true"] { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tn-8) 55%, transparent), 0 12px 28px -10px rgba(0, 0, 0, 0.6); } 100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--tn-8) 0%, transparent), 0 12px 28px -10px rgba(0, 0, 0, 0.6); } }

@media (min-width: 560px) {
  body {
    background:
      url("img/ombak.svg") center 0 / 520px auto repeat,
      linear-gradient(180deg, #f6cdb0 0, #ec9f80 700px, var(--tn-12) 1300px, var(--tn-7) 45%, var(--tn-6) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Amplop: beberapa rekening/e-wallet */
.gift-list { display: grid; gap: 14px; width: 100%; }

/* ---------- Animasi ---------- */
:root { --rv-dur: 1250; }
.rv { opacity: 0; translate: calc(var(--s, 1) * -20px) 30px; rotate: calc(var(--s, 1) * -1.2deg); }
.rv.in { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; filter: blur(0) brightness(1); clip-path: none; transition: opacity 1.25s cubic-bezier(.22,.61,.36,1) calc(var(--d, 0) * 1ms), translate 1.25s cubic-bezier(.22,.61,.36,1) calc(var(--d, 0) * 1ms), scale 1.25s cubic-bezier(.22,.61,.36,1) calc(var(--d, 0) * 1ms), rotate 1.25s cubic-bezier(.22,.61,.36,1) calc(var(--d, 0) * 1ms), filter 1.25s cubic-bezier(.22,.61,.36,1) calc(var(--d, 0) * 1ms), clip-path 1.25s cubic-bezier(.22,.61,.36,1) calc(var(--d, 0) * 1ms); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; translate: none; scale: none; rotate: none; filter: none; clip-path: none; } }

@media (prefers-reduced-motion: no-preference) {
  .birds { animation: mo-geser 20s ease-in-out infinite alternate; }
  .sun, .sun-sm { animation: mo-ambang 10s ease-in-out infinite; }
  .postcard { transition: translate .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
  .postcard:hover { translate: 0 -5px; }
}
@keyframes mo-denyut { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
@keyframes mo-ambang { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes mo-ayun { from { rotate: -2.2deg; } to { rotate: 2.2deg; } }
@keyframes mo-putar { to { rotate: 360deg; } }
@keyframes mo-kerlip { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .35; scale: .72; } }
@keyframes mo-kilau { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes mo-geser { from { translate: -26px 0; } to { translate: 26px 0; } }
@keyframes mo-garis { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes mo-naik { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes mo-blur { from { opacity: 0; filter: blur(10px); scale: 1.05; } to { opacity: 1; filter: blur(0); scale: 1; } }
@keyframes mo-pop { from { opacity: 0; scale: .55; rotate: -8deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes mo-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 5px 0; } }
@keyframes mo-hujan { to { background-position: 0 520px, 0 520px, 0 520px, 0 780px, 0 780px; } }

/* Foto sampul (opsional): lengkung seperti jendela; tinggi menyesuaikan layar supaya tombol "Buka undangan" tetap terjangkau. */
.cover-photo { position: relative; z-index: 1; flex: none; display: block; width: auto; height: clamp(96px, 17svh, 150px); aspect-ratio: 4 / 5; margin: 8px auto 6px; border-radius: 999px 999px 16px 16px; overflow: hidden; border: 3px solid rgba(255, 255, 255, 0.85); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); }
.cover-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Cover lebih tinggi dari layar (foto sampul + layar pendek): tetap bisa digulir ke tombol "Buka undangan". */
.js body.locked { overflow: visible; }
/* Bentuk foto sampul khas Samudra: jendela kapal: lingkaran berbingkai pasir tebal. */
.cover-photo { aspect-ratio: 1 / 1; border: 6px solid var(--sand); border-radius: 50%; box-shadow: 0 0 0 2px var(--sand-3), 0 10px 26px rgba(10, 61, 88, 0.3); }
@media (max-height: 700px) { .cover-photo { display: none; } } /* layar pendek: sampul seperti semula supaya tombol tetap terlihat */
