:root {
  --forest: #1f4d3a;
  --forest-deep: #12372c;
  --forest-soft: #386d55;
  --wine: #6b1e1e;
  --wine-dark: #4c1719;
  --paper: #f5f0e6;
  --paper-light: #fbf8f1;
  --paper-shade: #e9dfce;
  --gold: #c9a227;
  --ink: #272b26;
  --muted: #72736a;
  --line: rgba(54, 54, 42, .15);
  --shadow: 0 22px 65px rgba(37, 35, 24, .13);
  --serif: "Iowan Old Style", "Baskerville Old Face", Baskerville, Georgia, serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --page: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper-light); font-family: var(--sans); font-size: 15px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--gold); color: var(--forest-deep); }
:focus-visible { outline: 3px solid var(--gold); 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; z-index: 1000; left: 14px; top: 12px; padding: 10px 15px; color: white; background: var(--forest); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 76px; padding: 0 clamp(18px, 4vw, 58px); position: sticky; z-index: 50; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid rgba(31,77,58,.1); background: rgba(251,248,241,.95); backdrop-filter: blur(14px); }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 11px; text-decoration: none; }
.brand img { display: block; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { color: var(--forest-deep); font: 600 19px var(--serif); letter-spacing: .01em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; margin-top: 5px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(13px, 2.3vw, 31px); }
.site-nav a { color: #4d534b; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .035em; transition: color .2s; }
.site-nav a:hover { color: var(--wine); }
.search-form { width: 185px; height: 38px; position: relative; display: flex; align-items: center; padding: 0 11px; border: 1px solid rgba(31,77,58,.2); border-radius: 30px; background: var(--paper-light); }
.search-icon { margin-right: 7px; color: var(--forest); font-size: 22px; line-height: 1; transform: rotate(-20deg); }
.search-form input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-form input::placeholder { color: #7e8078; }
.search-form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.12); }
.search-results { position: absolute; top: calc(100% + 9px); right: 0; width: min(340px, 88vw); max-height: min(60vh, 390px); overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-light); box-shadow: var(--shadow); }
.search-results[hidden] { display: none; }
.search-result { display: block; width: 100%; padding: 12px 15px; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); background: transparent; cursor: pointer; }
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus-visible { background: var(--paper); }
.search-result strong { display: block; font: 17px var(--serif); }
.search-result small { color: var(--muted); font-size: 11px; }
.search-empty { padding: 15px; color: var(--muted); font-size: 12px; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.menu-toggle span { width: 16px; height: 1px; display: block; margin: 5px auto; background: var(--forest); }

.loading-state { min-height: 60vh; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.seal-loader { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid var(--gold); border-radius: 50%; color: var(--wine); font: 27px var(--serif); animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .72; } }

.hero { min-height: min(710px, calc(100svh - 76px)); position: relative; display: flex; align-items: center; overflow: hidden; color: var(--paper-light); background: var(--forest-deep); isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(15,42,34,.98) 0%, rgba(15,42,34,.92) 28%, rgba(15,42,34,.36) 61%, rgba(15,42,34,.06) 100%), url("assets/hero-archive.svg") center 56% / cover no-repeat; transform: scale(1.015); animation: hero-reveal 1.2s ease-out both; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 20px; border: 1px solid rgba(245,240,230,.19); pointer-events: none; }
@keyframes hero-reveal { from { transform: scale(1.07); opacity: .75; } to { transform: scale(1.015); opacity: 1; } }
.hero-content { width: min(var(--page), calc(100% - 64px)); margin: 0 auto; padding: 88px 0 94px; position: relative; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 31px; height: 1px; background: currentColor; }
.hero h1 { max-width: 630px; margin: 23px 0 14px; color: var(--paper-light); font: 500 clamp(59px, 9.5vw, 124px)/.91 var(--serif); letter-spacing: -.045em; }
.hero h1 span { display: block; padding-left: clamp(10px, 5vw, 72px); color: #e3d0a4; font-size: .78em; font-style: italic; letter-spacing: -.055em; }
.hero-lede { max-width: 440px; margin: 32px 0 29px; color: rgba(249,245,237,.84); font: 18px/1.62 var(--serif); }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid transparent; border-radius: 2px; text-decoration: none; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s, background .2s, color .2s, border-color .2s; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: var(--forest-deep); background: var(--gold); }
.button-gold:hover { background: #d9b744; }
.button-outline { color: var(--forest); border-color: rgba(31,77,58,.32); background: transparent; }
.button-outline:hover { color: white; border-color: var(--forest); background: var(--forest); }
.button-light { color: var(--paper-light); border-color: rgba(245,240,230,.5); }
.button-light:hover { background: rgba(245,240,230,.13); }
.hero-note { position: absolute; right: max(5vw, calc((100vw - var(--page))/2)); bottom: 61px; width: 175px; padding-top: 12px; border-top: 1px solid rgba(232,214,168,.5); color: rgba(249,245,237,.72); font-size: 10px; letter-spacing: .06em; line-height: 1.5; text-align: right; }
.hero-note strong { display: block; color: #e6d6aa; font-size: 10px; font-weight: 600; }
.hero-index { position: absolute; right: max(5vw, calc((100vw - var(--page))/2)); top: 50%; color: rgba(245,240,230,.28); font: 12px var(--serif); letter-spacing: .12em; writing-mode: vertical-rl; }
.scroll-cue { position: absolute; left: max(5vw, calc((100vw - var(--page))/2)); bottom: 30px; display: flex; align-items: center; gap: 10px; color: rgba(245,240,230,.69); font-size: 9px; letter-spacing: .17em; text-transform: uppercase; }
.scroll-cue::before { content: ""; width: 35px; height: 1px; background: var(--gold); }

.section { padding: clamp(74px, 10vw, 136px) clamp(22px, 5vw, 70px); }
.section-inner { max-width: var(--page); margin: 0 auto; }
.section-paper { background: var(--paper); }
.section-dark { color: var(--paper-light); background: var(--forest-deep); }
.section-wine { color: var(--paper-light); background: var(--wine-dark); }
.section-head { max-width: 710px; margin-bottom: 50px; }
.section-head.center { margin-right: auto; margin-left: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2, .profile-header h1 { margin: 13px 0 16px; color: var(--forest-deep); font: 500 clamp(38px, 6vw, 65px)/1.02 var(--serif); letter-spacing: -.035em; }
.section-dark .section-head h2, .section-wine .section-head h2 { color: var(--paper-light); }
.section-head p { max-width: 610px; margin: 0; color: var(--muted); font-size: 14px; }
.section-dark .section-head p, .section-wine .section-head p { color: rgba(245,240,230,.68); }
.section-head.center p { margin: 0 auto; }
.rule-mark { width: 54px; height: 1px; margin: 20px 0; background: var(--gold); }
.section-head.center .rule-mark { margin-right: auto; margin-left: auto; }
.section-kicker { margin: 0 0 9px; color: var(--wine); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.section-dark .section-kicker, .section-wine .section-kicker { color: var(--gold); }

.origin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .91fr); align-items: center; gap: clamp(44px, 8vw, 110px); }
.origin-copy h2 { margin: 14px 0 22px; color: var(--forest-deep); font: 500 clamp(40px, 6vw, 65px)/.98 var(--serif); letter-spacing: -.04em; }
.origin-copy p { max-width: 580px; color: #54584f; font-size: 14px; }
.origin-copy .intro { color: #343d35; font: 20px/1.5 var(--serif); }
.origin-copy strong { color: var(--forest); }
.variant-section { background: linear-gradient(135deg, #eee7d7, #f8f5ed); }
.variant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.variant-card { min-height: 170px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 21px; border: 1px solid rgba(31,77,58,.16); background: rgba(255,255,255,.46); box-shadow: 0 10px 26px rgba(50,43,27,.045); }
.variant-card > span { margin-bottom: 4px; color: var(--muted); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.variant-card strong { color: var(--forest-deep); font: 20px/1.15 var(--serif); }
.variant-card i { color: var(--gold); font: normal 17px var(--serif); }
.variant-card small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.variant-unknown { background: rgba(107,30,30,.055); border-color: rgba(107,30,30,.2); }
.variant-unknown strong:last-of-type { color: var(--wine); font-size: 29px; }
.fact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 22px; margin: 28px 0 27px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.fact-list div { display: grid; gap: 4px; }
.fact-list dt { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.fact-list dd { margin: 0; color: var(--forest-deep); font: 16px var(--serif); }
.origin-image { position: relative; padding: 13px; background: var(--paper-light); box-shadow: var(--shadow); transform: rotate(1.1deg); }
.origin-image::before { content: ""; position: absolute; z-index: 1; top: -10px; left: 50%; width: 68px; height: 18px; background: rgba(201,162,39,.47); transform: translateX(-50%) rotate(-3deg); }
.origin-image img { width: 100%; min-height: 380px; display: block; object-fit: cover; background: var(--paper-shade); }
.image-caption { padding: 13px 9px 3px; display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 10px; }
.image-caption span:first-child { color: var(--forest); font-weight: 600; }
.source-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.source-note::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.timeline-layout { display: grid; grid-template-columns: minmax(230px, .74fr) minmax(0, 1.55fr); gap: clamp(36px, 7vw, 95px); align-items: start; }
.timeline-rail { position: relative; padding: 3px 0 3px 27px; }
.timeline-rail::before { content: ""; position: absolute; top: 18px; bottom: 19px; left: 5px; width: 1px; background: rgba(201,162,39,.46); }
.timeline-stop { width: 100%; position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 13px 6px 16px 0; border: 0; color: rgba(245,240,230,.57); background: transparent; text-align: left; cursor: pointer; transition: color .2s; }
.timeline-stop::before { content: ""; width: 9px; height: 9px; position: absolute; top: 18px; left: -26px; border: 1px solid var(--gold); border-radius: 50%; background: var(--forest-deep); }
.timeline-stop.active, .timeline-stop:hover { color: var(--paper-light); }
.timeline-stop.active::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.16); }
.timeline-year { color: var(--gold); font: 20px var(--serif); }
.timeline-name { padding-top: 4px; font-size: 11px; line-height: 1.45; }
.timeline-detail { min-height: 310px; padding: clamp(27px, 5vw, 48px); border: 1px solid rgba(245,240,230,.14); background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); }
.timeline-detail .event-date { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.timeline-detail h3 { margin: 10px 0 13px; color: var(--paper-light); font: 36px/1.1 var(--serif); }
.timeline-detail p { max-width: 610px; color: rgba(245,240,230,.74); font-size: 13px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.event-meta span { padding: 7px 10px; border: 1px solid rgba(245,240,230,.15); color: rgba(245,240,230,.8); font-size: 10px; }
.passenger-list { margin: 18px 0 2px; padding-top: 16px; border-top: 1px solid rgba(245,240,230,.16); }
.passenger-list strong { display: block; margin-bottom: 10px; color: var(--gold); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.passenger-list span { display: inline-block; margin: 0 9px 7px 0; color: rgba(245,240,230,.76); font: 15px var(--serif); }
.memory-note { max-width: 730px; margin: 42px auto 0; padding: 21px 25px; border-left: 2px solid var(--gold); color: rgba(245,240,230,.83); background: rgba(0,0,0,.12); font: 17px/1.5 var(--serif); }
.memory-note strong { color: #e6d49e; font-weight: 500; }

.map-section { background: var(--paper); }
.map-card { position: relative; overflow: hidden; min-height: 440px; border: 1px solid rgba(31,77,58,.18); background: #e8e2d2; box-shadow: var(--shadow); }
.route-map { width: 100%; min-height: 440px; display: block; background: #e8e2d2; }
.map-water { fill: #d8ded5; }
.map-grid { stroke: rgba(31,77,58,.12); stroke-width: 1; }
.map-land { fill: #e9d9be; stroke: #9a947e; stroke-width: 1.5; }
.map-land-detail { fill: none; stroke: #b7aa8d; stroke-width: 1; opacity: .65; }
.map-route { fill: none; stroke: var(--wine); stroke-width: 3; stroke-dasharray: 9 8; stroke-linecap: round; }
.map-route-secondary { fill: none; stroke: var(--forest); stroke-width: 2; stroke-dasharray: 4 7; }
.map-pin { fill: var(--paper-light); stroke: var(--wine); stroke-width: 3; }
.map-pin-secondary { fill: var(--paper-light); stroke: var(--forest); stroke-width: 3; }
.map-label { fill: var(--forest-deep); font: 600 14px var(--sans); letter-spacing: .01em; }
.map-label-small { fill: #555c52; font: 12px var(--sans); }
.map-ocean-label { fill: rgba(31,77,58,.46); font: italic 19px var(--serif); letter-spacing: .16em; }
.map-ship { fill: var(--wine); stroke: var(--paper-light); stroke-width: 2; }
.map-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--paper-light); }
.map-legend { display: flex; gap: 20px; flex-wrap: wrap; }
.map-legend span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.legend-dot { width: 7px; height: 7px; border: 2px solid var(--wine); border-radius: 50%; }
.legend-dot.brazil { border-color: var(--forest); }
.map-caption { max-width: 460px; margin: 19px 0 0; color: var(--muted); font-size: 11px; }
.regional-places { margin-top: 44px; padding-top: 27px; border-top: 1px solid var(--line); }
.regional-heading { margin-bottom: 17px; }
.regional-heading h3 { margin: 7px 0 0; color: var(--forest-deep); font: 27px var(--serif); }
.regional-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.regional-card { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 15px; border: 1px solid rgba(31,77,58,.16); color: var(--ink); background: rgba(255,253,248,.72); text-decoration: none; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.regional-card:hover { transform: translateY(-2px); border-color: rgba(31,77,58,.42); box-shadow: 0 9px 22px rgba(31,42,31,.08); }
.regional-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(201,162,39,.55); border-radius: 50%; color: var(--wine); font-size: 17px; }
.regional-card > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.regional-card strong { color: var(--forest-deep); font: 17px/1.2 var(--serif); }
.regional-card small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.regional-card > b { color: var(--wine); font-weight: 400; }
.regional-source-note { margin: 14px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.regional-source-note a { color: var(--forest); }
.travel-mode .map-route { animation: route-flow 1.3s linear infinite; }
.travel-mode .moving-ship { animation: across-atlantic 5.5s cubic-bezier(.25,.5,.55,.9) both; }
@keyframes route-flow { to { stroke-dashoffset: -34; } }
@keyframes across-atlantic { 0% { offset-distance: 0%; opacity: 1; } 100% { offset-distance: 100%; opacity: .98; } }

.tree-wrap { overflow-x: auto; padding: 7px 0 25px; scrollbar-color: rgba(201,162,39,.5) rgba(255,255,255,.1); }
.tree { min-width: 890px; display: grid; justify-items: center; }
.tree-root { width: min(100%, 575px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 13px; }
.tree-card { position: relative; display: block; min-width: 0; padding: 18px 17px; border: 1px solid rgba(245,240,230,.19); color: var(--paper-light); background: rgba(255,255,255,.04); text-align: left; text-decoration: none; transition: border .2s, transform .2s, background .2s; }
.tree-card:hover { transform: translateY(-3px); border-color: var(--gold); background: rgba(255,255,255,.08); }
.tree-card .tree-label { display: block; margin-bottom: 6px; color: rgba(245,240,230,.5); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.tree-card strong { display: block; color: #f8f4ea; font: 21px/1.15 var(--serif); }
.tree-card small { display: block; margin-top: 7px; color: rgba(245,240,230,.66); font-size: 10px; }
.tree-plus { display: grid; place-items: center; color: var(--gold); font: 28px var(--serif); }
.tree-line { width: 1px; height: 36px; background: rgba(201,162,39,.54); }
.tree-children { width: 100%; display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); align-items: start; gap: 13px; position: relative; }
.tree-children::before { content: ""; position: absolute; top: -1px; left: 8.3%; right: 8.3%; height: 1px; background: rgba(201,162,39,.54); }
.tree-child { padding-top: 20px; position: relative; }
.tree-child::before { content: ""; width: 1px; height: 20px; position: absolute; top: 0; left: 50%; background: rgba(201,162,39,.54); }
.tree-child .tree-card { min-height: 130px; padding: 16px 13px; }
.tree-child .tree-card strong { font-size: 17px; }
.tree-child .tree-card small { line-height: 1.45; }
.tree-branch-toggle { width: 100%; margin-top: 11px; padding: 8px 6px; border: 1px solid rgba(201,162,39,.34); color: var(--gold); background: transparent; font-size: 9px; letter-spacing: .06em; cursor: pointer; }
.tree-branch-toggle:hover { background: rgba(201,162,39,.1); }
.tree-branch { display: none; grid-column: 1 / -1; margin-top: 10px; padding: 12px; border: 1px solid rgba(245,240,230,.14); background: rgba(0,0,0,.13); }
.tree-branch.open { display: block; animation: fade-in .25s ease; }
.tree-branch p { margin: 0 0 10px; color: rgba(245,240,230,.65); font-size: 10px; }
.branch-names { display: flex; flex-wrap: wrap; gap: 6px; }
.branch-names span { padding: 4px 6px; border: 1px solid rgba(245,240,230,.13); color: rgba(245,240,230,.8); font-size: 9px; }
.tree-footnote { max-width: 890px; margin: 20px auto 0; color: rgba(245,240,230,.55); font-size: 10px; text-align: center; }
.archive-records { max-width: 970px; margin: 52px auto 0; padding-top: 30px; border-top: 1px solid rgba(245,240,230,.15); }
.archive-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.archive-heading h3 { margin: 4px 0 0; color: var(--paper-light); font: 28px var(--serif); }
.archive-heading > span { color: rgba(245,240,230,.55); font-size: 9px; }
.archive-intro { max-width: 700px; margin: 12px 0 19px; color: rgba(245,240,230,.58); font-size: 10px; }
.archive-group { margin: 8px 0; border: 1px solid rgba(245,240,230,.16); background: rgba(255,255,255,.025); }
.archive-group summary { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 15px; color: var(--paper-light); font: 18px var(--serif); cursor: pointer; list-style-position: inside; }
.archive-group summary span { color: rgba(245,240,230,.5); font: 9px var(--sans); }
.archive-group[open] summary { border-bottom: 1px solid rgba(245,240,230,.13); }
.archive-group ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; margin: 0; padding: 8px 18px 14px 33px; }
.archive-group li { padding: 7px 0; color: rgba(245,240,230,.83); font: 14px var(--serif); }
.archive-group li small { display: block; margin-top: 1px; color: rgba(245,240,230,.47); font: 9px var(--sans); }
.archive-download { display: flex; align-items: center; justify-content: space-between; margin: 0 17px 16px; padding-top: 11px; border-top: 1px solid rgba(245,240,230,.15); color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.archive-download:hover { color: #f2dc9a; }
.ancestry-strip { margin: 21px 0; padding: 18px; border: 1px solid rgba(245,240,230,.14); background: rgba(0,0,0,.1); }
.ancestry-strip > strong { display: block; margin-bottom: 12px; color: var(--gold); font: 16px var(--serif); }
.ancestry-strip > div { display: flex; flex-wrap: wrap; gap: 7px; }
.ancestry-strip > div > span { padding: 6px 9px; border: 1px solid rgba(245,240,230,.13); color: rgba(245,240,230,.8); font-size: 9px; }
.ancestry-strip small { display: block; color: rgba(245,240,230,.44); font-size: 8px; }
.archive-pdf-link { margin-top: 3px; color: #e6d49e; border-color: rgba(201,162,39,.46); }

.descendant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.descendant-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid rgba(31,77,58,.13); background: var(--paper-light); box-shadow: 0 9px 25px rgba(37,35,24,.05); transition: transform .25s, box-shadow .25s; }
.descendant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.descendant-visual { min-height: 178px; position: relative; overflow: hidden; display: grid; place-items: center; background: var(--forest); }
.descendant-visual::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(245,240,230,.3); }
.descendant-visual::after { content: ""; width: 185px; height: 185px; position: absolute; right: -25px; bottom: -105px; border: 1px solid rgba(245,240,230,.22); border-radius: 50%; box-shadow: 0 0 0 20px rgba(245,240,230,.045), 0 0 0 43px rgba(245,240,230,.035); }
.descendant-visual.has-photo { background: #403b32; }
.descendant-photo-link { position: absolute; inset: 0; display: block; color: var(--paper-light); }
.descendant-photo-link img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; filter: sepia(.12) saturate(.8); transition: transform .45s; }
.descendant-card:hover .descendant-photo-link img { transform: scale(1.04); }
.descendant-photo-link::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(20,29,24,.64)); }
.descendant-photo-link span { position: absolute; z-index: 1; left: 21px; bottom: 16px; color: white; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.descendant-visual.has-photo em { top: 17px; right: 20px; bottom: auto; left: auto; color: rgba(255,255,255,.9); text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.visual-icon { width: 83px; height: 83px; display: grid; place-items: center; border: 1px solid rgba(232,214,168,.56); border-radius: 50%; color: #e7d6a7; font: 36px var(--serif); }
.descendant-visual em { position: absolute; right: 21px; bottom: 19px; z-index: 1; color: rgba(245,240,230,.58); font: italic 11px var(--serif); }
.descendant-card:nth-child(3n+2) .descendant-visual { background: #5e342c; }
.descendant-card:nth-child(3n+3) .descendant-visual { background: #59604f; }
.descendant-card:nth-child(6) .descendant-visual { background: #847044; }
.descendant-info { flex: 1; padding: 20px 21px 18px; display: flex; flex-direction: column; }
.descendant-info h3 { margin: 0 0 10px; color: var(--forest-deep); font: 23px/1.12 var(--serif); }
.life-dates { display: flex; gap: 14px; margin-bottom: 13px; color: var(--muted); font-size: 9px; letter-spacing: .03em; }
.life-dates span b { margin-right: 3px; color: var(--wine); font-size: 8px; text-transform: uppercase; }
.descendant-info p { flex: 1; margin: 0 0 18px; color: #62655e; font-size: 11px; line-height: 1.6; }
.text-link { width: fit-content; display: inline-flex; align-items: center; gap: 10px; padding: 0 0 3px; border: 0; border-bottom: 1px solid rgba(107,30,30,.34); color: var(--wine); background: none; font-size: 9px; font-weight: 700; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.text-link span { font-size: 15px; line-height: .6; transition: transform .2s; }
.text-link:hover span { transform: translateX(3px); }

.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -11px 0 28px; }
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-button { padding: 8px 11px; border: 1px solid rgba(31,77,58,.23); border-radius: 30px; color: var(--forest); background: transparent; font-size: 9px; cursor: pointer; transition: color .2s, background .2s; }
.filter-button:hover, .filter-button.active { color: var(--paper-light); border-color: var(--forest); background: var(--forest); }
.gallery-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { min-height: 234px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; border: 0; text-align: left; cursor: zoom-in; isolation: isolate; transition: transform .25s; }
.gallery-item:hover { transform: translateY(-3px); }
.gallery-item[hidden] { display: none; }
.gallery-art { position: absolute; z-index: -2; inset: 0; display: grid; place-items: center; color: rgba(248,244,234,.72); background: linear-gradient(140deg,#627364,#273e31); }
.gallery-art svg { width: 90px; height: 90px; stroke: currentColor; stroke-width: 1; fill: none; opacity: .65; }
.gallery-item:nth-child(4n+2) .gallery-art { background: linear-gradient(145deg,#a18b62,#51432d); }
.gallery-item:nth-child(4n+3) .gallery-art { background: linear-gradient(145deg,#815248,#3c2924); }
.gallery-item:nth-child(4n+4) .gallery-art { background: linear-gradient(145deg,#5f7380,#30404a); }
.gallery-art::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(245,240,230,.32); }
.gallery-item::before { content: ""; position: absolute; z-index: -1; inset: 38% 0 0; background: linear-gradient(transparent, rgba(17,26,23,.82)); }
.gallery-title { color: white; font: 20px/1.15 var(--serif); }
.gallery-meta { margin-top: 6px; color: rgba(255,255,255,.72); font-size: 9px; letter-spacing: .06em; }
.gallery-zoom { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: white; font-size: 17px; opacity: .85; }
.gallery-note { margin-top: 22px; color: var(--muted); font-size: 10px; }

.memory-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 92px); align-items: start; }
.memory-copy h2 { margin: 13px 0 17px; color: var(--paper-light); font: 500 clamp(40px, 6vw, 63px)/.98 var(--serif); letter-spacing: -.035em; }
.memory-copy p { color: rgba(245,240,230,.72); font-size: 13px; }
.contribute-types { margin: 29px 0 0; padding: 0; list-style: none; }
.contribute-types li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(245,240,230,.15); color: rgba(245,240,230,.82); font-size: 11px; }
.contribute-types li::before { content: "+"; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid rgba(201,162,39,.63); border-radius: 50%; color: var(--gold); line-height: 1; }
.contribution-form { padding: clamp(22px, 4vw, 38px); color: var(--ink); background: var(--paper-light); box-shadow: 0 18px 56px rgba(0,0,0,.2); }
.form-heading { margin: 0 0 20px; color: var(--forest-deep); font: 26px var(--serif); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 6px; margin-bottom: 13px; }
.field label { color: #60665d; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 11px; border: 1px solid rgba(31,77,58,.22); border-radius: 0; color: var(--ink); background: #fffdf8; font-size: 11px; }
.field textarea { min-height: 94px; resize: vertical; }
.field input[type=file] { padding: 7px; }
.form-footnote { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.form-feedback { min-height: 20px; margin: 11px 0 0; color: var(--forest); font-size: 10px; }
.contribution-form .button { width: 100%; }
.contribution-form .button:disabled { opacity: .65; cursor: wait; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.privacy-note { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }

.site-footer { padding: 39px clamp(22px, 5vw, 70px) 22px; color: rgba(245,240,230,.73); background: #122f26; }
.footer-top, .footer-bottom { max-width: var(--page); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: center; gap: 28px; padding-bottom: 26px; border-bottom: 1px solid rgba(245,240,230,.14); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--paper-light); }
.footer-brand div { display: grid; line-height: 1.35; }
.footer-brand strong { font: 18px var(--serif); }
.footer-brand span { margin-top: 2px; color: rgba(245,240,230,.54); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.footer-top p { max-width: 370px; margin: 0; font: 16px/1.45 var(--serif); }
.footer-links { max-width: var(--page); display: flex; flex-wrap: wrap; gap: 8px 21px; margin: 20px auto 0; }
.footer-links a { color: rgba(245,240,230,.66); font-size: 9px; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.back-top { color: var(--gold); font-size: 12px; text-decoration: none; }
.back-top span { margin-left: 5px; font-size: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 13px; padding-top: 19px; color: rgba(245,240,230,.42); font-size: 9px; letter-spacing: .04em; }

.lightbox { width: min(740px, calc(100% - 32px)); max-width: none; padding: 29px; border: 1px solid var(--gold); color: var(--paper-light); background: var(--forest-deep); box-shadow: 0 25px 90px rgba(0,0,0,.35); }
.lightbox::backdrop { background: rgba(10,25,20,.78); backdrop-filter: blur(4px); }
.lightbox-close { width: 36px; height: 36px; position: absolute; top: 12px; right: 12px; border: 1px solid rgba(245,240,230,.4); border-radius: 50%; color: white; background: transparent; font-size: 23px; line-height: 1; cursor: pointer; }
.lightbox-content { min-height: 230px; display: grid; place-items: center; padding: 30px; border: 1px solid rgba(245,240,230,.16); color: #e7d8ae; background: rgba(255,255,255,.04); }
.lightbox-content svg { width: min(180px, 45vw); height: auto; stroke: currentColor; stroke-width: .75; fill: none; }
.lightbox-caption { margin: 18px 0 0; color: rgba(245,240,230,.74); font: 17px var(--serif); text-align: center; }

.profile-main { min-height: 80vh; }
.profile-hero { padding: clamp(48px, 7vw, 86px) clamp(22px, 5vw, 70px) clamp(62px, 8vw, 96px); color: var(--paper-light); background: var(--forest-deep); }
.profile-hero-inner { max-width: var(--page); margin: 0 auto; }
.profile-back { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 37px; color: rgba(245,240,230,.68); font-size: 10px; text-decoration: none; }
.profile-back:hover { color: var(--gold); }
.profile-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(230px, .6fr); gap: 60px; align-items: end; }
.profile-header h1 { max-width: 740px; margin: 14px 0 18px; color: var(--paper-light); font-size: clamp(48px, 8vw, 88px); }
.profile-header p { max-width: 610px; color: rgba(245,240,230,.73); font: 19px/1.5 var(--serif); }
.profile-header .profile-variants { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: baseline; margin: -7px 0 13px; color: #e5d59f; font-size: 11px; }
.profile-variants span { color: rgba(245,240,230,.5); font-size: 8px; letter-spacing: .11em; text-transform: uppercase; }
.profile-locality { padding: 13px 15px; border-left: 2px solid var(--gold); background: var(--paper); }
.profile-locality strong { color: var(--forest-deep); font: 17px var(--serif); }
.profile-dates { padding-top: 20px; border-top: 1px solid rgba(245,240,230,.23); color: rgba(245,240,230,.7); font-size: 10px; }
.profile-dates span { display: block; margin: 10px 0; }
.profile-dates strong { display: inline-block; min-width: 82px; color: var(--gold); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.profile-seal { width: 125px; height: 125px; display: grid; place-items: center; margin: 0 0 25px auto; border: 1px solid rgba(201,162,39,.7); border-radius: 50%; color: #e4d3a6; font: 47px var(--serif); box-shadow: inset 0 0 0 8px rgba(201,162,39,.08), inset 0 0 0 9px rgba(201,162,39,.22); }
.profile-photo { width: min(205px, 100%); height: 158px; position: relative; overflow: hidden; justify-self: end; margin: 0 0 25px auto; padding: 0; border: 1px solid rgba(201,162,39,.7); background: rgba(255,255,255,.08); cursor: zoom-in; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; filter: sepia(.1) saturate(.85); }
.profile-photo span { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 6px 8px; color: var(--paper-light); background: rgba(15,35,27,.76); font-size: 8px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.profile-body { max-width: var(--page); margin: 0 auto; padding: 65px clamp(22px, 5vw, 70px) 90px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
.profile-block { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.profile-block h2 { margin: 0 0 17px; color: var(--forest-deep); font: 30px var(--serif); }
.profile-block p { color: #5b6057; font-size: 13px; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-facts div { padding: 12px; border: 1px solid var(--line); background: var(--paper); }
.profile-facts small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.profile-facts strong { display: block; margin-top: 5px; color: var(--forest); font: 16px var(--serif); }
.profile-timeline { position: relative; padding-left: 19px; }
.profile-timeline::before { content: ""; position: absolute; top: 10px; bottom: 8px; left: 4px; width: 1px; background: rgba(201,162,39,.64); }
.profile-timeline li { position: relative; margin: 0 0 16px; color: #5b6057; font-size: 12px; list-style: none; }
.profile-timeline li::before { content: ""; width: 7px; height: 7px; position: absolute; top: 7px; left: -18px; border: 1px solid var(--wine); border-radius: 50%; background: var(--paper-light); }
.profile-timeline strong { margin-right: 8px; color: var(--wine); }
.profile-doc { display: flex; align-items: center; gap: 12px; margin: 8px 0; padding: 12px; border: 1px solid var(--line); background: var(--paper); }
.profile-evidence { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: stretch; margin: 8px 0; }
.profile-evidence .profile-doc { min-width: 0; margin: 0; }
.profile-evidence-preview { min-height: 76px; position: relative; overflow: hidden; padding: 0; border: 1px solid var(--line); background: var(--paper-shade); cursor: zoom-in; }
.profile-evidence-preview img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.profile-evidence-preview span { position: absolute; right: 4px; bottom: 4px; left: 4px; padding: 4px; color: white; background: rgba(19,35,27,.76); font-size: 7px; text-align: center; text-transform: uppercase; }
.profile-doc-mark { width: 34px; height: 38px; display: grid; place-items: center; color: var(--wine); background: var(--paper-shade); font: 20px var(--serif); }
.profile-doc div { display: grid; }
.profile-doc strong { color: var(--forest-deep); font: 16px var(--serif); }
.profile-doc small { color: var(--muted); font-size: 9px; }
.profile-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.profile-gallery button { min-height: 118px; position: relative; display: grid; place-items: center; border: 0; color: rgba(245,240,230,.8); background: linear-gradient(145deg,#8f805d,#344b3d); cursor: zoom-in; }
.profile-gallery button:nth-child(2) { background: linear-gradient(145deg,#a38d65,#6d4a38); }
.profile-gallery button:nth-child(3) { background: linear-gradient(145deg,#718286,#46534c); }
.profile-gallery span { max-width: 90%; padding: 4px; border: 1px solid rgba(245,240,230,.25); font: 14px var(--serif); }
.profile-map-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 17px; padding: 18px; color: var(--forest-deep); border: 1px solid var(--line); background: var(--paper); text-decoration: none; }
.profile-map-link strong { font: 18px var(--serif); }
.profile-map-link span { color: var(--wine); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.profile-branch-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.profile-branch-list li { padding: 7px 10px; border: 1px solid var(--line); color: #575e54; font-size: 10px; }
.profile-caution { margin-top: 17px; padding: 13px; border-left: 2px solid var(--gold); color: var(--muted); background: var(--paper); font-size: 10px; }
.profile-nav-next { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 21px; border-top: 1px solid var(--line); }

.branch-pair-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.branch-couple { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); align-items: stretch; border: 1px solid rgba(245,240,230,.14); background: rgba(255,255,255,.025); }
.branch-person { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 10px; color: rgba(245,240,230,.88); }
.branch-person strong { font: 14px/1.2 var(--serif); }
.branch-person small { margin-top: 4px; color: rgba(245,240,230,.54); font-size: 9px; }
.branch-person em { margin-top: 6px; color: var(--gold); font-size: 8px; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.branch-person.branch-spouse { border-left: 1px solid rgba(201,162,39,.36); }
.branch-unpaired { min-height: 70px; border: 1px dashed rgba(245,240,230,.2); }
.couple-mark { display: grid; place-items: center; color: var(--gold); font: 17px var(--serif); }
.archive-pair-intro { margin: 14px 17px 10px; color: rgba(245,240,230,.57); font-size: 10px; }
.pair-review-note { margin: 10px 0 0; padding: 9px 11px; border-left: 2px solid var(--gold); color: rgba(245,240,230,.63); background: rgba(201,162,39,.06); font-size: 9px; line-height: 1.6; }
.source-discrepancy { margin: 13px 0; padding: 12px 14px; border-left: 2px solid var(--gold); color: rgba(245,240,230,.72); background: rgba(201,162,39,.08); font-size: 10px; line-height: 1.65; }
.ancestor-couple { min-width: 200px; padding: 10px 12px; border: 1px solid rgba(245,240,230,.14); color: rgba(245,240,230,.84); }
.ancestor-couple > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ancestor-couple strong { font: 14px var(--serif); }
.ancestor-couple i { color: var(--gold); font-style: normal; }
.ancestor-couple small { display: block; margin-top: 7px; color: rgba(245,240,230,.5); font-size: 9px; }
.gallery-art img { width: 100%; height: 100%; object-fit: cover; opacity: .86; }
.profile-doc { color: inherit; text-decoration: none; }
.profile-doc > span:last-child { display: grid; gap: 3px; }
.profile-gallery button { overflow: hidden; padding: 0; }
.profile-gallery button img { width: 100%; height: 100%; min-height: 118px; position: absolute; inset: 0; object-fit: cover; }
.profile-gallery button span { position: relative; z-index: 1; align-self: end; margin: 8px; color: white; background: rgba(19,35,27,.72); }
.profile-branch .branch-couple { border-color: var(--line); background: var(--paper); }
.profile-branch .branch-person { color: var(--ink); }
.profile-branch .branch-person small { color: var(--muted); }
.profile-branch .branch-person em { color: var(--wine); }
.profile-branch .branch-person.branch-spouse { border-left-color: rgba(107,30,30,.22); }
.profile-branch .branch-unpaired { border-color: var(--line); }
.profile-branch .couple-mark { color: var(--wine); }
.profile-branch .pair-review-note { color: #62573b; background: rgba(201,162,39,.1); }
.lightbox-image { display: block; max-width: 100%; max-height: min(70vh, 850px); object-fit: contain; }
.lightbox-download { margin-top: 10px; color: var(--gold); font-size: 10px; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.lightbox-download:hover { color: #f2dc9a; }
.tree-child.expanded { grid-column: 1 / -1; }
.tree-child.expanded > .tree-card, .tree-child.expanded > .tree-branch-toggle { max-width: min(330px, 100%); }
.tree-child.expanded > .tree-branch { width: 100%; }
.source-discrepancy { color: #62573b; }
.section-dark .source-discrepancy { color: rgba(245,240,230,.72); }
.source-discrepancy a { color: var(--wine); font-weight: 700; }
.section-dark .source-discrepancy a { color: #e9d495; }

@media (max-width: 700px) {
  .variant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch-pair-list { grid-template-columns: 1fr; }
  .archive-heading { align-items: start; }
  .ancestor-couple { min-width: min(100%, 210px); }
  .tree-child.expanded > .tree-card, .tree-child.expanded > .tree-branch-toggle { max-width: 100%; }
}

@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: fade-in .6s ease both; }
.reveal:nth-child(2) { animation-delay: .06s; }
.reveal:nth-child(3) { animation-delay: .12s; }

@media (max-width: 1000px) {
  .site-header { gap: 14px; padding-right: 22px; padding-left: 22px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 10px; }
  .search-form { width: 160px; }
  .hero-note { right: 5vw; }
  .descendant-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tree-children { grid-template-columns: repeat(3, minmax(155px, 1fr)); }
  .tree-children::before { display: none; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .site-header { min-height: 68px; justify-content: space-between; gap: 10px; padding: 0 16px; }
  .brand img { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 8px; }
  .menu-toggle { display: block; order: 3; flex: 0 0 auto; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 15px 21px 19px; border-bottom: 1px solid var(--line); background: var(--paper-light); box-shadow: 0 14px 25px rgba(20,36,28,.1); }
  .site-nav.open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
  .site-nav a { padding: 11px 7px; border-bottom: 1px solid var(--line); font-size: 11px; }
  .search-form { width: min(165px, 39vw); height: 36px; margin-left: auto; }
  .search-form input { font-size: 10px; }
  .search-results { right: -45px; }
  .hero { min-height: 660px; min-height: min(690px, calc(100svh - 68px)); align-items: flex-end; }
  .hero::before { background-image: linear-gradient(0deg, rgba(15,42,34,.98) 1%, rgba(15,42,34,.91) 40%, rgba(15,42,34,.18) 100%), url("assets/hero-archive.svg"); background-position: center, 58% center; }
  .hero::after { inset: 10px; }
  .hero-content { width: calc(100% - 50px); padding: 155px 0 100px; }
  .hero h1 { margin-top: 18px; font-size: clamp(57px, 17vw, 92px); }
  .hero-lede { max-width: 360px; margin: 22px 0; font-size: 16px; }
  .hero-note { width: auto; max-width: 150px; right: 27px; bottom: 24px; font-size: 8px; }
  .hero-index { top: 22px; right: 25px; }
  .scroll-cue { left: 25px; bottom: 28px; font-size: 8px; }
  .section { padding: 73px 23px; }
  .section-head { margin-bottom: 34px; }
  .origin-grid { grid-template-columns: 1fr; gap: 37px; }
  .origin-image { width: min(100%, 500px); margin: 0 auto; }
  .origin-image img { min-height: 270px; }
  .fact-list { grid-template-columns: 1fr 1fr; }
  .timeline-layout { grid-template-columns: 1fr; gap: 25px; }
  .timeline-rail { display: grid; grid-template-columns: repeat(3, minmax(112px,1fr)); gap: 2px 10px; padding: 0; }
  .timeline-rail::before { display: none; }
  .timeline-stop { grid-template-columns: 1fr; gap: 2px; padding: 10px 8px; border: 1px solid rgba(245,240,230,.12); }
  .timeline-stop::before { display: none; }
  .timeline-year { font-size: 18px; }
  .timeline-name { padding-top: 0; font-size: 9px; }
  .timeline-detail { min-height: 0; padding: 25px 21px; }
  .timeline-detail h3 { font-size: 31px; }
  .memory-note { margin-top: 27px; font-size: 15px; }
  .map-card, .route-map { min-height: 335px; }
  .route-map { height: auto; }
  .map-controls { align-items: flex-start; flex-direction: column; }
  .map-label { font-size: 18px; }
  .map-label-small { font-size: 14px; }
  .descendant-grid { gap: 14px; }
  .descendant-visual { min-height: 138px; }
  .descendant-info { padding: 17px 14px; }
  .descendant-info h3 { font-size: 19px; }
  .life-dates { display: grid; gap: 3px; }
  .descendant-info p { font-size: 10px; }
  .gallery-toolbar { align-items: flex-start; flex-direction: column; margin-top: 0; }
  .gallery-filters { gap: 6px; }
  .filter-button { padding: 7px 9px; font-size: 8px; }
  .gallery-grid { gap: 10px; }
  .gallery-item { min-height: 190px; padding: 13px; }
  .gallery-title { font-size: 17px; }
  .memory-grid { grid-template-columns: 1fr; gap: 30px; }
  .memory-copy h2 { font-size: 48px; }
  .contribution-form { padding: 22px 17px; }
  .footer-top { grid-template-columns: 1fr auto; gap: 15px; }
  .footer-top p { grid-column: 1 / -1; grid-row: 2; }
  .footer-bottom { flex-wrap: wrap; font-size: 8px; }
  .archive-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .archive-group summary { align-items: flex-start; flex-direction: column; gap: 5px; font-size: 16px; }
  .archive-group ul { grid-template-columns: 1fr; }
  .ancestry-strip { padding: 13px; }
  .profile-columns { grid-template-columns: 1fr; gap: 24px; }
  .profile-seal { width: 82px; height: 82px; margin: 0; font-size: 31px; }
  .profile-photo { width: min(220px, 100%); height: 150px; justify-self: start; margin: 0; }
  .profile-evidence { grid-template-columns: 88px minmax(0,1fr); }
  .profile-dates { max-width: 450px; }
  .profile-grid { grid-template-columns: 1fr; gap: 30px; }
  .profile-body { padding-top: 45px; }
}
@media (max-width: 460px) {
  .hero h1 { font-size: 58px; }
  .hero h1 span { padding-left: 15px; }
  .hero-actions { gap: 13px; }
  .hero-actions .button { min-height: 43px; padding: 0 14px; font-size: 8px; }
  .hero-note { display: none; }
  .origin-copy h2 { font-size: 43px; }
  .fact-list dd { font-size: 14px; }
  .variant-grid { grid-template-columns: 1fr; }
  .variant-card { min-height: 138px; }
  .tree-children { grid-template-columns: repeat(2, minmax(144px, 1fr)); }
  .descendant-grid { grid-template-columns: 1fr; }
  .descendant-card { display: grid; grid-template-columns: 112px 1fr; }
  .descendant-visual { min-height: 100%; }
  .visual-icon { width: 55px; height: 55px; font-size: 27px; }
  .descendant-visual em { right: auto; bottom: 14px; left: 13px; font-size: 9px; }
  .descendant-info { padding: 14px 13px; }
  .descendant-info h3 { font-size: 20px; }
  .descendant-info p { margin-bottom: 12px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { min-height: 169px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top p { grid-column: auto; grid-row: auto; }
  .back-top { justify-self: start; }
  .footer-bottom { display: grid; }
  .profile-facts { grid-template-columns: 1fr 1fr; }
  .profile-nav-next { flex-direction: column; }
}
@media (max-width: 700px) {
  .regional-grid { grid-template-columns: 1fr; }
  .regional-places { margin-top: 32px; }
  .regional-card { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
