:root {
  color-scheme: light;
  --paper: #f3f1e9;
  --paper-bright: #fbfaf5;
  --ink: #18261e;
  --ink-soft: #34453a;
  --muted: #727d74;
  --line: #d6dbd0;
  --forest: #193629;
  --forest-deep: #10261c;
  --lime: #c8ee79;
  --orange: #d9784d;
  --blue: #b7d9d2;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(21, 45, 32, .09);
  font-family: Inter, "Segoe UI", "Noto Sans Thai", Tahoma, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--forest-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 14px; border-radius: 10px; background: var(--forest); color: white; }
.skip-link:focus { transform: translateY(0); }
.site-shell { width: min(1440px, calc(100% - 64px)); margin: 0 auto; }

.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 31px; border-radius: 8px; background: var(--forest); color: var(--lime); font-size: 14px; font-weight: 800; letter-spacing: -.04em; }
.brand-name { font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.top-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; margin-right: 34px; }
.top-nav a { color: var(--ink-soft); text-decoration: none; font-size: 13px; transition: color .18s ease; }
.top-nav a:hover { color: var(--orange); }
.snapshot-pill { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
.snapshot-pill time { padding-left: 8px; border-left: 1px solid var(--line); color: var(--ink); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7dae4b; box-shadow: 0 0 0 3px rgba(125,174,75,.13); }

.hero-section { position: relative; min-height: 560px; display: grid; grid-template-columns: minmax(0, .98fr) minmax(420px, 1.02fr); align-items: center; gap: clamp(36px, 6vw, 96px); padding: 66px 0 76px; }
.hero-copy { max-width: 640px; padding: 22px 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .17em; line-height: 1.5; }
.eyebrow-mark { display: inline-grid; place-items: center; width: 27px; height: 23px; border: 1px solid #a5b29e; border-radius: 6px; color: var(--forest); font-size: 9px; letter-spacing: .04em; }
.hero-copy h1 { margin: 0; font-size: clamp(44px, 5.5vw, 78px); line-height: 1.11; letter-spacing: -.065em; font-weight: 750; }
.hero-copy h1 em { color: var(--forest); font-family: Georgia, "Noto Serif Thai", serif; font-weight: 500; letter-spacing: -.045em; }
.hero-intro { max-width: 510px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 0 17px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: 12px; font-weight: 750; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: var(--paper-bright); }
.button-primary:hover { background: var(--forest-deep); }
.button-quiet { border-color: var(--line); background: rgba(255,255,255,.36); color: var(--ink); }
.button-quiet:hover { border-color: #9eaa9e; }
.latest-note { display: flex; align-items: center; gap: 10px; margin-top: 40px; color: var(--muted); font-size: 11px; }
.latest-note strong { color: var(--ink); font-weight: 750; }
.latest-note .latest-arrow { color: var(--orange); font-size: 17px; }
.hero-visual { position: relative; min-height: 394px; display: flex; align-items: stretch; }
.featured-card { position: relative; width: 100%; min-height: 394px; overflow: hidden; padding: 0; border: 0; border-radius: 22px; background: var(--forest); color: white; box-shadow: var(--shadow); cursor: pointer; text-align: left; }
.featured-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .76; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.featured-card:hover img { transform: scale(1.035); }
.featured-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,31,22,.02) 23%, rgba(13,31,22,.84) 100%); }
.featured-content { position: absolute; inset: auto 24px 23px; z-index: 1; }
.featured-content .eyebrow { margin-bottom: 10px; color: rgba(255,255,255,.78); }
.featured-content h2 { max-width: 460px; margin: 0; font-family: Georgia, "Noto Serif Thai", serif; font-size: clamp(27px, 3.1vw, 42px); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.featured-content p { max-width: 470px; margin: 10px 0 0; color: rgba(255,255,255,.83); font-size: 12px; line-height: 1.65; }
.featured-meta { display: flex; align-items: center; gap: 8px; margin-top: 15px; color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.featured-meta span + span::before { content: "·"; margin-right: 8px; color: rgba(255,255,255,.5); }
.hero-index { position: absolute; right: 0; bottom: 22px; display: flex; gap: 18px; color: #8b958c; font-size: 9px; font-weight: 700; letter-spacing: .14em; }

.metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 108px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: rgba(255,255,255,.44); }
.metric-card { min-height: 120px; display: flex; flex-direction: column; justify-content: center; padding: 18px 25px; border-right: 1px solid var(--line); }
.metric-card:last-child { border-right: 0; }
.metric-card > span:last-child { margin-top: 3px; color: var(--muted); font-size: 11px; }
.metric-label { color: #808a81; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.metric-card strong { display: block; margin: 8px 0 0; color: var(--forest); font-size: 29px; line-height: 1; letter-spacing: -.06em; }
.metric-card .metric-date { font-size: 21px; letter-spacing: -.04em; }
.metric-dark { border-right-color: var(--forest); background: var(--forest); }
.metric-dark .metric-label, .metric-dark > span:last-child { color: rgba(255,255,255,.62); }
.metric-dark strong { color: var(--lime); }

.section-block { margin: 0 0 112px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 11px; }
.section-heading h2, .scope-note h2 { margin: 0; font-family: Georgia, "Noto Serif Thai", serif; font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -.045em; line-height: 1.15; }
.section-lede { max-width: 700px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.sort-note { display: flex; align-items: center; gap: 9px; padding-bottom: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.sort-arrow { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--lime); color: var(--forest); font-size: 15px; }
.index-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 31px 0 18px; }
.search-box { width: min(360px, 100%); min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-bright); }
.search-icon { color: var(--forest); font-size: 23px; line-height: 1; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box:focus-within { outline: 3px solid rgba(25,54,41,.24); outline-offset: 2px; border-color: var(--forest); }
.search-box input::placeholder { color: #9ba39b; }
.search-box kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: #899389; font-size: 10px; }
.filter-list { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.filter-chip { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; transition: all .16s ease; }
.filter-chip:hover { border-color: #8da092; color: var(--ink); }
.filter-chip[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: white; }
.results-line { display: flex; align-items: center; justify-content: space-between; min-height: 31px; margin-bottom: 9px; color: #838c83; font-size: 10px; }
.results-line span:first-child { color: var(--ink-soft); font-weight: 700; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.project-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.48); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.project-card:hover { transform: translateY(-3px); border-color: #aab5a8; box-shadow: 0 12px 28px rgba(25,54,41,.08); }
.card-cover { position: relative; width: 100%; height: 168px; overflow: hidden; border: 0; background: #e1e8dc; text-align: left; cursor: pointer; }
.card-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .card-cover img { transform: scale(1.04); }
.card-cover-placeholder { position: absolute; inset: 0; display: grid; align-content: space-between; padding: 16px; background: radial-gradient(circle at 80% 20%, rgba(200,238,121,.55), transparent 32%), linear-gradient(135deg, #dce5d5, #eff0e5 58%, #c7d9cd); color: var(--forest); }
.card-cover-placeholder::before { content: ""; position: absolute; inset: 18% 14%; border: 1px solid rgba(25,54,41,.2); border-radius: 50%; transform: rotate(-16deg); }
.placeholder-code { position: relative; z-index: 1; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.placeholder-mark { position: relative; z-index: 1; font-family: Georgia, serif; font-size: 44px; letter-spacing: -.06em; }
.placeholder-lines { position: absolute; right: 15px; bottom: 17px; width: 34%; height: 34%; border-top: 1px solid rgba(25,54,41,.25); border-bottom: 1px solid rgba(25,54,41,.18); transform: skewY(-18deg); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 17px 18px 16px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; }
.card-date { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.status-badge { max-width: 58%; overflow: hidden; padding: 5px 8px; border-radius: 999px; background: #e3eadc; color: #42603f; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.status-badge.status-warning { background: #f6e8d9; color: #a45731; }
.status-badge.status-muted { background: #e9eae4; color: #69746a; }
.project-card h3 { margin: 12px 0 0; font-size: 17px; letter-spacing: -.035em; line-height: 1.35; }
.folder-line { margin: 4px 0 0; color: #929a92; font-size: 10px; }
.card-summary { min-height: 59px; margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.card-progress { margin-top: 12px; padding: 10px 11px; border-left: 2px solid var(--orange); background: rgba(235,233,221,.68); color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.card-progress strong { color: var(--orange); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.tag-pill { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid #dbe0d6; border-radius: 4px; color: #69766d; font-size: 8px; line-height: 1.3; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; }
.stack-mini { overflow: hidden; color: #8b948c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.open-project { min-width: max-content; padding: 5px 0 5px 10px; border: 0; background: transparent; color: var(--forest); cursor: pointer; font-size: 10px; font-weight: 800; }
.open-project:hover { color: var(--orange); }
.empty-state { padding: 40px; border: 1px dashed #bfc8bd; border-radius: 12px; color: var(--muted); text-align: center; }

.gallery-section { padding: 47px; border-radius: 20px; background: var(--forest); color: white; }
.gallery-section .eyebrow, .gallery-section .section-lede { color: rgba(255,255,255,.65); }
.gallery-section .eyebrow-mark { border-color: rgba(255,255,255,.35); color: var(--lime); }
.gallery-section .section-heading h2 { color: var(--paper-bright); }
.gallery-count { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.23); border-radius: 10px; color: rgba(255,255,255,.7); font-size: 8px; font-weight: 800; letter-spacing: .12em; line-height: 1.5; }
.gallery-count strong { color: var(--lime); font-size: 28px; letter-spacing: -.06em; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.gallery-item { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.07); }
.gallery-image-button { display: block; width: 100%; aspect-ratio: 1.38; overflow: hidden; padding: 0; border: 0; background: #22392c; cursor: zoom-in; }
.gallery-image-button img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-caption { display: flex; align-items: start; justify-content: space-between; gap: 9px; padding: 11px 12px 12px; color: rgba(255,255,255,.9); font-size: 10px; line-height: 1.45; }
.gallery-caption small { display: block; margin-top: 3px; color: rgba(255,255,255,.48); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.gallery-index { color: var(--lime); font-size: 9px; font-weight: 800; }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool-card { display: flex; gap: 13px; min-height: 116px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.42); }
.tool-number { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--lime); color: var(--forest); font-size: 9px; font-weight: 900; }
.tool-card h3 { margin: 0; font-size: 13px; line-height: 1.4; }
.tool-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.tool-project { display: block; margin-top: 8px; color: #a7603d; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.small-stamp { padding: 12px 15px; border: 1px solid #b8c2b6; border-radius: 7px; color: #78857a; font-size: 8px; font-weight: 800; letter-spacing: .13em; line-height: 1.6; text-align: center; }

.scope-note { display: grid; grid-template-columns: 54px 1fr auto; align-items: start; gap: 20px; margin: 0 0 75px; padding: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scope-number { display: grid; place-items: center; width: 37px; height: 31px; border: 1px solid #aebbac; border-radius: 6px; color: var(--forest); font-size: 10px; font-weight: 800; }
.scope-note .eyebrow { margin: 0 0 10px; }
.scope-note h2 { font-size: 29px; }
.scope-note p:not(.eyebrow) { max-width: 820px; margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.empty-folder-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.empty-folder-label { color: #8a9389; font-size: 9px; }
.empty-folder-chip { padding: 5px 8px; border: 1px dashed #c5ccc0; border-radius: 5px; color: #69746b; font-size: 9px; }
.back-top { align-self: end; display: inline-flex; gap: 11px; align-items: center; padding: 8px 0; color: var(--forest); text-decoration: none; font-size: 11px; font-weight: 800; white-space: nowrap; }
.back-top:hover { color: var(--orange); }
.site-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #8b948c; font-size: 9px; }
.site-footer .brand-mark { width: 29px; height: 25px; font-size: 11px; }
.site-footer .brand-name { font-size: 9px; }
.footer-code { color: #71806f; font-weight: 800; letter-spacing: .13em; }

.project-dialog { position: fixed; inset: 0; width: min(900px, calc(100% - 32px)); max-width: 900px; max-height: min(88vh, 940px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 17px; background: var(--paper-bright); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.project-dialog::backdrop { background: rgba(11, 24, 17, .66); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; top: 13px; z-index: 2; float: right; display: grid; place-items: center; width: 37px; height: 37px; margin: 13px 13px -50px 0; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; background: rgba(17,39,28,.72); color: white; cursor: pointer; font-size: 24px; line-height: 1; }
.dialog-content { padding: 24px; }
.dialog-hero { position: relative; min-height: 230px; display: flex; align-items: end; overflow: hidden; padding: 24px; border-radius: 12px; background: var(--forest); color: white; }
.dialog-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .59; }
.dialog-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,36,25,.02), rgba(15,36,25,.88)); }
.dialog-hero-copy { position: relative; z-index: 1; max-width: 700px; }
.dialog-hero-copy .eyebrow { margin-bottom: 9px; color: rgba(255,255,255,.74); }
.dialog-hero-copy h2 { margin: 0; font-family: Georgia, "Noto Serif Thai", serif; font-size: clamp(28px, 5vw, 42px); font-weight: 500; line-height: 1.2; }
.dialog-hero-copy p { margin: 8px 0 0; color: rgba(255,255,255,.78); font-size: 11px; }
.dialog-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, .75fr); gap: 28px; padding: 25px 5px 4px; }
.dialog-main h3 { margin: 0 0 9px; font-size: 13px; letter-spacing: .02em; }
.dialog-summary { margin: 0; color: #5f6b61; font-size: 12px; line-height: 1.8; }
.dialog-progress { margin-top: 19px; padding: 13px 14px; border-left: 3px solid var(--orange); border-radius: 0 8px 8px 0; background: #f3efe6; }
.dialog-progress h3 { color: #a45c39; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.dialog-progress p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.dialog-side { display: flex; flex-direction: column; gap: 17px; }
.dialog-side-section { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.dialog-side-section h3 { margin-bottom: 8px; color: #7b867c; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.stack-list, .evidence-list { display: flex; flex-wrap: wrap; gap: 5px; }
.stack-list .tag-pill { background: white; }
.dialog-tool { margin-top: 9px; padding-top: 9px; border-top: 1px solid #e5e8e0; }
.dialog-tool:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.dialog-tool strong { display: block; color: var(--forest); font-size: 10px; }
.dialog-tool span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.tool-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.dialog-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 23px; }
.dialog-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }
.dialog-gallery img { display: block; width: 100%; aspect-ratio: 1.48; object-fit: cover; }
.dialog-gallery figcaption { padding: 8px 10px; color: #69756c; font-size: 9px; }
.dialog-evidence { margin-top: 18px; color: #8b948c; font-size: 9px; line-height: 1.7; }
.dialog-evidence strong { color: var(--ink-soft); }

@media (max-width: 1050px) {
  .site-shell { width: min(100% - 42px, 920px); }
  .hero-section { grid-template-columns: minmax(0, .92fr) minmax(330px, 1.08fr); gap: 34px; min-height: 470px; }
  .hero-visual, .featured-card { min-height: 340px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 70px; }
  .site-shell { width: calc(100% - 30px); }
  .topbar { min-height: 65px; gap: 10px; }
  .brand { gap: 7px; }
  .brand-mark { width: 33px; height: 28px; }
  .brand-name { font-size: 9px; letter-spacing: .12em; }
  .top-nav { gap: 13px; margin: 0 0 0 auto; }
  .top-nav a { font-size: 10px; }
  .snapshot-pill { display: none; }
  .hero-section { display: flex; flex-direction: column; align-items: stretch; gap: 24px; min-height: 0; padding: 45px 0 54px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: clamp(41px, 12vw, 64px); }
  .hero-intro { margin-top: 16px; font-size: 14px; }
  .hero-actions { margin-top: 22px; }
  .latest-note { margin-top: 25px; }
  .hero-visual, .featured-card { min-height: 300px; }
  .hero-index { bottom: 22px; font-size: 7px; }
  .metrics-row { grid-template-columns: repeat(2,1fr); margin-bottom: 75px; }
  .metric-card { min-height: 103px; padding: 14px; border-bottom: 1px solid var(--line); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(3), .metric-card:nth-child(4) { border-bottom: 0; }
  .metric-card strong { font-size: 25px; }
  .section-block { margin-bottom: 78px; }
  .section-heading { align-items: start; margin-bottom: 22px; }
  .section-heading h2 { font-size: 36px; }
  .section-lede { font-size: 11px; }
  .sort-note { display: none; }
  .index-toolbar { align-items: stretch; flex-direction: column; gap: 12px; margin-top: 22px; }
  .search-box { width: 100%; }
  .filter-list { justify-content: start; }
  .filter-chip { min-height: 31px; font-size: 9px; }
  .results-line { align-items: start; gap: 12px; font-size: 9px; }
  .project-grid { grid-template-columns: 1fr; gap: 11px; }
  .project-card { display: grid; grid-template-columns: 104px minmax(0,1fr); min-height: 174px; }
  .card-cover { height: 100%; min-height: 174px; }
  .card-body { padding: 12px; }
  .card-topline { align-items: start; flex-direction: column-reverse; gap: 5px; }
  .status-badge { max-width: 100%; }
  .project-card h3 { margin-top: 7px; font-size: 14px; }
  .folder-line { font-size: 8px; }
  .card-summary { min-height: 0; margin-top: 7px; font-size: 10px; line-height: 1.55; }
  .card-progress { display: none; }
  .tag-row { margin-top: 8px; }
  .tag-pill { font-size: 7px; }
  .card-bottom { padding-top: 8px; }
  .stack-mini { font-size: 8px; }
  .gallery-section { padding: 24px 15px; border-radius: 15px; }
  .gallery-heading { align-items: end; }
  .gallery-count { padding: 7px 9px; }
  .gallery-count strong { font-size: 23px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .gallery-image-button { aspect-ratio: 1.12; }
  .gallery-caption { padding: 8px; font-size: 9px; }
  .tool-grid { grid-template-columns: 1fr; }
  .small-stamp { display: none; }
  .scope-note { grid-template-columns: 37px 1fr; gap: 12px; padding: 22px 4px; margin-bottom: 45px; }
  .scope-number { width: 31px; height: 27px; }
  .scope-note h2 { font-size: 25px; }
  .scope-note p:not(.eyebrow) { font-size: 11px; }
  .back-top { grid-column: 2; justify-self: start; }
  .site-footer { flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 15px 0; font-size: 8px; }
  .site-footer > span:nth-child(2) { order: 3; width: 100%; }
  .footer-code { font-size: 7px; }
  .dialog-content { padding: 12px; }
  .dialog-hero { min-height: 195px; padding: 17px; }
  .dialog-main { grid-template-columns: 1fr; gap: 16px; padding: 19px 2px 0; }
  .dialog-side { display: grid; grid-template-columns: 1fr 1fr; }
  .dialog-gallery { gap: 6px; }
  .dialog-gallery figcaption { padding: 7px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
