@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --paper: #f5efe4;
  --paper-2: #efe7d8;
  --ink: #1a130c;
  --ink-2: #3a2f25;
  --muted: #7b6c5e;
  --muted-2: #a89786;
  --line: rgba(26, 19, 12, 0.12);
  --line-soft: rgba(26, 19, 12, 0.06);
  --sage: #4d6450;
  --terracotta: #b04a2c;
  --terracotta-deep: #8e3b22;
  --sea: #2a616e;
  --gold: #c07d2e;
  --warm: #e8d5b7;
  --white: #fffcf5;
  --shadow-xs: 0 2px 12px rgba(26, 19, 12, 0.06);
  --shadow-sm: 0 8px 28px rgba(26, 19, 12, 0.09);
  --shadow: 0 22px 60px rgba(26, 19, 12, 0.14);
  --shadow-lg: 0 36px 110px rgba(26, 19, 12, 0.22);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(rgba(176, 74, 44, 0.04) 1px, transparent 1px) 0 0 / 18px 18px,
    radial-gradient(rgba(42, 97, 110, 0.03) 1px, transparent 1px) 9px 9px / 24px 24px;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }

::selection { background: rgba(176, 74, 44, 0.22); color: var(--ink); }

/* ─── Progress bar ─── */
.progress {
  position: fixed; top: 0; left: 0; z-index: 30;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--sea));
  transition: width 120ms linear;
}

/* ─── Header ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px clamp(20px, 5vw, 60px);
  color: var(--white);
  transition: background 300ms ease, color 300ms ease, box-shadow 300ms ease, padding 300ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(245, 239, 228, 0.88);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(26, 19, 12, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 14px; padding-bottom: 14px;
}

.letter-page .site-header {
  color: var(--ink);
  background: rgba(245, 239, 228, 0.92);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.header-actions {
  display: flex; align-items: center; gap: 16px;
  font-family: Inter, "PingFang SC", sans-serif; font-size: 14px;
}

.letter-link {
  text-decoration: none; opacity: 0.88; white-space: nowrap;
  font-weight: 500;
  transition: opacity 200ms;
}
.letter-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.language-toggle {
  display: inline-flex; align-items: center;
  padding: 3px; border: 1px solid currentColor; border-radius: 8px;
  background: rgba(255, 252, 245, 0.1);
  font-family: Inter, sans-serif;
}
.language-toggle button {
  min-width: 44px; height: 30px; padding: 0 10px;
  border: 0; border-radius: 6px;
  color: inherit; background: transparent;
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background 200ms, color 200ms;
}
.language-toggle button[aria-pressed="true"] { color: var(--ink); background: var(--white); }
.site-header.is-scrolled .language-toggle,
.letter-page .language-toggle { background: rgba(26, 19, 12, 0.06); }

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh;
  display: grid; align-items: end;
  padding: 130px clamp(22px, 8vw, 108px) 14vh;
  overflow: hidden;
}

.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { z-index: 0; overflow: hidden; }

.hero-track {
  display: flex; height: 100%;
  transform: translateX(0);
  animation: heroCarousel 22s infinite ease-in-out;
}

.hero-slide { flex: 0 0 100%; min-width: 0; height: 100%; overflow: hidden; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 22s infinite ease-in-out; }
.hero-slide-wellington img { object-position: 72% center; }

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 6, 3, 0.22) 0%, rgba(10, 6, 3, 0.06) 36%, rgba(10, 6, 3, 0.82) 100%),
    linear-gradient(98deg, rgba(10, 6, 3, 0.76) 0%, rgba(10, 6, 3, 0.05) 62%);
}

.hero-content {
  position: relative; z-index: 2;
  width: min(960px, 100%);
  color: var(--white);
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-scroll {
  position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255, 252, 245, 0.7);
  font-family: Inter, sans-serif; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 48px; background: linear-gradient(180deg, rgba(255, 252, 245, 0.7), transparent);
  animation: scrollHint 2.4s infinite ease-in-out;
}

@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

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

@keyframes heroZoom {
  0%, 100% { transform: scale(1.06); }
  50% { transform: scale(1.14); }
}

/* ─── Typography ─── */
.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  color: var(--terracotta);
  font-family: Inter, sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.eyebrow::before, .section-kicker::before {
  content: ''; display: block;
  width: 30px; height: 1.5px; background: currentColor; flex-shrink: 0;
}
.hero .eyebrow { color: #f0c47a; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.01em; }

h1 {
  max-width: 14em;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(46px, 7.4vw, 96px);
  font-weight: 500;
  white-space: pre-line;
  letter-spacing: 0;
}

h2 { font-size: clamp(30px, 4.4vw, 60px); font-weight: 600; }
h3 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; }

.hero-copy {
  max-width: 620px;
  margin: 30px 0 0;
  color: rgba(255, 252, 245, 0.86);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.9;
  font-weight: 300;
}

/* ─── Buttons ─── */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 28px;
  border: 1.5px solid currentColor; border-radius: 100px;
  font-family: Inter, "PingFang SC", sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-decoration: none;
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease, color 240ms ease, border-color 240ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(26, 19, 12, 0.22); }

.button.primary {
  color: var(--white); background: var(--terracotta); border-color: var(--terracotta);
}
.button.primary:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }

.button.ghost {
  color: var(--white); background: rgba(255, 252, 245, 0.08);
  border-color: rgba(255, 252, 245, 0.5); backdrop-filter: blur(12px);
}
.button.ghost:hover { background: rgba(255, 252, 245, 0.16); }

/* ─── Section / Chapter shells ─── */
.section, .chapter {
  position: relative;
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(88px, 12vw, 160px) 0;
  scroll-margin-top: 100px;
}

.chapter { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.chapter + .chapter { border-top: 1px solid var(--line-soft); }

/* ─── Prologue ─── */
.prologue {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: end;
  padding-bottom: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}
.prologue-text p {
  margin-top: 20px;
  color: var(--muted);
  max-width: 36em;
  font-size: clamp(16px, 1.4vw, 18px);
}

.prologue-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.prologue-stats span {
  min-height: 110px; display: grid; align-content: center;
  padding: 22px 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 320ms ease, box-shadow 320ms ease;
}
.prologue-stats span:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.prologue-stats strong {
  display: block;
  color: var(--sea);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 5.4vw, 64px); font-weight: 600;
  line-height: 1; letter-spacing: -0.02em;
}
.prologue-stats strong sup {
  font-size: 0.5em; vertical-align: super; font-weight: 500; color: var(--terracotta);
  margin-left: 4px;
}

.prologue-stats small {
  display: block; margin-top: 10px;
  color: var(--muted);
  font-family: "Noto Serif SC", serif; font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
}

/* ─── Chapter header ─── */
.chapter-header {
  position: relative;
  max-width: 920px;
  margin: 0 auto 44px;
  padding-top: 8px;
}
.chapter-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.chapter-header.center .section-kicker { justify-content: center; }
.chapter-header.center .section-kicker::before { display: none; }

.chapter-no {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 500;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(176, 74, 44, 0.35);
  text-stroke: 1px rgba(176, 74, 44, 0.35);
  letter-spacing: -0.04em;
  margin-bottom: -28px;
  pointer-events: none;
  user-select: none;
}

.chapter-lede {
  max-width: 38em;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.9;
}
.chapter-header.center .chapter-lede { margin-left: auto; margin-right: auto; }

/* ─── Photo buttons ─── */
.photo-button {
  display: block; width: 100%; padding: 0;
  border: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow); cursor: zoom-in;
  transition: box-shadow 360ms ease, transform 360ms ease;
  position: relative;
}
.photo-button::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.18) 100%);
  opacity: 0;
  transition: opacity 360ms ease;
  pointer-events: none;
}
.photo-button:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.photo-button:hover::after { opacity: 1; }
.photo-button img { aspect-ratio: 4 / 3; transition: transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.photo-button:hover img { transform: scale(1.05); }

figcaption {
  margin-top: 14px;
  font-family: Inter, "PingFang SC", sans-serif;
  font-size: 13px; line-height: 1.5; letter-spacing: 0.02em;
}
figcaption strong {
  display: block; color: var(--ink-2); font-weight: 600;
  font-family: "Noto Serif SC", serif; font-size: 15px;
}
figcaption span { display: block; color: var(--muted-2); margin-top: 3px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

body:not(.letter-page) main figure:has(> .photo-button),
body:not(.letter-page) .chapter-feature {
  position: relative;
}

body:not(.letter-page) main figure:has(> .photo-button) > figcaption,
body:not(.letter-page) .chapter-feature-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 10px 14px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: rgba(18, 13, 10, 0.42);
  color: rgba(255, 252, 245, 0.94);
  box-shadow: 0 10px 30px rgba(18, 13, 10, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

body:not(.letter-page) main figure:has(> .photo-button) > figcaption strong {
  color: var(--white);
}

body:not(.letter-page) main figure:has(> .photo-button) > figcaption span {
  color: rgba(255, 252, 245, 0.72);
}

body:not(.letter-page) main figure:has(> .photo-button) .photo-button::after,
body:not(.letter-page) .chapter-feature .photo-button::after,
body:not(.letter-page) .banner-photo .photo-button::after {
  opacity: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.34) 100%);
}

/* ─── Chapter US (01) ─── */
.chapter-feature {
  margin: 0 auto;
}
.chapter-feature.wide { max-width: 1100px; }
.chapter-feature.portrait { max-width: min(520px, 100%); }
.chapter-feature .photo-button img { aspect-ratio: 16 / 9; }
.chapter-feature.portrait .photo-button img { aspect-ratio: 3 / 4; }
.chapter-feature-caption {
  margin-top: 18px; text-align: left;
  color: var(--muted); font-family: Inter, sans-serif; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter-grid { display: grid; gap: 22px; margin-top: 56px; }
.chapter-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card .photo-button img { aspect-ratio: 4 / 5; }

/* ─── Chapter FIRST (02) ─── */
.chapter-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.road-card { margin: 0; }
.road-card .photo-button img { aspect-ratio: 4 / 3; }

/* ─── Chapter FARAWAY (03) ─── */
.chapter-mosaic {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 130px;
  gap: 16px;
  margin-top: 24px;
}
.chapter-mosaic .photo-button img { aspect-ratio: auto; height: 100%; }
.chapter-mosaic figure { margin: 0; }
.chapter-mosaic figure figcaption { display: block; }
.chapter-mosaic .photo-button { height: 100%; }

.mosaic-a { grid-column: span 5; grid-row: span 3; }
.mosaic-b { grid-column: span 3; grid-row: span 3; }
.mosaic-c { grid-column: span 3; grid-row: span 3; }
.mosaic-d { grid-column: span 5; grid-row: span 3; }
.mosaic-f { grid-column: span 4; grid-row: span 3; }
.mosaic-g { grid-column: span 2; grid-row: span 3; }
.mosaic-h { grid-column: span 2; grid-row: span 3; }

.banner-photo {
  position: relative;
  margin-top: 64px; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow);
}
.banner-photo .photo-button { box-shadow: none; border-radius: var(--radius-xl); }
.banner-photo .photo-button img { aspect-ratio: 21 / 9; }
.banner-caption {
  position: absolute; left: clamp(24px, 4vw, 56px); bottom: clamp(20px, 3vw, 40px);
  color: var(--white);
  font-family: Inter, "PingFang SC", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 6px 30px rgba(0,0,0,0.5);
  max-width: 26em;
  pointer-events: none;
}
body:not(.letter-page) .banner-caption {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  padding: 10px 14px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: rgba(18, 13, 10, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ─── Chapter CITIES (04) ─── */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px; margin-top: 24px;
}
.city-card { margin: 0; }
.city-card .photo-button img { aspect-ratio: 4 / 5; }

/* ─── Chapter HOME (05) ─── */
.home-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(42, 97, 110, 0.06), rgba(192, 125, 46, 0.07));
  border: 1px solid var(--line);
  margin: 24px 0 48px;
}
.home-feature .photo-button { border-radius: var(--radius-lg); }
.home-feature .photo-button img { aspect-ratio: 4 / 5; }
.home-feature-photo { margin: 0; }
.home-feature-text .section-kicker { margin-bottom: 16px; }
.home-feature-text h3 { font-size: clamp(24px, 3vw, 38px); line-height: 1.25; margin-bottom: 20px; }
.home-feature-text p { color: var(--muted); font-size: 16px; line-height: 1.92; }
.home-feature-text p + p { margin-top: 16px; }

.home-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.home-card { margin: 0; }
.home-card .photo-button img { aspect-ratio: 3 / 4; }
.home-card.large { grid-column: span 2; grid-row: span 2; }
.home-card.large .photo-button img { aspect-ratio: 4 / 3; }
.home-card.wide { grid-column: span 3; }
.home-card.wide .photo-button img { aspect-ratio: 16 / 7; }

/* ─── Chapter MARRIED (06) ─── */
.married-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(240px, auto);
  gap: 22px;
}
.married-card { margin: 0; }
.married-card .photo-button img { aspect-ratio: 3 / 4; }
.married-card.married-hero {
  grid-column: span 3; grid-row: auto;
}
.married-card.married-hero .photo-button { box-shadow: var(--shadow-lg); }
.married-card.married-hero .photo-button img { aspect-ratio: 21 / 10; }

/* ─── Chapter THANKS (08) ─── */
.chapter-thanks {
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(192, 125, 46, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(176, 74, 44, 0.06), transparent 60%);
  border-radius: var(--radius-xl);
  padding-left: clamp(20px, 4vw, 60px);
  padding-right: clamp(20px, 4vw, 60px);
}
.thanks-body {
  max-width: 38em;
  margin: 8px auto 0;
  color: var(--ink-2);
}
.thanks-body p {
  margin-top: 22px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.95;
}
.thanks-signoff {
  display: inline-block;
  margin-top: 60px !important;
  padding: 18px 30px;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px) !important;
  line-height: 1.5 !important;
  color: var(--terracotta-deep);
  border-top: 1px solid rgba(176, 74, 44, 0.3);
  border-bottom: 1px solid rgba(176, 74, 44, 0.3);
}

/* ─── Finale ─── */
.finale {
  min-height: 60vh;
  display: grid; place-items: center;
  padding: clamp(72px, 12vw, 140px) 24px;
  text-align: center; color: var(--white);
  background:
    linear-gradient(rgba(20, 10, 6, 0.55), rgba(20, 10, 6, 0.78)),
    url("assets/memories-web/heart-sunset.jpg") center / cover;
  scroll-margin-top: 100px;
}
.finale h2 { max-width: 14em; color: var(--white); font-family: "Cormorant Garamond", "Noto Serif SC", serif; font-style: italic; font-weight: 500; }
.finale p { color: rgba(255, 252, 245, 0.82); max-width: 38em; margin-top: 22px; font-size: clamp(15px, 1.4vw, 17px); }
.finale .button { margin-top: 40px; }

/* ─── Lightbox ─── */
.lightbox {
  width: min(1100px, calc(100% - 32px));
  padding: 0; border: 0; border-radius: var(--radius-lg);
  color: var(--white); background: #120d0a;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}
.lightbox::backdrop { background: rgba(12, 8, 6, 0.86); backdrop-filter: blur(14px); }
.lightbox img { max-height: 78vh; object-fit: contain; background: #120d0a; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.lightbox p {
  margin: 0; padding: 18px 22px 24px;
  color: rgba(255, 252, 245, 0.84);
  font-family: "Noto Serif SC", serif; font-size: 15px; line-height: 1.7;
  letter-spacing: 0.01em;
}
.lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 252, 245, 0.35); border-radius: 50%;
  color: var(--white); background: rgba(18, 13, 10, 0.6);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background 220ms, transform 220ms;
}
.lightbox-close:hover { background: rgba(18, 13, 10, 0.88); transform: rotate(90deg); }

/* ─── Letter page ─── */
.letter-page {
  background:
    radial-gradient(ellipse at top, rgba(192, 125, 46, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(77, 100, 80, 0.08), transparent 30%),
    var(--paper);
}
.letter-shell { width: min(880px, calc(100% - 40px)); margin: 0 auto; padding: 142px 0 100px; }
.letter {
  padding: clamp(36px, 7vw, 88px);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: rgba(255, 252, 245, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  position: relative;
}
.letter::before {
  content: "❦";
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--terracotta);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
}
.letter h1 { color: var(--ink); font-family: "Cormorant Garamond", "Noto Serif SC", serif; font-size: clamp(44px, 6.4vw, 76px); font-weight: 500; }
.letter p { margin: 26px 0 0; font-size: 17px; line-height: 1.95; color: var(--ink-2); }
.letter-photo { margin: clamp(36px, 6vw, 72px) 0; }
.letter-photo img { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.letter-photo figcaption {
  margin-top: 14px; text-align: center; color: var(--muted);
  font-style: italic; font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 15px;
}
.letter-photo.offset { width: min(720px, 100%); margin-left: auto; }
.letter-signoff {
  margin-top: clamp(36px, 5vw, 60px) !important;
  margin-bottom: clamp(60px, 7vw, 92px);
  font-size: clamp(24px, 4vw, 38px) !important;
  line-height: 1.5 !important;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-style: italic;
  color: var(--terracotta-deep);
}

/* ─── Reveal on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ─── Animations ─── */
@keyframes heroCarousel {
  0%, 22%   { transform: translateX(0); }
  27%, 47%  { transform: translateX(-100%); }
  52%, 72%  { transform: translateX(-200%); }
  77%, 97%  { transform: translateX(-300%); }
  100%      { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track { animation: none; }
  .hero-slide img { animation: none; transform: none; }
  .photo-button img { transition: none; }
  .button { transition: none; }
  .hero-scroll-line { animation: none; }
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .chapter-mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; }
  .mosaic-a { grid-column: span 6; grid-row: span 3; }
  .mosaic-b { grid-column: span 3; grid-row: span 2; }
  .mosaic-c { grid-column: span 3; grid-row: span 2; }
  .mosaic-d { grid-column: span 6; grid-row: span 3; }
  .mosaic-f { grid-column: span 3; grid-row: span 2; }
  .mosaic-g { grid-column: span 3; grid-row: span 2; }
  .mosaic-h { grid-column: span 3; grid-row: span 2; }

  .cities-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .site-header { padding-top: 15px; padding-bottom: 15px; }
  .header-actions { gap: 10px; }
  .hero { min-height: 92vh; padding-top: 130px; }

  .prologue { grid-template-columns: 1fr; }
  .prologue-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .home-feature { grid-template-columns: 1fr; }

  .chapter-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-strip .road-card:nth-child(3) { grid-column: span 2; }
  .chapter-grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-grid.grid-3 .card:nth-child(3) { grid-column: span 2; }

  .cities-grid, .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .home-card.large, .home-card.wide {
    grid-column: span 2; grid-row: auto;
  }
  .home-card.wide .photo-button img { aspect-ratio: 16 / 9; }

  .married-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .married-card.married-hero { grid-column: span 2; }

  .chapter-mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; }
  .mosaic-a, .mosaic-b, .mosaic-c, .mosaic-d, .mosaic-f, .mosaic-g, .mosaic-h {
    grid-column: span 2; grid-row: span 2;
  }
  .mosaic-a { grid-column: span 4; grid-row: span 3; }
  .mosaic-d { grid-column: span 4; grid-row: span 2; }

  .banner-caption { font-size: 13px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { min-height: 92vh; padding-left: 20px; padding-right: 20px; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 6, 3, 0.2), rgba(10, 6, 3, 0.12) 32%, rgba(10, 6, 3, 0.86)),
      linear-gradient(90deg, rgba(10, 6, 3, 0.5), transparent 72%);
  }
  h1 { font-size: clamp(40px, 13vw, 64px); }
  h2 { font-size: clamp(28px, 9vw, 44px); }

  .section, .chapter { width: min(100% - 30px, 1200px); scroll-margin-top: 130px; }

  .chapter-no { font-size: clamp(64px, 22vw, 120px); margin-bottom: -16px; }

  .chapter-grid.grid-3, .chapter-strip, .cities-grid, .home-grid,
  .prologue-stats, .married-grid {
    grid-template-columns: 1fr;
  }
  .chapter-grid.grid-3 .card:nth-child(3),
  .chapter-strip .road-card:nth-child(3),
  .home-card.large, .home-card.wide,
  .married-card.married-hero { grid-column: auto; grid-row: auto; }
  .home-card.wide .photo-button img { aspect-ratio: 4 / 3; }

  .home-feature { padding: 22px; }

  .chapter-mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .mosaic-a, .mosaic-b, .mosaic-c, .mosaic-d, .mosaic-f, .mosaic-g, .mosaic-h {
    grid-column: auto; grid-row: auto; min-height: 220px;
  }

  .banner-photo .photo-button img { aspect-ratio: 16 / 11; }
  .banner-caption { font-size: 13px; }

  .letter-shell { width: min(100% - 26px, 880px); padding-top: 140px; }
  .letter { padding: 26px 20px 38px; }
}
