@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--bg:#f6f5f0;--ink:#202927;--muted:#67706b;--line:#d9ddd4;--accent:#c04d27;--dark:#202b27}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}a:focus-visible{outline:3px solid var(--accent);outline-offset:6px}header{height:96px;max-width:1440px;margin:auto;padding:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-family:Manrope,Arial,sans-serif;font-weight:750;font-size:16px;letter-spacing:-.4px}.brand span{color:#a2aaa2;margin:0 11px;font-weight:400}nav{display:flex;align-items:center;gap:32px;font-size:13px;font-weight:600}nav span{margin-left:7px}nav .contact{border:1px solid #b8beb6;border-radius:5px;padding:9px 16px}nav a:hover,.text-link:hover,footer a:hover{color:var(--accent)}main{max-width:1440px;margin:auto;padding:0 5%}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.8px;line-height:1.5}.eyebrow i,.availability i,.board-status i{display:inline-block;width:6px;height:6px;background:var(--accent);border-radius:50%;vertical-align:middle;margin-right:8px}.hero{display:grid;grid-template-columns:1fr 1fr;gap:7%;padding:75px 0 65px;align-items:center}.hero h1{font-family:Manrope,Arial,sans-serif;font-weight:500;font-size:clamp(54px,5.7vw,84px);letter-spacing:-5px;line-height:1.08;margin:27px 0 25px}h1 em{color:var(--accent);font-style:normal}.intro{font-size:17px;color:var(--muted);max-width:500px;line-height:1.7}.hero .intro{max-width:430px}.actions{display:flex;align-items:center;gap:28px;margin-top:28px}.button{display:inline-flex;align-items:center;justify-content:space-between;gap:35px;background:var(--ink);color:white;border-radius:4px;padding:13px 20px;font-size:13px;font-weight:600;transition:background .2s,transform .2s}.button:hover{background:var(--accent);transform:translateY(-2px)}.text-link{font-weight:600;font-size:13px;border-bottom:1px solid #b3bbb1;padding-bottom:5px}.availability{font-size:10px;color:var(--muted);margin-top:30px}.availability i{background:#687d63;width:5px;height:5px}.hero-board{background:var(--dark);padding:25px 28px 19px;border-radius:8px;box-shadow:0 17px 35px #1e2a2214;transform:rotate(1deg);color:#eef1e8}.board-top{display:flex;justify-content:space-between;font-family:monospace;font-size:9px;letter-spacing:1px;color:#c0c8bd}.hero-board>img{width:100%;height:300px;object-fit:contain;margin:25px 0 20px;border-radius:3px}.board-caption{display:flex;justify-content:space-between;align-items:center}.board-caption small{color:#b6c2b3;letter-spacing:1.6px;font-size:9px}.board-caption h2{font-family:Manrope,Arial,sans-serif;font-size:23px;font-weight:500;line-height:1.4;letter-spacing:-.8px;margin:9px 0 20px}.board-caption a{width:40px;height:40px;border:1px solid #6c7768;border-radius:50%;text-align:center;font-size:24px;line-height:38px}.board-caption a:hover{background:var(--accent)}.board-status{border-top:1px solid #52604e;padding-top:13px;font-family:monospace;font-size:9px;color:#c4ccbe}.board-status i{background:#c5a575;width:5px;height:5px}.discipline{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;font-size:10px;letter-spacing:1.7px}.discipline b{font-weight:400;color:#99a28f}.work{padding:78px 0 70px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:32px;gap:35px}h2{font-family:Manrope,Arial,sans-serif;font-size:34px;line-height:1.3;letter-spacing:-1.4px;font-weight:550}.section-heading h2{margin:12px 0 0}.section-heading>p{max-width:330px;color:var(--muted);font-size:13px;margin:0}.project-grid{display:grid;grid-template-columns:1fr 1fr;gap:38px 28px}.project-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px}.project-visual{position:relative;height:315px;background:#e7e9df;border:1px solid #daddd2;border-radius:6px;overflow:hidden;padding:25px;display:flex;align-items:center;justify-content:center;transition:transform .25s}.project-card:hover .project-visual{transform:translateY(-4px)}.project-visual>img{width:100%;height:100%;object-fit:contain}.hx711 .project-visual{background:#25302c}.hydration .project-visual{background:#e6e8df}.visual-tag{position:absolute;bottom:17px;left:17px;background:#f6f5f0;color:#404b42;border-radius:3px;padding:4px 9px;font-size:9px;letter-spacing:.4px}.round-arrow{position:absolute;right:17px;bottom:17px;background:#f6f5f0;width:30px;height:30px;border-radius:50%;text-align:center;line-height:30px;font-size:18px}.card-meta{padding:17px 0 0}.card-meta>span{font-family:monospace;color:var(--muted);font-size:9px}.card-meta h3{font-family:Manrope,Arial,sans-serif;font-size:24px;letter-spacing:-.8px;font-weight:600;margin:7px 0}.card-meta p{color:var(--muted);font-size:13px;margin:0}.signal{width:100%;padding:35px;background:#e8ebdf;color:#4d664e;border-radius:5px}.signal>span{font-family:monospace;letter-spacing:1.5px;font-size:10px}.signal svg{width:100%;display:block;margin:20px 0}.signal-path{display:flex;justify-content:space-between;font-family:monospace;font-size:12px}.signal-path b{font-weight:400;color:var(--accent)}.signal small{font-family:monospace;font-size:9px;color:#707d6b;display:block;margin-top:20px}.project-visual .signal{padding:10px}.project-visual .signal small{margin-bottom:15px}.about-strip{border-top:1px solid var(--line);padding:65px 0;display:grid;grid-template-columns:1fr 1fr;column-gap:55px}.about-strip>.eyebrow{grid-column:1/-1}.about-strip h2{font-size:31px}.about-strip>div:last-child{padding-top:14px}.about-strip p{font-size:14px;color:var(--muted);margin-bottom:25px}.connect{background:#e8ebdf;text-align:center;padding:55px 20px;margin:0 0 65px;border-radius:6px}.connect h2{font-size:38px;margin:15px 0}.connect p{max-width:530px;margin:0 auto 25px;font-size:14px;color:var(--muted)}footer{max-width:1440px;margin:auto;border-top:1px solid var(--line);padding:35px 5%;display:flex;justify-content:space-between;align-items:center;gap:25px}footer p,footer small{font-size:10px;color:var(--muted)}footer>div:nth-child(2){display:flex;gap:22px;font-size:11px}.muted{color:#7a8277}.case-head{padding:45px 0 35px}.back{display:block;font-size:12px;color:var(--muted);margin-bottom:44px}.case-head h1,.resume-head h1{font-family:Manrope,Arial,sans-serif;font-size:clamp(42px,5vw,68px);font-weight:500;line-height:1.2;letter-spacing:-3px;margin:20px 0}.case-head .intro{max-width:700px}.case-meta{display:grid;grid-template-columns:1fr 1fr 1fr;gap:35px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin-top:35px}.case-meta small{font-size:9px;letter-spacing:1.5px;color:var(--muted)}.case-meta p{font-size:12px;max-width:280px;margin:8px 0}figure{margin:15px 0 45px;background:#e9ebe2;border:1px solid var(--line);border-radius:5px;overflow:hidden}figure img{width:100%;max-height:600px;object-fit:contain;display:block;padding:30px}figcaption{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding:14px 20px}figcaption span{white-space:nowrap;color:var(--accent);margin-left:12px}.case-section{display:grid;grid-template-columns:1fr 3fr;gap:30px;padding:40px 0;border-top:1px solid var(--line)}.case-section>.eyebrow{padding-top:10px;color:var(--muted)}.case-section h2{margin:0 0 22px;font-size:32px}.case-section p,.case-section li{color:#566159;font-size:15px;max-width:760px}.decision{padding:16px 0;border-bottom:1px solid var(--line)}.decision:first-of-type{padding-top:0}.decision:last-child{border-bottom:0}.decision h3{font-size:17px;font-weight:550;margin:0 0 10px}.decision p{margin:0}.case-section li{padding:0 0 12px 5px}.case-bottom{padding:35px 0 60px;display:flex;justify-content:space-between}.about-page{padding:80px 0 60px;display:grid;grid-template-columns:1fr 1fr;gap:25px 60px}.about-page>.eyebrow{grid-column:1/-1}.about-page h1{font-family:Manrope,Arial,sans-serif;font-weight:500;font-size:70px;letter-spacing:-4px;line-height:1.2;margin:15px 0}.about-body p{font-size:15px;color:var(--muted);margin-bottom:22px}.about-body .intro{font-size:21px;color:var(--ink)}.skills{border-top:1px solid var(--line);padding:40px 0 70px;display:grid;grid-template-columns:1fr 1fr;gap:20px 60px}.skills h3{font-size:16px;font-weight:600}.skills p{font-size:14px;color:var(--muted)}.resume-head{padding:65px 0 40px}.resume-viewer{width:100%;height:1000px;border:1px solid var(--line);margin-bottom:60px;background:white}::selection{background:#ddc3a9}
@media(min-width:1500px){.hero h1{font-size:84px}.hero-board>img{height:340px}}
@media(max-width:900px){header{height:auto;min-height:85px;gap:18px;flex-wrap:wrap;padding-top:20px;padding-bottom:20px}nav{gap:20px}.hero{gap:5%;padding-top:50px}.hero h1{letter-spacing:-3px;font-size:60px}.hero-board{padding:20px}.hero-board>img{height:230px}.board-caption h2{font-size:19px}.availability{max-width:220px}.section-heading h2{font-size:29px}.project-visual{height:260px}.case-section{grid-template-columns:1fr 3fr}.about-page h1{font-size:58px}.discipline{font-size:8px;letter-spacing:1px}}
@media(max-width:640px){header{padding:20px 6%}.brand{font-size:15px}nav{width:100%;justify-content:space-between;gap:10px;font-size:11px}nav .contact{padding:6px 10px}main{padding:0 6%}.hero{grid-template-columns:1fr;padding:40px 0;gap:35px}.hero h1{font-size:62px;letter-spacing:-3.5px;margin:22px 0}.hero h1 br:last-child{display:none}.hero .intro{font-size:16px}.hero-board{transform:none}.hero-board>img{height:260px}.board-caption h2{font-size:23px}.availability{max-width:none}.discipline{display:grid;grid-template-columns:1fr 1fr;gap:13px}.discipline b{display:none}.work{padding:45px 0}.section-heading{display:block}.section-heading>p{margin-top:18px}.project-grid{grid-template-columns:1fr;gap:30px}.project-card:last-child{display:block}.project-visual{height:290px}.about-strip{display:block;padding:40px 0}.about-strip h2{font-size:29px}.about-strip>div:last-child{padding-top:0}.connect{padding:40px 20px;margin-bottom:40px}.connect h2{font-size:31px}footer{padding:30px 6%;align-items:flex-start;flex-wrap:wrap}footer>div:nth-child(2){flex-wrap:wrap}footer small{width:100%}.case-head{padding-top:25px}.back{margin-bottom:30px}.case-head h1{font-size:44px;letter-spacing:-2px}.case-meta{grid-template-columns:1fr;gap:14px}.case-meta p{max-width:none}.case-section{grid-template-columns:1fr;gap:16px;padding:30px 0}.case-section h2{font-size:28px}.case-section p,.case-section li{font-size:15px}figure img{padding:12px}figcaption{font-size:10px}.about-page{display:block;padding:45px 0}.about-page h1{font-size:58px;letter-spacing:-3px}.skills{grid-template-columns:1fr;padding-bottom:40px}.resume-viewer{height:650px}.resume-head h1{font-size:54px}.actions{gap:20px}.signal{padding:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.icon{display:inline-block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;vertical-align:-2px}.board-caption a .icon{width:21px;height:21px;vertical-align:-2px}.round-arrow .icon{width:16px;height:16px;vertical-align:-2px}
.icon{display:inline-block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;vertical-align:-2px}.board-caption a .icon{width:21px;height:21px;vertical-align:-2px}.round-arrow .icon{width:16px;height:16px;vertical-align:-2px}
nav a[aria-current=page]{color:var(--accent)}button,select,input{font:inherit}button{cursor:pointer;border:0}.coursework-head,.contact-page{padding:65px 0 40px}.coursework-head h1,.contact-page h1{font-family:Manrope,Arial,sans-serif;font-size:clamp(42px,5vw,68px);font-weight:500;line-height:1.18;letter-spacing:-3px;margin:20px 0}.course-stats{display:flex;gap:35px;font-size:12px;color:var(--muted);margin-top:28px}.course-stats b{font-size:22px;color:var(--ink);font-weight:500;margin-right:8px}.course-filters{display:flex;gap:24px;align-items:end;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0}.course-filters label{display:block;font-size:10px;letter-spacing:1px;text-transform:uppercase;margin-bottom:7px;color:var(--muted)}.course-filters select{background:var(--bg);border:1px solid #aeb7aa;border-radius:4px;padding:9px 35px 9px 12px;font-size:13px;color:var(--ink)}.course-filters p{margin:0 0 8px auto;font-size:12px;color:var(--muted)}.course-row{display:grid;grid-template-columns:160px 1fr 150px;gap:35px;padding:30px 0;border-bottom:1px solid var(--line)}[hidden]{display:none!important}.course-code>span:first-child{font-family:monospace;font-size:14px}.course-code small{display:block;font-size:11px;color:var(--muted);margin:7px 0 12px}.course-status{display:inline-block;font-size:10px;padding:3px 8px;border-radius:3px;background:#e4e8de;color:#4d604a}.course-status.in-progress{background:#f0e2d4;color:#944b27}.course-row h2{font-size:21px;letter-spacing:-.5px;margin:0}.course-row p{font-size:14px;color:var(--muted);margin:10px 0 14px;max-width:720px}.course-row .text-link{font-size:11px}.course-group{font-size:10px;color:var(--muted);text-align:right;padding-top:5px}.course-note{font-size:11px;color:var(--muted);margin:25px 0 60px}.coursework-teaser{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:40px 0 60px;border-top:1px solid var(--line)}.coursework-teaser h2{margin:13px 0}.coursework-teaser p{font-size:14px;color:var(--muted)}.contact-page{max-width:900px;padding-bottom:80px}.contact-page .intro{max-width:600px}.email-panel{padding:28px;margin:35px 0 22px;border:1px solid var(--line);background:#e8ebdf;border-radius:5px}.email-panel label{font-size:10px;letter-spacing:1.5px}.email-copy{display:flex;gap:20px;margin-top:13px}.email-copy input{min-width:0;flex:1;border:0;background:transparent;color:var(--ink);font-size:23px;padding:0}.email-copy input:focus{outline:2px solid var(--accent);outline-offset:4px}.email-panel #copy-status{font-size:12px;color:var(--muted);min-height:20px}.email-panel .actions{margin-top:20px}.icon{display:inline-block;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;vertical-align:-2px}.board-caption a .icon{width:21px;height:21px}.round-arrow .icon{width:16px;height:16px}
@media(max-width:900px){nav{gap:18px}.course-row{grid-template-columns:130px 1fr;gap:25px}.course-group{display:none}.email-copy input{font-size:20px}}
@media(max-width:640px){nav{flex-wrap:wrap;justify-content:flex-start;gap:12px 19px}.course-filters{flex-wrap:wrap;gap:15px}.course-filters p{width:100%;margin:0}.course-filters select{max-width:100%;width:100%}.course-filters>div{flex:1;min-width:140px}.course-row{grid-template-columns:1fr;gap:15px}.course-code{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.course-code small{margin:0}.course-code .course-status{margin-left:auto}.course-row h2{font-size:21px}.coursework-head,.contact-page{padding-top:40px}.coursework-head h1,.contact-page h1{letter-spacing:-2px}.course-stats{gap:20px;font-size:10px}.course-stats b{font-size:20px}.coursework-teaser{display:block}.coursework-teaser .button{margin-top:15px}.email-panel{padding:20px}.email-copy{flex-wrap:wrap}.email-copy input{flex-basis:100%;font-size:19px}.email-panel .actions{align-items:flex-start;flex-direction:column;gap:14px}.contact-page{padding-bottom:50px}}
.theme-switch{background:transparent;border:1px solid var(--line);border-radius:4px;padding:8px 10px;color:var(--muted);font-family:monospace;font-size:10px;white-space:nowrap}.theme-switch:hover{color:var(--accent);border-color:var(--accent)}button:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
html[data-theme=pcb]{color-scheme:dark;--bg:#102b24;--ink:#eeeede;--muted:#b4c5b8;--line:#355548;--accent:#e4bd76;--dark:#091f19}
html[data-theme=pcb] body{background-image:linear-gradient(#64856d0a 1px,transparent 1px),linear-gradient(90deg,#64856d0a 1px,transparent 1px);background-size:32px 32px}
html[data-theme=pcb] header,html[data-theme=pcb] footer{background:#102b24ed}
html[data-theme=pcb] .brand span{color:#c58d59}
html[data-theme=pcb] .hero-board{box-shadow:0 20px 45px #0003;border:1px solid #4c6a52;color:#eeeede}
html[data-theme=pcb] .hero-board:before,html[data-theme=pcb] .hero-board:after{content:'';position:absolute;width:7px;height:7px;border:2px solid #bd9b61;border-radius:50%;top:9px;background:#102b24}
html[data-theme=pcb] .hero-board:before{left:9px}html[data-theme=pcb] .hero-board:after{right:9px}
html[data-theme=pcb] .board-caption a,html[data-theme=pcb] .board-status{border-color:#42634e}
html[data-theme=pcb] .board-caption a:hover{color:#102b24}
html[data-theme=pcb] .button{background:#d8b471;color:#102b24;border:1px solid #e8ce91}
html[data-theme=pcb] .button:hover{background:#f0d49d}
html[data-theme=pcb] .text-link{border-color:#688466}
html[data-theme=pcb] .discipline{border-top-color:#887648;border-bottom-color:#355548}
html[data-theme=pcb] .discipline b{color:#c18d59}
html[data-theme=pcb] .availability i{background:#a9cf8d}
html[data-theme=pcb] .project-visual,html[data-theme=pcb] figure{background:#203d31;border-color:#48624d}
html[data-theme=pcb] .hx711 .project-visual{background:#0b211b}
html[data-theme=pcb] .hydration .project-visual{background:#dce2cf}
html[data-theme=pcb] .visual-tag,html[data-theme=pcb] .round-arrow{background:#e5d6ac;color:#173227}
html[data-theme=pcb] .signal{background:#193b2d;color:#d9bc76}
html[data-theme=pcb] .signal small{color:#b4c5b8}
html[data-theme=pcb] .connect{background:#1c3d2f;border:1px solid #476a4d}
html[data-theme=pcb] .case-section p,html[data-theme=pcb] .case-section li{color:#b4c5b8}
html[data-theme=pcb] .course-status{background:#294a35;color:#c6dec0}
html[data-theme=pcb] .course-status.in-progress{background:#51432a;color:#f2d195}
html[data-theme=pcb] .course-filters select{border-color:#718568}
html[data-theme=pcb] .email-panel{background:#1c3d2f;border-color:#4e6a4c}
html[data-theme=pcb] .muted{color:#b4c5b8}
html[data-theme=pcb] .resume-viewer{background:#e8e8df}
@media(max-width:1100px){nav{gap:17px}}
@media(max-width:760px){header{flex-wrap:wrap;height:auto;padding-top:20px;padding-bottom:20px}nav{width:100%;flex-wrap:wrap;gap:12px 18px}.theme-switch{font-size:9px;padding:6px 9px}}
/* Revision 3: solder-mask green, copper routes, red signal accents. */
html[data-theme=pcb]{color-scheme:light;--bg:#cddac3;--ink:#183c28;--muted:#46614b;--line:#9aac8c;--accent:#b52f35;--dark:#3e6d47}
html[data-theme=pcb] body{background-color:var(--bg);background-image:url('/assets/pcb-traces.svg');background-size:600px 500px}
html[data-theme=pcb] header,html[data-theme=pcb] footer{background:#cddac3f5;border-color:#9aab88}
html[data-theme=pcb] .brand span{color:#9b7337}
html[data-theme=pcb] .hero{position:relative;margin:36px -2% 30px;padding:52px 3%;border:2px solid #8e9e70;border-radius:22px;background:#d4dfcaed;gap:6%;outline:1px solid #b19a62;outline-offset:-9px;isolation:isolate}
html[data-theme=pcb] .hero:before,html[data-theme=pcb] .hero:after{content:'';position:absolute;width:9px;height:9px;background:#76906b;border:3px solid #bd9a50;border-radius:50%;box-shadow:0 0 0 1px #8e743c;z-index:-1}
html[data-theme=pcb] .hero:before{top:15px;left:15px}html[data-theme=pcb] .hero:after{right:15px;bottom:15px}
html[data-theme=pcb] .hero-copy>.eyebrow{font-family:monospace;color:#416345;letter-spacing:1.1px}
html[data-theme=pcb] .hero h1{font-size:clamp(54px,5.2vw,78px)}
html[data-theme=pcb] .hero h1 em{color:#b52f35}
html[data-theme=pcb] .hero-board{position:relative;transform:none;border:2px solid #b9a05e;background-color:#3e6d47;background-image:linear-gradient(90deg,transparent 96%,#d4b46b44 96%,#d4b46b44 97%,transparent 97%);box-shadow:0 14px 26px #2a4a2525;color:#f2f3df;border-radius:12px;padding:28px 25px 19px;outline:1px solid #31573c;outline-offset:4px}
html[data-theme=pcb] .hero-board:before,html[data-theme=pcb] .hero-board:after{width:9px;height:9px;top:10px;border:3px solid #dcbd70;background:#233f2c}
html[data-theme=pcb] .hero-board:before{left:10px}html[data-theme=pcb] .hero-board:after{right:10px}
html[data-theme=pcb] .board-top{color:#f2e3ab;letter-spacing:1.4px;font-size:9px;padding:0 4px}
html[data-theme=pcb] .hero-board>img{background:#1f3029;border:1px solid #a6b58b;padding:6px;box-shadow:0 0 0 5px #315d3d}
html[data-theme=pcb] .board-caption small{color:#e6d39b}
html[data-theme=pcb] .board-caption a{border-color:#e4c67d;background:#b52f35;color:#fff7e9}
html[data-theme=pcb] .board-caption a:hover{background:#8f2028;color:#fff7e9}
html[data-theme=pcb] .board-status{color:#e2e9d4;border-color:#98af7b}
html[data-theme=pcb] .board-status i{background:#ee776b;box-shadow:0 0 0 3px #ee776b25}
html[data-theme=pcb] .button{background:#b52f35;color:#fff8ed;border:1px solid #92232a;box-shadow:3px 3px 0 #99834c}
html[data-theme=pcb] .button:hover{background:#94232b;color:#fff8ed}
html[data-theme=pcb] .text-link{border-color:#8e9b73}
html[data-theme=pcb] nav .contact{border-color:#a66b55}
html[data-theme=pcb] .availability i{background:#b52f35}
html[data-theme=pcb] .discipline{border-color:#93814e;border-bottom:3px double #a39361;padding:22px 8px;font-family:monospace;background:#cddac3df}
html[data-theme=pcb] .discipline b{color:#b52f35}
html[data-theme=pcb] .project-visual,html[data-theme=pcb] figure{background:#b7cbaa;border-color:#859d76}
html[data-theme=pcb] .hx711 .project-visual{background:#3e6d47;border-color:#9d884c}
html[data-theme=pcb] .hydration .project-visual{background:#e0e6d7}
html[data-theme=pcb] .visual-tag{background:#ede5c9;color:#28462d;border-left:3px solid #b52f35}
html[data-theme=pcb] .round-arrow{background:#b52f35;color:#fff8ed}
html[data-theme=pcb] .signal{background:#bbceb0;color:#9e3132}
html[data-theme=pcb] .signal small{color:#46614b}
html[data-theme=pcb] .connect{background:#bdcfb1;border:1px solid #8c9f76;border-top:4px solid #b52f35}
html[data-theme=pcb] .case-section p,html[data-theme=pcb] .case-section li{color:#46614b}
html[data-theme=pcb] .course-status{background:#b6c9a8;color:#284a30}
html[data-theme=pcb] .course-status.in-progress{background:#e5c6b6;color:#882a30}
html[data-theme=pcb] .course-filters select{border-color:#7f976f;background:#dce5d2}
html[data-theme=pcb] .email-panel{background:#bdcfb1;border-color:#8a9f75}
html[data-theme=pcb] .muted{color:#46614b}
html[data-theme=pcb] .theme-switch{border-color:#869b74;color:#31543b;background:#dce5d2}
html[data-theme=pcb] .work,html[data-theme=pcb] .about-strip,html[data-theme=pcb] .coursework-teaser{background:#cddac3dd}
.hero h1 .hero-linebreak{display:inline}
@media(max-width:640px){html[data-theme=pcb] .hero{margin:22px -2% 24px;padding:34px 5%;border-radius:16px;gap:32px}html[data-theme=pcb] .hero h1{font-size:56px;letter-spacing:-3.3px}html[data-theme=pcb] .hero h1 .hero-linebreak{display:none}html[data-theme=pcb] .hero-board{padding:28px 18px 18px}html[data-theme=pcb] .board-top{font-size:8px;letter-spacing:.6px}.hero h1 .hero-linebreak{display:none}}
.project-grid.four-projects>.project-card:last-child{grid-column:auto;display:block}.project-grid.four-projects .emg .project-visual{height:315px}.inpo .project-visual{background:#dbe5ce;padding:20px 14px 45px}html[data-theme=pcb] .inpo .project-visual{background:#dbe5ce}.inpo-figure img{max-height:480px}.inpo-figure{background:#dbe5ce}html[data-theme=pcb] .inpo-figure{background:#dbe5ce}
@media(max-width:900px){.project-grid.four-projects .emg .project-visual{height:260px}}
@media(max-width:640px){.project-grid.four-projects .emg .project-visual{height:290px}}
.about-portrait{display:block;width:280px;max-width:100%;height:340px;object-fit:cover;object-position:50% 42%;border-radius:8px;margin-top:30px;border:1px solid var(--line)}.about-intro{display:flex;align-items:center;gap:22px}.about-avatar{width:105px;height:105px;object-fit:cover;object-position:50% 35%;border-radius:50%;flex-shrink:0;border:2px solid #a08a50}html[data-theme=pcb] .about-portrait{border:2px solid #a08a50;box-shadow:5px 5px 0 #3e6d4726}.about-intro h2{font-size:27px}
@media(max-width:900px){.about-intro{align-items:flex-start;flex-direction:column;gap:4px}.about-intro h2{font-size:27px}}
@media(max-width:640px){.about-portrait{width:245px;height:300px;margin:25px 0 30px}.about-intro{flex-direction:row;align-items:center;gap:16px}.about-avatar{width:80px;height:80px}.about-intro h2{font-size:24px}}
/* Revision 9: portrait as a beveled component, clearer skills heading. */
.about-avatar-frame{display:block;width:105px;height:105px;overflow:hidden;border-radius:50%;flex-shrink:0;border:2px solid #9c693f;background:#3e6d47}
.about-avatar-frame .about-avatar{width:100%;height:100%;border:0;border-radius:0;object-fit:cover;object-position:50% 57%;transform:translateX(-3%) scale(1.14);transform-origin:53% 53%}
.portrait-chip{position:relative;isolation:isolate;width:310px;max-width:100%;margin-top:30px;padding:18px 26px 12px;background:#263e30;clip-path:polygon(22px 0,calc(100% - 22px) 0,100% 22px,100% calc(100% - 22px),calc(100% - 22px) 100%,22px 100%,0 calc(100% - 22px),0 22px)}
.portrait-chip:before{content:'';position:absolute;inset:30px 7px 44px;z-index:-1;background:repeating-linear-gradient(to bottom,#c28e53 0,#c28e53 10px,transparent 10px,transparent 23px)}
.portrait-window{height:320px;overflow:hidden;clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);background:#d5d9c4}
.portrait-chip .about-portrait,html[data-theme=pcb] .portrait-chip .about-portrait{display:block;width:100%;height:100%;max-width:none;margin:0;border:0;box-shadow:none;border-radius:0;object-fit:cover;object-position:50% 53%;transform:translateX(-2%) scale(1.06)}
.portrait-chip-label{display:flex;gap:9px;align-items:center;font-family:monospace;font-size:11px;line-height:1.6;letter-spacing:.8px;color:#f2dfb8;margin-top:12px}
.portrait-chip-label span{display:inline-block;width:7px;height:7px;background:#c4473e;border-radius:50%;box-shadow:0 0 0 2px #b775492b}
.skills-heading{grid-column:1/-1}.skills-heading h2{font-size:36px;line-height:1.25;margin:10px 0 5px;letter-spacing:-1px}.skills-heading>.eyebrow{font-size:11px}
@media(max-width:640px){.about-avatar-frame{width:80px;height:80px}.portrait-chip{width:285px;margin:25px 0 30px;padding:16px 24px 12px}.portrait-window{height:295px}.portrait-chip-label{font-size:10px}.skills-heading h2{font-size:30px}}

/* Project presentation photography. */
.inpo .project-visual{padding:0}.inpo .project-visual>img{width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.presentation-photo{background:var(--bg)}.presentation-photo img{display:block;width:100%;height:auto;max-height:720px;object-fit:contain}.presentation-photo figcaption{line-height:1.6}

/* Focus the INPO card on the mechanism in the supplied photograph. */
.inpo .project-visual{overflow:hidden}.inpo .project-visual>img{object-position:100% 64%;transform:scale(1.75);transform-origin:100% 64%}
.case-bottom{flex-wrap:wrap;gap:24px}.case-bottom .next-project{margin-left:auto;min-width:260px;gap:36px;line-height:1.3}.next-project small{display:block;font-size:12px;font-weight:450;letter-spacing:0;margin-top:6px;opacity:.88}@media(max-width:600px){.case-bottom .next-project{width:100%;margin-left:0;justify-content:space-between}}
