:root {
  /* Hero colors */
  --hero-background-mobile: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6));
  --hero-mobile-halo: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.7) 45%,
    rgba(255, 255, 255, 0.1) 100%
  );
  --hero-logo-shadow: 0 1rem 2rem rgba(255, 255, 255, 0.3);
  --hero-tagline-shadow: 0 0.35rem 0.9rem rgba(255, 255, 255, 0.4);
  --hero-mobile-height: clamp(15rem, 50vh, 50rem);
  --hero-mobile-image-scale: 1.2;
  --hero-mobile-gap: clamp(0.75rem, 2.5vw, 1.25rem);
  --hero-mobile-padding: clamp(5rem, 10vw, 15rem);
  --hero-logo-width-mobile: clamp(18rem, 55vw, 28rem);
  --hero-tagline-font-size-mobile: clamp(1.7rem, 6.2vw, var(--hero-tagline-font-size));

  --hero-tagline-font-size: clamp(2.5rem, 8vw, 3.125rem);
  --hero-tagline-font-size-desktop: clamp(2rem, 3.6vw, 3.125rem);
  --hero-tagline-letter-spacing: 0.2em;
  --hero-tagline-font-weight: 1000;
  --hero-tagline-line-height: 2em;
  --header-offset: clamp(4rem, 8vh, 5.75rem);
  --hero-height: clamp(0px, calc(100vh - (var(--header-offset))), 60rem);
  --tech-hero-padding-bottom: clamp(1.5rem, 5vw, 3.25rem);
  --tech-hero-grid: minmax(0, 1fr) minmax(0, 1.618fr);
  --tech-hero-gap: clamp(0.5rem, 2vw, 3rem);
  --tech-hero-brand-gap: clamp(0.75rem, 2.5vw, 1.6rem);
  --tech-hero-brand-padding: clamp(4rem, 12vh, 8rem) 0 0 clamp(3rem, 5vw, 5.5rem);
  --tech-hero-brand-max-width: min(33.75rem, 46vw);
  --tech-hero-logo-width: clamp(21.875rem, 50vw, 30rem);
  --tech-slider-flip: scaleX(-1);
  --tech-slide-transition: 2000ms ease;
  --tech-slide-transform: translateX(0%) scale(1.1);
  --tech-zoom-animation: heroZoom 10s ease-in-out infinite alternate;
  --tech-zoom-scale-from: 1.1;
  --tech-zoom-scale-to: 1.2;
  --tech-tagline-offset: 0.75rem;
  --tech-tagline-offset-start: 0.875rem;
  --tech-tagline-animation: heroTaglineFade 2s ease forwards;
  --tech-tagline-delay-1: 0.5s;
  --tech-tagline-delay-2: 1.5s;
  --tech-tagline-delay-3: 2.5s;
}

.page-content {
  padding-top: 0;
}

.is-mobile .page-content {
  padding-top: 0;
}

.hero {
  --hero-padding-bottom: var(--tech-hero-padding-bottom);
  padding: 0 0 var(--hero-padding-bottom);
  min-height: var(--hero-height);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero-split {
  display: grid;
  grid-template-columns: var(--tech-hero-grid);
  gap: var(--tech-hero-gap);
  align-items: stretch;
  min-height: var(--hero-height);
  flex: 1;
}

.slider {
  height: 100%;
  min-height: 100%;
  max-height: none;
  --slider-slide-transition: var(--tech-slide-transition);
  min-width: 0;
}

.slider {
  border-radius: 0;
  min-height: inherit;
  clip-path: none;
  -webkit-mask-image: var(--mask-image);
  mask-image: var(--mask-image);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  transform: var(--tech-slider-flip);
}

.slider__content {
  transform: var(--tech-slider-flip);
}

.slider__slide {
  transform: var(--tech-slide-transform);
}

.slider__slide img {
  transform: var(--tech-slide-transform);
  animation: var(--tech-zoom-animation);
  animation-play-state: paused;
  animation-fill-mode: both;
}

.slider video {
  transform: var(--tech-slide-transform);
  animation: var(--tech-zoom-animation);
  animation-play-state: paused;
  animation-fill-mode: both;
}

.hero-brand-card {
  display: grid;
  align-content: start;
  justify-content: start;
  align-items: start;
  justify-items: start;
  background: transparent;
  gap: var(--tech-hero-brand-gap);
  padding: var(--tech-hero-brand-padding);
  max-width: min(var(--tech-hero-brand-max-width), 100%);
  min-width: 0;
}

.hero-logo {
  width: min(100%, var(--tech-hero-logo-width));
  height: auto;
  display: block;
}

.hero-tagline {
  align-items: center;
  font-family: var(--text-font-family-display);
  font-size: var(--hero-tagline-font-size-desktop);
  color: var(--color-primary);
  text-align: left;
  font-weight: var(--hero-tagline-font-weight);
  letter-spacing: var(--hero-tagline-letter-spacing);
  line-height: var(--hero-tagline-line-height);
}

.hero-tagline__break {
  display: block;
}

.hero-tagline span {
  display: block;
  opacity: 0;
  transform: translateY(var(--tech-tagline-offset));
}

.hero-tagline.is-animated span {
  animation: var(--tech-tagline-animation);
}

.hero-tagline.is-animated span:nth-child(1) {
  animation-delay: var(--tech-tagline-delay-1);
}

.hero-tagline.is-animated span:nth-child(2) {
  animation-delay: var(--tech-tagline-delay-2);
}

.hero-tagline.is-animated span:nth-child(3) {
  animation-delay: var(--tech-tagline-delay-3);
}

.is-mobile .hero {
  position: relative;
  isolation: isolate;
  min-height: var(--hero-mobile-height);
  height: auto;
  max-height: none;
  padding-bottom: 0;
  overflow: hidden;
}

.is-mobile .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-background-mobile);
  z-index: 0;
}

.is-mobile .hero-split {
  grid-template-columns: 1fr;
  min-height: var(--hero-mobile-height);
  height: auto;
  max-height: none;
  gap: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.is-mobile .hero-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  transform: none;
  z-index: 1;
  width: 100%;
  max-width: none;
  gap: var(--hero-mobile-gap);
  padding: var(--hero-mobile-padding);
  padding-inline: calc(var(--hero-mobile-padding) / 2);
  background: transparent;
  backdrop-filter: none;
  text-align: center;
  box-sizing: border-box;
}

.is-mobile .hero-brand-card::before {
  content: '';
  position: absolute;
  inset: -1rem 0;
  background: var(--hero-mobile-halo);
  z-index: 0;
  pointer-events: none;
}

.is-mobile .hero-brand-card > * {
  position: relative;
  z-index: 1;
}

.is-mobile .hero-logo {
  width: var(--hero-logo-width-mobile);
  max-width: none;
  height: auto;
  filter: drop-shadow(var(--hero-logo-shadow));
  margin-inline: auto;
}

.is-mobile .hero-tagline {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  text-align: center;
  font-size: var(--hero-tagline-font-size-mobile);
  text-shadow: var(--hero-tagline-shadow);
}

.is-mobile .slider {
  order: 1;
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  min-height: 100%;
  max-height: none;
  background: transparent;
  -webkit-mask-image: none;
  mask-image: none;
  transform: none;
}

.is-mobile .slider__content {
  height: 100%;
  transform: none;
}

.is-mobile .slider__slides {
  height: 100%;
}

.is-mobile .slider__slide {
  height: 100%;
  width: 100%;
}

.is-mobile .slider__slide img,
.is-mobile .slider__slide video {
  object-position: center;
  filter: blur(0.12rem);
  transform: scale(var(--hero-mobile-image-scale));
  transform-origin: center;
  width: auto;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.is-mobile .hero .slider-controls {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-tagline span {
    opacity: 1;
    transform: none;
  }

  .hero-tagline.is-animated span {
    animation: none;
  }
}

.slider__slide.is-active img {
  animation-play-state: running;
}

.slider__slide.is-active video {
  animation-play-state: running;
}

@keyframes heroTaglineFade {
  from {
    opacity: 0;
    transform: translateY(var(--tech-tagline-offset-start));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(var(--tech-zoom-scale-from));
  }
  to {
    transform: scale(var(--tech-zoom-scale-to));
  }
}

