﻿/* Main page (former index-b / 0723b) */
@import url("./home-base.css");

/* ── Hero B layout (0723b) ── */
.hero-b {
  background-color: #0a1628;
}

.hero-b__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-b__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.hero-b__stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 100px clamp(20px, 5.2vw, 100px) 40px;
  color: #fff;
  box-sizing: border-box;
}

.hero-b__main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  min-height: 0;
  transform: translateY(-100px);
}

.hero-b__titles {
  position: relative;
  width: 100%;
  min-height: min(360px, 42vh);
  transform: translateY(-5px);
}

.hero-b__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(42px, 6.25vw, 120px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: none;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.hero-b__title--left {
  position: absolute;
  left: 0;
  top: 0;
  text-align: left;
}

.hero-b__title--right {
  position: absolute;
  right: 0;
  top: clamp(48px, 12vh, 120px);
  text-align: right;
}

.hero-b__title .hero-b__slide {
  margin: 0;
  font: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-shadow: inherit;
  color: inherit;
}

.hero-b__slide {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  pointer-events: none;
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-b__slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.hero-b__slide:not(.is-active) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.hero-b__title--right .hero-b__slide:not(.is-active) {
  left: auto;
  right: 0;
}

.hero-b__capsule {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(800px, 92%);
  height: 84px;
  padding: 0 36px 0 68px;
  border-radius: 999px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Figma Rectangle 48 export — exact image */
.hero-b__capsule-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.hero-b__capsule-ko-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  min-height: 1.1em;
}

.hero-b__capsule-ko {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  font-size: clamp(15px, 1.56vw, 30px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.75px;
  white-space: nowrap;
  text-align: left;
  padding-left: 0;
}

.hero-b__capsule-ko-wrap .hero-b__slide:not(.is-active) {
  left: 0;
  right: 0;
}

.hero-b__capsule-brand {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
  letter-spacing: -0.45px;
  width: 98px;
  margin-right: 18px;
  transform: translateX(-5px);
}

.hero-b__capsule-brand-top {
  margin: 0;
  font-size: clamp(16px, 1.15vw, 22px);
  font-weight: 600;
}

.hero-b__capsule-brand-bot {
  margin: 0;
  font-size: clamp(12px, 0.9vw, 17px);
  font-weight: 400;
}

/* Scroll icon (0723b) — wheel drop + chevron pulse */
.hero-b__scroll {
  position: absolute;
  left: 50%;
  bottom: 122px;
  z-index: 12;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-b__scroll-icon {
  display: block;
  width: 20px;
  height: 61px;
}

.hero-b__scroll-wheel {
  transform-box: fill-box;
  transform-origin: center top;
  animation: hero-b-scroll-wheel 1.6s ease-in-out infinite;
}

.hero-b__scroll-chevron {
  transform-box: fill-box;
  transform-origin: center center;
  animation: hero-b-scroll-chevron 1.6s ease-in-out infinite;
}

.hero-b__scroll-chevron--2 {
  animation-delay: 0.15s;
}

@keyframes hero-b-scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(8px);
    opacity: 0;
  }
  100% {
    transform: translateY(8px);
    opacity: 0;
  }
}

@keyframes hero-b-scroll-chevron {
  0%,
  100% {
    opacity: 0.35;
  }
  40% {
    opacity: 1;
  }
}

/* Bottom progress — Figma: left/right 100px, width 1720 */
.hero-b__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 70px;
  z-index: 12;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0 clamp(20px, 5.2vw, 100px);
  box-sizing: border-box;
}

.hero-b__bottom .hero-progress {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
}

/* ── Entrance animation (after intro) ── */
.hero-b__title--left,
.hero-b__title--right,
.hero-b__capsule,
.hero-b__scroll,
.hero-b__bottom {
  opacity: 0;
  will-change: transform, opacity;
}

.hero-b__title--left {
  transform: translateX(-64px);
}

.hero-b__title--right {
  transform: translateX(64px);
}

.hero-b__capsule {
  transform: translate(-50%, -42%) scale(0.92);
}

.hero-b__bottom {
  transform: translateY(28px);
}

.hero-b__scroll {
  transform: translate(-50%, 20px);
}

.hero-b.is-entered .hero-b__title--left {
  animation: hero-b-in-left 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.hero-b.is-entered .hero-b__title--right {
  animation: hero-b-in-right 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.hero-b.is-entered .hero-b__capsule {
  animation: hero-b-in-capsule 1s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.hero-b.is-entered .hero-b__scroll {
  animation: hero-b-in-scroll 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.hero-b.is-entered .hero-b__bottom {
  animation: hero-b-in-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards;
}

@keyframes hero-b-in-left {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-b-in-right {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-b-in-capsule {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes hero-b-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-b-in-scroll {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 1100px) {
  .hero-b__stage {
    /* Absolute main fills this band; keep side padding only */
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Pin content band between header and scroll, then center inside it */
  .hero-b__main {
    position: absolute;
    left: 0;
    right: 0;
    top: 100px;
    bottom: 155px;
    z-index: 11;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 clamp(20px, 5.2vw, 100px);
    box-sizing: border-box;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-b__titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    min-height: 0;
    padding: 0;
    transform: none !important;
  }

  .hero-b__title--left,
  .hero-b__title--right {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    text-align: center;
  }

  .hero-b__capsule {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(640px, 100%);
    height: auto;
    min-height: 72px;
    padding: 18px 22px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .hero-b__capsule-ko-wrap {
    width: 100%;
    text-align: center;
  }

  .hero-b__capsule-ko {
    white-space: normal;
    line-height: 1.35;
    font-size: clamp(15px, 3.6vw, 20px);
    text-align: center;
  }

  .hero-b__capsule-brand {
    width: 100%;
    margin: 0;
    transform: none !important;
    align-self: stretch;
    align-items: center;
  }

  .hero-b__capsule-brand-top,
  .hero-b__capsule-brand-bot {
    width: 100%;
    text-align: center;
  }

  .hero-b.is-entered .hero-b__capsule {
    animation: hero-b-in-up 1s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
  }

  .hero-b__capsule {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
}

@media (max-width: 768px) {
  .hero-b__stage {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-b__main {
    top: 100px;
    /* scroll bottom:72 + icon ~63 → reserve ~145px from bottom */
    bottom: 145px;
    padding-left: 20px;
    padding-right: 20px;
    transform: none !important;
  }

  .hero-b__titles {
    transform: none !important;
    gap: 12px;
  }

  .hero-b__title {
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero-b__capsule {
    margin-top: 18px;
  }

  .hero-b__capsule-brand {
    width: 100%;
    margin: 0;
    transform: none !important;
  }

  .hero-b__bottom {
    bottom: 48px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-b__scroll {
    bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-b__title--left,
  .hero-b__title--right,
  .hero-b__capsule,
  .hero-b__scroll,
  .hero-b__bottom {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .hero-b__capsule {
    transform: translate(-50%, -50%);
  }

  .hero-b__scroll {
    transform: translateX(-50%);
  }

  .hero-b__bottom {
    transform: none;
  }

  .hero-b__scroll-wheel,
  .hero-b__scroll-chevron {
    animation: none !important;
  }

  @media (max-width: 1100px) {
    .hero-b__capsule {
      transform: none;
    }
  }
}
