/* ============================================================
   HANNAH & MITCHELL — WEDDING WEBSITE
   styles.css
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Lato:wght@300;400;700&display=swap');

/* ── Custom Properties ────────────────────────────────────── */
:root {
  /* Colors */
  --primary:       #8E727E;
  --primary-dark:  #6d5560;
  --secondary:     #C7BDC5;
  --sage:          #8F9984;
  --grey:          #889591;
  --white:         #FAF9F8;
  --dark:          #3d3038;
  --card-bg:       #f5f0f3;
  --line-color:    #ddd5da;

  /* Fonts */
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Lato', system-ui, sans-serif;

  /* Spacing */
  --section-gap:   6rem;
  --container:     1100px;
  --radius:        4px;
  --radius-lg:     12px;

  /* Shadows */
  --shadow-sm:     0 2px 12px rgba(61,48,56,0.08);
  --shadow-md:     0 6px 28px rgba(61,48,56,0.12);
  --shadow-lg:     0 16px 48px rgba(61,48,56,0.16);

  /* Transitions */
  --transition:    0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--grey);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ── Typography Scale ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--dark);
  line-height: 1.15;
  font-weight: 400;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2vw, 1.2rem); }

p  { font-size: clamp(0.9rem, 1.5vw, 1rem); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 1.2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--grey);
}

.italic { font-style: italic; }

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85em 2.2em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* ── Decorative Divider ───────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 260px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sage);
}
.divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--primary);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.floral-divider {
  text-align: center;
  color: var(--sage);
  font-size: 1.1rem;
  letter-spacing: 0.5em;
  margin: 0.5rem 0 1.5rem;
  opacity: 0.8;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(250,249,248,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(61,48,56,0.08);
  padding: 0.9rem 2rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--white);
  transition: color var(--transition);
  letter-spacing: 0.05em;
}
.nav-logo span {
  color: var(--secondary);
}
.nav.scrolled .nav-logo {
  color: var(--dark);
}
.nav.scrolled .nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav.scrolled .nav-links a {
  color: var(--grey);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active {
  color: var(--primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}
.nav.scrolled .nav-toggle span {
  background: var(--dark);
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Nav hidden (envelope intro) ─────────────────────────── */
.nav--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ── Page Header (inner pages) ────────────────────────────── */
.page-header {
  height: 52vh;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #b89ea8 50%, var(--secondary) 100%);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('Aloe2.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(61,48,56,0.45) 0%, rgba(61,48,56,0.35) 100%);
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
}

.page-header h1 {
  color: var(--white);
  font-style: italic;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(61,48,56,0.4);
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.page-header .section-subtitle {
  color: rgba(255,255,255,0.9);
}

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(61,48,56,0.35) 0%,
    rgba(61,48,56,0.50) 60%,
    rgba(61,48,56,0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(0.6rem, 1.2vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1.4rem;
}

.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.hero-names .ampersand {
  color: var(--secondary);
  font-weight: 300;
}

.hero-date {
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 1.4vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(1.1); }
}

/* ── Countdown ────────────────────────────────────────────── */
.countdown-section {
  background: var(--primary);
  padding: 3.5rem 2rem;
}

.countdown-inner {
  max-width: 640px;
  margin: 0 auto;
}

.countdown-label {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

.countdown-item + .countdown-item::before {
  content: ':';
  position: absolute;
  left: -2px;
  top: 0.1em;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: rgba(255,255,255,0.3);
  line-height: 1;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.countdown-unit {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.4rem;
}

/* ── Invitation Card Section ──────────────────────────────── */
.invitation-section {
  padding: var(--section-gap) 2rem;
  background: var(--white);
}

.invitation-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.invitation-section .section-header .eyebrow {
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.invitation-section h2 {
  font-style: italic;
  color: var(--dark);
}

.invitation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  max-width: var(--container);
  margin: 0 auto;
}

.invitation-map {
  min-height: 380px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-color);
}

@media (max-width: 768px) {
  .invitation-layout {
    grid-template-columns: 1fr;
  }
  .invitation-map {
    min-height: 280px;
  }
}

.invitation-card {
  background: var(--white);
  border: 1px solid var(--line-color);
  padding: 3rem 3.5rem;
  position: relative;
  box-shadow: var(--shadow-md);
}

.invitation-card-inner {
  position: relative;
}

.card-heading {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sage);
}
.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  min-width: 70px;
  padding-top: 2px;
  flex-shrink: 0;
}

.detail-value {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--dark);
  line-height: 1.5;
}

/* ── Quick Nav Grid ───────────────────────────────────────── */
.quick-nav-section {
  padding: var(--section-gap) 2rem;
  background: var(--sage);
}

.quick-nav-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.quick-nav-section .section-header .eyebrow { color: var(--white); }
.quick-nav-section .section-header h2 { color: var(--white); }

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-card {
  background: var(--white);
  padding: 2.2rem 2rem;
  border: 1px solid var(--line-color);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.nav-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.nav-card:hover::after {
  transform: scaleX(1);
}

.nav-card-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary);
  opacity: 0.8;
  font-family: var(--font-serif);
  line-height: 1;
}

.nav-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}
.nav-card:hover h3 {
  color: var(--primary);
}

.nav-card p {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.5;
}

/* ── Animate Classes ──────────────────────────────────────── */
.animate {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  margin-bottom: 3rem;
}
.section-header .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.section-header h2 {
  font-style: italic;
}

/* ── Timeline (Schedule) ──────────────────────────────────── */
.timeline-section {
  padding: var(--section-gap) 2rem;
  background: var(--white);
}

.timeline-section:nth-of-type(even) {
  background: var(--card-bg);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, var(--secondary), rgba(199,189,197,0.2));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-card {
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.2rem;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-card {
  flex: 1;
  max-width: calc(50% - 2rem);
  background: var(--white);
  border: 1px solid var(--line-color);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}

/* Spacer on the other side */
.timeline-spacer {
  flex: 1;
  max-width: calc(50% - 2rem);
}

.timeline-time {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.timeline-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(142,114,126,0.1);
  padding: 0.2em 0.7em;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ── Schedule intro & note ────────────────────────────────── */
.schedule-note-intro {
  max-width: 680px;
  margin: 0 auto 3.5rem;
  padding: 2rem 2.5rem;
  background: rgba(143,153,132,0.07);
  border: 1px solid rgba(143,153,132,0.25);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.8;
}

.schedule-note-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.schedule-note-intro p {
  margin-bottom: 0.9rem;
}

.schedule-note-intro p:last-child {
  margin-bottom: 0;
}

.schedule-dress-code {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.schedule-intro {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--grey);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.schedule-note {
  max-width: 560px;
  margin: 3rem auto 0;
  padding: 1.5rem 2rem;
  background: rgba(143,153,132,0.08);
  border: 1px solid rgba(143,153,132,0.3);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.65;
  text-align: center;
}

/* ── Alternating timeline (schedule page) ─────────────────── */
.timeline-centered {
  max-width: 860px;
}

.timeline-centered .timeline-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark);
}

/* ── Story Timeline ───────────────────────────────────────── */
.story-section {
  padding: var(--section-gap) 2rem;
  background: var(--card-bg);
}
.story-section .eyebrow { color: var(--primary); }

.story-image-wrap {
  text-align: center;
  margin-bottom: 4rem;
}

.story-image-wrap img {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  display: block;
}

.story-image-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--grey);
  margin-top: 1rem;
}

.story-timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 3.5rem;
}

.story-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--sage));
}

.story-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--line-color);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.story-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 1.8rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

.story-item:hover {
  box-shadow: var(--shadow-md);
}

.story-item:hover .story-item-title,
.story-item:hover h3 {
  color: var(--primary);
}


.story-date {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.story-item h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-weight: 400;
  transition: color var(--transition);
}

.story-item p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
}

/* ── Crew Grid ────────────────────────────────────────────── */
.crew-section {
  padding: var(--section-gap) 2rem;
  background: var(--white);
}

.crew-section-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 2rem auto;
}

.crew-card {
  text-align: center;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.crew-avatar {
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: block;
  margin: 0;
  border-radius: 0;
  background: var(--card-bg);
}

.crew-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.crew-card:hover .crew-avatar img {
  transform: scale(1.04);
}

.crew-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--dark);
  padding: 1rem 1rem 0.2rem;
}

.crew-role {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0 1rem 1.2rem;
}

.crew-bridesmaids .crew-card {
  background: #8E727E;
  border-color: #8E727E;
}

.crew-bridesmaids .crew-name,
.crew-bridesmaids .crew-role {
  color: #fff;
}

.crew-groomsmen .crew-card {
  background: var(--sage);
  border-color: var(--sage);
}

.crew-groomsmen .crew-name,
.crew-groomsmen .crew-role {
  color: #fff;
}

.crew-divider {
  border: none;
  border-top: 1px solid var(--line-color);
  max-width: 400px;
  margin: 3rem auto;
}

.crew-note {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--grey);
  margin-top: 2rem;
}

/* ── Banking / Gifts Card ─────────────────────────────────── */
.gifts-section {
  padding: var(--section-gap) 2rem;
  background: var(--white);
}

.gifts-message-wrap {
  background: var(--card-bg);
  padding: 3rem 2rem;
  margin-bottom: 3rem;
}
.gifts-section .eyebrow { color: var(--primary); }

.gifts-message {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}

.gifts-message p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--grey);
  margin-bottom: 1rem;
}

.gifts-message .sign-off {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--dark);
}

.banking-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line-color);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  position: relative;
}

.banking-card::before,
.banking-card::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--primary);
  border-style: solid;
}
.banking-card::before {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}
.banking-card::after {
  bottom: 10px;
  right: 10px;
  border-width: 0 1px 1px 0;
}

.banking-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-color);
}

.banking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--sage);
  gap: 1rem;
}
.banking-row:last-child {
  border-bottom: none;
}

.banking-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  flex-shrink: 0;
  min-width: 110px;
}

.banking-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--dark);
  flex: 1;
}

.copy-btn {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--primary);
  padding: 0.3em 0.8em;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.copy-btn.copied {
  background: var(--sage);
  color: var(--dark);
  border-color: var(--sage);
}

/* ── RSVP Form ────────────────────────────────────────────── */
.rsvp-section {
  padding: var(--section-gap) 2rem;
  background: var(--card-bg);
}

.rsvp-intro {
  max-width: 500px;
  margin: 0 auto 3rem;
  text-align: center;
}

.rsvp-intro p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
}

.rsvp-form iframe {
  display: block;
  width: 100%;
  min-height: 900px;
  border: none;
}

.form-group {
  margin-bottom: 1.6rem;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  border: none;
  border-bottom: 1.5px solid var(--line-color);
  padding: 0.7rem 0;
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--secondary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23889591' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--secondary);
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.radio-option input[type="radio"]:checked {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--white);
}

.radio-option span {
  font-size: 0.9rem;
  color: var(--dark);
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: 1.2rem;
}

/* ── Gallery / QR ─────────────────────────────────────────── */
.gallery-section {
  padding: var(--section-gap) 2rem;
  background: var(--card-bg);
}
.gallery-section .eyebrow { color: var(--primary); }

.gallery-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.gallery-content .intro-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--grey);
  margin-bottom: 2.5rem;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  border: 2px dashed var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  color: var(--grey);
  gap: 0.5rem;
}

.qr-placeholder .qr-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.qr-placeholder .qr-note {
  font-size: 0.72rem;
  color: var(--grey);
  text-align: center;
  padding: 0 1rem;
}

.qr-icon {
  font-size: 2.5rem;
  opacity: 0.3;
}

.gallery-upload-btn {
  margin-bottom: 3rem;
}

.steps-section {
  text-align: left;
  margin-top: 3rem;
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--line-color);
  box-shadow: var(--shadow-sm);
}

.steps-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--dark);
  text-align: center;
  margin-bottom: 2rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.65;
}

.gallery-note {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--line-color);
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.7;
  text-align: center;
}

/* ── Stay / Accommodation ─────────────────────────────────── */
.stay-section {
  padding: var(--section-gap) 2rem;
  background: var(--card-bg);
}

.stay-intro {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.stay-intro p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.venue-info-box {
  max-width: 500px;
  margin: 0 auto 3rem;
  background: var(--white);
  border: 1px solid var(--line-color);
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.venue-info-box .venue-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.venue-info-box h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.venue-info-box p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.venue-info-box a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.venue-info-box a:hover {
  color: var(--primary-dark);
}

.stay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto 3rem;
}

.stay-card {
  background: var(--white);
  border: 1px solid var(--line-color);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.stay-card-icon {
  background: var(--secondary);
  padding: 2.5rem;
  text-align: center;
  font-size: 2.5rem;
  border-bottom: 1px solid var(--line-color);
}

.stay-card-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-bottom: 1px solid var(--line-color);
}

.stay-card-body {
  padding: 1.6rem;
}

.stay-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.stay-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.7em;
  border-radius: 20px;
  background: rgba(142,114,126,0.1);
  color: var(--primary);
}

.stay-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.stay-card-body p {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.stay-card-body a.card-link {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  transition: var(--transition);
  display: inline-block;
}
.stay-card-body a.card-link:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
}

.stay-note {
  max-width: 600px;
  margin: 0 auto 2rem;
  padding: 2rem 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--line-color);
  text-align: center;
}

.stay-note h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.stay-note p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.7;
}

.stay-update-note {
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--grey);
  font-style: italic;
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--line-color);
}

/* ── Dress Code Swatches ──────────────────────────────────── */
.dress-code-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85em;
  color: var(--grey);
}

.dress-swatches {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.6rem;
}

.swatch {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(61,48,56,0.15);
}

/* ── Thank You page ───────────────────────────────────────── */
.thankyou-section {
  padding: var(--section-gap) 2rem;
  background: var(--white);
  text-align: center;
}

.thankyou-emoji {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}

.thankyou-section h2 {
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 1rem;
}

.thankyou-section p {
  max-width: 500px;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.thankyou-section .btn {
  margin-top: 1.5rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #6b5a62;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem 2.5rem;
  text-align: center;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('Aloe.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.footer-logo span {
  color: var(--white);
}

.footer-date {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition);
}

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

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 0 auto 1.5rem;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--white);
}

/* ── Utility / Helpers ────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ── Responsive: 768px ────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-gap: 3.5rem;
  }

  /* Container */
  .container {
    padding: 0 1.25rem;
  }

  /* Nav */
  .nav {
    padding: 1rem 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250,249,248,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, box-shadow var(--transition);
    box-shadow: none;
  }

  .nav-links.open {
    max-height: 500px;
    box-shadow: 0 8px 24px rgba(61,48,56,0.12);
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--grey);
    border-bottom: 1px solid var(--line-color);
    font-size: 0.75rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-links a:active {
    color: var(--primary);
    background: rgba(142,114,126,0.06);
  }

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

  /* Page header */
  .page-header {
    height: 42vh;
    min-height: 240px;
  }

  /* Hero */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 200px;
    text-align: center;
  }

  /* Countdown */
  .countdown-section {
    padding: 2.5rem 1.25rem;
  }

  .countdown-item {
    padding: 0 0.8rem;
  }

  /* Invitation layout */
  .invitation-layout {
    grid-template-columns: 1fr;
  }

  .invitation-map {
    min-height: 260px;
  }

  .invitation-card {
    padding: 2rem 1.5rem;
  }

  /* Schedule timeline */
  .timeline::before {
    left: 0;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    padding-left: 2rem;
  }

  .timeline-dot {
    left: 0;
    top: 0.5rem;
    transform: none;
  }

  .timeline-card,
  .timeline-item:nth-child(odd) .timeline-card {
    max-width: 100%;
    text-align: left;
  }

  .timeline-spacer {
    display: none;
  }

  /* Story timeline */
  .story-timeline {
    padding-left: 2.5rem;
  }

  .story-timeline::before {
    left: 0.5rem;
  }

  .story-item {
    padding: 1.2rem 1rem 1.2rem 1.4rem;
  }

  .story-item::before {
    left: -2rem;
    top: 1.5rem;
  }

  .story-photo-wrap {
    max-width: 100%;
  }

  /* Crew */
  .crew-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .crew-avatar {
    height: 180px;
  }

  /* Banking card */
  .banking-card {
    padding: 2rem 1.5rem;
  }

  .banking-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Gifts */
  .gifts-message-wrap {
    padding: 2rem 1.25rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }

  .gifts-photo img {
    height: 260px;
  }

  /* Stay */
  .stay-grid {
    grid-template-columns: 1fr;
  }

  .stay-card-photo {
    height: 200px;
  }

  /* Gallery steps */
  .steps-section {
    padding: 1.5rem 1.25rem;
  }

  /* Quick nav */
  .quick-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .nav-card {
    padding: 1.5rem 1.2rem;
  }

  /* Hero buttons */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  .footer-nav {
    gap: 1rem;
  }
}

/* ── Responsive: 480px ────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --section-gap: 3rem;
  }

  /* Countdown */
  .countdown-grid {
    gap: 0;
  }

  .countdown-item {
    padding: 0 0.5rem;
  }

  .countdown-number {
    font-size: 2.2rem;
  }

  .countdown-unit {
    font-size: 0.55rem;
  }

  /* Invitation */
  .invitation-card {
    padding: 1.5rem 1.25rem;
  }

  .banking-card::before,
  .banking-card::after {
    width: 20px;
    height: 20px;
  }

  .detail-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .banking-label {
    min-width: unset;
  }

  /* Crew */
  .crew-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .crew-avatar {
    height: 160px;
  }

  .crew-name {
    font-size: 0.9rem;
    padding: 0.8rem 0.75rem 0.15rem;
  }

  .crew-role {
    font-size: 0.55rem;
    padding: 0 0.75rem 1rem;
  }

  /* Stay */
  .stay-grid {
    grid-template-columns: 1fr;
  }

  /* Quick nav */
  .quick-nav-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Gallery steps */
  .step-item {
    gap: 0.75rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  /* Schedule note */
  .schedule-note {
    padding: 1.2rem 1.25rem;
  }

  /* Venue info */
  .venue-info-box {
    padding: 1.5rem 1.25rem;
  }

  /* Stay note */
  .stay-note {
    padding: 1.5rem 1.25rem;
  }
}

/* ── Photo Strip — infinite scroll marquee ───────────────── */
.photo-strip {
  overflow: hidden;
  height: 400px;
  background: var(--dark);
}

.photo-strip-track {
  display: flex;
  gap: 0;
  height: 100%;
  /* 14 images × 380px = 5320px per set */
  animation: stripScroll 42s linear infinite;
}

.photo-strip:hover .photo-strip-track {
  animation-play-state: paused;
}

.photo-strip-item {
  flex-shrink: 0;
  width: 380px;
  height: 100%;
}

.photo-strip-item img {
  width: 380px;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@keyframes stripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-5320px); }
}

@media (max-width: 768px) {
  .photo-strip { height: 260px; }
  .photo-strip-item { width: 260px; }
  .photo-strip-item img { width: 260px; }
}

/* ── Story Inline Photos ─────────────────────────────────── */
.story-photo-wrap {
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 420px;
}

.story-photo-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.story-photo-wrap:hover img {
  transform: scale(1.03);
}

.story-photo-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--grey);
  padding: 0.6rem 0.8rem;
  background: var(--card-bg);
  text-align: center;
}

/* ── Photo Banner (accent on inner pages) ────────────────── */
.page-photo-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 260px;
  overflow: hidden;
  gap: 3px;
}

.page-photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.page-photo-banner img:hover {
  transform: scale(1.04);
}

@media (max-width: 600px) {
  .page-photo-banner {
    height: 180px;
  }
}

/* ── Enhanced Animate: fade from left/right ──────────────── */
.animate-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-left.visible,
.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Gifts page photo ────────────────────────────────────── */
.gifts-photo {
  max-width: 520px;
  margin: 0 auto 3rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gifts-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* ── Envelope Intro ──────────────────────────────────────── */
#introOuter {
  position: relative;
  height: 200vh;
  z-index: 1100;
  background: transparent;
}

#introScene {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #7a6670;
  overflow: hidden;
  z-index: 1100;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

#introScene::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('Aloe.jpg') center / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

#introScene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Envelope ─────────────────────────────── */
.env-wrapper {
  perspective: 1100px;
  perspective-origin: center 42%;
  position: relative;
  z-index: 2;
}

.env {
  position: relative;
  width: min(500px, 88vw);
  height: calc(min(500px, 88vw) / 1.55);
  transform-style: preserve-3d;
}

/* Envelope body — the white card */
.env-body {
  position: absolute;
  inset: 0;
  background: #faf8f6;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.55),
    0 0 0 1px rgba(142,114,126,0.15);
  overflow: hidden;
}

/* Bottom V-fold */
.env-fold-bottom {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 100%, 50% 49%, 100% 100%);
  background: linear-gradient(to top, #cfc3ca, #ddd4d9);
  z-index: 2;
  pointer-events: none;
}

/* Left side fold */
.env-fold-left {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 50% 49%, 0 100%);
  background: linear-gradient(to right, #e0d5da, #ede7eb);
  z-index: 2;
  pointer-events: none;
}

/* Right side fold */
.env-fold-right {
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 0, 50% 49%, 100% 100%);
  background: linear-gradient(to left, #ddd4d9, #ece5e9);
  z-index: 2;
  pointer-events: none;
}

/* Inside invitation content */
.env-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8% 12%;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.env-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8E727E;
  margin-bottom: 0.6rem;
  display: block;
}

.env-couple {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  font-style: italic;
  font-weight: 400;
  color: #3d3038;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.env-couple span { color: #8E727E; }

.env-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.62rem, 1.3vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5c5058;
  margin-bottom: 0.5rem;
}

.env-date-line {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.62rem, 1.3vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8E727E;
}

/* Thin decorative line between subtitle and date */
.env-rule {
  width: 40px;
  height: 1px;
  background: #C7BDC5;
  margin: 0.6rem auto;
  opacity: 0.6;
}

/* ── Flap ──────────────────────────── */
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52%;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  background: linear-gradient(158deg, #cfc5cb 0%, #c2b6be 45%, #b8aab3 100%);
  transform-origin: top center;
  transform: rotateX(0deg);
  z-index: 10;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: inset 0 -3px 10px rgba(0,0,0,0.08);
}

/* Wax seal */
.env-seal {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(62px, 12vw, 84px);
  height: clamp(62px, 12vw, 84px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #a48990 0%, #8E727E 45%, #6d5560 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  color: #faf8f6;
  letter-spacing: 0.02em;
  box-shadow:
    0 4px 14px rgba(142,114,126,0.65),
    inset 0 1px 3px rgba(255,255,255,0.25),
    0 0 0 3px rgba(142,114,126,0.3);
}

/* ── Scroll hint ────────────────────── */
.intro-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.85);
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 2;
  white-space: nowrap;
  pointer-events: none;
}

.intro-hint-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.75), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Nav hidden during intro ─────────── */
.nav--hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}
