/* ==========================================
   WEDDING INVITATION — FRESH ROMANTIC REDESIGN
   Palette: Blush - Cream - Rose Gold - Champagne
   ========================================== */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=DM+Sans:wght@300;400;500;600&family=Great+Vibes&display=swap");

/* ===== TOKENS ===== */
:root {
  /* Base colors */
  --rose:        #b55368;
  --rose-dark:   #6f2437;
  --rose-light:  #e8a4b2;
  --blush:       #f6d9df;
  --blush-2:     #fde9ed;
  --gold:        #c79a55;
  --gold-light:  #ead18b;
  --champagne:   #d8b66b;
  --champagne-light: #f2dfb3;
  --cream:       #fdf8f2;
  --cream-2:     #f9f0e6;
  --petal:       #fff0f5;
  --ink:         #2a1219;
  --ink-2:       #4a2c35;
  --muted:       #8a6a72;
  --white:       #ffffff;

  /* Gradients */
  --grad-hero:   linear-gradient(160deg, #2a1219 0%, #512033 50%, #2a1219 100%);
  --grad-cover:  linear-gradient(150deg, #fdf8f2 0%, #fde9ed 50%, #f6d9df 100%);
  --grad-event:  linear-gradient(145deg, #fff7f2 0%, #fde9ed 52%, #f6d9df 100%);
  --grad-rsvp:   linear-gradient(140deg, #fff0f5 0%, #fde9ed 60%, #f6d9df 100%);
  --grad-gold:   linear-gradient(135deg, #c79a55, #ead18b, #c79a55);
  --grad-rose:   linear-gradient(135deg, #b55368, #e8608a);

  /* Shadows */
  --shadow-sm:   0 2px 12px rgba(42,18,25,0.08);
  --shadow-md:   0 8px 32px rgba(42,18,25,0.13);
  --shadow-lg:   0 20px 70px rgba(42,18,25,0.17);
  --shadow-xl:   0 32px 100px rgba(42,18,25,0.22);

  /* Typography */
  --serif:  "Playfair Display", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans:   "DM Sans", "Segoe UI", Arial, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 40px;

  /* Spacing */
  --section-pad: 120px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; min-height: 100%; background: var(--cream); }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

body.cover-mode {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255,248,242,0.92) 0%, rgba(253,233,237,0.9) 34%, rgba(246,217,223,0.92) 64%, #f9f0e6 100%);
}
body.cover-mode .site-header,
body.cover-mode .demo-banner,
body.cover-mode main,
body.cover-mode .site-footer {
  visibility: hidden;
}
body.menu-open    { overflow: hidden; }
body.lightbox-open{ overflow: hidden; }

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1,h2,h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
p { margin: 0; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section-padded {
  padding-block: var(--section-pad);
}

/* ===== SECTION EYEBROW ===== */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--rose);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--rose-light);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--grad-rose);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(181,64,91,0.35);
}
.btn--primary:hover {
  box-shadow: 0 12px 36px rgba(181,64,91,0.45);
}

.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.40);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--dark:hover { box-shadow: var(--shadow-lg); }

.btn--outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(42,18,25,0.25);
}
.btn--outline-dark:hover {
  background: rgba(42,18,25,0.05);
  border-color: rgba(42,18,25,0.45);
}

.btn--submit {
  padding: 16px 32px;
  font-size: 0.92rem;
  border-radius: var(--r-md);
  justify-content: center;
}

/* ===== COVER SCREEN ===== */
.cover-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  height: 100dvh;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255,248,242,0.92) 0%, rgba(253,233,237,0.9) 34%, rgba(246,217,223,0.92) 64%, #f9f0e6 100%);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  isolation: isolate;
  transition: opacity 0.42s ease;
}
.cover-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(42,18,25,0.10), transparent 22% 78%, rgba(42,18,25,0.10)),
    radial-gradient(ellipse at 50% 42%, rgba(255,255,255,0.42), transparent 54%);
  pointer-events: none;
}
.cover-screen.is-closing { pointer-events: none; }
.cover-screen.is-closed { display: none; }
.cover-stage-light {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.72), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.22), transparent 46%);
  opacity: 0.9;
  transition: opacity 1s ease;
}
.cover-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  min-height: 100dvh;
  z-index: 1;
  width: 52%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.16), transparent 18% 82%, rgba(42,18,25,0.16)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0 2px, transparent 2px 34px),
    linear-gradient(145deg, #fde9ed 0%, #e8a4b2 42%, #b55368 100%);
  box-shadow: inset 0 0 90px rgba(111,36,55,0.18);
  transition: transform 1.45s cubic-bezier(0.76,0,0.24,1), filter 1.45s ease;
}
.cover-curtain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 8%, rgba(255,255,255,0.35), transparent 48%);
  opacity: 0.7;
}
.cover-curtain span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(180deg, rgba(240,211,139,0.75), rgba(199,154,85,0.24), rgba(240,211,139,0.65));
}
.cover-curtain--left { left: 0; border-right: 1px solid rgba(255,255,255,0.35); }
.cover-curtain--right { right: 0; border-left: 1px solid rgba(255,255,255,0.35); }
.cover-curtain--left span { right: 0; }
.cover-curtain--right span { left: 0; }
.cover-screen.is-closing .cover-curtain--left { transform: translateX(-102%) skewX(-3deg); filter: brightness(1.04); }
.cover-screen.is-closing .cover-curtain--right { transform: translateX(102%) skewX(3deg); filter: brightness(1.04); }
.cover-screen.is-closing .cover-stage-light { opacity: 0.25; }
.cover-screen.is-closing .cover-card {
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
}

/* Decorative petals — pure CSS circles with blur */
.cover-petal {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  filter: blur(1px);
  animation: petalFloat 12s ease-in-out infinite;
}
.cover-petal--1 {
  width: 340px; height: 340px;
  top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(232,165,184,0.55), rgba(245,214,222,0.2) 70%);
  animation-delay: 0s;
}
.cover-petal--2 {
  width: 260px; height: 260px;
  top: -60px; right: -80px;
  background: radial-gradient(circle, rgba(201,149,74,0.2), transparent 70%);
  animation-delay: 3s;
  animation-direction: reverse;
}
.cover-petal--3 {
  width: 200px; height: 200px;
  bottom: -60px; left: 20%;
  background: radial-gradient(circle, rgba(216,182,107,0.22), transparent 70%);
  animation-delay: 6s;
}
.cover-petal--4 {
  width: 300px; height: 300px;
  bottom: -80px; right: -60px;
  background: radial-gradient(circle, rgba(232,165,184,0.40), rgba(245,214,222,0.15) 70%);
  animation-delay: 9s;
  animation-direction: reverse;
}

/* Leaf shapes */
.cover-leaf {
  position: absolute;
  z-index: 2;
  width: 180px; height: 300px;
  background: radial-gradient(ellipse, rgba(216,182,107,0.16), transparent 70%);
  border-radius: 50% 10% 50% 10%;
  animation: leafSway 8s ease-in-out infinite;
}
.cover-leaf--l {
  bottom: 10%; left: 4%;
  transform: rotate(-30deg);
  animation-delay: 1s;
}
.cover-leaf--r {
  top: 10%; right: 4%;
  transform: rotate(40deg);
  animation-delay: 4s;
  animation-direction: reverse;
}

@keyframes petalFloat {
  0%,100% { transform: translateY(0) scale(1) rotate(0deg); }
  33%     { transform: translateY(-20px) scale(1.03) rotate(2deg); }
  66%     { transform: translateY(10px) scale(0.98) rotate(-1deg); }
}
@keyframes leafSway {
  0%,100% { transform: rotate(-30deg) scaleY(1); }
  50%     { transform: rotate(-25deg) scaleY(1.06); }
}

/* Cover card */
.cover-card {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(440px, calc(100vw - 48px));
  padding: 52px 44px 44px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(232,165,184,0.35);
  border-radius: var(--r-xl);
  box-shadow:
    0 0 0 1px rgba(201,149,74,0.1),
    0 40px 120px rgba(181,64,91,0.15),
    inset 0 1px 0 rgba(255,255,255,0.8);
  animation: cardIn 1.1s cubic-bezier(0.16,1,0.3,1) both;
  transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.76,0,0.24,1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(36px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Flourish lines */
.cover-flourish {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}
.cover-flourish--bottom { margin-top: 20px; margin-bottom: 0; }
.cover-flourish span:not(.flourish-diamond) {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,149,74,0.6), transparent);
}
.flourish-diamond {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Eyebrow */
.cover-eyebrow {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Script names */
.cover-script {
  font-family: var(--script);
  font-size: clamp(2.6rem, 8vw, 3.8rem);
  color: var(--rose-dark);
  line-height: 1.1;
  animation: nameIn 1.4s var(--ease-out, cubic-bezier(0.16,1,0.3,1)) both;
}
.cover-script--2 { animation-delay: 0.1s; }

.cover-amp-wrap {
  margin: -4px 0;
}
.cover-amp {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}

@keyframes nameIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Divider inside cover */
.cover-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 80%;
  margin-block: 16px;
}
.cover-divider span:not(.flourish-diamond) {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,149,74,0.5), transparent);
}

/* Date / venue */
.cover-date-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--rose-dark);
  margin-bottom: 6px;
}
.cover-venue {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

/* Recipient */
.cover-recipient-wrap {
  width: 100%;
  padding: 14px 20px;
  border: 1px dashed rgba(181,64,91,0.25);
  border-radius: var(--r-md);
  background: rgba(245,214,222,0.25);
  margin-bottom: 24px;
}
.cover-greeting-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 4px;
}
.cover-recipient {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  overflow-wrap: anywhere;
  line-height: 1.3;
}

/* Cover CTA button */
.cover-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 100px;
  background: var(--grad-rose);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(181,64,91,0.35);
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.5s ease;
  border: none;
}
.cover-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(181,64,91,0.45);
}
.cover-btn:active { transform: translateY(0); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  width: min(1160px, calc(100% - 32px));
  padding: 8px 10px;
  background: rgba(253,248,242,0.80);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(232,165,184,0.3);
  border-radius: var(--r-xl);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad-rose);
  box-shadow: 0 4px 16px rgba(181,64,91,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-mark:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(181,64,91,0.35);
}

.brand-initials {
  color: var(--white);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 100px;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(181,64,91,0.08);
  color: var(--rose);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 100px;
  background: var(--grad-rose);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(181,64,91,0.3);
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.5s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(181,64,91,0.38);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px; height: 46px;
  border: 1.5px solid rgba(181,64,91,0.25);
  border-radius: var(--r-sm);
  background: transparent;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(42,18,25,0.85) 0%, rgba(42,18,25,0.55) 45%, rgba(42,18,25,0.20) 100%),
    linear-gradient(0deg, rgba(42,18,25,0.90) 0%, rgba(42,18,25,0.05) 50%);
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.10) translate(-15px,-8px); }
}

/* Floating badge */
.hero-badge {
  position: absolute;
  top: 130px;
  right: max(24px, calc((100vw - 1160px)/2));
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(253,248,242,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  text-align: center;
  animation: badgeSpin 20s linear infinite;
}
.hero-badge span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
}
.hero-badge strong {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.3;
}
@keyframes badgeSpin {
  0%   { box-shadow: 0 0 0 0 rgba(201,149,74,0.2); }
  50%  { box-shadow: 0 0 0 12px rgba(201,149,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,149,74,0); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 180px 110px;
  display: grid;
  gap: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 40px; height: 1px;
  background: var(--gold-light);
  opacity: 0.5;
}

.hero-welcome {
  width: fit-content;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  color: rgba(255,255,255,0.80);
  font-size: 0.9rem;
  font-weight: 400;
  backdrop-filter: blur(10px);
}
.hero-welcome strong { color: var(--white); font-weight: 600; }

.hero-names {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(4.5rem, 12vw, 10rem);
  font-weight: 400;
  line-height: 0.86;
  color: var(--white);
}
.hero-names em {
  display: block;
  font-style: italic;
}
.hero-and {
  display: block;
  font-family: var(--script);
  font-size: 0.45em;
  color: var(--gold-light);
  line-height: 1.1;
  font-style: normal;
  margin-block: -4px;
}

.hero-sub {
  max-width: 520px;
  margin-bottom: 36px;
  color: rgba(255,255,255,0.68);
  font-size: 1rem;
  line-height: 1.85;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(var(--white), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50%     { opacity: 0.8; transform: scaleY(1.1); }
}

/* ===== COUNTDOWN ===== */
.countdown-section {
  position: relative;
  z-index: 5;
  margin-top: -52px;
  padding-bottom: 0;
}

.countdown-inner {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid rgba(232,165,184,0.3);
  border-radius: var(--r-xl);
  padding: 20px 28px;
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.countdown-grid {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding: 16px 12px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--cream) 0%, var(--blush-2) 100%);
  border: 1px solid rgba(232,165,184,0.25);
}
.cd-unit strong {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--rose-dark);
}
.cd-unit span {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 4px;
}

.cd-sep {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--rose-light);
  font-weight: 300;
  flex-shrink: 0;
}

.countdown-guest {
  text-align: right;
  padding-left: 24px;
  border-left: 1px solid rgba(232,165,184,0.3);
}
.cd-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 4px;
}
.cd-name {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--rose-dark);
  font-weight: 400;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.cd-info {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* ===== INVITATION SECTION ===== */
.inv-section {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

/* Decorative blossoms */
.section-bloom {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.section-bloom--tl {
  width: 500px; height: 500px;
  top: -150px; left: -150px;
  background: radial-gradient(circle, rgba(232,165,184,0.20) 0%, transparent 70%);
}
.section-bloom--br {
  width: 400px; height: 400px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(216,182,107,0.14) 0%, transparent 70%);
}

.inv-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(340px,0.85fr);
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.inv-letter > h2 {
  margin-bottom: 36px;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

/* Letter card */
.letter-card {
  background: var(--white);
  border: 1px solid rgba(232,165,184,0.3);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.letter-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-rose);
}

.letter-header {
  margin-bottom: 20px;
}
.letter-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
}
.letter-guest {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--rose-dark);
  font-weight: 400;
}

.letter-couple {
  font-family: var(--script);
  font-size: 2.8rem;
  color: var(--rose);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 20px;
}

.letter-body {
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 0;
}

.letter-quote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--rose-light);
  background: var(--petal);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--rose-dark);
  line-height: 1.6;
}

/* Letter detail rows */
.letter-details {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(232,165,184,0.25);
  margin-top: 24px;
  padding-top: 20px;
}
.ld-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(232,165,184,0.15);
}
.ld-row:last-child { border-bottom: 0; }
.ld-row dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.ld-row dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.55;
}

/* Invitation visual */
.inv-visual {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.inv-img-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--blush);
  box-shadow: var(--shadow-xl);
}
.inv-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.inv-img-frame:hover img { transform: scale(1.04); }

.inv-img-tag {
  position: absolute;
  bottom: 18px; left: 18px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

/* Floating date card */
.inv-float-card {
  position: absolute;
  bottom: -24px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--grad-rose);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 12px 36px rgba(181,64,91,0.35);
  animation: floatCard 4s ease-in-out infinite;
}
.inv-float-card p {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
}
.inv-float-card small {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}
@keyframes floatCard {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-8px) rotate(2deg); }
}

/* ===== ALBUM ===== */
.album-section {
  background: var(--cream-2);
}

.album-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.album-header h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  color: var(--ink);
}

.album-filters {
  display: flex;
  gap: 8px;
}
.filter-btn {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(42,18,25,0.15);
  background: transparent;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.filter-btn.active {
  background: var(--rose);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(181,64,91,0.3);
}
.filter-btn:hover:not(.active) {
  background: var(--petal);
  border-color: var(--rose-light);
  color: var(--rose);
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}

.photo-card {
  position: relative;
  grid-column: span 2;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--r-lg);
  cursor: pointer;
  background: var(--blush);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.photo-card--feat {
  grid-column: span 3;
  grid-row: span 2;
  min-height: 710px;
}
.photo-card--wide { grid-column: span 3; }

.photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.photo-card:hover img { transform: scale(1.07); }

.photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(0deg, rgba(42,18,25,0.70) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.photo-card:hover .photo-overlay { opacity: 1; }
.photo-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 400;
}

.photo-card[hidden] { display: none; }

/* ===== EVENT SECTION ===== */
.event-section {
  background: var(--grad-event);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

/* Decorative circles on warm bg */
.event-section::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(201,154,85,0.18), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.event-section::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  bottom: -150px; left: -100px;
  background: radial-gradient(circle, rgba(181,83,104,0.18), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Wave divider */
.wave-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
}
.wave-top svg {
  width: 100%; height: 100%;
  fill: var(--cream-2);
  display: block;
}

.event-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.event-eyebrow { color: var(--rose); }
.event-eyebrow::before, .event-eyebrow::after { background: rgba(181,83,104,0.35); }

.event-header h2 {
  color: var(--ink);
  max-width: 700px;
}

.event-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.event-actions .btn--dark {
  background: var(--rose-dark);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(111,36,55,0.22);
}
.event-actions .btn--outline-dark {
  background: rgba(255,255,255,0.68);
  color: var(--rose-dark);
  border-color: rgba(181,83,104,0.34);
  box-shadow: 0 10px 28px rgba(111,36,55,0.10);
}
.event-actions .btn--outline-dark:hover {
  background: var(--white);
  border-color: rgba(181,83,104,0.52);
}

/* Timeline — horizontal cards */
.timeline {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2px;
  position: relative;
  z-index: 1;
}

/* Connecting line */
.timeline::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181,83,104,0.28) 15%, rgba(201,154,85,0.38) 85%, transparent);
  pointer-events: none;
}

.tl-item {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 20px;
  padding: 0 28px 32px;
  border-radius: var(--r-lg);
  transition: background 0.25s ease;
  position: relative;
}
.tl-item:hover {
  background: rgba(255,255,255,0.38);
}

.tl-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(181,83,104,0.18);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--rose-dark);
  width: fit-content;
  backdrop-filter: blur(8px);
}

.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 3px rgba(181,83,104,0.18), 0 0 0 7px rgba(201,154,85,0.12);
  align-self: start;
}

.tl-content h3 {
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 10px;
}
.tl-content p {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== RSVP SECTION ===== */
.rsvp-section {
  background: var(--grad-rsvp);
  position: relative;
  overflow: hidden;
}

.rsvp-bloom {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.rsvp-bloom--tl {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(232,165,184,0.25), transparent 65%);
}
.rsvp-bloom--br {
  width: 500px; height: 500px;
  bottom: -150px; right: -100px;
  background: radial-gradient(circle, rgba(201,149,74,0.12), transparent 65%);
}

.rsvp-grid {
  display: grid;
  grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr);
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.rsvp-copy h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  color: var(--ink);
  margin-bottom: 16px;
}

.rsvp-desc {
  color: var(--ink-2);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.7;
}
.rsvp-desc strong { color: var(--rose-dark); }

/* Venue card */
.rsvp-venue-card {
  background: var(--white);
  border: 1px solid rgba(232,165,184,0.3);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}
.venue-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.venue-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--blush-2);
  border-radius: var(--r-sm);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.venue-row div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.venue-row strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.venue-row small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* Form */
.rsvp-form-wrap {
  background: var(--white);
  border: 1px solid rgba(232,165,184,0.3);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field-full { grid-column: 1 / -1; }

label {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  border: 1.5px solid rgba(42,18,25,0.12);
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(181,64,91,0.10);
  background: var(--white);
}

input[readonly] {
  border-style: dashed;
  background: var(--petal);
  color: var(--muted);
  cursor: default;
}

textarea { resize: vertical; }

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  border: 0;
  padding: 0;
}
legend {
  width: 100%;
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
}

.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 160px;
  justify-content: center;
  padding: 12px 16px;
  border: 1.5px solid rgba(42,18,25,0.12);
  border-radius: var(--r-md);
  background: var(--cream);
  cursor: pointer;
  transition: all 0.2s ease;
}
.choice input { width: auto; accent-color: var(--rose); }
.choice:has(input:checked) {
  background: var(--petal);
  border-color: var(--rose-light);
  color: var(--rose-dark);
}


label small { color: var(--muted); font-size: 0.72rem; font-weight: 500; }

.form-status { color: var(--rose); font-weight: 600; min-height: 22px; }

/* RSVP receipt */
.rsvp-receipt {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 8px;
}
.receipt-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--grad-rose);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(181,64,91,0.35);
  margin-bottom: 4px;
}
.rsvp-receipt h3 {
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--rose-dark);
  line-height: 1.1;
}
.rsvp-receipt > p:last-of-type {
  color: var(--ink-2);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: var(--white);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding-block: 56px;
}
.footer-names {
  font-family: var(--script);
  font-size: 3.5rem;
  color: var(--rose-light);
  line-height: 1;
}
.footer-date {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.footer-note {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(255,255,255,0.35);
  font-size: 0.95rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: rgba(42,18,25,0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }

.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}

.lb-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.8rem;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.lb-close:hover { background: rgba(255,255,255,0.22); }

.lb-nav {
  width: 58px; height: 80px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(181,83,104,0.18);
  color: var(--white);
  font-size: 2.8rem;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.lb-nav:hover { background: rgba(255,255,255,0.20); }

/* ===== DEMO BANNER ===== */
.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--rose-dark), var(--rose));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  flex-wrap: wrap;
  text-align: center;
}

.demo-banner[hidden] { display: none !important; }

.demo-banner-link {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.demo-banner-link:hover { background: rgba(255,255,255,0.35); }

.demo-banner-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}
.demo-banner-close:hover { background: rgba(255,255,255,0.28); }

/* Push header down when banner is visible */
body.has-demo-banner .site-header { top: 54px; }

/* ===== RESPONSIVE 980px ===== */
@media (max-width: 980px) {
  :root { --section-pad: 88px; }

  .menu-toggle { display: flex; grid-column: 3; }

  .site-nav, .nav-cta {
    position: fixed;
    left: 16px; right: 16px;
    display: none;
  }
  .site-nav {
    top: 94px;
    flex-direction: column;
    background: rgba(253,248,242,0.96);
    border: 1px solid rgba(232,165,184,0.3);
    border-radius: var(--r-lg);
    padding: 12px 12px 76px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
  }
  .nav-cta {
    top: 294px;
    left: 28px;
    right: 28px;
    z-index: 101;
    min-height: 44px;
    justify-content: center;
    border-radius: 100px;
    text-align: center;
    background: var(--grad-rose);
  }
  body.menu-open .site-nav,
  body.menu-open .nav-cta { display: flex; }

  .hero-badge { display: none; }

  .countdown-inner,
  .inv-grid,
  .rsvp-grid { grid-template-columns: 1fr; }

  .inv-visual { position: static; }
  .inv-float-card { display: none; }

  .event-header { grid-template-columns: 1fr; }
  .event-actions { justify-content: flex-start; }

  .album-header { grid-template-columns: 1fr; }

  .timeline {
    grid-template-columns: repeat(2,1fr);
  }

  .gallery { grid-template-columns: repeat(2,1fr); }
  .photo-card,
  .photo-card--feat,
  .photo-card--wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 440px;
  }
}

/* ===== RESPONSIVE 640px ===== */
@media (max-width: 640px) {
  :root { --section-pad: 72px; }

  body.cover-mode {
    inset: 0 0 -120px;
    min-height: calc(100vh + 120px);
    min-height: calc(100svh + 120px);
    height: calc(100vh + 120px);
    height: calc(100dvh + 120px);
  }

  .cover-screen {
    inset: 0 0 -120px;
    min-height: calc(100vh + 120px);
    min-height: calc(100svh + 120px);
    height: auto;
    padding: 16px 0 calc(120px + env(safe-area-inset-bottom, 0px));
  }

  .cover-curtain {
    bottom: -120px;
    height: auto;
    min-height: calc(100vh + 120px);
    min-height: calc(100dvh + 120px);
  }

  .site-header { top: 10px; width: calc(100% - 20px); }

  .hero-content {
    padding-block: 140px 80px;
    width: calc(100% - 32px);
  }

  .hero-names { font-size: clamp(3.5rem, 14vw, 5.5rem); }

  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }

  .countdown-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .countdown-guest {
    text-align: left;
    border-left: 0;
    border-top: 1px solid rgba(232,165,184,0.3);
    padding: 16px 0 0;
  }
  .countdown-grid { flex-wrap: wrap; justify-content: center; }
  .cd-unit { min-width: 70px; }

  .letter-card { padding: 28px 22px; }
  .ld-row { grid-template-columns: 1fr; gap: 4px; }

  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }

  .rsvp-form { grid-template-columns: 1fr; }
  .rsvp-form-wrap { padding: 26px 20px; }

  .gallery { grid-template-columns: 1fr; }
  .photo-card,
  .photo-card--feat,
  .photo-card--wide { min-height: 380px; }

  .lightbox {
    grid-template-columns: 44px 1fr 44px;
    padding: 12px;
  }

  .footer-names { font-size: 2.8rem; }

  .album-filters { flex-wrap: wrap; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img-wrap img,
  .cover-petal,
  .cover-leaf,
  .cover-script,
  .inv-float-card,
  .scroll-line,
  .hero-badge { animation: none; }
  .photo-card img { transition: none; }
  .burst-petal, .cover-btn-ripple { display: none !important; }
}

/* ===== PETAL BURST ANIMATION ===== */

/* Single shared keyframe — CSS custom properties supply per-petal values */
@keyframes petalFly {
  0% {
    transform: translate(-50%, -50%) translate(0px, 0px) scale(0) rotate(0deg);
    opacity: 1;
  }
  15% {
    /* Phóng nhanh ra xa ngay từ đầu — 40% khoảng cách sau 15% thời gian */
    transform: translate(-50%, -50%)
               translate(calc(var(--dx) * 0.40), calc(var(--dy) * 0.40))
               scale(1.3)
               rotate(calc(var(--rot) * 0.15));
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%)
               translate(var(--dx), var(--dy))
               scale(0.1)
               rotate(var(--rot));
    opacity: 0;
  }
}


/* Button press ripple */
@keyframes btnRipple {
  from { transform: translate(-50%, -50%) scale(0); opacity: 0.6; }
  to   { transform: translate(-50%, -50%) scale(6); opacity: 0; }
}

/* Petal burst container — above everything including cover */
.petal-burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  overflow: hidden;
}

/* Each petal particle */
.burst-petal {
  position: absolute;
  /* animation values fed by JS via --dx --dy --dur --delay --rot */
  animation: petalFly var(--dur, 900ms) cubic-bezier(0.2, 0.82, 0.38, 1) var(--delay, 0ms) both;
  will-change: transform, opacity;
}



/* Ripple inside cover button */
.cover-btn { position: relative; overflow: hidden; }

.cover-btn-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  /* Centered on click point via JS */
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: btnRipple 0.55s ease-out forwards;
}

