:root {
  --ink: #17231d;
  --forest: #173f32;
  --forest-deep: #0d2e25;
  --sage: #b8cbb5;
  --mist: #e9eee7;
  --paper: #f2f0e7;
  --cream: #faf8f0;
  --acid: #d6ff6b;
  --pollen: #f4c75d;
  --fossil: #d88362;
  --line: rgba(23, 35, 29, 0.2);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 12px 16px; background: var(--acid); color: var(--ink); transform: translateY(-150%); z-index: 50; }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 76px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(242,240,231,.92); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 17px; height: 17px; display: inline-block; border: 1.5px solid currentColor; border-radius: 50% 50% 48% 52%; position: relative; transform: rotate(-18deg); }
.brand-mark::after { content: ""; position: absolute; width: 1px; height: 15px; left: 8px; top: 2px; background: currentColor; transform: rotate(38deg); }
nav { display: flex; align-items: center; gap: 28px; }
nav a, .footer-links a { font-size: 12px; text-decoration: none; font-weight: 600; }
nav a:hover, nav a:focus-visible, .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { background: var(--forest); color: #fff; min-height: 48px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; text-decoration: none; font-weight: 700; font-size: 13px; border: 1px solid var(--forest); transition: transform .2s, background .2s; }
.button:hover, .button:focus-visible { background: var(--forest-deep); transform: translateY(-2px); }
.button-small { min-height: 38px; padding: 0 14px; gap: 16px; font-size: 11px; }
.text-link { font-size: 12px; font-weight: 700; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid currentColor; }

.hero { min-height: 690px; padding: 72px 7vw 54px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr); gap: 5vw; overflow: hidden; }
.hero-copy { align-self: center; max-width: 720px; }
.eyebrow, .section-kicker, .results-label { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 24px 0 25px; font-family: var(--serif); font-size: clamp(70px, 8vw, 126px); font-weight: 400; line-height: .78; letter-spacing: -.055em; }
.hero h1 em, .data-section h2 em { font-weight: 400; color: #63776c; }
.hero-deck { max-width: 560px; font-family: var(--serif); font-size: 22px; line-height: 1.38; }
.project-subtitle { margin: 18px 0 0; font: 500 10px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #53675c; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 38px; }
.hero-visual { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; }
.coordinate { position: absolute; right: 0; top: 22px; font-family: var(--mono); font-size: 9px; line-height: 1.5; text-align: right; }
.core { width: 220px; height: 500px; box-shadow: 0 24px 70px rgba(16,35,28,.2); position: relative; z-index: 2; background: #d8dccb; transform: rotate(2deg); }
.core-cap, .core-age { height: 28px; padding: 7px 9px; background: var(--ink); color: #fff; font: 8px var(--mono); letter-spacing: .1em; }
.core-age { position: absolute; bottom: 0; left: 0; right: 0; background: transparent; color: #fff; text-align: right; }
.core-layer { position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.22); }
.core-layer span { position: absolute; left: 8px; top: 8px; color: rgba(255,255,255,.68); font: 7px var(--mono); letter-spacing: .12em; }
.layer-a { height: 74px; background: repeating-linear-gradient(3deg, #8ba8a3 0 2px, #a9bbb1 3px 8px); }
.layer-b { height: 122px; background: repeating-linear-gradient(-2deg, #576f65 0 4px, #688077 5px 7px); }
.layer-c { height: 175px; background: repeating-linear-gradient(2deg, #3d5041 0 3px, #273b31 4px 9px); }
.layer-d { height: 101px; background: repeating-linear-gradient(-3deg, #9d7659 0 3px, #b58c6d 4px 10px); }
.trace { position: absolute; background: var(--acid); width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 14px var(--acid); }
.trace-one { top: 47px; left: 43px; }.trace-two { top: 98px; right: 41px; }.trace-three { top: 128px; left: 112px; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 330px; height: 330px; background: #b8d1c2; opacity: .65; left: -10%; top: 15%; }
.orb-two { width: 220px; height: 220px; border: 1px solid #8eaa98; right: -3%; bottom: 9%; }
.visual-note { position: absolute; bottom: 0; left: 0; width: 210px; font: 9px/1.5 var(--mono); display: flex; gap: 8px; }
.visual-note span { flex: 0 0 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: var(--acid); }
.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-strip div { min-height: 145px; display: flex; flex-direction: column; justify-content: center; padding: 24px 4vw; border-right: 1px solid var(--line); }
.fact-strip div:last-child { border: 0; }
.fact-strip strong { font: 500 42px var(--serif); }
.fact-strip span { margin-top: 6px; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .06em; }

.story, .method { padding: 110px 7vw; }
.section-kicker { display: flex; gap: 15px; align-items: center; margin-bottom: 70px; }
.section-kicker span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: 50%; }
.story-grid, .method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.story h2, .method h2, .section-heading h2 { margin: 0; font: 400 clamp(52px, 6vw, 86px)/.95 var(--serif); letter-spacing: -.045em; }
.story-copy { max-width: 560px; }
.story-copy p { font-size: 14px; line-height: 1.75; }
.story-copy .lead { font: 400 27px/1.32 var(--serif); margin-top: 0; }
.caution { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0 22px 42px; position: relative; }
.caution span { position: absolute; left: 0; top: 25px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; font: 12px var(--mono); }
.caution strong { display: block; margin-bottom: 3px; }

.explorer { background: var(--forest-deep); color: #f4f2e9; padding: 100px 5vw 110px; }
.section-kicker.light span { border-color: currentColor; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.section-heading .section-kicker { margin-bottom: 28px; }
.section-heading p { max-width: 390px; color: #b9c7c0; font: 16px/1.55 var(--serif); }
.toolbar { border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.search-field { width: min(320px, 40%); display: flex; gap: 12px; align-items: center; }
.search-field svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: 13px; }
.search-field input::placeholder { color: #9cadA4; }
.filter-group { display: flex; gap: 5px; }
.filter { border: 1px solid rgba(255,255,255,.16); background: transparent; color: #d4ddd8; padding: 10px 13px; font-size: 10px; cursor: pointer; }
.filter.active, .filter:hover, .filter:focus-visible { background: #eaf0e7; color: var(--forest-deep); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; }
.dna { background: var(--acid); }.pollen { background: var(--pollen); }.fossil { background: var(--fossil); }
.explorer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 45px; padding-top: 35px; }
.results-label { color: #9cadA4; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.organism-card { min-height: 310px; padding: 0; text-align: left; background: #153a30; border: 1px solid rgba(255,255,255,.12); cursor: pointer; transition: transform .2s, border .2s, background .2s; overflow: hidden; }
.organism-card:hover, .organism-card:focus-visible, .organism-card.selected { transform: translateY(-3px); border-color: var(--acid); background: #19463a; outline: none; }
.organism-art { height: 125px; background: #adc4b5; position: relative; overflow: hidden; }
.organism-art::before, .organism-art::after { content: ""; position: absolute; border: 1px solid rgba(19,49,40,.45); border-radius: 50%; }
.organism-art::before { width: 150px; height: 150px; left: -50px; top: 30px; }
.organism-art::after { width: 95px; height: 95px; right: -15px; top: -40px; }
.art-symbol { position: absolute; inset: 0; display: grid; place-items: center; color: var(--forest-deep); font: 400 62px var(--serif); z-index: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 4px; }
.category { font: 8px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #9fB3a9; }
.arrow { font-size: 16px; }
.organism-card h3 { margin: 16px 16px 0; color: #fff; font: 400 31px var(--serif); }
.scientific-name { margin: 4px 16px; font: italic 11px var(--serif); color: #9fb3a9; }
.evidence-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 14px 16px 16px; }
.tag { padding: 5px 7px; border: 1px solid rgba(255,255,255,.2); font: 8px var(--mono); text-transform: uppercase; }
.tag::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--tag-color); border-radius: 50%; margin-right: 5px; }
.detail-panel { min-height: 450px; position: sticky; top: 110px; align-self: start; border: 1px solid rgba(255,255,255,.16); background: #eef0e7; color: var(--ink); }
.detail-placeholder { min-height: 450px; display: grid; place-content: center; text-align: center; color: #63776c; font: 19px/1.4 var(--serif); }
.big-arrow { font-size: 36px; }
.detail-content { padding: 28px; }
.detail-content .close-detail { float: right; border: 0; background: transparent; font-size: 22px; cursor: pointer; }
.detail-content .detail-category { font: 9px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #607268; }
.detail-content h3 { margin: 26px 0 0; font: 400 43px/1 var(--serif); }
.detail-content .latin { margin: 6px 0 22px; font: italic 13px var(--serif); color: #63776c; }
.detail-content .summary { font: 17px/1.45 var(--serif); }
.detail-content h4 { margin: 24px 0 9px; font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.evidence-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.45; }
.evidence-row i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; margin-top: 3px; }
.source-box { margin-top: 18px; padding: 13px; background: #dfe5db; font: 9px/1.55 var(--mono); }
.source-box a { font-weight: 700; }
.empty-state { padding: 60px 0; text-align: center; }
.text-button { background: transparent; border: 0; color: var(--acid); text-decoration: underline; cursor: pointer; }

.method { background: var(--mist); }
.method-grid > div:first-child p { max-width: 410px; font: 17px/1.55 var(--serif); }
.method-list { border-top: 1px solid var(--line); }
.method-list article { display: grid; grid-template-columns: 50px 1fr 18px; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.method-number { font: 9px var(--mono); }
.method-list h3 { margin: 0 0 8px; font: 400 25px var(--serif); }
.method-list p { margin: 0; font-size: 12px; line-height: 1.6; color: #506158; }
.method-swatch { width: 10px; height: 10px; border-radius: 50%; }

.data-section { padding: 100px 7vw; background: #203d34; color: #fff; overflow: hidden; }
.data-inner { max-width: 1180px; margin: 0 auto; position: relative; }
.data-section h2 { font: 400 clamp(54px, 7vw, 96px)/.9 var(--serif); letter-spacing: -.04em; margin: 30px 0; }
.data-section h2 em { color: #91a89b; }
.data-section .data-inner > p:not(.eyebrow) { width: 50%; color: #bdcac3; font-size: 13px; line-height: 1.7; }
.data-actions { display: flex; align-items: center; gap: 28px; margin: 35px 0 60px; }
.light-button { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.light-button:hover { background: #c7ef5e; }
.light-link { color: #fff; }
.file-preview { background: #112b23; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.file-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.13); overflow-x: auto; }
.file-tabs span { padding: 13px 17px; font: 9px var(--mono); color: #81978c; white-space: nowrap; }
.file-tabs span.active { color: #fff; border-bottom: 1px solid var(--acid); }
.file-preview pre { margin: 0; padding: 24px; overflow-x: auto; color: #c8d5cf; font: 10px/1.9 var(--mono); }

footer { min-height: 180px; padding: 50px 5vw; background: #0d261f; color: #dce5df; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 40px; align-items: start; }
footer > div:first-child { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; }
footer > div:first-child > span:last-child { display: flex; flex-direction: column; gap: 5px; }
footer small { max-width: 240px; color: #8fa198; font: 8px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
footer p { margin: 0; color: #8fa198; font-size: 10px; line-height: 1.65; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

@media (max-width: 980px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-visual { min-height: 540px; }
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .fact-strip div:nth-child(2) { border-right: 0; }
  .story-grid, .method-grid { grid-template-columns: 1fr; }
  .explorer-layout { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 660px) {
  .site-header { min-height: 62px; }
  .site-header .button { display: none; }
  .brand { font-size: 12px; }
  .hero { min-height: auto; padding: 60px 6vw 35px; }
  .hero h1 { font-size: clamp(64px, 21vw, 88px); }
  .hero-deck { font-size: 19px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { min-height: 500px; }
  .core { width: 180px; height: 430px; }
  .layer-a { height: 60px; }.layer-b { height: 100px; }.layer-c { height: 150px; }.layer-d { height: 92px; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip div { min-height: 100px; border-right: 0; border-bottom: 1px solid var(--line); }
  .story, .method { padding: 75px 6vw; }
  .section-kicker { margin-bottom: 45px; }
  .explorer { padding: 75px 5vw; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .toolbar { align-items: stretch; flex-direction: column; padding: 15px 0; }
  .search-field { width: 100%; min-height: 42px; }
  .filter-group { overflow-x: auto; padding-bottom: 4px; }
  .filter { flex: 0 0 auto; }
  .card-grid { grid-template-columns: 1fr; }
  .organism-card { min-height: 275px; }
  .data-section { padding: 75px 6vw; }
  .data-section .data-inner > p:not(.eyebrow) { width: 100%; }
  .data-actions { align-items: flex-start; flex-direction: column; }
  footer { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
