/*
 * Page hero: one responsive section per page (Home, Influence Day), replacing the former separate
 * desktop (.home-section-hero) and tablet/mobile (.hero-section-tablet) versions.
 * Desktop: full-height video with the content along the bottom. Tablet and down: the content
 * stacks into framed rows (lines from the is-line-* utilities in the markup).
 * Every class maps to a Webflow class; values match the two versions it replaces.
 */

.page-hero {
  background-color: var(--black);
  flex-flow: column;
  justify-content: flex-end;
  align-items: center;
  height: 100svh;
  display: flex;
}

/* The video is positioned against the viewport (no positioned ancestor), as before. */
.page-hero__media {
  z-index: 0;
  position: absolute;
  inset: 0%;
}

.page-hero__dim {
  pointer-events: none;
  background-image: linear-gradient(360deg, #0f0f0fd6 23%, #0f0f0f82 82%);
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0%;
}

.page-hero__frame {
  width: 100%;
  max-width: 2300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.page-hero__inner {
  flex-flow: row;
  place-content: stretch space-between;
  align-items: flex-end;
  height: 39em;
  padding-bottom: 7em;
  padding-left: 3.6em;
  padding-right: 5.6em;
  display: flex;
  position: relative;
}

.page-hero__main {
  flex-flow: column;
  justify-content: flex-end;
  grid-column-gap: 3em;
  grid-row-gap: 3em;
  align-items: flex-start;
  width: 380%;
  height: auto;
  display: flex;
}

.page-hero__title {
  flex-flow: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: auto;
  font-size: .8em;
  display: flex;
}

.page-hero__title-line {
  color: var(--white);
  font-size: 6.2em;
  line-height: 100%;
  white-space: nowrap;
}

/*
 * Pixel letters in the headline. The pixel font draws its lowercase small for its size: at the
 * same font size its x-height is about 82% of BDO Grotesk's, so it is scaled up 1.22x to line
 * up. Use it only on x-height letters (a c e m n o r s u v w x z): letters with ascenders or
 * descenders (h, l, g...) would then stand taller than their neighbours. (For capitals the
 * match is 1.07x.) line-height 0 keeps the larger letters from growing the line.
 */
.page-hero__pixel {
  font-family: cofo-sans-pixel, sans-serif;
  font-size: 1.22em;
  line-height: 0;
}

.page-hero__aside {
  flex-flow: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 118em;
  height: 20.7em;
  padding-top: 1.4em;
  padding-bottom: 1.4em;
  display: flex;
}

.page-hero__meta-text {
  color: #fff;
  font-size: 2.6em;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
}

.page-hero__lead-text {
  color: #fff;
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 1.802em;
  font-weight: 400;
  line-height: 125%;
}

/* Influence Day: two columns (title / dates, lead, button) instead of Home's headline + aside. */
.page-hero__columns {
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  display: flex;
}

.page-hero__main.is-influence {
  grid-column-gap: 2em;
  grid-row-gap: 2em;
  width: 88.2em;
  height: auto;
}

.page-hero__heading {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 0;
  font-size: 4.9em;
  font-weight: 500;
  line-height: .94em;
}

.page-hero__highlight {
  background-color: var(--red-base);
  border: 1px solid var(--black);
  padding-top: .4em;
  padding-bottom: .37em;
  line-height: 0;
  display: inline-block;
}

.page-hero__aside.is-influence {
  width: 30em;
  height: auto;
  padding-top: 1em;
  padding-bottom: 1em;
}

.page-hero__meta.is-influence {
  height: 2.8em;
  display: flex;
}

.page-hero__meta-item.is-chip {
  background-color: var(--blue-light);
  justify-content: center;
  align-items: center;
  padding-left: .5em;
  padding-right: .5em;
  display: flex;
}

.page-hero__meta-item.is-chip.is-blue-dark {
  background-color: var(--blue-dark);
}

.page-hero__meta-item.is-chip.is-blue-base {
  background-color: var(--blue-base);
}

.page-hero__meta-text.is-chip {
  color: var(--white);
  font-size: 1.8em;
  font-weight: 400;
  line-height: 1em;
}

.page-hero__lead-text.is-influence {
  color: var(--lighter-2);
  margin-top: 0;
  font-size: 1.908em;
  line-height: 1em;
}

.page-hero__cta {
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  width: 100%;
  display: flex;
}

/* Home: the 2026 Highlights button, set apart from the intro text above it on desktop. */
.page-hero__cta.is-home {
  margin-top: 2.4em;
}

@media screen and (max-width: 991px) {
  .page-hero {
    height: auto;
    margin-top: 6.5em;
    display: block;
  }

  .page-hero__dim {
    background-image: linear-gradient(360deg, var(--black) 11%, #0f0f0f82 95%);
  }

  .page-hero__frame {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .page-hero__inner {
    flex-flow: column;
    place-content: normal flex-start;
    align-items: center;
    height: 100svh;
    padding: 0;
  }

  .hero-lines {
    display: none;
  }

  .page-hero__main {
    grid-column-gap: 1.6em;
    grid-row-gap: 1.6em;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 38svh 3.6em 7em;
    position: relative;
  }

  .page-hero__title {
    color: var(--white);
    letter-spacing: -.02em;
    width: 100%;
    height: auto;
    font-size: 4.3em;
    font-weight: 400;
    line-height: 118%;
    display: block;
  }

  .page-hero__title-line {
    font-size: 1em;
    line-height: inherit;
    white-space: normal;
    display: inline;
  }

  /* Keeps the pixel letters from enlarging the line boxes of the flowing headline. */
  .page-hero__pixel {
    line-height: 0;
  }

  .page-hero__aside {
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  .page-hero__meta {
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    display: flex;
    position: relative;
  }

  .page-hero__meta-item {
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 20em;
    display: flex;
    position: relative;
  }

  /* max-width sets each date on two lines, as the mobile layout always had. */
  .page-hero__meta-text {
    color: var(--white);
    max-width: 7em;
    font-size: 4em;
  }

  .page-hero__lead {
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    padding: 6em 3.6em 1.5em;
    display: flex;
    position: relative;
  }

  .page-hero__lead-text {
    letter-spacing: -.004em;
    width: 73%;
    margin-top: 0;
    font-size: 3.922em;
  }

  /* Influence Day: the columns stack; the button row moves up, under the title. */
  .page-hero__columns {
    flex-flow: column;
  }

  .page-hero__main.is-influence {
    grid-column-gap: 1.6em;
    grid-row-gap: 1.6em;
    width: 100%;
  }

  .page-hero__heading {
    letter-spacing: -.02em;
    text-transform: capitalize;
    font-size: 5em;
    font-weight: 400;
    line-height: 111%;
  }

  .page-hero__highlight {
    border-style: none;
    padding: .1em .1em .15em;
    line-height: 86%;
  }

  .page-hero__aside.is-influence {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }

  .page-hero__meta.is-influence {
    height: auto;
  }

  .page-hero__meta-item.is-chip,
  .page-hero__meta-item.is-chip.is-blue-dark,
  .page-hero__meta-item.is-chip.is-blue-base {
    background-color: #0000;
    padding-left: 0;
    padding-right: 0;
  }

  .page-hero__meta-text.is-chip {
    font-size: 4em;
    font-weight: 500;
    line-height: 100%;
  }

  .page-hero__lead-text.is-influence {
    color: var(--white);
    font-size: 3.922em;
    line-height: 125%;
  }

  .page-hero__cta.is-home {
    margin-top: 0;
  }

  .page-hero__cta {
    order: -1;
    flex: none;
    justify-content: center;
    align-items: center;
    height: 11em;
    position: relative;
    overflow: hidden;
  }

  .btn-animate-chars.infleuncercta {
    width: 95%;
    height: 59%;
  }

  /* Influence Day logos: the mobile sizes and spacing. */
  .hero-sponsor-logos-wrapper.inflence-day {
    grid-column-gap: 2.1em;
    grid-row-gap: 2.1em;
  }

  .hero-sponsor-logo.hp.influence {
    height: 3.76em;
  }

  .hero-sponsor-logo.influnve,
  .hero-sponsor-logo.epic-games.influence {
    height: 2.612em;
  }
}

@media screen and (max-width: 767px) {
  /* Keeps the flowing headline to three lines across the landscape-phone range. */
  .page-hero__title {
    font-size: 3.3em;
  }

  .page-hero__meta {
    padding-left: 1em;
    padding-right: 1em;
  }

  .page-hero__lead-text {
    width: 85%;
  }

  .page-hero__heading {
    line-height: 1em;
  }

  .hero-sponsor-logos-wrapper.inflence-day {
    grid-column-gap: 2.2em;
    grid-row-gap: 2.2em;
  }

  .hero-sponsor-logo.influnve {
    height: 3.6em;
  }
}

@media screen and (max-width: 479px) {
  .page-hero {
    margin-top: 7.8em;
  }

  .page-hero__frame {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .page-hero__main {
    padding-bottom: 3em;
    padding-left: 1.5em;
    padding-right: 1.5em;
  }

  .page-hero__title {
    font-size: 1.85em;
    line-height: 130%;
  }

  .page-hero__meta-item {
    height: 8.8em;
  }

  .page-hero__meta-text {
    font-size: 1.8em;
  }

  .page-hero__lead {
    padding: 2.5em 1.5em 1.5em;
  }

  .page-hero__lead-text {
    font-size: 1.908em;
  }

  .page-hero__heading {
    font-size: 2.9em;
  }

  .page-hero__highlight {
    padding-top: .4em;
    padding-bottom: .4em;
    line-height: 0;
  }

  .page-hero__meta-text.is-chip,
  .page-hero__lead-text.is-influence {
    font-size: 1.908em;
  }

  .btn-animate-chars.infleuncercta {
    width: 92%;
    height: 69%;
  }

  .hero-sponsor-logos-wrapper.inflence-day {
    grid-column-gap: 2.9em;
    grid-row-gap: 2.9em;
  }
}
