/* Hero: footage stays pinned while the page slides over it. Nothing on it but the mark, the name and the three doors. */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  height: 100svh;
  min-height: 32rem;
  overflow: clip;
  background: var(--ground);
}

.hero__footage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Holds while the hero is mostly visible, then fades toward black as the page covers it. */
  opacity: calc(1 - clamp(0, (var(--dock, 0) - 0.9) * 10, 1) * 0.65);
}

/* Only as dark as the white mark and the doors need. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(oklch(0 0 0 / 0.5), oklch(0 0 0 / 0.38) 45%, oklch(0 0 0 / 0.78));
}

.hero__mark {
  position: relative;
  z-index: 2;
  align-self: center;
  display: grid;
  justify-items: center;
  gap: clamp(0.9rem, 2.2svh, 1.5rem);
  padding-top: var(--header-h);
}

/* The slots mark where site.js opens the header's mark and doors. */
.hero__mark-slot {
  height: clamp(6.5rem, 25svh, 15rem);
  aspect-ratio: 896 / 752;
}

.hero__nav-slot {
  width: 100%;
  height: 3rem;
  margin-bottom: clamp(2.5rem, 9svh, 6rem);
}

.hero h1 {
  opacity: calc(1 - var(--dock, 0) * 3);
}

/* About: the one place the page speaks at full size. */
main > section.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  column-gap: 1.5rem;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter) 0;
}

.about__portrait {
  grid-column: 1 / span 4;
}

.about__portrait .slot {
  aspect-ratio: 4 / 5;
}

.about__portrait .label {
  margin-top: 0.75rem;
}

.about__words {
  grid-column: 6 / -1;
  display: grid;
  gap: 1.3rem;
}

.about__words p {
  max-width: 35rem;
  font-size: 1.125rem;
}

.about__words .display {
  margin-bottom: 0.5rem;
}

/* Athletes: one row of card slots. */
main > section.roster {
  padding-top: clamp(4rem, 7.5vw, 6.5rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.5rem, 1vw, 0.875rem);
  margin-inline: var(--gutter);
}

.cards li {
  aspect-ratio: 4 / 5;
  place-items: end start;
  padding: 0.8rem;
}

.cards li > div {
  width: 100%;
}

.note {
  margin: 1rem var(--gutter) 0;
  font-size: 0.875rem;
  color: var(--dim);
}

/* Camps & events: the promo, playable with sound, beside what it promotes. */
main > section.events {
  padding-top: clamp(4.5rem, 9vw, 8rem);
}

.events__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  column-gap: 1.5rem;
  margin-inline: var(--gutter);
}

.reel {
  grid-column: 1 / span 5;
}

.reel__frame {
  position: relative;
}

.reel video {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: oklch(0.09 0 0);
}

.reel__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: oklch(0 0 0 / 0.25);
  color: var(--ink);
  cursor: pointer;
}

.reel__play svg {
  box-sizing: content-box;
  padding: 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.reel__play:hover {
  background: oklch(0 0 0 / 0.1);
}

.reel .label {
  margin-top: 0.75rem;
}

/* Sits on the reel's bottom edge, level with its caption. */
.events__list {
  grid-column: 7 / -1;
}

.events__list li:last-child {
  padding-bottom: 0;
}

.events__list li {
  display: grid;
  gap: 0.6rem;
  max-width: 28rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Contact: one address, said once. */
main > section.contact {
  padding-top: clamp(5rem, 10vw, 9rem);
}

.contact__inner {
  margin-inline: var(--gutter);
  padding-top: 1.4rem;
  border-top: 2px solid var(--ink);
}

.contact__email {
  display: block;
  width: max-content;
  max-width: 100%;
}

.contact__inner p {
  margin-top: 1rem;
  color: var(--dim);
}

@media (max-width: 52rem) {
  main > section.about {
    row-gap: 2rem;
  }

  .about__portrait {
    grid-column: 1 / span 6;
  }

  .about__words {
    grid-column: 1 / -1;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards li:nth-child(n + 4) {
    display: none;
  }

  .reel,
  .events__list {
    grid-column: 1 / -1;
  }

  .events__list {
    margin-top: 2rem;
  }

  .contact__email {
    width: auto;
    font-size: clamp(1.2rem, 5.4vw, 1.5rem);
  }
}
