/* ══════════════════════════════════════
   SECTIONS — Wedding invitation sections
   ══════════════════════════════════════ */

/* ── Password Screen ── */
.gate-screen {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.gate-screen.hidden {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.gate-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
    var(--charcoal);
}

.gate-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.gate-particle {
  position: absolute;
  width: 1px;
  height: 1px;
  background: var(--gold);
  border-radius: var(--radius-full);
  opacity: 0;
  animation: gateFloat 8s infinite;
}

@keyframes gateFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  15% {
    opacity: 0.5;
  }
  85% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

.gate-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  max-width: 380px;
  width: 90%;
}

.gate-ornament-top,
.gate-ornament-bottom {
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: var(--space-lg);
}

.gate-ornament-bottom {
  margin-top: var(--space-lg);
  margin-bottom: 0;
}

.gate-ornament-top svg,
.gate-ornament-bottom svg {
  width: 120px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.gate-prelude {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-lg);
}

.gate-names {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 300;
  color: var(--champagne);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.gate-amp {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  margin: 0 0.1em;
  display: inline-block;
}

.gate-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-on-dark-muted);
  margin-top: var(--space-lg);
  line-height: 1.6;
}

.gate-field {
  position: relative;
  margin-top: var(--space-2xl);
}

.gate-input {
  width: 100%;
  padding: var(--space-md) 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--champagne);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-align: center;
  transition: border-color var(--duration-normal) ease;
}

.gate-input::placeholder {
  color: var(--text-on-dark-muted);
  font-weight: 300;
}

.gate-input:focus {
  border-bottom-color: var(--gold);
}

.gate-input-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all var(--duration-normal) var(--ease-out);
  transform: translateX(-50%);
}

.gate-input:focus ~ .gate-input-line {
  width: 100%;
}

.gate-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: var(--space-sm);
  min-height: 1.2em;
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.gate-error.visible {
  opacity: 1;
}

.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-md) var(--space-2xl);
  margin-top: var(--space-xl);
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.gate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out);
  z-index: 0;
}

.gate-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.gate-btn:hover {
  color: var(--charcoal);
}

.gate-btn-text,
.gate-btn-spinner {
  position: relative;
  z-index: 1;
}

.gate-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
}

.gate-btn.loading .gate-btn-text { display: none; }
.gate-btn.loading .gate-btn-spinner { display: block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--charcoal);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 1.5s ease;
  filter: brightness(0.4) saturate(0.8);
}

.hero-bg img.loaded {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, rgba(26,26,26,0.3) 0%, rgba(26,26,26,0.1) 40%, rgba(26,26,26,0.6) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(26,26,26,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: var(--space-4xl) var(--space-xl) var(--space-2xl);
  text-align: center;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.2s var(--ease-out) 0.3s forwards;
}

.hero-prelude {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-divider-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-name-1,
.hero-name-2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 300;
  color: var(--champagne);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hero-ampersand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin: var(--space-xs) 0;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.05em;
  max-width: 300px;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.2s var(--ease-out) 0.8s forwards;
}

.hero-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-cta {
  display: inline-block;
  padding: var(--space-sm) var(--space-2xl);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all var(--duration-normal) var(--ease-out);
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

.hero-scroll {
  width: 1px;
  height: 50px;
  position: relative;
  overflow: hidden;
}

.hero-scroll-line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Welcome ── */
.welcome {
  text-align: center;
  background: var(--ivory);
}

.welcome-guest {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-dark);
  margin-bottom: var(--space-lg);
  min-height: 1.5em;
}

.welcome-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 400px;
  margin: 0 auto;
}

/* ── Story ── */
.story {
  background: var(--ivory);
}

.story-timeline {
  position: relative;
  padding-left: var(--space-3xl);
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.story-ring {
  position: absolute;
  top: 0;
  left: 2px;
  width: 32px;
  height: 32px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.story-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 185, 106, 0.29) 0%, rgba(212, 185, 106, 0.11) 50%, transparent 75%);
  animation: ringAura 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.story-ring.ring-arrived::before {
  animation: ringAuraPulse 0.25s ease-out forwards;
}

@keyframes ringAura {
  0%, 100% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes ringAuraPulse {
  0% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.92);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
  100% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.92);
  }
}

.ring-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ring-highlight {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ring-highlight::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -80%;
  width: 50%;
  height: 160%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 48%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.25) 52%,
    transparent 70%
  );
  transform: translateX(0);
  opacity: 0;
}

.story-ring.ring-arrived .ring-highlight::after {
  animation: ringHighlightSweep 0.28s ease-out forwards;
}

@keyframes ringHighlightSweep {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(360%);
  }
}

.story-item {
  position: relative;
  padding-bottom: var(--space-2xl);
  opacity: 0.4;
  transform: translateX(-4px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.story-item:last-child {
  padding-bottom: 0;
}

.story-item.ring-near {
  opacity: 1;
  transform: translateX(0);
}

.story-marker {
  position: absolute;
  left: calc(-1 * var(--space-3xl) + 13px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--ivory);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--ivory);
  transition: background var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.story-item.ring-near .story-marker {
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--ivory), 0 0 8px rgba(201, 168, 76, 0.3);
}

.story-date-text {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
}

.story-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Countdown ── */
.countdown {
  background: var(--charcoal);
  color: var(--champagne);
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
  margin-top: var(--space-3xl);
}

.countdown .section-label {
  color: var(--gold);
}

.countdown .section-title {
  color: var(--champagne);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-top: var(--space-xs);
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.3;
  margin-top: -1rem;
}

/* ── Details ── */
.details {
  background: var(--ivory);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.detail-card {
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  border: 1px solid rgba(0,0,0,0.04);
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.detail-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-md);
  color: var(--gold);
}

.detail-icon svg {
  width: 100%;
  height: 100%;
}

.detail-card h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.detail-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.detail-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.details-notes {
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.04);
}

.details-notes h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.details-notes ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.details-notes li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: var(--space-lg);
  position: relative;
  line-height: 1.5;
}

.details-notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--gold);
}

/* ── Dress Code ── */
.dresscode {
  background: var(--ivory);
  text-align: center;
}

.dresscode-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  font-style: italic;
}

.dresscode-tones {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* ── Gallery ── */
.gallery {
  background: var(--ivory);
  max-width: var(--max-width-full);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--duration-normal) ease;
}

.gallery-item:hover::after {
  background: rgba(0,0,0,0.1);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.lightbox.visible {
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  color: var(--white);
  font-size: 2rem;
  z-index: 501;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  z-index: 501;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--duration-fast) ease;
}

.lightbox-prev { left: var(--space-xl); }
.lightbox-next { right: var(--space-xl); }

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 24px;
  height: 24px;
}

.lightbox-img-container {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-counter {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ── Timeline ── */
.timeline {
  background: var(--ivory);
}

.timeline-list {
  position: relative;
  padding-left: var(--space-3xl);
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.timeline-ring {
  position: absolute;
  top: 0;
  left: 5px;
  width: 32px;
  height: 32px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.timeline-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 185, 106, 0.29) 0%, rgba(212, 185, 106, 0.11) 50%, transparent 75%);
  animation: ringAura 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.timeline-ring.ring-arrived::before {
  animation: ringAuraPulse 0.25s ease-out forwards;
}

.timeline-ring .ring-highlight {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.timeline-ring .ring-highlight::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -80%;
  width: 50%;
  height: 160%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 48%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.25) 52%,
    transparent 70%
  );
  transform: translateX(0);
  opacity: 0;
}

.timeline-ring.ring-arrived .ring-highlight::after {
  animation: ringHighlightSweep 0.28s ease-out forwards;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
  opacity: 0.4;
  transform: translateX(-4px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item.ring-near {
  opacity: 1;
  transform: translateX(0);
}

.timeline-time {
  font-weight: 600;
  color: var(--gold);
  margin-right: var(--space-xs);
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-3xl) + 16px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--ivory);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px var(--ivory);
  transition: all var(--duration-normal) var(--ease-out);
}

.timeline-item.ring-near .timeline-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--ivory), 0 0 8px rgba(201, 168, 76, 0.3);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Location ── */
.location {
  background: var(--ivory);
}

.location-map {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--charcoal-light), var(--charcoal));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--gold);
}

.map-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.6;
}

.map-placeholder p {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-on-dark-muted);
}

.location-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.location-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: all var(--duration-normal) var(--ease-out);
  border: 1px solid rgba(0,0,0,0.04);
}

.location-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.location-btn svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
  flex-shrink: 0;
}

.location-btn span {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.location-btn small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (min-width: 768px) {
  .location-buttons {
    flex-direction: row;
  }
  .location-btn {
    flex: 1;
  }
}

/* ── RSVP ── */
.rsvp {
  background: var(--charcoal);
  color: var(--champagne);
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
}

.rsvp .section-label { color: var(--gold); }
.rsvp .section-title { color: var(--champagne); }
.rsvp .section-subtitle { color: var(--text-on-dark-muted); }

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

#rsvp-form-container {
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#rsvp-form-container.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.rsvp-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-sm);
}

.label-optional {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}

.rsvp-input {
  width: 100%;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-sm);
  color: var(--champagne);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--duration-normal) ease;
}

.rsvp-input::placeholder {
  color: var(--text-on-dark-muted);
  font-weight: 300;
}

.rsvp-input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.rsvp-textarea {
  resize: vertical;
  min-height: 80px;
}

.rsvp-field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: var(--space-xs);
  min-height: 1em;
}

.rsvp-radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.rsvp-radio {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  cursor: pointer;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-sm);
  transition: all 0.28s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.rsvp-radio:hover {
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.rsvp-radio input {
  display: none;
}

.rsvp-radio-mark {
  display: none;
}

.rsvp-radio input:checked ~ span:last-child {
  color: var(--charcoal);
}

.rsvp-radio:has(input:checked) {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: var(--shadow-glow);
}

.rsvp-radio span:last-child {
  font-size: 0.9rem;
  color: var(--text-on-dark);
  transition: color 0.28s var(--ease-out);
}

.rsvp-photo {
  margin: var(--space-2xl) 0;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.75s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.rsvp-photo.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rsvp-photo .photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rsvp-photo .photo-frame img {
  width: 100%;
  display: block;
}

.rsvp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-lg) var(--space-2xl);
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.rsvp-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.rsvp-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.rsvp-success {
  text-align: center;
  padding: var(--space-2xl);
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-lg);
  color: var(--success);
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--champagne);
  margin-bottom: var(--space-sm);
}

.rsvp-success p {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
}

/* ── Gifts ── */
.gifts {
  background: var(--ivory);
}

.gifts-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.gifts-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.gift-card {
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-out);
  border: 1px solid rgba(0,0,0,0.04);
}

.gift-card:hover {
  transform: translateY(-4px);
}

.gift-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-md);
  color: var(--gold);
}

.gift-icon svg {
  width: 100%;
  height: 100%;
}

.gift-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.gift-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.gift-detail {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  padding: var(--space-xs) var(--space-md);
  background: var(--gold-muted);
  border-radius: var(--radius-full);
}

@media (min-width: 768px) {
  .gifts-options {
    flex-direction: row;
  }
  .gift-card {
    flex: 1;
  }
}

/* ── Closing ── */
.closing {
  padding: var(--space-4xl) var(--space-xl) var(--space-5xl);
  text-align: center;
  background: var(--ivory);
}

/* ── Final Message ── */
.final-message {
  text-align: center;
  background: var(--ivory);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.final-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto;
}

.closing-ornament {
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: var(--space-2xl);
}

.closing-ornament:last-child {
  margin-top: var(--space-2xl);
  margin-bottom: 0;
}

.closing-ornament svg {
  width: 50px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-xl);
}

.closing-names {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
}

.closing-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .section {
    padding: var(--space-5xl) var(--space-2xl);
  }
  
  .details-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-item--wide {
    grid-column: span 2;
  }
  
  .countdown-grid {
    gap: var(--space-xl);
  }
  
  .countdown-unit {
    min-width: 80px;
  }
  
  .rsvp-form {
    max-width: 480px;
    margin: 0 auto;
  }
  
  .photo-moment {
    padding: var(--space-3xl) var(--space-2xl);
  }
  
  .story-timeline {
    padding-left: var(--space-4xl);
  }
  
  .story-ring {
    left: 2px;
  }
  
  .timeline-ring {
    left: 5px;
  }
}

/* ── Staggered Reveal Animations ── */
.reveal.in-view .detail-card,
.reveal.in-view .story-item,
.reveal.in-view .timeline-item,
.reveal.in-view .gift-card {
  opacity: 0;
  animation: staggerFadeIn 0.6s var(--ease-out) forwards;
}

.reveal.in-view .detail-card:nth-child(1),
.reveal.in-view .story-item:nth-child(1),
.reveal.in-view .timeline-item:nth-child(1),
.reveal.in-view .gift-card:nth-child(1) { animation-delay: 0.1s; }

.reveal.in-view .detail-card:nth-child(2),
.reveal.in-view .story-item:nth-child(2),
.reveal.in-view .timeline-item:nth-child(2),
.reveal.in-view .gift-card:nth-child(2) { animation-delay: 0.2s; }

.reveal.in-view .detail-card:nth-child(3),
.reveal.in-view .story-item:nth-child(3),
.reveal.in-view .timeline-item:nth-child(3) { animation-delay: 0.3s; }

.reveal.in-view .detail-card:nth-child(4),
.reveal.in-view .timeline-item:nth-child(4) { animation-delay: 0.4s; }

.reveal.in-view .gallery-item {
  opacity: 0;
  animation: staggerFadeIn 0.5s var(--ease-out) forwards;
}

.reveal.in-view .gallery-item:nth-child(1) { animation-delay: 0.05s; }
.reveal.in-view .gallery-item:nth-child(2) { animation-delay: 0.1s; }
.reveal.in-view .gallery-item:nth-child(3) { animation-delay: 0.15s; }
.reveal.in-view .gallery-item:nth-child(4) { animation-delay: 0.2s; }
.reveal.in-view .gallery-item:nth-child(5) { animation-delay: 0.25s; }
.reveal.in-view .gallery-item:nth-child(6) { animation-delay: 0.3s; }
.reveal.in-view .gallery-item:nth-child(7) { animation-delay: 0.35s; }
.reveal.in-view .gallery-item:nth-child(8) { animation-delay: 0.4s; }

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

/* ── Parallax-like photo zoom on scroll ── */
.photo-frame img {
  will-change: transform;
}

/* ── Gallery hover glow ── */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-normal) ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover::before {
  border-color: rgba(201, 168, 76, 0.3);
}

/* ── Detail card gold accent ── */
.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.detail-card {
  position: relative;
}

.detail-card:hover::before {
  opacity: 1;
}

/* ── Countdown pulse ── */
.countdown-unit {
  position: relative;
}

.countdown-number {
  animation: countPulse 2s ease-in-out infinite;
}

@keyframes countPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ── Timeline item hover (ring-driven, not hover) ── */
.timeline-content {
  transition: transform var(--duration-normal) var(--ease-out);
}

.timeline-item.ring-near .timeline-content {
  transform: translateX(2px);
}
