/* =========================================================================
   style.css — base, design tokens, layout & components
   Digital Wedding Invitation · Kabir & Ishita
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Deep Ocean Blue palette */
  --stormy-teal: #006466;
  --dark-teal: #065a60;
  --dark-teal-2: #0b525b;
  --dark-teal-3: #144552;
  --charcoal-blue: #1b3a4b;
  --deep-space-blue: #212f45;
  --space-indigo: #272640;
  --midnight-violet: #312244;
  --midnight-violet-2: #3e1f47;
  --deep-purple: #4d194d;

  /* Neutrals & accents */
  --paper: #fbf7f0;
  --paper-2: #f6f0e4;
  --cream: #f8f3e9;
  --ivory: #f4efe6;
  --ink: #212f45;
  --ink-soft: #4c5b70;
  --gold: #c8a45d;
  --gold-light: #e6cf98;
  --gold-deep: #a3813f;
  --dusty-blue: #8fa8c9;

  /* Type */
  --font-script: 'Great Vibes', 'Segoe Script', cursive;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --narrow: 780px;
  --gutter: clamp(1.15rem, 5vw, 2.5rem);
  --section-y: clamp(4.2rem, 10vw, 7.5rem);

  /* Motion */
  --ease-out: cubic-bezier(.22, .8, .28, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --entrance-dur: 2200ms;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--deep-space-blue);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.18; }
p { margin: 0; }
address { font-style: normal; }

::selection { background: rgba(200, 164, 93, .35); color: #fff; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  padding: .8em 1.4em;
  background: var(--stormy-teal);
  color: #fff;
  font-size: .85rem;
  letter-spacing: .08em;
  text-decoration: none;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

body.is-locked { overflow: hidden; }

/* ---------- Sprite ---------- */
.sprite {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
}

.icon {
  width: 1.35em;
  height: 1.35em;
  display: inline-block;
  vertical-align: -.22em;
  flex: none;
}
.icon--ornament {
  width: clamp(150px, 36vw, 210px);
  height: auto;
  vertical-align: middle;
  color: var(--gold);
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 900;
  background: rgba(255, 255, 255, .06);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
body.has-scrolled .progress { opacity: 1; }
body.is-locked .progress { opacity: 0; }
.progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--stormy-teal), var(--gold), var(--deep-purple));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.container--narrow {
  width: min(var(--narrow), 100% - var(--gutter) * 2);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--cream {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .75), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink);
}
.section--cream::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(163, 129, 63, .22);
  pointer-events: none;
}

.section--dark {
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(0, 100, 102, .35), transparent 60%),
    radial-gradient(90% 80% at 85% 100%, rgba(77, 25, 77, .5), transparent 65%),
    linear-gradient(165deg, var(--dark-teal-3), var(--deep-space-blue) 48%, var(--midnight-violet));
  color: var(--ivory);
}

/* ---------- Section headings ---------- */
.section__eyebrow {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.section__eyebrow--dark { color: var(--gold-deep); }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 5.2vw, 3.3rem);
  font-weight: 500;
  letter-spacing: .012em;
}
.section__title--light { color: var(--ivory); }
.section__title--dark { color: var(--ink); }
.section__title--left { text-align: left; }

.section__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  color: var(--ink-soft);
  margin-top: .8rem;
}
.section__lead--gold { color: var(--gold-light); }

.section__ornament {
  display: block;
  margin: 1.6rem auto 0;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 50px;
  padding: .95em 2.1em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .35s, border-color .35s, color .35s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #2a2337;
  box-shadow: 0 10px 30px -14px rgba(200, 164, 93, .8);
}
.btn--gold:hover { box-shadow: 0 16px 36px -14px rgba(200, 164, 93, .9); transform: translateY(-2px); }

.btn--teal {
  background: linear-gradient(135deg, var(--stormy-teal), var(--dark-teal-2));
  color: var(--ivory);
  box-shadow: 0 10px 30px -16px rgba(0, 100, 102, .9);
}
.btn--teal:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -16px rgba(0, 100, 102, 1); }

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(244, 239, 230, .55);
  color: var(--ivory);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn--outline {
  background: transparent;
  border-color: rgba(200, 164, 93, .75);
  color: var(--gold-light);
}
.btn--outline:hover { background: rgba(200, 164, 93, .14); }

.btn--outline-dark {
  background: transparent;
  border-color: rgba(33, 47, 69, .45);
  color: var(--ink);
}
.btn--outline-dark:hover { border-color: var(--stormy-teal); color: var(--stormy-teal); }

.btn--block { width: 100%; }

.btn.is-loading { pointer-events: none; opacity: .75; }

/* ---------- Reveal on scroll (base: visible; JS hides until observed) ---------- */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Floating action buttons ---------- */
.fab {
  position: fixed;
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 800;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 93, .55);
  background: rgba(27, 58, 75, .82);
  color: var(--gold-light);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px -12px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out),
              background-color .3s, color .3s, border-color .3s;
}
.fab.is-shown { opacity: 1; transform: none; }
.fab:hover { background: var(--stormy-teal); border-color: var(--gold-light); color: #fff; }
.fab .icon { width: 20px; height: 20px; }
.fab--music { left: max(1.1rem, env(safe-area-inset-left)); }
.fab--top { right: max(1.1rem, env(safe-area-inset-right)); }

.fab--music .icon--music-off { display: none; }
.fab--music[aria-pressed="true"] .icon--music-on { display: none; }
.fab--music[aria-pressed="true"] .icon--music-off { display: inline-block; }
.fab--music.is-playing { color: #fff; background: rgba(0, 100, 102, .88); }

/* =========================================================================
   01 · ENTRANCE CURTAIN
   ========================================================================= */
.entrance { display: none; }

.js .entrance {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f1e5, #efe6d5 55%, #e8ddc9);
  overscroll-behavior: none;
  touch-action: manipulation;
}

/* Curtain halves */
.entrance__panel {
  position: absolute;
  top: 0; bottom: 0;
  width: 51%;
  background-color: #f5efe3;
  background-image:
    linear-gradient(90deg, rgba(120, 96, 60, .16), transparent 14%, rgba(255, 255, 255, .55) 34%, rgba(160, 134, 92, .14) 58%, rgba(120, 96, 60, .22) 84%, rgba(255, 255, 255, .5)),
    linear-gradient(180deg, rgba(247, 241, 229, .9), rgba(236, 227, 209, .92)),
    url('../assets/images/entrance-curtain.jpg');
  background-size: 100% 100%, 100% 100%, cover;
  background-position: center;
  will-change: transform;
  transition: transform var(--entrance-dur) cubic-bezier(.62, .02, .24, 1);
}
.entrance__panel--l { left: 0; background-position: left center, center, left center; }
.entrance__panel--r { right: 0; transform: scaleX(-1); background-position: left center, center, right center; }

/* Soft vertical folds */
.entrance__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(120, 96, 60, .10) 0 2px,
      transparent 2px 7%,
      rgba(255, 255, 255, .35) 7% 9%,
      transparent 9% 16%);
  opacity: .5;
  pointer-events: none;
}

/* Botanical detail along the curtains */
.entrance__botanical {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(28px 60px at 18% 16%, rgba(0, 100, 102, .16), transparent 70%),
    radial-gradient(34px 70px at 26% 34%, rgba(77, 25, 77, .12), transparent 70%),
    radial-gradient(24px 54px at 12% 58%, rgba(0, 100, 102, .13), transparent 70%),
    radial-gradient(30px 64px at 22% 82%, rgba(62, 31, 71, .12), transparent 70%),
    radial-gradient(26px 56px at 34% 66%, rgba(77, 25, 77, .10), transparent 70%);
  opacity: .9;
  pointer-events: none;
}

/* Gold trim on the inner edges */
.entrance__trim {
  position: absolute;
  top: 0; bottom: 0;
  width: 34px;
  background:
    linear-gradient(90deg, rgba(163, 129, 63, .0), rgba(200, 164, 93, .55) 45%, rgba(230, 207, 152, .95) 60%, rgba(163, 129, 63, .45));
  box-shadow: inset -1px 0 0 rgba(163, 129, 63, .6), 6px 0 24px -10px rgba(60, 44, 20, .55);
  pointer-events: none;
}
.entrance__panel--l .entrance__trim { right: 0; }
.entrance__panel--r .entrance__trim { left: 0; transform: scaleX(-1); }

.entrance__trim::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  right: 6px;
  width: 1px;
  background: repeating-linear-gradient(180deg, rgba(163, 129, 63, .85) 0 7px, transparent 7px 14px);
}

/* Warm centre glow */
.entrance__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(42% 55% at 50% 46%, rgba(255, 250, 236, .95), rgba(255, 246, 226, .35) 55%, transparent 75%);
  opacity: .85;
  pointer-events: none;
  transition: opacity var(--entrance-dur) var(--ease-soft), transform var(--entrance-dur) var(--ease-soft);
}

/* Centre stage: ribbon + hanging tag */
.entrance__stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--gutter);
  max-height: 100%;
  transition: transform var(--entrance-dur) var(--ease-out), opacity calc(var(--entrance-dur) * .55) var(--ease-out);
}

.entrance__ribbon {
  display: block;
  width: 10px;
  height: clamp(46px, 11vh, 110px);
  background: linear-gradient(90deg, #d8c7a2, #fdf8ec 45%, #cdb98f);
  border: 1px solid rgba(163, 129, 63, .5);
  border-bottom: none;
  box-shadow: 2px 0 8px -4px rgba(60, 44, 20, .5);
}

.entrance__tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 0;
  -webkit-tap-highlight-color: transparent;
}

.entrance__bow {
  display: block;
  width: clamp(120px, 34vw, 190px);
  margin-bottom: -14px;
  filter: drop-shadow(0 8px 14px rgba(50, 62, 84, .28));
  position: relative;
  z-index: 2;
}
.entrance__bow svg { display: block; width: 100%; height: auto; }

.entrance__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55em;
  width: min(84vw, 400px);
  padding: clamp(1.5rem, 4.5vw, 2.3rem) clamp(1.1rem, 4vw, 2rem) clamp(1.3rem, 4vw, 1.9rem);
  background:
    radial-gradient(140% 100% at 50% 0%, rgba(255, 255, 255, .9), transparent 55%),
    linear-gradient(170deg, #fdfaf3, #f4eddd);
  border: 1px solid rgba(163, 129, 63, .55);
  box-shadow:
    0 30px 60px -30px rgba(33, 47, 69, .55),
    inset 0 0 0 5px rgba(251, 247, 240, 1),
    inset 0 0 0 6px rgba(163, 129, 63, .35);
  color: var(--ink);
  position: relative;
}
.entrance__card::before,
.entrance__card::after {
  content: '◆';
  position: absolute;
  font-size: .55rem;
  color: var(--gold-deep);
  top: 10px;
}
.entrance__card::before { left: 12px; }
.entrance__card::after { right: 12px; }

.entrance__kicker {
  font-family: var(--font-sans);
  font-size: clamp(.6rem, 2.4vw, .68rem);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.entrance__names {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 11vw, 3.6rem);
  line-height: 1.12;
  color: var(--dark-teal-2);
}
.entrance__names em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .55em;
  color: var(--gold-deep);
  vertical-align: .18em;
}
.entrance__flourish { display: block; line-height: 0; }
.entrance__request {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(.95rem, 3.4vw, 1.1rem);
  color: var(--ink-soft);
}
.entrance__date {
  font-family: var(--font-sans);
  font-size: clamp(.66rem, 2.7vw, .76rem);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dark-teal-3);
}

.entrance__tap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .7em;
  padding: .85em 2.2em;
  border: 1px solid rgba(0, 100, 102, .55);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 100, 102, .1), rgba(62, 31, 71, .08));
  overflow: visible;
}
.entrance__tap-text {
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--stormy-teal);
  position: relative;
  z-index: 1;
}
.entrance__tap-ring {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(0, 100, 102, .75);
  border-radius: 999px;
  animation: tapPulse 2.6s var(--ease-soft) infinite;
  pointer-events: none;
}

/* =========================================================================
   02 · HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--deep-space-blue);
  padding: clamp(4rem, 10vh, 6rem) var(--gutter);
}

.hero__bg {
  position: absolute;
  inset: -8% 0 -8%;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 69, 82, .78) 0%, rgba(33, 47, 69, .72) 45%, rgba(49, 34, 68, .88) 100%),
    radial-gradient(60% 55% at 50% 45%, rgba(255, 246, 226, .18), transparent 70%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 860px;
  color: var(--ivory);
}

.hero__eyebrow {
  font-size: clamp(.66rem, 2.4vw, .78rem);
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: clamp(.9rem, 3vh, 1.6rem);
}

.hero__names {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .06em .3em;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.6rem, 15vw, 8.5rem);
  line-height: 1.04;
  color: #fffdf7;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.hero__amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .42em;
  color: var(--gold-light);
  transform: translateY(-.12em);
}

.hero__ornament {
  display: block;
  margin: clamp(.9rem, 3vh, 1.4rem) auto;
  line-height: 0;
  opacity: .95;
}

.hero__invite {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  line-height: 1.65;
  color: rgba(244, 239, 230, .92);
}

.hero__meta {
  margin-top: clamp(1.1rem, 3.5vh, 1.7rem);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero__dot { margin: 0 .55em; opacity: .7; }

.hero__place {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-top: .7rem;
  font-size: clamp(.78rem, 2.6vw, .88rem);
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, .82);
}
.hero__place .icon { width: 1.2em; height: 1.2em; color: var(--gold-light); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.7rem, 2.5vw, 1.1rem);
  margin-top: clamp(1.6rem, 5vh, 2.4rem);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: rgba(244, 239, 230, .8);
}
.scroll-cue__line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--gold-light));
  overflow: hidden;
  position: relative;
}
.scroll-cue__line::after {
  content: '';
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: #fff;
  animation: cueDrop 2.2s var(--ease-soft) infinite;
}
.scroll-cue__text {
  font-size: .6rem;
  letter-spacing: .34em;
  text-transform: uppercase;
}

/* =========================================================================
   03 · SCRATCH TO REVEAL
   ========================================================================= */
.section--scratch {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(0, 100, 102, .4), transparent 65%),
    radial-gradient(90% 70% at 80% 100%, rgba(77, 25, 77, .55), transparent 70%),
    linear-gradient(175deg, var(--space-indigo), var(--midnight-violet) 55%, var(--deep-purple));
  color: var(--ivory);
  overflow: hidden;
}
.scratch__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/floral-texture.jpg') center / cover no-repeat;
  opacity: .07;
  mix-blend-mode: screen;
  pointer-events: none;
}
.section--scratch .container { position: relative; z-index: 1; text-align: center; }

.scratch__frame {
  position: relative;
  width: min(560px, 100%);
  margin: clamp(2rem, 6vw, 3rem) auto 0;
  padding: clamp(.5rem, 2vw, .8rem);
  border: 1px solid rgba(200, 164, 93, .5);
  background: rgba(255, 255, 255, .04);
}

.scratch__corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 0 solid var(--gold);
  pointer-events: none;
}
.scratch__corner--tl { top: -6px; left: -6px; border-top-width: 2px; border-left-width: 2px; }
.scratch__corner--tr { top: -6px; right: -6px; border-top-width: 2px; border-right-width: 2px; }
.scratch__corner--bl { bottom: -6px; left: -6px; border-bottom-width: 2px; border-left-width: 2px; }
.scratch__corner--br { bottom: -6px; right: -6px; border-bottom-width: 2px; border-right-width: 2px; }

.scratch__card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, #ffffff, transparent 60%),
    linear-gradient(165deg, var(--paper), var(--paper-2) 70%, #efe7d6);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .8);
  user-select: none;
  -webkit-user-select: none;
}

.scratch__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35em;
  padding: 1rem;
  text-align: center;
  color: var(--ink);
}

.scratch__label {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.scratch__date {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 7vw, 2.9rem);
  font-weight: 600;
  color: var(--dark-teal-2);
  line-height: 1.1;
}
.scratch__flourish { line-height: 0; }
.scratch__day,
.scratch__time {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3.6vw, 1.25rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--midnight-violet);
}
.scratch__day .icon,
.scratch__time .icon { color: var(--gold-deep); }

.scratch__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  transition: opacity .7s var(--ease-soft);
}
.scratch__card.is-revealed .scratch__canvas {
  opacity: 0;
  pointer-events: none;
}

.scratch__burst {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.dust {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0;
  animation: dustBurst 1.4s var(--ease-out) forwards;
}

.scratch__hint {
  margin-top: clamp(1.3rem, 4vw, 1.8rem);
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, .72);
  transition: opacity .5s;
}
.scratch__hint.is-done { opacity: .45; }

.scratch__fallback {
  margin-top: 1rem;
}

/* =========================================================================
   04 · INVITATION / WEDDING DATE
   ========================================================================= */
.invitation__card {
  position: relative;
  text-align: center;
  padding: clamp(2.4rem, 7vw, 4rem) clamp(1.4rem, 6vw, 3.4rem);
  background: linear-gradient(175deg, #fffdf8, var(--paper));
  border: 1px solid rgba(163, 129, 63, .4);
  box-shadow:
    0 40px 80px -50px rgba(33, 47, 69, .55),
    inset 0 0 0 6px #fffdf8,
    inset 0 0 0 7px rgba(163, 129, 63, .3);
}
.invitation__card::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(163, 129, 63, .35);
  pointer-events: none;
}

.invitation__monogram {
  width: 92px; height: 92px;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 100, 102, .5);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--dark-teal-2);
  background: radial-gradient(circle at 30% 25%, #fff, rgba(230, 207, 152, .28));
}

.invitation__kicker {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.invitation__title {
  margin-top: .7rem;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5.4vw, 2.8rem);
  color: var(--ink);
}
.invitation__ornament { display: block; margin: 1.2rem auto; line-height: 0; }

.invitation__body {
  max-width: 52ch;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

.invitation__date {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin: clamp(1.6rem, 5vw, 2.2rem) auto;
  padding: clamp(1rem, 3.5vw, 1.4rem) 0;
  border-top: 1px solid rgba(163, 129, 63, .4);
  border-bottom: 1px solid rgba(163, 129, 63, .4);
}
.invitation__day,
.invitation__time {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.invitation__full {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  font-weight: 600;
  color: var(--dark-teal-2);
}

/* =========================================================================
   05 · COUNTDOWN
   ========================================================================= */
.countdown { text-align: center; }

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.5rem, 2.4vw, 1.4rem);
  margin-top: clamp(2.2rem, 6vw, 3.2rem);
}

.countdown__unit {
  position: relative;
  padding: clamp(1rem, 3.4vw, 1.7rem) .4rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(200, 164, 93, .35);
  overflow: hidden;
}
.countdown__unit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .7;
}

.countdown__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.countdown__label {
  display: block;
  margin-top: .7rem;
  font-size: clamp(.58rem, 2.2vw, .7rem);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, .78);
}

.countdown__done {
  margin-top: clamp(2rem, 6vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.countdown__done-text {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  color: var(--gold-light);
  line-height: 1.2;
}
.countdown__done-sub {
  font-size: .74rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, .85);
}

/* =========================================================================
   06 · TIMELINE
   ========================================================================= */
.timeline-section { overflow: hidden; }

.timeline {
  position: relative;
  margin-top: clamp(2.4rem, 7vw, 3.6rem);
  padding-bottom: .5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 6px; bottom: 6px;
  left: 27px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(163, 129, 63, .75) 8%, rgba(163, 129, 63, .75) 92%, transparent);
}

.timeline__day {
  position: relative;
  z-index: 1;
  margin: clamp(1.6rem, 5vw, 2.4rem) 0 clamp(1rem, 3vw, 1.4rem);
  padding-left: 64px;
}
.timeline__day:first-child { margin-top: 0; }
.timeline__date {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .5em 1.2em;
  background: var(--dark-teal-3);
  color: var(--gold-light);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  border: 1px solid rgba(200, 164, 93, .4);
}
.timeline__date .icon { width: 1.1em; height: 1.1em; }

.timeline__item {
  position: relative;
  z-index: 1;
  padding-left: 64px;
  margin-bottom: clamp(1.2rem, 4vw, 1.8rem);
}

.timeline__node {
  position: absolute;
  left: 4px;
  top: .3rem;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid rgba(163, 129, 63, .75);
  border-radius: 50%;
  color: var(--stormy-teal);
  box-shadow: 0 0 0 5px rgba(251, 247, 240, 1), 0 8px 20px -10px rgba(33, 47, 69, .5);
}
.timeline__node .icon { width: 20px; height: 20px; }

.timeline__card {
  background: linear-gradient(170deg, #fffdf8, var(--paper));
  border: 1px solid rgba(33, 47, 69, .12);
  border-left: 3px solid var(--gold);
  padding: clamp(1.1rem, 4vw, 1.5rem) clamp(1.1rem, 4vw, 1.6rem);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.timeline__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -30px rgba(33, 47, 69, .6);
}

.timeline__time {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.timeline__title {
  margin-top: .35rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4.4vw, 1.75rem);
  color: var(--ink);
}
.timeline__note {
  margin-top: .45rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 3.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* =========================================================================
   07 · VENUE
   ========================================================================= */
.section--dark.venue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/floral-texture.jpg') center / cover no-repeat;
  opacity: .06;
  mix-blend-mode: screen;
  pointer-events: none;
}
.venue .container { position: relative; z-index: 1; }

.venue__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.venue__media {
  position: relative;
  margin: 0;
}
.venue__media::after {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(200, 164, 93, .6);
  pointer-events: none;
}
.venue__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.92) contrast(1.02);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85);
}
.venue__caption {
  margin-top: 1.1rem;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, .66);
}

.venue__body { text-align: left; }
.venue__name {
  margin-top: 1.2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--gold-light);
}
.venue__address {
  margin-top: .9rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  line-height: 1.75;
  color: rgba(244, 239, 230, .9);
}
.venue__ornament { display: block; margin: 1.4rem 0 1.6rem; line-height: 0; }

/* =========================================================================
   08 · DRESS CODE
   ========================================================================= */
.dress__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 4vw, 2rem);
  margin-top: clamp(2.2rem, 6vw, 3rem);
}

.dress__card {
  position: relative;
  text-align: center;
  padding: clamp(1.8rem, 5vw, 2.6rem) clamp(1.2rem, 4vw, 2rem);
  background: linear-gradient(175deg, #fffdf8, var(--paper));
  border: 1px solid rgba(33, 47, 69, .14);
  transition: transform .45s var(--ease-out), border-color .45s, box-shadow .45s;
}
.dress__card:hover {
  transform: translateY(-6px);
  border-color: rgba(163, 129, 63, .65);
  box-shadow: 0 30px 55px -35px rgba(33, 47, 69, .65);
}
.dress__card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(163, 129, 63, .3);
  pointer-events: none;
}

.dress__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border: 1px solid rgba(0, 100, 102, .45);
  border-radius: 50%;
  color: var(--dark-teal-2);
  background: radial-gradient(circle at 32% 26%, #fff, rgba(230, 207, 152, .3));
}
.dress__icon .icon { width: 28px; height: 28px; }

.dress__label {
  margin-top: 1.1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.5vw, 1.9rem);
  color: var(--ink);
}
.dress__text {
  margin-top: .5rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

/* =========================================================================
   09 · PRE-WEDDING EVENTS
   ========================================================================= */
.events .section__ornament { margin-inline: auto; display: block; }
.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.6rem);
  margin-top: clamp(2.2rem, 6vw, 3rem);
}

.event-card {
  position: relative;
  text-align: center;
  padding: clamp(1.8rem, 5vw, 2.4rem) clamp(1.1rem, 3vw, 1.6rem);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(200, 164, 93, .32);
  transition: transform .45s var(--ease-out), background-color .45s, border-color .45s;
}
.event-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(200, 164, 93, .8);
}
.event-card::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 14px;
  width: 26px; height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  opacity: .6;
}

.event-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border: 1px solid rgba(200, 164, 93, .55);
  border-radius: 50%;
  color: var(--gold-light);
}
.event-card__icon .icon { width: 26px; height: 26px; }

.event-card__date {
  margin-top: 1.2rem;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.event-card__time {
  margin-top: .3rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(244, 239, 230, .8);
}
.event-card__title {
  margin-top: .55rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.5vw, 1.95rem);
  color: #fffdf7;
}
.event-card__place {
  margin-top: .4rem;
  font-size: .82rem;
  letter-spacing: .06em;
  color: rgba(244, 239, 230, .75);
}

/* =========================================================================
   10–12 · TRANSPORT · ACCOMMODATION · GIFTS
   ========================================================================= */
.info { padding-block: clamp(3.4rem, 8vw, 5.5rem); }

.info__card {
  text-align: center;
  padding: clamp(2rem, 6vw, 3rem) clamp(1.4rem, 5vw, 2.6rem);
  background: linear-gradient(175deg, #fffdf8, var(--paper));
  border: 1px solid rgba(33, 47, 69, .14);
  position: relative;
}
.info__card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(163, 129, 63, .3);
  pointer-events: none;
}
.info__card--dark {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(200, 164, 93, .4);
}
.info__card--dark::before { border-color: rgba(200, 164, 93, .3); }

.info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--stormy-teal);
  opacity: .9;
}
.info__card--dark .info__icon { color: var(--gold-light); }
.info__icon .icon { width: 27px; height: 27px; }

.info__title {
  margin-top: 1.1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  color: var(--ink);
}
.info__card--dark .info__title { color: var(--ivory); }

.info__text {
  max-width: 56ch;
  margin: .9rem auto 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  line-height: 1.8;
  color: var(--ink-soft);
}
.info__card--dark .info__text { color: rgba(244, 239, 230, .88); }

/* Gifts */
.gifts__inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.gifts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px; height: 74px;
  border: 1px solid rgba(163, 129, 63, .65);
  border-radius: 50%;
  color: var(--gold-deep);
  background: radial-gradient(circle at 32% 26%, #fff, rgba(230, 207, 152, .35));
}
.gifts__icon .icon { width: 32px; height: 32px; }
.gifts__inner .info__title { margin-top: 1.2rem; }
.gifts__ornament { display: block; margin: 1rem auto; line-height: 0; }
.gifts__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

/* =========================================================================
   13 · RSVP
   ========================================================================= */
.section--rsvp {
  background:
    radial-gradient(85% 60% at 15% 0%, rgba(0, 100, 102, .45), transparent 62%),
    radial-gradient(85% 70% at 90% 100%, rgba(62, 31, 71, .75), transparent 68%),
    linear-gradient(168deg, var(--charcoal-blue), var(--space-indigo) 55%, var(--midnight-violet-2));
  color: var(--ivory);
  overflow: hidden;
}
.rsvp__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/floral-texture.jpg') center / cover no-repeat;
  opacity: .06;
  mix-blend-mode: screen;
  pointer-events: none;
}
.section--rsvp .container { position: relative; z-index: 1; text-align: center; }

.rsvp__card {
  margin-top: clamp(2rem, 6vw, 3rem);
  padding: clamp(1.7rem, 6vw, 3rem);
  background: linear-gradient(175deg, #fffdf8, var(--paper));
  border: 1px solid rgba(200, 164, 93, .55);
  box-shadow:
    0 50px 90px -55px rgba(0, 0, 0, .9),
    inset 0 0 0 6px #fffdf8,
    inset 0 0 0 7px rgba(163, 129, 63, .32);
  text-align: left;
}

.rsvp__form { display: grid; gap: clamp(1.1rem, 3.5vw, 1.5rem); }

.field { display: grid; gap: .5rem; }
.field__label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
}
.field__req { color: var(--gold-deep); }

.field__input {
  width: 100%;
  min-height: 52px;
  padding: .9em 1.05em;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid rgba(33, 47, 69, .25);
  border-radius: 2px;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: rgba(76, 91, 112, .6); }
.field__input:hover { border-color: rgba(33, 47, 69, .45); }
.field__input:focus {
  outline: none;
  border-color: var(--stormy-teal);
  box-shadow: 0 0 0 3px rgba(0, 100, 102, .18);
  background: #ffffff;
}
.field__input:focus-visible { outline: none; }

.field__input--select {
  padding-right: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23212f45' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1em center;
  cursor: pointer;
}
.field__input--area { min-height: 120px; resize: vertical; line-height: 1.65; }

.field__input[aria-invalid="true"] {
  border-color: #9e3b33;
  background: #fff8f6;
}
.field__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(158, 59, 51, .18);
}

.field__error {
  font-size: .78rem;
  letter-spacing: .04em;
  color: #8f352e;
}
.field__error::before { content: '↺ '; }

.rsvp__status {
  padding: .85em 1.1em;
  font-size: .85rem;
  background: rgba(158, 59, 51, .08);
  border: 1px solid rgba(158, 59, 51, .4);
  color: #8f352e;
}

.rsvp__success {
  text-align: center;
  padding: clamp(1rem, 4vw, 2rem) 0;
}
.rsvp__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px; height: 74px;
  border: 1px solid rgba(0, 100, 102, .55);
  border-radius: 50%;
  color: var(--stormy-teal);
  background: radial-gradient(circle at 32% 26%, #fff, rgba(230, 207, 152, .35));
  animation: successPop .7s var(--ease-out) both;
}
.rsvp__success-icon .icon { width: 32px; height: 32px; }
.rsvp__success-title {
  margin-top: 1.2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  color: var(--dark-teal-2);
}
.rsvp__success-text {
  max-width: 48ch;
  margin: .8rem auto 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 3.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

.rsvp__note {
  margin-top: clamp(1.8rem, 5vw, 2.6rem);
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--gold-light);
}

/* =========================================================================
   14 · CLOSING
   ========================================================================= */
.closing {
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(75% 60% at 50% 10%, rgba(0, 100, 102, .4), transparent 65%),
    linear-gradient(180deg, var(--deep-purple) 0%, var(--midnight-violet-2) 45%, var(--midnight-violet) 100%);
  color: var(--ivory);
  padding-block: clamp(5rem, 13vw, 8.5rem);
}
.closing__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/wedding-background.jpg') center / cover no-repeat;
  opacity: .1;
  mix-blend-mode: screen;
  pointer-events: none;
}
.closing .container { position: relative; z-index: 1; }

.closing__inner { display: flex; flex-direction: column; align-items: center; }
.closing__sprig { line-height: 0; opacity: .5; display: none; }

.closing__kicker {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.closing__names {
  margin-top: 1rem;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.2rem, 13vw, 6.5rem);
  line-height: 1.1;
  color: #fffdf7;
  text-shadow: 0 4px 34px rgba(0, 0, 0, .4);
}
.closing__ornament { display: block; margin: 1.2rem auto; line-height: 0; }
.closing__message {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  color: rgba(244, 239, 230, .92);
}
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.7rem, 2.5vw, 1.1rem);
  margin-top: clamp(1.8rem, 5vw, 2.6rem);
}

/* =========================================================================
   15 · FOOTER
   ========================================================================= */
.footer {
  background: linear-gradient(180deg, var(--deep-space-blue), #131a29 85%);
  color: var(--ivory);
  text-align: center;
  padding: clamp(2.6rem, 7vw, 4rem) 0 calc(clamp(2.6rem, 7vw, 4rem) + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(200, 164, 93, .3);
}
.footer__names {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 7vw, 3rem);
  color: var(--gold-light);
  line-height: 1.3;
}
.footer__date {
  margin-top: .4rem;
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, .68);
}
.footer__ornament { display: block; margin: 1.2rem auto; line-height: 0; opacity: .7; }
.footer__credit {
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(244, 239, 230, .55);
}
.footer__credit a {
  color: rgba(230, 207, 152, .8);
  text-decoration: none;
  border-bottom: 1px dotted rgba(230, 207, 152, .5);
  padding-bottom: 1px;
  transition: color .3s, border-color .3s;
}
.footer__credit a:hover { color: var(--gold-light); border-color: var(--gold-light); }
