.video-page {
  background: var(--paper);
}

.video-hero {
  position: relative;
  display: grid;
  height: min(560px, calc(100vh - 110px));
  min-height: 470px;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-deep);
}

.video-hero > img,
.video-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-hero > img {
  object-fit: cover;
  object-position: center 48%;
}

.video-hero::after {
  background: rgba(5, 26, 47, 0.68);
  content: "";
}

.video-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(calc(100% - 48px), var(--content));
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding-top: 34px;
}

.video-hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.video-hero-inner > p:not(.eyebrow) {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.02rem;
}

.video-hero-facts {
  display: flex;
  gap: 42px;
  margin: 34px 0 0;
}

.video-hero-facts div {
  display: grid;
}

.video-hero-facts dt {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.video-hero-facts dd {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
}

.video-library {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 92px 0 108px;
}

.video-library-heading {
  display: grid;
  align-items: end;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 72px;
}

.video-library-heading h2 {
  font-size: clamp(2.15rem, 3.8vw, 3.65rem);
}

.video-library-heading > p {
  max-width: 520px;
  margin: 0;
}

.video-filters {
  display: flex;
  margin: 48px 0 34px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.video-filters button {
  position: relative;
  display: inline-flex;
  min-width: max-content;
  min-height: 52px;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.video-filters button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--lime);
  content: "";
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.video-filters button:hover,
.video-filters button:focus-visible,
.video-filters button.is-active {
  color: var(--forest-deep);
}

.video-filters button.is-active::after {
  transform: scaleX(1);
}

.video-filters svg {
  width: 17px;
  height: 17px;
}

.video-filters span {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  color: var(--forest-deep);
  background: var(--paper-warm);
  border-radius: 50%;
  font-size: 0.65rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.video-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(13, 48, 80, 0.07);
}

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

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #061a2d;
}

.video-card-copy {
  min-height: 210px;
  padding: 22px 22px 24px;
}

.video-card-copy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.video-card-copy span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.video-card-copy time {
  color: var(--muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.video-card-copy h3 {
  min-height: 2.45em;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.22;
}

.video-card-copy p {
  margin: 12px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.video-proof {
  padding: 84px 0;
  color: var(--white);
  background: var(--forest-deep);
}

.video-proof-inner {
  display: grid;
  width: min(calc(100% - 48px), var(--content));
  align-items: end;
  margin: 0 auto;
  grid-template-columns: 1fr 0.72fr auto;
  gap: 60px;
}

.video-proof h2 {
  max-width: 620px;
  color: var(--white);
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
}

.video-proof-inner > p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.video-proof .text-link {
  min-width: max-content;
  color: var(--white);
}

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

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

  .video-proof .text-link {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .video-hero {
    height: 560px;
  }

  .video-hero-inner,
  .video-library,
  .video-proof-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .video-hero-inner {
    justify-content: flex-end;
    padding: 0 0 48px;
  }

  .video-hero h1 {
    font-size: 2.65rem;
  }

  .video-hero-facts {
    gap: 24px;
  }

  .video-library {
    padding: 68px 0 78px;
  }

  .video-library-heading,
  .video-proof-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .video-filters {
    width: calc(100% + 16px);
    margin-top: 38px;
  }

  .video-filters button {
    padding: 0 15px;
  }

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

  .video-card-copy {
    min-height: 0;
  }

  .video-card-copy h3 {
    min-height: 0;
  }

  .video-proof {
    padding: 68px 0;
  }

  .video-proof .text-link {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .video-hero-facts {
    gap: 16px;
  }

  .video-hero-facts dt {
    font-size: 1.2rem;
  }

  .video-hero-facts dd {
    font-size: 0.66rem;
  }
}

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