* {
  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(149, 158, 165, 0.35) 0%, transparent 52%),
    radial-gradient(120% 90% at 88% 82%, rgba(175, 169, 133, 0.45) 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(--sky-deep);
}

.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(--sand);
}

.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(--sky-deep);
}

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

.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;
}

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

.course {
  border-top: 1px solid rgba(46, 36, 32, 0.08);
  border-bottom: 1px solid rgba(46, 36, 32, 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;
}

/* ---------- 원데이 클래스 (sky 존) ---------- */

.classes {
  background: var(--sky-tint);
}

.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(46, 36, 32, 0.06);
  border: 1px solid rgba(46, 36, 32, 0.06);
  border-left: 4px solid var(--cerulean);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.class-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(46, 36, 32, 0.12);
}

.class-card--closed {
  border-left-color: rgba(46, 36, 32, 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(--pear-deep);
  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;
  white-space: pre-line;
}

.class-card__cta {
  background: var(--cerulean);
  color: var(--ink);
  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(46, 36, 32, 0.15);
  color: var(--ink-soft);
  pointer-events: none;
}

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

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

.performance {
  text-align: center;
}

.performance__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000000;
}

.performance__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

[data-youtube-facade] {
  cursor: pointer;
}

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

.performance__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #FFFFFF;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.performance__play:hover {
  background: var(--sky-deep);
}

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

/* ---------- 링크 허브 + 푸터 (pear 존) ---------- */

.links {
  background: var(--pear);
  color: var(--ink);
}

.links__list {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.links__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(46, 36, 32, 0.06);
  border: 1px solid rgba(46, 36, 32, 0.16);
  border-radius: 50%;
  color: var(--pear-deep);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.links__item:hover {
  background: var(--sky-deep);
  border-color: var(--sky-deep);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.links__item svg {
  width: 24px;
  height: 24px;
}

.contact-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed rgba(46, 36, 32, 0.18);
  text-align: center;
}

.contact-block__label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.contact-block__cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--pear-deep);
  color: var(--pear-deep);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.contact-block__cta:hover {
  background: var(--sky-deep);
  border-color: var(--sky-deep);
  color: #FFFFFF;
}

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

.footer {
  padding: 40px 0 48px;
  text-align: center;
  background: var(--pear);
  color: var(--ink-soft);
}

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

.footer__copy {
  font-size: 0.75rem;
  color: rgba(46, 36, 32, 0.5);
  margin: 0;
}

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