:root{
  --bg:#0d0f12;
  --panel:#12151a;
  --panel-2:#171a20;
  --line:#2b3038;
  --line-soft:#20242a;
  --text:#f0f1f2;
  --muted:#9b9fa6;
  --muted-2:#747981;
  --accent:#b9a77d;
  --accent-soft:rgba(185,167,125,.12);
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.65;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);
  background-size:56px 56px;
  mask-image:linear-gradient(to bottom,black,transparent 82%);
}
::selection{background:var(--accent);color:#111}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.section-shell{width:min(calc(100% - 40px),var(--max));margin-inline:auto}

.site-header{
  width:min(calc(100% - 40px),var(--max));
  margin:16px auto 0;
  padding:10px 12px 10px 14px;
  position:sticky;
  top:12px;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid var(--line);
  background:rgba(13,15,18,.92);
  backdrop-filter:blur(12px);
}
.brand{display:flex;align-items:center;gap:11px;font-weight:760;letter-spacing:-.02em}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;background:#e6e7e8;color:#111318;font-size:.73rem;font-weight:850;letter-spacing:.08em}
.brand-name{font-size:.93rem}
.nav{display:flex;align-items:center;gap:24px;color:#aeb2b7;font-size:.82rem}
.nav a:hover{color:#fff}
.nav-cta{padding:8px 12px;border:1px solid #3a4048;color:#e7e8ea}

.hero{min-height:calc(100vh - 78px);display:grid;grid-template-columns:1.18fr .82fr;gap:76px;align-items:center;padding:90px 0 86px}
.eyebrow,.section-label{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:#858a92}
.eyebrow{display:flex;align-items:center;gap:9px;margin-bottom:26px}
.eyebrow span{width:18px;height:1px;background:var(--accent)}
h1,h2,h3,p{margin-top:0}
h1,h2{letter-spacing:-.045em;line-height:1}
h1{font-size:clamp(3.9rem,7.5vw,7.25rem);font-weight:650;margin-bottom:28px}
h1 em,h2 em{font-style:normal;color:var(--accent)}
.hero-lede{max-width:700px;color:#b2b5ba;font-size:clamp(1rem,1.4vw,1.16rem);line-height:1.75;margin-bottom:32px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 17px;border:1px solid transparent;font-size:.86rem;font-weight:760;transition:background .2s ease,border-color .2s ease,color .2s ease}
.button.primary{background:#e8e8e7;color:#111318}
.button.primary:hover{background:#fff}
.button.secondary{border-color:#3a4048;color:#d5d7da;background:#12151a}
.button.secondary:hover{border-color:#606771;color:#fff}
.hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:34px}
.hero-tags span,.skill-tags span{border:1px solid var(--line);background:#111419;color:#8f949b;font-size:.72rem;padding:6px 9px}

.profile-panel{border:1px solid var(--line);background:#111419;padding:22px}
.profile-heading{display:flex;justify-content:space-between;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.62rem;letter-spacing:.12em;color:#7e838b}
.availability{display:flex;align-items:center;gap:7px;letter-spacing:.04em;text-transform:none}
.availability i{width:6px;height:6px;border-radius:50%;background:#7d9670}
.profile-name{padding:38px 0 34px;border-bottom:1px solid var(--line)}
.profile-name strong{display:block;font-size:2rem;letter-spacing:-.035em}
.profile-name span{display:block;color:#8c9198;margin-top:4px;font-size:.9rem}
.profile-facts{margin:0}
.profile-facts div{display:grid;grid-template-columns:130px 1fr;gap:18px;padding:15px 0;border-bottom:1px solid var(--line-soft)}
.profile-facts dt{color:#767b82;font-size:.72rem}
.profile-facts dd{margin:0;color:#d6d8db;font-size:.82rem;font-weight:640}
.profile-note{margin-top:24px;padding:18px;background:#171a20;border-left:2px solid var(--accent)}
.profile-note span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#7c8188;font-size:.59rem;letter-spacing:.12em}
.profile-note p{margin:8px 0 0;color:#b4b7bc;font-size:.85rem}

.section{padding:112px 0;border-top:1px solid var(--line-soft)}
.two-column{display:grid;grid-template-columns:.3fr 1fr;gap:54px}
.section-copy{max-width:900px}
h2{font-size:clamp(2.8rem,5.2vw,5.25rem);font-weight:620;margin-bottom:32px}
.section-copy .lead{font-size:clamp(1.2rem,2vw,1.55rem);line-height:1.55;color:#d6d8da;letter-spacing:-.015em;max-width:850px}
.section-copy p:not(.lead){max-width:780px;color:#999ea5;font-size:.98rem}

.section-heading{display:grid;grid-template-columns:.3fr 1fr;gap:54px;align-items:start;margin-bottom:48px}
.section-heading h2{max-width:860px;margin-bottom:18px}
.section-heading p{max-width:720px;color:#969ba2;margin:0}
.timeline{border-top:1px solid var(--line)}
.timeline-row{display:grid;grid-template-columns:80px .72fr 1.15fr;gap:34px;padding:30px 0;border-bottom:1px solid var(--line)}
.timeline-marker{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#777c83;font-size:.67rem;padding-top:4px}
.timeline-title h3{margin:0;font-size:1.32rem;letter-spacing:-.025em}
.timeline-title span{display:block;margin-top:4px;color:#767b83;font-size:.82rem}
.timeline-copy p{margin:0;color:#9da1a7;max-width:600px;font-size:.92rem}

.practice-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.practice-card{min-height:290px;padding:24px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#101317}
.practice-card>span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#6f747c;font-size:.65rem}
.practice-card h3{margin:72px 0 12px;font-size:1.35rem;letter-spacing:-.025em}
.practice-card p{margin:0;color:#8f949b;font-size:.88rem}

.project-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:12px}
.project-card{position:relative;min-height:420px;padding:24px;border:1px solid var(--line);background:#111419;overflow:hidden;display:flex;flex-direction:column;transition:border-color .2s ease,transform .2s ease}
.project-card:hover{border-color:#4a5059;transform:translateY(-2px)}
.project-card.project-wide{grid-row:span 2;min-height:852px;background:#15181d}
.project-card.project-image{min-height:420px;justify-content:flex-end}
.project-top,.project-body,.project-link{position:relative;z-index:2}
.project-top{display:flex;justify-content:space-between;gap:20px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.6rem;letter-spacing:.08em;color:#777c83}
.project-body{margin-top:auto;max-width:640px}
.project-card h3{font-size:clamp(1.9rem,3.3vw,3.35rem);line-height:1.02;letter-spacing:-.04em;margin:0 0 16px}
.project-card p{color:#979ca3;margin:0;max-width:600px;font-size:.92rem}
.project-card strong{color:#d7d9dc}
.project-card ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:22px 0 0}
.project-card li{font-size:.68rem;color:#858a91;border:1px solid var(--line);padding:5px 8px}
.project-link{border-top:1px solid var(--line);margin-top:26px;padding-top:16px;color:#c4c7ca;font-size:.8rem;font-weight:720}
.project-photo{position:absolute;inset:0;background-image:var(--photo);background-size:cover;background-position:center;filter:saturate(.72) contrast(1.04)}
.project-shade{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(10,12,15,.16),rgba(10,12,15,.38) 38%,rgba(12,14,17,.96) 88%)}

.skills-layout{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line)}
.skill-group{padding:28px 28px 8px 0;border-right:1px solid var(--line)}
.skill-group+ .skill-group{padding-left:28px}
.skill-group:last-child{border-right:0}
.skill-group h3{font-size:1.15rem;letter-spacing:-.025em;margin-bottom:18px}
.skill-tags{display:flex;flex-wrap:wrap;gap:8px}

.off-duty-section{padding-bottom:124px}
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.photo-card{margin:0;border:1px solid var(--line);background:#111419}
.photo-card img{width:100%;height:330px;object-fit:cover;filter:saturate(.72) contrast(1.03)}
.photo-card figcaption{padding:17px 18px 19px}
.photo-card figcaption strong{display:block;font-size:.9rem}
.photo-card figcaption span{display:block;color:#777c83;font-size:.73rem;margin-top:3px}

.contact-section{display:grid;grid-template-columns:1.1fr .9fr;gap:70px;padding:72px 0 80px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.contact-section h2{font-size:clamp(2.8rem,5vw,5.4rem);margin:18px 0 0;max-width:750px}
.contact-copy{align-self:end;padding-bottom:4px}
.contact-copy p{max-width:530px;color:#9a9fa6;margin-bottom:24px}

.site-footer{display:grid;grid-template-columns:1fr auto auto;gap:44px;align-items:start;padding:34px 0 44px;color:#747981;font-size:.75rem}
.site-footer>div:first-child strong{display:block;color:#d5d7da;font-size:.83rem}
.site-footer>div:first-child span{display:block;margin-top:3px}
.footer-links{display:flex;gap:18px}
.footer-links a:hover{color:#fff}
.copyright{white-space:nowrap}

.reveal{opacity:0;transform:translateY(12px);transition:opacity .55s ease,transform .55s ease}
.reveal.visible{opacity:1;transform:none}

@media (max-width: 940px){
  .nav a:not(.nav-cta){display:none}
  .hero{grid-template-columns:1fr;gap:38px;padding-top:72px;min-height:auto}
  .profile-panel{max-width:720px}
  .two-column,.section-heading,.contact-section{grid-template-columns:1fr;gap:26px}
  .timeline-row{grid-template-columns:52px .8fr 1.2fr;gap:20px}
  .practice-grid{grid-template-columns:1fr 1fr}
  .project-grid{grid-template-columns:1fr}.project-card.project-wide{grid-row:auto;min-height:520px}
  .skills-layout{grid-template-columns:1fr}.skill-group,.skill-group+ .skill-group{padding:24px 0;border-right:0;border-bottom:1px solid var(--line)}
  .photo-grid{grid-template-columns:1fr 1fr}.photo-card:last-child{grid-column:1/-1}.photo-card:last-child img{height:400px}
  .site-footer{grid-template-columns:1fr auto}.copyright{grid-column:1/-1}
}

@media (max-width: 620px){
  .section-shell,.site-header{width:min(calc(100% - 24px),var(--max))}
  .site-header{top:8px;margin-top:8px}.brand-name{display:none}
  .hero{padding:64px 0 76px}
  h1{font-size:clamp(3.4rem,15vw,5.3rem)}
  h2{font-size:clamp(2.6rem,12vw,4.25rem)}
  .hero-actions{display:grid}.button{width:100%}
  .profile-panel{padding:16px}.profile-facts div{grid-template-columns:1fr;gap:4px}
  .section{padding:84px 0}
  .timeline-row{grid-template-columns:38px 1fr}.timeline-copy{grid-column:2}
  .practice-grid{grid-template-columns:1fr}.practice-card{min-height:230px}.practice-card h3{margin-top:48px}
  .project-card,.project-card.project-wide,.project-card.project-image{min-height:470px;padding:18px}
  .project-top{flex-direction:column;gap:4px}
  .photo-grid{grid-template-columns:1fr}.photo-card:last-child{grid-column:auto}.photo-card img,.photo-card:last-child img{height:330px}
  .contact-section{padding:60px 0}
  .site-footer{grid-template-columns:1fr;gap:18px}.copyright{grid-column:auto}.footer-links{flex-wrap:wrap}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.reveal{opacity:1;transform:none}
}
