/* i3AI design layer. Forest dark with warm ivory type, amber structure lines,
 * one orange accent for what is hypothesized or in progress, and a cream panel
 * for the current focus. The home page is full bleed; every other page uses
 * the same tokens in a reading layout with an "On this page" rail.
 * Loaded after tailwind.css, so it also neutralizes Tailwind's base styles. */

:root {
  color-scheme: dark;
  --forest:   #06120f;
  --forest-2: #0d1c17;   /* raised surfaces: code, menus */
  --ivory:    #eeeade;   /* headings */
  --text:     #d4dbce;   /* body */
  --muted:    #bcc4b7;
  --quiet:    #9fab9d;   /* captions, meta */
  --rule:     rgba(190, 201, 182, .30);
  --rule-soft:rgba(190, 201, 182, .15);
  --amber:    #c7ad76;   /* numbers, structure */
  --orange:   #f17c32;   /* accent: hypothesis, focus, hover */
  --link-line:rgba(241, 124, 50, .55);
  --cream:    #f0e8d7;
  --ink:      #18221b;   /* text on cream */
  --rust:     #a94b19;   /* accent on cream */

  --font: "Source Sans Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Source Code Pro", ui-monospace, "SFMono-Regular", monospace;
  --gutter: clamp(22px, 5.25vw, 84px);
  --maxw: 1280px;
  --measure: 42rem;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--forest); color: var(--text);
  font-family: var(--font); font-size: 18px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
::selection { color: var(--forest); background: #d8bd84; }
a { color: inherit; font-weight: inherit; text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .18s ease, text-decoration-color .18s ease; }
a:hover { color: var(--orange); text-decoration: underline; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 1px; }
img { display: block; max-width: 100%; height: auto; border-radius: 0; }
figure, blockquote { margin: 0; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; padding: 10px 18px; background: var(--cream); color: var(--ink); text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
[id] { scroll-margin-top: 24px; }

/* shared type devices */
.eyebrow { margin: 0; font-size: 12px; line-height: 1.3; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--ivory); }
.section-title { margin: 14px 0 0; font-size: clamp(30px, 3.2vw, 46px); font-weight: 300; line-height: 1.12; letter-spacing: -.025em; color: var(--ivory); }
.section-intro { margin: 14px 0 0; font-size: 19px; color: var(--text); max-width: 60rem; }
.text-link { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-size: 16px; line-height: 1.5; color: var(--ivory); text-decoration-color: var(--quiet); text-underline-offset: 5px; }
.text-link:hover { color: var(--orange); }
.status { color: var(--orange); }

/* ---------- header ---------- */
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; color: var(--ivory); font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.brand:hover { color: var(--ivory); text-decoration: none; }
.brand__mark { width: auto; height: 30px; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.site-nav__link { font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-nav__link:hover { color: var(--orange); text-decoration: none; }
.site-nav__link[aria-current="page"] { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 8px; }
.mobile-menu { display: none; position: relative; }
.mobile-menu > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-left: 16px; font-size: 15px; color: var(--ivory); }
.mobile-menu__lines { display: block; width: 21px; height: 10px; border-top: 1px solid var(--ivory); border-bottom: 1px solid var(--ivory); transition: transform .18s ease; }
.mobile-menu[open] .mobile-menu__lines { transform: rotate(90deg); }
.mobile-menu nav { position: absolute; top: calc(100% + 10px); right: 0; width: 240px; display: flex; flex-direction: column; padding: 10px 22px; background: #10211b; border: 1px solid var(--rule); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.mobile-menu nav a { display: block; padding: 12px 0; font-size: 17px; color: var(--ivory); text-decoration: none; }
.mobile-menu nav a + a { border-top: 1px solid var(--rule-soft); }
.mobile-menu nav a[aria-current="page"] { color: var(--orange); }

/* ---------- footer ---------- */
/* tall enough to show the whole terrain, anchored to its bottom edge */
.site-footer { position: relative; isolation: isolate; overflow: hidden; min-height: max(230px, 26vw); margin-top: 64px; }
.site-footer__terrain { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center bottom; mix-blend-mode: lighten; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--forest) 0%, rgba(6,18,15,0) 40%, rgba(6,18,15,0) 70%, rgba(6,18,15,.55) 100%); }
.site-footer__inner { min-height: max(230px, 26vw); display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 150px 0 26px; }
.site-footer__identity { display: flex; align-items: center; gap: 28px; }
.site-footer__credit { border-left: 1px solid rgba(205,212,191,.5); padding-left: 28px; font-size: 14px; line-height: 1.45; color: var(--text); max-width: 340px; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 30px; }
.site-footer__nav a { font-size: 14px; color: var(--ivory); text-decoration: none; }
.site-footer__nav a:hover { color: var(--orange); }

/* ---------- home: hero ---------- */
.hero { padding-top: 26px; }
.hero__title { margin-block: 0; text-align: center; font-size: clamp(38px, 6.1vw, 88px); font-weight: 300; line-height: 1; letter-spacing: -.035em; color: var(--ivory); text-wrap: balance; }
.hero__title > span { display: block; }
.hero__end { color: #b9bdb1; }
.hero__art { position: relative; width: min(calc(100% - var(--gutter)), 1390px); margin: 10px auto 0; }
.hero__art img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; mix-blend-mode: lighten; }
.hero__art figcaption, .substrate__art figcaption { font-size: 12px; line-height: 1.4; color: var(--quiet); }
.hero__art figcaption { position: absolute; right: calc(var(--gutter) * .5); bottom: 8px; }
/* a narrow centered column with left-aligned text, so lines start at one edge */
.hero__intro { max-width: 38rem; padding: 14px 0 40px; }
.hero__intro p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text); }
.hero__intro p + p { margin-top: 12px; }
.hero__links { display: flex; justify-content: flex-start; align-items: center; gap: 28px; margin-top: 26px; }
.hero__divider { width: 1px; height: 21px; background: var(--rule); }

/* ---------- home: sections ---------- */
.home-section { padding: 40px 0 44px; }
.home-section--ruled { border-top: 1px solid var(--rule); }

/* progression of agency: a real sequence, so numbered; the last step is a dotted hypothesis */
.progression { display: grid; grid-template-columns: .95fr 1.04fr 1.08fr 1.2fr 1fr; gap: 27px; margin: 44px 0 30px; padding: 0; list-style: none; }
.stage { position: relative; min-width: 0; margin: 0; }
.stage::before { content: ""; position: absolute; left: 0; right: -27px; top: 40px; height: 1px; background: rgba(208, 214, 191, .5); }
.stage__number { display: block; font-size: 14px; line-height: 16px; font-weight: 600; letter-spacing: .05em; color: var(--amber); font-variant-numeric: tabular-nums; }
.stage__marker { display: block; position: relative; width: 8px; height: 8px; margin: 20px 0 22px; border-radius: 50%; background: var(--ivory); }
.stage h3 { margin: 0; max-width: 240px; font-size: 20px; line-height: 1.25; font-weight: 400; letter-spacing: -.01em; color: var(--ivory); }
.stage p { margin: 10px 0 0; padding-right: 6px; font-size: 16px; line-height: 1.45; color: var(--text); }
.stage--integrated::before { height: 0; background: none; border-top: 1px dotted var(--amber); }
.stage--felt::before { right: 0; height: 0; background: none; border-top: 1px dotted var(--orange); }
.stage--felt .stage__number, .stage--felt h3 { color: var(--orange); }
.stage--felt .stage__marker { box-shadow: 0 0 0 8px var(--forest); }
.stage--felt .stage__marker::after { content: ""; position: absolute; inset: -11px; border: 1px dotted var(--orange); border-radius: 50%; }
.stage__hypothesis { position: absolute; right: 0; top: 22px; font-size: 13px; font-style: italic; color: var(--orange); }

/* "read more" disclosures */
.reading > summary { display: inline-flex; }
.reading__arrow { display: inline-block; transition: transform .2s ease; }
.reading[open] .reading__arrow { transform: rotate(90deg); }
.reading__body { max-width: 52rem; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--rule); }
.prose p { margin: 0; font-size: 18px; line-height: 1.68; color: var(--text); }
.prose p + p { margin-top: 20px; }

/* research program as a tree: theory, then architecture, then two substrates */
.research__heading { max-width: 1190px; margin: 15px 0 0; font-size: clamp(23px, 2.25vw, 31px); font-weight: 300; line-height: 1.4; letter-spacing: -.015em; color: var(--ivory); }
.tree { padding-top: 40px; }
.tree__node { position: relative; padding: 0 0 12px 70px; }
.tree__node::before { content: ""; position: absolute; left: 0; top: 30px; bottom: 0; width: 1px; background: var(--rule); }
.tree__number { font-size: 14px; font-weight: 600; letter-spacing: .05em; color: var(--amber); font-variant-numeric: tabular-nums; }
.tree__node > .tree__number { position: absolute; left: -8px; top: -1px; background: var(--forest); }
.tree__node--theory { margin: 0 70px 0 88px; }
.tree__node--architecture { margin: 28px 32px 0 137px; padding-bottom: 40px; }
.tree__node h3 { margin: 13px 0 0; font-size: clamp(23px, 2.2vw, 30px); line-height: 1.22; font-weight: 400; letter-spacing: -.015em; color: var(--ivory); }
.tree__node h3 a, .substrate h4 a { text-decoration: none; }
.tree__node h3 a:hover, .substrate h4 a:hover { color: var(--orange); }
.tree__node > p:not(.eyebrow) { max-width: 48rem; margin: 13px 0 0; font-size: 18px; line-height: 1.55; color: var(--text); }
.tree__substrates { position: relative; display: flex; align-items: center; gap: 55px; min-height: 30px; margin-left: 208px; }
.tree__substrates::before { content: ""; position: absolute; top: 14px; right: calc(100% + 13px); width: 57px; height: 1px; background: var(--rule); }
.substrates { display: grid; grid-template-columns: 1.96fr 1fr; gap: 50px; margin-top: 30px; }
.substrate p { margin: 0; }
.substrate--pattern { display: grid; grid-template-columns: .93fr 1.08fr; gap: 38px; }
.substrate__art { padding-top: 4px; }
.substrate__art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.substrate__art figcaption { margin-top: 10px; }
.substrate__kind { font-size: 15px; line-height: 1.4; color: var(--muted); }
.substrate h4 { margin: 8px 0 14px; font-size: 29px; font-weight: 400; line-height: 1.2; letter-spacing: -.015em; color: var(--ivory); }
.substrate p:not(.substrate__kind) { font-size: 17px; line-height: 1.5; color: var(--text); }
.substrate p.status { margin-top: 18px; color: var(--orange); }
.substrate--agent { border-left: 1px solid var(--rule); padding-left: 50px; }

/* current focus: the one cream panel */
.focus { color-scheme: light; background: var(--cream); color: var(--ink); overflow: hidden; }
.focus ::selection { background: #ce9d64; color: #10231d; }
.focus .eyebrow { color: var(--ink); }
.focus a { text-decoration-color: rgba(169, 75, 25, .5); }
.focus a:hover { color: var(--rust); }
.focus :focus-visible { outline-color: var(--rust); }
.focus__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 48px 0 40px; }
.focus__story h2 { margin: 12px 0 0; font-size: clamp(48px, 5.3vw, 74px); font-weight: 300; line-height: 1.05; letter-spacing: -.035em; color: var(--ink); }
.focus__story > p:not(.eyebrow) { margin: 0; max-width: 34rem; font-size: 18px; line-height: 1.5; }
.focus__story > p:not(.eyebrow) + p { margin-top: 15px; }
.focus__story > h2 + p:not(.eyebrow) { margin-top: 20px; }
/* the art bleeds off the right edge of the page */
.focus__art { margin: 0 calc(var(--gutter) * -1) 0 -24px; }
.focus__art img { width: 100%; height: auto; max-height: 380px; object-fit: contain; object-position: right center; }
.focus__label { margin: 0 0 18px; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.focus__parts { padding: 32px 0 36px; border-top: 1px solid #d8ccb6; }
.hvar-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.hvar-parts li { padding-top: 16px; border-top: 2px solid var(--rust); }
.hvar-parts h4 { margin: 0 0 8px; font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.hvar-parts p { margin: 0; font-size: 16px; line-height: 1.5; }
.focus__bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 32px 0 52px; border-top: 1px solid #d8ccb6; }
.focus__methods p { margin: 0; max-width: 36rem; font-size: 17px; line-height: 1.55; }
.focus__methods p + .focus__label { margin-top: 28px; }
.focus__harness p { margin: 0; max-width: 32rem; font-size: clamp(24px, 2.3vw, 31px); font-weight: 300; line-height: 1.28; letter-spacing: -.015em; color: var(--ink); }
.focus__harness .text-link { margin-top: 22px; color: var(--ink); text-decoration-color: #717d68; }
.focus__harness .text-link:hover { color: var(--rust); }

/* definitions of the two kinds of consciousness */
.definitions { display: grid; grid-template-columns: 1fr 1fr; gap: 59px; margin-top: 26px; }
.definitions h3 { margin: 0 0 11px; font-size: clamp(23px, 2.05vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -.015em; color: var(--ivory); }
.definitions p { margin: 0; max-width: 36rem; font-size: 18px; line-height: 1.5; color: var(--text); }
.definitions section + section { border-left: 1px solid var(--rule); padding-left: 59px; }
.definitions__after { margin: 26px 0 18px; font-size: 18px; color: var(--text); }
.homeostatic-view { margin: 40px 0 22px; padding-top: 30px; border-top: 1px solid var(--rule); }
.homeostatic-view h3 { margin: 0 0 11px; font-size: clamp(23px, 2.05vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -.015em; color: var(--ivory); }
.homeostatic-view p { margin: 0; max-width: 48rem; font-size: 18px; line-height: 1.55; color: var(--text); }
.homeostatic-view p + p { margin-top: 14px; }

/* projects */
.projects { width: 100%; margin-top: 14px; border-collapse: collapse; table-layout: fixed; font-size: 17px; line-height: 1.45; }
.projects th, .projects td { padding: 14px 0; text-align: left; vertical-align: top; font-weight: 400; }
.projects tbody tr + tr { border-top: 1px solid var(--rule); }
.projects__col-year { width: 13.8%; } .projects__col-title { width: 56%; } .projects__col-status { width: 30.2%; }
.projects tbody th { padding-right: 24px; padding-top: 16px; font-size: 15px; color: var(--amber); font-variant-numeric: tabular-nums; }
.projects__title { padding-right: 36px !important; }
.projects__title a { color: var(--ivory); text-decoration-color: var(--rule); }
.projects__title a:hover { color: var(--orange); }
.projects__status { font-size: 16px; color: var(--muted); }

/* ---------- interior pages ---------- */
.page { padding: 28px 0 24px; }
.breadcrumb { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--quiet); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.has-toc .page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 72px; }
.toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; padding: 6px 0 0 22px; border-left: 1px solid var(--rule); }
.toc__label { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory); }
.toc__list { margin: 0; padding: 0; list-style: none; }
.toc__list li { margin: 0; }
.toc__list a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.toc__list a:hover { color: var(--orange); }
.toc__sub a { padding-left: 14px; font-size: 13px; color: var(--quiet); }

.doc { font-size: 18px; line-height: 1.68; color: var(--text); }
/* text keeps a reading measure; figures, posters and tables may use the full column */
.doc > :where(p, ul, ol, dl, h1, h2, h3, h4, blockquote, hr, pre, .breadcrumb) { max-width: var(--measure); }
.doc > .doc-title { max-width: 52rem; }
.doc > p:is(:has(> img), :has(> a > img)) { max-width: 60rem; }
.doc-title { margin: 6px 0 22px; font-size: clamp(36px, 4.6vw, 64px); font-weight: 300; line-height: 1.06; letter-spacing: -.03em; color: var(--ivory); text-wrap: balance; overflow-wrap: anywhere; }
.doc p { margin: 1.05em 0; text-wrap: pretty; }
.doc h1:not(.doc-title), .doc h2 { margin: 1.9em 0 .7em; padding-top: 22px; border-top: 1px solid var(--rule); font-size: clamp(26px, 2.4vw, 34px); font-weight: 300; line-height: 1.18; letter-spacing: -.02em; color: var(--ivory); text-wrap: balance; overflow-wrap: anywhere; }
.doc h1:not(.doc-title):not(.hidden) ~ h2 { margin-top: 1.8em; padding-top: 0; border-top: 0; font-size: clamp(22px, 1.9vw, 27px); font-weight: 400; }
.doc h3 { margin: 2em 0 .5em; font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--ivory); }
.doc h4 { margin: 1.8em 0 .5em; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.doc strong { font-weight: 600; color: var(--ivory); }
.doc em { font-style: italic; }
.doc a { color: var(--ivory); text-decoration-color: var(--link-line); }
.doc a:hover { color: var(--orange); text-decoration-color: currentColor; }
.doc ul, .doc ol { margin: 1.05em 0; padding-left: 1.4em; }
.doc ul { list-style: none; }
.doc ol { list-style: decimal; }
.doc ul > li { position: relative; }
.doc ul > li::before { content: ""; position: absolute; left: -1.1em; top: .74em; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.doc li { margin: .5em 0; }
.doc li > p { margin: .4em 0; }
.doc ol li::marker { color: var(--amber); font-variant-numeric: tabular-nums; }
.doc blockquote { margin: 1.8em 0; padding: .1em 0 .1em 28px; border-left: 1px solid var(--orange); font-size: 22px; line-height: 1.4; font-weight: 300; letter-spacing: -.01em; color: var(--ivory); }
.doc blockquote p { margin: .4em 0; }
.doc hr { height: 1px; margin: 3em 0; border: 0; background: var(--rule); }
.doc code { font-family: var(--mono); font-size: .84em; padding: .12em .38em; border-radius: 3px; background: var(--forest-2); color: var(--ivory); }
.doc pre { overflow: auto; padding: 16px 18px; background: var(--forest-2); border: 1px solid var(--rule-soft); font-size: 15px; line-height: 1.55; }
.doc pre code { padding: 0; background: none; }
.doc img { margin: 1.6em 0; border: 1px solid var(--rule); }
.doc figure { margin: 1.6em 0; }
.doc figure img { margin: 0; }
.doc figcaption, .doc .text-sm { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--quiet); }
.doc table { display: block; width: 100%; overflow-x: auto; margin: 1.8em 0; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.doc thead th { padding: 10px 14px 10px 0; text-align: left; vertical-align: bottom; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); border-bottom: 1px solid var(--rule); }
.doc tbody td { padding: 12px 14px 12px 0; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
.doc .katex { color: var(--ivory); }
.doc .katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }

/* wordmark on the About page: the asset is dark on transparent, so it sits on a cream plate */
.doc .banner-wrap { max-width: 260px; margin: 0 0 2.2rem; padding: 14px 18px; background: var(--cream); }
.doc .banner-wrap .banner-logo { width: 100%; margin: 0; border: 0; }
.doc .wave-figure { max-width: 432px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .has-toc .page__grid { display: block; }
  .toc { display: none; }
}
@media (max-width: 1050px) {
  .hvar-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
  .focus__top, .focus__bottom { gap: 40px; }
  body { font-size: 17px; }
  .site-header { min-height: 80px; }
  .site-nav { gap: 20px; }
  .site-nav__link { font-size: 14px; }
  .hero__intro p { font-size: 17px; }
  .progression { gap: 20px; }
  .stage::before { right: -20px; }
  .stage h3 { font-size: 18px; }
  .tree__node { padding-left: 44px; }
  .tree__node--theory { margin: 0 10px 0 45px; }
  .tree__node--architecture { margin: 28px 0 0 84px; }
  .tree__substrates { margin-left: 131px; gap: 36px; }
  .tree__substrates::before { width: 35px; right: calc(100% + 12px); }
  .substrates { gap: 27px; }
  .substrate--pattern { grid-template-columns: .82fr 1.18fr; gap: 25px; }
  .substrate--agent { padding-left: 27px; }
  .substrate h4 { font-size: 25px; }
  .substrate p:not(.substrate__kind) { font-size: 16px; }
  .definitions { gap: 36px; }
  .definitions section + section { padding-left: 36px; }
  .site-footer__credit { max-width: 260px; }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .mobile-menu { display: block; }
}
@media (max-width: 720px) {
  :root { --gutter: 22px; }
  body { font-size: 16px; }
  .site-header { min-height: 72px; }
  .brand { font-size: 22px; gap: 10px; }
  .brand__mark { height: 26px; }
  .hero { padding-top: 24px; }
  .hero__title { line-height: 1.04; }
  .hero__art { width: 100%; margin-top: 20px; }
  .hero__art figcaption { right: var(--gutter); bottom: 0; }
  .hero__intro { padding: 26px 0 32px; }
  .hero__intro p { font-size: 17px; }
  .hero__links { gap: 20px; }
  .text-link { font-size: 15px; gap: 10px; }
  .section-title { font-size: 32px; }
  .section-intro { font-size: 17px; }
  .home-section { padding: 30px 0 34px; }
  .progression { display: block; margin: 30px 0 8px; }
  .stage { padding: 0 0 28px 64px; min-height: 88px; }
  .stage::before { left: 37px; right: auto; top: 8px; bottom: -8px; width: 1px; height: auto; }
  .stage__number { position: absolute; top: 2px; left: 0; font-size: 12px; }
  .stage__marker { position: absolute; top: 7px; left: 34px; width: 7px; height: 7px; margin: 0; }
  .stage h3 { max-width: none; font-size: 20px; }
  .stage p { margin-top: 6px; max-width: 30rem; }
  .stage--integrated::before { width: 0; border-top: 0; border-left: 1px dotted var(--amber); }
  .stage--felt::before { display: none; }
  .stage--felt .stage__marker { top: 8px; }
  .stage--felt .stage__marker::after { inset: -8px; }
  .stage__hypothesis { position: static; display: block; margin-bottom: 4px; font-size: 12px; }
  .prose p { font-size: 17px; line-height: 1.62; }
  .research__heading { font-size: 22px; line-height: 1.4; }
  .tree { padding-top: 32px; }
  .tree__node { padding-left: 30px; }
  .tree__node--theory { margin: 0 0 0 7px; }
  .tree__node--architecture { margin: 26px 0 0 26px; padding-bottom: 28px; }
  .tree__node h3 { font-size: 24px; }
  .tree__node > p:not(.eyebrow) { font-size: 16px; }
  .tree__number { font-size: 12px; }
  .tree__node > .tree__number { left: -6px; }
  .tree__substrates { margin-left: 58px; gap: 18px; }
  .tree__substrates::before { width: 22px; right: calc(100% + 10px); }
  .substrates { display: block; margin-top: 24px; }
  .substrate--pattern { display: block; }
  .substrate__art { margin-bottom: 22px; }
  .substrate__art img { max-height: 220px; }
  .substrate h4 { font-size: 26px; }
  .substrate--agent { margin-top: 28px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .focus__top { grid-template-columns: 1fr; gap: 8px; padding: 32px 0 12px; }
  .focus__story h2 { font-size: 56px; }
  .focus__story > p:not(.eyebrow) { font-size: 17px; max-width: none; }
  .focus__art { margin: 0 calc(var(--gutter) * -1); }
  .focus__art img { max-height: 240px; object-position: center; }
  .focus__parts { padding: 26px 0 28px; }
  .hvar-parts { grid-template-columns: 1fr; gap: 22px; }
  .hvar-parts h4 { font-size: 22px; }
  .focus__bottom { grid-template-columns: 1fr; gap: 26px; padding: 26px 0 40px; }
  .focus__methods p { font-size: 16px; }
  .definitions { grid-template-columns: 1fr; gap: 24px; }
  .definitions section + section { border-left: 0; padding: 24px 0 0; border-top: 1px solid var(--rule); }
  .definitions h3 { font-size: 24px; }
  .definitions p, .definitions__after, .homeostatic-view p { font-size: 17px; }
  .projects, .projects tbody { display: block; }
  .projects tbody tr { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; padding: 16px 0; }
  .projects th, .projects td { width: auto !important; padding: 0 !important; }
  .projects tbody th { grid-row: 1 / 3; padding-top: 2px !important; font-size: 13px; }
  .projects__title { grid-column: 2; }
  .projects__status { grid-column: 2; margin-top: 6px; font-size: 14px; }
  .doc { font-size: 17px; line-height: 1.64; }
  .doc blockquote { font-size: 19px; padding-left: 20px; }
  .site-footer { min-height: 250px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 18px; min-height: 250px; padding: 140px 0 24px; }
  .site-footer__identity { display: block; }
  .site-footer__credit { display: block; margin-top: 14px; padding-left: 0; border-left: 0; font-size: 13px; }
  .site-footer__nav { justify-content: flex-start; gap: 8px 22px; }
  .site-footer__nav a { font-size: 13px; }
}

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