/* ============================================================
   Envi Bagus Aditya & Jihan Rifdah

   A merge of two Katsudoto templates:
     sukma   (Sonia & Fateh)  - pastel watercolour, ivory ground, butterfly
     gienzka (Gendis & Bobby) - tropical botany, ornate frames, depth

   Direction: Gendis's ornate frames and tropical botany carried on
   Sonia's luminous ivory ground. Burgundy as accent, never as field.
   Asset prefixes: sk- from sukma, gz- from gienzka.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ivory:      #FBF7F0;
  --cream:      #F3EADC;
  --parchment:  #EFE5D5;
  --burgundy:   #6B1F2E;
  --wine:       #8C2F42;
  --rose:       #C4708A;
  --blush:      #E8C3CB;
  --sage:       #7C8A6B;
  --moss:       #4E5B44;
  --gold:       #B08D5A;
  --ink:        #3A2A2E;
  --ink-soft:   rgba(58, 42, 46, .68);

  --font-display: 'Italiana', serif;
  --font-script:  'Pinyon Script', cursive;
  --font-body:    'Cormorant Garamond', serif;
  --font-ui:      'Jost', sans-serif;

  --shell: 480px;
  --pad: clamp(24px, 7vw, 40px);
  --rhythm: clamp(76px, 16vw, 116px);

  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --ease-gate: cubic-bezier(.72, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.invitation-body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; height: 100dvh; }

/* Paper grain across the whole document */
body.invitation-body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 60;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

/* ============================================================
   Decorative botany

   Every ornament breathes. Motion runs on the independent
   `translate` / `rotate` properties, never `transform`, so that
   mirroring (`scale: -1 1`) and centring offsets survive the
   animation instead of being overwritten by it.
   ============================================================ */
.bloom {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation: drift-y 9s ease-in-out infinite;
  will-change: translate;
}

@keyframes drift-y       { 0%, 100% { translate: 0 0; }        50% { translate: 0 -11px; } }
@keyframes drift-xy      { 0%, 100% { translate: 0 0; }        50% { translate: 8px -9px; } }
@keyframes drift-x       { 0%, 100% { translate: 0 0; }        50% { translate: -9px -5px; } }
@keyframes drift-deep    { 0%, 100% { translate: 0 0; }        50% { translate: -6px -16px; } }
/* Variants that preserve a centring offset */
@keyframes drift-mid     { 0%, 100% { translate: -50% 0; }     50% { translate: -50% -10px; } }
@keyframes drift-mid-lg  { 0%, 100% { translate: -50% 0; }     50% { translate: -50% -14px; } }
/* Free-flying elements also tilt */
@keyframes flutter-drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50%      { translate: 15px -20px; rotate: -7deg; }
}

/* ============================================================
   Cover gate
   ============================================================ */
.cover-gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #FBF7F0 0%, #F4ECE0 38%, #E6E6DA 68%, #D6DACB 100%);
  transition: transform 1.15s var(--ease-gate), opacity .8s ease .25s;
}
.cover-gate.is-open { transform: translateY(-102%); opacity: 0; pointer-events: none; }

.cover-gate__scenery { position: absolute; inset: 0; }

.cover-gate__sun {
  position: absolute; left: 50%; top: 22%;
  width: 420px; height: 420px; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,226,201,.85) 0%, rgba(247,226,201,0) 68%);
}

/* Gendis's misty landscape, bleached into Sonia's register */
.cover-gate__vista {
  position: absolute; left: 50%; top: 40%;
  width: 150%; translate: -50% -50%;
  opacity: .3;
  filter: saturate(.5) brightness(1.28) contrast(.88);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 32%, transparent 78%);
}
.cover-gate__haze {
  position: absolute; left: -10%; right: -10%; top: 46%;
  height: 130px;
  background: linear-gradient(180deg, rgba(251,247,240,0), rgba(251,247,240,.9) 52%, rgba(251,247,240,0));
  filter: blur(10px);
}
.cover-gate__grass {
  position: absolute; left: -4%; bottom: -2%;
  width: 108%; opacity: .5;
  filter: saturate(.72) brightness(1.12);
}

/* Botanical corners: tropical behind, pastel in front.
   Mirroring uses `scale` so the drift animation keeps `translate`. */
.bloom--gate-left-back  { left: -22%; bottom: -6%; width: 74%; opacity: .5; filter: saturate(.68) brightness(1.14); animation: drift-deep 15s ease-in-out infinite; }
.bloom--gate-right-back { right: -24%; bottom: -8%; width: 76%; opacity: .46; scale: -1 1; filter: saturate(.68) brightness(1.14); animation: drift-deep 17s ease-in-out .8s infinite reverse; }
.bloom--gate-left       { left: -16%; bottom: -4%; width: 70%; opacity: .84; filter: saturate(.86) brightness(1.06); animation: drift-y 11s ease-in-out infinite; }
.bloom--gate-right      { right: -16%; bottom: -5%; width: 74%; opacity: .8; scale: -1 1; filter: saturate(.86) brightness(1.06); animation: drift-y 12.5s ease-in-out 1.1s infinite reverse; }
.bloom--gate-left-soft  { left: -8%; bottom: -3%; width: 52%; opacity: .95; animation: drift-xy 8.5s ease-in-out .4s infinite; }
.bloom--gate-right-soft { right: -7%; bottom: -2%; width: 48%; opacity: .95; animation: drift-x 9.5s ease-in-out .9s infinite; }

/* Atmosphere layers drift slowest of all */
.cover-gate__vista { animation: drift-vista 26s ease-in-out infinite; }
.cover-gate__grass { animation: drift-y 18s ease-in-out infinite reverse; }
@keyframes drift-vista {
  0%, 100% { translate: -50% -50%; }
  50%      { translate: -50% -52%; }
}

/* Sonia's butterfly, Gendis's bird */
.flutter { position: absolute; pointer-events: none; will-change: translate, rotate; }
.flutter--butterfly { left: 11%; top: 30%; width: 62px; opacity: .9; animation: flutter-drift 9s ease-in-out infinite; }
.flutter--bird      { right: 12%; top: 20%; width: 74px; opacity: .55; filter: saturate(.5) brightness(1.15); animation: flutter-drift 11s ease-in-out infinite reverse; }

/* Gate content inside Gendis's ornate arch */
.cover-gate__content {
  position: relative; z-index: 2;
  width: min(100%, 400px);
  padding: 0 var(--pad);
  text-align: center;
}
/* The ornate frame is an outline only, so the scenery reads straight
   through the type. This veil sits inside it: near-opaque ivory at the
   centre, feathered to nothing at the edges so it never shows a seam
   against the arch. Blur softens the palms it sits on. */
.cover-gate__veil {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  width: 104%; height: 94%;
  translate: -50% -50%;
  border-radius: 50% 50% 12px 12px / 34% 34% 3% 3%;
  background: radial-gradient(ellipse 74% 68% at 50% 48%,
      rgba(255, 253, 249, .96) 0%,
      rgba(255, 253, 249, .93) 38%,
      rgba(255, 253, 249, .72) 66%,
      rgba(255, 253, 249, .28) 86%,
      rgba(255, 253, 249, 0) 100%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  mask-image: radial-gradient(ellipse 76% 70% at 50% 48%, #000 60%, transparent 100%);
  pointer-events: none;
}

.cover-gate__frame {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 116%; translate: -50% -50%;
  opacity: .92;
  pointer-events: none;
}
/* Extra top padding seats the text inside the arch's body rather than
   under its decorative peak. */
.cover-gate__inner { position: relative; z-index: 2; padding: 84px 8px 36px; }
.cover-gate__inner > * { opacity: 0; animation: rise-in 1s var(--ease-out) forwards; }
.cover-gate__inner > *:nth-child(1) { animation-delay: .3s; }
.cover-gate__inner > *:nth-child(2) { animation-delay: .5s; }
.cover-gate__inner > *:nth-child(3) { animation-delay: .72s; }
.cover-gate__inner > *:nth-child(4) { animation-delay: .9s; }
.cover-gate__inner > *:nth-child(5) { animation-delay: 1.1s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.cover-gate__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-ui); font-weight: 300;
  font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ink-soft);
}
.cover-gate__names {
  margin: 0 0 12px;
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(38px, 10.6vw, 52px); line-height: 1.12;
  white-space: nowrap;
  color: var(--burgundy);
}
.cover-gate__names .amp {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .62em;
  padding: 0 .12em;
  vertical-align: .06em;
}
.cover-gate__date {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--wine);
}
.cover-gate__guest {
  margin: 0 auto 24px; padding: 14px 18px; max-width: 260px;
  border-top: 1px solid rgba(176,141,90,.5);
  border-bottom: 1px solid rgba(176,141,90,.5);
}
.cover-gate__guest-label {
  margin: 0 0 3px;
  font-family: var(--font-ui); font-size: 9.5px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
}
.cover-gate__guest-name { margin: 0; font-size: 18px; font-style: italic; color: var(--ink); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  font-family: var(--font-ui); font-size: 11.5px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background .35s var(--ease-out), color .35s var(--ease-out),
              border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn__icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn--solid   { background: var(--burgundy); color: var(--ivory); }
.btn--solid:hover { background: var(--wine); }
.btn--outline { background: rgba(251,247,240,.6); color: var(--burgundy); border-color: rgba(107,31,46,.4); }
.btn--outline:hover { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.btn--ghost   { background: transparent; color: var(--gold); border-color: rgba(176,141,90,.55); }
.btn--ghost:hover { background: var(--gold); color: var(--ivory); }

/* ============================================================
   Invitation shell
   ============================================================ */
.invitation {
  position: relative;
  width: min(100%, var(--shell));
  margin: 0 auto;
  background: var(--ivory);
  box-shadow: 0 0 90px rgba(58,42,46,.14);
  overflow: hidden;
}
.section {
  position: relative;
  padding: var(--rhythm) var(--pad);
  text-align: center;
  overflow: hidden;
}
.section + .section { border-top: 1px solid rgba(176,141,90,.14); }
.section > *:not(.bloom) { position: relative; z-index: 1; }

.section__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-ui); font-weight: 300;
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold);
}
.section__title {
  margin: 0 0 28px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 9vw, 42px); letter-spacing: .04em;
  color: var(--burgundy);
}
.section__intro { margin: 0 auto 34px; max-width: 34ch; font-size: 16.5px; color: var(--ink-soft); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Verse in Sonia's soft arch
   ============================================================ */
.section--verse { background: linear-gradient(180deg, var(--cream), var(--ivory)); }
.bloom--verse-top { left: 50%; top: 22px; width: 74%; translate: -50% 0; opacity: .8; animation: drift-mid 10s ease-in-out infinite; }

.soft-arch { position: relative; padding: 58px 30px 44px; margin-top: 26px; }
.soft-arch__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
  opacity: .9;
  filter: sepia(.2) saturate(.9);
}
.soft-arch__body { position: relative; }

.verse__arabic { margin: 0 0 22px; font-size: 21px; line-height: 2.1; color: var(--burgundy); }
.verse__translation { margin: 0 0 16px; font-style: italic; font-size: 15.5px; color: var(--ink-soft); }
.verse__source {
  margin: 0;
  font-family: var(--font-ui); font-size: 10px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}

/* ============================================================
   Couple
   ============================================================ */
.bloom--couple-tl { left: -16%; top: -3%; width: 46%; opacity: .5; animation: drift-xy 12s ease-in-out infinite; }
.bloom--couple-br { right: -14%; bottom: -3%; width: 48%; opacity: .55; animation: drift-x 13.5s ease-in-out .6s infinite reverse; }

.couple-card { margin: 0; }
.couple-card__portrait {
  position: relative;
  width: 214px; height: 268px;
  margin: 0 auto 22px;
}
.couple-card__photo {
  position: absolute; inset: 10px;
  width: calc(100% - 20px); height: calc(100% - 20px);
  object-fit: cover;
  border-radius: 104px 104px 6px 6px;
}
.couple-card__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
  filter: sepia(.2) saturate(.9);
  pointer-events: none;
}
.couple-card__name {
  margin: 0 0 6px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(27px, 7.2vw, 33px); letter-spacing: .03em;
  color: var(--burgundy);
}
.couple-card__social {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ui); font-size: 11px; letter-spacing: .12em;
  color: var(--sage); text-decoration: none;
  transition: color .3s var(--ease-out);
}
.couple-card__social:hover { color: var(--wine); }
.couple-card__social svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Italiana's ampersand reads cleanly at size; Pinyon's is too ornate here. */
.couple-amp {
  margin: 30px 0;
  font-family: var(--font-display); font-size: 40px; line-height: 1;
  letter-spacing: .04em; color: var(--gold);
}

/* ============================================================
   Countdown
   ============================================================ */
.section--countdown { background: linear-gradient(180deg, var(--ivory), var(--cream)); }
.bloom--count-left  { left: -18%; top: 8%; width: 42%; opacity: .42; animation: drift-deep 14s ease-in-out infinite; }
.bloom--count-right { right: -16%; bottom: 4%; width: 44%; opacity: .5; animation: drift-xy 10.5s ease-in-out .5s infinite reverse; }

.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 9px; margin: 0 auto 30px; max-width: 360px;
}
.countdown__unit {
  padding: 15px 4px;
  border: 1px solid rgba(176,141,90,.4);
  background: rgba(251,247,240,.86);
  backdrop-filter: blur(2px);
}
.countdown__value {
  display: block;
  font-family: var(--font-display); font-size: 29px; line-height: 1;
  color: var(--burgundy); font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block; margin-top: 7px;
  font-family: var(--font-ui); font-size: 8.5px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft);
}

/* ============================================================
   Agenda
   ============================================================ */
.agenda-card {
  position: relative;
  padding: 30px 24px 34px;
  margin-bottom: 22px;
  border: 1px solid rgba(176,141,90,.4);
  border-radius: 150px 150px 6px 6px;
  background: linear-gradient(180deg, rgba(243,234,220,.72), rgba(251,247,240,.5));
}
.agenda-card:last-child { margin-bottom: 0; }
/* In-flow garland, so it sways rather than drifts */
.agenda-card__garland { width: 78%; margin: 0 auto 12px; opacity: .9; animation: sway-garland 11s ease-in-out infinite; }
.agenda-card:nth-of-type(2) .agenda-card__garland { animation-duration: 12.5s; animation-delay: .7s; animation-direction: reverse; }
@keyframes sway-garland {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50%      { translate: 0 -6px; rotate: .7deg; }
}
.agenda-card__title {
  margin: 0 0 4px;
  font-family: var(--font-display); font-weight: 400;
  font-size: 27px; letter-spacing: .08em; color: var(--burgundy);
}
.agenda-card__date  { margin: 0 0 2px; font-size: 16px; color: var(--ink); }
.agenda-card__time  { margin: 0 0 16px; font-size: 15px; font-style: italic; color: var(--ink-soft); }
.agenda-card__venue { margin: 0 0 22px; font-family: var(--font-display); font-size: 21px; letter-spacing: .05em; color: var(--wine); }
.agenda-card__venue span { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 14.5px; font-style: italic; letter-spacing: 0; color: var(--ink-soft); }

/* ============================================================
   Gallery plates
   Each tile is a tinted ground with template artwork placed on it,
   standing in until real photographs arrive.
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.plate {
  position: relative;
  padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 4 / 5;
  overflow: hidden; border-radius: 4px;
  display: grid; place-items: center;
}
.plate--tall { grid-row: span 2; aspect-ratio: 4 / 10.2; }
.plate::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(176,141,90,.4);
  border-radius: 4px; pointer-events: none;
}

/* Tinted grounds drawn from both templates */
.plate--mist  { background: linear-gradient(170deg, #E9EDE6, #D3DAD0); }
.plate--sage  { background: linear-gradient(170deg, #EDF0E7, #DCE2D4); }
.plate--blush { background: linear-gradient(170deg, #FBEFF1, #F1D8DE); }
.plate--wine  { background: linear-gradient(170deg, #F0DDDF, #D9B6BC); }
.plate--cream { background: linear-gradient(170deg, #FBF5EA, #EFE2CE); }
.plate--moss  { background: linear-gradient(170deg, #E7EBE2, #CFD8C8); }

/* Floral plates drift; the two full-bleed landscape plates hold still
   so their framing edge stays clean. */
.plate__art {
  width: 82%; height: auto;
  transition: transform 1.1s var(--ease-out);
  animation: drift-y 10s ease-in-out infinite;
}
.plate:nth-of-type(3) .plate__art { animation-duration: 11.5s; animation-delay: .4s; }
.plate:nth-of-type(4) .plate__art { animation: drift-xy 12s ease-in-out .8s infinite; }
.plate:nth-of-type(5) .plate__art { animation: drift-x 13s ease-in-out .2s infinite; }
.plate:nth-of-type(6) .plate__art { animation-duration: 9.5s; animation-delay: 1s; animation-direction: reverse; }
.plate__art--cover {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: none;
}
.plate:hover .plate__art { transform: scale(1.07); }

/* ============================================================
   RSVP
   ============================================================ */
.section--rsvp { background: linear-gradient(180deg, var(--ivory), var(--cream)); }

.rsvp-form { display: grid; gap: 20px; text-align: left; margin-bottom: 40px; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; }
.field__label {
  font-family: var(--font-ui); font-size: 10px;
  letter-spacing: .26em; text-transform: uppercase; color: var(--gold); padding: 0;
}
.field__input {
  width: 100%; padding: 12px 14px;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: rgba(251,247,240,.88);
  border: 1px solid rgba(176,141,90,.42); border-radius: 3px;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.field__input:focus { outline: none; border-color: var(--wine); background: var(--ivory); }
.field__input::placeholder { color: rgba(58,42,46,.36); font-style: italic; }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 9px 17px;
  font-family: var(--font-ui); font-size: 11px; letter-spacing: .14em;
  border: 1px solid rgba(176,141,90,.44); border-radius: 999px;
  color: var(--ink-soft); background: rgba(251,247,240,.6);
  transition: all .3s var(--ease-out);
}
.choice input:checked + span { background: var(--burgundy); border-color: var(--burgundy); color: var(--ivory); }
.choice input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }

.rsvp-form__note { margin: 0; font-size: 14.5px; font-style: italic; color: var(--sage); min-height: 1.5em; }

.wish-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.wish-list__item { padding: 16px 18px; background: rgba(251,247,240,.85); border-left: 2px solid var(--gold); }
.wish-list__name { margin: 0 0 3px; font-family: var(--font-display); font-size: 17px; letter-spacing: .04em; color: var(--burgundy); }
.wish-list__meta { margin: 0 0 7px; font-family: var(--font-ui); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); }
.wish-list__text { margin: 0; font-size: 15.5px; font-style: italic; color: var(--ink-soft); }

/* ============================================================
   Gift
   ============================================================ */
/* Pulled clear of the intro copy so it never fights the text */
.bloom--gift { left: -26%; top: -5%; width: 46%; opacity: .24; animation: drift-deep 12.5s ease-in-out infinite reverse; }

.gift-card {
  padding: 30px 24px; margin-bottom: 16px;
  border: 1px solid rgba(176,141,90,.4);
  background: rgba(243,234,220,.68);
}
.gift-card:last-child { margin-bottom: 0; }
.gift-card__bank {
  margin: 0 0 10px;
  font-family: var(--font-ui); font-size: 10px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.gift-card__number {
  margin: 0 0 6px;
  font-family: var(--font-display); font-size: 26px; letter-spacing: .1em;
  color: var(--burgundy); font-variant-numeric: tabular-nums;
}
.gift-card__holder  { margin: 0 0 20px; font-size: 15px; font-style: italic; color: var(--ink-soft); }
.gift-card__address { margin: 0 0 20px; font-size: 16px; line-height: 1.7; color: var(--ink); }

/* ============================================================
   Closing
   ============================================================ */
.section--closing {
  background: linear-gradient(180deg, var(--cream) 0%, #E3CFC9 48%, var(--burgundy) 100%);
  padding-top: 258px;
  padding-bottom: calc(var(--rhythm) + 30px);
}
/* gz-swag is 1.46:1, so width drives its height. 76% keeps it clear of the copy. */
.closing__swag { left: 50%; top: 10px; width: 76%; translate: -50% 0; opacity: .9; animation: drift-mid-lg 12s ease-in-out infinite; }
.closing__butterfly { right: 11%; bottom: 9%; width: 54px; opacity: .85; animation: flutter-drift 10s ease-in-out infinite; }
.closing__text  { margin: 0 auto 22px; max-width: 32ch; font-size: 16px; color: rgba(58,42,46,.78); }
.closing__salam { margin: 0 0 34px; font-size: 15px; font-style: italic; color: rgba(58,42,46,.64); }
.closing__names {
  margin: 0 0 10px;
  font-family: var(--font-script); font-size: clamp(38px, 10.6vw, 52px); line-height: 1.14;
  white-space: nowrap;
  color: var(--ivory);
}
.closing__names .amp {
  color: var(--blush);
  font-family: var(--font-display);
  font-size: .62em;
  padding: 0 .12em;
  vertical-align: .06em;
}
.closing__credit {
  margin: 0;
  font-family: var(--font-ui); font-size: 10px;
  letter-spacing: .34em; text-transform: uppercase; color: rgba(251,247,240,.7);
}

/* ============================================================
   Floating controls
   ============================================================ */
.music-toggle {
  position: fixed; z-index: 40;
  right: max(16px, calc(50vw - var(--shell) / 2 + 16px));
  bottom: 20px;
  width: 46px; height: 46px;
  display: none; place-items: center;
  border-radius: 50%; cursor: pointer;
  background: var(--burgundy); border: 1px solid rgba(176,141,90,.5);
  box-shadow: 0 10px 26px -10px rgba(58,42,46,.6);
}
body:not(.is-locked) .music-toggle { display: grid; }
.music-toggle svg { width: 19px; height: 19px; fill: none; stroke: var(--ivory); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.music-toggle[aria-pressed="true"] svg { animation: sway 2.4s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }

.lightbox {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 24px;
  background: rgba(46,22,32,.93);
  backdrop-filter: blur(6px);
  animation: fade-in .35s var(--ease-out);
}
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: 100%; max-height: 86dvh; }
.lightbox__close {
  position: absolute; top: 18px; right: 20px;
  width: 42px; height: 42px; font-size: 28px; line-height: 1;
  color: var(--ivory); background: transparent;
  border: 1px solid rgba(251,247,240,.3); border-radius: 50%; cursor: pointer;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.toast {
  position: fixed; z-index: 80;
  left: 50%; bottom: 30px; translate: -50% 0;
  padding: 11px 22px;
  font-family: var(--font-ui); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ivory); background: var(--burgundy);
  border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease-out), translate .4s var(--ease-out);
}
.toast.is-visible { opacity: 1; translate: -50% -10px; }

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 900px) {
  body.invitation-body { background: #E4DAC9; }
  body.invitation-body::before {
    content: ""; position: fixed; inset: 0; z-index: 0;
    background:
      radial-gradient(ellipse 70% 50% at 20% 12%, rgba(124,138,107,.3), transparent 62%),
      radial-gradient(ellipse 60% 46% at 82% 88%, rgba(196,112,138,.24), transparent 60%),
      linear-gradient(180deg, #EFE5D5, #D8CDBA);
  }
  .invitation { position: relative; z-index: 1; }
}

/* ============================================================
   Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
