:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --white: #fff;
  --ink: #1d3044;
  --body: #33485c;
  --muted: #536477;
  --blue: #24558a;
  --line: #d9e0e6;
  --soft: #f0f3f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.figure-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: #dce9f5; color: var(--ink); }
.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.shell > *, .section-split > *, .section-intro > *, .citation-grid > * { min-width: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 18px; background: var(--white); border: 1px solid var(--blue); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 40; background: rgb(251 250 247 / 96%); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 64px; display: flex; align-items: center; gap: 30px; }
.brand { margin-right: auto; color: var(--ink); font-size: .88rem; font-weight: 780; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { display: block; padding: 20px 0 18px; border-bottom: 2px solid transparent; color: var(--muted); font-size: .81rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--ink); }
nav a[aria-current] { border-bottom-color: var(--blue); }
.review-label { padding-left: 19px; border-left: 1px solid var(--line); color: var(--muted); font-size: .76rem; white-space: nowrap; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); }
h2 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(2.45rem, 4vw, 3.55rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; }
h3 { letter-spacing: -.025em; line-height: 1.3; }
.eyebrow, .hero-meta, .architecture-topline, .panel-index, .case-index, .card-index { color: var(--blue); font-size: .77rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { margin-bottom: 15px; }

.hero { border-bottom: 1px solid var(--line); }
.hero-layout { padding-block: clamp(58px, 5vw, 74px) 50px; }
.hero-meta { margin-bottom: 28px; }
.hero-meta span { margin-inline: 10px; color: #8795a2; }
.hero h1 { margin: 0 0 18px; font-size: clamp(4.4rem, 8.4vw, 7.3rem); font-weight: 660; letter-spacing: -.075em; line-height: .9; }
.hero-subtitle { max-width: 1020px; margin: 0; color: var(--ink); font-size: clamp(1.75rem, 3.3vw, 3rem); font-weight: 540; letter-spacing: -.04em; line-height: 1.23; }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-top: clamp(34px, 4vw, 52px); padding-top: 19px; border-top: 1px solid var(--ink); }
.hero-question { max-width: 790px; margin: 0; font-size: 1.08rem; line-height: 1.66; }
.hero-question em { color: var(--ink); font-style: normal; font-weight: 650; }
.text-link { flex: none; display: inline-flex; align-items: center; gap: 12px; padding-bottom: 3px; border-bottom: 1px solid var(--blue); color: var(--blue); font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

.section { padding-block: clamp(72px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.section-tint { background: var(--white); }
.section-split { display: grid; grid-template-columns: minmax(190px, 255px) minmax(0, 1fr); gap: clamp(45px, 7vw, 105px); }
.section-heading h2 { margin: 0; }
.abstract-copy { max-width: 77ch; font-size: 1.07rem; line-height: 1.84; }
.abstract-copy p { margin: 0 0 21px; }
.abstract-copy p:last-child { margin-bottom: 0; }
.abstract-copy strong { color: var(--ink); }
.section-intro { margin-bottom: 36px; }
.section-intro h2 { max-width: 1040px; margin: 0; }
.section-intro > p { max-width: 71ch; margin: 22px 0 0; color: var(--muted); font-size: 1.06rem; }

.scene-teaser { background: var(--soft); }
.scene-teaser-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: end; gap: clamp(32px, 7vw, 100px); margin-bottom: 27px; }
.scene-teaser-heading h2 { margin: 0; }
.scene-teaser-heading > p { max-width: 39ch; margin: 0 0 4px; color: var(--muted); font-size: .94rem; }
.scene-teaser-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.scene-teaser-pair figure { min-width: 0; margin: 0; }
.scene-teaser-pair .case-crop { border-color: #c8d2db; }
.scene-teaser-pair figcaption { margin-top: 9px; color: var(--ink); font-size: .84rem; font-weight: 650; }
.scene-teaser > .shell > .text-link { margin-top: 24px; }

.architecture-figure { margin: 0; }
.architecture-topline { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding-block: 13px 15px; border-top: 1px solid var(--ink); }
.architecture-topline span:last-child { color: var(--muted); font-size: .72rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.architecture-viewport { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #a6b6c3 var(--soft); scrollbar-width: thin; }
.architecture-viewport .figure-link { width: 100%; }
.architecture-viewport img { width: 100%; max-width: none; }
.figure-link { display: block; background: var(--white); cursor: zoom-in; }
.figure-link img { width: 100%; }
.figure-link:hover img { outline: 1px solid var(--blue); outline-offset: -1px; }
.architecture-figure figcaption { max-width: 93ch; margin-top: 17px; color: var(--muted); font-size: .88rem; line-height: 1.66; }
.architecture-figure figcaption strong { color: var(--ink); }
.boundary-guide { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); }
.boundary-guide-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); align-items: end; gap: 36px; margin-bottom: 22px; }
.boundary-guide-head .eyebrow { display: block; margin-bottom: 7px; }
.boundary-guide-head h3 { max-width: 610px; margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(1.48rem, 2.3vw, 2rem); font-weight: 500; }
.boundary-guide-head > p { max-width: 48ch; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.57; }
.boundary-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.boundary-step { position: relative; min-height: 118px; padding: 17px 19px; border: 1px solid var(--line); border-top: 3px solid #a35c54; background: var(--paper); }
.boundary-step:not(:last-child)::after { position: absolute; z-index: 1; top: 39px; right: -15px; color: var(--blue); font-size: 1.12rem; font-weight: 700; content: "→"; }
.boundary-step:nth-child(2) { border-top-color: #8c98a3; }
.boundary-step-response { border-top-color: var(--blue); background: #f1f5f8; }
.boundary-step-output { border-top-color: var(--blue); }
.boundary-step > span { display: block; margin-bottom: 14px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.boundary-step strong { display: block; color: var(--ink); font-size: .95rem; font-weight: 670; line-height: 1.4; }
.boundary-note { max-width: 105ch; margin: 17px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.62; }
.boundary-note strong { color: var(--ink); }
.method-divider { height: 1px; margin: 62px 0 42px; background: var(--line); }
.subsection-heading { display: grid; grid-template-columns: 1fr .8fr; gap: 65px; align-items: end; margin-bottom: 28px; }
.subsection-heading .eyebrow { margin-bottom: 8px; }
.subsection-heading h3 { margin: 0; font-size: 1.6rem; font-weight: 650; }
.subsection-heading > p { max-width: 42ch; margin: 0; color: var(--muted); font-size: .93rem; }
.training-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.training-card { padding: 24px 25px 0 0; }
.training-card + .training-card { padding-left: 25px; border-left: 1px solid var(--line); }
.training-card h4 { margin: 14px 0 8px; font-size: 1.17rem; }
.training-card p { margin: 0; color: var(--muted); font-size: .91rem; }

.result-panel { margin-top: 55px; border-top: 1px solid var(--ink); }
.section-intro + .result-panel { margin-top: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 28px; padding: 23px 0 21px; }
.panel-heading h3 { margin: 8px 0 5px; font-size: 1.55rem; }
.panel-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.source-tag { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.result-takeaway { max-width: 92ch; margin: 0 0 22px; padding-left: 17px; border-left: 2px solid var(--blue); color: var(--ink); font-size: 1rem; line-height: 1.57; }
.result-takeaway strong { font-weight: 720; }
.table-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead { border-block: 1px solid var(--line); }
thead th { color: var(--muted); font-size: .79rem; font-weight: 700; }
tbody th { color: var(--ink); font-weight: 600; }
.ours-row { background: var(--soft); }
.ours-row th, .best-cell { color: var(--ink); font-weight: 740; }
.panel-note { max-width: 103ch; margin: 18px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.67; }
.panel-note strong { color: var(--ink); }
.paired-results { margin-bottom: 0; }
.paired-results tbody th, .paired-results tbody td { border-bottom: 0; }
.paired-results tbody tr:last-child th, .paired-results tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.paired-results .best-cell { color: var(--blue); }
.evidence-more { margin-top: 62px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evidence-more > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 21px 0; cursor: pointer; list-style: none; }
.evidence-more > summary::-webkit-details-marker { display: none; }
.evidence-more > summary strong { display: block; color: var(--ink); font-size: 1rem; }
.evidence-more > summary small { display: block; color: var(--muted); font-size: .83rem; }
.evidence-more > summary > span:last-child { color: var(--blue); font-size: 1.45rem; line-height: 1; }
.evidence-more[open] > summary > span:last-child { transform: rotate(45deg); }
.evidence-content { padding: 0 0 35px; }
.detail-block { padding: 32px 0; border-top: 1px solid var(--line); }
.detail-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 14px; }
.detail-heading h3 { margin: 0; font-size: 1.14rem; }
.detail-heading span { color: var(--muted); font-size: .77rem; white-space: nowrap; }
.detail-block table { font-size: .84rem; }
.detail-block th, .detail-block td { padding: 11px 13px; }
.detail-block > p { margin: 13px 0 0; color: var(--muted); font-size: .86rem; }
.dual-tables { display: grid; grid-template-columns: 1.1fr .9fr; gap: 25px; }
.evidence-scope { max-width: 100ch; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
.evidence-scope strong { color: var(--ink); }

.case-feature { padding-top: 20px; border-top: 1px solid var(--ink); }
.case-feature h3 { margin: 10px 0 7px; font-size: 1.7rem; }
.case-summary { max-width: 85ch; margin: 0 0 24px; color: var(--muted); font-size: 1rem; }
.case-summary strong { color: var(--ink); }
.case-study-figure { width: min(1420px, calc(100vw - 48px)); max-width: none; margin: 34px 0 0 50%; transform: translateX(-50%); }
.case-stage-label { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0 13px; border-top: 1px solid var(--ink); color: var(--ink); font-size: .87rem; font-weight: 680; }
.case-stage-label span:last-child { color: var(--muted); font-size: .79rem; font-weight: 450; }
.case-stage-label-bev { margin-top: 26px; }
.case-worlds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case-world { min-width: 0; }
.case-world h4 { margin: 0 0 9px; color: var(--ink); font-size: .92rem; font-weight: 680; }
.case-crop { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.case-crop-camera { aspect-ratio: 1112 / 625; }
.case-crop-bev { aspect-ratio: 1; }
.case-crop img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-figure-caption { max-width: 104ch; margin-top: 16px; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.case-original-link { display: inline-flex; gap: 9px; margin-top: 18px; border-bottom: 1px solid var(--blue); color: var(--blue); font-size: .86rem; font-weight: 700; text-decoration: none; }
.case-original-link:hover { border-bottom-color: var(--ink); color: var(--ink); }
.case-provenance { max-width: 100ch; margin: 18px 0 0; color: var(--muted); font-size: .88rem; }
.case-more { margin-top: 68px; border-top: 1px solid var(--ink); }
.case-more-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; padding: 23px 0 26px; }
.case-more-heading h3 { margin: 0; font-size: 1.47rem; }
.case-more-heading p { max-width: 47ch; margin: 0; color: var(--muted); font-size: .89rem; }
.case-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.case-more-card { min-width: 0; padding: 18px; border: 1px solid var(--line); background: var(--white); }
.case-more-card h4 { margin: 7px 0 5px; font-size: 1.22rem; }
.case-more-card > p { min-height: 5.1em; margin: 0 0 15px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.case-more-card > p strong { color: var(--ink); }
.case-preview-link { text-decoration: none; }
.case-preview-hint { display: inline-block; margin-top: 11px; color: var(--blue); font-size: .79rem; font-weight: 670; }

.limits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 70px; }
.limits-grid article { padding-top: 17px; border-top: 1px solid var(--line); }
.limits-grid h3 { margin: 0 0 9px; font-size: 1.17rem; }
.limits-grid p { max-width: 55ch; margin: 0; color: var(--muted); font-size: .94rem; }
.citation-section { background: var(--soft); }
.citation-grid h2 { margin: 0 0 10px; }
.citation-grid p:last-child { margin: 0 0 27px; color: var(--muted); font-size: .92rem; }
.citation-grid pre { margin: 0; padding: 23px 26px; overflow: auto; border: 1px solid var(--line); background: var(--white); white-space: pre; }
.citation-grid code { color: var(--ink); font: .9rem/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
footer { background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; color: var(--muted); font-size: .78rem; }

.figure-dialog { width: min(1450px, 96vw); max-width: 96vw; max-height: 94dvh; padding: 0; border: 1px solid var(--line); background: var(--white); color: var(--body); box-shadow: 0 25px 80px rgb(20 38 66 / 20%); }
.figure-dialog::backdrop { background: rgb(29 48 68 / 77%); }
.figure-dialog-toolbar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--white); font-size: .84rem; }
.figure-dialog-toolbar > span { margin-right: auto; color: var(--ink); font-weight: 700; }
.figure-dialog-toolbar a { color: var(--blue); }
.figure-dialog button { min-height: 44px; padding: 8px 15px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: .84rem; font-weight: 700; }
.figure-dialog button:hover { background: var(--ink); color: var(--white); }
.figure-dialog-stage { max-height: calc(94dvh - 68px); padding: 18px; overflow: auto; overscroll-behavior: contain; }
.figure-dialog-stage img { width: 100%; }
.figure-pan-hint { display: none; }

@media (max-width: 1120px) {
  .review-label { display: none; }
  .architecture-viewport .figure-link, .architecture-viewport img { width: 1150px; max-width: none; }
}
@media (max-width: 900px) {
  .shell { width: min(100% - 40px, 1200px); }
  .nav-wrap { flex-wrap: wrap; gap: 0; padding-top: 9px; }
  .brand { min-height: 28px; }
  nav { width: 100%; gap: 22px; }
  nav a { padding: 9px 0; }
  .section-split { grid-template-columns: 1fr; gap: 25px; }
  .scene-teaser-heading { grid-template-columns: 1fr; gap: 11px; }
  .scene-teaser-heading > p { max-width: 70ch; }
  .boundary-guide-head { grid-template-columns: 1fr; gap: 8px; }
  .boundary-guide-head > p { max-width: 75ch; }
  .boundary-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boundary-step:nth-child(2)::after { display: none; }
  .subsection-heading { grid-template-columns: 1fr; gap: 10px; }
  .subsection-heading > p { max-width: 70ch; }
  .dual-tables { grid-template-columns: 1fr; }
  .case-more-heading { display: block; }
  .case-more-heading p { margin-top: 5px; }
  .figure-dialog.architecture-open .figure-dialog-stage img { width: max(1680px, 100%); max-width: none; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 100px; }
  .shell { width: calc(100% - 32px); }
  nav { gap: 17px; overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { font-size: .77rem; }
  .hero-layout { padding-block: 47px 42px; }
  .hero-meta { margin-bottom: 24px; font-size: .72rem; }
  .hero h1 { margin-bottom: 18px; font-size: clamp(3.65rem, 15vw, 5.8rem); }
  .hero-subtitle { font-size: clamp(1.55rem, 6vw, 2.2rem); }
  .hero-subtitle br { display: none; }
  .hero-bottom { display: block; margin-top: 32px; }
  .hero-question { font-size: 1rem; }
  .text-link { margin-top: 21px; }
  .section { padding-block: 70px; }
  .section-intro { margin-bottom: 35px; }
  .section-intro h2 { font-size: clamp(2.15rem, 9vw, 3rem); }
  .section-intro > p { margin-top: 16px; font-size: 1rem; }
  .abstract-copy { font-size: 1rem; }
  .architecture-topline { align-items: start; flex-direction: column; gap: 1px; }
  .architecture-figure figcaption { font-size: .84rem; }
  .boundary-guide { margin-top: 27px; padding-top: 20px; }
  .boundary-guide-head h3 { font-size: 1.47rem; }
  .boundary-step { min-height: 107px; padding: 14px; }
  .boundary-step strong { font-size: .86rem; }
  .method-divider { margin: 52px 0 33px; }
  .training-grid { grid-template-columns: 1fr; }
  .training-card, .training-card + .training-card { padding: 20px 0; border-left: 0; }
  .training-card + .training-card { border-top: 1px solid var(--line); }
  .result-panel { margin-top: 42px; }
  .panel-heading { display: block; padding-bottom: 18px; }
  .panel-heading h3 { font-size: 1.4rem; }
  .source-tag { display: inline-block; margin-top: 13px; }
  .result-takeaway { margin-bottom: 18px; padding-left: 13px; font-size: .93rem; }
  .result-panel table { min-width: 610px; }
  .detail-block table { min-width: 520px; }
  .table-scroll::before { display: block; padding: 5px 0; color: var(--muted); font-size: .75rem; content: "Swipe table for all metrics →"; }
  .panel-note { font-size: .84rem; }
  .paired-results th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); box-shadow: 1px 0 0 var(--line); }
  .paired-results .ours-row th:first-child { background: var(--soft); }
  .evidence-more { margin-top: 50px; }
  .evidence-more > summary small { font-size: .78rem; }
  .detail-heading { display: block; }
  .case-feature h3 { font-size: 1.5rem; }
  .case-study-figure { width: calc(100vw - 24px); margin-top: 26px; }
  .case-worlds { gap: 8px; }
  .case-worlds-bev { grid-template-columns: 1fr; gap: 18px; }
  .case-stage-label { display: block; font-size: .8rem; }
  .case-stage-label span:last-child { display: block; margin-top: 2px; font-size: .73rem; }
  .case-stage-label-bev { margin-top: 20px; }
  .case-world h4 { min-height: 2.2em; margin-bottom: 4px; font-size: .78rem; line-height: 1.15; }
  .case-worlds-bev .case-world h4 { min-height: 0; }
  .case-figure-caption { font-size: .78rem; }
  .case-more { margin-top: 55px; }
  .case-more-grid { grid-template-columns: 1fr; gap: 14px; }
  .case-more-card > p { min-height: 0; }
  .limits-grid { grid-template-columns: 1fr; gap: 29px; }
  .citation-grid pre { padding: 18px; }
  .citation-grid code { font-size: .81rem; }
  .figure-dialog-toolbar { gap: 10px; }
  .figure-dialog-toolbar > span { display: none; }
  .figure-dialog button { margin-left: auto; }
  .figure-dialog-stage { padding: 11px; }
  .figure-dialog-stage img { width: max(900px, 100%); max-width: none; }
  .figure-dialog.architecture-open .figure-dialog-stage img { width: max(1680px, 100%); }
  .figure-pan-hint { display: block; margin: 0 0 9px; color: var(--muted); font-size: .75rem; }
  .footer-inner { min-height: 80px; flex-direction: column; align-items: start; justify-content: center; gap: 1px; }
}
@media (max-width: 480px) {
  .scene-teaser-pair { grid-template-columns: 1fr; gap: 17px; }
  .case-worlds:not(.case-worlds-bev) { grid-template-columns: 1fr; gap: 18px; }
  .boundary-steps { grid-template-columns: 1fr; gap: 14px; }
  .boundary-step { min-height: 0; padding: 13px 16px; }
  .boundary-step > span { margin-bottom: 4px; }
  .boundary-step:not(:last-child)::after, .boundary-step:nth-child(2)::after { display: block; top: auto; right: 50%; bottom: -19px; transform: translateX(50%); content: "↓"; }
}
@media (max-width: 360px) {
  html { scroll-padding-top: 125px; }
  nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; overflow: visible; }
  nav a { padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
