/* Homepage scroll motion — enterprise cinematic, not carnival. */

.scroll-progress {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 80;
  pointer-events: none;
  background: transparent;
}
.theme-tech.is-home .scroll-progress,
body:has(.article-page) .scroll-progress,
body:has(.catalog-page) .scroll-progress { display: block; }
.theme-tech .scroll-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), #60a5fa 55%, #93c5fd);
  box-shadow: 0 0 14px rgba(37, 99, 235, .55);
  will-change: transform;
}

.js .theme-tech.is-home .hero-core,
.js .theme-tech.is-home .hero:not(.hero-core),
.js .theme-tech.is-home .block,
.js .theme-tech.is-home .mid-figure,
.js .theme-tech.is-home .carousel-mid,
.js .theme-tech.is-home .site-footer {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(10px);
  transition:
    opacity .95s cubic-bezier(.16, 1, .3, 1),
    transform .95s cubic-bezier(.16, 1, .3, 1),
    filter .95s cubic-bezier(.16, 1, .3, 1);
}
.js .theme-tech.is-home .hero-core.is-in,
.js .theme-tech.is-home .hero:not(.hero-core).is-in,
.js .theme-tech.is-home .block.is-in,
.js .theme-tech.is-home .mid-figure.is-in,
.js .theme-tech.is-home .carousel-mid.is-in,
.js .theme-tech.is-home .site-footer.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.js .theme-tech.is-home .block-head h2 span::after {
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .85s .18s cubic-bezier(.16, 1, .3, 1);
}
.js .theme-tech.is-home .block.is-in .block-head h2 span::after { transform: scaleX(1); }
.js .theme-tech.is-home .block-en {
  opacity: 0;
  letter-spacing: .5em;
  transform: translateY(10px);
  transition: opacity .8s .28s, transform .8s .28s, letter-spacing .9s .28s;
}
.js .theme-tech.is-home .block.is-in .block-en {
  opacity: 1;
  transform: none;
  letter-spacing: .28em;
}

.js .theme-tech.is-home .card {
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity .7s cubic-bezier(.16, 1, .3, 1),
    transform .7s cubic-bezier(.16, 1, .3, 1),
    box-shadow .35s ease;
}
.js .theme-tech.is-home .block.is-in .card { opacity: 1; transform: none; }
.js .theme-tech.is-home .block.is-in .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(37, 99, 235, .16);
}
.js .theme-tech.is-home .block.is-in .card:nth-child(1) { transition-delay: .04s; }
.js .theme-tech.is-home .block.is-in .card:nth-child(2) { transition-delay: .12s; }
.js .theme-tech.is-home .block.is-in .card:nth-child(3) { transition-delay: .2s; }
.js .theme-tech.is-home .block.is-in .card:nth-child(4) { transition-delay: .28s; }
.js .theme-tech.is-home .block.is-in .card:nth-child(5) { transition-delay: .36s; }
.js .theme-tech.is-home .block.is-in .card:nth-child(6) { transition-delay: .44s; }
.js .theme-tech.is-home .block.is-in .card:nth-child(7) { transition-delay: .52s; }
.js .theme-tech.is-home .block.is-in .card:nth-child(8) { transition-delay: .6s; }
.js .theme-tech.is-home .block.is-in .card:nth-child(9) { transition-delay: .68s; }

.js .theme-tech.is-home .overlay-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.js .theme-tech.is-home .block.is-in .overlay-card { opacity: 1; transform: none; }
.js .theme-tech.is-home .block.is-in .overlay-card:nth-child(1) { transition-delay: .04s; }
.js .theme-tech.is-home .block.is-in .overlay-card:nth-child(2) { transition-delay: .12s; }
.js .theme-tech.is-home .block.is-in .overlay-card:nth-child(3) { transition-delay: .2s; }
.js .theme-tech.is-home .block.is-in .overlay-card:nth-child(4) { transition-delay: .28s; }

.theme-tech.is-home .card {
  transition: transform .35s ease, box-shadow .35s ease;
}
.theme-tech.is-home .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(37, 99, 235, .16);
}
.theme-tech.is-home .card-cover { overflow: hidden; border-radius: 12px; }
.theme-tech.is-home .card-cover img {
  transition: transform .8s cubic-bezier(.16, 1, .3, 1), filter .5s ease;
}
.theme-tech.is-home .card:hover .card-cover img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.04);
}

.theme-tech.is-home .block-more a {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0 100%;
  transition:
    color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    transform .35s ease,
    background-size .45s cubic-bezier(.16, 1, .3, 1);
}
.theme-tech.is-home .block-more a:hover {
  color: #fff;
  border-color: var(--accent);
  background-size: 100% 100%;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, .28);
}

.theme-tech.is-home .hero-core {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.theme-tech.is-home .hero-core::before,
.theme-tech.is-home .hero-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}
.theme-tech.is-home .hero-core::before {
  width: 560px;
  height: 560px;
  left: -160px;
  top: -220px;
  background: radial-gradient(circle, rgba(96, 165, 250, .38), transparent 68%);
  animation: orb-drift 16s ease-in-out infinite;
}
.theme-tech.is-home .hero-core::after {
  width: 480px;
  height: 480px;
  right: -140px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%);
  animation: orb-drift 19s ease-in-out infinite reverse;
}
.theme-tech.is-home .hero-core .wrap { position: relative; z-index: 1; }
.theme-tech.is-home .hero-core .wrap::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 38%), rgba(255, 255, 255, .16), transparent 58%);
  pointer-events: none;
  z-index: 0;
  transition: background .12s linear;
}
.theme-tech.is-home .hero-core .wrap > * { position: relative; z-index: 1; }

@keyframes orb-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(36px, 22px, 0) scale(1.08); }
}

.js .theme-tech.is-home .hero-core h1 span {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
}
.js .theme-tech.is-home .hero-core.is-in h1 span {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s cubic-bezier(.16, 1, .3, 1);
}
.js .theme-tech.is-home .hero-core h1 span::after {
  transform: scaleX(0);
  transform-origin: 50% 50%;
}
.js .theme-tech.is-home .hero-core.is-in h1 span::after {
  transform: scaleX(1);
  transition: transform .8s .35s cubic-bezier(.16, 1, .3, 1);
}
.js .theme-tech.is-home .hero-en {
  opacity: 0;
  transform: translateY(12px);
  letter-spacing: .5em;
}
.js .theme-tech.is-home .hero-core.is-in .hero-en {
  opacity: 1;
  transform: none;
  letter-spacing: .28em;
  transition: opacity .8s .25s, transform .8s .25s, letter-spacing .9s .25s;
}
.js .theme-tech.is-home .hero-core-item {
  opacity: 0;
  transform: translateY(32px) scale(.9);
}
.js .theme-tech.is-home .hero-core-arrow { opacity: 0; }
.js .theme-tech.is-home .hero-core.is-in .hero-core-item {
  opacity: 1;
  transform: none;
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}
.js .theme-tech.is-home .hero-core.is-in .hero-core-arrow {
  opacity: 1;
  transition: opacity .7s ease;
}
.js .theme-tech.is-home .hero-core.is-in .hero-core-row > *:nth-child(1) { transition-delay: .12s; }
.js .theme-tech.is-home .hero-core.is-in .hero-core-row > *:nth-child(2) { transition-delay: .26s; }
.js .theme-tech.is-home .hero-core.is-in .hero-core-row > *:nth-child(3) { transition-delay: .4s; }
.js .theme-tech.is-home .hero-core.is-in .hero-core-row > *:nth-child(4) { transition-delay: .54s; }
.js .theme-tech.is-home .hero-core.is-in .hero-core-row > *:nth-child(5) { transition-delay: .68s; }

.js .theme-tech.is-home .hero-core.is-in .hero-core-icon {
  animation: icon-float 4.8s ease-in-out infinite;
}
.js .theme-tech.is-home .hero-core.is-in .hero-core-item:nth-child(3) .hero-core-icon { animation-delay: .8s; }
.js .theme-tech.is-home .hero-core.is-in .hero-core-item:nth-child(5) .hero-core-icon { animation-delay: 1.6s; }

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.theme-tech.is-home .carousel { --p: 0; }
.theme-tech.is-home .carousel .slide { overflow: hidden; }
.theme-tech.is-home .carousel:not(.carousel-mid) .slide img {
  transform: scale(calc(1.08 + var(--p) * 0.06)) translate3d(0, calc(var(--p) * 28px), 0);
  transition: transform 7.2s cubic-bezier(.25, .46, .45, .94);
  will-change: transform;
}
.theme-tech.is-home .carousel:not(.carousel-mid) .slide.is-on img {
  transform: scale(calc(1 + var(--p) * 0.08)) translate3d(0, calc(var(--p) * 28px), 0);
}
.theme-tech.is-home .carousel .slide figcaption strong,
.theme-tech.is-home .carousel .slide figcaption span,
.theme-tech.is-home .carousel .slide figcaption a {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
}
.theme-tech.is-home .carousel .slide.is-on figcaption strong,
.theme-tech.is-home .carousel .slide.is-on figcaption span,
.theme-tech.is-home .carousel .slide.is-on figcaption a {
  opacity: 1;
  transform: none;
  filter: none;
}
.theme-tech.is-home .carousel .slide.is-on figcaption strong {
  transition: opacity .9s .15s, transform .9s .15s, filter .9s .15s;
}
.theme-tech.is-home .carousel .slide.is-on figcaption span {
  transition: opacity .9s .32s, transform .9s .32s, filter .9s .32s;
}
.theme-tech.is-home .carousel .slide.is-on figcaption a {
  transition: opacity .8s .48s, transform .8s .48s, filter .8s .48s;
}

.js .theme-tech.is-home .full-block img {
  clip-path: inset(10% 8% 10% 8%);
  transform: scale(1.06);
  filter: saturate(.82);
  transition: clip-path 1.15s cubic-bezier(.16, 1, .3, 1), transform 1.15s cubic-bezier(.16, 1, .3, 1), filter 1.15s ease;
}
.js .theme-tech.is-home .block.is-in .full-block img {
  clip-path: inset(0);
  transform: none;
  filter: none;
}
.js .theme-tech.is-home .full-title::after {
  transform: scaleX(0);
  transform-origin: center;
}
.js .theme-tech.is-home .block.is-in .full-title::after {
  transform: scaleX(1);
  transition: transform .7s .2s cubic-bezier(.16, 1, .3, 1);
}

.js .theme-tech.is-home .mid-figure img {
  transform: scale(1.08) translateY(18px);
  filter: saturate(.85);
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter 1.2s ease;
}
.js .theme-tech.is-home .mid-figure.is-in img {
  transform: none;
  filter: none;
}

@media (max-width: 768px) {
  .js .theme-tech.is-home .hero-core,
  .js .theme-tech.is-home .hero:not(.hero-core),
  .js .theme-tech.is-home .block,
  .js .theme-tech.is-home .mid-figure,
  .js .theme-tech.is-home .carousel-mid,
  .js .theme-tech.is-home .site-footer {
    transform: translateY(16px);
    filter: none;
  }
  .theme-tech.is-home .card:hover,
  .js .theme-tech.is-home .block.is-in .card:hover { transform: none; box-shadow: 0 8px 24px rgba(37,99,235,.06); }
  .js .theme-tech.is-home .hero-core.is-in .hero-core-icon { animation: none; }
  .js .theme-tech.is-home .block-en,
  .js .theme-tech.is-home .hero-en { letter-spacing: .12em; }
  .js .theme-tech.is-home .block.is-in .block-en { letter-spacing: .12em; }
  .js .theme-tech.is-home .hero-core.is-in .hero-en { letter-spacing: .12em; }
  .theme-tech.is-home .carousel .slide img,
  .theme-tech.is-home .carousel .slide.is-on img {
    transform: none;
    will-change: auto;
  }
  .js .theme-tech.is-home .full-block img {
    clip-path: none;
    transform: none;
    filter: none;
  }
  .theme-tech.is-home .hero-core::before,
  .theme-tech.is-home .hero-core::after { animation: none; }
}

@media (max-width: 640px) {
  .js .theme-tech.is-home .block-en,
  .js .theme-tech.is-home .block.is-in .block-en { letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
  .js .theme-tech.is-home .hero-core,
  .js .theme-tech.is-home .hero:not(.hero-core),
  .js .theme-tech.is-home .block,
  .js .theme-tech.is-home .mid-figure,
  .js .theme-tech.is-home .carousel-mid,
  .js .theme-tech.is-home .site-footer,
  .js .theme-tech.is-home .card,
  .js .theme-tech.is-home .hero-core-item,
  .js .theme-tech.is-home .hero-core-arrow,
  .js .theme-tech.is-home .hero-en,
  .js .theme-tech.is-home .block-en,
  .js .theme-tech.is-home .full-block img,
  .js .theme-tech.is-home .mid-figure img,
  .theme-tech.is-home .carousel .slide img,
  .theme-tech.is-home .carousel .slide figcaption strong,
  .theme-tech.is-home .carousel .slide figcaption span,
  .theme-tech.is-home .carousel .slide figcaption a {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
    letter-spacing: inherit;
  }
  .theme-tech.is-home .hero-core::before,
  .theme-tech.is-home .hero-core::after { animation: none; }
  .scroll-progress { display: none; }
}
