/* ==========================================================================
   CHAPTERS — one block per section, in page order.
   Base voice and shared elements live in site.css.
   ========================================================================== */

/* --- 00 · hero ------------------------------------------------------------ */

/* Split hero: statement field left, the object with technical notes right,
 * the record bar underneath. On small screens the same pieces stack:
 * statement, full-bleed object, bar. */
.hero {
  min-block-size: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.hero__split {
  display: grid;
  min-block-size: 0;
}
@media (min-width: 768px) {
  .hero__split { grid-template-columns: minmax(0, 11fr) minmax(0, 14fr); }
}

.hero__matter {
  display: grid;
  gap: clamp(20px, 3.5vh, 36px);
  align-content: center;
  padding: clamp(96px, 14vh, 150px) clamp(20px, 4vw, 88px) clamp(48px, 8vh, 96px);
}
.hero__kicker { color: var(--ink-45); }
.hero__kicker span { color: var(--signal); font-weight: 700; }
.hero__title {
  font-weight: 400;
  font-size: clamp(2.5rem, 1.2rem + 4.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-inline-size: 9.5em;
}
.hero__prose {
  color: var(--ink-70);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 1.55;
}
.hero__action { margin-top: clamp(8px, 2vh, 24px); }
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 10px;
}
.hero__cta svg { transition: translate var(--dur-fast) var(--ease-standard); }
.hero__cta:hover svg { translate: 4px 0; }

.hero__media {
  position: relative;
  min-block-size: 0;
  overflow: hidden;
  /* The object is inspected, not exhibited at a distance: the photograph is
   * zoomed toward the Habitat (scaled around its object-position origin,
   * clipped by the frame). site.js scales the hotspot layer by the same
   * factor around the same origin, so the markers keep riding the object.
   * 1.12 keeps the full object readable — the source crop allows ~14%
   * before the dome or the feet touch the frame. */
  --hero-zoom: 1.12;
}
.hero__media picture, .hero__media img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}
.hero__media img {
  object-fit: cover;
  object-position: 76% 50%;
  transform: scale(var(--hero-zoom, 1));
  transform-origin: 76% 50%;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__media { --hero-zoom: 1.09; }
}

/* The hotspot layer: site.js sizes and offsets it to the cover-cropped
 * image box, so each marker's --x/--y are fractions of the photograph
 * itself — the markers stay attached to the object at every viewport and
 * every crop. Until JS measures, the layer spans the container. */
.hero__spots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__spots .mark { pointer-events: auto; }
/* A short technical leader ties each label chip to its instrument — the
 * annotation reads as one drawn line: label — lead — ring — object. (The
 * three-class selector outweighs the later .mark--l lead rules.) */
.hero__spots .mark .mark__lead {
  left: auto;
  right: 100%;
  inline-size: 24px;
  background: var(--ink-28);
  transform: none;
  transition: none;
}
/* (On phones the lead becomes the annotation connector — see the mobile
 * hero block further down.) */
/* Hero inspection points: coordinates, not buttons. The orange + is the
 * interaction point; around it only hairline orbital geometry with quiet
 * registration ticks — no chip behind the core, the photograph carries it.
 * Hover turns the geometry 45° (the ticks resolve to the diagonals);
 * ACTIVE keeps the 45° — the + reads as × — while a small orange arc
 * sweeps in and locks onto the component. */
.hero__spots .mark { inline-size: 34px; block-size: 34px; }
.hero__spots .mark .mark__ring::before,
.hero__spots .mark .mark__ring::after { opacity: 0.55; }
/* The lock arc: a 90° orange segment sweeping into position on select. */
.hero__spots .mark .mark__arc {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--signal);
  opacity: 0;
  transform: rotate(-135deg);
  transition: opacity 220ms var(--ease-standard),
              transform 340ms var(--ease-standard);
  pointer-events: none;
}
.hero__spots .mark[aria-expanded="true"] .mark__arc {
  opacity: 1;
  transform: rotate(-45deg);
}
html.reduced-motion .hero__spots .mark .mark__arc { transition: none; }

/* Idle signal, quieter than the shared pulse: a static hairline orbit and
 * one very patient outward breath (~7px, then gone). */
.hero__spots .mark .mark__pulse::before {
  inset: -4px;
  border-color: var(--ink-28);
  opacity: 0.25;
  animation: none;
}
.hero__spots .mark:hover .mark__pulse::before { opacity: 0.5; }
.hero__spots .mark .mark__pulse::after { inset: -7px; }
.hero__spots .mark.mark--live .mark__pulse::after {
  animation: pulse-sonar-quiet 4.4s var(--ease-standard) infinite;
}
html.reduced-motion .hero__spots .mark .mark__pulse::after { animation: none !important; }

/* The annotation label: generated from the instrument, not a floating
 * plate — a whisper of backing, the hairline connector, ink that firms up
 * when the pointer arrives. */
.hero__spots .mark__tag {
  background: color-mix(in srgb, var(--canvas) 45%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 3px;
  padding: 4px 7px 2px;
  color: var(--ink-70);
  transition: opacity 200ms var(--ease-standard),
              color 200ms var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
  .hero__spots .mark__tag { opacity: 0.8; }
  .hero__spots .mark:hover .mark__tag,
  .hero__spots .mark:focus-visible .mark__tag,
  .hero__spots .mark[aria-expanded="true"] .mark__tag {
    opacity: 1;
    color: var(--text);
  }
  .hero__spots .mark:hover .mark__lead { background: var(--ink-45); }
}
.hero__spots .mark:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 6px;
  border-radius: 50%;
}


@media (max-width: 767px) {
  /* Phones: an editorial annotation column. The compact orange marker sits
   * ON the component; a hairline connector runs left into the negative
   * space where "01 SEALED ATMOSPHERE" reads as drawn documentation —
   * 01 SEALED ATMOSPHERE ————●. No plates, no oversized buttons; the halo
   * keeps a ~48px touch target around the 26px instrument. */
  .hero__spots .mark { inline-size: 26px; block-size: 26px; }
  /* The connector: ring → left, one hairline. */
  .hero__spots .mark .mark__lead {
    display: block;
    inline-size: calc(8vw + 40px);
    background: var(--ink-28);
    transition: background 200ms var(--ease-standard);
  }
  /* The annotation: index + terminology at the line's end, plateless. */
  .hero__spots .mark .mark__tag {
    display: block;
    opacity: 1;
    left: auto;
    right: calc(100% + 8vw + 48px);
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 2px 0;
    color: var(--ink-70);
    font-size: 0.6rem;
    white-space: nowrap;
  }
  .hero__spots .mark .mark__tag::before {
    content: attr(data-num) " ";
    color: var(--text);
    font-weight: 700;
  }
  .hero__spots .mark[aria-expanded="true"] .mark__lead { background: var(--ink-70); }
  .hero__spots .mark[aria-expanded="true"] .mark__tag { color: var(--text); }
}

/* The record bar: enclosed top AND bottom, so the hero terminates as one
 * complete technical sheet before chapter 01 begins. */
.hero__bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-70);
}
@media (min-width: 768px) {
  .hero__bar { grid-template-columns: 3fr 4fr 3fr 2fr; }
}
.hero__bar > div {
  padding: var(--space-4) clamp(16px, 2.5vw, 40px);
  display: grid;
  gap: var(--space-1);
  align-content: start;
}
.hero__bar > div + div { border-inline-start: 1px solid var(--line); }
.hero__bar-label { color: var(--ink-45); }
.hero__count {
  justify-items: end;
  align-content: center;
}
.hero__count p { font-size: var(--type-lg); color: var(--ink-45); }
.hero__count strong { color: var(--text); font-weight: 700; }

/* Hero reveals get a slower, staged entrance. */
.hero .reveal { transition-duration: 900ms; }
.hero .reveal:nth-child(2) { transition-delay: 120ms; }
.hero .reveal:nth-child(3) { transition-delay: 240ms; }
.hero .reveal:nth-child(4) { transition-delay: 360ms; }

@media (max-width: 767px) {
  /* Mobile: a manifesto opening, not a specification sheet. Label, one
   * dominant H1, a short line, one CTA — then the object, already entering
   * above the fold. The record bar is desktop vocabulary and disappears. */
  .hero { min-block-size: 0; }
  .hero__matter {
    padding: 100px 20px 24px;
    gap: 16px;
  }
  .hero__title {
    font-size: clamp(2.5rem, 11.4vw, 3.15rem);
    max-inline-size: none;
  }
  .hero__prose { font-size: 1.05rem; }
  .hero__action { margin-top: 2px; }
  /* The object is the reward after the headline: a taller frame plus a
   * gentle zoom gives it the viewport without clipping dome or feet. */
  .hero__media {
    aspect-ratio: 3 / 4;
    min-block-size: 0;
    --hero-zoom: 1.08;
  }
  .hero__media img {
    object-position: 72% 50%;
    transform-origin: 72% 48%;
  }
  .hero__bar { display: none; }
}

/* --- 01 · the object / form follows force ---------------------------------
   One chapter, two scales. Macro: the complete organism beside the headline.
   Micro: the structural crop with its annotations and the ledger. */

/* The hero's closed record bar hands over directly: a deliberate pause, not
 * an accidental empty zone. */
.object { padding-block-start: clamp(48px, 7vh, 88px); }

.object__macro {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-bottom: clamp(96px, 16vh, 200px);
}
@media (min-width: 768px) {
  .object__macro { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}
.object__copy { display: grid; gap: clamp(24px, 4vh, 44px); align-content: center; }
.object__note {
  color: var(--ink-45);
  font-size: var(--type-sm);
  letter-spacing: 0.01em;
}
.object__portrait {
  justify-self: end;
  inline-size: min(100%, 560px);
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}
@media (max-width: 767px) {
  /* The object claims the phone: the inspect frame runs nearly edge to
   * edge, so the zoomed state fills the screen's width. */
  .object__portrait { justify-self: center; inline-size: calc(100% + 12px); margin-inline: -6px; }
  .object__portrait figcaption { margin-inline: 6px; }
  .object__macro { margin-bottom: clamp(64px, 10vh, 120px); }
}

/* Click-to-inspect: the closed object; a click enters inspection — the
 * see-through state driven deep into the section between roots, lava,
 * substrate and the vessel transition — and a second click returns. The
 * frame never moves; only the image inside it. The focal point is chosen,
 * not incidental: the origin centres the substrate cross-section. */
.inspect {
  position: relative;
  display: block;
  inline-size: 100%;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  /* Desktop reads a tight structural close-up; tablet pulls back a step. */
  --inspect-zoom: 2.1;
}
.inspect[aria-pressed="true"] { cursor: zoom-out; }
.inspect img {
  transform-origin: 51% 47%;
  transition: opacity 700ms var(--ease-standard),
              transform 1100ms var(--ease-enter);
  will-change: transform;
}
.inspect__xray {
  position: absolute;
  inset: 0;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .inspect:not([aria-pressed="true"]):hover .inspect__xray { opacity: 1; }
}
.inspect[aria-pressed="true"] .inspect__xray { opacity: 1; }
.inspect[aria-pressed="true"] img { transform: scale(var(--inspect-zoom)); }
@media (min-width: 768px) and (max-width: 1023px) {
  .inspect { --inspect-zoom: 1.9; }
}
@media (max-width: 767px) {
  .inspect { --inspect-zoom: 2.0; }
}
html.reduced-motion .inspect img { transition: opacity 700ms var(--ease-standard); }
html.reduced-motion .inspect[aria-pressed="true"] img { transform: scale(1.6); }

/* Inspection loupe: inside the image the system pointer yields to a large
 * warm-white circular cursor with a charcoal + (a − once inspection is
 * open, promising the way back). Driven by transform only, positioned from
 * a rect cached on pointer-enter — no layout reads while moving. */
@media (hover: hover) and (pointer: fine) {
  .inspect { cursor: none; }
  .inspect .inspect__cursor {
    position: absolute;
    left: 0;
    top: 0;
    inline-size: 56px;
    block-size: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: color-mix(in srgb, #F8F7F6 93%, transparent);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--color-ink) 8%, transparent),
      0 4px 14px color-mix(in srgb, var(--color-ink) 14%, transparent);
    opacity: 0;
    pointer-events: none;
    will-change: transform;
    transition: opacity 180ms var(--ease-standard);
    z-index: 4;
  }
  .inspect:hover .inspect__cursor { opacity: 1; }
  /* The glyph: charcoal +, collapsing to − in the inspected state. */
  .inspect__cursor::before,
  .inspect__cursor::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    background: var(--color-ink);
    transition: transform 220ms var(--ease-standard),
                opacity 220ms var(--ease-standard);
  }
  .inspect__cursor::before { inline-size: 16px; block-size: 1.5px; }
  .inspect__cursor::after { inline-size: 1.5px; block-size: 16px; }
  .inspect[aria-pressed="true"] .inspect__cursor::after {
    transform: scaleY(0);
    opacity: 0;
  }
  .inspect:not([aria-pressed="true"]):hover img { transform: scale(1.02); }
}
@media not ((hover: hover) and (pointer: fine)) {
  .inspect .inspect__cursor { display: none; }
}

/* The inspection control lives INSIDE the image on every breakpoint — a
 * small translucent pill over the lower area (legs/floor, never the
 * vessel). Functional annotation, not a CTA: white translucent ground,
 * hairline border, orange mono wording that flips to "return" in the
 * inspected state. site.js words it Click/Tap by input capability. */
.inspect__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  left: 50%;
  bottom: 14px;
  translate: -50% 0;
  padding: 10px 14px 8px;
  border: 1px solid var(--ink-28);
  border-radius: 999px;
  background: color-mix(in srgb, var(--canvas) 62%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--signal);
  pointer-events: none;
  z-index: 3;
  transition: background 220ms var(--ease-standard);
}
.inspect__cta::before {
  content: "+";
  color: var(--signal);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  transition: transform 220ms var(--ease-standard);
}
.inspect[aria-pressed="true"] .inspect__cta { background: color-mix(in srgb, var(--canvas) 82%, transparent); }
.inspect[aria-pressed="true"] .inspect__cta::before { transform: rotate(45deg); }



.object__micro {
  display: grid;
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
}
@media (min-width: 1024px) {
  .object__micro { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); }
}
.object__crop { position: relative; overflow: hidden; }
/* The stage carries the image and its annotations; the note card lives
 * outside it, so opening the note (which grows the figure on phones) can
 * never shift the percentage-anchored callouts off their targets. */
.object__crop-stage { position: relative; }
/* The source photograph leans a fraction; a small counter-rotation inside
 * the clipped frame sets the object upright. The scale hides the corners
 * the rotation would expose. */
.object__crop-stage > img {
  transform: rotate(-2deg) scale(1.07);
  transform-origin: 50% 50%;
}

/* Below the desktop width the structural crop is a photograph, nothing
 * more — the annotation layer only earns its keep with a pointer. */
@media (max-width: 1023px) {
  .object__crop .callout,
  .object__crop .note { display: none; }
}

/* The annotations are live: clicking one expands its technical note. The
 * anchor ring fills with the signal colour on hover and while open. */
.object__crop .callout {
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.object__crop .callout:hover,
.object__crop .callout.is-active { border-color: var(--ink-45); }
.object__crop .callout:hover i,
.object__crop .callout.is-active i {
  background: var(--signal);
  border-color: var(--signal);
}
.object__crop .callout.is-active { color: var(--text); }

/* The expandable technical note: label, one sentence, a quiet sequence
 * control. Same popup family as the inspection panels — pale surface, thin
 * border, small radius, mono metadata, orange only for interaction. On
 * desktop it floats beside the clicked annotation (positioned by JS,
 * clamped inside the figure); on phones it reads below the image. */
.note {
  position: absolute;
  z-index: 5;
  inline-size: min(260px, calc(100% - 20px));
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--color-ink) 10%, transparent);
  padding: 12px 12px 10px;
  display: grid;
  gap: var(--space-2);
  text-align: left;
}
.note__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  color: var(--text);
  font-weight: 700;
}
.note__close {
  color: var(--ink-45);
  padding: 2px 6px;
  transition: color var(--dur-fast) var(--ease-standard);
}
.note__close:hover { color: var(--text); }
.note__text {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-70);
}
.note__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-45);
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
}
.note__nav button {
  padding: 4px 8px 2px;
  color: var(--ink-70);
  transition: color var(--dur-fast) var(--ease-standard);
}
.note__nav button:hover { color: var(--signal); }
@media (max-width: 767px) {
  /* A shallow sheet directly under the image, inside the same frame. */
  .note {
    position: static;
    inline-size: auto;
    margin: 10px 6px 6px;
  }
  .note__nav button { padding: 8px 12px 6px; }
}
.object__ledger { display: grid; gap: var(--space-6); padding-bottom: clamp(8px, 2vh, 24px); }
.object__origin {
  display: grid;
  gap: var(--space-2);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
  color: var(--ink-70);
  max-inline-size: 300px;
}
.object__origin div { display: flex; justify-content: space-between; gap: var(--space-4); }
.object__origin dt { color: var(--ink-45); }
@media (max-width: 640px) {
  /* All four annotations stay interactive on phones; the chips shrink a
   * step instead of disappearing. */
  .object__crop .callout { padding: 4px 6px 2px; }
}

/* --- 02 · nature → structure ----------------------------------------------
   A comparison instrument: one principle examined through three aligned
   states. The story and the stage sequence sit left; the specimen-scale
   visual field dominates the right. */

.nature__split {
  display: grid;
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
  /* One shared frame width for the visual, its metadata and — on stacked
   * layouts — the state selector, so the module reads as one instrument. */
  --nature-frame: min(100%, calc(clamp(440px, 76svh, 900px) * 0.703));
}
@media (min-width: 1024px) {
  .nature__split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

.nature__side {
  display: grid;
  gap: clamp(20px, 3.5vh, 36px);
  align-content: start;
}
@media (min-width: 1024px) {
  .nature__side { position: sticky; top: 96px; }
}

/* The three stages of one experiment: index, name, one line of reading.
 * Not buttons — rows in a research sequence, divided by hairlines, the
 * active row flagged by an orange rule and index. */
.nature__stages {
  border-top: 1px solid var(--line);
  margin-top: clamp(8px, 2vh, 20px);
}
.stage {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--space-3);
  inline-size: 100%;
  text-align: left;
  padding: clamp(14px, 2.2vh, 20px) 0 clamp(14px, 2.2vh, 22px);
  border-bottom: 1px solid var(--line);
}
.stage::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(-1 * clamp(12px, 1.4vw, 20px));
  inset-block: 10px;
  inline-size: 2px;
  background: transparent;
  transition: background var(--dur-fast) var(--ease-standard);
}
.stage__index {
  color: var(--ink-28);
  font-weight: 700;
  padding-top: 3px;
  transition: color var(--dur-fast) var(--ease-standard);
}
.stage__body { display: grid; gap: 4px; }
.stage__name {
  font-size: var(--type-lg);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-45);
  transition: color var(--dur-fast) var(--ease-standard);
}
.stage__text {
  font-size: var(--type-sm);
  line-height: 1.45;
  color: var(--ink-28);
  transition: color var(--dur-fast) var(--ease-standard);
}
.stage:hover .stage__name { color: var(--ink-70); }
.stage.is-active::before { background: var(--signal); }
.stage.is-active .stage__index { color: var(--signal); }
.stage.is-active .stage__name { color: var(--text); }
.stage.is-active .stage__text { color: var(--ink-70); }

/* The guidance cue: a small outlined control on each row — thin pale
 * outline, transparent fill, mono voice, orange only when the state is the
 * one in view. Unmistakably clickable, never an ecommerce button. */
.stage__cue {
  position: absolute;
  right: 0;
  top: clamp(15px, 2.3vh, 21px);
  padding: 5px 10px 3px;
  border: 1px solid var(--ink-28);
  border-radius: 3px;
  color: var(--ink-45);
  background: transparent;
  transition: color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.stage__cue::before { content: "View"; }
.stage:hover .stage__cue { color: var(--ink-70); border-color: var(--ink-45); }
.stage.is-active .stage__cue { color: var(--signal); border-color: var(--signal); }
.stage.is-active .stage__cue::before { content: "In view"; }
@media (min-width: 1024px) {
  /* Reserve the cue's lane so row text never runs beneath it. */
  .stage { padding-inline-end: 104px; }
}

/* The visual field: no card, no border — the image with two quiet rows of
 * technical metadata above and below it. */
.nature__field {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}
.nature__meta,
.nature__ref {
  inline-size: var(--nature-frame);
  color: var(--ink-45);
}
.nature__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}
.nature__stage {
  position: relative;
  inline-size: var(--nature-frame);
}
/* The white pill on the image announces its three layers and steps toward
 * the computational structure; it retires once the structure is in view. */
.stage__next {
  position: absolute;
  left: 50%;
  bottom: 14px;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px 9px;
  border: 1px solid var(--ink-28);
  border-radius: 999px;
  background: var(--color-off-white);
  color: var(--signal);
  font-weight: 700;
  z-index: 3;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--color-ink) 12%, transparent);
  transition: transform var(--dur-fast) var(--ease-standard),
              opacity 200ms var(--ease-standard);
}
.stage__next:hover { transform: translateX(0) scale(1.04); }
.stage__next:active { transform: scale(0.96); }
.stage__next[hidden] { display: none; }
.nature__stage img { transition: opacity 420ms var(--ease-standard); }
.nature__stage img:not(:first-child) { position: absolute; inset: 0; }
.nature__stage img:not(.is-active) { opacity: 0; }

/* The one-line reading of the active state, shown under the image on
 * stacked layouts; on desktop the stage rows carry their own reading. */
.nature__active { display: none; }

@media (max-width: 1023px) {
  /* Stacked: chapter label, headline, then the three-state selector — the
   * interaction announces itself before any reading — then the field and
   * one line for the active state. The desktop subtitle disappears: the
   * conceptual explanation lives inside the selected state instead. */
  .nature__side { display: contents; }
  /* Tabs and image are ONE instrument: no gap between the rail and the
   * frame — the tab bar caps the image, square where they meet, rounded
   * where they face the page. */
  .nature__split {
    grid-template-areas: "head" "stages" "field";
    gap: 0;
  }
  .nature__side > .statement {
    grid-area: head;
    margin-bottom: clamp(20px, 4vh, 32px);
  }
  .nature__side > .prose { display: none; }
  .nature__field { grid-area: field; }
  /* The image leads the field so it sits directly under the tab bar; the
   * source/state metadata reads beneath it instead. */
  .nature__stage {
    order: -1;
    border-radius: 0 0 var(--image-radius) var(--image-radius);
    overflow: hidden;
  }

  /* On wider stacked layouts (portrait tablets) the chapter voice grows. */
  .nature__side > .statement { font-size: clamp(1.85rem, 5.4vw, 3.1rem); }

  /* One genuine tab bar: a single recessed rail holding three equal
   * segments — mono index above the term, the active segment lifted to
   * warm white with the travelling orange indicator beneath it. Reads as
   * ONE navigation instrument, not three floating numbers. */
  .nature__stages {
    grid-area: stages;
    margin-top: 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--image-radius) var(--image-radius) 0 0;
    overflow: hidden;
    /* The rail sits in the pale mineral-sand family — the quiet secondary
     * interface tone — never the blue-leaning mist. */
    background: var(--surface-sand);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    inline-size: var(--nature-frame);
    justify-self: center;
  }
  .stage {
    grid-template-columns: none;
    justify-items: center;
    gap: 6px;
    padding: 14px 6px 16px;
    border-bottom: 0;
    min-block-size: 64px;
    align-content: center;
    transition: background 260ms var(--ease-standard);
  }
  .stage.is-active { background: var(--color-off-white); }
  .stage + .stage { border-inline-start: 1px solid var(--line); }
  .stage::before { display: none; }
  .stage__cue { display: none; }
  .stage__index { padding-top: 0; }
  .stage__text { display: none; }
  .stage__name {
    font-size: 0.9rem;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0;
    color: var(--ink-70);
  }
  .stage.is-active .stage__name { color: var(--text); }
  /* One travelling orange rule under the active cell instead of a per-cell
   * flag: switching states reads as progression, biology → force →
   * computation. */
  .nature__stages { position: relative; }
  .nature__stages::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    inline-size: calc(100% / 3);
    block-size: 2px;
    background: var(--signal);
    transform: translateX(calc(var(--tab, 0) * 100%));
    transition: transform 340ms var(--ease-standard);
  }
  html.reduced-motion .nature__stages::after { transition: none; }

  /* Reserved measure keeps the module geometrically stable while the
   * dynamic title crossfades between states. */
  .nature__side > .statement { min-block-size: 2.1em; }
  [data-nature-title], [data-nature-sub] {
    transition: opacity 200ms var(--ease-standard);
  }
  .is-swapping { opacity: 0 !important; }

  .nature__active {
    display: block;
    justify-self: start;
    border-left: 2px solid var(--signal);
    padding-left: var(--space-3);
    color: var(--ink-70);
    inline-size: 100%;
  }
  .nature__active strong { color: var(--text); font-weight: 700; }
}

/* (The stage sequence above replaces the earlier A/B/C tab row.) */

/* --- 04 · generative evolution -------------------------------------------- */

/* The full-viewport chapters carry no section padding of their own — the
 * composition fills the viewport and provides its own edges. */
.evolution, .anatomy { padding-block: 0; }

/* The conceptual shift — biology → computation — is architectural: the dark
 * chapter is a new physical layer with a large rounded top edge that slides
 * over the end of the nature chapter as it enters. Static overlap, no
 * transform: the scroll itself performs the covering. */
.evolution {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(32px, 7vh, 80px));
  border-radius: clamp(20px, 3.5vw, 40px) clamp(20px, 3.5vw, 40px) 0 0;
  box-shadow: 0 -14px 44px color-mix(in srgb, var(--color-ink) 22%, transparent);
}
@media (max-width: 767px) {
  .evolution {
    margin-top: -24px;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 24px color-mix(in srgb, var(--color-ink) 18%, transparent);
  }
}

/* Two rows: the marker holds the top edge, the composition centres in
 * whatever height remains — one composed viewport, scrolling normally. */
.evolution__pin {
  min-block-size: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  row-gap: clamp(20px, 3.5vh, 44px);
  padding-block: clamp(76px, 10vh, 108px) clamp(24px, 5vh, 64px);
  align-items: center;
}
.evolution__pin > .shell:first-child { align-self: start; }
.evolution__pin .marker { margin-bottom: 0; }
.evolution__grid {
  display: grid;
  gap: clamp(32px, 5vw, 112px);
  align-items: center;
}
@media (min-width: 768px) {
  .evolution__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.evolution__copy { display: grid; gap: var(--space-6); }
.evolution__readout {
  position: relative;
  display: grid;
  gap: var(--space-2);
  color: color-mix(in srgb, #F8F7F6 65%, var(--color-ink));
  max-inline-size: 340px;
}
.evolution__readout p span { color: var(--signal); font-weight: 700; }
/* A quiet invitation next to the label — the knob and the grab cursor do
 * the real explaining. */
.evolution__draghint {
  position: absolute;
  top: 0;
  right: 0;
  color: color-mix(in srgb, #F8F7F6 38%, var(--color-ink));
}

/* The generation scrubber: ten segments, one per generation. Progress and
 * control are the same instrument — filled segments are the story so far,
 * and every segment is a jump target. The drawn bar stays a hairline; the
 * touch row around it is generous. */
.evolution__steps {
  position: relative;
  display: flex;
  gap: 3px;
  /* Horizontal drag scrubs the generations; vertical gestures stay with the
   * page. No text selection while sweeping. The cursor announces the drag. */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.evolution__steps.is-scrubbing { cursor: grabbing; }

/* The knob: a large white instrument thumb riding the active generation —
 * the unmistakable promise that this bar can be dragged. The ◂ ▸ glyphs
 * inside say "left or right". It glides between clicks and tracks the
 * pointer directly while scrubbing. */
.evolution__thumb {
  position: absolute;
  top: 50%;
  left: 5%;
  translate: -50% -50%;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  background: var(--color-off-white);
  border: 1px solid color-mix(in srgb, var(--color-ink) 25%, transparent);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--color-ink) 50%, transparent);
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: left 240ms var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
/* Bidirectional cue: two charcoal chevrons flanking a small orange core. */
.evolution__thumb::before {
  content: "◂ ▸";
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  color: color-mix(in srgb, var(--color-ink) 78%, var(--color-off-white));
}
.evolution__thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  inline-size: 3px;
  block-size: 3px;
  border-radius: 50%;
  background: var(--signal);
}
.evolution__steps:hover .evolution__thumb { transform: scale(1.06); }
.evolution__steps.is-scrubbing .evolution__thumb {
  transition: transform var(--dur-fast) var(--ease-standard);
  transform: scale(1.06);
}
html.reduced-motion .evolution__thumb { transition: none; }
.evolution__steps button {
  position: relative;
  flex: 1;
  block-size: 44px;
  padding: 0;
}
.evolution__steps button::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  translate: 0 -50%;
  block-size: 2px;
  background: color-mix(in srgb, #F8F7F6 18%, var(--color-ink));
  transition: background var(--dur-fast) var(--ease-standard),
              block-size var(--dur-fast) var(--ease-standard);
}
.evolution__steps button:hover::after {
  background: color-mix(in srgb, #F8F7F6 48%, var(--color-ink));
}
.evolution__steps button.is-done::after { background: var(--signal); }
.evolution__steps button.is-active::after {
  background: var(--signal);
  block-size: 5px;
}
.evolution__steps button:focus-visible {
  outline: 2px solid var(--color-off-white);
  outline-offset: -6px;
}

/* The figure's own arrows reuse the shared edge-control language and
 * straddle the frame edge — attached to the image, not floating beside
 * it. */
.evolution__figure .carousel__arrow { z-index: 3; }
@media (min-width: 768px) {
  .evolution__figure .carousel__arrow--prev { left: -19px; }
  .evolution__figure .carousel__arrow--next { right: -19px; }
}

.evolution__figure {
  justify-self: center;
  position: relative;
  /* The sequence is the spectacle: up to ~74svh of the viewport at the
   * frame's own ratio, never exceeding its column. Horizontal swipes drive
   * the generations; vertical gestures stay with the page. */
  inline-size: min(100%, calc(clamp(340px, 74svh, 900px) * 0.703));
  touch-action: pan-y;
}
@media (max-width: 767px) {
  /* Mobile: purely visual. The explanatory paragraph retires, the headline
   * becomes one of the page's strongest typographic moments, and the
   * sequence claims nearly the full content width — the reader inspects
   * the geometry, not a small object floating in dark space. */
  .evolution__grid { gap: var(--space-4); }
  .evolution__copy { gap: var(--space-4); }
  .evolution .statement--lg { font-size: clamp(2.4rem, 12vw, 3.1rem); }
  .evolution .prose { display: none; }
  .evolution__figure { inline-size: min(100%, calc(76svh * 0.703)); }
  /* Arrows ride the image edges, half over the frame border. */
  .evolution__figure .carousel__arrow--prev { left: -8px; }
  .evolution__figure .carousel__arrow--next { right: -8px; }
}
/* The loop crossfades generations as one continuous morph. The playback in
 * site.js drives opacity inline (incoming frame fades in OVER the fully
 * visible current frame, or reveals it from beneath on the way back) so the
 * dark chapter background can never blink through mid-transition. The class
 * rules below are the resting/no-JS/reduced-motion state only. */
.evolution__figure img { will-change: opacity; }
.evolution__figure img:not(:first-child) { position: absolute; inset: 0; }
.evolution__figure img:not(.is-active) { opacity: 0; }

/* --- 05 · functional anatomy ----------------------------------------------- */

.anatomy__pin {
  min-block-size: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  row-gap: clamp(20px, 3.5vh, 44px);
  padding-block: clamp(76px, 10vh, 108px) clamp(24px, 5vh, 64px);
  align-items: center;
}
.anatomy__pin > .shell:first-child { align-self: start; }
.anatomy__pin .marker { margin-bottom: 0; }
.anatomy__grid {
  display: grid;
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
@media (min-width: 768px) {
  .anatomy__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
.anatomy__copy { display: grid; gap: var(--space-6); align-content: start; }
.anatomy__labels {
  display: grid;
  gap: var(--space-3);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  color: var(--ink-28);
  max-inline-size: 300px;
}
.anatomy__labels li {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  transition: color var(--dur-base) var(--ease-standard);
}
.anatomy__labels li span { font-weight: 700; }
.anatomy__labels li.is-active { color: var(--text); cursor: pointer; }
.anatomy__labels li.is-active span { color: var(--signal); }
.anatomy__labels li.is-active:hover,
.anatomy__labels li.is-hint { color: var(--signal); }

/* Anatomy instruments: a size up, plus-only, sitting ON the components of
 * the exploded object — no leader lines, no hover names, no numbers. The
 * component list and the panel carry the identification. */
.anatomy__spots .mark { inline-size: 38px; block-size: 38px; }
.anatomy__spots .mark .mark__ring {
  background:
    linear-gradient(var(--signal), var(--signal)) center / 1.5px 14px no-repeat,
    linear-gradient(var(--signal), var(--signal)) center / 14px 1.5px no-repeat,
    var(--color-off-white);
}
.anatomy__spots .mark .mark__num,
.anatomy__spots .mark .mark__tag,
.anatomy__spots .mark .mark__lead { display: none; }

.anatomy__figure { display: grid; gap: var(--space-3); justify-items: center; }
.anatomy__stage {
  position: relative;
  /* The reveal moment of the page: up to ~78svh of the pinned viewport at
   * 3:4, capped by the column width. The hint stays inside the budget. */
  inline-size: min(100%, calc(clamp(380px, 78svh, 980px) * 0.75));
  aspect-ratio: 3 / 4;
  /* Size container, so the marker leader lines can size in cqw. */
  container-type: inline-size;
}
.anatomy__stage img, .anatomy__stage canvas {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}
.anatomy__stage canvas { opacity: 0; }
.anatomy__stage.is-live canvas { opacity: 1; }
.anatomy__stage.is-live > img[data-anatomy-poster] { opacity: 0; }

/* Instrument markers: a survey point in the negative space beside each
 * component, tied to it by a hairline leader. Ring, crosshair ticks and an
 * orange centre — drawing-room instrumentation, no HUD. Each reveals on its
 * own scroll interval via .is-on. */
.mark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) scale(0.85);
  inline-size: 30px;
  block-size: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms var(--ease-standard),
              transform 380ms var(--ease-standard);
}
.mark.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
/* Hero variant: the instrument is live from the first paint — no scroll
 * interval reveals it. */
.mark--live {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
/* The halo doubles as the optical body of the marker: a soft translucent
 * warm-white core with a gentle falloff — an illuminated inspection point
 * floating on the photography, never a glossy button. It is also the tap
 * target, far exceeding the drawn geometry. */
/* Invisible halo: the touch target far exceeds the drawn instrument —
 * nothing painted here, no cloudy falloff over the product. */
.mark::before {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
}

/* The unified instrument: a crisp solid-white circular button carrying a
 * small orange +. Precision hardware, not HUD — no glow, no gradient. */
.mark__ring {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--color-ink) 22%, transparent);
  border-radius: 50%;
  background:
    linear-gradient(var(--signal), var(--signal)) center / 1.5px 11px no-repeat,
    linear-gradient(var(--signal), var(--signal)) center / 11px 1.5px no-repeat,
    var(--color-off-white);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--color-ink) 10%, transparent);
  transition: transform 220ms var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}
/* Hover: a slight physical rise; press: a firm dip. The + stays sharp. */
@media (hover: hover) and (pointer: fine) {
  .mark:hover .mark__ring {
    transform: scale(1.08);
    border-color: color-mix(in srgb, var(--color-ink) 40%, transparent);
  }
}
.mark:active .mark__ring { transform: scale(0.92); }
/* Selected: the geometry turns 45° (the + reads as ×), the ring firms to
 * orange, and a 90° arc sweeps in and locks — one language for hero,
 * anatomy and blueprint alike. */
.mark[aria-expanded="true"] .mark__ring,
.mark[aria-expanded="true"]:hover .mark__ring {
  transform: rotate(45deg);
  border-color: var(--signal);
}
.mark__arc {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--signal);
  opacity: 0;
  transform: rotate(-135deg);
  transition: opacity 220ms var(--ease-standard),
              transform 340ms var(--ease-standard);
  pointer-events: none;
}
.mark[aria-expanded="true"] .mark__arc {
  opacity: 1;
  transform: rotate(-45deg);
}
html.reduced-motion .mark__arc { transition: none; }

/* Breathing concentric rings: visible only once the marker is live. */
.mark__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.mark__pulse::before,
.mark__pulse::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--signal);
  opacity: 0;
}
.mark.is-on .mark__pulse::before,
.mark--live .mark__pulse::before {
  animation: pulse-breathe 3.2s var(--ease-standard) infinite;
}
.mark.is-on .mark__pulse::after,
.mark--live .mark__pulse::after {
  animation: pulse-sonar 3.2s var(--ease-standard) infinite;
}
.mark__pulse::before { inset: -6px; }
.mark__pulse::after { inset: -10px; }
html.reduced-motion .mark__pulse::before,
html.reduced-motion .mark__pulse::after {
  animation: none !important;
  opacity: 0.2;
}
/* Crosshair ticks outside the ring. */
.mark__ring::before,
.mark__ring::after {
  content: "";
  position: absolute;
  background: transparent;
  transition: inherit;
}
.mark__ring::before {
  top: 50%; left: -7px; right: -7px; block-size: 1px;
  background: linear-gradient(90deg,
    var(--ink-45) 0 5px, transparent 5px calc(100% - 5px), var(--ink-45) calc(100% - 5px));
}
.mark__ring::after {
  left: 50%; top: -7px; bottom: -7px; inline-size: 1px;
  background: linear-gradient(180deg,
    var(--ink-45) 0 5px, transparent 5px calc(100% - 5px), var(--ink-45) calc(100% - 5px));
}

.mark__num {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  font-weight: 700;
  color: var(--text);
  transition: color var(--dur-fast) var(--ease-standard);
}
.mark--r .mark__num { left: calc(100% + 12px); }
.mark--l .mark__num { right: calc(100% + 12px); }

/* Component name, shown while activating the marker. It only exists on
 * hover-capable devices — elsewhere it must not even occupy layout, or its
 * nowrap width pushes the page sideways. */
.mark__tag {
  display: none;
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  color: var(--ink-70);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 280ms var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
  .mark__tag { display: block; }
}
.mark--r .mark__tag { left: calc(100% + 34px); }
.mark--l .mark__tag { right: calc(100% + 34px); }

/* Leader line from the marker toward its component, drawn on reveal. */
.mark__lead {
  position: absolute;
  top: 50%;
  block-size: 1px;
  /* --lead is a unitless fraction of the stage width; the stage is a size
   * container, so 1cqw is 1% of it. The px line is the fallback for
   * engines without container query units. */
  inline-size: calc(var(--lead) * 4px);
  inline-size: calc(var(--lead) * 1cqw);
  background: var(--ink-28);
  transform: scaleX(0);
  transition: transform 460ms var(--ease-standard) 140ms;
}
.mark--r .mark__lead { right: 100%; transform-origin: right center; }
.mark--l .mark__lead { left: 100%; transform-origin: left center; }
.mark.is-on .mark__lead { transform: scaleX(1); }

/* Activation: ticks turn a few degrees, the ring sharpens, the name reads. */
@media (hover: hover) and (pointer: fine) {
  .mark.is-hint .mark__ring {
    transform: scale(1.08);
    border-color: var(--signal);
  }
  .mark:hover .mark__tag,
  .mark:focus-visible .mark__tag,
  .mark.is-hint .mark__tag { opacity: 1; }
  .mark:hover .mark__num,
  .mark.is-hint .mark__num { color: var(--signal); }
}
.mark[aria-expanded="true"] .mark__ring { border-color: var(--signal); }
.mark[aria-expanded="true"] .mark__num { color: var(--signal); }

html.reduced-motion .mark,
html.reduced-motion .mark__lead,
html.reduced-motion .mark__ring { transition: none; }

@media (max-width: 767px) {
  /* On phones the number lives inside the ring — nothing extends past the
   * marker, so edge markers can sit near the frame without pushing the
   * page sideways. The plus yields to the number (they would collide at
   * this size); a thin orange-leaning ring carries the "inspect here"
   * affordance instead, with the same slow pulse. */
  .mark { inline-size: 28px; block-size: 28px; }
  /* Phones: the button is the + alone — numbers never sit inside the
   * circle; the panel identifies the component. */
  .mark__num { display: none; }
}

/* The chapter's progress rail: hairline, orange fill, small readout. */
.anatomy__progress {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: clamp(16px, 3vh, 32px);
  color: var(--ink-45);
}
.anatomy__rail {
  display: block;
  inline-size: 1px;
  block-size: clamp(96px, 16vh, 160px);
  background: var(--ink-14);
  position: relative;
}
.anatomy__rail i {
  position: absolute;
  inset: 0 0 auto 0;
  block-size: calc(var(--p, 0) * 1%);
  background: var(--signal);
}
.anatomy__rail i::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -2px;
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background: var(--signal);
}
.anatomy__pct { min-inline-size: 3.5ch; }

.anatomy__hint { color: var(--ink-45); }

@media (max-width: 767px) {
  /* Mobile keeps only what the scrub needs: statement, one line of
   * instruction and a large centred stage. The component list is the
   * scrub's own labelling on desktop; here the numbered hotspots at the
   * exploded state carry that role instead. */
  .anatomy__labels { display: none; }
  .anatomy__grid { gap: var(--space-4); }
  .anatomy__copy { gap: var(--space-4); }
  .anatomy .statement { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .anatomy .prose { font-size: 1rem; }
  /* The exploded view dominates the phone: near the viewport edges, capped
   * only by the pinned height budget. */
  .anatomy__figure {
    inline-size: calc(100% + 8px);
    margin-inline: -4px;
    justify-self: center;
  }
  .anatomy__stage { inline-size: min(100%, calc(72svh * 0.75)); }

  /* Progress turns horizontal on mobile — a hairline under the copy, never
   * competing with the visual. */
  .anatomy__progress {
    flex-direction: row-reverse;
    align-items: center;
    inline-size: 100%;
    margin-top: var(--space-2);
  }
  .anatomy__rail {
    inline-size: auto;
    flex: 1;
    block-size: 1px;
  }
  .anatomy__rail i {
    inset: 0 auto 0 0;
    block-size: 100%;
    inline-size: calc(var(--p, 0) * 1%);
  }
  .anatomy__rail i::after {
    bottom: -2px;
    left: auto;
    right: -2px;
  }
}

/* --- 05 · digital → physical ------------------------------------------------ */

.making__head {
  display: grid;
  gap: var(--space-8);
  margin-bottom: clamp(40px, 6vh, 72px);
}
@media (min-width: 1024px) {
  .making__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    align-items: start;
  }
}
.making__meta {
  display: grid;
  gap: var(--space-2);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  color: var(--ink-70);
  align-self: end;
}
.making__meta div { display: flex; justify-content: space-between; gap: var(--space-4); }
.making__meta dt { color: var(--ink-45); }

@media (max-width: 767px) {
  /* Mobile: the photography leads. The specification block collapses to a
   * compact two-column strip and drops its secondary rows — nozzle size and
   * finish are desktop vocabulary. */
  .making__head { gap: var(--space-6); margin-bottom: clamp(32px, 5vh, 48px); }
  .making__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px var(--space-6);
    padding-top: var(--space-3);
  }
  .making__meta div:nth-child(2),
  .making__meta div:nth-child(5) { display: none; }
}

/* A photographic process journal: four large images on a twelve-column
 * grid, offset against each other, entering the viewport one by one. */
.making__journal {
  display: grid;
  gap: clamp(48px, 9vh, 120px) clamp(16px, 2.4vw, 40px);
}
.making__item { display: grid; gap: var(--space-3); align-content: start; }
.making__item figcaption { color: var(--ink-45); }
.making__item figcaption span { color: var(--signal); font-weight: 700; margin-inline-end: var(--space-2); }

@media (min-width: 768px) {
  .making__journal { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .making__item--print { grid-column: 1 / 7; grid-row: 1; }
  .making__item--sand {
    grid-column: 8 / 13;
    grid-row: 1;
    align-self: end;
    translate: 0 clamp(32px, 8vh, 96px);
  }
  .making__item--plant { grid-column: 2 / 7; grid-row: 2; margin-top: clamp(16px, 4vh, 56px); }
  .making__item--assembly { grid-column: 8 / 13; grid-row: 2; }
}

/* --- 08 · blueprint ---------------------------------------------------------- */

.blueprint__grid {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
}
@media (min-width: 768px) {
  .blueprint__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    align-items: start;
  }
  .blueprint__copy { position: sticky; top: 120px; }
}
.blueprint__copy { display: grid; gap: var(--space-6); }
.blueprint__hint { color: var(--ink-45); }
.blueprint__figure { max-inline-size: 820px; margin-inline: auto; inline-size: 100%; }

/* Blueprint inspection points invert the instrument: ORANGE button, white
 * + — over the dense line drawing the white family would disappear, so
 * here stronger visibility is the requirement. No numbers in the button;
 * the hover tag and the panel identify the component. */
.blueprint__stage .mark .mark__ring {
  border-color: color-mix(in srgb, var(--signal) 70%, var(--color-ink));
  background:
    linear-gradient(#FFFFFF, #FFFFFF) center / 1.5px 11px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center / 11px 1.5px no-repeat,
    var(--signal);
}
.blueprint__stage .mark .mark__num { display: none; }
.blueprint__stage .mark .mark__pulse::before,
.blueprint__stage .mark .mark__pulse::after { border-color: var(--signal); }
/* The drawing is a physical sheet: a hard, shallow shadow lifts it a few
 * millimetres off the surface, and a scroll-linked half-degree of rotation
 * (set in experience.js) lets it lie rather than float. */
.blueprint__stage {
  position: relative;
  background: #fff;
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--color-ink) 10%, transparent),
    0 4px 10px -4px color-mix(in srgb, var(--color-ink) 20%, transparent);
  will-change: transform;
}

@media (max-width: 767px) {
  /* Mobile: the sheet approaches the viewport edges — the drawing's fine
   * detail is the point — and the annotation points become small filled
   * markers with an unchanged 44px+ hit area. */
  .blueprint__figure {
    max-inline-size: none;
    /* The shell keeps 16px gutters; the sheet claims 6px of each, landing
     * ~10px from the viewport edge without vw arithmetic. */
    inline-size: calc(100% + 12px);
    margin-inline: -6px;
  }
  /* Larger touch halo around the small drawn instrument. */
  .blueprint .mark::before { inset: -14px; }
}

/* --- 09 · the series ---------------------------------------------------------- */

.series__head {
  display: grid;
  gap: var(--space-6);
  margin-bottom: clamp(40px, 6vh, 72px);
}
@media (min-width: 1024px) {
  .series__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
  }
}
/* The archive fact: icon, mono caption, one statement, air around it. */
.series__aside { display: grid; gap: clamp(24px, 4vh, 40px); align-content: start; }
.series__usp {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  max-inline-size: 340px;
}
.series__usp img { flex: 0 0 auto; margin-top: 2px; }
.series__usp-label { color: var(--ink-45); margin-bottom: 4px; }
.series__usp-text { font-size: var(--type-sm); line-height: 1.45; color: var(--ink-70); }

.series__action { margin-top: clamp(32px, 5vh, 56px); text-align: center; }
.series__action .button span { color: var(--ink-45); margin-inline-start: var(--space-2); }
.series__action .button:hover span { color: inherit; }

/* --- 10 · ownership ------------------------------------------------------------ */

.ownership__grid {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (min-width: 768px) {
  .ownership__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}
.ownership__copy { display: grid; gap: var(--space-6); align-content: start; }
.ownership__meta {
  display: grid;
  gap: var(--space-2);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  color: var(--ink-70);
  max-inline-size: 420px;
}
.ownership__meta div { display: flex; justify-content: space-between; gap: var(--space-4); }
.ownership__meta dt { color: var(--ink-45); }

/* --- 11 · scale ------------------------------------------------------------------ */

.setting__grid {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
@media (min-width: 768px) {
  .setting__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
}
.setting__figure { position: relative; }
.setting__rule {
  position: absolute;
  right: clamp(-12px, -1vw, -20px);
  top: 12%;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  writing-mode: vertical-rl;
  color: var(--ink-45);
}
.setting__rule i {
  display: block;
  inline-size: 1px;
  block-size: 100%;
  background: var(--ink-28);
}
.setting__aside { display: grid; gap: var(--space-3); }
.setting__aside figcaption { color: var(--ink-45); }
@media (max-width: 767px) {
  .setting__rule { display: none; }
  .setting__aside { max-inline-size: 70%; }
}

/* --- 12 · process archive ---------------------------------------------------------- */

.archive .statement { margin-bottom: clamp(40px, 6vh, 72px); }

/* The development archive: two editorial image tracks. Multicolumn flow
 * keeps the two columns independent — heights differ, the tracks drift out
 * of alignment, and that slight misalignment is the point: curated, not
 * templated. A single full-width photograph between the two flows acts as
 * a chapter break. */
.archive__flow {
  columns: 2;
  column-gap: clamp(28px, 4vw, 64px);
}
.archive__flow > * {
  break-inside: avoid;
  margin-bottom: clamp(32px, 6vh, 80px);
}
.archive__flow figure,
.archive__wide {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.archive__wide { margin-block: clamp(24px, 5vh, 64px) clamp(48px, 8vh, 104px); }
.archive figcaption { color: var(--ink-45); transition: color var(--dur-fast) var(--ease-standard); }
.archive figcaption span { color: var(--ink-70); font-weight: 700; margin-inline-end: var(--space-2); }

/* The bridge to the conversation: a deep-blue instrument under its own
 * technical path line — this is where the archive engages the visitor.
 * Hover flips it to the signal colour: orange is the action. */
.archive__cta {
  margin-top: clamp(48px, 8vh, 96px);
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  text-align: center;
}
.archive__cta-path { color: var(--ink-45); }
.archive__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 20px 40px 18px;
  border-radius: var(--image-radius);
  background: var(--color-deep);
  color: var(--color-off-white);
  text-decoration: none;
  transition: background 200ms var(--ease-standard),
              color 200ms var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
.archive__cta-btn svg { transition: translate var(--dur-fast) var(--ease-standard); }
.archive__cta-btn:hover {
  background: var(--signal);
  color: var(--color-ink);
}
.archive__cta-btn:hover .dot { background: var(--color-ink); }
.archive__cta-btn:hover svg { translate: 4px 0; }
.archive__cta-btn:active { transform: scale(0.98); }

/* Two small observations sharing one row — a paired study inside the flow. */
.archive__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  align-items: start;
}
.archive__pair figure { display: grid; gap: var(--space-3); align-content: start; }

@media (max-width: 767px) {
  /* Phones: one documentation column, with the paired observations still
   * reading side by side — variation survives the collapse. */
  .archive__flow { columns: 1; }
  .archive__flow > * { margin-bottom: clamp(28px, 5vh, 48px); }
}

/* --- 13 · beyond habitat ------------------------------------------------------------ */

/* The system index: after the dense archive, the environment shifts to the
 * pale mineral-sand tone — a paper-stock change between chapters, not a
 * colour block. The grid becomes smaller, quieter, catalogue-like: objects
 * as specimens in a system, typography a register below the page voice. */
.beyond { background: var(--surface-sand); }
.beyond .statement { margin-bottom: clamp(48px, 7vh, 88px); }
.beyond__row {
  display: grid;
  gap: clamp(20px, 3vw, 56px);
  max-inline-size: 920px;
  margin-inline: auto;
}
@media (min-width: 640px) {
  .beyond__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .beyond__row figure:nth-child(2) { translate: 0 clamp(20px, 3.5vh, 44px); }
}
.beyond__row figure { display: grid; gap: var(--space-3); align-content: start; }
.beyond__row figcaption {
  color: var(--ink-45);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}
.beyond__row figcaption span { color: var(--text); font-weight: 700; margin-inline-end: var(--space-2); }
/* Live project links: the image is the link; hover lifts it a fraction and
 * surfaces a small visit cue in the caption. No card theatrics. */
.beyond__link {
  display: block;
  border-radius: var(--image-radius);
  overflow: hidden;
}
.beyond__link img { transition: transform 700ms var(--ease-standard); }
@media (hover: hover) and (pointer: fine) {
  .beyond__row figure:hover .beyond__link img { transform: scale(1.02); }
}
.beyond__visit {
  font-style: normal;
  color: var(--ink-45);
  margin-inline-start: var(--space-2);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.beyond__row figure:hover .beyond__visit,
.beyond__row figure:focus-within .beyond__visit { opacity: 1; color: var(--signal); }
@media (hover: none) {
  .beyond__visit { opacity: 1; }
}

/* The future member: a quiet status, never a promotional badge. */
.beyond__soon {
  display: inline-block;
  font-style: normal;
  color: var(--ink-45);
  margin-inline-start: var(--space-2);
  padding-inline-start: var(--space-2);
  border-inline-start: 1px solid var(--line);
}
.beyond__soon::before {
  content: "";
  display: inline-block;
  inline-size: 4px;
  block-size: 4px;
  border-radius: 50%;
  background: var(--signal);
  margin-inline-end: 5px;
  vertical-align: 1px;
}
@media (max-width: 639px) {
  /* The phone index stays restrained: specimens, not oversized cards. */
  .beyond__row figure { max-inline-size: 78%; }
  .beyond__row figure:nth-child(2) { justify-self: end; max-inline-size: 78%; }
}

/* The reserved record: a drafted archive placeholder, deliberately not a
 * photograph — same tile geometry as its neighbours' plates. */
.pending {
  position: relative;
  aspect-ratio: 1200 / 1489;
  border-radius: var(--image-radius);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, var(--ink-08) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, var(--ink-08) 0 1px, transparent 1px 44px),
    var(--color-off-white);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--space-2);
  text-align: center;
  overflow: hidden;
}
.pending__cross {
  position: relative;
  inline-size: 24px;
  block-size: 24px;
  margin-bottom: var(--space-4);
}
.pending__cross::before,
.pending__cross::after {
  content: "";
  position: absolute;
  background: var(--ink-45);
}
.pending__cross::before { left: 50%; top: 0; bottom: 0; inline-size: 1px; }
.pending__cross::after { top: 50%; left: 0; right: 0; block-size: 1px; }
.pending__ref { color: var(--ink-45); }
.pending__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.14em;
}
.pending__note { color: var(--ink-45); }

/* --- 14 · closing -------------------------------------------------------------------- */

/* The conversation field: the page's final atmospheric transition — a deep
 * technical blue one step above black. The orange moves down to the footer,
 * which closes the document as a flat plane of the signal colour. */
.closing__field {
  position: relative;
  overflow: hidden;
  background: var(--color-deep);
  color: var(--color-off-white);
  padding-block: clamp(72px, 12vh, 140px) clamp(96px, 16vh, 180px);
}
.closing__field .marker {
  border-color: color-mix(in srgb, #F8F7F6 22%, transparent);
  color: color-mix(in srgb, #F8F7F6 65%, var(--color-deep));
}
.closing__field .marker { margin-bottom: clamp(64px, 12vh, 140px); }
.closing__field .marker > span:first-child { color: var(--signal); }
.closing__path {
  color: color-mix(in srgb, #F8F7F6 42%, var(--color-deep));
  margin-bottom: var(--space-6);
}
.closing__title {
  position: relative;
  z-index: 1;
  font-weight: 400;
  font-size: clamp(2.6rem, 1.15rem + 6.6vw, 7.1rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-inline-size: 10.5em;
  text-wrap: balance;
}
.closing__mail {
  margin-top: clamp(48px, 8vh, 88px);
  position: relative;
  z-index: 1;
}
.closing__mail a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.75rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, #F8F7F6 55%, transparent);
  padding-bottom: 8px;
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.closing__mail a:hover { border-color: var(--color-off-white); }
.closing__mail svg { transition: translate var(--dur-fast) var(--ease-standard); }
.closing__mail a:hover svg { translate: 3px -3px; }

/* The maker's mark: a small archive stamp, not a second hero logo. */
.closing__stamp {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 12vh, 120px);
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}
.closing__stamp img {
  inline-size: 92px;
  block-size: auto;
  filter: invert(1);
  opacity: 0.55;
}
.closing__stamp .mono { color: color-mix(in srgb, #F8F7F6 38%, var(--color-deep)); }

.closing__orbit {
  position: absolute;
  right: clamp(-60px, -3vw, -24px);
  bottom: clamp(-70px, -5vh, -30px);
  inline-size: clamp(280px, 32vw, 560px);
  block-size: auto;
  color: var(--color-off-white);
  opacity: 0.16;
  pointer-events: none;
}

/* The record bar: the signal colour as the document's final plane. Ink
 * typography throughout — orange is the surface here, never the accent. */
.footer {
  background: var(--signal);
  color: var(--color-ink);
  padding-block: clamp(56px, 8vh, 96px) 0;
}
.footer__grid {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(56px, 8vh, 96px);
}
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
    align-items: start;
  }
}
.footer__brand { display: grid; gap: var(--space-4); justify-items: start; }
.footer__brand img { inline-size: 148px; block-size: auto; }
.footer__brand .mono { color: color-mix(in srgb, var(--color-ink) 72%, var(--signal)); }

.footer__col { display: grid; gap: var(--space-3); align-content: start; justify-items: start; }
.footer__label {
  color: color-mix(in srgb, var(--color-ink) 62%, var(--signal));
  margin-bottom: var(--space-2);
}
.footer__col a {
  text-decoration: none;
  color: var(--color-ink);
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.footer__col a:hover { opacity: 0.7; }
.footer__col p { color: var(--color-ink); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  justify-content: space-between;
  padding-block: var(--space-6);
  border-top: 1px solid color-mix(in srgb, var(--color-ink) 30%, transparent);
  color: color-mix(in srgb, var(--color-ink) 72%, var(--signal));
}
.footer__status { color: var(--color-ink); font-weight: 700; }
