/* =========================================================
   Ambulance Inauguration — Premium Invitation
   Palette · Typography · Layout · Decor · Animations
   ========================================================= */

:root {
  --maroon-1: #0b3350;
  --maroon-2: #0a2740;
  --maroon-3: #103a5c;
  --wine: #04152a;
  --gold-1: #eaf4ff;
  --gold-2: #8fc0e6;
  --gold-3: #4f8fbf;
  --gold-deep: #3f7aa8;
  --cream: #eef5fc;
  --cream-dim: #bcd3e6;
  --rose: #58b0e6;
  --ink: #e9f2fb;

  --gold-grad: linear-gradient(135deg, #f2f9ff 0%, #bfe0f5 42%, #5f9fce 72%, #dcefff 100%);
  --font-display: "Cinzel", serif;
  --font-body: "Cormorant Garamond", serif;
  --font-script: "Great Vibes", cursive;
  --font-fancy: "Cinzel Decorative", "Cinzel", serif;
  --font-alt: "Segoe UI", "Noto Naskh Arabic", "Jameel Noori Nastaleeq", "Tahoma", sans-serif;

  --card-max: 660px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--wine);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Background layers ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg--gradient {
  background:
    radial-gradient(120% 90% at 50% -10%, #12507f 0%, #0c3a5e 38%, #082742 68%, #04152a 100%);
}

.bg--pattern {
  z-index: 1;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(143, 192, 230, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 75%, rgba(143, 192, 230, 0.5) 0 2px, transparent 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%238fc0e6' stroke-width='1' opacity='0.6'%3E%3Cpath d='M60 12c14 12 14 24 0 36-14-12-14-24 0-36zM60 108c14-12 14-24 0-36-14 12-14 24 0 36zM12 60c12-14 24-14 36 0-12 14-24 14-36 0zM108 60c-12-14-24-14-36 0 12 14 24 14 36 0z'/%3E%3Ccircle cx='60' cy='60' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 42px 42px, 42px 42px, 120px 120px;
}

.bg--glow {
  z-index: 1;
  filter: blur(60px);
  opacity: 0.55;
}
.bg--glow-1 {
  width: 46vmax; height: 46vmax;
  top: -14vmax; left: -12vmax;
  background: radial-gradient(circle, rgba(90, 160, 220, 0.42), transparent 62%);
  animation: floatGlow 16s ease-in-out infinite;
}
.bg--glow-2 {
  width: 40vmax; height: 40vmax;
  bottom: -14vmax; right: -10vmax;
  background: radial-gradient(circle, rgba(70, 150, 210, 0.32), transparent 62%);
  animation: floatGlow 20s ease-in-out infinite reverse;
}

.bg--vignette {
  z-index: 2;
  background: radial-gradient(120% 100% at 50% 42%, transparent 55%, rgba(2, 10, 22, 0.66) 100%);
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(4vmax, 3vmax) scale(1.08); }
}

.petal-canvas {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ---------- Stage & Card ---------- */
.stage {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(52px, 8vh, 96px) clamp(14px, 4vw, 40px) clamp(48px, 8vh, 90px);
}

.card {
  position: relative;
  width: min(94vw, var(--card-max));
  padding: clamp(26px, 4.5vw, 54px) clamp(20px, 4.6vw, 56px);
  background:
    linear-gradient(158deg, rgba(13, 52, 82, 0.72), rgba(4, 20, 38, 0.88));
  border: 1px solid rgba(143, 192, 230, 0.42);
  border-radius: 20px;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(143, 192, 230, 0.16),
    inset 0 0 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(7px) saturate(1.15);
  -webkit-backdrop-filter: blur(7px) saturate(1.15);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(143, 192, 230, 0.3);
  border-radius: 12px;
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(150, 200, 240, 0.12), transparent 60%);
  pointer-events: none;
}

.card__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Medical-cross corner brackets */
.card__corner {
  position: absolute;
  width: 54px; height: 54px;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%238fc0e6' stroke-linecap='round'%3E%3Cpath stroke-width='2' d='M6 26V10a4 4 0 0 1 4-4h16'/%3E%3Cpath stroke-width='1.1' opacity='0.5' d='M12 32V15a3 3 0 0 1 3-3h17'/%3E%3Cpath stroke-width='2.2' d='M20 18v9M15.5 22.5h9'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
}
.card__corner--tl { top: 8px; left: 8px; }
.card__corner--tr { top: 8px; right: 8px; transform: scaleX(-1); }
.card__corner--bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.card__corner--br { bottom: 8px; right: 8px; transform: scale(-1); }

/* ---------- Typography blocks ---------- */
.brand-logo {
  display: block;
  width: clamp(180px, 46vw, 260px);
  height: auto;
  margin: clamp(6px, 2vw, 14px) auto clamp(10px, 2.4vw, 18px);
  border-radius: 14px;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.45));
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.bismillah {
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1;
  margin: 0;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(143, 192, 230, 0.3));
}
.bismillah__caption {
  font-size: clamp(0.72rem, 2vw, 0.86rem);
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--cream-dim);
  opacity: 0.82;
  margin: 6px 0 0;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: clamp(14px, 2.6vw, 22px) auto;
  max-width: 260px;
}
.ornament--wide { max-width: 340px; }
.ornament__line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(143, 192, 230, 0.7));
}
.ornament__line:last-child {
  background: linear-gradient(90deg, rgba(143, 192, 230, 0.7), transparent);
}
.ornament__motif {
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 3px rgba(143, 192, 230, 0.35));
  animation: motifPulse 4s ease-in-out infinite;
}
@keyframes motifPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.12); opacity: 1; }
}
.ornament__motif.ornament__motif--heartbeat {
  animation: heartbeat 1.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heartbeat {
  0%   { transform: scale(1); }
  12%  { transform: scale(1.42); }
  24%  { transform: scale(1); }
  36%  { transform: scale(1.42); }
  48%  { transform: scale(1); }
  100% { transform: scale(1); }
}

.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.66rem, 2vw, 0.8rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 10px;
  padding-left: 0.34em;
}

.hosts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 auto 8px;
  color: var(--cream);
  max-width: 24ch;
}
.hosts__line1 {
  font-size: clamp(0.82rem, 2.5vw, 1.02rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.hosts__line2 {
  font-size: clamp(1.3rem, 4.4vw, 1.95rem);
  letter-spacing: 0.05em;
}

.invite-line {
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  font-style: italic;
  color: var(--cream-dim);
  margin: 6px 0;
}
.invite-line--sub { margin-top: 4px; }

/* 11th Ambulance line */
.ambulance-line {
  font-size: clamp(1.15rem, 3.4vw, 1.7rem);
  margin-top: 8px;
}
.ambulance {
  font-weight: inherit;
  font-style: italic;
  color: inherit;
}

/* Ambulance illustration with animated beacon lights */
.event-figure {
  position: relative;
  width: clamp(160px, 46vw, 270px);
  margin: clamp(8px, 2.2vw, 16px) auto 0;
  animation: logoFloat 6s ease-in-out infinite;
}
.event-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5));
}
.amb-light {
  position: absolute;
  top: 18%;
  width: 15%;
  height: 9%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.15;
  will-change: opacity, transform;
}
.amb-light--blue {
  left: 31%;
  background: radial-gradient(circle, #e6f3ff 0%, #49a6ff 45%, rgba(30, 120, 255, 0) 72%);
  box-shadow: 0 0 16px 5px rgba(73, 166, 255, 0.7);
  animation: beaconBlue 1.1s ease-in-out infinite;
}
.amb-light--red {
  left: 52%;
  background: radial-gradient(circle, #ffe6e6 0%, #ff4646 45%, rgba(255, 40, 40, 0) 72%);
  box-shadow: 0 0 16px 5px rgba(255, 70, 70, 0.7);
  animation: beaconRed 1.1s ease-in-out infinite;
}
@keyframes beaconBlue {
  0%, 40%   { opacity: 1; transform: translate(-50%, -50%) scale(1.14); }
  50%, 100% { opacity: 0.12; transform: translate(-50%, -50%) scale(0.9); }
}
@keyframes beaconRed {
  0%, 40%   { opacity: 0.12; transform: translate(-50%, -50%) scale(0.9); }
  50%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1.14); }
}

/* Personalized greeting */
.greeting {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.2;
  margin: clamp(8px, 2vw, 16px) 0 2px;
  padding: 0.04em 0.06em 0.14em;
  background: linear-gradient(105deg, #eaf4ff 0%, #a9d1ee 30%, #ffffff 48%, #5a97c4 70%, #cfe8fb 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
.greeting--blink {
  animation: shimmer 6s linear infinite, greetingBlink 1.2s ease-in-out infinite;
}
@keyframes greetingBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.28; }
}

/* Cause / dedication line */
.dedication {
  max-width: 46ch;
  margin: clamp(10px, 2vw, 16px) auto 0;
  font-size: clamp(0.94rem, 2.4vw, 1.08rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--cream-dim);
}

.event-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.5rem, 8vw, 3.4rem);
  line-height: 1.15;
  white-space: nowrap;
  padding: 0.16em 0.14em 0.3em;
  margin: clamp(2px, 1vw, 8px) auto 0;
  overflow: visible;
  background: linear-gradient(105deg, #eaf4ff 0%, #a9d1ee 30%, #ffffff 48%, #5a97c4 70%, #cfe8fb 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 16px rgba(143, 192, 230, 0.32));
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  to { background-position: 220% center; }
}

.couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: clamp(10px, 2vw, 18px) 0 4px;
}
.couple__name {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 6.4vw, 2.7rem);
  line-height: 1.1;
  color: var(--cream);
  text-shadow: 0 2px 14px rgba(56, 211, 159, 0.32);
}
.couple__name--groom {
  font-family: var(--font-fancy);
  font-weight: 900;
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(105deg, #f7e6ad 0%, #e6c368 28%, #fff4d0 46%, #c9992f 68%, #f2d98a 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 3px 12px rgba(230, 195, 104, 0.3));
  animation: shimmer 5s linear infinite;
}
.couple__amp {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: -2px 0;
}

/* ---------- Section shared ---------- */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 1.8vw, 0.74rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 14px;
  padding-left: 0.3em;
}

/* ---------- Countdown ---------- */
.countdown { margin-top: clamp(6px, 1.4vw, 12px); }
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2vw, 14px);
  max-width: 420px;
  margin: 0 auto;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: clamp(10px, 2vw, 14px) 4px;
  border: 1px solid rgba(143, 192, 230, 0.3);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(150, 200, 240, 0.08), rgba(0, 0, 0, 0.16));
}
.cd-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 5vw, 2rem);
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-family: var(--font-display);
  font-size: clamp(0.54rem, 1.6vw, 0.66rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
}

/* ---------- Schedule ---------- */
.schedule { margin-top: clamp(20px, 3.6vw, 32px); }
.schedule__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 2vw, 16px);
}
.schedule__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(12px, 2.2vw, 18px) 6px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(247, 230, 173, 0.07), rgba(0, 0, 0, 0.12));
  border: 1px solid rgba(230, 195, 104, 0.22);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.schedule__item:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 195, 104, 0.5);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.schedule__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 230, 173, 0.14), rgba(0, 0, 0, 0.1));
  border: 1px solid rgba(230, 195, 104, 0.3);
}
.schedule__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.schedule__name {
  font-family: var(--font-display);
  font-size: clamp(0.74rem, 2vw, 0.9rem);
  letter-spacing: 0.06em;
  color: var(--cream);
}
.schedule__time {
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  color: var(--gold-2);
  letter-spacing: 0.03em;
}

/* ---------- Venue ---------- */
.venue {
  margin-top: clamp(20px, 3.6vw, 32px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 4vw, 34px);
  flex-wrap: wrap;
}
.venue__block {
  flex: 1 1 200px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.venue__divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(transparent, rgba(143, 192, 230, 0.5), transparent);
}
.venue__day {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4.2vw, 1.75rem);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}
.venue__date {
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: clamp(1rem, 2.8vw, 1.18rem);
  color: var(--gold-1);
  margin: 0 0 5px;
  letter-spacing: 0.03em;
}
.venue__date--blink {
  animation: dateBlink 1.1s ease-in-out infinite;
}
@keyframes dateBlink {
  0%, 100% { opacity: 1; text-shadow: 0 0 12px rgba(150, 200, 240, 0.8); }
  50%      { opacity: 0.3; text-shadow: 0 0 0 rgba(150, 200, 240, 0); }
}
.venue__date-alt {
  font-family: var(--font-alt);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--cream-dim);
  margin: 2px 0 0;
  line-height: 1.55;
  direction: rtl;
}
.venue__date-alt--ur { color: rgba(233, 215, 180, 0.78); }
.venue__place {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  color: var(--cream);
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}
.venue__addr {
  font-size: clamp(0.9rem, 2.4vw, 1.02rem);
  color: var(--cream-dim);
  margin: 0 0 8px;
}
.venue__map {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(0.66rem, 1.8vw, 0.76rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid rgba(143, 192, 230, 0.42);
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}
.venue__map:hover {
  background: rgba(143, 192, 230, 0.16);
  color: var(--gold-1);
}

/* ---------- RSVP ---------- */
.rsvp { margin-top: clamp(24px, 4vw, 38px); }
.rsvp__heading {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.1rem, 8vw, 3.1rem);
  line-height: 1.2;
  padding: 0.12em 0.1em 0.24em;
  margin: 0 0 2px;
  background: linear-gradient(105deg, #eaf4ff 0%, #a9d1ee 30%, #ffffff 48%, #5a97c4 70%, #cfe8fb 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
.rsvp__sub {
  font-style: italic;
  font-size: clamp(0.92rem, 2.5vw, 1.08rem);
  color: var(--cream-dim);
  margin: 0 0 20px;
}

.rsvp__form {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}
.field { margin-bottom: 16px; }
.field > label,
.field__legend {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(143, 192, 230, 0.32);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.field input::placeholder { color: rgba(188, 211, 230, 0.5); }
.field input:focus {
  border-color: rgba(143, 192, 230, 0.78);
  box-shadow: 0 0 0 3px rgba(143, 192, 230, 0.18);
  background: rgba(0, 0, 0, 0.3);
}
.field input.invalid {
  border-color: #e98ba0;
  box-shadow: 0 0 0 3px rgba(233, 139, 160, 0.18);
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.choice { display: flex; flex-direction: column; gap: 10px; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.choice__pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--cream-dim);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(143, 192, 230, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.28s ease;
}
.choice__text { flex: 1; line-height: 1.35; }
.choice__mark {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(143, 192, 230, 0.6);
  display: grid;
  place-items: center;
  transition: all 0.28s ease;
}
.choice__mark::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-grad);
  transform: scale(0);
  transition: transform 0.25s ease;
}
.choice__pill:hover { border-color: rgba(143, 192, 230, 0.55); }
.choice input:checked + .choice__pill {
  color: var(--cream);
  background: linear-gradient(160deg, rgba(143, 192, 230, 0.2), rgba(0, 0, 0, 0.15));
  border-color: rgba(143, 192, 230, 0.85);
  box-shadow: inset 0 0 0 1px rgba(143, 192, 230, 0.3);
}
.choice input:checked + .choice__pill .choice__mark { border-color: var(--gold-2); }
.choice input:checked + .choice__pill .choice__mark::after { transform: scale(1); }
.choice input:focus-visible + .choice__pill {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.btn-rsvp {
  margin-top: 6px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #06263f;
  background: var(--gold-grad);
  background-size: 200% auto;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(47, 118, 175, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.6s ease;
}
.btn-rsvp:hover {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow: 0 16px 34px rgba(47, 118, 175, 0.55);
}
.btn-rsvp:active { transform: translateY(0); }
.btn-rsvp svg { color: #1f7a3d; }

.rsvp__note {
  min-height: 1.2em;
  margin: 12px 0 0;
  text-align: center;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--gold-1);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.rsvp__note.show { opacity: 1; }

/* ---------- Footer ---------- */
.card__footer { margin-top: clamp(20px, 3.4vw, 30px); }
.card__closing {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.98rem, 2.6vw, 1.15rem);
  color: var(--cream);
  margin: 0 0 4px;
}
.card__signoff {
  font-family: var(--font-display);
  font-size: clamp(0.64rem, 1.8vw, 0.76rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0;
}
.card__credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.58rem, 1.6vw, 0.68rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.card__credit a {
  color: var(--gold-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 192, 230, 0.4);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.card__credit a:hover {
  color: var(--gold-1);
  border-color: rgba(143, 192, 230, 0.8);
}
.card__credit-heart {
  vertical-align: middle;
  transform-origin: center;
  animation: heartbeat 1.4s ease-in-out infinite;
}

/* ---------- Scroll hint ---------- */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold-2);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.scroll-hint__text {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.scroll-hint__chev {
  width: 11px; height: 11px;
  border-right: 2px solid var(--gold-2);
  border-bottom: 2px solid var(--gold-2);
  transform: rotate(45deg);
  animation: bob 1.8s ease-in-out infinite;
}
.scroll-hint.hidden { opacity: 0; visibility: hidden; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%      { transform: translateY(5px) rotate(45deg); }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .venue__divider { display: none; }
  .venue { gap: 18px; }
  .schedule__list { gap: 7px; }
  .schedule__item { padding: 12px 4px; }
  .card__corner { width: 42px; height: 42px; }
}

@media (max-width: 380px) {
  .schedule__name { font-size: 0.68rem; }
  .cd-num { font-size: 1.2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(120% 90% at 50% -10%, #12507f 0%, #0c3a5e 38%, #082742 68%, #04152a 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader__inner { text-align: center; }
.preloader__amb {
  width: clamp(180px, 62vw, 300px);
  margin: 0 auto;
}
/* System font so the preloader text itself never flashes */
.preloader__title {
  margin: 26px 0 6px;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.82rem, 3vw, 1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}
.preloader__text {
  margin: 0 0 18px;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.72rem, 2.4vw, 0.86rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-2);
  animation: preText 1.6s ease-in-out infinite;
}
@keyframes preText {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.preloader__bar {
  position: relative;
  display: block;
  width: min(220px, 60vw);
  height: 3px;
  margin: 0 auto;
  border-radius: 3px;
  background: rgba(143, 192, 230, 0.18);
  overflow: hidden;
}
.preloader__bar i {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #8fc0e6, #eaf4ff, #8fc0e6, transparent);
  animation: preBar 1.2s ease-in-out infinite;
}
@keyframes preBar {
  0%   { left: -40%; }
  100% { left: 100%; }
}
