@font-face {
  font-family: Inter;
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f4ee;
  --ink: #171913;
  --muted: #55564b;
  --line: #d3d4c8;
  --lime: #d3fa48;
  --dark: #191b15;
  --offwhite: #f6f7ed;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }

:where(a, button, input):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.shell {
  width: min(100% - var(--gutter) * 2, 78rem);
  margin-inline: auto;
}

.site-header { border-bottom: 1px solid var(--line); }

.header-layout, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.19em;
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  width: 0.23em;
  height: 0.23em;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  border-radius: 50%;
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.site-header nav a, .site-footer > a:last-child {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.3em;
}

.site-header nav a:hover, .site-footer > a:last-child:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.57fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.75rem);
  padding-block: clamp(2.5rem, 6vw, 5.25rem);
}

.hero-copy { padding-bottom: 0.35rem; }

.hero h1, .work h2, .about h2 {
  margin: 0;
  font-weight: 830;
  letter-spacing: -0.058em;
}

.hero h1 {
  font-size: clamp(3rem, 8.15vw, 7.8rem);
  line-height: 0.9;
}

.hero p {
  margin: clamp(1.3rem, 3vw, 2.5rem) 0 1.6rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.48rem);
  line-height: 1.45;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--lime);
  font-size: 0.9375rem;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 160ms, color 160ms;
}

.primary-link:hover {
  background: var(--ink);
  color: var(--offwhite);
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.work {
  padding-block: clamp(3rem, 5.5vw, 5.4rem) clamp(3.2rem, 7vw, 6.7rem);
  background: var(--dark);
  color: var(--offwhite);
}

.work h2, .about h2 {
  font-size: clamp(2.3rem, 5.4vw, 4.75rem);
  line-height: 1;
}

.work h2 { margin-bottom: clamp(1.6rem, 3.1vw, 2.8rem); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.6rem) clamp(1.25rem, 3.25vw, 2.75rem);
}

.work-item { min-width: 0; }

.work-item:has(.player.is-expanded)::before {
  display: block;
  aspect-ratio: 16 / 9;
  content: "";
}

.work-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem;
  padding-block: 0.9rem 1rem;
  border-bottom: 1px solid #494b40;
}

.work-caption h3 {
  margin: 0;
  font-weight: 650;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.work-caption time {
  color: #b7baa8;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.23fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding-block: clamp(3.2rem, 7.5vw, 6.6rem);
}

.about p {
  align-self: center;
  max-width: 35ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 2.15vw, 1.6rem);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wordmark { font-size: 1.4rem; }

.player {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  color: #fff;
  background: #10110e;
}

.player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player.is-enhanced video { cursor: pointer; }

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.player-cover .icon {
  display: grid;
  place-items: center;
  width: clamp(2.75rem, 7vw, 4.6rem);
  height: clamp(2.75rem, 7vw, 4.6rem);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 6px 24px #0005;
  transition: transform 160ms, background-color 160ms;
}

.player-cover:hover .icon { transform: scale(1.1); }
.player-cover:focus-visible { outline: 2px solid var(--lime); outline-offset: -4px; }

.player-controls {
  position: absolute;
  inset: auto 0 0;
  padding: 1.55rem 0.85rem 0.45rem;
  background: linear-gradient(transparent, #111e 70%);
  transition: opacity 180ms ease;
}

@media (hover: hover) {
  .player.is-playing:not(:hover):not(:focus-within) .player-controls {
    opacity: 0;
    pointer-events: none;
  }
}

.player-bar, .player-sound {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.player-time {
  margin-right: auto;
  padding: 0 0.35rem;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-bar button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.player-bar button:hover { background: #ffffff24; }

.player-bar button:focus-visible, .player-controls input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

.player-progress, .player-volume {
  display: block;
  margin: 0;
  accent-color: var(--lime);
  cursor: pointer;
}

.player-progress { width: 100%; }
.player-progress:disabled { cursor: default; }
.player-volume { width: 4rem; }

.icon { display: block; position: relative; }

.icon-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 0.13rem;
  border-top: 0.41rem solid transparent;
  border-bottom: 0.41rem solid transparent;
  border-left: 0.66rem solid currentColor;
}

.player-cover .icon-play::before {
  margin-left: 0.2rem;
  border-top-width: 0.6rem;
  border-bottom-width: 0.6rem;
  border-left-width: 0.9rem;
}

.is-playing .player-play .icon-play::before {
  width: 0.7rem;
  height: 0.88rem;
  margin: 0;
  border: none;
  border-inline: 0.22rem solid currentColor;
}

.icon-sound, .icon-fullscreen { width: 1.08rem; height: 1.08rem; }

.icon-sound::before {
  position: absolute;
  inset: 0;
  content: "";
  background: currentColor;
  clip-path: polygon(0 35%, 21% 35%, 53% 10%, 53% 90%, 21% 65%, 0 65%);
}

.icon-sound::after {
  position: absolute;
  inset: 13% 0 13% 50%;
  content: "";
  border-right: 2px solid currentColor;
  border-radius: 50%;
}

.player-mute[aria-pressed="true"] .icon-sound::after {
  inset: 48% -4% auto 60%;
  height: 2px;
  border-radius: 0;
  border: 0;
  background: currentColor;
  transform: rotate(-45deg);
}

.icon-fullscreen {
  background:
    linear-gradient(currentColor, currentColor) top left,
    linear-gradient(currentColor, currentColor) top left,
    linear-gradient(currentColor, currentColor) top right,
    linear-gradient(currentColor, currentColor) top right,
    linear-gradient(currentColor, currentColor) bottom left,
    linear-gradient(currentColor, currentColor) bottom left,
    linear-gradient(currentColor, currentColor) bottom right,
    linear-gradient(currentColor, currentColor) bottom right;
  background-size: 36% 2px, 2px 36%, 36% 2px, 2px 36%, 36% 2px, 2px 36%, 36% 2px, 2px 36%;
  background-repeat: no-repeat;
}

.player:fullscreen, .player.is-expanded {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: #000;
}

.player.is-expanded {
  z-index: 10;
  position: fixed;
  inset: 0;
  height: 100dvh;
}

body:has(.player.is-expanded) { overflow: hidden; }

.player-message {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  margin: 0;
  padding: 0.8rem 1rem;
  color: var(--offwhite);
  background: #151612f5;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.player-message a { color: var(--lime); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero h1 { font-size: clamp(2.64rem, 10.1vw, 4.9rem); }
  .portrait { aspect-ratio: 1.15; object-position: 50% 49%; }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .work-grid { grid-template-columns: 1fr; }
  .header-layout, .site-footer { min-height: 3.9rem; }
}

@media (hover: none), (max-width: 420px) {
  .player-volume { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .primary-link, .player-controls, .player-cover .icon { transition: none; }
}
