.avega-home-intro-pending body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #070b10;
  animation: avega-intro-failsafe 12s step-end both;
}

.avega-intro-active,
.avega-intro-active body {
  overflow: hidden !important;
}

.avega-intro-active .header .brand {
  opacity: 0;
}

.avega-v2-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  background: #060709;
}

.avega-v2-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1000px, 150vw);
  height: 420px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(227, 6, 19, 0.55),
    rgba(42, 63, 155, 0.18) 45%,
    transparent 68%
  );
  filter: blur(12px);
  transform: translate(-50%, -50%);
}

.avega-v2-clean {
  position: absolute;
  inset: 0;
  background: #ffffff;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.avega-v2-drops {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.avega-v2-squeegee {
  position: absolute;
  top: -10%;
  left: 0;
  display: flex;
  gap: 4px;
  width: 22px;
  height: 120%;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-60px) skewX(-14deg);
}

.avega-v2-squeegee i {
  flex: 1;
  border-radius: 2px;
}

.avega-v2-squeegee i:first-child {
  background: #2a3f9b;
  box-shadow: 0 0 16px rgba(60, 90, 220, 0.9);
}

.avega-v2-squeegee i:last-child {
  background: #e30613;
  box-shadow: 0 0 16px rgba(255, 30, 40, 0.9);
}

.avega-v2-squeegee::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  bottom: 0;
  width: 180px;
  background: linear-gradient(90deg, transparent, rgba(170, 205, 255, 0.35));
}

.avega-v2-stage {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.avega-v2-mark {
  --reveal: -20%;
  --sheen: 150%;
  --day-reveal: -1px;
  position: relative;
  width: min(58vw, 600px);
  clip-path: inset(50% -15% 50% -15%);
  will-change: transform;
}

.avega-v2-mark-in {
  position: relative;
}

.avega-v2-logo {
  display: block;
  width: 100%;
  height: auto;
}

.avega-v2-logo-night {
  filter: saturate(1.18) brightness(1.12)
    drop-shadow(0 0 18px rgba(255, 30, 40, 0.42));
  mask-image: linear-gradient(
    100deg,
    #000 calc(var(--reveal) - 6%),
    transparent calc(var(--reveal) + 6%)
  );
  -webkit-mask-image: linear-gradient(
    100deg,
    #000 calc(var(--reveal) - 6%),
    transparent calc(var(--reveal) + 6%)
  );
}

.avega-v2-logo-day,
.avega-v2-logo-sheen {
  position: absolute;
  inset: 0;
}

.avega-v2-logo-day {
  mask-image: linear-gradient(
    90deg,
    #000 var(--day-reveal),
    transparent var(--day-reveal)
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 var(--day-reveal),
    transparent var(--day-reveal)
  );
}

.avega-v2-logo-sheen {
  opacity: 0.72;
  filter: brightness(0) invert(1);
  mask-image: linear-gradient(
    100deg,
    transparent calc(var(--reveal) - 5%),
    #000 var(--reveal),
    transparent calc(var(--reveal) + 5%)
  );
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent calc(var(--reveal) - 5%),
    #000 var(--reveal),
    transparent calc(var(--reveal) + 5%)
  );
}

.avega-v2-slits {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1200px, 96vw);
  height: 0;
  transform: translate(-50%, -50%);
}

.avega-v2-slit {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 2px;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    #4d68ff 18%,
    #ffffff 50%,
    #ff2b33 82%,
    transparent
  );
  box-shadow:
    0 0 14px 2px rgba(255, 40, 50, 0.6),
    0 0 40px 6px rgba(77, 104, 255, 0.3);
  transform: scaleX(0);
}

.avega-v2-slogan {
  position: absolute;
  top: calc(50% + min(58vw, 600px) * 0.22);
  right: 0;
  left: 0;
  padding-left: 0.5em;
  color: #d9dce3;
  font: 600 clamp(11px, 1.6vw, 15px)/1.2 Arial, sans-serif;
  letter-spacing: 0.5em;
  text-align: center;
}

.avega-v2-slogan span {
  display: inline-block;
  opacity: 0;
  white-space: pre;
}

@media (max-width: 760px) {
  .avega-v2-mark {
    width: min(78vw, 430px);
  }

  .avega-v2-slogan {
    top: calc(50% + min(78vw, 430px) * 0.25);
    max-width: 92vw;
    margin: 0 auto;
    font-size: 10px;
    letter-spacing: 0.28em;
  }

}

.avega-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #070b10;
  isolation: isolate;
  animation: avega-intro-screen 2.8s cubic-bezier(0.76, 0, 0.24, 1) both;
}

.avega-intro-mark {
  position: relative;
  display: grid;
  width: min(56vw, 520px);
  place-items: center;
}

.avega-intro-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.42));
  animation: avega-intro-logo 2.25s cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.avega-intro-sparks {
  position: absolute;
  z-index: 1;
  width: 2px;
  height: 2px;
}

.avega-intro-sparks::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 28px 14px rgba(255, 255, 255, 0.34),
    0 0 88px 38px rgba(227, 29, 46, 0.2);
  transform: translate(-50%, -50%);
  animation: avega-intro-spark-core 1.45s ease-out 160ms both;
}

.avega-intro-sparks i {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  opacity: 0;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.75);
  animation: avega-intro-spark 1.65s cubic-bezier(0.2, 0.8, 0.2, 1) 180ms both;
}

.avega-intro-sparks i:nth-child(3n + 1) {
  background: #ed1c2e;
}

.avega-intro-sparks i:nth-child(3n + 2) {
  background: #4452a4;
}

.avega-intro-sparks i:nth-child(2n) {
  height: 12px;
  animation-delay: 260ms;
}

.avega-intro-sparks i:nth-child(3n) {
  animation-delay: 340ms;
}

@keyframes avega-intro-screen {
  0%,
  72% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes avega-intro-failsafe {
  0%,
  99% {
    visibility: visible;
  }

  100% {
    visibility: hidden;
  }
}

@keyframes avega-intro-logo {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  28%,
  76% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.025);
  }
}

@keyframes avega-intro-spark-core {
  0%,
  12% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
  }

  34% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@keyframes avega-intro-spark {
  0%,
  12% {
    opacity: 0;
    transform: translate(0, 0) rotate(var(--r)) scaleY(0.2);
  }

  28% {
    opacity: 0.96;
  }

  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scaleY(0.72);
  }
}

.immersive-home .scroll-film .cinema-shade {
  background: rgba(5, 10, 14, 0.14) !important;
}

.immersive-home .scroll-film .cinema-video {
  transform-origin: 62% 48%;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms ease;
}

.immersive-home .scroll-film.scroll-scene-0 .cinema-video {
  animation: iz1-cinematic-open 2.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  filter: brightness(0.93) contrast(1.1) saturate(0.9);
  transform: translateZ(0) scale(1.025);
}

.immersive-home .scroll-film .cinema-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  box-shadow:
    inset 0 0 150px rgba(2, 6, 9, 0.3),
    inset 0 -80px 110px rgba(2, 6, 9, 0.18);
}

.immersive-home .scroll-film.scroll-scene-0 .cinema-stage::after {
  animation: iz1-cinematic-vignette 2.4s ease-out both;
}

@keyframes iz1-cinematic-open {
  0% {
    filter: brightness(0.58) contrast(1.18) saturate(0.68);
    transform: translateZ(0) scale(1.105);
  }

  42% {
    filter: brightness(0.78) contrast(1.14) saturate(0.8);
  }

  100% {
    filter: brightness(0.93) contrast(1.1) saturate(0.9);
    transform: translateZ(0) scale(1.025);
  }
}

@keyframes iz1-cinematic-vignette {
  0% {
    opacity: 0.86;
  }

  100% {
    opacity: 0.52;
  }
}

.immersive-home .scroll-film .journey-copy,
.immersive-home .scroll-film .journey-section-3 .journey-copy,
.immersive-home .scroll-film .journey-section:nth-of-type(2n) .journey-copy,
.immersive-home .scroll-film .journey-section:nth-of-type(odd) .journey-copy {
  position: fixed !important;
  z-index: 4;
  width: fit-content !important;
  max-width: min(680px, 54vw) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

.immersive-home .scroll-film .journey-section {
  overflow: visible !important;
}

.immersive-home .scroll-film .journey-copy::before,
.immersive-home .scroll-film .journey-copy::after,
.immersive-home .scroll-film .journey-copy .eyebrow {
  display: none !important;
}

.immersive-home .scroll-film .journey-copy h1,
.immersive-home .scroll-film .journey-copy h2,
.immersive-home .scroll-film .journey-section-1 .journey-copy h2,
.immersive-home .scroll-film .journey-section-2 .journey-copy h2 {
  max-width: 11ch !important;
  margin-top: 0 !important;
  font-size: clamp(64px, 6.25vw, 96px) !important;
  font-weight: 800 !important;
  line-height: 0.92 !important;
  letter-spacing: -0.04em !important;
  text-wrap: balance;
  white-space: nowrap;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.32) !important;
}

.immersive-home .scroll-film .journey-copy h1 br,
.immersive-home .scroll-film .journey-copy h2 br {
  display: block !important;
}

.immersive-home .scroll-film .journey-word-mask {
  display: inline-block;
  overflow: clip;
  padding: 0.08em 0 0.12em;
  margin: -0.08em 0 -0.12em;
  perspective: 600px;
  vertical-align: bottom;
}

.immersive-home .scroll-film .journey-word {
  display: block;
  transform-origin: 50% 100%;
  will-change: transform, opacity, filter;
}

.immersive-home .scroll-film .journey-description,
.immersive-home .scroll-film .journey-section-1 .journey-description {
  max-width: 34ch;
  margin-top: 20px !important;
  font-size: 14px !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88) !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45) !important;
}

@media (min-width: 761px) {
  .immersive-home .scroll-film .journey-section-0 .journey-copy {
    inset: auto auto 8vh 6vw !important;
    text-align: left !important;
  }

  .immersive-home .scroll-film .journey-section-1 .journey-copy {
    inset: 18vh 8vw auto auto !important;
    text-align: right !important;
  }

  .immersive-home .scroll-film .journey-section-2 .journey-copy {
    inset: 22vh auto auto 6vw !important;
    text-align: left !important;
  }

  .immersive-home .scroll-film .journey-section-3 .journey-copy {
    inset: 18vh 8vw auto auto !important;
    text-align: right !important;
  }
}

@media (max-width: 760px) {
  .avega-intro-mark {
    width: min(74vw, 360px);
  }

  .immersive-home .scroll-film .cinema-shade {
    background: rgba(5, 10, 14, 0.18) !important;
  }

  .immersive-home .scroll-film .journey-copy,
  .immersive-home .scroll-film .journey-section-2 .journey-copy,
  .immersive-home .scroll-film .journey-section-3 .journey-copy,
  .immersive-home .scroll-film .journey-section.journey-section-1 .journey-copy,
  .immersive-home .scroll-film .journey-section:nth-of-type(2n) .journey-copy,
  .immersive-home .scroll-film .journey-section:nth-of-type(odd) .journey-copy {
    position: fixed !important;
    width: fit-content !important;
    max-width: calc(100vw - 40px) !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .immersive-home .scroll-film .journey-section-0 .journey-copy {
    inset: auto auto 8vh 20px !important;
    text-align: left !important;
  }

  .immersive-home .scroll-film .journey-section-1 .journey-copy {
    inset: 108px 20px auto auto !important;
    text-align: right !important;
  }

  .immersive-home .scroll-film .journey-section-2 .journey-copy {
    inset: 108px auto auto 20px !important;
    text-align: left !important;
  }

  .immersive-home .scroll-film .journey-section-3 .journey-copy {
    inset: 108px 20px auto auto !important;
    text-align: right !important;
  }

  .immersive-home .scroll-film .journey-copy h1,
  .immersive-home .scroll-film .journey-copy h2,
  .immersive-home .scroll-film .journey-section-1 .journey-copy h2,
  .immersive-home .scroll-film .journey-section-2 .journey-copy h2 {
    max-width: 10ch !important;
    font-size: clamp(44px, 12.8vw, 56px) !important;
    line-height: 0.94 !important;
    letter-spacing: -0.04em !important;
  }

  .immersive-home .scroll-film .journey-description {
    display: none !important;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .immersive-home .scroll-film .journey-copy h1,
  .immersive-home .scroll-film .journey-copy h2,
  .immersive-home .scroll-film .journey-section-1 .journey-copy h2,
  .immersive-home .scroll-film .journey-section-2 .journey-copy h2 {
    font-size: clamp(42px, 6vw, 62px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avega-intro {
    animation: avega-intro-screen 1.2s ease-out both;
  }

  .avega-intro-logo {
    opacity: 1;
    animation: none;
  }

  .avega-intro-sparks {
    display: none;
  }

  .immersive-home .scroll-film.scroll-scene-0 .cinema-video,
  .immersive-home .scroll-film.scroll-scene-0 .cinema-stage::after {
    animation: none !important;
  }

  .immersive-home .scroll-film .journey-copy,
  .immersive-home .scroll-film .journey-word {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
  }

  .immersive-home .scroll-film .journey-copy {
    position: relative !important;
    inset: auto !important;
  }

  .immersive-home .scroll-film .journey-section-0 .journey-copy,
  .immersive-home .scroll-film .journey-section-2 .journey-copy {
    margin: auto auto auto 0 !important;
  }

  .immersive-home .scroll-film .journey-section-1 .journey-copy,
  .immersive-home .scroll-film .journey-section-3 .journey-copy {
    margin: auto 0 auto auto !important;
  }
}
