:root {
  --ink: #14221d;
  --muted: #64736b;
  --forest: #12382f;
  --forest-2: #1f594b;
  --mint: #54bd8a;
  --teal: #0d7785;
  --gold: #d7a748;
  --clay: #a85f3e;
  --sand: #f4ead7;
  --cream: #fffaf0;
  --white: #ffffff;
  --soft: rgba(255,255,255,.74);
  --line: rgba(18,56,47,.12);
  --shadow: 0 24px 70px rgba(18, 56, 47, 0.16);
  --shadow-strong: 0 32px 95px rgba(18, 56, 47, 0.26);
  --radius: 28px;
  --radius-sm: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf0 0%, #f7efdf 44%, #fffaf0 100%);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.site-header {
  position: relative;
  overflow: hidden;
  min-height: 770px;
  background:
    radial-gradient(circle at 10% 20%, rgba(84,189,138,.20), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(215,167,72,.22), transparent 32%),
    linear-gradient(135deg, #102d27 0%, #17493d 52%, #081613 100%);
  color: var(--cream);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto -10% -22% -10%;
  height: 330px;
  background: var(--cream);
  transform: rotate(-4deg);
  transform-origin: left;
  border-radius: 50% 50% 0 0;
}

.nav-wrap {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.28));
  flex: 0 0 auto;
}
.brand span { display: block; min-width: 0; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.01em; }
.brand small { display: block; opacity: .75; margin-top: -3px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  padding: 7px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.nav-links a {
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  color: rgba(255,250,240,.88);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a:focus { background: rgba(255,255,255,.12); color: white; outline: none; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 24px 180px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .62fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 14px;
}
.eyebrow.dark { color: var(--clay); }
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1 { max-width: 820px; font-size: clamp(46px, 7vw, 86px); letter-spacing: -4px; }
h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -2px; color: var(--forest); }
h3 { font-size: 24px; color: var(--forest); }
.lead { max-width: 760px; color: rgba(255,250,240,.8); font-size: 20px; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn, .small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn { padding: 15px 22px; }
.btn:hover, .small-btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--gold), #ffe7a3); color: var(--forest); box-shadow: 0 16px 36px rgba(215,167,72,.28); }
.btn.secondary { border: 1px solid rgba(255,255,255,.22); color: var(--cream); background: rgba(255,255,255,.08); }

.hero-card {
  position: relative;
  padding: 34px;
  min-height: 420px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06)),
    radial-gradient(circle at 70% 12%, rgba(84,189,138,.25), transparent 25%),
    radial-gradient(circle at 22% 62%, rgba(215,167,72,.18), transparent 30%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 90px rgba(0,0,0,.24);
  overflow: hidden;
}
.hero-logo {
  display: block;
  width: min(230px, 62vw);
  margin: 0 auto 18px;
  filter: drop-shadow(0 20px 26px rgba(0,0,0,.22));
}
.river-line {
  width: 140px;
  height: 60px;
  border: 15px solid rgba(84,189,138,.34);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(18deg);
  margin: 4px 0 44px;
}
.stat-label { color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.stat-main { font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: -2px; font-weight: 950; margin: 0; }
.stat-copy { color: rgba(255,250,240,.75); max-width: 300px; }

.section { max-width: 1180px; margin: 0 auto; padding: 90px 24px; }
.section-heading { margin-bottom: 34px; max-width: 790px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.section-heading.light h2 { color: var(--cream); }
.section-heading.light p:not(.eyebrow) { color: rgba(255,250,240,.76); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .48fr); gap: 38px; align-items: stretch; }
.intro-grid p { color: var(--muted); font-size: 17px; }
.quote-panel {
  position: relative;
  padding: 38px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quote-mark { position: absolute; top: 0; left: 24px; font-size: 116px; color: rgba(215,167,72,.22); line-height: 1; font-weight: 900; }
.quote-panel p { position: relative; margin: 70px 0 0; color: var(--forest); font-size: 25px; font-weight: 900; line-height: 1.22; }

.village-filter { display: grid; gap: 8px; max-width: 520px; margin-bottom: 22px; }
.village-filter label, .form-grid label { font-weight: 900; color: var(--forest); }
input, textarea {
  width: 100%;
  border: 1px solid rgba(18,56,47,.14);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  outline: none;
  box-shadow: 0 8px 24px rgba(18,56,47,.05);
}
input:focus, textarea:focus { border-color: rgba(84,189,138,.8); box-shadow: 0 0 0 4px rgba(84,189,138,.16); }
.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18,56,47,.08);
  color: var(--forest);
  font-weight: 800;
  border: 1px solid rgba(18,56,47,.07);
}
.empty-state { padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.78); color: var(--muted); }
.map-card {
  margin-top: 34px;
  padding: 30px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(18,56,47,.94), rgba(31,89,75,.92)),
    radial-gradient(circle at 20% 20%, rgba(215,167,72,.24), transparent 30%);
  color: var(--cream);
  box-shadow: var(--shadow);
}
.map-card h3 { color: var(--gold); }
.map-card p { max-width: 840px; color: rgba(255,250,240,.82); }

.geo-section { max-width: 1240px; }
.geo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.heritage-map {
  min-width: 0;
  padding: 12px;
  border-radius: calc(var(--radius) + 10px);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(18,56,47,.10);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.heritage-map svg { display: block; width: 100%; border-radius: var(--radius); }
.map-marker text, .map-legend text { font: 800 22px/1.1 Inter, system-ui, sans-serif; fill: var(--forest); paint-order: stroke; stroke: rgba(255,250,240,.9); stroke-width: 5; stroke-linejoin: round; }
.map-marker { opacity: .88; transition: transform .2s ease, opacity .2s ease; transform-box: fill-box; transform-origin: center; }
.map-marker.is-active { opacity: 1; transform: scale(1.12); }
.map-step {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  grid-template-areas: "num title" "num copy";
  gap: 3px 14px;
  align-items: start;
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid rgba(18,56,47,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(18,56,47,.07);
  cursor: pointer;
}
.map-step span { grid-area: num; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(18,56,47,.08); color: var(--forest); font-weight: 950; }
.map-step strong { grid-area: title; color: var(--forest); line-height: 1.1; }
.map-step small { grid-area: copy; color: var(--muted); line-height: 1.35; }
.map-step.active { background: linear-gradient(135deg, var(--forest), var(--forest-2)); color: var(--cream); }
.map-step.active span { background: var(--gold); color: var(--forest); }
.map-step.active strong { color: var(--cream); }
.map-step.active small { color: rgba(255,250,240,.78); }

.timeline-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1180px) / 2 + 24px));
  background:
    radial-gradient(circle at 0% 20%, rgba(215,167,72,.16), transparent 28%),
    radial-gradient(circle at 96% 10%, rgba(84,189,138,.14), transparent 28%),
    linear-gradient(135deg, var(--forest), #101916);
  color: var(--cream);
  overflow: hidden;
}
.timeline {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(265px, 310px);
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 18px 6px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(215,167,72,.65) rgba(255,255,255,.08);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 42px;
  height: 3px;
  background: linear-gradient(90deg, rgba(215,167,72,.8), rgba(84,189,138,.6), rgba(255,255,255,.05));
  pointer-events: none;
}
.timeline-card {
  position: relative;
  scroll-snap-align: start;
  min-height: 230px;
  padding: 30px 24px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 60px rgba(0,0,0,.17);
  backdrop-filter: blur(12px);
}
.timeline-card::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(215,167,72,.14);
}
.timeline-card .num { display: inline-flex; margin-left: 32px; color: var(--gold); font-size: 13px; font-weight: 950; letter-spacing: .12em; }
.timeline-card h3 { color: var(--cream); font-size: 21px; margin: 14px 0 10px; }
.timeline-card p { color: rgba(255,250,240,.74); margin: 0; font-size: 15px; }

.tree-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(18,56,47,.08);
}
.tree-tools input { max-width: 560px; }
.small-btn { padding: 12px 18px; background: var(--forest); color: white; font-weight: 900; }
.small-btn.ghost { background: #fff; color: var(--forest); border: 1px solid rgba(18,56,47,.12); }
.tree-wrap { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: auto; padding: 28px; }
.tree { min-width: 760px; }
.tree ul { list-style: none; margin: 0; padding-left: 30px; position: relative; }
.tree > ul { padding-left: 0; }
.tree li { position: relative; margin: 12px 0; }
.tree li::before { content: ""; position: absolute; left: -18px; top: 24px; width: 18px; height: 1px; background: rgba(18,56,47,.16); }
.tree > ul > li::before { display: none; }
.node {
  min-width: 260px;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(18,56,47,.11);
  box-shadow: 0 12px 26px rgba(18,56,47,.06);
  cursor: pointer;
}
.node:focus { outline: 3px solid rgba(84,189,138,.26); }
.toggle { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(84,189,138,.14); color: var(--forest); font-weight: 900; }
.node-name { display: block; font-weight: 900; color: var(--forest); }
.node-note { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 4px; }
.tree li.collapsed > ul { display: none; }
.tree li.match > .node { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(215,167,72,.22), 0 12px 26px rgba(18,56,47,.06); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.branch-card { padding: 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(18,56,47,.08); }
.branch-card span { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(215,167,72,.18); color: var(--forest); font-weight: 950; }
.branch-card h3 { margin: 18px 0 10px; }
.branch-card p { color: var(--muted); margin: 0; }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .52fr); gap: 28px; align-items: start; }
.story-copy, .story-panel, .upload-card, .admin-card, .contact-card, .contact-options article {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(18,56,47,.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.story-copy { padding: 34px; }
.story-copy p { color: var(--muted); }
.story-panel { padding: 30px; background: linear-gradient(135deg, var(--forest), var(--forest-2)); color: var(--cream); }
.story-panel h3 { color: var(--gold); }
.story-panel ul { padding-left: 20px; margin: 16px 0 0; color: rgba(255,250,240,.82); }

.archive { max-width: 1240px; }
.archive-intro { max-width: 860px; }
.archive-intro p { color: var(--muted); }
.approval-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 10px; }
.approval-flow article { padding: 18px; border-radius: 22px; background: rgba(255,255,255,.72); border: 1px solid rgba(18,56,47,.09); }
.approval-flow span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--cream); font-weight: 900; margin-bottom: 10px; }
.approval-flow strong { display: block; color: var(--forest); }
.approval-flow small { color: var(--muted); }
.archive-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 30px; }
.upload-card, .contact-card { padding: 28px; }
.form-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.form-heading h3 { margin: 0; }
.form-heading p { color: var(--muted); margin: 6px 0 0; }
.form-icon { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: rgba(84,189,138,.14); color: var(--forest); font-weight: 950; font-size: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label { display: grid; gap: 8px; }
.form-grid .wide { grid-column: 1 / -1; }
.file-field small, .form-message { color: var(--muted); font-weight: 600; }
.hidden-field { position: absolute; left: -9999px; opacity: 0; }
.upload-button { margin-top: 20px; }
.admin-card { align-self: start; padding: 28px; background: linear-gradient(135deg, var(--forest), var(--forest-2)); color: var(--cream); }
.admin-card h3 { color: var(--cream); }
.admin-card p { color: rgba(255,250,240,.78); }
.admin-card .btn.secondary { margin-top: 16px; }
.admin-lock { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--forest); font-weight: 950; font-size: 24px; }
.gallery-block { margin-top: 58px; }
.gallery-heading { margin-bottom: 18px; }
.gallery-status { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.68); color: var(--muted); margin-bottom: 18px; }
.live-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(18,56,47,.08); }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; display: block; background: var(--sand); }
.gallery-item div { padding: 18px; }
.gallery-item h3 { font-size: 20px; margin-bottom: 8px; }
.gallery-item p { color: var(--muted); margin: 0; }
.gallery-item small { display: block; margin-top: 10px; color: var(--clay); font-weight: 800; }

.contact-section { max-width: 1240px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.contact-copy p { color: var(--muted); }
.contact-options { display: grid; gap: 12px; margin-top: 24px; }
.contact-options article { padding: 18px; box-shadow: 0 12px 28px rgba(18,56,47,.07); }
.contact-options strong { color: var(--forest); display: block; }
.contact-options span { color: var(--muted); }

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid rgba(18,56,47,.12);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 68px; height: 68px; object-fit: contain; }
.footer strong { color: var(--forest); }
.footer p { max-width: 620px; margin: 8px 0 0; }
.footer a { color: var(--forest); font-weight: 900; text-decoration: none; }

@media (max-width: 1120px) {
  .nav-links { max-width: 650px; }
  .geo-layout { grid-template-columns: 1fr; }
  .map-story-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .map-step { margin-bottom: 0; }
}

@media (max-width: 980px) {
  .hero, .intro-grid, .story, .archive-workspace, .contact-section { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .hero-card { min-height: 340px; }
  .card-grid, .live-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links {
    position: absolute;
    top: 86px;
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    border-radius: 24px;
    background: rgba(16,45,39,.98);
    box-shadow: 0 22px 60px rgba(0,0,0,.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; }
  .menu-toggle {
    display: inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.18);
    color: white;
    background: rgba(255,255,255,.08);
    font-size: 24px;
  }
  .timeline-section { padding-left: 24px; padding-right: 24px; }
  .timeline {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 18px;
    padding: 18px 0 6px;
  }
  .timeline::before { display: none; }
  .timeline-card { min-height: auto; }
}

@media (max-width: 640px) {
  .site-header { min-height: auto; }
  .nav-wrap { padding: 16px; }
  .brand-logo { width: 56px; height: 56px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 12px; }
  .hero { padding: 44px 18px 132px; gap: 28px; }
  h1 { letter-spacing: -2px; }
  h2 { letter-spacing: -1px; }
  .lead { font-size: 17px; }
  .btn { width: 100%; }
  .section { padding: 64px 18px; }
  .quote-panel, .story-copy, .story-panel, .upload-card, .admin-card, .contact-card { padding: 22px; }
  .map-story-list, .approval-flow, .card-grid, .live-gallery, .form-grid { grid-template-columns: 1fr; }
  .heritage-map { overflow-x: auto; }
  .heritage-map svg { min-width: 780px; }

  /* Mobile-first Chiefs and Royal Timeline */
  .timeline-section {
    padding: 64px 18px;
    overflow: visible;
  }
  .timeline-section .section-heading { margin-bottom: 22px; }
  .timeline {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    padding: 8px 0 0 28px;
    gap: 14px;
    overflow: visible;
  }
  .timeline::before {
    display: block;
    left: 8px;
    right: auto;
    top: 10px;
    bottom: 12px;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--gold), rgba(84,189,138,.74), rgba(255,255,255,.12));
  }
  .timeline-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 18px 18px 18px 20px;
    border-radius: 20px;
    scroll-snap-align: none;
    background: rgba(255,255,255,.10);
    box-shadow: 0 18px 44px rgba(0,0,0,.16);
  }
  .timeline-card::before {
    top: 22px;
    left: -28px;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 7px rgba(215,167,72,.16), 0 0 0 1px rgba(255,255,255,.5) inset;
  }
  .timeline-card .num {
    margin-left: 0;
    font-size: 12px;
    letter-spacing: .1em;
  }
  .timeline-card h3 {
    font-size: 18px;
    margin: 8px 0;
    letter-spacing: -.02em;
  }
  .timeline-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  .tree-wrap { padding: 16px; }
  .tree { min-width: 640px; }
  .node { min-width: 230px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-actions { gap: 10px; }
  .section { padding-left: 14px; padding-right: 14px; }
  .timeline-section { padding-left: 14px; padding-right: 14px; }
  .timeline { padding-left: 26px; }
  .timeline-card { padding: 16px; }
  .timeline-card::before { left: -26px; }
}

@media print {
  .nav-wrap, .hero-actions, .tree-tools, .footer a, .archive-workspace, .contact-card { display: none !important; }
  body { background: white; }
  .site-header { color: #111; min-height: auto; background: white; }
  .site-header::after { display: none; }
  .hero { display: block; padding: 30px; }
  .lead, .stat-copy, .section-heading.light p:not(.eyebrow) { color: #222; }
  .timeline-section { background: white; color: #111; }
  .timeline { display: block; padding-left: 0; }
  .timeline::before, .timeline-card::before { display: none; }
  .timeline-card, .story-copy, .story-panel, .branch-card, .tree-wrap { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .timeline-card h3, .timeline-card p, .timeline-card .num { color: #111; }
}
