/* ==========================================================================
   Danguolė Rasalaitė - Editorial Museum & Documentary Prototype (/expo/ v4)
   Paper-to-Night scroll transition · 7 Languages · Full Parity · Sprint 1
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4efe6;
  --fg: #181613;
  --muted: #524a41;
  --hairline: rgba(24, 22, 19, 0.15);
  --accent: #8a5c28;
  --surface: #ebe2d4;
  --paper: #f8f3ea;
  --paper-ink: #1a1714;
  --ui-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.theme-night {
  --bg: #171412;
  --fg: #f5efe4;
  --muted: rgba(245, 239, 228, 0.78);
  --hairline: rgba(245, 239, 228, 0.16);
  --accent: #e0b96e;
  --surface: #211d1a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Literata', Georgia, serif;
  font-size: 17px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  transition: background-color 1.05s var(--ease), color 0.85s var(--ease);
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--ui-font);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus { top: 14px; }

.hp-website { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.opt, .optional { font-size: 0.82em; opacity: 0.65; font-weight: 400; }

#histoire, #lettres, #hommages, #proches, #contact, #story, #candles {
  scroll-margin-top: 88px;
}

/* Reading progress bar & subtle paper grain */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 100;
  transition: width 0.08s linear;
}
.grain-layer {
  display: none;
}

/* Lilya referral banner */
.expo-ref-banner {
  position: relative;
  z-index: 70;
  padding: 10px 44px 10px 20px;
  text-align: center;
  font-family: var(--ui-font);
  font-size: 0.84rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--fg);
}
.expo-ref-banner[hidden] { display: none; }
.expo-ref-cta {
  display: inline-block;
  margin-left: 10px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.expo-ref-cta:hover { opacity: 0.8; }
.expo-date-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.expo-date-banner[hidden] { display: none; }
.expo-ref-close {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  background: none; border: 0;
  font-size: 1.3rem; color: var(--muted); cursor: pointer;
}

/* Adaptive Minimal Nav with translucent glass blur */
.expo-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(244, 239, 230, 0.86);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.85s var(--ease), color 0.85s var(--ease), border-color 0.85s var(--ease);
}
.expo-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.expo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.expo-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.38rem;
  font-weight: 500;
}
.expo-badge {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  padding: 2px 7px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--accent);
}
.expo-nav-mobile-actions { display: contents; }
.expo-menu-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}
.expo-menu-icon { display: inline-flex; flex-direction: column; gap: 4px; width: 13px; }
.expo-menu-icon span { display: block; height: 1.5px; width: 100%; background: currentColor; border-radius: 2px; transition: transform 0.25s var(--ease); }
.expo-nav.is-open .expo-menu-icon span:first-child { transform: translateY(2.75px) rotate(45deg); }
.expo-nav.is-open .expo-menu-icon span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.expo-lang-select {
  display: none;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--ui-font);
  font-size: 0.78rem;
  cursor: pointer;
}
.expo-lang-select option { background: #18171c; color: #f2ece1; }

.expo-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.84rem;
  flex-wrap: wrap;
}
.expo-nav-links > a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s;
}
.expo-nav-links > a:hover, .expo-nav-links > a.is-current { color: var(--fg); }
.expo-nav-links > a.is-current {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.nav-count {
  font-size: 0.68em;
  font-weight: 600;
  color: var(--accent);
  margin-left: 3px;
  vertical-align: super;
  line-height: 0;
  opacity: 0.9;
}
.nav-sep { width: 1px; height: 14px; background: var(--hairline); }

.expo-lang-group {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.expo-lang {
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.expo-lang:hover { color: var(--fg); }
.expo-lang.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Layout Wrappers */
.wrap-wide {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 64px);
}
.wrap-narrow {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 48px);
}

/* Typography Kickers & Links */
.chapter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.chapter-kicker > span:first-child:not(:only-child) {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}
.kicker-rule {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background-color: var(--accent);
  opacity: 0.82;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0.5C8.5 5.2 10.8 7.5 15.5 8C10.8 8.5 8.5 10.8 8 15.5C7.5 10.8 5.2 8.5 0.5 8C5.2 7.5 7.5 5.2 8 0.5Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0.5C8.5 5.2 10.8 7.5 15.5 8C10.8 8.5 8.5 10.8 8 15.5C7.5 10.8 5.2 8.5 0.5 8C5.2 7.5 7.5 5.2 8 0.5Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}

.editorial-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--hairline);
  font-family: 'Literata', serif;
  font-size: 0.92rem;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, gap 0.25s;
}
.editorial-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  gap: 14px;
}
.editorial-link-primary {
  border-bottom-color: var(--accent);
  font-weight: 500;
}
.stops-cta { margin-top: 18px; }

/* ACTE I : HERO ASYMÉTRIQUE DE MUSÉE */
.expo-hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(22px, 5vw, 64px) 64px;
  position: relative;
}
.hero-grid {
  width: min(1060px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.4rem, 7.6vw, 6.8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero-display em { font-style: italic; font-weight: 500; }
.hero-pronounce { font-family: var(--ui-font); font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.hero-pronounce .dot { margin: 0 8px; opacity: 0.5; }
.hero-dates {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-lead {
  max-width: 48ch;
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 34px;
}
.hero-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-cta-solid, .hero-cta-outline {
  font-family: var(--ui-font);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, opacity 0.2s, border-color 0.2s, background 0.2s;
}
.hero-cta-solid {
  background: var(--fg);
  color: var(--bg);
}
.hero-cta-solid:hover { opacity: 0.9; transform: translateY(-1px); }
.hero-cta-outline {
  border: 1px solid var(--hairline);
  color: var(--fg);
  background: transparent;
}
.hero-cta-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-portrait {
  margin: 0;
  justify-self: end;
  width: min(312px, 100%);
}
.museum-frame {
  position: relative;
  z-index: 95;
  padding: 22px;
  background: #faf6ef;
  box-shadow: 0 24px 60px rgba(24, 20, 14, 0.13), 0 2px 6px rgba(24, 20, 14, 0.07);
  border: 1px solid rgba(24, 22, 19, 0.1);
}
.museum-mat {
  overflow: hidden;
  background: #e8e0d2;
  border: 1px solid rgba(24, 22, 19, 0.12);
}
.museum-mat img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.2s var(--ease);
}
.hero-portrait:hover .museum-mat img { transform: scale(1.025); }
.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}
.fig-meta { font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; white-space: nowrap; flex-shrink: 0; }

.hero-scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* MONUMENTAL VOICE QUOTE */
.voice-monument {
  padding: clamp(90px, 14vh, 160px) 0;
  border-top: 1px solid var(--hairline);
}
.manifesto-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  margin-bottom: 52px;
}
.voice-divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 52px;
  opacity: 0.6;
}
.voice-quote { text-align: center; }
.voice-lt {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.28;
  margin-bottom: 22px;
}
.voice-tr {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 18px;
}
.voice-src {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ACTE II : HISTOIRE ÉDITORIALE ASYMÉTRIQUE */
.editorial-chapter {
  padding: clamp(80px, 12vh, 150px) 0;
  border-top: 1px solid var(--hairline);
}
.chapter-split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.chapter-rail { position: sticky; top: 96px; }
.chapter-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.06;
  margin-bottom: 24px;
}
.chapter-h2-large { font-size: clamp(2.8rem, 5.5vw, 4.8rem); }
.name-statement {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.32rem;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 18px;
}
.name-statement strong { color: var(--fg); font-weight: 600; }
.child-lead { font-size: 0.92rem; color: var(--muted); margin-bottom: 28px; }

.stops-index { border-top: 1px solid var(--hairline); padding-top: 18px; }
.stop-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.88rem;
}
.stop-num { font-family: 'Cormorant Garamond', serif; color: var(--accent); font-size: 0.96rem; font-weight: 600; }
.stop-row strong { display: block; font-weight: 500; color: var(--fg); }
.stop-row span { color: var(--muted); font-size: 0.84rem; }

.editorial-prose p { margin-bottom: 20px; max-width: 62ch; }
.editorial-prose .story-note {
  color: var(--accent) !important;
  font-size: 0.94rem !important;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.editorial-prose .memory-callout-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.62rem;
  font-weight: 500;
  line-height: 1.38;
  padding: 28px 0;
  margin: 34px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.editorial-timeline {
  list-style: none;
  margin: 56px 0 42px;
  border-top: 1px solid var(--hairline);
}
.tl-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.tl-date { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--accent); }
.tl-detail h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.38rem; font-weight: 600; margin-bottom: 6px; }
.tl-detail p { font-size: 0.94rem; color: var(--muted); }
.story-actions { display: flex; flex-wrap: wrap; gap: 28px; }

/* Verified Record Strip (Reality vs Film, Seimas 2004, Sources) */
.reality-strip {
  margin-top: clamp(72px, 10vh, 112px);
  padding-top: 56px;
  border-top: 1px solid var(--hairline);
}
.reality-head { margin-bottom: 32px; }
.reality-head .chapter-kicker { margin-bottom: 10px; }
.reality-h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
}
.reality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.reality-card {
  padding: 24px 0 0;
  border-top: 1px solid var(--hairline);
}
.reality-kicker {
  display: block;
  font-family: var(--ui-font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.reality-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
}
.reality-card p {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--muted);
}

/* SEUIL SILENCIEUX AVANT LA NUIT D'ARLÖV */
.night-threshold {
  padding: clamp(72px, 11vh, 128px) 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.threshold-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.65;
}
.threshold-caption {
  font-family: var(--ui-font);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.88;
}

/* ACTE III : LA NUIT D'ARLÖV (FEUILLETS D'ARCHIVES) */
.letters-sanctuary {
  padding: clamp(56px, 8vh, 96px) 0 clamp(110px, 16vh, 180px);
}
.letters-head { max-width: 680px; margin-bottom: 64px; }
.letters-intro { color: var(--muted); font-size: 1rem; }

.folios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.folio-sheet {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 34px 30px 28px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.folio-sheet:nth-child(2) { transform: translateY(22px); }
.folio-sheet:hover { transform: translateY(-8px); box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6); }
.folio-sheet:nth-child(2):hover { transform: translateY(14px); }
.folio-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(26, 23, 20, 0.14);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.folio-num { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.9rem; color: #8c6230; line-height: 1; }
.folio-sub { font-family: var(--ui-font); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6156; }
.folio-title { font-family: 'Cormorant Garamond', serif; font-size: 1.48rem; font-weight: 600; margin-bottom: 14px; line-height: 1.2; }
.folio-lt { font-family: 'Literata', Georgia, serif; font-style: italic; font-size: 1.02rem; font-weight: 400; line-height: 1.62; color: #4a351c; margin-bottom: 16px; }
.folio-tr { font-size: 0.96rem; line-height: 1.68; color: #26211c; margin-bottom: 24px; flex: 1; }
.folio-foot { border-top: 1px solid rgba(26, 23, 20, 0.14); padding-top: 12px; font-family: var(--ui-font); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8a5c28; }

/* ACTE IV : SENSIBILISATION & LIGNES D'AIDE */
.awareness-band {
  padding: clamp(90px, 12vh, 140px) 0;
  border-top: 1px solid var(--hairline);
}
.awareness-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.editorial-prose-dark h3, .editorial-prose-dark h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--fg);
}
.editorial-prose-dark h4 { font-size: 1.5rem; }
.editorial-prose-dark p, .editorial-prose-dark li { color: var(--muted); }
.editorial-prose-dark strong { color: var(--fg); }

.helplines-h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.85rem; font-weight: 500; margin-bottom: 24px; }
.hl-item { padding: 18px 0; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 4px; }
.hl-item:last-child { border-bottom: 1px solid var(--hairline); }
.hl-primary { border-top-color: var(--accent); }
.hl-country { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-right: 10px; }
.hl-org { font-size: 0.86rem; color: var(--muted); }
.hl-num { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 500; color: var(--fg); text-decoration: none; line-height: 1.2; }
.hl-num:hover { color: var(--accent); }
.hl-sub { font-size: 0.8rem; color: var(--muted); }

/* ACTE V : REGISTRE DES HOMMAGES */
.tributes-sanctuary {
  padding: clamp(100px, 14vh, 160px) 0;
  border-top: 1px solid var(--hairline);
}
.tributes-composer-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  padding-bottom: 56px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--hairline);
}
.tributes-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 0;
}
.tributes-intro { max-width: 38ch; color: var(--muted); margin-bottom: 32px; }
.tributes-count-box {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 22px;
  border: 1px solid rgba(224, 185, 110, 0.24);
  background: rgba(224, 185, 110, 0.05);
  border-radius: 8px;
  text-align: left;
}
.big-count {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 600;
  line-height: 0.95;
  color: var(--accent);
}
.big-count-lbl { font-family: var(--ui-font); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.tribute-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Stationery-style Forms */
.stationery-form {
  max-width: 720px;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}
.tribute-card-form {
  max-width: 100%;
  margin-bottom: 0;
  padding: clamp(24px, 3.5vw, 36px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(224, 185, 110, 0.22);
  border-radius: 10px;
}
.contact-stationery {
  margin-top: 24px;
  margin-bottom: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.sf-fieldset { border: 0; margin-bottom: 24px; }
.sf-legend {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.sf-types { display: flex; gap: 14px; flex-wrap: wrap; }
.sf-type { cursor: pointer; position: relative; }
.sf-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--muted);
  transition: all 0.25s;
}
.sf-type input:checked + .sf-type-pill {
  color: var(--fg);
  border-color: var(--accent);
  background: rgba(216, 179, 106, 0.12);
}
.sf-type input:focus-visible + .sf-type-pill {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 18px;
}
.sf-field { margin-bottom: 18px; }
.sf-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.sf-char-count {
  font-family: var(--ui-font);
  font-size: 0.74rem;
  color: var(--muted);
}
.sf-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 7px;
}
.stationery-form input[type="text"],
.stationery-form input[type="email"],
.stationery-form textarea,
.sf-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 239, 228, 0.15);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--fg);
  font-family: 'Literata', serif;
  font-size: 0.96rem;
  transition: border-color 0.25s, background-color 0.25s;
}
.sf-select option { background: #18171c; color: #f2ece1; }
.stationery-form input:focus,
.stationery-form textarea:focus,
.sf-select:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.065);
}

.sf-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.sf-status { font-family: var(--ui-font); font-size: 0.86rem; color: var(--accent); }
.editorial-btn-light {
  appearance: none;
  background: var(--fg);
  color: #111013;
  border: 0;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s;
}
.editorial-btn-light:hover { opacity: 0.9; transform: translateY(-1px); }
.editorial-btn-light:disabled { opacity: 0.5; cursor: wait; transform: none; }

/* Filter Bar */
.expo-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.expo-filter-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--muted);
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.expo-filter-btn:hover, .expo-filter-btn.active {
  color: var(--fg);
  border-color: var(--accent);
  background: rgba(216, 179, 106, 0.12);
}

/* Chronological Editorial Grid (balanced rows, zero awkward holes) */
.tributes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}
.tribute-empty {
  color: var(--muted);
  font-style: italic;
  grid-column: 1 / -1;
}
.tribute-entry {
  padding: 22px 24px 22px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tribute-entry.is-fresh {
  animation: freshAmberGlow 1.9s var(--ease) forwards;
}
@keyframes freshAmberGlow {
  0% { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 34px rgba(224, 185, 110, 0.28); background: rgba(224, 185, 110, 0.1); }
  100% { border-color: rgba(224, 185, 110, 0.35); box-shadow: none; background: rgba(255, 255, 255, 0.032); }
}
.tribute-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.tribute-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.tribute-copy-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.74rem;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s;
}
.tribute-copy-btn:hover { color: var(--accent); }
.tribute-entry-msg {
  font-family: 'Literata', Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.66;
  color: var(--fg);
  margin-bottom: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tribute-entry.is-expanded .tribute-entry-msg {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.tribute-expand-btn {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0 0 10px;
  color: var(--accent);
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}
.tribute-expand-btn:hover { text-decoration: underline; }
.tribute-entry-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 239, 228, 0.08);
}
.tributes-more { margin-top: 48px; }

/* PROCHES & CONTACT PRIVÉ */
.proches-band {
  padding: clamp(90px, 12vh, 140px) 0 60px;
  border-top: 1px solid var(--hairline);
}
.proches-p { font-size: 1.05rem; margin-bottom: 16px; }
.proches-p-muted { color: var(--muted); }
.thanks-block {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.94rem;
}
.thanks-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.thanks-block p { margin-bottom: 10px; }

.private-band {
  padding: 64px 0 clamp(90px, 12vh, 140px);
  border-top: 1px solid var(--hairline);
}
.private-card {
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: clamp(26px, 4.5vw, 48px);
}
.private-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 22px 0 24px;
}
.private-badge {
  padding: 12px 14px;
  border: 1px solid rgba(224, 185, 110, 0.22);
  background: rgba(224, 185, 110, 0.05);
  border-radius: 6px;
  font-family: var(--ui-font);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--fg);
}
.private-badge strong {
  display: block;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.private-prose { font-size: 1rem; margin-bottom: 14px; }
.private-intent { font-size: 0.94rem; color: var(--muted); margin-bottom: 14px; }
.private-note { font-size: 0.86rem; color: var(--accent); margin-bottom: 16px; }
.private-wall-hint {
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(216, 179, 106, 0.06);
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.private-wall-hint a { color: var(--accent); text-decoration: underline; }
.private-direct { font-size: 0.88rem; color: var(--muted); margin-top: 16px; }
.private-direct a { color: var(--accent) !important; text-decoration: underline !important; }

/* FOOTER (Balanced 3-column museum architecture) */
.expo-footer {
  padding: 56px 0 96px;
  border-top: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.9fr;
  gap: 36px 48px;
  align-items: start;
}
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 500; color: var(--fg); margin-bottom: 10px; }
.footer-sub { margin-bottom: 8px; line-height: 1.6; max-width: 44ch; }
.footer-small { font-size: 0.78rem; opacity: 0.76; max-width: 44ch; line-height: 1.55; }
.footer-col-title {
  font-family: var(--ui-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-list a, .footer-copy-btn {
  color: var(--fg);
  opacity: 0.86;
  text-decoration: none;
  font-family: var(--ui-font);
  font-size: 0.86rem;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}
.footer-col-list a:hover, .footer-copy-btn:hover {
  color: var(--accent);
  opacity: 1;
  text-decoration: underline;
}

/* Floating Audio & Back to Top */
.expo-float-controls {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.expo-top-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--fg);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.expo-top-btn[hidden] { display: none; }
.expo-audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--fg);
  font-size: 0.8rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transition: background 0.85s var(--ease), color 0.85s var(--ease);
}
.audio-play-btn {
  background: none; border: 0; color: inherit;
  font-family: inherit; font-size: inherit;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  min-height: 32px;
}
.audio-wave { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.audio-play-btn[aria-pressed="true"] .audio-wave { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.audio-track-sel {
  background: transparent; border: 0; color: var(--muted);
  font-family: inherit; font-size: 0.78rem; cursor: pointer;
}
.audio-track-sel option { background: #18171c; color: #f2ece1; }

/* Archival Paper Modal */
.expo-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.expo-modal[hidden] { display: none; }
.expo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 14, 0.76);
  backdrop-filter: blur(8px);
}
.expo-modal-paper {
  position: relative;
  z-index: 2;
  width: min(740px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65);
}
.expo-modal-paper.modal-bilingual-sheet {
  width: min(880px, 100%);
}
.modal-letter-jump {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 14px;
}
.modal-letter-jump button {
  background: transparent;
  border: 1px solid rgba(26, 23, 20, 0.2);
  color: #5b5349;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 2px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.modal-letter-jump button.active {
  background: #8c6230;
  border-color: #8c6230;
  color: #faf6ef;
}
.modal-lang-tabs {
  display: none;
  gap: 8px;
  margin: 14px 0 16px;
}
.modal-lang-tabs button {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(26, 23, 20, 0.22);
  color: #524a41;
  font-family: var(--ui-font);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.modal-lang-tabs button.active {
  background: #1a1714;
  border-color: #1a1714;
  color: #f8f3ea;
}
.modal-bilingual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
  margin: 18px 0;
}
.modal-bilingual .modal-lt {
  margin: 0;
  font-family: 'Literata', Georgia, serif;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #3c2b16;
}
.modal-tr-col {
  padding-top: 2px;
}
.modal-light-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--ui-font);
  font-size: 0.84rem;
  font-weight: 500;
  color: #8c6230;
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 98, 48, 0.45);
  padding-bottom: 2px;
}
.modal-light-cta:hover { color: #1a1714; border-bottom-color: #1a1714; }
.expo-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none; border: 0;
  font-size: 1.75rem; line-height: 1;
  color: #524a41; cursor: pointer;
}
.expo-modal-close:hover { color: #1a1714; }
.expo-modal-paper h2 { font-family: 'Cormorant Garamond', serif; font-size: 2.15rem; font-weight: 500; margin-bottom: 18px; padding-right: 36px; }
.expo-modal-paper p { margin-bottom: 14px; font-size: 0.98rem; line-height: 1.76; }
.modal-meta {
  font-family: var(--ui-font);
  font-size: 0.8rem;
  color: #6b6156;
  margin-top: -12px;
  margin-bottom: 20px;
}
.modal-lt {
  border-left: 2px solid #8c6230;
  padding: 14px 18px;
  margin: 18px 0;
  background: rgba(26, 23, 20, 0.04);
  font-style: italic;
  white-space: pre-line;
}
.modal-lt-label {
  display: block;
  font-family: var(--ui-font);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #8c6230;
}
.modal-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(26, 23, 20, 0.14); font-size: 0.84rem; color: #5b5349; }
.modal-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 23, 20, 0.14);
}
.modal-tools button {
  background: transparent;
  border: 1px solid rgba(26, 23, 20, 0.25);
  color: var(--paper-ink);
  padding: 9px 14px;
  font-family: var(--ui-font);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
}
.modal-tools button:hover { border-color: #8c6230; color: #8c6230; }
.modal-tools button:disabled { opacity: 0.35; cursor: default; }

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.expo-nav, .chapter-kicker, .sf-legend, .sf-field label, .expo-filter-btn, .editorial-btn-light, .sf-type-pill, .tribute-type-tag, .tribute-copy-btn, .tribute-entry-meta, .hl-country, .hl-org, .hl-sub, .expo-footer, .expo-audio-pill {
  font-family: var(--ui-font);
}

@media (max-width: 980px) {
  .hero-grid, .chapter-split, .awareness-grid, .tributes-composer-grid { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; width: min(320px, 100%); }
  .chapter-rail { position: static; }
  .folios-grid, .reality-grid { grid-template-columns: 1fr; }
  .folio-sheet:nth-child(2) { transform: none; }
  .tributes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.72; }
  .wrap-wide, .wrap-narrow { padding-left: 18px; padding-right: 18px; }

  .expo-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px;
  }
  .expo-nav-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .expo-lang-select {
    display: inline-block;
    min-height: 36px;
    font-size: 13px;
    padding: 5px 10px;
  }
  .expo-menu-toggle { display: inline-flex; }
  .expo-lang-group, .nav-sep { display: none; }
  .expo-nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--hairline);
  }
  .expo-nav.is-open .expo-nav-links { display: flex; }
  .expo-nav-links > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 8px 4px;
    font-size: 0.96rem;
    border-bottom: 1px solid color-mix(in srgb, var(--hairline) 55%, transparent);
  }
  .expo-nav-links > a:last-of-type { border-bottom: 0; }

  /* Hero balanced for mobile screens */
  .expo-hero {
    min-height: auto;
    padding: 16px 18px 40px;
  }
  .hero-eyebrow { margin-bottom: 10px; }
  .hero-display { font-size: clamp(2.75rem, 11vw, 3.6rem); margin-bottom: 10px; }
  .hero-pronounce { margin-bottom: 8px; }
  .hero-dates { font-size: 1.2rem; margin-bottom: 12px; }
  .hero-lead { font-size: 1rem; margin-bottom: 18px; }
  .hero-portrait { justify-self: center; width: min(264px, 84vw); }
  .museum-frame { padding: 14px; }
  .hero-scroll-cue { display: none; }
  .hero-links { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta-solid, .hero-cta-outline { justify-content: center; min-height: 46px; }

  /* Sections spacing on mobile */
  .voice-monument { padding: 64px 0; }
  .editorial-chapter, .letters-sanctuary, .awareness-band, .tributes-sanctuary, .proches-band {
    padding: 64px 0;
  }
  .private-band { padding: 48px 0 80px; }
  .private-card, .tribute-card-form { padding: 22px 18px; }
  .tributes-composer-grid { padding-bottom: 36px; margin-bottom: 28px; }
  .tributes-count-box { width: 100%; justify-content: center; }

  /* iOS anti-zoom (16px) & 44px comfortable tap targets */
  .stationery-form input[type="text"],
  .stationery-form input[type="email"],
  .stationery-form textarea,
  .sf-select {
    font-size: 16px;
    padding: 12px 14px;
  }
  .sf-type-pill, .editorial-btn-light { min-height: 44px; }
  .editorial-btn-light { width: 100%; justify-content: center; }
  .sf-foot { flex-direction: column; align-items: stretch; gap: 12px; }

  /* Horizontal swipe filter pills on mobile */
  .expo-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-bottom: 24px;
    scrollbar-width: none;
  }
  .expo-filter-bar::-webkit-scrollbar { display: none; }
  .expo-filter-btn { white-space: nowrap; flex-shrink: 0; min-height: 42px; }

  .tl-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .sf-row { grid-template-columns: 1fr; gap: 0; }
  .tributes-grid, .private-badges, .footer-grid { grid-template-columns: 1fr; }
  .folio-sheet { padding: 26px 22px 22px; }
  .expo-footer { padding: 44px 0 calc(96px + env(safe-area-inset-bottom, 0px)); }

  /* Auto-hide floating controls while typing in forms on mobile */
  body.input-focused .expo-float-controls {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
  }
  .expo-float-controls {
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }
  .expo-top-btn { width: 36px; height: 36px; font-size: 0.92rem; }
  .expo-audio-pill { min-height: 36px; padding: 4px 10px; gap: 6px; font-size: 0.74rem; }

  /* Full-screen archival sheet for Letters & Story modal on mobile */
  .expo-modal { padding: 0; align-items: stretch; }
  .expo-modal-paper {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: 24px 20px calc(92px + env(safe-area-inset-bottom, 0px));
  }
  .modal-tools {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--paper);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    margin-top: 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
  }
  .modal-tools button { min-height: 40px; padding: 8px 12px; }
  .modal-lang-tabs { display: flex; }
  .modal-bilingual { grid-template-columns: 1fr; gap: 0; }
  .modal-bilingual[data-tab="tr"] .modal-lt { display: none; }
  .modal-bilingual[data-tab="lt"] .modal-tr-col { display: none; }
}

/* Clean Archival Print Stylesheet */

/* Sourced Human Memories Vignette in Chapter II */
.human-memories {
  margin: 36px 0 42px;
  padding: 26px 28px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}
.hm-eyebrow {
  font-family: var(--ui-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.hm-card + .hm-card {
  padding-top: 16px;
  border-top: 1px solid rgba(24, 22, 19, 0.12);
}
.hm-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--paper-ink);
  margin-bottom: 8px;
  line-height: 1.2;
}
.hm-body {
  font-size: 0.92rem;
  line-height: 1.66;
  color: var(--paper-ink);
  margin-bottom: 8px;
}
.hm-src {
  font-family: var(--ui-font);
  font-size: 0.72rem;
  color: #5b5349;
}
@media (max-width: 980px) {
  .hm-grid { grid-template-columns: 1fr; gap: 18px; }
  .human-memories { padding: 22px 20px; }
}

@media print {
  body, body.theme-night {
    background: #ffffff !important;
    color: #111111 !important;
  }
  .expo-nav, .read-progress, .grain-layer, .expo-ref-banner, .expo-float-controls,
  .expo-modal-backdrop, .expo-modal-close, .modal-tools, .skip-link {
    display: none !important;
  }
  body.modal-open main, body.modal-open footer {
    display: none !important;
  }
  .expo-modal:not([hidden]) {
    position: static !important;
    display: block !important;
    padding: 0 !important;
  }
  .expo-modal-paper {
    box-shadow: none !important;
    max-height: none !important;
    width: 100% !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #111111 !important;
  }
}

/* Subtle creator thank-you note under tribute counter */
.tributes-creator-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 239, 228, 0.14);
  max-width: 38ch;
}
.tributes-creator-note p {
  font-size: 0.92rem;
  line-height: 1.68;
  color: rgba(245, 239, 228, 0.74);
  font-style: italic;
  margin: 0 0 8px;
}
.tributes-creator-note span {
  display: block;
  font-family: var(--ui-font);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* Subtle UX enhancements: letter affordance, clickable rail stops & mobile tribute jump */
.voice-letters-wrap {
  margin-top: 16px;
}
.voice-letters-link {
  font-size: 0.84rem;
}
.stop-row-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.stop-row-link:hover {
  transform: translateX(3px);
}
.stop-row-link:hover strong {
  color: var(--accent);
}
.folio-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 23, 20, 0.14);
}
.folio-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7c5222;
  border-bottom: 1px solid rgba(124, 82, 34, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.folio-sheet:hover .folio-open {
  color: #1a1714;
  border-bottom-color: #1a1714;
  transform: translateX(3px);
}
.mobile-wall-jump-wrap {
  display: none;
}
@media (max-width: 640px) {
  .mobile-wall-jump-wrap {
    display: block;
    margin-top: 16px;
  }
  .mobile-wall-jump {
    font-family: var(--ui-font);
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 154, 108, 0.35);
    padding-bottom: 2px;
  }
}

/* === Audit Fixes (2026-12-05): Tap Targets & Sticky Nav Clarity === */
.expo-lang-select {
  min-height: 40px;
}
.tribute-copy-btn {
  min-height: 34px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
}
.tribute-expand-btn {
  min-height: 34px;
  padding: 4px 0 8px;
  display: inline-flex;
  align-items: center;
}
#expo-nav {
  background-color: rgba(20, 19, 23, 0.93);
}
body.theme-paper #expo-nav {
  background-color: rgba(244, 239, 230, 0.95);
}
