/* =============================================================
   와이비(Whybe) 전역 스타일
   - 색상: 로고 기준 짙은 네이비 + 라임그린 포인트 (채도 낮춘 컨설턴트 톤)
   - 레이아웃 공통값은 :root 변수로만 관리 → 개별 섹션에서 직접 지정 금지
   ============================================================= */

:root {
  /* --- 브랜드 컬러 --- */
  --navy: #123a63;          /* 로고 'Why' */
  --navy-deep: #0d2c4c;     /* 더 짙은 네이비(푸터/강조) */
  --navy-soft: #2c5688;     /* 보조 네이비 */
  --lime: #8bbf3c;          /* 로고 'BE' (살짝 채도 낮춤) */
  --lime-deep: #6f9e2b;     /* 라임 hover */
  --lime-soft: #eaf3d8;     /* 라임 배경 틴트 */

  /* --- 중립 --- */
  --bg: #ffffff;
  --bg-alt: #f6f8fa;        /* 아주 옅은 그레이 */
  --bg-tint: #eef2f6;
  --border: #e2e8f0;
  --ink: #16202b;           /* 본문 진한 텍스트 */
  --ink-soft: #46586b;      /* 보조 텍스트 */
  --ink-mute: #7b8b9c;      /* 캡션 */
  --white: #ffffff;

  /* --- 타이포 --- */
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  /* --- 레이아웃 공통값 (전 섹션 통일) --- */
  --section-max: 1120px;                 /* 콘텐츠 최대 폭 */
  --section-pad-y: clamp(64px, 9vh, 120px);
  --section-pad-x: clamp(20px, 5vw, 48px);
  --character-text-gap: clamp(28px, 4vw, 52px); /* 캐릭터 ↔ 텍스트 간격 (전 섹션 통일) */
  --content-gap: clamp(18px, 2.4vw, 28px);      /* 텍스트 내부 블록 간격 */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(18, 58, 99, 0.06);
  --shadow-md: 0 10px 34px rgba(18, 58, 99, 0.10);
  --maxvw-char-mobile: 60vw;             /* 모바일 캐릭터 폭 (55~65 범위) */
}

/* --- reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden; /* body 가로 스크롤만 방지 (캐릭터 컨테이너에는 사용 안 함) */
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
ul {
  list-style: none;
  padding: 0;
}

/* =============================================================
   SectionWrapper — 모든 섹션은 이 컴포넌트를 통해서만 배치
   기본값: flex column / align-items center / text-align center
   ============================================================= */
.section {
  width: 100%;
  display: flex;
  justify-content: center; /* 내부 inner를 중앙 정렬 */
  padding: var(--section-pad-y) var(--section-pad-x);
}
.section--alt {
  background: var(--bg-alt);
}
.section--navy {
  background: var(--navy-deep);
  color: #eaf1f8;
}
.section__inner {
  width: 100%;
  max-width: var(--section-max);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--character-text-gap);
}

/* =============================================================
   CharacterImage — 캐릭터 이미지 전용 컴포넌트
   - PC: 콘텐츠 폭의 최대 30% (비율값, px 고정 금지)
   - 모바일(<=768px): 뷰포트 55~65% 범위
   - overflow:hidden 금지 / absolute 겹침 금지 (flex로 분리)
   ============================================================= */
.character {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.character__img {
  width: 100%;
  max-width: 30%;          /* PC: 콘텐츠 폭의 30% */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(18, 58, 99, 0.12));
}
/* 캐릭터를 조금 더/덜 크게 쓰고 싶은 섹션용 변형(여전히 비율값·30% 이하 유지) */
.character__img--sm {
  max-width: 22%;
}

/* =============================================================
   타이포 유틸
   ============================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-deep);
  background: var(--lime-soft);
  padding: 7px 14px;
  border-radius: 999px;
}
.section--navy .eyebrow {
  color: #cfe6a3;
  background: rgba(139, 191, 60, 0.16);
}
.title {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.section--navy .title {
  color: #ffffff;
}
.title .accent {
  color: var(--lime-deep);
}
.section--navy .title .accent {
  color: var(--lime);
}
.lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 60ch;
}
.section--navy .lead {
  color: #c4d4e4;
}
.muted {
  color: var(--ink-mute);
  font-size: 0.92rem;
}

/* 텍스트 블록 묶음 */
.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--content-gap);
  width: 100%;
}

/* =============================================================
   버튼
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 34px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--lime);
  color: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(139, 191, 60, 0.35);
}
.btn--primary:hover {
  background: var(--lime-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(111, 158, 43, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* =============================================================
   카드 / 그리드 공용
   ============================================================= */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden; /* 카드(썸네일)에서만 허용 — 캐릭터가 아님 */
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-tint);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card__title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
}
.card__desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* --- 실적 통계 타일 --- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2vw, 22px);
  width: 100%;
}
.stat {
  flex: 1 1 180px;
  max-width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
}
.section--navy .stat {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.stat__num {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.section--navy .stat__num { color: #fff; }
.stat__num .unit {
  font-size: 0.55em;
  color: var(--lime-deep);
  margin-left: 3px;
}
.section--navy .stat__num .unit { color: var(--lime); }
.stat__label {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.section--navy .stat__label { color: #b9cbe0; }

/* --- 증빙 이미지 카드(라벨 포함) --- */
.proof {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: left;
  display: flex;
  flex-direction: column;
}
.proof__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-tint);
}
.proof__media img { width: 100%; height: 100%; object-fit: cover; }
.proof__body { padding: 16px 18px 20px; }
.proof__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lime-deep);
  background: var(--lime-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.proof__title { font-weight: 800; color: var(--navy); font-size: 1rem; }
.proof__meta { font-size: 0.85rem; color: var(--ink-mute); margin-top: 4px; }

/* --- 텍스트 실적(사진 없음) 리스트 --- */
.text-facts {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 760px;
}
.text-fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.section--navy .text-fact {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: var(--lime);
}
.text-fact__k { font-weight: 800; color: var(--navy); white-space: nowrap; }
.section--navy .text-fact__k { color: var(--lime); }
.text-fact__v { color: var(--ink-soft); }
.section--navy .text-fact__v { color: #c4d4e4; }

/* --- 태그 / 포지셔닝 pill --- */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.pill {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--bg-tint);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
}

/* --- 강의 파트(교차 배치) --- */
.lecture {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--character-text-gap);
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.lecture__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lecture__num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--lime-deep);
  letter-spacing: 0.05em;
}
.lecture__title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; color: var(--navy); }
.lecture__one { color: var(--ink-soft); max-width: 56ch; }
.lecture__sites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
}

/* --- 추천 대상 리스트 --- */
.reco-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  width: 100%;
  text-align: left;
}
.reco {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.reco__ic {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lime-soft);
  color: var(--lime-deep);
  font-weight: 900;
}
.reco__t { font-weight: 700; color: var(--ink); }

/* --- 연결 카드(외부 사이트) --- */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.2vw, 24px);
  width: 100%;
}
.connect {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.18s ease, background 0.2s ease;
}
.connect:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.1); }
.connect__name { font-size: 1.25rem; font-weight: 800; color: #fff; }
.connect__desc { color: #c4d4e4; font-size: 0.95rem; }
.connect__go { margin-top: 10px; font-weight: 700; color: var(--lime); }

/* --- 개인정보 안내 --- */
.privacy {
  font-size: 0.82rem;
  color: var(--ink-mute);
  max-width: 52ch;
}
.section--navy .privacy { color: #9fb3c8; }

/* --- 히어로 스크롤 큐 --- */
.hero__scroll {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-mute);
}
.hero__scroll:hover { color: var(--navy); }
.hero__scroll-arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--lime-deep);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-arrow { animation: none; }
}

/* =============================================================
   헤더 / 푸터
   ============================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.header--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(18, 58, 99, 0.08);
}
.header__inner {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 11px var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* 로고: 감싸는 컨테이너에 배경/보더/그림자 없음. 헤더 높이의 ~72% 크기 */
.header__logo {
  height: 58px;
  width: auto;
  display: block;
  background: none;
  border: 0;
  box-shadow: none;
  transition: transform 0.2s ease;
}
.header__logo:hover { transform: scale(1.04); }
.header__nav { display: flex; gap: 22px; align-items: center; }
.header__nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.header__nav a:hover { color: var(--navy); }
.header__cta {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-deep);
  background: var(--lime);
  padding: 9px 18px;
  border-radius: 999px;
}
.header__cta:hover { background: var(--lime-deep); color: #fff; }

.footer {
  background: var(--navy-deep);
  color: #b9cbe0;
  padding: clamp(44px, 6vw, 72px) var(--section-pad-x) 40px;
}
.footer__inner {
  max-width: var(--section-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.footer__logo {
  height: 52px;
  width: auto;
  /* 투명 로고(라이트 변형) — 배경 박스 없음 */
}
.footer__tag { color: #8ea6bf; font-size: 0.9rem; max-width: 46ch; }
.footer__biz {
  font-size: 0.85rem;
  color: #8ea6bf;
  line-height: 1.9;
}
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  font-weight: 700;
  font-size: 0.88rem;
  color: #cfe0f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 16px;
  border-radius: 999px;
}
.footer__social a:hover { background: rgba(255, 255, 255, 0.08); }
.footer__copy { font-size: 0.8rem; color: #6f8aa6; }

/* =============================================================
   Reveal (IntersectionObserver, 한 번 나타나면 유지 — 재숨김 없음)
   스크롤 방향과 무관하게 동일하게 보이도록 on/off가 아닌 on-only
   ============================================================= */
/* JS가 로드된 경우에만 숨김 시작 → JS 미동작 시 콘텐츠는 항상 보임(안전장치) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 80ms); /* 그리드 스태거 */
  will-change: opacity, transform;
}
.js .reveal.from-left { transform: translateX(-44px); }
.js .reveal.from-right { transform: translateX(44px); }
.js .reveal.zoom { transform: scale(0.92); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .character__img { animation: none !important; }
}

/* =============================================================
   반응형
   ============================================================= */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root {
    --section-pad-y: clamp(52px, 8vh, 80px);
  }
  .header__nav { display: none; } /* 모바일: 내비 링크 숨기고 CTA만 유지 */
  .character__img,
  .character__img--sm {
    max-width: var(--maxvw-char-mobile); /* 모바일: 뷰포트 55~65% */
  }
  .grid--2,
  .grid--3,
  .connect-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid--3 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

/* =============================================================
   생동감 강화 — 인터랙션 · 애니메이션 (맛집감별사 톤 참고)
   ============================================================= */

/* --- 히어로 배경 악센트 (은은한 라임/네이비 글로우) --- */
#hero { position: relative; }
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 14% 18%, rgba(139, 191, 60, 0.16), transparent 70%),
    radial-gradient(48% 42% at 86% 12%, rgba(18, 58, 99, 0.10), transparent 70%);
}
#hero > .section__inner { position: relative; z-index: 1; }

/* --- 캐릭터: 은은한 플로팅 + 호버 --- */
.character__img {
  animation: floaty 7s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.character__img--sm { animation-duration: 6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --- 실적 스탯 카드: 라임 강조 + 호버 + 상단 액센트 바 --- */
.stat {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--lime-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--lime); }
.stat:hover::before { transform: scaleX(1); }
.stat__num {
  color: var(--lime-deep);
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.02em;
}
.section--navy .stat__num { color: var(--lime); }
.stat__num .unit {
  color: var(--navy);
  font-size: 0.46em;
  margin-left: 2px;
}
.section--navy .stat__num .unit { color: #dbe7f3; }

/* --- 카드/증빙: 호버 리프트 + 이미지 줌 --- */
.card__media img,
.proof__media img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__media img,
.proof:hover .proof__media img { transform: scale(1.06); }
.proof { transition: transform 0.18s ease, box-shadow 0.2s ease; }
.proof:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* 결과 섹션 증빙: 세로 인물/문서 사진 → 얼굴·핵심이 안 잘리게 세로 비율 + 상단 정렬 */
.proof--tall .proof__media { aspect-ratio: 3 / 4; }
.proof--tall .proof__media img { object-position: center 18%; }

/* --- 추천 카드 호버 --- */
.reco { transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.reco:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--lime); }

/* --- 강의 현장 사진: 단일/복수 모두 동일 폭으로 통일 --- */
.lecture__sites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.lecture__sites .card { flex: 0 1 300px; max-width: 340px; }

/* --- 사회공헌: 선정 항목 하이라이트 밴드 --- */
.highlight-band {
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(90deg, var(--lime-soft), #ffffff);
  border: 1px solid var(--border);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
}
.highlight-band__k {
  font-weight: 800;
  color: var(--lime-deep);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.highlight-band__v { font-weight: 700; color: var(--navy); }

/* --- 결과 섹션: 방송/해외 경험을 명확히 구분하는 소제목 --- */
.subhead {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* --- 버튼 강화 --- */
.btn--primary { position: relative; }
.btn--primary:hover { transform: translateY(-3px) scale(1.02); }
.btn--primary:active { transform: translateY(-1px) scale(0.99); }

/* --- 연결 카드 화살표 이동 --- */
.connect__go { transition: transform 0.2s ease; display: inline-block; }
.connect:hover .connect__go { transform: translateX(6px); }

/* --- 섹션 타이틀 살짝 큰 대비 --- */
.title { line-height: 1.22; }
.title .accent { position: relative; white-space: nowrap; }

/* --- 카운트업 숫자 폭 안정화(애니메이션 중 폭 튐 방지) --- */
.count { font-variant-numeric: tabular-nums; }

/* --- 온라인 확장 사례 카드(장지녕간장게장 등) --- */
.case {
  width: 100%;
  max-width: 780px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 5px solid var(--lime);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.case:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(18, 58, 99, 0.14); }
.case__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--lime-deep);
  background: var(--lime-soft);
  padding: 6px 14px;
  border-radius: 999px;
}
.case__name { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; color: var(--navy); }
.case__desc { color: var(--ink-soft); max-width: 54ch; line-height: 1.7; }
.case__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  width: 100%;
}
.case__stats .stat { flex: 1 1 150px; max-width: 220px; }

/* --- 방송 출연 블록(사회공헌 연장선) --- */
.onair {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  text-align: left;
}
.onair__ic {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 1.3rem;
}
.onair__t { color: var(--ink-soft); font-weight: 600; }
.onair__t b { color: var(--navy); font-weight: 800; }

/* --- 추천 카드 강화(맛집감별사 카드 컴포넌트 톤) --- */
.reco {
  gap: 16px;
  padding: 22px 24px;
  align-items: center;
}
.reco__ic {
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(139, 191, 60, 0.25);
}
.reco__t { font-size: 0.98rem; line-height: 1.5; }

/* --- 강의: 현장 사진 통일 그리드(4:3) --- */
.site-grid { width: 100%; }
.site-grid .card__media { aspect-ratio: 4 / 3; }

/* =============================================================
   REDESIGN v2 — 대각선 컬러블록 · 대형 타이포 · 텍스트 로고 · 원형 인터랙션
   (미니언즈 팬사이트/콜라보 배너 레이아웃 참고, WhyBE 컬러로 치환)
   ============================================================= */

/* --- 텍스트 로고 --- */
.brand {
  display: inline-flex;
  align-items: baseline;
  font-weight: 900;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand__why { color: var(--navy); }
.brand__be { color: var(--lime); }
.brand:hover { transform: scale(1.04); transition: transform 0.2s ease; }
.brand--footer { font-size: 2.2rem; }
.brand--footer .brand__why { color: #ffffff; } /* 네이비 푸터에서 보이도록 */

/* --- 섹션 스택/z-index: 앞 섹션이 위에 → 캐릭터가 다음 밴드를 넘어 보이게 --- */
.section { position: relative; }
.section > .section__inner { position: relative; z-index: 2; }
main > section:nth-of-type(1) { z-index: 20; }
main > section:nth-of-type(2) { z-index: 19; }
main > section:nth-of-type(3) { z-index: 18; }
main > section:nth-of-type(4) { z-index: 17; }
main > section:nth-of-type(5) { z-index: 16; }
main > section:nth-of-type(6) { z-index: 15; }
main > section:nth-of-type(7) { z-index: 14; }
main > section:nth-of-type(8) { z-index: 13; }
main > section:nth-of-type(9) { z-index: 12; }
main > section:nth-of-type(10) { z-index: 11; }

/* --- 대각선 컬러 밴드 (배경은 ::before에 clip-path → 콘텐츠/캐릭터는 안 잘림) --- */
.band-navy, .band-lime, .band-white { --band-slant: 3.4vw; }
.band-navy::before,
.band-lime::before,
.band-white::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 0;
  clip-path: polygon(0 var(--band-slant), 100% 0, 100% 100%, 0 100%);
}
.band-navy::before { background: var(--navy-deep); }
.band-lime::before { background: var(--lime); }
.band-white::before { background: var(--bg-alt); }

/* 밴드 위 텍스트 색 */
.band-navy { color: #dfe9f4; }
.band-navy .title { color: #fff; }
.band-navy .title .accent { color: var(--lime); }
.band-navy .lead, .band-navy .hero__sub { color: #c8d8e8; }
.band-navy .eyebrow { color: #cfe6a3; background: rgba(139, 191, 60, 0.18); }
.band-navy .subhead { color: #9fb3c8; }
.band-navy .lecture__title { color: #fff; }
.band-navy .stat { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
.band-navy .stat__label { color: #b9cbe0; }
.band-navy .stat__num[style] { color: #fff !important; }
.band-navy .text-fact { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); border-left-color: var(--lime); }
.band-navy .text-fact__k { color: var(--lime); }
.band-navy .text-fact__v { color: #c8d8e8; }

.band-lime .title { color: var(--navy-deep); }
.band-lime .title .accent {
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.6);
  padding: 0 0.14em;
  border-radius: 8px;
}
.band-lime .lead { color: #10331d; }
.band-lime .eyebrow { color: var(--navy-deep); background: rgba(19, 41, 79, 0.16); }
.band-lime .lecture__title { color: var(--navy-deep); }
.band-lime .onair { background: #fff; }

/* --- 대형 스택 타이포 --- */
.title {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
}
.title--hero {
  font-size: clamp(3rem, 11vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  color: var(--navy);
  max-width: 42ch;
  letter-spacing: -0.01em;
}
.hero__sub b { color: var(--lime-deep); font-weight: 900; }

/* --- 캐릭터 확대 + 섹션 경계 넘김(넘쳐도 안 잘림) --- */
.character__img { max-width: 38%; }
.character__img--sm { max-width: 30%; }
#hero .character__img { max-width: 44%; }
.section__inner > .character {
  margin-bottom: -2.6vw; /* 다음 밴드 위로 살짝 넘어오게 */
  z-index: 4;
}

/* --- 원형 확대 버튼(증빙·현장 사진) --- */
.card__media, .proof__media { position: relative; }
.media-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(13, 44, 76, 0) 40%, rgba(13, 44, 76, 0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
  color: #fff;
}
.card__media:hover .media-zoom,
.proof__media:hover .media-zoom,
.media-zoom:focus-visible { opacity: 1; }
.media-zoom__ic {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--lime);
  color: var(--navy-deep);
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  transform: scale(0.85);
  transition: transform 0.25s ease;
}
.card__media:hover .media-zoom__ic,
.proof__media:hover .media-zoom__ic { transform: scale(1); }
.media-zoom__label {
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}
/* 터치 기기: hover 없으니 항상 살짝 보이게 */
@media (hover: none) {
  .media-zoom { opacity: 1; background: linear-gradient(180deg, rgba(13,44,76,0) 55%, rgba(13,44,76,0.5)); }
  .media-zoom__ic { width: 46px; height: 46px; font-size: 1.2rem; }
}

/* --- 라이트박스 --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 22, 38, 0.92);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 46px; height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }

/* --- 반응형: 밴드 기울기·캐릭터 크기 --- */
@media (max-width: 768px) {
  .band-navy, .band-lime, .band-white { --band-slant: 6vw; }
  .character__img, .character__img--sm { max-width: 64vw; }
  #hero .character__img { max-width: 72vw; }
  .section__inner > .character { margin-bottom: -5vw; }
  .brand { font-size: 1.7rem; }
}
