:root {
  --bg: #0b0b0b;
  --fg: #dddddd;
  --dim: #8a8a8a;
  --line: #222222;
  --gutter: clamp(16px, 3vw, 40px);
  --font: "IBM Plex Mono", "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -40px;
  background: var(--fg); color: var(--bg); padding: 4px 8px; z-index: 50;
}
.skip:focus { top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  padding: 20px var(--gutter);
}
.nav { display: flex; flex-wrap: wrap; gap: 0 .6ch; }
.nav .name { font-weight: 500; }
.slash { color: var(--dim); }

/* Hero */
.hero { padding: 8px var(--gutter) 0; }
.hero-frame {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden;
}
.hero-poster, .hero-loop {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.hero-poster { object-fit: cover; }
.hero-loop { pointer-events: none; }
.hero-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; padding: 12px 0 0;
}
.credit { font-size: 13px; color: var(--dim); }

/* PLAY label */
.play-label {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--bg); color: #fff;
  font-size: 14px; padding: 2px 8px;
  transition: background .15s, color .15s;
}
.hero-frame:hover .play-label,
.film-link:hover .play-label,
.hero-frame:focus-visible .play-label,
.film-link:focus-visible .play-label { background: #fff; color: var(--bg); }

/* Intro */
.intro { padding: 48px var(--gutter) 0; }
.intro-title {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}
.intro-title .dash { color: var(--dim); }
.intro-sub {
  margin-top: 14px;
  font-size: clamp(14px, 1.3vw, 18px);
  color: var(--dim);
  text-transform: uppercase;
}

/* Work grid */
.work { padding: 56px var(--gutter) 0; }
.film-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 28px;
}
.film-link {
  display: block; width: 100%; text-align: left;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.film-link:hover, .film-link:focus-visible { text-decoration: none; }
.film-still {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
}
.film-still img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease, filter .3s ease;
  filter: brightness(.92);
}
.film-link:hover .film-still img { transform: scale(1.025); filter: brightness(1); }
.film-meta { padding-top: 10px; }
.film-caption { text-transform: uppercase; }
.film-credit { font-size: 13px; color: var(--dim); margin-top: 6px; text-transform: uppercase; }

/* Bio + contact */
.bio, .contact {
  padding: 96px var(--gutter) 0;
  display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: 16px 28px;
}
.section-label { font-size: 16px; font-weight: 400; margin: 0; color: var(--dim); }
.bio-text { max-width: 62ch; }
.bio-text p + p { margin-top: 1em; }
.reps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 28px; }
.reps a { text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
.reps a:hover { text-decoration-color: var(--fg); }
.region { color: var(--dim); font-size: 13px; margin-bottom: 4px; }

.site-footer {
  padding: 96px var(--gutter) 28px; font-size: 13px; color: var(--dim);
}

/* Player overlay */
.player {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11, 11, 11, .97);
  display: flex; flex-direction: column;
}
.player[hidden] { display: none; }
.player-bar {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 20px var(--gutter);
}
.player-close {
  background: none; border: 0; cursor: pointer; padding: 0; white-space: nowrap;
}
.player-close:hover { text-decoration: underline; text-underline-offset: 3px; }
.player-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gutter) var(--gutter); min-height: 0;
}
.player-box { position: relative; width: 100%; max-height: 100%; }
.player-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

body.no-scroll { overflow: hidden; }

@media (max-width: 720px) {
  .nav { font-size: 14px; }
  .nav .slash:last-child { display: none; }
  .film-grid { grid-template-columns: 1fr; gap: 36px; }
  .bio, .contact { grid-template-columns: 1fr; padding-top: 72px; }
  .work { padding-top: 40px; }
  .intro { padding-top: 24px; }
  .hero-frame { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film-still img { transition: none; }
}
