:root{
  --bg:#f6f5f2;
  --text:#262626;
  --muted:#85817b;
  --soft:#aaa69f;
  --line:#d9d6d0;
  --blue:#4b86e8;
  --header-h:64px;
  --page:980px;
}
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  scroll-snap-type:y mandatory;
}
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:"Inter",Arial,sans-serif;
  font-size:15px;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
.topbar{
  position:fixed;
  z-index:50;
  top:0;
  left:0;
  right:0;
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:min(calc(100% - 48px),1180px);
  margin:auto;
  background:linear-gradient(to bottom,var(--bg) 72%,rgba(246,245,242,0));
}
.brand{
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  letter-spacing:-.02em;
}
.top-links{display:flex;gap:22px}
.top-links a{
  font-size:12px;
  color:var(--muted);
  text-decoration:none;
}
.top-links a:hover{color:var(--text)}
.slide-rail{
  position:fixed;
  left:max(22px,calc((100vw - 1180px)/2));
  top:50%;
  z-index:40;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:11px;
  padding-left:14px;
}
.rail-line{
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:1px;
  background:var(--line);
}
.rail-item{
  position:relative;
  display:flex;
  gap:8px;
  align-items:center;
  min-height:15px;
  text-decoration:none;
  color:var(--soft);
  font-family:"IBM Plex Mono",monospace;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.05em;
  transition:color .2s ease,transform .2s ease;
}
.rail-item:before{
  content:"";
  position:absolute;
  left:-17px;
  width:7px;
  height:1px;
  background:var(--line);
  transition:width .2s ease,background .2s ease;
}
.rail-item.active{
  color:var(--text);
  transform:translateX(2px);
}
.rail-item.active:before{
  width:11px;
  background:var(--text);
}
.rail-name{
  opacity:0;
  transform:translateX(-4px);
  transition:opacity .2s ease,transform .2s ease;
}
.slide-rail:hover .rail-name,
.rail-item.active .rail-name{
  opacity:1;
  transform:none;
}
.slides{width:100%}
.slide{
  position:relative;
  min-height:100svh;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  display:flex;
  align-items:center;
  padding:calc(var(--header-h) + 35px) 24px 36px;
}
.slide-inner{
  width:min(var(--page),calc(100% - 120px));
  margin:0 auto;
}
.hero-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:64px;
  align-items:center;
}
.eyebrow,.slide-label,.fact-line,.project-index,.project-type,.blog-status,
.blog-post time,.socials,.portrait figcaption{
  font-family:"IBM Plex Mono",monospace;
}
.eyebrow,.slide-label{
  margin:0 0 18px;
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.hero-layout h1{
  max-width:650px;
  margin:0 0 26px;
  font-size:clamp(48px,5.8vw,78px);
  line-height:1;
  letter-spacing:-.055em;
  font-weight:500;
}
.hero-layout h1 span{
  display:block;
  color:var(--muted);
  font-weight:400;
}
.body-copy{
  max-width:620px;
  color:#474747;
  line-height:1.75;
}
.body-copy p{margin:0 0 18px}
.inline-links{display:flex;gap:18px;margin-top:30px}
.inline-links a{
  color:var(--blue);
  text-underline-offset:3px;
}
.portrait{margin:0}
.portrait img{
  display:block;
  width:100%;
  aspect-ratio:4/5.15;
  object-fit:cover;
}
.portrait figcaption{
  display:flex;
  justify-content:space-between;
  margin-top:7px;
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
}
.scroll-hint{
  position:absolute;
  right:max(22px,calc((100vw - 1180px)/2));
  bottom:24px;
  display:flex;
  gap:8px;
  color:var(--soft);
  font-family:"IBM Plex Mono",monospace;
  font-size:9px;
  text-transform:uppercase;
}
.narrow-layout,
.education-layout,
.work-layout,
.interest-layout,
.contact-layout{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:48px;
}
.lead{
  max-width:760px;
  margin:0 0 38px;
  font-size:clamp(38px,5vw,64px);
  line-height:1.08;
  letter-spacing:-.045em;
}
.two-text{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
  max-width:820px;
}
.fact-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  margin-top:35px;
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase;
}
.education-list{border-top:1px solid var(--line)}
.edu-item{
  display:grid;
  grid-template-columns:105px 1fr;
  gap:26px;
  padding:21px 0;
  border-bottom:1px solid var(--line);
}
.edu-year{
  color:var(--muted);
  font-family:"IBM Plex Mono",monospace;
  font-size:10px;
  text-transform:uppercase;
  padding-top:6px;
}
.edu-item h2{
  margin:0 0 7px;
  font-size:24px;
  letter-spacing:-.035em;
  font-weight:500;
}
.edu-item p{margin:0;color:var(--muted);line-height:1.55}
.projects{border-top:1px solid var(--line)}
.project{
  display:grid;
  grid-template-columns:48px 1fr 110px 20px;
  gap:22px;
  align-items:center;
  padding:24px 0;
  border-bottom:1px solid var(--line);
  text-decoration:none;
}
.project:hover .project-main h2{color:var(--blue)}
.project-index,.project-type{
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
}
.project-main h2{
  margin:0 0 5px;
  font-size:27px;
  letter-spacing:-.035em;
  font-weight:500;
  transition:color .2s ease;
}
.project-main p{
  margin:0;
  max-width:560px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.interest-copy>p{
  max-width:760px;
  margin:0 0 42px;
  font-size:clamp(32px,4.5vw,58px);
  line-height:1.12;
  letter-spacing:-.04em;
}
.interest-list{border-top:1px solid var(--line)}
.interest-list div{
  display:grid;
  grid-template-columns:50px 1fr;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.interest-list span{
  color:var(--muted);
  font-family:"IBM Plex Mono",monospace;
  font-size:9px;
}
.interest-list strong{font-weight:500}
.notes-layout{width:min(var(--page),calc(100% - 120px))}
.notes-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:26px;
}
.notes-head h2{
  margin:0;
  font-size:clamp(42px,5vw,68px);
  font-weight:500;
  letter-spacing:-.05em;
}
.notes-head a{
  color:var(--blue);
  font-size:12px;
}
.blog-status{
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase;
}
.blog-posts{border-top:1px solid var(--line)}
.blog-post{
  display:grid;
  grid-template-columns:105px 1fr 50px;
  gap:25px;
  align-items:start;
  padding:19px 0;
  border-bottom:1px solid var(--line);
  text-decoration:none;
}
.blog-post time{
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
  padding-top:4px;
}
.blog-post h3{
  margin:0 0 5px;
  font-size:22px;
  font-weight:500;
  letter-spacing:-.03em;
}
.blog-post p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}
.blog-post .read{
  color:var(--blue);
  font-size:10px;
  text-align:right;
}
.contact-intro{
  max-width:800px;
  margin:0 0 28px;
  font-size:clamp(40px,5.5vw,74px);
  line-height:1.05;
  letter-spacing:-.05em;
}
.contact-note{
  max-width:560px;
  color:var(--muted);
  line-height:1.7;
}
.email-link{
  display:inline-block;
  margin-top:26px;
  color:var(--blue);
  font-size:18px;
  text-underline-offset:4px;
}
.socials{
  display:flex;
  gap:18px;
  margin-top:35px;
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase;
}
.final-mark{
  position:absolute;
  right:max(20px,calc((100vw - 1180px)/2));
  bottom:24px;
  color:var(--line);
  font-size:70px;
  font-weight:600;
  letter-spacing:-.06em;
}
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .65s ease,transform .65s ease;
}
.reveal.visible{opacity:1;transform:none}
.delay{transition-delay:.12s}
@media(max-width:900px){
  :root{--header-h:58px}
  html{scroll-snap-type:y proximity}
  .topbar{
    width:calc(100% - 28px);
    background:var(--bg);
  }
  .slide-rail{
    left:14px;
  }
  .rail-name{display:none}
  .slide-inner,.notes-layout{
    width:min(100% - 48px,760px);
    margin-left:auto;
    margin-right:0;
  }
  .hero-layout{
    grid-template-columns:1fr 210px;
    gap:36px;
  }
  .narrow-layout,
  .education-layout,
  .work-layout,
  .interest-layout,
  .contact-layout{
    grid-template-columns:80px 1fr;
    gap:24px;
  }
}
@media(max-width:650px){
  html{scroll-snap-type:y mandatory}
  body{font-size:14px}
  .topbar{
    height:54px;
    width:calc(100% - 24px);
  }
  .top-links{gap:14px}
  .top-links a{font-size:10px}
  .slide{
    min-height:100svh;
    align-items:flex-start;
    padding:84px 18px 52px;
  }
  .slide-inner,.notes-layout{
    width:calc(100% - 22px);
    margin-left:22px;
  }
  .slide-rail{
    left:9px;
    gap:8px;
  }
  .rail-item{
    font-size:8px;
    min-height:12px;
  }
  .rail-no{display:none}
  .rail-item:before{left:-12px;width:5px}
  .rail-item.active:before{width:8px}
  .hero-layout{
    grid-template-columns:1fr;
    gap:30px;
  }
  .hero-layout h1{
    font-size:clamp(48px,15vw,72px);
    max-width:100%;
  }
  .portrait{
    width:min(62vw,250px);
  }
  .portrait figcaption{
    display:grid;
    gap:3px;
  }
  .body-copy{font-size:14px}
  .scroll-hint{display:none}
  .narrow-layout,
  .education-layout,
  .work-layout,
  .interest-layout,
  .contact-layout{
    display:block;
  }
  .slide-label{
    margin-bottom:28px;
  }
  .lead{
    font-size:clamp(34px,10vw,52px);
  }
  .two-text{
    grid-template-columns:1fr;
    gap:0;
  }
  .edu-item{
    grid-template-columns:70px 1fr;
    gap:16px;
    padding:18px 0;
  }
  .edu-item h2{font-size:20px}
  .project{
    grid-template-columns:34px 1fr 18px;
    gap:12px;
    padding:18px 0;
  }
  .project-type{display:none}
  .project-main h2{font-size:22px}
  .project-main p{font-size:12px}
  .interest-copy>p{
    font-size:clamp(31px,9vw,46px);
  }
  .notes-head{
    display:block;
  }
  .notes-head h2{
    margin-bottom:16px;
    font-size:48px;
  }
  .blog-post{
    grid-template-columns:1fr;
    gap:7px;
    padding:16px 0;
  }
  .blog-post .read{text-align:left}
  .contact-intro{
    font-size:clamp(40px,12vw,58px);
  }
  .final-mark{
    right:18px;
    bottom:20px;
    font-size:52px;
  }
}
@media(max-height:720px) and (min-width:651px){
  .slide{padding-top:82px;padding-bottom:24px}
  .hero-layout h1{font-size:58px}
  .portrait{max-width:230px}
  .lead{font-size:46px}
  .contact-intro{font-size:55px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
}
