
:root{--ink:#162d30;--muted:#576a67;--paper:#faf9f5;--green:#176b60;--line:#d4ddd6}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.6}a{color:inherit;text-decoration:none}a:focus-visible{outline:3px solid var(--green);outline-offset:5px}header,main,footer{max-width:1280px;margin:auto;padding-left:56px;padding-right:56px}header{display:flex;justify-content:space-between;align-items:center;padding-top:29px;padding-bottom:24px;border-bottom:1px solid var(--line)}.wordmark{font-size:19px;font-weight:800;letter-spacing:.06em}.wordmark span{display:block;font-size:9px;letter-spacing:.18em;color:var(--muted)}nav{display:flex;align-items:center;gap:30px;font-size:13px}.download{border:1px solid var(--line);padding:10px 16px}.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px;padding:74px 0 90px}.eyebrow{font-size:10px;letter-spacing:.17em;font-weight:700;color:var(--green);margin:0 0 22px}h1{font-size:clamp(40px,5vw,68px);line-height:1.04;letter-spacing:-.055em;margin:0 0 26px;max-width:650px}.lead{font-size:18px;line-height:1.65;color:var(--muted);max-width:490px}.button{display:inline-block;background:var(--green);color:white;padding:13px 20px;font-size:13px;margin-top:23px}.text-link{display:inline-block;font-size:13px;text-decoration:underline;text-underline-offset:5px;margin-left:20px}.hero figure{margin:0;background:#ebece6;padding:22px}.hero img{width:100%;height:350px;object-fit:contain;mix-blend-mode:multiply}figcaption{font-size:10px;color:var(--muted);margin-top:12px}.section-heading{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:28px 0}.section-heading h2{font-size:25px;letter-spacing:-.025em;margin:0}.section-heading span{font-size:10px;color:var(--muted);letter-spacing:.08em}.projects{display:grid;grid-template-columns:1fr 1fr;gap:36px}.card-image{position:relative;background:#eceee8;height:330px;padding:22px;overflow:hidden}.card-image img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;transition:transform .25s}.project-card:hover img{transform:scale(1.035)}.number{position:absolute;left:18px;top:12px;font-size:11px;color:var(--muted)}.card-meta{display:flex;justify-content:space-between;font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin-top:22px;color:var(--green)}h3{font-size:29px;line-height:1.2;margin:9px 0}.project-card p{font-size:14px;color:var(--muted);max-width:490px}.closing{margin-top:80px;border-top:1px solid var(--line);padding:48px 0 70px}.closing h2{font-size:36px;letter-spacing:-.03em;margin:0}.closing p:not(.eyebrow){color:var(--muted);max-width:560px}.closing .text-link{margin-left:0}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:30px;padding-top:22px;padding-bottom:28px;font-size:10px;color:var(--muted)}.project-heading{padding:48px 0 25px}.project-heading>a{font-size:12px}.project-heading .eyebrow{margin-top:35px}.project-hero{height:440px;padding:24px;background:#eceee8}.project-hero img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.metrics{display:grid;grid-template-columns:repeat(3,1fr);padding:30px 0;border-bottom:1px solid var(--line)}.metrics strong{display:block;font-size:32px;color:var(--green)}.metrics span{font-size:12px;color:var(--muted)}.story{display:grid;grid-template-columns:2fr 1fr;gap:90px;padding-top:30px}.story h2{font-size:22px;margin:24px 0 10px}.story p{font-size:15px;color:var(--muted)}.tag{display:inline-block;border:1px solid var(--line);padding:5px 10px;font-size:11px;margin:0 5px 7px 0}.note{border-top:1px solid var(--line);padding-top:20px;font-size:12px!important}.gallery{display:grid;grid-template-columns:1fr 1fr;gap:36px;margin-top:30px}.gallery figure{margin:0}.gallery img{width:100%;height:300px;object-fit:contain;background:#eceee8}.source{font-size:10px;color:var(--muted);margin:40px 0}.skip{position:absolute;left:10px;top:-100px;background:white;padding:10px;z-index:2}.skip:focus{top:5px}@media(max-width:760px){header,main,footer{padding-left:22px;padding-right:22px}nav{gap:12px;font-size:11px}.wordmark{font-size:14px}.wordmark span{font-size:7px}.hero{grid-template-columns:1fr;padding:45px 0;gap:32px}.hero img{height:280px}.projects,.story,.gallery{grid-template-columns:1fr;gap:25px}.section-heading{align-items:flex-start;gap:15px}.section-heading span{max-width:90px}.section-heading h2{font-size:23px}.card-image{height:280px}.text-link{margin-left:12px}.project-hero{height:290px}.metrics strong{font-size:24px}.metrics span{font-size:10px}.story{padding-top:10px}footer{flex-direction:column;gap:8px}.closing{margin-top:45px}.gallery img{height:260px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.card-image img{transition:none}}

/* Personal site navigation: wrap cleanly on small screens. */
header{gap:24px}nav{flex-wrap:wrap;justify-content:flex-end;gap:22px}nav a{white-space:nowrap}nav a:hover{color:var(--green);text-decoration:underline;text-underline-offset:5px}@media(max-width:760px){header{align-items:flex-start;flex-direction:column;gap:18px}nav{justify-content:flex-start;gap:12px 22px;width:100%}}

/* Combat robot template: image left, competition facts right. */
.robot-overview{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:52px;align-items:center;padding-bottom:30px;border-bottom:1px solid var(--line)}
.robot-overview figure{margin:0}.robot-image{height:390px;background:#eceee8;padding:24px}.robot-image img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.robot-facts dl{margin:0}.robot-facts dl>div{padding:17px 0;border-bottom:1px solid var(--line)}.robot-facts dt{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}.robot-facts dd{font-size:24px;font-weight:700;line-height:1.3;margin:7px 0 0}.robot-facts .eyebrow{margin-bottom:5px}.project-role{padding-bottom:15px;border-bottom:1px solid var(--line)}
/* Keep the title compact and align every combat robot overview to one height. */
.project-heading{padding:28px 0 30px}
.project-heading>a{display:inline-block}
.project-heading .eyebrow{margin:20px 0 12px}
.project-heading h1{margin-bottom:0}
.robot-overview{--overview-height:440px;align-items:start}
.robot-overview>figure{min-width:0}
.robot-image{height:var(--overview-height)}
.robot-facts{height:var(--overview-height);display:flex;flex-direction:column;min-width:0}
.robot-facts .eyebrow{flex:none;margin:0 0 10px}
.robot-facts dl{flex:1;min-height:0;display:grid;grid-auto-rows:minmax(0,1fr);overflow:auto}
.robot-facts dl>div{padding:10px 0;display:flex;flex-direction:column;justify-content:center;min-width:0}
.robot-facts dd{font-size:clamp(18px,1.75vw,24px);overflow-wrap:anywhere;margin-top:5px}
@media(max-width:760px){
  .project-heading{padding:24px 0}
  .project-heading .eyebrow{margin-top:16px}
  .robot-overview{--overview-height:360px;grid-template-columns:1fr;gap:24px}
  .robot-facts dd{font-size:20px}
  .robot-facts dl>div{padding:8px 0}
}

/* Narrative sections pair text with an image, stacking on smaller screens. */
.story{display:block}
.story>aside{margin-top:30px;padding-top:20px;border-top:1px solid var(--line)}
.project-role{padding:0 0 24px}
.project-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:52px;align-items:center;padding:36px 0;border-bottom:1px solid var(--line)}
.project-section h2{margin:0 0 16px}
.project-section p{margin:0 0 16px;line-height:1.8}
.project-section b{color:var(--ink);font-weight:700}
.project-section figure{margin:0;background:#fff;padding:18px}
.project-section img{display:block;width:100%;height:360px;object-fit:contain}
.section-image-slot{height:300px;border:1px dashed var(--line);background:#f0f1eb;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);gap:8px}
.section-image-slot span{font-size:14px}.section-image-slot small{font-size:11px}
@media(max-width:760px){.project-section{grid-template-columns:1fr;gap:22px;padding:28px 0}.project-section img{height:290px}.section-image-slot{height:240px}}

/* Group role and skills together; use whitespace rather than divider rules. */
.role-skills{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:52px;align-items:start;padding:12px 0 20px}
.role-skills h2{margin:0 0 14px}.role-skills .project-role{padding:0}
header,footer,.section-heading,.closing,.robot-overview,.robot-facts dl>div,.project-role,.project-section,.metrics,.note,.story>aside{border:0}
@media(max-width:760px){.role-skills{grid-template-columns:1fr;gap:24px}}

/* This illustration takes its height from the adjacent text, not the image. */
.project-section figure.text-height-image{position:relative;align-self:stretch;min-height:0;padding:0;background:transparent}
.project-section figure.text-height-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
@media(max-width:760px){.project-section figure.text-height-image{height:auto}.project-section figure.text-height-image img{position:static;height:auto;max-height:320px}}

/* Multiple illustrations share the space beside a project section. */
.project-section figure:not(.text-height-image):has(img + img){display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;background:transparent;padding:0}
.project-section figure:not(.text-height-image):has(img + img) img{height:240px;object-fit:contain}
@media(max-width:760px){.project-section figure:not(.text-height-image):has(img + img) img{height:170px}}
.section-link{color:var(--green);font-weight:700;text-decoration:underline;text-underline-offset:4px}
.gallery-section{padding-top:42px}.gallery-section h2{font-size:26px;letter-spacing:-.025em;margin:0}.gallery-section .gallery{margin-top:24px}.gallery-section img{object-fit:contain}.gallery-section figcaption{font-size:12px;line-height:1.5}

/* Full-width site header and compact project spacing. */
body>header{max-width:none;margin:0;padding:20px max(56px,calc((100% - 1168px)/2));background:#176b60;color:#fff}
body>header .wordmark span{color:#d4e8df}
body>header nav a:hover{color:#fff;text-decoration-color:#fff}
.project-heading{padding-top:12px}
.robot-overview{padding-bottom:10px}
.story{padding-top:10px}
.role-skills{padding-top:0;padding-bottom:8px}
.project-section{padding-top:24px;padding-bottom:24px}
@media(max-width:760px){body>header{padding:16px 22px}.project-heading{padding-top:12px}.project-section{padding-top:20px;padding-bottom:20px}}

/* Compact project heading and edge-to-edge project photography. */
.project-heading{padding-bottom:12px}
.project-heading .eyebrow{margin-top:8px;margin-bottom:8px}
.project-section figure:not(.text-height-image){background:transparent;padding:0}
.project-section figure:not(.text-height-image) img{background:transparent}
.gallery-section .gallery img{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover;background:transparent}
@media(max-width:760px){.project-heading{padding-bottom:12px}.project-heading .eyebrow{margin-top:8px}}
.closing{margin-top:30px;padding-top:25px}
@media(max-width:760px){.closing{margin-top:25px;padding-top:20px}}
.project-section.no-image{grid-template-columns:minmax(0,1fr)}
.project-section.no-image>div{max-width:740px}

/* Project category menu works on hover, keyboard focus, and touch. */
.projects-nav{position:relative;display:flex;align-items:center;gap:4px}
.projects-nav details{position:static}
.projects-nav summary{list-style:none;cursor:pointer;padding:4px;line-height:1}
.projects-nav summary::-webkit-details-marker{display:none}
.projects-nav summary:focus-visible{outline:2px solid white;outline-offset:3px}
.projects-menu{display:none;position:absolute;top:100%;left:-14px;min-width:190px;padding:8px;background:#12564d;z-index:10;box-shadow:0 8px 20px #102e2b30}
.projects-menu a{display:block;padding:10px 12px;color:#fff}
.projects-nav:hover .projects-menu,.projects-nav:focus-within .projects-menu,.projects-nav details[open] .projects-menu{display:block}
.category-projects{padding:10px 0 70px}
.projects-nav details[open] + .projects-menu{display:block}

/* Align project navigation and section label across the same row. */
.project-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;column-gap:20px;row-gap:10px}
.project-heading>a{justify-self:start}
.project-heading>.eyebrow{justify-self:end;text-align:right;margin:0}
.project-heading>h1,.project-heading>.lead,.project-heading>p:not(.eyebrow){grid-column:1 / -1}
.project-heading>.lead{max-width:none}
.closing p:not(.eyebrow){max-width:none}

/* Expand the header itself for the project category menu. */
.project-card p{max-width:none}
body>header{position:relative;transition:padding-bottom .18s ease}
body>header:has(.projects-nav:hover),body>header:has(.projects-nav:focus-within),body>header:has(.projects-nav details[open]){padding-bottom:68px}
.projects-menu{top:calc(100% + 20px);left:0;min-width:180px;padding:0;background:transparent;box-shadow:none}
.projects-menu a{padding:8px 0;color:#fff}
@media(max-width:760px){body>header:has(.projects-nav:hover),body>header:has(.projects-nav:focus-within),body>header:has(.projects-nav details[open]){padding-bottom:65px}.projects-menu{top:calc(100% + 12px)}}
@media(prefers-reduced-motion:reduce){body>header{transition:none}}
.projects-nav::after{content:"";position:absolute;left:0;top:100%;width:180px;height:20px}

/* Project image viewer */
.image-expand{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.image-expand:focus-visible{outline:3px solid var(--green);outline-offset:4px}
.project-section figure.text-height-image .image-expand{position:absolute;inset:0}
.project-section figure.text-height-image .image-expand img{position:static}
.image-viewer{position:fixed;max-width:none;max-height:none;width:100%;height:100%;padding:32px;border:0;background:transparent;overflow:auto;color:#fff}
.image-viewer::backdrop{background:rgba(4,15,16,.88)}
.image-viewer[open]{display:flex;justify-content:center;align-items:center}
.image-viewer figure{margin:auto;display:flex;flex-direction:column;align-items:center;max-width:min(95vw,1400px)}
.image-viewer figure img{display:block;max-width:100%;max-height:80vh;width:auto;height:auto;object-fit:contain}
.image-viewer figcaption{margin-top:14px;color:#fff;font-size:14px;text-align:center}
.image-viewer figcaption[hidden]{display:none}
.image-viewer-close{position:fixed;top:16px;right:22px;border:0;background:transparent;color:#fff;font-size:38px;line-height:1;cursor:pointer;z-index:1}
.image-viewer-close:focus-visible{outline:2px solid #fff;outline-offset:4px}
@media(max-width:760px){.project-section figure.text-height-image .image-expand{position:static;height:auto}.image-viewer{padding:48px 16px 20px}.image-viewer figure img{max-height:75vh}}
.projects-nav::after{width:100%}
.project-section figure:has(.image-expand + .image-expand){display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;background:transparent;padding:0}
.project-section figure:has(.image-expand + .image-expand) .image-expand{height:240px}
.project-section figure:has(.image-expand + .image-expand) img{height:100%;object-fit:contain}
@media(max-width:760px){.project-section figure:has(.image-expand + .image-expand) .image-expand{height:170px}}
body.image-viewer-open{overflow:hidden}
.image-viewer figure img{transform-origin:center center;will-change:transform}
.image-viewer figure{overflow:visible}
/* Gallery buttons follow the image height so captions remain in normal flow. */
.gallery-section .image-expand{height:auto;aspect-ratio:4 / 3}
.gallery-section .image-expand img{height:100%;aspect-ratio:auto}
.gallery-section figcaption{margin-top:10px}
.gallery-section{padding-bottom:48px}
.gallery-section{padding-bottom:12px}
@media (prefers-reduced-motion: no-preference){.image-viewer figure img{transition:transform 120ms ease-out}}
/* Keep the final content-to-footer spacing consistent on every page. */
.closing,.category-projects,.gallery-section{padding-bottom:12px}
.project-heading>.project-dates{grid-column:1 / -1;margin:0;color:var(--muted);font-size:14px;letter-spacing:.02em}

.project-section figure.manufacturing-images:has(.image-expand + .image-expand){grid-template-columns:1fr 1fr}
.project-section figure.manufacturing-images .image-expand:last-child{grid-column:1 / -1;height:200px}
.project-section figure.results-photo .image-expand{display:block;width:100%;aspect-ratio:16 / 9;overflow:hidden}
.project-section figure.results-photo .image-expand img{width:100%;height:100%;object-fit:cover;object-position:center 66%}

.project-section figure:has(.section-image-item){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.project-section .section-image-item .image-expand{height:240px}
.project-section .section-image-item img{height:100%;object-fit:contain}
.project-section .section-image-item figcaption{font-size:12px;line-height:1.5;margin-top:8px}
@media(max-width:760px){.project-section .section-image-item .image-expand{height:170px}}

.closing .eyebrow{margin-bottom:8px}

/* Reserve the same scrollbar space on short and long pages. */
html{overflow-y:scroll}
