@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');
:root{--bg:#080a12;--surface:#111522;--surface2:#151b2a;--border:#28344a;--text:#ecf2fb;--muted:#b1bed0;--blue:#8ab5ff;--max:1160px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:82px}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.65 Inter,Arial,sans-serif}img{max-width:100%;display:block}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,summary{font:inherit;cursor:pointer}button{color:inherit}h1,h2,h3{font-family:'Space Grotesk',sans-serif;line-height:1.16;letter-spacing:-.025em}h1{font-size:clamp(2.3rem,5vw,4rem);margin:.25em 0}h2{font-size:clamp(1.6rem,3vw,2.25rem);margin:0 0 1rem}h3{font-size:1.2rem;margin:.2rem 0 .55rem}p{margin:.4rem 0 1rem}small,.meta,.caption{font-size:.88rem;color:var(--muted)}.wrap{width:min(var(--max),calc(100% - 40px));margin:auto}.prose{max-width:72ch}.site-header{position:sticky;top:0;z-index:40;background:rgba(8,10,18,.96);border-bottom:1px solid var(--border);backdrop-filter:blur(12px)}.header-inner{min-height:64px;display:flex;gap:24px;align-items:center;justify-content:space-between}.brand{font:700 1.02rem 'Space Grotesk',sans-serif;color:var(--text);white-space:nowrap}.brand span{color:var(--blue)}.nav-links{display:flex;align-items:center;gap:20px}.nav-links a{color:var(--text);font-size:.94rem}.nav-links a:hover,.nav-links a[aria-current]{color:var(--blue)}.resume-link,.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border:1px solid var(--blue);border-radius:7px;font-weight:600}.button{background:var(--blue);color:#07101c}.button:hover{color:#07101c}.button.ghost{background:transparent;color:var(--blue)}.menu-button{display:none;background:none;border:1px solid var(--border);border-radius:6px;min-height:44px;padding:5px 12px}.hero{padding:62px 0 44px}.hero .descriptor{font-size:1.15rem;color:var(--blue);font-weight:600}.hero .lead{font-size:clamp(1.22rem,2vw,1.55rem);max-width:32ch}.hero .facts{color:var(--muted);margin:10px 0 22px}.actions{display:flex;gap:12px;flex-wrap:wrap}.section{padding:45px 0;border-top:1px solid var(--border)}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.card{background:var(--surface);border:1px solid var(--border);border-radius:11px;overflow:hidden;min-width:0}.card>a.media-link{display:block;color:inherit}.card img{width:100%;height:245px;object-fit:cover;background:#090d15}.card img.diagram{width:auto;height:auto;max-height:245px;margin-inline:auto;object-fit:contain;padding:0;background:transparent}.card-body{padding:20px}.card-body p{color:var(--muted)}.card .result{color:var(--text)}.card .meta{margin:14px 0}.card .button{margin-top:5px}.link-row{display:flex;gap:22px;flex-wrap:wrap;margin-top:18px}.about-grid{display:grid;grid-template-columns:220px 1fr;gap:30px;align-items:start}.portrait{width:220px;aspect-ratio:1;object-fit:cover;border-radius:9px}.experience{border-top:1px solid var(--border);padding:13px 0}.experience strong{display:block}.tool-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.tool-group,.panel{background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:18px}.tool-group p{color:var(--muted)}details{border:1px solid var(--border);border-radius:8px;background:var(--surface);margin:12px 0}details summary{padding:13px 18px;font-weight:600;min-height:44px}details>.detail-body{padding:0 18px 18px}details[open] summary{border-bottom:1px solid var(--border);margin-bottom:15px}.site-footer{border-top:1px solid var(--border);padding:28px 0 45px;color:var(--muted)}.site-footer .wrap{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.breadcrumb{padding:20px 0 5px;color:var(--muted);font-size:.92rem}.breadcrumb a{color:var(--muted)}.page-head{padding:18px 0 25px}.page-head .intro{font-size:1.1rem;max-width:70ch;color:var(--muted)}.page-head .meta{margin:14px 0}.key-results{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.key-results>div{background:var(--surface);border-left:3px solid var(--blue);padding:12px 15px}.key-results strong{display:block;font-size:1.02rem}.hero-media{margin:24px 0 4px}.hero-media img{width:100%;max-height:500px;object-fit:contain;background:#0d111a;border-radius:9px}.hero-media figcaption,.gallery figcaption{font-size:.88rem;color:var(--muted);padding:7px 2px}.article-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:30px}.toc{position:sticky;top:82px;align-self:start}.toc strong{display:block;margin-bottom:8px}.toc a{display:block;padding:4px 0;color:var(--muted)}.toc-mobile{display:none}.article section{padding:30px 0;border-top:1px solid var(--border)}.article section:first-child{border-top:0}.brief-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.brief-grid div{padding:13px 15px;background:var(--surface);border:1px solid var(--border);border-radius:7px}.brief-grid strong{display:block;margin-bottom:4px}.steps{display:grid;gap:14px}.step{border-left:2px solid var(--border);padding:2px 0 4px 18px;max-width:72ch}.step p{color:var(--muted)}.spec-table{width:100%;border-collapse:collapse}.spec-table th,.spec-table td{padding:9px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border)}.spec-table th{width:38%;color:var(--muted);font-weight:500}.gallery{columns:3;column-gap:13px}.gallery figure{break-inside:avoid;margin:0 0 16px}.gallery button{display:block;width:100%;border:0;border-radius:7px;padding:0;overflow:hidden;background:transparent;cursor:zoom-in}.gallery img{width:100%;height:auto;border-radius:7px}.files{display:flex;flex-wrap:wrap;gap:10px}.files a{border:1px solid var(--border);border-radius:6px;padding:10px 13px;min-height:44px}.continue{display:flex;gap:14px;justify-content:space-between;flex-wrap:wrap}.continue a{border:1px solid var(--border);padding:10px 13px;border-radius:6px;min-height:44px}.lightbox{position:fixed;inset:0;z-index:100;background:rgba(2,4,8,.97);display:none;flex-direction:column;align-items:center;justify-content:center;padding:55px 65px 60px}.lightbox.open{display:flex}.lightbox img{max-width:100%;max-height:calc(100vh - 160px);object-fit:contain}.lightbox .lb-caption{margin:10px auto;color:#fff;text-align:center;font-size:.92rem}.lightbox button{position:absolute;background:#182338;border:1px solid #516685;border-radius:6px;min-width:44px;min-height:44px}.lightbox .close{right:15px;top:15px}.lightbox .prev{left:10px;top:45%}.lightbox .next{right:10px;top:45%}.lightbox .count{position:absolute;left:20px;top:20px;color:#fff}.directory .group{padding:22px 0 32px;border-top:1px solid var(--border)}.directory .group h2{margin-bottom:18px}.directory .compact-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.directory .compact-list a{padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:7px;min-height:44px}.eyebrow{font:500 .85rem 'DM Mono',monospace;color:var(--blue)}:focus-visible{outline:3px solid #a7c8ff;outline-offset:3px}body.viewer-open{overflow:hidden}@media(max-width:767px){body{font-size:16px}.wrap{width:min(100% - 32px,var(--max))}.header-inner{min-height:58px;gap:10px}.menu-button{display:block}.nav-links{display:none;position:absolute;top:58px;left:0;right:0;background:#0c1220;border-bottom:1px solid var(--border);padding:10px 16px;flex-direction:column;align-items:stretch;gap:0}.nav-links.open{display:flex}.nav-links a{display:block;padding:11px;min-height:44px}.header-inner>.resume-link{margin-left:auto;padding:8px 10px;font-size:.82rem}.hero{padding:42px 0 36px}.cards,.tool-grid,.brief-grid,.directory .compact-list{grid-template-columns:1fr}.card img{height:210px}.about-grid{grid-template-columns:1fr}.portrait{width:150px}.key-results{grid-template-columns:1fr}.article-layout{display:block}.toc{display:none}.toc-mobile{display:block;margin:0 0 12px}.toc-mobile a{display:block;padding:6px 0}.gallery{columns:2}.lightbox{padding:60px 50px 80px}.page-head{padding-top:10px}}@media(max-width:350px){.brand{font-size:.87rem}.header-inner>.resume-link{font-size:.75rem;padding:7px}.gallery{columns:1}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(min-width:768px){.header-inner>.resume-link{display:none}}@media(max-width:767px){.header-inner>.resume-link{display:inline-flex}}

/* A more expressive opening built from actual project evidence. */
.hero{position:relative;overflow:hidden;padding:68px 0 72px;background:radial-gradient(circle at 78% 16%,rgba(38,85,157,.16),transparent 38%),linear-gradient(150deg,#080a12 12%,#0c1320 100%)}
.hero::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.28;background-image:linear-gradient(rgba(117,158,220,.11) 1px,transparent 1px),linear-gradient(90deg,rgba(117,158,220,.11) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(90deg,transparent 4%,#000 64%)}
.hero-grid{position:relative;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:clamp(34px,5vw,74px);align-items:center}
.hero-copy{min-width:0}
.hero-descriptor{display:inline-flex;align-items:center;gap:10px;margin:0 0 18px;color:var(--blue);font-weight:600;font-size:.95rem;letter-spacing:.015em}
.hero-descriptor::before{content:"";width:20px;height:2px;background:var(--blue)}
.hero h1{font-size:clamp(3.2rem,5.5vw,5rem);letter-spacing:-.065em;line-height:1.02;margin:0 0 28px;text-wrap:balance}
.hero-period{color:#669df7}
.hero-credentials{display:flex;flex-wrap:wrap;gap:2px 18px;margin-top:27px;padding-top:17px;border-top:1px solid #334057;color:#acbdd2;font-size:.83rem;line-height:1.45}
.hero-credentials span+span{color:#d2e2fa}
.hero-evidence{padding:9px;border:1px solid #33415a;border-radius:12px;background:rgba(15,21,35,.86);box-shadow:0 30px 85px rgba(0,0,0,.23)}
.hero-shot{position:relative;display:block;overflow:hidden;border:1px solid #2a3950;border-radius:7px;background:#101824;color:#fff}
.hero-shot img{width:100%;height:100%;object-fit:cover}
.hero-shot-primary{height:230px}.hero-shot-primary img{object-position:center 44%}
.hero-shot-pair{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:9px}.hero-shot-pair .hero-shot{height:142px}.hero-shot-pair .hero-shot:last-child img{object-fit:contain;background:#f7faf8}
.section{padding:58px 0}.section-head{align-items:end;margin-bottom:18px}.section-head h2{margin-bottom:0}

/* Compact project cards retain the evidence, with clearer scope and dates. */
.cards{gap:22px}.card{display:flex;flex-direction:column;background:linear-gradient(150deg,#111522,#101623);transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease}
.card:hover{border-color:#5273a5;transform:translateY(-3px);box-shadow:0 15px 38px rgba(0,0,0,.16)}
.card .media-link{position:relative;overflow:hidden}.card .media-link img{transition:transform .35s ease}.card:hover .media-link img{transform:scale(1.018)}
.card img.gear-photo{object-fit:cover;object-position:center top}.card .media-link img.cfd-preview{height:auto;aspect-ratio:903/405;object-fit:contain;background:#e8edf2}
.card-kind{position:absolute;left:14px;top:14px;padding:5px 9px;border:1px solid rgba(173,205,255,.35);border-radius:4px;background:rgba(7,12,22,.88);color:#c7dcff;font:500 .66rem 'DM Mono',monospace;text-transform:uppercase;letter-spacing:.07em}
.card-kind-inline{display:block;margin-bottom:9px;color:var(--blue);font:500 .7rem 'DM Mono',monospace;text-transform:uppercase;letter-spacing:.1em}
.card-body{display:flex;flex:1;flex-direction:column;padding:22px 24px 20px}
.card-body h3{margin:0 0 8px;font-size:1.4rem}.card-body h3 a{color:var(--text)}.card-body h3 a:hover{color:var(--blue)}
.card-body .card-description{margin:0 0 14px;color:var(--muted)}
.card .result{margin:0 0 17px;padding-left:14px;border-left:2px solid #78a8f8;font-weight:500;line-height:1.5}
.card .result>span{display:block;margin-bottom:3px;color:#95b9f3;font:500 .68rem 'DM Mono',monospace;text-transform:uppercase;letter-spacing:.09em}
.card-meta{display:flex;justify-content:space-between;align-items:start;gap:10px;padding:13px 0;border-top:1px solid var(--border);color:#aebdd2;font-size:.82rem;line-height:1.4}
.card-meta time{flex:none;color:#d0dded;text-align:right}
.card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:auto;padding-top:8px}
.card-action{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 0;color:#bfd7ff;font-size:.88rem;font-weight:600}
.card-action span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#263e64;font-size:.8rem;transition:background .2s ease,transform .2s ease}
.card-action:hover{text-decoration:none;color:#fff}.card-action:hover span{background:#3c6fb8;transform:translate(2px,-2px)}.card-extra{font-size:.82rem}
#projects>.wrap>.link-row{margin-top:24px}

/* Human context and working history. */
.about-grid{grid-template-columns:260px minmax(0,1fr);gap:38px}
.about-portrait{max-width:260px}.portrait{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center 25%;border:1px solid var(--border)}
.about-portrait span{display:block;margin-top:8px;color:#8ea2be;font:500 .67rem 'DM Mono',monospace;text-transform:uppercase;letter-spacing:.08em}
.education{display:flex;flex-direction:column;gap:3px;padding:14px 0 17px;border-top:1px solid var(--border)}
.education strong{font-size:.98rem}.education>span:last-child{color:var(--muted);font-size:.85rem}
.experience{padding:17px 0}.experience-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.experience-head time{flex:none;color:#b8c8df;font-size:.83rem}.experience .meta{display:block;margin-top:3px}.experience p{margin:10px 0 0}
.tool-group{position:relative;padding:22px}.tool-group::before{content:"";position:absolute;left:22px;top:0;width:36px;height:2px;background:#79aaf5}.tool-group a{font-weight:600}

/* Case-study opening and evidence layout shared by every full project page. */
.project-head{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:20px 28px;padding:22px 0 34px;align-items:start}
.project-head.no-media{grid-template-columns:1fr}.project-intro{min-width:0}
.project-head h1{font-size:clamp(2.45rem,4vw,3.4rem);margin:13px 0 13px;text-wrap:balance}
.project-head .intro{max-width:63ch;font-size:1.02rem;line-height:1.67;margin-bottom:19px}
.project-facts{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;margin:0;padding:13px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.project-facts>div{padding:7px 0}.project-facts>div:first-child{grid-column:1/-1;border-bottom:1px solid #202b3d;padding-bottom:12px}
.project-facts dt{color:#8fb3e8;font:500 .69rem 'DM Mono',monospace;text-transform:uppercase;letter-spacing:.1em}
.project-facts dd{margin:4px 0 0;color:#e2ebf8;font-size:.86rem;line-height:1.46}
.project-report{margin-top:14px}.project-report a{display:inline-flex;align-items:center;min-height:36px;color:#bdd4fa;font-size:.86rem;font-weight:600;border-bottom:1px solid #5d7fab}.project-report a:hover{color:#fff;border-color:#fff;text-decoration:none}
.project-head>.hero-media{display:flex;flex-direction:column;min-width:0;margin:0}
.project-head>.hero-media img{width:auto;height:auto;max-width:100%;max-height:480px;margin-inline:auto;object-fit:contain;border:0;border-radius:9px;background:transparent}
.project-head>.hero-media img.cfd-figure{height:auto;aspect-ratio:auto;object-fit:contain;background:#e8edf2}
.project-head>.hero-media figcaption{line-height:1.4}
.project-head>.key-results{grid-column:1/-1;margin:7px 0 0}
.project-head .key-results>div{border:1px solid #334561;border-left:3px solid var(--blue);border-radius:3px;background:linear-gradient(145deg,#151d2d,#101723);min-height:76px;padding:14px 17px}
.project-head .key-results strong{line-height:1.4}
.article-layout{padding-top:6px}.brief-grid div{padding:17px 18px}.brief-grid strong{color:#bcd6fc;font-size:.79rem;letter-spacing:.02em}
.step{max-width:none}.step-illustrated{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:18px;align-items:start;padding:15px 0 15px 18px}
.step-media{margin:0;min-width:0}.step-media img{width:auto;height:auto;max-width:100%;max-height:320px;margin-inline:auto;object-fit:contain;border:0;border-radius:6px;background:transparent}
.step-media figcaption{margin-top:6px;color:var(--muted);font-size:.76rem;line-height:1.35}
.files a,.continue a{display:inline-flex;align-items:center}
.files a{border-color:#344966;background:#121b2b;font-size:.87rem;font-weight:600}
.continue{gap:10px;margin-top:19px}.continue a{flex:1;justify-content:center;border-color:#344966;background:#121b2b;font-size:.88rem;font-weight:600;text-align:center}
.files a:hover,.continue a:hover{border-color:#648fcb;text-decoration:none;background:#1c304e;color:#fff}

@media(max-width:980px){.hero-grid{grid-template-columns:1fr}.hero-evidence{display:none}.hero-copy{max-width:760px}.project-head{grid-template-columns:1fr}.project-head>.hero-media img{max-height:520px}}
@media(max-width:767px){.header-inner>.resume-link{border:0;padding:8px 4px;color:#c4d9fb}.menu-button{border:0;background:#1a2942;color:#e8f1ff;padding:6px 14px}.nav-links a[href="/resume.pdf"]{display:none}.hero{padding:44px 0 42px}.hero h1{font-size:clamp(2.9rem,12vw,4rem);margin-bottom:22px}.hero-credentials{margin-top:22px;padding-top:15px}.section{padding:42px 0}.card-body{padding:18px}.card-body h3{font-size:1.28rem}.card-meta{flex-direction:column;gap:4px}.card-meta time{text-align:left}.about-grid{grid-template-columns:1fr;gap:20px}.about-portrait{max-width:180px}.portrait{width:180px}.experience-head{display:block}.experience-head time{display:block;margin-top:3px}.project-head{gap:14px;padding-top:12px}.project-head>.hero-media img{max-height:440px}.project-head>.key-results{margin-top:5px}.project-facts{gap:0 12px}.step-illustrated{grid-template-columns:1fr}.step-media img{max-height:340px}}
@media(max-width:380px){.hero h1{font-size:2.76rem}.project-facts{grid-template-columns:1fr}.project-facts>div:first-child{grid-column:auto}.project-facts>div+div{border-top:1px solid #202b3d}.project-head>.hero-media img{max-height:400px}}

/* Small wayfinding cues shared across the site. */
.site-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:80;background:rgba(69,99,142,.3);pointer-events:none}
.site-progress span{display:block;width:100%;height:100%;background:#79aafa;transform:scaleX(0);transform-origin:left center}
.nav-links a.is-active{color:#a9c9ff;text-decoration:underline;text-decoration-color:#77a7f1;text-underline-offset:9px;text-decoration-thickness:2px}
.nav-links .nav-resume{display:inline-flex;align-items:center;min-height:39px;padding:6px 13px;border:1px solid #5b7caf;border-radius:7px;background:#17263d;color:#e7f0ff;font-weight:600}
.nav-links .nav-resume:hover,.header-inner>.resume-link:hover{border-color:#91b9f5;background:#213858;color:#fff;text-decoration:none}
.site-footer{font-size:.85rem}.site-footer a{color:#a9c8f7}
.site-footer{padding:37px 0 22px;background:linear-gradient(160deg,#101b2d,#0b101a 72%);border-top-color:#3b5375;scroll-margin-top:64px}
.site-footer .wrap{display:block}
.footer-main{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:30px}
.footer-main h2{margin:0;font-size:clamp(1.45rem,2.3vw,1.9rem)}
.footer-actions{display:flex;gap:10px;flex-wrap:wrap}
.site-footer .footer-action{display:inline-flex;align-items:center;justify-content:space-between;gap:22px;min-height:46px;padding:10px 15px;border:1px solid #4b6283;border-radius:7px;background:#17243a;color:#e2edff;font-size:.88rem;font-weight:600;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.site-footer .footer-action:hover{border-color:#8eb9f6;background:#223a5c;color:#fff;text-decoration:none;transform:translateY(-2px)}
.site-footer .footer-action-primary{border-color:#8ab5ff;background:#8ab5ff;color:#07111f}
.site-footer .footer-action-primary:hover{background:#a7c9ff;color:#07111f}
.footer-action span{font-size:.9rem}
.footer-bottom{display:flex;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid #33435b;color:#a9b8ce}
.footer-bottom a{color:#bcd5fa}

/* Keep the introduction short, with a strong line above the evidence. */
.hero h1{margin-bottom:17px}
.hero-lead{max-width:34ch;margin:0 0 12px;font-family:'Space Grotesk',sans-serif;font-size:clamp(1.35rem,2.15vw,1.8rem);font-weight:600;line-height:1.3;letter-spacing:-.025em;color:#f0f5fe;text-wrap:balance}
.hero-description{max-width:58ch;margin:0 0 24px;color:#b6c7dc;font-size:.96rem;line-height:1.62}
.hero .actions .button{min-height:43px}
.hero-signals{display:flex;flex-wrap:wrap;gap:8px;margin-top:23px}
.hero-signals span{display:inline-flex;align-items:center;gap:8px;min-height:29px;padding:3px 10px;border:1px solid #395271;border-radius:5px;background:rgba(20,38,61,.68);color:#c9dcf7;font-size:.78rem;font-weight:600;line-height:1.25}
.hero-signals span::before{content:"";width:5px;height:5px;flex:none;border-radius:50%;background:#8ab5ff}
.hero-credentials{margin-top:16px;padding-top:15px}

/* The project contents list tracks the section being read. */
.toc a{padding-left:10px;border-left:2px solid transparent;border-radius:0 4px 4px 0;transition:color .15s ease,background .15s ease,border-color .15s ease}
.toc a:hover,.toc-mobile a:hover{color:#e6f1ff;text-decoration:none}
.toc a.is-active{border-color:#8ab5ff;background:#17263d;color:#e6f1ff;font-weight:600}
.toc-mobile a.is-active{color:#e6f1ff;font-weight:600}
.toc-mobile a.is-active::before{content:"• ";color:#8ab5ff}

/* Homepage filters leave the four selected projects as the default view. */
.project-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.project-filters button{min-height:38px;padding:6px 13px;border:1px solid #354763;border-radius:6px;background:#111a2a;color:#b8c9e0;font-size:.86rem;font-weight:600;line-height:1.2;transition:background .18s ease,border-color .18s ease,color .18s ease}
.project-filters button:hover{border-color:#7ca7e6;color:#fff}
.project-filters button[aria-pressed="true"]{border-color:#7daaf0;background:#233e63;color:#fff}
.card[hidden]{display:none!important}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:767px){
  .header-inner>.resume-link{border:1px solid #5b7caf;padding:6px 10px;background:#17263d;color:#e7f0ff;font-size:.78rem}
  .nav-links a.is-active{background:#172943;text-decoration:none;border-radius:5px}
  .hero h1{margin-bottom:16px}
  .hero-lead{font-size:1.38rem}
  .hero-description{font-size:.92rem;margin-bottom:20px}
  .project-filters{gap:7px;margin-bottom:17px}
  .project-filters button{padding:6px 10px;font-size:.78rem;min-height:36px}
  .footer-main{display:block;padding-bottom:24px}
  .footer-main h2{margin-bottom:17px}
  .footer-actions{display:grid;grid-template-columns:1fr 1fr}
  .footer-action:last-child{grid-column:1/-1}
}
@media(max-width:350px){.footer-actions{grid-template-columns:1fr}.footer-action:last-child{grid-column:auto}}

/* A fixed three-position project path. */
.continue{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.continue a{width:100%;min-width:0;min-height:70px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:10px 12px}
.continue a span{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#aabbd2;font-size:.75rem;font-weight:400}
.continue-spacer{display:block}
@media(max-width:600px){.continue{gap:6px}.continue a{min-height:48px;padding:8px 4px;font-size:.78rem}.continue a span{display:none}}

/* Supporting work belongs in one quiet disclosure. */
.other-projects{max-width:none;margin:0;background:#111a29;border-color:#344763}
.other-projects>summary{padding:18px 20px;color:#e9f1ff;font-family:'Space Grotesk',sans-serif;font-size:1.23rem}
.other-projects-body{padding:0 20px 20px}
.other-projects-body>p,.group-intro{color:#b1bed0;font-size:.9rem}
.other-projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}
.other-projects-grid a{display:block;min-width:0;padding:12px 14px;border:1px solid #344763;border-radius:6px;background:#101725;color:#e8f1ff;font-size:.9rem;font-weight:600}
.other-projects-grid a:hover{border-color:#7daaf0;text-decoration:none;background:#172943}
.other-projects-grid span{display:block;margin-top:3px;color:#acbdd2;font-size:.77rem;font-weight:400}
.other-projects-all{display:inline-flex;min-height:40px;align-items:center;font-size:.86rem;font-weight:600}
.directory .other-project-links{margin-top:16px}
@media(max-width:767px){.other-projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.other-projects-grid{grid-template-columns:1fr}}

/* Use a wide engine-bay view and three distinct kinds of project evidence. */
.hero-shot-primary{height:auto}
.hero-shot-primary img{height:auto;object-fit:contain;transform:none}
.hero-shot-pair .hero-shot:first-child img{object-fit:cover;background:#101824}
.hero-shot-pair .hero-shot:last-child img{object-fit:cover;object-position:center 32%;background:#101824}
.tools-more{display:grid;gap:3px;margin-top:16px;padding:0 2px;color:var(--muted);font-size:.9rem;line-height:1.55}
.tools-more strong{color:var(--text);font-size:.92rem}
.tools-more small{font-size:.82rem}
.anchor-alias{display:block;position:relative;top:-76px;height:0;visibility:hidden}
.card .media-link img.system-map{width:auto;height:auto;max-height:245px;margin-inline:auto;object-fit:contain;background:transparent}
.project-page .hero-media img[src$="openclaw-configuration.svg"]{object-fit:contain;background:#0b1321}
.hero-map-button{display:block;width:100%;padding:0;overflow:hidden;border:1px solid #344966;border-radius:9px;background:#0b1321;text-align:left;cursor:zoom-in}
.hero-map-button:hover{border-color:#78a7ee}
.project-head>.hero-media .hero-map-button img{border:0;border-radius:0}
.card .media-link img.system-map + .card-kind{left:auto;right:14px}
/* Evidence uses its natural proportions; portrait height is bounded without cropping. */
.card img.payload-photo{width:auto;margin-inline:auto;object-fit:contain;background:transparent}
.evidence-image-button{display:block;width:100%;padding:0;border:0;border-radius:7px;background:transparent;overflow:hidden;cursor:zoom-in}
.evidence-image-button:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.evidence-source{max-width:72ch;color:var(--muted);font-size:.94rem;line-height:1.65}
.project-report{display:flex;flex-wrap:wrap;gap:8px 18px}
.geometry-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}
.geometry-comparison figure{min-width:0;margin:0}
.geometry-comparison img{width:100%;height:auto;border-radius:7px}
.geometry-comparison figcaption{font-size:.88rem;color:var(--muted);padding:7px 2px}
.lightbox .lb-stage{position:absolute;inset:68px 58px 138px;display:flex;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y}
.lightbox .lb-stage img{max-width:100%;max-height:100%;width:auto;height:auto;flex-shrink:0;object-fit:contain;cursor:zoom-in}
.lightbox .lb-stage.is-zoomed{display:block;cursor:grab}
.lightbox .lb-stage.is-zoomed img{max-width:none;max-height:none;cursor:inherit;margin:0 auto}
.lightbox .lb-stage.is-panning{cursor:grabbing}
.lightbox button,.lightbox .count,.lightbox .lb-original{z-index:2}
.lightbox .zoom{top:15px;left:50%;transform:translateX(-50%);padding:5px 12px;font-size:.88rem}
.lightbox .lb-caption{position:absolute;left:58px;right:58px;bottom:56px;max-height:72px;overflow:auto;margin:0;font-size:.88rem;line-height:1.45}
.lightbox .lb-original{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);white-space:nowrap;min-height:36px;display:flex;align-items:center;font-size:.88rem}
@media(max-width:620px){.geometry-comparison{grid-template-columns:1fr}.lightbox .lb-stage{inset:68px 48px 148px}.lightbox .lb-caption{left:22px;right:22px;max-height:82px}}

@media(max-width:767px){.card img.diagram,.card .media-link img.system-map{max-height:210px}}

.evidence-group+.evidence-group{margin-top:28px}.evidence-group>h3{margin-bottom:14px}

.card .card-simulation{margin-top:0;padding:8px 12px;gap:9px;font-size:.86rem}
.card-simulation:hover{border-color:#b6d2ff;background:#172943;text-decoration:none}
.project-actions{margin-top:18px}.project-actions .button{gap:12px;font-size:.9rem}
.project-actions .meta{margin:8px 0 0;font-size:.8rem;line-height:1.45}

.card .media-link img.payload-bench{width:100%;height:auto;object-fit:contain;background:transparent}

.card .media-link img.payload-bench+.card-kind{left:auto;right:14px}

/* Project thumbnails and compact exploration links. */
.card .media-link img.payload-closeup{object-fit:cover;object-position:center top}
.card .media-link img.payload-closeup+.card-kind{left:auto;right:14px}
.card .media-link img.e320-exterior{object-position:center 35%}
.directory .compact-list a.explore-card{display:grid;grid-template-columns:144px minmax(0,1fr);align-items:center;padding:0;overflow:hidden;min-height:112px}
.explore-card img{width:144px;height:112px;object-fit:cover}
.explore-card img.explore-c32{object-position:50% 57%}
.explore-card img.explore-lab{object-position:30% center}
.explore-card>span{padding:14px 16px}
.explore-card strong,.explore-card small{display:block}
.explore-card strong{line-height:1.35;font-size:1rem}
.explore-card small{margin-top:6px;line-height:1.4}
@media(max-width:767px){.directory .compact-list a.explore-card{grid-template-columns:112px minmax(0,1fr)}.explore-card img{width:112px}.explore-card>span{padding:12px}}
/* Evidence inside disclosures keeps full proportions and a readable caption. */
.detail-evidence{margin:24px 0 29px;max-width:100%}.detail-evidence img{width:auto;height:auto;max-width:100%;max-height:600px;margin-inline:auto;object-fit:contain;background:transparent}.detail-evidence figcaption{color:var(--muted);font-size:.8rem;line-height:1.55;margin-top:10px;max-width:78ch}.detail-evidence-pair{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.detail-evidence-pair .detail-evidence{margin-bottom:10px}.evidence-placeholder{border-left:2px solid #536779;padding:15px 19px;margin:26px 0 7px;background:#121c27}.evidence-placeholder>span{font:500 .68rem 'DM Mono',monospace;letter-spacing:.09em;text-transform:uppercase;color:#8098ad}.evidence-placeholder h4{font-size:1rem;font-weight:500;line-height:1.4;margin:9px 0}.evidence-placeholder p{font-size:.84rem;line-height:1.65;color:var(--muted);margin:0;max-width:70ch}
@media(max-width:767px){.detail-evidence-pair{grid-template-columns:1fr;gap:5px}.detail-evidence{margin:22px 0}.detail-evidence img{max-height:none}.evidence-placeholder{padding:12px 14px}}
/* Project evidence has no decorative photo frames. Homepage hero stays intact. */
.project-page .hero-media,.project-page .step-media,.project-page .detail-evidence,.project-page .geometry-comparison figure,.project-page .gallery figure{border:0;box-shadow:none;background:transparent}
.project-page .evidence-image-button,.project-page .hero-map-button,.project-page .gallery button{border:0;border-radius:0;box-shadow:none;background:transparent}
.project-page .hero-media img,.project-page .step-media img,.project-page .detail-evidence img,.project-page .geometry-comparison img,.project-page .gallery img{border:0;border-radius:0;box-shadow:none;background:transparent}

/* Related evidence shares a height without cropping, stretching or a visible frame. */
.detail-evidence-pair.balanced-photos{grid-template-columns:var(--photo-columns);max-width:calc(var(--photo-ratio-sum)*420px + (var(--photo-count) - 1)*22px);margin-inline:auto}
.detail-evidence-pair .detail-evidence{min-width:0}
.detail-evidence-pair .detail-evidence img{max-height:420px}
@media(max-width:767px){.detail-evidence-pair.balanced-photos{grid-template-columns:minmax(0,1fr)}.detail-evidence-pair .detail-evidence img{max-height:420px}}

/* Keep captions aligned with narrow evidence photographs. */
.project-page .detail-evidence{--photo-height:600px;width:min(100%,calc(var(--photo-ratio,1.333333)*var(--photo-height)));margin-inline:auto}
.project-page .detail-evidence img{width:100%;height:auto;max-height:var(--photo-height);margin-inline:0}
.project-page .detail-evidence-pair .detail-evidence{--photo-height:420px}
.project-page .step-media{--photo-height:320px;width:min(100%,calc(var(--photo-ratio,1.333333)*var(--photo-height)));justify-self:center}
.project-page .step-media img{width:100%;height:auto;max-height:var(--photo-height);margin-inline:0}
.project-head>.hero-media{--photo-height:480px;width:min(100%,calc(var(--photo-ratio,1.333333)*var(--photo-height)));justify-self:center}
.project-head>.hero-media img{width:100%;height:auto;max-height:var(--photo-height);margin-inline:0}
.project-page .detail-evidence figcaption,.project-page .step-media figcaption,.project-head>.hero-media figcaption{padding-inline:0;font-size:.8rem;line-height:1.55}
@media(max-width:980px){.project-head>.hero-media{--photo-height:520px}}
@media(max-width:767px){.project-head>.hero-media{--photo-height:440px}.project-page .step-media{--photo-height:340px}}
@media(max-width:380px){.project-head>.hero-media{--photo-height:400px}}
