/* ===================================================
   WILLIAM & JESSICA · Editorial theme
   A printed invitation, translated to the screen.
   =================================================== */

/* ===== DESIGN SYSTEM ===== */
:root {
  /* Colour */
  --white:        #FFFFFF;
  --ivory:        #FAF7F2;
  --ivory-2:      #F3EEE6;
  --blush:        #F4E6E2;
  --blush-2:      #E8CEC9;
  --blush-ink:    #A5706B;
  --powder:       #E6EDF3;
  --powder-2:     #BCCBD8;
  --powder-ink:   #587590;
  --navy:         #1C2638;
  --navy-2:       #2B3852;
  --ink:          #1C2638;
  --ink-soft:     #525B6C;
  --champagne:    #BFA77A;
  --line:         rgba(28, 38, 56, 0.14);
  --line-strong:  rgba(28, 38, 56, 0.28);
  --line-light:   rgba(255, 255, 255, 0.22);

  /* Type */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Manrope', system-ui, sans-serif;

  --fs-hero:  clamp(3.6rem, 9.2vw, 9.4rem);
  --fs-h1:    clamp(2.9rem, 6.2vw, 5.6rem);
  --fs-h2:    clamp(2.1rem, 3.8vw, 3.3rem);
  --fs-h3:    clamp(1.55rem, 2.4vw, 2.05rem);
  --fs-lead:  clamp(1.25rem, 2vw, 1.6rem);
  --fs-body:  0.95rem;
  --fs-small: 0.84rem;
  --fs-label: 0.66rem;

  /* Space */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --section-pad: clamp(96px, 12vw, 190px);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --nav-h: 88px;

  /* Surfaces */
  --radius: 0;
  --shadow-soft: 0 30px 60px -30px rgba(28, 38, 56, 0.25);
  --shadow-lift: 0 40px 80px -40px rgba(28, 38, 56, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.35s;
  --t-med: 0.6s;
  --t-slow: 1.2s;

  --monogram: url('images/monogram.png');

  /* Names used by the admin page (admin/admin.css) */
  --ink-mid:       var(--navy-2);
  --champagne-lt:  #E6DCC6;
  --champagne-dk:  #8F7746;
  --font-display:  var(--serif);
  --font-body:     var(--sans);
  --transition:    var(--t-fast) var(--ease);
  --container-px:  var(--gutter);
  --shadow-md:     var(--shadow-soft);
  --sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='%23BCCBD8' stroke-width='0.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 232C58 196 92 158 116 112S170 36 226 14'/%3E%3Cpath d='M46 205c-16-2-28-12-32-26 16 0 28 10 32 26z'/%3E%3Cpath d='M48 203c2-16 12-28 26-32 0 16-10 28-26 32z'/%3E%3Cpath d='M82 168c-15-5-24-17-25-31 15 3 24 15 25 31z'/%3E%3Cpath d='M86 164c5-15 17-24 31-25-3 15-15 24-31 25z'/%3E%3Cpath d='M112 120c-12-9-17-22-14-35 13 7 18 21 14 35z'/%3E%3Cpath d='M118 112c9-12 22-17 35-14-7 13-21 18-35 14z'/%3E%3Cpath d='M150 66c-10-8-14-20-11-31 11 6 15 19 11 31z'/%3E%3Cpath d='M156 60c8-10 20-14 31-11-6 11-19 15-31 11z'/%3E%3Ccircle cx='226' cy='14' r='4'/%3E%3C/svg%3E");
  --sprig-blush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke='%23E0BDB7' stroke-width='0.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 232C58 196 92 158 116 112S170 36 226 14'/%3E%3Cpath d='M46 205c-16-2-28-12-32-26 16 0 28 10 32 26z'/%3E%3Cpath d='M48 203c2-16 12-28 26-32 0 16-10 28-26 32z'/%3E%3Cpath d='M82 168c-15-5-24-17-25-31 15 3 24 15 25 31z'/%3E%3Cpath d='M86 164c5-15 17-24 31-25-3 15-15 24-31 25z'/%3E%3Cpath d='M112 120c-12-9-17-22-14-35 13 7 18 21 14 35z'/%3E%3Cpath d='M118 112c9-12 22-17 35-14-7 13-21 18-35 14z'/%3E%3Cpath d='M150 66c-10-8-14-20-11-31 11 6 15 19 11 31z'/%3E%3Cpath d='M156 60c8-10 20-14 31-11-6 11-19 15-31 11z'/%3E%3Ccircle cx='226' cy='14' r='4'/%3E%3C/svg%3E");
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--blush-2); color: var(--navy); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

/* Monogram (logo) — a mask so it can take any colour */
.monogram {
  display: block;
  aspect-ratio: 550 / 489;
  background-color: var(--powder-ink);
  -webkit-mask: var(--monogram) center / contain no-repeat;
          mask: var(--monogram) center / contain no-repeat;
}

/* ===== MOTION ===== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

.delay-1 { transition-delay: 0.15s !important; }
.delay-2 { transition-delay: 0.3s !important; }
.delay-3 { transition-delay: 0.45s !important; }
.delay-4 { transition-delay: 0.6s !important; }
.delay-5 { transition-delay: 0.75s !important; }

/* ===== TYPE SYSTEM ===== */
.section-header {
  text-align: center;
  margin-bottom: clamp(56px, 7vw, 100px);
}

.section-header--left { text-align: left; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--powder-ink);
  margin-bottom: 1.4rem;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title {
  font-family: var(--serif);
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.section-header--left .section-ornament { justify-content: flex-start; }

.section-ornament::before,
.section-ornament::after {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--line-strong);
}

.section-header--left .section-ornament::before { display: none; }

.section-ornament span {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  border: 1px solid var(--blush-ink);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 2.3rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.btn:hover { transform: translateY(-2px); }

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

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  border-bottom: 1px solid var(--navy);
  padding: 0;
  min-height: 0;
  padding-bottom: 0.4rem;
  letter-spacing: 0.26em;
}

.btn-outline:hover { color: var(--blush-ink); border-bottom-color: var(--blush-ink); transform: none; }

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  color: var(--white);
  transition: color var(--t-med) var(--ease);
}

#navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 247, 242, 0.92);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}

#navbar.scrolled { color: var(--navy); }
#navbar.scrolled::before { opacity: 1; }

.nav-inner {
  position: relative;
  max-width: 1440px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height var(--t-med) var(--ease);
}

#navbar.scrolled .nav-inner { height: 72px; }

.nav-monogram { position: relative; z-index: 1002; display: block; }

.nav-monogram .monogram {
  height: 46px;
  background-color: currentColor;
  transition: height var(--t-med) var(--ease), opacity var(--t-fast);
}

#navbar.scrolled .nav-monogram .monogram { height: 40px; background-color: var(--powder-ink); }
.nav-monogram:hover .monogram { opacity: 0.7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.4vw, 2.6rem);
}

.nav-links a {
  position: relative;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  opacity: 0.88;
  transition: opacity var(--t-fast) var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-med) var(--ease);
}

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

.nav-links .nav-cta {
  padding: 0.75rem 1.6rem;
  border: 1px solid currentColor;
  opacity: 1;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--white); color: var(--navy); }
#navbar.scrolled .nav-links .nav-cta:hover { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1002;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: transform var(--t-med) var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.nav-overlay { display: none; }

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  animation: heroSettle 2.8s var(--ease) both;
}

@keyframes heroSettle {
  from { transform: scale(1.08); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.hero-image-overlay {
  position: absolute;
  inset: -12% 0;
  background: url('https://images.unsplash.com/photo-1465495976277-4387d4b0b4c6?w=2000&q=80') center 45% / cover no-repeat;
  will-change: transform;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 27, 42, 0.5) 0%, rgba(20, 27, 42, 0.12) 30%, rgba(20, 27, 42, 0.25) 55%, rgba(20, 27, 42, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(96px, 14vh, 150px);
  text-align: center;
}

.hero-monogram {
  width: clamp(64px, 6vw, 84px);
  margin: 0 auto 1.6rem;
  background-color: var(--white);
  opacity: 0.92;
}

.hero-date-top {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.4rem;
}

.hero-names {
  font-family: var(--serif);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 0.22em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.15);
}

.hero-ampersand {
  font-style: italic;
  font-size: 0.72em;
  color: var(--blush-2);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 2.2rem;
}

.hero-divider .divider-line {
  width: clamp(48px, 8vw, 110px);
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.divider-heart {
  font-size: 0.8rem;
  line-height: 1;
  color: var(--blush-2);
}

.hero-countdown {
  display: inline-flex;
  align-items: stretch;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 2.6rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: clamp(70px, 8vw, 104px);
  padding: 1rem 0.5rem;
}

.count-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  transition: opacity 0.2s;
}

.count-num.pulse { opacity: 0.75; }

.count-label {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.countdown-sep {
  width: 1px;
  font-size: 0;
  background: var(--line-light);
  margin: 0.9rem 0;
}

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

#hero .btn-primary { background: var(--white); color: var(--navy); border-color: var(--white); }
#hero .btn-primary:hover { background: var(--blush); border-color: var(--blush); }
#hero .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
#hero .btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.hero-scroll-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 64px;
  transform: translateX(-50%);
  overflow: hidden;
}

.hero-scroll-hint span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
}

.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  left: 0;
  top: -50%;
  width: 1px;
  height: 50%;
  background: var(--white);
  animation: scrollDrop 2.4s var(--ease) infinite;
}

@keyframes scrollDrop { to { top: 100%; } }

/* ===== STORY ===== */
#story { background: var(--white); }

#story::before {
  content: '';
  position: absolute;
  top: 60px;
  right: -40px;
  width: clamp(180px, 22vw, 320px);
  aspect-ratio: 1;
  background: var(--sprig-blush) center / contain no-repeat;
  transform: scaleX(-1);
  opacity: 0.8;
  pointer-events: none;
}

.story-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: end;
  margin-bottom: clamp(80px, 10vw, 150px);
}

.story-head .section-header { margin-bottom: 0; }

.story-intro p {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--navy-2);
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--blush-2);
}

.timeline {
  counter-reset: chapter;
  display: flex;
  flex-direction: column;
  gap: clamp(110px, 13vw, 190px);
}

.timeline-item {
  counter-increment: chapter;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
}

.timeline-image {
  grid-column: 1 / 6;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ivory-2);
  outline: 1px solid var(--powder-2);
  outline-offset: 14px;
}

.timeline-item:nth-child(3n+2) .timeline-image { aspect-ratio: 1 / 1; }
.timeline-item:nth-child(3n) .timeline-image { aspect-ratio: 3 / 4; }

.timeline-content {
  grid-column: 7 / 13;
  grid-row: 1;
  position: relative;
}

.timeline-item--right .timeline-image { grid-column: 8 / 13; }
.timeline-item--right .timeline-content { grid-column: 1 / 7; }

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.1);
  transition: clip-path 1.5s var(--ease) 0.1s, transform 2s var(--ease) 0.1s;
}

.timeline-item.visible .timeline-image img { clip-path: inset(0); transform: scale(1); }
.timeline-item.visible .timeline-image:hover img { transform: scale(1.03); transition: transform 1.4s var(--ease); }

.timeline-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(28, 38, 56, 0.12));
  pointer-events: none;
}

.timeline-content::before {
  content: counter(chapter, decimal-leading-zero);
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--powder-ink);
  margin-bottom: 0;
}

.timeline-year {
  display: block;
  font-family: var(--serif);
  font-size: clamp(4.4rem, 9vw, 8.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--blush-2);
  margin-bottom: 0.25em;
}

.timeline-content h3 {
  position: relative;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.4rem;
}

.timeline-content p {
  max-width: 34em;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.timeline-content p:last-child { margin-bottom: 0; }

/* ===== DETAILS — the invitation card ===== */
#details {
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(244, 230, 226, 0.7), transparent 60%),
    var(--powder);
}

#details::before,
#details::after {
  content: '';
  position: absolute;
  width: clamp(160px, 20vw, 280px);
  aspect-ratio: 1;
  background: var(--sprig) center / contain no-repeat;
  pointer-events: none;
}

#details::before { left: -30px; bottom: 30px; }
#details::after { right: -30px; top: 30px; transform: rotate(180deg); }

.invite-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  padding: clamp(56px, 8vw, 110px) clamp(22px, 6vw, 96px);
  border: 1px solid var(--powder-2);
  outline: 1px solid var(--powder-2);
  outline-offset: -14px;
  box-shadow: var(--shadow-soft);
}

.invite-card .section-header { margin-bottom: clamp(44px, 5vw, 70px); }

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.detail-card {
  text-align: center;
  padding: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 30px);
  border-bottom: 1px solid var(--line);
}

.detail-card:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.detail-card:nth-last-child(-n+3) { border-bottom: 0; }

.detail-icon {
  width: 5px;
  height: 5px;
  margin: 0 auto 1.2rem;
  transform: rotate(45deg);
  background: var(--blush-2);
}

.detail-card h3 {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--powder-ink);
  margin-bottom: 0.9rem;
}

.detail-card p {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

.detail-card p.detail-sub {
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 260px;
  margin: 0.9rem auto 0;
}

/* ===== VENUE ===== */
#venue { background: var(--ivory); }

.venue-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
  margin-bottom: clamp(90px, 11vw, 160px);
}

.venue-image-block {
  grid-column: 1 / 9;
  grid-row: 1;
  position: relative;
}

.venue-image-block img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.6s var(--ease) 0.15s;
}

.venue-image-block.visible img { clip-path: inset(0); }

.venue-image-caption {
  position: absolute;
  top: 0;
  left: -2.2rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.venue-info {
  grid-column: 7 / 13;
  grid-row: 1;
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: clamp(36px, 4.5vw, 64px);
  box-shadow: var(--shadow-soft);
}

.venue-name {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 1rem;
}

.venue-address {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--powder-ink);
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.venue-description {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.venue-details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.venue-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.venue-detail-item:nth-child(odd) { padding-right: 1rem; }
.venue-detail-item:nth-last-child(-n+2) { border-bottom: 0; }

.vdi-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--powder-ink);
}

.vdi-value {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--navy);
}

.map-container {
  position: relative;
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--white);
  margin-bottom: clamp(70px, 9vw, 120px);
}

.map-container iframe {
  display: block;
  filter: grayscale(0.55) contrast(0.95) brightness(1.03);
}

.map-overlay-text {
  position: absolute;
  top: 32px;
  left: 32px;
  max-width: calc(100% - 64px);
  background: var(--white);
  padding: 0.9rem 1.3rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
  pointer-events: none;
}

.venue-travel h4 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1;
  color: var(--navy);
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.travel-grid {
  counter-reset: travel;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.travel-item {
  counter-increment: travel;
  padding: clamp(28px, 3vw, 44px) clamp(18px, 2.6vw, 40px) 0;
}

.travel-item + .travel-item { border-left: 1px solid var(--line); }

.travel-icon {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  color: var(--blush-ink);
  margin-bottom: 1.2rem;
}

.travel-icon::before { content: counter(travel, upper-roman); }

.travel-item strong {
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.travel-item p { font-size: var(--fs-small); color: var(--ink-soft); }

/* ===== SCHEDULE ===== */
#schedule {
  background: var(--navy);
  color: var(--white);
}

#schedule::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: clamp(200px, 26vw, 360px);
  aspect-ratio: 1;
  background: var(--sprig) center / contain no-repeat;
  opacity: 0.35;
  transform: scaleX(-1);
  pointer-events: none;
}

.schedule-wrap {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

#schedule .section-header {
  position: sticky;
  top: 120px;
  margin-bottom: 0;
}

#schedule .section-label { color: var(--powder-2); }
#schedule .section-title { color: var(--white); }
#schedule .section-ornament span { border-color: var(--blush-2); }
#schedule .section-ornament::after { background: var(--line-light); }

.schedule-timeline { position: relative; }

.schedule-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: calc(150px + 24px + 8px);
  width: 1px;
  background: var(--line-light);
}

.schedule-item {
  display: grid;
  grid-template-columns: 150px 17px 1fr;
  column-gap: 24px;
  align-items: start;
  padding-bottom: clamp(36px, 4vw, 56px);
}

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

.schedule-time {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  text-align: right;
  color: var(--blush-2);
}

.schedule-dot {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 9px;
  height: 9px;
  margin-top: 0.7rem;
  transform: rotate(45deg);
  background: var(--navy);
  border: 1px solid var(--powder-2);
  transition: transform var(--t-med) var(--ease);
}

.schedule-item:hover .schedule-dot { transform: rotate(225deg); }

.schedule-dot--highlight {
  width: 13px;
  height: 13px;
  margin-top: 0.55rem;
  background: var(--blush-2);
  border-color: var(--blush-2);
  box-shadow: 0 0 0 5px var(--navy), 0 0 0 6px rgba(232, 206, 201, 0.5);
}

.schedule-content h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

.schedule-content p {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.72);
  max-width: 36em;
}

.schedule-content--highlight h3 { font-style: italic; color: var(--blush-2); }
.schedule-content--highlight h3::after {
  content: ' \2661';
  font-style: normal;
  font-size: 0.6em;
  vertical-align: middle;
}

/* ===== GALLERY ===== */
#gallery { background: var(--white); }

.gallery-intro {
  max-width: 560px;
  margin: calc(clamp(56px, 7vw, 100px) * -0.5) auto clamp(56px, 7vw, 90px);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-soft);
}

.gallery-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(40px, 5vw, 72px);
  gap: clamp(8px, 1.2vw, 18px);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--ivory-2);
}

.gallery-item:nth-child(1) { grid-column: 1 / 6;  grid-row: 1 / 9; }
.gallery-item:nth-child(2) { grid-column: 6 / 10; grid-row: 1 / 5; }
.gallery-item:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 9; }
.gallery-item:nth-child(4) { grid-column: 6 / 10; grid-row: 5 / 9; }
.gallery-item:nth-child(5) { grid-column: 1 / 5;  grid-row: 9 / 14; }
.gallery-item:nth-child(6) { grid-column: 5 / 10; grid-row: 9 / 14; }
.gallery-item:nth-child(7) { grid-column: 10 / 13; grid-row: 9 / 14; }
.gallery-item:nth-child(8) { grid-column: 1 / 7;  grid-row: 14 / 19; }
.gallery-item:nth-child(9) { grid-column: 7 / 13; grid-row: 14 / 19; }

.gallery-item:nth-child(1) img { object-position: center 30%; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease), filter 1.6s var(--ease);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 38, 56, 0.12);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}

.gallery-overlay::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  transform: scale(0.96);
  transition: transform var(--t-med) var(--ease);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay::before { transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 27, 42, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}

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

.lightbox-content img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1;
  transition: background var(--t-fast), color var(--t-fast);
}

.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--white); color: var(--navy); }

.lightbox-counter {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== ACCOMMODATION ===== */
#accommodation { background: var(--ivory); }

.stay-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: end;
  margin-bottom: clamp(64px, 8vw, 110px);
}

.stay-head .section-header { margin-bottom: 0; }

.section-intro {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.section-intro a {
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid var(--blush-2);
  overflow-wrap: anywhere;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.section-intro a:hover { color: var(--blush-ink); border-bottom-color: var(--blush-ink); }

.hotels-grid { border-top: 1px solid var(--line); }

.hotel-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(36px, 4.5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}

.hotel-card:nth-child(even) .hotel-image { order: 2; }

.hotel-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.hotel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.hotel-card:hover .hotel-image img { transform: scale(1.04); }

.hotel-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
}

.hotel-info { max-width: 520px; }

.hotel-info h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.hotel-info p { color: var(--ink-soft); margin-bottom: 1.2rem; }

.hotel-info p.hotel-distance {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--powder-ink);
  margin-bottom: 1rem;
}

.hotel-meta {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

.hotel-meta span:first-child { color: var(--champagne); letter-spacing: 0.14em; }
.hotel-meta span + span { padding-left: 1.6rem; border-left: 1px solid var(--line); }

/* ===== GIFTS ===== */
#gifts {
  background: linear-gradient(180deg, var(--blush) 0%, var(--ivory) 100%);
}

#gifts::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 40px;
  width: clamp(160px, 20vw, 280px);
  aspect-ratio: 1;
  background: var(--sprig-blush) center / contain no-repeat;
  pointer-events: none;
}

.gifts-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
}

.gifts-image {
  grid-column: 1 / 7;
  grid-row: 1;
  position: relative;
}

.gifts-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gifts-image-frame {
  position: absolute;
  inset: 0;
  transform: translate(-22px, 22px);
  border: 1px solid var(--blush-ink);
  opacity: 0.4;
}

.gifts-content {
  grid-column: 6 / 13;
  grid-row: 1;
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: clamp(40px, 5vw, 76px);
  box-shadow: var(--shadow-soft);
}

.gifts-content .section-ornament { justify-content: flex-start; margin: 1.6rem 0 2rem; }
.gifts-content .section-ornament::before { display: none; }

.gifts-content p { color: var(--ink-soft); margin-bottom: 1.1rem; }

.gifts-content .section-ornament + p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--navy-2);
}

.gifts-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

/* ===== FAQ ===== */
#faq { background: var(--white); }

.faq-wrap {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

#faq .section-header { position: sticky; top: 120px; margin-bottom: 0; }

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--navy);
  transition: color var(--t-fast), padding var(--t-med) var(--ease);
}

.faq-question:hover { color: var(--blush-ink); padding-left: 0.6rem; }

.faq-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
  color: var(--navy);
  transition: transform var(--t-med) var(--ease), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med) var(--ease);
}

.faq-answer.open { grid-template-rows: 1fr; }

.faq-answer-inner { overflow: hidden; min-height: 0; }

.faq-answer-inner p {
  max-width: 40em;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
  padding-right: 3rem;
}

.faq-answer-inner p:last-child { margin-bottom: 0; padding-bottom: 1.8rem; }

/* ===== FOOTER ===== */
#footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: clamp(100px, 12vw, 170px) var(--gutter) clamp(48px, 6vw, 70px);
}

#footer::before,
#footer::after {
  content: '';
  position: absolute;
  width: clamp(160px, 20vw, 260px);
  aspect-ratio: 1;
  background: var(--sprig) center / contain no-repeat;
  opacity: 0.25;
  pointer-events: none;
}

#footer::before { left: -30px; bottom: -20px; }
#footer::after { right: -30px; top: -10px; transform: rotate(180deg); }

.footer-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.footer-ornament {
  width: clamp(80px, 9vw, 110px);
  margin: 0 auto 2.4rem;
  background-color: var(--white);
  opacity: 0.9;
}

.footer-names {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}

.footer-names span { font-style: italic; color: var(--blush-2); font-size: 0.72em; }

.footer-date {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 2;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.4rem;
}

.footer-message {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.6rem;
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.footer-divider .divider-line { width: 70px; height: 1px; background: var(--line-light); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.4rem;
  margin-bottom: 2.6rem;
}

.footer-links a {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.footer-links a:hover { color: var(--white); border-bottom-color: var(--blush-2); }
.footer-links span { color: rgba(255, 255, 255, 0.35); }

.footer-copy { font-size: 0.74rem; color: rgba(255, 255, 255, 0.55); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line-strong);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), background var(--t-fast), color var(--t-fast);
}

.back-to-top.visible { opacity: 1; transform: none; pointer-events: all; }
.back-to-top:hover { background: var(--navy); color: var(--white); }

/* ===== FOCUS ===== */
:focus-visible { outline: 2px solid var(--powder-ink); outline-offset: 3px; }
#hero :focus-visible, #schedule :focus-visible, #footer :focus-visible, .lightbox :focus-visible { outline-color: var(--blush-2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nav-links { gap: 1.3rem; }
  .nav-links a { letter-spacing: 0.18em; }
}

/* Mobile menu from tablet down */
@media (max-width: 1024px) {
  :root { --nav-h: 76px; }

  .nav-toggle { display: flex; }

  .nav-links {
    counter-reset: navi;
    position: fixed;
    inset: 0;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding: 110px clamp(32px, 10vw, 90px) 60px;
    background: var(--navy);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -20px;
    width: 240px;
    aspect-ratio: 1;
    background: var(--sprig) center / contain no-repeat;
    opacity: 0.35;
    transform: scaleX(-1);
    pointer-events: none;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--t-med) var(--ease), visibility 0s;
  }

  .nav-links li {
    counter-increment: navi;
    width: 100%;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  }

  .nav-links.open li { opacity: 1; transform: none; }
  .nav-links.open li:nth-child(1) { transition-delay: 0.08s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.12s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.16s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.24s; }
  .nav-links.open li:nth-child(6) { transition-delay: 0.28s; }
  .nav-links.open li:nth-child(7) { transition-delay: 0.32s; }
  .nav-links.open li:nth-child(8) { transition-delay: 0.36s; }

  .nav-links a {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    width: 100%;
    font-family: var(--serif);
    font-size: clamp(1.9rem, 6vw, 2.6rem);
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line-light);
    opacity: 1;
  }

  .nav-links a::before {
    content: counter(navi, decimal-leading-zero);
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: var(--blush-2);
  }

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

  .nav-links .nav-cta {
    justify-content: center;
    margin-top: 2rem;
    padding: 1.1rem 1.6rem;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    border: 1px solid var(--white);
  }

  .nav-links .nav-cta::before { display: none; }
  #navbar.scrolled .nav-links .nav-cta:hover,
  .nav-links .nav-cta:hover { background: var(--white); color: var(--navy); }

  body.menu-open #navbar { color: var(--white); }
  body.menu-open #navbar::before { opacity: 0; }
  body.menu-open .nav-monogram .monogram { background-color: var(--white) !important; }

  .story-head,
  .stay-head { grid-template-columns: 1fr; align-items: start; }

  .schedule-wrap,
  .faq-wrap { grid-template-columns: 1fr; }

  #schedule .section-header,
  #faq .section-header { position: static; margin-bottom: clamp(48px, 7vw, 72px); }
}

@media (max-width: 900px) {
  /* Story chapters stack */
  .timeline-item,
  .timeline-item--right { grid-template-columns: 1fr; row-gap: 2.6rem; }

  .timeline-image,
  .timeline-item--right .timeline-image {
    grid-column: 1;
    grid-row: 1;
    width: calc(100% - 28px);
    margin: 0 auto;
    aspect-ratio: 4 / 3 !important;
  }

  .timeline-content,
  .timeline-item--right .timeline-content { grid-column: 1; grid-row: 2; }

  .details-grid { grid-template-columns: 1fr 1fr; }
  .detail-card:not(:nth-child(3n)) { border-right: 0; }
  .detail-card { border-bottom: 1px solid var(--line) !important; }
  .detail-card:nth-child(odd) { border-right: 1px solid var(--line); }
  .detail-card:nth-last-child(-n+2) { border-bottom: 0 !important; }

  .venue-layout { grid-template-columns: 1fr; }
  .venue-image-block { grid-column: 1; grid-row: 1; }
  .venue-image-block img { aspect-ratio: 4 / 3; }
  .venue-image-caption {
    top: 14px;
    left: 14px;
    writing-mode: horizontal-tb;
    transform: none;
    background: var(--white);
    color: var(--navy);
    padding: 0.6rem 0.9rem;
    white-space: normal;
  }
  .venue-info {
    grid-column: 1;
    grid-row: 2;
    margin: -60px clamp(12px, 4vw, 40px) 0;
  }

  .travel-grid { grid-template-columns: 1fr; }
  .travel-item { padding-left: 0; padding-right: 0; padding-bottom: 2rem; }
  .travel-item + .travel-item { border-left: 0; border-top: 1px solid var(--line); }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: clamp(48px, 9vw, 80px);
  }
  .gallery-item:nth-child(n) { grid-row: auto; }
  .gallery-item:nth-child(1) { grid-column: 1 / 7; grid-row: span 5; }
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(7) { grid-column: span 3; grid-row: span 4; }
  .gallery-item:nth-child(3) { grid-column: span 3; grid-row: span 8; }
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(8),
  .gallery-item:nth-child(9) { grid-column: 1 / 7; grid-row: span 4; }
  .gallery-grid { grid-auto-flow: dense; }

  .hotel-card { grid-template-columns: 1fr; gap: 1.8rem; }
  .hotel-card:nth-child(even) .hotel-image { order: 0; }

  .gifts-layout { grid-template-columns: 1fr; }
  .gifts-image { grid-column: 1; grid-row: 1; width: calc(100% - 22px); margin-left: auto; max-width: 520px; }
  .gifts-content { grid-column: 1; grid-row: 2; margin: -70px clamp(12px, 4vw, 40px) 0; }
}

@media (max-width: 600px) {
  :root { --fs-body: 0.94rem; }

  .hero-names { flex-direction: column; align-items: center; font-size: clamp(3.4rem, 17vw, 4.8rem); line-height: 0.92; }
  .hero-ampersand { font-size: 0.6em; margin: 0.1em 0; }
  .hero-date-top { font-size: 0.62rem; letter-spacing: 0.3em; }
  .hero-content { padding-bottom: 92px; }

  .hero-countdown { width: 100%; }
  .countdown-item { flex: 1; min-width: 0; padding: 0.85rem 0.2rem; }
  .count-num { font-size: 1.85rem; }
  .count-label { font-size: 0.5rem; letter-spacing: 0.22em; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .section-title { font-size: clamp(2.6rem, 12vw, 3.4rem); }

  .timeline-year { font-size: clamp(3.8rem, 20vw, 5rem); }

  .invite-card { outline-offset: -8px; }
  .details-grid { grid-template-columns: 1fr; }
  .detail-card:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .detail-card:last-child { border-bottom: 0 !important; }

  .venue-info { margin: -40px 10px 0; padding: 30px 22px; }
  .venue-details-list { grid-template-columns: 1fr; }
  .venue-detail-item:nth-child(odd) { padding-right: 0; }
  .venue-detail-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .map-container { padding: 8px; }
  .map-container iframe { height: 320px; }
  .map-overlay-text { top: 18px; left: 18px; max-width: calc(100% - 36px); letter-spacing: 0.2em; }

  .schedule-timeline::before { left: 8px; }
  .schedule-item { grid-template-columns: 17px 1fr; column-gap: 18px; row-gap: 0.2rem; }
  .schedule-time { grid-column: 2; grid-row: 1; text-align: left; font-size: 1.25rem; }
  .schedule-dot { grid-column: 1; grid-row: 1; margin-top: 0.55rem; }
  .schedule-dot--highlight { margin-top: 0.45rem; }
  .schedule-content { grid-column: 2; grid-row: 2; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 54px; gap: 8px; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 3; }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(8),
  .gallery-item:nth-child(9) { grid-column: 1 / 3; grid-row: span 4; }
  .gallery-item:nth-child(3) { grid-row: span 6; }

  .hotel-meta { flex-wrap: wrap; gap: 0.6rem 1.2rem; }
  .hotel-meta span + span { padding-left: 1.2rem; }

  .gifts-content { margin: -50px 10px 0; padding: 34px 22px; }
  .gifts-buttons { flex-direction: column; }
  .gifts-buttons .btn { width: 100%; }

  .faq-question { padding: 1.3rem 0; }
  .faq-answer-inner p { padding-right: 0; }

  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; width: 46px; height: 46px; }
  .lightbox-counter { bottom: 2rem; }

  .back-to-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }
}

@media (max-width: 380px) {
  .hero-names { font-size: 3.1rem; }
  .countdown-item { padding: 0.75rem 0; }
  .count-num { font-size: 1.6rem; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
  .timeline-image img, .venue-image-block img { clip-path: none; transform: none; }
}

/* ===== PRINT ===== */
@media print {
  #navbar, .hero-scroll-hint, .back-to-top, .lightbox { display: none !important; }
  .reveal-up, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
}
