@font-face {
  font-family: "Sora AUREON";
  src: url("fonts/sora-extrabold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --gl-heading: "Sora AUREON", "Bricolage Grotesque", "Manrope", sans-serif;
}

body h1,
body h2 {
  font-family: var(--gl-heading) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body h3 {
  font-family: "Bricolage Grotesque", "Manrope", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

/* The guideline opens with real creator work, not a product still. */
.gl-contract-cover.gl-ugc-hero {
  width: min(1120px, calc(100% - 32px));
  min-height: clamp(610px, calc(100svh - 126px), 760px);
  margin: 0 auto 22px;
  padding: 30px clamp(26px, 4.5vw, 54px) 24px;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(390px, 1.16fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(28px, 5vw, 68px);
  row-gap: 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: linear-gradient(135deg, #100d0f 0%, #1a1014 58%, #110d0f 100%);
  box-shadow: 0 30px 70px -38px rgba(0, 0, 0, .9);
}

.gl-contract-cover.gl-ugc-hero::before {
  height: 2px;
  background: linear-gradient(90deg, #e5142a 0%, #ff4b7e 42%, rgba(255, 75, 126, 0) 82%);
}

.gl-ugc-hero .gl-contract-cover__head {
  grid-column: 1 / -1;
  align-self: start;
}

.gl-ugc-hero .gl-contract-cover__logo {
  width: 46px;
  height: 46px;
}

.gl-ugc-hero .gl-contract-cover__brand {
  font-size: 22px;
  font-weight: 800;
  text-shadow: none;
}

.gl-ugc-hero .gl-contract-cover__subbrand {
  margin-top: 5px;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
}

.gl-ugc-hero .gl-contract-cover__body {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  min-width: 0;
}

.gl-ugc-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.gl-ugc-hero__eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  flex: none;
  border-radius: 3px;
  background: #ff4058;
}

.gl-ugc-hero .gl-contract-cover__title {
  max-width: 9.4ch;
  margin: 0 0 20px;
  color: #fff;
  font-family: var(--gl-heading) !important;
  font-size: 62px;
  font-weight: 800;
  line-height: .98;
  letter-spacing: 0;
  text-wrap: balance;
}

.gl-ugc-hero .gl-contract-cover__title span {
  display: inline;
  color: inherit;
}

.gl-ugc-hero .gl-contract-cover__body > p {
  max-width: 36ch;
  margin: 0 0 25px;
  color: rgba(255, 255, 255, .66);
  font-size: 15px;
  line-height: 1.65;
}

.gl-ugc-hero .gl-contract-cover__actions {
  margin: 0;
}

.gl-ugc-hero .gl-contract-cover__action {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 8px;
  letter-spacing: 0;
}

.gl-ugc-hero .gl-contract-cover__media {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  min-height: 0;
  padding: 0;
}

.gl-ugc-hero__stage {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  perspective: 1000px;
}

.gl-ugc-card {
  --card-angle: -3deg;
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #21191d;
  box-shadow: 0 22px 45px -24px rgba(0, 0, 0, .95);
  transform: rotate(var(--card-angle)) translateY(12px);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.gl-ugc-card:nth-child(2) {
  --card-angle: 0deg;
  z-index: 2;
  transform: translateY(-12px);
  border-color: rgba(255, 255, 255, .36);
  box-shadow: 0 30px 54px -24px rgba(0, 0, 0, 1);
}

.gl-ugc-card:nth-child(3) {
  --card-angle: 3deg;
}

.gl-ugc-card__inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #21191d;
}

.gl-ugc-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #21191d;
}

.gl-ugc-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 8, 9, 0), rgba(10, 8, 9, .82));
}

.gl-ugc-card figcaption {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 46px;
  bottom: 12px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.gl-ugc-card figcaption span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .62);
  font-size: 9px;
  font-weight: 700;
}

.gl-ugc-card__toggle {
  position: absolute;
  z-index: 3;
  right: 9px;
  bottom: 9px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(15, 12, 14, .72);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.gl-ugc-card__toggle:focus-visible {
  outline: 2px solid #ff4058;
  outline-offset: 3px;
}

.gl-ugc-card__toggle span {
  font-size: 11px;
  line-height: 1;
}

.gl-ugc-card.is-playing .gl-ugc-card__toggle span {
  font-size: 10px;
}

.gl-ugc-card:hover {
  border-color: rgba(255, 255, 255, .46);
  box-shadow: 0 30px 52px -22px rgba(0, 0, 0, 1);
}

.gl-ugc-hero .gl-contract-cover__meta {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
}

.gl-ugc-hero.is-ready .gl-ugc-card__inner {
  opacity: 0;
  transform: translateY(22px) scale(.97);
}

.gl-ugc-hero.is-running .gl-ugc-card__inner {
  animation: glUgcCardIn .78s cubic-bezier(.16, 1, .3, 1) forwards;
}

.gl-ugc-hero.is-running .gl-ugc-card:nth-child(1) .gl-ugc-card__inner { animation-delay: 360ms; }
.gl-ugc-hero.is-running .gl-ugc-card:nth-child(2) .gl-ugc-card__inner { animation-delay: 470ms; }
.gl-ugc-hero.is-running .gl-ugc-card:nth-child(3) .gl-ugc-card__inner { animation-delay: 580ms; }

@keyframes glUgcCardIn {
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .gl-contract-cover.gl-ugc-hero {
    grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
    column-gap: 28px;
  }

  .gl-ugc-hero .gl-contract-cover__title {
    font-size: 52px;
  }

  .gl-ugc-hero__stage {
    min-height: 400px;
  }
}

@media (max-width: 719px) {
  .gl-contract-cover.gl-ugc-hero {
    width: calc(100% - 18px);
    min-height: 0;
    margin-top: 0;
    padding: 22px 16px 18px;
    display: flex;
    gap: 0;
    border-radius: 8px;
  }

  .gl-ugc-hero .gl-contract-cover__head {
    margin-bottom: 24px;
  }

  .gl-ugc-hero .gl-contract-cover__logo {
    width: 40px;
    height: 40px;
  }

  .gl-ugc-hero .gl-contract-cover__brand { font-size: 18px; }
  .gl-ugc-hero .gl-contract-cover__subbrand { font-size: 11px; }

  .gl-ugc-hero .gl-contract-cover__body {
    order: 2;
    width: 100%;
  }

  .gl-ugc-hero__eyebrow {
    margin-bottom: 13px;
    font-size: 10px;
  }

  .gl-ugc-hero .gl-contract-cover__title {
    max-width: 10.5ch;
    margin-bottom: 14px;
    font-size: 38px;
    line-height: 1;
  }

  .gl-ugc-hero .gl-contract-cover__body > p {
    max-width: 32ch;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.55;
  }

  .gl-ugc-hero .gl-contract-cover__actions {
    display: none;
  }

  .gl-ugc-hero .gl-contract-cover__media {
    order: 3;
    width: calc(100% + 16px);
    margin: 20px -8px 0 0;
    display: block;
  }

  .gl-ugc-hero__stage {
    min-height: 0;
    height: 236px;
    display: flex;
    align-items: center;
    gap: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 32px 12px 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .gl-ugc-hero__stage::-webkit-scrollbar { display: none; }

  .gl-ugc-card,
  .gl-ugc-card:nth-child(2),
  .gl-ugc-card:nth-child(3) {
    width: 126px;
    min-width: 126px;
    height: 224px;
    transform: none;
    scroll-snap-align: start;
  }

  .gl-ugc-card figcaption { left: 10px; bottom: 10px; }

  .gl-ugc-hero .gl-contract-cover__meta {
    display: none;
  }
}

@media (max-width: 359px) {
  .gl-ugc-hero .gl-contract-cover__head { margin-bottom: 18px; }
  .gl-ugc-hero .gl-contract-cover__title { font-size: 34px; }
  .gl-ugc-hero .gl-contract-cover__body > p { display: none; }
  .gl-ugc-hero .gl-contract-cover__media { margin-top: 16px; }
  .gl-ugc-hero__stage { height: 210px; }
  .gl-ugc-card,
  .gl-ugc-card:nth-child(2),
  .gl-ugc-card:nth-child(3) {
    width: 111px;
    min-width: 111px;
    height: 198px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gl-ugc-hero.is-ready .gl-ugc-card__inner,
  .gl-ugc-hero.is-running .gl-ugc-card__inner {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .gl-ugc-card,
  .gl-ugc-card__inner,
  .gl-ugc-card__toggle {
    transition: none !important;
  }
}
