:root {
  --bg: #000;
  --bg-raised: #0e0e0e;
  --line: #1f1f1f;
  --text: #f2f2f2;
  --muted: #7d7d7d;
  --accent: #ffffff;
  --hi: var(--text); /* hover / active highlight */
  --edge: #2a2a2a; /* thin borders on round buttons and pills */
  --glass: rgba(0, 0, 0, 0.55); /* blurred fill behind header buttons */
  --panel: rgba(8, 8, 8, 0.92); /* open menu */
  --label: #4a4a4a; /* the "Watch" menu heading */
  --soft: #c4c4c4; /* bio paragraphs */
  --soft-2: #b5b5b5; /* track titles */
  --underline: #3a3a3a; /* resting underline on bio links */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ─── Rivian theme ───
   Launch Green background, Rivian yellow highlights. To go back to the black
   theme, delete this whole block (and set theme-color back to #000000 in each
   page's <head>). */
:root {
  --bg: #2d3a2f;
  --bg-raised: #36443a;
  --line: #445347;
  --text: #f1f0e8;
  --muted: #a2ab9f;
  --accent: #ffb81c;
  --hi: #ffb81c;
  --edge: #536255;
  --glass: rgba(37, 48, 39, 0.6);
  --panel: rgba(38, 49, 40, 0.95);
  --label: #79857a;
  --soft: #d9dbd1;
  --soft-2: #cfd2c7;
  --underline: #66756a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 200;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* faint monochrome film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ─── Header + menu ─── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 1.25rem var(--gutter);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}


.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: border-color 0.3s;
}

.menu-toggle:hover {
  border-color: var(--hi);
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1px;
  background: var(--text);
  transition:
    transform 0.35s ease,
    opacity 0.2s;
}

.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21.5px; }
.menu-toggle span:nth-child(3) { top: 27px; }

.is-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.is-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.menu {
  position: absolute;
  top: calc(100% - 0.25rem);
  left: var(--gutter);
  display: flex;
  flex-direction: column;
  min-width: 12rem;
  padding: 0.75rem 0;
  border: 1px solid var(--edge);
  background: var(--panel);
  backdrop-filter: blur(12px);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s 0.25s;
}

.is-open .menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.menu a {
  padding: 0.55rem 1.5rem;
  font-family: var(--display);
  font-weight: 500;
  font-stretch: 115%;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--hi);
}

/* "Watch" is a plain heading over Shorts and Spots, not a link: smaller and
   darker than the links, with the two links indented beneath it. */
.menu-group {
  display: flex;
  flex-direction: column;
  margin: 0.35rem 0;
}

.menu-label {
  padding: 0.55rem 1.5rem 0.2rem;
  font-family: var(--display);
  font-weight: 500;
  font-stretch: 115%;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--label);
  cursor: default;
  user-select: none;
}

.menu-group a {
  padding-left: 2.25rem;
}

/* Top-right: the Instagram glyph and IMDb badge, solid shapes taken from the
   official marks, muted grey and white on hover. */
.header-end {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.social {
  display: grid;
  place-items: center;
  height: 44px;
  color: var(--muted);
  transition: color 0.25s;
}

.social:hover,
.social:focus-visible {
  color: var(--hi);
}

.social svg {
  display: block;
  fill: currentColor;
}

.icon-instagram {
  width: 19px;
  height: 19px;
}

.icon-imdb {
  width: 37px;
  height: 19px;
}

/* The smallest phones: tighten the header so the menu button keeps its circle. */
@media (max-width: 350px) {
  .menu-toggle,
  .social {
    flex: none;
  }
  .header-end {
    gap: 0.45rem;
  }
  .icon-instagram {
    width: 16px;
    height: 16px;
  }
  .icon-imdb {
    width: 31px;
    height: 16px;
  }
}

/* IMDb's letters are cut out of the badge in the page's black. */
.icon-imdb .letters {
  fill: var(--bg);
}

/* Keep the brand's own casing ("IMDb") inside uppercase labels. */
.brand {
  text-transform: none;
}

/* ─── Hero ─── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem var(--gutter) var(--gutter);
}

/* fill the tallest viewport (mobile toolbars hidden) so Watch never peeks in
   below the fold, while padding keeps the name above the toolbars when shown */
@supports (height: 100lvh) {
  .hero {
    min-height: 100lvh;
    padding-bottom: calc(var(--gutter) + 100lvh - 100svh);
  }
}


.name {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 112%;
  font-size: clamp(2.9rem, 10vw, 8rem);
  line-height: 0.92;
  /* pull the C's side bearing back so it lines up with the tagline */
  margin-left: -0.045em;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.tagline {
  margin: 0.6rem 0 0;
  font-weight: 440;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* spans the open space above the name, edge to edge */
.waveform {
  position: absolute;
  left: 0;
  top: 42%;
  display: block;
  width: 100%;
  height: 72px;
  margin-top: -36px;
}

.waveform path {
  fill: none;
  stroke: url(#wave-fade);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}



/* Separate pages (Watch, Listen, Credits): clear the fixed header. */
.section.page {
  padding-top: clamp(7rem, 12vw, 9rem);
  min-height: calc(100vh - 5rem);
}

/* Name + small drifting waveform beside the menu button on the other pages,
   in a pill matching the round header buttons so it reads over any content
   as the page scrolls beneath it. Links home. */
.home-wave {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 44px;
  margin-left: 0.75rem;
  padding: 0 0.85rem 0 1.15rem;
  border: 1px solid var(--edge);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s;
}

.home-name {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 115%;
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  /* trailing letter-spacing would make the gap to the waveform look uneven */
  margin-right: -0.2em;
}

.home-wave svg {
  display: block;
  flex: none;
  width: 56px;
  height: 26px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.home-wave:hover,
.home-wave:focus-visible {
  border-color: var(--hi);
}

.home-wave:hover svg,
.home-wave:focus-visible svg {
  opacity: 1;
}

.home-wave path {
  fill: none;
  stroke: url(#mini-fade);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 420px) {
  .home-wave {
    gap: 0.5rem;
    padding: 0 0.7rem 0 0.95rem;
  }
  .home-name {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    margin-right: -0.16em;
  }
  .home-wave svg {
    width: 38px;
  }
}

/* ─── Bio ─── */

.bio-text {
  text-align: justify;
  hyphens: auto;
}

.bio-text p {
  margin: 0 0 1.5em;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.8;
  color: var(--soft);
}

.bio-text p:last-child {
  margin-bottom: 0;
}

/* project titles (<em>, linked to IMDb) and brand names (<strong>) in bold */
.bio-text em,
.bio-text strong {
  font-style: normal;
  font-weight: 500;
  color: var(--text);
}

.bio-text a {
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s ease;
}

.bio-text a:hover {
  text-decoration-color: var(--hi);
}

/* ─── Films ─── */

.films {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* the featured video spans the full width; the rest sit in a grid of smaller thumbnails */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 2.25rem 1.5rem;
}

.film-featured {
  grid-column: 1 / -1;
}

/* Phones: two smaller thumbnails per row under the full-width featured video. */
@media (max-width: 599px) {
  .films {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 0.75rem;
  }
  .films .film:not(.film-featured) .play {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
  }
  .films .film:not(.film-featured) .play::after {
    margin: -6px 0 0 -3px;
    border-width: 6px 0 6px 10px;
  }
  .films .film:not(.film-featured) .meta {
    margin-top: 0.65rem;
  }
  .films .film:not(.film-featured) .meta h3 {
    font-size: 0.78rem;
  }
  .films .film:not(.film-featured) .meta p {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
}

.player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: var(--bg-raised);
  overflow: hidden;
  cursor: pointer;
}

.player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05) brightness(0.62);
  transition:
    filter 0.6s ease,
    transform 0.9s ease;
}

.player:hover img,
.player:focus-visible img {
  filter: grayscale(0) brightness(0.95);
  transform: scale(1.025);
}


.play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 1px solid rgba(242, 242, 242, 0.6);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.35);
  transition:
    transform 0.4s ease,
    border-color 0.4s;
}

.play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -4px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--text);
}

.film-featured .play {
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
}

.player:hover .play {
  transform: scale(1.08);
  border-color: var(--accent);
}

.meta {
  margin-top: 1rem;
}

.meta h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-stretch: 110%;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.film-featured .meta h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.score-link {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

/* "Original music composed by Chris Newlin" on its own line under the
   Shorts, Spots, Listen and score-page headings, in the same small grey label style as
   "IMDb ↗" and "All credits →" */
.section-head:has(.head-note) {
  flex-wrap: wrap;
  row-gap: 0.75rem;
}

.head-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 599px) {
  .head-note {
    font-size: 0.64rem;
    letter-spacing: 0.18em;
  }
}

/* "← Back to Shorts" on its own line under the score-page heading and its "Original music" note */
.section-head-wrap {
  flex-wrap: wrap;
  row-gap: 0.75rem;
}

.head-back {
  margin-right: auto;
}

.score-link:hover,
.score-link:focus-visible {
  color: var(--hi);
}

/* "Listen to full score →" on its own line under the card's
   "Short documentary · 6:43" line (Cha Cha Charlie and Visible on Shorts) */
.score-below {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* Phones: shortened to "Full score →" and sized like the line above it,
   so it stays on one line in the narrow two-across tiles too */
@media (max-width: 599px) {
  .score-below .score-lead {
    display: none;
  }
  .score-below {
    margin-top: 0.5rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }
}

.meta p {
  margin: 0.4rem 0 0;
  font-weight: 300;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Audio ─── */

/* Waveform panel above the track list: play/pause, current title and time, seekable waveform. */
.deck {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.deck-toggle {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  outline-offset: 4px;
  transition: border-color 0.3s;
}

.deck-toggle:hover,
.deck.is-playing .deck-toggle {
  border-color: var(--hi);
}

.deck-toggle::before,
.deck-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
}

.deck-toggle::before {
  margin: -7px 0 0 -3px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--text);
}

.deck.is-playing .deck-toggle::before,
.deck.is-playing .deck-toggle::after {
  width: 2px;
  height: 14px;
  margin: -7px 0 0;
  border: 0;
  background: var(--hi);
}

.deck.is-playing .deck-toggle::before {
  margin-left: -5px;
}

.deck.is-playing .deck-toggle::after {
  margin-left: 3px;
}

.deck-body {
  flex: 1;
  min-width: 0;
}

.deck-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.deck-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--display);
  font-weight: 500;
  font-stretch: 110%;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deck-time {
  flex: none;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.deck-wave {
  height: 64px;
  cursor: pointer;
  touch-action: pan-y;
}

.deck-wave canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.track {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 0.25rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.track-num {
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.track-title {
  font-family: var(--display);
  font-weight: 500;
  font-stretch: 110%;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft-2);
  transition: color 0.3s;
}

.track-note {
  margin-left: 0.6em;
  font-family: var(--sans);
  font-weight: 200;
  font-stretch: normal;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.track:hover .track-title,
.track.is-active .track-title {
  color: var(--hi);
}

/* play triangle; becomes two pause bars while playing */
.track-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  transition: border-color 0.3s;
}

.track-icon::before,
.track-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
}

.track-icon::before {
  margin: -5px 0 0 -2px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--text);
}

.track:hover .track-icon,
.track.is-active .track-icon {
  border-color: var(--hi);
}

.track.is-playing .track-icon::before,
.track.is-playing .track-icon::after {
  width: 2px;
  height: 10px;
  margin: -5px 0 0;
  border: 0;
  background: var(--hi);
}

.track.is-playing .track-icon::before {
  margin-left: -4px;
}

.track.is-playing .track-icon::after {
  margin-left: 2px;
}

.track-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--text);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

/* "Listen to the full 'Cha Cha Charlie' score" on Cha Cha Charlie rows (Listen page).
   It sits outside the row's button (links can't go inside buttons): just left of the
   play icon on wide screens, under the title on narrower ones. */
.has-score {
  position: relative;
}

.track-score {
  position: absolute;
  top: 50%;
  right: calc(0.25rem + 34px + 1.5rem);
  transform: translateY(-50%);
}

@media (max-width: 899px) {
  .has-score .track {
    padding-bottom: 2.4rem;
  }

  .track-score {
    top: auto;
    bottom: 1rem;
    left: calc(0.25rem + 2.75rem + 1rem);
    right: auto;
    transform: none;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
  }
}

/* the SoundCloud widget that actually plays the audio stays out of sight */
.sc-engine {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  border: 0;
}



/* ─── Credits ─── */

.head-link {
  margin-right: auto;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.head-link:hover {
  color: var(--hi);
}

.posters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(88px, 14vw, 132px), 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.posters a {
  display: block;
  aspect-ratio: 2 / 3;
  background: var(--bg-raised);
  overflow: hidden;
}

.posters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05) brightness(0.62);
  transition:
    filter 0.6s ease,
    transform 0.9s ease;
}

.posters a:hover img,
.posters a:focus-visible img {
  filter: grayscale(0) brightness(0.95);
  transform: scale(1.04);
}

/* Featured credits on the home page: nine larger posters, one row on wide
   screens, three by three on narrower ones. */
.posters-featured {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

@media (min-width: 900px) {
  .posters-featured {
    grid-template-columns: repeat(9, 1fr);
  }
}

.featured .head-link {
  margin-right: 0;
}

/* ─── Video lightbox ─── */

.has-lightbox {
  overflow: hidden;
}

.lightbox {
  width: min(100vw - 2 * var(--gutter), (100vh - 9rem) * 16 / 9, 1600px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}

.lightbox[open] {
  animation: lightbox-in 0.35s ease both;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-raised);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}

.lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Round close button above the player's top-right corner, sized like the menu button. */
.lightbox-close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.9rem);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(242, 242, 242, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: border-color 0.3s;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1px;
  margin-left: -8px;
  background: var(--text);
  transform: rotate(45deg);
}

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

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: var(--accent);
}

/* Full-screen button, the same round style, to the left of the close button. */
.lightbox-full {
  position: absolute;
  right: calc(44px + 0.6rem);
  bottom: calc(100% + 0.9rem);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(242, 242, 242, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.3s;
}

.lightbox-full svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.lightbox-full .shrink,
.lightbox.is-filled .lightbox-full .expand {
  display: none;
}

.lightbox.is-filled .lightbox-full .shrink {
  display: inline;
}

.lightbox-full:hover,
.lightbox-full:focus-visible {
  border-color: var(--accent);
}

/* Browser full screen: the frame fills the screen, Vimeo letterboxes the video. */
.lightbox-frame:fullscreen {
  aspect-ratio: auto;
  background: #000;
}

.lightbox-frame:-webkit-full-screen {
  aspect-ratio: auto;
  background: #000;
}

/* Fallback where the browser has no full screen (iPhone): the player covers the
   whole window; turning the phone sideways makes the video fill it. The buttons
   move to the top-left corner, clear of Vimeo's own icons on the right. */
.lightbox.is-filled {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  background: #000;
  animation: none;
}

.lightbox.is-filled .lightbox-frame {
  height: 100%;
  aspect-ratio: auto;
  box-shadow: none;
}

.lightbox.is-filled .lightbox-close,
.lightbox.is-filled .lightbox-full {
  z-index: 1;
  bottom: auto;
  top: max(0.75rem, env(safe-area-inset-top));
  right: auto;
  left: max(0.75rem, env(safe-area-inset-left));
}

.lightbox.is-filled .lightbox-full {
  left: calc(max(0.75rem, env(safe-area-inset-left)) + 44px + 0.6rem);
}

/* Focus is shown by the brighter border, not a second ring. This selector must
   outrank the global button:focus-visible outline. */
.lightbox-close:focus,
.lightbox-close:focus-visible,
.lightbox-full:focus,
.lightbox-full:focus-visible {
  outline: none;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox[open] {
    animation: none;
  }
}

/* Touch screens can't hover, so thumbnails and posters show in full colour there. */
@media (hover: none) {
  .player img,
  .posters img {
    filter: none;
  }
}

/* ─── Press page ─── */

.press {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem 1.75rem;
}

.press a {
  display: block;
}

.press-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-raised);
}

.press-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05) brightness(0.62);
  transition:
    filter 0.6s ease,
    transform 0.9s ease;
}

.press a:hover .press-thumb img,
.press a:focus-visible .press-thumb img {
  filter: grayscale(0) brightness(0.95);
  transform: scale(1.025);
}

.press .meta .arrow {
  color: var(--muted);
  transition: color 0.25s;
}

.press a:hover .meta .arrow {
  color: var(--text);
}

@media (hover: none) {
  .press-thumb img {
    filter: none;
  }
}

/* ─── Footer ─── */

.footer {
  font-weight: 400;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ─── Entrance ─── */

.hero > * {
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero > :nth-child(2) {
  animation-delay: 0.12s;
}
.hero > :nth-child(3) {
  animation-delay: 0.3s;
}
.hero > :nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

