* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent-3);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: 0 0 24px;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  /* mp4 클립 준비 전 임시 poster: 딥한 베이스 위에 오렌지/퍼플이 은은하게 번지는 톤 */
  background:
    radial-gradient(130% 85% at 12% 8%, rgba(255, 90, 31, 0.38) 0%, transparent 52%),
    radial-gradient(120% 90% at 88% 82%, rgba(107, 63, 240, 0.4) 0%, transparent 55%),
    linear-gradient(160deg, #17120F 0%, #0D0B09 55%, #060504 100%);
  color: #FFFFFF;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__arrow:hover {
  background: var(--accent-1);
}

.hero__arrow--prev {
  left: 16px;
}

.hero__arrow--next {
  right: 16px;
}

.hero__dots {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.hero__dot.is-active {
  background: var(--accent-2);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 75%, rgba(0, 0, 0, 0.8) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 32px 20px 56px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 15vw, 6rem);
  line-height: 0.98;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.hero__headline .hl-orange {
  color: var(--accent-1);
}

.hero__headline .hl-pink {
  color: var(--accent-2);
}

.hero__sub {
  font-size: clamp(1.15rem, 4.2vw, 1.4rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 32ch;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue {
    animation: none;
  }

  .hero__slide {
    transition: none;
  }

  .class-card {
    transition: none;
  }

  .class-card:hover {
    transform: none;
  }
}

/* ---------- SECTIONS (공통) ---------- */

.section {
  padding: 64px 0;
}

.section--surface {
  background: var(--surface);
}

/* ---------- 강의 소개 (course) ---------- */

.course {
  border-top: 1px solid rgba(26, 23, 20, 0.08);
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
}

.course__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent-3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.course__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  margin: 0 0 20px;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent-3);
  color: #FFFFFF;
}

/* ---------- 원데이 클래스 ---------- */

.classes__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.class-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(26, 23, 20, 0.06);
  border: 1px solid rgba(26, 23, 20, 0.06);
  border-left: 4px solid var(--accent-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.class-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 23, 20, 0.12);
}

.class-card--closed {
  border-left-color: rgba(26, 23, 20, 0.15);
}

.class-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.class-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0;
}

.class-card__badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent-2);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.class-card__meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.class-card__desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.class-card__cta {
  background: var(--accent-1);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
}

.class-card--closed .class-card__cta {
  background: rgba(26, 23, 20, 0.15);
  color: var(--ink-soft);
  pointer-events: none;
}

.classes__empty {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- 공연 영상 ---------- */

.performance {
  text-align: center;
}

.performance__lede {
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--accent-1);
  color: var(--accent-1);
}

/* ---------- 링크 허브 ---------- */

.links__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  border: 1px solid rgba(26, 23, 20, 0.06);
}

.links__item span:last-child {
  color: var(--accent-3);
}

/* ---------- 푸터 ---------- */

.footer {
  padding: 48px 0 40px;
  text-align: center;
}

.footer__blurb {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(26, 23, 20, 0.45);
  margin: 0;
}

@media (min-width: 640px) {
  .class-card {
    padding: 24px;
  }
}
