@import url("https://api.fontshare.com/v2/css?f[]=satoshi@300,301,400,401,500,501,700,701,900,901&display=swap");

:root {
  --bg: #101012;
  --text: #ffffff;
  --muted: #aaaaaa;
  --faint: #777777;
  --line: #292929;
  --yellow: #e5b34e;
  --green: #8bb48c;
  --pink: #d8a0c2;
  --blue: #75a9d1;
  --red: #da7d5c;
  --aqua: #77c4b6;
  --serif: "Satoshi", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --sans: "Satoshi", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
html, body { background: var(--bg); color: var(--text); }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.6; }
a { color: inherit; }
button { font: inherit; }
.quarto-title-block, #quarto-header, .navbar, .quarto-metadata { display: none !important; }
#quarto-content, .page-columns, .page-full, .content { margin: 0 !important; padding: 0 !important; max-width: none !important; }
.essay { overflow-x: clip; overflow-y: visible; background: var(--bg); }
.constrained { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; line-height: 1.03; }
h1 { margin-bottom: 30px; font-size: clamp(2.4rem, 4vw, 4.2rem); letter-spacing: 0.02em; }
h2 { margin-bottom: 24px; font-size: clamp(2.3rem, 4.2vw, 4.3rem); }
em { font-style: italic; }
.eyebrow { margin: 0 0 20px; color: var(--yellow); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; }
.stage-note, .small-note { color: var(--muted); font-size: 0.84rem; line-height: 1.55; }
.section-lede { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; }

.opening { position: relative; background: var(--bg); }
.journey-grid { position: relative; display: grid; grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr); gap: 6vw; align-items: start; }
.journey-copy { position: relative; z-index: 3; min-width: 0; grid-column: 1; grid-row: 1; }
.opening-copy { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 24px; }
.opening-lede { max-width: 410px; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.opening-note { margin-top: 34px; padding-bottom: 24px; color: var(--faint); font-size: 0.86rem; letter-spacing: 0.03em; }
.opening-stage { position: sticky; z-index: 2; top: 0; grid-column: 1 / -1; grid-row: 1; align-self: start; width: 100%; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 58px; background: var(--bg); }
.opening.is-map-intro .stage-label { opacity: 0; pointer-events: none; }
.opening.is-map-intro .observation-dot { pointer-events: none; }
.stage-label, .stage-foot { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.07em; line-height: 1.4; text-transform: uppercase; }
.stage-label { width: 60%; margin-left: auto; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.stage-foot { padding-top: 10px; color: var(--faint); }
#organism-svg { width: 100%; height: min(74vh, 720px); min-height: 430px; display: block; overflow: visible; }
.stage-note { margin: 12px 0 0; }
.organism-tooltip { position: absolute; z-index: 4; width: min(260px, calc(100% - 20px)); pointer-events: none; padding: 12px 13px; opacity: 0; background: rgba(16,16,18,0.97); border: 1px solid #444; color: var(--text); transition: opacity 160ms ease; }
.organism-tooltip.is-visible { opacity: 1; }
.organism-tooltip strong { display: block; font-family: var(--serif); font-size: 1.08rem; font-weight: 400; line-height: 1.08; }
.organism-tooltip span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.mode-rail { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.mode-button, .effort-control { appearance: none; cursor: pointer; border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--muted); padding: 8px 10px; font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.mode-button:hover, .mode-button.is-active, .effort-control:hover, .effort-control.is-active { border-color: var(--text); color: var(--bg); background: var(--text); }
.map-grid { stroke: #181818; stroke-width: 1; }
.map-label { fill: var(--faint); font: 11px var(--sans); letter-spacing: 0.07em; text-transform: uppercase; }
.mode-label { fill: var(--muted); font: 700 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.group-label { fill: var(--text); font: 700 12px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.group-label tspan { fill: var(--muted); font-weight: 400; }
.year-label { fill: var(--muted); font: 12px var(--sans); }
.observer-label { fill: var(--muted); font: 11px var(--sans); }
.year-guide, .observer-guide { stroke: #242424; stroke-width: 1; }
.canopy-branch { fill: none; stroke: #454545; stroke-width: 0.7; stroke-opacity: 0.55; }
.canopy-branch.group-branch { stroke: #777777; stroke-width: 1.2; stroke-opacity: 0.75; }
.observation-dot { cursor: pointer; stroke: none; }
.observation-dot.is-obscured { stroke: var(--red); stroke-width: 0.7; }
.observation-dot:hover { stroke: var(--text); stroke-width: 1.3; }
.species-label { fill: var(--text); font: italic 12px var(--serif); }
.species-label.secondary { fill: var(--muted); font-size: 11px; }

.transformation-copy { padding: 0 0 12vh; }
.transform-step { min-height: 58vh; max-width: 450px; display: flex; flex-direction: column; justify-content: center; opacity: 0.24; transition: opacity 240ms ease; }
.transform-step.is-active { opacity: 1; }
.transform-step p:not(.eyebrow) { color: var(--muted); }
.transform-step h2 { margin-bottom: 20px; font-size: clamp(2.1rem, 3.6vw, 3.6rem); }
.opening-copy.transform-step { min-height: 100svh; max-width: none; }

.deep-dive { padding: 17vh 0 16vh; border-top: 1px solid var(--line); background: var(--bg); }
.section-heading { margin-bottom: 58px; }
.canopy-section .section-lede { max-width: 1040px; }
.canopy-frame { position: relative; }
#canopy-svg { width: 100%; height: min(78vh, 760px); min-height: 520px; display: block; overflow: hidden; }
.canopy-group-branch, .canopy-genus-branch, .canopy-twig { fill: none; stroke-linecap: round; }
.canopy-group-branch { stroke-width: 1.8px; stroke-opacity: 0.58; }
.canopy-genus-branch { stroke-width: 0.8px; stroke-opacity: 0.3; }
.canopy-twig { stroke-width: 0.45px; stroke-opacity: 0.14; }
.canopy-group-label { pointer-events: none; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; font: 650 12px var(--sans); letter-spacing: 0.02em; }
.canopy-leaf { cursor: pointer; }
.canopy-leaf-shape { opacity: 0.94; transition: opacity 120ms ease, stroke-width 120ms ease; }
.canopy-leaf:hover .canopy-leaf-shape { opacity: 1; stroke: var(--text); stroke-width: 1.5px; }
.canopy-leaf-vein { pointer-events: none; fill: none; stroke: rgba(255,255,255,0.25); stroke-width: 0.55px; }
.canopy-leaf-hit { fill: transparent; pointer-events: all; }
.canopy-legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.8rem; }
.canopy-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.canopy-legend-dot { width: 8px; height: 8px; }
.canopy-legend-size { width: 16px; height: 9px; border-radius: 100% 0 100% 0; background: var(--green); transform: rotate(-18deg); }
.canopy-tooltip { position: absolute; z-index: 5; width: min(290px, calc(100vw - 40px)); pointer-events: none; padding: 13px 14px; opacity: 0; background: rgba(16,16,18,0.98); border: 1px solid #444; color: var(--text); transition: opacity 150ms ease; }
.canopy-tooltip.is-visible { opacity: 1; }
.canopy-tooltip .tip-group { margin-bottom: 5px; color: var(--yellow); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; }
.canopy-tooltip strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1.1; }
.canopy-tooltip span { display: block; margin-top: 7px; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.canopy-tooltip .tip-image { width: 100%; aspect-ratio: 16 / 9; display: block; margin-bottom: 11px; object-fit: cover; }

.analysis-grid { display: grid; grid-template-columns: 0.76fr 1.24fr; gap: 9vw; align-items: center; }
.analysis-copy { max-width: 440px; }
.analysis-copy > p:not(.eyebrow) { color: var(--muted); }
.pull-quote { margin: 42px 0; padding-left: 20px; border-left: 2px solid var(--yellow); color: var(--text); font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.025em; line-height: 1.15; }
.analysis-visual { min-width: 0; }
.frequency-section .analysis-grid { grid-template-columns: minmax(300px, 0.9fr) minmax(430px, 1.1fr); gap: 7vw; align-items: start; }
.frequency-section .analysis-copy { max-width: 500px; }
.frequency-section .analysis-copy h2 { font-size: clamp(2.3rem, 3.6vw, 3.7rem); }
.frequency-section .analysis-visual { padding-top: 7px; }
#frequency-svg { width: 100%; height: 230px; display: block; margin-top: 14px; overflow: visible; }
.frequency-track { fill: var(--line); }
.frequency-bar { fill: var(--green); }
.frequency-label { fill: var(--text); font: 500 12px var(--sans); }
.frequency-value { fill: var(--text); font: 500 13px var(--sans); }
.frequency-detail { fill: var(--muted); font: 11px var(--sans); }
.frequency-caution { max-width: 600px; margin: 22px 0 0; padding-left: 18px; border-left: 2px solid var(--yellow); color: var(--text); font-family: var(--serif); font-size: clamp(1.18rem, 1.7vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.3; }
.frequency-section .small-note { max-width: 540px; margin-top: 18px; }

.attention-frame, .effort-frame, .time-frame { padding-top: 4px; }
#attention-svg { width: 100%; height: min(55vh, 540px); min-height: 350px; display: block; margin-top: 20px; overflow: visible; }
.observer-line { stroke: #323232; stroke-width: 1.5; }
.observer-dot { fill: var(--red); stroke: var(--bg); stroke-width: 1.5; }
.observer-name { fill: var(--text); font-size: 12px; }
.observer-value { fill: var(--muted); font-size: 11px; }

.network-visual { min-width: 0; }
#network-svg { width: 100%; height: min(57vh, 560px); min-height: 390px; display: block; margin-top: 20px; overflow: visible; }
.network-link { fill: none; stroke-width: 0.8px; stroke-opacity: 0.2; }
.network-link:hover { stroke-opacity: 0.9; }
.network-node.observer { fill: var(--red); }
.network-node.taxon { stroke: var(--bg); stroke-width: 0.8px; }
.network-label { fill: var(--muted); font-size: 11px; }
.network-label.heading { fill: var(--faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.network-value { fill: var(--text); font-size: 11px; }

.effort-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 17px; }
#effort-svg { width: 100%; height: min(68vh, 680px); min-height: 440px; display: block; }
.effort-cell { cursor: pointer; stroke: var(--bg); stroke-width: 1; }
.effort-cell:hover { stroke: var(--text); stroke-width: 1.5; }
.effort-caption { min-height: 28px; color: var(--text); font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; }

.time-stat-line { display: flex; flex-wrap: wrap; gap: 34px; margin-bottom: 24px; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.time-stat-line strong { color: var(--text); font-family: var(--serif); font-size: 1.65rem; font-weight: 400; letter-spacing: -0.025em; }
#time-svg { width: 100%; height: min(55vh, 540px); min-height: 350px; display: block; }
.time-axis line, .time-axis path { stroke: #333; }
.time-axis text, .time-label { fill: var(--muted); font-size: 12px; }
.time-line-obs { fill: none; stroke: var(--red); stroke-width: 2.2px; }
.time-line-taxa { fill: none; stroke: var(--green); stroke-width: 2.2px; }
.time-area { fill: var(--red); opacity: 0.08; }
.time-dot-obs { fill: var(--red); }
.time-dot-taxa { fill: var(--green); }
.time-legend { display: flex; gap: 17px; color: var(--muted); font-size: 0.8rem; }
.line-swatch { width: 27px; height: 2px; display: inline-block; vertical-align: middle; margin-right: -9px; }
.line-swatch.obs { background: var(--red); }
.line-swatch.taxa { background: var(--green); }

.after-journey, .moments, .site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.after-journey { padding: 18vh 0; }
.after-grid { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(430px, 1.1fr); column-gap: 7vw; row-gap: 64px; align-items: start; }
.after-heading { max-width: 540px; }
.after-heading h2 { font-size: clamp(2.4rem, 3.8vw, 3.9rem); }
.after-intro { max-width: 650px; margin: 52px 0 0; color: var(--muted); font-size: 1.13rem; }
.after-intro strong { color: var(--text); font-family: var(--serif); font-size: 1.35em; font-weight: 400; }
.after-process { grid-column: 1 / -1; }
.filter-line { display: grid; gap: 15px; margin: 0; color: var(--text); font-size: 0.9rem; }
.filter-step { display: grid; grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.filter-step b { width: var(--bar); height: 11px; display: block; background: var(--text); }
.after-context { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: start; margin-top: 38px; }
.after-context .small-note { max-width: 520px; margin: 0; }
.after-note { max-width: 520px; margin: 0; padding-left: 18px; border-left: 2px solid var(--yellow); color: var(--text); font-family: var(--serif); font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.25; }

.moments { padding: 18vh 0 15vh; }
.moments h2 { max-width: 850px; }
.moments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 68px; }
.moment { min-width: 0; }
.moment-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.moment-media img { width: 100%; height: 100%; display: block; object-fit: cover; filter: grayscale(0.12) contrast(0.95); transition: transform 400ms ease; }
.moment:hover img { transform: scale(1.025); }
.moment-copy { padding-top: 16px; }
.moment-role { margin: 0 0 9px; color: var(--yellow); font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; }
.moment h3 { margin: 0; font-size: 1.75rem; }
.moment-common { margin: 5px 0 13px; color: var(--muted); font-size: 0.92rem; }
.moment-credit { color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.moment-credit a { text-decoration: none; border-bottom: 1px solid var(--faint); }
.moments > .constrained > .stage-note { max-width: 740px; margin-top: 32px; }

.ending { padding: 19vh 0 21vh; background: var(--bg); }
.ending-inner { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; }
.ending-question { margin: 0 0 8vh; color: var(--muted); font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.4rem); letter-spacing: -0.025em; }
.ending h2 { margin: 0; font-size: clamp(3.2rem, 6vw, 6rem); }
.ending-answer { margin: 7vh 0 0; color: var(--text); font-family: var(--serif); font-size: clamp(1.5rem, 2.7vw, 2.8rem); letter-spacing: -0.025em; line-height: 1.15; }
.last-observation { display: flex; align-items: center; gap: 12px; max-width: 720px; margin-top: 9vh; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.01em; line-height: 1.55; }
.last-observation i { width: 7px; height: 7px; display: block; background: var(--yellow); }

code { padding: 2px 5px; color: var(--text); background: var(--bg); border: 1px solid var(--line); font-size: 0.85em; }
.site-footer { padding: 30px 0 38px; }
.footer-inner { display: grid; gap: 32px; color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.footer-nav { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.footer-title { color: var(--text); font-family: var(--serif); font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 26px; }
.footer-credit { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
.data-error { position: fixed; z-index: 20; top: 12px; left: 50%; width: min(520px, calc(100% - 24px)); padding: 10px 14px; transform: translateX(-50%); background: var(--red); color: var(--text); font-size: 0.78rem; text-align: center; }

@media (max-width: 900px) {
  .journey-grid { display: flex; flex-direction: column; }
  .journey-copy { display: contents; }
  .opening-copy { order: 1; min-height: 12svh; padding-top: 0; }
  .opening-stage { width: min(100%, 800px); height: 76svh; min-height: 470px; margin-left: auto; padding-top: 68px; }
  .opening-stage .stage-label { width: 100%; }
  .opening-stage { order: 0; }
  .transformation-copy { width: min(100%, 640px); margin-right: auto; }
  .transformation-copy { order: 2; }
  .transform-step { min-height: 58vh; }
  .after-grid { grid-template-columns: 1fr; gap: 30px; }
  .after-heading { max-width: 620px; }
  .after-intro { max-width: 680px; margin-top: 0; }
  .after-process { grid-column: 1; margin-top: 20px; }
  .analysis-grid { grid-template-columns: 1fr; gap: 36px; }
  .analysis-copy { max-width: 680px; }
  .frequency-section .analysis-grid { grid-template-columns: 1fr; gap: 34px; }
  .frequency-section .analysis-copy { max-width: 620px; }
  .frequency-section .analysis-visual { padding-top: 0; }
  .moments-grid { grid-template-columns: 1fr; gap: 52px; }
  .moment { max-width: 620px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .constrained { width: calc(100% - 40px); }
  .opening-copy { min-height: 12svh; padding-top: 0; }
  .opening-copy.transform-step { min-height: 12svh; }
  h1 { font-size: clamp(2.3rem, 10vw, 3.3rem); }
  h2 { font-size: clamp(2.2rem, 9.5vw, 3.3rem); }
  .opening-stage { width: 100%; height: 66svh; min-height: 360px; padding-top: 24px; }
  #organism-svg { min-height: 310px; height: 52vh; }
  #canopy-svg { min-height: 460px; height: 70vh; }
  #frequency-svg { height: 230px; }
  #attention-svg { min-height: 320px; height: 43vh; }
  #effort-svg { min-height: 360px; height: 53vh; }
  #time-svg { min-height: 300px; height: 44vh; }
  .stage-label, .stage-foot { font-size: 0.72rem; }
  .stage-note { font-size: 0.82rem; }
  .transform-step { min-height: 52vh; }
  .filter-line { gap: 11px; font-size: 0.82rem; }
  .filter-step { grid-template-columns: minmax(125px, 0.48fr) minmax(0, 1fr); gap: 14px; }
  .after-context { grid-template-columns: 1fr; gap: 26px; margin-top: 32px; }
  .after-journey, .moments { padding-block: 14vh; }
  .moments-grid { margin-top: 45px; }
  .ending { padding-block: 15vh; }
  .ending-inner { min-height: 62vh; }
  .ending h2 { margin-top: 0; }
  .footer-nav { display: grid; gap: 14px; }
  .footer-links { display: grid; justify-content: start; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
