/* Bound desktop artwork by width. Narrow screens give it a separate grid row. */
.hero {
  position: relative;
  overflow: clip;
  background: linear-gradient(110deg, #f0f7ff 0%, #eaf4fc 48%, #d9edfd 100%);
}
.hero-inner {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  column-gap: clamp(24px, 3vw, 56px);
  row-gap: 20px;
  width: min(1400px, calc(100% - clamp(64px, 8vw, 120px)));
  min-height: clamp(600px, 45vw, 760px);
  padding-block: clamp(40px, 4.5vw, 72px) 24px;
}
.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-block: 12px;
}
.hero-media {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1680px);
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}
.hero-art {
  position: absolute;
  width: max(100%, 1120px);
  max-width: none;
  height: auto;
  right: 0;
  top: 0;
  display: block;
}
.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #325c84;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 1.7;
}
.hero-kicker > i {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px #0868ed10;
}
.hero-kicker > span {
  font-size: 11px;
  letter-spacing: 1px;
  padding-left: 12px;
  margin-left: 3px;
  border-left: 1px solid #8fabc7;
}
.hero h1 {
  font-size: clamp(44px, 4.8vw, 72px);
  line-height: 1.23;
  letter-spacing: -2px;
  font-weight: 760;
  margin-top: 24px;
}
.hero-lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.7;
  font-weight: 500;
  margin-top: 25px;
}
.hero-description {
  max-width: 34em;
  font-size: 15px;
  line-height: 1.95;
  color: #536e89;
  margin-top: 16px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
}
.hero-actions > * {
  min-height: 48px;
}
.hero-footer {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #416382;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 1.5px;
}
.hero-footer > a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 12px;
  letter-spacing: 1px;
}
.hero-footer .icon {
  width: 18px;
  height: 18px;
}
@media (min-width: 1681px) {
  .hero-media {
    width: 100%;
  }
  /* Extend only the outermost background pixels. The central artwork keeps
     its original aspect ratio, while its sky and floor reach both edges. */
  .hero-media::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: calc(1680px * 941 / 1672);
    border-image-source: url("./brand-hero.webp");
    border-image-slice: 0 1;
    border-image-width: 0 max(0px, calc((100% - 1680px) / 2));
    border-image-repeat: stretch;
  }
  .hero-art {
    width: 1680px;
    right: 50%;
    transform: translateX(50%);
  }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
  .hero-actions {
    gap: 10px 18px;
  }
  .hero-actions > .button {
    padding-inline: 20px;
    gap: 16px;
    font-size: 14px;
  }
  .hero-actions > .text-link {
    font-size: 13px;
    gap: 10px;
  }
  .hero-description br {
    display: none;
  }
}
/* Tablets and phones use content-driven rows, so larger text cannot collide
   with the artwork or a fixed footer position. */
@media (max-width: 900px) {
  .hero-inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    width: min(720px, calc(100% - 48px));
    min-height: 0;
    padding-block: 38px 14px;
    row-gap: 8px;
  }
  .hero-content {
    text-align: center;
    width: min(100%, 620px);
    margin-inline: auto;
    padding: 0;
  }
  .hero-kicker,
  .hero-actions {
    justify-content: center;
  }
  .hero h1 {
    font-size: clamp(40px, 6.3vw, 56px);
    letter-spacing: -1.5px;
  }
  .hero-lead {
    font-size: 19px;
    margin-top: 20px;
  }
  .hero-description {
    margin-inline: auto;
    font-size: 15px;
    margin-top: 12px;
  }
  .hero-actions {
    margin-top: 22px;
  }
  .hero-media {
    position: relative;
    inset: auto;
    transform: none;
    width: min(100%, 520px);
    height: auto;
    aspect-ratio: 1.25;
    margin-inline: auto;
    mask-image: linear-gradient(
      180deg,
      transparent,
      #000 12%,
      #000 82%,
      transparent
    );
  }
  .hero-art {
    width: 180%;
    top: -4%;
  }
  .hero-footer {
    font-size: 9px;
    letter-spacing: 1px;
  }
}
@media (max-width: 600px) {
  .hero-inner {
    width: calc(100% - 40px);
    padding-top: 30px;
    row-gap: 4px;
  }
  .hero-content {
    text-align: left;
  }
  .hero-kicker,
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-kicker {
    gap: 8px;
    font-size: 11px;
    letter-spacing: 1px;
  }
  .hero-kicker > span {
    font-size: 10px;
    padding-left: 9px;
    margin-left: 0;
  }
  .hero h1 {
    font-size: clamp(36px, 10.5vw, 54px);
    margin-top: 19px;
    letter-spacing: -1px;
  }
  .hero-lead {
    font-size: clamp(16px, 4.4vw, 19px);
    margin-top: 19px;
  }
  .hero-description {
    font-size: 14px;
    margin-top: 12px;
  }
  .hero-description br {
    display: none;
  }
  .hero-actions {
    margin-top: 22px;
    gap: 8px 20px;
  }
  .hero-actions > .button {
    font-size: 14px;
    padding: 12px 19px;
    gap: 15px;
  }
  .hero-actions > .text-link {
    font-size: 13px;
    gap: 9px;
  }
  .hero-media {
    width: calc(100% + 40px);
    margin-inline: -20px;
    aspect-ratio: 1.26;
    margin-top: 8px;
  }
  .hero-footer {
    justify-content: flex-end;
  }
  .hero-footer > span {
    display: none;
  }
}
@media (max-width: 370px) {
  .hero-inner {
    width: calc(100% - 32px);
  }
  .hero-media {
    width: calc(100% + 32px);
    margin-inline: -16px;
  }
  .hero-actions {
    gap: 6px 12px;
  }
  .hero-actions > .button {
    font-size: 13px;
    padding-inline: 14px;
    gap: 10px;
  }
  .hero-actions > .text-link {
    font-size: 12px;
    gap: 6px;
  }
}
/* A short landscape viewport has room for two columns, not a tall phone stack. */
@media (min-width: 601px) and (max-width: 1100px) and (max-height: 600px) and (orientation: landscape) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    width: calc(100% - 48px);
    min-height: 0;
    padding-block: 26px 12px;
    column-gap: 20px;
    row-gap: 4px;
  }
  .hero-content {
    text-align: left;
    padding: 0;
  }
  .hero-kicker,
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-kicker {
    font-size: 10px;
    gap: 8px;
    letter-spacing: 1px;
  }
  .hero-kicker > span {
    font-size: 9px;
  }
  .hero h1 {
    font-size: clamp(32px, 4.2vw, 44px);
    margin-top: 13px;
    letter-spacing: -1px;
  }
  .hero-lead {
    font-size: 16px;
    margin-top: 14px;
    line-height: 1.65;
  }
  .hero-description {
    font-size: 13px;
    margin-top: 10px;
    line-height: 1.8;
  }
  .hero-description br {
    display: none;
  }
  .hero-actions {
    margin-top: 15px;
    gap: 5px 14px;
  }
  .hero-actions > .button {
    font-size: 13px;
    padding: 10px 15px;
    gap: 10px;
    min-height: 44px;
  }
  .hero-actions > .text-link {
    font-size: 12px;
    gap: 8px;
    min-height: 44px;
  }
  .hero-media {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1.15;
    margin: 0;
    mask-image: linear-gradient(
      180deg,
      transparent,
      #000 12%,
      #000 82%,
      transparent
    );
  }
  .hero-art {
    width: 180%;
    top: -4%;
  }
  .hero-footer {
    display: none;
  }
}
@media (min-width: 601px) and (max-width: 1100px) and (max-height: 450px) and (orientation: landscape) {
  .hero-inner {
    padding-block: 16px 10px;
  }
  .hero h1 {
    margin-top: 10px;
  }
  .hero-lead {
    margin-top: 10px;
    line-height: 1.55;
  }
  .hero-description {
    margin-top: 8px;
    line-height: 1.65;
  }
  .hero-actions {
    margin-top: 10px;
  }
}
