/* The Why — single full-panel image + scroll reveals (v1)
   Target asset: assets/images/why-panel.png @ 1200×1800 (2:3) */

:is(.theme-v1, .theme-v2) .wg {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
}

:is(.theme-v1, .theme-v2) #wyr {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

:is(.theme-v1, .theme-v2) .why-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  display: flex;
  min-height: 0;
}

:is(.theme-v1, .theme-v2) .why-visual__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(420px, 52vw, 780px);
  overflow: hidden;
  border: 1px solid rgba(138, 128, 120, 0.22);
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
  background: rgba(10, 8, 5, 0.35);
}

:is(.theme-v1, .theme-v2) .why-visual__frame picture {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

:is(.theme-v1, .theme-v2) .why-visual__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
 
  object-fit: contain;
  object-position: center center;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
    transform 1.1s cubic-bezier(0.23, 1, 0.32, 1);
}

:is(.theme-v1, .theme-v2) .why-visual:not(.is-in) .why-visual__img {
  opacity: 0;
  transform: scale(1.02);
}

:is(.theme-v1, .theme-v2) .why-visual.is-in .why-visual__img {
  opacity: 1;
  transform: scale(1);
}

:is(.theme-v1, .theme-v2) #wyr .tag.why-reveal {
  --d: 0;
}

:is(.theme-v1, .theme-v2) .why-reveal {
  --d: 0;
  opacity: 0;
  transform: translateX(22px);
  transition:
    opacity 0.75s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: calc(var(--d) * 70ms + 80ms);
}

:is(.theme-v1, .theme-v2) .why-reveal.is-in {
  opacity: 1;
  transform: translateX(0);
}

:is(.theme-v1, .theme-v2) .wul--stagger .why-reveal {
  transform: translateX(18px);
}

:is(.theme-v1, .theme-v2) .wul--stagger .why-reveal.is-in {
  transform: translateX(0);
}

:is(.theme-v1, .theme-v2) #why .wpull.why-reveal {
  transform: translateY(16px);
}

:is(.theme-v1, .theme-v2) #why .wpull.why-reveal.is-in {
  transform: translateY(0);
}

:is(.theme-v1, .theme-v2) #wyr .wsec + .wsec {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(138, 128, 120, 0.12);
}

:is(.theme-v1, .theme-v2) .wul--stagger li.why-reveal.is-in {
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 1080px) {
  :is(.theme-v1, .theme-v2) .wg {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  :is(.theme-v1, .theme-v2) .why-visual {
    margin-bottom: 0;
  }

  :is(.theme-v1, .theme-v2) .why-visual__frame {
    min-height: clamp(320px, 70vw, 520px);
    border-radius: 20px;
  }

  :is(.theme-v1, .theme-v2) .why-visual__img {
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.theme-v1, .theme-v2) .why-visual__img,
  :is(.theme-v1, .theme-v2) .why-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
