/* ============================================================
   AURORA — Mediterranean Coastal Wedding Template
   Digitiye Template System
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg: #F8F5EF;
  /* Warm sand — never pure white */
  --bg-section: #EFF4F8;
  /* Soft aegean mist */
  --bg-card: #FFFFFF;
  --bg-coral: #FAF0EC;
  /* Blush coral tint */

  /* Text */
  --text: #1A2744;
  /* Deep navy — not black */
  --text-muted: #5A7190;
  /* Medium aegean */
  --text-light: #9BB0C4;
  /* Pale blue-grey */

  /* Accent palette */
  --aegean: #8BA7C7;
  /* Soft mediterranean blue */
  --coral: #E07A5F;
  /* Sun-baked terracotta coral */
  --sand: #C9A87A;
  /* Warm golden sand */
  --sage-sea: #7AADA6;
  /* Sea glass */

  /* Borders */
  --border: #D9E5EF;
  --border-warm: #E0D4C0;

  /* Fonts */
  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 40px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;
  --s9: 192px;
}

/* ── TYPOGRAPHY BASE ──────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ── CONTAINERS ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

.container--narrow {
  max-width: 660px;
}

.container--wide {
  max-width: 1400px;
}

/* ── SECTION PADDING ──────────────────────────────────────── */
section {
  padding-top: clamp(80px, 11vw, 150px);
  padding-bottom: clamp(80px, 11vw, 150px);
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal--slow {
  transition-duration: 1.4s;
}

.reveal-group>*:nth-child(1) {
  transition-delay: 0s;
}

.reveal-group>*:nth-child(2) {
  transition-delay: 0.13s;
}

.reveal-group>*:nth-child(3) {
  transition-delay: 0.26s;
}

.reveal-group>*:nth-child(4) {
  transition-delay: 0.39s;
}

.reveal-group>*:nth-child(5) {
  transition-delay: 0.52s;
}

/* Hero entrance states */
.hero-el {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── SECTION LABEL ────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--s4);
}

/* ── SECTION TITLES ───────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--s5);
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--aegean);
}

/* ── BODY TEXT ────────────────────────────────────────────── */
.body-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: var(--s4);
}

.body-text--dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.5em;
  line-height: 0.75;
  float: left;
  margin-right: 0.08em;
  margin-top: 0.08em;
  color: var(--coral);
}

/* ── HORIZONTAL RULE ──────────────────────────────────────── */
.soft-rule {
  width: 64px;
  height: 2px;
  background: var(--aegean);
  margin-block: var(--s6);
  border: none;
}

/* ════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  /* More space for text */
  min-height: 100svh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  align-items: center;
  /* Vertically center content */
}

/* Decorative background elements */
.hero::before {
  content: '';
  position: absolute;
  top: -15vh;
  right: 35%;
  width: 60vh;
  height: 60vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 8vw, 120px) clamp(60px, 6vw, 100px);
  position: relative;
  z-index: 10;
  /* Bring above photo overlay if needed */
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--coral);
  margin-bottom: var(--s3);
  letter-spacing: 0.02em;
}

.hero-names {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 800;
  /* Extra bold */
  font-size: clamp(64px, 9.5vw, 140px);
  /* Massive size */
  line-height: 0.85;
  color: var(--text);
  margin-bottom: var(--s5);
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-names .hero-name-1 {
  margin-left: -0.05em;
}

.hero-names .amp {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--aegean);
  /* Use accent color */
  font-size: 0.45em;
  line-height: 1;
  margin-block: 0.1em;
  margin-left: 0.1em;
  display: block;
}

.hero-names .hero-name-2 {
  margin-left: 0.5em;
  /* Staggered effect */
}

.hero-date-line {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s2);
}

.hero-date-line .line {
  width: 64px;
  height: 1px;
  background: var(--text-light);
  /* Softer line */
  flex-shrink: 0;
}

.hero-date-text {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}

.hero-venue {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: var(--s2);
  padding-left: calc(64px + var(--s4));
  /* Align with date text */
  letter-spacing: 0.02em;
}

/* Scroll hint */
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(60px, 8vw, 100px);
  padding-left: 4px;
}

.scroll-hint__line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--text-light), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

.scroll-hint__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  /* Make text read up */
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  100% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* Hero photo column */
.hero-photo {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  border-bottom-left-radius: 0;
  /* Full bleed */
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  /* Slight zoom for drama */
  transition: transform 10s ease-out;
  /* Slow zoom effect on load if JS added, mostly just base scale here */
}

/* Overlay gradient to blend img with bg */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   COUNTDOWN
═══════════════════════════════════════════════════════════ */
.countdown-section {
  background: var(--bg-section);
  padding-block: clamp(60px, 8vw, 100px);
}

.countdown-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--s6);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  max-width: 640px;
  margin: 0 auto;
}

.countdown-unit {
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--s5) var(--s3);
  text-align: center;
  box-shadow: 0 2px 24px rgba(26, 39, 68, 0.06), 0 1px 4px rgba(26, 39, 68, 0.04);
  border: 1px solid var(--border);
}

.countdown-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-optical-sizing: auto;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1;
  color: var(--text);
  display: block;
}

.countdown-unit-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-top: var(--s2);
}

/* ════════════════════════════════════════════════════════════
   OUR STORY
═══════════════════════════════════════════════════════════ */
.story-section {
  background: var(--bg);
}

.story-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.story-image {
  border-radius: 20px 4px 20px 4px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 20px 30px 80px rgba(26, 39, 68, 0.12);
  position: relative;
  top: 60px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.story-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(160deg, #B8D0E4 0%, #D4C4A8 100%);
}

/* ════════════════════════════════════════════════════════════
   EVENT DETAILS
═══════════════════════════════════════════════════════════ */
.details-section {
  background: var(--bg-section);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  margin-top: var(--s6);
}

.detail-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(26, 39, 68, 0.05);
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--coral), var(--aegean));
}

.detail-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s4);
}

.detail-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--s2);
}

.detail-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--text);
  margin-bottom: var(--s3);
  line-height: 1.2;
}

.detail-info {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

.detail-info strong {
  font-weight: 500;
  color: var(--text);
  display: block;
}

/* ════════════════════════════════════════════════════════════
   MAP
═══════════════════════════════════════════════════════════ */
.map-section {
  padding: 0;
}

.map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) sepia(0.12) brightness(1.0) contrast(0.95);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #C8D4DC 0%, #D8CCBC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-overlay-card {
  position: absolute;
  top: 50%;
  left: clamp(24px, 6vw, 80px);
  transform: translateY(-50%);
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--s5);
  box-shadow: 0 8px 40px rgba(26, 39, 68, 0.14);
  min-width: 240px;
  max-width: 320px;
  z-index: 2;
}

.map-overlay-venue {
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-size: 20px;
  color: var(--text);
  margin-bottom: var(--s2);
  line-height: 1.3;
}

.map-overlay-address {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════ */
.gallery-section {
  background: var(--bg);
}

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--s6);
}

.gallery-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-light);
}

.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26, 39, 68, 0.14);
}

.gallery-photo {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: filter 0.4s ease;
}

.gallery-photo.loading {
  filter: blur(8px);
}

.gallery-photo.loaded {
  filter: saturate(0.9) contrast(1.02);
}

.gallery-photo:hover {
  filter: saturate(1.0) contrast(1.03);
}

/* ════════════════════════════════════════════════════════════
   RSVP
═══════════════════════════════════════════════════════════ */
.rsvp-section {
  background: var(--bg-section);
}

.rsvp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.rsvp-deadline {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  background: var(--bg-coral);
  border: 1px solid rgba(224, 122, 95, 0.2);
  border-radius: 8px;
  padding: var(--s2) var(--s4);
  margin-top: var(--s4);
}

.rsvp-deadline-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
}

.rsvp-embed-container {
  background: var(--bg-card);
  border-radius: 20px;
  padding: var(--s5);
  box-shadow: 0 4px 32px rgba(26, 39, 68, 0.08);
  border: 1px solid var(--border);
}

.lcv-shell {
  border: 1px solid rgba(90, 113, 144, 0.18);
  border-radius: 16px;
  padding: clamp(14px, 2.2vw, 22px);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
}

.lcv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.lcv-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(90, 113, 144, 0.24);
  background: rgba(255, 255, 255, 0.8);
  color: var(--aegean);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lcv-note {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.lcv-status {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aegean-dim);
}

.lcv-status[data-state="ready"] {
  color: var(--coral);
}

.lcv-status[data-state="error"] {
  color: #8f4d4d;
}

.lcv-embed {
  width: 100%;
  display: block;
  min-height: 620px;
  border: 1px solid rgba(90, 113, 144, 0.18);
  border-radius: 12px;
  background: #fff;
  opacity: 1;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.lcv-shell.is-loading .lcv-embed {
  opacity: 0.45;
  filter: saturate(0.9) blur(1px);
}

.lcv-shell.is-ready .lcv-embed {
  opacity: 1;
  filter: none;
}

.lcv-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.lcv-actions a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aegean);
  border-bottom: 1px solid rgba(90, 113, 144, 0.35);
  padding-bottom: 2px;
}

.lcv-actions a:hover {
  color: var(--coral);
  border-bottom-color: rgba(224, 122, 95, 0.55);
}

/* ════════════════════════════════════════════════════════════
   REGISTRY
═══════════════════════════════════════════════════════════ */
.registry-section {
  background: var(--bg-coral);
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s4);
  margin-top: var(--s6);
}

.registry-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--s5);
  border: 1px solid var(--border-warm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
  display: block;
}

.registry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 39, 68, 0.1);
}

.registry-store-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-size: 22px;
  color: var(--text);
  margin-bottom: var(--s3);
}

.registry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--coral);
  border-bottom: 1px solid rgba(224, 122, 95, 0.35);
  padding-bottom: 2px;
  transition: gap 0.3s ease, border-color 0.3s ease;
}

.registry-link:hover {
  gap: 14px;
  border-color: var(--coral);
}

.registry-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.registry-link:hover::after {
  transform: translateX(4px);
}

/* ════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--text);
  padding-block: clamp(80px, 10vw, 140px);
  text-align: center;
}

.footer-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--aegean);
  margin-bottom: var(--s5);
}

.footer-names {
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-size: clamp(40px, 5.5vw, 72px);
  color: #F8F5EF;
  line-height: 1;
  margin-bottom: var(--s3);
}

.footer-names em {
  font-style: italic;
  font-weight: 300;
  color: var(--coral);
}

.footer-date {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(248, 245, 239, 0.5);
  margin-bottom: var(--s6);
}

.footer-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  margin-bottom: var(--s6);
}

.footer-ornament-line {
  width: 48px;
  height: 1px;
  background: var(--aegean);
  opacity: 0.4;
}

.footer-ornament-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0.7;
}

.footer-credit {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.2);
}

.footer-credit a {
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-credit a:hover {
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 32, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox__close:hover {
  color: white;
}

/* ════════════════════════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 65vh auto;
    min-height: auto;
  }

  .hero-photo {
    order: -1;
    height: 100%;
  }

  .hero-photo::after {
    background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
  }

  .hero-text {
    padding: var(--s6) var(--s4) var(--s8);
    align-items: center;
    text-align: center;
  }

  .hero-names {
    align-items: center;
    font-size: 15vw;
    margin-bottom: var(--s4);
  }

  .hero-names .hero-name-1,
  .hero-names .hero-name-2 {
    margin-left: 0;
  }

  .hero-names .amp {
    font-size: 0.3em;
    margin: 0.2em 0;
  }

  .hero-date-line {
    flex-direction: column;
    gap: var(--s2);
    margin-top: var(--s4);
  }

  .hero-date-line .line {
    width: 40px;
    height: 1px;
  }

  .hero-venue {
    padding-left: 0;
    margin-top: var(--s2);
  }

  .scroll-hint {
    margin-top: var(--s6);
    justify-content: center;
    padding-left: 0;
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  .story-image {
    top: 0;
    aspect-ratio: 4 / 3;
  }

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

  .gallery-grid {
    columns: 2;
  }

  .rsvp-layout {
    grid-template-columns: 1fr;
  }

  .lcv-embed {
    min-height: 560px;
  }

  .lcv-actions {
    justify-content: flex-start;
  }

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

  .map-wrapper {
    aspect-ratio: 4 / 3;
  }

  .map-overlay-card {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    columns: 4;
  }
}

/* Premium refinement layer */
body {
  background-image:
    radial-gradient(circle at 8% 10%, rgba(224, 122, 95, 0.08), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(139, 167, 199, 0.14), transparent 34%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  z-index: 999;
}

.hero {
  border-bottom: 1px solid rgba(90, 113, 144, 0.2);
}

.hero-text {
  max-width: 700px;
}

.hero-photo {
  position: relative;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(248, 245, 239, 0.2);
  z-index: 2;
  pointer-events: none;
}

.hero-photo img {
  filter: saturate(0.92) contrast(1.04);
}

.countdown-unit {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.countdown-unit:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 42px rgba(26, 39, 68, 0.12);
  border-color: rgba(224, 122, 95, 0.24);
}

.detail-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.detail-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 48px rgba(26, 39, 68, 0.14);
  border-color: rgba(139, 167, 199, 0.34);
}

.map-wrapper iframe {
  transition: filter 0.5s ease;
}

.map-wrapper:hover iframe {
  filter: grayscale(0.18) sepia(0.08) brightness(1.01) contrast(1);
}

.map-overlay-card {
  border: 1px solid rgba(139, 167, 199, 0.24);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}

.gallery-item {
  border: 1px solid rgba(26, 39, 68, 0.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 39, 68, 0.24), transparent 42%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.rsvp-embed-container {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.92));
  border-color: rgba(90, 113, 144, 0.16);
}

.registry-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 242, 0.92));
}

.registry-card:focus-visible,
.registry-link:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

.footer {
  background:
    radial-gradient(circle at center top, rgba(139, 167, 199, 0.18), transparent 48%),
    var(--text);
}

@media (max-width: 767px) {
  .hero-photo::before {
    inset: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-el,
  .countdown-unit,
  .detail-card,
  .gallery-item {
    transition: none !important;
    animation: none !important;
  }
}
