@font-face{font-family:'Stack Sans Notch';font-style:normal;font-weight:300;font-display:swap;src:url('assets/stack-sans-notch.ttf') format('truetype')}
@font-face{font-family:'Stack Sans Text';font-style:normal;font-weight:300;font-display:swap;src:url('assets/stack-sans-text.ttf') format('truetype')}
@font-face{font-family:'Stack Sans Headline';font-style:normal;font-weight:400;font-display:swap;src:url('assets/stack-sans-headline.ttf') format('truetype')}
:root{color-scheme:dark;--background:#181818;--foreground:#fff;--muted:rgba(255,255,255,.64)}
*{box-sizing:border-box}
html{background:var(--background)}
body{min-height:100svh;display:flex;align-items:center;padding:32px 20px;margin:0;color:var(--foreground);background:var(--background);-webkit-font-smoothing:antialiased}
.portfolio{width:100%;max-width:480px;margin-inline:auto;display:flex;flex-direction:column;gap:40px}
.intro{display:flex;flex-direction:column;gap:16px}
.identity{display:flex;align-items:center;gap:16px}
.portrait{position:relative;display:block;flex:0 0 20px;width:20px;height:20px;overflow:hidden;background:#006ffc}
h1{display:flex;align-items:center;gap:8px;margin:0;font-family:'Stack Sans Notch',sans-serif;font-size:24px;font-weight:300;line-height:31px;letter-spacing:.72px;flex-wrap:wrap;min-width:0}
.role{color:var(--muted)}
.bio{font-family:'Stack Sans Text',sans-serif;font-size:16px;font-weight:300;line-height:24px;letter-spacing:.32px}
p{margin:0}p+p{margin-top:24px}
.socials{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;font-family:'Stack Sans Headline',sans-serif;font-size:16px;font-weight:400;line-height:21px;letter-spacing:.32px}
a{color:inherit;text-decoration:none;text-underline-offset:5px}
a:hover{text-decoration:underline}
a:focus-visible{outline:2px solid currentColor;outline-offset:6px;border-radius:2px}
::selection{background:#ddd;color:#181818}
@media(max-width:833.98px){.socials{flex-direction:column;align-items:flex-start;gap:24px}}
@media(max-width:360px){h1{font-size:20px;letter-spacing:.4px}.identity{gap:12px}}

/* Local responsive portfolio and project-access preview. */
body{display:block;padding:0}
#app{width:100%;min-height:100svh}
.portfolio{width:calc(100% - 40px);max-width:480px;margin:0 auto;padding:clamp(32px,8vh,96px) 0}
.projects-page{width:480px;max-width:none;margin:0 0 0 max(20px,calc((100vw - 480px)/2));padding:160px 0}
.projects-link{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;font:400 16px/21px 'Stack Sans Headline',sans-serif;letter-spacing:.32px}
.projects-page{display:flex;flex-direction:column;gap:48px}
.projects-list{display:flex;flex-direction:column;gap:64px;width:100%}
.breadcrumb{display:flex;gap:8px;align-items:center;font:300 20px/normal 'Stack Sans Headline',sans-serif;letter-spacing:.6px}
.breadcrumb a{color:var(--muted)}
.breadcrumb>span{display:inline-flex;width:20px;justify-content:center;color:var(--muted)}
.breadcrumb h1{font:inherit;letter-spacing:inherit;outline:0}
.project{display:flex;flex-direction:column;gap:16px;width:100%}
.image-slot{width:100%;aspect-ratio:1040/768;position:relative;overflow:hidden;background:#232323}
.image-slot img{display:block;width:100%;height:100%;object-fit:cover}
.image-slot.togg img{width:100%;height:100%;object-fit:cover}
.project-media.legends{display:flex;align-items:center}
.project-copy{display:flex;flex-direction:column;gap:8px;font:300 16px/24px 'Stack Sans Text',sans-serif;letter-spacing:.32px}
.project-copy p+p{margin-top:0}
.project-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px}
.project-heading h2{margin:0;font:300 24px/32px 'Stack Sans Headline',sans-serif;letter-spacing:.72px}
.project-heading a{font:400 16px/21px 'Stack Sans Headline',sans-serif;text-decoration:underline;white-space:nowrap}
.project-type{color:var(--muted)}
.project-description{color:rgba(255,255,255,.8)}
.asset-unavailable{height:100%;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;padding:24px;text-align:center;font:300 20px/28px 'Stack Sans Headline',sans-serif;color:rgba(255,255,255,.55)}
.asset-unavailable small{font:300 12px/20px 'Stack Sans Text',sans-serif;color:rgba(255,255,255,.35)}
[hidden]{display:none!important}
@media(min-width:768px) and (max-width:1023px){.portfolio{max-width:480px}}
@media(min-width:768px) and (max-width:1023px){
  .projects-page{width:434px;margin-left:max(20px,calc((100vw - 434px)/2));padding:80px 0}
  body[data-screen="home"] #app{display:block;padding:0}
  body[data-screen="home"] .portfolio{margin:120px auto 120px;padding:0}
}
@media(min-width:1024px){.projects-page{width:480px;margin-left:max(20px,calc((100vw - 480px)/2));padding:160px 0}}
@media(min-width:834px){.socials{flex-direction:row;flex-wrap:nowrap;justify-content:space-between;gap:0}}
@media(max-width:767px){.portfolio{padding-top:80px;padding-bottom:80px}.projects-page{width:calc(100% - 40px);margin:0 20px;padding:80px 0}.socials{flex-direction:row;align-items:center;gap:20px 28px}}

/* Fit the home screen to the available panel, with natural scrolling when needed. */
body[data-screen="home"] #app{display:flex;align-items:center;min-height:100svh;min-height:100dvh}
.portfolio,.projects-page,.intro,.bio,.project,.project-copy{min-width:0;overflow-wrap:anywhere}
.identity{align-items:flex-start}.portrait{margin-top:5.5px}
@media(max-height:700px){.portfolio{gap:28px;padding-block:24px}}
@media(max-width:360px){.portfolio{width:calc(100% - 32px)}.projects-page{width:calc(100% - 32px);margin-inline:16px}}

/* Supplied exports already contain the intended Figma image crop. */
.image-slot{aspect-ratio:960/709}
.role{color:#fff}

/* Keep the desktop home view precisely centered; smaller layouts retain their Figma spacing. */
body[data-screen="home"] #app {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
}
body[data-screen="home"] .portfolio {
  width: 100%;
  max-width: 480px;
  flex: 0 0 auto;
  margin: auto;
  padding: 0;
}
@media (min-width: 768px) and (max-width: 1023px) {
  body[data-screen="home"] #app { display: block; padding: 0 0 120px; }
  body[data-screen="home"] .portfolio {
    max-width: 480px;
    margin: 120px auto 0;
    padding: 0;
  }
}

/* Show link underlines on hover and keyboard focus only. */
a, .project-heading a { text-decoration: none; text-underline-offset: 5px; }
a:hover, a:focus-visible, .project-heading a:hover, .project-heading a:focus-visible { text-decoration: underline; }

/* Match the Figma mobile navigation and its fixed top spacing. */
@media (max-width: 767px) {
  body[data-screen="home"] #app {
    display: block;
    padding: 0 0 80px;
  }
  body[data-screen="home"] .portfolio {
    width: calc(100% - 40px);
    margin: 80px auto 0;
  }
  .socials {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .projects-link { align-self: flex-start; }
}

/* Fast blur reveals for page entry and project cards. */
@keyframes page-reveal{
  from{opacity:0;filter:blur(12px);transform:translateY(12px)}
  to{opacity:1;filter:blur(0);transform:translateY(0)}
}
.motion-ready body[data-screen="home"] .portfolio>.intro,
.motion-ready body[data-screen="home"] .portfolio>.socials{
  animation:page-reveal 1400ms cubic-bezier(.22,1,.36,1) both;
}
.motion-ready body[data-screen="home"] .portfolio>.socials{animation-delay:45ms}
.motion-ready body[data-screen="projects"] .breadcrumb{animation:page-reveal 1400ms cubic-bezier(.22,1,.36,1) both}
.project-reveal{
  opacity:0;
  filter:blur(14px);
  transform:translateY(28px);
  transition:opacity 1400ms cubic-bezier(.22,1,.36,1),filter 1400ms cubic-bezier(.22,1,.36,1),transform 1400ms cubic-bezier(.22,1,.36,1);
  will-change:opacity,filter,transform;
}
.project-reveal.is-visible{opacity:1;filter:blur(0);transform:translateY(0)}
@media(prefers-reduced-motion:reduce){
  .motion-ready body[data-screen="home"] .portfolio>.intro,
  .motion-ready body[data-screen="home"] .portfolio>.socials,
  .motion-ready body[data-screen="projects"] .breadcrumb{animation:none}
  .project-reveal,.project-reveal.is-visible{opacity:1;filter:none;transform:none;transition:none}
}
