/* The videos page (kartpace.com/next). It loads styles.css and tracks/tracks.css first, so it has
   the dark track page look and the new-track form styles (.tracks-updates). This file only lays out
   the hero, the language switch and the Instagram link. */
.next-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 56px;
  align-items: center;
  padding-top: 148px;
  padding-bottom: 72px;
}

.next-page h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}

.next-hero__lead {
  max-width: 46ch;
  margin: 24px 0 0;
  color: var(--night-text);
  font-size: 19px;
  line-height: 1.6;
}

.next-hero__follow {
  margin: 28px 0 10px;
  color: var(--night-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.next-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-social a,
.next-lang button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--night-line);
  border-radius: 99px;
  color: var(--bone);
  background: var(--night-panel);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.next-social a:hover,
.next-social a:focus-visible,
.next-lang button:hover,
.next-lang button:focus-visible {
  border-color: var(--bone);
}

.next-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.next-lang[hidden] {
  display: none;
}

.next-lang button {
  min-width: 48px;
  justify-content: center;
  padding: 0 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.next-lang button[aria-pressed='true'] {
  border-color: var(--yellow);
  color: var(--ink);
  background: var(--yellow);
}

.next-page video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: #000;
  object-fit: cover;
}

.next-hero__video video {
  max-height: min(78vh, 640px);
  width: auto;
  max-width: 100%;
  margin-left: auto;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.55);
}

/* One line under the hero video with this Reel's post on each platform. */
.next-watch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin: 14px 0 0;
  color: var(--night-text);
  font-size: 13px;
}

.next-watch a {
  color: var(--bone);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.next-watch a:hover,
.next-watch a:focus-visible {
  color: var(--yellow);
}

.next-more {
  padding-top: 56px;
  border-top: 1px solid var(--night-line);
}

.next-more h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.next-more__note {
  margin: 6px 0 20px;
  color: var(--night-text);
  font-size: 15px;
}

.next-more__link {
  border: 1px solid var(--night-line);
}

.next-more__link:hover,
.next-more__link:focus-visible {
  border-color: var(--bone);
}

.next-signup {
  padding: 88px 0 104px;
}

/* The form box is the Vegas 29 popup's panel, here as a plain block on the page. */
.next-signup .tracks-updates {
  position: relative;
  display: block;
  max-height: none;
  box-shadow: none;
}

@media (max-width: 760px) {
  .next-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 112px;
    padding-bottom: 56px;
  }

  .next-page h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .next-hero__lead {
    font-size: 17px;
  }

  .next-hero__video video {
    width: 100%;
    max-height: none;
    margin: 0;
  }

  .next-signup {
    padding: 64px 0 80px;
  }
}
