/* Motion — restrained entrance + scroll reveals */
.has-motion .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.has-motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

.has-motion .reveal--fade {
  transform: none;
}

.has-motion .motion-hero-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--hero-delay, 0ms);
  will-change: opacity, transform;
}

.has-motion .is-hero-in .motion-hero-item {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .has-motion .reveal,
  .has-motion .motion-hero-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

/* Technologies — tab change animations */
@keyframes tech-tab-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tech-expertise__main.is-tab-out,
.tech-expertise__side.is-tab-out,
.tech-opensource.is-tab-out {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.tech-expertise__main.is-tab-in,
.tech-expertise__side.is-tab-in,
.tech-opensource.is-tab-in {
  opacity: 1;
  transform: none;
}

.tech-opensource {
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.tech-expertise__main.is-tab-in > *:nth-child(1),
.tech-expertise__side.is-tab-in > *:nth-child(1),
.tech-opensource.is-tab-in > *:nth-child(1) {
  animation: tech-tab-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0s;
}
.tech-expertise__main.is-tab-in > *:nth-child(2),
.tech-expertise__side.is-tab-in > *:nth-child(2),
.tech-opensource.is-tab-in > *:nth-child(2) {
  animation: tech-tab-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.05s;
}
.tech-expertise__main.is-tab-in > *:nth-child(3),
.tech-expertise__side.is-tab-in > *:nth-child(3),
.tech-opensource.is-tab-in > *:nth-child(3) {
  animation: tech-tab-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}
.tech-expertise__main.is-tab-in > *:nth-child(4),
.tech-expertise__side.is-tab-in > *:nth-child(4),
.tech-opensource.is-tab-in > *:nth-child(4) {
  animation: tech-tab-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.15s;
}
.tech-expertise__main.is-tab-in > *:nth-child(5),
.tech-expertise__side.is-tab-in > *:nth-child(5),
.tech-opensource.is-tab-in > *:nth-child(5) {
  animation: tech-tab-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
}
.tech-expertise__main.is-tab-in > *:nth-child(n + 6),
.tech-expertise__side.is-tab-in > *:nth-child(n + 6),
.tech-opensource.is-tab-in > *:nth-child(n + 6) {
  animation: tech-tab-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.25s;
}

.tech-expertise__side.is-tab-in .tech-expertise__item,
.tech-expertise__main.is-tab-in .tech-expertise__feature,
.tech-opensource.is-tab-in .tech-opensource__item {
  animation: tech-tab-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tech-expertise__side.is-tab-in .tech-expertise__item:nth-child(1),
.tech-expertise__main.is-tab-in .tech-expertise__feature:nth-child(1),
.tech-opensource.is-tab-in .tech-opensource__item:nth-child(1) {
  animation-delay: 0.08s;
}
.tech-expertise__side.is-tab-in .tech-expertise__item:nth-child(2),
.tech-expertise__main.is-tab-in .tech-expertise__feature:nth-child(2),
.tech-opensource.is-tab-in .tech-opensource__item:nth-child(2) {
  animation-delay: 0.115s;
}
.tech-expertise__side.is-tab-in .tech-expertise__item:nth-child(3),
.tech-expertise__main.is-tab-in .tech-expertise__feature:nth-child(3),
.tech-opensource.is-tab-in .tech-opensource__item:nth-child(3) {
  animation-delay: 0.15s;
}
.tech-expertise__side.is-tab-in .tech-expertise__item:nth-child(4),
.tech-expertise__main.is-tab-in .tech-expertise__feature:nth-child(4),
.tech-opensource.is-tab-in .tech-opensource__item:nth-child(4) {
  animation-delay: 0.185s;
}
.tech-expertise__side.is-tab-in .tech-expertise__item:nth-child(5),
.tech-expertise__main.is-tab-in .tech-expertise__feature:nth-child(5),
.tech-opensource.is-tab-in .tech-opensource__item:nth-child(5) {
  animation-delay: 0.22s;
}
.tech-expertise__side.is-tab-in .tech-expertise__item:nth-child(n + 6),
.tech-expertise__main.is-tab-in .tech-expertise__feature:nth-child(n + 6),
.tech-opensource.is-tab-in .tech-opensource__item:nth-child(n + 6) {
  animation-delay: 0.255s;
}

@media (prefers-reduced-motion: reduce) {
  .tech-expertise__main,
  .tech-expertise__side,
  .tech-opensource,
  .tech-expertise__tab,
  .tech-expertise__tab-icon {
    transition: none !important;
  }

  .tech-expertise__main.is-tab-out,
  .tech-expertise__side.is-tab-out,
  .tech-opensource.is-tab-out,
  .tech-expertise__main.is-tab-in,
  .tech-expertise__side.is-tab-in,
  .tech-opensource.is-tab-in,
  .tech-expertise__main.is-tab-in > *,
  .tech-expertise__side.is-tab-in > *,
  .tech-opensource.is-tab-in > *,
  .tech-expertise__side.is-tab-in .tech-expertise__item,
  .tech-expertise__main.is-tab-in .tech-expertise__feature,
  .tech-opensource.is-tab-in .tech-opensource__item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
