.hero-section {
  position: relative;
  width: min(100%, var(--max));
  height: 520px;
  margin: 0 auto;
  overflow: hidden;
  background: #00020e;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-office-image {
  position: absolute;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 2, 14, 0.96) 0%, rgba(0, 2, 14, 0.74) 34%, rgba(0, 2, 14, 0.28) 66%, rgba(0, 2, 14, 0.06) 100%),
    linear-gradient(180deg, rgba(0, 2, 14, 0.08) 0%, rgba(0, 2, 14, 0.2) 100%);
}

.hero-office-image {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #07101f;
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-office-image.is-active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 80px;
}

.hero-copy {
  display: none;
  max-width: 460px;
  color: var(--white);
  animation: hero-fade 620ms ease both;
}

.hero-copy.is-active {
  display: block;
}

@keyframes hero-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  color: var(--orange);
  font-weight: var(--font-bold);
  font-size: var(--font-caption);
}

.hero-copy h1 {
  width: 430px;
  margin: 18px 0;
  color: var(--white);
  font-size: var(--font-h1);
  line-height: var(--leading-tight);
  font-weight: var(--font-regular);
}

.hero-copy h1 strong {
  display: block;
  font-weight: var(--font-bold);
}

.hero-copy p {
  width: 345px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-body);
  line-height: var(--leading-body);
  font-weight: var(--font-regular);
}

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
}

.hero-prev {
  left: 64px;
}

.hero-next {
  right: 64px;
}

.hero-next img {
  transform: rotate(180deg);
}

.stats-band {
  width: min(100%, var(--max));
  height: 145px;
  margin: 0 auto;
  background: #00020e;
  color: var(--white);
  padding: 0;
  display: flex;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 230px));
  justify-content: center;
  gap: 44px;
  width: min(100%, 1120px);
}

.stats-grid article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 72px;
  padding: 0 12px;
  background: #00020e;
}

.stat-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.stats-grid article strong {
  display: block;
  color: var(--orange);
  font-size: var(--font-h3);
  line-height: 1;
  font-weight: var(--font-bold);
}

.stats-grid article span {
  display: block;
  margin-top: 5px;
  font-size: var(--font-caption);
  font-weight: var(--font-bold);
  line-height: 1.2;
}

@media (max-width: 1200px) {
  .hero-content {
    padding-left: 56px;
  }
}

@media (max-width: 900px) {
  .hero-section {
    height: auto;
    min-height: 760px;
    overflow: hidden;
  }

  .hero-media {
    position: relative;
    height: 300px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(0, 2, 14, 0) 55%, #00020e 100%);
  }

  .hero-office-image {
    background-size: cover;
    background-position: center top !important;
  }

  .hero-content {
    height: auto;
    min-height: 460px;
    justify-content: flex-start;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 0;
    padding-bottom: 72px;
    margin-top: 0;
  }

  .hero-copy {
    max-width: 520px;
  }

  .hero-copy h1 {
    width: min(100%, 430px);
    margin-top: 0;
    font-size: var(--font-h2);
  }

  .hero-copy p {
    width: min(100%, 360px);
  }

  .hero-prev,
  .hero-next {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
  }

  .stats-band {
    height: auto;
    padding: 0;
  }

  .stats-grid article {
    justify-content: center;
    text-align: center;
    min-height: 86px;
    padding: 0 24px;
  }

  .stats-grid article:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 560px) {
  .hero-section {
    min-height: 730px;
  }

  .hero-media {
    height: 260px;
  }

  .hero-content {
    min-height: 470px;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 0;
    padding-bottom: 66px;
    margin-top: 0;
  }

  .hero-copy h1 {
    width: 100%;
    font-size: 2.5rem;
  }

  .hero-copy p {
    width: 100%;
  }

  .stats-grid article {
    gap: 10px;
    min-height: 78px;
    padding: 0 16px;
  }

  .stat-icon {
    width: 28px;
    height: 28px;
  }

  .stats-grid article strong {
    font-size: 1.25rem;
  }

  .stats-grid article span {
    font-size: 0.625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-office-image {
    transition: none;
  }

  .hero-copy {
    animation: none;
  }
}
