/* Project directory and individual project pages. */
.projects{padding-top:82px;padding-bottom:88px;border-top:1px solid var(--line)}
.projects-heading{display:flex;justify-content:space-between;align-items:end;gap:36px}
.projects-heading h2{font-size:clamp(32px,3.5vw,50px);font-weight:400;letter-spacing:-.04em;line-height:1.15;margin-top:22px}
.projects-heading>p{max-width:280px;color:var(--muted);font-size:13px;line-height:1.8}
.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:38px}
/* Show the six main projects as two complete rows on desktop. */
@media(min-width:1101px){#project-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
.project-card{display:flex;flex-direction:column;align-items:start;border:1px solid var(--line);padding:28px;transition:border-color .2s,background .2s}
.project-card:hover{border-color:var(--accent);background:#ece9de}
.project-number{font:12px "Courier New",monospace;color:var(--accent);margin-bottom:30px}
.project-card h3{font-size:25px;line-height:1.2;letter-spacing:-.025em;font-weight:500;margin-bottom:18px}
.project-card p{font-size:13px;line-height:1.8;color:var(--muted);margin-bottom:30px}
.project-link{margin-top:auto;width:100%;display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:17px;font-size:12px;font-weight:700}
.project-link>span{color:var(--accent)}
.project-back{margin-left:auto;font-size:12px;font-weight:700;white-space:nowrap}
.project-main{padding-top:70px;padding-bottom:80px;min-height:calc(100vh - 200px)}
.project-main h1{max-width:950px;font-size:clamp(38px,5.5vw,76px);line-height:1.06;letter-spacing:-.045em;margin:25px 0}
.project-intro{max-width:720px;font-size:18px;line-height:1.75;color:var(--muted)}
.project-resource{margin-top:48px;max-width:850px;padding:32px;background:#e6e4d7;border-top:2px solid var(--accent)}
.project-resource .tiny-label{color:var(--accent)}
.project-resource h2{font-size:28px;line-height:1.25;font-weight:500;letter-spacing:-.025em;margin:15px 0}
.project-resource p{max-width:650px;font-size:15px;line-height:1.8;color:var(--muted)}
.project-resource .button{margin-top:25px;line-height:1.5;font-weight:700;max-width:100%}
.project-return{display:inline-block;margin-top:35px;font-size:13px;font-weight:700}
.project-footer{display:flex;justify-content:space-between;gap:24px;padding-top:25px;padding-bottom:25px;border-top:1px solid var(--line);font-size:11px;line-height:1.6;color:var(--muted)}
@media(min-width:761px) and (max-width:1160px){.header-lab-logo{width:180px}.site-header{gap:16px}.site-nav{gap:13px;font-size:11px}.site-nav .nav-connect{gap:12px;padding:10px}}
@media(max-width:900px){.project-grid{gap:14px}.project-card{padding:22px}.project-card h3{font-size:22px}}
@media(max-width:760px){.projects{padding-top:55px;padding-bottom:55px}.projects-heading{display:block}.projects-heading>p{margin-top:20px;max-width:440px}.project-grid{grid-template-columns:1fr;gap:18px;margin-top:28px}.project-card{padding:25px}.project-number{margin-bottom:20px}.project-card h3{font-size:26px}.project-main{padding-top:45px;padding-bottom:50px}.project-intro{font-size:16px}.project-resource{padding:24px}.project-page .header-lab-logo{width:180px}.project-page .site-header{gap:12px}.project-page .brand{max-width:calc(100% - 110px)}.project-footer{flex-direction:column;gap:10px}}
@media(prefers-reduced-motion:reduce){.project-card{transition:none}}

/* Video presentations retain their native 16:9 ratio on every screen. */
.project-videos{margin-top:48px}.project-videos>h2{font-size:clamp(25px,3vw,34px);font-weight:500;letter-spacing:-.025em;line-height:1.25;margin-bottom:24px}
.project-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.project-video{border:1px solid var(--line);min-width:0}.project-video-player{aspect-ratio:16/9;background:var(--dark)}.project-video-player iframe{display:block;width:100%;height:100%;border:0}.project-video-copy{padding:24px}.project-video-copy .tiny-label{color:var(--accent)}.project-video-copy h3{font-size:22px;line-height:1.3;font-weight:500;margin:12px 0 20px}.project-video-copy>a{font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:4px}.project-video-copy>a:hover{color:var(--accent)}
@media(max-width:760px){.project-video-grid{grid-template-columns:1fr}.project-video-copy{padding:20px}}

.external-video-cover{aspect-ratio:16/9;background:var(--dark);color:var(--paper);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;font-size:13px;font-weight:700}.external-video-cover:hover{background:#3b483e}.external-play{display:flex;align-items:center;justify-content:center;width:62px;height:62px;border:1px solid #a6b09e;border-radius:50%;font-size:22px;padding-left:4px}.video-access-note{font-size:12px;line-height:1.7;color:var(--muted);margin-top:20px}

.project-video-copy .presentation-label{font-family:"Courier New",monospace;font-size:12px;line-height:1.5;font-weight:700;letter-spacing:.095em;color:var(--accent);margin:0}

.code-resource-actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-top:25px}.code-resource-actions .button{margin:0}.code-download{font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:4px;line-height:1.6}.project-resource .code-resource-help{font-size:12px;line-height:1.8;margin-top:24px}.code-download:hover{color:var(--accent)}

.code-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:48px}.code-module-grid .code-module{margin:0;display:flex;flex-direction:column;align-items:flex-start;max-width:none}.code-module .button{margin-top:auto}.code-module>p{margin-bottom:25px}.code-module-note{margin-top:25px;font-size:12px;line-height:1.8;color:var(--muted);max-width:850px}@media(max-width:760px){.code-module-grid{grid-template-columns:1fr}}

.workshop-poster{margin:40px 0 0;max-width:1200px}.workshop-poster img{display:block;width:100%;height:auto;border:1px solid var(--line)}.workshop-poster figcaption{margin-top:12px;font-size:12px;line-height:1.7;color:var(--muted)}

/* Allow the expanded navigation to wrap comfortably on midsize screens. */
@media(min-width:761px) and (max-width:1350px){.site-header:has(.site-nav){height:auto;min-height:104px;flex-wrap:wrap;gap:12px;padding:20px 0}.site-header .site-nav{width:100%;margin-left:0;justify-content:space-between;gap:12px;flex-wrap:wrap}.site-header .site-nav>a{white-space:nowrap}}

.project-card[hidden]{display:none}@media print{.project-card[hidden]{display:flex}}

/* Software logos share identical panels, with original proportions preserved. */
.software-group{margin-top:48px}.software-group h2{font-size:clamp(26px,3vw,36px);line-height:1.2;font-weight:500;letter-spacing:-.025em}.software-group>p{margin-top:12px;font-size:15px;line-height:1.7;color:var(--muted)}.software-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:24px}.software-card{min-width:0;border:1px solid var(--line);background:var(--paper)}.software-logo{position:relative;aspect-ratio:300/160;overflow:hidden;background:#fff}.software-logo img{position:absolute;max-width:none;object-fit:contain}.software-card h3{font-size:18px;font-weight:600;line-height:1.4;padding:20px;border-top:1px solid var(--line)}
@media(max-width:1000px){.software-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.software-grid{grid-template-columns:1fr}.software-group{margin-top:36px}}

/* Equipment photographs retain their full proportions in matching panels. */
.equipment-group .tiny-label{display:block;margin-bottom:14px;color:var(--accent)}.equipment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:26px}.equipment-card{min-width:0;border:1px solid var(--line)}.equipment-image{aspect-ratio:4/3;background:#fff;padding:20px;display:flex;align-items:center;justify-content:center}.equipment-image img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}.equipment-copy{padding:24px;border-top:1px solid var(--line)}.equipment-copy h3{font-size:21px;font-weight:600;line-height:1.3}.equipment-copy p{font-size:14px;line-height:1.75;color:var(--muted);margin-top:12px}@media(max-width:1000px){.equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.equipment-grid{grid-template-columns:1fr}.equipment-copy{padding:20px}}

/* The calculator occupies its own row before the visualization pairs. */
.code-module-grid .code-calculator{grid-column:1 / -1}

/* Visual previews for project and resource discovery. */
.project-art{width:calc(100% + 56px);margin:-28px -28px 26px;aspect-ratio:16/9;overflow:hidden;background:#e8e9df;border-bottom:1px solid var(--line)}.project-art>img{display:block;width:100%;height:100%;object-fit:cover}.project-art.resource-art{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:22px;padding:30px;background:#fff}.resource-art>img{object-fit:contain;min-width:0;max-height:160px}.module-preview{display:block;align-self:stretch;width:100%;aspect-ratio:16/9;overflow:hidden;margin-bottom:26px;background:#e8e9df;border:1px solid var(--line)}.module-preview img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}.code-calculator .module-preview{max-width:780px;aspect-ratio:16/8}.project-number{margin-bottom:18px}@media(max-width:900px){.project-art{width:calc(100% + 44px);margin:-22px -22px 24px}}@media(max-width:760px){.project-art{width:calc(100% + 50px);margin:-25px -25px 24px}.project-art.resource-art{gap:14px;padding:24px}.module-preview{margin-bottom:22px}.code-calculator .module-preview{aspect-ratio:16/9}}

.project-video-player video{display:block;width:100%;height:100%;object-fit:contain;background:#111}
