.hero-section {
  --hero-cut: clamp(40px, 6vw, 86px);
  --hero-scroll-peek: 40px;
  --hero-header-space: var(--header-height);
  --hero-placeholder: url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAAgADADASIAAhEBAxEB/8QAGgABAAIDAQAAAAAAAAAAAAAABgMEAAIFAf/EACYQAAEEAgEDBQADAAAAAAAAAAECAwQRACEFBhJREyIxQZFCcYH/xAAXAQEAAwAAAAAAAAAAAAAAAAACAQME/8QAGxEAAwADAQEAAAAAAAAAAAAAAAECERIhEwP/2gAMAwEAAhEDEQA/AA7DJVVfOX2ohVQA3dZpDR3EAYi4+D6xSnuGt5pqtUYay2GZtRtFNqUDrM45Alj0kppaAP8AcW9W8JETxSJCHEiU0CVov+Hn9r9yHovhmjCfmuuJLik02i/rz+6wevNizz5gPPwy2DrOe83QOsaclDSmz2jDM1rtBxTWyCk0zyIuqrEEB/sogjWF4zoAG86TEg63iqcoqtuWSdUvzHpgUFOKYU2B7brX0ck6UkTWpPapSxHSg+1WhZ8ZKiQR8Hf95ut8kXe/OBxzBK+7wWuSlgg1484ZluWTZy7Ke7/k5yn1XYvFMpImabZ//9k=');
  --hero-placeholder-portrait: radial-gradient(10.9% 12.3% at 76% 44%,#e9fffc7a,#0000),radial-gradient(48.2% 16.3% at 49% 60.2%,#00162e,#0000),radial-gradient(14.8% 9.7% at 68% 50.9%,#bdbdc2,#0000),radial-gradient(18.6% 41.2% at 3.9% 5.7%,#094462e8,#0000),radial-gradient(10.5% 19.6% at 85.2% 43%,#c7dbc5,#0000),radial-gradient(30.8% 21.3% at 52.3% 27.9%,#001e35,#0000),radial-gradient(18.1% 18.1% at 69.7% 58.9%,#001601,#0000),radial-gradient(11.8% 9% at 24.6% 39.2%,#eafffb,#0000),radial-gradient(40.3% 17.8% at 50.3% 26.9%,#000300,#0000),radial-gradient(12.6% 27.8% at 12.1% 51.2%,#d8edd4c9,#0000),radial-gradient(38.2% 13.2% at 44.6% 63.4%,#000,#0000),radial-gradient(24.7% 23.5% at 85.2% 54.9%,#e7f1d09c,#0000),radial-gradient(17.7% 26.2% at 54% 51.1%,#00061f,#0000),radial-gradient(21.8% 35.6% at 1.5% 38.5%,#a1be95,#0000),radial-gradient(23.5% 35.5% at 93.5% 45.4%,#7c9e86,#0000),radial-gradient(30.4% 26.9% at 51.4% 24.8%,#000c1b,#0000),linear-gradient(#063452,#235d74,#c1c6be,#38777b,#357e82,#126572);
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--hero-scroll-peek));
  min-height: calc(100svh - var(--hero-scroll-peek));
  padding: calc(var(--hero-header-space) + var(--space-2xl)) 0 calc(var(--hero-cut) + var(--space-3xl));
  background: url('../../assets/images/backgrounds/hero-1606.webp') center center / cover no-repeat, var(--hero-placeholder) center center / cover no-repeat var(--color-bg-dark);
  color: var(--color-text-light);
  text-align: left;
}

@media (max-aspect-ratio: 9/16) {
  .hero-section {
    background-image: url('../../assets/images/backgrounds/hero-portrait-720.webp'), var(--hero-placeholder-portrait);
  }
}

@supports (background-image: image-set(url('../../assets/images/backgrounds/hero-1606.avif') type('image/avif'))) {
  .hero-section {
    background-image: image-set(url('../../assets/images/backgrounds/hero-1606.avif') type('image/avif'), url('../../assets/images/backgrounds/hero-1606.webp') type('image/webp')), var(--hero-placeholder);
  }

  @media (max-aspect-ratio: 9/16) {
    .hero-section {
      background-image: image-set(url('../../assets/images/backgrounds/hero-portrait-720.avif') type('image/avif'), url('../../assets/images/backgrounds/hero-portrait-720.webp') type('image/webp')), var(--hero-placeholder-portrait);
    }
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-hero);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: calc(var(--hero-cut) + 1px);
  background: var(--color-bg-light);
  clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  animation: hero-entrance var(--duration-reveal) cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-section :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

.hero-welcome {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.hero-title {
  margin: var(--space-md) 0 var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--font-size-5xl);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-text-light);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-title-text {
  display: block;
}

.hero-letter-magenta {
  color: var(--color-primary-accent);
}

.hero-letter-teal {
  color: var(--color-secondary-accent);
}

.hero-separator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.hero-separator::before,
.hero-separator::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.6);
}

.hero-separator-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-accent);
}

.hero-carousel {
  --carousel-control-border: rgba(255, 255, 255, 0.55);
  --carousel-dot-color: rgba(255, 255, 255, 0.8);
  --carousel-dot-active: var(--color-primary-accent);
}

.hero-carousel.is-ready .carousel-viewport {
  overflow: visible;
}

:where(html:not(.js), html.carousel-off) .hero-carousel:not(.is-ready) .carousel-slide + .carousel-slide,
.hero-carousel:where(.is-static):not(.is-ready) .carousel-slide + .carousel-slide {
  display: none;
}

.hero-slide {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

.hero-tagline {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-text-light);
}

.hero-section .hero-slide-btn {
  min-width: 200px;
}

.hero-carousel .carousel-controls {
  justify-content: flex-start;
  margin-top: var(--space-2xl);
  gap: var(--space-xs);
}

.hero-carousel .carousel-controls > * {
  animation: hero-fade-in var(--duration-reveal) ease backwards;
}

.hero-welcome,
.hero-carousel .carousel-viewport {
  transition: opacity var(--transition-reveal);
}

html.i18n-pending .hero-welcome,
html.i18n-pending .hero-carousel .carousel-viewport {
  opacity: 0;
}

.hero-carousel .carousel-btn {
  background-color: rgba(var(--color-navy-rgb), 0.35);
}

@media (hover: hover) {
  .hero-carousel .carousel-btn:hover:not(:disabled) {
    background-color: var(--color-primary-accent-strong);
    border-color: var(--color-primary-accent-strong);
  }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-alt);
  color: var(--color-primary-accent-strong);
  box-shadow: 0 4px 14px rgba(var(--color-navy-rgb), 0.18);
  transform: translate(-50%, 50%);
  transition: background-color var(--transition-base), color var(--transition-base);
}

.hero-scroll:hover {
  color: var(--color-primary-accent-strong);
  text-decoration: none;
}

@media (hover: hover) {
  .hero-scroll:hover {
    background-color: var(--color-primary-accent-strong);
    color: var(--color-white);
  }
}

.hero-section .hero-scroll:focus-visible {
  outline: 3px solid var(--color-primary-accent-strong);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--color-white);
}

@keyframes hero-entrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
  }
}

.intro-section {
  padding: var(--space-4xl) 0;
}

.intro-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(var(--color-secondary-accent-rgb), 0.45);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  color: var(--color-secondary-accent);
  transition: transform var(--transition-slow), border-color var(--transition-base), background-color var(--transition-base);
}

.intro-icon svg {
  width: 30px;
  height: 30px;
  transition: transform var(--transition-slow);
}

.intro-question {
  order: 2;
  max-width: 16.875rem;
  margin: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text-strong);
}

.intro-item::before {
  content: '';
  order: 1;
  display: block;
  width: 24px;
  height: 2px;
  margin-bottom: var(--space-lg);
  background-color: var(--color-secondary-accent);
  transition: width var(--transition-base);
}

@media (hover: hover) {
  .intro-item:hover .intro-icon {
    border-color: var(--color-secondary-accent);
    background-color: var(--color-teal-tint);
    transform: rotate(45deg);
  }

  .intro-item:hover .intro-icon svg {
    transform: rotate(-45deg);
  }

  .intro-item:hover::before {
    width: 48px;
  }
}

.counters-band {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding: var(--space-5xl) 0 var(--space-3xl);
  background: var(--color-bg-dark) none center 30% / cover no-repeat;
  color: var(--color-text-light);
  overflow: hidden;
}

html:not(.js) .counters-band,
.counters-band.is-bg-loaded {
  background-image: url('../../assets/images/backgrounds/counter-1600.webp');
}

@supports (background-image: image-set(url('../../assets/images/backgrounds/counter-1600.avif') type('image/avif'))) {
  html:not(.js) .counters-band,
  .counters-band.is-bg-loaded {
    background-image: image-set(url('../../assets/images/backgrounds/counter-1600.avif') type('image/avif'), url('../../assets/images/backgrounds/counter-1600.webp') type('image/webp'));
  }
}

.counters-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 0, 5, 0.3) 0%, rgba(7, 0, 5, 0.42) 30%, var(--overlay-counter) 55%, rgba(7, 0, 5, 0.66) 100%);
  pointer-events: none;
}

.counters-container {
  position: relative;
  z-index: 1;
}

.counters-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  text-align: center;
}

.counter-item + .counter-item {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.counter-value {
  display: block;
  font-family: var(--font-body);
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-light);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.counter-value::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  margin: var(--space-md) auto;
  background-color: var(--color-primary-accent);
}

.counter-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--font-size-counter-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  min-width: 0;
  overflow-wrap: break-word;
}

@media not all and (min-width: 64em) {
  .intro-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-3xl);
  }

  .counters-band {
    min-height: 460px;
  }

  .counter-item {
    padding: var(--space-md);
  }

  .counter-label {
    letter-spacing: 0.08em;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-tagline {
    font-size: var(--font-size-xl);
  }

  .counter-value {
    font-size: var(--font-size-3xl);
  }
}

@media screen {
  @media not all and (min-width: 48em) {
    .hero-content {
      max-width: none;
      text-align: center;
    }

    .hero-welcome {
      padding-inline-start: 0.16em;
    }

    .hero-welcome,
    .hero-tagline {
      text-wrap: balance;
    }

    .hero-separator {
      justify-content: center;
    }

    .hero-slide {
      align-items: center;
    }

    .hero-carousel .carousel-controls {
      justify-content: center;
    }

    @media (max-width: 575px), (max-height: 500px) and (orientation: landscape) {
      .hero-welcome {
        padding-inline-start: 0.12em;
      }
    }
  }
}

@media (max-width: 575px) {
  .hero-section {
    padding-top: calc(var(--hero-header-space) + var(--space-xl));
  }

  .hero-welcome {
    font-size: var(--font-size-sm);
    letter-spacing: 0.12em;
  }

  .hero-separator {
    margin: var(--space-lg) 0;
  }

  .hero-section .hero-slide-btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-carousel .carousel-controls {
    margin-top: var(--space-xl);
  }

  .intro-section {
    padding: var(--space-3xl) 0;
  }

  .intro-list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-xl);
  }

  .intro-item {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md) var(--space-lg);
    text-align: left;
  }

  .intro-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
  }

  .intro-icon svg {
    width: 26px;
    height: 26px;
  }

  .intro-question {
    flex: 1 1 0%;
    flex-basis: min-content;
    min-width: 0;
    max-width: none;
    font-size: var(--font-size-lg);
  }

  .intro-item::before {
    display: none;
  }

  .counters-band {
    display: block;
    min-height: 0;
    padding: 0 0 var(--space-2xl);
    background-position: center top;
    background-size: 100% auto;
  }

  .counters-band::before {
    content: '';
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, rgba(var(--color-navy-rgb), 0) 55%, rgba(var(--color-navy-rgb), 0.75) 82%, var(--color-bg-dark) 100%);
  }

  .counters-overlay {
    background: linear-gradient(180deg, rgba(7, 0, 5, 0.12) 0%, rgba(7, 0, 5, 0.2) 40%, rgba(7, 0, 5, 0.4) 100%);
  }

  .counters-container {
    margin-top: calc(-1 * var(--space-xl));
  }
}

@media (max-width: 450px) and (max-resolution: 2dppx), (max-width: 575px) and (max-resolution: 1.5dppx) {
  html:not(.js) .counters-band,
  .counters-band.is-bg-loaded {
    background-image: url('../../assets/images/backgrounds/counter-900.webp');
  }

  @supports (background-image: image-set(url('../../assets/images/backgrounds/counter-900.avif') type('image/avif'))) {
    html:not(.js) .counters-band,
    .counters-band.is-bg-loaded {
      background-image: image-set(url('../../assets/images/backgrounds/counter-900.avif') type('image/avif'), url('../../assets/images/backgrounds/counter-900.webp') type('image/webp'));
    }
  }
}

@media not all and (min-width: 36em) {
  .counters-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .counter-item {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs) var(--space-lg);
    padding: var(--space-md) 0;
    text-align: left;
  }

  .counter-item + .counter-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
  }

  .counter-value {
    flex: 0 0 6.5rem;
    font-size: var(--font-size-2xl);
  }

  .counter-value::after {
    display: none;
  }

  .counter-label {
    flex: 1 1 0%;
    flex-basis: min-content;
  }
}

@media (min-width: 1920px) {
  .hero-title {
    font-size: 5rem;
  }

  .hero-content {
    max-width: 860px;
  }

  .counters-band {
    min-height: 640px;
  }
}

@media (max-width: 575px) and (max-height: 700px) {
  .hero-section {
    padding-top: calc(var(--hero-header-space) + var(--space-md));
    padding-bottom: calc(var(--hero-cut) + var(--space-2xl));
  }

  .hero-separator {
    margin: var(--space-md) 0;
  }

  .hero-carousel .carousel-controls {
    margin-top: var(--space-lg);
  }
}

@media (min-width: 768px) and (max-height: 820px) {
  .hero-section {
    padding-top: calc(var(--hero-header-space) + var(--space-xl));
    padding-bottom: calc(var(--hero-cut) + var(--space-2xl));
  }

  .hero-separator {
    margin: var(--space-lg) 0;
  }

  .hero-carousel .carousel-controls {
    margin-top: var(--space-xl);
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding-top: calc(var(--hero-header-space) + var(--space-md));
    padding-bottom: calc(var(--hero-cut) + var(--space-xl));
  }

  .hero-welcome {
    font-size: var(--font-size-sm);
    letter-spacing: 0.12em;
  }

  .hero-title {
    margin: var(--space-sm) 0;
    font-size: var(--font-size-3xl);
  }

  .hero-separator {
    margin: var(--space-md) 0;
  }

  .hero-slide {
    gap: var(--space-md);
  }

  .hero-tagline {
    font-size: var(--font-size-xl);
  }

  .hero-carousel .carousel-controls {
    margin-top: var(--space-lg);
  }
}

@media not all and (min-width: 80em) {
  html:not(.js) .hero-section,
  html.navigation-off .hero-section {
    --hero-header-space: 0px;
  }
}

@media (max-width: 19.9375em) {
  .hero-title {
    font-size: min(var(--font-size-3xl), calc((100vw - 48px) / 4));
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-item:hover .intro-icon,
  .intro-item:hover .intro-icon svg {
    transform: none;
  }
}

@media print {
  .hero-scroll,
  .hero-separator,
  .hero-carousel .carousel-controls {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
    padding: 0 0 var(--space-md);
  }

  .hero-section::after,
  .hero-overlay,
  .counters-overlay,
  .counters-band::before {
    display: none;
  }

  .hero-title {
    font-size: 24pt;
  }

  .hero-carousel {
    margin-top: var(--space-md);
  }

  .hero-carousel .carousel-slide,
  .hero-carousel:not(.is-ready) .carousel-slide + .carousel-slide {
    display: list-item;
    margin-left: 1.25em;
    list-style: disc outside;
  }

  .hero-carousel.is-ready .carousel-slide + .carousel-slide,
  .hero-carousel:not(.is-ready) .carousel-slide + .carousel-slide {
    margin-top: var(--space-xs);
  }

  .hero-tagline {
    font-size: 14pt;
  }

  .counters-band,
  html:not(.js) .counters-band,
  .counters-band.is-bg-loaded {
    min-height: 0;
    padding: var(--space-md) 0;
  }

  .counters-list {
    break-inside: avoid;
  }

  .counter-value {
    font-size: 28pt;
  }
}
