@import url("https://fonts.googleapis.com/css2?family=Anybody:wght@500&display=swap");

:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --gray: #8b8b8b;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background: var(--black);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-user-select: none;
  user-select: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; overflow-x: hidden; background: #000; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

.hand {
  font-family: "Anybody", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-synthesis: none;
}
.hand :where(h1, h2, h3) { font-weight: 500; }

.topbar {
  position: relative;
  z-index: 10;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
  border-bottom: 2px solid #fff;
  background: #000;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.topbar-start { display: flex; align-items: center; gap: 8px; font-weight: 700; }
nav { display: flex; gap: clamp(18px, 3vw, 46px); }
nav a:hover, .topbar-start a:hover, footer a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.home-main { flex: 1; }
.hero { --hero-fade: 1; --hero-shift: 0px; position: relative; min-height: calc(100vh - 58px); overflow: hidden; }
.hero-copy { position: relative; z-index: 3; width: min(72vw, 1180px); padding: clamp(80px, 10vh, 130px) 0 100px clamp(28px, 7vw, 140px); opacity: var(--hero-fade); transform: translateX(calc(var(--hero-shift) * -0.65)); transition: opacity 220ms ease; will-change: opacity, transform; }
.hero:has(.hero-person:hover, .hero-person:focus) .hero-copy { opacity: 0.32; }
.hero-copy h1 { margin: 0; font-size: clamp(4.8rem, 10.4vw, 12rem); line-height: 0.94; letter-spacing: -0.075em; transform: rotate(-1deg); }
.hero-copy > p { margin: clamp(22px, 4vh, 55px) 0 clamp(45px, 7vh, 90px); font-size: clamp(2rem, 4.8vw, 5.4rem); line-height: 1.12; letter-spacing: -0.055em; transform: rotate(0.5deg); }
.hero-socials { display: flex; flex-wrap: wrap; gap: 18px 30px; font-family: Arial, Helvetica, sans-serif; }
.hero-socials :is(a, button) { display: inline-flex; align-items: center; gap: 9px; font-size: 9px; letter-spacing: 0.1em; }
.hero-socials button { padding: 0; border: 0; color: inherit; background: transparent; font-family: inherit; cursor: pointer; }
.hero-socials img { width: 26px; height: 26px; display: block; }
.hero-socials .social-logo-invert { filter: invert(1); }
.hero-socials .social-logo-monochrome { filter: grayscale(1) brightness(0) invert(1); }
.hero-socials .email-social { gap: 0; font-size: 10px; }
.email-copy-text { max-width: 0; display: inline-block; padding-left: 0; overflow: hidden; opacity: 0; white-space: nowrap; transform: translateX(-9px); transition: max-width 260ms cubic-bezier(.2,.7,.2,1), padding-left 260ms cubic-bezier(.2,.7,.2,1), opacity 180ms ease, transform 260ms cubic-bezier(.2,.7,.2,1); }
.email-social:hover .email-copy-text, .email-social:focus .email-copy-text { max-width: 310px; padding-left: 9px; opacity: 1; transform: translateX(0); }
.email-social:hover .email-address, .email-social:focus-visible .email-address { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.copy-confirmation { display: none; }
.copy-confirmation.is-visible { display: inline; margin-left: 2px; }
.typewriter-word { display: inline-block; white-space: nowrap; }
.typewriter-ready .typewriter-letter { position: relative; visibility: hidden; }
.typewriter-ready .typewriter-letter.is-visible { visibility: visible; }
.typewriter-ready .typewriter-letter.is-current::after { content: "_"; position: absolute; left: calc(100% + 0.1em); bottom: 0; animation: typewriter-cursor 900ms steps(1, end) infinite; }

@keyframes typewriter-cursor {
  50% { opacity: 0; }
}
.hero-contact { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: min(58vw, 1080px); outline: none; opacity: var(--hero-fade); transform: translateX(calc(var(--hero-shift) * 0.45)); will-change: opacity, transform; }
.hero-person { position: absolute; top: 0; right: 0; bottom: 0; width: clamp(260px, 40vh, 430px); overflow: visible; outline: none; }
.hero-person img { position: absolute; top: 0; right: 3px; width: auto; max-width: none; height: calc(100% - 4px); display: block; }
.person-photo { z-index: 2; transform-origin: right bottom; animation: portrait-idle-jitter 340ms steps(2, end) infinite alternate; transition: transform 180ms cubic-bezier(.2,.7,.2,1), filter 160ms ease; }
.contact-reveal { position: absolute; z-index: 3; top: 34%; right: min(23vw, 440px); width: min(28vw, 320px); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; opacity: 0; pointer-events: none; transform: translateX(70px); transition: opacity 220ms ease, transform 260ms cubic-bezier(.2,.7,.2,1); font-size: clamp(0.8rem, 1.25vw, 1.15rem); letter-spacing: 0.01em; }
.contact-reveal p { margin: 0; line-height: 1.45; text-align: right; }
.contact-reveal .about-location { display: inline-flex; align-items: center; gap: 5px; color: #b1b1b1; font-size: clamp(0.58rem, 0.72vw, 0.7rem); line-height: 1; letter-spacing: 0.08em; }
.about-location img { width: 18px; height: auto; display: block; flex: none; }
.tech-stack { margin-top: 10px; text-align: right; }
.tech-stack-group + .tech-stack-group { margin-top: 13px; }
.tech-stack-label { display: block; margin-bottom: 7px; color: var(--gray); font-size: 0.55rem; letter-spacing: 0.14em; }
.tech-stack ul { max-width: 320px; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 13px; list-style: none; font-size: clamp(0.55rem, 0.65vw, 0.68rem); letter-spacing: 0.07em; }
.tech-stack li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tech-stack img { width: 18px; height: 18px; display: block; object-fit: contain; }
.tech-stack .tech-logo-invert { filter: invert(1); }
.tech-stack .credential-link { display: inline-flex; align-items: center; gap: 5px; }
.tech-stack .credential-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-contact:has(.hero-person:hover, .hero-person:focus, .contact-reveal:hover, .contact-reveal:focus-within) .contact-reveal { opacity: 1; pointer-events: auto; transform: translateX(0); }
.hero-contact:has(.hero-person:hover, .hero-person:focus, .contact-reveal:hover, .contact-reveal:focus-within) .person-photo { animation: portrait-outline-jitter 180ms steps(2, end) infinite alternate; }

@keyframes portrait-idle-jitter {
  0% {
    transform: translate(0, -1px) scale(1.002);
    filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
  }
  100% {
    transform: translate(-1px, 0) scale(1.003);
    filter: drop-shadow(1px 1px 0 #fff) drop-shadow(-1px -1px 0 #fff) drop-shadow(1px -1px 0 #fff) drop-shadow(-1px 1px 0 #fff);
  }
}

@keyframes portrait-outline-jitter {
  0% {
    transform: translate(-1px, -2px) scale(1.014);
    filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
  }
  100% {
    transform: translate(-3px, -1px) scale(1.017);
    filter: drop-shadow(3px 1px 0 #fff) drop-shadow(-1px -2px 0 #fff) drop-shadow(1px 3px 0 #fff) drop-shadow(-2px -1px 0 #fff);
  }
}

.featured-projects { padding: clamp(70px, 8vw, 125px) clamp(20px, 5vw, 90px) clamp(80px, 8vw, 125px); background: #000; opacity: var(--projects-fade, 1); will-change: opacity; }
.featured-heading { padding-bottom: clamp(42px, 5vw, 70px); text-align: center; transition: opacity 650ms ease, translate 650ms cubic-bezier(0.22, 1, 0.36, 1); }
.featured-heading h2 { margin: 0; font-size: clamp(3rem, 5.5vw, 6.5rem); line-height: 0.92; letter-spacing: -0.065em; transform: rotate(-0.35deg); }
.featured-list { width: min(100%, 940px); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: clamp(20px, 2.5vw, 38px); }
.featured-project { --reveal-delay: 80ms; position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: clamp(390px, 34vw, 480px); padding: clamp(20px, 2vw, 30px); transition: opacity 650ms ease var(--reveal-delay), translate 650ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay); }
.featured-project::before { content: ""; position: absolute; z-index: -1; inset: 0; border: 1px solid #fff; border-radius: 0; transform: rotate(-0.25deg); pointer-events: none; }
.featured-project:nth-child(2n)::before { border-radius: 0; transform: rotate(0.2deg); }
.featured-project:nth-child(2) { --reveal-delay: 170ms; }
.featured-project[role="link"] { cursor: pointer; outline: none; }
.featured-project[role="link"]:focus-visible::before { outline: 2px solid #fff; outline-offset: 5px; }
.reveal-ready .featured-heading, .reveal-ready .featured-project { opacity: 0; translate: 0 24px; }
.reveal-ready .featured-heading.is-visible, .reveal-ready .featured-project.is-visible { opacity: 1; translate: 0 0; }
.featured-project p { margin: 0; }
.featured-thumb { width: 100%; aspect-ratio: 16 / 9; margin: -8px 0 24px; overflow: hidden; border: 1px solid #666; background: #070707; }
.featured-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.featured-thumb--contain img { object-fit: contain; }
.featured-name { min-width: 0; margin: 0 0 auto; }
.featured-name h3 { margin: 0; font-size: clamp(1.75rem, 2.65vw, 3.15rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; }
.featured-name p { margin-top: 8px; color: #777; font-size: 11px; line-height: 1.45; }
.featured-card-footer { margin-top: 24px; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #555; }
.featured-tools { color: #c7c7c7; font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; }
.featured-card-icons { display: flex; align-items: center; gap: 8px; }
.featured-card-icons > img { width: 22px; height: 22px; display: block; object-fit: contain; }
.featured-project-link { display: inline-flex; }
.featured-project-link img { width: 22px; height: 22px; display: block; }
.featured-project-link .featured-link-icon--white { filter: grayscale(1) brightness(0) invert(1); }

.case-study-main { flex: 1; }
.case-study-minimal { padding: clamp(55px, 6vw, 95px) clamp(20px, 5vw, 85px) clamp(70px, 7vw, 110px); }
.case-minimal-intro { max-width: none; }
.case-kicker { margin: 0 0 15px; color: var(--gray); font-size: 9px; letter-spacing: 0.14em; }
.case-title-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr); gap: clamp(45px, 7vw, 120px); align-items: end; }
.case-minimal-intro h1 { margin: 0; font-size: clamp(2.8rem, 5.2vw, 6rem); line-height: 0.9; letter-spacing: -0.065em; transform: rotate(-0.25deg); }
.case-title-meta { width: min(100%, 390px); display: grid; gap: 13px; }
.case-stat-card { display: grid; grid-template-columns: 64px 1fr; gap: 15px; align-items: center; }
.case-stat-logo { width: 64px; height: 64px; display: block; overflow: hidden; border: 1px solid #555; background: #080808; }
.case-stat-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.case-stat-logo--contained { background: #fff; }
.case-stat-logo--contained img { object-fit: contain; }
.case-stat-details { min-width: 0; display: grid; gap: 13px; justify-items: start; }
.case-game-stats { display: flex; gap: clamp(18px, 2.5vw, 36px); margin: 0; }
.case-game-stats div { display: grid; gap: 4px; }
.case-game-stats dt { font-size: clamp(1rem, 1.5vw, 1.35rem); font-weight: 700; letter-spacing: -0.03em; }
.case-game-stats dd { margin: 0; color: var(--gray); font-size: 7px; letter-spacing: 0.11em; }
.case-community-card { padding-top: 13px; border-top: 1px solid #333; }
.case-community-details { min-width: 0; display: grid; gap: 9px; }
.case-community-name { font-size: 8px; font-weight: 700; letter-spacing: 0.08em; }
.case-community-details strong { font-size: clamp(1rem, 1.5vw, 1.35rem); letter-spacing: -0.03em; }
.case-community-details small { margin-left: 5px; color: var(--gray); font-size: 7px; letter-spacing: 0.11em; }
.case-project-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr); gap: clamp(45px, 7vw, 120px); align-items: center; margin-top: clamp(45px, 6vw, 80px); }
.case-media-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid #fff; background: #050505; }
.case-media-viewport { position: absolute; inset: 0; overflow: hidden; }
.case-media-item { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.case-media-item[hidden] { display: none; }
.case-media-item img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; will-change: transform; }
.case-static-copy { max-width: 560px; }
.case-static-copy p { margin: 0; color: #c5c5c5; font-size: clamp(0.82rem, 1vw, 1rem); line-height: 1.65; }
.case-static-copy p + p { margin-top: 22px; }
.case-carousel-button { position: absolute; z-index: 4; top: 50%; width: 30px; height: 44px; padding: 0; border: 0; color: #fff; background: transparent; font: inherit; font-size: 24px; cursor: pointer; transform: translateY(-50%); }
.case-carousel-button--prev { left: -48px; }
.case-carousel-button--next { right: -48px; }

.page-main { flex: 1; padding: clamp(70px, 9vw, 150px) clamp(20px, 5vw, 90px) 130px; }
.page-title { margin-bottom: 80px; }
.page-title > p { margin: 0 0 25px; color: var(--gray); font-size: 9px; letter-spacing: 0.12em; }
.page-title h1 { margin: 0; font-size: clamp(4.5rem, 10vw, 11rem); line-height: 0.9; letter-spacing: -0.075em; transform: rotate(-1deg); }

.project-list { border-top: 2px solid #fff; }
.project { display: grid; grid-template-columns: 55px 1fr 170px 24px; gap: 18px; align-items: start; padding: 25px 10px; border-bottom: 2px solid #fff; }
.project:nth-child(odd) { transform: rotate(-0.15deg); }
.project:nth-child(even) { transform: rotate(0.15deg); }
.project:hover { color: #000; background: #fff; }
.project > span { font-size: 9px; letter-spacing: 0.08em; }
.project > span:last-child { justify-self: end; font-size: 16px; }
.project h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.4vw, 2.7rem); font-weight: 500; letter-spacing: -0.04em; }
.project p { margin: 0; color: var(--gray); font-size: 11px; line-height: 1.5; }
.project:hover p { color: #444; }

.music-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 7vw; align-items: center; }
.music-grid figure { margin: 0; }
.music-grid img { width: 100%; max-height: 75vh; display: block; object-fit: cover; object-position: center 25%; filter: grayscale(1) contrast(1.15); }
.music-grid figcaption { margin-top: 10px; color: var(--gray); font-size: 8px; letter-spacing: 0.1em; }
.music-copy > p { max-width: 580px; font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.55; }
.music-copy dl { margin-top: 45px; border-top: 1px solid #fff; }
.music-copy dl div { display: grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-bottom: 1px solid #555; font-size: 9px; letter-spacing: 0.06em; }
.music-copy dt, .music-copy dd { margin: 0; }
.music-copy dt { color: var(--gray); }

footer { min-height: 70px; display: flex; align-items: center; justify-content: center; padding: 0 20px; border-top: 1px solid #fff; background: #000; font-size: 10px; letter-spacing: 0.08em; text-align: center; }
footer p { margin: 0; }

@media (max-width: 800px) {
  .topbar { min-height: 70px; align-items: flex-start; padding-top: 18px; }
  nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
  .hero { min-height: calc(100svh - 70px); }
  .hero-copy { width: 100%; padding: 65px 20px 46vh; }
  .hero-copy h1 { font-size: clamp(4.2rem, 20vw, 7rem); }
  .hero-copy > p { font-size: clamp(1.8rem, 9vw, 3rem); }
  .hero-contact { top: auto; width: 100%; height: 48vh; }
  .hero-person { top: 0; width: min(62vw, 380px); height: 48vh; }
  .hero-person img { top: 0; height: calc(100% - 4px); }
  .contact-reveal { top: 33%; right: min(57vw, 350px); width: min(36vw, 220px); font-size: 0.72rem; }
  .page-main { padding-right: 20px; padding-left: 20px; }
  .featured-project { min-height: 390px; }
  .case-project-layout { grid-template-columns: 1fr; }
  .case-title-row { grid-template-columns: 1fr; align-items: start; }
  .case-title-meta { gap: 18px; }
  .case-static-copy { max-width: 680px; }
  .case-carousel-button { top: 50%; }
  .case-carousel-button--prev { left: -38px; }
  .case-carousel-button--next { right: -38px; }
  .project { grid-template-columns: 35px 1fr 20px; }
  .project > span:nth-child(3) { display: none; }
  .music-grid { grid-template-columns: 1fr; }
  footer { padding-top: 22px; padding-bottom: 22px; }
}

@media (max-width: 480px) {
  .topbar { gap: 12px; font-size: 8px; }
  nav { gap: 12px; }
  .hero-copy { padding-top: 52px; }
  .case-study-minimal { padding-right: 20px; padding-left: 20px; }
  .case-project-layout { gap: 42px; }
  .case-carousel-button { width: 22px; height: 40px; font-size: 20px; }
  .case-carousel-button--prev { left: -20px; }
  .case-carousel-button--next { right: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-copy, .hero-contact { opacity: 1 !important; transform: none !important; }
  .hero:has(.hero-person:hover, .hero-person:focus) .hero-copy { opacity: 0.32 !important; }
  .person-photo {
    animation: none;
    transform: none;
    filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
  }
  .hero-contact:has(.hero-person:hover, .hero-person:focus, .contact-reveal:hover, .contact-reveal:focus-within) .person-photo {
    animation: none;
    transform: translate(-2px, -2px) scale(1.014);
    filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
  }
}
