:root {
  --bg: #000;
  --text: #f2f2ee;
  --muted: #777;
  --soft: #aaa;
  --line: #181818;
  --panel: #101010;
  --accent: #00fff7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
iframe {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 28px clamp(18px, 4vw, 56px) 22px;
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  width: fit-content;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.nav a:hover,
.brand:hover,
.nav .is-active {
  color: var(--accent);
}

.work-section {
  border-top: 1px solid var(--line);
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.thumb-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
}

.thumb-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 16 / 9;
}

.thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.82);
  transition: transform 200ms ease, filter 200ms ease;
}

.thumb-card:hover .thumb-image img {
  transform: scale(1.035);
  filter: saturate(1) brightness(1);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 22px);
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  transition: opacity 180ms ease;
}

.thumb-card:hover .thumb-overlay,
.thumb-card:focus-visible .thumb-overlay {
  opacity: 1;
}

.thumb-title {
  color: var(--accent);
  font-size: clamp(12px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.project-page {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  padding: clamp(24px, 4vw, 56px);
}

.project-head {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.project-title {
  margin: 0;
  font-size: clamp(32px, 6vw, 76px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

.project-media {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
}

.project-summary {
  display: grid;
  gap: 4px;
  color: var(--soft);
  font-size: 15px;
}

.project-summary p,
.video-title,
.project-note {
  margin: 0;
}

.video-block {
  display: grid;
  gap: 10px;
}

.video-title {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.film-player {
  background: var(--panel);
}

.film-player iframe,
.film-player img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.film-player img {
  height: auto;
  object-fit: cover;
}

.still-gallery {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
}

.still-frame {
  margin: 0;
  background: var(--panel);
}

.still-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.back-link {
  width: fit-content;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--accent);
}

.project-details {
  display: grid;
  gap: 18px;
  max-width: 720px;
  padding-top: 4px;
  color: var(--muted);
}

.credit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
}

.credit-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
}

.credit-list dt {
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.credit-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.project-note {
  color: var(--muted);
}

.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: clamp(10px, 3vw, 28px);
  border-top: 1px solid var(--line);
}

.project-nav a {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.project-nav a:last-child {
  text-align: right;
}

.project-nav a:hover {
  color: var(--accent);
}

.project-nav span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.project-nav strong {
  color: var(--text);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(260px, 560px);
  gap: clamp(22px, 5vw, 72px);
  align-items: start;
  padding: clamp(34px, 6vw, 80px) clamp(18px, 4vw, 56px);
}

.about-section.standalone {
  min-height: calc(100vh - 170px);
}

.portrait {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
}

.portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-copy {
  display: grid;
  gap: 12px;
}

.about-copy h1,
.about-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.about-copy p {
  max-width: 460px;
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.about-copy .muted {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .about-section {
    grid-template-columns: 1fr;
  }

  .thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credit-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .thumb-grid {
    grid-template-columns: 1fr;
  }

  .credit-list div {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .project-nav {
    grid-template-columns: 1fr;
  }

  .project-nav a:last-child {
    text-align: left;
  }
}
