/* =========================================================
   Sculpted Mauve — digital wedding invitation
   ========================================================= */
:root {
  --mauve: #a8949f;
  --mauve-2: #cbb9c3;
  --blush: #e9dde3;
  --lavender: #ddd6e3;
  --slate: #555b78;
  --navy: #232a44;
  --ink: #5a4d57;
  --ink-soft: #6f5d68;
  --pearl: #f3eef4;

  --script: 'Pinyon Script', 'Great Vibes', cursive;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --caps: 'Cinzel', 'Cormorant SC', serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --col: 480px;

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .33  0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: #a99aa3;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
body.is-locked { overflow: hidden; height: 100%; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* Desktop backdrop: the column sits on a blurred, plaster-toned field */
.backdrop {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(90% 70% at 20% 15%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(80% 80% at 85% 90%, rgba(70,48,64,.32), transparent 65%),
    linear-gradient(160deg, #c3b1bb, #a8949f 55%, #8f7c88);
}
.backdrop.has-img { background-size: cover; background-position: center; filter: blur(28px) saturate(.9); transform: scale(1.15); }
.backdrop::after { content: ''; position: absolute; inset: 0; background: var(--noise); opacity: .6; }

.app {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--col); margin: 0 auto;
  background: var(--blush);
  box-shadow: 0 0 80px rgba(50, 32, 46, .35);
  overflow: hidden;
}

/* ---------- generated art slots ---------- */
.slot { position: absolute; inset: 0; display: block; pointer-events: none; }
.slot > svg { display: block; width: 100%; height: 100%; }
.slot-img { width: 100%; height: 100%; }
.slot-img--contain { object-fit: contain; }
.slot-img--imgcover { object-fit: cover; }
.art > svg, .art > img { width: 100%; height: auto; }

/* ---------- type ---------- */
.script { font-family: var(--script); font-weight: 400; line-height: 1.15; }
.caps { font-family: var(--caps); font-weight: 400; text-transform: uppercase; letter-spacing: .32em; }
.title-serif { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: .08em; line-height: 1.1; }
.sec-script { font-size: 44px; margin-top: 4px; }
.sec-script--xl { font-size: 54px; }
.sub { font-size: 11px; margin-top: 8px; color: var(--ink-soft); margin-right: -.32em; }
.body { font-size: 17.5px; line-height: 1.6; margin: 18px auto 0; max-width: 34ch; }

.btn {
  display: inline-block; margin-top: 26px;
  font-family: var(--caps); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
  padding: 14px 24px 13px 27px;
  color: var(--ink);
  border: 1px solid rgba(90, 77, 87, .7);
  outline: 1px solid rgba(90, 77, 87, .25); outline-offset: 3px;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  transition: background .3s, color .3s, letter-spacing .3s;
}
.btn:hover, .btn:focus-visible { background: rgba(255, 255, 255, .5); }
.btn--light { color: var(--pearl); border-color: rgba(243, 238, 244, .7); outline-color: rgba(243, 238, 244, .22); background: transparent; }
.btn--light:hover, .btn--light:focus-visible { background: rgba(243, 238, 244, .1); }

.sec { position: relative; padding: 84px 28px; text-align: center; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   INTRO
   ========================================================= */
.intro {
  position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: 50;
  width: 100%; max-width: var(--col); margin: 0 auto;
  overflow: hidden; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.intro:not(.is-ready) { background: linear-gradient(160deg, #c4b2bc, #a8949f); }
.intro.is-done { visibility: hidden; pointer-events: none; }

.envelope { position: absolute; inset: 0; z-index: 2; perspective: 1700px; perspective-origin: 50% 45%; }
.flap { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; }
.flap__art { position: absolute; inset: 0; }
.flap__art > svg { width: 100%; height: 100%; overflow: visible; }
.flap--left { transform-origin: 0 50%; z-index: 1; }
.flap--right { transform-origin: 100% 50%; z-index: 1; }
.flap--bottom { transform-origin: 50% 100%; z-index: 2; }
.flap--top { transform-origin: 50% 0; z-index: 3; }

.seal {
  position: absolute; width: 128px; height: 128px; margin: -64px 0 0 -64px;
  border: 0; background: none; padding: 0; border-radius: 50%; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease);
}
.seal:focus-visible { outline: 1px solid var(--pearl); outline-offset: 10px; }
.seal::after, .intro__ring {
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .8);
  animation: sealPulse 2.6s var(--ease) infinite; pointer-events: none;
}
@keyframes sealPulse { 0% { transform: scale(.82); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }

.intro__hint {
  position: absolute; left: 0; right: 0; bottom: calc(9% + env(safe-area-inset-bottom)); z-index: 30;
  text-align: center; font-size: 10.5px; color: var(--pearl);
  text-shadow: 0 1px 8px rgba(60, 38, 54, .55);
  animation: hint 2.6s ease-in-out infinite; transition: opacity .4s;
  margin-right: -.32em; pointer-events: none;
}
@keyframes hint { 50% { opacity: .55; } }

.intro__light {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(120% 70% at 12% 6%, rgba(255, 250, 252, .22), transparent 55%),
    radial-gradient(110% 80% at 92% 100%, rgba(45, 24, 38, .28), transparent 60%);
  transition: opacity 1.2s;
}

/* satin + ribbon layer under the envelope */
.satin { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.satin__fabric { position: absolute; inset: -14%; opacity: .9; will-change: transform; }
.ribbon { position: absolute; will-change: transform; box-shadow: 0 3px 10px rgba(92, 50, 72, .28); }
.ribbon--v {
  top: -4%; bottom: -4%; left: calc(50% - 21px); width: 42px;
  background: linear-gradient(90deg, #c995aa, #efcbd9 28%, #fdeef4 47%, #e8bccd 66%, #cd99ae);
}
.ribbon--h {
  left: -4%; right: -4%; top: calc(50% - 21px); height: 42px;
  background: linear-gradient(180deg, #c995aa, #efcbd9 28%, #fdeef4 47%, #e8bccd 66%, #cd99ae);
}
.bow { position: absolute; left: 50%; top: 50%; width: min(80%, 330px); transform: translate(-50%, -42%); will-change: transform; }
.bow svg { width: 100%; height: auto; overflow: visible; }
.bow__loop, .bow__tail, .bow__knot { transform-box: fill-box; }
.bow__loop--l { transform-origin: 100% 60%; }
.bow__loop--r { transform-origin: 0 60%; }
.bow__tail { transform-origin: 50% 0; }

/* media path (generated photo + videos) */
.intro__media { position: absolute; inset: 0; z-index: 20; display: none; transition: opacity .9s ease; }
.intro.has-media .intro__media { display: block; }
.intro.has-media .envelope, .intro.has-media .satin { visibility: hidden; }
.intro__media img, .intro__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro__media video { opacity: 0; }
.intro__media video.is-on { opacity: 1; }
.intro__ring { left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; inset: auto; }

/* ---- opening choreography (CSS fallback) ---- */
.intro.is-tapped .seal { transform: scale(.93); }
.intro.is-tapped .seal::after, .intro.is-tapped .intro__ring { animation: none; opacity: 0; }
.intro.is-tapped .intro__hint { opacity: 0; animation: none; }

.intro.is-opening .flap--top {
  transform: rotateX(172deg); opacity: 0;
  transition: transform 1.7s cubic-bezier(.5, 0, .25, 1), opacity .45s ease 1.1s;
}
.intro.is-opening .intro__light { opacity: 0; }
.intro.is-flaps .flap--left, .intro.is-flaps .flap--right, .intro.is-flaps .flap--bottom {
  opacity: 0;
  transition: transform 1.55s cubic-bezier(.45, 0, .2, 1), opacity .5s ease .85s;
}
.intro.is-flaps .flap--left { transform: rotateY(-118deg); }
.intro.is-flaps .flap--right { transform: rotateY(118deg); transition-delay: .08s, .93s; }
.intro.is-flaps .flap--bottom { transform: rotateX(-118deg); transition-delay: .18s, 1.03s; }

.intro.is-untie .bow { transform: translate(-50%, -42%) scale(.55) rotate(-14deg); opacity: 0; transition: transform 1.1s cubic-bezier(.5, 0, .3, 1), opacity .6s ease .5s; }
.intro.is-untie .bow__loop--l { transform: scaleX(.15) rotate(18deg); transition: transform .9s cubic-bezier(.5, 0, .3, 1); }
.intro.is-untie .bow__loop--r { transform: scaleX(.15) rotate(-18deg); transition: transform .9s cubic-bezier(.5, 0, .3, 1); }
.intro.is-untie .bow__tail { transform: translateY(30px) scaleY(.6); transition: transform .9s ease; }
.intro.is-untie .ribbon--v { transform: translateY(108%); transition: transform 1.4s cubic-bezier(.55, 0, .3, 1) .3s; }
.intro.is-untie .ribbon--h { transform: translateX(108%); transition: transform 1.4s cubic-bezier(.55, 0, .3, 1) .45s; }
.intro.is-slide .satin__fabric {
  transform: translate(76%, 86%) rotate(9deg); opacity: 0;
  transition: transform 2s cubic-bezier(.55, .05, .3, 1), opacity 1.2s ease .85s;
}
.intro.is-fade { opacity: 0; transition: opacity .7s ease; }

/* =========================================================
   1. HERO CARD
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 620px; overflow: hidden; background: var(--blush); }
.hero__text {
  position: absolute; left: 17%; right: 17%; top: 24%; bottom: 15%; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--ink-soft);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.hero__line { opacity: 0; transform: translateY(12px); filter: blur(5px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 220ms); }
.hero.is-revealed .hero__line { opacity: 1; transform: none; filter: none; }
/* deeper ink on the darker photographic card */
.hero.has-img .hero__text { color: #4a3a45; text-shadow: 0 1px 0 rgba(255, 240, 248, .35); }
.hero.has-img .hero__name { color: #45343f; }
.hero.has-img .hero__amp { color: #6a5764; }
.hero.has-img .hero__cue { color: #4a3a45; }
.hero__intro { font-style: italic; font-size: clamp(15px, 4.3vw, 19px); letter-spacing: .03em; }
.hero__names { display: flex; flex-direction: column; align-items: center; font-weight: 400; margin: 12px 0 4px; }
.hero__name { font-size: clamp(46px, 14.5vw, 68px); line-height: 1.08; color: #685562; }
.hero__amp { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 6.6vw, 32px); line-height: 1; margin: -4px 0; color: #8d7a86; }
.hero__rule {
  display: block; width: 72px; height: 9px; margin: 18px auto 14px;
  background:
    radial-gradient(circle, #8d7a86 0 2px, transparent 2.6px) center / 9px 9px no-repeat,
    linear-gradient(#a8949f, #a8949f) left center / 28px 1px no-repeat,
    linear-gradient(#a8949f, #a8949f) right center / 28px 1px no-repeat;
}
.hero__date { font-size: clamp(14px, 4.2vw, 18px); letter-spacing: .32em; margin-right: -.32em; }
.hero__venue { font-size: clamp(19px, 5.2vw, 23px); margin-top: 12px; font-weight: 500; letter-spacing: .02em; }
.hero__city { font-size: 10.5px; letter-spacing: .38em; margin: 6px -.38em 0 0; }
.hero__cue {
  position: absolute; left: 50%; bottom: 3.2%; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 9px; color: var(--ink-soft);
}
.hero.is-revealed .hero__cue { transform: translateX(-50%); }
.hero__cue i { display: block; width: 1px; height: 30px; background: linear-gradient(var(--ink-soft), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =========================================================
   2. COUNTDOWN
   ========================================================= */
.countdown { background: var(--slate); color: var(--pearl); padding: 128px 24px 88px; }
.countdown::before { content: ''; position: absolute; inset: 0; background: var(--noise); opacity: .5; pointer-events: none; }
.countdown .title-serif { position: relative; color: var(--pearl); font-size: 36px; }
.roses-straddle {
  position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 100 / 40; transform: translateY(-62%);
  z-index: 3; pointer-events: none;
  filter: drop-shadow(1px 5px 5px rgba(40, 30, 48, .28));
}
.paper-wrap { position: relative; margin: 30px auto 0; max-width: 350px; filter: drop-shadow(0 12px 18px rgba(18, 20, 40, .38)); }
.torn { position: relative; background: var(--noise), linear-gradient(170deg, #f7f3f7, #ece4ec); color: var(--ink); }
.torn.torn--img { background: none; }
.torn.torn--img::before { content: ''; position: absolute; inset: -6% -5%; background: var(--torn-img) center / 100% 100% no-repeat; z-index: 0; }
.torn > * { position: relative; z-index: 1; }
.ticket { padding: 34px 14px 26px; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); }
.cd__item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 2px; }
.cd__item + .cd__item { border-left: 1px solid rgba(90, 77, 87, .18); }
.cd__n { font-family: var(--serif); font-size: clamp(32px, 9.5vw, 44px); font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.cd__l { font-size: 8.5px; letter-spacing: .22em; margin-right: -.22em; color: var(--ink-soft); }
.see-you { font-size: 38px; margin-top: 18px; color: var(--ink); }

/* =========================================================
   3. COUPLE PHOTO
   ========================================================= */
.photo { position: relative; padding: 78px 0 70px; text-align: center; background: #dcd3e2; overflow: hidden; }
.pearl-row {
  position: absolute; left: -6px; right: -6px; height: 18px; z-index: 2;
  background: radial-gradient(circle at 38% 34%, #fff 0 14%, #f4eff7 26%, #d9cde2 56%, #ab9cba 68%, rgba(120, 100, 135, 0) 72%) 0 0 / 17px 18px repeat-x;
  filter: drop-shadow(0 2px 2px rgba(70, 55, 85, .35));
}
.pearl-row--top { top: 16px; }
.pearl-row--bottom { bottom: 16px; }
.oval { position: relative; z-index: 1; width: 70%; max-width: 330px; aspect-ratio: 3 / 4; margin: 0 auto; }
.oval__img { position: absolute; inset: 6.5%; border-radius: 50%; overflow: hidden; background: #cfc2d4; box-shadow: inset 0 4px 18px rgba(60, 40, 70, .35); }
.oval__img .slot-img { transform: scale(1.12); transition: transform 2.4s var(--ease); }
.oval.in .oval__img .slot-img { transform: scale(1); }
.oval__rim { filter: drop-shadow(1px 4px 5px rgba(70, 55, 90, .35)); }
.photo-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(60% 45% at 35% 30%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(70% 60% at 70% 80%, rgba(150, 128, 160, .45), transparent 70%),
    linear-gradient(160deg, #e7dde9, #c9bacb);
  color: #fff; text-shadow: 0 2px 12px rgba(90, 70, 100, .35);
}
.photo-ph .script { font-size: 64px; }
.photo-ph small { position: absolute; bottom: 18%; font-family: var(--caps); font-size: 8.5px; letter-spacing: .3em; opacity: .9; }
.photo__caption { position: relative; z-index: 1; font-size: 40px; margin-top: 18px; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }

/* =========================================================
   4. LOCATION
   ========================================================= */
.location { background: var(--noise), var(--lavender); }
.location .sec-script { font-size: 50px; }
.art--venue { width: 100%; max-width: 380px; margin: 26px auto 0; }

/* =========================================================
   5. THE DAY
   ========================================================= */
.day { background: #dcd4df; padding: 150px 22% 96px; min-height: 760px; }
.day.has-img { padding: 330px 25% 110px; }
.day__inner { position: relative; z-index: 1; }
.timeline { list-style: none; text-align: left; margin: 30px auto 0; position: relative; padding-left: 28px; max-width: 290px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 14px; width: 1px; background: rgba(90, 77, 87, .45); }
.tl { position: relative; padding-bottom: 24px; }
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: ''; position: absolute; left: -28px; top: 5px; width: 11px; height: 11px; border-radius: 50%;
  background: #ece6ee; border: 1px solid var(--ink); box-shadow: 0 0 0 3px rgba(236, 230, 238, .9);
}
.tl__time { display: block; font-family: var(--caps); font-size: 10.5px; letter-spacing: .22em; color: var(--ink-soft); }
.tl__title { display: block; font-size: 23px; font-weight: 500; line-height: 1.2; margin-top: 3px; }
.tl__note { display: block; font-size: 15.5px; font-style: italic; line-height: 1.45; margin-top: 2px; color: var(--ink-soft); }

/* =========================================================
   6. DRESS CODE
   ========================================================= */
.dress { background: var(--noise), var(--blush); padding: 76px 24px 84px; }
.cartouche { position: relative; max-width: 380px; margin: 0 auto; padding: 64px 34px 58px; }
.cartouche > :not(.slot):not(.seal-mini) { position: relative; }
.art--attire { width: 64%; max-width: 220px; margin: 14px auto 0; }
.seal-mini { position: absolute; right: -6px; bottom: -16px; width: 74px; height: 74px; transform: rotate(-12deg); }

/* =========================================================
   7. TRANSPORTATION
   ========================================================= */
.transport { background: #ebe5ee; padding: 84px 32px 90px; overflow: hidden; }
.transport__inner { position: relative; z-index: 1; }
.art--stamps { width: 62%; max-width: 240px; margin: 0 auto 6px; }

/* =========================================================
   8. WHERE TO STAY
   ========================================================= */
.stay { background: var(--noise), var(--blush); padding: 84px 20px 70px; }
.amp { font-family: var(--serif); font-style: italic; font-size: .55em; vertical-align: .12em; padding: 0 .08em; }
.hotel { position: relative; max-width: 390px; margin: 34px auto 0; padding: 60px 52px 52px; }
.hotel::before { content: ''; position: absolute; inset: 32px; background: var(--noise), #f1eaf0; box-shadow: inset 0 1px 6px rgba(80, 60, 75, .18); }
.hotel__body { position: relative; z-index: 1; }
.hotel .slot { z-index: 2; }
.hotel__name { font-size: 25px; font-weight: 500; line-height: 1.2; letter-spacing: .01em; }
.hotel__meta { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; text-align: left; margin: 18px 0 0; font-size: 15.5px; align-items: baseline; }
.hotel__meta dt { font-family: var(--caps); font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.hotel__meta dd { line-height: 1.35; }
.code { font-family: var(--caps); font-size: 12px; letter-spacing: .16em; }
.hotel__text { font-size: 16px; font-style: italic; line-height: 1.5; margin-top: 16px; }
.hotel .btn { margin-top: 20px; }

.copy {
  font-family: var(--caps); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 9px 5px 11px; border: 1px solid rgba(90, 77, 87, .45); background: rgba(255, 255, 255, .35);
  cursor: pointer; color: var(--ink); white-space: nowrap; vertical-align: middle; margin-left: 4px;
}
.copy:hover, .copy:focus-visible { background: rgba(255, 255, 255, .8); }

/* =========================================================
   9. WEDDING GIFT
   ========================================================= */
.gift { background: var(--slate); padding: 84px 20px; }
.gift::before { content: ''; position: absolute; inset: 0; background: var(--noise); opacity: .5; pointer-events: none; }
.gift .paper-wrap { max-width: 380px; margin-top: 0; }
.gift__card { padding: 50px 28px 42px; }
.gift__msg { font-size: 20px; font-style: italic; margin-top: 8px; }
.gift__note { font-size: 16px; line-height: 1.55; margin: 12px auto 0; max-width: 32ch; color: var(--ink-soft); }
.details { margin-top: 22px; border-top: 1px dashed rgba(90, 77, 87, .3); }
.detail { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px dashed rgba(90, 77, 87, .3); text-align: left; }
.detail__label { display: block; font-size: 8.5px; letter-spacing: .22em; color: var(--ink-soft); }
.detail__value { display: block; font-size: 16.5px; margin-top: 3px; word-break: break-word; }

/* =========================================================
   10. RSVP
   ========================================================= */
.rsvp { background: var(--navy); color: var(--pearl); padding: 88px 30px 64px; }
.rsvp::before { content: ''; position: absolute; inset: 0; background: var(--noise); opacity: .35; pointer-events: none; }
.rsvp > * { position: relative; }
.rsvp__title { font-size: 40px; letter-spacing: .32em; margin-right: -.32em; color: var(--pearl); }
.rsvp__deadline { font-style: italic; font-size: 18px; margin-top: 12px; opacity: .85; }
.rsvp__form { max-width: 360px; margin: 26px auto 0; text-align: left; }
.field { margin-top: 24px; }
.field > label, .field__label { display: block; font-family: var(--caps); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; opacity: .75; }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 2px;
  background: transparent; border: 0; border-bottom: 1px solid rgba(243, 238, 244, .35); border-radius: 0;
  color: var(--pearl); font-family: var(--serif); font-size: 19px; outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23f3eef4' stroke-width='1.2'/></svg>") right 4px center no-repeat; }
.field select option { color: var(--navy); }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--pearl); }
.field input.is-invalid { border-bottom-color: #e8a7b8; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; text-align: center; padding: 13px 8px; font-size: 16.5px;
  border: 1px solid rgba(243, 238, 244, .3); transition: background .3s, border-color .3s;
}
.choice input:checked + span { background: rgba(243, 238, 244, .12); border-color: var(--pearl); }
.choice input:focus-visible + span { outline: 1px solid var(--pearl); outline-offset: 3px; }
.rsvp__form .btn { display: block; width: 100%; margin-top: 34px; text-align: center; }
.form-error { min-height: 1.4em; margin-top: 10px; font-size: 15px; font-style: italic; color: #f0bccb; text-align: center; }

.footer { margin-top: 64px; text-align: center; }
.footer__seal { position: relative; width: 86px; height: 86px; margin: 0 auto; }
.footer__names { font-size: 40px; margin-top: 12px; }
.footer__date { font-size: 10px; margin: 6px -.32em 0 0; opacity: .75; }

/* =========================================================
   Music + toast
   ========================================================= */
.music {
  position: fixed; z-index: 60;
  bottom: calc(18px + env(safe-area-inset-bottom));
  right: max(16px, calc((100% - var(--col)) / 2 + 16px));
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .65);
  background: rgba(243, 238, 244, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); box-shadow: 0 6px 18px rgba(40, 28, 48, .28);
  transition: opacity .4s, transform .3s var(--ease);
}
.music[hidden] { display: none; }
.music:active { transform: scale(.94); }
.music.is-playing .music__mute { display: none; }
.music.is-playing::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); animation: sealPulse 2.4s var(--ease) infinite; }

.toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  font-family: var(--caps); font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  padding: 11px 18px 10px 20px; background: rgba(35, 42, 68, .92); color: var(--pearl);
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) .reveal { opacity: 1; transform: none; transition: none; }
  html:not(.force-motion) .hero__line { transform: none; filter: none; }
  html:not(.force-motion) .seal::after, html:not(.force-motion) .intro__ring, html:not(.force-motion) .intro__hint,
  html:not(.force-motion) .hero__cue i, html:not(.force-motion) .music.is-playing::after { animation: none; }
  html:not(.force-motion) .oval__img .slot-img { transform: none; transition: none; }
}
