/* Fonts are served with the site (fonts/, SIL Open Font License; see fonts/LICENSE.txt) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(../fonts/source-serif-4-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(../fonts/source-serif-4-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(../fonts/source-serif-4-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(../fonts/source-serif-4-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Shields Lab. Layout: field-guide plates. Real photographs run edge to edge with specimen-label
   captions; reading columns sit on paper; black "exhibit hall" bands carry the scroll story, the
   interactive model and the call to join. Towson black and gold: gold marks pin heads, highlights
   and the one action on a black band, never running text on paper. */
:root {
  --paper: #fafaf7;
  --paper-2: #eeefea;
  --ink: #111214;
  --ink-2: #4d5057;
  --line: #d8dad4;
  --night: #0e0f11;
  --night-2: #18191c;
  --night-line: rgba(255, 255, 255, .14);
  --on-night: #f3f3ef;
  --on-night-2: #a6a9af;
  --gold: #ffbb00;
  --gold-ink: #7a5600;
  --gold-wash: #fff1c7;
  --red: #c8102e;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 82rem;
  --gutter: clamp(16px, 4.2vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.66 var(--serif); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .2em; transition: background-color .2s ease, text-decoration-color .2s ease; }
a:hover { text-decoration-color: var(--ink); }
.article a:hover, .prose a:hover, .faq a:hover, .note a:hover, .refs a:hover { background: var(--gold-wash); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.night :focus-visible, .nav.open :focus-visible, .foot :focus-visible, .lb :focus-visible, .orchard :focus-visible, .cta :focus-visible { outline-color: var(--gold); }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.prose { max-width: 40rem; }
.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 { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--gold); color: var(--ink); padding: .6rem .9rem; font: 700 .95rem var(--display); }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 760; letter-spacing: -.012em; line-height: 1.02; margin: 0; text-wrap: balance; font-stretch: 110%; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); font-stretch: 118%; font-weight: 780; margin: 0 0 1.4rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-stretch: 104%; font-weight: 700; line-height: 1.16; letter-spacing: -.005em; margin: 2.2rem 0 .6rem; }
h4 { font-size: 1.08rem; font-stretch: 100%; line-height: 1.3; letter-spacing: 0; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1.05rem; text-wrap: pretty; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin-bottom: .4rem; }
i, em { font-style: italic; }
.small { font-size: .95rem; }
.muted { color: var(--ink-2); }
.sans { font-family: var(--display); }
.nowrap { white-space: nowrap; }

/* Eyebrow: a gold pin head, then the label in small capitals */
.eyebrow, .kicker { display: flex; align-items: center; gap: .6rem; font: 650 .78rem/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 1.1rem; }
.eyebrow::before, .kicker::before { content: ""; flex: none; width: .62rem; height: .62rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1.5px var(--ink); }
.night .eyebrow, .night .kicker { color: var(--on-night); }
.night .eyebrow::before, .night .kicker::before { box-shadow: 0 0 0 1.5px var(--night); }
.lede { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.5; color: var(--ink-2); max-width: 40rem; font-weight: 380; }
.night .lede { color: var(--on-night-2); }

/* Specimen label: the paper tag under a pinned insect, used to caption photographs */
.label { display: grid; gap: .15rem; width: fit-content; max-width: min(24rem, 100%); background: var(--paper); color: var(--ink); border: 1px solid var(--ink); padding: .6rem .75rem .65rem; font: 500 .78rem/1.4 var(--display); letter-spacing: .01em; }
.label__sp { font: italic 400 1rem/1.25 var(--serif); }
.label__sp .auth { font-style: normal; font-size: .88rem; color: var(--ink-2); }
.auth { white-space: nowrap; }
.label__cr { color: var(--ink-2); font-size: .72rem; }
.label__cr a { text-decoration-thickness: 1px; }

/* ---------- Buttons ---------- */
.btn, .pill { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .85rem 1.35rem; border: 1.5px solid var(--ink); border-radius: 2px; font: 650 .98rem/1 var(--display); font-stretch: 105%; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease); }
.btn::after, .pill::after { content: "\2192"; font-weight: 500; transition: transform .25s var(--ease); }
.btn:hover::after, .pill:hover::after { transform: translateX(3px); }
.btn--ink, .pill--ink, .pill--light { background: var(--ink); color: var(--paper); }
.btn--ink:hover, .pill--ink:hover, .pill--light:hover { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.btn--line, .pill--ghost { background: transparent; color: var(--ink); }
.btn--line:hover, .pill--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--paper); border-color: var(--paper); }
.night .btn--line { color: var(--on-night); border-color: var(--on-night); }
.night .btn--line:hover { background: var(--on-night); color: var(--night); }
.more { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font: 650 1rem/1 var(--display); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: .15rem; }
.more::after { content: "\2192"; transition: transform .25s var(--ease); }
.more:hover { border-bottom-color: var(--ink); }
.more:hover::after { transform: translateX(4px); }
.night .more { color: var(--on-night); }
.night .more:hover { border-bottom-color: var(--on-night); }

/* ---------- Header ---------- */
/* Solid on purpose: a backdrop filter would make the header the containing block of the fixed phone menu */
.top { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.top.is-stuck { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.6rem; }
.brand { display: grid; gap: .2rem; text-decoration: none; color: var(--ink); line-height: 1; }
.brand b { font: 850 1.12rem/1 var(--display); font-stretch: 125%; letter-spacing: .02em; text-transform: uppercase; }
.brand small { font: 600 .66rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.nav ul { list-style: none; display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { position: relative; display: block; padding: .7rem .7rem; color: var(--ink); text-decoration: none; font: 560 .95rem/1 var(--display); }
.nav a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .35rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav__join { margin-left: .6rem; background: var(--ink); color: var(--paper); padding: .8rem 1.1rem; border-radius: 2px; }
.nav a.nav__join::after { display: none; }
.nav a.nav__join:hover, .nav a.nav__join[aria-current="page"] { background: var(--gold); color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: .55rem; font: 650 .95rem var(--display); color: var(--ink); background: none; border: 1.5px solid var(--ink); border-radius: 2px; padding: .65rem 1rem; min-height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 10px; border-block: 2px solid currentColor; }
@media (max-width: 1120px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { display: none; position: fixed; inset: 4.6rem 0 0 0; background: var(--night); padding: 1.5rem var(--gutter) 2rem; overflow-y: auto; }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 1rem 0; color: var(--on-night); font: 780 clamp(1.6rem, 6.5vw, 2.4rem)/1.05 var(--display); font-stretch: 118%; border-bottom: 1px solid var(--night-line); }
  .nav a::after { left: 0; right: auto; width: 2.5rem; bottom: .55rem; }
  .nav a.nav__join { margin: 1.2rem 0 0; background: var(--gold); color: var(--ink); padding: 1rem 1.1rem; text-align: center; font-size: 1.3rem; }
  html.nav-open { overflow: hidden; }
}

/* ---------- Home hero: a photographic plate bleeding off the right edge ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; min-height: min(84vh, 860px); border-bottom: 1px solid var(--line); }
.hero__copy { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(3rem, 8vh, 6rem) clamp(3rem, 7vh, 5rem); padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-right: clamp(1.5rem, 3.5vw, 3.5rem); min-width: 0; }
.hero__title { font-size: clamp(2.7rem, 5.8vw, 5.7rem); font-weight: 820; font-stretch: 125%; letter-spacing: -.02em; line-height: .9; margin: 0 0 1.8rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: block; }
.hero__title em { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -.01em; }
.hero__lede { font-size: clamp(1.2rem, 1.6vw, 1.42rem); line-height: 1.5; color: var(--ink-2); max-width: 33rem; margin: 0 0 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__plate { position: relative; margin: 0; min-height: 26rem; overflow: hidden; background: var(--night); }
.hero__plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; will-change: transform; }
.hero__plate .label { position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 2; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.hero__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font: 600 .78rem/1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); max-width: 36rem; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__copy { padding-inline: var(--gutter); padding-block: 1.8rem 2.6rem; }
  .hero__plate { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .hero__plate .label { left: var(--gutter); bottom: .8rem; padding: .45rem .6rem .5rem; font-size: .7rem; }
  .hero__plate .label__sp { font-size: .9rem; }
}

/* Load choreography: the headline rises out of its lines, the plate is uncovered from right to left */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span { animation: rise 1.05s var(--ease) both; }
  .hero__title .line:nth-child(2) > span { animation-delay: .09s; }
  .hero__title .line:nth-child(3) > span { animation-delay: .18s; }
  .hero__lede, .hero__cta, .hero__meta, .hero .eyebrow { animation: fade-up 1s var(--ease) both; }
  .hero .eyebrow { animation-delay: .05s; }
  .hero__lede { animation-delay: .3s; }
  .hero__cta { animation-delay: .4s; }
  .hero__meta { animation-delay: .5s; }
  .hero__plate { animation: uncover 1.5s var(--ease-in-out) .05s both; }
  .hero__plate img { animation: settle 2.6s var(--ease) both; }
  .hero__plate .label { animation: fade-up .9s var(--ease) 1.05s both; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes uncover { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1.02); } }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--rule { border-top: 1px solid var(--line); }
.night { background: var(--night); color: var(--on-night); }
.band-paper2, .tint { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); }
.night .section-head p { color: var(--on-night-2); }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* Intro: the lab in one paragraph, with the people who run it */
.intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro__statement { font: 380 clamp(1.5rem, 2.6vw, 2.3rem)/1.32 var(--serif); letter-spacing: -.01em; margin: 0; }
.intro__statement i { font-style: italic; }
.leads { display: grid; gap: 1.2rem; padding-top: .5rem; }
.lead-card { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; align-items: center; text-decoration: none; }
.lead-card img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 2px; filter: grayscale(.15); }
.lead-card b { display: block; font: 700 1.05rem/1.2 var(--display); }
.lead-card span { display: block; font: 450 .9rem/1.4 var(--display); color: var(--ink-2); }
.lead-card:hover b { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .2em; }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); } }

/* Research programs: alternating photographic plates */
.programs { display: grid; gap: clamp(5rem, 10vw, 8rem); }
.program { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.program:nth-child(even) .program__plate { order: 2; }
.program__plate { position: relative; margin: 0; }
.program__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.program__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.program__plate:hover .program__img img { transform: scale(1.03); }
.program__plate .label { margin: -1.6rem 0 0 clamp(.8rem, 2vw, 1.6rem); position: relative; z-index: 2; }
.program__num { font: 800 .82rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1rem; }
.program h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-stretch: 112%; font-weight: 780; line-height: 1.04; margin: 0 0 1.1rem; }
.program p { color: var(--ink-2); }
.program .facts-list { list-style: none; padding: 0; margin: 1.4rem 0 1.6rem; border-top: 1px solid var(--line); }
.program .facts-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); margin: 0; font: 450 .92rem/1.45 var(--display); color: var(--ink-2); }
.program .facts-list b { font-weight: 650; color: var(--ink); }
@media (max-width: 860px) { .program { grid-template-columns: minmax(0, 1fr); } .program:nth-child(even) .program__plate { order: 0; } }

/* Numbers: the lab's real counts, each with its source */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.numbers > div { padding: 1.6rem 1.4rem 1.4rem 0; border-right: 1px solid var(--line); }
.numbers > div + div { padding-left: 1.4rem; }
.numbers > div:last-child { border-right: 0; }
.numbers .n { display: block; font: 820 clamp(2.8rem, 5.4vw, 4.8rem)/1 var(--display); font-stretch: 125%; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; margin-bottom: .9rem; }
.numbers .n small { font-size: .45em; font-weight: 700; letter-spacing: 0; }
.numbers p { font: 450 .98rem/1.45 var(--display); margin: 0 0 .6rem; }
.numbers cite { display: block; font: italic 400 .85rem/1.4 var(--serif); color: var(--ink-2); }
@media (max-width: 960px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numbers > div:nth-child(2) { border-right: 0; } .numbers > div:nth-child(3) { padding-left: 0; } .numbers > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .numbers { grid-template-columns: minmax(0, 1fr); } .numbers > div, .numbers > div + div { padding: 1.4rem 0; border-right: 0; } .numbers > div + div { border-top: 1px solid var(--line); } }

/* ---------- Scroll story (black band) ---------- */
.story-head { padding-top: clamp(4.5rem, 10vw, 8rem); max-width: 52rem; }
.story-head h2 { color: var(--on-night); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 5rem); }
.story__steps { padding-block: 10vh 30vh; }
.story__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.story__step .n { font: 800 .8rem/1 var(--display); letter-spacing: .14em; color: var(--gold); margin-bottom: 1.1rem; }
.story__step h3 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-stretch: 116%; font-weight: 780; margin: 0 0 1rem; line-height: 1; color: var(--on-night); }
.js .story__step h3 { color: #6f737a; transition: color .4s ease; }
.js .story__step.is-active h3 { color: var(--on-night); }
.story__step p { color: #c6c8cc; font-size: 1.12rem; max-width: 31rem; }
.story__step .cite { font: 450 .84rem/1.45 var(--display); color: #8d9097; }
.story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; order: 2; }
.story__media { position: relative; width: 100%; height: min(76vh, 640px); }
.story__fig { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.story__fig.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.story__fig > svg, .story__fig > canvas { display: block; width: 100%; height: 100%; background: #08090a; border: 1px solid var(--night-line); }
.story__fig > svg { padding: clamp(.8rem, 4%, 2.2rem); }
.story__fig--photo { background: #08090a; border: 1px solid var(--night-line); padding: clamp(.8rem, 4%, 2.2rem); }
.story__fig--photo img { display: block; flex: none; width: auto; height: auto; max-width: 100%; max-height: calc(100% - 3.6rem); }
.story__fig--photo figcaption { font: 450 .85rem/1.45 var(--display); color: var(--on-night-2); margin-top: .8rem; max-width: 34rem; text-align: center; }
.story__ctl { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .8rem; }
.story__now { font: 700 .76rem/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0; min-height: 1.4em; }
.story__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--night-line); }
.story__progress span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
@media (max-width: 860px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__stage { position: sticky; top: 4.6rem; height: 46vh; height: 46svh; z-index: 3; background: var(--night); padding-block: .6rem; order: 0; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .story__media { height: calc(100% - 2.2rem); }
  .story__fig--photo { padding: .6rem; }
  .story__fig--photo img { max-height: calc(100% - 2.6rem); }
  .story__fig--photo figcaption { font-size: .76rem; margin-top: .4rem; }
  .story__steps { padding-block: 4vh 30vh; position: relative; z-index: 1; }
  .story__step { min-height: 56vh; justify-content: flex-start; padding-top: 4vh; }
}
.motion-btn { font: 650 .74rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-2); background: none; border: 1px solid var(--night-line); border-radius: 2px; padding: .55rem .85rem; min-height: 36px; cursor: pointer; white-space: nowrap; }
.motion-btn:hover { color: var(--on-night); border-color: rgba(255, 255, 255, .4); }
.motion-btn--light { color: var(--ink-2); border-color: var(--line); }
.motion-btn--light:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 760px) { .motion-btn { min-height: 44px; } }
html:not(.js) [data-motion], html:not(.js) .story__stage, html:not(.js) .hud, html:not(.js) .hint-hover, html:not(.js) .hint-touch, html:not(.js) canvas.sim, html:not(.js) .model .controls, html:not(.js) .orchard canvas { display: none; }
html:not(.js) .story { grid-template-columns: minmax(0, 1fr); }

/* ---------- Photo sheet (NCUR 2026) ---------- */
.facts { font: 600 .78rem/1.7 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: -.4rem 0 1.6rem; }
.night .facts { color: var(--on-night-2); }
@media (min-width: 701px) { .facts span { white-space: nowrap; } }
.acts { counter-reset: frame; margin-top: 2rem; }
.act { display: flex; align-items: center; gap: .6rem; font: 700 .78rem/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 2.2rem 0 1rem; padding-top: .9rem; border-top: 1.5px solid var(--ink); }
.act:first-child { margin-top: 0; }
.sheet { display: flex; gap: 12px; list-style: none; margin: 0 0 16px; padding: 0; align-items: flex-start; }
.sheet > li { margin: 0; flex: var(--ar) 1 0; counter-increment: frame; min-width: 0; }
.sheet figure { margin: 0; }
.sheet a { display: block; width: 100%; overflow: hidden; background: var(--paper-2); }
.sheet img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; transition: transform .9s var(--ease); }
.sheet a:hover img { transform: scale(1.035); }
.sheet figcaption { font: 450 .86rem/1.45 var(--display); color: var(--ink-2); margin-top: .55rem; }
.sheet figcaption::before { content: counter(frame, decimal-leading-zero); font: 800 .74rem var(--display); color: var(--gold-ink); margin-right: .55rem; }
.sheet > li.sheet__note { counter-increment: none; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: .7rem; background: var(--ink); color: var(--on-night-2); padding: clamp(1rem, 3vw, 2rem); font: 450 .95rem/1.5 var(--display); margin-bottom: 2.4rem; }
.sheet__note p { margin: 0; max-width: 26rem; }
.sheet__kicker { font: 700 .74rem/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.sheet__title { font: 400 clamp(1.35rem, 2.3vw, 2rem)/1.22 var(--serif); color: var(--on-night); }
@media (max-width: 700px) {
  .sheet { flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
  .sheet > li { flex: var(--ar) 1 calc(var(--ar) * 9rem); }
  .sheet > li.sheet__note { flex-basis: 100%; margin-bottom: 0; }
}

/* Photo viewer */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: transparent; color: var(--on-night); }
.lb::backdrop { background: rgba(10, 11, 12, .96); }
.lb__in { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .6rem; padding: .8rem var(--gutter) 1rem; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font: 700 .8rem var(--display); letter-spacing: .08em; color: var(--on-night-2); }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; touch-action: pan-y pinch-zoom; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; touch-action: pan-y pinch-zoom; }
html.lb-open { overflow: hidden; }
.lb__cap { font: 450 .95rem/1.5 var(--display); color: var(--on-night-2); text-align: center; margin: 0 auto; max-width: 46rem; }
.lb button { font: 650 .9rem var(--display); color: var(--on-night); background: rgba(255, 255, 255, .08); border: 1px solid var(--night-line); border-radius: 2px; min-width: 44px; min-height: 44px; padding: 0 .9rem; cursor: pointer; }
.lb button:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 0; } .lb__next { right: 0; }
@media (max-width: 600px) {
  .lb__stage { position: static; }
  .lb__prev, .lb__next { top: auto; bottom: 1rem; transform: none; }
  .lb__prev { left: var(--gutter); } .lb__next { right: var(--gutter); }
  .lb__cap { padding-bottom: 3.6rem; }
}

/* ---------- Publications, news, FAQ ---------- */
.pubs { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.pubs > li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 15rem); gap: .5rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); margin: 0; align-items: baseline; }
.pubs .yr { font: 800 1.05rem/1.3 var(--display); font-stretch: 120%; font-variant-numeric: tabular-nums; }
.pubs .ttl { font: 400 1.22rem/1.4 var(--serif); margin: 0; }
.pubs .ttl a { text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s var(--ease); }
.pubs .ttl a:hover { background-size: 100% 2px; background-color: transparent; }
.pubs .src { font: 450 .9rem/1.45 var(--display); color: var(--ink-2); }
.pubs .src i { font-family: var(--serif); font-size: 1.04em; color: var(--ink); }
@media (max-width: 760px) { .pubs > li { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }
.news { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.news > li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); margin: 0; }
@media (max-width: 640px) { .news > li { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }
.date { font: 700 .82rem/1.6 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tag-upcoming { font: 700 .7rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: .25rem .45rem; margin-left: .3rem; white-space: nowrap; vertical-align: .12em; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); border-top: 1.5px solid var(--ink); }
.faq > div { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.faq h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-stretch: 104%; margin: 0 0 .6rem; }
.faq p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Call to join (black band) */
.cta { position: relative; overflow: hidden; }
.cta__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.cta h2 { font-size: clamp(2.8rem, 8vw, 7rem); font-stretch: 125%; font-weight: 820; line-height: .92; margin: 0; color: var(--on-night); }
.cta h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; font-stretch: 100%; color: var(--gold); }
.cta p { color: var(--on-night-2); }
@media (max-width: 860px) { .cta__in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Inner page header ---------- */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero__in > div { min-width: 0; }
.page-hero--short .page-hero__in { grid-template-columns: minmax(0, 1fr); }
.crumb { font: 650 .76rem/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 1.4rem; }
.crumb a { color: var(--ink-2); text-decoration-color: var(--line); }
.crumb a:hover { color: var(--ink); text-decoration-color: var(--gold); }
.page-hero h1 { font-size: clamp(2.2rem, 6.8vw, 6.2rem); font-weight: 820; font-stretch: 125%; letter-spacing: -.02em; line-height: .92; margin-bottom: 1.4rem; overflow-wrap: break-word; }
@media (max-width: 480px) { .page-hero h1 { font-stretch: 112%; font-size: 2.45rem; } }
.page-hero p { font-size: clamp(1.15rem, 1.5vw, 1.38rem); line-height: 1.5; color: var(--ink-2); max-width: 38rem; margin: 0; }
.page-hero__art { margin: 0; position: relative; }
.page-hero__art > svg { display: block; width: 100%; height: auto; max-height: 15rem; }
.page-hero__art figcaption { font: 450 .8rem/1.45 var(--display); color: var(--ink-2); margin-top: .7rem; max-width: none; }
.page-hero__photo img, .page-hero__plate img { display: block; width: 100%; height: auto; }
.page-hero__plate { position: relative; }
.page-hero__plate .label { margin: -1.4rem 0 0 1rem; position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .page-hero h1, .page-hero p, .page-hero .crumb { animation: fade-up .9s var(--ease) both; }
  .page-hero p { animation-delay: .12s; }
  .page-hero__art { animation: fade-up 1.1s var(--ease) .15s both; }
}
@media (max-width: 860px) { .page-hero__in { grid-template-columns: minmax(0, 1fr); } .page-hero__art > svg { max-height: 10rem; } }

/* ---------- Article pages ---------- */
.article { padding-block: clamp(3rem, 7vw, 5.5rem); }
.article h2 { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.article h2:first-child { margin-top: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); padding: 0; list-style: none; border-block: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 48px; padding: .5rem 1.1rem .5rem 0; margin-right: 1.1rem; font: 600 .92rem/1 var(--display); text-decoration: none; color: var(--ink-2); }
.toc a::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--ink); margin-right: .55rem; }
.toc a:hover { color: var(--ink); }
.links a, .pi .sans a, .contact-grid p a { display: inline-block; padding-block: .45rem; }
.key { font-size: 1rem; color: var(--ink-2); }
.key b { font-family: var(--display); color: var(--ink); font-weight: 650; }
figure { margin: 2rem 0; }
figcaption { font: 450 .92rem/1.5 var(--display); color: var(--ink-2); margin-top: .75rem; max-width: 46rem; }
figcaption b { color: var(--ink); font-weight: 700; }
.fig-panel { background: #fff; border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); }
.structures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem 1rem; }
@media (max-width: 700px) { .structures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .structures svg text { font-size: 22px; } }
.structures > div { text-align: center; font: 450 .9rem/1.35 var(--display); }
.structures svg { width: 100%; height: auto; display: block; }
.diagram { width: 100%; height: auto; display: block; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
figure > a { display: block; width: fit-content; max-width: 100%; overflow: hidden; }
figure img { display: block; }
.sec { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.sec > * { grid-column: 1; }
.sec > figure, .sec > .table-wrap, .sec > .split, .sec > .species { grid-column: 1 / -1; }
.sec > .note { grid-column: 2; grid-row: 2 / span 3; font: 450 .92rem/1.5 var(--display); color: var(--ink-2); border-top: 1.5px solid var(--ink); padding-top: .8rem; margin-top: .3rem; }
.note b { display: block; color: var(--ink); font-weight: 700; margin-bottom: .35rem; }
.note p { margin: 0 0 .5rem; }
@media (max-width: 900px) { .sec { grid-template-columns: minmax(0, 1fr); } .sec > .note { grid-column: 1; grid-row: auto; margin-bottom: 1.5rem; } }
.sec + .sec { margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.sec > h2 { margin-top: 0; }
.fig-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: center; }
.fig-row figcaption { margin-top: 0; }
.fig-row--narrow { grid-template-columns: minmax(0, 26.25rem) minmax(0, 24rem); justify-content: start; column-gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 760px) { .fig-row { grid-template-columns: minmax(0, 1fr); } }
.fig-arena svg { display: block; width: 100%; max-width: 560px; height: auto; }
@media (max-width: 700px) { .fig-arena svg [font-size="17"] { font-size: 24px; } .fig-arena svg [font-size="16"] { font-size: 22px; } .tube-labels { font-size: 24px; } }
.doi { font: 500 .82em var(--display); letter-spacing: .02em; }
/* Species plate at the head of a research section */
.species { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0; margin: 0 0 2.6rem; background: var(--night); }
.species__img { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.species__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.species figcaption { margin: 0; padding: clamp(1.2rem, 3vw, 2rem); display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem; color: var(--on-night-2); max-width: none; }
.species .sp { font: italic 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.15 var(--serif); color: var(--on-night); }
.species .sp .auth { font-style: normal; font-size: .6em; color: var(--on-night-2); }
.species .common { font: 700 .8rem/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.species .cr { font: 450 .74rem/1.4 var(--display); color: #8d9097; margin-top: .6rem; }
.species .cr a { text-decoration-thickness: 1px; }
@media (max-width: 760px) { .species { grid-template-columns: minmax(0, 1fr); } }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.2rem 0 2rem; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { text-align: left; font: 700 1rem/1.4 var(--display); padding-bottom: .7rem; }
th, td { text-align: left; vertical-align: top; padding: .75rem .9rem .75rem 0; border-bottom: 1px solid var(--line); }
th { font: 700 .78rem/1.35 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
th:first-child, td:first-child { padding-left: 0; }
.table-narrow { max-width: 26rem; }
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  table.stack td { display: block; border: 0; padding: .12rem 0; }
  table.stack td:first-child { font-weight: 600; }
  table.stack td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font: 450 .88rem var(--display); color: var(--ink-2); }
}

/* References, people */
.refs { list-style: none; padding: 0; }
.refs li { padding-left: 1.6rem; text-indent: -1.6rem; margin-bottom: 1rem; }
.refs a { overflow-wrap: anywhere; }
.year { display: flex; align-items: baseline; gap: 1rem; font: 820 1.6rem/1 var(--display); font-stretch: 125%; margin: 2.6rem 0 1.2rem; padding-top: 1rem; border-top: 1.5px solid var(--ink); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2rem 2.5rem; list-style: none; padding: 0; margin: 1.2rem 0 2.5rem; }
.people-grid li { margin: 0; border-top: 1.5px solid var(--ink); padding-top: 1.1rem; }
.people-grid b { display: block; font: 750 1.18rem/1.2 var(--display); font-stretch: 106%; margin-bottom: .25rem; }
.people-grid .role { display: block; font: 600 .74rem/1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .6rem; }
.people-grid p { font-size: 1rem; margin: 0; color: var(--ink-2); }
.people-grid li.person { display: grid; grid-template-columns: 5rem minmax(0, 1fr); column-gap: 1.1rem; align-content: start; }
.people-grid li.person > * { grid-column: 2; }
.people-grid li.person > .avatar { grid-column: 1; grid-row: 1 / span 3; }
.avatar { display: block; width: 5rem; height: 5rem; object-fit: cover; border-radius: 2px; background: var(--paper-2); }
.avatar--initials { display: grid; place-items: center; font: 800 1.1rem/1 var(--display); font-stretch: 120%; letter-spacing: .04em; color: var(--ink-2); border: 1px solid var(--line); }
.people-grid b a { color: inherit; }
.pi { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 5rem); }
@media (max-width: 860px) { .pi { grid-template-columns: minmax(0, 1fr); } }
.pi h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0 0 1rem; }
.pi > .prose { padding-top: 0; }
.pi--lm { margin-top: clamp(4rem, 7vw, 6rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.pi-photo { display: block; width: min(100%, 15rem); height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 1.6rem; background: var(--paper-2); }
@media (max-width: 860px) { .pi-photo { width: 11rem; } }
.photo-credit { font: 450 .84rem/1.5 var(--display); color: var(--ink-2); margin-top: 1.5rem; }
.lm-wins { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.2rem 2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.lm-wins li { margin: 0; font: 450 .95rem/1.45 var(--display); color: var(--ink-2); }
.lm-wins b { display: block; color: var(--ink); font-weight: 750; margin-bottom: .25rem; }
.role { font-style: normal; }
address { font-style: normal; }
.plain { margin: 0 0 1.5rem; }
.plain dt { font: 700 .78rem/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; margin-top: 1.5rem; }
.plain dt:first-child { margin-top: 0; }
.plain dd { margin: .35rem 0 0; }
.awards { list-style: none; padding: 0; margin: 1.2rem 0 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem 2rem; }
.awards li { margin: 0; border-top: 1.5px solid var(--ink); padding-top: 1rem; font: 450 .98rem/1.5 var(--display); color: var(--ink-2); }
.awards b { display: block; font: 750 1.15rem/1.2 var(--display); color: var(--ink); margin-bottom: .4rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 2rem; }
.contact-grid > div { border-top: 1.5px solid var(--ink); padding-top: 1rem; }
.contact-grid h2 { font-size: 1.3rem; font-stretch: 106%; margin: 0 0 .6rem; }
.big-link { font: 780 clamp(1.5rem, 4vw, 3rem)/1.1 var(--display); font-stretch: 118%; overflow-wrap: anywhere; }
.clearfix::after { content: ""; display: block; clear: both; }
.credits { list-style: none; padding: 0; border-top: 1.5px solid var(--ink); }
.credits li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; font: 450 .95rem/1.5 var(--display); color: var(--ink-2); }
.credits img { width: 7rem; height: 5rem; object-fit: cover; }
.credits b { color: var(--ink); }

/* Classroom models */
.model { border-top: 1.5px solid var(--ink); padding-top: .6rem; margin-top: 3rem; }
.controls { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; font: 450 1rem var(--display); margin: .9rem 0; }
.controls fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
.controls legend { font-weight: 700; padding: 0; margin-right: .5rem; float: left; }
.controls label { display: inline-flex; gap: .35rem; align-items: center; }
.controls select { font: inherit; padding: .4rem .5rem; border: 1px solid var(--ink-2); border-radius: 2px; background: #fff; }
@media (max-width: 640px) {
  .controls fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; width: 100%; }
  .controls legend { float: none; padding: 0 0 .25rem; }
  .controls label { min-height: 44px; }
  .controls .button, .controls select { min-height: 44px; }
}
.button { font: 650 .95rem var(--display); padding: .65rem 1.15rem; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; border-radius: 2px; min-height: 42px; }
.button:hover { background: var(--gold); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--paper-2); }
.button[aria-disabled] { opacity: .55; cursor: default; }
canvas.sim { display: block; width: 100%; background: #fff; border: 1px solid var(--line); }
#tube { height: 150px; }
#trace { height: 150px; }
.chart { max-width: 560px; }
@media (max-width: 640px) { #dr text { font-size: 19px; } }
.result { font: 450 1rem var(--display); font-variant-numeric: tabular-nums; }
.runs td, .runs th { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .runs, .runs th { font: 450 .875rem/1.3 var(--display); }
  .runs th { font-weight: 700; }
  .runs th, .runs td { padding: .45rem .45rem .45rem 0; }
}

/* ---------- The orchard: interactive model on a black band ---------- */
.orchard { position: relative; min-height: min(92vh, 860px); background: var(--night); color: var(--on-night); overflow: hidden; isolation: isolate; }
.orchard canvas#orchard { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; touch-action: pan-y pinch-zoom; cursor: crosshair; }
.orchard > .wrap { pointer-events: none; }
.orchard__copy { position: relative; z-index: 2; padding-top: clamp(3.5rem, 8vh, 6rem); padding-bottom: 8.5rem; max-width: 34rem; pointer-events: none; }
.orchard__copy a, .orchard__copy button { pointer-events: auto; }
.orchard__copy h2 { color: var(--on-night); }
.orchard__copy p { color: var(--on-night-2); }
.hero__hint { font: 450 .86rem/1.6 var(--display); color: var(--on-night-2); margin: 1.4rem 0 0; max-width: 32rem; }
.hero__status { display: block; color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.hero__status::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); margin-right: .55rem; vertical-align: .05em; animation: pulse 2.4s ease-out infinite; }
.motion-paused .hero__status::before { animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 187, 0, .55); } 70% { box-shadow: 0 0 0 .5rem rgba(255, 187, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 187, 0, 0); } }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
.hud { position: absolute; z-index: 3; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); bottom: 1.2rem; width: min(31rem, calc(100% - 2 * var(--gutter))); background: rgba(14, 15, 17, .88); border: 1px solid var(--night-line); padding: .75rem .85rem .8rem; font: 450 .88rem/1.4 var(--display); color: var(--on-night-2); }
.hud__row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .9rem; }
.hud__sys { display: flex; gap: .4rem; justify-self: end; }
.hud__label { white-space: nowrap; }
.hud__count { font: 800 1.6rem/1 var(--display); font-stretch: 120%; color: var(--on-night); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud__count small { font-size: .85rem; font-weight: 500; color: var(--on-night-2); }
.hud__ctl { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .6rem; }
.seg { display: inline-flex; border: 1px solid var(--night-line); padding: 3px; }
.seg button, .hud__btn { font: 600 .85rem/1 var(--display); color: var(--on-night-2); background: none; border: 0; border-radius: 0; padding: .55rem .8rem; cursor: pointer; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.hud__btn { border: 1px solid var(--night-line); }
.hud__btn:hover, .seg button:hover { color: var(--on-night); }
.seg button[aria-pressed="true"]:hover { color: var(--ink); }
.hud__btn--icon { min-width: 38px; padding: .55rem; font-size: 1rem; }
.hud__note { margin: .55rem 0 0; font-size: .78rem; color: #9a9da3; }
.hud__note b { color: var(--on-night); font-weight: 700; }
@media (max-width: 1100px) {
  .orchard { display: flex; flex-direction: column; min-height: 0; }
  .orchard > .wrap { flex: 1 0 auto; width: 100%; }
  .orchard__copy { padding-bottom: 1.5rem; }
  .orchard__field { height: min(56vh, 460px); }
  .hud { position: relative; left: auto; right: auto; bottom: auto; margin: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) 1.2rem auto; }
}
@media (min-width: 1101px) { .orchard__field { display: none; } }
/* without JavaScript the model can't run, so the band shrinks to its text */
html:not(.js) .orchard { min-height: 0; }
html:not(.js) .orchard canvas#orchard, html:not(.js) .orchard__field { display: none; }
html:not(.js) .orchard__copy { padding-bottom: clamp(3rem, 7vh, 5rem); }
@media (max-width: 760px) {
  .hud { width: auto; margin: 0 var(--gutter) .8rem; padding: .6rem .7rem .65rem; }
  .hud__count { font-size: 1.3rem; }
  .hud__row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
  .hud__sys { margin-left: auto; }
  .hud__label { font-size: .78rem; }
  .seg button, .hud__btn { padding: .5rem .5rem; min-height: 44px; font-size: .8rem; }
  .hud__btn--icon { min-width: 44px; }
  .hud__note { margin-top: .45rem; font-size: .74rem; line-height: 1.35; }
  .hud__note-sim { display: none; }
}

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--on-night-2); font: 450 .95rem/1.6 var(--display); }
.foot__mark { position: relative; padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.foot__mark::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; border-top: 1px solid var(--night-line); }
.foot__mark p { font: 850 clamp(2.6rem, 9vw, 8.5rem)/.9 var(--display); font-stretch: 125%; letter-spacing: -.01em; text-transform: uppercase; color: var(--on-night); margin: 0; }
.foot__mark p span { color: var(--gold); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 2rem; padding-block: 2.6rem 2.4rem; }
@media (max-width: 760px) { .foot__in { grid-template-columns: minmax(0, 1fr); } }
.foot a { color: var(--on-night); text-decoration-color: rgba(255, 187, 0, .6); }
.foot a:hover { text-decoration-color: var(--gold); }
.foot p { margin: 0 0 .4rem; }
.foot__h { font: 700 .74rem/1.6 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night); margin: 0 0 .7rem; }
.foot__nav { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.foot__nav li { margin: 0; break-inside: avoid; }
.foot__nav a { display: inline-block; padding-block: .3rem; }
@media (max-width: 760px) { .foot__nav a { padding-block: .6rem; } }
.foot__base { position: relative; padding-block: 1.2rem 1.8rem; font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--night-line); }

/* ---------- Scroll motion ----------
   Content is visible at rest. Where the browser supports scroll-driven animations, plates and
   blocks settle into place as they enter; elsewhere nothing moves. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .program__img, .species__img, .wipe { animation: wipe-in linear both; animation-timeline: view(); animation-range: entry 5% cover 35%; }
    .program__img img, .species__img img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes reveal-in { from { transform: translateY(28px); } to { transform: none; } }
@keyframes wipe-in { from { clip-path: inset(7% 7% 7% 7%); } to { clip-path: inset(0 0 0 0); } }
@keyframes drift { from { transform: scale(1.1) translateY(-2.5%); } to { transform: scale(1.1) translateY(2.5%); } }
@media (prefers-reduced-motion: reduce) {
  .sheet img, .program__img img { transition: none; }
  .hero__status::before { animation: none; }
}

/* ---------- Print: ink on white, no controls ---------- */
@media print {
  :root { --on-night: #111214; --on-night-2: #4d5057; --night: #fff; --night-2: #fff; --paper: #fff; }
  .top { position: static; }
  .story__step p, .story__step h3 { color: #111214 !important; }
  .btn, .pill { background: none !important; color: #111214 !important; border: 1px solid #111214; }
  .menu-btn, .nav, .skip, .toc, .hud, .hero__hint, .story__stage, [data-motion], .lb, .orchard canvas, .foot__mark { display: none !important; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__plate { min-height: 0; height: 10cm; }
  h2, h3, .year { break-after: avoid; }
  figure, .refs li, .people-grid li, .program { break-inside: avoid; }
}
