/* =============================================================
   Storymap — Early Sri Lankan Migration to Australia
   ============================================================= */

/* ── Palette ──────────────────────────────────────────────────
   Historical archival palette — warm paper, ink, aged gold
   ──────────────────────────────────────────────────────────── */
:root {
  --c-paper:      #f6f1e9;   /* main page background — warm off-white */
  --c-tint:       #ede6d8;   /* alternate sections — slightly deeper */
  --c-rule:       #d4c8b8;   /* borders, dividers, ruled lines */
  --c-parchment:  #e6dfd3;   /* document tile bg, placeholders */

  --c-ink:        #1c1208;   /* headings, dark section backgrounds */
  --c-ink-mid:    #2e1f0e;   /* gradient end for dark sections */
  --c-ink-warm:   #3a2a18;   /* dark brown for subheadings, location text */
  --c-body:       #3c2e22;   /* body text — warm dark brown (not cold gray) */
  --c-muted:      #7a6a55;   /* captions, meta, muted labels */
  --c-muted-light: rgba(245, 238, 225, 0.72); /* muted text on dark bg */

  --c-gold:       #b8922e;   /* accent — muted historical gold */
  --c-gold-light: #d4aa48;   /* lighter gold for initials, badges */
}

/* ── Base ─────────────────────────────────────────────────── */
.storymap-body {
  margin: 0;
  padding: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--c-body);
  background: var(--c-paper);
  overflow-x: hidden;
}

.storymap-body *,
.storymap-body *::before,
.storymap-body *::after {
  box-sizing: border-box;
}

/* ── Sticky nav ───────────────────────────────────────────── */
.sm-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(28, 18, 8, 0.96);
  backdrop-filter: blur(6px);
  transition: padding 0.3s ease;
}

.sm-nav.scrolled {
  padding: 0.65rem 2rem;
}

.sm-nav-back {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.sm-nav-back:hover {
  color: #fff;
}

.sm-nav-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* ── Hero ─────────────────────────────────────────────────── */
.sm-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background:
    linear-gradient(160deg, rgba(10,18,30,0.82) 0%, rgba(18,35,58,0.75) 100%),
    url('/assets/images/sri-lankan-migration/hero-bg.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 7rem 2rem 5rem;
}

.sm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
}

.sm-hero-content {
  position: relative;
  max-width: 820px;
}

.sm-hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

.sm-hero-divider {
  width: 70px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  margin: 1.2rem auto 1.4rem;
}

.sm-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin: 0 0 2rem;
  line-height: 1.5;
}

.sm-hero-meta {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.9;
}

.sm-scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: sm-bounce 2s ease-in-out infinite;
}

@keyframes sm-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Chapter break ────────────────────────────────────────── */
.sm-chapter {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(10,18,30,0.80) 0%, rgba(18,35,58,0.72) 100%),
    url('/assets/images/sri-lankan-migration/hero-bg.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 2rem;
}

.sm-chapter::before {
  content: '';
  position: absolute;
  inset: 0;
}

.sm-chapter-inner {
  position: relative;
  max-width: 700px;
}

.sm-chapter-title {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  color: #fff;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1.2rem;
}

.sm-chapter-divider {
  width: 55px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 auto;
}

/* ── Split section (50/50 text + image/colour) ────────────── */
.sm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 65vh;
  align-items: stretch;
}

.sm-split-text {
  padding: 4.5rem 3.5rem 4.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-paper);
}

.sm-split-visual {
  background: var(--c-parchment);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.sm-split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sm-split-visual img.sm-img-contain {
  object-fit: contain;
  height: auto;
  max-height: 100%;
  background: var(--c-parchment);
}

/* image placeholder styling */
.sm-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--c-parchment);
  color: rgba(60,45,28,0.4);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 2rem;
  gap: 0.6rem;
}

.sm-img-placeholder .sm-img-icon {
  font-size: 2rem;
  opacity: 0.4;
  margin-bottom: 0.3rem;
}

.sm-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.8rem;
  background: rgba(0,0,0,0.52);
  color: rgba(255,255,255,0.75);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  text-align: center;
}

/* caption below image, for contain/portrait images */
.sm-img-caption-below {
  display: block;
  padding: 0.5rem 1rem 0.6rem;
  background: var(--c-parchment);
  color: var(--c-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  text-align: center;
  border-top: 1px solid var(--c-rule);
}

/* reverse: image first on desktop */
.sm-split-rev .sm-split-visual { order: -1; }

/* ── Section typography ───────────────────────────────────── */
.sm-section-heading {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 400;
  color: var(--c-ink);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.sm-body p {
  font-size: 1rem;
  line-height: 1.82;
  color: var(--c-body);
  margin: 0 0 0.9em;
}

.sm-body strong {
  color: var(--c-ink-warm);
}

sup {
  font-size: 0.65em;
  line-height: 0;
}

sup a {
  text-decoration: none;
}

[id] {
  scroll-margin-top: 90px;
}

.sm-body ul {
  padding-left: 1.4em;
  margin: 0.5em 0 0.9em;
}

.sm-body ul li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-body);
  margin-bottom: 0.3em;
}

/* ── Editorial section (full-bleed image + narrow text column) */
.sm-editorial {
  background: var(--c-paper);
}

.sm-editorial-img-wrap {
  position: relative;
  width: 100%;
  height: clamp(320px, 50vw, 580px);
  overflow: hidden;
}

.sm-editorial-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sm-editorial-img-wrap .sm-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.58));
  color: rgba(255,255,255,0.82);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  text-align: left;
  letter-spacing: 0.01em;
}

.sm-editorial-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 2rem 4.5rem;
}

.sm-editorial-body .sm-section-heading {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 1.4rem;
}

/* ── Pull quote ───────────────────────────────────────────── */
.sm-pullquote {
  background: var(--c-tint);
  padding: 5.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
}

.sm-pullquote blockquote {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-style: italic;
  color: var(--c-ink-warm);
  line-height: 1.65;
  border: none;
  padding: 0;
}

.sm-pullquote cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: var(--c-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* gold heading variant for dark sections */
.sm-heading-gold {
  color: var(--c-gold-light) !important;
}

/* research questions block inside pullquote */
.sm-research-questions {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.sm-rq-intro {
  font-size: 1.05rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--c-ink-warm);
  margin-bottom: 1.2rem;
  font-style: normal;
}

.sm-rq-item {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--c-body);
  margin-bottom: 1rem;
  line-height: 1.65;
}

/* profiles section description */
.sm-profiles-desc {
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.75;
  font-family: 'Georgia', serif;
}

/* ── Dark full-width section ──────────────────────────────── */
.sm-dark {
  background: linear-gradient(160deg, var(--c-ink) 0%, var(--c-ink-mid) 100%);
  color: rgba(245, 238, 225, 0.9);
  padding: 5rem 2rem;
}

.sm-dark-inner {
  max-width: 800px;
  margin: 0 auto;
}

.sm-dark .sm-section-heading {
  color: #fff;
}

.sm-dark .sm-body p {
  color: rgba(245, 238, 225, 0.85);
}

.sm-dark p {
  color: rgba(245, 238, 225, 0.88);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
}

.sm-opening-quote {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  font-family: 'Georgia', serif;
  color: var(--c-gold-light) !important;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

/* ── Centered text section ────────────────────────────────── */
.sm-centered {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* ── Stats bar ────────────────────────────────────────────── */
.sm-stats {
  background: var(--c-ink-mid);
  color: #fff;
}

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

.sm-stat-item {
  padding: 3.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sm-stat-item:last-child {
  border-right: none;
}

.sm-stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 0.3rem;
  color: #fff;
}

.sm-stat-label {
  font-size: 0.9rem;
  color: var(--c-muted-light);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.4;
}

/* ── Migrant profiles ─────────────────────────────────────── */
.sm-profiles-section {
  background: var(--c-tint);
  padding: 5rem 2rem;
}

.sm-profiles-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* Tile grid */
.sm-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
}

/* Each tile is a clickable portrait card */
.sm-profile-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--c-parchment);
  border: 1px solid var(--c-rule);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sm-profile-tile:hover,
.sm-profile-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(40,25,8,0.18);
  outline: none;
}

/* thumbnail image fills the tile */
.sm-profile-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.sm-profile-tile:hover .sm-profile-tile-img {
  transform: scale(1.04);
}

/* document/form/landscape tiles — show full image on parchment */
.sm-profile-tile.sm-tile-doc {
  background: var(--c-parchment);
}

.sm-profile-tile.sm-tile-doc .sm-profile-tile-img {
  object-fit: contain;
  object-position: center center;
  padding: 0.5rem 0.5rem 2.5rem;
  filter: sepia(15%) contrast(1.05);
}

.sm-profile-tile.sm-tile-doc:hover .sm-profile-tile-img {
  transform: scale(1.02);
}

/* initials placeholder for tiles with no image */
.sm-profile-tile-initials {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--c-ink) 0%, var(--c-ink-mid) 100%);
  padding: 1rem;
  gap: 0.5rem;
}

.sm-profile-tile-initials-letters {
  font-family: 'Georgia', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--c-gold-light);
  line-height: 1;
}

.sm-profile-tile-initials-name {
  font-family: 'Georgia', serif;
  font-size: 0.65rem;
  color: rgba(245,238,225,0.5);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

/* dark gradient + name overlay at bottom of every tile */
.sm-profile-tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(20,12,4,0.88) 0%, transparent 100%);
  padding: 2rem 0.75rem 0.75rem;
  pointer-events: none;
}

.sm-profile-tile-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: block;
}

.sm-profile-tile-years {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-top: 0.15rem;
}

/* "click to learn more" hint on hover */
.sm-profile-tile::after {
  content: 'View profile';
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(184,146,46,0.92);
  color: var(--c-ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.sm-profile-tile:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ── Profile modal ────────────────────────────────────────── */
.sm-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sm-modal.open {
  pointer-events: all;
  opacity: 1;
}

.sm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 4, 0.72);
  backdrop-filter: blur(4px);
}

.sm-modal-card {
  position: relative;
  background: var(--c-paper);
  border-radius: 10px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(20,12,4,0.45);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sm-modal.open .sm-modal-card {
  transform: translateY(0) scale(1);
}

.sm-modal-close {
  position: sticky;
  top: 0.9rem;
  float: right;
  margin: 0.9rem 0.9rem 0 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: rgba(28,18,8,0.1);
  color: var(--c-ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}

.sm-modal-close:hover {
  background: rgba(28,18,8,0.18);
}

.sm-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: background 0.2s;
}

.sm-modal-nav:hover {
  background: rgba(255,255,255,0.24);
}

.sm-modal-prev { left: 1.25rem; }
.sm-modal-next { right: 1.25rem; }

.sm-modal-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  clear: both;
}

.sm-modal-image-col {
  background: var(--c-ink);
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 340px;
}

.sm-img-zoom {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.sm-img-zoom:hover,
.sm-img-zoom:focus {
  opacity: 0.92;
}

.sm-img-zoom img {
  display: block;
  width: 100%;
  height: auto;
}

/* When the click-to-zoom anchor wraps an image inside a split-visual
   flex column, the anchor needs to fill the column so the contained
   image sizes correctly. */
.sm-split-visual > .sm-img-zoom {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-split-visual > .sm-img-zoom > img.sm-img-contain {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: var(--c-parchment);
}

.sm-modal-img-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  text-decoration: none;
}

.sm-modal-img-link:hover .sm-modal-img,
.sm-modal-img-link:focus .sm-modal-img {
  opacity: 0.85;
}

.sm-modal-img-link:hover .sm-modal-img-hint,
.sm-modal-img-link:focus .sm-modal-img-hint {
  opacity: 1;
}

.sm-modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: opacity 0.18s ease;
}

.sm-modal-img-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-size: 0.78rem;
  font-family: 'Georgia', serif;
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.sm-modal-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Georgia', serif;
  font-size: 4rem;
  color: var(--c-gold-light);
  letter-spacing: 0.05em;
  background: linear-gradient(160deg, var(--c-ink) 0%, var(--c-ink-mid) 100%);
}

.sm-modal-content-col {
  padding: 2.2rem 2rem 2rem 2rem;
}

.sm-modal-sinhalese {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: var(--c-muted);
  margin: 0 0 0.3rem;
}

.sm-modal-name {
  font-family: 'Georgia', serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--c-ink);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.sm-modal-dates {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: var(--c-gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--c-rule);
}

.sm-modal-bio {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: var(--c-body);
  line-height: 1.8;
}

.sm-modal-bio p { margin: 0 0 0.8em; }

/* ── Locations ────────────────────────────────────────────── */
.sm-locations {
  padding: 5rem 2rem;
  background: var(--c-paper);
}

.sm-locations-inner {
  max-width: 800px;
  margin: 0 auto;
}

.sm-location-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
}

.sm-location-list li {
  padding: 0.85rem 1rem;
  background: var(--c-tint);
  border-left: 3px solid var(--c-gold);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  color: var(--c-ink-warm);
  line-height: 1.4;
}

/* ── Works cited / acknowledgements ──────────────────────── */
.sm-footer-section {
  background: var(--c-tint);
  padding: 5rem 2rem;
  border-top: 1px solid var(--c-rule);
}

.sm-footer-inner {
  max-width: 780px;
  margin: 0 auto;
}

.sm-footer-inner + .sm-footer-inner {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--c-rule);
}

.sm-footer-inner p,
.sm-footer-inner li {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.75;
  margin: 0 0 0.7em;
}

.sm-footer-inner ul,
.sm-footer-inner ol {
  padding-left: 1.4em;
  margin: 0;
}

/* ── Fade-in scroll animation ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 820px) {
  .sm-split {
    grid-template-columns: 1fr;
  }

  .sm-split-text {
    padding: 3rem 1.5rem;
  }

  .sm-split-rev .sm-split-visual {
    order: -1;
  }

  .sm-split-visual {
    min-height: 260px;
  }

  .sm-img-placeholder {
    min-height: 260px;
  }

  .sm-stats-grid {
    grid-template-columns: 1fr;
  }

  .sm-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 1.5rem;
  }

  .sm-stat-item:last-child {
    border-bottom: none;
  }

  .sm-nav-title {
    display: none;
  }

  .sm-profiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .sm-modal-inner {
    grid-template-columns: 1fr;
  }

  .sm-modal-nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.4rem;
  }

  .sm-modal-prev { left: 0.4rem; }
  .sm-modal-next { right: 0.4rem; }

  .sm-modal-image-col {
    border-radius: 10px 10px 0 0;
    min-height: 240px;
    max-height: 300px;
  }

  .sm-modal-content-col {
    padding: 1.5rem;
  }

  .sm-centered {
    padding: 3.5rem 1.5rem;
  }

  .sm-dark {
    padding: 3.5rem 1.5rem;
  }

  .sm-pullquote {
    padding: 4rem 1.5rem;
  }
}
