:root{color-scheme:dark;--bg:#0c1117;--surface:#121a23;--line:#29343f;--text:#eef2f5;--muted:#a3afbd;--accent:#87deca}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:28px}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit}::selection{background:var(--accent);color:var(--bg)}nav,main{width:min(1120px,88%);margin:auto}nav{height:96px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.logo{font-size:25px;font-weight:750;letter-spacing:-1px}.logo span{margin-left:6px;color:var(--accent)}.links{display:flex;gap:32px;font-size:13px;color:var(--muted)}a:hover{color:var(--accent)}.hero{display:grid;grid-template-columns:1.5fr 1fr;align-items:center;gap:64px;padding:100px 0 112px}.eyebrow{font-family:monospace;font-size:11px;line-height:1.6;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent)}.hero .eyebrow{display:flex;align-items:center;gap:10px}.dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--accent)}h1{font-size:clamp(48px,6.5vw,78px);line-height:1.06;letter-spacing:-3.5px;margin:27px 0;font-weight:650}h1>span{display:block;font-size:clamp(25px,3vw,37px);font-weight:400;color:var(--muted);line-height:1.3;letter-spacing:-1px;margin-top:22px}.lead{font-size:16px;line-height:1.85;color:var(--muted);max-width:505px;margin:0}.hero-actions{display:flex;align-items:center;gap:25px;margin-top:30px;flex-wrap:wrap}.cta{display:inline-flex;gap:30px;align-items:center;padding:15px 22px;background:var(--accent);color:#0c211c;border-radius:6px;font-size:13px;font-weight:600}.cta:hover{background:#b6eedf;color:#0c211c}.resume-link{font-size:13px;text-decoration:underline;text-underline-offset:6px}.hero-social{display:flex;gap:23px;color:var(--muted);font-size:12px;margin-top:28px}.signal-art{border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,#16222d,#10171e);overflow:hidden;transform:rotate(3deg)}.signal-art svg{display:block;width:100%;height:auto}.art-label,.art-footer{padding:22px 24px;font:10px monospace;letter-spacing:1.5px;color:var(--muted)}.art-label{border-bottom:1px solid var(--line)}.art-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between}section{padding:75px 0;border-top:1px solid var(--line)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:30px}h2{font-weight:550;font-size:clamp(32px,4vw,44px);letter-spacing:-1.5px;line-height:1.15;margin:12px 0 0}.section-head p{max-width:360px;font-size:14px;line-height:1.8;color:var(--muted);margin:0}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.project{min-width:0;padding:26px;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:10px;transition:border-color .2s}.project:hover{border-color:#587c75}.project[hidden]{display:none}.project-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.project-top .eyebrow{font-size:9px;letter-spacing:1px;color:var(--muted)}.project-symbol{font-size:20px;color:var(--accent)}.project h3{font-size:20px;font-weight:550;line-height:1.35;letter-spacing:-.4px;margin:24px 0 12px}.project p{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 22px}.tech{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto}.tech span{font:10px monospace;line-height:1.5;color:#bfccd6;background:#1c2833;padding:5px 8px;border-radius:4px}.project-link{display:flex;justify-content:space-between;font-size:12px;border-top:1px solid var(--line);margin-top:23px;padding-top:16px;color:var(--accent)}.project-note{font-size:10px;line-height:1.6;color:var(--muted);margin-top:16px}.career-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:85px;margin-top:40px}.timeline article{border-left:1px solid #40514e;position:relative;padding:0 0 35px 25px}.timeline article:before{content:'';position:absolute;top:4px;left:-4px;width:7px;height:7px;background:var(--accent);border-radius:50%}.timeline .eyebrow{font-size:10px;letter-spacing:.8px;color:var(--muted)}.timeline h3{font-size:19px;font-weight:500;margin:13px 0}.timeline p,.toolkit p{font-size:13px;line-height:1.85;color:var(--muted);margin:0}.toolkit>div{margin-bottom:22px}.toolkit h3{font-size:12px;font-weight:550;margin:0 0 8px}.education{margin-top:25px;padding:25px 0 0;border-top:1px solid var(--line)}.education h3{font-size:18px;font-weight:500;margin:12px 0}.education p,.education>span:last-child{font-size:13px;line-height:1.8;color:var(--muted);margin:0}.contact{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:50px;padding:70px 0 85px}.contact h2{font-size:clamp(32px,4vw,44px)}.contact-details p{font-size:14px;color:var(--muted);line-height:1.8;margin:0 0 22px}.email{font-size:clamp(14px,1.7vw,19px);color:var(--accent);overflow-wrap:anywhere}.socials{display:flex;gap:25px;font-size:12px;margin-top:24px}.socials a{color:var(--muted)}footer{border-top:1px solid var(--line);padding:28px 0;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font:10px monospace;line-height:1.8}.skip-link{position:absolute;top:-80px;left:20px;background:var(--accent);color:var(--bg);padding:12px;z-index:5}.skip-link:focus{top:10px}:focus-visible{outline:2px solid var(--accent);outline-offset:5px}@media(min-width:1000px){#academic .project{grid-column:span 3;display:grid;grid-template-columns:1fr 1.4fr;gap:0 45px}#academic .project .project-top{grid-column:1}#academic .project h3{grid-column:1;margin:14px 0}#academic .project p{grid-column:2;grid-row:1 / span 2;margin:0;align-self:center}#academic .project .tech{grid-column:1}#academic .project .project-note{grid-column:2}}@media(max-width:999px){.hero{gap:35px;padding:75px 0}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.career-grid{gap:45px}.signal-art{transform:none}}@media(max-width:650px){nav,main{width:88%}nav{height:76px}.links{gap:20px;font-size:12px}.hero{grid-template-columns:1fr;padding:56px 0 60px;gap:35px}h1{font-size:54px;letter-spacing:-2.5px}.hero .eyebrow{font-size:9px;letter-spacing:.8px}.lead{font-size:14px}.signal-art{display:none}.section-head{display:block}.section-head p{margin-top:18px;max-width:none}section{padding:52px 0}.project-grid{grid-template-columns:1fr}.project{padding:24px}.project h3{margin-top:18px}.career-grid,.contact{grid-template-columns:1fr;gap:30px}.contact{padding:52px 0}.education{margin-top:5px}footer{flex-wrap:wrap;font-size:9px}footer>span:nth-child(2){display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.project{transition:none}}

.logo{font-size:22px;letter-spacing:-.6px;white-space:nowrap}nav{gap:25px}@media(max-width:650px){nav{height:auto;min-height:76px;padding:22px 0;flex-wrap:wrap;gap:18px}.logo{font-size:22px}.links{gap:20px;flex-wrap:wrap}}

.hero h1{font-size:clamp(42px,5.2vw,64px);line-height:1.12;letter-spacing:-2px}footer>span:nth-child(2){display:block}@media(max-width:650px){footer>span:nth-child(2){width:100%;order:3;font-size:9px}}

/* Compact introduction and stacked identity. */
.logo{display:flex;flex-direction:column;gap:5px;line-height:1.15}
.logo .logo-role{margin:0;color:var(--muted);font-size:11px;letter-spacing:.25px;font-weight:400}
.hero{padding:44px 0 50px;gap:48px;grid-template-columns:1.55fr 1fr}
.hero h1{font-size:clamp(36px,4.5vw,54px);line-height:1.12;letter-spacing:-1.8px;margin:0 0 18px}
.hero h1 .headline-accent{display:inline;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;margin:0;color:var(--accent)}
.hero .lead{font-size:14px;line-height:1.75}
.hero-actions{margin-top:23px}
.signal-art{width:100%;max-width:300px;justify-self:end;transform:none}
.art-label,.art-footer{padding:15px 18px;font-size:9px}
@media(max-width:999px){.hero{padding:36px 0 42px;gap:30px}}
@media(max-width:650px){.hero{grid-template-columns:1fr;padding:32px 0 38px;gap:0}.hero h1{font-size:clamp(32px,8.3vw,42px)}.hero-actions{gap:18px;margin-top:20px}.logo .logo-role{font-size:11px}}

.resume-view{font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:5px}

/* Refined visual layer: graphite surfaces, soft light, and consistent detail. */
:root{--bg:#0b1015;--surface:#131c24;--line:#26323c;--muted:#a6b3be;--accent:#95dfcc}
body{background:radial-gradient(ellipse 650px 450px at 85% 5%,#16313055,transparent 80%),var(--bg);font-family:Inter,'Segoe UI',Arial,sans-serif}
nav{height:98px;border-bottom-color:#26323c99}
.logo{font-size:23px;font-weight:600;letter-spacing:-.7px}
.logo .logo-role{font-size:10px;letter-spacing:1.25px;text-transform:uppercase;color:#9bacb6}
.links{gap:10px}
.links a{padding:10px 14px;border-radius:7px;transition:background .2s,color .2s}
.links a:hover,.links a:focus-visible{background:#17272b;color:var(--accent)}
.hero{padding:40px 0 46px;gap:52px}
.hero h1{font-weight:600;letter-spacing:-2px;line-height:1.1}
.hero h1 .headline-accent{background:linear-gradient(110deg,#b7efdf,#79cabc);background-clip:text;-webkit-background-clip:text;color:transparent}
.hero .lead{max-width:510px;color:#aebac5;line-height:1.85}
.cta,.resume-view{min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:13px 20px;transition:background .2s,border-color .2s,transform .2s;font-size:12px}
.cta{box-shadow:0 4px 20px #89d5bc12;border:1px solid #bceee140}
.resume-view{color:#e0e7eb;border:1px solid #3b4b56;text-decoration:none;background:#17202966}
.resume-view:hover{color:var(--accent);border-color:#739d92;background:#1a2a2d}
.hero-actions{gap:12px}
.signal-art{position:relative;border:1px solid #47605c80;background:linear-gradient(145deg,#1c2c34,#101921 75%);box-shadow:0 20px 45px #0004,inset 0 1px 0 #badbca16;border-radius:20px;max-width:285px}
.signal-art:before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 60% 40%,#83dec916,transparent 65%)}
.art-label,.art-footer{font-size:8px;letter-spacing:1.6px;color:#adbbbfa6;padding:14px 18px}
section{padding:60px 0;border-top-color:#29374099}
.section-head{margin-bottom:25px;align-items:center}
h2{font-size:clamp(27px,3vw,34px);letter-spacing:-1px;font-weight:550;margin:0}
.projects .section-head h2{display:flex;align-items:center;gap:13px}
.projects .section-head h2:before{content:'';height:22px;width:3px;border-radius:4px;background:var(--accent)}
#verification{--section-accent:#a9bff3}
#verification .section-head h2:before{background:var(--section-accent)}
#academic .section-head h2:before{background:#d3c49c}
.project-grid{gap:18px}
.project{padding:25px;border-radius:14px;background:linear-gradient(145deg,#17212b,#111a22);border-color:#2c3945;box-shadow:0 6px 18px #00000012,inset 0 1px 0 #d6e6f205;position:relative;transition:transform .2s,border-color .2s,box-shadow .2s}
.project:hover{transform:translateY(-3px);border-color:#5c8378;box-shadow:0 12px 30px #0003}
#verification .project:hover{border-color:#667da7}
.project-top .eyebrow{font-size:9px;letter-spacing:1.3px;color:#9faeba}
.project-symbol{width:34px;height:34px;display:grid;place-items:center;background:#203b353f;border:1px solid #44665b55;border-radius:9px;font-size:20px;flex-shrink:0}
.project-symbol svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
#verification .project-symbol{color:#aac2ef;background:#24324977;border-color:#52678a66}
#academic .project-symbol{color:#d9ccab;background:#39352566;border-color:#665b3a66}
.project h3{font-size:20px;font-weight:550;letter-spacing:-.45px;margin:21px 0 11px}
.project p{font-size:13px;line-height:1.85;color:#aab8c4}
.tech{gap:6px}
.tech span{border:1px solid #35435199;background:#202c3766;color:#bdccd6;border-radius:5px;font-size:9px;letter-spacing:.1px;padding:5px 7px}
.project-note{color:#98a9b6;font-size:10px}
.project-link{font-size:12px;font-weight:500}
.career-grid{gap:55px;margin-top:34px;grid-template-columns:1.3fr 1fr}
.timeline article{padding-left:26px;padding-bottom:32px;border-left-color:#344d46}
.timeline article:before{width:8px;height:8px;left:-4.5px;box-shadow:0 0 0 5px #172520}
.timeline article:last-child{padding-bottom:4px}
.timeline h3{font-size:21px;letter-spacing:-.45px}
.timeline .eyebrow{font-size:10px;line-height:1.9;letter-spacing:.4px}
.toolkit{border:1px solid var(--line);border-radius:14px;padding:25px;background:linear-gradient(135deg,#17212b99,#121a2166);align-self:start}
.toolkit>div{margin-bottom:22px}.toolkit>div:last-child{margin-bottom:0}
.toolkit h3{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--accent)}
.education{margin-top:34px;padding-top:25px;display:grid;grid-template-columns:1fr auto;gap:8px 30px}
.education .eyebrow{grid-column:1/-1;font-size:9px;color:#9caeba}
.education h3{margin:0;font-size:18px}.education p{grid-column:1}.education>span:last-child{grid-column:2;grid-row:2/4;align-self:center;font-size:12px}
.contact{border:1px solid #3b514b80;border-radius:18px;margin:12px 0 40px;padding:40px;background:radial-gradient(ellipse at 0 100%,#25453d50,transparent 70%),linear-gradient(110deg,#152320,#121b23);box-shadow:inset 0 1px 0 #cfffe410}
.contact h2{font-size:clamp(27px,3vw,35px);line-height:1.2;letter-spacing:-1px}
.contact-details p{font-size:13px;margin-bottom:18px}
.email{font-size:clamp(13px,1.5vw,17px)}
.socials{gap:9px;flex-wrap:wrap;margin-top:22px}
.socials a{padding:8px 12px;border:1px solid #3b504b;border-radius:6px;font-size:11px;color:#c2d1cf;transition:border-color .2s,background .2s}
.socials a:hover{background:#243b35;border-color:#82b6a7;color:#d9f8ec}
footer{font-size:9px;letter-spacing:.7px;padding:22px 0 26px;color:#95a6b3}
@media(max-width:999px){.hero{gap:28px}.career-grid{gap:35px}.contact{padding:30px;gap:30px}}
@media(max-width:650px){nav{height:auto;padding:21px 0;gap:20px}.logo{font-size:22px}.links{gap:4px;width:100%;justify-content:space-between}.links a{padding:7px 6px;font-size:11px}.hero{padding:32px 0 38px}.hero h1{font-size:clamp(32px,8.3vw,42px)}section{padding:42px 0}.project-grid{gap:14px}.project{padding:23px}.project h3{margin-top:17px}.career-grid{grid-template-columns:1fr;gap:28px}.education{display:block}.education h3{margin:12px 0 7px}.education>span:last-child{display:block;margin-top:8px}.contact{padding:27px 23px;margin-top:4px;gap:25px}.contact h2{font-size:29px}.email{font-size:14px}footer{gap:12px}}
@media(prefers-reduced-motion:reduce){a,.project{transition:none!important}.project:hover{transform:none}}

/* Compact bio with portrait and caption. */
.hero{grid-template-columns:minmax(0,1fr) 215px;padding:26px 0 28px;gap:44px;align-items:center}
.hero h1{font-size:26px;line-height:1.2;letter-spacing:-.6px;margin:0 0 14px}
.hero .lead{max-width:620px;font-size:14px;line-height:1.8}
.hero-actions{margin-top:18px}
.profile{margin:0;width:215px;justify-self:end;text-align:center}
.profile img{display:block;width:160px;height:160px;object-fit:cover;object-position:center 28%;border-radius:50%;margin:0 auto;border:3px solid #314b45;box-shadow:0 8px 22px #0003}
.profile figcaption{margin-top:12px;display:flex;flex-direction:column;gap:5px}
.profile figcaption strong{font-size:16px;font-weight:550;letter-spacing:-.25px}
.profile figcaption span{font-size:11px;line-height:1.5;color:var(--muted)}
@media(max-width:650px){.hero{grid-template-columns:minmax(0,1fr) 145px;gap:18px;padding:25px 0}.hero h1{font-size:24px}.hero .lead{font-size:13px}.profile{width:145px}.profile img{width:125px;height:125px}.profile figcaption strong{font-size:14px}.profile figcaption span{font-size:10px}.hero-actions{gap:9px}.cta,.resume-view{padding:11px 13px}}
@media(max-width:430px){.hero{grid-template-columns:1fr}.profile{justify-self:center;width:200px;margin-top:7px}.profile img{width:130px;height:130px}.hero h1{font-size:24px}}

/* Dense, readable section rhythm. */
nav{height:56px;min-height:0;padding:0;justify-content:flex-end}
.hero{padding:20px 0 22px;gap:32px}
section{padding:28px 0}
.section-head{margin-bottom:18px}
.career-grid{margin-top:20px;gap:32px}
.timeline article{padding-bottom:22px}
.timeline h3{margin:8px 0}
.toolkit{padding:19px}
.toolkit>div{margin-bottom:16px}
.education{margin-top:20px;padding-top:18px}
.project-grid{gap:14px}
.project{padding:21px}
.project h3{margin:15px 0 9px}
.project p{margin-bottom:17px}
.contact{margin:8px 0 22px;padding:28px 30px;gap:30px}
footer{padding:17px 0 20px}
@media(max-width:650px){nav{height:50px;padding:0;gap:0}.links{width:100%;justify-content:space-between}.hero{padding:20px 0;gap:16px}section{padding:24px 0}.section-head{margin-bottom:16px}.career-grid{margin-top:18px;gap:20px}.project{padding:20px}.education{margin-top:18px}.contact{padding:23px;margin-bottom:18px;gap:20px}}
@media(max-width:430px){.profile{margin-top:0}.hero{gap:14px}}

/* Short header and bio: portrait no longer sets a tall opening row. */
nav{height:40px;min-height:0}
.links a{padding:6px 12px}
.hero{padding:12px 0 14px;grid-template-columns:minmax(0,1fr) 180px;gap:26px;align-items:center}
.hero h1{font-size:23px;margin-bottom:9px}
.hero .lead{font-size:13px;line-height:1.7;max-width:680px}
.hero-actions{margin-top:12px;gap:10px}
.hero-actions .cta,.hero-actions .resume-view{min-height:36px;padding:9px 15px}
.profile{width:180px}
.profile img{width:110px;height:110px;border-width:2px}
.profile figcaption{margin-top:7px;gap:3px}
.profile figcaption strong{font-size:14px}
.profile figcaption span{font-size:10px}
@media(max-width:650px){nav{height:36px;padding:0}.links a{padding:5px 6px}.hero{grid-template-columns:minmax(0,1fr) 135px;padding:12px 0;gap:16px}.hero h1{font-size:22px}.profile{width:135px}.profile img{width:95px;height:95px}.profile figcaption strong{font-size:13px}.profile figcaption span{font-size:9px}.hero-actions .cta,.hero-actions .resume-view{padding:8px 10px;font-size:11px}}
@media(max-width:430px){.hero{grid-template-columns:1fr 115px;gap:12px}.profile{width:115px}.profile img{width:85px;height:85px}.hero .lead{font-size:12px}.hero-actions{gap:7px;flex-wrap:wrap}.profile figcaption span{font-size:9px}}

/* Readable portrait caption. */
.hero{grid-template-columns:minmax(0,1fr) 250px}
.profile{width:250px}
.profile figcaption{gap:5px;margin-top:9px}
.profile figcaption strong{font-size:24px;font-weight:650;line-height:1.2;letter-spacing:-.4px;color:#ffffff}
.profile figcaption span{font-size:15px;font-weight:500;line-height:1.4;color:#b0f0dc}
@media(max-width:650px){.hero{grid-template-columns:minmax(0,1fr) 200px}.profile{width:200px}.profile figcaption strong{font-size:22px}.profile figcaption span{font-size:14px}}
@media(max-width:480px){.hero{grid-template-columns:1fr;gap:14px}.profile{width:min(100%,270px);justify-self:center}.profile figcaption strong{font-size:24px}.profile figcaption span{font-size:15px}}

.contact{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:start}
#contact-form{margin-top:20px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#contact-form label{display:block;font-size:12px;font-weight:500;color:#e4eeec;margin-bottom:14px}
#contact-form input,#contact-form textarea{display:block;width:100%;margin-top:7px;border:1px solid #456259;border-radius:6px;background:#0d191c;color:#f1f6f4;padding:11px 12px;font-size:14px;font-family:inherit;min-height:42px}
#contact-form textarea{resize:vertical;line-height:1.6}
#contact-form .cta{cursor:pointer;margin-top:0}
#contact-form .cta:disabled{opacity:.5;cursor:not-allowed}
#form-status{font-size:12px;margin:12px 0 0;line-height:1.5;color:var(--muted)}
.form-trap{display:none}
@media(max-width:650px){.contact{grid-template-columns:1fr}.form-row{grid-template-columns:1fr;gap:0}}

/* Theme control and coordinated light palette. */
nav{justify-content:space-between;gap:15px}
#theme-toggle{flex-shrink:0;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:6px 12px;border-radius:7px;font-size:11px;cursor:pointer;min-height:32px}
#theme-toggle:hover{border-color:var(--accent);color:var(--accent)}
html[data-theme="light"]{color-scheme:light;--bg:#f5f8f7;--surface:#fff;--line:#cddbd6;--text:#172d29;--muted:#4a625b;--accent:#216b56}
html[data-theme="light"] body{background:radial-gradient(ellipse 650px 450px at 85% 5%,#dceee7aa,transparent 80%),var(--bg)}
html[data-theme="light"] nav,html[data-theme="light"] section,html[data-theme="light"] footer{border-color:var(--line)}
html[data-theme="light"] .links a:hover{background:#e2eee8;color:#216b56}
html[data-theme="light"] .hero .lead,html[data-theme="light"] .project p,html[data-theme="light"] .project-note,html[data-theme="light"] .project-top .eyebrow,html[data-theme="light"] .education .eyebrow,html[data-theme="light"] footer{color:var(--muted)}
html[data-theme="light"] .profile figcaption strong{color:#172d29}
html[data-theme="light"] .profile figcaption span{color:#216b56}
html[data-theme="light"] .profile img{border-color:#9ac2b1;box-shadow:0 5px 18px #234d3014}
html[data-theme="light"] .cta{background:#216b56;color:#fff;border-color:#216b56;box-shadow:0 3px 10px #216b5615}
html[data-theme="light"] .cta:hover{background:#185640;color:#fff}
html[data-theme="light"] .resume-view{background:#fff;color:#24483a;border-color:#9db7aa}
html[data-theme="light"] .project{background:linear-gradient(145deg,#fff,#f1f7f4);border-color:var(--line);box-shadow:0 4px 14px #20392e08}
html[data-theme="light"] .project:hover{border-color:#599d85;box-shadow:0 8px 20px #24493912}
html[data-theme="light"] .project-symbol{color:#216b56;background:#e5f1eb;border-color:#bad5c8}
html[data-theme="light"] #verification{--section-accent:#43639b}
html[data-theme="light"] #verification .project-symbol{color:#43639b;background:#e8eef8;border-color:#c6d2e7}
html[data-theme="light"] #academic .project-symbol{color:#756029;background:#f5efdf;border-color:#dfd1aa}
html[data-theme="light"] #academic .section-head h2:before{background:#756029}
html[data-theme="light"] .tech span{color:#435e50;background:#eaf1ed;border-color:#cadbd1}
html[data-theme="light"] .timeline article{border-color:#bdd6c8}
html[data-theme="light"] .timeline article:before{box-shadow:0 0 0 5px #e6f0ea}
html[data-theme="light"] .toolkit{background:#fff;border-color:var(--line)}
html[data-theme="light"] .contact{background:radial-gradient(ellipse at 0 100%,#d5ece055,transparent 70%),#edf5f0;border-color:#bed3c6;box-shadow:none}
html[data-theme="light"] .socials a{color:#305444;border-color:#a9c4b5;background:#ffffff66}
html[data-theme="light"] .socials a:hover{background:#dcece2;color:#174532}
html[data-theme="light"] #contact-form label{color:#244336}
html[data-theme="light"] #contact-form input,html[data-theme="light"] #contact-form textarea{background:#fff;color:#172d29;border-color:#8aafa0}
@media(max-width:650px){nav{height:auto;min-height:40px;flex-wrap:nowrap}.links{width:auto;flex:1;gap:0}.links a{font-size:10px;padding:5px}#theme-toggle{padding:5px 8px;font-size:10px;min-height:29px}}

/* Center navigation independently of the theme control. */
nav{display:grid;grid-template-columns:minmax(80px,1fr) auto minmax(80px,1fr);gap:0}
nav .links{grid-column:2;justify-self:center;width:auto;flex:none;justify-content:center}
nav #theme-toggle{grid-column:3;justify-self:end}
@media(max-width:480px){nav{grid-template-columns:1fr auto 1fr;row-gap:5px;padding:5px 0}nav .links{grid-column:1/-1;grid-row:1;justify-self:center;gap:8px}nav #theme-toggle{grid-column:3;grid-row:2;justify-self:end}}
