:root{
  color-scheme:dark;
  --bg:#101518; --surface:#181f23; --surface-light:#202a2e; --line:#303a3e;
  --ink:#f5f5ef; --muted:#b5bfbe; --teal:#39c1ae; --bright:#81dcca; --soft:#193430;
  --width:1180px; --serif:"Instrument Serif",Georgia,serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.65 "Inter","Segoe UI",Arial,sans-serif}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--bright);outline-offset:4px}
svg{display:block}
.container{width:min(calc(100% - 80px),var(--width));margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.skip-link{position:fixed;top:-80px;left:1rem;z-index:100;background:var(--teal);color:#081916;padding:10px 18px}
.skip-link:focus{top:1rem}
.site-header{position:sticky;top:0;z-index:20;pointer-events:none}
.nav-wrap{position:relative;padding-inline:clamp(18px,1.6vw,36px);height:84px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px}
.brand{display:inline-flex;align-items:center;gap:12px;justify-self:start}
.brand-symbol{font:italic 30px/1 var(--serif);letter-spacing:-3px;color:var(--bright)}
.brand-symbol span{color:var(--teal)}
.footer-brand{font-size:15px;font-weight:600}
.site-header nav{grid-column:2;display:flex;align-items:center;pointer-events:auto;background:#151d21f5;border:1px solid #263136;border-radius:100px;padding:5px 9px;backdrop-filter:blur(12px)}
.site-header nav a{border-radius:999px;padding:7px 17px;font-size:14px;color:#b2bdc2}
.site-header nav a:hover,.site-header nav a.active{background:var(--soft);color:var(--bright)}
.nav-cta,.button,.filter{display:inline-flex;align-items:center;justify-content:center;gap:9px;line-height:1.35;border:1px solid var(--line);border-radius:999px;font-size:14px;font-weight:600;padding:10px 17px;transition:background .18s,color .18s,border-color .18s}
.nav-cta,.button.primary,.filter.active{background:var(--teal);color:#092822;border-color:transparent}
.nav-cta{grid-column:3;justify-self:end;pointer-events:auto}
.nav-cta:hover,.button.primary:hover{background:var(--bright)}
.menu-toggle{display:none}
.hero-scene{position:relative;isolation:isolate}
.hero-atmosphere{
  position:absolute;inset:-84px 0 0;z-index:-1;overflow:hidden;pointer-events:none;
  background:radial-gradient(ellipse at 80% 85%,#173e3e75,transparent 57%),linear-gradient(160deg,#0c1117,#10191c);
}
.hero-grid{
  position:absolute;inset:64% 0 0;overflow:hidden;perspective:270px;
  mask-image:linear-gradient(to bottom,transparent,#000 22%,#000 78%,transparent);
}
.hero-grid::before{
  content:"";position:absolute;left:-50%;width:200%;height:280%;bottom:-100%;
  transform-origin:50% 100%;transform:rotateX(66deg);
  background-image:linear-gradient(#4ca69a28 1px,transparent 2px),linear-gradient(90deg,#4ca69a23 1px,transparent 2px);
  background-size:76px 54px;
}
.hero-particles{position:absolute;inset:0;overflow:hidden}
.hero-particles::before,.hero-particles::after{
  content:"";position:absolute;
  inset:calc(0px - var(--tile-height)) calc(0px - var(--tile-width));
  background-size:var(--tile-width) var(--tile-height);
  animation:particle-drift var(--duration) linear infinite;
}
.hero-particles::before{
  --tile-width:420px;--tile-height:336px;--duration:13s;
  --point:#27c1b29c 0 2px,transparent 3px;
  background-image:radial-gradient(circle at 7% 10%,var(--point)),radial-gradient(circle at 69% 18%,var(--point)),
    radial-gradient(circle at 39% 43%,var(--point)),radial-gradient(circle at 91% 61%,var(--point)),
    radial-gradient(circle at 16% 77%,var(--point)),radial-gradient(circle at 56% 92%,var(--point));
}
.hero-particles::after{
  --tile-width:470px;--tile-height:356px;--duration:19s;
  --point:#35bca784 0 1.5px,transparent 2.5px;
  background-image:radial-gradient(circle at 24% 7%,var(--point)),radial-gradient(circle at 81% 30%,var(--point)),
    radial-gradient(circle at 6% 53%,var(--point)),radial-gradient(circle at 59% 62%,var(--point)),
    radial-gradient(circle at 36% 86%,var(--point));
  animation-direction:reverse;animation-delay:-6s;
}
/* Each layer travels exactly one tile so the loop stays seamless. */
@keyframes particle-drift{
  from{transform:translate(0,0)}
  to{transform:translate(var(--tile-width),calc(0px - var(--tile-height)))}
}
.hero{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:clamp(32px,6vw,90px);min-height:650px;padding-block:75px 84px}
.hero-copy{max-width:650px}
.eyebrow,.kicker{font-weight:600;font-size:14px;letter-spacing:.075em;color:var(--bright)}
.eyebrow{display:inline-block;padding:5px 13px;background:#18322d;border-radius:999px;letter-spacing:.015em}
.hero h1{font-size:clamp(55px,5.8vw,88px);letter-spacing:-.066em;line-height:1.02;margin:23px 0 22px}
.hero h1 span,.editorial-heading,.section-heading h2{color:var(--teal)}
em{font-family:var(--serif);font-weight:400;color:var(--ink);letter-spacing:-.038em}
.hero-copy>p,.about-story p,.section-heading p,.project-desc,.focus-item p,.dialog-summary{color:var(--muted)}
.hero-copy>p{font-size:18px;line-height:1.55;max-width:52ch;color:#a4b0b8;margin:0}
.hero-actions,.socials,.filter-row,.tags,.project-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.hero-actions{margin:28px 0 24px}
.hero-actions .button{font-size:16px;padding:13px 22px}
.button.secondary,.button.ghost,.filter{background:transparent;color:var(--ink)}
.button.secondary:hover,.button.ghost:hover,.filter:hover{border-color:var(--teal)}
.icon{width:17px;height:17px;flex:none}
.socials{font-size:14px;color:var(--muted)}
.socials a{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:50%;color:var(--ink)}
.socials a:hover{color:var(--bright)}
.socials svg{width:16px;height:16px}

/* Glowing portrait */
.hero-portrait{
  display:block;width:100%;height:auto;border-radius:23px;
  border:1px solid #39c1ae59;
  box-shadow:0 0 0 1px #39c1ae1f,0 0 30px #39c1ae59,0 0 80px #39c1ae2e;
  animation:portrait-glow 4s ease-in-out infinite;
}
@keyframes portrait-glow{
  0%,100%{box-shadow:0 0 0 1px #39c1ae1f,0 0 24px #39c1ae47,0 0 60px #39c1ae24}
  50%{box-shadow:0 0 0 1px #39c1ae33,0 0 40px #39c1ae80,0 0 100px #39c1ae42}
}




.kicker{text-transform:uppercase;font-size:13px}



.tech-band{
  position:relative;isolation:isolate;text-align:center;overflow:hidden;
  padding:clamp(32px,4vw,62px) 0 20px;background:linear-gradient(#101b1f,var(--bg) 90%);
}
.tech-band .hero-particles{z-index:-1;pointer-events:none;opacity:.6}
.tech-band h2{margin:0;color:#a9b7bf;font-size:16px;font-weight:450}
.tech-marquee{margin:35px 0;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
.tech-track{display:flex;width:max-content;animation:tech-scroll 78s linear infinite}
.tech-row{display:flex;align-items:center;gap:clamp(36px,4vw,74px);padding-right:clamp(36px,4vw,74px)}
.tech-row span{font-size:clamp(19px,1.45vw,25px);font-weight:650;color:#87959d;white-space:nowrap}
.tech-band:hover .tech-track,.tech-band:focus-within .tech-track{animation-play-state:paused}
@keyframes tech-scroll{to{transform:translateX(-50%)}}
.tech-pills{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 12px;max-width:1080px;margin:24px auto 14px;padding:0 20px;list-style:none}
.tech-pills li{padding:7px 16px;border-radius:999px;background:#161e23;border:1px solid #273137;color:#aebbc2;line-height:1.5}
.tech-pills li:hover{color:var(--teal);background:#112c2c;border-color:#234240}
.tech-toggle{display:inline-flex;align-items:center;flex-direction:column;gap:7px;padding:10px 18px;border:0;background:transparent;color:#a8b5bd;text-transform:uppercase;letter-spacing:.045em;font-size:13px}
.tech-toggle::after{content:"";width:8px;height:8px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.tech-toggle[aria-expanded=true]::after{transform:rotate(225deg)}
.tech-toggle:hover{color:var(--bright)}
.tech-band [hidden]{display:none}
.section{padding-block:clamp(65px,7vw,105px)}
.section-heading{margin-bottom:34px}
.section-heading h2,.editorial-heading{font-size:clamp(38px,4vw,62px);line-height:1.07;letter-spacing:-.045em;margin:14px 0 20px}
.kicker{display:block}
.section-heading p{max-width:560px;margin:0}
.about-layout{display:grid;align-items:center;grid-template-columns:1fr 1fr;gap:clamp(36px,5vw,78px)}
.about-story .editorial-heading{margin:26px 0}
.about-story p{margin:0 0 17px;line-height:1.65}
.about-story .about-note{color:#e4eae6;background:var(--surface);border-left:2px solid var(--teal);border-radius:0 12px 12px 0;padding:16px 20px;font:italic 20px/1.48 var(--serif);margin-top:25px}
.focus-list{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.focus-item,.project-card,.credential,.contact-form,.contact-info,.skill-group{background:var(--surface);border:1px solid #ffffff0b;border-radius:18px}
.focus-item{padding:23px}
.focus-icon,.credential-mark,.contact-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;color:var(--teal);background:var(--soft);flex:none}
.focus-icon svg,.credential-mark svg{width:24px;height:24px}
.focus-item h3,.skill-group h3,.credential h3{font-size:18px;line-height:1.3;margin:16px 0 6px}
.focus-item p{font-size:15px;line-height:1.55;margin:0}
.journey-section{background:#131a1d;border-block:1px solid #ffffff08}
.project-section>.container{width:min(96%,1540px)}
.work-heading{text-align:center;margin:0 auto clamp(40px,5vw,76px)}
.work-heading p{max-width:680px;margin:auto}
.project-section .filter-row{justify-content:center}
.project-section [hidden]{display:none}
.project-collection{text-align:center;margin-top:clamp(30px,4vw,56px)}
.project-collection button{padding:14px 32px}
.filter-row{margin-bottom:26px}
.filter{color:var(--muted)}
.filter span{font-size:12px}
.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.project-card{display:flex;flex-direction:column;overflow:hidden;scroll-margin-top:18px}
.project-cover{position:relative;isolation:isolate;background:#1b292c;aspect-ratio:16/9;overflow:hidden}
.project-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.cover-actions{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;background:#08171966;opacity:0;transition:opacity .2s}
.project-card:hover .cover-actions,.project-card:focus-within .cover-actions{opacity:1}
.project-card:hover .project-cover img{transform:scale(1.025)}
.cover-actions a,.cover-actions button{display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #ffffff40;border-radius:50%;background:#132528ee;color:white}
.cover-actions svg{width:21px;height:21px}
.cover-actions a:hover,.cover-actions button:hover{background:#127d74}
@media(hover:none){.cover-actions{opacity:1;align-items:flex-end;justify-content:flex-end;padding:12px;background:linear-gradient(transparent 65%,#0005)}}
.project-body h3 button{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;border:0;padding:0;background:none;color:inherit;font:inherit;letter-spacing:inherit}
.project-body h3 button span{font:400 18px/1 system-ui;color:var(--muted)}
.project-card:hover h3 button,.project-body h3 button:hover{color:var(--teal)}
.project-card .tags span{background:#202a30;border-color:#2b3639;border-radius:999px;padding:4px 12px}

.project-card[hidden]{display:none}
.project-card:target{border-color:var(--teal)}
.project-body{display:flex;flex-direction:column;padding:clamp(22px,2.5vw,35px);width:100%}
.project-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:13px;color:var(--muted)}
.project-meta span:first-child,.project-role,.type-badge,.timeline-date{color:var(--bright)}
.project-body h3{font-size:clamp(21px,1.75vw,28px);line-height:1.2;letter-spacing:-.04em;margin:0 0 12px}
.project-desc{margin:0 0 18px}
.tags{gap:7px}
.tags span{display:inline-block;padding:3px 9px;border:1px solid #354440;border-radius:6px;font-size:13px;color:#c7d6cf}
.project-links{margin-top:auto;padding-top:23px}
.button.details{background:var(--soft);color:var(--bright);border-color:#31534b}
.button.details:hover{border-color:var(--bright)}
.project-links .button{font-size:14px;padding:8px 14px}
.skills-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.skill-group{padding:23px}
.skill-group h3,.credential h3{margin-top:0}
.skill-group h3{margin-bottom:15px}
.journey-layout,.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,4vw,62px)}
.sub-heading,.contact-layout h3{font-size:22px;letter-spacing:-.025em;line-height:1.3;margin:0 0 22px}
.timeline{border-left:1px solid var(--line);padding-left:23px;margin-left:5px}
.timeline article{position:relative;padding-bottom:25px}
.timeline article:last-child{padding-bottom:0}
.timeline-dot{position:absolute;top:7px;left:-28px;width:9px;height:9px;border-radius:50%;background:var(--teal)}
.timeline-date,.credential-date,.type-badge{font-size:14px}
.timeline h3{font-size:19px;margin:3px 0;line-height:1.45}
.timeline p,.credential p,.credential-date,.timeline small{color:var(--muted);margin:0}
.credential{padding:20px;display:flex;gap:16px;margin-bottom:12px}
.credential h3{margin:3px 0}
.text-link{color:var(--bright);text-decoration:underline;text-underline-offset:4px}
#contact{max-width:1024px}
#contact>.section-heading{text-align:center;margin-bottom:clamp(32px,4.5vw,66px)}
#contact>.section-heading p{max-width:700px;margin:auto}
.contact-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,3vw,48px)}
.contact-form,.contact-info,.contact-availability{padding:clamp(22px,2.5vw,32px);border-radius:22px;background:#151e22}
.contact-form,.contact-availability{border:1px solid #245052}
.contact-sidebar{display:grid;align-content:start;gap:22px;min-width:0}
.contact-layout h3{font-size:20px;margin:0}
.contact-info{border:1px solid #253035}
.contact-item{display:flex;align-items:center;gap:15px;padding:6px 0;margin-top:17px}
.contact-icon{background:#153034;width:46px;height:46px}
.contact-icon svg{width:20px;height:20px}
.contact-item small,.contact-item strong{display:block}
.contact-item small,.form-note,.contact-availability p{color:var(--muted);font-size:14px}
.contact-item strong{font-weight:500;overflow-wrap:anywhere}
a.contact-item:hover strong{color:var(--bright)}
.contact-availability h3{display:flex;align-items:center;gap:12px;line-height:1.5;font-size:16px;font-weight:550}
.status-dot{width:10px;height:10px;border-radius:50%;background:#23c877;flex:none}
.contact-availability p{margin:12px 0 0;line-height:1.55}
.contact-form label{display:block;font-size:14px;margin-bottom:21px}
.contact-form input,.contact-form textarea{display:block;width:100%;color:var(--ink);background:#1b2429;border:1px solid #2a363c;border-radius:12px;padding:13px 16px;margin-top:6px;font-size:16px}
.contact-form textarea{min-height:140px;resize:vertical}
.contact-form .button{width:100%;padding:15px 20px;font-size:16px;background:#21afa5;color:#061f1d;box-shadow:0 7px 16px #1cb4ab21}
.contact-form .button:hover{background:var(--bright)}
.form-note{font-size:13px;margin:12px 0 0;text-align:center}
.footer{border-top:1px solid var(--line)}
.footer-wrap{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-block:20px;font-size:14px}
.footer p{margin:0;color:var(--muted)}
.project-dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:20px;width:min(660px,calc(100% - 25px));max-height:calc(100dvh - 40px);padding:0}
.project-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}
.dialog-inner{position:relative;padding:clamp(23px,4vw,38px)}
.dialog-close,.menu-toggle{background:var(--surface-light);color:var(--ink);border:1px solid var(--line);border-radius:50%}
.dialog-close{position:absolute;right:12px;top:12px;width:37px;height:37px;font-size:23px}
.dialog-content-heading{font-size:28px;line-height:1.25;letter-spacing:-.04em;margin:15px 15px 10px 0}
.dialog-inner h4{margin:20px 0 8px}
.dialog-inner ul{padding-left:21px;color:var(--muted)}
.dialog-inner li{margin-bottom:7px}
@media(max-width:850px){
 .container{width:calc(100% - 44px)}
 .about-layout,.journey-layout{grid-template-columns:1fr}
 .hero{min-height:540px;gap:25px}
 .nav-wrap{gap:10px}
 .skills-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 .hero-atmosphere{top:-62px}
 .hero-particles::before{--tile-width:312px;--tile-height:280px;--duration:11s}
 .hero-particles::after{--tile-width:354px;--tile-height:300px;--duration:16s}
 .container{width:calc(100% - 36px)}
 .nav-wrap{height:62px;display:flex;justify-content:space-between}
 .menu-toggle{display:grid;pointer-events:auto;place-content:center;gap:4px;width:42px;height:42px}
 .menu-toggle span{display:block;width:18px;height:2px;background:var(--ink)}
 .site-header nav{display:none;position:absolute;inset:62px 12px auto;border-radius:16px;padding:10px;box-shadow:0 12px 26px #0006}
 .site-header nav.open{display:grid}
 .hero{grid-template-columns:1fr;gap:32px;padding:44px 0}
 .hero h1{font-size:clamp(48px,12vw,70px)}
 .hero-copy>p{font-size:16px}



 .about-layout{gap:20px}
 .focus-list{gap:10px}
 .focus-item{padding:16px}
 .focus-item h3{font-size:16px}
 .project-grid,.contact-layout,.skills-grid{grid-template-columns:1fr}
 .footer-wrap{flex-wrap:wrap}
 .footer p{order:3;width:100%}
}
@media(max-width:370px){.focus-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}