/* 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%;
  }
  .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;
  }
}

/* Every slide extends its own edge pixels on wide screens, without stretching
   the central artwork. Container units keep all three aspect ratios filled. */
.hero-media {
  container-type: size;
  overflow: clip;
  pointer-events: auto;
  touch-action: pan-y;
  mask-image: none;
}
.hero-media::before { content: none; }
.hero-slides {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-slide {
  --image-ratio: 0.375;
  --art-width: max(min(100cqw, 1680px), 1120px, calc(100cqh / var(--image-ratio)));
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero-slide-brand {
  --image-ratio: 0.562799;
  --art-source: url("./brand-hero.webp");
}
.hero-slide-brain { --art-source: url("./enterprise-brain-banner.webp"); }
.hero-slide-flow { --art-source: url("./enterprise-flow-banner.webp"); }
.hero-slide.is-active { opacity: 1; }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--art-width) * var(--image-ratio));
  border-image-source: var(--art-source);
  border-image-slice: 0 1;
  border-image-width: 0 max(0px, calc((100cqw - var(--art-width)) / 2));
  border-image-repeat: stretch;
}
.hero-slide .hero-art {
  width: var(--art-width);
  height: auto;
  right: max(0px, calc((100cqw - var(--art-width)) / 2));
  top: 0;
  transform: none;
}
.hero-carousel-controls,
.hero-carousel-dots {
  position: absolute;
  right: max(28px, calc((100% - 1400px) / 2));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-carousel-controls { bottom: 132px; }
.hero-carousel-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffffb8;
  border-radius: 50%;
  background: #ffffffd9;
  color: #173455;
  box-shadow: 0 6px 18px #1a4f8624;
  transition: background 0.2s, color 0.2s;
}
.hero-carousel-button:hover,
.hero-carousel-button:focus-visible { background: #fff; color: var(--blue); }
.hero-carousel-button .icon { width: 16px; height: 16px; }
.hero-carousel-toggle { font-size: 14px; font-weight: 700; }
.hero-carousel-dots { bottom: 100px; }
.hero-carousel-dot {
  width: 28px;
  height: 24px;
  padding: 10px 0;
  background: transparent;
}
.hero-carousel-dot::after {
  content: "";
  display: block;
  height: 4px;
  border-radius: 99px;
  background: #ffffffcf;
  box-shadow: 0 1px 5px #17477633;
}
.hero-carousel-dot.is-active::after { background: #ed8e42; }
@media (max-width: 900px), (min-width: 601px) and (max-width: 1100px) and (max-height: 600px) and (orientation: landscape) {
  .hero-slide { --art-width: max(180cqw, calc(104cqh / var(--image-ratio))); }
  .hero-slide .hero-art { top: -4cqh; }
  .hero-slides { mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent); }
  .hero-carousel-controls { right: 20px; bottom: 45px; }
  .hero-carousel-dots { right: 32px; bottom: 12px; }
  .hero-carousel-button { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-carousel-button { transition: none; }
}
