@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/geist-mono-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
:root {
  --text-meta: .75rem;
  --text-caption: .8125rem;
  --text-label: .875rem;
  --text-body: 1rem;
  --text-company: 1.3125rem;
  --leading-body: 1.6;
  --leading-label: 1.4;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --motion-hover: 200ms;
  --motion-press: 160ms;
  --motion-release: 100ms;
  color-scheme: light;
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  color: #141414;
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; text-underline-position: from-font; text-decoration-thickness: from-font; text-decoration-skip-ink: auto; }
button { font: inherit; color: inherit; transition: transform var(--motion-release) var(--ease-out), background-color 100ms linear, color 100ms linear; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #5f8fe0; outline-offset: 5px; }
.portfolio-page { display: flex; flex-direction: column; min-height: 100svh; }
.portfolio { flex: 1; }
.portfolio-page > .site-footer { width: 550px; margin: 0; margin-inline-start: 5.754vw; padding: 24px 0; }
.intro { width: 550px; margin-inline-start: 5.754vw; padding-top: 39px; }
.avatar-mark { --logo-mask: url('/assets/logo-light.png'); display: block; position: relative; width: 54px; height: 35px; margin-inline-start: -1.5px; isolation: isolate; }
.avatar { display: block; width: 54px; height: 35px; object-fit: contain; }
.avatar-dark { display: none; }
.portfolio-page[data-view="journey"] .avatar-mark { --logo-mask: url('/assets/logo-dark.png'); }
.portfolio-page[data-view="journey"] .avatar-light { display: none; }
.portfolio-page[data-view="journey"] .avatar-dark { display: block; }
.avatar-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask: var(--logo-mask) center / contain no-repeat;
  mask: var(--logo-mask) center / contain no-repeat;
  mix-blend-mode: screen;
}
.avatar-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, #fff9 50%, transparent 75%);
  transform: translateX(-100%);
  opacity: 0;
}
@keyframes avatar-shimmer {
  0% { transform: translateX(-100%); opacity: 0; }
  15%, 85% { opacity: .8; }
  100% { transform: translateX(100%); opacity: 0; }
}
.avatar-mark.is-shimmering .avatar-shimmer::after { animation: avatar-shimmer 600ms cubic-bezier(.4,0,.2,1) both; }
.bio { width: 100%; max-width: 60ch; margin-top: 33px; font-size: var(--text-body); line-height: var(--leading-body); letter-spacing: normal; overflow-wrap: break-word; }
.bio p { margin-bottom: 24px; text-wrap: pretty; }
.bio p:last-child { margin-bottom: 0; }
p { margin: 0 0 31px; }
p:last-child { margin-bottom: 0; }
/* Keep secondary copy readable at every breakpoint. */
.muted { color: #767676; }
.text-link, .brand { white-space: nowrap; }
.text-link img, .brand img { display: inline-block; width: 9px; height: 9px; vertical-align: 0; object-fit: contain; margin-inline-end: .375em; transform-origin: center; transition: transform var(--motion-release) var(--ease-out); }
.brand .xbox-mark { width: 11px; height: 11px; vertical-align: -1px; }
.bio .text-link img, .bio .brand img { width: 1em; height: 1em; vertical-align: -.15em; }
.text-link .link-label { text-decoration: underline; text-decoration-color: #b7b7b7; text-underline-offset: .2em; text-decoration-thickness: from-font; }
/* Figma 56:6875: 136 × 36px secondary action, with an inset border. */
.contact-link, .analytics-actions button, .analytics-close { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; padding: 8px 12px; border: 0; border-radius: 12px; background: linear-gradient(to bottom, #fff 32.7%, #f4f4f4 100%); color: #141414; font-family: 'Geist Mono', monospace; font-size: var(--text-label); font-weight: 500; line-height: var(--leading-label); letter-spacing: 0; white-space: nowrap; box-shadow: inset 0 0 0 1px #00000029, 0 1px 2px rgb(10 13 18 / 5%); transform-origin: center; transition: transform var(--motion-release) var(--ease-out), box-shadow 100ms linear; }
/* Keep the compact visual size while retaining a 44px pointer target. */
.contact-link::after { content: ''; position: absolute; inset: -4px 0; }
.contact-link:focus-visible { border-radius: 12px; outline-offset: 4px; }
.contact-link .link-label { padding-inline: 2px; vertical-align: middle; }
.contact-arrow { display: block; flex: none; width: 20px; height: 20px; }
.bio .contact { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.link-label { display: inline-block; position: relative; vertical-align: bottom; transform-origin: center; transition: transform var(--motion-release) var(--ease-out), text-decoration-color var(--motion-hover) ease; }
.socials { display: flex; gap: 24px; align-items: center; margin-top: 36px; margin-inline-start: -4px; }
.social-link { display: grid; width: 23px; height: 31px; place-items: center; position: relative; isolation: isolate; transition: transform var(--motion-release) var(--ease-out); }
.social-link::before { content: ''; position: absolute; inset: -6px; z-index: -1; border-radius: 9px; background: #f2f2f2; opacity: 0; transition: opacity var(--motion-hover) ease; }
/* Expand the hit area without moving the existing icon row or hover surface. */
.social-link::after { content: ''; position: absolute; top: 50%; left: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
.social-link img { display: block; object-fit: contain; transition: transform var(--motion-hover) var(--ease-out); }
.gallery { position: fixed; top: 0; bottom: 0; inset-inline-start: calc(50% + 8px); inset-inline-end: 5.75vw; }
.gallery-viewport {
  display: grid;
  grid-template-columns: 322fr 314fr;
  gap: 24px;
  height: 100%;
  overflow: hidden;
  /* Cosine easing flattens both ends of each 90px fade for a softer join. */
  --gallery-edge-mask: linear-gradient(
    to bottom,
    rgb(0 0 0 / 0.0000) 0px,
    rgb(0 0 0 / 0.0170) 7.5px,
    rgb(0 0 0 / 0.0670) 15px,
    rgb(0 0 0 / 0.1464) 22.5px,
    rgb(0 0 0 / 0.2500) 30px,
    rgb(0 0 0 / 0.3706) 37.5px,
    rgb(0 0 0 / 0.5000) 45px,
    rgb(0 0 0 / 0.6294) 52.5px,
    rgb(0 0 0 / 0.7500) 60px,
    rgb(0 0 0 / 0.8536) 67.5px,
    rgb(0 0 0 / 0.9330) 75px,
    rgb(0 0 0 / 0.9830) 82.5px,
    rgb(0 0 0 / 1.0000) 90px,
    rgb(0 0 0 / 1.0000) calc(100% - 90px),
    rgb(0 0 0 / 0.9830) calc(100% - 82.5px),
    rgb(0 0 0 / 0.9330) calc(100% - 75px),
    rgb(0 0 0 / 0.8536) calc(100% - 67.5px),
    rgb(0 0 0 / 0.7500) calc(100% - 60px),
    rgb(0 0 0 / 0.6294) calc(100% - 52.5px),
    rgb(0 0 0 / 0.5000) calc(100% - 45px),
    rgb(0 0 0 / 0.3706) calc(100% - 37.5px),
    rgb(0 0 0 / 0.2500) calc(100% - 30px),
    rgb(0 0 0 / 0.1464) calc(100% - 22.5px),
    rgb(0 0 0 / 0.0670) calc(100% - 15px),
    rgb(0 0 0 / 0.0170) calc(100% - 7.5px),
    rgb(0 0 0 / 0.0000) calc(100% - 0px)
  );
  -webkit-mask-image: var(--gallery-edge-mask);
  mask-image: var(--gallery-edge-mask);
}
.gallery-column { min-width: 0; min-height: 0; height: 100%; padding-top: 32px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior-y: contain; }
.gallery-column::-webkit-scrollbar { display: none; }
.gallery-column:focus-visible { outline: 2px solid #5f8fe0; outline-offset: -2px; border-radius: 12px; }
.gallery-sequence { display: grid; gap: 24px; padding-bottom: 24px; }
.work-card { position: relative; margin: 0; width: 100%; aspect-ratio: var(--media-ratio); background: #d9d9d9; border-radius: 12px; overflow: hidden; transition: transform var(--motion-hover) var(--ease-out); }
.work-card img, .work-card video { display: block; width: 100%; height: 100%; object-fit: contain; }
/* An inset outline defines the media edge without changing its proportions. */
.work-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; outline: 1px solid oklch(0 0 0 / 0.1); outline-offset: -1px; pointer-events: none; }
.motion-control { position: absolute; inset-inline-end: 12px; bottom: 14px; border: 1px solid #e6e6e6; border-radius: 12px; background: #fffffff2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer; box-shadow: 0 2px 10px #00000006; }
.motion-control[hidden] { display: none; }
.playback-icons { display: block; position: relative; width: 20px; height: 20px; }
.playback-icons svg { display: block; width: 20px; height: 20px; opacity: 1; scale: 1; filter: blur(0); transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1), scale 300ms cubic-bezier(0.2, 0, 0, 1), filter 300ms cubic-bezier(0.2, 0, 0, 1); }
.motion-control:focus-visible .playback-icons svg { transition: none; }
.playback-icons .play-icon { position: absolute; inset: 0; }
.playback-icons .play-icon, [aria-pressed="true"] .playback-icons .pause-icon { opacity: 0; scale: .25; filter: blur(4px); }
[aria-pressed="true"] .playback-icons .play-icon { opacity: 1; scale: 1; filter: blur(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (hover: hover) and (pointer: fine) {
  /* Give scaled cards room inside the scrolling columns without moving their resting edges. */
  .gallery { --card-hover-gutter: max(12px, 1vw); }
  .gallery-viewport, .gallery-column { margin-inline: calc(-1 * var(--card-hover-gutter)); padding-inline: var(--card-hover-gutter); }
  .work-card:hover { transform: scale(1.03); }
  .avatar-mark:hover .avatar-shimmer::after { animation: avatar-shimmer 600ms cubic-bezier(.4,0,.2,1) both; }
  .text-link:hover:not(:focus-visible) img { transform: scale(1.12); transition-duration: var(--motion-hover); }
  .text-link:hover .link-label { text-decoration-color: currentColor; }
  .contact-link:hover:not(:focus-visible), .analytics-actions button:hover:not(:focus-visible), .analytics-close:hover:not(:focus-visible) { background: #f5f5f5; box-shadow: inset 0 0 0 1px #00000029; }
  .motion-control:hover { background: #f2f2f2; }
  .social-link:hover:not(:focus-visible)::before { opacity: 1; }
  .social-link:hover:not(:focus-visible) img { transform: translateY(-2px); }
}
.contact-link:active:not(:focus-visible), a:not(.contact-link):active:not(:focus-visible) .link-label, button:not(:disabled):not([role="tab"]):not(.journey-media-trigger):active:not(:focus-visible), .social-link:active:not(:focus-visible), .text-link:active:not(:focus-visible) img { transform: scale(.96); transition-duration: var(--motion-press); }
.contact-link:active:not(:focus-visible), .analytics-actions button:active:not(:focus-visible), .analytics-close:active:not(:focus-visible) { background: #ededed; box-shadow: inset 0 0 0 1px #00000029; transition-duration: var(--motion-press), 100ms; }
.is-releasing, .is-releasing .link-label, .is-releasing img { transition-duration: var(--motion-release) !important; }
/* Keyboard focus is immediate, including when it interrupts a pointer transition. */
button:focus-visible, a:focus-visible, a:focus-visible .link-label, a:focus-visible img, button:focus-visible .link-label { transform: none; transition: none; }
/* Stack before the 550px intro would collide with the fixed gallery. */
@media (max-width: 1279px) {
  .portfolio { display: flex; flex-direction: column; }
  .portfolio-page > .site-footer { width: auto; margin-inline: 24px; }
  .intro { flex: none; width: 100%; max-width: 598px; margin: 0 auto; padding: 39px 24px 0; }
  .gallery { position: relative; inset: auto; flex: 1 0 520px; min-height: 520px; margin: 38px 24px 24px; }
  .gallery-viewport { position: absolute; inset: 0; }
}
@media (min-width: 761px) {
  .socials { margin-top: 24px; }
}
@media (max-width: 760px) {
  .intro { padding-top: 32px; }
  /* Let the mobile intro follow its content so the gallery stays in view. */
  .bio { margin-top: 30px; }
  .bio .contact { flex-direction: column; align-items: flex-start; text-wrap: wrap; }
  .bio .contact .muted { display: inline-block; }
  .bio .contact-link { white-space: nowrap; }
  .socials { margin-top: 40px; width: 100%; max-width: 288px; justify-content: space-between; gap: 8px; }
  .social-link { flex: none; width: 28px; height: 36px; }
  .gallery { margin-top: 44px; }
  .gallery-viewport { grid-template-columns: minmax(0, 1fr); }
  .gallery-column-secondary { display: none; }
  .gallery-column { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  button, .link-label, .contact-link, .social-link, .social-link img, .text-link img, .brand img, .work-card { transform: none !important; }
  a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
