:root {
  color-scheme: dark;
  --background: #000000;
  --foreground: #ffffff;
  --border: #ffffff;
  --muted: #9d9d9d;
  --panel: #0f0f0f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
}

.menu-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  display: inline-grid;
  gap: 0.3rem;
  place-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.menu-toggle span {
  display: block;
  width: 1.6rem;
  height: 2px;
  background: var(--foreground);
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--foreground);
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.4rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.4rem) rotate(-45deg);
}

.site-title {
  justify-self: center;
  color: var(--foreground);
  text-decoration: none;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  letter-spacing: 0.04em;
}

.header-spacer {
  width: 3rem;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 6rem 1.5rem 2rem;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 35%),
    rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}

.menu-panel {
  display: grid;
  gap: 1rem;
  width: min(28rem, 100%);
}

.menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--foreground);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(1rem, 2vw, 1.25rem);
  transition: background-color 0.45s ease, color 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease;
}

.menu-link:hover,
.menu-link:focus-visible {
  background: var(--foreground);
  color: var(--background);
  transform: scale(1.03);
  border-color: var(--foreground);
}

.videos-page {
  padding: 2rem;
}

.videos-hero {
  display: grid;
  gap: 2rem;
  margin: 0 auto 3rem;
  max-width: 78rem;
  justify-items: center;
  text-align: center;
}

.videos-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.filter-button {
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  background: var(--foreground);
  color: var(--background);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 78rem;
}

.video-grid--portrait {
  max-width: 54rem;
}

.video-section {
  --filter-offset: 0px;
  margin: 0 auto 4rem;
  max-width: 78rem;
  transform: translateY(var(--filter-offset));
  transition: opacity 0.8s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-section.is-filter-entering {
  opacity: 0;
  transform: translateY(calc(var(--filter-offset) + 0.8rem));
}

.video-section.is-filter-leaving {
  opacity: 0;
  transform: translateY(calc(var(--filter-offset) - 0.5rem));
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.video-card {
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.video-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, #1b1b1b, #050505);
  isolation: isolate;
  cursor: pointer;
}

.video-thumb--portrait {
  aspect-ratio: 9 / 16;
}

.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  z-index: 1;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(36, 36, 36, 0.72);
  opacity: 0;
  transition: opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.video-thumb-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.82s cubic-bezier(0.22, 1, 0.36, 1), filter 0.82s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Crop the built-in letterboxing from these supplied screenshots. */
.video-thumb-media--zoomed {
  transform: scale(1.1);
}

.video-thumb-media--bottom-cropped {
  transform: scale(1.16) translateY(2%);
}

.video-thumb-media--double-time {
  transform: scale(1.2) translate(-2%, 4%);
}

.video-thumb-media--hollow {
  transform: scale(1.06) translateY(-2%);
}

.video-thumb-label {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  pointer-events: none;
  padding: 0.8rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--foreground);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 10px));
  transition: opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1), transform 0.82s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.45s ease, color 0.45s ease;
}

.video-thumb:hover .video-thumb-label,
.video-thumb:focus-visible .video-thumb-label {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.video-thumb:hover::after,
.video-thumb:focus-visible::after {
  opacity: 1;
}

.video-thumb:hover .video-thumb-label,
.video-thumb:focus-visible .video-thumb-label {
  background: var(--foreground);
  color: var(--background);
}

.video-thumb:hover,
.video-thumb:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
}

.video-thumb:hover .video-thumb-media,
.video-thumb:focus-visible .video-thumb-media {
  transform: scale(1.03);
  filter: saturate(0.75) contrast(0.9);
}

.video-thumb:hover .video-thumb-media--zoomed,
.video-thumb:focus-visible .video-thumb-media--zoomed {
  transform: scale(1.13);
}

.video-thumb:hover .video-thumb-media--bottom-cropped,
.video-thumb:focus-visible .video-thumb-media--bottom-cropped {
  transform: scale(1.19) translateY(2%);
}

.video-thumb:hover .video-thumb-media--double-time,
.video-thumb:focus-visible .video-thumb-media--double-time {
  transform: scale(1.23) translate(-2%, 4%);
}

.video-thumb:hover .video-thumb-media--hollow,
.video-thumb:focus-visible .video-thumb-media--hollow {
  transform: scale(1.09) translateY(-2%);
}

.video-meta {
  display: grid;
  gap: 0.3rem;
}

.video-name {
  font-size: 1.15rem;
  font-weight: 500;
}

.video-role {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-card[hidden] {
  display: none;
}

.video-modal {
  width: min(82rem, calc(100% - 2rem));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.5rem;
  background: var(--panel);
  color: var(--foreground);
  overflow: visible;
  opacity: 0;
  transform: translateY(1rem) scale(0.985);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.video-modal[open].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.video-modal[open].is-visible::backdrop {
  opacity: 1;
}

.modal-content {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #000;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-close {
  position: absolute;
  top: -0.75rem;
  right: -3rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #bdbdbd;
  outline: none;
}

.modal-close:focus-visible {
  outline: 1px solid var(--foreground);
  outline-offset: 0.3rem;
}

.modal-video,
.modal-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background: #000;
  border: 0;
}

.modal-video {
  object-fit: contain;
}

.modal-video[hidden],
.modal-embed[hidden],
.modal-coming-soon[hidden],
.modal-copy[hidden] {
  display: none;
}

.modal-coming-soon {
  display: grid;
  place-items: center;
  min-height: min(60vh, 32rem);
  border-radius: 1rem;
  background: #080808;
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.modal-copy {
  display: grid;
  gap: 0.35rem;
}

.modal-title,
.modal-roles {
  margin: 0;
}

.modal-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
}

.modal-roles {
  color: var(--muted);
}

.modal-awards {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.75rem;
}

.modal-awards[hidden] {
  display: none;
}

.modal-awards h3,
.modal-awards-list {
  margin: 0;
}

.modal-awards h3 {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-awards-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  color: var(--muted);
}

.modal-awards-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .videos-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .menu-overlay {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .modal-content {
    padding: 1rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .video-section {
    transition: none;
  }
}
