:root {
  --wine: #74122d;
  --rose: #c43a5e;
  --blush: #ffe2df;
  --ivory: #fff8ed;
  --cream: #f7ead2;
  --gold: #d6a34a;
  --leaf: #304f3e;
  --ink: #2b1714;
  --shadow: 0 24px 70px rgba(80, 22, 25, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(196, 58, 94, 0.28), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(48, 79, 62, 0.2), transparent 28rem),
    linear-gradient(135deg, #fffaf2 0%, #fce6dd 42%, #fff6e7 100%);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
}

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    linear-gradient(rgba(28, 11, 11, 0.28), rgba(28, 11, 11, 0.38)),
    radial-gradient(circle at center, #8f2440 0%, #3a111b 48%, #120809 100%);
}

.loader-screen::before,
.loader-screen::after {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(255, 231, 180, 0.35);
  border-radius: 50%;
  animation: haloPulse 4s ease-in-out infinite;
}

.loader-screen::after {
  width: 31rem;
  height: 31rem;
  animation-delay: 1.2s;
}

.loader-glow {
  position: absolute;
  width: min(44rem, 86vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 142, 0.32), transparent 65%);
  filter: blur(8px);
}

.loader-envelope {
  position: absolute;
  width: min(41rem, 86vw);
  max-height: 62vh;
  object-fit: contain;
  filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.35));
  opacity: 0.95;
}

.loader-copy {
  position: absolute;
  left: 50%;
  bottom: max(clamp(2.75rem, 8svh, 5.25rem), env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(34rem, 92vw);
  text-align: center;
  color: #fff7e9;
  text-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.brand-mark,
.eyebrow,
.section-kicker,
.role {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font: 700 0.78rem/1.2 "Inter", system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.loader-copy p:not(.brand-mark) {
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.open-btn,
.pill-link,
.music-toggle {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.open-btn,
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  color: #fff9ec;
  background: linear-gradient(135deg, #8d1736, #c43a5e 52%, #d7a247);
  box-shadow: 0 1rem 2rem rgba(78, 15, 27, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-weight: 800;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.open-btn:hover,
.pill-link:hover {
  color: #fff9ec;
  transform: translateY(-3px);
  box-shadow: 0 1.2rem 2.4rem rgba(78, 15, 27, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.pill-link:not(.primary) {
  color: var(--wine);
  background: rgba(255, 248, 237, 0.82);
  border: 1px solid rgba(214, 163, 74, 0.46);
}

.pill-link:not(.primary):hover {
  color: var(--wine);
}

.site-shell {
  opacity: 0;
  transform-origin: 50% 0%;
}

.music-toggle {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 12;
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  color: #fff;
  background: rgba(116, 18, 45, 0.92);
  box-shadow: var(--shadow);
}

body.is-loading .music-toggle {
  opacity: 0;
  pointer-events: none;
}

.music-bars {
  display: flex;
  align-items: end;
  gap: 0.18rem;
  height: 1.1rem;
}

.music-bars i {
  display: block;
  width: 0.22rem;
  height: 0.65rem;
  border-radius: 1rem;
  background: #ffe7b2;
  animation: equalizer 0.7s ease-in-out infinite;
}

.music-bars i:nth-child(2) {
  height: 1.05rem;
  animation-delay: 0.12s;
}

.music-bars i:nth-child(3) {
  height: 0.8rem;
  animation-delay: 0.24s;
}

.music-toggle.is-paused .music-bars i {
  height: 0.28rem;
  animation: none;
}

.hero-section {
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: -2;
  border: 1px solid rgba(214, 163, 74, 0.34);
  border-radius: 1.5rem;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.94), rgba(255, 248, 237, 0.84) 22rem, transparent 34rem),
    linear-gradient(150deg, rgba(116, 18, 45, 0.08), rgba(214, 163, 74, 0.17));
}

.hero-container {
  position: relative;
  z-index: 2;
  padding-block: 5rem;
}

.couple-name {
  margin: 0;
  color: var(--wine);
  font-family: "Great Vibes", cursive;
  font-size: clamp(4.2rem, 12vw, 9.4rem);
  font-weight: 400;
  line-height: 0.9;
  text-shadow: 0 0.7rem 1.7rem rgba(116, 18, 45, 0.12);
}

.ampersand {
  margin: 0.1rem 0;
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
}

.hero-note {
  width: min(35rem, 94%);
  margin: 1.4rem auto 0;
  color: #5c3530;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.hero-actions,
.venue-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 3;
  width: 1.6rem;
  height: 2.5rem;
  border: 1px solid rgba(116, 18, 45, 0.38);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 0.45rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--wine);
  transform: translateX(-50%);
  animation: scrollDot 1.5s ease-in-out infinite;
}

.scratch-date-section,
.invitation-band,
.family-section,
.moments-section,
.venue-section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.scratch-date-section {
  padding-top: clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 163, 74, 0.26), transparent 34rem),
    linear-gradient(180deg, rgba(255, 248, 237, 0.22), rgba(255, 255, 255, 0));
}

.invitation-band {
  background:
    radial-gradient(circle at 12% 18%, rgba(196, 58, 94, 0.12), transparent 20rem),
    radial-gradient(circle at 88% 72%, rgba(48, 79, 62, 0.1), transparent 22rem),
    linear-gradient(180deg, rgba(255, 248, 237, 0), rgba(255, 255, 255, 0.34), rgba(255, 226, 223, 0.1));
}

.scratch-card {
  position: relative;
  width: min(54rem, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(214, 163, 74, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.9), rgba(255, 229, 222, 0.78)),
    radial-gradient(circle at top right, rgba(196, 58, 94, 0.22), transparent 22rem);
  box-shadow: var(--shadow);
  text-align: center;
}

.scratch-card::before {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(116, 18, 45, 0.15);
  border-radius: 8px;
  pointer-events: none;
}

.scratch-intro {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.scratch-intro h2 {
  margin: 0;
  color: var(--wine);
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 700;
}

.scratch-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 46rem;
  aspect-ratio: 1.9;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(214, 163, 74, 0.72);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ea, #ffe2df);
  box-shadow:
    inset 0 0 0 0.5rem rgba(255, 255, 255, 0.35),
    0 1rem 2.4rem rgba(80, 22, 25, 0.17);
  cursor: grab;
  touch-action: none;
}

.scratch-stage.is-scratching {
  cursor: grabbing;
}

.scratch-stage.is-revealed {
  cursor: default;
}

.scratch-secret {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.28rem;
  padding: 1.2rem;
  color: var(--wine);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96), rgba(255, 243, 227, 0.88)),
    linear-gradient(135deg, rgba(214, 163, 74, 0.2), rgba(196, 58, 94, 0.12));
}

.scratch-secret span {
  color: var(--leaf);
  font-family: "Cinzel", serif;
  font-size: clamp(0.95rem, 3vw, 1.25rem);
  font-weight: 700;
}

.scratch-secret strong {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 10vw, 5.4rem);
  font-weight: 400;
  line-height: 0.92;
}

.scratch-secret em {
  color: #6f433b;
  font-family: "Cinzel", serif;
  font-size: clamp(0.9rem, 3vw, 1.15rem);
  font-style: normal;
  font-weight: 700;
}

#scratchCanvas,
.scratch-shine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#scratchCanvas {
  z-index: 3;
  display: block;
}

.scratch-shine {
  z-index: 4;
  opacity: 0.42;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.62) 42%, transparent 64%);
  transform: translateX(-112%);
  animation: foilSweep 2.8s ease-in-out infinite;
}

.scratch-stage.is-revealed .scratch-shine {
  display: none;
}

.invite-panel,
.venue-card {
  position: relative;
  width: min(54rem, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.8rem);
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(rgba(255, 248, 237, 0.9), rgba(255, 248, 237, 0.9)),
    url("assets/opening-envelope.png") center/cover;
  border: 1px solid rgba(214, 163, 74, 0.5);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.invite-panel {
  width: min(70rem, 100%);
  padding: clamp(2.1rem, 6vw, 5.5rem) clamp(1.2rem, 5vw, 5rem);
  background:
    linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(255, 242, 228, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(214, 163, 74, 0.18), transparent 28rem);
  border: 1px solid rgba(214, 163, 74, 0.72);
  box-shadow:
    0 2rem 5rem rgba(80, 22, 25, 0.16),
    inset 0 0 0 0.65rem rgba(255, 255, 255, 0.46),
    inset 0 0 0 0.72rem rgba(214, 163, 74, 0.12);
}

.invite-panel::before,
.venue-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(116, 18, 45, 0.14);
  border-radius: 8px;
  pointer-events: none;
}

.invite-panel::before {
  inset: clamp(0.8rem, 2vw, 1.35rem);
  border-color: rgba(214, 163, 74, 0.34);
}

.invite-panel::after {
  content: "";
  position: absolute;
  right: clamp(-10rem, -10vw, -4rem);
  bottom: clamp(-8rem, -10vw, -3rem);
  z-index: 0;
  width: min(42rem, 70%);
  aspect-ratio: 3 / 2;
  background: url("assets/opening-envelope.png") center/contain no-repeat;
  opacity: 0.16;
  filter: saturate(0.9);
  transform: rotate(-5deg);
  pointer-events: none;
}

.invite-panel > * {
  position: relative;
  z-index: 2;
}

.panel-corner {
  position: absolute;
  width: 7rem;
  aspect-ratio: 1;
  border: solid rgba(214, 163, 74, 0.72);
  pointer-events: none;
}

.invite-panel .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: #b9852e;
}

.invite-panel .section-kicker::before,
.invite-panel .section-kicker::after {
  content: "";
  width: clamp(2rem, 7vw, 4.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 163, 74, 0.95));
}

.invite-panel .section-kicker::after {
  background: linear-gradient(90deg, rgba(214, 163, 74, 0.95), transparent);
}

.panel-corner.top-left {
  top: 1.1rem;
  left: 1.1rem;
  border-width: 2px 0 0 2px;
}

.panel-corner.bottom-right {
  right: 1.1rem;
  bottom: 1.1rem;
  border-width: 0 2px 2px 0;
}

.invite-panel h2,
.section-heading h2,
.moment-copy h2,
.venue-card h2 {
  margin: 0;
  color: var(--wine);
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
}

.invite-panel h2 {
  width: min(45rem, 100%);
  margin: 0 auto;
  font-size: clamp(2.35rem, 7vw, 5.3rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0.8rem 1.8rem rgba(116, 18, 45, 0.08);
}

.invite-text,
.moment-copy p,
.venue-card p {
  margin: 1.2rem auto 0;
  color: #66423a;
  font-size: 1.05rem;
  line-height: 1.8;
}

.invite-text {
  max-width: 42rem;
}

.invite-panel .invite-text {
  max-width: 50rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  color: #5c3832;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.95;
}

.date-lockup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  width: min(36rem, 100%);
  margin: 2.2rem auto 0;
  color: var(--wine);
}

.invite-panel .date-lockup {
  width: min(42rem, 100%);
  margin-top: clamp(2rem, 4vw, 3rem);
  gap: clamp(0.65rem, 2vw, 1.4rem);
}

.date-lockup::before,
.date-lockup::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 163, 74, 0.85), transparent);
}

.date-lockup span {
  font-family: "Cinzel", serif;
  font-weight: 700;
}

.invite-panel .date-lockup span {
  display: grid;
  min-height: 3rem;
  place-items: center;
  color: var(--wine);
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  text-transform: uppercase;
}

.date-lockup strong {
  display: grid;
  place-items: center;
  width: clamp(5rem, 16vw, 7rem);
  aspect-ratio: 1;
  border: 1px solid rgba(214, 163, 74, 0.8);
  border-radius: 50%;
  color: var(--wine);
  background: rgba(255, 255, 255, 0.62);
  font-family: "Cinzel", serif;
  font-size: clamp(2.4rem, 8vw, 4rem);
  box-shadow: inset 0 0 0 0.55rem rgba(214, 163, 74, 0.12);
}

.invite-panel .date-lockup strong {
  width: clamp(5.5rem, 14vw, 7.6rem);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.95), rgba(255, 248, 237, 0.78)),
    linear-gradient(145deg, rgba(214, 163, 74, 0.28), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(214, 163, 74, 0.95);
  box-shadow:
    0 1rem 2rem rgba(80, 22, 25, 0.12),
    inset 0 0 0 0.55rem rgba(255, 255, 255, 0.7),
    inset 0 0 0 0.7rem rgba(214, 163, 74, 0.12);
  font-size: clamp(3rem, 8vw, 5rem);
}

.muhurat {
  margin: 1.3rem 0 0;
  color: var(--leaf);
  font-weight: 800;
}

.invite-panel .muhurat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.4rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid rgba(48, 79, 62, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #2f5944;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.section-heading {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.family-section {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 248, 237, 0.25), rgba(255, 226, 223, 0.4));
}

.family-section .container {
  position: relative;
  z-index: 2;
}

.family-frame-stage {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.family-cards-row {
  position: relative;
  z-index: 3;
  align-items: center;
}

.family-image-panel {
  position: relative;
  width: min(100%, 31rem);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  isolation: isolate;
}

.family-border {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 1.3rem 2rem rgba(87, 34, 20, 0.15));
  pointer-events: none;
}

.family-card {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 2;
  display: grid;
  place-content: center;
  width: 68%;
  min-height: 42%;
  padding: clamp(1rem, 2.4vw, 1.55rem);
  /* background: rgba(255, 248, 237, 0.8);
  backdrop-filter: blur(2px); */
  /* border: 1px solid rgba(214, 163, 74, 0.28); */
  /* border-radius: 8px; */
  /* box-shadow: 0 1rem 2.4rem rgba(80, 22, 25, 0.1); */
  text-align: center;
  transform: translate(-50%, -50%);
  transition: box-shadow 220ms ease;
}

.family-card:hover {
  box-shadow: var(--shadow);
}

.family-card h3 {
  margin: 0 0 0.75rem;
  color: var(--wine);
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  font-weight: 400;
  line-height: 0.95;
}

.family-card p {
  margin: 0 0 0.55rem;
  color: #78504a;
}

.family-card strong,
.family-card em {
  display: block;
  color: var(--ink);
  font-family: "Cinzel", serif;
  font-size: clamp(0.95rem, 2vw, 1.18rem);
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.family-card em {
  margin-top: 0.45rem;
  color: #6a403c;
}

.moments-section {
  background:
    linear-gradient(90deg, rgba(116, 18, 45, 0.08), transparent 42%, rgba(48, 79, 62, 0.08)),
    rgba(255, 255, 255, 0.28);
}

.ring-wrap {
  position: relative;
  overflow: visible;
  border-radius: 0;
  transform-style: preserve-3d;
  transition: transform 160ms ease;
}

.ring-wrap img {
  display: block;
  width: 100%;
  border-radius: 0;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 2rem 2.6rem rgba(80, 22, 25, 0.18));
}

.moment-copy {
  max-width: 40rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.detail-grid div {
  padding: 1rem;
  background: rgba(255, 248, 237, 0.74);
  border: 1px solid rgba(214, 163, 74, 0.35);
  border-radius: 8px;
}

.detail-grid span {
  display: block;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--wine);
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.venue-card {
  background:
    linear-gradient(rgba(255, 248, 237, 0.9), rgba(255, 248, 237, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(214, 163, 74, 0.28), transparent 24rem);
}

.footer-note {
  position: relative;
  min-height: clamp(24rem, 46vw, 34rem);
  padding: clamp(4rem, 9vw, 7rem) 1rem clamp(5rem, 10vw, 8rem);
  overflow: hidden;
  text-align: center;
  color: #fff9ef;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 163, 74, 0.16), transparent 20rem),
    radial-gradient(circle at 18% 78%, rgba(196, 58, 94, 0.18), transparent 14rem),
    linear-gradient(180deg, #4a2f23 0%, #3b271f 100%);
}

.footer-note::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 72%);
  pointer-events: none;
}

.footer-note p,
.footer-note h2 {
  position: relative;
  z-index: 2;
  margin: 0;
}

.footer-kicker {
  color: rgba(255, 249, 239, 0.82);
  font-family: "Cinzel", serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  text-transform: uppercase;
}

.footer-note h2 {
  margin-top: 0.7rem;
  color: #fff9ef;
  font-family: "Great Vibes", cursive;
  font-size: clamp(4rem, 11vw, 7.8rem);
  font-weight: 400;
  line-height: 0.92;
  text-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.footer-date {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  color: rgba(255, 249, 239, 0.9);
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.footer-tag {
  margin-top: 0.65rem;
  color: rgba(255, 249, 239, 0.86);
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
}

.footer-flower {
  position: relative;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  margin: 1.7rem auto 0;
  transform: rotate(-18deg);
}

.footer-flower span,
.footer-petal {
  position: absolute;
  display: block;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(135deg, #ffc1cb, #c43a5e);
}

.footer-flower span {
  width: 0.78rem;
  height: 1.1rem;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
}

.footer-flower span:nth-child(1) {
  transform: rotate(0deg) translate(0.1rem, -1rem);
}

.footer-flower span:nth-child(2) {
  transform: rotate(90deg) translate(0.1rem, -1rem);
}

.footer-flower span:nth-child(3) {
  transform: rotate(180deg) translate(0.1rem, -1rem);
}

.footer-flower span:nth-child(4) {
  transform: rotate(270deg) translate(0.1rem, -1rem);
}

.footer-butterfly {
  position: relative;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0 auto 2rem;
}

.footer-butterfly span {
  position: absolute;
  top: 0.35rem;
  width: 0.78rem;
  height: 1.08rem;
  border-radius: 70% 70% 45% 45%;
  background: linear-gradient(135deg, #6fa0ff, #2e63d8);
}

.footer-butterfly span:first-child {
  left: 0.28rem;
  transform: rotate(-28deg);
}

.footer-butterfly span:nth-child(2) {
  right: 0.28rem;
  transform: rotate(28deg);
}

.footer-butterfly i {
  position: absolute;
  left: 50%;
  top: 0.15rem;
  width: 1px;
  height: 1.9rem;
  background: rgba(18, 22, 36, 0.65);
  transform: translateX(-50%);
}

.footer-petal {
  z-index: 1;
  width: 1rem;
  height: 1.45rem;
  opacity: 0.9;
}

.footer-petal-one {
  left: 7%;
  top: 8%;
  transform: rotate(18deg);
}

.footer-petal-two {
  right: 8%;
  top: 2%;
  background: linear-gradient(135deg, #f2d45e, #9eb94e);
  transform: rotate(78deg);
}

.footer-petal-three {
  left: 17%;
  bottom: 25%;
  background: linear-gradient(135deg, #e9d8ff, #8aa15d);
  transform: rotate(-32deg);
}

.footer-petal-four {
  right: 20%;
  bottom: 18%;
  transform: rotate(64deg);
}

.petal {
  position: fixed;
  top: -3rem;
  z-index: 4;
  width: 0.8rem;
  height: 1.25rem;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(135deg, #ffb7c2, #c43a5e);
  opacity: 0.72;
  pointer-events: none;
}

@keyframes haloPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.6;
  }
}

@keyframes equalizer {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 0.95rem);
  }
}

@keyframes foilSweep {
  0%,
  38% {
    transform: translateX(-112%);
  }
  72%,
  100% {
    transform: translateX(112%);
  }
}

@media (max-width: 991px) {
  .family-frame-stage {
    padding-block: 3.5rem;
  }

  .family-image-panel {
    width: min(100%, 28rem);
  }

  .hero-container {
    padding-inline: 1.2rem;
  }
}

@media (max-width: 575px) {
  .loader-copy {
    position: fixed;
    top: auto;
    bottom: calc(5.75rem + env(safe-area-inset-bottom));
    width: min(22rem, 86vw);
    transform: translateX(-50%) !important;
  }

  .loader-envelope {
    width: min(34rem, 96vw);
    max-height: 50svh;
    transform: translateY(-12svh);
  }

  .open-btn {
    min-height: 3.35rem;
    padding: 0.9rem 1.35rem;
  }

  .hero-section::before {
    inset: 0.6rem;
    border-radius: 1rem;
  }

  .couple-name {
    font-size: clamp(3.8rem, 20vw, 5.8rem);
  }

  .hero-actions,
  .venue-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pill-link {
    width: 100%;
  }

  .date-lockup {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .date-lockup::before,
  .date-lockup::after {
    display: none;
  }

  .date-lockup strong {
    justify-self: center;
  }

  .scratch-card {
    padding: 1.2rem;
  }

  .scratch-card::before {
    inset: 0.55rem;
  }

  .scratch-stage {
    aspect-ratio: 1.2;
  }

  .family-frame-stage {
    padding: 3rem 0;
  }

  .family-image-panel {
    width: min(100%, 24rem);
  }

  .family-card {
    top: 53%;
    width: 72%;
    min-height: 39%;
    padding: 1.3rem 0.9rem;
  }

  .family-card h3 {
    font-size: clamp(2.7rem, 14vw, 4.1rem);
  }

  .family-card strong,
  .family-card em {
    font-size: clamp(0.88rem, 4.4vw, 1.05rem);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .venue-card {
    background:
      linear-gradient(rgba(255, 248, 237, 0.9), rgba(255, 248, 237, 0.94)),
      radial-gradient(circle at 50% 0%, rgba(214, 163, 74, 0.26), transparent 20rem);
  }
}

@media (max-width: 575px) and (max-height: 700px) {
  .loader-copy {
    bottom: calc(4.6rem + env(safe-area-inset-bottom));
  }

  .loader-envelope {
    width: min(30rem, 90vw);
    max-height: 44svh;
    transform: translateY(-14svh);
  }
}

@media (max-width: 575px) and (max-height: 610px) {
  .loader-copy {
    bottom: calc(3.5rem + env(safe-area-inset-bottom));
  }

  .loader-envelope {
    width: min(27rem, 84vw);
    max-height: 38svh;
    transform: translateY(-16svh);
  }
}
