@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-v5.3.0.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  background: #030405;
  color: #f7f7f4;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(118, 220, 230, 0.11), transparent 29rem),
    #030405;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

a:focus-visible,
video:focus-visible {
  outline: 2px solid #76dce6;
  outline-offset: 5px;
}

::selection {
  background: #76dce6;
  color: #061012;
}

.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;
}

.showreel {
  width: min(100%, 96rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1rem, 2.3vw, 2.25rem);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.showreel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.showreel__brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.showreel__live-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: flex-end;
  color: rgba(247, 247, 244, 0.68);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.showreel__live-link span {
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showreel__live-link:hover {
  color: #f7f7f4;
}

.showreel__live-link:hover span {
  transform: translate(0.14rem, -0.14rem);
}

.showreel__frame {
  align-self: center;
  width: 100%;
  margin: 0;
}

.showreel__frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  box-shadow: 0 2.2rem 6rem rgba(0, 0, 0, 0.48);
}

.showreel__frame figcaption {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(1rem, 4vw, 3rem);
  padding-top: 0.85rem;
  color: rgba(247, 247, 244, 0.5);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

@media (max-width: 42rem) {
  .showreel {
    padding: 1rem;
    grid-template-rows: auto auto 1fr;
  }

  .showreel__header {
    align-items: flex-start;
  }

  .showreel__live-link {
    max-width: 9.5rem;
    text-align: right;
  }

  .showreel__frame figcaption {
    grid-template-columns: 1fr auto;
  }

  .showreel__frame {
    align-self: start;
    margin-top: clamp(4rem, 12svh, 7rem);
  }

  .showreel__frame figcaption span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
