/* CRAFID — template Astilbe Pearl (kit astilbe-pearl / astilbe-pearl-foto), dari desain PSD "Tiara & Osman" (2 kartu 1173 × 1658). */
  /* Kartu "Astilbe Pearl": kertas polos abu hangat, untaian mutiara putih, astilbe merah muda & petunia, monogram glitter zaitun.
     Satu tampilan terang yang disengaja (kartu undangan), jadi semua warna ditetapkan eksplisit.
     Warna dari layer PSD: latar #eae6e5, teks abu #989498 (digelapkan sedikit supaya terbaca), nama & monogram zaitun #9e996c. */
  :root {
    color-scheme: light;
    --paper: #eae6e5; --paper-2: #f3f0ef; --ink: #5d595e; --mauve: #7f7b80; --rose: #8a8558;
    --rose-deep: #6c6842; --blush: #e2c3cb; --peach: #f1e6e8; --leaf: #9aa47f; --line: #7f7b8045; --gold: #b7b28a; --gold-ink: #8a8558;
    --f-serif: 'Playfair Display', Didot, 'Bodoni 72', Georgia, serif;
    --f-disp: '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; }
  .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: none; }

  /* 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 bertekstur glitter zaitun: huruf pertama di atas menembus huruf kedua (seperti "TO" di PSD) */
  .mono-live { display: inline-grid; font: 400 1em/1 var(--f-disp); color: #9d986b; justify-items: center;
    background: url("../images/crafid-astilbe/glitter.webp") 0 0 / 120px auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .mono-live > span { grid-area: 1 / 1; }
  .mono-live .m1 { font-size: 0.78em; translate: 0 -0.2em; }
  .mono-live .m2 { font-size: 0.86em; translate: 0 0.16em; }

  /* 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(84vw, 38.5svh, 470px); }
  .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; }
  /* bingkai lengkung runcing ganda dari PSD: kepala + badan berulang + kaki, posisi = koordinat layer relatif lebar kartu (--F) */
  .gate .arch-frame { position: absolute; z-index: 0; left: 16.368%; width: 67.349%; top: calc(var(--F) * 0.10741); bottom: calc(var(--F) * 0.12106 + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; }
  .gate .arch-frame img { width: 100%; height: auto; display: block; flex: none; max-width: none; }
  .gate .af-mid { flex: 1 1 auto; margin: -1px 0; background: url("../images/crafid-astilbe/arch-mid.webp") center top / 100% auto repeat-y; }
  .gate .back, .gate .pearl { z-index: 1; } .gate .front { z-index: 3; } .gate .bud { z-index: 3; }
  .gate .archbox { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); width: var(--aw); height: calc(var(--aw) * 1.4); container-type: inline-size; pointer-events: none;
    /* teks di bawah ujung untaian mutiara tengah (± 29 % lebar kartu), tapi tidak pernah turun sampai kartu tombol */
    top: clamp(calc(env(safe-area-inset-top, 0px) + 2svh), calc(var(--F) * 0.29), calc(100svh - max(7svh, 28px) - 160px - var(--aw) * 1.4)); }
  .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; }
  .cv-text .k1 { font: 400 5.6cqw/1 var(--f-serif); }
  .cv-text .k2 { font: 600 4.9cqw/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: 40cqw; }
  /* V27.42: 6% (bukan 2%) — dinding dalam bingkai ganda lebih sempit dari .archbox; nama panjang tidak menimpanya */
  .cv-text .nm { font: 400 11cqw/1.3 var(--f-script); color: var(--gold-ink); left: 6%; right: 6%; white-space: nowrap; }
  .cv-text .dt { font: 600 4.5cqw/1 var(--f-serif); letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
  .cv-text .qt { font: italic 500 4.7cqw/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 #6c6842; -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: #fbf9f8; 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 #6c6842; 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, 70.75svh); 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: 1173 / 1658; }
  .card .t { position: absolute; left: 6%; right: 6%; text-align: center; margin: 0; color: var(--mauve); }
  /* blok teks hero: posisi & ukuran dari layer PSD (x 9,8 % lebar kartu), diperbesar sedikit + batas bawah px supaya terbaca di ponsel */
  .card .hblock { position: absolute; left: 9.8%; right: 7%; top: 19.5cqw; text-align: left; color: var(--mauve); }
  .card .hblock .t { position: relative; left: auto; right: auto; text-align: left; }
  .card .h-kick { font: 600 max(2.3cqw, 10.5px)/1.65 var(--f-serif); letter-spacing: 0.26em; text-transform: uppercase; }
  .card .hn { font: 400 max(5cqw, 18px)/1 var(--f-disp); color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.16em; white-space: nowrap; }
  .card .hn .ini { font: 400 3em/1 var(--f-script); text-transform: none; letter-spacing: 0; margin-right: -0.18em; vertical-align: -0.04em; }
  .card .hn1 { margin-top: 1.2cqw; margin-left: 1.4cqw; }
  .card .hamp { font: 400 max(6.4cqw, 22px)/1 var(--f-script); color: var(--gold-ink); margin: -2.4cqw 0 -3.6cqw 5.6cqw; }
  .card .hn2 { margin-left: 10.8cqw; }
  .card .h-inv { margin-top: 7.4cqw; font: 600 max(1.95cqw, 10px)/1.5 var(--f-serif); letter-spacing: 0.24em; text-transform: uppercase; }
  .card .h-date { margin-top: 3.4cqw; font: 600 max(2.15cqw, 11px)/1.4 var(--f-serif); letter-spacing: 0.2em; text-transform: uppercase; }
  .card .h-date sup { font-size: 0.62em; letter-spacing: 0.05em; text-transform: none; }
  .card .h-time { margin-top: 0.5cqw; font: 500 max(1.45cqw, 9px)/1.4 var(--f-serif); letter-spacing: 0.24em; text-transform: uppercase; }
  .card .h-ven { margin-top: 3.9cqw; font: 600 max(2.15cqw, 11px)/1.3 var(--f-serif); letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
  .card .h-ad { margin-top: 0.8cqw; font: 500 max(1.45cqw, 9px)/1.4 var(--f-serif); letter-spacing: 0.24em; text-transform: uppercase; }
  .card .h-note { margin-top: 3.4cqw; font: 400 max(5.4cqw, 20px)/1.2 var(--f-script); }
  .card .hblock .nameart { margin: 1cqw 0 2cqw; width: 70%; }
  .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: #8a855855; 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, #f6f3f2 38%, #f6f3f200 66%), url("../images/crafid-astilbe/hr-fl-b.webp") 50% 100% / 190% auto no-repeat, linear-gradient(180deg, #f6f3f2, #efe7e8); }
  .person .photo.ph span { font: 400 4.8rem/1.1 var(--f-script); 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 { 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: #fbf9f8; }
  .btn:hover { background: var(--rose-deep); color: #fbf9f8; 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: #fbf9f8; }
  .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: #fbf9f8; 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: #fbf9f8e6; color: var(--rose-deep); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -14px #6c6842; }
  .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 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 .arch-frame { animation: archRise 2.2s var(--ease-out) .1s both; }
  .motion .gate.gone .arch-frame { 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, 6s) 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, 6s) 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 > 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: 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; }
