/* =========================================================
   Amaan Ali Khan & Rumaiza Khan — Wedding Invitation
   ========================================================= */

:root {
  --cream: #FDFAF2;
  --card: #FFFDF9;
  --gold-dk: #886F28;
  --gold: #C9A24E;
  --gold-md: #BA8D45;
  --gold-lt: #DFC78D;
  --maroon: #5D0C17;
  --maroon-2: #63121C;
  --maroon-btn: #691A24;
  --ink: #6B4A45;
  --muted: #7D6A5E;
  --label: #4A3429;
  --pink: #DB90A0;
  --pink-lt: #F2CBCD;
  --rose: #C7838F;
  --border: #EAD8BA;
  --shadow: 0 22px 50px rgba(110, 60, 50, .10);
  --shadow-lg: 0 32px 64px rgba(110, 60, 50, .16), 0 18px 60px -12px rgba(214, 178, 110, .45);
  --maroon-grad: linear-gradient(115deg, #6E2E35 0%, #5E262E 38%, #4A1E27 72%, #381721 100%);

  --script: 'Great Vibes', cursive;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pop: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 36px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
svg use { pointer-events: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

.container { width: min(1150px, 100% - 48px); margin-inline: auto; }

/* ---------- Shared typography ---------- */
.script { font-family: var(--script); font-weight: 400; }

/* Live gold shine (same as the template): a 120deg gradient tile twice the
   text box wide slides one full tile right-to-left every 6s. The padding keeps
   script swashes painted; content-box origin keeps the tile sized to the text. */
.gold-text {
  display: inline-block;
  padding: .08em .22em .14em;
  background-image: linear-gradient(120deg, #E8D9A8, #CF9F4A, #F5E6B8, #C9A55D);
  background-size: 200% auto;
  background-origin: content-box;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
/* Couple names, kicker and tagline use the template's deeper gold */
.gold-text--deep {
  background-image: linear-gradient(120deg, #E8D9A8, #CF9F4A, #80640E, #C9A55D);
}

@keyframes shimmer {
  to { background-position: 200%; }
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: .36em; /* optically centre letter-spaced text */
}

.caps-date {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--maroon-2);
  padding-left: .3em;
}

.rule {
  display: block;
  width: 160px;
  height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, rgba(201, 162, 78, 0), rgba(201, 162, 78, .9) 50%, rgba(201, 162, 78, 0));
}

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding: 64px 0; }

.section-head { text-align: center; margin-bottom: 48px; }

.kicker {
  font-size: 30px;
  line-height: 44px;
  margin-bottom: 25px;
}
/* Kicker boxes match the template's heading widths (the shine tile follows the box) */
.section-head .kicker { display: block; max-width: calc(640px + .44em); margin-inline: auto; }
.couple .section-head .kicker { max-width: none; }
.savedate .section-head .kicker { max-width: calc(560px + .44em); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 60px;
  color: var(--maroon);
}

.section-sub {
  margin-top: 12px;
  font-size: 16px;
  line-height: 26px;
  color: var(--ink);
}

/* ---------- Twinkling gold dust ---------- */
.dust { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dust i {
  position: absolute;
  border-radius: 50%;
  background: #C9A24E;
  opacity: 0;
  animation: twinkle var(--t, 4s) ease-in-out var(--dl, 0s) infinite;
}
.dust i.is-soft { filter: blur(1px); background: #D9BF86; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.6); }
  50% { opacity: var(--o, .85); transform: scale(1); }
}

/* =========================================================
   INTRO
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  perspective: 2400px;
  overflow: hidden;
  background: transparent;
}

.intro__door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(251, 233, 229, .9), rgba(251, 233, 229, 0) 70%),
    linear-gradient(162deg, #FEF8F1 0%, #FCEEEA 30%, #FBEAE6 50%, #FCEFE7 72%, #FDF4E4 100%);
  background-size: 200% 100%, 200% 100%;
  transition: transform 1.7s cubic-bezier(.6, .02, .25, 1), opacity 1.2s ease 0.6s;
  will-change: transform;
  backface-visibility: hidden;
}
.intro__door--left {
  left: 0;
  background-position: 0 0, 0 0;
  border-right: 1px solid rgba(201, 164, 92, .65);
  transform-origin: left center;
}
.intro__door--right {
  right: 0;
  background-position: 100% 0, 100% 0;
  border-left: 1px solid rgba(201, 164, 92, .65);
  transform-origin: right center;
}

.intro__frame {
  position: absolute;
  top: 32px;
  bottom: 32px;
  border: 1px solid rgba(201, 164, 92, .26);
}
.intro__door--left .intro__frame { left: 32px; right: 33px; border-radius: 36px 0 0 36px; }
.intro__door--right .intro__frame { left: 33px; right: 32px; border-radius: 0 36px 36px 0; }

.intro__dust { z-index: 1; }

.intro__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  transition: opacity .7s ease, transform .9s var(--ease);
}

.intro__eyebrow { font-size: 11.5px; letter-spacing: .4em; padding-left: .4em; }

.intro__names {
  margin-top: 10px;
  font-size: 64px;
  line-height: 1.25;
  white-space: nowrap;
}
.intro__names .amp { padding: 0 .02em; }

.intro__rule { width: 160px; margin-top: 18px; }

.intro .caps-date { margin-top: 16px; }

.seal {
  position: relative;
  margin-top: 22px;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFFCF7, #FEF7EF 70%);
  border: 1.5px solid #CDAE6C;
  box-shadow: 0 0 34px rgba(222, 190, 128, .5), 0 12px 30px rgba(190, 150, 90, .18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .4s var(--ease), box-shadow .4s;
  -webkit-tap-highlight-color: transparent;
}
.seal::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1px solid rgba(205, 174, 108, .7);
  animation: ripple 2.6s ease-out infinite;
  pointer-events: none;
}
.seal:hover { transform: scale(1.04); box-shadow: 0 0 46px rgba(222, 190, 128, .7), 0 14px 34px rgba(190, 150, 90, .22); }
.seal:active { transform: scale(.97); }

.seal__heart {
  width: 30px;
  height: 30px;
  color: var(--pink);
  margin-top: 4px;
  animation: heartbeat 1.6s ease-in-out infinite;
}
.seal__text {
  margin-top: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .3em;
  padding-left: .3em;
  text-transform: uppercase;
  color: #671922;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.16); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  70% { transform: scale(1); }
}
@keyframes ripple {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* opening sequence */
.intro.is-opening .intro__content { opacity: 0; transform: scale(1.06); }
.intro.is-opening .intro__dust { opacity: 0; transition: opacity .6s; }
.intro.is-opening .intro__door--left { transform: rotateY(88deg); opacity: 0; transition-delay: .25s, .9s; }
.intro.is-opening .intro__door--right { transform: rotateY(-88deg); opacity: 0; transition-delay: .25s, .9s; }
.intro.is-gone { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 40px 0 26px;
  isolation: isolate;
}

.hero__bg, .hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bg { z-index: -2; }
.hero__bg img { object-fit: cover; object-position: center; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* matched to the reference: cream fog rising from the bottom, over a rosy-mauve wash */
  background:
    linear-gradient(to bottom, rgba(250, 247, 242, 0) 37.5%, rgba(250, 247, 242, .92) 98%, var(--cream) 100%),
    linear-gradient(to bottom, rgba(102, 49, 69, .42), rgba(102, 49, 69, .24) 39%, rgba(102, 49, 69, .235) 60%, rgba(102, 49, 69, .21) 80%, rgba(102, 49, 69, .2) 88%, rgba(102, 49, 69, 0) 96%);
}

.hero__inner {
  position: relative;
  width: min(1150px, 100% - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 584px 1fr;
  align-items: end;
}

.hero__card {
  min-height: 440px;
  padding: 50px 40px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 34px;
  background: rgba(255, 251, 245, .71);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 30px 70px rgba(120, 70, 50, .16), 0 2px 0 rgba(255, 255, 255, .6) inset;
}

.hero__name {
  font-size: 68px;
  line-height: 1.12;
}
.hero__card .eyebrow + .hero__name { margin-top: 16px; }
.hero__heart {
  width: 34px;
  height: 34px;
  margin: 8px 0 6px;
  color: #F4BCC9;
  animation: heartbeat 2.2s ease-in-out infinite;
}
.hero__rule { width: 186px; margin-top: 24px; }
.hero__card .caps-date { margin-top: 22px; }

.hero__couple {
  justify-self: end;
  /* negative top margin: the illustration must not make the row taller than the card */
  margin: -40px 76px -13px 0;
}
.hero__couple img {
  height: 474px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 22px rgba(110, 60, 40, .18));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* hero entrance after the doors open */
.hero__card, .hero__couple { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.hero__couple { transition-delay: .25s; }
body.is-open .hero__card, body.is-open .hero__couple { opacity: 1; transform: none; }

/* scroll cue */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #74272D;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 1s var(--ease) .9s;
}
body.is-open .hero__scroll { opacity: 1; }
.hero__scroll-label {
  font-family: var(--pop);
  font-weight: 500;
  font-size: 10.25px;
  line-height: 14px;
  letter-spacing: .35em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__scroll-ring {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #D4B986;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  transition: background-color .3s, border-color .3s;
  animation: cueBounce 2s ease-in-out infinite;
}
.hero__scroll-ring svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__scroll:hover .hero__scroll-ring { border-color: var(--gold); background: rgba(255, 255, 255, .35); }
@keyframes cueBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}
/* desktop windows too short to fit the cue below the card */
@media (min-width: 921px) and (max-height: 679px) {
  .hero__scroll { display: none; }
}

/* =========================================================
   MEET THE COUPLE
   ========================================================= */
.couple__grid {
  display: grid;
  grid-template-columns: 1fr 122px 1fr;
  align-items: stretch;
}

.person-card {
  position: relative;
  min-height: 292px;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.person-card:hover { box-shadow: var(--shadow-lg); }
.person-card > *:not(.dust) { position: relative; }

.person-card .eyebrow { font-size: 11.5px; }

.person-card__name {
  align-self: stretch;
  margin-top: 6px;
  font-size: 40px;
  line-height: 54px;
}

.heart-rule {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 12px;
}
.heart-rule span {
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 78, 0), rgba(201, 162, 78, .85));
}
.heart-rule span:last-child { background: linear-gradient(90deg, rgba(201, 162, 78, .85), rgba(201, 162, 78, 0)); }
.heart-rule svg { width: 12px; height: 12px; color: #EDB1BF; }

.person-card__parents {
  margin-top: 22px;
  padding: 7px 18px 7px 16px;
  font-family: var(--pop);
  font-size: 12px;
  line-height: 18px;
  color: var(--label);
  background: #F9F3E8;
  border-left: 3px solid #C1A564;
  text-align: left;
}

.dust--card i { animation-name: drift; }
@keyframes drift {
  0% { opacity: 0; transform: translateY(8px); }
  30%, 70% { opacity: var(--o, .8); }
  100% { opacity: 0; transform: translateY(-22px); }
}

.couple__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
}
.couple__line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, rgba(201, 162, 78, 0), rgba(201, 162, 78, .7) 50%, rgba(201, 162, 78, 0));
}
.couple__heart {
  width: 64px;
  height: 64px;
  margin: 16px 0;
  border-radius: 50%;
  border: 1px solid #DEC690;
  background: var(--card);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 22px rgba(214, 178, 110, .22);
}
.couple__heart svg {
  width: 24px;
  height: 24px;
  color: #EEA9B9;
  animation: heartbeat 1.8s ease-in-out infinite;
}

.tagline-wrap {
  position: relative;
  margin-top: 52px;
  padding: 0 0 26px;
  text-align: center;
}
.tagline {
  position: relative;
  display: block;
  font-size: 36.5px;
  line-height: 62px;
}
.tagline .dot { font-size: .62em; vertical-align: .18em; padding: 0 .12em; }

.floating-hearts {
  position: absolute;
  left: 50%;
  top: -70px;
  bottom: -40px;
  width: min(1400px, 100vw);
  transform: translateX(-50%);
  pointer-events: none;
}
.floating-hearts svg {
  position: absolute;
  bottom: 0;
  color: var(--pink-lt);
  opacity: 0;
  animation: heartRise var(--t, 9s) ease-in-out var(--dl, 0s) infinite;
}
@keyframes heartRise {
  0% { opacity: 0; transform: translate(0, 0) rotate(-8deg) scale(.8); }
  15% { opacity: var(--o, .85); }
  50% { transform: translate(var(--sx, 14px), -90px) rotate(6deg) scale(1); }
  85% { opacity: var(--o, .85); }
  100% { opacity: 0; transform: translate(0, -190px) rotate(-6deg) scale(.9); }
}

/* =========================================================
   WEDDING FUNCTIONS
   ========================================================= */
.events__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
}

.event-card {
  flex: 0 1 358px;
  display: flex;
  flex-direction: column;
  background: #FEFAF2;
  border: 1px solid #E8D3B3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(110, 60, 50, .10);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.event-card.reveal.is-visible:hover { transform: translateY(-8px); }

.event-card__art {
  position: relative;
  height: 224px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(ellipse 45% 60% at 50% 62%, rgba(232, 214, 168, .75), rgba(232, 214, 168, 0) 70%),
    linear-gradient(180deg, #F6F1E6 0%, #F2EADA 100%);
}
.event-card__art img {
  height: 100%;
  width: auto;
  max-width: calc(100% - 16px);
  object-fit: contain;
  object-position: center bottom;
  transition: transform .6s var(--ease);
}
.event-card:hover .event-card__art img { transform: scale(1.04) translateY(-2px); }

.event-card__body { flex: 1; padding: 24px 24px 22px; }

.event-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 34px;
  color: var(--maroon);
}
.event-card__title svg { width: 18px; height: 18px; color: #C79A3F; flex: none; }

.event-card__desc {
  margin-top: 11px;
  min-height: 36px;
  font-style: italic;
  font-size: 13.5px;
  line-height: 18px;
  color: var(--ink);
}

.rule--wide { width: 100%; margin: 17px 0 0; }

.event-card__meta { margin-top: 24px; display: grid; gap: 13px; }
.event-card__meta li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  line-height: 22px;
  color: #4E3B36;
}
.event-card__meta svg { width: 15px; height: 15px; color: var(--rose); flex: none; }
.event-card__meta .is-venue { font-family: var(--pop); font-size: 13px; color: #32312F; }

.event-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 53px;
  border-top: 1px solid #EEDFCB;
  font-weight: 500;
  font-size: 12.4px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-md);
  transition: background .3s, color .3s;
}
.event-card__cta svg { width: 15px; height: 15px; }
.event-card__cta:hover { background: #FBF3E4; color: #9C7232; }

/* =========================================================
   SAVE THE DATE — scratch card
   ========================================================= */
.savedate .section-head { margin-bottom: 44px; }

.scratch {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 480 / 268;
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid #E6CF9F;
  box-shadow: 0 26px 52px rgba(110, 60, 50, .16);
  overflow: hidden;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
}

.scratch__reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(246, 233, 200, .55), rgba(246, 233, 200, 0) 70%),
    linear-gradient(160deg, #FFFDF8, #FBF4E6);
}
.scratch__reveal::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 162, 78, .35);
  border-radius: 26px;
  pointer-events: none;
}
.scratch__month { font-size: 40px; line-height: 1.2; }
.scratch__row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 2px;
}
.scratch__side {
  min-width: 96px;
  padding: 6px 0;
  border-top: 1px solid rgba(201, 162, 78, .6);
  border-bottom: 1px solid rgba(201, 162, 78, .6);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .28em;
  padding-left: .28em;
  text-transform: uppercase;
  color: var(--maroon-2);
}
.scratch__day {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 76px;
  line-height: 1;
  color: var(--maroon);
}
.scratch__place {
  margin-top: 12px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--ink);
}

.scratch__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity .9s ease;
  z-index: 1;
}
.scratch__canvas:active { cursor: grabbing; }
.scratch.is-revealed .scratch__canvas { opacity: 0; pointer-events: none; }

.scratch__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 35%, rgba(255, 250, 230, .45) 48%, rgba(255, 255, 255, 0) 60%);
  background-size: 250% 100%;
  animation: sweep 5.5s ease-in-out 1.5s infinite;
  mix-blend-mode: soft-light;
}
.scratch.is-scratching .scratch__shine, .scratch.is-revealed .scratch__shine { opacity: 0; animation: none; }
@keyframes sweep {
  0% { background-position: 120% 0; }
  55%, 100% { background-position: -40% 0; }
}

.scratch__hint {
  margin-top: 23px;
  text-align: center;
  font-family: var(--pop);
  font-size: 11.2px;
  letter-spacing: .26em;
  padding-left: .26em;
  text-transform: uppercase;
  color: #55514D;
  transition: opacity .6s;
}

/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown {
  position: relative;
  padding: 64px 0 62px;
  text-align: center;
  color: #FBF3EA;
  background: var(--maroon-grad);
  overflow: hidden;
}
.countdown .dust i { background: #D9B867; }
.countdown .container { position: relative; }

.section-title--light { color: #FCF4EA; }
.countdown .rule { margin-top: 24px; background: linear-gradient(90deg, rgba(214, 180, 115, 0), rgba(214, 180, 115, .85) 50%, rgba(214, 180, 115, 0)); }

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 201px);
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}
.countdown__box {
  height: 144px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05));
  border: 1px solid rgba(214, 180, 115, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 30px rgba(20, 5, 10, .12);
}
.countdown__num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 58px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background-image: linear-gradient(120deg, #E8D9A8, #CF9F4A, #F5E6B8, #C9A55D);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
.countdown__label {
  margin-top: 16px;
  font-weight: 500;
  font-size: 10.9px;
  letter-spacing: .3em;
  padding-left: .3em;
  text-transform: uppercase;
  color: #F3E6DA;
}
.countdown__meta {
  font-size: 14px;
  line-height: 27px;
  color: #F7EDE4;
}
.countdown__grid + .countdown__meta { margin-top: 30px; }

.countdown__done {
  margin-top: 36px;
  font-size: 40px;
}

/* =========================================================
   OUR FAMILIES
   ========================================================= */
.families__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 498px));
  justify-content: center;
  gap: 26px;
}
.family-card {
  min-height: 195px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--card);
  border: 1px solid #E8D4B0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.family-card:hover { box-shadow: var(--shadow-lg); }
.family-card__icon { width: 25px; height: 25px; color: #B98E3B; }
.family-card .eyebrow { margin-top: 13px; font-size: 11px; letter-spacing: .32em; padding-left: .32em; }
.rule--short { width: 86px; margin-top: 16px; }
.family-card__names {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #6E1A24;
}

/* =========================================================
   VENUE
   ========================================================= */
.venue {
  background:
    radial-gradient(ellipse 40% 50% at 50% 30%, rgba(236, 214, 178, .35), rgba(236, 214, 178, 0) 70%),
    #F7E9E1;
}
.venue .section-head { margin-bottom: 41px; }

.venue__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.venue-card {
  min-height: 319px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card);
  border: 1px solid #EBD6C0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.venue-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 38px;
  color: var(--maroon);
}
.venue-card__meta { margin-top: 16px; display: grid; gap: 14px; }
.venue-card__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
}
.venue-card__meta svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

.venue-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--solid { background: var(--maroon-btn); color: #fff; box-shadow: 0 10px 22px rgba(105, 26, 36, .22); }
.btn--solid:hover { background: #7A2430; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(105, 26, 36, .3); }
.btn--outline { border: 1.5px solid var(--maroon-btn); color: var(--maroon-btn); }
.btn--outline:hover { background: var(--maroon-btn); color: #fff; transform: translateY(-2px); }

.venue-map {
  min-height: 319px;
  padding: 8px;
  background: var(--card);
  border: 1px solid #EBD6C0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.venue-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 301px;
  border: 0;
  border-radius: 28px;
  background: #F1E6DC;
}

/* =========================================================
   QUOTE
   ========================================================= */
.quote {
  position: relative;
  padding: 96px 24px 112px;
  text-align: center;
}
.quote__text {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  font-size: 66px;
  line-height: 85px;
}
.rule--long { width: 196px; margin-top: 36px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  padding: 68px 24px 34px;
  text-align: center;
  color: #F8EFE6;
  background: var(--maroon-grad);
  overflow: hidden;
}
.footer > *:not(.dust) { position: relative; }
.footer .dust i { background: #D9B867; }

.footer__names { display: block; max-width: calc(640px + .44em); margin-inline: auto; font-size: 36px; line-height: 50px; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
  color: #CAB06C;
  font-size: 15px;
  line-height: 16px;
  font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif;
}
.ornament__line { width: 106px; height: 1px; background: linear-gradient(90deg, rgba(202, 176, 108, 0), rgba(202, 176, 108, .9)); }
.ornament__line:last-child { background: linear-gradient(90deg, rgba(202, 176, 108, .9), rgba(202, 176, 108, 0)); }
.ornament__leaf { display: inline-block; transform: rotate(-90deg); }
.ornament__leaf--flip { transform: rotate(90deg) scaleY(-1); }
.ornament__flower { color: #D4A27A; font-size: 17px; }

.footer__note {
  max-width: 610px;
  margin: 24px auto 0;
  font-family: var(--pop);
  font-size: 15px;
  line-height: 24px;
}
.footer__made {
  margin-top: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--pop);
  font-size: 12px;
  line-height: 18px;
}
.footer__made svg { width: 14px; height: 14px; color: #E893AA; animation: heartbeat 2s ease-in-out infinite; }
.footer__tag {
  margin-top: 38px;
  font-family: var(--pop);
  font-size: 10px;
  letter-spacing: .12em;
  color: #E9DCCF;
}

/* =========================================================
   GLOBAL FX
   ========================================================= */
.fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
}

.glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 45;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(222, 192, 134, .34) 0%, rgba(222, 192, 134, .16) 32%, rgba(222, 192, 134, 0) 62%);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .6s ease;
  will-change: transform;
}
.glow.is-on { opacity: 1; }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.event-card.reveal.is-visible { transition: opacity 1s var(--ease) var(--d, 0s), transform .5s var(--ease), box-shadow .5s var(--ease); }

/* =========================================================
   BACKGROUND MUSIC TOGGLE
   ========================================================= */
.music-toggle {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
}
body:not(.is-open) .music-toggle { visibility: hidden; }
.music-toggle__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .7);
  color: #3A2F28;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform .25s ease;
}
@media (hover: hover) {
  .music-toggle__btn:hover { transform: scale(1.1); }
}
.music-toggle__btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid;
  border-radius: 50%;
  opacity: 0;
}
.music-toggle.is-playing .music-toggle__btn::before { animation: music-ripple 1.8s ease-out infinite; }
.music-toggle__icon { display: none; line-height: 0; }
.music-toggle__icon--note { display: block; animation: music-float 2.4s ease-in-out infinite; }
.music-toggle.is-playing .music-toggle__icon--note { display: none; }
.music-toggle__icon--eq {
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 16px;
}
.music-toggle.is-playing .music-toggle__icon--eq { display: flex; }
.music-toggle__bar {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
  animation: music-eq .9s ease-in-out infinite;
}
.music-toggle__bar:nth-child(1) { animation-delay: -.6s; }
.music-toggle__bar:nth-child(2) { animation-delay: -.3s; }
.music-toggle__bar:nth-child(3) { animation-delay: -.75s; }
.music-toggle__bar:nth-child(4) { animation-delay: -.15s; }

@keyframes music-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes music-eq {
  0%, 100% { transform: scaleY(.25); }
  50% { transform: scaleY(1); }
}
@keyframes music-ripple {
  0% { opacity: .5; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  .hero__inner { grid-template-columns: 540px 1fr; }
  .hero__couple { margin-right: 40px; }
}

@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 500px 1fr; }
  .hero__name { font-size: 60px; }
  .hero__couple { margin-right: 10px; }
  .hero__couple img { height: 420px; }
  .couple__grid { grid-template-columns: 1fr 90px 1fr; }
  .events__grid { gap: 22px; }
  .event-card { flex-basis: 320px; }
  .countdown__grid { grid-template-columns: repeat(4, minmax(0, 190px)); }
}

@media (max-width: 920px) {
  .intro__names { font-size: min(54px, 7.4vw); white-space: normal; }
  .intro__names > span { white-space: nowrap; }

  .hero { padding: 72px 0 96px; align-items: stretch; }
  .hero__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: space-between;
    gap: 20px;
  }
  .hero__card { width: min(560px, 100%); min-height: 0; padding: 40px 28px 44px; }
  .hero__couple { justify-self: center; margin: 0; }
  .hero__couple img { height: clamp(270px, 42vh, 440px); }
  .hero__scroll { bottom: 22px; }

  .couple__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .couple__link { flex-direction: row; padding: 0 12px; height: 92px; }
  .couple__line { height: 1px; width: auto; background: linear-gradient(90deg, rgba(201, 162, 78, 0), rgba(201, 162, 78, .7) 50%, rgba(201, 162, 78, 0)); }
  .couple__heart { margin: 0 16px; }

  .venue__grid { grid-template-columns: 1fr; max-width: 600px; margin-inline: auto; }
  .venue-map, .venue-map iframe { min-height: 340px; }

  .families__grid { grid-template-columns: minmax(0, 520px); }
}

@media (max-width: 760px) {
  .countdown__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .countdown__box { height: 112px; border-radius: 18px; }
  .countdown__num { font-size: 40px; }
  .countdown__label { margin-top: 12px; font-size: 10px; letter-spacing: .2em; padding-left: .2em; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .kicker { font-size: 29px; line-height: 38px; margin-bottom: 14px; }
  .section-title { font-size: 38px; line-height: 46px; }
  .section-sub { font-size: 14.5px; line-height: 23px; padding: 0 6px; }
  .rule { margin-top: 18px; }

  /* intro */
  .intro__door--left .intro__frame { left: 14px; right: 14px; top: 16px; bottom: 16px; border-radius: 26px 0 0 26px; }
  .intro__door--right .intro__frame { left: 14px; right: 14px; top: 16px; bottom: 16px; border-radius: 0 26px 26px 0; }
  .intro__eyebrow { font-size: 11px; }
  .intro__names { font-size: clamp(42px, 13vw, 54px); line-height: 1.1; white-space: normal; margin-top: 14px; }
  .intro__names > span { display: block; white-space: normal; }
  .intro__names .amp { font-size: .8em; line-height: 1.2; }
  .intro__rule { margin-top: 20px; }
  .intro .caps-date { font-size: 12px; }
  .seal { width: 128px; height: 128px; margin-top: 30px; }

  /* hero */
  .hero { padding-top: max(56px, 7vh); }
  .hero__card { padding: 34px 18px 38px; border-radius: 28px; }
  .hero__card .eyebrow { font-size: 11px; }
  .hero__name { font-size: clamp(40px, 12.4vw, 54px); }
  .hero__card .eyebrow + .hero__name { margin-top: 10px; }
  .hero__heart { width: 28px; height: 28px; margin: 4px 0 2px; }
  .hero__rule { margin-top: 18px; }
  .hero__card .caps-date { margin-top: 16px; font-size: 12px; }

  /* couple */
  .person-card { min-height: 0; padding: 34px 20px 36px; border-radius: 30px; }
  .person-card__name { font-size: clamp(34px, 9.6vw, 40px); line-height: 1.3; }
  .tagline-wrap { margin-top: 40px; }
  .tagline { font-size: clamp(28px, 8.4vw, 36px); line-height: 1.35; }
  .tagline .dot { display: none; }
  .tagline .part { display: block; }

  /* events */
  .events__grid { gap: 26px; }
  .event-card { flex-basis: 100%; max-width: 400px; border-radius: 30px; }
  .event-card__art { height: 236px; }

  /* save the date */
  .scratch { border-radius: 28px; }
  .scratch__month { font-size: 32px; }
  .scratch__day { font-size: 58px; }
  .scratch__row { gap: 14px; }
  .scratch__side { min-width: 74px; font-size: 10.5px; letter-spacing: .2em; padding-left: .2em; }
  .scratch__place { font-size: 12.5px; margin-top: 8px; }
  .scratch__hint { font-size: 11px; }

  /* countdown */
  .countdown { padding: 56px 0 54px; }
  .countdown__grid { gap: 8px; margin-top: 32px; }
  .countdown__box { height: 92px; border-radius: 16px; }
  .countdown__num { font-size: clamp(26px, 8.4vw, 36px); }
  .countdown__label { margin-top: 10px; font-size: 8.5px; letter-spacing: .16em; padding-left: .16em; }

  /* families */
  .family-card { min-height: 0; padding: 32px 18px; border-radius: 30px; }
  .family-card__names { font-size: 19px; line-height: 26px; }

  /* venue */
  .venue-card { min-height: 0; padding: 30px 22px; border-radius: 30px; }
  .venue-card__title { font-size: 29px; }
  .venue-card__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .venue-map { border-radius: 30px; }
  .venue-map iframe { border-radius: 23px; }

  /* quote + footer */
  .quote { padding: 72px 20px 84px; }
  .quote__text { font-size: clamp(40px, 11.5vw, 52px); line-height: 1.32; }
  .footer { padding: 56px 20px 30px; }
  .footer__names { font-size: clamp(28px, 8.6vw, 36px); line-height: 1.3; }
  .footer__note { font-size: 14px; line-height: 22px; }
  .footer__made { flex-wrap: wrap; }
}

@media (max-width: 360px) {
  .countdown__label { font-size: 7.5px; letter-spacing: .1em; padding-left: .1em; }
  .scratch__side { min-width: 62px; }
}

/* short landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .intro__names { font-size: 40px; }
  .seal { width: 108px; height: 108px; margin-top: 14px; }
  .hero { padding: 40px 0; }
  .hero__inner { grid-template-columns: 1fr auto; }
  .hero__couple img { height: 300px; }
  .hero__scroll { display: none; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .intro__door { transition: opacity .6s ease !important; }
  .intro.is-opening .intro__door--left, .intro.is-opening .intro__door--right { transform: none; opacity: 0; transition-delay: 0s !important; }
  .gold-text, .countdown__num { animation: none; }
}
