/* CRAFID — template Amber Arch (kit amber-arch / amber-arch-foto), dari desain PSD "95_amy_spencer" (mockup 4 halaman 1080 × 1920). */
  /* Kartu "Amber Arch": kertas abu hangat, dua lengkung pil merah muda bertepi emas, bunga jingga bergoyang, foto dalam sapuan kuas.
     Satu tampilan terang yang disengaja (kartu undangan), jadi semua warna ditetapkan eksplisit.
     Warna dari layer PSD: latar #eeecec, lengkung #f0e8ef, teks emas cokelat #957039, bunga jingga #e8954a. */
  :root {
    color-scheme: light;
    --paper: #eeecec; --paper-2: #f4f1f2; --ink: #5a4a36; --mauve: #8a6a3a; --rose: #957039;
    --rose-deep: #6f5228; --blush: #f0c9a4; --peach: #f6ece9; --leaf: #b9a07a; --line: #95703945; --gold: #c9a26a; --gold-ink: #957039;
    --f-serif: 'Libre Baskerville', Baskerville, 'Baskerville Old Face', Georgia, serif;
    --f-disp: 'Libre Baskerville', Baskerville, 'Baskerville Old Face', Georgia, serif;
    --f-script: 'Pinyon Script', 'Great Vibes', 'Snell Roundhand', cursive;
    --f-ar: 'Amiri', 'Traditional Arabic', serif;
    --f-deco: 'Cinzel Decorative', 'Cinzel', 'Trajan Pro', Georgia, 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; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .caps { font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--mauve); font-weight: 700; }
  .caps.sm { font-size: 0.64rem; letter-spacing: 0.3em; font-weight: 400; }
  .it { font-style: italic; color: var(--mauve); }

  .paper { position: relative; background: var(--paper) center / cover no-repeat; }
  .paper.cover, .paper.std { background-image: url("../images/crafid-amber/paper.webp"); }

  /* bunga bergoyang jelas: amplitudo bawaan 2,6° dan tempo 6 detik (diatur per gambar lewat --a / --d) */
  .sway { transform-origin: var(--ox, 50%) var(--oy, 100%); animation: sway var(--d, 6s) ease-in-out var(--dl, 0s) infinite alternate; }
  @keyframes sway { 0% { transform: rotate(calc(var(--a, 2.6deg) * -1)) translateY(0); } 50% { transform: rotate(calc(var(--a, 2.6deg) * 0.35)) translateY(-0.6%); } 100% { transform: rotate(var(--a, 2.6deg)) translateY(-0.3%); } }

  /* monogram hidup: dua inisial script berdampingan menumpuk (gaya huruf "The Wedding Of" di PSD) */
  .mono-live { display: inline-flex; align-items: flex-end; font: 400 1em/1 var(--f-deco); color: var(--rose); }
  .mono-live .m1 { translate: 0.1em -0.12em; } .mono-live .m2 { translate: -0.1em 0.1em; }

  /* nama gaya PSD: huruf awal besar, sisanya kapital berjarak */
  .nm-big { font: 500 1em/1 var(--f-disp); color: var(--rose); text-transform: uppercase; letter-spacing: 0.12em; }
  .nm-big .cap { font-size: 1.55em; letter-spacing: 0.02em; }

  /* ---------- 1 · SAMPUL: Save the Date dalam lengkung ---------- */
  .gate { position: fixed; inset: 0; z-index: 50; overflow: hidden; background-color: var(--paper);
    transition: transform 1.1s cubic-bezier(.7,0,.2,1), opacity 1.1s ease;
    /* --F = lebar halaman PSD 1080 px; --pt = tepi atas halaman PSD (halaman di tengah layar). Semua layer = koordinat PSD */
    --F: min(100vw, 61.9svh); --pt: calc((100svh - var(--F) * 1.77778) * 0.5); }
  .gate.gone { transform: translateY(-104%); opacity: 0.4; pointer-events: none; }
  .gate .frame { position: absolute; inset: 0 auto 0 50%; width: var(--F); transform: translateX(-50%); pointer-events: none; }
  .gate .fl { position: absolute; height: auto; max-width: none; }
  /* dua lengkung pil bertepi emas (layer "Shape"): gambar sampai tepi bawah halaman PSD + badan berulang sampai bawah layar */
  .gate .af { position: absolute; bottom: 0; display: flex; flex-direction: column; }
  .gate .af img { width: 100%; height: auto; display: block; flex: none; max-width: none; }
  .gate .af i { flex: 1 1 auto; background: center top / 100% auto repeat-y; }
  /* blok teks di lengkung depan: mulai 253 px PSD di bawah puncaknya (di bawah lengkungan kanan, tidak menabrak tepi emas),
     pusat x 690 PSD; di layar pendek huruf mengecil (lebar blok) supaya tidak tertutup kartu tombol */
  .gate .archbox { position: absolute; z-index: 5; left: 63.9%; transform: translateX(-50%); top: calc(var(--pt) + var(--F) * 0.7692); height: calc(var(--F) * 0.55); container-type: inline-size; pointer-events: none;
    width: min(calc(var(--F) * 0.688), calc((100svh - max(7svh, 28px) - 125px - var(--pt) - var(--F) * 0.7692) / 0.76)); }
  .cv-text { position: absolute; inset: 0; z-index: 4; pointer-events: none; color: var(--mauve); text-align: center; }
  .cv-text > * { position: absolute; left: 8%; right: 8%; margin: 0; }
  /* ukuran huruf dari layer PSD (lebar blok 743 px), "The Wedding Of" diperbesar supaya terbaca */
  .cv-text .k1 { font: 700 4.5cqw/1 var(--f-serif); letter-spacing: 0.24em; padding-left: 0.24em; text-transform: uppercase; color: var(--rose); }
  .cv-text .nm { font: 400 8.6cqw/1.2 var(--f-serif); letter-spacing: 0.24em; padding-left: 0.24em; text-transform: uppercase; color: var(--rose); left: 8%; right: 8%; white-space: nowrap; }
  .cv-text .and { font: 400 9.4cqw/1.2 var(--f-deco); color: var(--rose); }
  .cv-text .dt { font: 700 5.2cqw/1 var(--f-serif); letter-spacing: 0.22em; padding-left: 0.22em; color: var(--rose); font-variant-numeric: lining-nums; }
  @media (min-aspect-ratio: 3/4) { .gate .frame { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); } }
  .gate-foot { position: absolute; z-index: 6; left: 50%; bottom: calc(max(7svh, 28px) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(calc(100% - 72px), 240px);
    display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; padding: 9px 14px 11px; border-radius: 18px;
    background: #f8f5f3c4; border: 1px solid #ffffffb0; box-shadow: 0 18px 40px -24px #6f5228; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .to { display: grid; gap: 2px; }
  .to .pre { font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mauve); }
  .to b { font-weight: 700; font-size: 0.98rem; color: var(--rose-deep); letter-spacing: 0.02em; }
  .open { appearance: none; border: 1px solid var(--rose); background: var(--rose); color: #fdfaf6; border-radius: 999px; padding: 10px 20px 10px 18px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
    font: 700 0.6rem/1 var(--f-serif); letter-spacing: 0.26em; text-transform: uppercase; box-shadow: 0 14px 30px -18px #6f5228; position: relative; overflow: hidden; }
  .open svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .open:hover { background: var(--rose-deep); }

  /* ---------- 3 · HERO: halaman undangan PSD, teks hidup di koordinat aslinya ---------- */
  /* hero & setiap bagian = minimal satu layar penuh, isi di tengah */
  .hero { display: flex; justify-content: center; align-items: center; overflow: hidden; min-height: 100vh; min-height: 100svh; }
  .card { position: relative; width: min(100%, 720px, 56.25svh); height: 100vh; height: 100svh; container-type: inline-size; flex: none;
    -webkit-mask-image: linear-gradient(180deg, #000 92%, transparent); mask-image: linear-gradient(180deg, #000 92%, transparent); }
  @media (min-width: 640px) { .card { -webkit-mask-image: linear-gradient(180deg, #000 92%, transparent), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, #000 92%, transparent), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; } }
  .card > img { position: absolute; height: auto; pointer-events: none; user-select: none; max-width: none; }
  /* kotak teks berproporsi kanvas PSD, di tengah layar; bunga atas/bawah menempel ke tepi layar */
  .card .ctext { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; aspect-ratio: 1080 / 1920; }
  .card .t { position: absolute; left: 6%; right: 6%; text-align: center; margin: 0; color: var(--mauve); }
  /* foto dalam sapuan kuas: topeng = layer "Mask" PSD; foto menutupi kotak (object-fit: cover) */
  .card .brush { position: absolute; left: 0; top: 0; width: 100%; height: 94.167%; background: var(--peach);
    -webkit-mask: url("../images/crafid-amber/brush-mask.webp") center / 100% 100% no-repeat; mask: url("../images/crafid-amber/brush-mask.webp") center / 100% 100% no-repeat; }
  .card .brush img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fp, 50% 35%); display: block; }
  /* nama dua baris (Baskerville PSD) di depan "&" besar transparan (Cinzel Decorative, opasitas 29 %) */
  .card .hamp { top: 75.6%; left: 53.5%; right: auto; font: 400 45cqw/1 var(--f-deco); color: var(--rose); opacity: .29; }
  .card .hn { font: 400 10.4cqw/1.15 var(--f-serif); color: var(--rose); text-align: left; right: 3%; white-space: nowrap; }
  .card .hn1 { top: 80.6%; left: 43.9%; }
  .card .hn2 { top: 86.9%; left: 53.8%; }
  .card .nameart { top: 80%; left: 40%; right: 4%; }
  .scrollhint { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); width: 30px; height: 48px; border-radius: 20px; border: 1px solid #ffffffcc; background: #95703955; display: grid; place-items: start center; padding-top: 8px; }
  .scrollhint i { width: 4px; height: 9px; border-radius: 4px; background: #fff; animation: dot 1.8s ease-in-out infinite; }
  @keyframes dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

  /* ---------- bagian isi ---------- */
  main { position: relative; }
  .sec { position: relative; padding-block: clamp(64px, 11vw, 110px); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); overflow: hidden; }
  .sec { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .sec > .wrap { width: 100%; }
  .sec.tint { background: var(--paper-2); }
  .wrap { position: relative; z-index: 2; max-width: 640px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; justify-items: center; text-align: center; }
  .orn { width: 150px; height: 18px; color: var(--gold); }
  .sec h2 { font-size: clamp(1.3rem, 5.4vw, 1.9rem); letter-spacing: 0.26em; text-transform: uppercase; color: var(--rose); font-weight: 400; padding-left: 0.26em; }
  .sec h2 { font: 400 clamp(1.9rem, 8.6vw, 2.6rem)/1.2 var(--f-serif); letter-spacing: 0.01em; text-transform: none; color: var(--rose); padding-left: 0; }
  .sec .kick { font: 700 0.68rem/1.3 var(--f-serif); letter-spacing: 0.34em; text-transform: uppercase; color: var(--rose); }
  .lead { font-style: italic; color: var(--mauve); max-width: 34ch; }
  .ayat { font: 400 clamp(1.7rem, 7vw, 2.3rem)/1.9 var(--f-ar); color: var(--rose-deep); direction: rtl; }
  .sec .mono-live { font-size: clamp(96px, 28vw, 140px); }
  .corner { position: absolute; z-index: 1; pointer-events: none; width: clamp(150px, 36vw, 280px); height: auto; }
  .corner.tl { top: -7%; left: -10%; } .corner.br { bottom: -7%; right: -10%; } .corner.bl { bottom: -8%; left: -10%; } .corner.tr { top: -7%; right: -10%; }
  .bloom { position: absolute; z-index: 1; width: clamp(30px, 7vw, 46px); height: auto; pointer-events: none; }

  /* V27.81: kolom tidak ikut melebar mengikuti kata terpanjang; nama panjang dikecilkan fitNamaMempelai() */
  .couple { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; width: 100%; }
  .person { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: center; min-width: 0; }
  .person .initial, .person .photo { width: 150px; aspect-ratio: 3 / 4; border-radius: 999px 999px 16px 16px; border: 1px solid var(--gold); outline: 6px solid var(--paper-2); outline-offset: -12px; overflow: hidden; }
  .person .initial { background: linear-gradient(180deg, #f8e2d4, #e8ece6); display: grid; place-items: center; font: 400 4rem/1 var(--f-disp); color: var(--rose); }
  .person .photo img { width: 100%; height: 100%; object-fit: cover; }
  /* tempat foto kosong: rangkaian bunga PSD di bawah + inisial (bukan foto palsu) */
  .person .photo.ph { display: grid; justify-items: center; align-content: start; padding-top: 13%;
    background: linear-gradient(180deg, #f8f3f1 38%, #f8f3f100 66%), url("../images/crafid-amber/st-c.webp") 30% 100% / 170% auto no-repeat, linear-gradient(180deg, #f8f3f1, #f1e6e2); }
  .person .photo.ph span { font: 400 4.2rem/1.1 var(--f-deco); color: var(--gold-ink); }
  /* varian tanpa foto: tanpa bingkai, nama saja */
  .person.nofoto { gap: 10px; }
  .person.nofoto h3 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .person.nofoto .of { font-size: 0.95rem; }
  .person.nofoto::after { content: ''; width: 64px; height: 1px; background: var(--gold); opacity: .6; margin-top: 6px; }
  .couple:has(.nofoto) { gap: 22px; }
  .couple:has(.nofoto) .amp { font-size: 2.6rem; }
  .person h3 { max-width: 100%; font-size: clamp(1.3rem, 5vw, 1.6rem); }
  .person .of { font-size: 0.9rem; color: var(--ink); max-width: 30ch; }
  .person .of b { display: block; font-weight: 700; color: var(--mauve); }
  .amp { font: italic 400 3.4rem/1 var(--f-disp); color: var(--blush); }
  .ig { font-size: 0.62rem; }

  .events { display: grid; gap: 14px; width: 100%; }
  .event { border: 1px solid var(--line); border-radius: 18px; padding: 26px 20px; background: #ffffffa8; display: grid; gap: 8px; justify-items: center; }
  .event h3 { font-size: 1.05rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rose); font-weight: 700; padding-left: 0.3em; }
  .event .day { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mauve); font-weight: 700; }
  .event .t { font-size: 1.6rem; 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; }
  .btn { appearance: none; border: 1px solid var(--rose); background: transparent; color: var(--rose-deep); border-radius: 999px; padding: 10px 18px; cursor: pointer; text-decoration: none;
    font: 700 0.62rem/1 var(--f-serif); letter-spacing: 0.24em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
  .btn.solid { background: var(--rose); color: #fdfaf6; }
  .btn:hover { background: var(--rose-deep); color: #fdfaf6; border-color: var(--rose-deep); }

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

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

  .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; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
  .story h3 { font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rose); font-weight: 700; padding-top: 8px; }
  .story p { font-size: 0.9rem; }

  .gifts { display: grid; gap: 12px; width: 100%; justify-items: center; }
  .gift { width: 100%; max-width: 420px; border-radius: 20px; padding: 26px 22px; display: grid; gap: 6px; justify-items: center; background: linear-gradient(150deg, #f8e3d6, #e7ece6); border: 1px solid var(--line); }
  .gift .bank { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700; color: var(--mauve); }
  .gift .no { font-size: 1.45rem; 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.24em; text-transform: uppercase; color: var(--mauve); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; background: #ffffffb0; }

  form { display: grid; gap: 14px; width: 100%; text-align: left; }
  label, legend { font-size: 0.62rem; letter-spacing: 0.26em; 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: #fffdfb; 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 140px; }
  .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: #fffdfb; font-size: 0.86rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink); }
  .choice input:checked + span { background: var(--rose); border-color: var(--rose); color: #fdfaf6; }
  .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; }
  .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; }
  .wishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; text-align: left; max-height: 360px; overflow-y: auto; }
  .wishes li { background: #ffffffb3; 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.66rem; letter-spacing: 0.18em; text-transform: uppercase; }
  .wishes li p { font-size: 0.92rem; }
  .empty { font-style: italic; color: var(--mauve); font-size: 0.9rem; }
  .preview-note { font-size: 0.7rem; font-style: italic; color: var(--mauve); }

  .closing .nm-big { font-size: clamp(1.8rem, 8vw, 2.6rem); display: grid; gap: 4px; }
  .closing .nm-big i { font: italic 400 0.8em/1 var(--f-disp); text-transform: none; letter-spacing: 0; }
  footer { text-align: center; padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mauve); background: var(--paper-2); }

  #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: #fdfaf6; 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); }
  .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: #fdfaf6e6; color: var(--rose-deep); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -14px #6f5228; }
  .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); } }

  @media (min-width: 760px) { .couple { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; } .events { grid-template-columns: 1fr 1fr; } }

  /* ================= GERAK ================= */
  @keyframes archRise { from { opacity: 0; translate: 0 7%; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
  @keyframes bloomUp { from { opacity: 0; translate: 0 18%; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
  @keyframes pearlDrop { from { opacity: 0; translate: 0 -24%; } to { opacity: 1; translate: 0 0; } }
  @keyframes budIn { from { opacity: 0; scale: .3; rotate: -40deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
  @keyframes fadeUp { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
  @keyframes inkIn { from { opacity: 0; filter: blur(6px); scale: 1.05; } to { opacity: 1; filter: blur(0); scale: 1; } }
  @keyframes sheen { 0%, 60% { translate: -120% 0; } 85%, 100% { translate: 120% 0; } }
  .motion .gate .af { animation: archRise 2.2s var(--ease-out) .1s both; } .motion .gate .af.front-arch { animation-delay: .35s; }
  .motion .gate.gone .af { opacity: 0; scale: 1.08; transition: opacity .8s ease .2s, scale 1.2s cubic-bezier(.6, 0, .3, 1); animation: none; }
  .motion .gate .archbox { animation: archRise 2s var(--ease-out) .2s both; }
  .motion .gate .fl:not(.bud) { animation: sway var(--d, 10s) ease-in-out var(--dl, 0s) infinite alternate, bloomUp 2.4s var(--ease-out) var(--in, .6s) both; }
  .motion .gate .fl.pearl { animation: sway var(--d, 10s) ease-in-out var(--dl, 0s) infinite alternate, pearlDrop 2.6s var(--ease-out) var(--in, .3s) both; }
  .motion .gate .bud { animation: budIn 1.6s var(--ease-out) var(--in, 2s) both; }
  .motion .gate .cv-text > * { animation: fadeUp 1.3s var(--ease-soft) var(--in, 1.6s) both; }
  .motion .gate .cv-text > .mono-wrap { animation: inkIn 2s var(--ease-soft) 2.1s both; }
  .motion .gate .gate-foot { animation: fadeUp 1.1s var(--ease-soft) 3.8s 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.4s infinite; }
  .motion .gate.gone { transform: none; opacity: 0; transition: opacity .7s ease .45s; }
  .motion .gate.gone .archbox { scale: 1.25; opacity: 0; transition: scale 1.2s cubic-bezier(.6, 0, .3, 1), opacity .9s ease .25s; animation: none; }
  .motion .gate.gone .gate-foot { opacity: 0; translate: 0 20px; transition: opacity .35s ease, translate .35s ease; animation: none; }
  .motion .gate.gone .fl.pearl { translate: 0 -40%; }
  .motion .gate.gone .fl { translate: 0 30%; opacity: 0; transition: translate 1.1s cubic-bezier(.6, 0, .3, 1), opacity .9s ease .2s; }
  .motion .hero:not(.play) .card .brush, .motion .hero:not(.play) .card .t { opacity: 0; }
  .motion .hero.play .card .t.hamp { animation: ampIn 1.4s var(--ease-soft) var(--in, .6s) both; }
  @keyframes ampIn { from { opacity: 0; translate: 0 14px; } to { opacity: .29; translate: 0 0; } }
  .motion .hero.play .card .brush { animation: brushIn 1.6s var(--ease-out) .1s both; }
  @keyframes brushIn { from { opacity: 0; -webkit-mask-size: 70% 70%; mask-size: 70% 70%; } to { opacity: 1; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } }
  .motion .hero.play .card .t { animation: fadeUp 1.1s var(--ease-soft) var(--in, .6s) both; }
  .motion .hero.play .card > img { animation: sway var(--d, 10s) ease-in-out var(--dl, 0s) infinite alternate, bloomUp 2s var(--ease-out) var(--in, .2s) both; }
  .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, .scrollhint i, .music.on svg { animation: none !important; }
    .gate, .gate *, .hero *, .rv, .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; }
  }

  /* ---- kait data CRAFID: monogram / gambar nama opsional, nama panjang ---- */
  .mono { display: block; }
  .mono img { width: 100%; height: auto; display: block; }
  .cv-text .mono img { width: 31cqw; margin-inline: auto; }
  #quote .mono img { width: clamp(110px, 30vw, 150px); margin-inline: auto; }
  [data-fit] { white-space: nowrap; }
  .card .nameart img { width: 100%; height: auto; display: block; }
  .closing .names { display: block; width: min(70vw, 380px); }
  .closing .names img { width: 100%; height: auto; display: block; }
