/* Jeremy Bryant — an engineering field journal. All resources are local. */
:root {
  --paper: #f3f1e9;
  --paper-light: #fcfbf6;
  --ink: #14231f;
  --green: #265647;
  --green-light: #d9e3d5;
  --muted: #5b665e;
  --line: #c9cec1;
  --line-dark: #46594e;
  --amber: #a64e1d;
  --sans: "Inter", "Aptos", "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content: 1320px;
  --gutter: clamp(22px, 4.4vw, 76px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, button, input, textarea, select { font-family: var(--sans); }
button, input, textarea, select { font-size: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
button, a, summary { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .55; }
img, svg, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--green); }
::selection { background: #c9dac2; color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, dl { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; text-wrap: balance; }
h1, h2, h3 { letter-spacing: -.055em; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: .55em; }
strong { font-weight: 650; }
small, .small { font-size: .82rem; line-height: 1.6; }
code, kbd, samp { font-family: var(--mono); font-size: .84em; overflow-wrap: anywhere; }
code { background: #e6e8de; padding: .12em .35em; border-radius: 2px; }
pre { padding: 1.25rem; background: var(--ink); color: var(--paper); overflow-x: auto; }
pre code { padding: 0; background: none; }
blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 2px solid var(--green); }
hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }
sup { font-size: .65em; }
.container { width: min(calc(100% - var(--gutter) * 2), var(--content)); margin-inline: auto; }
.visually-hidden, .print-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; z-index: 100; left: var(--gutter); top: 12px;
  padding: .7rem 1rem; background: var(--ink); color: var(--paper);
  transform: translateY(-180%); text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.anchor-offset, [id] { scroll-margin-top: 110px; }

/* The compact masthead keeps the identity and the document navigation distinct. */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header > .container, .site-header.container {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 99px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; gap: 1px; width: 37px; height: 37px;
  color: var(--paper); background: var(--ink); font-family: var(--mono);
  font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: -.06em;
}
.brand-name { font-size: .94rem; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.brand-name small, .brand-name > span { display: block; margin-top: .25rem; color: var(--muted); font-size: .68rem; font-weight: 400; letter-spacing: .04em; }
.brand-mark > span { color: #b9ceab; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 2.5vw, 38px); }
.nav-link { font-size: .79rem; text-decoration: none; padding-block: 9px; border-bottom: 1px solid transparent; }
.nav-link:hover, .nav-link[aria-current="page"] { border-bottom-color: var(--green); }
.nav-link:last-child { color: var(--green); }
.nav-toggle { display: none; border: 1px solid var(--line); background: transparent; padding: .55rem .7rem; border-radius: 0; font-size: .8rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 20px;
  min-height: 49px; padding: 12px 21px; border: 1px solid var(--ink);
  border-radius: var(--radius); font-size: .82rem; font-weight: 550; line-height: 1.35;
  text-decoration: none; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.button svg { width: 16px; height: 16px; flex-shrink: 0; }
.button-primary { color: var(--paper-light); background: var(--green); border-color: var(--green); }
.button-primary:hover { background: var(--ink); border-color: var(--ink); }
.button-secondary { background: transparent; border-color: var(--line); }
.button-secondary:hover { border-color: var(--green); background: #e7eadf; }
.button-light { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.button-light:hover { background: var(--green-light); border-color: var(--green-light); }
.eyebrow { font: 400 .66rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6e865f; flex-shrink: 0; }
.signal { display: inline-flex; gap: 9px; align-items: center; font: .63rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--green); }

/* Front page: a large, restrained typographic opening beside a technical figure. */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center; gap: clamp(20px, 3vw, 50px); padding-block: clamp(68px, 7vw, 112px) 64px;
}
.hero-copy { position: relative; min-width: 0; z-index: 1; }
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-title { font-size: clamp(3.4rem, 5.45vw, 5.7rem); line-height: 1.01; letter-spacing: -.07em; font-weight: 550; max-width: 15ch; }
.hero-title span, .hero-title em { color: var(--green); font-style: normal; }
.hero-lede { max-width: 43ch; margin-top: 30px; color: var(--muted); font-size: clamp(1rem, 1.18vw, 1.12rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 30px; }
.hero-art { position: relative; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hero-art > img, .hero-art > svg { width: 100%; }
.hero-art::before { content: ""; position: absolute; top: 8%; bottom: 8%; left: -7%; width: 1px; background: var(--line); }
.hero-caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); font: .59rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .055em; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 38px; color: var(--muted); font-size: .72rem; }
.hero-meta > * + * { position: relative; }
.hero-meta > * + *::before { content: "/"; color: #a4ab9e; margin-right: 24px; }
.fact-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 25px 26px; border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact-label { display: block; font: .61rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.fact-value { display: block; margin-top: 7px; font-size: .89rem; line-height: 1.5; font-weight: 550; letter-spacing: -.02em; }

/* Sections use rules and the page grid rather than a collection of floating cards. */
.section { padding-block: clamp(74px, 7vw, 112px); }
.section + .section:not(.section-dark) { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .68fr); align-items: end; gap: 34px; margin-bottom: 43px; }
.section-number { display: inline-block; margin-right: 20px; font: .66rem/1.4 var(--mono); color: var(--green); }
.section-title { font-size: clamp(2.1rem, 3.4vw, 3.3rem); font-weight: 550; }
.section-title em { color: var(--green); font-style: normal; }
.section-heading > div > .eyebrow + .section-title { margin-top: 24px; }
.section-intro { color: var(--muted); font-size: .88rem; line-height: 1.75; max-width: 39ch; padding-top: 6px; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .eyebrow, .section-dark .section-number, .section-dark .section-intro { color: #adbdae; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); align-items: stretch; gap: clamp(35px, 5vw, 80px); }
.project-grid > .project-copy { padding: 0; }
.project-grid > .project-copy > .project-tags:first-child { margin-top: 0; margin-bottom: 28px; }
.project-grid > .project-copy > .button { margin-top: 29px; }
.project-grid > .project-copy > .section-title { font-size: clamp(2.4rem, 4.2vw, 4.2rem); line-height: 1.04; }
.section-dark .project-copy p { color: #bdcbb6; }
.section-dark .project-tags .tag { color: #c3d0bb; border-color: #4b6150; }
.section-dark .project-meta { color: #a9bda3; border-color: var(--line-dark); }
.section-dark .fact-strip { margin-top: 50px; border-color: var(--line-dark); }
.section-dark .fact { border-color: var(--line-dark); }
.section-dark .fact-label { color: #a6b99f; }
.section-dark .fact-value { color: var(--paper); }
.project-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); background: #f7f6ef; }
.project-copy { padding: clamp(28px, 3.4vw, 52px); min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.project-copy .eyebrow { margin-bottom: 24px; }
.project-copy h3 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); max-width: 19ch; line-height: 1.12; }
.project-copy h3 a { text-decoration: none; }
.project-copy p { margin-top: 22px; color: var(--muted); font-size: .93rem; max-width: 47ch; }
.project-copy .text-link { margin-top: 29px; }
.project-visual { min-width: 0; min-height: 330px; padding: 26px; display: flex; flex-direction: column; justify-content: center; background: #dfe5d9; color: var(--ink); overflow: hidden; border-left: 1px solid var(--line); }
.project-visual > img, .project-visual > svg { width: 100%; }
.project-visual > figcaption { margin-top: 16px; font: .61rem/1.6 var(--mono); color: var(--muted); }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); font: .57rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .025em; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px 23px; margin-top: 28px; padding-top: 18px; width: 100%; border-top: 1px solid var(--line); color: var(--muted); font: .61rem/1.5 var(--mono); }
.text-link { display: inline-flex; align-items: center; gap: 22px; width: fit-content; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: .81rem; font-weight: 550; text-decoration: none; }
.text-link:hover { color: var(--green); }
.text-link span[aria-hidden="true"] { display: inline-block; transition: transform .2s var(--ease); }
.text-link:hover span[aria-hidden="true"] { transform: translateX(4px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(40px, 9vw, 144px); }
.about-copy { max-width: 58ch; }
.about-copy > p { color: var(--muted); font-size: 1.02rem; line-height: 1.8; }
.about-copy > h2 { margin-bottom: 29px; }
.section-dark .about-copy > p { color: #c4cec1; }
.about-copy > p + p { margin-top: 20px; }
.about-copy .lead { color: var(--ink); font-size: clamp(1.4rem, 2.1vw, 2rem); letter-spacing: -.035em; line-height: 1.5; }
.section-dark .about-copy .lead { color: var(--paper); }
.about-copy .text-link { margin-top: 28px; }
.section-dark .text-link:hover { color: #c4d8bc; }
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 85px minmax(0, 1fr); column-gap: 16px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.principle-index { grid-column: 1; font: .57rem/1.7 var(--mono); color: var(--green); padding-top: 4px; }
.principle h3 { grid-column: 2; font-size: 1.12rem; letter-spacing: -.025em; font-weight: 500; }
.principle p { grid-column: 2; margin-top: 7px; color: var(--muted); font-size: .84rem; line-height: 1.7; }
.section-dark .principles, .section-dark .principle { border-color: var(--line-dark); }
.section-dark .principle-index, .section-dark .principle p { color: #aebdac; }
.principle > div { grid-column: 2; }
.writing-list { border-top: 1px solid var(--line); }
.writing-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) 36px; gap: 20px; align-items: start; padding: 29px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.writing-number { padding-top: 4px; color: var(--muted); font: .66rem/1.5 var(--mono); }
.writing-content h3 { font-size: clamp(1.22rem, 1.6vw, 1.5rem); font-weight: 550; letter-spacing: -.035em; line-height: 1.3; }
.writing-content h3 a { text-decoration: none; }
.writing-content p { margin-top: 7px; max-width: 72ch; color: var(--muted); font-size: .86rem; }
.writing-content .eyebrow { margin-bottom: 9px; font-size: .58rem; }
.writing-arrow { font-size: 1.35rem; line-height: 1.3; color: var(--green); justify-self: end; transition: transform .2s var(--ease); }
a.writing-item:hover .writing-arrow { transform: translate(3px, -3px); }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 50px; row-gap: 28px; align-items: end; border-top: 1px solid var(--line); padding-block: 68px 78px; }
.contact-panel .eyebrow { margin-bottom: 22px; }
.contact-title { font-size: clamp(2.4rem, 4vw, 4rem); max-width: 20ch; font-weight: 550; line-height: 1.08; }
.contact-panel p:not(.eyebrow) { color: var(--muted); max-width: 60ch; font-size: .91rem; margin-top: 22px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact-actions > .small, .contact-actions > p { flex-basis: 100%; }
#connect.section { padding-block: 0; }
.section > .contact-panel { border-top: 0; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .69rem; padding-block: 25px 30px; }
.site-footer > .container, .site-footer.container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 23px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Case studies read like a considered technical report, with persistent wayfinding. */
.case-hero { padding-block: 69px 51px; border-bottom: 1px solid var(--line); }
.case-hero .eyebrow { margin-bottom: 30px; }
.case-hero .text-link { margin-bottom: 40px; }
.case-title { max-width: 18ch; font-size: clamp(2.7rem, 5.8vw, 5.8rem); font-weight: 550; letter-spacing: -.06em; line-height: 1.04; }
.case-title em { color: var(--green); font-style: normal; }
.case-deck { margin-top: 29px; max-width: 68ch; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.26rem); line-height: 1.7; }
.case-meta { display: flex; flex-wrap: wrap; gap: 17px 45px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font: .65rem/1.6 var(--mono); }
.case-meta dt { text-transform: uppercase; font-size: .58rem; letter-spacing: .06em; }
.case-meta dd { margin: 5px 0 0; color: var(--ink); font-family: var(--sans); font-size: .84rem; }
.case-meta strong { display: block; margin-top: 5px; color: var(--ink); font: 500 .84rem/1.5 var(--sans); }
.case-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: clamp(45px, 7vw, 105px); padding-block: 62px 100px; align-items: start; }
.case-toc { position: sticky; top: 35px; color: var(--muted); font-size: .74rem; }
.case-toc .eyebrow { margin-bottom: 20px; }
.case-toc ol, .case-toc ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.case-toc li { margin: 0; border-bottom: 1px solid var(--line); }
.case-toc nav { border-top: 1px solid var(--line); }
.case-toc nav > a { border-bottom: 1px solid var(--line); }
.case-toc a { display: block; padding: 11px 0 11px 14px; text-decoration: none; border-left: 2px solid transparent; line-height: 1.5; }
.case-toc a:hover, .case-toc a[aria-current="location"] { color: var(--green); border-left-color: var(--green); background: #e9ece2; }
.case-toc .download-link { margin-top: 22px; padding-left: 0; border-left: 0; font-size: .72rem; }
.case-body { min-width: 0; max-width: 880px; }
.case-section + .case-section { margin-top: 57px; padding-top: 46px; border-top: 1px solid var(--line); }
.case-section-title { font-size: clamp(1.7rem, 2.5vw, 2.5rem); font-weight: 550; margin-bottom: 24px; }
.case-section > .eyebrow { margin-bottom: 15px; }
.case-section > p, .case-section > ul, .case-section > ol, .case-section > figure, .case-section > details, .case-section > table, .case-section > .note, .case-section > .diagram-view { margin-top: 22px; }
.case-section p, .case-section li { color: #43534b; font-size: .97rem; line-height: 1.85; }
.case-section h3 { font-size: 1.18rem; letter-spacing: -.025em; line-height: 1.4; margin-top: 29px; margin-bottom: 10px; }
.case-section h4 { font-size: 1rem; margin-top: 24px; }
.case-section figure > figcaption { margin-top: 12px; color: var(--muted); font: .62rem/1.75 var(--mono); }
.case-section .lead, .lead { font-size: 1.19rem; color: var(--ink); line-height: 1.7; letter-spacing: -.015em; }
.note { padding: 23px 26px; border-left: 2px solid var(--green); background: #e7ebdf; }
.note-label { display: block; margin-bottom: 8px; color: var(--green); font: .62rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.note p { font-size: .88rem; line-height: 1.8; }
.note p + p { margin-top: 12px; }
.decision-list { margin-top: 30px; counter-reset: decision; }
.decision { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; border-top: 1px solid var(--line); padding-block: 25px; }
.decision:last-child { border-bottom: 1px solid var(--line); }
.decision-number { padding-top: 6px; color: var(--green); font: .67rem/1.5 var(--mono); }
.decision-content h3 { margin: 0 0 9px; font-size: 1.15rem; }
.decision-content p { font-size: .9rem; }
.decision-content p + p { margin-top: 10px; }
.evidence-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; }
.evidence-table caption { text-align: left; margin-bottom: 15px; color: var(--muted); font-size: .77rem; }
.evidence-table th, .evidence-table td { padding: 17px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.65; }
.evidence-table th { border-top: 1px solid var(--ink); background: #e9ece1; font: 500 .6875rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.evidence-table th:first-child, .evidence-table td:first-child { padding-left: 0; width: 29%; }
.evidence-table th:first-child { padding-left: 12px; }
.evidence-table th:last-child, .evidence-table td:last-child { padding-right: 0; }
.evidence-table td { color: #43534b; }
.evidence-table tbody th { border-top: 0; background: transparent; font-size: inherit; font-family: var(--sans); font-weight: 550; line-height: 1.65; text-transform: none; letter-spacing: 0; }
.evidence-table tbody th:first-child { padding-left: 0; }
.evidence-table td:first-child { color: var(--ink); font-weight: 550; }
.evidence-state { display: inline-block; padding: 3px 7px; background: #dae5d4; color: #254a37; font: .6875rem/1.5 var(--mono); text-transform: uppercase; white-space: normal; }
.evidence-state[data-state="pending"], .evidence-state[data-state="unverified"], .evidence-pending { background: #eee1cd; color: #784219; }
.source-list { margin-top: 22px; padding-left: 20px; }
.source-list li { font-size: .83rem; padding-left: 5px; }
.source-list a { overflow-wrap: anywhere; }
.source-list li > span { display: block; margin-top: 4px; color: var(--muted); font-size: .79rem; }
.next-project { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 55px; padding-block: 30px; border-top: 1px solid var(--line); }
.next-project h2, .next-project h3 { font-size: 1.5rem; margin-top: 10px; }
.download-link { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 500; }
button.download-link { background: none; border: 0; padding: 0; text-align: left; line-height: 1.5; text-decoration: underline; text-underline-offset: .22em; }
.disclosure { color: var(--muted); font-size: .78rem; line-height: 1.75; }
.case-body > .disclosure { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
details { border-block: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-size: .88rem; font-weight: 550; }
details[open] > summary { margin-bottom: 15px; }

/* Both diagram states are present without JS; enhancement adds a real state switch. */
.diagram-view { margin-top: 28px; padding: 25px; border: 1px solid var(--line); background: #e8ecdf; }
.diagram-view > .eyebrow, .diagram-label { display: block; margin-bottom: 20px; color: var(--green); font: .62rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.diagram-label { display: flex; justify-content: space-between; gap: 15px; }
.diagram-label > span:last-child { text-align: right; }
.diagram-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.diagram-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.diagram-button { display: inline-flex; align-items: center; min-height: 40px; margin: 0 6px 15px 0; padding: 9px 13px; background: transparent; border: 1px solid #afbcaa; border-radius: 0; color: #385442; font-size: .74rem; line-height: 1.35; }
.diagram-button:hover { background: #d8e1d0; border-color: var(--green); }
.diagram-button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--paper-light); }
.diagram-panel { padding-top: 21px; margin-top: 9px; border-top: 1px solid #bbc8b4; }
.diagram-panel + .diagram-panel { margin-top: 24px; }
.diagram-panel h3 { margin: 0 0 16px; }
.diagram-panel p { font-size: .85rem; }
.diagram-panel > p:last-child { margin-top: 18px; }
.diagram-node { min-width: 0; padding: 16px 18px; border: 1px solid #a9b8a0; background: #f4f5ed; color: var(--ink); font-size: .83rem; }
.diagram-node strong { display: block; font-weight: 600; }
.diagram-node span, .diagram-node small { display: block; font-size: .7rem; color: var(--muted); margin-top: 4px; }
.diagram-node-main { background: var(--green); color: var(--paper-light); border-color: var(--green); }
.diagram-node-main span, .diagram-node-main small { color: #cbdcc0; }
.diagram-node-main > strong { font-size: 1.2rem; letter-spacing: -.025em; }
.diagram-node .eyebrow { font-size: .56rem; margin: 0 0 6px; }
.diagram-edge { display: block; padding: 8px 14px; font: .62rem/1.6 var(--mono); color: var(--green); letter-spacing: .025em; }
.diagram-edge::before { content: "↓"; display: inline-block; margin-right: 12px; font: 1.1rem/1 var(--sans); }
.reveal, .reveal-visible { opacity: 1; transform: none; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.table-scroll-hint { display: none; }

/* Original motion: a few moving planes, native scrolling, and visible wayfinding. */
.reading-progress { position: fixed; z-index: 80; inset: 0 0 auto; height: 3px; pointer-events: none; }
.reading-progress > span { display: block; width: 100%; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left center; }
.hero-depth-plane { display: none; }
.motion-enabled .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.motion-enabled .reveal.motion-waiting { opacity: 0; transform: translate3d(0, 22px, 0); }
.motion-enabled .reveal.reveal-visible, .motion-enabled .reveal:focus-within { opacity: 1; transform: none; }
.motion-enabled .writing-item.reveal:nth-child(2) { transition-delay: 70ms; }
.motion-enabled .writing-item.reveal:nth-child(3) { transition-delay: 140ms; }

@media (min-width: 821px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-art.motion-depth { isolation: isolate; }
  .motion-depth .hero-depth-plane { display: block; position: absolute; z-index: -1; width: 70%; height: 70%; left: 23%; top: 12%; border: 1px solid #d4dccb; background: #e6eadf; transform: translate3d(calc(var(--hero-x, 0px) * -.45), calc(var(--hero-y, 0px) * -.38), 0); transition: transform .3s var(--ease); }
  .hero-art.motion-depth .lab-layer { will-change: transform; transform-box: view-box; }
  .hero-art.motion-depth .lab-layer-grid { transform: translate3d(calc(var(--hero-x, 0px) * -.32), calc(var(--hero-y, 0px) * -.2), 0); }
  .hero-art.motion-depth .lab-layer-nodes { transform: translate3d(calc(var(--hero-x, 0px) * -.2), calc(var(--hero-y, 0px) * -.12), 0); }
  .hero-art.motion-depth .lab-layer-tv { transform: translate3d(calc(var(--hero-x, 0px) * .38), calc(var(--hero-y, 0px) * .32), 0); }
  .motion-depth .hero-caption { position: relative; z-index: 2; }
}

@media (min-width: 1600px) {
  .hero { padding-block: 110px 85px; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-title { font-size: clamp(3.2rem, 6.1vw, 4.8rem); }
  .hero-art::before { left: -4%; }
  .section-heading { grid-template-columns: minmax(0, 1fr) minmax(200px, .8fr); }
  .case-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 40px; }
  .project-copy { padding: 30px; }
  .project-visual { padding: 17px; }
  .fact { padding-inline: 18px; }
  .fact-value { font-size: .83rem; }
  .contact-panel { grid-template-columns: minmax(0, 1fr) minmax(240px, .6fr); }
}

@media (max-width: 820px) {
  :root { --gutter: 30px; }
  .site-header > .container, .site-header.container { min-height: 84px; }
  .site-nav { gap: 21px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 57px 44px; }
  .hero-title { max-width: 14ch; font-size: clamp(3.5rem, 8.3vw, 5.3rem); }
  .hero-lede { max-width: 56ch; }
  .hero-art { max-width: 660px; width: 100%; margin-inline: auto; }
  .hero-art::before { display: none; }
  .hero-art > img { max-height: 490px; object-fit: contain; }
  .hero-caption { margin-top: 5px; }
  .hero-meta { margin-top: 26px; }
  .fact-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact { padding: 20px; }
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 30px; }
  .section-intro { grid-column: 1; max-width: 55ch; padding-top: 0; }
  .section-number { padding-top: 7px; }
  .project-feature { grid-template-columns: minmax(0, 1fr); }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .project-grid > .project-copy > .section-title { font-size: 3.6rem; }
  .project-grid > .project-visual { max-height: none; padding: 30px; }
  .project-copy { padding: 32px; }
  .project-copy h3 { max-width: 25ch; }
  .project-copy p { max-width: 60ch; }
  .project-visual { min-height: 0; max-height: 460px; border-left: 0; border-top: 1px solid var(--line); padding: 28px 40px; }
  .project-visual > img { max-height: 380px; object-fit: contain; }
  .about-grid { gap: 44px; grid-template-columns: minmax(0, 1fr); }
  .about-copy { max-width: none; }
  .principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principle { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; column-gap: 0; border-right: 1px solid var(--line); }
  .principle:first-child { padding-left: 0; }
  .principle:last-child { padding-right: 0; border-right: 0; }
  .principle-index, .principle h3, .principle p, .principle > div { grid-column: 1; }
  .principle-index { margin-bottom: 17px; }
  .principle h3 { font-size: 1rem; }
  .principle p { font-size: .78rem; }
  .writing-item { grid-template-columns: 35px minmax(0, 1fr) 23px; gap: 14px; }
  .contact-panel { grid-template-columns: minmax(0, 1fr); padding-block: 50px; }
  .contact-title { max-width: 21ch; }
  .case-hero { padding-block: 50px 35px; }
  .case-title { max-width: 18ch; font-size: clamp(3rem, 7.8vw, 4.6rem); }
  .case-layout { grid-template-columns: minmax(0, 1fr); gap: 38px; padding-block: 35px 65px; }
  .case-toc { position: static; }
  .case-toc ol, .case-toc ul, .case-toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-toc .eyebrow { margin-bottom: 13px; }
  .case-toc a { padding: 10px 12px; }
  .case-toc .download-link { margin-top: 14px; }
}

@media (max-width: 560px) {
  :root { --gutter: 22px; }
  body { font-size: 16px; }
  html { scroll-padding-top: 30px; }
  .anchor-offset, [id] { scroll-margin-top: 30px; }
  .site-header > .container, .site-header.container { min-height: 79px; gap: 10px; flex-wrap: wrap; padding-block: 19px; }
  .brand-mark { width: 34px; height: 34px; font-size: 12px; }
  .brand-name { font-size: .86rem; }
  .brand-name small, .brand-name > span { font-size: .62rem; }
  .site-nav { width: 100%; gap: 9px 21px; flex-wrap: wrap; padding-top: 10px; }
  .nav-link { font-size: .74rem; }
  .has-js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 58px; min-height: 38px; }
  .has-js .site-header .site-nav { display: none; }
  .has-js .site-header.mobile-menu-open .site-nav { display: flex; border-top: 1px solid var(--line); margin-top: 9px; padding-top: 11px; padding-bottom: 4px; }
  .hero { padding-block: 40px 29px; gap: 28px; }
  .hero-copy .eyebrow { font-size: .59rem; letter-spacing: .1em; margin-bottom: 22px; }
  .hero-title { font-size: clamp(2.75rem, 11.7vw, 4.2rem); max-width: none; letter-spacing: -.065em; }
  .hero-lede { font-size: .96rem; margin-top: 24px; line-height: 1.72; }
  .hero-actions { margin-top: 25px; gap: 10px; }
  .button { min-height: 47px; padding: 11px 16px; gap: 13px; font-size: .76rem; }
  .hero-meta { gap: 9px 14px; font-size: .65rem; margin-top: 25px; }
  .hero-meta > * + *::before { margin-right: 13px; }
  .hero-meta .signal { font-size: .58rem; }
  .hero-caption { font-size: .52rem; gap: 15px; padding-top: 11px; }
  .hero-art > img { max-height: 370px; }
  .fact { padding: 17px 15px; }
  .fact-strip { grid-template-columns: minmax(0, 1fr); }
  .fact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: baseline; border-left: 0; padding: 17px 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .fact-label { font-size: .54rem; letter-spacing: .06em; }
  .fact-value { font-size: .77rem; margin-top: 5px; }
  .section { padding-block: 54px; }
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 25px; }
  .section-number { font-size: .59rem; padding-top: 6px; }
  .section-title { font-size: 2rem; }
  .section-intro { font-size: .81rem; }
  .project-grid { gap: 24px; }
  .project-copy { padding: 25px 23px; }
  .project-grid > .project-copy > .section-title { font-size: 2.9rem; }
  .project-grid > .project-visual { padding: 23px 20px; }
  .project-copy .eyebrow { font-size: .57rem; margin-bottom: 19px; }
  .project-copy h3 { font-size: 1.9rem; line-height: 1.15; max-width: 20ch; }
  .project-copy p { font-size: .86rem; margin-top: 17px; }
  .project-copy .text-link { margin-top: 22px; }
  .project-tags { margin-top: 23px; gap: 5px; }
  .tag { font-size: .52rem; padding-inline: 6px; }
  .project-meta { margin-top: 22px; font-size: .56rem; gap: 8px 16px; }
  .project-visual { padding: 22px 13px; }
  .project-visual > img { max-height: 300px; }
  .text-link { font-size: .77rem; }
  .about-copy > p { font-size: .91rem; }
  .about-copy .lead { font-size: 1.45rem; line-height: 1.5; }
  .about-grid { gap: 30px; }
  .principles { display: block; }
  .principle { grid-template-columns: 77px minmax(0, 1fr); gap: 0 13px; padding: 20px 0; border-right: 0; }
  .principle-index { grid-column: 1; margin: 0; }
  .principle h3, .principle p, .principle > div { grid-column: 2; }
  .principle h3 { font-size: 1.02rem; }
  .principle p { font-size: .81rem; }
  .writing-item { grid-template-columns: 25px minmax(0, 1fr) 18px; gap: 13px; padding-block: 24px; }
  .writing-content h3 { font-size: 1.19rem; }
  .writing-content p { font-size: .8rem; }
  .writing-number { font-size: .58rem; }
  .writing-arrow { font-size: 1.1rem; }
  .contact-panel { padding-block: 44px; gap: 25px; }
  .contact-title { font-size: 2.55rem; }
  .contact-panel p:not(.eyebrow) { font-size: .84rem; margin-top: 18px; }
  .contact-panel .eyebrow { margin-bottom: 17px; }
  .site-footer { font-size: .65rem; }
  .site-footer > .container, .site-footer.container { gap: 14px; align-items: flex-start; flex-direction: column; }
  .case-hero { padding-block: 35px 30px; }
  .case-hero .text-link { margin-bottom: 29px; }
  .case-hero .eyebrow { font-size: .58rem; margin-bottom: 22px; }
  .case-title { font-size: clamp(2.65rem, 11.8vw, 3.7rem); }
  .case-deck { font-size: .97rem; line-height: 1.75; margin-top: 22px; }
  .case-meta { margin-top: 29px; padding-top: 20px; gap: 16px 25px; font-size: .57rem; }
  .case-meta strong, .case-meta dd { font-size: .75rem; }
  .case-layout { gap: 32px; padding-block: 29px 50px; }
  .case-toc { font-size: .67rem; }
  .case-toc a { padding: 10px 7px; }
  .case-section + .case-section { margin-top: 35px; padding-top: 31px; }
  .case-section-title { font-size: 1.7rem; margin-bottom: 19px; }
  .case-section p, .case-section li { font-size: .88rem; line-height: 1.8; }
  .case-section .lead, .lead { font-size: 1.04rem; }
  .case-section h3 { font-size: 1.09rem; }
  .note { padding: 18px; }
  .note-label { font-size: .56rem; }
  .note p { font-size: .81rem; }
  .decision { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding-block: 21px; }
  .decision-content p { font-size: .84rem; }
  .evidence-table { min-width: 560px; font-size: .8125rem; }
  .table-scroll-hint { display: block; color: var(--muted); margin-top: 10px; font-size: .75rem; line-height: 1.6; }
  .evidence-table th, .evidence-table td { padding: 12px 8px; line-height: 1.65; }
  .evidence-table th { font-size: .6875rem; letter-spacing: 0; }
  .evidence-table th:first-child, .evidence-table td:first-child { width: 28%; }
  .evidence-state { font-size: .6875rem; padding: 3px 6px; }
  .source-list li { font-size: .77rem; }
  .diagram-view { padding: 18px 15px; }
  .diagram-label { font-size: .55rem; }
  .diagram-button { min-height: 42px; font-size: .68rem; padding-inline: 10px; }
  .diagram-node { padding: 14px; font-size: .78rem; }
  .diagram-panel p { font-size: .8rem; }
  .next-project { flex-wrap: wrap; gap: 20px; margin-top: 35px; }
  .next-project h2, .next-project h3 { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .motion-enabled .reveal.motion-waiting { opacity: 1; transform: none; }
}

@media print {
  @page { size: A4; margin: 18mm 17mm 20mm; }
  :root { --paper: #fff; --ink: #111; --muted: #444; --line: #bbb; --gutter: 0px; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #111; font-size: 10pt; line-height: 1.55; }
  .container { width: 100%; max-width: none; }
  .site-header, .site-nav, .nav-toggle, .case-toc, .hero-actions, .contact-actions, .skip-link, .no-print, .next-project, .diagram-button, .reading-progress, .hero-depth-plane { display: none !important; }
  .case-layout + .section, .table-scroll-hint { display: none !important; }
  .hero-art.motion-depth .lab-layer { transform: none !important; }
  .motion-enabled .reveal.motion-waiting { opacity: 1; transform: none; }
  .print-only { display: block; position: static; width: auto; height: auto; padding: 0; margin: 0; clip: auto; overflow: visible; white-space: normal; }
  a { text-decoration: none; }
  a[href^="http"] { overflow-wrap: anywhere; }
  .source-list a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; font-weight: 400; }
  h1, h2, h3, h4, summary, .note-label, .eyebrow { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  figure, .note, .decision, tr, .diagram-node, .principle { break-inside: avoid; }
  .hero, .project-feature, .project-grid, .about-grid, .contact-panel { display: block; }
  .hero { padding-block: 0 20pt; }
  .hero-title { max-width: 16ch; font-size: 38pt; }
  .hero-lede { font-size: 11pt; }
  .hero-art { max-width: 115mm; margin: 20pt auto 0; }
  .hero-art::before { display: none; }
  .hero-caption { font-size: 7pt; }
  .fact-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { padding: 12pt; border-top: 0 !important; }
  .section { padding-block: 25pt; }
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: 10pt; margin-bottom: 15pt; }
  .section-title { font-size: 23pt; }
  .section-intro { grid-column: 1; max-width: none; font-size: 9pt; }
  .section-dark { background: #fff; color: #111; border-top: 1px solid #bbb; }
  .section-dark p, .section-dark .eyebrow, .section-dark .section-number, .section-dark .section-intro { color: #444; }
  .about-copy .lead { color: #111; font-size: 15pt; }
  .principles { display: block; margin-top: 15pt; }
  .principle { grid-template-columns: 22pt minmax(0, 1fr); padding: 12pt 0; }
  .principle h3, .principle p, .principle > div { grid-column: 2; }
  .project-copy { padding: 20pt; }
  .project-visual { display: none; }
  .case-hero { padding: 0 0 20pt; }
  .case-hero .text-link { display: none; }
  .case-hero .eyebrow { margin-bottom: 15pt; font-size: 8pt; }
  .case-title { font-size: 34pt; max-width: 20ch; }
  .case-deck { margin-top: 15pt; font-size: 11pt; max-width: none; }
  .case-meta { margin-top: 20pt; padding-top: 12pt; gap: 12pt 25pt; font-size: 8pt; }
  .case-layout { display: block; padding: 20pt 0 0; }
  .case-body { max-width: none; }
  .case-section + .case-section { margin-top: 24pt; padding-top: 20pt; }
  .case-section-title { font-size: 20pt; margin-bottom: 13pt; }
  .case-section p, .case-section li { color: #222; font-size: 10pt; line-height: 1.6; }
  .case-section .lead { font-size: 11.5pt; }
  .case-section h3 { font-size: 12pt; margin-top: 18pt; }
  .note, .diagram-view { background: #f5f5f1; padding: 13pt 16pt; }
  .note p, .decision-content p { font-size: 9pt; }
  .note-label { font-size: 7pt; }
  .table-scroll { overflow: visible; }
  .evidence-table { min-width: 0; font-size: 9.75pt; }
  .evidence-table th, .evidence-table td { padding: 10pt 8pt; }
  .evidence-table th { font-size: 8.25pt; }
  .evidence-state { font-size: 8.25pt; }
  .diagram-panel[hidden] { display: block !important; }
  .diagram-panel { break-inside: avoid; }
  .diagram-node { font-size: 9pt; }
  .diagram-node span, .diagram-node small { font-size: 8pt; }
  .source-list li { font-size: 8.5pt; }
  .site-footer { margin-top: 12pt; padding-block: 8pt; font-size: 7pt; break-inside: avoid; }
  .site-footer > .container { display: block; }
  .footer-links { display: none; }
}

/* Compact, keyboard-accessible entries for the foundation practice catalog. */
.lab-catalog { display: grid; gap: 1rem; margin-top: 2rem; }
.lab-card { border: 1px solid var(--line, #d4d5cb); padding: 1.25rem; }
.lab-card summary { cursor: pointer; list-style-position: outside; margin-left: 1rem; }
.lab-card summary:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.lab-card summary .eyebrow { display: block; margin-bottom: .5rem; }
.lab-summary-title { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.lab-card[open] summary { margin-bottom: 1.25rem; }
.lab-card dl { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem 1rem; margin-block: 1.5rem; }
.lab-card dt { font-weight: 600; }
.lab-card dd { margin: 0; }
.lab-card .text-link { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .lab-card { padding: 1rem; }
  .lab-card dl { grid-template-columns: 1fr; gap: .25rem; }
  .lab-card dd { margin-bottom: .75rem; }
}
