html { scroll-behavior: smooth; }
#divisions { scroll-margin-top: calc(var(--header) + 16px); }

.page-home {
  --home-pad: 40px;
  --max: 1680px;
}
.page-home .container { width: min(var(--max), calc(100% - 80px)); }

.page-home .site-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow .3s ease, background .3s ease;
}
.page-home .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.06);
}

.home-hero {
  position: relative;
  overflow: hidden;
  height: min(680px, calc(100vh - var(--header)));
  height: min(680px, calc(100svh - var(--header)));
  min-height: 420px;
  background: #f8fbff;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  contain: layout paint;
  transition: opacity .5s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center right;
  transform: scale(1.02);
}
.hero-slide.is-active.is-ready img {
  animation: hero-zoom 5.5s linear forwards;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 28%, rgba(255, 255, 255, 0.18) 56%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 22% 72%, rgba(37, 99, 235, 0.13), transparent 24%);
  pointer-events: none;
}
.hero-slide.is-active.is-ready::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -30%;
  left: -18%;
  width: 34%;
  height: 160%;
  transform: rotate(19deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: hero-sweep 5.5s ease-in-out forwards;
  pointer-events: none;
}
.home-hero .hero-copy {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 max(24px, calc((100% - min(var(--max), calc(100% - 80px))) / 2));
  width: min(640px, calc(100% - 80px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 64px;
  box-sizing: border-box;
  transition: opacity .3s ease, transform .3s ease;
}
.home-hero .hero-copy.is-switching {
  opacity: 0;
  transform: translateY(6px);
}
.page-home .home-hero .eyebrow {
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.page-home .home-hero h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.page-home .home-hero .lead {
  max-width: 460px;
  margin-top: 16px;
  color: #4d596a;
  font-size: 16px;
  line-height: 1.65;
}
.page-home .home-hero .hero-actions { margin-top: 26px; }
.page-home .home-hero .btn-navy,
.page-home .home-hero .btn-link {
  height: 46px;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.page-home .home-hero .btn-navy {
  padding: 0 22px;
  box-shadow: 0 14px 28px rgba(6, 23, 47, 0.16);
}
.page-home .home-hero .btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(6, 23, 47, 0.2);
}
.page-home .home-hero .btn-link:hover { transform: translateX(4px); }
.hero-progress {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(8, 20, 38, 0.08);
}
.hero-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #8fb8ff);
}
.hero-progress.is-running span {
  animation: hero-progress 5.5s linear forwards;
}
.hero-progress.is-paused span {
  animation-play-state: paused;
}
html[dir="rtl"] .hero-slide img { object-position: center left; }
html[dir="rtl"] .hero-slide::after {
  background:
    linear-gradient(270deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 28%, rgba(255, 255, 255, 0.18) 56%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 78% 72%, rgba(37, 99, 235, 0.13), transparent 24%);
}
html[dir="rtl"] .page-home .home-hero .btn-link:hover { transform: translateX(-4px); }
html[dir="rtl"] .home-hero .hero-copy {
  inset: 0 max(24px, calc((100% - min(var(--max), calc(100% - 80px))) / 2)) 0 auto;
}

@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.045); }
}
@keyframes hero-sweep {
  from { transform: translateX(-120%) rotate(19deg); opacity: 0; }
  18%, 72% { opacity: 0.75; }
  to { transform: translateX(430%) rotate(19deg); opacity: 0; }
}
@keyframes hero-progress {
  from { width: 0; }
  to { width: 100%; }
}

.home-block { padding: var(--home-pad) 0; }
.home-block-lead { margin-top: 14px; font-size: 16px; }
.home-model-lead { margin: 18px 0 26px; }

.page-home .section-head { margin-bottom: 20px; }
.page-home .card-grid { gap: 18px; }
.page-home .media-card {
  border: 1px solid rgba(228, 233, 240, 0.8);
  box-shadow: 0 14px 40px rgba(11, 37, 69, 0.06);
  transition: transform .35s ease, box-shadow .35s ease;
}
.page-home .media-card img {
  transition: transform .7s ease;
}
.page-home .media-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(11, 37, 69, 0.12);
}
.page-home .media-card:hover img { transform: scale(1.04); }
.page-home .media-card .body { padding: 26px 26px 28px; }
.page-home .media-card .card-brand {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8a93a0;
  text-transform: uppercase;
}
.page-home .media-card h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.home-standard { padding-top: 16px; background: transparent; }
.home-standard-panel {
  background:
    radial-gradient(680px 220px at 50% 0%, rgba(46, 107, 230, 0.08), transparent 58%),
    var(--bg-soft);
  border-radius: 28px;
  padding: 28px 32px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.page-home .icon-item .ico {
  width: auto;
  height: auto;
  margin: 0 auto 16px;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.page-home .icon-item .ico svg {
  width: 42px;
  height: 42px;
}

.home-model {
  background: #fff;
}
.page-home .home-model .split { gap: 28px; }
.page-home .home-model .rounded-img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
  box-shadow: none;
  border-radius: 0;
}

.home-process {
  background:
    radial-gradient(900px 280px at 50% 0%, rgba(46, 107, 230, 0.07), transparent 60%),
    var(--bg-soft);
}
.page-home .process-flow { position: relative; }
.page-home .process-item .ico {
  width: auto;
  height: auto;
  margin: 0 auto 16px;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.page-home .process-item .ico svg {
  width: 42px;
  height: 42px;
}
.page-home .process-arrow {
  color: #9aadc4;
  height: 42px;
}
.page-home .btn-link { transition: gap .2s ease, color .2s ease; }
.page-home .btn-link:hover { gap: 10px; }

.page-home .cta-banner {
  position: relative;
  overflow: hidden;
  padding: 32px 0;
  background:
    radial-gradient(620px 240px at 88% 20%, rgba(46, 107, 230, 0.28), transparent 58%),
    linear-gradient(135deg, #0b2545 0%, #122f55 48%, #163968 100%);
}
.page-home .cta-banner::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.page-home .cta-inner { position: relative; }
.page-home .btn-navy,
.page-home .btn-white {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.page-home .btn-navy:hover {
  box-shadow: 0 12px 28px rgba(11, 37, 69, 0.22);
}
.page-home .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

html.js .page-home .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js .page-home .reveal.is-in {
  opacity: 1;
  transform: none;
}
html.js .page-home .reveal-delay-1 { transition-delay: .08s; }
html.js .page-home .reveal-delay-2 { transition-delay: .16s; }
html.js .page-home .reveal-delay-3 { transition-delay: .24s; }
html.js .page-home .reveal-delay-4 { transition-delay: .32s; }
html.js .page-home .reveal-delay-5 { transition-delay: .4s; }
html.js .page-home .reveal-delay-6 { transition-delay: .48s; }

@media (min-width: 981px) {
  .home-hero .hero-copy {
    inset: 0 auto 0 max(24px, calc((100% - min(var(--max), calc(100% - 80px))) / 2));
    width: min(640px, calc(100% - 80px));
    padding: 56px 0 64px;
  }
  .hero-slide img { object-position: center right; }
  .hero-slide::after {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 28%, rgba(255, 255, 255, 0.18) 56%, rgba(255, 255, 255, 0) 100%),
      radial-gradient(circle at 22% 72%, rgba(37, 99, 235, 0.13), transparent 24%);
  }
}

@media (max-width: 980px) {
  .page-home { --home-pad: 32px; }
  .page-home .container { width: min(var(--max), calc(100% - 32px)); }
  .home-hero {
    height: calc(100vh - var(--header));
    height: calc(100svh - var(--header));
    min-height: 420px;
  }
  .hero-slide img { object-position: 62% center; }
  .home-hero .hero-copy {
    inset: 0;
    width: auto;
    padding: 48px 28px 56px;
  }
  .page-home .home-hero h1 { font-size: clamp(28px, 7vw, 38px); }
  .hero-slide::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 42%, rgba(255, 255, 255, 0.1) 100%);
  }
  html[dir="rtl"] .home-hero .hero-copy { inset: 0; }
  .home-standard-panel { padding: 24px 16px 20px; }
}

@media (max-width: 640px) {
  .page-home { --home-pad: 28px; }
  .page-home .container { width: min(var(--max), calc(100% - 32px)); }
  .home-hero { min-height: 420px; }
  .home-hero .hero-copy { padding: 40px 20px 52px; }
  .page-home .home-hero h1 { font-size: clamp(26px, 8vw, 34px); }
  .page-home .home-hero .lead { font-size: 15px; }
  .page-home .home-standard .icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }
  .page-home .home-standard .icon-item h3 { font-size: 14px; }
  .page-home .home-standard .icon-item p { font-size: 12px; }
  .page-home .home-process .process-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    gap: 18px 12px;
  }
  .page-home .home-process .process-flow .process-item {
    flex: unset;
    width: auto;
  }
  .page-home .home-process .process-flow .process-arrow { display: none; }
  .page-home .home-process .process-item h3 { font-size: 14px; }
  .page-home .home-process .process-item p { font-size: 12px; }
}

@media (max-height: 720px) {
  .home-hero { min-height: 480px; }
  .home-hero .hero-copy { padding-top: 36px; padding-bottom: 48px; }
  .page-home .home-hero h1 { font-size: clamp(26px, 4.4vh, 40px); }
  .page-home .home-hero .lead { margin-top: 12px; }
  .page-home .home-hero .hero-actions { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .page-home .reveal,
  html.js .page-home .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-home .media-card,
  .page-home .media-card img,
  .page-home .home-model .rounded-img {
    transition: none;
  }
  .page-home .media-card:hover,
  .page-home .home-model .rounded-img:hover {
    transform: none;
  }
  .hero-slide.is-active.is-ready img,
  .hero-slide.is-active.is-ready::before,
  .hero-progress.is-running span {
    animation: none;
  }
  .home-hero .hero-copy,
  .home-hero .hero-copy.is-switching {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
