/* =========================================================
   Emma & James — Wedding Website
   Design system: warm ivory + umber + dusty rose + sage
   ========================================================= */

:root {
  --ivory: #f7f3ec;
  --ivory-2: #f0e9dd;
  --umber: #3f3a36;
  --umber-soft: #6b6259;
  --rose: #c98a86;
  --rose-deep: #a9605c;
  --sage: #7d8471;
  --champagne: #c9b79c;
  --gold: #b08d57;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--umber);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, .img-slot { display: block; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.01em; }

::selection { background: var(--rose); color: var(--white); }

/* ---------- Reusable placeholder image slots ---------- */
.img-slot {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.15), rgba(0,0,0,0.08)),
    linear-gradient(135deg, var(--champagne), var(--rose) 45%, var(--sage) 100%);
  background-size: cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-slot::after {
  content: attr(data-caption);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.92);
  background: rgba(63,58,54,0.28);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.img-slot:hover::after { opacity: 1; }
.img-slot.has-photo::after { content: none; }
.img-slot img.loaded-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

/* ---------- Curtain-style photo reveal on scroll ---------- */
.img-reveal { overflow: hidden; }
.img-reveal::before {
  content: '';
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(135deg, var(--champagne), var(--rose) 55%, var(--sage));
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 1.05s var(--ease);
  transition-delay: 0.15s;
}
.img-reveal.is-visible::before { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  .img-reveal::before { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.2s ease-out;
}
.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--umber); }
.btn-dark {
  background: var(--umber);
  color: var(--ivory);
}
.btn-dark:hover { background: var(--rose-deep); transform: translateY(-2px); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--umber);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-monogram {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--ivory);
  letter-spacing: 0.05em;
}
.preloader-monogram span { color: var(--rose); margin: 0 0.3rem; }
.preloader-bar {
  width: 180px; height: 1px; background: rgba(255,255,255,0.2);
  margin-top: 1.5rem; overflow: hidden;
}
.preloader-bar-fill {
  width: 0%; height: 100%; background: var(--rose);
  animation: loadbar 1.4s var(--ease) forwards;
}
@keyframes loadbar { to { width: 100%; } }

/* ---------- Custom cursor (small heart, follows pointer) ---------- */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%) scale(0.9);
  transition: transform 0.16s ease-out, opacity 0.2s;
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
}
.cursor-dot::before {
  content: '♥';
  font-size: 26px;
  color: var(--rose-deep);
  line-height: 1;
}
.cursor-dot.active { opacity: 0.8; }
.cursor-dot.grow { transform: translate(-50%, -50%) scale(1.6); }
.cursor-dot.grow::before { color: var(--rose); }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* Trailing hearts behind the cursor */
.cursor-trail {
  position: fixed; top: 0; left: 0; width: 0; height: 0;
  pointer-events: none; z-index: 9997;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor-trail::before {
  content: '♥';
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  display: block;
  font-size: calc(28px - var(--i) * 1.8px);
  color: var(--rose);
  opacity: calc(0.85 - var(--i) * 0.085);
}
body.cursor-trail-active .cursor-trail { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-trail { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-trail { display: none; } }

/* ---------- Scroll progress bar ---------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  z-index: 600; transition: width 0.1s linear;
}

/* ---------- Floating hearts (ambient, subtle) ---------- */
.floating-hearts {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1;
}
.floating-hearts span {
  position: absolute; bottom: -8%; left: 0;
  color: rgba(255,255,255,0.32);
  animation-name: floatHeart;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
.floating-hearts span::before { content: '♥'; }
.floating-hearts-rose span { color: rgba(201,138,134,0.35); }
@keyframes floatHeart {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(-115vh) translateX(18px) rotate(18deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-hearts span { animation: none; display: none; }
}

/* ---------- Nav ---------- */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 1.6rem 0;
}
#mainNav.scrolled {
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(63,58,54,0.08);
  padding: 0.9rem 0;
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 1.8rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.08em;
  color: var(--white); transition: color 0.4s var(--ease);
}
#mainNav.scrolled .nav-logo { color: var(--umber); }
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); position: relative; padding-bottom: 4px;
  transition: color 0.4s var(--ease);
}
#mainNav.scrolled .nav-links a { color: var(--umber-soft); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: currentColor; transition: right 0.35s var(--ease);
}
.nav-links a:hover::after { right: 0; }
.nav-links a.nav-cta {
  border: 1px solid rgba(255,255,255,0.6); padding: 0.5rem 1.2rem; border-radius: 100px;
}
#mainNav.scrolled .nav-links a.nav-cta { border-color: var(--umber); }
#navToggle {
  display: none; flex-direction: column; gap: 5px; width: 26px; z-index: 60;
}
#navToggle span {
  height: 1.5px; width: 100%; background: var(--white); transition: all 0.35s var(--ease);
}
#mainNav.scrolled #navToggle span { background: var(--umber); }
.nav-links-mobile {
  display: none;
  position: fixed; top: 0; right: -100%; width: min(78vw, 340px); height: 100vh;
  background: var(--umber); flex-direction: column; padding: 6.5rem 2.5rem;
  gap: 1.6rem; transition: right 0.5s var(--ease); z-index: 55;
}
.nav-links-mobile.open { right: 0; }
.nav-links-mobile a {
  color: var(--ivory); font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.03em;
}
.nav-links-mobile a.nav-cta { color: var(--rose); }

/* ---------- Hero ---------- */
#hero {
  position: relative; height: 100svh; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; top: -6%; left: -6%; width: 112%; height: 112%; will-change: transform; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(63,58,54,0.35) 0%, rgba(63,58,54,0.45) 55%, rgba(63,58,54,0.75) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); padding: 0 1.5rem; }
.eyebrow {
  font-size: 0.82rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.85; margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(3.2rem, 11vw, 8rem); line-height: 0.95; font-weight: 400;
  display: flex; align-items: center; justify-content: center; gap: 0.3em; flex-wrap: wrap;
}
.hero-amp { font-style: italic; color: var(--rose); font-size: 0.7em; }
.hero-sub {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  margin-top: 0.6rem; opacity: 0.95;
}
.hero-date {
  margin-top: 1.6rem; font-size: 0.9rem; letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; opacity: 0.92;
}
.hero-date .dot { opacity: 0.5; }
.hero-content .btn { margin-top: 2.4rem; }

.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--white); opacity: 0.8;
}
.scroll-cue span { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-cue-line {
  width: 1px; height: 42px; background: rgba(255,255,255,0.5); overflow: hidden; position: relative;
}
.scroll-cue-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--white); animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 50% { top: 100%; } 100% { top: 100%; } }

/* ---------- Reveal animation base classes (GSAP toggles .is-visible) ---------- */
.reveal-up { opacity: 0; transform: translateY(46px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.92) translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1) translateY(0); }

/* ---------- Section shared ---------- */
section { position: relative; padding: 7.5rem 1.8rem; max-width: var(--container); margin: 0 auto; }
section#countdown, section#details, section#party, section#faq { max-width: 100%; }

.section-head { max-width: 640px; margin: 0 auto 4.5rem; text-align: center; }
.section-head.light { color: var(--ivory); }
.section-eyebrow { font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--rose-deep); margin-bottom: 0.9rem; }
.section-head.light .section-eyebrow { color: var(--rose); }
.section-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.1rem; }
.section-lede { color: var(--umber-soft); line-height: 1.75; font-size: 1.02rem; }
.section-head.light .section-lede { color: rgba(247,243,236,0.75); }

/* ---------- Countdown ---------- */
#countdown {
  background: var(--umber);
  color: var(--ivory);
  padding: 5.5rem 1.8rem;
  text-align: center;
}
.countdown-inner { max-width: var(--container); margin: 0 auto; }
.countdown-grid { display: flex; justify-content: center; gap: clamp(1rem, 5vw, 3.5rem); margin-top: 2.2rem; flex-wrap: wrap; }
.countdown-item { display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.countdown-item span {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1;
  color: var(--rose); font-variant-numeric: tabular-nums;
}
.countdown-item small { margin-top: 0.6rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }

/* ---------- Timeline (Our Story) ---------- */
.timeline { position: relative; max-width: 920px; margin: 0 auto; padding-top: 1rem; }
.timeline-line { position: absolute; left: 50%; top: 0; width: 2px; transform: translateX(-50%); }
.timeline-line-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--champagne); }
.timeline-item { position: relative; width: 50%; padding: 0 3.2rem 5rem; }
.timeline-left { left: 0; text-align: right; }
.timeline-right { left: 50%; text-align: left; }
.timeline-dot {
  position: absolute; top: 0.4rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--rose-deep); border: 3px solid var(--ivory); box-shadow: 0 0 0 2px var(--champagne);
}
.timeline-left .timeline-dot { right: -8px; }
.timeline-right .timeline-dot { left: -8px; }

.ring-inline { display: inline-block; }
.ring-inline::after {
  content: '💍'; font-size: 0.65em; margin-left: 0.3em; opacity: 0.85;
  display: inline-block; transform: rotate(-8deg);
}

.timeline-card {
  background: var(--white); border-radius: 18px; padding: 1.6rem 1.6rem 1.9rem; box-shadow: 0 18px 40px -22px rgba(63,58,54,0.35);
}
.timeline-img { width: 100%; aspect-ratio: 16/10; border-radius: 12px; margin-bottom: 1.1rem; overflow: hidden; }
.timeline-year { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose-deep); }
.timeline-card h3 { font-size: 1.5rem; margin: 0.4rem 0 0.6rem; }
.timeline-card p { color: var(--umber-soft); line-height: 1.65; font-size: 0.94rem; }

.couple-portrait { max-width: 720px; margin: 2rem auto 0; aspect-ratio: 4/3; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(63,58,54,0.4); }
.couple-portrait-img { width: 100%; height: 100%; }

@media (max-width: 760px) {
  .timeline-line { left: 18px; transform: none; }
  .timeline-item, .timeline-left, .timeline-right { width: 100%; left: 0; text-align: left; padding: 0 0 3.2rem 3.6rem; }
  .timeline-left .timeline-dot, .timeline-right .timeline-dot { left: 12px; }
}

/* ---------- Details / Schedule ---------- */
#details { background: var(--umber); color: var(--ivory); padding: 7.5rem 1.8rem; }
.schedule-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem;
}
.schedule-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 2.2rem 1.7rem; transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.schedule-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); }
.schedule-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.schedule-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.schedule-time { color: var(--rose); font-size: 0.85rem; letter-spacing: 0.05em; margin-bottom: 0.9rem; }
.schedule-card p { font-size: 0.9rem; line-height: 1.6; color: rgba(247,243,236,0.75); }
.schedule-note { margin-top: 0.8rem; font-size: 0.8rem; font-style: italic; color: rgba(247,243,236,0.55); }

.dresscode {
  max-width: var(--container); margin: 4rem auto 0; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 3.5rem;
}
.dresscode h3 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.dresscode p { max-width: 560px; margin: 0 auto; color: rgba(247,243,236,0.75); line-height: 1.7; font-size: 0.95rem; }
.palette { display: flex; justify-content: center; gap: 0.7rem; margin-top: 1.6rem; }
.palette span { width: 34px; height: 34px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 3px rgba(255,255,255,0.15); }

/* ---------- Venue ---------- */
.venue-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.venue-info .btn { margin-top: 1.6rem; }
.venue-facts { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.venue-facts li { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.92rem; }
.venue-facts strong { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rose-deep); }
.venue-facts span { color: var(--umber-soft); }
.venue-map { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3.3; box-shadow: 0 25px 50px -25px rgba(63,58,54,0.4); }
.venue-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15) contrast(1.02); }

.venue-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 4.5rem; }
.venue-gallery-img { aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; }

.travel-block { margin-top: 5rem; text-align: center; }
.travel-block h3 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.travel-block > p { color: var(--umber-soft); margin-bottom: 2.2rem; }
.travel-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 720px; margin: 0 auto; }
.travel-card { background: var(--white); border-radius: 16px; padding: 1.8rem; box-shadow: 0 16px 34px -20px rgba(63,58,54,0.3); text-align: left; }
.travel-card h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.travel-card p { font-size: 0.88rem; color: var(--umber-soft); margin-bottom: 0.8rem; }
.travel-code { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose-deep); border-top: 1px dashed var(--champagne); padding-top: 0.7rem; display: block; }

@media (max-width: 820px) {
  .venue-wrap { grid-template-columns: 1fr; }
  .venue-gallery { grid-template-columns: 1fr; }
}

/* ---------- Wedding Party ---------- */
#party { background: var(--umber-soft); color: var(--ivory); }
.party-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2.2rem; max-width: var(--container); margin: 0 auto; }
.party-card { text-align: center; }
.party-photo { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 1.1rem; overflow: hidden; border: 3px solid rgba(255,255,255,0.25); }
.party-card h4 { font-size: 1.2rem; }
.party-card span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem;
}
.gallery-item { border-radius: 14px; overflow: hidden; cursor: pointer; }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-item .img-slot, .gallery-item.img-slot { transition: transform 0.6s var(--ease); }
.gallery-item:hover { transform: none; }
.gallery-item:hover.img-slot { transform: scale(1.06); }

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(6) { grid-column: span 1; }
}

.lightbox {
  position: fixed; inset: 0; background: rgba(20,18,16,0.92); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 3rem;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
#lightboxClose {
  position: absolute; top: 1.6rem; right: 2rem; color: var(--white); font-size: 2.4rem; line-height: 1;
}

/* ---------- FAQ ---------- */
#faq { background: var(--ivory-2); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(63,58,54,0.15); }
.faq-q {
  width: 100%; text-align: left; padding: 1.5rem 0.2rem; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 1.15rem;
}
.faq-q span { font-size: 1.4rem; color: var(--rose-deep); transition: transform 0.4s var(--ease); }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a p { padding: 0 0.2rem 1.5rem; color: var(--umber-soft); line-height: 1.7; font-size: 0.95rem; }

/* ---------- Registry ---------- */
.registry-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; max-width: 760px; margin: 0 auto; }
.registry-card {
  background: var(--white); border-radius: 18px; padding: 2.4rem 1.8rem; text-align: center;
  box-shadow: 0 16px 34px -22px rgba(63,58,54,0.3); transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column; gap: 0.7rem;
}
.registry-card:hover { transform: translateY(-6px); }
.registry-logo { font-family: var(--font-display); font-size: 1.3rem; }
.registry-card p { color: var(--umber-soft); font-size: 0.9rem; }
.registry-link { color: var(--rose-deep); font-size: 0.85rem; letter-spacing: 0.05em; margin-top: 0.4rem; }

/* ---------- RSVP ---------- */
#rsvp { background: var(--umber); color: var(--ivory); }
.rsvp-wrap { max-width: 640px; margin: 0 auto; position: relative; z-index: 2; }
#rsvp .section-lede { color: rgba(247,243,236,0.75); }
.rsvp-form { display: flex; flex-direction: column; gap: 1.4rem; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; position: relative; }
.form-row label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247,243,236,0.7); }
.form-row input, .form-row select, .form-row textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
  padding: 0.85rem 1rem; color: var(--ivory); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(247,243,236,0.35); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--rose); background: rgba(255,255,255,0.1);
}
.form-row select option { color: var(--umber); }
.field-error { font-size: 0.75rem; color: #e39a97; min-height: 1em; }

.radio-group { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.radio-pill {
  border: 1px solid rgba(255,255,255,0.25); border-radius: 100px; padding: 0.65rem 1.2rem;
  font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
  transition: all 0.3s var(--ease);
}
.radio-pill input { accent-color: var(--rose); }
.radio-pill:has(input:checked) { background: var(--rose); border-color: var(--rose); }

.btn-submit { position: relative; margin-top: 0.6rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.btn-spinner {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(247,243,236,0.4); border-top-color: var(--ivory);
  display: none; animation: spin 0.7s linear infinite;
}
.btn-submit.loading .btn-spinner { display: inline-block; }
.btn-submit.loading .btn-text { opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note { font-size: 0.76rem; color: rgba(247,243,236,0.45); line-height: 1.6; text-align: center; margin-top: 0.4rem; }
.form-note code { background: rgba(255,255,255,0.08); padding: 0.1rem 0.35rem; border-radius: 4px; }

.rsvp-success {
  display: none; text-align: center; padding: 3rem 1rem; flex-direction: column; align-items: center; gap: 0.8rem;
}
.rsvp-success.show { display: flex; }
.rsvp-success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--rose); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  animation: pop 0.5s var(--ease);
}
.rsvp-success h3 { font-size: 1.8rem; }
.rsvp-success p { color: rgba(247,243,236,0.75); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Footer ---------- */
#footer {
  background: var(--umber); color: rgba(247,243,236,0.7); text-align: center;
  padding: 4rem 1.8rem 2.5rem; border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-monogram { font-family: var(--font-display); font-size: 2rem; color: var(--ivory); margin-bottom: 0.6rem; }
.footer-date { font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.footer-hashtag { color: var(--rose); font-size: 0.85rem; margin-bottom: 1.2rem; }
.footer-note { font-size: 0.85rem; max-width: 420px; margin: 0 auto 1rem; line-height: 1.6; }
.footer-contact { font-size: 0.85rem; margin-bottom: 1.6rem; }
.footer-contact a { text-decoration: underline; text-underline-offset: 3px; }
.footer-credit { font-size: 0.72rem; opacity: 0.5; }

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  #navToggle { display: flex; }
  .nav-links-mobile { display: flex; }
}

@media (max-width: 600px) {
  section { padding: 5rem 1.3rem; }
  .timeline-card { padding: 1.3rem 1.3rem 1.6rem; }
}
