html {
  height: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 76px);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  overflow-x: hidden;
  transition: background .4s, color .4s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg-canvas);
}

.kr {
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.w {
  max-width: 1120px;
  margin: auto;
  padding: 0 var(--s3);
}

section {
  padding: var(--space-section-y) 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.peek-name,
.bento-info h3,
.action-card h3 {
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 800;
}

h1 {
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}

h2 {
  font-size: var(--fs-title);
  margin-bottom: var(--s2);
  max-width: 18ch;
  text-wrap: balance;
}

h3 {
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 800;
}

p {
  max-width: 62ch;
  color: var(--text-secondary);
}

#bar {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-highlight) 50%, var(--accent-secondary) 100%);
  z-index: 70;
}

header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg-canvas) 82%, transparent);
  border-bottom: 1px solid var(--border-subtle);
}

header .w {
  display: flex;
  align-items: center;
  gap: var(--s3);
  height: var(--s6);
}

.logo {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-right: auto;
}

.logo b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent-primary);
  color: var(--text-on-accent);
  font: 800 var(--fs-body)/1 var(--font-body);
  transition: transform .5s var(--ez-out);
}

.logo:hover b {
  transform: rotate(-12deg) scale(1.1);
}

nav {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

nav a {
  display: inline-flex;
  align-items: center;
  padding: var(--s1) var(--s2);
  /* 8px 16px (8pt 그리드 준수) */
  border-radius: 99px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1.25;
  color: var(--text-secondary);
  transition: background var(--dur-base) var(--ez-out), color var(--dur-base) var(--ez-out);
}

nav a:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

nav a.on {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}

nav a.nav-cta-pill {
  background: var(--accent-secondary);
  color: var(--text-on-accent);
}

nav a.nav-cta-pill:hover,
nav a.nav-cta-pill.on {
  background: var(--accent-highlight);
  color: var(--text-on-accent);
}

#th {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .5s var(--ez-out);
}

#th:hover {
  transform: rotate(90deg);
}

.join-page #th {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 760px) {
  header {
    display: none;
  }
}

/* ==========================================================================
   서브 상단 캡슐 스위처 (.sub-capsule-wrap) — 데스크톱 전용, 스크롤 방향 반응형
   ========================================================================== */
.sub-capsule-wrap {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 12px);
  left: 50%;
  z-index: 45;
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s var(--ez-out);
}

.sub-capsule-wrap.is-hidden {
  transform: translate3d(-50%, -18px, 0) scale(0.96);
  opacity: 0;
}

.sub-capsule {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--bg-surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 14px 32px -12px rgba(15, 23, 42, 0.12),
    0 2px 6px -1px rgba(15, 23, 42, 0.05);
  pointer-events: auto;
}

.sub-capsule-wrap.is-hidden .sub-capsule {
  pointer-events: none;
}

.sub-capsule-link {
  display: inline-flex;
  align-items: center;
  padding: 6px var(--s2);
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  white-space: nowrap;
  transition:
    background var(--dur-base) var(--ez-out),
    color var(--dur-base) var(--ez-out),
    transform var(--dur-fast) var(--ez-out);
}

.sub-capsule-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.sub-capsule-link:active {
  transform: scale(0.97);
}

.sub-capsule-link.is-active {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  box-shadow: 0 4px 12px -3px color-mix(in srgb, var(--accent-primary) 45%, transparent);
}

.sub-capsule-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
  opacity: 0.45;
  flex: none;
  pointer-events: none;
}

@media (max-width: 760px) {
  .sub-capsule-wrap {
    display: none !important;
  }
}

.stripe-burger,
.stripe-sheet {
  display: none;
}

@media (max-width: 760px) {
  .stripe-burger {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: 16px;
    z-index: 160;
    width: 48px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(15, 23, 42, 0.05);
    color: var(--accent-primary);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    pointer-events: auto;
    transition: background 0.35s var(--ez-out), border-color 0.35s var(--ez-out), box-shadow 0.35s var(--ez-out), transform 0.25s var(--ez-out);
    -webkit-tap-highlight-color: transparent;
  }

  .stripe-burger:active {
    transform: scale(0.94);
  }

  body.menu-open .stripe-burger {
    background: var(--bg-surface);
    border-color: transparent;
    box-shadow: none;
    color: var(--accent-primary);
  }

  /* 햄버거 3줄 -> X자 모핑 아이콘 */
  .stripe-burger-box {
    position: relative;
    width: 18px;
    height: 14px;
    display: block;
  }

  .stripe-burger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, top 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .stripe-burger-line:nth-child(1) {
    top: 0;
  }

  .stripe-burger-line:nth-child(2) {
    top: 6px;
  }

  .stripe-burger-line:nth-child(3) {
    top: 12px;
  }

  body.menu-open .stripe-burger-line:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
  }

  body.menu-open .stripe-burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.2);
  }

  body.menu-open .stripe-burger-line:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
  }

  .stripe-sheet {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--bg-surface);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
    overflow-y: auto;
    pointer-events: none;
    visibility: hidden;
    clip-path: inset(calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(100% - env(safe-area-inset-top, 0px) - 58px) calc(100% - 64px) round 10px);
    opacity: 0;
    transition:
      clip-path 0.52s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.22s ease,
      visibility 0s linear 0.52s;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .stripe-sheet {
    pointer-events: auto;
    visibility: visible;
    clip-path: inset(0px 0px 0px 0px round 0px);
    opacity: 1;
    transition:
      clip-path 0.52s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.15s ease,
      visibility 0s linear 0s;
  }

  /* 시트 상단 헤더: 좌측 로고 (join.html에서도 로고 글씨가 진한 남색으로 선명하게 보이도록 보장) */
  .stripe-sheet-top {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: var(--s3);
    color: var(--text-primary);
  }

  /* 시트 내부 네비게이션 리스트 (점선 구분선 + 우측 파란 화살표) */
  .stripe-sheet-nav {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .stripe-sheet-item {
    border-bottom: 1px dashed var(--border-subtle);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.38s var(--ez-out), transform 0.38s var(--ez-out);
    transition-delay: calc(var(--m, 0) * 45ms + 120ms);
  }

  body.menu-open .stripe-sheet-item {
    opacity: 1;
    transform: translateY(0);
  }

  .stripe-sheet-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    font-family: var(--font-head);
    font-size: var(--fs-sub);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .stripe-sheet-link:active,
  .stripe-sheet-link.is-active {
    color: var(--accent-primary);
  }

  .stripe-sheet-chevron {
    color: var(--accent-primary);
    flex: none;
    transition: transform 0.25s var(--ez-out);
  }

  .stripe-sheet-link:active .stripe-sheet-chevron {
    transform: translateX(4px);
  }

  .stripe-sheet-bottom {
    margin-top: var(--s4);
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.42s var(--ez-out) 0.32s, transform 0.42s var(--ez-out) 0.32s;
  }

  body.menu-open .stripe-sheet-bottom {
    opacity: 1;
    transform: translateY(0);
  }

  .stripe-promo-box {
    display: block;
    padding: var(--s3);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    text-align: left;
    transition: border-color 0.25s ease, background 0.25s ease;
  }

  .stripe-promo-box:active {
    border-color: var(--accent-primary);
    background: var(--bg-canvas);
  }

  .stripe-promo-title {
    display: block;
    font-family: var(--font-head);
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 4px;
  }

  .stripe-promo-desc {
    display: block;
    font-size: var(--fs-micro);
    color: var(--text-secondary);
    line-height: 1.45;
  }

  .stripe-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .stripe-btn-primary,
  .stripe-btn-secondary {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s var(--ez-out), background 0.2s ease;
  }

  .stripe-btn-primary {
    background: var(--accent-primary);
    color: var(--bg-surface);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 6px 18px -6px rgba(37, 99, 235, 0.45);
  }

  .stripe-btn-secondary {
    background: var(--bg-surface);
    color: var(--accent-primary);
    border: 1px solid var(--border-subtle);
  }

  .stripe-btn-primary:active,
  .stripe-btn-secondary:active {
    transform: scale(0.98);
  }
}

/* hero */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s7) 0;
  text-align: center;
}

.live-dot,
.res-wave-dot {
  position: relative;
}

.live-dot::before,
.res-wave-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pu 1.8s var(--ez-out) infinite;
  pointer-events: none;
}

@keyframes pu {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }

  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

h1 .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) rotate(6deg);
  animation: up .8s var(--ez-out) forwards;
  animation-delay: calc(var(--i) * 28ms + .15s);
}

@keyframes up {
  to {
    opacity: 1;
    transform: none;
  }
}

h1 em {
  font-style: normal;
  color: var(--accent-primary);
}

.hero p.lead {
  font-size: clamp(var(--fs-sub), 2.2vw, var(--fs-title));
  color: var(--text-primary);
  margin: var(--s3) auto var(--s4);
  opacity: 0;
  animation: up .8s .9s var(--ez-out) forwards;
}

.b {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: var(--s2) var(--s3);
  border-radius: 99px;
  font-size: var(--fs-body);
  font-family: inherit;
  border: 2px solid var(--text-primary);
  background: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform .3s var(--ez-out), translate .2s, background .3s, color .3s;
}

.b.p {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-surface);
}

.b:hover {
  transform: translateY(-3px) scale(1.03);
}

.b:active {
  transform: scale(.96);
}

.b svg {
  transition: transform .3s var(--ez-out);
}

.b:hover svg {
  transform: translateX(4px);
}

/* reveal */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ez-out), transform .8s var(--ez-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* about */
.ab {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: var(--s7);
  align-items: start;
}

.ab h2 {
  max-width: 14ch;
}

.big {
  font-size: var(--fs-sub);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
  margin: var(--s2) 0;
}

.q {
  border-left: 4px solid var(--accent-secondary);
  padding-left: var(--s2);
  margin: var(--s3) 0;
}

.cards {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s3);
}

.cd {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: var(--s2) var(--s3);
  transition: transform .35s var(--ez-out), box-shadow .35s;
}

.cd:hover {
  transform: translateX(8px);
  box-shadow: -6px 8px 0 var(--bg-subtle);
}

.cd svg {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--accent-primary);
}

.cd h3 {
  font-size: var(--fs-sub);
  margin-bottom: 0;
}

.cd p {
  font-size: var(--fs-body);
}


@media(max-width: 760px) {
  .ab {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
}

.action-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: var(--s4) var(--s3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.05);
  transition: transform .4s var(--ez-out), border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.action-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 30px -10px rgba(37, 64, 232, 0.18);
}

.action-card-featured {
  border-color: color-mix(in srgb, var(--accent-secondary) 40%, transparent);
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-subtle));
}

.action-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--bg-subtle);
  color: var(--accent-primary);
  display: grid;
  place-items: center;
  margin-bottom: var(--s2);
  transition: transform .4s var(--ez-out), background .3s, color .3s;
}

.action-card:hover .action-card-icon {
  transform: scale(1.1) rotate(6deg);
  background: var(--accent-primary);
  color: var(--bg-surface);
}

.action-card h3 {
  font-size: var(--fs-sub);
  margin-bottom: var(--s1);
}

.action-card p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  margin-bottom: var(--s3);
  flex-grow: 1;
}

.action-card .btn-card {
  width: 100%;
  min-height: 48px;
  padding: var(--s1) var(--s3);
  font-size: var(--fs-body);
  justify-content: center;
}

.copy-sub-action {
  margin-top: var(--s1);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: var(--fs-micro);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.copy-sub-action:hover {
  color: var(--accent-secondary);
}

@media(max-width: 760px) {
  .contact-actions-grid {
    grid-template-columns: 1fr;
  }
}

#copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-inverse);
  color: var(--text-inverse);
  padding: var(--s2) var(--s3);
  border-radius: 99px;
  font-size: var(--fs-micro);
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ez-out), transform .25s var(--ez-out);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: var(--s1);
}

#copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* cta */
.ct {
  text-align: center;
  padding: var(--s11) 0 var(--s14);
}

.ct h2 {
  margin: 0 auto var(--s2);
  max-width: 16ch;
}

.ct p {
  margin: 0 auto var(--s4);
}

.ct .kr {
  display: block;
  font-size: var(--fs-hero);
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1.1;
  margin-bottom: var(--s1);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, color-mix(in srgb, var(--c) 45%, transparent) 38%, transparent 70%);
  opacity: var(--oo, .28);
  will-change: transform;
  animation: dft 24s ease-in-out infinite alternate;
}

@keyframes dft {
  to {
    transform: translate(70px, 50px) scale(1.15);
  }
}

.b {
  translate: var(--bx, 0) var(--by, 0);
}

.arch {
  transform: none;
  transition: none;
}

h2::after {
  content: "";
  display: block;
  height: 6px;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-secondary));
  margin-top: var(--s2);
  transition: width 1s .4s var(--ez-out);
}

h2.in::after {
  width: 72px;
}

.ct h2::after {
  margin: var(--s2) auto 0;
}

.cd,
.action-card {
  position: relative;
  overflow: hidden;
}

.sc::after,
.cd::after,
.mt::after,
.action-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, var(--accent-primary) 14%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.sc:hover::after,
.cd:hover::after,
.mt:hover::after,
.action-card:hover::after {
  opacity: 1;
}

.sc.rv:not(.in) {
  transform: translateY(30px) scale(.9);
}

.cd.rv:not(.in) {
  transform: translateX(-36px);
}

.mt.rv:not(.in) {
  transform: translateY(40px) scale(.92) rotate(-2deg);
}

.ct .kr span {
  display: inline-block;
  animation: wv 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * .15s);
}

@keyframes wv {
  50% {
    transform: translateY(-14px);
  }
}

footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--s3) 0;
  color: var(--text-secondary);
  font-size: var(--fs-micro);
  text-align: center;
}

footer p {
  max-width: none;
  margin: 0 auto;
}

.b.p {
  position: relative;
  overflow: hidden;
}

.b.p::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, #ffffff 40%, transparent) 50%, transparent 65%);
  transform: translateX(-120%);
}

.b.p:hover::after {
  transform: translateX(120%);
  transition: transform .7s var(--ez-out);
}

.ph {
  will-change: transform;
}


.course-card h2 {
  max-width: 20ch;
  font-size: var(--fs-title);
}

.course-card h2::after {
  display: none;
}

.course-card>p {
  font-size: var(--fs-body);
}


.course-card .b.p {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.course-all {
  display: flex;
  justify-content: center;
  margin-top: var(--s4);
}

@media(max-width: 760px) {
  .course-card {
    padding: var(--s5) var(--s3) var(--s4);
  }

  .course-foot .b {
    width: 100%;
    justify-content: center;
  }
}

/* Unified Reduced Motion Accessibility Block (Moved to bottom) */
/* ==========================================================================
   Sección 4: Cursos (Horizontal Peek Showcase)
   ========================================================================== */
.section-cursos {
  padding: var(--space-section-y) 0;
}

.cursos-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s4);
  margin-bottom: var(--s5);
}

.cursos-head-cta {
  flex: none;
}

.cursos-title {
  font-size: clamp(var(--fs-hero), 7vw, var(--fs-hero-impact));
  max-width: none;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--s2);
}

.cursos-lead {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--s1);
}

.cursos-sub {
  font-size: var(--fs-body);
  color: var(--text-secondary);
}

.cursos-nav {
  display: flex;
  gap: var(--s2);
  flex: none;
}

.section-cursos .course-all {
  margin-top: var(--s2);
}

.peek-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .3s var(--ez-out), border-color .3s, background .3s;
}

.peek-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-subtle);
  transform: scale(1.06);
}

.peek-track {
  display: flex;
  gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--s1) max(var(--s3), calc(50vw - 180px)) var(--s4);
  scrollbar-width: none;
}

.peek-track.is-spinning {
  scroll-snap-type: none;
  scroll-behavior: auto;
  pointer-events: none;
  /* 도는 동안 마우스 클릭/드래그/호버 간섭 원천 차단 */
}

.peek-track::-webkit-scrollbar {
  display: none;
}

.peek-card {
  flex: 0 0 360px;
  scroll-snap-align: center;
  /* 기존 start 에서 center 로 변경! */
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: var(--s5) var(--s4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s4);
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ez-out), border-color .35s, box-shadow .35s;
}

.peek-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: 0 24px 48px -18px color-mix(in srgb, var(--accent-primary) 18%, transparent);
}

.peek-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, var(--accent-primary) 12%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.peek-card:hover::after {
  opacity: 1;
}

.peek-card-primary {
  background: linear-gradient(160deg, var(--bg-feature-dark), var(--bg-feature-mid) 65%, var(--bg-feature-glow));
  border-color: transparent;
  color: var(--text-on-feature);
}

.peek-card-primary .peek-name,
.peek-card-primary .peek-punch {
  color: var(--text-on-feature);
}

.peek-card-primary .peek-desc {
  color: var(--text-on-feature-muted);
}

.peek-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.peek-tag {
  display: inline-block;
  padding: var(--s1) var(--s2);
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--accent-primary);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: .06em;
}

.peek-card-primary .peek-tag {
  background: color-mix(in srgb, #fff 16%, transparent);
  color: #fff;
}

.peek-tag-accent {
  background: color-mix(in srgb, var(--accent-secondary) 15%, transparent);
  color: var(--accent-secondary);
}

.peek-kr {
  font-size: var(--fs-title);
  font-weight: 800;
  color: var(--accent-primary);
  opacity: .35;
}

.peek-card-primary .peek-kr {
  color: #fff;
  opacity: .5;
}

.peek-name {
  font-size: var(--fs-title);
  color: var(--text-primary);
  margin-bottom: var(--s1);
}

.peek-punch {
  font-size: var(--fs-sub);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--s1);
}

.peek-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
}

@media(max-width: 760px) {
  .cursos-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .peek-card {
    flex: 0 0 84vw;
  }
}

/* ==========================================================================
   ACCESSIBILITY: Unified Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .gl,
  .orb,
  .mq div,
  .cs::before,
  .cs::after {
    animation: none !important;
  }

  .b.p::after {
    display: none !important;
  }

  .rv,
  h1 .ch,
  .hero p.lead,
  .btns,
  .ex .k span,
  .ex .e {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}