:root{color-scheme:dark}.header-actions{display:flex;align-items:center;gap:24px}.theme-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);padding:8px 12px;background:transparent;color:var(--white);font-size:12px;border-radius:4px}.theme-toggle:hover{border-color:var(--red)}.theme-toggle>span:first-child{font-size:18px;line-height:1}.expertise-section{padding-top:100px}.expertise-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}.expertise-grid article{padding:30px;border-bottom:1px solid var(--line);border-right:1px solid var(--line)}.expertise-category{font-size:11px;color:var(--red);letter-spacing:1.3px}.expertise-grid h3{font:500 24px/1.4 'Manrope',sans-serif;letter-spacing:-.6px;margin:12px 0}.expertise-grid p{font-size:14px;line-height:1.9;color:var(--muted);max-width:480px}.expertise-grid .tags{margin-bottom:0}
:root[data-theme="light"]{color-scheme:light;--bg:#f6f7f4;--panel:#fff;--white:#1b231d;--muted:#535d51;--line:#ced4c9;--red:#b9392d;--green:#476835}
[data-theme="light"] nav,[data-theme="light"] .eyebrow,[data-theme="light"] .coordinate{color:#4d5949}
[data-theme="light"] .hero-bottom,[data-theme="light"] .lab-footnote,[data-theme="light"] .contact-note,[data-theme="light"] footer>span,[data-theme="light"] footer>a:last-child{color:#5a6654}
[data-theme="light"] .project{background:#fff}
[data-theme="light"] .project-info p,[data-theme="light"] .timeline p{color:#505d49}
[data-theme="light"] .project-info .tags span,[data-theme="light"] .expertise-grid .tags span{border-color:#c5cebd;color:#45563c}
[data-theme="light"] .project-details summary,[data-theme="light"] .company,[data-theme="light"] .interest-list{color:#35452e}
[data-theme="light"] .timeline-label{color:#5a6b51}
[data-theme="light"] .primary{background:#b9392d;color:#fff}
[data-theme="light"] .primary:hover{background:#962d23}
[data-theme="light"] .portrait-frame{border-color:#aab3a1}
/* The lab and project schematics retain their technical dark surfaces in both themes. */
[data-theme="light"] .factory-console{--line:#30382b;--green:#b6d6a1;color:#f1f1e9;box-shadow:0 18px 55px #2b372014;color-scheme:dark}
[data-theme="light"] .project-art{color:#f1f1e9}
[data-theme="light"] .incident-row small{color:#a8b49b}
@media(max-width:1100px){nav{gap:20px}.header-actions{gap:15px}.header-actions .header-link{display:none}}
@media(max-width:700px){nav{gap:15px}.header-actions{gap:0}.theme-toggle{padding:7px 9px;font-size:11px;gap:6px}.expertise-section{padding-top:65px}.expertise-grid{grid-template-columns:1fr}.expertise-grid article{padding:24px}.expertise-grid h3{font-size:22px}.site-header{gap:14px}nav a:nth-child(2){display:none}}
@media(max-width:390px){#theme-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.theme-toggle{width:34px;height:34px;justify-content:center}}

/* Editorial layout for the personal portfolio. */
.hero h1{font-weight:500;letter-spacing:-4px}.hero-copy{max-width:620px;font-size:17px}.hero-bottom{letter-spacing:1px}.section-heading .eyebrow,.about-section>.eyebrow,.experience-intro>.eyebrow{letter-spacing:1px}.expertise-grid{display:block;border-left:0}.expertise-grid article{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:0 50px;padding:28px 0;border-right:0}.expertise-category{grid-column:1;grid-row:1}.expertise-grid h3{grid-column:1;grid-row:2;margin:8px 0}.expertise-grid p{grid-column:2;grid-row:1 / span 2;margin:0}.expertise-grid .tags{grid-column:2;margin-top:15px}.contact-note{text-align:left}.hero-actions .text-link{font-size:14px}
@media(max-width:700px){.hero h1{font-size:72px;letter-spacing:-3px}.hero-copy{font-size:16px}.expertise-grid article{display:block;padding:25px 0}.expertise-grid p{margin:15px 0}.expertise-grid h3{margin-top:10px}}

