:root {
  --ease-out-soft: cubic-bezier(.16, .84, .44, 1);
  --ease-out-back: cubic-bezier(.22, 1.04, .36, 1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html:not(.js) [data-reveal],
html:not(.js) .story__milestone {
  opacity: 1 !important;
  transform: none !important;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out-soft), transform .85s var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.header {
  animation: fadeDown .9s var(--ease-out-soft) .1s both;
}

.hero__rail {
  animation: fadeIn 1s var(--ease-out-soft) .5s both;
}

.hero__arrows,
.hero__copy {
  animation: fadeIn 1s var(--ease-out-soft) .8s both;
}

.hero__slide {
  transition: opacity .7s var(--ease-out-soft);
}

.hero__slide.active .hero__wordmark {
  animation: wordmarkIn 1.1s var(--ease-out-soft) both;
}

.hero__slide.active .hero__badge {
  animation: fadeUp .9s var(--ease-out-soft) 1s both;
}

.hero__slide.active .hero__divider {
  animation: lineIn .9s var(--ease-out-soft) 1.15s both;
  transform-origin: left center;
}

.hero__slide.active .hero__description {
  animation: fadeUp .9s var(--ease-out-soft) 1.3s both;
}

.hero__slide.active .hero__actions {
  animation: fadeUp .9s var(--ease-out-soft) 1.45s both;
}

.hero__slide.active .hero__product-img {
  animation: productIn 1.3s var(--ease-out-back) 2.6s both;
}

.products__grid [data-reveal]:nth-child(1) { --reveal-delay: 0s; }
.products__grid [data-reveal]:nth-child(2) { --reveal-delay: .09s; }
.products__grid [data-reveal]:nth-child(3) { --reveal-delay: .18s; }
.products__grid [data-reveal]:nth-child(4) { --reveal-delay: .27s; }
.products__grid [data-reveal]:nth-child(5) { --reveal-delay: 0s; }
.products__grid [data-reveal]:nth-child(6) { --reveal-delay: .09s; }
.products__grid [data-reveal]:nth-child(7) { --reveal-delay: .18s; }
.products__grid [data-reveal]:nth-child(8) { --reveal-delay: .27s; }

.story__milestone {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out-soft), transform .8s var(--ease-out-soft);
}

.story__content.revealed .story__milestone {
  opacity: 1;
  transform: translateY(0);
}

.story__content.revealed .story__milestone:nth-child(1) { transition-delay: .15s; }
.story__content.revealed .story__milestone:nth-child(2) { transition-delay: .28s; }
.story__content.revealed .story__milestone:nth-child(3) { transition-delay: .41s; }

.about__stats.revealed .about__stat {
  animation: fadeUp .9s var(--ease-out-soft) both;
}

.about__stats.revealed .about__stat:nth-child(1) { animation-delay: .1s; }
.about__stats.revealed .about__stat:nth-child(2) { animation-delay: .24s; }
.about__stats.revealed .about__stat:nth-child(3) { animation-delay: .38s; }

.loading-state {
  animation: pulse 1.6s ease-in-out infinite;
}

.promo-banner {
  animation: bannerIn 1s var(--ease-out-soft) both;
}

.catalog__grid [data-reveal]:nth-child(4n+1) { --reveal-delay: 0s; }
.catalog__grid [data-reveal]:nth-child(4n+2) { --reveal-delay: .08s; }
.catalog__grid [data-reveal]:nth-child(4n+3) { --reveal-delay: .16s; }
.catalog__grid [data-reveal]:nth-child(4n+4) { --reveal-delay: .24s; }

.related__grid [data-reveal]:nth-child(4n+1) { --reveal-delay: 0s; }
.related__grid [data-reveal]:nth-child(4n+2) { --reveal-delay: .08s; }
.related__grid [data-reveal]:nth-child(4n+3) { --reveal-delay: .16s; }
.related__grid [data-reveal]:nth-child(4n+4) { --reveal-delay: .24s; }

.catalog__sidebar {
  animation: fadeUp .9s var(--ease-out-soft) .15s both;
}

.product-card,
.catalog__card,
.values__card,
.sectors__card,
.related__card {
  transition: border-color .35s var(--ease-out-soft), transform .35s var(--ease-out-soft), box-shadow .35s var(--ease-out-soft);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wordmarkIn {
  0% { opacity: 0; transform: scale(1.1); }
  100% { opacity: .9; transform: scale(1); }
}

@keyframes productIn {
  0% { opacity: 0; transform: translateY(38px) scale(.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lineIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes bannerIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal],
  .story__milestone {
    opacity: 1 !important;
    transform: none !important;
  }
}
