/* ══════════════════════════════════════════
   TOKENS
══════════════════════════════════════════ */
:root {
  --ivory: #faf6ec;
  --paper: #fffdf7;
  --ink: #17221f;
  --muted: #6f756d;
  --sage: #8fae76;
  --sage-dark: #526d4d;
  --rose: #c96f78;
  --wine: #783946;
  --gold: #c6a46d;
  --gold-light: #f0d898;
  --blue: #637f8d;
  --line: rgba(23, 34, 31, 0.14);
  --shadow: 0 22px 70px rgba(23, 34, 31, 0.16);
  --soft-shadow: 0 14px 36px rgba(23, 34, 31, 0.1);
  --radius: 8px;
}

/* ══════════════════════════════════════════
   RESET / BASE
══════════════════════════════════════════ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(143, 174, 118, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(99, 127, 141, 0.06) 1px, transparent 1px),
    var(--ivory);
  background-size: 42px 42px;
  overflow-x: hidden;
}

/* cursor glow */
body::after {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  width: 220px;
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(198, 164, 109, 0.18), rgba(198, 164, 109, 0) 68%);
  border-radius: 50%;
  opacity: 0;
  transform: translate3d(calc(var(--cursor-x, -300px) - 50%), calc(var(--cursor-y, -300px) - 50%), 0);
  transition: opacity 0.22s ease;
  mix-blend-mode: screen;
}

body.cursor-active::after { opacity: 1; }

body.nav-open { overflow: hidden; }

main { overflow-x: hidden; }
img  { max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

/* ══════════════════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  width: var(--progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--gold-light), var(--rose), var(--gold));
  background-size: 300% auto;
  animation: shimmer 3s linear infinite;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ══════════════════════════════════════════
   AMBIENT PARTICLES
══════════════════════════════════════════ */
.ambient-effects {
  position: fixed;
  inset: 0;
  z-index: 22;
  overflow: hidden;
  pointer-events: none;
}


.ambient-particle {
  position: absolute;
  top: -14vh;
  left: var(--start-x);
  opacity: var(--particle-opacity, 0.72);
  animation-duration: var(--duration);
  animation-delay: var(--delay);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  will-change: transform, opacity;
}

.ambient-particle.snow {
  width: var(--size);
  aspect-ratio: 1;
  background: rgba(255, 253, 247, 0.86);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 253, 247, 0.42);
  animation-name: snowFall;
}

.ambient-particle.heart {
  color: rgba(201, 111, 120, 0.78);
  font-size: var(--size);
  line-height: 1;
  text-shadow: 0 8px 22px rgba(120, 57, 70, 0.18);
  animation-name: heartFloat;
}

.ambient-particle.balloon {
  width: var(--size);
  height: calc(var(--size) * 1.28);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.76), transparent 17%),
    linear-gradient(145deg, var(--balloon-color), color-mix(in srgb, var(--balloon-color), #17221f 22%));
  border-radius: 50% 50% 46% 46%;
  box-shadow: 0 14px 34px rgba(23, 34, 31, 0.14);
  animation-name: balloonRise;
}

.ambient-particle.balloon::after {
  position: absolute;
  top: 100%; left: 50%;
  width: 1px;
  height: calc(var(--size) * 1.2);
  content: "";
  background: rgba(255, 253, 247, 0.5);
  transform: translateX(-50%);
}

/* Sakura petals */
.ambient-particle.petal {
  width: var(--size);
  height: calc(var(--size) * 0.68);
  background: linear-gradient(135deg,
    rgba(255, 220, 230, 0.92),
    rgba(249, 180, 200, 0.75) 55%,
    rgba(240, 155, 175, 0.6));
  border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
  animation-name: petalFall;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  color: var(--paper);
  background: rgba(23, 34, 31, 0.72);
  border-bottom: 1px solid rgba(255, 253, 247, 0.2);
  backdrop-filter: blur(18px);
  animation: headerDrop 0.7s ease both;
}

.brand {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 253, 247, 0.52);
  border-radius: 50%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  border-color: var(--gold);
  transform: rotate(5deg) scale(1.06);
}

.brand span {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--paper);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 28px 0 24px;
  color: rgba(255, 253, 247, 0.78);
}

.nav-links a::after {
  position: absolute;
  right: 0; bottom: 19px; left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--paper); }

.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  gap: 10px;
}

.icon-button {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
  background: var(--paper);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.icon-button:hover {
  background: #fff;
  box-shadow: 0 16px 34px rgba(23, 34, 31, 0.18);
  transform: translateY(-2px);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.3;
}

.menu-toggle { display: none; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  --hero-x: 0px;
  --hero-y: 0px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   HERO SLIDESHOW
══════════════════════════════════════════ */
.hero-slides {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--hero-x), var(--hero-y), 0) scale(1.045);
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.is-active { opacity: 1; }

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 24%;
  filter: saturate(0.94) contrast(1.03);
}

/* Ken Burns pan+zoom per slide (variant via nth-child) */
.hero-slide.is-active .hero-slide-img                { animation: kenBurns0 30s ease-in-out both; }
.hero-slide:nth-child(2).is-active .hero-slide-img   { animation-name: kenBurns1; }
.hero-slide:nth-child(3).is-active .hero-slide-img   { animation-name: kenBurns2; }
.hero-slide:nth-child(4).is-active .hero-slide-img   { animation-name: kenBurns3; }

/* Slide navigation arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.12);
  border: 1px solid rgba(255, 253, 247, 0.32);
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.hero:hover .hero-nav,
.hero:focus-within .hero-nav { opacity: 1; }

@media (hover: none) { .hero-nav { opacity: 0.78; } }

.hero-prev { left: clamp(14px, 3vw, 40px); }
.hero-next { right: clamp(14px, 3vw, 40px); }

.hero-prev:hover,
.hero-prev:focus-visible {
  background: rgba(255, 253, 247, 0.26);
  transform: translateY(-50%) translateX(-2px);
}

.hero-next:hover,
.hero-next:focus-visible {
  background: rgba(255, 253, 247, 0.26);
  transform: translateY(-50%) translateX(2px);
}

.hero-nav svg { width: 24px; height: 24px; stroke-width: 2.3; }

/* Slide indicator dots */
.hero-indicators {
  position: absolute;
  bottom: 76px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 6px;
  animation: fadeUp 1s 1.2s both;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.38);
  border: 1.5px solid rgba(255, 253, 247, 0.54);
  cursor: pointer;
  transition:
    width 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-radius 0.38s ease,
    background 0.38s ease,
    border-color 0.38s ease;
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 4px;
  background: var(--gold);
  border-color: var(--gold);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 34, 31, 0.9) 0%, rgba(23, 34, 31, 0.64) 42%, rgba(23, 34, 31, 0.08) 74%),
    linear-gradient(0deg, rgba(23, 34, 31, 0.28), transparent 44%);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 253, 247, 0.08) 46%, transparent 56%),
    radial-gradient(circle at 30% 78%, rgba(198, 164, 109, 0.12), transparent 26%);
  opacity: 0.68;
  transform: translateX(-16%);
  animation: heroLightSweep 9s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: 100%;
  max-width: 700px;
  min-height: 92vh;
  padding: 118px clamp(22px, 7vw, 108px) 70px;
}

.hero-content > * {
  animation: fadeUp 0.86s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-content .eyebrow       { animation-delay: 0.12s; }
.hero-content h1              { animation-delay: 0.24s; }
.hero-content time            { animation-delay: 0.36s; }
.hero-content .hero-note      { animation-delay: 0.48s; }
.hero-content .hero-buttons   { animation-delay: 0.6s;  }

/* Eyebrow + section-kicker shimmer */
.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* hero overrides: eyebrow keeps same shimmer */
.hero .eyebrow { animation: fadeUp 0.86s 0.12s both, shimmer 4s linear infinite; }

/* hero h1 names */
.hero h1 {
  max-width: 680px;
  margin: 0;
  font-family: "Great Vibes", "Playfair Display", serif;
  font-size: clamp(62px, 8vw, 112px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.hero h1 .name-line {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.35em 0.08em;
  background: linear-gradient(135deg, var(--paper) 20%, var(--gold-light) 55%, var(--paper) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

/* Stagger shimmer phase so each name glows at different times */
.hero h1 .name-line:last-child { animation-delay: -2.5s; }

.hero h1 .amp {
  display: block;
  margin: 2px 0 6px;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 0.44em;
  line-height: 0.95;
  background: none;
}

.hero time {
  display: block;
  margin-top: 28px;
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 52px);
  color: var(--paper);
}

.hero-note {
  max-width: 500px;
  margin: 20px 0 0;
  color: rgba(255, 253, 247, 0.82);
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  animation: fadeUp 1s 1.4s both;
}

.scroll-mouse {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 253, 247, 0.45);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}

.scroll-wheel {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 7px;
  background: rgba(255, 253, 247, 0.8);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollBounce 1.6s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.primary-button,
.ghost-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #fff;
  background: var(--wine);
  border: 1px solid var(--wine);
  box-shadow: 0 10px 26px rgba(120, 57, 70, 0.24);
}

.primary-button:hover {
  background: #8b4050;
  box-shadow: 0 16px 34px rgba(120, 57, 70, 0.28);
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--paper);
  background: rgba(255, 253, 247, 0.11);
  border: 1px solid rgba(255, 253, 247, 0.42);
}

.ghost-button:hover {
  background: rgba(255, 253, 247, 0.18);
  border-color: rgba(255, 253, 247, 0.68);
  transform: translateY(-2px);
}

.primary-button.full,
.ghost-button.full { width: 100%; }

.primary-button svg,
.ghost-button svg,
.quick-actions svg,
.panel-heading svg,
.text-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

/* Ripple effect */
.btn-ripple {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleBurst 0.55s ease-out forwards;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   COUNTDOWN
══════════════════════════════════════════ */
.countdown-section {
  background: linear-gradient(160deg, var(--ink) 0%, #1e3030 50%, #162520 100%);
  color: var(--paper);
  padding: clamp(52px, 7vw, 88px) clamp(18px, 6vw, 88px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(198, 164, 109, 0.08), transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(201, 111, 120, 0.06), transparent 55%);
  pointer-events: none;
}

.countdown-section .section-kicker {
  position: relative;
}

.countdown-date-label {
  margin: 0 0 36px;
  color: rgba(255, 253, 247, 0.56);
  font-family: "Playfair Display", serif;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 3vw, 28px);
  flex-wrap: wrap;
  position: relative;
}

.countdown-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px clamp(16px, 3vw, 32px) 18px;
  min-width: clamp(72px, 12vw, 110px);
  background: rgba(255, 253, 247, 0.05);
  border: 1px solid rgba(198, 164, 109, 0.25);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.countdown-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(198, 164, 109, 0.1), transparent 65%);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.countdown-cell:hover {
  border-color: rgba(198, 164, 109, 0.5);
  box-shadow: 0 0 28px rgba(198, 164, 109, 0.14);
}

.cd-number {
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
  text-shadow: 0 0 32px rgba(198, 164, 109, 0.35);
  transition: transform 0.12s ease;
}

.cd-number.flip {
  animation: flipNum 0.28s ease-out;
}

.cd-label {
  position: relative;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 253, 247, 0.52);
}

.countdown-sep {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 28px;
  animation: blink 1.2s step-end infinite;
}

.countdown-message {
  margin: 28px 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--gold-light);
  min-height: 2em;
}

/* ══════════════════════════════════════════
   QUICK ACTIONS
══════════════════════════════════════════ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.quick-actions a {
  display: grid;
  min-width: 0;
  min-height: 112px;
  place-items: center;
  gap: 8px;
  padding: 18px;
  color: var(--ink);
  text-align: center;
  background: rgba(255, 253, 247, 0.9);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.quick-actions a:hover {
  color: var(--wine);
  background: #fff;
  transform: translateY(-4px);
}

.quick-actions span {
  max-width: 100%;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   SECTION UTILITIES
══════════════════════════════════════════ */
.section-pad {
  padding: clamp(68px, 8vw, 112px) clamp(18px, 6vw, 88px);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto clamp(34px, 5vw, 60px);
  text-align: center;
}

.section-heading.narrow { width: min(560px, 100%); }

.section-heading h2,
.rsvp-card h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
}

.section-heading p:not(.section-kicker),
.rsvp-card > div > p {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* ══════════════════════════════════════════
   INTRO / COUPLE
══════════════════════════════════════════ */
.intro-section {
  background: linear-gradient(180deg, var(--paper), #eef4ed);
}

.couple-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 48px);
  width: min(1060px, 100%);
  margin: 0 auto;
}

.person-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.86fr) 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 253, 247, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.person-card-alt { background: rgba(240, 246, 242, 0.85); }

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.4s ease;
}

.person-card:hover img { transform: scale(1.03); }

.person-card span,
.event-date {
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.person-card h3,
.event-card h3,
.panel-heading h3,
.gift-card h3 {
  margin: 8px 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 600;
}

.event-card h3 { min-height: 2lh; }

.person-card p,
.event-card p,
.gift-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}


/* ══════════════════════════════════════════
   SCHEDULE
══════════════════════════════════════════ */
.schedule-section {
  background:
    linear-gradient(rgba(23, 34, 31, 0.76), rgba(23, 34, 31, 0.76)),
    url("assets/album-03.jpg") center 46% / cover fixed;
  color: var(--paper);
}

.schedule-section .section-heading p:not(.section-kicker) {
  color: rgba(255, 253, 247, 0.74);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.event-grid.schedule-locations {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(860px, 100%);
}

.event-card {
  min-height: 260px;
  padding: 28px;
  background: rgba(255, 253, 247, 0.95);
  border: 1px solid rgba(255, 253, 247, 0.42);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  transform-style: preserve-3d;
}

.event-card.highlight { background: #eef4ed; }

.event-card p + p { margin-top: 8px; }

.event-item { margin-top: 0; }
.event-item + .event-item { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.event-item .event-location { margin-top: 8px; padding-top: 0; border-top: none; }
.event-location-shared { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

.event-item > p {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.event-item > p strong {
  color: var(--wine);
  font-size: 18px;
  font-weight: 800;
}

.event-location {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.event-location svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--wine);
}

.event-location strong,
.event-location span { display: block; }

.event-location strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.event-location span {
  color: var(--muted);
  font-size: clamp(12px, 3vw, 15px);
  line-height: 1.6;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--wine);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.map-link:hover { background: var(--rose); }

.map-link svg { width: 14px; height: 14px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--wine);
  font-weight: 800;
}

/* ══════════════════════════════════════════
   QUOTE SECTION
══════════════════════════════════════════ */
.quote-section {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(52px, 7vw, 80px) clamp(22px, 8vw, 120px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(198, 164, 109, 0.07), transparent 50%),
    radial-gradient(ellipse at 90% 50%, rgba(201, 111, 120, 0.07), transparent 50%);
  pointer-events: none;
}

.quote-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.quote-mark {
  width: 48px;
  height: auto;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 20px;
}

.quote-inner blockquote {
  margin: 0 0 18px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.55;
  color: var(--paper);
}

.quote-inner cite {
  font-style: normal;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   ALBUM
══════════════════════════════════════════ */
.album-section { background: var(--paper); }

.album-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.album-grid button {
  position: relative;
  min-height: 210px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  transform: translateZ(0);
}

.album-grid button:nth-child(1),
.album-grid button:nth-child(4) {
  grid-column: span 2;
  min-height: 440px;
}

.album-grid button:nth-child(2),
.album-grid button:nth-child(3),
.album-grid button:nth-child(5),
.album-grid button:nth-child(6) {
  grid-column: span 2;
}

.album-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease, filter 0.3s ease;
}

.album-grid button:hover img {
  transform: scale(1.06);
  opacity: 0.88;
  filter: brightness(0.85);
}

/* Hover overlay with zoom icon */
.album-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 34, 31, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
}

.album-overlay svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.album-grid button:hover .album-overlay { opacity: 1; }

/* ══════════════════════════════════════════
   WISHES
══════════════════════════════════════════ */
.wishes-section {
  background:
    linear-gradient(180deg, rgba(250, 246, 236, 0.94), rgba(238, 244, 237, 0.96)),
    url("assets/cover.jpg") center / cover fixed;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(18px, 4vw, 46px);
  width: min(1120px, 100%);
  margin: 0 auto;
  align-items: start;
}

.form-panel,
.messages-panel,
.rsvp-card,
.gift-card {
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.form-panel:hover,
.messages-panel:hover,
.rsvp-card:hover,
.gift-card:hover {
  box-shadow: 0 28px 78px rgba(23, 34, 31, 0.18);
  transform: translateY(-4px);
}

.form-panel,
.messages-panel {
  padding: clamp(20px, 3vw, 32px);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.panel-heading h3 { margin: 0; font-size: 26px; flex: 1; }

.couple-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.couple-mode-btn:hover { background: rgba(201,111,120,0.1); color: var(--wine); border-color: rgba(201,111,120,0.4); }

.couple-mode-btn.is-active {
  background: rgba(201,111,120,0.15);
  color: var(--wine);
  border-color: var(--rose);
}

.couple-mode-btn svg { width: 15px; height: 15px; }

.stacked-form { display: grid; gap: 12px; }

.stacked-form label { display: grid; gap: 7px; }

.stacked-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(23, 34, 31, 0.24);
  border-radius: var(--radius);
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea { min-height: 138px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 4px rgba(143, 174, 118, 0.16);
}

.wish-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wish-suggestions button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--sage-dark);
  cursor: pointer;
  background: rgba(143, 174, 118, 0.12);
  border: 1px solid rgba(143, 174, 118, 0.34);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.wish-suggestions button:hover {
  color: #fff;
  background: var(--sage-dark);
  transform: translateY(-2px);
}

.wish-list,
.response-list { display: grid; gap: 14px; }

.wish-list {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.wish-item,
.response-item {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.wish-item:hover,
.response-item:hover {
  border-color: rgba(120, 57, 70, 0.2);
  box-shadow: var(--soft-shadow);
  transform: translateX(4px);
}

.wish-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.wish-meta strong,
.response-item strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.wish-meta small,
.response-item span,
.couple-reply small {
  color: var(--muted);
  font-size: 12px;
}

.wish-message {
  display: block;
  margin-top: 10px;
  color: #34423d;
  line-height: 1.75;
}

.couple-reply {
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(201, 111, 120, 0.12), rgba(143, 174, 118, 0.12));
  border-left: 3px solid var(--rose);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.couple-reply strong,
.couple-reply span,
.couple-reply small { display: block; }

.couple-reply strong {
  margin-bottom: 5px;
  color: var(--wine);
}

.couple-reply span { color: var(--ink); line-height: 1.7; }

.reply-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-top: 14px;
  padding: 0 12px;
  color: var(--wine);
  cursor: pointer;
  background: rgba(201, 111, 120, 0.1);
  border: 1px solid rgba(201, 111, 120, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.reply-button svg { width: 15px; height: 15px; }

.reply-form { display: grid; gap: 10px; margin-top: 14px; }
.reply-form textarea { min-height: 92px; }
.reply-form-footer { display: flex; justify-content: flex-end; }
.reply-compose { margin-top: 6px; }

/* Chat bubble conversation */
.wish-list { display: flex; flex-direction: column; gap: 18px; max-height: 620px; overflow: auto; padding-right: 4px; }

.wish-thread { display: flex; flex-direction: column; gap: 6px; }

.wish-bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px;
  word-break: break-word;
}

.bubble--guest {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.bubble--couple {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(201,111,120,0.14), rgba(143,174,118,0.14));
  border: 1px solid rgba(201,111,120,0.28);
  border-bottom-right-radius: 4px;
  text-align: right;
}

.bubble-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.bubble--couple .bubble-header {
  justify-content: flex-end;
}

.bubble-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.bubble-header strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.bubble--couple .bubble-header strong { color: var(--wine); }

.bubble-header small {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}

.bubble--couple .bubble-header small { margin-left: 0; }

.bubble-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.wish-thread > .reply-button { align-self: flex-end; margin-top: 2px; }

.wish-thread.is-hidden { opacity: 0.45; }
.wish-thread.is-hidden .bubble--guest { border-style: dashed; background: var(--ivory); }

.wish-actions {
  display: flex;
  gap: 5px;
  align-self: flex-start;
  padding-left: 2px;
}

.wish-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.wish-action-btn:hover {
  background: rgba(23,34,31,0.06);
  color: var(--ink);
}

.wish-action-btn--delete:hover {
  background: rgba(190,50,50,0.08);
  color: #be3232;
  border-color: rgba(190,50,50,0.3);
}

.wish-action-btn svg { width: 13px; height: 13px; }

.empty-note {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 253, 247, 0.58);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════
   RSVP
══════════════════════════════════════════ */
.rsvp-section {
  background: linear-gradient(135deg, #f6efe9, #eef4ed 55%, #edf2f5);
}

.rsvp-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr) minmax(260px, 0.9fr);
  gap: clamp(20px, 4vw, 42px);
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px);
  align-items: start;
}

.rsvp-card .section-kicker { margin-bottom: 12px; }

.response-list {
  max-height: 306px;
  overflow: auto;
}

.response-item { background: rgba(255, 253, 247, 0.72); }

/* ══════════════════════════════════════════
   GIFT
══════════════════════════════════════════ */
.gift-section {
  background: var(--ink);
  color: var(--paper);
}

.gift-section .section-heading p:not(.section-kicker) {
  color: rgba(255, 253, 247, 0.72);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
  gap: 18px;
}

.gift-card {
  padding: 26px;
  color: var(--ink);
  text-align: center;
}

.qr-code {
  display: block;
  width: 200px;
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 43%;
  border: 6px solid var(--paper);
  outline: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.qr-code.alt {
  filter: none;
  object-position: center 46%;
}

/* QR zoom button wrapper */
.qr-zoom-btn {
  display: block;
  width: 200px;
  margin: 0 auto 18px;
  padding: 0;
  position: relative;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}

.qr-zoom-btn .qr-code {
  margin: 0;
}

.qr-zoom-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 34, 31, 0);
  border-radius: 10px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.22s ease;
}

.qr-zoom-btn:hover .qr-zoom-hint,
.qr-zoom-btn:focus-visible .qr-zoom-hint {
  opacity: 1;
  background: rgba(23, 34, 31, 0.38);
}

.qr-zoom-hint svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

@media (hover: none) {
  .qr-zoom-hint {
    opacity: 0.7;
    background: rgba(23, 34, 31, 0.22);
  }
}

/* QR Dialog */
.qr-dialog {
  width: min(420px, calc(100vw - 28px));
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.qr-dialog::backdrop {
  background: rgba(23, 34, 31, 0.88);
  backdrop-filter: blur(4px);
}

.qr-dialog[open] {
  animation: dialogPop 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.qr-dialog .dialog-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 1;
}

.qr-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
}

.qr-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 4px 0;
}

.qr-dialog-footer p {
  margin: 0;
  color: var(--paper);
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 600;
}

/* ══════════════════════════════════════════
   MUSIC PROMPT (autoplay blocked fallback)
══════════════════════════════════════════ */
.music-prompt {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--wine);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 300;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.music-prompt.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  animation: prompt-pulse 2s ease-in-out infinite;
}

@keyframes prompt-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(0,0,0,0.18), 0 0 0 0 rgba(201,111,120,0.45); }
  50%       { box-shadow: 0 4px 18px rgba(0,0,0,0.18), 0 0 0 10px rgba(201,111,120,0); }
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(160deg, #0e1a17 0%, var(--ink) 100%);
  color: var(--paper);
  padding: clamp(56px, 8vw, 96px) clamp(22px, 8vw, 96px) clamp(36px, 5vw, 54px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(198, 164, 109, 0.1), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(201, 111, 120, 0.06), transparent 50%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 22px;
}

.footer-names {
  margin: 0 0 8px;
  font-family: "Great Vibes", "Playfair Display", serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 400;
  background: linear-gradient(135deg, var(--paper) 20%, var(--gold-light) 55%, var(--paper) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

.footer-date {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--gold);
  letter-spacing: 0.2em;
}

.footer-message {
  margin: 0 0 32px;
  color: rgba(255, 253, 247, 0.64);
  font-size: 15px;
  line-height: 1.85;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 28px;
}

.footer-nav a {
  color: rgba(255, 253, 247, 0.54);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.18s ease;
}

.footer-nav a:hover { color: var(--gold); }

.footer-copyright {
  color: rgba(255, 253, 247, 0.28);
  font-size: 12px;
}

/* ══════════════════════════════════════════
   FLOATING ACTIONS
══════════════════════════════════════════ */
.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 10px;
}

.floating-actions a {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  background: var(--wine);
  border-radius: 50%;
  box-shadow: var(--soft-shadow);
  animation: floatingButton 3.8s ease-in-out infinite;
  transition: transform 0.2s ease, background 0.2s ease;
}

.floating-actions a:nth-child(2) { animation-delay: 0.18s; }
.floating-actions a:nth-child(3) { animation-delay: 0.36s; }

.floating-actions a:hover {
  animation-play-state: paused;
  background: #8b4050;
  transform: translateY(-3px) scale(1.04);
}

.floating-actions svg { width: 21px; height: 21px; }

/* ══════════════════════════════════════════
   PHOTO DIALOG
══════════════════════════════════════════ */
.photo-dialog {
  width: min(920px, calc(100vw - 28px));
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.photo-dialog::backdrop {
  background: rgba(23, 34, 31, 0.88);
  backdrop-filter: blur(4px);
}

.photo-dialog[open] {
  animation: dialogPop 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.photo-dialog img {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: var(--ink);
  border-radius: var(--radius);
}

.dialog-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 1;
}

.dialog-prev,
.dialog-next {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.9);
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  box-shadow: var(--soft-shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}

.dialog-prev { left: -20px; }
.dialog-next { right: -20px; }

.dialog-prev:hover { background: #fff; transform: translateY(-50%) translateX(-2px); }
.dialog-next:hover { background: #fff; transform: translateY(-50%) translateX(2px); }

.dialog-prev svg,
.dialog-next svg { width: 20px; height: 20px; stroke-width: 2.3; }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast {
  position: fixed;
  right: 18px;
  bottom: 190px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  color: var(--paper);
  pointer-events: none;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   REVEAL / SCROLL ANIMATIONS
══════════════════════════════════════════ */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover lifts for cards */
.event-card:hover,
.gift-card:hover {
  box-shadow: 0 28px 78px rgba(23, 34, 31, 0.18);
  transform: translateY(-4px);
}

/* ══════════════════════════════════════════
   CONFETTI CANVAS
══════════════════════════════════════════ */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}

/* ══════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════ */
@keyframes headerDrop {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0);     }
}

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

@keyframes heroLightSweep {
  from { opacity: 0.36; transform: translateX(-18%); }
  to   { opacity: 0.72; transform: translateX(8%);   }
}

@keyframes floatingButton {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-6px); }
}

@keyframes snowFall {
  from { transform: translate3d(0, -12vh, 0) rotate(0deg);   }
  to   { transform: translate3d(var(--drift), 118vh, 0) rotate(180deg); }
}

@keyframes snowTexture {
  from { transform: translateY(0);   }
  to   { transform: translateY(50%); }
}

@keyframes heartFloat {
  0%       { opacity: 0; transform: translate3d(0, 104vh, 0) scale(0.82) rotate(-10deg); }
  12%, 82% { opacity: var(--particle-opacity, 0.72); }
  100%     { opacity: 0; transform: translate3d(var(--drift), -18vh, 0) scale(1.08) rotate(14deg); }
}

@keyframes balloonRise {
  0%       { opacity: 0; transform: translate3d(0, 110vh, 0) rotate(-3deg); }
  14%, 84% { opacity: var(--particle-opacity, 0.64); }
  100%     { opacity: 0; transform: translate3d(var(--drift), -24vh, 0) rotate(5deg); }
}

@keyframes petalFall {
  0%       { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(var(--rot-start, 0deg)); }
  8%, 88%  { opacity: var(--particle-opacity, 0.52); }
  100%     { opacity: 0; transform: translate3d(var(--drift), 108vh, 0) rotate(var(--rot-end, 540deg)); }
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.38; }
  50%       { opacity: 1;    }
}

@keyframes blink {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0.15; }
}

@keyframes flipNum {
  0%   { transform: translateY(-40%) scaleY(0.4); opacity: 0; }
  60%  { transform: translateY(6%) scaleY(1.06);  opacity: 1; }
  100% { transform: translateY(0)   scaleY(1);    opacity: 1; }
}

@keyframes scrollBounce {
  0%   { transform: translateX(-50%) translateY(0);   opacity: 1; }
  80%  { transform: translateX(-50%) translateY(14px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0);   opacity: 0; }
}

@keyframes rippleBurst {
  to { transform: translate(-50%, -50%) scale(90); opacity: 0; }
}

@keyframes dialogPop {
  from { opacity: 0; transform: scale(0.92) translateY(14px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

@keyframes kenBurns0 {
  from { transform: scale(1.0)  translate(0%,    0%); }
  to   { transform: scale(1.08) translate(-2%,  -1%); }
}
@keyframes kenBurns1 {
  from { transform: scale(1.06) translate(-1.5%, 0%); }
  to   { transform: scale(1.0)  translate(1.5%,  0.8%); }
}
@keyframes kenBurns2 {
  from { transform: scale(1.0)  translate(1%,   -1%); }
  to   { transform: scale(1.07) translate(-1%,   1.2%); }
}
@keyframes kenBurns3 {
  from { transform: scale(1.05) translate(0.8%,  0.5%); }
  to   { transform: scale(1.0)  translate(-1.5%, -0.8%); }
}

/* ══════════════════════════════════════════
   RESPONSIVE — 1080px
══════════════════════════════════════════ */
@media (max-width: 1080px) {
  .site-header { min-height: 64px; }

  .menu-toggle { display: grid; }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    max-height: calc(100vh - 84px);
    padding: 8px;
    overflow: auto;
    color: var(--ink);
    background: rgba(255, 253, 247, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 12px;
    color: var(--ink);
    border-radius: 6px;
  }

  .nav-links a::after { content: none; }

  .nav-links a:hover,
  .nav-links a.is-active {
    color: var(--wine);
    background: rgba(201, 111, 120, 0.08);
  }

  .couple-grid,
  .guestbook-layout,
  .rsvp-card { grid-template-columns: 1fr; }

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

  .dialog-prev { left: 4px; }
  .dialog-next { right: 4px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — 720px
══════════════════════════════════════════ */
@media (max-width: 720px) {
  .site-header { padding: 0 14px; }

  .hero-nav { width: 40px; height: 40px; }
  .hero-indicators { bottom: 58px; }

  .hero,
  .hero-content { min-height: 88vh; }

  .hero-image { object-position: 54% 20%; }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(23, 34, 31, 0.84) 0%, rgba(23, 34, 31, 0.5) 52%, rgba(23, 34, 31, 0.15) 100%);
  }

  .hero-content {
    align-content: end;
    max-width: none;
    padding: 98px 18px 50px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 56px);
    line-height: 0.94;
  }

  .hero h1 .amp { margin: 0; font-size: 0.42em; }

  .hero-note {
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
    font-size: 15px;
  }

  .hero-buttons { display: grid; justify-content: stretch; }

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

  .quick-actions a { min-height: 96px; }

  .quick-actions span { max-width: 8.5em; font-size: 12px; }

  .section-pad { padding: 62px 16px; }

  .section-heading { margin-bottom: 30px; }

  .person-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .person-card img { aspect-ratio: 3 / 4; object-position: top center; }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .album-grid button,
  .album-grid button:nth-child(1),
  .album-grid button:nth-child(4),
  .album-grid button:nth-child(2),
  .album-grid button:nth-child(3),
  .album-grid button:nth-child(5),
  .album-grid button:nth-child(6) {
    grid-column: span 1;
    min-height: 190px;
  }

  .form-panel,
  .messages-panel,
  .rsvp-card,
  .gift-card,
  .event-card { padding: 20px; }

  .wish-meta { display: grid; gap: 4px; }

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

  .floating-actions { right: 12px; bottom: 12px; }

  .toast { right: 12px; bottom: 170px; }

  .countdown-grid { gap: 8px; }

  .countdown-cell { min-width: 64px; padding: 18px 10px 14px; }

  .countdown-sep { font-size: clamp(28px, 7vw, 42px); }

  .dialog-prev,
  .dialog-next {
    width: 36px;
    height: 36px;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — 420px
══════════════════════════════════════════ */
@media (max-width: 420px) {
  .hero-nav { width: 36px; height: 36px; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }

  .brand,
  .icon-button { width: 42px; }

  .hero-buttons { display: grid; }

  .primary-button,
  .ghost-button { width: 100%; }

  .album-grid button,
  .album-grid button:nth-child(1),
  .album-grid button:nth-child(4),
  .album-grid button:nth-child(2),
  .album-grid button:nth-child(3),
  .album-grid button:nth-child(5),
  .album-grid button:nth-child(6) {
    min-height: 164px;
  }

  .countdown-grid { gap: 5px; }
  .countdown-cell { min-width: 52px; padding: 14px 6px 12px; }
  .countdown-sep  { margin-bottom: 22px; }

  .rsvp-card h2 { font-size: clamp(24px, 7vw, 32px); }
}

/* Intro section h2 — force single line on desktop */
.intro-section .section-heading h2 {
  font-size: clamp(22px, 4.5vw, 46px);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .intro-section .section-heading h2 {
    white-space: normal;
  }
}

/* ══════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body::after,
  .hero::before { content: none; }

  .hero-slides { transform: none; transition: none; }
  .hero-slide { transition: none; }
  .hero-slide-img { animation: none !important; }

  .reveal-item,
  .reveal-item.is-visible {
    opacity: 1;
    transform: none;
  }

  .section-kicker,
  .eyebrow,
  .hero h1 .name-line,
  .footer-names {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--gold);
  }

  .hero h1 .name-line { color: var(--paper); }
  .footer-names { color: var(--paper); }
}
