/* CRAFID — template Bellflower Lilac (kit bellflower-lilac / bellflower-lilac-foto), dari desain PSD "Save the Date" Elijah & Mahen (1500 × 2100). */
  /* Kartu cat air "Bellflower Lilac": kertas cat air abu hangat, bellflower biru pucat berdaun ungu, lengkung berpola ungu, monogram glitter perak.
     Satu tampilan terang yang disengaja (kartu undangan), jadi semua warna ditetapkan eksplisit.
     Warna teks dari layer PSD: mauve #8e7e78, nama ungu #776ea1. */
  :root {
    color-scheme: light;
    --paper: #eeeceb; --paper-2: #f4f3f4; --ink: #625b66; --mauve: #8e7e78; --rose: #776ea1;
    --rose-deep: #5a5185; --blush: #c9c1e6; --peach: #ebe7f4; --leaf: #8ea7b3; --line: #8e7e7845; --gold: #a59ccc; --gold-ink: #776ea1;
    --f-serif: 'Libre Baskerville', Baskerville, 'Baskerville Old Face', Georgia, serif;
    --f-disp: 'Cormorant', 'Cormorant Garamond', Didot, 'Bodoni 72', Georgia, serif;
    --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; }
  .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-bellflower/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: huruf kedua besar, huruf pertama menumpang di kirinya (seperti "SA" di PSD) */
  /* monogram hidup bertekstur glitter perak (seperti monogram "EM" di PSD) */
  .mono-live { display: inline-grid; font: 400 1em/1 var(--f-disp); color: #a8a09c;
    background: url("../images/crafid-bellflower/glitter.webp") 0 0 / 160px auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .mono-live > span { grid-area: 1 / 1; }
  .mono-live .m2 { font-size: 1em; padding-left: 0.18em; }
  .mono-live .m1 { font-size: 0.86em; align-self: end; translate: -0.06em 0.04em; }

  /* 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;
    --A: min(115vw, 72svh); --F: max(min(100vw, var(--A)), min(70svh, 160vw)); --aw: min(86vw, 58svh, 520px); }
  .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; }
  .gate .back { z-index: 1; } .gate .front { z-index: 3; } .gate .bud { z-index: 3; }
  .gate .archbox { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + max(5svh, 26px)); bottom: 0; width: var(--aw); display: flex; flex-direction: column; container-type: inline-size; pointer-events: none; }
  .gate .arch-top { width: 100%; height: auto; display: block; flex: none; }
  .gate .arch-pillars { flex: 1 1 auto; margin-top: -1px; background: url("../images/crafid-bellflower/arch-pillar.webp") center top / 100% auto repeat-y; }
  /* layar tinggi: geser blok teks turun sebagian dari sisa tinggi lengkung agar tidak menggantung di atas */
  .cv-text { position: absolute; inset: 0; z-index: 4; pointer-events: none; color: var(--mauve); text-align: center;
    /* blok teks di tengah ruang antara puncak lengkung dan kartu tombol */
    top: clamp(0px, (88svh - 130px - 106cqw) * 0.5, 22svh); }
  .cv-text > * { position: absolute; left: 8%; right: 8%; margin: 0; }
  .cv-text .k1 { font: 700 4.3cqw/1 var(--f-serif); }
  .cv-text .k2 { font: 700 4.6cqw/1 var(--f-serif); letter-spacing: 0.3em; padding-left: 0.3em; text-transform: uppercase; }
  .cv-text .mono-wrap { display: flex; justify-content: center; }
  .cv-text .mono-live { font-size: 30cqw; }
  /* V27.35: lebih sempit dari .cv-text > * (8%) — ruang dalam lengkung +-80% lebar; nama panjang tidak menimpa dinding */
  .cv-text .nm { left: 12%; right: 12%; font: 700 5.2cqw/1 var(--f-serif); letter-spacing: 0.28em; padding-left: 0.28em; text-transform: uppercase; color: var(--gold-ink); }
  .cv-text .dt { font: 700 4cqw/1 var(--f-serif); letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
  .cv-text .qt { font: italic 400 4.1cqw/1.45 var(--f-serif); }
  @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: #f8f6f4c4; border: 1px solid #ffffffb0; box-shadow: 0 18px 40px -24px #5a5185; -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: #fbfaff; 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 #5a5185; 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, 71.43svh); 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: 1500 / 2100; }
  .card .t { position: absolute; left: 6%; right: 6%; text-align: center; margin: 0; color: var(--mauve); }
  .card .t1 { top: 8.5%; font: 700 2.55cqw/1.5 var(--f-serif); letter-spacing: 0.24em; padding-left: 0.24em; text-transform: uppercase; }
  .card .t2 { top: 15.95%; font: 700 2cqw/1 var(--f-serif); letter-spacing: 0.24em; padding-left: 0.24em; text-transform: uppercase; }
  .card .nm-big { color: var(--rose); }
  .card .n1 { top: 21.7%; font-size: 7.4cqw; }
  .card .amp { top: 30.7%; font: italic 400 7.2cqw/1 var(--f-disp); color: var(--rose); }
  .card .n2 { top: 36.1%; font-size: 7.4cqw; }
  .card .day { top: 46.6%; font: 700 2.2cqw/1 var(--f-serif); letter-spacing: 0.3em; padding-left: 0.3em; text-transform: uppercase; }
  .card .dm { top: 49.5%; font: 400 6.6cqw/1 var(--f-serif); font-variant-numeric: lining-nums; }
  .card .yr { top: 55.4%; font: 700 2.05cqw/1 var(--f-serif); letter-spacing: 0.18em; padding-left: 0.18em; text-transform: uppercase; }
  .card .tm { top: 58.4%; font: italic 400 2.75cqw/1 var(--f-serif); }
  .card .vn { top: 65.5%; font: 700 1.95cqw/1 var(--f-serif); letter-spacing: 0.3em; padding-left: 0.3em; text-transform: uppercase; }
  .card .ad { top: 67.5%; font: italic 400 2.45cqw/1 var(--f-serif); }
  .card .t1 { font-size: max(2.55cqw, 11px); } .card .t2 { font-size: max(2cqw, 10px); } .card .day, .card .yr, .card .vn { font-size: max(2.05cqw, 10px); }
  .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: #776ea155; 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; 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 .kick { font: italic 400 1rem/1.3 var(--f-serif); color: var(--mauve); }
  .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; }

  .couple { display: grid; gap: 34px; width: 100%; }
  .person { display: grid; gap: 8px; justify-items: center; }
  .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, #f7f5f9 38%, #f7f5f900 66%), url("../images/crafid-bellflower/cv-fl-f.webp") 50% 100% / 210% auto no-repeat, linear-gradient(180deg, #f7f5f9, #ece8f3); }
  .person .photo.ph span { font: italic 400 4.4rem/1 var(--f-disp); color: var(--rose); }
  /* 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 { 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: #fbfaff; }
  .btn:hover { background: var(--rose-deep); color: #fbfaff; 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: #fbfaff; }
  .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: #fbfaff; 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: #fbfaffe6; color: var(--rose-deep); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -14px #5a5185; }
  .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: 1fr auto 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 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 .archbox { animation: archRise 2.4s var(--ease-out) .2s both; }
  .motion .gate .fl:not(.bud) { animation: sway var(--d, 6s) ease-in-out var(--dl, 0s) infinite alternate, bloomUp 2.4s var(--ease-out) var(--in, .6s) 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.7; 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 { translate: 0 30%; opacity: 0; transition: translate 1.1s cubic-bezier(.6, 0, .3, 1), opacity .9s ease .2s; }
  .motion .hero:not(.play) .card > img, .motion .hero:not(.play) .card .t { opacity: 0; }
  .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, 6s) 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: 30cqw; margin-inline: auto; }
  #quote .mono img { width: clamp(110px, 30vw, 150px); margin-inline: auto; }
  [data-fit] { white-space: nowrap; }
  .card .nameart { top: 21%; left: 14%; right: 14%; }
  .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; }
