/* Hallmark · shape: through the lens, the worm first · genre: atmospheric · theme: custom (inherits neeuman.com and the biology page's tokens; the field is the recording's own navy) · job: understand, then talk to us · idea: "the screen is the microscope: scroll into the lens, then follow one loop of a living nervous system" · vibe: "a dark microscope room, hushed, exact"
 * paper: oklch(18.6% 0.059 263), the recording's navy · accent: the light ink · display: Manrope 400 · body: Manrope · outlier: IBM Plex Mono for counts only · hero: Poster, the lens edge to edge, head bottom-left · nav: inherited neeuman.com header · footer: inherited neeuman.com footer · imagery: the team's real-time recording, cropped clear of its readout · signature: the lens zoom, scrolling carries the visitor into the field stop
 * axes: dark/grotesk-light/cool · posture: drenched, navy · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R4 V5 · weakest: R, one recording carries the page; a second camera or a touch close-up is the material ask */
/* Hallmark · waive 75 · inherited header and footer chrome at 8 to 10px · identical on every page of neeuman.com */
/* Hallmark · waive 49b · inherited footer link wraps at 375px · shared by every page of the site */
/* Hallmark · answered F4 · one primary recipe from the biology page */

:root {
  --wl-navy: oklch(18.6% 0.059 263);
  --wl-navy-2: oklch(22% 0.06 263);
  --wl-navy-scrim: oklch(18.6% 0.059 263 / 0.92);
  --wl-navy-clear: oklch(18.6% 0.059 263 / 0);
  --wl-lens: oklch(86% 0.04 240);
  --wl-text-count: clamp(3rem, 4.4vw + 1rem, 6rem);
}
@supports not (color: oklch(50% 0 0)) {
  :root { --wl-navy: #05112d; --wl-navy-2: #0a1838; --wl-navy-scrim: #05112deb; --wl-navy-clear: #05112d00; --wl-lens: #b3cde6; }
}

.wl-main { background: var(--wl-navy); }
.biology-page .wl-main :is(a, button, video):focus-visible { outline: 3px solid var(--bi-focus); outline-offset: 3px; box-shadow: 0 0 0 7px var(--wl-navy); }
.wl-main :is(a, button):active { transform: translateY(1px); }
.wl-main .bi-head h2 { max-width: 15ch; }

/* Hero: the lens edge to edge; scrolling zooms into the field stop. */
.wl-lens-stage { position: relative; isolation: isolate; display: grid; align-items: end; min-height: calc(100svh - var(--bi-header)); overflow: clip; background: var(--wl-navy); }
.wl-lens-film { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 50% 45%; }
.wl-lens-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--wl-navy-scrim) 0%, var(--wl-navy-clear) 52%), linear-gradient(0deg, var(--wl-navy-scrim) 0%, var(--wl-navy-clear) 42%); pointer-events: none; }
.wl-hero-copy { padding-block: var(--bi-space-3xl) var(--bi-space-2xl); }
.wl-crumbs { display: flex; gap: var(--bi-space-xs); font-size: var(--bi-text-sm); color: var(--bi-ink-2); margin-bottom: var(--bi-space-lg); }
.wl-crumbs a { color: inherit; text-underline-offset: 0.25em; }
.wl-hero h1 { font-size: var(--bi-text-display); line-height: 1; letter-spacing: -0.055em; max-width: 11ch; }
.biology-page .wl-lede { margin-top: var(--bi-space-xl); font-size: var(--bi-text-lead); line-height: 1.5; color: var(--bi-ink-2); max-width: 36ch; }
.wl-hero .bi-actions { margin-top: var(--bi-space-xl); }
.wl-motion { position: absolute; top: var(--bi-space-lg); right: var(--bi-gutter); z-index: var(--bi-z); }
.wl-lens-line { display: none; }
html.wl-scroll .wl-lens-track { height: 230svh; }
html.wl-scroll .wl-lens-stage { position: sticky; top: var(--bi-header); height: calc(100svh - var(--bi-header)); }
html.wl-scroll .wl-lens-film { transform: scale(calc(1 + var(--z, 0) * 1.7)); }
html.wl-scroll .wl-lens-stage::before { opacity: calc(1 - var(--z, 0) * 1.4); }
html.wl-scroll .wl-hero-copy { opacity: calc(1 - var(--z, 0) * 2.4); transform: translate3d(0, calc(var(--z, 0) * -64px), 0); }
html.wl-scroll .wl-lens-line { display: block; position: absolute; left: 50%; top: 50%; z-index: var(--bi-z); margin: 0; transform: translate(-50%, -50%); font-size: var(--bi-text-section); line-height: 1.04; letter-spacing: -0.045em; color: var(--wl-navy); text-align: center; white-space: nowrap; opacity: calc((var(--z, 0) - 0.55) * 3); pointer-events: none; }

/* Wiring: the connectome's own counts, large. */
.wl-wiring { padding-block: var(--bi-section); background: var(--wl-navy); }
.wl-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: var(--bi-hair) solid var(--bi-rule-strong); }
.wl-counts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--bi-space-sm); padding: var(--bi-space-xl) var(--bi-space-lg) var(--bi-space-xl) 0; border-bottom: var(--bi-hair) solid var(--bi-rule); min-width: 0; }
.wl-counts > div:not(:nth-child(3n + 1)) { padding-left: var(--bi-space-lg); border-left: var(--bi-hair) solid var(--bi-rule); }
.wl-counts dd { margin: 0; font-size: var(--wl-text-count); font-weight: 300; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--bi-ink); }
.wl-counts dt { font-size: var(--bi-text-sm); color: var(--bi-muted); }

/* Loop: a pinned stage; the steps light in turn beside the living worm. */
.wl-loop { background: var(--wl-navy-2); }
.wl-loop-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--bi-space-2xl); align-items: center; max-width: var(--bi-container); margin-inline: auto; padding: var(--bi-section) var(--bi-gutter); }
.wl-loop-lens { overflow: clip; aspect-ratio: 1; width: min(100%, 64svh); justify-self: center; clip-path: circle(48% at 50% 50%); background: var(--wl-lens); }
.wl-loop-film { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.55); transform-origin: 50% 48%; }
.wl-loop-copy h2 { font-size: var(--bi-text-section); line-height: 1.04; letter-spacing: -0.045em; max-width: 12ch; }
.wl-steps { list-style: none; margin: var(--bi-space-xl) 0 0; padding: 0; counter-reset: step; }
.wl-steps li { counter-increment: step; display: grid; grid-template-columns: 3ch 7rem minmax(0, 1fr); gap: var(--bi-space-md); align-items: baseline; padding-block: var(--bi-space-md); border-top: var(--bi-hair) solid var(--bi-rule); }
.wl-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--bi-mono); font-size: var(--bi-text-sm); color: var(--bi-muted); }
.wl-steps b { font-weight: 600; font-size: var(--bi-text-lg); }
.biology-page .wl-steps p { color: var(--bi-ink-2); }
html.wl-scroll .wl-loop-track { height: 380svh; }
html.wl-scroll .wl-loop-stage { position: sticky; top: var(--bi-header); height: calc(100svh - var(--bi-header)); padding-block: var(--bi-space-xl); }
html.wl-scroll .wl-steps li { opacity: 0.32; transition: opacity var(--bi-dur-long) var(--bi-ease), border-color var(--bi-dur-long) var(--bi-ease); }
html.wl-scroll .wl-steps li.is-on { opacity: 1; border-top-color: var(--bi-ink); }

/* Behaviour: three things it does, each with its measured number. */
.wl-behave { padding-block: var(--bi-section); background: var(--wl-navy); }
.wl-acts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bi-gap); margin: 0; padding: 0; }
.wl-acts li { padding-top: var(--bi-space-lg); border-top: var(--bi-hair) solid var(--bi-rule-strong); min-width: 0; }
.biology-page .wl-acts h3 { font-size: var(--bi-text-title); letter-spacing: -0.03em; }
.biology-page .wl-big { margin-top: var(--bi-space-lg); display: flex; align-items: baseline; gap: var(--bi-space-xs); }
.wl-big span { font-size: var(--wl-text-count); font-weight: 300; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.wl-big i { font-style: normal; font-family: var(--bi-mono); font-size: var(--bi-text-sm); color: var(--bi-ink-2); }
.biology-page .wl-acts p:last-child { margin-top: var(--bi-space-md); color: var(--bi-ink-2); max-width: 34ch; }

/* Science: the sources, one line each. */
.wl-science { padding-block: var(--bi-section); background: var(--wl-navy-2); }
.wl-sources { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--bi-gap); margin: 0; padding: 0; border-top: var(--bi-hair) solid var(--bi-rule-strong); }
.wl-sources li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--bi-space-md); padding-block: var(--bi-space-md); border-bottom: var(--bi-hair) solid var(--bi-rule); }
.wl-sources b { font-weight: 600; }
.wl-sources span { color: var(--bi-ink-2); }
.biology-page .wl-note { margin-top: var(--bi-space-xl); font-size: var(--bi-text-sm); color: var(--bi-muted); max-width: 72ch; }
.wl-main .bi-close { background: var(--wl-navy); }
.wl-main .bi-made { background: var(--wl-navy-2); }

@media (max-width: 60rem) {
  .wl-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-counts > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .wl-counts > div:nth-child(even) { padding-left: var(--bi-space-lg); border-left: var(--bi-hair) solid var(--bi-rule); }
  .wl-loop-stage { grid-template-columns: minmax(0, 1fr); gap: var(--bi-space-lg); align-content: center; }
  .wl-loop-lens { width: min(100%, 38svh); }
  .wl-acts, .wl-sources { grid-template-columns: minmax(0, 1fr); }
  .wl-steps li { grid-template-columns: 3ch 5.5rem minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .wl-lens-film { object-position: 50% 35%; }
  html.wl-scroll .wl-lens-line { font-size: 2rem; }
  .wl-loop-copy h2 { font-size: 2rem; }
  .wl-steps p { font-size: var(--bi-text-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .wl-steps li { transition: none; }
}
