/* Shared foundations. All layouts use one document at every screen size. */
@font-face {
  font-family:Inter;
  src:url('assets/iwWTDc49ENF2tCHbqlNARXw6Ug.woff2') format('woff2');
  font-style:normal;
  font-weight:500;
  font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
}
@font-face {
  font-family:Inter;
  src:url('assets/V3j1L0o5vPFKe26Sw4HcpXCfHo.woff2') format('woff2');
  font-style:normal;
  font-weight:500;
  font-display:swap;
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
@font-face {
  font-family:Inter;
  src:url('assets/qITWJ2WdG0wrgQPDb8lvnYnTXDg.woff2') format('woff2');
  font-style:normal;
  font-weight:700;
  font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
}
@font-face {
  font-family:Inter;
  src:url('assets/UjFZPDy3qGuDktQM4q9CxhKfIa8.woff2') format('woff2');
  font-style:normal;
  font-weight:700;
  font-display:swap;
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116
}
:root {
  color-scheme:light;
  --gutter:18px;
  --ink:#000;
  --paper:#fff;
  font-family:Inter,Arial,sans-serif;
  font-weight:500;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility
}
* {
  box-sizing:border-box
}
body,h1,h2,p,figure {
  margin:0
}
body {
  font-size:14px;
  line-height:1.3
}
img,video {
  display:block;
  max-width:100%
}
button,a {
  -webkit-tap-highlight-color:transparent
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit
}
a:focus-visible,button:focus-visible {
  outline:2px solid currentColor;
  outline-offset:4px
}
button {
  cursor:pointer
}
a,button {
  touch-action:manipulation
}
p {
  overflow-wrap:anywhere
}
a.text-link:hover {
  text-decoration:underline;
  text-underline-offset:3px
}
.text-link {
  transition:opacity .18s ease,transform .18s ease
}
.skip-link {
  position:fixed;
  z-index:10;
  top:8px;
  left:8px;
  padding:12px;
  background:#fff;
  transform:translateY(-200%)
}
.skip-link:focus {
  transform:none
}
/* Home: full-width project feed and a floating profile on larger screens. */
.portfolio {
  padding:var(--gutter)
}
.project-feed {
  display:grid;
  gap:18px
}
.project-card {
  position:relative;
  min-width:0
}
.project-cover {
  display:block;
  position:relative;
  aspect-ratio:1.78095;
  overflow:hidden;
  background:#f3f3f3
}
.project-cover img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:filter .28s ease,transform .28s ease
}
.project-badge {
  position:absolute;
  top:10px;
  left:10px;
  padding:5px 10px;
  font-size:12px;
  line-height:16px;
  background:#ffffffc7
}
.project-card figcaption {
  margin-top:12px;
  line-height:18px
}
.profile {
  position:fixed;
  z-index:3;
  top:0;
  left:50%;
  transform:translateX(-50%);
}
.profile-expanded {
  width:256px;
  padding:5px;
  background:#fff;
  font-size:14px;
  line-height:16px
}
.portrait {
  width:100%;
  height:230px;
  object-fit:cover
}
.profile h1 {
  margin:10px 0;
  font-size:inherit;
  line-height:inherit;
  font-weight:700
}
.profile-bio {
  font-size:inherit
}
.profile-expanded .contact-links {
  margin-top:110px;
  align-items:flex-start;
  gap:2px
}
.contact-links {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
  font-size:13px;
  line-height:16px
}
.contact-links a {
  display:block
}
/* Project pages retain edge-to-edge artwork with a readable description column. */
.project-header {
  position:sticky;
  z-index:4;
  top:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px;
  background:#fff;
  min-height:92px
}
.project-gallery {
  width:100%
}
.media {
  position:relative;
  width:100%;
  aspect-ratio:var(--ratio,1.77778);
  background:#000;
  overflow:hidden
}
.media img,.media video {
  width:100%;
  height:100%;
  object-fit:cover
}
.project-about {
  display:grid;
  grid-template-columns:max-content minmax(0,720px);
  align-items:start;
  gap:70px;
  padding:36px var(--gutter);
  background:#fff;
  font-size:18px;
  line-height:1.3
}
.project-about h1,.project-about h2 {
  font-size:18px;
  line-height:1.3;
  font-weight:700;
  max-width:24ch
}
.project-description {
  max-width:65ch
}
.project-description p+p {
  margin-top:1.3em
}
.text-keep {
  white-space:nowrap;
  overflow-wrap:normal
}
.project-footer {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,240px));
  justify-content:center;
  gap:20px;
  padding:36px var(--gutter);
  background:#fff
}
.project-footer a {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  gap:10px;
  padding:14px 18px;
  text-align:center;
  border:1px solid #e6e6e6;
  border-radius:14px;
  box-shadow:0 1px 2px #00000008;
  color:#000;
  background:#fff;
  transition:background-color .2s ease,color .2s ease
}
.project-footer a:active {
  color:#fff;
  background:#000;
  border-color:#000
}
.project-footer a > span {
  min-width:0
}
.project-footer .footer-arrow {
  flex:none;
  width:20px;
  height:20px
}
/* The artwork never reacts to the pointer; only the sound icon is interactive. */
.local-video video {
  pointer-events:none
}
.video-sound {
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:10px;
  border:0;
  border-radius:50%;
  color:#fff;
  background:#0007;
}
.video-sound svg {
  width:24px;
  height:24px
}
.video-sound .sound-on,
.video-sound[aria-pressed="true"] .sound-off {
  display:none
}
.video-sound[aria-pressed="true"] .sound-on {
  display:block
}
.video-sound:focus-visible {
  outline:2px solid #fff;
  outline-offset:2px
}
.video-link {
  position:absolute;
  bottom:12px;
  right:12px;
  padding:6px 10px;
  color:#fff;
  background:#000b;
  font-size:12px;
  text-decoration:underline;
  text-underline-offset:2px;
  z-index:2;
  transition:background-color .2s ease
}
.video-status {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap
}
.image-retry {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:2;
  padding:12px 16px;
  border:0;
  border-radius:4px;
  color:#fff;
  background:#000c
}
/* Hover feedback belongs to interactive elements, not gallery artwork. */
@media (max-width:809.98px) {
  .has-scroll-color .project-cover img {
    filter:grayscale(1)
  }
  .has-scroll-color .project-cover.is-visible img {
    filter:grayscale(0)
  }
}
@media (min-width:810px) and (hover:hover) and (pointer:fine) {
  .project-cover img {
    filter:grayscale(1)
  }
  .project-cover:hover img,.project-cover:focus-visible img {
    filter:grayscale(0)
  }
}
@media (hover:hover) and (pointer:fine) {
  .project-cover:hover img {
    transform:scale(1.015)
  }
  .text-link:hover {
    opacity:.6;
    transform:translateX(2px)
  }
  .project-footer a:hover {
    color:#fff;
    background:#000;
    border-color:#000
  }
  .video-link:hover,.image-retry:hover {
    background:#000
  }
}
@media (min-width:810px) and (max-width:1199.98px) {
  .profile-expanded {
    width:clamp(190px,22.85vw,256px);
    font-size:clamp(11px,1.35vw,14px);
    line-height:1.2
  }
  .portrait {
    height:auto;
    aspect-ratio:1
  }
  .profile h1 {
    margin:8px 0
  }
  .profile-expanded .contact-links {
    margin-top:78px;
    font-size:inherit;
    line-height:1.2;
    gap:3px
  }
}
@media (max-width:809.98px) {
  .profile {
    position:static;
    left:auto;
    transform:none;
    display:block;
    width:100%;
  }
  .profile-expanded {
    width:100%;
    padding:18px;
    font-size:14px;
    line-height:1.3
  }
  .portrait {
    width:150px;
    height:150px;
    margin-bottom:8px
  }
  .profile h1 {
    margin:0 0 8px
  }
  .profile-expanded .contact-links {
    margin:150px 0 0;
    flex-direction:column;
    align-items:flex-start;
    gap:0
  }
  .profile-expanded .contact-links a {
    display:flex;
    align-items:center;
    min-height:24px
  }
  .portfolio {
    padding-top:0
  }
  .project-cover {
    aspect-ratio:1.26
  }
  .project-header {
    min-height:72px;
    padding:12px var(--gutter);
    gap:12px
  }
  .project-header .contact-links {
    flex-direction:column;
    align-items:flex-end;
    gap:3px;
    text-align:right
  }
  .project-header a {
    display:flex;
    align-items:center;
    min-height:44px
  }
  .project-header .contact-links a {
    min-height:24px
  }
  .project-about {
    grid-template-columns:1fr;
    gap:20px;
    padding:28px var(--gutter)
  }
  .project-about h1,.project-about h2 {
    max-width:none
  }
  .project-description {
    max-width:60ch
  }
  .project-footer {
    padding:24px var(--gutter);
    gap:12px
  }
  .project-footer a {
    font-size:13px;
    padding:10px;
    gap:6px;
    min-height:60px
  }
  .video-link {
    font-size:11px
  }
}
@media (max-width:379.98px) {
  :root {
    --gutter:14px
  }
  .profile-expanded {
    padding:18px var(--gutter);
    font-size:13px
  }
  .project-header .contact-links {
    font-size:12px
  }
  .project-about {
    font-size:17px
  }
  .project-card figcaption {
    font-size:13px
  }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important
  }
}
/* Keep contact links visible on short laptop and landscape tablet screens. */
@media (min-width:810px) and (max-height:600px) {
  .profile-expanded {
    width:230px;
    font-size:12px;
    line-height:1.25
  }
  .portrait {
    height:clamp(90px,30vh,160px)
  }
  .profile h1 {
    margin:6px 0
  }
  .profile-expanded .contact-links {
    margin-top:24px;
    font-size:12px;
    line-height:16px;
    gap:2px
  }
}

/* A fixed shell morphs without moving the project feed. No animation library. */
.profile.is-enhanced {
  --profile-ease:cubic-bezier(.22,1,.36,1);
  position:fixed;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:var(--profile-expanded-width);
  height:var(--profile-expanded-height);
  overflow:clip;
  isolation:isolate;
  border-radius:0;
}
.profile.is-enhanced::before {
  content:"";
  position:absolute;
  inset:0;
  background:#fff;
  z-index:-1;
}
.profile.is-enhanced .profile-expanded {
  background:transparent;
  transform-origin:50% 0;
}
.profile-compact {
  position:absolute;
  top:0;
  left:50%;
  width:max-content;
  max-width:calc(100vw - 28px);
  padding:0 12px;
  opacity:0;
  transform:translate(-50%,12px);
  visibility:hidden;
}
.profile-compact .contact-links {
  flex-direction:row;
  align-items:center;
  gap:30px;
  font-size:14px;
  line-height:20px;
  white-space:nowrap;
}
.profile-compact .contact-links a {
  display:flex;
  align-items:center;
  min-height:44px;
}
.profile.is-animated {
  transition:width .58s var(--profile-ease),height .58s var(--profile-ease),
    top .58s var(--profile-ease),border-radius .58s var(--profile-ease);
}
.profile.is-animated .profile-expanded {
  transition:opacity .25s ease .14s,transform .58s var(--profile-ease),
    visibility 0s;
}
.profile.is-animated .profile-compact {
  transition:opacity .18s ease,transform .4s var(--profile-ease),
    visibility 0s .4s;
}
.profile.is-collapsed {
  top:30px;
  width:var(--profile-compact-width);
  height:44px;
  border-radius:4px;
}
.profile.is-collapsed .profile-expanded {
  opacity:0;
  transform:translateY(-24px) scale(.96);
  visibility:hidden;
  transition-delay:0s,0s,.58s;
}
.profile.is-collapsed .profile-compact {
  opacity:1;
  transform:translate(-50%,0);
  visibility:visible;
  transition-delay:.18s,.12s,0s;
}
@media (max-width:809.98px) {
  .profile-slot.is-enhanced {
    height:var(--profile-expanded-height);
  }
  .profile.is-enhanced .profile-expanded {
    width:var(--profile-viewport-width);
  }
  .profile.is-collapsed {
    top:18px;
  }
  .profile-compact .contact-links {
    gap:clamp(14px,4vw,30px);
    font-size:13px;
  }
}

/* Inline thumbnails paint with the HTML; full artwork replaces them naturally. */
.gallery-image,.local-video,.video-poster {
  background-image:var(--preview);
  background-position:center;
  background-size:cover
}
.video-poster {
  position:absolute;
  inset:0;
  pointer-events:none
}
.local-video.is-playing .video-poster {
  visibility:hidden
}

/* Persistent language links share the same position in both versions. */
.language-switch {
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:6;
  display:flex;
  align-items:center;
  border:1px solid #e6e6e6;
  border-radius:4px;
  background:#fff;
  color:#000;
  box-shadow:0 1px 2px #00000008;
  font-size:14px;
  line-height:20px
}
.language-switch a,.language-switch [aria-current] {
  display:grid;
  place-items:center;
  min-width:44px;
  min-height:44px
}
.language-switch [aria-current] {
  font-weight:700
}
.language-switch a:hover {
  text-decoration:underline;
  text-underline-offset:3px
}
.language-divider {
  color:#888
}
.project-footer {
  padding-bottom:90px
}
