/* Projects extends the portfolio's shared type, navigation and color tokens. */
.project-feature,.project-hero,.project-band {padding-block:clamp(64px,9vw,126px)}
.project-feature,.project-hero,.project-inset {background-color:var(--ink-soft)}
.project-feature,.project-band [id] {scroll-margin-top:calc(var(--header-height) + 20px)}
.project-feature-layout,.project-hero-layout,.project-band-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,6vw,96px);align-items:center}
.project-feature h2,.project-main h1:not(.site-display-title),.project-main h2 {font-family:var(--serif);font-weight:500;letter-spacing:-.035em;line-height:.99;margin:0}
.project-feature h2,.project-main h2 {font-size:clamp(2.6rem,5.6vw,5.2rem)}
.project-main h1:not(.site-display-title) {font-size:clamp(3.6rem,9vw,8rem)}
.project-feature p:not(.eyebrow),.project-hero p:not(.eyebrow),.project-copy>p {max-width:58ch;color:var(--text-muted)}
.project-feature .button,.project-hero .button {margin-top:12px}
.project-main {padding-top:var(--header-height)}
.project-main a.breadcrumb {display:inline-block;margin-bottom:30px;color:var(--mint)}
.project-main a.breadcrumb:hover {text-decoration:underline}
.project-kicker {font:600 .75rem/1.4 var(--mono);letter-spacing:.13em;text-transform:uppercase;color:var(--mint)}
.project-tag {display:inline-block;padding:.35rem .65rem;border:1px solid var(--line);border-radius:2px;color:var(--text);font:500 .72rem/1.2 var(--mono);letter-spacing:.06em;text-transform:uppercase}
.project-tags {display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 0;padding:0;list-style:none}
.project-figure {margin:0;padding:clamp(17px,3.5vw,36px);border:1px solid var(--line);background:#142229;color:var(--text)}
.project-figure figcaption {margin-top:20px;color:var(--text-muted);font-size:.875rem}
.project-screen {padding:17px 0 0;border-top:1px solid var(--line)}
.project-screen .project-kicker {display:block;margin-bottom:16px}
.project-prompt {margin:6px 0 12px;font:500 clamp(1.55rem,3vw,2.45rem)/1.05 var(--serif)}
.project-panel-row {display:grid;grid-template-columns:auto 1fr;align-items:start;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.project-panel-row .project-kicker {margin:0}
.project-panel-row strong {display:block;font-size:.92rem}
.project-panel-row div > span {color:var(--text-muted);font-size:.85rem}
.project-light {background:var(--paper);color:var(--dark-text)}
.project-light .project-copy p,.project-light .project-deck {color:#455458}
.project-light .project-kicker {color:#824226}
.project-band h2 {max-width:16ch}
.project-deck {color:var(--text-muted);max-width:65ch;margin-bottom:32px}
.project-flow {display:grid;gap:12px;margin:0;padding:0;list-style:none;counter-reset:steps}
.project-flow li {counter-increment:steps;display:grid;grid-template-columns:2.4rem 1fr;gap:12px;padding:16px 0;border-top:1px solid var(--line)}
.project-flow li::before {content:"0" counter(steps);font:600 .82rem/1.8 var(--mono);color:var(--mint)}
.project-flow strong,.project-flow small {display:block}
.project-flow small {color:var(--text-muted);font-size:.9rem}
.project-notes {margin:0;padding:0;list-style:none;border-top:1px solid var(--dark-line)}
.project-notes li {display:grid;grid-template-columns:2rem 1fr;gap:12px;padding:15px 0;border-bottom:1px solid var(--dark-line)}
.project-notes p {margin:.2em 0 0;color:#455458}
.project-notes strong {display:block}
.project-main .text-link {min-height:44px}
.project-light .text-link {color:#713823}
.project-light .text-link:hover,.project-light .text-link:focus-visible {color:var(--dark-text)}
.project-light a:focus-visible {outline-color:#713823}
.project-feature .button {background:var(--mint);color:var(--ink)}
.project-feature .button:hover,.project-feature .button:focus-visible {background:#a4e1c7}
@media (max-width:850px) {
 .project-feature-layout,.project-hero-layout,.project-band-layout {grid-template-columns:1fr;align-items:start}
}
.project-services {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,4vw,40px);margin:30px 0 0}
.project-services div {border-top:1px solid var(--line);padding-top:14px}
.project-services dt {font-weight:700}
.project-services dd {margin:6px 0 0;color:var(--text-muted);font-size:.92rem}
@media (max-width:600px) {
  .project-services {grid-template-columns:1fr}
  .project-main h1 {font-size:clamp(3rem,13vw,5rem)}
}

/* Figures are standalone, zoomable illustrations. Keep the explanation in HTML. */
.project-architecture {display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr);gap:clamp(20px,5vw,72px);align-items:start}
.project-architecture .project-services {grid-template-columns:1fr;gap:20px;margin:0}
.project-illustration {padding:clamp(12px,2.2vw,25px)}
.project-illustration img {display:block;width:100%;height:auto;background:#fff;border-radius:2px}
.project-enlarge {display:block;width:fit-content;padding-block:10px;color:var(--mint);text-decoration:underline;text-underline-offset:.18em}
.project-worker {margin-top:28px;border-top:1px solid var(--line);padding-top:16px}
.project-worker h3 {margin:0;font-size:1.2rem}
.project-room-illustration {grid-column:1/-1;width:min(100%,880px);justify-self:center}
@media (max-width:760px) {
 .project-architecture {grid-template-columns:1fr}
 .project-architecture .project-illustration {max-width:520px;justify-self:center}
}

/* Keep these entry points concise; the technical depth lives in the case study. */
#building-agents {padding-block:clamp(44px,6vw,82px)}
#building-agents .project-feature-layout {gap:clamp(23px,4.5vw,64px)}
#building-agents h2 {font-size:clamp(2.65rem,4.85vw,4.5rem)}
#building-agents .project-figure {padding:clamp(16px,2.3vw,27px)}
#building-agents .project-figure>.project-kicker {margin:0 0 9px}
#building-agents .project-screen {padding-top:9px}
#building-agents .project-panel-row {padding-block:8px}
#building-agents .project-figure figcaption {margin-top:12px}
#building-agents .button {margin-top:5px;gap:8px}
.project-directory .project-hero {padding-block:clamp(28px,4.7vw,62px)}
.project-directory .project-hero .eyebrow {margin-block:0 9px}
.project-directory h1:not(.site-display-title) {font-size:clamp(2.7rem,5.1vw,4.75rem)}
.project-directory .project-hero p:last-child {margin-block:10px 0}
.project-directory .project-band {padding-block:clamp(33px,5.25vw,72px)}
.project-directory .project-band-layout {gap:clamp(20px,4vw,58px)}
.project-directory .project-copy>.project-kicker {margin-top:0}
.project-directory .project-copy>p:not(.project-kicker) {margin-bottom:8px}
.project-directory h2 {font-size:clamp(2.65rem,4.85vw,4.5rem)}
.project-directory-art {margin:0;background:#101d22;color:var(--text)}
.project-directory-art img {display:block;width:100%;height:auto;aspect-ratio:1.76;object-fit:cover;object-position:center 54%}
.project-directory-art figcaption {display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;padding:9px 12px;border-top:1px solid #476057;color:var(--text-muted);font:500 .72rem/1.4 var(--mono)}

.mesh-directory-entry {border-top:1px solid var(--dark-line)}
.mesh-directory-art img {object-fit:cover;object-position:center bottom;aspect-ratio:2.14}

.mesh-directory-panel {padding:clamp(15px,3vw,35px);background:radial-gradient(ellipse at 75% 4%,#38231b,transparent 65%),#111113;display:grid;gap:9px;min-height:clamp(145px,16vw,215px);align-content:center}
.mesh-directory-panel>span {display:flex;justify-content:space-between;gap:10px;color:#b8dbcd;font:500 .7rem/1.4 var(--mono)}
.mesh-directory-panel strong {font:600 clamp(1.2rem,2.2vw,2.2rem)/1.1 var(--sans);letter-spacing:-.035em}
.mesh-directory-panel small {width:fit-content;border:1px solid #79653e;color:#f4d9a9;padding:3px 7px;background:#392f24;font:600 .72rem/1.4 var(--mono)}
.mesh-directory-panel i {display:inline-block;width:5px;height:5px;background:#e9ba7e;border-radius:50%;vertical-align:middle;margin-right:3px}

/* Keep the directory quick to scan and give the lead project more weight. */
.project-directory .project-hero {padding-block:clamp(25px,3.4vw,49px)}
.project-directory .mesh-directory-entry h2 {font-size:clamp(2.5rem,4.1vw,3.7rem)}
.mesh-directory-art {background:#151517}
.mesh-directory-art figcaption {border-top-color:#37373d}
.mesh-directory-panel .mesh-directory-brand {display:inline-flex;align-items:center;gap:7px;color:#f4efe6;font-weight:700;letter-spacing:0}
.mesh-directory-panel .mesh-directory-brand img {display:block;width:19px;height:19px;aspect-ratio:1;object-fit:contain}

/* The directory opens on a featured story rather than a separate title banner. */
.project-directory .project-directory-feature {padding-block:clamp(23px,3.6vw,49px) clamp(44px,7vw,92px);background:#eee4d4}
.project-directory-masthead {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 14px;border-bottom:1px solid #cbbba4;padding-bottom:14px;margin-bottom:clamp(26px,4.2vw,54px)}
.project-directory .project-directory-masthead h1 {font-size:clamp(1.65rem,2.8vw,2.45rem)}
.project-directory-masthead p {margin:0;color:#6d5240;font:600 .72rem/1.4 var(--mono);letter-spacing:.1em;text-transform:uppercase}
.project-directory-feature h2 {font-size:clamp(3.3rem,6.15vw,6.6rem);max-width:10ch}
.project-directory-feature .project-directory-art {border:1px solid #cbbba4;background:transparent;color:var(--dark-text)}
.project-directory-feature .project-directory-art img {aspect-ratio:1.51;object-fit:contain}
.project-directory-feature .project-directory-art figcaption {border-top-color:#cbbba4;color:#604f40}
.project-directory .mesh-directory-entry {padding-block:clamp(31px,4.3vw,60px)}
@media(min-width:851px) {
 .project-directory .project-directory-feature .project-band-layout {grid-template-columns:minmax(0,.85fr) minmax(0,1.23fr)}
}
