/* Business Area 2 전용 — Area 1 은 about.css 사용 */

/* business-bg.jpg — 원본 그대로 (좌우 반전 없음) */
#business .about-bg__img {
  transform: scale(1.06);
  opacity: 0;
  transition:
    opacity 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 2.2s var(--about-ease);
}

#business .about-bg__img.is-active {
  opacity: 1;
}

#business.is-ready .about-bg__img {
  transform: scale(1);
}

#business .about-bg__overlay {
  background: #000c1b;
  opacity: 0.6;
}

/* ============================================================
   ▼▼▼ 추가된 부분: Area 2 애니메이션에 필요한 keyframes
   about.css에 이미 같은 이름이 있어도 무방합니다.
   (이 파일이 about.css보다 나중에 로드되므로 이 정의가 최종 적용됩니다)
   ============================================================ */
@keyframes about-word-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes about-slide-left-in {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes about-fade-up {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 아이콘 전용 — 살짝 튕기듯 뿅 나타나는 효과 (텍스트류와 구분) */
@keyframes about-icon-pop {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ▲▲▲ 추가된 부분 끝 ▲▲▲ */

.about-section .business-stage-2 {
  --business-hero-features-gap: 100px; /* hero desc ↔ features 간격 */
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  pointer-events: none;
}

.about-section.is-stage-2 .business-stage-2 {
  display: block;
  pointer-events: auto;
}

/* Area 1 페이드 아웃 중에 Area 2 애니메이션이 가려지지 않도록 */
.about-section.is-stage-2 .about-intro-1 {
  z-index: 1;
  pointer-events: none;
}

.business-menu {
  position: absolute;
  left: 50%;
  top: calc(150 / var(--about-frame-h) * 100% + 10px);
  z-index: 10;
  width: min(900px, 90vw);
  height: 90px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  pointer-events: auto;
}

.business-menu__indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: #75db00;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    width 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    height 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.business-menu__item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  overflow: hidden;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.45px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition:
    color 0.35s ease,
    font-size 0.35s ease,
    font-weight 0.35s ease;
}

/* ── Area 2 intro — About Us 2 와 동일 CSS 애니메이션 ── */
.about-section.is-business-visible .business-menu__item {
  animation: about-word-up 750ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  visibility: visible;
}

.about-section.is-business-visible .business-menu__item:nth-child(2) {
  animation-delay: 120ms;
}

.about-section.is-business-visible .business-menu__item:nth-child(3) {
  animation-delay: 260ms;
}

.about-section.is-business-visible .business-menu__item:nth-child(4) {
  animation-delay: 400ms;
}

/* ── Area 2 features — 패널별 fade-up ── */
.business-panel.is-detail .business-feature:nth-child(1) {
  --col: 0;
}

.business-panel.is-detail .business-feature:nth-child(2) {
  --col: 1;
}

.business-panel.is-detail .business-feature:nth-child(3) {
  --col: 2;
}

.business-panel.is-detail .business-feature__icon,
.business-panel.is-detail .business-feature__title,
.business-panel.is-detail .business-feature__desc {
  animation: about-fade-up 900ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  visibility: visible;
}

.business-panel.is-detail .business-feature__icon {
  animation-delay: calc(var(--col, 0) * 160ms);
}

.business-panel.is-detail .business-feature__title {
  animation-delay: calc(var(--col, 0) * 160ms + 180ms);
}

.business-panel.is-detail .business-feature__desc {
  animation-delay: calc(var(--col, 0) * 160ms + 360ms);
}

.business-panel.is-detail .business-feature__icon {
  animation-name: about-icon-pop;
  animation-duration: 950ms;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.business-menu__item.is-active {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.5px;
}

.business-panels {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.business-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    visibility 0s linear 0.45s;
}

.business-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    visibility 0s;
}

.business-content {
  position: absolute;
  left: 50%;
  top: calc(300 / var(--about-frame-h) * 100% + 10px);
  width: min(1200px, 94vw);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.business-hero {
  width: min(1200px, 94vw);
  text-align: center;
  color: #fff;
}

.business-hero__title,
.business-hero__desc {
  opacity: 0;
  visibility: hidden;
}

.business-hero__title {
  margin: 30px 0 0;
  font-size: clamp(28px, 2.6vw, 50px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.25px;
}

.business-hero__title-accent {
  color: #7ae400;
}

.business-hero__desc {
  margin: 30px 0 0;
  font-size: clamp(16px, 1.25vw, 24px);
  font-weight: 500;
  line-height: 34px;
  letter-spacing: -0.6px;
  white-space: nowrap;
}

.business-features {
  width: 100%;
  margin-top: var(--business-hero-features-gap);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 4vw, 150px);
}

.business-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
}

.business-feature__icon,
.business-feature__title,
.business-feature__desc {
  opacity: 0;
  visibility: hidden;
}

.business-feature__icon {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.business-feature__title {
  margin: 30px 0 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.75px;
  color: rgba(255, 255, 255, 1);
}

.business-feature__desc {
  margin: 15px 0 0;
  max-width: 300px;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: -0.45px;
}

@media (max-width: 1024px) {
  .business-menu {
    top: 130px;
    height: auto;
    min-height: 72px;
    grid-template-columns: 1fr;
    border-radius: 24px;
    padding: 8px;
  }

  .business-menu__indicator {
    border-radius: 16px;
  }

  .business-menu__item.is-active {
    border-radius: 16px;
  }

  .business-panels {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 720px;
  }

  .business-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }

  .business-content {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-top: calc(28% + 10px);
    max-width: 100%;
    padding: 0 24px 120px;
  }

  .business-features {
    margin-top: var(--business-hero-features-gap);
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-section.is-stage-2 .business-stage-2 {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-section.is-business-visible .business-menu__item,
  .business-panel.is-detail .business-feature__icon,
  .business-panel.is-detail .business-feature__title,
  .business-panel.is-detail .business-feature__desc,
  .business-menu__indicator,
  .business-panel,
  .business-menu__item,
  .business-hero__title,
  .business-hero__desc,
  .business-feature__icon,
  .business-feature__title,
  .business-feature__desc {
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
  }
}
