/* 홈 전용 모션 — 과하지 않게 계층·호버·등장만 */
@media (prefers-reduced-motion: reduce) {
  .hero-anim,
  .hero-anim.is-in,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-left.is-in,
  .reveal-right.is-in,
  .reveal-scale.is-in,
  .btn-pulse,
  .card-media img,
  .teacher-photo img,
  .method-panel img,
  .post-thumb img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* 히어로 텍스트 순차 등장 */
.hero-bleed__content .brand-signal,
.hero-bleed__content h1,
.hero-bleed__content .lead {
  opacity: 0;
  transform: translateY(20px);
  animation: hmFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-bleed__content .brand-signal {
  animation-delay: 0.08s;
}
.hero-bleed__content h1 {
  animation-delay: 0.22s;
}
.hero-bleed__content .lead {
  animation-delay: 0.38s;
}
@keyframes hmFadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* 등장 변형 */
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}
.reveal-left.is-in,
.reveal-right.is-in,
.reveal-scale.is-in {
  opacity: 1;
  transform: none;
}

/* 그리드 자식 스태거 (부모에 is-in) */
.stagger-in > .reveal,
.stagger-in > .reveal-left,
.stagger-in > .reveal-right,
.stagger-in > .reveal-scale {
  --d: 0ms;
}
.stagger-in > *:nth-child(1) {
  --d: 0ms;
}
.stagger-in > *:nth-child(2) {
  --d: 70ms;
}
.stagger-in > *:nth-child(3) {
  --d: 140ms;
}
.stagger-in > *:nth-child(4) {
  --d: 210ms;
}
.stagger-in > *:nth-child(5) {
  --d: 280ms;
}
.stagger-in > *:nth-child(6) {
  --d: 350ms;
}
.stagger-in > *:nth-child(7) {
  --d: 400ms;
}
.stagger-in > *:nth-child(8) {
  --d: 450ms;
}
.stagger-in > *:nth-child(n + 9) {
  --d: 480ms;
}

/* 카드·이미지 호버 */
.course-grid .card,
.teacher-grid .teacher-card,
.post-grid .post-card,
.level-track .level-card {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.course-grid .card:hover,
.teacher-grid .teacher-card:hover,
.post-grid .post-card:hover,
.level-track .level-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10, 24, 48, 0.12);
}
.card-media,
.teacher-photo,
.post-thumb,
.method-panel {
  overflow: hidden;
}
.card-media img,
.teacher-photo img,
.post-thumb img,
.method-panel img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card-media img,
.teacher-card:hover .teacher-photo img,
.post-card:hover .post-thumb img,
.method-panel:hover img {
  transform: scale(1.05);
}

/* 스텝 번호 느낌 — 진입 후 살짝 강조 */
.steps .step.is-in {
  animation: hmStepIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.steps .step:nth-child(2).is-in {
  animation-delay: 0.1s;
}
.steps .step:nth-child(3).is-in {
  animation-delay: 0.2s;
}
@keyframes hmStepIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* CTA 은은한 맥박 */
.btn-pulse {
  position: relative;
}
.btn-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(212, 175, 55, 0.45);
  opacity: 0;
  animation: hmPulse 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes hmPulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  70% {
    opacity: 0;
    transform: scale(1.06);
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

/* FAQ 열릴 때 */
.faq-item summary {
  transition: color 0.2s ease;
}
.faq-item[open] summary {
  color: var(--navy-2, #0c1c3a);
}
.faq-item p {
  animation: hmFadeUp 0.35s ease both;
}

/* 섹션 헤더 언더라인 슬며시 */
.section-head.is-in h2::after {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-2, #c9a227), transparent);
  animation: hmLine 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.section-head.center.is-in h2::after {
  margin-left: auto;
  margin-right: auto;
}
@keyframes hmLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 42px;
    opacity: 1;
  }
}

/* 다크 후기 영역 */
.section-dark .review-quote.is-in {
  animation: hmFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 모바일: 모션 끄고 즉시 표시 (가로 밀림·투명 고착·터치 호버 잔상 방지) */
@media (max-width: 719px) {
  .hero-bleed__content .brand-signal,
  .hero-bleed__content h1,
  .hero-bleed__content .lead,
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .steps .step,
  .section-dark .review-quote,
  .faq-item p {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .course-grid .card,
  .teacher-grid .teacher-card,
  .post-grid .post-card,
  .level-track .level-card,
  .card-media img,
  .teacher-photo img,
  .post-thumb img,
  .method-panel img {
    transition: none !important;
    transform: none !important;
  }
  .course-grid .card:hover,
  .teacher-grid .teacher-card:hover,
  .post-grid .post-card:hover,
  .level-track .level-card:hover,
  .card:hover .card-media img,
  .teacher-card:hover .teacher-photo img,
  .post-card:hover .post-thumb img,
  .method-panel:hover img {
    transform: none !important;
    box-shadow: none;
  }
  .btn-pulse::after {
    display: none !important;
    animation: none !important;
  }
  .section-head.is-in h2::after {
    animation: none !important;
    width: 36px;
  }
}
