/* Splash */

.section-splash {
  color: var(--color-text);
  background-color: var(--color-dark-green);
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: clip;

  .monogram-lottie {
    position: absolute;
    height: var(--spacing-xxxl);
  }
  .intro-text {
    position: absolute;
    visibility: hidden;
    padding: var(--spacing-m);
    width: 100%;
  }
}

.monogram {
  width: auto;
  height: var(--spacing-xl);
  position: relative;
  color: var(--color-text);

  svg {
    height: 100%;
    width: auto;
  }
}
.monogram-lottie {
  display: block;
  height: var(--spacing-xxl);
  width: auto;
}
@media (min-width: 900px) {
  .monogram {
    height: var(--spacing-xxl);
  }
  .monogram-lottie {
    height: var(--spacing-xxxl);
  }
  .section-splash .monogram-lottie {
    height: 35%;
  }
}

/* Spacer */

.section-spacer {
  height: var(--spacing-xxl);
}

/* Centered */

.section-centered {
  padding: var(--spacing-xxl) var(--spacing-m);
}

@media (min-width: 900px) {
  .section-centered {
    padding-block: var(--spacing-xxxl);
  }
}

.centered-textblock {
  text-align: center;
  margin-inline: auto;
  width: var(--width-large);
  max-width: 66ch;
}

/* Media section */

.section-media {
  overflow: clip;
}

/* Generic section */

.section-basic {
  color: var(--color-text);
  background-color: var(--color-bg);
  padding-block: var(--spacing-xxl);
  overflow: clip;

  > *:not(:last-child) {
    margin-bottom: var(--spacing-xxl);
  }
}

@media (min-width: 900px) {
  .section-basic {
    padding-block: var(--spacing-xxxl);
  }
}

.side-padding {
  padding-inline: var(--spacing-m);
}

/* Team */

.section-team {
  --color-bg: var(--color-light-green);
}

/* .team-grid {
  --cols: 2;
  padding: var(--spacing-l);
  gap: var(--spacing-l);
  row-gap: var(--spacing-l);
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);

  @media (min-width: 600px) {
    --cols: 3;
  }
  @media (min-width: 1200px) {
    --cols: 4;
  }
} */

.team-grid {
  --cols: 2;

  padding-inline: var(--spacing-l);
  gap: var(--spacing-l);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: stretch;

  .team-grid-item {
    width: calc(100% / var(--cols) - var(--spacing-l));
    max-width: 35ch;
  }

  @media (min-width: 600px) {
    --cols: 3;
  }
  @media (min-width: 1200px) {
    --cols: 4;
  }
  @media (min-width: 1600px) {
    --cols: 5;
  }
}

.card-profile {
  width: 100%;
  display: block;
  flex-shrink: 0;
  text-align: center;

  .thumbnail {
    aspect-ratio: 0.75;
    overflow: clip;

    img,
    video {
      transition: transform 0.5s ease;
      height: 100%;
      width: 100%;
      object-fit: cover;
    }
  }

  .thumbnail:hover img,
  .thumbnail:hover video {
    transform: scale(1.025);
  }
  .thumbnail:active img,
  .thumbnail:active video {
    transform: scale(1);
    transition: 0.2s ease;
  }

  .meta {
    margin-top: var(--spacing-s);
  }
}

/* Video */

.section-video {
  --color-bg: var(--color-dark-green);

}

@media (min-width: 600px) {
  .video-section-wrapper {
    height: 225svh;
  }

  .section-video {
    height: 100svh;
    position: sticky;
    display: flex;
    gap: var(--spacing-xl);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    top: 0;
    padding-block: var(--spacing-l);
    > *:not(:last-child) {
      margin-bottom: 0;
    }
  }
}
@media (min-width: 900px) {
  .section-video {
    padding-block: var(--spacing-l);
  }
}


.video-trigger {
  width: 90%;
  display: block;
  border-radius: 4px;
  overflow: clip;
  margin-inline: auto;
  transition: transform 0.5s ease, opacity 0.2s ease;
  position: relative;
}
.video-trigger:hover {
  transform: scale(1.01);
}
.video-trigger:active {
  opacity: 0.6;
}
.video-trigger::after {
  content: "Watch full video";
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  inset: 0;
  background-color: hsla(0, 0%, 0%, 50%);
  z-index: 2;
  transition: opacity 0.5s ease;
  opacity: 0;
}
.video-trigger:hover::after {
  opacity: 1;
}

@media (min-width: 900px) {
  .video-trigger {
    width: 66%;
  }
}

/* Press */

.press-grid {
  --cols: 2;

  padding-inline: var(--spacing-m);
  gap: var(--spacing-m);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: stretch;

  li {
    width: calc(100% / var(--cols) - var(--spacing-m));
    max-width: 30ch;
  }

  @media (min-width: 600px) {
    --cols: 3;
  }
  @media (min-width: 900px) {
    --cols: 4;
  }
}

.press-grid-item {
  height: 100%;
  display: grid;
  justify-items: center;
  text-align: center;
  transition: transform 0.4s ease, background-color 0.2s ease;
  padding: var(--spacing-m);
  gap: var(--spacing-s);

  img {
    width: 75%;
    /* margin-inline: auto; */
  }
}
.press-grid-item:hover {
  transform: translateY(-4px);
  background-color: var(--color-text-extra-extra-light);
}
.press-grid-item:active {
  transform: scale(0.98);
  background-color: var(--color-text-extra-light);
}
