/* Atmospheric media — restrained motion for B2B warmth */

.hero--visual {
  position: relative;
  min-height: min(78vh, 620px);
  display: flex;
  align-items: center;
  padding: 4.5rem 0 3.75rem;
  overflow: hidden;
  border-bottom: 0;
  background: #0f1724;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
  transform-origin: 60% 40%;
  will-change: transform;
}

.hero--visual.is-live .hero__media img {
  animation: ys-ken 22s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      95deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.9) 34%,
      rgba(255, 255, 255, 0.42) 58%,
      rgba(15, 23, 36, 0.28) 100%
    );
}

.hero--visual > .container,
.hero--visual .hero__content {
  position: relative;
  z-index: 2;
}

.hero__wordmark {
  margin: 0 0 0.85rem;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(2.75rem, 9vw, 4.25rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
  color: #0f1724;
}
.hero__logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  margin: 0 0 1rem;
}

.hero--visual .research-note,
.hero--visual .hero-panel {
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(6px);
}

.hero--visual .hero-meta {
  color: #5c6778;
}

.media-frame {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--canvas);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
  filter: saturate(0.92) contrast(1.02);
  will-change: transform;
}

.media-frame.is-inview img,
.media-frame:hover img {
  transform: scale(1);
  filter: saturate(1) contrast(1.03);
}

.media-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(transparent, rgba(15, 23, 36, 0.72));
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
  max-height: 28rem;
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.split--media {
  align-items: center;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.page-hero--visual {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  padding: 3.5rem 0 3rem;
  background: #0f1724;
}

.page-hero--visual .page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero--visual .page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  opacity: 0.55;
}

.page-hero--visual.is-live .page-hero__media img {
  animation: ys-ken-slow 28s ease-in-out infinite alternate;
}

.page-hero--visual .page-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.92) 42%,
      rgba(255, 255, 255, 0.55) 70%,
      rgba(15, 23, 36, 0.35) 100%
    );
}

.page-hero--visual > .container {
  position: relative;
  z-index: 1;
}

@keyframes ys-ken {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.4%, 1%, 0); }
}

@keyframes ys-ken-slow {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(1.2%, -0.8%, 0); }
}

@media (max-width: 900px) {
  .hero--visual {
    min-height: auto;
    padding: 3.25rem 0 2.75rem;
  }
  .hero__veil {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(255, 255, 255, 0.88) 55%,
        rgba(255, 255, 255, 0.55) 100%
      );
  }
  .media-frame--tall {
    max-height: none;
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--visual.is-live .hero__media img,
  .page-hero--visual.is-live .page-hero__media img {
    animation: none;
  }
  .media-frame img {
    transition: none;
    transform: none;
  }
}
