*{box-sizing:border-box}
:root{--bg:#0b0b0c;--paper:#f4eee6;--muted:#aaa19a;--orange:#ff9a52;--orange-soft:#ffb477;--line:#ff9a5238;--panel:#171513ed}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:var(--bg);color:var(--paper);font-family:"Space Grotesk","Helvetica Neue",Arial,sans-serif;min-height:100vh}
button,a{font:inherit}
a{color:inherit;text-decoration:none}
.site-bg{position:fixed;inset:0;z-index:-1;overflow:hidden;background:#090a0b}
.site-bg img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center;opacity:.58;filter:saturate(.98) brightness(.86)}
.site-bg canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.bg-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,10,11,.90),rgba(9,10,11,.78) 34%,rgba(9,10,11,.59) 68%,rgba(9,10,11,.53)),linear-gradient(0deg,rgba(9,10,11,.58),rgba(9,10,11,.07) 48%,rgba(9,10,11,.18))}
.site-header{position:relative;top:auto;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:17px clamp(20px,5vw,76px);border-bottom:1px solid #ff9a5226;background:#0a0b0be8;backdrop-filter:blur(16px)}
.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:var(--orange);color:#211109;font-size:20px;font-weight:800}.brand strong{display:block;font-size:14px;letter-spacing:-.03em}.brand small{display:block;margin-top:4px;font:9px "DM Mono",monospace;letter-spacing:.13em;color:var(--muted)}
nav{display:flex;gap:4px;flex-wrap:wrap}.nav-link,.back-link{font:10px "DM Mono",monospace;color:#c0b6ac;padding:10px 12px;border:1px solid transparent;border-radius:5px;background:transparent;cursor:pointer}.nav-link:hover,.nav-link.active{color:var(--orange-soft);border-color:#ff9a5255;background:#ff9a5214}
.system-status{font:9px "DM Mono",monospace;color:var(--muted);white-space:nowrap}.system-status i{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:var(--orange);box-shadow:0 0 10px var(--orange)}
.container{width:min(1120px,90%);margin:auto;padding:68px 0 80px;min-height:75vh}
.page{display:none;animation:pageIn .35s ease both}.page.active{display:block}@keyframes pageIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.display{font-family:"Space Grotesk","Helvetica Neue",Arial,sans-serif;font-weight:700;letter-spacing:-.075em;line-height:.98}.display em{font-style:normal;color:var(--orange)}
.eyebrow{font:10px "DM Mono",monospace;letter-spacing:.18em;color:var(--orange);text-transform:uppercase}
.hero-grid{display:grid;grid-template-columns:1.45fr .55fr;gap:42px;align-items:end;margin-top:27px}
.hero-title{font-size:clamp(58px,8.4vw,100px);margin:0;text-shadow:0 0 36px #ff8a3218;font-weight:700;letter-spacing:-.085em;line-height:.91}
.hero-copy,.page-intro{max-width:580px;margin:27px 0 0;color:var(--muted);font-size:16px;line-height:1.85}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.button{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:5px;font:10px "DM Mono",monospace;transition:.22s}
.button.primary{background:var(--orange);color:#211109;font-weight:500;border:1px solid var(--orange)}.button.primary:hover{background:#ffb77e;box-shadow:0 0 24px #ff8a3260;transform:translateY(-2px)}
.button.secondary{border:1px solid #b77a535f;color:#f2dfce;background:#1713108c}.button.secondary:hover{border-color:var(--orange);color:var(--orange-soft)}
.status-card,.info-card{background:#151311e8;border:1px solid #a65c323f;border-radius:9px;padding:20px;backdrop-filter:blur(8px)}
.status-title{font-size:37px;margin:24px 0}.rule,.line{height:1px;background:linear-gradient(90deg,#ff9a5260,transparent);margin:20px 0}
.status-row{display:flex;justify-content:space-between;gap:15px;margin-top:13px;font:9px "DM Mono",monospace;color:var(--muted)}.status-row b{color:#e5c6ae;font-weight:400}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:68px 0 20px}.section-heading h2{font-size:clamp(30px,4vw,46px);margin:9px 0 0}.text-link{font:10px "DM Mono",monospace;color:var(--orange)}
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.project-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:180px;padding:19px;text-align:left;color:var(--paper);background:linear-gradient(135deg,#171513f2,#211812ed);border:1px solid #d17a473f;border-radius:9px;cursor:pointer;overflow:hidden;transition:transform .3s,border-color .3s,box-shadow .3s}
.project-card:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 15%,#ff9a5220,transparent 65%);opacity:0;transition:.3s;pointer-events:none}.project-card:hover,.project-card:focus-visible{transform:translateY(-5px);border-color:var(--orange);box-shadow:0 0 28px #ff792e35;outline:none}.project-card:hover:after{opacity:1}
.card-meta,.card-open,.info-card>span{font:9px "DM Mono",monospace;color:var(--orange);letter-spacing:.08em;position:relative;z-index:1}.project-card strong{font-size:25px;margin-top:20px;position:relative;z-index:1}.project-card p{font-size:12px;color:var(--muted);line-height:1.6;margin:8px 0 18px;position:relative;z-index:1}.card-open{margin-top:auto}
.philosophy{display:grid;grid-template-columns:1fr 1fr;gap:35px;margin-top:68px;padding-top:30px;border-top:1px solid var(--line)}.philosophy h2{font-size:48px;margin:14px 0}.philosophy-copy{align-self:center;color:var(--muted);font-size:14px;line-height:1.8}.philosophy-copy p{margin:0 0 12px}
.page-title{font-size:clamp(48px,7vw,78px);margin:18px 0 0}.page-intro{margin-top:20px}.back-link{margin-bottom:36px;border-color:#b77a535f}.back-link:hover{border-color:var(--orange);color:var(--orange)}
.archive-grid{margin-top:38px}.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;margin-top:38px}.info-card h3{font-size:25px;margin:18px 0 9px}.info-card p{font-size:13px;line-height:1.7;color:var(--muted)}
.detail-stack{margin-top:35px;max-width:760px;padding:24px;background:#151311ed;border:1px solid var(--line);border-radius:10px;color:var(--muted);line-height:1.8}
footer{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:22px clamp(20px,5vw,76px);border-top:1px solid #ff9a5226;background:#0a0b0be8;color:var(--muted);font:9px "DM Mono",monospace}
@media(max-width:760px){.site-header{align-items:flex-start;flex-wrap:wrap}.site-header nav{order:3;width:100%}.system-status{margin-left:auto}.hero-grid{grid-template-columns:1fr}.status-card{max-width:390px}.project-grid{grid-template-columns:repeat(2,1fr)}.container{padding-top:48px}.philosophy{grid-template-columns:1fr}.philosophy h2{font-size:42px}}
@media(max-width:480px){.brand strong{font-size:12px}.brand small{font-size:8px}.project-grid,.info-grid{grid-template-columns:1fr}.hero-title{font-size:58px}.section-heading{align-items:flex-start}.status-card{display:none}footer{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* ---------------------------------------------------------
   V1.1 — Wide editorial composition
   The PCB is the canvas; content no longer sits in a box.
   --------------------------------------------------------- */
.container{
  width:100%;
  max-width:none;
  margin:0;
  padding:clamp(48px,5vw,82px) clamp(26px,5.2vw,104px) 90px;
}
.hero-grid{
  display:block;
  min-height:clamp(510px,47vw,690px);
  margin-top:28px;
}
.hero-grid>div:first-child{
  width:min(680px,43vw);
  max-width:680px;
  padding-top:8px;
}
.hero-title{
  font-size:clamp(62px,6.4vw,112px);
  max-width:760px;
}
.hero-copy{
  max-width:540px;
  font-size:clamp(15px,1.12vw,18px);
}
.status-card{display:none}
.section-heading{
  margin-top:12px;
  margin-bottom:25px;
}
.project-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.project-card{
  min-height:205px;
  padding:22px;
}
.project-card strong{font-size:clamp(23px,2vw,31px)}
.philosophy{
  margin-top:82px;
  gap:clamp(35px,8vw,140px);
}
.archive-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.info-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.page-title{max-width:1000px}
.page-intro{max-width:760px}
footer{padding-left:5.2vw;padding-right:5.2vw}

/* Let the component artwork breathe beside the hero. */
@media(min-width:1100px){
  .hero-grid>div:first-child{width:min(650px,39vw)}
  .hero-title{font-size:clamp(66px,6.3vw,112px)}
}
@media(max-width:900px){
  .container{padding:48px 28px 70px}
  .hero-grid{min-height:520px}
  .hero-grid>div:first-child{width:min(620px,72vw)}
  .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .philosophy{gap:30px}
}
@media(max-width:600px){
  .container{padding:38px 20px 58px}
  .hero-grid{min-height:500px}
  .hero-grid>div:first-child{width:100%;max-width:540px}
  .hero-title{font-size:clamp(53px,13vw,76px)}
  .hero-copy{font-size:14px;max-width:460px}
  .project-grid,.archive-grid,.info-grid{grid-template-columns:1fr}
  .project-card{min-height:165px}
  .section-heading{margin-top:45px;align-items:flex-end}
  .philosophy{grid-template-columns:1fr;margin-top:55px}
  .philosophy h2{font-size:42px}
  .site-bg img{object-position:62% center}
}


/* V1.2 HARD OVERRIDES — full-width composition */
.hero-grid{
  display:block !important;
  min-height:clamp(570px,53vw,760px) !important;
  position:relative;
}
.hero-grid > div:first-child{
  width:min(670px,43vw) !important;
  max-width:670px !important;
  position:relative;
  z-index:2;
}
.hero-grid > .status-card{
  display:none !important;
}
.hero-title{
  font-size:clamp(68px,7vw,116px) !important;
  line-height:.94 !important;
  max-width:760px;
}
.hero-copy{
  max-width:550px !important;
  font-size:clamp(15px,1.15vw,18px) !important;
}
.section-heading{
  margin-top:0 !important;
  margin-bottom:26px !important;
}
.project-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:17px !important;
}
.project-card{
  min-height:215px !important;
  padding:22px !important;
}
.project-card strong{
  font-size:clamp(24px,2.1vw,32px) !important;
}
.philosophy{
  margin-top:88px !important;
}
@media(max-width:900px){
  .hero-grid{min-height:560px !important}
  .hero-grid > div:first-child{width:min(650px,78vw) !important}
  .project-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media(max-width:600px){
  .hero-grid{min-height:520px !important}
  .hero-grid > div:first-child{width:100% !important}
  .hero-title{font-size:clamp(54px,13vw,78px) !important}
  .project-grid{grid-template-columns:1fr !important}
}


/* V1.5 — editorial typography inspired by earthtojake.com */
body{
  font-family:"Space Grotesk","Helvetica Neue",Arial,sans-serif;
  font-feature-settings:"ss01" 1,"cv11" 1;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.display{
  font-family:"Space Grotesk","Helvetica Neue",Arial,sans-serif;
  font-weight:700;
  letter-spacing:-.075em;
}
.hero-title{
  font-size:clamp(64px,7.15vw,118px);
  line-height:.91;
  letter-spacing:-.09em;
  font-weight:700;
}
.hero-copy,.page-intro,.project-card p,.info-card p,.philosophy-copy{
  font-family:"Space Grotesk","Helvetica Neue",Arial,sans-serif;
  letter-spacing:-.025em;
}
.section-heading h2{letter-spacing:-.075em;font-weight:700}
.project-card strong,.info-card h3{letter-spacing:-.07em;font-weight:700}
@media(max-width:600px){
  .hero-title{font-size:clamp(55px,13.5vw,80px);letter-spacing:-.085em}
}


/* V1.7 — engineering case-study pages */
.case-header{max-width:980px;margin:24px 0 58px}
.case-tagline{font-size:clamp(27px,4vw,43px);color:var(--orange);margin:24px 0 16px;line-height:1.08}
.case-status{display:inline-flex;align-items:center;margin:22px 0 18px;padding:9px 12px;border:1px solid rgba(255,160,85,.42);color:var(--orange);font:11px/1.3 "DM Mono",monospace;letter-spacing:.08em}
.case-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:clamp(34px,6vw,88px);align-items:start}
.case-copy{min-width:0}
.case-section{padding:25px 0 28px;border-top:1px solid rgba(255,255,255,.13)}
.case-section .eyebrow{margin-bottom:13px}
.case-section p{max-width:760px;color:rgba(245,241,235,.78);font-size:16px;line-height:1.78;letter-spacing:-.015em}
.case-media{position:sticky;top:28px}
.media-note{color:rgba(245,241,235,.58);font-size:13px;line-height:1.6;margin:13px 0 20px}
.media-placeholder{min-height:175px;margin:13px 0;padding:22px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;border:1px dashed rgba(230,150,90,.4);background:rgba(255,255,255,.025);color:rgba(245,241,235,.7)}
.media-placeholder-mark{font:30px/1 "DM Mono",monospace;color:var(--orange)}
.media-placeholder strong,.media-placeholder small{font:10px/1.4 "DM Mono",monospace;letter-spacing:.1em;color:var(--orange)}
.media-placeholder span{font-size:14px;color:rgba(245,241,235,.86)}
.media-placeholder small{color:rgba(245,241,235,.42)}
.case-footer{display:flex;justify-content:space-between;gap:18px;margin:48px 0 12px;padding:18px 0;border-top:1px solid rgba(255,255,255,.18);font:10px/1.5 "DM Mono",monospace;letter-spacing:.08em;color:rgba(245,241,235,.48)}
@media(max-width:800px){.case-layout{grid-template-columns:1fr}.case-media{position:static}.case-header{margin-bottom:38px}}
@media(max-width:600px){.case-section p{font-size:15px}.case-footer{flex-direction:column}}


/* V1.8 — improve readability on internal pages only. The home/landing page
   retains its original PCB artwork treatment. */
body.internal-view .site-bg img{opacity:.16;filter:saturate(.72) brightness(1.12)}
body.internal-view .site-bg canvas{opacity:.18}
body.internal-view .bg-shade{background:linear-gradient(90deg,rgba(8,9,10,.96),rgba(8,9,10,.93) 42%,rgba(8,9,10,.89)),linear-gradient(0deg,rgba(8,9,10,.92),rgba(8,9,10,.82))}
body.internal-view .page-title,body.internal-view .case-header .page-title{color:#fff8f0;text-shadow:0 2px 22px rgba(0,0,0,.55)}
body.internal-view .page-intro{color:#d4cbc2}
body.internal-view .case-section p{color:#e0d9d1}
body.internal-view .media-note{color:#c5bbb1}
body.internal-view .media-placeholder{background:rgba(18,17,16,.78);border-color:rgba(255,154,82,.58);color:#e7ded5}
body.internal-view .media-placeholder span{color:#f0e8df}
body.internal-view .media-placeholder small{color:#c2a58e}
.archive-grid .project-card{min-height:230px}
.archive-status{position:relative;z-index:1;margin-top:auto;padding-top:8px;color:#d8a77f;font:9px/1.5 "DM Mono",monospace;letter-spacing:.06em}
.archive-grid .card-open{margin-top:16px}


/* V1.9 — maker profile layout; home/landing composition intentionally unchanged. */
.maker-layout{display:grid;grid-template-columns:minmax(240px,360px) minmax(0,1fr);gap:clamp(28px,5vw,70px);align-items:center;margin-top:42px;max-width:1180px}
.maker-photo{min-height:420px;aspect-ratio:4/5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:1px dashed #c47a4d88;border-radius:10px;background:linear-gradient(145deg,rgba(31,25,21,.96),rgba(12,13,14,.94));color:var(--orange);text-align:center}
.maker-photo-mark{font-size:42px;line-height:1}.maker-photo strong{font:11px "DM Mono",monospace;letter-spacing:.15em}.maker-photo small{font:9px "DM Mono",monospace;color:var(--muted)}
.maker-intro .page-title{margin-top:14px}.maker-intro .page-intro{margin-top:20px}.maker-bio{max-width:680px;color:#e0d8d0;font-size:15px;line-height:1.9;margin:22px 0}
.maker-links{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:24px}.profile-link-pending{display:inline-flex;align-items:center;min-height:40px;padding:10px 13px;border:1px dashed #8b674e;color:#c8b7a9;border-radius:5px;font:9px "DM Mono",monospace;letter-spacing:.04em}
.maker-skills{margin-top:58px}
@media(max-width:760px){.maker-layout{grid-template-columns:1fr}.maker-photo{max-width:360px;min-height:360px}.maker-intro .page-title{font-size:clamp(48px,12vw,72px)}}

/* V2.0 — maker portrait and verified contact links. Home page styles remain unchanged. */
.maker-photo.portrait-frame{
  position:relative; min-height:0; aspect-ratio:4/5; overflow:hidden;
  display:flex; align-items:flex-end; justify-content:center;
  border:1px solid #c47a4d66; border-radius:10px;
  background:radial-gradient(ellipse at 50% 35%,rgba(255,138,50,.13),rgba(12,13,14,.98) 72%);
  box-shadow:0 18px 55px rgba(0,0,0,.28);
}
.maker-photo.portrait-frame img{
  display:block; width:100%; height:100%; max-height:560px;
  object-fit:contain; object-position:center bottom;
  filter:drop-shadow(0 12px 28px rgba(0,0,0,.38));
}
.maker-details{display:flex;flex-direction:column;gap:7px;margin-top:18px;color:var(--muted);font:10px/1.6 "DM Mono",monospace;letter-spacing:.035em}
@media(max-width:760px){.maker-photo.portrait-frame{max-width:420px}.maker-photo.portrait-frame img{max-height:520px}}


/* V2.1 — Meet the Maker editorial profile, based on the approved reference layout. */
#about.maker-page{padding-top:clamp(12px,2vw,26px)}
#about .back-link{margin-bottom:30px}
.maker-hero{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(230px,.78fr) minmax(330px,.98fr);gap:clamp(16px,2.4vw,38px);align-items:center;position:relative;min-height:390px;padding:0 2px 28px;border-bottom:1px solid var(--line)}
.maker-copy{position:relative;z-index:2;padding:10px 0}
.maker-name{font-size:clamp(42px,4vw,68px);letter-spacing:-.075em;line-height:1.02;margin:18px 0 8px;white-space:nowrap}
.maker-role{font-size:clamp(19px,1.7vw,27px);line-height:1.2;color:var(--orange);margin:0 0 20px;letter-spacing:-.035em}
.maker-summary{max-width:610px;color:#e1d9d2;font-size:clamp(14px,1.08vw,17px);line-height:1.7;margin:0}
.maker-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}
.maker-social{display:inline-flex;align-items:center;gap:9px;min-height:43px;padding:10px 14px;border:1px solid #b77a535f;border-radius:9px;background:rgba(20,17,15,.78);color:#eee6df;font-size:13px;white-space:nowrap;transition:.2s}
.maker-social:hover{border-color:var(--orange);color:var(--orange-soft);transform:translateY(-2px)}
.social-glyph{font-size:19px;color:#fff}.linkedin-glyph{display:grid;place-items:center;width:19px;height:19px;border-radius:3px;background:#0a66c2;color:white;font-weight:700;font-size:14px}
.maker-portrait-wrap{position:relative;align-self:stretch;min-height:390px;display:flex;align-items:flex-end;justify-content:center;overflow:visible;z-index:1}
.portrait-orbit{position:absolute;width:min(95%,360px);aspect-ratio:1;border:1px dashed rgba(255,154,82,.32);border-radius:50%;top:14%;left:50%;transform:translateX(-50%)}
.maker-portrait{position:relative;z-index:1;display:block;width:116%;height:100%;max-height:440px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 10px 22px rgba(0,0,0,.58)) drop-shadow(0 0 12px rgba(255,154,82,.045));-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 88%,rgba(0,0,0,.92) 95%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 88%,rgba(0,0,0,.92) 95%,transparent 100%)}
.quick-profile{position:relative;z-index:2;padding:22px 24px;border:1px solid #a65c3270;border-radius:12px;background:linear-gradient(145deg,rgba(27,23,20,.96),rgba(15,15,15,.94));box-shadow:0 12px 38px rgba(0,0,0,.2)}
.quick-profile h3{font-size:25px;letter-spacing:-.045em;margin:0}.profile-divider{height:1px;background:linear-gradient(90deg,var(--line),rgba(255,154,82,.18));margin:14px 0 17px}
.profile-row{display:grid;grid-template-columns:42px 1fr;gap:14px;align-items:start;margin:15px 0}.profile-icon{font-size:28px;line-height:1.1;color:var(--orange);text-align:center}.profile-row strong,.beyond-row strong{font-size:14px;color:#fff7ef}.profile-row p,.beyond-row p{font-size:12px;line-height:1.55;color:#d0c7bf;margin:3px 0 0}
.maker-panels{display:grid;grid-template-columns:1fr 1.3fr 1.05fr;gap:18px;margin-top:28px}
.maker-panel{min-width:0;padding:17px 20px 20px;border:1px solid #a65c326b;border-radius:12px;background:linear-gradient(145deg,rgba(28,24,21,.96),rgba(18,17,16,.96));box-shadow:0 10px 30px rgba(0,0,0,.16)}
.maker-panel h3{display:flex;align-items:center;gap:13px;font-size:19px;letter-spacing:-.045em;margin:0 0 13px;padding-bottom:12px;border-bottom:1px solid rgba(255,154,82,.16)}
.maker-panel h3 span{font-size:24px;color:var(--orange)}
.maker-panel ul{list-style:none;padding:0;margin:0}.maker-panel li{position:relative;padding:5px 0 5px 22px;color:#e3dbd3;font-size:13px;line-height:1.45}.maker-panel li:before{content:"";position:absolute;left:2px;top:13px;width:9px;height:9px;background:var(--orange);border-radius:50%}
.skill-row{display:grid;grid-template-columns:145px 1fr;gap:12px;align-items:center;margin:12px 0}.skill-row b{display:inline-flex;justify-content:center;padding:6px 9px;border:1px solid #ff9a5277;border-radius:20px;color:var(--orange);font-size:11px;white-space:nowrap}.skill-row p{margin:0;color:#e0d8d0;font-size:12px;line-height:1.5}
.beyond-row{display:grid;grid-template-columns:36px 1fr;gap:12px;align-items:start;margin:13px 0}.beyond-row>span{font-size:25px;line-height:1.2;color:var(--orange);text-align:center}
@media(max-width:1180px){.maker-hero{grid-template-columns:minmax(0,1fr) minmax(220px,.72fr)}.maker-portrait-wrap{position:absolute;left:43%;bottom:0;width:28%;height:100%;min-height:0;opacity:.92;pointer-events:none}.maker-copy{max-width:58%}.quick-profile{grid-column:2;grid-row:1}.maker-name{white-space:normal}.maker-panels{grid-template-columns:1fr 1fr}.beyond-panel{grid-column:1/-1}}
@media(max-width:760px){#about .back-link{margin-bottom:22px}.maker-hero{display:flex;flex-direction:column;align-items:stretch;gap:20px;padding-bottom:22px}.maker-copy{max-width:none;order:1}.maker-name{font-size:clamp(40px,10vw,62px)}.maker-role{font-size:21px}.maker-portrait-wrap{position:relative;left:auto;bottom:auto;width:100%;height:300px;min-height:300px;order:2;opacity:1}.maker-portrait{width:auto;max-width:100%;max-height:330px}.portrait-orbit{top:0;width:280px}.quick-profile{order:3}.maker-panels{grid-template-columns:1fr}.beyond-panel{grid-column:auto}.skill-row{grid-template-columns:130px 1fr}.maker-social{font-size:12px}.email-link{white-space:normal;overflow-wrap:anywhere}}
@media(max-width:420px){.skill-row{grid-template-columns:1fr;gap:6px}.skill-row b{justify-self:start}.maker-panel{padding:16px}.quick-profile{padding:18px}}

/* V2.2 profile refinements */
.beyond-panel .beyond-row{margin:10px 0;gap:10px}
.beyond-panel .beyond-row>span{font-size:21px}
.beyond-panel .beyond-row strong{font-size:13px}
.beyond-panel .beyond-row p{font-size:11px}
.email-link{min-width:130px;justify-content:center}
@media(max-width:1180px){.maker-portrait{width:110%}}


/* V2.3 — improve internal-page PCB visibility and balance maker panels. */
body.internal-view .site-bg img{opacity:.34;filter:saturate(1.08) brightness(1.38) contrast(1.08)}
body.internal-view .site-bg canvas{opacity:.42}
body.internal-view .bg-shade{
  background:
    linear-gradient(90deg,rgba(8,9,10,.78),rgba(8,9,10,.70) 42%,rgba(8,9,10,.66)),
    linear-gradient(0deg,rgba(8,9,10,.72),rgba(8,9,10,.54) 48%,rgba(8,9,10,.62));
}
body.internal-view .maker-panel,body.internal-view .quick-profile{
  background:linear-gradient(145deg,rgba(24,22,20,.94),rgba(17,17,16,.91));
  backdrop-filter:blur(5px);
}
.maker-panels{align-items:stretch}
.maker-panel{min-height:310px;display:flex;flex-direction:column}
.maker-panel ul{display:flex;flex-direction:column;justify-content:space-around;flex:1;padding:4px 0}
.maker-panel li{font-size:15px;line-height:1.65;padding-top:8px;padding-bottom:8px}
.maker-panel li:before{top:17px;width:9px;height:9px}
.skills-panel .skill-row{grid-template-columns:150px 1fr;gap:15px;margin:0;flex:1;align-content:center}
.skills-panel .skill-row b{font-size:12px;padding:8px 10px}
.skills-panel .skill-row p{font-size:14px;line-height:1.7}
.skills-panel{display:flex}
.beyond-panel .beyond-row{margin:12px 0}
footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px clamp(20px,5vw,76px);border-top:1px solid #ff9a5226;color:#b8aaa0;font:9px "DM Mono",monospace;letter-spacing:.07em}
@media(max-width:760px){
  .maker-panel{min-height:0}.maker-panel ul{gap:5px}
  .skills-panel .skill-row{flex:initial;margin:10px 0}
  footer{flex-direction:column;gap:9px;text-align:center}
}


/* V2.4 — portrait treatment only: restore the larger, softly integrated maker image. */
.maker-portrait-wrap{isolation:isolate}
.maker-portrait-wrap::before{
  content:"";
  position:absolute;
  z-index:0;
  left:50%;
  bottom:2%;
  width:118%;
  height:88%;
  transform:translateX(-50%);
  pointer-events:none;
  background:radial-gradient(ellipse at 50% 48%,
    rgba(7,8,9,.94) 0%,
    rgba(7,8,9,.78) 42%,
    rgba(7,8,9,.30) 68%,
    rgba(7,8,9,0) 82%);
}
.maker-portrait{
  width:128%;
  max-height:500px;
  filter:
    drop-shadow(0 14px 24px rgba(0,0,0,.68))
    drop-shadow(0 0 7px rgba(255,154,82,.018));
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 90%,rgba(0,0,0,.88) 96%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 90%,rgba(0,0,0,.88) 96%,transparent 100%);
}
@media(max-width:1180px){
  .maker-portrait{width:122%;max-height:470px}
}
@media(max-width:760px){
  .maker-portrait-wrap::before{width:100%;height:88%}
  .maker-portrait{width:auto;max-width:100%;max-height:370px}
}


/* V2.6 — denser, more readable About-page information panels. */
.maker-panel ul{
  justify-content:flex-start;
  gap:12px;
  padding:0;
}
.maker-panel li{
  font-size:16px;
  line-height:1.5;
  padding-top:4px;
  padding-bottom:4px;
}
.maker-panel li:before{top:12px}
.skills-panel .skill-row{
  flex:initial;
  margin:9px 0;
  grid-template-columns:150px minmax(0,1fr);
  gap:14px;
}
.skills-panel .skill-row b{
  font-size:13px;
  padding:8px 10px;
}
.skills-panel .skill-row p{
  font-size:15px;
  line-height:1.55;
}
.beyond-panel .beyond-row{
  margin:10px 0;
  grid-template-columns:32px minmax(0,1fr);
  gap:10px;
}
.beyond-panel .beyond-row strong{font-size:15px}
.beyond-panel .beyond-row p{font-size:14px;line-height:1.45}
@media(max-width:760px){
  .maker-panel ul{gap:10px}
  .maker-panel li{font-size:15px}
  .skills-panel .skill-row{margin:8px 0;grid-template-columns:130px minmax(0,1fr)}
  .skills-panel .skill-row p{font-size:14px}
  .beyond-panel .beyond-row{margin:9px 0}
}
@media(max-width:420px){
  .skills-panel .skill-row{grid-template-columns:1fr;gap:6px}
}


/* V2.7 — hybrid visual engineering case studies. Scoped to project detail only. */
#project-detail{padding-bottom:clamp(44px,7vw,90px)}
#project-detail-content{max-width:1500px;margin:0 auto}
#project-detail .case-hero{padding:clamp(24px,4vw,54px) 0 34px;border-bottom:1px solid rgba(255,154,82,.22)}
#project-detail .case-hero .page-title{font-size:clamp(42px,6.4vw,82px);line-height:.98;max-width:1000px}
#project-detail .case-tagline{font-size:clamp(21px,2.5vw,31px);margin:16px 0 12px;color:#ff9a52}
#project-detail .page-intro{max-width:900px;font-size:clamp(16px,1.35vw,19px);line-height:1.65}
.case-specs{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
.spec-chip{display:inline-flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid rgba(255,154,82,.34);border-radius:7px;background:rgba(20,18,16,.78);color:#eee5dc;font-size:13px}
.spec-chip small{font:10px "DM Mono",monospace;color:#ff9a52}
.visual-section{padding:clamp(32px,4vw,54px) 0;border-bottom:1px solid rgba(255,255,255,.11)}
.section-heading-row{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}
.section-heading-row h2{font-size:clamp(27px,3vw,38px);line-height:1.08;margin:7px 0 0;letter-spacing:-.045em;color:#fff8f0}
.section-side-note{font:9px/1.5 "DM Mono",monospace;letter-spacing:.1em;color:#c19a7e;text-align:right}
.flow-map{display:flex;align-items:stretch;gap:10px;padding:20px;border:1px solid rgba(255,154,82,.3);border-radius:13px;background:linear-gradient(130deg,rgba(25,22,19,.96),rgba(12,13,13,.94));overflow-x:auto}
.flow-node{position:relative;flex:1 0 145px;min-height:116px;padding:16px 14px;display:flex;flex-direction:column;justify-content:center;gap:8px;border:1px solid rgba(255,154,82,.25);border-radius:9px;background:linear-gradient(145deg,rgba(255,154,82,.08),rgba(255,255,255,.018))}
.flow-number{font:10px "DM Mono",monospace;color:#ff9a52;letter-spacing:.1em}
.flow-node strong{font-size:15px;line-height:1.25;color:#fff3e9}
.flow-node small{font-size:12px;line-height:1.4;color:#c5b9af}
.flow-arrow{align-self:center;flex:0 0 auto;color:#ff9a52;font-size:23px}
.engineering-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.engineering-card{min-height:160px;display:flex;gap:14px;padding:20px 18px;border:1px solid rgba(255,154,82,.26);border-radius:11px;background:linear-gradient(145deg,rgba(27,24,21,.94),rgba(15,16,16,.94))}
.engineering-card-index{font:11px "DM Mono",monospace;color:#ff9a52;padding-top:2px}
.engineering-card .eyebrow{font-size:10px;letter-spacing:.08em;color:#ffad72}
.engineering-card p{font-size:14px;line-height:1.55;color:#ded4ca;margin:10px 0 0}
.build-timeline{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:0;padding:12px 0 4px}
.timeline-step{position:relative;min-width:0;padding:0 18px 18px 0}
.timeline-marker{height:34px;display:flex;align-items:center;position:relative;margin-bottom:13px}
.timeline-marker:after{content:"";position:absolute;left:32px;right:-18px;top:50%;height:1px;background:linear-gradient(90deg,rgba(255,154,82,.75),rgba(255,154,82,.12))}
.timeline-step:last-child .timeline-marker:after{display:none}
.timeline-marker span{position:relative;z-index:1;width:34px;height:34px;display:grid;place-items:center;border:1px solid #ff9a52;border-radius:50%;background:#1a1715;color:#ff9a52;font:10px "DM Mono",monospace}
.timeline-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
.timeline-heading h3{font-size:16px;line-height:1.25;color:#fff4e9;margin:0}
.timeline-status{font:9px "DM Mono",monospace;letter-spacing:.06em;padding:4px 7px;border:1px solid rgba(255,154,82,.36);border-radius:20px;color:#ffad72;background:rgba(255,154,82,.06)}
.timeline-copy p{font-size:13px;line-height:1.55;color:#cfc4ba;margin:0;max-width:290px}
.documentation-note{max-width:760px;color:#c9bdb2;font-size:14px;line-height:1.6;margin:0 0 20px}
.documentation-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:16px}
.media-slot{min-height:260px;margin:0;padding:25px;border-style:dashed;border-color:rgba(255,154,82,.48);border-radius:12px;background:linear-gradient(145deg,rgba(25,23,20,.82),rgba(12,13,13,.86));}
.media-slot strong{font-size:10px;letter-spacing:.12em}
.media-slot span{font-size:17px;line-height:1.4;max-width:420px}
.media-slot small{font-size:9px;letter-spacing:.08em}
.case-footer{font:10px "DM Mono",monospace;letter-spacing:.08em;color:#c9a78f}
@media(max-width:1050px){
  .engineering-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .build-timeline{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px}
  .timeline-step:nth-child(2n) .timeline-marker:after{display:none}
}
@media(max-width:650px){
  #project-detail .case-hero .page-title{font-size:clamp(38px,11vw,58px)}
  .section-heading-row{align-items:flex-start;flex-direction:column;gap:8px}
  .section-side-note{text-align:left}
  .flow-map{padding:13px;gap:8px}
  .flow-node{flex-basis:145px;min-height:108px;padding:13px 11px}
  .engineering-grid{grid-template-columns:1fr}
  .engineering-card{min-height:0}
  .build-timeline{grid-template-columns:1fr;padding-left:4px}
  .timeline-step{padding-bottom:20px}
  .timeline-marker:after{left:16px;right:auto;top:34px;bottom:-20px;width:1px;height:auto}
  .timeline-step:nth-child(2n) .timeline-marker:after{display:block}
  .timeline-step:last-child .timeline-marker:after{display:none}
  .documentation-grid{grid-template-columns:1fr}
  .media-slot{min-height:190px}
}

/* V2.8 — immersive editorial project showcases. No default card-wall layouts. */
#project-detail{padding:0 clamp(24px,4.5vw,78px) 72px}
#project-detail-content{max-width:1720px;margin:0 auto}
.showcase-hero{position:relative;min-height:min(760px,calc(100vh - 90px));display:grid;grid-template-columns:minmax(0,1.02fr) minmax(440px,.98fr);align-items:center;gap:clamp(22px,4vw,76px);padding:clamp(38px,5vw,78px) 0 78px;border-bottom:1px solid rgba(255,154,82,.26);overflow:hidden}
.showcase-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 73% 46%,rgba(255,133,65,.105),transparent 38%),linear-gradient(110deg,transparent 48%,rgba(255,255,255,.018));pointer-events:none}
.showcase-copy{position:relative;z-index:1;max-width:760px}
.showcase-copy>.eyebrow{font:11px "DM Mono",monospace;letter-spacing:.17em;color:#ff9a52}
.showcase-copy>.eyebrow span{color:#8f705d;padding:0 8px}
.showcase-hero .page-title{font-size:clamp(54px,7.2vw,112px);line-height:.91;letter-spacing:-.075em;max-width:850px;margin:25px 0 0;color:#fff8f0}
.showcase-hero .case-tagline{font-size:clamp(23px,2.8vw,39px);line-height:1.12;letter-spacing:-.045em;color:#ff9a52;margin:23px 0 18px}
.showcase-intro{font-size:clamp(17px,1.45vw,21px);line-height:1.65;color:#ded5cd;max-width:680px;margin:0}
.showcase-copy .case-status{display:inline-flex;margin-top:24px;padding:8px 12px;border-left:2px solid #ff9a52;background:rgba(255,154,82,.07);font:10px "DM Mono",monospace;letter-spacing:.08em;color:#ffbd91}
.showcase-copy .case-specs{margin-top:25px;gap:8px}
.showcase-copy .spec-chip{background:rgba(14,14,14,.55);font-size:12px;padding:8px 11px}
.showcase-art{position:relative;z-index:1;min-width:0;width:100%;filter:drop-shadow(0 22px 48px rgba(0,0,0,.35))}
.showcase-art svg{display:block;width:100%;height:auto;overflow:visible}
.art-caption{display:block;text-align:right;margin:5px 8% 0 0;font:9px "DM Mono",monospace;letter-spacing:.16em;color:#92745f}
.showcase-index{position:absolute;bottom:20px;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding-top:13px;border-top:1px solid rgba(255,154,82,.18);font:9px "DM Mono",monospace;letter-spacing:.13em;color:#9e8878}
.showcase-index strong{color:#ffad72;font-weight:400}
.showcase-section{padding:clamp(58px,7vw,108px) 0;border-bottom:1px solid rgba(255,255,255,.12)}
.showcase-section-head{display:flex;justify-content:space-between;align-items:end;gap:28px;margin-bottom:clamp(25px,4vw,52px)}
.showcase-section-head .eyebrow{font:10px "DM Mono",monospace;letter-spacing:.16em;color:#ff9a52}
.showcase-section-head h2{font-size:clamp(35px,5vw,68px);line-height:.98;letter-spacing:-.065em;color:#fff7ef;margin:13px 0 0}
.showcase-section-head>p{font:9px/1.6 "DM Mono",monospace;letter-spacing:.13em;color:#ad8c75;text-align:right;margin:0;max-width:260px}
.system-art-wrap{padding:clamp(14px,2.5vw,34px) 0 4px;position:relative}
.system-art-wrap:before{content:"";position:absolute;inset:5% 4%;background:radial-gradient(ellipse,rgba(255,154,82,.07),transparent 66%);pointer-events:none}
.system-illustration{display:block;position:relative;width:100%;height:auto;min-height:220px;overflow:visible}
.build-notes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(20px,3vw,48px)}
.build-note{display:grid;grid-template-columns:34px 1fr;gap:12px;padding-top:17px;border-top:1px solid rgba(255,154,82,.5)}
.build-note-index{font:11px "DM Mono",monospace;color:#ff9a52;padding-top:2px}
.build-note .eyebrow{font:10px "DM Mono",monospace;letter-spacing:.12em;color:#ffb17d}
.build-note p{font-size:clamp(14px,1.15vw,17px);line-height:1.65;color:#d5cbc2;margin:13px 0 0}
.journey-track{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(14px,2vw,32px);padding-top:15px}
.journey-track:before{content:"";position:absolute;left:2%;right:3%;top:31px;height:1px;background:linear-gradient(90deg,#ff9a52,rgba(255,154,82,.12))}
.journey-stop{position:relative;min-width:0;padding-top:0}
.journey-point{position:relative;z-index:1;width:34px;height:34px;border:1px solid #ff9a52;border-radius:50%;display:grid;place-items:center;background:#171411;box-shadow:0 0 0 7px rgba(255,154,82,.045)}
.journey-point span{font:10px "DM Mono",monospace;color:#ffad72}
.journey-status{margin-top:25px;font:9px "DM Mono",monospace;letter-spacing:.12em;color:#ffad72;text-transform:uppercase}
.journey-stop h3{font-size:clamp(17px,1.45vw,22px);line-height:1.25;letter-spacing:-.035em;color:#fff4e9;margin:10px 0 9px}
.journey-stop p{font-size:14px;line-height:1.6;color:#c9bdb2;margin:0;max-width:280px}
.showcase-bottom{display:flex;justify-content:space-between;gap:20px;padding:24px 0 0;font:9px "DM Mono",monospace;letter-spacing:.13em;color:#b99b85}
@media(max-width:1100px){.showcase-hero{grid-template-columns:1fr  .85fr;gap:20px}.build-notes{grid-template-columns:repeat(2,minmax(0,1fr))}.journey-track{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:34px}.journey-track:before{display:none}.journey-stop{border-top:1px solid rgba(255,154,82,.3);padding-top:13px}.journey-point{position:absolute;top:-18px;right:0;width:27px;height:27px;background:#171411}.journey-status{margin-top:10px}}
@media(max-width:720px){#project-detail{padding:0 20px 48px}.showcase-hero{min-height:0;grid-template-columns:1fr;padding:45px 0 74px}.showcase-copy{order:1}.showcase-art{order:2;max-width:560px;margin:0 auto}.showcase-hero .page-title{font-size:clamp(48px,12vw,76px)}.showcase-index{bottom:18px}.showcase-section{padding:52px 0}.showcase-section-head{align-items:flex-start;flex-direction:column;gap:12px}.showcase-section-head>p{text-align:left}.system-illustration{min-width:900px}.system-art-wrap{overflow-x:auto;padding-bottom:12px}.build-notes{grid-template-columns:1fr;gap:22px}.journey-track{grid-template-columns:1fr;gap:22px}.journey-stop{padding:12px 0 0 0}.journey-point{top:10px;right:0}.journey-stop p{max-width:600px}.showcase-bottom{flex-direction:column;gap:8px}}

/* V2.9 usability refinements: readable primary navigation and controls */
.site-header nav{gap:8px}
.nav-link{font-size:13px;letter-spacing:.035em;padding:12px 15px;min-height:42px}
.system-status{font-size:11px}
.brand strong{font-size:15px}
.brand small{font-size:10px}
.back-link{font-size:12px;padding:12px 16px}
@media(max-width:760px){.nav-link{font-size:12px;padding:10px 12px}.site-header nav{gap:5px}}

/* PCB Studio — dedicated, editorial board-design archive */
#pcbs{padding:0 clamp(22px,4.5vw,78px) 90px;max-width:none}
.pcb-intro-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.pcb-hero{min-height:620px;display:grid;grid-template-columns:.88fr 1.12fr;align-items:center;gap:clamp(20px,5vw,80px);padding:28px 0 65px;border-bottom:1px solid rgba(255,154,82,.22)}
.pcb-hero-copy h1{font-size:clamp(68px,9vw,138px);line-height:.84;letter-spacing:-.085em;margin:25px 0;color:#fff6ed}.pcb-hero-copy h1 em{font-style:normal;color:#ff9a52}.pcb-hero-copy>p{max-width:590px;font-size:clamp(17px,1.5vw,21px);line-height:1.7;color:#d3c7bc}
.pcb-hero-stats{display:flex;gap:clamp(20px,4vw,55px);margin-top:40px}.pcb-hero-stats div{display:flex;flex-direction:column;gap:7px}.pcb-hero-stats strong{font:24px "DM Mono",monospace;color:#ff9a52}.pcb-hero-stats span{font:10px "DM Mono",monospace;letter-spacing:.12em;color:#bba99a}
.pcb-hero-art{position:relative;min-width:0}.pcb-hero-art svg{width:100%;height:auto;overflow:visible;filter:drop-shadow(0 28px 40px rgba(0,0,0,.5))}.pcb-art-caption{position:absolute;right:2%;bottom:0;font:9px "DM Mono",monospace;letter-spacing:.1em;color:#b9977e}
.pcb-manifesto{display:grid;grid-template-columns:.55fr 1.45fr .7fr;gap:30px;align-items:center;padding:clamp(45px,7vw,95px) 0;border-bottom:1px solid #ffffff20}.pcb-manifesto>.display{font-size:clamp(32px,4.6vw,66px);line-height:1.04;letter-spacing:-.06em;margin:0;max-width:850px}.pcb-manifesto>span:last-child{font-size:14px;line-height:1.7;color:#c5b8ad}
.pcb-collection,.pcb-workbench,.pcb-process{padding:clamp(55px,7vw,95px) 0;border-bottom:1px solid #ffffff20}.pcb-section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:30px}.pcb-section-head h2{font-size:clamp(42px,6vw,78px);letter-spacing:-.07em;line-height:.98;margin:13px 0 0}.pcb-section-head>p{font:10px "DM Mono",monospace;letter-spacing:.1em;color:#c4a58f;text-align:right}
.pcb-category-tabs{display:flex;gap:10px;flex-wrap:wrap;border-bottom:1px solid #ffffff24;padding-bottom:16px}.pcb-tab{background:transparent;color:#c8bdb3;border:1px solid #a77b5a66;padding:12px 17px;border-radius:3px;font:10px "DM Mono",monospace;letter-spacing:.08em;cursor:pointer}.pcb-tab.active,.pcb-tab:hover{color:#17110d;background:#ff9a52;border-color:#ff9a52}
.pcb-empty-state{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(30px,6vw,90px);align-items:center;padding:65px 5%;background:linear-gradient(110deg,rgba(30,28,25,.85),rgba(11,13,13,.45));border-bottom:1px solid #ff9a5244}.pcb-empty-visual{min-height:240px;display:grid;place-items:center;position:relative;background:radial-gradient(ellipse,rgba(255,154,82,.1),transparent 65%)}.pcb-empty-visual span{position:absolute;top:15px;left:15px;font:10px "DM Mono",monospace;color:#ff9a52}.pcb-empty-visual svg{width:min(100%,390px);filter:drop-shadow(0 12px 22px #000)}.pcb-empty-state h3{font-size:clamp(30px,4vw,48px);letter-spacing:-.05em;margin:14px 0}.pcb-empty-state p{max-width:650px;color:#cfc4ba;font-size:16px;line-height:1.7;margin-bottom:24px}.pcb-empty-state.has-record{align-items:start}.pcb-record{margin-top:20px;padding:20px;border-left:2px solid #ff9a52;background:#141312}.pcb-record h3{font-size:26px;margin:8px 0}.pcb-record p{font-size:14px;margin:0}
.pcb-upload-form{display:grid;grid-template-columns:1fr .65fr 1.2fr auto;gap:13px;align-items:end;margin:30px 0 40px;padding:22px;background:rgba(20,19,17,.8);border:1px solid #ff9a5238}.pcb-upload-form label{display:flex;flex-direction:column;gap:8px;font:9px "DM Mono",monospace;letter-spacing:.08em;color:#d0a98c}.pcb-upload-form input,.pcb-upload-form select{width:100%;min-width:0;background:#0b0d0d;color:#f4e9df;border:1px solid #76533e;padding:13px;font:13px "Space Grotesk",sans-serif;border-radius:2px}.pcb-upload-form .button{white-space:nowrap}
.pcb-viewer-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:22px}.pcb-viewer-stage{min-height:560px;position:relative;overflow:hidden;border:1px solid #a66b484d;background:radial-gradient(ellipse at 50% 48%,rgba(41,74,63,.25),transparent 60%),linear-gradient(145deg,#171a18,#090b0b)}.pcb-viewer-topline{display:flex;justify-content:space-between;gap:10px;padding:17px 20px;border-bottom:1px solid #ffffff1b;font:9px "DM Mono",monospace;letter-spacing:.1em;color:#caa88e}.pcb-rotator{height:440px;display:grid;place-items:center;perspective:1100px;cursor:grab;touch-action:none;outline:none}.pcb-rotator:active{cursor:grabbing}.pcb-board-model{width:min(68%,430px);aspect-ratio:1.35;position:relative;transform:var(--pcb-transform,rotateX(58deg) rotateY(-28deg));transform-style:preserve-3d;transition:transform .08s linear;border:3px solid #bd875c;border-radius:8px;background:linear-gradient(135deg,#1d5749,#0d302a 55%,#08221f);box-shadow:0 24px 0 #071411,0 27px 0 #a56b43,0 55px 65px #000b, inset 0 0 0 8px #ffffff08; background-image:repeating-linear-gradient(0deg,transparent 0 38px,#d99b6424 39px 41px),repeating-linear-gradient(90deg,transparent 0 38px,#d99b6420 39px 41px),linear-gradient(135deg,#1d5749,#0d302a 55%,#08221f)}.pcb-board-model:before{content:"";position:absolute;inset:12%;border:1px solid #dca26a88;border-radius:4px;background:repeating-linear-gradient(90deg,transparent 0 22px,#c98b5c33 23px 25px)}.pcb-model-chip{position:absolute;z-index:2;left:37%;top:32%;width:27%;height:35%;display:grid;place-items:center;background:linear-gradient(145deg,#303a36,#111917);border:3px solid #bd966d;color:#e8c9a7;font:12px "DM Mono",monospace;box-shadow:0 8px 0 #06110e;transform:translateZ(14px)}.pcb-model-component{position:absolute;z-index:2;width:12%;height:7%;background:linear-gradient(#d5b48d,#73523b);border:1px solid #f0c99b;transform:translateZ(9px);box-shadow:0 4px 0 #07130f}.pcb-model-component.c1{left:12%;top:22%}.pcb-model-component.c2{right:12%;top:22%}.pcb-model-component.c3{left:14%;bottom:18%}.pcb-model-component.c4{right:15%;bottom:18%}.pcb-model-traces{position:absolute;inset:5%;z-index:1;transform:translateZ(2px);background:repeating-linear-gradient(25deg,transparent 0 30px,#d99a5b99 31px 33px,transparent 34px 60px);opacity:.7}.pcb-model-label{position:absolute;left:7%;bottom:5%;font:8px "DM Mono",monospace;letter-spacing:.1em;color:#e0b78f;transform:translateZ(5px)}.pcb-viewer-controls{display:flex;justify-content:space-between;gap:10px;padding:14px 20px;border-top:1px solid #ffffff1b;color:#bca18c;font:9px "DM Mono",monospace}.pcb-viewer-controls button{background:none;border:1px solid #b17b57;color:#ffb17a;padding:8px 12px;font:9px "DM Mono",monospace;cursor:pointer}
.pcb-assets-panel{display:flex;flex-direction:column;gap:13px}.pcb-assets-panel>div:first-child{padding:8px 0 18px}.pcb-assets-panel h3{font-size:clamp(30px,3.5vw,44px);line-height:1;margin:13px 0}.pcb-assets-panel p{font-size:14px;line-height:1.7;color:#c6bbb1}.pcb-file-slot{display:flex;flex-direction:column;gap:10px;padding:20px;border:1px dashed #b17b57;background:rgba(24,22,19,.78);cursor:pointer}.pcb-file-slot>span{font:9px "DM Mono",monospace;letter-spacing:.1em;color:#ff9a52}.pcb-file-slot strong{font-size:16px;color:#f0e4d9}.pcb-file-slot input{font-size:12px;color:#c9b9ac;max-width:100%}.pcb-file-slot small{font-size:11px;color:#a99586}.pcb-preview-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px;margin-top:22px}.pcb-preview-empty{grid-column:1/-1;padding:22px;border:1px solid #ffffff20;color:#ad9c8e;font-size:13px}.pcb-preview-item{min-width:0;padding:13px;background:#171715;border:1px solid #a66b484d;display:flex;flex-direction:column;gap:8px}.pcb-preview-item strong{font-size:13px;overflow-wrap:anywhere}.pcb-preview-item small{font:9px "DM Mono",monospace;color:#ffad72}.pcb-preview-item img{width:100%;max-height:280px;object-fit:contain;background:#0b0b0b}.pcb-preview-item iframe{width:100%;height:280px;border:0;background:white}.pcb-preview-item p{font-size:12px;color:#c5b8ac;line-height:1.5}.pcb-storage-note{margin-top:22px;padding:16px 18px;border-left:2px solid #ff9a52;background:#171614;color:#bfb3a8;font-size:12px;line-height:1.65}.pcb-storage-note strong{color:#ffb17a}.pcb-storage-note code{color:#f3d5bb}
.pcb-process-line{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;position:relative;padding-top:35px}.pcb-process-line:before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,#ff9a52,#ff9a5220)}.pcb-process-line>div{position:relative}.pcb-process-line>div:before{content:"";position:absolute;top:-41px;left:0;width:11px;height:11px;border-radius:50%;background:#ff9a52;box-shadow:0 0 0 7px #ff9a521e}.pcb-process-line b{font:11px "DM Mono",monospace;color:#ff9a52}.pcb-process-line h3{font-size:22px;margin:12px 0 8px}.pcb-process-line p{font-size:13px;line-height:1.65;color:#bfb3a8;margin:0}
@media(max-width:950px){.pcb-hero{grid-template-columns:1fr;min-height:0}.pcb-hero-art{max-width:800px;margin:0 auto}.pcb-manifesto{grid-template-columns:1fr;gap:15px}.pcb-upload-form{grid-template-columns:1fr 1fr}.pcb-viewer-layout{grid-template-columns:1fr}.pcb-assets-panel{display:grid;grid-template-columns:1fr 1fr}.pcb-assets-panel>div:first-child{grid-column:1/-1}.pcb-process-line{grid-template-columns:repeat(2,1fr);row-gap:45px}}
@media(max-width:620px){#pcbs{padding:0 18px 55px}.pcb-intro-bar{align-items:flex-start;flex-direction:column;gap:12px}.pcb-hero{padding-top:20px}.pcb-hero-copy h1{font-size:clamp(60px,17vw,94px)}.pcb-hero-stats{gap:18px;flex-wrap:wrap}.pcb-section-head{align-items:flex-start;flex-direction:column}.pcb-section-head>p{text-align:left}.pcb-empty-state{grid-template-columns:1fr;padding:35px 22px}.pcb-empty-visual{min-height:170px}.pcb-upload-form{grid-template-columns:1fr}.pcb-assets-panel{display:flex}.pcb-viewer-stage{min-height:420px}.pcb-rotator{height:320px}.pcb-board-model{width:78%}.pcb-viewer-controls{font-size:8px}.pcb-process-line{grid-template-columns:1fr;gap:40px}.pcb-process-line:before{left:5px;right:auto;top:0;bottom:0;width:1px;height:auto}.pcb-process-line>div{padding-left:28px}.pcb-process-line>div:before{top:0;left:0}}
.pcb-rotator model-viewer{width:100%;height:100%;min-height:420px;background:radial-gradient(ellipse at center,rgba(37,75,62,.24),transparent 65%);--poster-color:transparent}

/* V3.1 DESIGN EXPLORATION — Articles editorial system */
.articles-page{padding-bottom:40px}
.articles-shell{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;margin-top:10px}
.articles-main{min-width:0}
.articles-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;padding-bottom:38px}
.articles-heading .page-title{font-size:clamp(54px,7.2vw,100px);line-height:.9;margin-top:20px}
.articles-heading .page-intro{max-width:690px;margin-top:22px;font-size:clamp(15px,1.2vw,18px)}
.articles-index{flex:none;margin-bottom:8px;text-align:right;font:9px/1.8 "DM Mono",monospace;letter-spacing:.15em;color:#a68c78}
.articles-feature{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,1.15fr);min-height:300px;border:1px solid #ff9a5250;background:linear-gradient(110deg,#171411f2,#0d1110ed);overflow:hidden}
.articles-feature-art{position:relative;min-height:300px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 48%,#c06b3a55,transparent 48%),linear-gradient(145deg,#1b2925,#0b0e0e 75%)}
.articles-feature-art:before,.articles-feature-art:after{content:"";position:absolute;width:74%;aspect-ratio:1;border:1px solid #d58b5a55;border-radius:50%;box-shadow:0 0 0 24px #d58b5a0b,0 0 0 50px #d58b5a08}
.articles-feature-art:after{width:48%;border-radius:16px;transform:rotate(35deg);background:linear-gradient(135deg,#284238,#111b18);box-shadow:0 18px 40px #0009,inset 0 0 0 1px #e5a36d77}
.articles-feature-art b{position:relative;z-index:1;font:700 clamp(54px,7vw,88px) "Space Grotesk",sans-serif;color:#f0c49b;text-shadow:0 4px 25px #ff9a5266}
.articles-feature-art>span{position:absolute;top:18px;left:20px;z-index:2;font:10px "DM Mono",monospace;color:#ffb477}
.articles-feature-art i{position:absolute;bottom:17px;right:18px;z-index:2;text-align:right;font:8px/1.6 "DM Mono",monospace;letter-spacing:.16em;color:#c8a88d;font-style:normal}
.articles-feature-copy{align-self:center;padding:clamp(25px,3.4vw,48px)}
.article-kicker{font:9px "DM Mono",monospace;letter-spacing:.13em;color:var(--orange)}
.articles-feature-copy h2{font-size:clamp(30px,3.5vw,48px);line-height:.98;margin:17px 0}
.articles-feature-copy p{max-width:540px;font-size:14px;line-height:1.75;color:#bdb1a6}
.article-read{margin-top:12px;padding:12px 0;border:0;border-bottom:1px solid #ff9a5277;background:none;color:#ffb477;font:9px "DM Mono",monospace;letter-spacing:.1em;cursor:pointer}
.articles-toolbar{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:62px 0 20px}
.articles-toolbar h2{font-size:clamp(32px,4vw,50px);margin:10px 0 0}
.article-search input{width:min(260px,28vw);padding:12px 13px;border:1px solid #a9765555;border-radius:3px;background:#101110d9;color:#f4eee6;font:11px "DM Mono",monospace;outline:none}
.article-search input:focus{border-color:var(--orange)}.article-search input:focus-visible{outline:2px solid var(--orange);outline-offset:3px;box-shadow:0 0 0 3px rgba(255,154,82,.12)}
.article-filters{display:flex;gap:8px;flex-wrap:wrap;padding:0 0 17px;border-bottom:1px solid #ffffff20}
.article-filter{padding:8px 11px;border:1px solid #a9765544;background:#141413a8;color:#b9a99b;font:9px "DM Mono",monospace;letter-spacing:.08em;cursor:pointer}
.article-filter:hover,.article-filter.active{border-color:#ff9a52;color:#ffb477;background:#ff9a5212}
.article-row{display:grid;grid-template-columns:42px minmax(0,1fr) 38px;gap:16px;align-items:start;padding:25px 5px;border-bottom:1px solid #ffffff1c;transition:background .2s}
.article-row:hover{background:linear-gradient(90deg,#ff9a520b,transparent)}
.article-row-index{font:11px "DM Mono",monospace;color:#a77b5c;padding-top:3px}
.article-row-copy h3{font-size:clamp(20px,2.3vw,29px);letter-spacing:-.045em;line-height:1.13;margin:9px 0}
.article-row-copy p{max-width:690px;font-size:13px;line-height:1.65;color:#b9afa6;margin:0 0 12px}
.article-meta{font:8px "DM Mono",monospace;letter-spacing:.1em;color:#927f70}.article-meta span{padding:0 7px;color:#ff9a52}
.article-arrow{width:34px;height:34px;border:1px solid #ad78554f;background:#171512;color:#ffb477;font-size:17px;cursor:pointer}.article-arrow:hover{background:#ff9a52;color:#211109}
.articles-editorial-note{margin-top:42px;padding:23px 25px;border-left:2px solid var(--orange);background:#141311d9}
.articles-editorial-note p{max-width:850px;margin:12px 0 0;color:#c5b8ac;font-size:14px;line-height:1.8}
.articles-empty{padding:30px 0;color:#b9a99b;font-size:13px}
.article-reader{padding-top:26px}
.article-reader-head{padding:30px 0 40px;border-bottom:1px solid #ff9a5240}
.article-reader-head h1{max-width:1000px;font-size:clamp(44px,6.5vw,82px);line-height:.98;margin:18px 0}
.article-reader-head>p{max-width:760px;color:#c7b9ac;font-size:17px;line-height:1.8}
.article-reader-body{max-width:850px;margin:0 auto;padding:45px 0}
.article-reader-body section{padding:22px 0 35px;border-bottom:1px solid #ffffff1b}
.article-reader-body h2{font-size:clamp(29px,4vw,43px);margin:12px 0}
.article-reader-body section p{font-size:16px;line-height:1.9;color:#c9beb4}
.article-source-note{margin-top:35px;padding:22px;border:1px solid #ff9a5244;background:#171411}
.article-source-note strong{color:#ffb477;font:11px "DM Mono",monospace;letter-spacing:.08em}
.article-source-note p{color:#b9afa6;font-size:13px;line-height:1.7}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.articles-shell{grid-template-columns:minmax(0,1fr)}.articles-feature{grid-template-columns:1fr}.articles-feature-art{min-height:220px}}
@media(max-width:650px){.articles-shell{grid-template-columns:1fr}.articles-heading{align-items:flex-start;flex-direction:column}.articles-index{text-align:left}.articles-feature{grid-template-columns:1fr}.articles-feature-art{min-height:190px}.articles-toolbar{align-items:flex-start;flex-direction:column;margin-top:44px}.article-search,.article-search input{width:100%}.article-row{grid-template-columns:26px minmax(0,1fr) 30px;gap:10px;padding:21px 0}.articles-heading .page-title{font-size:clamp(52px,14vw,76px)}}


/* V3.1 design iteration: theme control, curated homepage and flexible editorial blocks */
[hidden]{display:none!important}
.header-tools{display:flex;align-items:center;gap:18px}
.theme-toggle{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--orange-soft);font:9px "DM Mono",monospace;cursor:pointer}
.theme-toggle:hover{background:#ff9a5214}
.theme-icon{font-size:15px;line-height:1}
.showcase-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:26px 0 70px}
.showcase-card{position:relative;display:flex;min-height:210px;flex-direction:column;align-items:flex-start;text-align:left;padding:25px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(145deg,rgba(32,25,20,.94),rgba(15,14,13,.92));color:var(--paper);cursor:pointer;overflow:hidden;transition:transform .2s,border-color .2s}
.showcase-card:hover{transform:translateY(-3px);border-color:var(--orange)}
.showcase-card .card-meta{font:9px "DM Mono",monospace;color:var(--orange);letter-spacing:.08em}
.showcase-card strong{font-size:clamp(24px,3vw,36px);line-height:1.05;margin:22px 0 8px}
.showcase-card p{max-width:460px;color:var(--muted);font-size:13px;line-height:1.6;margin:0 0 22px}
.showcase-card .card-open{margin-top:auto;font:9px "DM Mono",monospace;color:var(--orange)}
.showcase-article{background:linear-gradient(120deg,rgba(31,25,21,.95),rgba(14,14,14,.94)),url("assets/pcb-background.png") center/cover}
.showcase-pcb{background:linear-gradient(140deg,rgba(22,32,29,.94),rgba(14,14,14,.94))}
.article-reader-body .media-block{margin:34px 0;max-width:100%}
.article-reader-body .media-block img,.article-reader-body .media-block video{display:block;width:100%;height:auto;max-height:720px;object-fit:contain;border:1px solid var(--line);border-radius:6px}
.article-reader-body .media-block figcaption{margin-top:9px;color:var(--muted);font:10px "DM Mono",monospace}
.article-reader-body .content-block{margin:26px 0}
.article-reader-body .content-block h2{margin-bottom:12px}
.article-reader-body .content-block p{font-size:16px;line-height:1.85;max-width:72ch}
:root[data-theme="light"]{--bg:#f1eee9;--paper:#24211e;--muted:#6e665f;--orange:#c66b2c;--orange-soft:#a95620;--line:#9d5c3338;--panel:#ffffffed}
:root[data-theme="light"] body{background:var(--bg);color:var(--paper)}
:root[data-theme="light"] .site-header{background:#f5f1ebed;border-bottom-color:#9d5c3340}
:root[data-theme="light"] .nav-link,:root[data-theme="light"] .back-link{color:#62584f}
:root[data-theme="light"] .nav-link:hover,:root[data-theme="light"] .nav-link.active{color:#9f4e19;border-color:#bd6b374d;background:#bd6b3714}
:root[data-theme="light"] .system-status{color:#6e665f}
:root[data-theme="light"] .showcase-card{background:linear-gradient(145deg,rgba(255,252,247,.96),rgba(239,233,225,.95));color:#24211e}
:root[data-theme="light"] .showcase-article{background:linear-gradient(120deg,rgba(255,252,247,.94),rgba(239,233,225,.91)),url("assets/pcb-background.png") center/cover}
:root[data-theme="light"] .showcase-pcb{background:linear-gradient(140deg,rgba(238,242,237,.95),rgba(248,245,239,.94))}
:root[data-theme="light"] .article-filter,:root[data-theme="light"] .article-search input{color:#3d352e;background:#f7f3ed}
:root[data-theme="light"] .theme-toggle{color:#8f491c}
@media(max-width:900px){.site-header{flex-wrap:wrap}.header-tools{margin-left:auto}.showcase-grid{grid-template-columns:1fr}}
@media(max-width:560px){.header-tools{gap:8px}.system-status{display:none}.showcase-card{min-height:185px;padding:20px}}


/* V3.1 LIGHT THEME REFINEMENT — reader-first contrast, preserving layout and artwork */
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#f6f4ef;
  --paper:#242321;
  --muted:#655f58;
  --orange:#b95f25;
  --orange-soft:#984817;
  --line:#9a5a3038;
  --panel:#fffdf9;
}
:root[data-theme="light"] body{background:#f6f4ef;color:#242321}
:root[data-theme="light"] .site-bg{background:#f6f4ef}
:root[data-theme="light"] .site-bg img{opacity:.30;filter:saturate(.72) brightness(1.12)}
:root[data-theme="light"] .site-bg canvas{opacity:.34!important;filter:saturate(.72)}
:root[data-theme="light"] .bg-shade{
  background:linear-gradient(90deg,rgba(248,246,241,.70),rgba(248,246,241,.66) 34%,rgba(248,246,241,.60) 68%,rgba(248,246,241,.66)),
             linear-gradient(0deg,rgba(248,246,241,.48),rgba(248,246,241,.08) 48%,rgba(248,246,241,.30))
}
:root[data-theme="light"] .site-header{background:rgba(248,246,241,.96);border-bottom-color:#9a5a3038}
:root[data-theme="light"] .brand small,
:root[data-theme="light"] .system-status{color:#655f58}
:root[data-theme="light"] .nav-link,
:root[data-theme="light"] .back-link{color:#514a43}
:root[data-theme="light"] .nav-link:hover,
:root[data-theme="light"] .nav-link.active{color:#8f4317;background:#b95f2510;border-color:#b95f2548}
:root[data-theme="light"] .theme-toggle{color:#8f4317;background:#fffaf4;border-color:#b95f2548}
:root[data-theme="light"] .articles-index,
:root[data-theme="light"] .article-kicker,
:root[data-theme="light"] .article-meta,
:root[data-theme="light"] .article-row-index{color:#8d4b22}
:root[data-theme="light"] .articles-feature{
  background:linear-gradient(110deg,#fffdf9,#f0ece5);
  border-color:#b95f2550;
}
:root[data-theme="light"] .articles-feature-art{
  background:radial-gradient(circle at 50% 48%,#c06b3a20,transparent 48%),linear-gradient(145deg,#e5e9e3,#f7f4ee 75%);
}
:root[data-theme="light"] .articles-feature-art:before,
:root[data-theme="light"] .articles-feature-art:after{border-color:#9b653c66;box-shadow:0 0 0 24px #9b653c0b,0 0 0 50px #9b653c08}
:root[data-theme="light"] .articles-feature-art:after{background:linear-gradient(135deg,#d9e5dc,#f3eee5);box-shadow:0 18px 40px #5c4b3518,inset 0 0 0 1px #9b653c77}
:root[data-theme="light"] .articles-feature-art b{color:#78451f;text-shadow:none}
:root[data-theme="light"] .articles-feature-art>span,
:root[data-theme="light"] .articles-feature-art i{color:#78451f}
:root[data-theme="light"] .articles-feature-copy p,
:root[data-theme="light"] .article-row-copy p,
:root[data-theme="light"] .article-reader-head>p,
:root[data-theme="light"] .article-reader-body section p,
:root[data-theme="light"] .article-source-note p,
:root[data-theme="light"] .articles-editorial-note p{color:#514b44}
:root[data-theme="light"] .article-read{color:#914718;border-bottom-color:#b95f2566}
:root[data-theme="light"] .article-search input{
  color:#292622;background:#fffdf9;border-color:#9a5a3055;
}
:root[data-theme="light"] .article-search input::placeholder{color:#82786e}
:root[data-theme="light"] .article-filter{
  color:#554d45;background:#fffdf9;border-color:#9a5a3048;
}
:root[data-theme="light"] .article-filter:hover,
:root[data-theme="light"] .article-filter.active{color:#873f16;background:#b95f2510;border-color:#b95f25}
:root[data-theme="light"] .article-row{border-bottom-color:#5d51451e}
:root[data-theme="light"] .article-row:hover{background:linear-gradient(90deg,#b95f250a,transparent)}
:root[data-theme="light"] .article-arrow{color:#8f4318;background:#fffaf4;border-color:#b95f2555}
:root[data-theme="light"] .article-arrow:hover{background:#b95f25;color:#fff}
:root[data-theme="light"] .articles-editorial-note{
  background:#eee9e1;border-left-color:#b95f25;
}
:root[data-theme="light"] .article-reader-head{border-bottom-color:#9a5a3040}
:root[data-theme="light"] .article-reader-body section{border-bottom-color:#5d51451e}
:root[data-theme="light"] .article-reader-body .media-block img,
:root[data-theme="light"] .article-reader-body .media-block video{border-color:#9a5a3038}
:root[data-theme="light"] .article-reader-body .media-block figcaption{color:#6e655c}
:root[data-theme="light"] .article-source-note{background:#eee9e1;border-color:#b95f2550}
:root[data-theme="light"] .article-source-note strong{color:#8f4318}
:root[data-theme="light"] .showcase-card{color:#242321}
:root[data-theme="light"] .showcase-card p{color:#655f58}
:root[data-theme="light"] .showcase-card .card-meta,
:root[data-theme="light"] .showcase-card .card-open{color:#984817}


/* V3.1 LIGHT MODE ACCESSIBILITY FIXES */
:root[data-theme="light"] .page-title,
:root[data-theme="light"] .hero-title,
:root[data-theme="light"] .display,
:root[data-theme="light"] .section-heading h2,
:root[data-theme="light"] .philosophy h2,
:root[data-theme="light"] .maker-intro h1,
:root[data-theme="light"] .case-header h1 {
  color:#242321 !important;
  text-shadow:none !important;
}
:root[data-theme="light"] .page-intro,
:root[data-theme="light"] .hero-copy,
:root[data-theme="light"] .maker-bio,
:root[data-theme="light"] .philosophy-copy,
:root[data-theme="light"] .case-section p,
:root[data-theme="light"] .media-note,
:root[data-theme="light"] .build-note p,
:root[data-theme="light"] .journey-point p {
  color:#514b44 !important;
}
:root[data-theme="light"] .project-card,
:root[data-theme="light"] .build-note,
:root[data-theme="light"] .archive-card {
  background:linear-gradient(145deg,#fffdf9,#eee9e1) !important;
  color:#242321 !important;
  border-color:#9a5a3048 !important;
}
:root[data-theme="light"] .project-card h2,
:root[data-theme="light"] .project-card h3,
:root[data-theme="light"] .build-note h3,
:root[data-theme="light"] .archive-card h2,
:root[data-theme="light"] .archive-card h3 {
  color:#242321 !important;
  text-shadow:none !important;
}
:root[data-theme="light"] .project-card p,
:root[data-theme="light"] .archive-card p,
:root[data-theme="light"] .build-note p {
  color:#514b44 !important;
}
:root[data-theme="light"] .info-grid .info-card,
:root[data-theme="light"] .info-card {
  color:#f5f0e8;
}
:root[data-theme="light"] .info-card h2,
:root[data-theme="light"] .info-card h3,
:root[data-theme="light"] .info-card p,
:root[data-theme="light"] .info-card li {
  color:#f5f0e8;
}
:root[data-theme="light"] .article-row-copy h3,
:root[data-theme="light"] .article-row-copy h3 a {
  color:#242321 !important;
}
:root[data-theme="light"] .article-row-copy h3 a {
  display:inline;
  text-decoration:none;
}
:root[data-theme="light"] .article-row-copy h3 a:hover {
  color:#984817 !important;
  text-decoration:underline;
  text-decoration-color:#b95f2580;
  text-underline-offset:5px;
}


/* V3.1 FINAL THEME CONSISTENCY PASS
   Principle: high-contrast text only; no washed-out intermediate text shades.
   Keep the existing layout, circuit artwork, and orange accent system intact. */
:root[data-theme="light"] {
  --bg: #f6f4ef;
  --paper: #242321;
  --muted: #514b44;
  --orange: #c4662b;
  --orange-soft: #984817;
  --line: #c4662b55;
  --panel: #fffdf9;
  color-scheme: light;
}

/* Main light surfaces: use one clear dark text colour, not pale grey. */
:root[data-theme="light"] body,
:root[data-theme="light"] .page,
:root[data-theme="light"] .container,
:root[data-theme="light"] .hero-copy,
:root[data-theme="light"] .maker-copy,
:root[data-theme="light"] .maker-summary,
:root[data-theme="light"] .philosophy-copy,
:root[data-theme="light"] .case-copy,
:root[data-theme="light"] .case-header,
:root[data-theme="light"] .case-section,
:root[data-theme="light"] .pcb-hero-copy,
:root[data-theme="light"] .pcb-manifesto,
:root[data-theme="light"] .pcb-section-head,
:root[data-theme="light"] .pcb-intro-bar,
:root[data-theme="light"] .pcb-storage-note {
  color: #242321;
}

/* Titles and body copy across pages. */
:root[data-theme="light"] .display,
:root[data-theme="light"] .hero-title,
:root[data-theme="light"] .page-title,
:root[data-theme="light"] .maker-name,
:root[data-theme="light"] .section-heading h2,
:root[data-theme="light"] .philosophy h2,
:root[data-theme="light"] .case-header h1,
:root[data-theme="light"] .case-section h2,
:root[data-theme="light"] .case-section h3,
:root[data-theme="light"] .pcb-hero-copy h1,
:root[data-theme="light"] .pcb-manifesto h2,
:root[data-theme="light"] .pcb-section-head h2,
:root[data-theme="light"] .articles-heading h1,
:root[data-theme="light"] .articles-feature-copy h2,
:root[data-theme="light"] .article-row-copy h3 {
  color: #242321 !important;
  text-shadow: none !important;
}

:root[data-theme="light"] .hero-copy p,
:root[data-theme="light"] .page-intro,
:root[data-theme="light"] .maker-summary,
:root[data-theme="light"] .maker-copy p,
:root[data-theme="light"] .maker-role,
:root[data-theme="light"] .philosophy-copy p,
:root[data-theme="light"] .case-header p,
:root[data-theme="light"] .case-section p,
:root[data-theme="light"] .media-note,
:root[data-theme="light"] .build-note p,
:root[data-theme="light"] .journey-stop p,
:root[data-theme="light"] .pcb-hero-copy > p,
:root[data-theme="light"] .pcb-art-caption,
:root[data-theme="light"] .pcb-storage-note,
:root[data-theme="light"] .pcb-empty-state p,
:root[data-theme="light"] .profile-row p,
:root[data-theme="light"] .skill-row,
:root[data-theme="light"] .status-row,
:root[data-theme="light"] .beyond-row p,
:root[data-theme="light"] .articles-editorial-note p,
:root[data-theme="light"] .article-row-copy p,
:root[data-theme="light"] .article-reader-body p,
:root[data-theme="light"] .article-reader-head > p {
  color: #3f3933 !important;
  opacity: 1 !important;
}

/* Small labels remain orange, not greyed out. */
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .case-section .eyebrow,
:root[data-theme="light"] .pcb-art-caption,
:root[data-theme="light"] .journey-status,
:root[data-theme="light"] .card-meta,
:root[data-theme="light"] .article-kicker,
:root[data-theme="light"] .article-meta,
:root[data-theme="light"] .article-row-index,
:root[data-theme="light"] .articles-index {
  color: #984817 !important;
  opacity: 1 !important;
}

/* Dark cards/panels stay dark and must retain bright, readable text in light mode. */
:root[data-theme="light"] .project-card,
:root[data-theme="light"] .info-card,
:root[data-theme="light"] .maker-panel,
:root[data-theme="light"] .maker-panel.beyond-panel,
:root[data-theme="light"] .maker-panel.skills-panel,
:root[data-theme="light"] .showcase-card.showcase-project,
:root[data-theme="light"] .showcase-card:not(.showcase-article):not(.showcase-pcb),
:root[data-theme="light"] .pcb-assets-panel,
:root[data-theme="light"] .pcb-workbench,
:root[data-theme="light"] .status-card {
  color: #f5f0e8 !important;
}
:root[data-theme="light"] .project-card h1,
:root[data-theme="light"] .project-card h2,
:root[data-theme="light"] .project-card h3,
:root[data-theme="light"] .project-card p,
:root[data-theme="light"] .project-card span,
:root[data-theme="light"] .info-card h1,
:root[data-theme="light"] .info-card h2,
:root[data-theme="light"] .info-card h3,
:root[data-theme="light"] .info-card p,
:root[data-theme="light"] .info-card li,
:root[data-theme="light"] .maker-panel h1,
:root[data-theme="light"] .maker-panel h2,
:root[data-theme="light"] .maker-panel h3,
:root[data-theme="light"] .maker-panel p,
:root[data-theme="light"] .maker-panel li,
:root[data-theme="light"] .showcase-project h1,
:root[data-theme="light"] .showcase-project h2,
:root[data-theme="light"] .showcase-project h3,
:root[data-theme="light"] .showcase-project p,
:root[data-theme="light"] .showcase-project span,
:root[data-theme="light"] .pcb-assets-panel *,
:root[data-theme="light"] .pcb-workbench *,
:root[data-theme="light"] .status-card * {
  color: #f5f0e8;
  opacity: 1;
}
:root[data-theme="light"] .project-card .card-meta,
:root[data-theme="light"] .project-card .card-open,
:root[data-theme="light"] .maker-panel .eyebrow,
:root[data-theme="light"] .info-card .eyebrow {
  color: #f2a36d !important;
}

/* Light-mode cards on light surfaces: dark type, clear borders, no ghosting. */
:root[data-theme="light"] .build-note,
:root[data-theme="light"] .archive-card,
:root[data-theme="light"] .articles-feature,
:root[data-theme="light"] .articles-editorial-note,
:root[data-theme="light"] .article-source-note {
  color: #242321;
}
:root[data-theme="light"] .build-note h1,
:root[data-theme="light"] .build-note h2,
:root[data-theme="light"] .build-note h3,
:root[data-theme="light"] .archive-card h1,
:root[data-theme="light"] .archive-card h2,
:root[data-theme="light"] .archive-card h3,
:root[data-theme="light"] .articles-feature-copy h2,
:root[data-theme="light"] .articles-editorial-note strong,
:root[data-theme="light"] .article-source-note strong {
  color: #242321 !important;
}
:root[data-theme="light"] .build-note p,
:root[data-theme="light"] .archive-card p,
:root[data-theme="light"] .articles-feature-copy p,
:root[data-theme="light"] .articles-editorial-note p,
:root[data-theme="light"] .article-source-note p {
  color: #3f3933 !important;
}

/* Preserve artwork and animation: do not wash out project illustrations or the PCB canvas. */
:root[data-theme="light"] .site-bg img {
  opacity: .30 !important;
  filter: saturate(.90) brightness(1.02) !important;
}
:root[data-theme="light"] .site-bg canvas {
  opacity: .38 !important;
  filter: saturate(.92) !important;
}
:root[data-theme="light"] .bg-shade {
  background:
    linear-gradient(90deg, rgba(248,246,241,.60), rgba(248,246,241,.50) 34%, rgba(248,246,241,.42) 68%, rgba(248,246,241,.48)),
    linear-gradient(0deg, rgba(248,246,241,.38), rgba(248,246,241,.04) 48%, rgba(248,246,241,.20)) !important;
}

/* Keep copper/orange rules, outlines, diagram paths and interactive states crisp. */
:root[data-theme="light"] .rule,
:root[data-theme="light"] .line,
:root[data-theme="light"] .case-section,
:root[data-theme="light"] .profile-divider,
:root[data-theme="light"] .pcb-process-line {
  border-color: #bd642b66;
}
:root[data-theme="light"] .journey-point {
  border-color: #bd642b;
  box-shadow: 0 0 0 7px #bd642b18;
}
:root[data-theme="light"] .journey-point span {
  color: #f5a16a !important;
}
:root[data-theme="light"] .pcb-hero-art,
:root[data-theme="light"] .pcb-board-model,
:root[data-theme="light"] .pcb-model-traces,
:root[data-theme="light"] .pcb-preview-gallery,
:root[data-theme="light"] .case-media img,
:root[data-theme="light"] .case-media svg {
  opacity: 1 !important;
  filter: none !important;
}

/* Theme switch and navigation remain legible in both themes. */
:root[data-theme="light"] .site-header {
  background: rgba(248,246,241,.97);
  border-bottom-color: #bd642b55;
}
:root[data-theme="light"] .nav-link,
:root[data-theme="light"] .back-link,
:root[data-theme="light"] .system-status,
:root[data-theme="light"] .brand small {
  color: #292622 !important;
}
:root[data-theme="light"] .theme-toggle {
  color: #984817 !important;
  background: #fffdf9;
  border-color: #bd642b88;
}
:root[data-theme="light"] .button.secondary {
  color: #242321 !important;
  background: #fffaf4;
  border-color: #bd642b88;
}


/* V3.1 targeted correction: About + The Lab dark cards in LIGHT mode.
   These panels intentionally remain dark; every text node inside them must be bright. */
:root[data-theme="light"] .quick-profile,
:root[data-theme="light"] .quick-profile h3,
:root[data-theme="light"] .quick-profile strong,
:root[data-theme="light"] .quick-profile p,
:root[data-theme="light"] .quick-profile span,
:root[data-theme="light"] .quick-profile div {
  color: #fff7ef !important;
  opacity: 1 !important;
}
:root[data-theme="light"] .quick-profile .profile-icon {
  color: #ff9a52 !important;
}
:root[data-theme="light"] .quick-profile .profile-divider {
  background: linear-gradient(90deg, #ff9a52, rgba(255,154,82,.24)) !important;
}
:root[data-theme="light"] .maker-panel,
:root[data-theme="light"] .maker-panel h3,
:root[data-theme="light"] .maker-panel li,
:root[data-theme="light"] .maker-panel p,
:root[data-theme="light"] .maker-panel strong,
:root[data-theme="light"] .maker-panel b,
:root[data-theme="light"] .maker-panel span {
  color: #fff7ef !important;
  opacity: 1 !important;
}
:root[data-theme="light"] .maker-panel h3 .panel-icon,
:root[data-theme="light"] .maker-panel h3 span,
:root[data-theme="light"] .maker-panel li::before {
  color: #ff9a52 !important;
}
:root[data-theme="light"] .maker-panel .skill-row b {
  color: #ff9a52 !important;
  border-color: #ff9a52 !important;
}
:root[data-theme="light"] .maker-panel .beyond-row p {
  color: #fff7ef !important;
}
:root[data-theme="light"] .info-card,
:root[data-theme="light"] .info-card h3,
:root[data-theme="light"] .info-card h3.display,
:root[data-theme="light"] .info-card p,
:root[data-theme="light"] .info-card span {
  color: #fff7ef !important;
  opacity: 1 !important;
}
:root[data-theme="light"] .info-card span {
  color: #ff9a52 !important;
}

/* These are dark cards on a light page: preserve their dark surface and use bright text. */
:root[data-theme="light"] .quick-profile,
:root[data-theme="light"] .maker-panel,
:root[data-theme="light"] .info-card {
  background: linear-gradient(145deg, rgba(34,30,27,.98), rgba(22,21,20,.98)) !important;
  border-color: #bd642b !important;
  box-shadow: 0 10px 28px rgba(45,30,18,.14);
}

/* Replace the old busy dark-mode circuit artwork with the user's clean schematic
   only while LIGHT mode is active. Dark mode continues to use pcb-background.png. */
:root[data-theme="light"] .site-bg {
  background: #ffffff !important;
}
:root[data-theme="light"] .site-bg img {
  content: url("assets/light-mode-mcu-circuit.png");
  opacity: 1 !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: none !important;
}
:root[data-theme="light"] .bg-shade {
  background: rgba(255,255,255,0.05) !important;
}
:root[data-theme="light"] .site-bg canvas {
  opacity: .08 !important;
  filter: none !important;
}

/* Preserve bright-on-dark text for the same components in programmer/dark mode. */
:root[data-theme="dark"] .quick-profile,
:root[data-theme="dark"] .quick-profile h3,
:root[data-theme="dark"] .quick-profile strong,
:root[data-theme="dark"] .quick-profile p,
:root[data-theme="dark"] .maker-panel,
:root[data-theme="dark"] .maker-panel h3,
:root[data-theme="dark"] .maker-panel li,
:root[data-theme="dark"] .maker-panel p,
:root[data-theme="dark"] .info-card,
:root[data-theme="dark"] .info-card h3,
:root[data-theme="dark"] .info-card p {
  color: #f5f0e8 !important;
  opacity: 1 !important;
}


/* V3.1.1: calm the LIGHT-mode schematic so it reads as background, not foreground.
   The image remains visible as a technical texture; the white veil sits behind page content. */
:root[data-theme="light"] body {
  background: #fbfaf7 !important;
}
:root[data-theme="light"] .site-bg {
  background: #fbfaf7 !important;
}
:root[data-theme="light"] .site-bg img {
  content: url("assets/light-mode-mcu-circuit.png");
  opacity: .42 !important;
  filter: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}
:root[data-theme="light"] .bg-shade {
  background: rgba(251,250,247,.78) !important;
}
:root[data-theme="light"] .site-bg canvas {
  opacity: .035 !important;
  filter: none !important;
}
/* Keep dark-mode art and animation untouched. */


/* V3.1.2 — consistent dark content panels on Projects + Articles in LIGHT mode.
   Match the successful About/Lab card treatment: warm-white type, solid charcoal surface,
   crisp copper outline. No translucent text or washed-out card fills. */
:root[data-theme="light"] .archive-grid .project-card,
:root[data-theme="light"] .project-grid .project-card,
:root[data-theme="light"] .project-card {
  background: linear-gradient(145deg, #24211f 0%, #171615 100%) !important;
  color: #fff7ef !important;
  border: 1px solid #c8753b !important;
  box-shadow: 0 10px 28px rgba(35,25,18,.12) !important;
  opacity: 1 !important;
}
:root[data-theme="light"] .project-card strong,
:root[data-theme="light"] .project-card h1,
:root[data-theme="light"] .project-card h2,
:root[data-theme="light"] .project-card h3,
:root[data-theme="light"] .project-card p,
:root[data-theme="light"] .project-card li,
:root[data-theme="light"] .project-card span:not(.card-meta):not(.card-open) {
  color: #fff7ef !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .project-card .card-meta,
:root[data-theme="light"] .project-card .card-open {
  color: #ff9a52 !important;
  opacity: 1 !important;
}

/* Articles: each entry becomes a readable dark editorial card; title remains clickable. */
:root[data-theme="light"] .article-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 34px;
  gap: 16px;
  align-items: center;
  margin: 0 0 14px !important;
  padding: 22px 24px !important;
  border: 1px solid #c8753b !important;
  border-radius: 9px !important;
  background: linear-gradient(145deg, #24211f 0%, #171615 100%) !important;
  box-shadow: 0 8px 22px rgba(35,25,18,.10) !important;
}
:root[data-theme="light"] .article-row-index,
:root[data-theme="light"] .article-row .article-kicker,
:root[data-theme="light"] .article-row .article-meta {
  color: #ff9a52 !important;
  opacity: 1 !important;
}
:root[data-theme="light"] .article-row-copy h3,
:root[data-theme="light"] .article-row-copy h3 a,
:root[data-theme="light"] .article-row-copy p,
:root[data-theme="light"] .article-row-copy div {
  color: #fff7ef !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .article-row-copy h3 a:hover {
  color: #ffb27a !important;
}
:root[data-theme="light"] .article-row > a,
:root[data-theme="light"] .article-row .article-open,
:root[data-theme="light"] .article-row [data-open-article] {
  color: #ff9a52 !important;
}
:root[data-theme="light"] .articles-feature {
  background: linear-gradient(145deg, #24211f 0%, #171615 100%) !important;
  color: #fff7ef !important;
  border: 1px solid #c8753b !important;
  border-radius: 10px !important;
}
:root[data-theme="light"] .articles-feature-copy h1,
:root[data-theme="light"] .articles-feature-copy h2,
:root[data-theme="light"] .articles-feature-copy h3,
:root[data-theme="light"] .articles-feature-copy p,
:root[data-theme="light"] .articles-feature-copy span {
  color: #fff7ef !important;
  opacity: 1 !important;
}
:root[data-theme="light"] .articles-feature-copy .article-kicker {
  color: #ff9a52 !important;
}

/* V3.1.1: calm the LIGHT-mode schematic so it reads as background, not foreground.
   The image remains visible as a technical texture; the white veil sits behind page content. */
:root[data-theme="light"] body {
  background: #fbfaf7 !important;
}
:root[data-theme="light"] .site-bg {
  background: #fbfaf7 !important;
}
:root[data-theme="light"] .site-bg img {
  content: url("assets/light-mode-mcu-circuit.png");
  opacity: .42 !important;
  filter: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}
:root[data-theme="light"] .bg-shade {
  background: rgba(251,250,247,.78) !important;
}
:root[data-theme="light"] .site-bg canvas {
  opacity: .035 !important;
  filter: none !important;
}
/* Keep dark-mode art and animation untouched. */


/* V3.1.3 — restore V3.1.1 background treatment; improve project label contrast. */
:root[data-theme="light"] .project-card .card-meta,
:root[data-theme="light"] .project-card .card-open,
:root[data-theme="light"] .project-card .archive-status {
  color: #b94f12 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}
:root[data-theme="light"] .project-card:hover .card-meta,
:root[data-theme="light"] .project-card:hover .card-open,
:root[data-theme="light"] .project-card:hover .archive-status {
  color: #e56b22 !important;
}

/* V3.1.4 — background hierarchy + journey label contrast.
   Keep the home page expressive; make the circuit a quiet texture elsewhere. */
:root[data-theme="light"] .site-bg img {
  opacity: .10 !important;
  filter: none !important;
}
:root[data-theme="light"] .site-bg canvas {
  opacity: .01 !important;
  filter: none !important;
}
:root[data-theme="light"] .bg-shade {
  background: rgba(251,250,247,.12) !important;
}
:root[data-theme="light"] body:has(#home.active) .site-bg img {
  opacity: .42 !important;
}
:root[data-theme="light"] body:has(#home.active) .site-bg canvas {
  opacity: .035 !important;
}
:root[data-theme="light"] body:has(#home.active) .bg-shade {
  background: rgba(251,250,247,.78) !important;
}

/* Journey/process labels must be solid ink on the light canvas — never pale orange. */
:root[data-theme="light"] .journey-stop h3,
:root[data-theme="light"] .timeline-heading h3,
:root[data-theme="light"] .timeline-copy strong {
  color: #211f1c !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .journey-stop p,
:root[data-theme="light"] .timeline-copy p {
  color: #39342f !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
:root[data-theme="light"] .journey-point span,
:root[data-theme="light"] .timeline-marker span {
  color: #ffb477 !important;
  opacity: 1 !important;
}
:root[data-theme="light"] .journey-point,
:root[data-theme="light"] .timeline-marker span {
  background: #211f1c !important;
  border-color: #bd642b !important;
}

/* V3.1.5 — definitive light-mode contrast fix for SVG flow timelines.
   The five-step labels are SVG <text> nodes with inline presentation fills, so
   ordinary journey-heading rules never reached them. Keep marker numbers orange;
   force every actual title/description to solid ink in LIGHT mode. */
:root[data-theme="light"] #project-detail .system-illustration g > text:nth-of-type(2) {
  fill: #211f1c !important;
  opacity: 1 !important;
  stroke: none !important;
  filter: none !important;
}
:root[data-theme="light"] #project-detail .system-illustration g > text:nth-of-type(3) {
  fill: #39342f !important;
  opacity: 1 !important;
  stroke: none !important;
  filter: none !important;
}
:root[data-theme="light"] #project-detail .system-illustration g > text:first-of-type {
  fill: #ff9a52 !important;
  opacity: 1 !important;
}
:root[data-theme="light"] #project-detail .timeline-heading h3,
:root[data-theme="light"] #project-detail .timeline-copy p,
:root[data-theme="light"] #project-detail .journey-stop h3,
:root[data-theme="light"] #project-detail .journey-stop p {
  color: #211f1c !important;
  opacity: 1 !important;
  text-shadow: none !important;
  filter: none !important;
}
:root[data-theme="light"] #project-detail .timeline-status,
:root[data-theme="light"] #project-detail .journey-status {
  color: #984817 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Non-home LIGHT-mode pages: background image itself is capped at 5%.
   Home page keeps the established V3.1.1 treatment. Dark mode is untouched. */
:root[data-theme="light"] body:not(:has(#home.active)) .site-bg img {
  opacity: .05 !important;
}
:root[data-theme="light"] body:not(:has(#home.active)) .site-bg canvas {
  opacity: 0 !important;
}
:root[data-theme="light"] body:not(:has(#home.active)) .bg-shade {
  background: rgba(251,250,247,.20) !important;
}
:root[data-theme="light"] body:has(#home.active) .site-bg img {
  opacity: .42 !important;
}
:root[data-theme="light"] body:has(#home.active) .site-bg canvas {
  opacity: .035 !important;
}
:root[data-theme="light"] body:has(#home.active) .bg-shade {
  background: rgba(251,250,247,.78) !important;
}

/* V3.1.6 — public, read-only PCB gallery and shared asset inspector */
.pcb-design-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding-top:24px}
.pcb-library-loading,.pcb-library-empty{grid-column:1/-1;padding:clamp(30px,5vw,64px);border:1px solid #a66b4855;background:rgba(20,19,17,.88);color:#f5f0e8}
.pcb-library-empty .eyebrow{color:#ff9a52}.pcb-library-empty h3{font-size:clamp(30px,4vw,48px);margin:14px 0;letter-spacing:-.05em}.pcb-library-empty p{max-width:680px;color:#d5cbc2;line-height:1.7;margin:0}
.pcb-design-card{min-width:0;border:1px solid #a66b4866;background:rgba(20,19,17,.92);color:#f5f0e8;box-shadow:0 14px 35px #0002;overflow:hidden}
.pcb-design-toggle{display:grid;grid-template-rows:auto 1fr;width:100%;height:100%;padding:0;text-align:left;border:0;background:transparent;color:inherit;cursor:pointer}
.pcb-design-thumb{aspect-ratio:1.55;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at center,#244b3d,#0a1513 72%);border-bottom:1px solid #a66b484d}
.pcb-design-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.pcb-design-toggle:hover .pcb-design-thumb img{transform:scale(1.035)}
.pcb-design-thumb>span{font:11px "DM Mono",monospace;letter-spacing:.18em;color:#ffad72}
.pcb-design-info{padding:20px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.pcb-design-info .eyebrow{color:#ff9a52;font:9px "DM Mono",monospace;letter-spacing:.12em}.pcb-design-info h3{font-size:clamp(22px,2.4vw,30px);line-height:1.05;letter-spacing:-.045em;margin:0;color:#fff}.pcb-design-info p{font-size:13px;line-height:1.6;color:#d4c9bf;margin:0}.pcb-design-hint{font:9px "DM Mono",monospace;letter-spacing:.1em;color:#ffad72;margin-top:8px}
.pcb-design-files{padding:0 16px 16px;display:grid;grid-template-columns:1fr;gap:8px}.pcb-design-files[hidden]{display:none}.pcb-asset-link{display:grid;grid-template-columns: minmax(110px,.55fr) 1fr auto;align-items:center;gap:12px;text-align:left;padding:13px 14px;border:1px solid #a66b4855;background:#100f0e;color:#f5f0e8;cursor:pointer}.pcb-asset-link:hover,.pcb-asset-link:focus-visible{border-color:#ff9a52;background:#1c1713}.pcb-asset-link>span:first-child{font:8px "DM Mono",monospace;letter-spacing:.08em;color:#ffad72}.pcb-asset-link strong{font-size:12px;overflow-wrap:anywhere}.pcb-asset-link>span:last-child{font:8px "DM Mono",monospace;color:#ffad72}.pcb-no-assets{font-size:12px;color:#c9bcb1;padding:8px 4px;margin:0}
.pcb-library-viewer{padding:clamp(55px,7vw,95px) 0;border-bottom:1px solid #ffffff20;scroll-margin-top:90px}.pcb-viewer-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 18px;background:#171513;border:1px solid #a66b4855;color:#f5f0e8}.pcb-viewer-toolbar label,.pcb-viewer-footer{font:9px "DM Mono",monospace;letter-spacing:.1em;color:#ffad72}.pcb-viewer-toolbar select{min-width:240px;max-width:100%;padding:10px 12px;background:#0c0c0b;color:#f5f0e8;border:1px solid #8e6045;font:12px "Space Grotesk",sans-serif}.pcb-viewer-toolbar select:disabled{opacity:.55}.pcb-viewer-toolbar>span{font:10px "DM Mono",monospace;color:#c9b9ac}.pcb-library-stage{min-height:520px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at center,#17251f,#090b0a 75%);border:1px solid #a66b4855;border-top:0}.pcb-library-stage img{display:block;max-width:100%;max-height:78vh;object-fit:contain}.pcb-library-stage iframe{width:100%;height: min(78vh,900px);min-height:520px;border:0;background:#fff}.pcb-library-stage model-viewer{width:100%;height: min(78vh,900px);min-height:520px}.pcb-stage-placeholder{max-width:480px;padding:40px;text-align:center}.pcb-stage-placeholder .eyebrow{color:#ff9a52}.pcb-stage-placeholder p,.pcb-stage-error{color:#d1c6bc;font-size:14px;line-height:1.7}.pcb-viewer-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 18px;border:1px solid #a66b4855;border-top:0}.pcb-viewer-footer a{color:#ffad72;text-decoration:none}.pcb-viewer-footer a:hover{text-decoration:underline}
@media(max-width:950px){.pcb-design-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.pcb-design-grid{grid-template-columns:1fr}.pcb-asset-link{grid-template-columns:1fr auto}.pcb-asset-link>span:first-child{grid-column:1/-1}.pcb-library-stage{min-height:360px}.pcb-library-stage iframe,.pcb-library-stage model-viewer{min-height:360px}.pcb-viewer-toolbar{align-items:flex-start;flex-direction:column}.pcb-viewer-toolbar select{width:100%}.pcb-viewer-footer{align-items:flex-start;flex-direction:column}}


/* Data-backed project archive states; visual treatment follows the existing workshop panels. */
.project-archive-empty,.archive-load-error,.archive-loading{grid-column:1/-1;padding:34px;border:1px solid var(--line);border-radius:10px;background:var(--panel,rgba(18,17,15,.72));color:var(--muted)}
.project-archive-empty .eyebrow{display:block;margin-bottom:12px}
.project-archive-empty h3{font-size:clamp(25px,4vw,38px);margin:0 0 10px;color:var(--text)}
.project-archive-empty p,.archive-load-error{font-size:13px;line-height:1.7}


/* Keep keyboard focus visible across public and admin-facing controls. */
:focus-visible{outline:2px solid var(--orange);outline-offset:3px}


/* Keyboard-accessible skip navigation; visually hidden until focused. */
.skip-link{position:fixed;top:12px;left:12px;z-index:1000;transform:translateY(-160%);padding:12px 16px;border:2px solid var(--orange);border-radius:5px;background:#0b0b0c;color:var(--paper);font:12px "DM Mono",monospace;transition:transform .15s ease}
.skip-link:focus{transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.skip-link{transition:none}}


/* V3.1.8 — browser zoom reduces the CSS viewport even on a desktop monitor.
   Switch the About hero to a true stacked layout before the portrait overlaps
   the Quick Profile card; 1100px covers common 200% zoom desktop viewports. */
@media(max-width:1100px){
  #about .maker-hero{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:20px;
    padding-bottom:22px;
  }
  #about .maker-copy{max-width:none;order:1}
  #about .maker-name{white-space:normal;font-size:clamp(40px,7vw,62px)}
  #about .maker-portrait-wrap{
    position:relative;
    left:auto;
    bottom:auto;
    width:100%;
    height:300px;
    min-height:300px;
    order:2;
    opacity:1;
  }
  #about .maker-portrait{width:auto;max-width:100%;max-height:330px}
  #about .portrait-orbit{top:0;width:280px}
  #about .quick-profile{order:3}
  #about .maker-panels{grid-template-columns:repeat(2,minmax(0,1fr))}
  #about .beyond-panel{grid-column:1/-1}
}
@media(max-width:600px){
  #about .maker-panels{grid-template-columns:1fr}
  #about .beyond-panel{grid-column:auto}
}
