@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;
  -webkit-user-select: none;
  user-select: none;
}
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; overflow-x: hidden; background: #000; }
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;
}

.home-link { font-weight: 700; }
nav { display: flex; gap: clamp(18px, 3vw, 46px); }
nav a:hover, .home-link: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)); will-change: opacity, transform; }
.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); }
.look-link { position: relative; display: inline-flex; align-items: center; gap: 28px; margin: 0; padding: 0 8px 13px; font-size: clamp(1.8rem, 3.2vw, 3.8rem); transform: rotate(-1deg); }
.look-link::before, .look-link::after { content: ""; position: absolute; right: 0; bottom: 7px; left: 0; height: 2px; background: #fff; transform: rotate(-0.8deg); }
.look-link::after { right: 8%; bottom: 1px; left: 5%; transform: rotate(0.6deg); }
.look-link span { transition: transform 150ms ease; }
.look-link:hover span { transform: translateY(7px); }
.portrait-arrow { position: absolute; z-index: 4; top: 12%; right: min(21vw, 415px); width: clamp(165px, 18vw, 330px); height: auto; opacity: var(--hero-fade); pointer-events: none; }
.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: 39%; right: min(23vw, 440px); 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; white-space: nowrap; }
.contact-reveal::after { content: ""; width: 115%; height: 2px; margin-top: 6px; background: #fff; box-shadow: 12px 5px 0 -0.5px #fff; transform: rotate(-1deg); }
.contact-reveal a: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);
  }
}

.identity-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 70px clamp(20px, 4vw, 74px) 110px; background: #000; }
.identity-panel { min-height: 630px; display: grid; grid-template-rows: auto 1fr; padding: 24px; border: 2px solid #fff; transition: color 130ms ease, background 130ms ease, transform 130ms ease; }
.identity-panel:first-child { transform: rotate(-0.3deg); }
.identity-panel:last-child { transform: rotate(0.25deg); }
.identity-panel:hover { color: #000; background: #fff; transform: rotate(0); }
.panel-copy { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 12px; padding-bottom: 30px; }
.panel-number { grid-column: 1 / -1; margin: 0 0 14px; color: var(--gray); font-size: 9px; letter-spacing: 0.11em; }
.panel-copy h2 { grid-column: 1 / -1; margin: 0; font-size: clamp(3rem, 5.2vw, 6.5rem); line-height: 0.92; letter-spacing: -0.045em; }
.panel-copy > p:not(.panel-number) { max-width: 440px; margin: 18px 0 0; color: #b1b1b1; font-size: 12px; line-height: 1.55; }
.panel-copy > span { align-self: end; padding-top: 21px; font-size: 8px; letter-spacing: 0.08em; }
.identity-panel:hover .panel-number, .identity-panel:hover .panel-copy > p { color: #444; }
.panel-image { min-height: 300px; overflow: hidden; align-self: end; border-top: 1px solid currentColor; padding-top: 18px; }
.panel-image img { width: 100%; height: 100%; min-height: 300px; max-height: 370px; display: block; object-fit: cover; object-position: center 25%; filter: grayscale(1) contrast(1.1); }
.film-roll { height: clamp(300px, 22vw, 370px); }
.film-track { display: flex; width: max-content; height: 100%; will-change: transform; }
.film-roll.is-ready .film-track { animation: panel-film-roll var(--film-duration, 24s) linear infinite; }
.film-sequence { display: flex; flex-shrink: 0; gap: 12px; height: 100%; padding-right: 12px; }
.panel-image .film-frame { flex: 0 0 clamp(220px, 22vw, 360px); width: clamp(220px, 22vw, 360px); min-height: 0; max-height: none; filter: none; }

@keyframes panel-film-roll {
  to { transform: translateX(-50%); }
}

.code-image { display: grid; place-items: center; color: #707070; border: 1px dashed #555; font-size: 9px; line-height: 1.7; letter-spacing: 0.1em; text-align: center; }
.identity-panel:hover .code-image { color: #555; border-color: #777; }

.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: space-between; gap: 25px; padding: 0 20px; border-top: 1px solid #fff; background: #000; font-size: 8px; letter-spacing: 0.08em; }
footer p { margin: 0; }
.social-links { display: flex; gap: 28px; }

@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); }
  .portrait-arrow { top: 27%; right: min(48vw, 300px); width: 160px; }
  .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: 38%; right: min(57vw, 350px); font-size: 0.72rem; }
  .page-main { padding-right: 20px; padding-left: 20px; }
  .identity-panels { grid-template-columns: 1fr; padding-top: 50px; }
  .identity-panel { min-height: 570px; }
  .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; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-copy, .hero-contact { opacity: 1 !important; transform: none !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);
  }
  .film-track, .film-sequence { width: 100%; }
  .film-roll.is-ready .film-track { animation: none; transform: none; }
  .film-sequence[aria-hidden="true"], .film-sequence .film-frame:not(:first-child) { display: none; }
  .panel-image .film-frame { width: 100%; flex-basis: 100%; }
  .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);
  }
}
