*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#f6f5f2;color:#171715;font-family:'Geist',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:#171715;text-decoration:none}
a:hover{color:oklch(0.55 0.13 255)}
button{font:inherit;color:inherit;background:none;border:0;padding:0;text-align:left;cursor:pointer}
b{font-weight:600}

.mono{font-family:'Geist Mono',monospace}
.eyebrow{font-family:'Geist Mono',monospace;font-size:13px;color:#6b6a65}
.muted{color:#6b6a65}
.wrap{max-width:1120px;margin:0 auto;padding:0 32px}
.h2{margin:0;font-weight:500;font-size:40px;letter-spacing:-0.03em}
.stack-12{display:flex;flex-direction:column;gap:12px}
.stack-12.tight{gap:6px}
.dash-list{display:flex;flex-direction:column;gap:8px}
.dash-list div{display:grid;grid-template-columns:16px 1fr;font-size:14px;line-height:1.55;color:#3b3a37}
.dash-list div::before{content:'–';color:#b3b1ab}
.dash-list span{text-wrap:pretty}

/* Nav */
.nav-bar{position:sticky;top:0;z-index:1000;background:rgba(246,245,242,.82);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid transparent;transition:border-color .2s}
.nav-bar.scrolled{border-bottom-color:#e4e2dd}
.nav-bar .nav{transition:padding .2s}
.nav-bar.scrolled .nav{padding-block:16px}
section[id],header[id],footer[id]{scroll-margin-top:72px}
.nav{display:flex;justify-content:space-between;align-items:center;padding-block:28px;font-family:'Geist Mono',monospace;font-size:13px;color:#6b6a65}
.nav .brand{font-family:'Geist',sans-serif;font-weight:600;font-size:15px;letter-spacing:-0.01em}
.nav .links{display:flex;gap:28px}

/* Hero */
.hero{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:56px;align-items:center;padding:72px 0 96px}
.hero-text{display:flex;flex-direction:column;gap:28px}
.status{display:flex;align-items:center;gap:10px}
.status .dot{width:8px;height:8px;border-radius:50%;background:oklch(0.68 0.15 150)}
.hero h1{margin:0;font-weight:500;font-size:clamp(44px,6.4vw,80px);line-height:0.98;letter-spacing:-0.04em}
.hero h1 .alias{display:block;margin-top:6px;color:#9a9892;font-size:40px;line-height:1}
.hero .tagline{margin:0;font-size:20px;line-height:1.45;max-width:30ch;text-wrap:pretty}
.ctas{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:flex;align-items:center;gap:8px;padding:12px 20px;border:1px solid #d9d7d1;border-radius:999px;font-size:14px}
.btn svg{flex:none}
.btn-primary,.btn-primary:hover{background:#171715;color:#f6f5f2;border-color:#171715}

.portrait-scene{perspective:1400px;display:flex;justify-content:center}
.portrait{position:relative;width:min(100%,380px);aspect-ratio:4/5;transform:rotateY(-16deg) rotateX(7deg) rotateZ(1deg);transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.portrait:hover{transform:rotateY(0deg) rotateX(0deg) rotateZ(0deg)}
.portrait .layer{position:absolute;inset:0;border-radius:20px}
.portrait .l1{background:#e9e7e2;transform:translateZ(-40px) translate(26px,22px)}
.portrait .l2{border:1px solid #dcdad4;transform:translateZ(-20px) translate(13px,11px);background:#efede9}
.portrait .photo{overflow:hidden;box-shadow:0 30px 60px -30px rgba(20,20,15,.35);background:repeating-linear-gradient(135deg,#ecebe6 0 10px,#e4e2dc 10px 20px)}
/* Crop carried over from the design's image slot (scale 1.294, pan +0.88% / +17.34%) */
.portrait .photo img{position:absolute;width:129.37%;height:155.14%;left:50.88%;top:67.34%;transform:translate(-50%,-50%);max-width:none;display:block}
.portrait .tag{position:absolute;left:-18px;bottom:28px;transform:translateZ(40px);background:#fff;border:1px solid #e4e2dd;border-radius:12px;padding:12px 16px;font-family:'Geist Mono',monospace;font-size:12px;color:#6b6a65;box-shadow:0 12px 30px -16px rgba(20,20,15,.3)}

/* Summary */
.summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:48px;padding:64px 0;border-top:1px solid #e4e2dd}
.summary p{margin:0;grid-column:span 2;font-size:22px;line-height:1.5;letter-spacing:-0.01em;text-wrap:pretty;max-width:720px}

/* Highlights */
.highlights{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));grid-auto-rows:auto;row-gap:0;border-top:1px solid #e4e2dd;border-bottom:1px solid #e4e2dd}
.highlight{padding:40px 28px 40px 0;display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:16px;align-content:start}
.highlight .fig{font-size:clamp(36px,3.6vw,48px);font-weight:500;letter-spacing:-0.04em;line-height:1;white-space:nowrap}
.highlight p{margin:0;font-size:14px;line-height:1.55;color:#6b6a65;text-wrap:pretty}
.highlight p b{font-weight:500;color:#171715}

/* Skills */
.skills{padding:112px 0 64px;display:flex;flex-direction:column;gap:40px}
.skills-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:32px;align-items:center}
.stage{grid-column:span 2;position:relative;height:540px;perspective:1600px;overflow:hidden;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;border-radius:24px;background:#fbfaf8;border:1px solid #ebe9e4}
.stage[data-view="matrix"]{cursor:default;touch-action:auto}
.stage .view{position:absolute;inset:0}
.stage .view[hidden]{display:none}
.floor{position:absolute;left:50%;top:58%;margin-left:-208px;margin-top:-120px;width:416px;height:240px;transform-style:preserve-3d;transform:rotateX(58deg) rotateZ(-40deg);background-color:#f1efea;background-image:linear-gradient(#e4e2dc 1px,transparent 1px),linear-gradient(90deg,#e4e2dc 1px,transparent 1px);background-size:52px 60px;border-radius:4px}
.row-label{position:absolute;left:428px;white-space:nowrap;font-family:'Geist Mono',monospace;font-size:12px}
.bar{position:absolute;width:34px;height:34px;transform-style:preserve-3d;cursor:pointer}
.bar>div{position:absolute}
.bar .f1{left:0;top:34px;width:34px;transform-origin:top;transform:rotateX(90deg);transition:height .7s cubic-bezier(.2,.7,.2,1),background .2s}
.bar .f2{left:0;width:34px;transform-origin:bottom;transform:rotateX(-90deg);transition:all .7s cubic-bezier(.2,.7,.2,1)}
.bar .f3{left:34px;top:0;height:34px;transform-origin:left;transform:rotateY(-90deg);transition:width .7s cubic-bezier(.2,.7,.2,1),background .2s}
.bar .f4{top:0;height:34px;transform-origin:right;transform:rotateY(90deg);transition:all .7s cubic-bezier(.2,.7,.2,1)}
.bar .top{inset:0;transition:transform .7s cubic-bezier(.2,.7,.2,1),background .2s}

.sphere-tag{position:absolute;left:50%;top:58%;white-space:nowrap;padding:4px 10px;border-radius:999px;letter-spacing:-0.01em;cursor:pointer;will-change:transform;transition:background .15s,color .15s}

.matrix{padding:108px 32px 32px;columns:2 240px;column-gap:40px}
.m-group{break-inside:avoid;display:flex;flex-direction:column;gap:8px;padding-bottom:22px}
.m-group .m-title{font-family:'Geist Mono',monospace;font-size:12px}
.m-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;cursor:pointer}
.m-row .m-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-segs{display:flex;gap:3px}
.m-segs span{width:18px;height:12px;border-radius:3px;transition:all .2s}

.focus{position:absolute;left:24px;top:22px;display:flex;flex-direction:column;gap:4px;pointer-events:none;z-index:200}
.focus .name{font-size:18px;font-weight:500;letter-spacing:-0.01em}
.focus .meta{font-family:'Geist Mono',monospace;font-size:12px;color:#6b6a65}
.focus .detail{margin-top:6px;font-size:13px;line-height:1.45;color:#3b3a37;max-width:280px}

.legend{display:flex;flex-direction:column;gap:28px}
.l-group{display:flex;flex-direction:column;gap:10px}
.l-title{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500}
.l-title .sw{width:10px;height:10px;border-radius:2px}
.pills{display:flex;flex-wrap:wrap;gap:6px}
.pill{padding:5px 10px;border-radius:999px;font-size:12px;cursor:pointer;border:1px solid #e4e2dd;background:#fff;color:#171715;transition:all .15s}
.skills-note{font-family:'Geist Mono',monospace;font-size:11px;color:#9a9892}

/* Work */
.work{padding:64px 0;display:flex;flex-direction:column;gap:56px}
.job{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:32px;border-top:1px solid #171715;padding-top:28px}
.job-info{display:flex;flex-direction:column;gap:8px}
.job-info .company{font-size:20px;font-weight:500;letter-spacing:-0.01em}
.job-info .role{font-size:14px;color:#6b6a65}
.job-info .period{font-family:'Geist Mono',monospace;font-size:12px;color:#9a9892}
.job-info p{margin:8px 0 0;font-size:14px;line-height:1.55;color:#6b6a65;text-wrap:pretty}
.projects{grid-column:span 2;display:flex;flex-direction:column}
.project{border-bottom:1px solid #e4e2dd}
.project-head{width:100%;display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:18px 0}
.project-head .title{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
.project-head .pname{font-size:18px;font-weight:500}
.project-head .pmeta{font-family:'Geist Mono',monospace;font-size:12px;color:#6b6a65}
.project-head .sign{font-family:'Geist Mono',monospace;font-size:16px;color:#9a9892}
.project-body{display:flex;flex-direction:column;gap:16px;padding:0 0 24px;max-width:640px}
.project-body[hidden]{display:none}
.project-body .desc{margin:0;font-size:15px;line-height:1.6;text-wrap:pretty}
.results{display:flex;flex-wrap:wrap;gap:8px}
.results span{padding:6px 12px;border-radius:8px;background:oklch(0.95 0.03 255);color:oklch(0.4 0.12 255);font-size:13px;font-weight:500}
.tech{font-family:'Geist Mono',monospace;font-size:12px;line-height:1.6;color:#6b6a65}
.also{margin:18px 0 0;font-size:14px;line-height:1.55;color:#6b6a65;max-width:640px;text-wrap:pretty}

/* Own products */
.own{padding:64px 0;display:flex;flex-direction:column;gap:40px}
.own .lede{margin:0;font-size:22px;line-height:1.45;letter-spacing:-0.01em;max-width:640px;text-wrap:pretty}
.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:24px}
.product{display:flex;flex-direction:column;gap:20px;padding:24px;border:1px solid #e4e2dd;border-radius:20px;background:#fff}
.product .shot-scene{perspective:900px}
.product .shot{aspect-ratio:16/9;border-radius:12px;border:1px solid #e4e2dd;background:repeating-linear-gradient(135deg,#f1efea 0 10px,#e9e7e2 10px 20px);transform:rotateX(10deg) rotateY(-8deg);transition:transform .5s cubic-bezier(.2,.7,.2,1);box-shadow:0 20px 40px -24px rgba(20,20,15,.3)}
.product .shot:hover{transform:rotateX(0deg) rotateY(0deg)}
.product .shot img{width:100%;height:100%;object-fit:cover;object-position:top left;border-radius:12px;display:block}
.product .pname{font-size:20px;font-weight:500;letter-spacing:-0.01em}
.product .pmeta{font-family:'Geist Mono',monospace;font-size:12px;color:#6b6a65}
.product .desc{margin:0;font-size:15px;line-height:1.55}

/* Certs & education */
.creds{padding:64px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:48px;border-top:1px solid #e4e2dd}
.creds>div{display:flex;flex-direction:column;gap:18px}
.cert{padding:12px 0;border-bottom:1px solid #e4e2dd;font-size:14px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.cert span{line-height:1.45}
.cert a{flex:none;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #e4e2dd;border-radius:50%;font-size:13px;color:#6b6a65}
.cert a:hover{color:#1a1a18;border-color:#1a1a18}
.edu{display:flex;flex-direction:column;gap:6px}
.edu .degree{font-size:15px;font-weight:500;line-height:1.4}
.edu div{font-size:14px}
.edu b{font-weight:500}

/* Quote */
.pride{padding:120px 0;border-top:1px solid #e4e2dd;display:flex;flex-direction:column;gap:24px;align-items:center;text-align:center}
.pride blockquote{margin:0;font-size:clamp(28px,3.6vw,44px);font-weight:400;line-height:1.2;letter-spacing:-0.03em;max-width:22ch;text-wrap:balance}
.pride p{margin:0;font-size:16px;color:#6b6a65}

/* Footer */
.footer{padding:56px 0 64px;border-top:1px solid #171715;display:flex;justify-content:space-between;flex-wrap:wrap;gap:24px;align-items:end}
.footer .big{font-size:clamp(32px,4.6vw,56px);font-weight:500;letter-spacing:-0.04em;line-height:1}
.footer .contacts{display:flex;flex-wrap:wrap;gap:8px 28px;font-size:14px}

/* The matrix grows with its content instead of clipping */
.stage[data-view="matrix"]{height:auto;min-height:540px;display:flex;flex-direction:column}
.stage[data-view="matrix"] .matrix{position:relative;padding-top:28px}
.stage[data-view="matrix"] .focus{position:relative;left:auto;top:auto;order:-1;padding:22px 24px 0}

/* Narrow screens: the design's span-2 columns collapse to full width */
@media (max-width:760px){
  .wrap{padding:0 20px}
  .summary p,.stage,.projects{grid-column:1/-1}
  .summary{gap:20px}
  .stage{height:420px}
  .stage[data-view="matrix"]{min-height:0}
  .portrait{width:min(100% - 36px,380px)}
  .stage[data-view="matrix"] .matrix{padding:24px 20px 8px}
}

@media (max-width:600px){
  .wrap{padding:0 20px}
  .nav{padding-block:20px}
  .nav-bar.scrolled .nav{padding-block:14px}
  section[id],header[id],footer[id]{scroll-margin-top:60px}
  .nav .links{gap:20px}

  .hero{gap:40px;padding:32px 0 56px}
  .hero-text{gap:22px}
  .status{font-size:12px;align-items:flex-start}
  .status .dot{margin-top:4px;flex:none}
  .hero h1 .alias{font-size:32px}
  .hero .tagline{font-size:18px}
  .ctas{gap:8px}
  .ctas .btn{flex:1 1 0;justify-content:center;padding:12px 10px;white-space:nowrap}
  .portrait{width:min(100% - 36px,320px)}

  .summary{padding:48px 0}
  .summary p{font-size:18px}

  .highlight{padding:24px 0;row-gap:10px}
  .highlight+.highlight{border-top:1px solid #e4e2dd}
  .highlight .fig{font-size:32px}

  .skills{padding:72px 0 40px;gap:28px}
  .h2{font-size:32px}
  .stage{height:380px;border-radius:20px}
  .focus{left:18px;top:16px}
  .stage[data-view="matrix"] .focus{padding:16px 18px 0}
  .focus .name{font-size:16px}
  .legend{gap:22px}
  .pill{padding:7px 12px;font-size:13px}

  .work{padding:48px 0;gap:40px}
  .job{gap:16px}
  .project-head{padding:16px 0}
  .project-head .pname{font-size:17px}

  .own{padding:48px 0;gap:28px}
  .own .lede{font-size:19px}
  .product{padding:18px;gap:16px}

  .creds{padding:48px 0;gap:40px}
  .cert a{width:36px;height:36px}

  .pride{padding:80px 0}
  .footer{padding:40px 0 48px}
  .footer .contacts{flex-direction:column;gap:14px;font-size:15px}
}

/* Touch: vertical swipes scroll the page, horizontal swipes turn the chart */
@media (pointer:coarse){
  .stage{touch-action:pan-y}
}
.stage.compact .row-label{display:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
