/* Approved oak hero. This stylesheet is loaded by the homepage only. */
body[data-hero="oak"] .site-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: transparent;
}

body[data-hero="oak"] .site-header .site-navigation a { color: #fff; }
body[data-hero="oak"] .site-header .site-navigation a:hover { color: #e6e6e6; }
body[data-hero="oak"] .site-header a:focus-visible {
  outline-color: #fff;
}

body[data-hero="oak"] .hero {
  --hero-fade-height: clamp(128px, 12vw, 172px);
  min-height: 692px;
}
body[data-hero="oak"] .hero .copy {
  padding-top: 202px;
  padding-bottom: calc(var(--hero-fade-height) + 24px);
}
body[data-hero="oak"] .hero::before {
  content: "";
  display: block;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: var(--hero-fade-height);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .12) 20%,
    rgba(255, 255, 255, .48) 55%,
    rgba(255, 255, 255, .86) 82%,
    #fff 100%);
}
body[data-hero="oak"] .hero::after {
  background: radial-gradient(ellipse 125% 145% at 0 0,
    rgba(0, 0, 0, .82) 0%,
    rgba(0, 0, 0, .71) 22%,
    rgba(0, 0, 0, .54) 45%,
    rgba(0, 0, 0, .33) 65%,
    rgba(0, 0, 0, .15) 82%,
    rgba(0, 0, 0, 0) 100%);
}

@media (max-width: 780px) {
  body[data-hero="oak"] .hero .copy { padding-top: 218px; }
}

@media (max-width: 750px) {
  body[data-hero="oak"] .photo { object-position: 35% center; }
  /* Keep white text readable as the wider photograph is cropped on phones. */
  body[data-hero="oak"] .hero::after {
    background: radial-gradient(ellipse 250% 190% at 0 0,
      rgba(0, 0, 0, .82) 0%,
      rgba(0, 0, 0, .71) 22%,
      rgba(0, 0, 0, .54) 45%,
      rgba(0, 0, 0, .33) 65%,
      rgba(0, 0, 0, .15) 82%,
      rgba(0, 0, 0, 0) 100%);
  }
}

/* Approved hero copy and bottom-to-top audience rotation. */
body[data-hero="oak"] .hero h1 .hero-heading-intro {
  display: block;
}
body[data-hero="oak"] .hero h1 .hero-rotation {
  position: relative;
  display: block;
  /* Keep Manrope descenders clear of the rolling viewport's lower edge. */
  height: 1.4em;
  overflow: hidden;
  color: #4F83EE;
  line-height: 1.4;
}
.hero-rotation__word {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  white-space: nowrap;
}
.hero-rotation__word--incoming {
  position: absolute;
  inset: 0;
}
@media print {
  body[data-hero="oak"] .hero h1 .hero-rotation { color: #4F83EE; }
}
