:root {
  --ink: #151714;
  --paper: #f1ede3;
  --blue: #3156d9;
  --orange: #f26a3d;
  --green: #78936a;
  --brass: #d7b44a;
  --concrete: #a9adaa;
  --clay: #a85d45;
  --white: #fbfaf5;
  --muted: #61645e;
  --line: color-mix(in srgb, var(--ink) 22%, transparent);
  --display: "Fraunces", Georgia, serif;
  --sans: "Geist", Arial, sans-serif;
  --max: 1480px;
  --gutter: clamp(1rem, 3.2vw, 3.75rem);
  --space-1: clamp(0.75rem, 1vw, 1rem);
  --space-2: clamp(1.25rem, 2vw, 2rem);
  --space-3: clamp(2rem, 4vw, 4.5rem);
  --space-4: clamp(4rem, 8vw, 8.75rem);
  --ease: cubic-bezier(.2, .75, .2, 1);
}

* { box-sizing: border-box; }
[system-prompt][user-prompt] { display: contents; }
html { color-scheme: light; scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, .25vw + .95rem, 1.12rem);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  z-index: 20;
  background-image: repeating-linear-gradient(0deg, transparent 0 7px, rgba(21,23,20,.018) 8px);
  mix-blend-mode: multiply;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { text-decoration-color: var(--orange); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
::selection { color: var(--white); background: var(--blue); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-180%);
  padding: .75rem 1rem;
  color: var(--white);
  background: var(--ink);
}
.skip-link:focus { transform: none; }

.shell { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.section { position: relative; padding-block: var(--space-4); border-top: 1px solid var(--line); }
.section--dark { color: var(--white); background: var(--ink); --line: rgba(251,250,245,.2); }
.section--blue { color: var(--white); background: var(--blue); --line: rgba(251,250,245,.3); }
.section--clay { color: var(--white); background: var(--clay); --line: rgba(251,250,245,.28); }
.section--green { background: #cbd6c2; }
.section--brass { background: #ead892; }
.section--white { background: var(--white); }
.section-number {
  grid-column: 1 / 3;
  margin: 0;
  font: 500 clamp(3rem, 8vw, 9rem)/.8 var(--sans);
  letter-spacing: -.08em;
  color: transparent;
  -webkit-text-stroke: 1px currentColor;
  opacity: .55;
}
.kicker, .eyebrow, .label {
  margin: 0 0 .85rem;
  font-size: .72rem;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.measure-label::before { content: ""; display: inline-block; width: 2.8rem; height: 1px; margin-right: .75rem; vertical-align: middle; background: currentColor; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 460; letter-spacing: -.045em; line-height: .98; }
h1 { font-size: clamp(3.45rem, 8.7vw, 9.6rem); max-width: 12ch; }
h2 { font-size: clamp(2.55rem, 5.2vw, 6.2rem); max-width: 14ch; }
h3 { margin: 0; font-size: clamp(1.25rem, 1.7vw, 1.8rem); line-height: 1.15; }
.lede { max-width: 58ch; font-size: clamp(1.2rem, 1.2vw + .8rem, 2rem); line-height: 1.36; }
.display-line { font: 430 clamp(3rem, 7.5vw, 9rem)/.93 var(--display); letter-spacing: -.055em; }
.serif { font-family: var(--display); }
.muted { color: color-mix(in srgb, currentColor 67%, transparent); }
.prose { width: min(100%, 72ch); }
.prose p { margin-block: 0 1.3em; }
.prose h2, .prose h3 { max-width: 100%; margin: 2.2em 0 .7em; }
.prose h2 { font-size: clamp(2.2rem, 4.2vw, 4.8rem); }
.prose h3 { font-size: clamp(1.35rem, 2.2vw, 2.2rem); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .55rem; }
.prose blockquote { margin: 2.5rem 0; padding: 1rem 0 1rem clamp(1.25rem, 4vw, 3rem); border-left: 4px solid var(--orange); font: italic 440 clamp(1.55rem, 3vw, 3rem)/1.15 var(--display); }
.reading-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 72ch) minmax(0, 1fr); gap: 2rem; }
.reading-shell > .prose { grid-column: 2; }
.marginal { align-self: start; padding-top: .4rem; font-size: .82rem; line-height: 1.45; border-top: 1px solid currentColor; }

.announcement { padding: .58rem var(--gutter); text-align: center; font-size: .76rem; letter-spacing: .08em; color: var(--white); background: var(--blue); }
#ez-nav { position: sticky; top: 0; z-index: 100; color: var(--ink); background: rgba(251,250,245,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav-row { position: relative; display: flex; align-items: center; min-height: 76px; gap: 1.4rem; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: .7rem; text-decoration: none; font-weight: 760; letter-spacing: -.04em; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); align-items: end; gap: 3px; width: 23px; height: 26px; }
.brand-mark i { display: block; background: currentColor; }
.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 25px; }
.brand-mark i:nth-child(3) { height: 17px; }
.ez-nav-menu { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.nav-group { position: relative; }
.nav-trigger, .nav-link, .search-trigger { min-height: 44px; padding: .45rem .2rem; border: 0; color: inherit; background: none; font-size: .83rem; font-weight: 620; text-decoration: none; cursor: pointer; }
.nav-trigger::after { content: "+"; margin-left: .35rem; }
.nav-trigger[aria-expanded="true"]::after { content: "−"; }
.mega-panel {
  position: absolute;
  right: -14rem;
  top: calc(100% + 16px);
  width: min(900px, calc(100vw - 2 * var(--gutter)));
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--blue);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.nav-group.is-open .mega-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega-panel::before { content: ""; position: absolute; top: .7rem; left: 1.5rem; right: 1.5rem; height: 1px; transform: scaleX(0); transform-origin: left; background: var(--blue); transition: transform .45s var(--ease); }
.nav-group.is-open .mega-panel::before { transform: scaleX(1); }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding-top: 1rem; }
.mega-grid a { display: block; padding: .28rem 0; font-size: .86rem; text-decoration: none; }
.mega-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.78); }
.nav-actions { display: flex; align-items: center; gap: .65rem; }
.button, .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1rem;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font-size: .78rem;
  font-weight: 720;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s var(--ease), color .2s, background .2s;
}
.button:hover, .nav-cta:hover { transform: translate(-2px, -2px); color: var(--white); background: var(--ink); }
.button--light:hover { color: var(--ink); background: var(--white); }
.button--fill { color: var(--white); background: var(--blue); border-color: var(--blue); }
.button--fill:hover { background: var(--orange); border-color: var(--orange); }
.nav-toggle { display: none; width: 46px; height: 46px; margin-left: auto; border: 1px solid currentColor; background: transparent; }
.nav-toggle span { display: block; width: 22px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero { position: relative; min-height: calc(100svh - 108px); display: grid; align-items: end; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,10,.96) 0%, rgba(10,12,10,.64) 38%, rgba(10,12,10,.08) 74%), linear-gradient(0deg, rgba(10,12,10,.7), transparent 54%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: relative; z-index: 2; padding-block: clamp(4rem, 10vh, 9rem); }
.hero-copy h1 { font-size: clamp(3.4rem, 7.6vw, 8.2rem); }
.hero-copy .lede { max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-index { position: absolute; right: var(--gutter); bottom: 2rem; z-index: 2; width: min(26rem, 38vw); border-top: 1px solid rgba(255,255,255,.5); }
.hero-index button { width: 100%; display: grid; grid-template-columns: 2rem 1fr auto; gap: .7rem; padding: .65rem 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.18); color: inherit; background: transparent; text-align: left; cursor: pointer; }
.hero-index button[aria-pressed="true"] { color: var(--brass); }
.hero-index small { opacity: .7; }

.mission-copy { grid-column: 3 / 12; }
.mission-copy em { color: var(--blue); font-weight: 380; }
.chapter-intro { grid-column: 3 / 10; }
.chapter-aside { grid-column: 10 / 13; align-self: end; }
.media-frame { position: relative; overflow: hidden; background: var(--concrete); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.media-frame:hover img { transform: scale(1.018); }
.caption { display: grid; grid-template-columns: auto 1fr; gap: .7rem; margin-top: .75rem; font-size: .76rem; line-height: 1.4; }
.caption b { font-variant-numeric: tabular-nums; }

.house-atlas { grid-column: 1 / 9; position: relative; min-height: 640px; border: 1px solid currentColor; background: var(--white); overflow: hidden; }
.house-atlas img { width: 100%; height: 100%; object-fit: cover; opacity: .86; }
.house-atlas::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(49,86,217,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(49,86,217,.12) 1px, transparent 1px); background-size: 36px 36px; }
.hotspot { position: absolute; width: 2.3rem; aspect-ratio: 1; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--brass); font-weight: 800; cursor: pointer; }
.hotspot[data-layer="roof"] { top: 15%; left: 53%; }
.hotspot[data-layer="walls"] { top: 44%; left: 35%; }
.hotspot[data-layer="air"] { top: 35%; left: 68%; }
.hotspot[data-layer="services"] { top: 71%; left: 54%; }
.atlas-panel { grid-column: 9 / 13; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.atlas-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid currentColor; }
.atlas-links a { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid currentColor; text-decoration: none; }

.editorial-index { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid currentColor; }
.editorial-index li { display: grid; grid-template-columns: 5rem minmax(0, 1.6fr) minmax(14rem, .7fr) auto; align-items: center; gap: 1.5rem; min-height: 112px; border-bottom: 1px solid currentColor; }
.editorial-index a { text-decoration: none; }
.editorial-index .index-title { font: 440 clamp(1.6rem, 2.8vw, 3.2rem)/1 var(--display); letter-spacing: -.035em; }
.editorial-index .index-meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(100px, auto); gap: 1rem; }
.mosaic article { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; padding: 1.25rem; border: 1px solid currentColor; background: var(--paper); }
.mosaic article:nth-child(7n+1) { grid-column: span 5; grid-row: span 2; background: var(--blue); color: white; }
.mosaic article:nth-child(7n+2) { grid-column: span 3; background: var(--clay); color: white; }
.mosaic article:nth-child(7n+3) { grid-column: span 4; }
.mosaic article:nth-child(7n+4) { grid-column: span 4; background: #cad7c1; }
.mosaic article:nth-child(7n+5) { grid-column: span 3; }
.mosaic article:nth-child(7n+6) { grid-column: span 5; background: #ead892; }
.mosaic article:nth-child(7n) { grid-column: span 4; }
.mosaic h3 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 3.4rem); }
.mosaic a::after { content: "↗"; position: absolute; right: 1rem; top: 1rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0; }
.filter-bar button { min-height: 44px; padding: .55rem .9rem; border: 1px solid currentColor; color: inherit; background: transparent; cursor: pointer; }
.filter-bar button[aria-pressed="true"] { color: var(--white); background: var(--ink); }

.evidence-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 3rem; border: 1px solid currentColor; }
.evidence-flow article { position: relative; min-height: 250px; padding: 1.2rem; border-right: 1px solid currentColor; }
.evidence-flow article:last-child { border-right: 0; }
.evidence-flow article:not(:last-child)::after { content: "→"; position: absolute; right: -1rem; top: 50%; z-index: 2; width: 2rem; text-align: center; background: inherit; }
.evidence-flow strong { display: block; margin-bottom: 4rem; font-size: .75rem; letter-spacing: .13em; }

.materials-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: 2rem; background: var(--ink); border: 1px solid var(--ink); }
.material { position: relative; min-height: 340px; overflow: hidden; background: var(--paper); }
.material img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.material:focus-within img, .material:hover img { transform: scale(1.04); }
.material-info { position: absolute; inset: auto 0 0; padding: 1rem; color: var(--white); background: linear-gradient(transparent, rgba(21,23,20,.94)); }
.material-info small { display: block; opacity: .8; }

.split-feature { align-items: stretch; }
.split-copy { grid-column: 1 / 7; padding: clamp(2rem, 5vw, 5rem); }
.split-media { grid-column: 7 / 13; min-height: 560px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.comparison-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: currentColor; border: 1px solid currentColor; }
.comparison-pair figure { margin: 0; background: var(--paper); }
.comparison-pair img { aspect-ratio: 4 / 3; object-fit: cover; }
.comparison-pair figcaption { padding: 1rem; }

.byline { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; margin: 2rem 0; padding: 1rem 0; border-block: 1px solid currentColor; }
.byline img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.byline dl { display: grid; grid-template-columns: auto auto; gap: .2rem .6rem; margin: 0; font-size: .78rem; }
.byline dt { opacity: .66; }
.byline dd { margin: 0; }
.breadcrumbs { padding-block: 1rem; font-size: .73rem; letter-spacing: .04em; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.article-hero { padding-block: clamp(4rem, 9vw, 9rem); }
.article-hero .hero-grid { align-items: end; }
.article-hero .hero-main { grid-column: 1 / 10; }
.article-hero .hero-side { grid-column: 10 / 13; }
.scope-note { padding: 1.25rem; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 7%, transparent); }
.key-takeaways { padding: 1.5rem; color: var(--white); background: var(--blue); }
.key-takeaways ul { columns: 2; gap: 2.2rem; }
.citation { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; margin-left: .15rem; border: 1px solid currentColor; border-radius: 50%; font-size: .7rem; text-decoration: none; vertical-align: super; }
.source-card { padding: 1rem; border-left: 4px solid var(--brass); background: var(--white); }
.source-card:target { box-shadow: 0 0 0 3px var(--orange); }
.reading-progress { position: fixed; top: 50%; left: .5rem; z-index: 30; width: 6px; height: 34vh; transform: translateY(-50%); background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 10px); }
.reading-progress::before { content: ""; display: block; width: 100%; height: calc(var(--read-progress, 0) * 1%); background: var(--orange); }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .82fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.story-visual { position: sticky; top: 100px; min-height: 68vh; border: 1px solid currentColor; background: var(--white); }
.story-visual img { width: 100%; height: 68vh; object-fit: cover; }
.story-steps { counter-reset: story; }
.story-step { counter-increment: story; min-height: 58vh; padding: 3rem 0; border-top: 1px solid currentColor; }
.story-step::before { content: counter(story, decimal-leading-zero); display: block; margin-bottom: 1rem; font-size: .75rem; letter-spacing: .14em; }
.story-step.is-active { color: var(--blue); }

.table-wrap { overflow-x: auto; border: 1px solid currentColor; }
table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--white); }
caption { padding: 1rem; font-weight: 720; text-align: left; }
th, td { padding: .9rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--white); background: var(--ink); }
tbody tr.is-emphasised { background: #ead892; }
.lens-controls { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0; }
.lens-controls button { min-height: 44px; border: 1px solid currentColor; padding: .55rem .8rem; background: transparent; cursor: pointer; }
.lens-controls button[aria-pressed="true"] { color: white; background: var(--blue); }

.faq details, .glossary details { border-top: 1px solid currentColor; }
.faq details:last-child, .glossary details:last-child { border-bottom: 1px solid currentColor; }
.faq summary, .glossary summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; cursor: pointer; font-weight: 680; }
.faq summary::after, .glossary summary::after { content: "+"; }
.faq details[open] summary::after, .glossary details[open] summary::after { content: "−"; }
.faq details > div, .glossary details > div { max-width: 70ch; padding-bottom: 1.25rem; }
.glossary { columns: 2; column-gap: 3rem; }
.glossary details { break-inside: avoid; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 720; letter-spacing: .05em; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .75rem; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--white); }
.field textarea { min-height: 160px; }
.honeypot { position: absolute; left: -10000px; }

.search-dialog, .cookie-dialog { width: min(920px, calc(100% - 2rem)); max-height: 88vh; padding: 0; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--paper); }
.search-dialog::backdrop, .cookie-dialog::backdrop { background: rgba(21,23,20,.76); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); border-bottom: 1px solid currentColor; }
.dialog-body { padding: clamp(1.5rem, 4vw, 4rem); overflow: auto; }
.dialog-close { width: 44px; height: 44px; border: 1px solid currentColor; background: transparent; cursor: pointer; }
.search-input { width: 100%; padding: .85rem 0; border: 0; border-bottom: 2px solid currentColor; color: inherit; background: transparent; font: 450 clamp(2rem, 6vw, 5.5rem)/1 var(--display); }
.search-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; margin: 1.25rem 0; padding: 1rem 0; border: 0; border-block: 1px solid currentColor; }
.search-filters legend { padding: 0 .5rem 0 0; font-size: .72rem; font-weight: 720; letter-spacing: .14em; text-transform: uppercase; }
.search-filters label { display: grid; gap: .25rem; font-size: .72rem; font-weight: 680; }
.search-filters select { width: 100%; min-height: 44px; border: 1px solid currentColor; border-radius: 0; color: inherit; background: var(--white); }
.search-results { display: grid; gap: .7rem; margin-top: 1.5rem; }
.search-group { border-top: 1px solid currentColor; padding-top: .8rem; }
.search-group > h3 { margin-bottom: .35rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.search-result { padding: 1rem 0; border-top: 1px solid currentColor; }
.cookie-banner { position: fixed; z-index: 150; left: var(--gutter); right: var(--gutter); bottom: 1rem; display: none; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem; color: var(--white); background: var(--ink); border: 1px solid var(--white); }
.cookie-banner.is-visible { display: grid; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

#ez-footer { padding-block: var(--space-3); color: var(--white); background: var(--ink); border-top: 1px solid rgba(255,255,255,.2); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 2rem; }
.footer-grid h2 { font-family: var(--sans); font-size: 1.6rem; letter-spacing: -.03em; }
.footer-grid h3 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.footer-grid a { display: inline-block; padding: .25rem 0; font-size: .84rem; text-decoration: none; }
.footer-bottom { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .73rem; }

.noscript-note { padding: 1rem var(--gutter); color: var(--ink); background: var(--brass); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
html:not(.js) .nav-group:hover .mega-panel,
html:not(.js) .nav-group:focus-within .mega-panel { visibility: visible; opacity: 1; transform: none; }
html[data-performance-tier="3"] .three-canvas { display: none !important; }

@media (max-width: 1100px) {
  .nav-link--optional { display: none; }
  .materials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 2fr repeat(2, 1fr); }
  .footer-grid > :nth-child(n+4) { margin-top: 1rem; }
}

@media (max-width: 900px) {
  :root { --gutter: clamp(1rem, 4vw, 2rem); }
  .grid-12 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .nav-toggle { display: block; }
  .ez-nav-menu {
    position: absolute;
    inset: 100% 0 auto;
    display: none !important;
    max-height: calc(100vh - 76px);
    overflow: auto hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    color: var(--ink);
    background: var(--white);
    border-bottom: 1px solid var(--ink);
  }
  .ez-nav-menu.is-open { display: flex !important; }
  .ez-nav-menu, .ez-nav-menu * { box-sizing: border-box !important; min-width: 0 !important; max-width: 100% !important; }
  .ez-nav-menu a { white-space: normal !important; }
  .nav-group { border-bottom: 1px solid var(--line); }
  .nav-trigger, .nav-link { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; text-align: left; }
  .mega-panel { position: static; display: none; width: 100%; padding: 0 0 1rem; visibility: visible; opacity: 1; transform: none; border: 0; box-shadow: none; }
  .nav-group.is-open .mega-panel { display: block; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .ez-nav-menu { position: static; display: flex !important; max-height: none; }
  html:not(.js) .mega-panel { display: block; }
  .nav-actions { flex-direction: column; align-items: stretch; padding-top: 1rem; }
  .hero { min-height: 780px; }
  .hero-media::after { background: linear-gradient(0deg, rgba(10,12,10,.95) 0%, rgba(10,12,10,.65) 58%, rgba(10,12,10,.15)); }
  .hero-index { display: none; }
  .mission-copy { grid-column: 2 / 9; }
  .chapter-intro { grid-column: 2 / 8; }
  .chapter-aside { grid-column: 2 / 7; }
  .section-number { grid-column: 1 / 2; }
  .house-atlas { grid-column: 1 / 6; min-height: 520px; }
  .atlas-panel { grid-column: 6 / 9; }
  .editorial-index li { grid-template-columns: 3rem 1fr auto; padding-block: 1rem; }
  .editorial-index .index-summary { grid-column: 2 / -1; }
  .evidence-flow { grid-template-columns: 1fr 1fr; }
  .evidence-flow article { border-bottom: 1px solid currentColor; }
  .evidence-flow article::after { display: none; }
  .materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-copy { grid-column: 1 / 5; }
  .split-media { grid-column: 5 / 9; }
  .article-hero .hero-main { grid-column: 1 / 7; }
  .article-hero .hero-side { grid-column: 7 / 9; }
  .reading-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 72ch); }
  .reading-shell > .prose { grid-column: 2; padding-right: var(--gutter); }
  .reading-progress { display: none; }
  .story { grid-template-columns: 1fr; }
  .story-visual { position: relative; top: auto; min-height: 0; }
  .story-visual img { height: auto; }
  .story-step { min-height: 0; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .search-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  h1 { font-size: clamp(3.1rem, 16vw, 5.4rem); }
  h2 { font-size: clamp(2.45rem, 12vw, 4.3rem); }
  .announcement { text-align: left; }
  .brand { font-size: .9rem; }
  .hero { min-height: 720px; align-items: end; }
  .hero-copy { padding-top: 9rem; }
  .hero-copy h1 { max-width: 9ch; font-size: clamp(3.3rem, 16vw, 5.8rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .mission-copy, .chapter-intro, .chapter-aside { grid-column: 1 / -1; }
  .section-number { grid-column: 1 / -1; margin-bottom: 2rem; }
  .house-atlas, .atlas-panel { grid-column: 1 / -1; }
  .house-atlas { min-height: 410px; }
  .hotspot { width: 2.8rem; }
  .editorial-index li { grid-template-columns: 2.4rem 1fr; gap: .7rem; }
  .editorial-index .index-meta { grid-column: 2; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic article, .mosaic article:nth-child(n) { grid-column: auto; grid-row: auto; min-height: 210px; }
  .evidence-flow { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: 1fr 1fr; }
  .material { min-height: 280px; }
  .split-copy, .split-media { grid-column: 1 / -1; }
  .split-media { min-height: 400px; }
  .comparison-pair { grid-template-columns: 1fr; }
  .article-hero .hero-main, .article-hero .hero-side { grid-column: 1 / -1; }
  .reading-shell { display: block; padding-inline: var(--gutter); }
  .reading-shell > .prose { padding: 0; }
  .marginal { margin-block: 1rem 2rem; }
  .key-takeaways ul { columns: 1; }
  .glossary { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .cookie-banner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: 1fr; }
  .mega-grid { grid-template-columns: 1fr; }
  .search-filters { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .materials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}

@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; }
  .story-visual { position: relative; top: auto; }
}

@supports (view-transition-name: none) {
  .brand { view-transition-name: habitat-brand; }
  .article-hero h1 { view-transition-name: page-title; }
  ::view-transition-group(*) { animation-duration: .48s; animation-timing-function: var(--ease); }
}
