/**
 * Scroll-scrubbed circular portals — alternating light / dark scenes.
 * Cards: three unique border & surface treatments + scroll-driven motion via --card-tx.
 */

.page-home .km-values-section {
  padding: 0;
  margin: 0;
  /* Avoid solid blue between hero and scenes when --scene-op is still ramping */
  background: transparent;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.page-home .km-value-scene {
  --content-op: 0;
  --content-y: 20px;
  position: relative;
  min-height: 175vh;
  background: transparent;
}

/* Objectives / “Excellence always” — doubled scroll track so the portal opens fully before the next section */
.page-home .km-value-scene--extended {
  min-height: 210vh;
}

/* Small / medium: longer scroll distance + calmer inner layout so titles read before the next scene */
@media (max-width: 991.98px) {
  /* Slightly shorter track so portal + text finish before the scene scrolls mostly off-screen. */
  .page-home .km-value-scene:not(.km-value-scene--static) {
    min-height: 210vh;
  }

  .page-home .km-value-scene--extended:not(.km-value-scene--static) {
    min-height: 240vh;
  }

  /* Scroll-portal tuning only if non-static (compact normally uses stacked panels). */
  .page-home .km-value-scene:not(.km-value-scene--static) .km-value-scene__portal {
    padding: clamp(1.1rem, 4vw, 1.75rem) clamp(0.85rem, 4vw, 1.5rem);
    align-items: flex-start;
    padding-top: clamp(4.5rem, 14vh, 7rem);
  }

  .page-home .km-value-scene:not(.km-value-scene--static) .km-value-scene__inner {
    max-width: 100%;
  }

  .page-home .km-value-scene:not(.km-value-scene--static) .km-value-scene__header {
    margin-bottom: clamp(0.85rem, 3vw, 1.35rem);
  }

  .page-home .km-value-scene:not(.km-value-scene--static) .km-value-scene__title {
    font-size: clamp(1.45rem, 6.5vw, 2.35rem);
    line-height: 1.12;
  }

  .page-home .km-value-scene:not(.km-value-scene--static) .km-value-scene__lead {
    font-size: clamp(0.9rem, 3.6vw, 1.05rem);
    line-height: 1.6;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
  }
}

.page-home .km-value-scene__sticky {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* Photo + brand blue overlay (45%) on sticky — visible around/behind the portal mask */
.page-home .km-values-section > .km-value-scene:nth-of-type(1) .km-value-scene__sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../assets/images/back.webp") center / cover no-repeat;
}

.page-home .km-values-section > .km-value-scene:nth-of-type(2) .km-value-scene__sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../assets/images/architecture.webp") center / cover no-repeat;
}

.page-home .km-values-section > .km-value-scene:nth-of-type(3) .km-value-scene__sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../assets/images/values-bg-render-3.webp") center / cover no-repeat;
}

.page-home .km-values-section > .km-value-scene:nth-of-type(4) .km-value-scene__sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../assets/images/gahanga-rooms-8.webp") center / cover no-repeat;
}

.page-home .km-values-section > .km-value-scene .km-value-scene__sticky::before {
  opacity: var(--scene-op, 0);
  transform: scale(var(--scene-bg-scale, 1.06));
  transform-origin: center center;
  transition: opacity 0.08s linear;
  will-change: opacity, transform;
}

.page-home .km-values-section > .km-value-scene:nth-of-type(1) .km-value-scene__sticky::after,
.page-home .km-values-section > .km-value-scene:nth-of-type(2) .km-value-scene__sticky::after,
.page-home .km-values-section > .km-value-scene:nth-of-type(3) .km-value-scene__sticky::after,
.page-home .km-values-section > .km-value-scene:nth-of-type(4) .km-value-scene__sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  opacity: var(--scene-op, 0);
  transition: opacity 0.08s linear;
  will-change: opacity;
}

.page-home .km-values-section > .km-value-scene--bg-motion .km-value-scene__sticky::after {
  background: rgba(0, 0, 0, 0.6);
}

/* Scene 3: no circular reveal, content slides in from both sides */
.page-home .km-values-section > .km-value-scene--two-sides .km-value-scene__portal {
  clip-path: none !important;
  -webkit-clip-path: none !important;
}

.page-home .km-values-section > .km-value-scene--two-sides .km-value-scene__header {
  transform: translateX(calc(-72px * (1 - var(--content-op, 0))));
  will-change: transform;
}

.page-home .km-values-section > .km-value-scene--two-sides .km-value-scene__lead {
  transform: translateX(calc(-30px * (1 - var(--content-op, 0))));
  will-change: transform;
}

.page-home .km-values-section > .km-value-scene--two-sides .km-value-cards {
  transform: translateX(calc(72px * (1 - var(--content-op, 0))));
  will-change: transform;
}

/* Scene 4: shown automatically (no reveal mask) */
.page-home .km-values-section > .km-value-scene--auto-show {
  --content-op: 1;
  --content-y: 0px;
}

.page-home .km-values-section > .km-value-scene--auto-show .km-value-scene__portal {
  clip-path: none !important;
  -webkit-clip-path: none !important;
}

.page-home .km-values-section > .km-value-scene--auto-show .km-value-scene__inner {
  opacity: 1 !important;
  filter: none !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* ——— Portal: white (light) vs near-black (dark), alternating ——— */
.page-home .km-value-scene--light .km-value-scene__portal {
  background: #fff;
  color: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.page-home .km-value-scene--dark .km-value-scene__portal {
  background: #005b8c;
  color: #f2f2f2;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 80px rgba(14, 29, 66, 0.04);
}

.page-home .km-value-scene__portal {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem);
  /* clip-path set by km-values-portal.js (circle | ellipse | rhombus | star) */
  clip-path: circle(11% at 50% 45%);
  will-change: clip-path;
}

/* When reveal masks are disabled, keep portal transparent so background photos remain visible */
.page-home .km-value-scene[data-portal-shape="none"] .km-value-scene__portal {
  background: transparent !important;
  box-shadow: none !important;
}

/* Improve readability over photo + 60% black overlay */
.page-home .km-value-scene[data-portal-shape="none"] .km-value-scene__eyebrow {
  color: var(--color-blue-400) !important;
}

.page-home .km-value-scene[data-portal-shape="none"] .km-value-scene__title {
  color: #fff !important;
  text-shadow: 0 2px 36px rgba(0, 0, 0, 0.55);
}

.page-home .km-value-scene[data-portal-shape="none"] .km-value-scene__lead {
  color: rgba(255, 255, 255, 0.9) !important;
}

.page-home .km-value-scene__inner {
  width: 100%;
  max-width: min(96vw, 72rem);
  margin: 0 auto;
  text-align: center;
  opacity: var(--content-op);
  transform: translate3d(0, var(--content-y), 0);
  position: relative;
  z-index: 1;
}

.page-home .km-value-scene__header {
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

.page-home .km-value-scene--light .km-value-scene__eyebrow {
  color: var(--color-blue-600);
}

.page-home .km-value-scene--dark .km-value-scene__eyebrow {
  color: #4da3ff;
  text-shadow: 0 0 24px rgba(14, 29, 66, 0.35);
}

.page-home .km-value-scene__eyebrow {
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.page-home .km-value-scene--light .km-value-scene__title {
  color: #000;
}

.page-home .km-value-scene--dark .km-value-scene__title {
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.page-home .km-value-scene__title {
  font-family: var(--md-font-display), "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 5.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

/* Scene 4: distinct fade-in / pop + animated sheen */
@keyframes km-values-sheen {
  0% {
    transform: translateX(-35%) rotate(12deg);
  }
  100% {
    transform: translateX(35%) rotate(12deg);
  }
}

.page-home .km-values-section > .km-value-scene--fade-pop .km-value-scene__inner {
  filter: blur(calc((1 - var(--content-op, 0)) * 12px)) saturate(1.15);
  transform: translate3d(0, var(--content-y), 0) scale(calc(0.96 + var(--content-op, 0) * 0.06));
}

.page-home .km-values-section > .km-value-scene--fade-pop .km-value-scene__portal {
  overflow: hidden;
}

.page-home .km-values-section > .km-value-scene--fade-pop .km-value-scene__portal::before {
  content: "";
  position: absolute;
  inset: -55%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(77, 163, 255, 0.26) 46%,
    rgba(255, 255, 255, 0) 72%
  );
  opacity: calc(0.12 + var(--content-op, 0) * 0.75);
  transform: translateX(-35%) rotate(12deg);
  animation: km-values-sheen 2.9s ease-in-out infinite;
}

.page-home .km-value-scene--light .km-value-scene__lead {
  color: rgba(0, 0, 0, 0.78);
}

.page-home .km-value-scene--dark .km-value-scene__lead {
  color: rgba(255, 255, 255, 0.82);
}

.page-home .km-value-scene__lead {
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  line-height: 1.65;
  font-weight: 500;
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  max-width: 62rem;
  text-align: center;
}

.page-home .km-value-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 2.2vw, 1.35rem);
  text-align: left;
  margin-top: 0.25rem;
}

@media (min-width: 992px) {
  .page-home .km-value-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Base card: motion from JS --card-tx */
.page-home .km-value-card {
  transform: var(--card-tx, translate3d(0, 0, 0));
  will-change: transform;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    filter 0.35s ease;
}

.page-home .km-value-card:hover {
  filter: brightness(1.04);
}

/* ——— Light theme cards: three border personalities ——— */
.page-home .km-value-scene--light .km-value-card--a {
  background: linear-gradient(145deg, #fff 0%, #f6f8fb 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--color-blue-600);
  border-radius: 10px 16px 16px 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 32px rgba(0, 0, 0, 0.07);
}

.page-home .km-value-scene--light .km-value-card--b {
  background: #fafafa;
  border: 2px dashed rgba(14, 29, 66, 0.35);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(14, 29, 66, 0.08);
  position: relative;
}

.page-home .km-value-scene--light .km-value-card--b::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, transparent, var(--color-blue-600), transparent);
  opacity: 0.85;
}

.page-home .km-value-scene--light .km-value-card--c {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 22px 8px 22px 8px;
  box-shadow:
    0 0 0 3px rgba(14, 29, 66, 0.12),
    0 12px 36px rgba(0, 0, 0, 0.08);
}

.page-home .km-value-scene--light .km-value-card--a:hover,
.page-home .km-value-scene--light .km-value-card--b:hover,
.page-home .km-value-scene--light .km-value-card--c:hover {
  box-shadow:
    0 14px 44px rgba(14, 29, 66, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.page-home .km-value-scene--light .km-value-card__title {
  color: #000;
}

.page-home .km-value-scene--light .km-value-card__text {
  color: rgba(0, 0, 0, 0.76);
}

/* ——— Dark theme cards: three different treatments ——— */
.page-home .km-value-scene--dark .km-value-card--a {
  background: linear-gradient(165deg, #121214 0%, #1a1a1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 3px solid var(--color-blue-600);
  border-radius: 16px 10px 10px 16px;
  box-shadow:
    0 0 0 1px rgba(14, 29, 66, 0.15),
    0 16px 40px rgba(0, 0, 0, 0.45);
}

.page-home .km-value-scene--dark .km-value-card--b {
  position: relative;
  background: #0e0e12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px 12px 12px 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-home .km-value-scene--dark .km-value-card--b::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 1px dashed rgba(77, 163, 255, 0.25);
  pointer-events: none;
}

.page-home .km-value-scene--dark .km-value-card--c {
  background: #101015;
  border: none;
  border-radius: 12px;
  outline: 2px solid rgba(255, 255, 255, 0.12);
  outline-offset: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.page-home .km-value-scene--dark .km-value-card--a:hover,
.page-home .km-value-scene--dark .km-value-card--b:hover,
.page-home .km-value-scene--dark .km-value-card--c:hover {
  box-shadow:
    0 0 28px rgba(14, 29, 66, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.5);
}

.page-home .km-value-scene--dark .km-value-card__title {
  color: #fff;
}

.page-home .km-value-scene--dark .km-value-card__text {
  color: rgba(255, 255, 255, 0.78);
}

.page-home .km-value-card__title {
  font-family: var(--md-font-display), "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(0.88rem, 2.4vw, 1.12rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  line-height: 1.25;
}

.page-home .km-value-card__text {
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-size: clamp(0.8rem, 2.1vw, 1rem);
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

/* Reduced motion / static */
.page-home .km-value-scene.km-value-scene--static {
  min-height: auto;
}

.page-home .km-value-scene.km-value-scene--static .km-value-scene__sticky {
  position: relative;
  height: auto;
  min-height: 70vh;
  padding: clamp(3rem, 10vw, 5rem) 0;
}

.page-home .km-value-scene.km-value-scene--static .km-value-scene__portal {
  position: relative;
  clip-path: none;
  border-radius: 0;
  min-height: 60vh;
}

.page-home .km-value-scene.km-value-scene--static .km-value-scene__inner {
  opacity: 1;
  transform: none;
}

.page-home .km-value-scene.km-value-scene--static .km-value-card {
  transform: none !important;
}

/*
 * Compact / medium: stacked editorial panels (no portal mask).
 * All four blocks stay in the document; IO adds .km-value-scene--io-visible for a short entrance.
 */
@media (max-width: 991.98px) {
  .page-home .km-values-section {
    counter-reset: kmvaluestep;
    position: relative;
    z-index: 2;
    padding: clamp(0.75rem, 3vw, 1.25rem) 0 clamp(2.75rem, 9vw, 4.25rem);
    background: var(--km-ceo-bg);
  }

  .page-home .km-value-scene.km-value-scene--static {
    counter-increment: kmvaluestep;
    margin-bottom: clamp(1.35rem, 4vw, 2rem);
  }

  /* Photo + blue 45% behind stacked cards (sticky layer has no height here) */
  .page-home .km-values-section > .km-value-scene:nth-of-type(1).km-value-scene--static {
    background:
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url("../assets/images/back.webp") center / cover no-repeat;
    border-radius: 22px;
    overflow: hidden;
  }

  .page-home .km-values-section > .km-value-scene:nth-of-type(2).km-value-scene--static {
    background:
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url("../assets/images/architecture.webp") center / cover no-repeat;
    border-radius: 22px;
    overflow: hidden;
  }

  .page-home .km-values-section > .km-value-scene:nth-of-type(3).km-value-scene--static {
    background:
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url("../assets/images/values-bg-render-3.webp") center / cover no-repeat;
    border-radius: 22px;
    overflow: hidden;
  }

  .page-home .km-values-section > .km-value-scene:nth-of-type(4).km-value-scene--static {
    background:
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url("../assets/images/gahanga-rooms-8.webp") center / cover no-repeat;
    border-radius: 22px;
    overflow: hidden;
  }

  .page-home .km-value-scene.km-value-scene--static:last-child {
    margin-bottom: 0;
  }

  .page-home .km-value-scene.km-value-scene--static .km-value-scene__sticky {
    min-height: 0;
    padding: 0;
    background: transparent;
  }

  .page-home .km-value-scene.km-value-scene--static .km-value-scene__portal {
    min-height: 0;
    position: relative;
    overflow: visible;
    margin: 0 auto;
    width: calc(100% - clamp(1.25rem, 5vw, 2rem));
    max-width: 26.5rem;
    padding: clamp(1.35rem, 4.5vw, 1.85rem) clamp(1.1rem, 4vw, 1.5rem) clamp(1.5rem, 5vw, 2rem);
    border-radius: 22px;
  }

  .page-home .km-value-scene.km-value-scene--static.km-value-scene--light .km-value-scene__portal {
    background: linear-gradient(165deg, #ffffff 0%, #f4f6fa 100%);
    color: var(--color-blue-800);
    box-shadow:
      0 4px 0 rgba(14, 29, 66, 0.35),
      0 24px 48px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  .page-home .km-value-scene.km-value-scene--static.km-value-scene--dark .km-value-scene__portal {
    background: linear-gradient(160deg, #12141a 0%, #0a0c10 100%);
    color: #f0f2f5;
    box-shadow:
      0 0 0 1px rgba(14, 29, 66, 0.22),
      0 20px 56px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  /* Compact mode: keep no-mask scenes transparent too */
  .page-home .km-value-scene.km-value-scene--static[data-portal-shape="none"] .km-value-scene__portal {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  /* Step index — all four sections stay visible in sequence */
  .page-home .km-value-scene.km-value-scene--static .km-value-scene__portal::before {
    content: counter(kmvaluestep, decimal-leading-zero);
    position: absolute;
    top: clamp(0.85rem, 3vw, 1.1rem);
    right: clamp(0.85rem, 3vw, 1.1rem);
    font-family: var(--md-font-body), "Outfit", sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    line-height: 1;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    z-index: 2;
  }

  .page-home .km-value-scene.km-value-scene--static.km-value-scene--light .km-value-scene__portal::before {
    color: var(--color-blue-600);
    background: rgba(14, 29, 66, 0.1);
    border: 1px solid rgba(14, 29, 66, 0.25);
  }

  .page-home .km-value-scene.km-value-scene--static.km-value-scene--dark .km-value-scene__portal::before {
    color: #7eb8ff;
    background: rgba(14, 29, 66, 0.12);
    border: 1px solid rgba(77, 163, 255, 0.35);
  }

  .page-home .km-value-scene.km-value-scene--static .km-value-scene__header {
    text-align: left;
    padding-right: 3.25rem;
    margin-bottom: clamp(0.75rem, 2.5vw, 1.1rem);
  }

  .page-home .km-value-scene.km-value-scene--static .km-value-scene__title,
  .page-home .km-value-scene.km-value-scene--static .km-value-scene__lead {
    text-align: left;
  }

  .page-home .km-value-scene.km-value-scene--static .km-value-scene__lead {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    font-size: clamp(0.88rem, 3.4vw, 1.02rem);
    line-height: 1.62;
    margin-bottom: clamp(0.95rem, 3vw, 1.35rem);
  }

  .page-home .km-value-scene.km-value-scene--static .km-value-scene__title {
    font-size: clamp(1.32rem, 6.2vw, 2rem);
    line-height: 1.1;
  }

  .page-home .km-value-scene.km-value-scene--static .km-value-cards {
    text-align: left;
  }

  /*
   * Scroll-triggered entrance (IO → .km-value-scene--io-visible on each scene):
   * Card shell: zoom + fade. Inner: staggered fade + directional motion.
   */
  .page-home .km-value-scene.km-value-scene--static .km-value-scene__portal {
    opacity: 0;
    transform: scale(0.88) translate3d(0, 36px, 0);
    transform-origin: 50% 60%;
    transition:
      opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.82s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.65s ease;
  }

  .page-home .km-value-scene.km-value-scene--static.km-value-scene--io-visible .km-value-scene__portal {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }

  /* 01 — zoom from left + slight tilt */
  .page-home .km-values-section > .km-value-scene:nth-child(1).km-value-scene--static .km-value-scene__portal {
    transform: scale(0.86) translate3d(-28px, 32px, 0) rotate(-2deg);
    transform-origin: 20% 50%;
  }

  .page-home .km-values-section > .km-value-scene:nth-child(1).km-value-scene--static.km-value-scene--io-visible .km-value-scene__portal {
    transform: scale(1) translate3d(0, 0, 0) rotate(0deg);
  }

  /* 02 — zoom from right + opposite tilt */
  .page-home .km-values-section > .km-value-scene:nth-child(2).km-value-scene--static .km-value-scene__portal {
    transform: scale(0.86) translate3d(28px, 32px, 0) rotate(2deg);
    transform-origin: 80% 50%;
  }

  .page-home .km-values-section > .km-value-scene:nth-child(2).km-value-scene--static.km-value-scene--io-visible .km-value-scene__portal {
    transform: scale(1) translate3d(0, 0, 0) rotate(0deg);
  }

  /* 03 — deeper zoom (pop) from below */
  .page-home .km-values-section > .km-value-scene:nth-child(3).km-value-scene--static .km-value-scene__portal {
    transform: scale(0.82) translate3d(0, 48px, 0);
    transform-origin: 50% 80%;
  }

  .page-home .km-values-section > .km-value-scene:nth-child(3).km-value-scene--static.km-value-scene--io-visible .km-value-scene__portal {
    transform: scale(1) translate3d(0, 0, 0);
  }

  /* 04 — gentle rise + zoom */
  .page-home .km-values-section > .km-value-scene:nth-child(4).km-value-scene--static .km-value-scene__portal {
    transform: scale(0.9) translate3d(0, 44px, 0);
    transform-origin: 50% 100%;
  }

  .page-home .km-values-section > .km-value-scene:nth-child(4).km-value-scene--static.km-value-scene--io-visible .km-value-scene__portal {
    transform: scale(1) translate3d(0, 0, 0);
  }

  .page-home .km-value-scene.km-value-scene--static .km-value-scene__inner {
    opacity: 0;
    transition:
      opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--km-value-inner-delay, 0.14s),
      transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) var(--km-value-inner-delay, 0.14s);
  }

  .page-home .km-values-section > .km-value-scene:nth-child(1).km-value-scene--static .km-value-scene__inner {
    --km-value-inner-delay: 0.1s;
    transform: translate3d(-20px, 12px, 0) scale(0.96);
  }

  .page-home .km-values-section > .km-value-scene:nth-child(2).km-value-scene--static .km-value-scene__inner {
    --km-value-inner-delay: 0.12s;
    transform: translate3d(20px, 12px, 0) scale(0.96);
  }

  .page-home .km-values-section > .km-value-scene:nth-child(3).km-value-scene--static .km-value-scene__inner {
    --km-value-inner-delay: 0.14s;
    transform: translate3d(0, 20px, 0) scale(0.94);
  }

  .page-home .km-values-section > .km-value-scene:nth-child(4).km-value-scene--static .km-value-scene__inner {
    --km-value-inner-delay: 0.16s;
    transform: translate3d(0, 24px, 0) scale(0.95);
  }

  .page-home .km-value-scene.km-value-scene--static.km-value-scene--io-visible .km-value-scene__inner {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  @media (prefers-reduced-motion: reduce) {
    .page-home .km-value-scene.km-value-scene--static .km-value-scene__portal {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }

    .page-home .km-value-scene.km-value-scene--static .km-value-scene__inner {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
  }
}

