/* Keep the original terminal identity, with a clearer portrait and reading rhythm. */
#arrival:not([hidden]){position:fixed;inset:0;z-index:1000;background:#071510;color:#eafff2;display:grid;place-items:center}
.arrival-card{width:min(85vw,36rem);border-left:3px solid #72f6b1;padding:2rem;animation:arrive .55s ease-out}
.arrival-card strong{display:block;color:#72f6b1;font-size:clamp(3rem,10vw,6rem);line-height:1.6}
.arrival-card small,.dispatch-readout,.repo-shelf small{font-family:var(--mono);letter-spacing:.07em}
.arrival-card button,.dispatch button{cursor:pointer;background:var(--surface);color:var(--text);border:1px solid var(--line-strong);border-radius:.45rem;padding:.65rem .9rem;margin-top:.5rem}
@keyframes arrive{from{opacity:.1;transform:translateY(14px)}}
.dispatch{position:relative;display:grid;grid-template-columns:1fr 1.25fr;gap:2rem;margin:5rem 0 1rem;padding:clamp(1.2rem,4vw,3rem);background:var(--bg-elevated);border:1px solid var(--line-strong);border-radius:1.2rem;scroll-margin-top:6rem}
.dispatch h2{font-size:clamp(2rem,4vw,3.8rem);line-height:1.05;margin:.6rem 0}
.dispatch-board{min-width:0;padding:1rem;background:var(--bg);border:1px solid var(--line);border-radius:.7rem}
.dispatch-readout,.dispatch-stations{display:flex;justify-content:space-between;gap:.3rem;flex-wrap:wrap}
.dispatch-readout{font-size:.78rem;color:var(--accent)}
.dispatch-road{position:relative;overflow:hidden;margin:1.1rem 0;border-bottom:2px dashed var(--line-strong);height:2.2rem}
.dispatch-road span{display:inline-block;position:relative;color:var(--accent);font:700 1rem var(--mono)}
@media(prefers-reduced-motion:no-preference){.dispatch-road span{animation:drive 3.6s linear infinite}@keyframes drive{from{left:0}to{left:85%}}}
.dispatch-stations button{flex:1}.dispatch-stations button:is(.demo-dock,:hover,:focus-visible){border-color:var(--accent);color:var(--accent)}
.repo-shelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:1rem;margin:1.5rem 0}
.repo-shelf article{padding:1.4rem;border-top:2px solid var(--accent);background:var(--bg-elevated)}.repo-shelf h3{margin:.6rem 0}.repo-shelf a{color:var(--accent);text-decoration:underline}.repo-shelf p{margin-bottom:1rem}
@media(max-width:760px){.dispatch{grid-template-columns:1fr;gap:1rem}}
.bug-lab{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);align-items:center;gap:clamp(2rem,7vw,7rem)}
.bug-copy h2{font-size:clamp(3.2rem,7vw,7rem);line-height:.9;letter-spacing:-.07em;margin:.35em 0}
.bug-copy h2 em{color:var(--accent);font-family:Georgia,serif;font-weight:normal}
.bug-copy>p:not(.section-index){max-width:34ch;color:var(--muted)}
.bug-controls{font:700 .72rem var(--mono);letter-spacing:.06em}
.bug-console{overflow:hidden;border:1px solid var(--line-strong);border-radius:6px;background:var(--bg-elevated);box-shadow:5px 5px 0 var(--line)}
.bug-console>header,.bug-console>footer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 1rem;font:.68rem var(--mono);letter-spacing:.05em}
.bug-console>header{border-bottom:1px solid var(--line)}.bug-console>footer{border-top:1px solid var(--line);color:var(--muted)}.bug-console>footer label{display:flex;align-items:center;gap:.4rem;white-space:nowrap}
.bug-console strong{color:var(--accent)}.bug-console strong.danger{color:#ff7184}
.bug-stage{position:relative;aspect-ratio:12/7;background:radial-gradient(circle at 50% 65%,var(--surface),var(--bg));overflow:hidden}
#bug-canvas{display:block;width:100%;height:100%;cursor:crosshair;touch-action:none}
.bug-overlay{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:.75rem;padding:1rem;text-align:center;background:color-mix(in srgb,var(--bg) 86%,transparent);backdrop-filter:blur(4px)}
.bug-overlay[hidden]{display:none}.bug-overlay small{color:#ff7184;font:700 .7rem var(--mono);letter-spacing:.12em}.bug-overlay h3{font-size:clamp(1.1rem,3vw,1.5rem);margin:0}.bug-overlay button{border:0;border-radius:3px;padding:.75rem 1rem;background:var(--accent);color:var(--bg);font-weight:800;cursor:pointer}.bug-overlay button:hover{background:var(--text)}
@media(max-width:760px){.bug-lab{grid-template-columns:1fr}.bug-console>footer{align-items:flex-start;flex-direction:column}}
.project-shot { display:block; width:100%; height:auto; aspect-ratio:1152/800; background:var(--bg); border-bottom:1px solid var(--line); }
.charge-demo { margin-top:1rem; border-top:1px solid var(--line); padding:1rem 0; }
.charge-demo summary { cursor:pointer; color:var(--accent); font-weight:700; }
.charge-demo ol { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap:.6rem; padding:0; list-style:none; }
.charge-demo li { border-inline-start:2px solid var(--accent); padding:.75rem; background:var(--surface); font-size:.9rem; }
.charge-demo li strong { display:block; color:var(--accent); margin-bottom:.3rem; }
.charge-demo select,.charge-demo button { font:inherit; padding:.45rem; margin:.25rem 0; }
#lab label { display:block; margin:1rem 0; }
#pipes button svg { pointer-events:none; }
@media(max-width:720px){
  .noise,.cursor-glow {display:none}
  .hero-copy.reveal,.hero-portrait.reveal {opacity:1;transform:none;transition:none}
  .hero-portrait img {filter:none}
}
@media(max-width:720px){.hero-portrait img,.hero-portrait .portrait-halo,.terminal-caret{animation:none!important}}

/* Interactive layers */
.particle-field{position:absolute;z-index:0;inset:0;pointer-events:none}
.hero>:not(.particle-field){position:relative;z-index:1}
.contact-section{position:relative}
.contact-section>.particle-field{inset:0;opacity:.5}
.contact-section>.contact-shell{position:relative;z-index:1}
.brand-mark{width:46px;height:46px;overflow:hidden;padding:0;border-radius:13px}
.brand-mark img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 42%;filter:saturate(.92) contrast(1.03);transition:transform .25s ease}
.brand:hover .brand-mark img{transform:scale(1.08)}

.filter-bar{align-items:center}
.filter-tabs{display:flex;flex-wrap:wrap;gap:.5rem}
.carousel-actions{display:flex;gap:.4rem;margin-left:auto}
.carousel-actions button{width:2.35rem;height:2.35rem;border:1px solid var(--line);border-radius:50%;color:var(--text);background:var(--bg-card);cursor:pointer}
.carousel-actions button:hover,.carousel-actions button:focus-visible{color:var(--bg);border-color:var(--accent);background:var(--accent)}
.projects-grid{display:flex;gap:18px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--accent) var(--surface);cursor:grab;padding:4px 4px 24px}
.projects-grid.dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.projects-grid>.project-card{flex:0 0 min(86vw,390px);scroll-snap-align:start}
.projects-grid>.project-featured{flex-basis:min(92vw,760px)}
.project-featured.isometric-card{--tilt-x:0deg;--tilt-y:0deg;transform:perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));transform-style:preserve-3d;transition:transform .16s ease,border-color .25s}
.project-featured.isometric-card:hover{transform:perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))}
.isometric-card .project-visual,.isometric-card .project-content{transform:translateZ(10px)}
.drag-carousel{cursor:grab;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:var(--accent) var(--surface)}
.drag-carousel.dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.leadership-grid.drag-carousel{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 4px 22px}
.leadership-grid.drag-carousel>.leadership-card{flex:0 0 min(78vw,360px);scroll-snap-align:start}
.tilt-card{--tilt-x:0deg;--tilt-y:0deg;transform:perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));transform-style:preserve-3d;transition:transform .16s ease,border-color .25s}
.tilt-card:hover{transform:perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));border-color:var(--line-strong)}
.tilt-card>*{transform:translateZ(5px)}

.back-to-top{position:fixed;z-index:90;right:clamp(1rem,3vw,2rem);bottom:clamp(1rem,3vw,2rem);display:flex;align-items:center;gap:.65rem;padding:.72rem .9rem;border:1px solid var(--line-strong);border-radius:999px;color:var(--bg);background:var(--accent);box-shadow:0 12px 34px #0005;font:700 .69rem var(--mono);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(14px);transition:opacity .22s,transform .22s,visibility .22s}
.back-to-top.visible{opacity:1;visibility:visible;transform:translateY(0)}
.back-to-top:hover{background:var(--text);transform:translateY(-2px)}

::view-transition-old(root){animation:none}
::view-transition-new(root){animation:theme-reveal .55s cubic-bezier(.2,.8,.2,1)}
@keyframes theme-reveal{from{clip-path:circle(0 at var(--theme-x) var(--theme-y))}to{clip-path:circle(150vmax at var(--theme-x) var(--theme-y))}}

@media(max-width:680px){
  .carousel-actions{width:100%;margin-left:0}
  .projects-grid>.project-card,.projects-grid>.project-featured{flex-basis:calc(100vw - 42px)}
  .back-to-top span{display:none}
}
@media(prefers-reduced-motion:reduce){
  .project-featured.isometric-card,.project-featured.isometric-card:hover,.tilt-card,.tilt-card:hover{transform:none}
  ::view-transition-old(root),::view-transition-new(root){animation:none}
}
.hero { position:relative; padding-top:160px; min-height:95svh; }
.hero-grid { grid-template-columns:1.25fr .75fr; gap:55px; }
.hero h1 { font-size:clamp(5rem,10vw,9rem); line-height:.95; letter-spacing:-.065em; margin:25px 0; }
.hero h1 small { display:block; font-size:clamp(1rem,2.1vw,1.8rem); letter-spacing:.18em; margin-bottom:16px; font-weight:500; color:var(--text); }
.hero h1 > span { color:var(--text); text-shadow:none; }
.hero h1 .name-period { color:var(--accent); }
.terminal-line { display:none; }
.hero h2 { font-size:1.05rem; font-weight:500; }
.hero-panel .terminal-card { transform:none; box-shadow:0 25px 100px #0004; }
.hero-panel pre { display:none; }
.hero-panel .avatar-orbit { width:100%; height:310px; }
.hero-panel .avatar-core { width:230px; height:285px; border-radius:100px 100px 22px 22px; }
.hero-panel .orbit { display:none; }
.hero-panel .terminal-footer { font-size:.58rem; }
.stats-grid { margin-top:50px; gap:0; border-block:1px solid var(--line); }
.stats-grid article { border:0; border-radius:0; background:transparent; }
.stats-grid strong { color:var(--text); }
.section-heading { max-width:750px; }
.section-heading h2 { font-size:clamp(2.5rem,5.5vw,4.6rem); }
.project-card:not(.project-featured) { padding:26px; }
.work-art { position:relative; min-height:245px; padding:26px; margin:-26px -26px 26px; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between; border-bottom:1px solid var(--line); }
.work-art > span,.work-art small { font: .58rem var(--mono); letter-spacing:.12em; }
.work-art strong { font-size:2.65rem; letter-spacing:-.05em; line-height:1.12; font-weight:750; }
.work-art strong span { float:right; margin-left:40px; }
.city-art { background:linear-gradient(135deg,#192e49,#0c1727); color:#b8d9ff; }
.data-art { background:linear-gradient(135deg,#162d29,#0c1a18); color:#a2ebc4; }
.waste-art { background:linear-gradient(135deg,#34331a,#181c12); color:#e5e9a0; }
.robot-art { background:linear-gradient(135deg,#3b2521,#211513); color:#ffc3a9; }
.project-card h3 { font-size:1.65rem; }
.project-visual::after { content:'NETWORK CONCEPT / IN DEVELOPMENT'; position:absolute; top:24px; left:24px; font: .6rem var(--mono); color:#a3d8bd; letter-spacing:.08em; }
.skill-card { min-height:215px; }
.skill-card::after { display:none; }
@media(max-width:980px) { .hero-grid { grid-template-columns:1fr; } .hero-panel { max-width:430px; width:100%; margin:auto; } }
.avatar-orbit { width:210px; height:210px; }
.avatar-core { width:166px; height:166px; border-radius:38px; }
.profile-photo { object-position:center 25%; }
.hero-summary { max-width:590px; line-height:1.8; }
.project-card > p:not(.project-subtitle), .project-content > p:not(.project-subtitle) { line-height:1.8; }
.tag-cloud span { font-size:.73rem; }
.tag-cloud.compact span { font-size:.7rem; }
.button:focus-visible, a:focus-visible, button:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
@media(max-width:680px) {
 .hero h1 { font-size:clamp(4.4rem,17vw,7rem); line-height:1; letter-spacing:-.055em; }
 .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:36px; }
 .stats-grid article { padding:18px 14px; }
 .stats-grid span { font-size:.66rem; }
 .hero { padding-bottom:45px; }
 .project-card { padding:24px; }
 .project-featured { padding:0; }
}

/* Editorial portrait, ruled chapters and numbered work index. */
.identity-print { margin:0; width:min(100%,24rem); justify-self:center; border:2px solid var(--text); color:var(--text); box-shadow:7px 7px 0 var(--accent); }
.print-label,.identity-print figcaption { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.5rem; padding:.85rem 1rem; }
.print-label { background:var(--text); color:var(--bg); font:.69rem var(--mono); letter-spacing:.08em; }
.identity-print img { display:block; width:100%; aspect-ratio:5/4; object-fit:cover; object-position:50% 25%; }
.identity-print figcaption { border-top:2px solid; background:var(--bg-elevated); }
.identity-print figcaption span { font:.72rem var(--mono); color:var(--muted); }
.section + .section { border-top:2px solid var(--line-strong); }
.section-heading { max-width:none; }
.section-heading h2 { text-transform:uppercase; font-weight:850; line-height:.98; }
.section-index { display:inline-block; padding:.35rem .65rem; background:var(--accent); color:var(--bg); }
.projects-grid { counter-reset:work; }
.project-card { counter-increment:work; border-radius:3px; }
.project-meta::before { content:counter(work,decimal-leading-zero); font-weight:bold; border-bottom:2px solid var(--accent); color:var(--text); }
.project-meta { align-items:baseline; }
.skill-card,.leadership-card,.focus-card,.about-card,.contact-shell { border-radius:4px; }
@media(min-width:981px){ .section-heading {display:grid; grid-template-columns:10rem 1fr; align-items:start; gap:.5rem 2rem;} .section-index {justify-self:start;} .section-heading > p:last-child {grid-column:2;} }
@media(max-width:680px){ .identity-print {width:min(100% - 14px,23rem);} .hero-grid {grid-template-columns:minmax(0,1fr);} .section-heading h2 {overflow-wrap:anywhere;} }
@media(prefers-reduced-motion:no-preference) and (hover:hover){.identity-print{transition:transform .45s ease}.identity-print:hover{transform:perspective(900px) rotateY(-5deg) rotateX(2deg) translateY(-4px)}}
.hero-grid {grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:clamp(30px,6vw,78px)}
.hero-copy {width:100%;margin-inline:0}
.name-lockup {margin:25px 0}
.name-lockup h1 {margin:0;font-size:clamp(2.6rem,10vw,8rem)}
.name-lockup h1 small {font-size:clamp(.7rem,1.6vw,1.4rem);margin-bottom:.55em}
.hero-copy.reveal {opacity:1;transform:none;transition:none}
.hero-portrait {position:relative;isolation:isolate;align-self:end;width:min(100%,460px);margin:0 auto -72px;min-width:0}
.hero-portrait::before {content:"";position:absolute;z-index:-2;inset:13% -2% 6%;border:1px solid var(--line-strong);background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 10%,transparent),color-mix(in srgb,var(--bg-elevated) 88%,transparent));clip-path:polygon(8% 0,100% 0,92% 100%,0 100%)}
.hero-portrait::after {content:"";position:absolute;z-index:-3;inset:23% -7% 1% 7%;border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);clip-path:polygon(8% 0,100% 0,92% 100%,0 100%)}
.hero-portrait img {position:relative;z-index:2;display:block;width:100%;height:auto;filter:drop-shadow(0 22px 35px rgba(0,0,0,.34))}
.portrait-halo {position:absolute;z-index:1;inset:19% 8% 10%;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--accent) 20%,transparent),transparent 68%);filter:blur(8px)}
.portrait-code {position:absolute;z-index:3;padding:.42rem .6rem;border:1px solid var(--line-strong);background:color-mix(in srgb,var(--bg) 86%,transparent);color:var(--accent);font:.62rem var(--mono);letter-spacing:.08em;backdrop-filter:blur(10px)}
.portrait-code-a {left:-3%;top:25%}.portrait-code-b {right:-2%;top:42%}
.hero-portrait figcaption {position:absolute;z-index:4;left:4%;right:4%;bottom:8%;display:flex;justify-content:space-between;gap:12px;padding:.7rem .85rem;border:1px solid var(--line-strong);background:color-mix(in srgb,var(--bg) 80%,transparent);font:.61rem var(--mono);letter-spacing:.06em;backdrop-filter:blur(12px)}
.hero-portrait figcaption span {color:var(--accent)}
@media (max-width:980px){
  .hero-grid{grid-template-columns:minmax(0,1fr)}
  .hero-copy{display:contents}
  .hero-copy .eyebrow{order:1}
  .hero-copy .terminal-line{order:2}
  .hero-copy .name-lockup{order:3}
  .hero-portrait{order:4;width:min(76vw,380px);margin:-34px auto -48px}
  .hero-copy h2{order:5}
  .hero-copy>p:not(.eyebrow,.terminal-line,.hero-summary){order:6}
  .hero-copy .hero-summary{order:7}
  .hero-copy .hero-actions{order:8}
  .hero-copy .social-row{order:9}
}
@media (max-width:680px){.hero-portrait{width:min(86%,310px);margin:-28px auto -35px}.portrait-code-a{left:-2%;top:28%}.portrait-code-b{right:-2%;top:43%}.hero-portrait figcaption{bottom:7%;font-size:.55rem}}
@media (prefers-reduced-motion:no-preference){.hero-portrait img{animation:portrait-float 5.5s ease-in-out infinite}.portrait-halo{animation:portrait-glow 4s ease-in-out infinite}}
@keyframes portrait-float{50%{transform:translateY(-10px) rotate(.35deg)}}
@keyframes portrait-glow{50%{opacity:.55;transform:scale(1.06)}}

/* Premium surface pass — keep the terminal-green identity, refine the material system. */
:root{
  --bg:#06100d;
  --bg-elevated:#0a1713;
  --bg-card:rgba(13,29,24,.72);
  --surface:#10221c;
  --surface-strong:#163329;
  --text:#f1f7f4;
  --muted:#9aa8a2;
  --faint:#6e7b76;
  --line:rgba(225,240,233,.09);
  --line-strong:rgba(114,246,177,.24);
  --shadow:0 24px 80px rgba(0,0,0,.42);
  --radius:18px;
}
html[data-theme="light"]{
  --bg:#f4f6f5;
  --bg-elevated:#fbfcfb;
  --bg-card:rgba(255,255,255,.72);
  --surface:#e9eeeb;
  --surface-strong:#dfe8e3;
  --text:#101714;
  --muted:#56645e;
  --faint:#77847f;
  --line:rgba(18,37,29,.1);
  --line-strong:rgba(8,121,75,.22);
  --shadow:0 24px 70px rgba(30,50,41,.12);
}
body{
  line-height:1.68;
  background:
    radial-gradient(circle at 12% 8%,color-mix(in srgb,var(--accent) 8%,transparent),transparent 30rem),
    radial-gradient(circle at 88% 28%,rgba(76,118,255,.055),transparent 32rem),
    var(--bg);
}
.project-description{min-height:3.45em;margin-bottom:1.1rem;color:var(--muted);line-height:1.72}
.stack-label{margin:0 0 .55rem;color:var(--faint);font:700 .61rem var(--mono);letter-spacing:.1em;text-transform:uppercase}
.project-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.35rem;padding-top:1.1rem;border-top:1px solid var(--line)}
.project-action{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:.58rem .78rem;border:1px solid var(--line-strong);border-radius:9px;color:var(--text);background:color-mix(in srgb,var(--bg-card) 84%,transparent);font:750 .65rem var(--mono);letter-spacing:.035em;text-transform:uppercase;transition:transform .24s ease,border-color .24s ease,color .24s ease,background-color .24s ease}
.project-action.primary{border-color:var(--accent);color:var(--bg);background:var(--accent)}
.project-action.is-disabled{color:var(--faint);border-color:var(--line);background:transparent;cursor:not-allowed}
.skill-card>p{color:var(--muted);font-size:.9rem;line-height:1.68}
.skill-filters{display:flex;flex-wrap:wrap;gap:.65rem;margin:-1.25rem 0 2rem}
.skill-filter{min-height:44px;padding:.68rem 1rem;border:1px solid var(--line);border-radius:11px;color:var(--muted);background:color-mix(in srgb,var(--bg-card) 88%,transparent);font:750 .72rem var(--mono);cursor:pointer;transition:transform .22s ease,color .22s ease,border-color .22s ease,background-color .22s ease}
.skill-filter:hover,.skill-filter:focus-visible{border-color:var(--line-strong);color:var(--text)}
.skill-filter.active{border-color:var(--accent);color:var(--bg);background:var(--accent);box-shadow:0 10px 28px color-mix(in srgb,var(--accent) 14%,transparent)}
.skills-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.skill-card{min-height:0;padding:clamp(1.25rem,2.5vw,1.8rem)}
.skill-card[hidden]{display:none}
.skill-card-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.8rem;margin-bottom:1rem}
.skill-card-head .skill-icon{margin:0}
.skill-card-head h3{min-width:0;margin:0;font-size:1.08rem;overflow-wrap:anywhere}
.skill-card-head>span{color:var(--accent);font:700 .65rem var(--mono);letter-spacing:.04em;text-transform:uppercase}
.skill-card>p{min-height:3.1em;margin-bottom:1.15rem}
.skill-meter{height:7px;overflow:hidden;border-radius:999px;background:color-mix(in srgb,var(--text) 11%,transparent)}
.skill-meter span{display:block;width:var(--skill-level);height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),var(--accent-2));box-shadow:0 0 18px color-mix(in srgb,var(--accent) 28%,transparent)}
body::before{background-size:72px 72px;opacity:.58}
.site-header{
  background:color-mix(in srgb,var(--bg) 76%,transparent);
  border-color:color-mix(in srgb,var(--line) 82%,transparent);
  box-shadow:0 1px 0 rgba(255,255,255,.015);
  backdrop-filter:blur(22px) saturate(120%);
  -webkit-backdrop-filter:blur(22px) saturate(120%);
}
.nav-shell{height:80px}
.nav-links a{font-size:.72rem;letter-spacing:.095em}
.section{padding-block:clamp(88px,10vw,136px)}
.section + .section{border-top:1px solid var(--line)}
.section-heading{margin-bottom:clamp(40px,6vw,68px)}
.section-heading h2,.contact-copy h2{
  font-size:clamp(2.55rem,5vw,4.75rem);
  letter-spacing:-.06em;
  text-wrap:balance;
}
.section-heading>p:last-child,.contact-copy>p,.hero-summary{font-size:clamp(.97rem,1.25vw,1.06rem);line-height:1.82}
.about-grid,.skills-grid,.projects-grid,.leadership-grid{gap:clamp(16px,2vw,24px)}
.about-card,.focus-card,.skill-card,.project-card,.leadership-card,.contact-shell,
.dispatch,.repo-shelf article,.bug-console,.stats-grid article{
  border-color:var(--line);
  background:linear-gradient(145deg,color-mix(in srgb,var(--bg-card) 92%,transparent),color-mix(in srgb,var(--bg-elevated) 76%,transparent));
  box-shadow:0 1px 0 rgba(255,255,255,.025),0 18px 55px rgba(0,0,0,.16);
  backdrop-filter:blur(16px) saturate(115%);
  -webkit-backdrop-filter:blur(16px) saturate(115%);
}
.about-card,.focus-card,.skill-card,.project-card,.leadership-card{border-radius:14px}
.contact-shell,.dispatch{border-radius:20px}
.skill-card,.project-card,.leadership-card,.about-card,.focus-card,.repo-shelf article{
  transition:transform .35s cubic-bezier(.2,.8,.2,1),border-color .35s ease,box-shadow .35s ease,background-color .35s ease;
}
.button,.filter-button,.carousel-actions button,.theme-toggle,.menu-toggle,.copy-email,.contact-list a,
.social-row a,.repo-shelf a,.project-links a{
  transition:transform .28s cubic-bezier(.2,.8,.2,1),color .24s ease,border-color .24s ease,background-color .24s ease,box-shadow .28s ease,opacity .24s ease;
}
.button{min-height:48px;border-radius:11px;padding-inline:22px}
.button-primary{box-shadow:0 10px 30px color-mix(in srgb,var(--accent) 13%,transparent)}
.button-secondary{background:color-mix(in srgb,var(--bg-card) 88%,transparent)}
.tag-cloud span{border-radius:999px;background:color-mix(in srgb,var(--surface) 76%,transparent)}
.filter-button{border-radius:999px;padding:.62rem 1rem}
.contact-form input,.contact-form textarea{
  border-radius:12px;
  background:color-mix(in srgb,var(--bg) 62%,transparent);
  transition:border-color .24s ease,box-shadow .24s ease,background-color .24s ease;
}
.contact-form input:hover,.contact-form textarea:hover{border-color:color-mix(in srgb,var(--accent) 28%,var(--line))}
.identity-print{border-width:1px;border-radius:14px;overflow:hidden;box-shadow:8px 8px 0 color-mix(in srgb,var(--accent) 72%,transparent)}
.identity-print figcaption{border-top-width:1px}
.project-meta::before{border-bottom-width:1px}

@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .skill-card:hover,.project-card:hover,.leadership-card:hover,.about-card:hover,.focus-card:hover,.repo-shelf article:hover{
    border-color:var(--line-strong);
    box-shadow:0 1px 0 rgba(255,255,255,.04),0 24px 70px rgba(0,0,0,.26);
  }
  .button:hover{transform:translateY(-2px)}
  .button:active,.filter-button:active,.carousel-actions button:active{transform:translateY(0) scale(.98)}
  .social-row a:hover,.project-links a:hover,.repo-shelf a:hover{transform:translateY(-1px)}
  a.project-action:hover{transform:translateY(-2px);border-color:var(--accent);color:var(--accent)}
  a.project-action.primary:hover{color:var(--bg);background:var(--text);border-color:var(--text)}
  .theme-toggle:hover,.menu-toggle:hover,.carousel-actions button:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.22)}
}
@media(max-width:680px){
  .nav-shell{height:72px;width:min(100% - 28px,1180px)}
  .section{width:min(100% - 28px,1180px);padding-block:78px}
  .section-heading{margin-bottom:36px}
  .section-heading h2,.contact-copy h2{font-size:clamp(2.35rem,13vw,3.6rem)}
  .about-card,.focus-card,.skill-card,.project-card,.leadership-card{border-radius:12px}
  body.menu-open{overflow:hidden}
  .nav-links{top:72px;max-height:calc(100dvh - 86px);overflow-y:auto;padding:.5rem;border-radius:14px;background:color-mix(in srgb,var(--bg-elevated) 96%,transparent);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);overscroll-behavior:contain}
  .nav-links a{display:flex;align-items:center;min-height:48px;padding:.8rem .9rem}
  .skill-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:-.5rem}
  .skill-filter:first-child{grid-column:1 / -1}
  .skills-grid{grid-template-columns:minmax(0,1fr);gap:.85rem}
  .skill-card{width:100%;padding:1.2rem}
  .skill-card-head{grid-template-columns:auto minmax(0,1fr);gap:.7rem}
  .skill-card-head>span{grid-column:2}
  .skill-card>p{min-height:0}
  .projects-grid,.leadership-grid.drag-carousel{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible;scroll-snap-type:none;cursor:auto;padding-inline:0}
  .projects-grid>.project-card,.projects-grid>.project-featured,.leadership-grid.drag-carousel>.leadership-card{width:100%;max-width:100%;flex-basis:auto}
  .project-featured{grid-template-columns:minmax(0,1fr)}
  .carousel-actions{display:none}
}
@media(prefers-reduced-motion:reduce){
  .skill-card,.project-card,.leadership-card,.about-card,.focus-card,.repo-shelf article,.button,.filter-button,.carousel-actions button,.theme-toggle,.menu-toggle{transition-duration:.01ms!important}
}
