:root {
  --nav-height: 80px;
}

header {
  height: var(--nav-height);
  margin-bottom: calc(-1 * var(--nav-height));
}

header .nav {
  height: 100%;
}

header.on-hero {
  color: white;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  box-shadow: none;
}

header.on-hero .brand {
  text-shadow: 0 1px 8px #091b36;
}

header.on-hero .mobile-cta,
header.on-hero .menu-toggle {
  background: #132d4ae8;
  color: white;
  border-color: #a6cae480;
}

:is(main,.glass-content)>section.brand-hero {
  display: grid;
  align-items: end;
  isolation: isolate;
  min-height: 100svh;
  padding: var(--nav-height) 26px clamp(72px, 9svh, 108px);
  border-top: 3px solid #4597ce;
  background: #112c4e;
  color: white;
}

.brand-hero-image,
.brand-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brand-hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.brand-hero::after {
  content: '';
  z-index: -1;
  background: linear-gradient(180deg, #0518312b, transparent 28%, transparent 49%, #07172f30 63%, #08182eb3 100%);
}

.brand-hero-title {
  text-align: center;
  text-shadow: 0 2px 16px #07172fb0, 0 1px 4px #07172f9c;
}

.brand-hero h1 {
  margin-bottom: .12em;
  font-size: clamp(1.5rem, 6.15vw, 7rem);
  font-weight: 650;
  letter-spacing: -.048em;
  line-height: 1;
  white-space: nowrap;
}

.brand-hero-title p {
  margin: 0 auto;
  font-size: clamp(1.15rem, 2.85vw, 3.65rem);
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.1;
}

:is(main,.glass-content)>section.intro-section {
  text-align: center;
}

.intro-section p {
  margin-inline: auto;
  color: #405b6b;
}

.intro-section .actions {
  justify-content: center;
}

@media (max-width: 1080px) {
  header.on-hero .links.is-open {
    color: var(--ink);
  }
}

@media (max-width: 800px) {
  :root {
    --nav-height: 68px;
  }

  :is(main,.glass-content)>section.brand-hero {
    padding-bottom: 78px;
  }

  .brand-hero-image {
    object-position: 49% center;
  }

  .brand-hero h1 {
    font-size: clamp(1.45rem, 7.15vw, 3.5rem);
  }

  .brand-hero-title p {
    font-size: clamp(1.05rem, 3.7vw, 1.9rem);
  }
}

header .nav {
  justify-content: flex-end;
}

.video-room {
  display: none;
}

header.on-hero .video-room {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 5px;
  border-radius: 30px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}


@media (max-width: 800px) {
  :is(main,.glass-content)>section.brand-hero {
    padding-inline: 12px;
  }
}

header.on-hero :is(.links .btn, .video-room, .mobile-cta) {
  justify-content: center;
  align-items: center;
  width: 118px;
  height: 42px;
  white-space: nowrap;
  padding: 0 10px;
  border: 1px solid #64b4ff;
  border-radius: 30px;
  background: linear-gradient(180deg, #2494ff, #0068d5 36%, #005bc2);
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff50, 0 4px 14px #07183140;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 1080px) {
  header.on-hero .nav :is(.video-room, .mobile-cta) {
    display: inline-flex;
    width: 100px;
    height: 39px;
    font-size: 12px;
  }
}

/* Soft title backing and author rules. */
.brand-hero-title {
  position: relative;
  isolation: isolate;
}
.brand-hero-title::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -36% 0 -38%;
  margin-inline: auto;
  width: min(100%, 78rem);
  background: radial-gradient(ellipse at center, #0b2b57f0 0%, #0c305fd6 34%, #10376374 57%, transparent 76%);
  pointer-events: none;
}
.brand-hero-title p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 2vw, 25px);
}
.brand-hero-title p::before,
.brand-hero-title p::after {
  content: '';
  width: clamp(18px, 10vw, 130px);
  height: 1px;
  background: #ffffffc7;
}

/* Approved original-color hero. */
.brand-hero::after { background: none; }
:is(main,.glass-content)>section.brand-hero { padding-bottom: clamp(38px, 8.4svh, 120px); }
.brand-hero-title::before { inset: -43% 0 -42%; width: min(100%, 85vw); background: radial-gradient(ellipse closest-side at center, #0b2b57f2 0%, #0c305fcf 43%, #10376352 75%, #10376300 100%); }
.brand-hero h1 { font-size: clamp(1.45rem, 5.5vw, 7rem); }
@media (max-width: 800px) { .brand-hero h1 { font-size: clamp(1.45rem, 7.15vw, 3.5rem); } .brand-hero-title::before { width: 100%; } }

:is(main,.glass-content)>section.brand-hero .brand-hero-image { object-position: center bottom; }
