/* ── 토큰 ───────────────────────────────────────── */
:root{
  --ink:#111318;
  --paper:#ffffff;
  --navy:#0a0f1e;
  --blue:#2b50e0;
  --blue-glow:#4d7cff;
  --gray:#8a8f9c;
  --body:#4a4f5c;
  --line:#e8eaef;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:"Pretendard Variable",Pretendard,-apple-system,sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.7;
  word-break:keep-all;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
.ig-ico,.yt-ico,.mail-ico,.kko-ico,.tel-ico{width:1em;height:1em;vertical-align:-.15em}
.yt-red{color:#f00}
.yt-title .yt-ico{width:.95em;height:.95em;vertical-align:-.08em;margin-right:.1em}
h2.yt-title{font-size:clamp(1.5rem,2.8vw,2.1rem)}
.yt-title a:hover{text-decoration:underline;text-underline-offset:5px}
.ig-link{white-space:nowrap}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:2px}

/* ── 헤더 ───────────────────────────────────────── */
.site-header{
  position:sticky;top:0;z-index:9;
  display:flex;justify-content:space-between;align-items:center;
  padding:18px 48px;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.02em}
.brand img{height:28px}
.brand-text{display:flex;flex-direction:column;line-height:1.25}
.brand small{color:var(--gray);font-weight:500;font-size:.68rem;letter-spacing:0}
.site-header nav{display:flex;gap:26px;font-size:.9rem;color:#555;align-items:center}
.site-header nav a:hover{color:var(--ink)}
.navcta{color:var(--blue);font-weight:700}
.navcta:hover{color:var(--blue)}

/* ── 히어로: 고래 이미지 + 텍스트 오버레이 ──────── */
.hero{
  position:relative;
  min-height:88vh;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:110px 48px 64px;
  color:#fff;
  overflow:hidden;
  background:var(--navy);
}
/* 배경 슬라이드 (두 장 크로스페이드) */
.hero-bg{
  position:absolute;inset:0;
  background-position:center;background-size:cover;
  opacity:0;transition:opacity 2s ease;
}
.hero-bg.active{opacity:1}
/* 텍스트 가독용 그라데이션 오버레이 (배경 위, 콘텐츠 아래) */
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(6,16,36,.3) 0%,rgba(6,16,36,.2) 45%,rgba(6,16,36,.78) 100%);
  pointer-events:none;
}
.hero .inner{max-width:1240px;margin:0 auto;width:100%;position:relative;z-index:1}
.hero h1{
  font-size:clamp(3rem,8.5vw,6.4rem);
  font-weight:900;letter-spacing:-.05em;line-height:1.04;
  text-shadow:0 2px 24px rgba(6,16,36,.35);
}
.hero h1 .dot{color:var(--blue-glow)}

/* 히어로 등장 — 자연스러운 페이드업 */
@keyframes fade-up{
  from{opacity:0;transform:translateY(22px)}
  to{opacity:1;transform:none}
}
.hero h1{animation:fade-up .9s ease .15s both}

.hero .sub{display:flex;justify-content:space-between;align-items:flex-end;margin-top:30px;gap:24px;flex-wrap:wrap}
.hero-lede{
  max-width:640px;
  color:rgba(255,255,255,.95);
  font-size:clamp(1.1rem,2.2vw,1.35rem);
  font-weight:600;line-height:1.65;
  text-shadow:0 1px 14px rgba(6,16,36,.45);
  animation:fade-up .9s ease .45s both;
}
.hero .meta{
  text-align:right;color:rgba(255,255,255,.72);
  font-size:.88rem;line-height:1.9;
  animation:fade-up .9s ease .65s both;
}
.hero .meta a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}

/* ── 공통 섹션 ──────────────────────────────────── */
.sec{max-width:1240px;margin:0 auto;padding:0 48px 110px}
.hero + .sec{padding-top:110px}
.eyebrow{color:var(--blue);font-weight:800;font-size:.8rem;letter-spacing:.3em;margin-bottom:14px}
.sec h2.title{font-size:clamp(1.9rem,4vw,2.8rem);font-weight:900;letter-spacing:-.03em;margin-bottom:36px}

/* ── 소개 ───────────────────────────────────────── */
.profile{display:grid;grid-template-columns:400px 1fr;gap:56px;align-items:stretch}
.profile img{width:100%;height:100%;object-fit:cover;object-position:68% center;border-radius:8px;filter:grayscale(1)}
.profile h2{font-size:clamp(1.9rem,4vw,2.8rem);font-weight:900;letter-spacing:-.03em;line-height:1.25;margin-bottom:18px}
.profile .lead{color:var(--body);max-width:560px}
.profile .lead + .lead{margin-top:14px}
.profile .lead b{color:var(--ink)}
.profile ul{margin-top:24px;color:var(--body);font-size:.94rem;list-style:none}
.profile li{padding:11px 0;border-bottom:1px solid var(--line)}
.profile li:first-child{border-top:1px solid var(--line)}
.profile li b{color:var(--ink);font-weight:700}

/* ── 레슨 트랙 ──────────────────────────────────── */
.tracks{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.track{
  background:#fafbfd;border:1px solid var(--line);border-radius:12px;
  padding:36px 30px;
  transition:border-color .2s, box-shadow .2s;
}
.track:hover{border-color:var(--blue);box-shadow:0 12px 32px rgba(43,80,224,.1)}
.track .no{color:var(--blue);font-weight:800;font-size:.78rem;letter-spacing:.2em}
.track h3{font-size:1.4rem;font-weight:800;margin:12px 0 10px;letter-spacing:-.01em}
.track p{color:var(--body);font-size:.93rem}
.tracknote{margin-top:24px;color:var(--gray);font-size:.9rem}

/* ── 오시는 길 ──────────────────────────────────── */
.loc{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.loc img{width:100%;border-radius:8px;border:1px solid var(--line)}
.loc .addr{font-size:1.05rem;line-height:2.1;color:var(--body)}
.loc .addr b{color:var(--ink)}

/* ── 유튜브 소식 ────────────────────────────────── */
.secnote{margin:-20px 0 32px;color:var(--gray);font-size:.95rem}
.secnote a{color:var(--blue);font-weight:600}
.secnote a:hover{text-decoration:underline;text-underline-offset:3px}

.video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.video-card{display:block}
.video-thumb{
  position:relative;display:block;aspect-ratio:16/9;
  border-radius:10px;overflow:hidden;background:#f0f2f6;
}
.video-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.video-card:hover .video-thumb img{transform:scale(1.04)}
.video-play{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:1.5rem;
  background:rgba(6,16,36,.18);
  opacity:0;transition:opacity .25s ease;
}
.video-card:hover .video-play{opacity:1}
.video-title{
  display:block;margin-top:12px;
  font-weight:700;font-size:.98rem;line-height:1.5;letter-spacing:-.01em;
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.video-date{display:block;margin-top:4px;font-size:.82rem;color:var(--gray)}

/* ── 유튜브 라이트박스 ──────────────────────────── */
.video-modal{
  position:fixed;inset:0;z-index:99;
  display:flex;align-items:center;justify-content:center;
  padding:24px;
  background:rgba(6,16,36,.82);
  backdrop-filter:blur(6px);
  animation:modal-in .25s ease;
}
@keyframes modal-in{from{opacity:0}to{opacity:1}}
.video-modal-box{width:min(960px,100%)}
.video-modal-box iframe{
  width:100%;aspect-ratio:16/9;border:0;border-radius:12px;
  background:#000;display:block;
  box-shadow:0 30px 80px rgba(0,0,0,.5);
}
.video-modal-bar{
  display:flex;justify-content:space-between;align-items:center;
  margin-top:12px;font-size:.9rem;color:rgba(255,255,255,.8);
}
.video-modal-bar a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.video-modal-close{
  background:none;border:0;cursor:pointer;
  color:rgba(255,255,255,.8);font:inherit;padding:6px 10px;
}
.video-modal-close:hover{color:#fff}

/* ── CTA (다크 밴드 + 블루 글로우) ──────────────── */
.cta{position:relative;padding:130px 48px;text-align:center;background:var(--navy);color:#f2f5ff}
.cta::after{
  content:"";position:absolute;inset:auto 0 0 0;height:340px;
  background:radial-gradient(600px 300px at 50% 100%,rgba(46,91,255,.35),transparent);
  pointer-events:none;
}
.cta h2{font-size:clamp(2.2rem,5vw,3.6rem);font-weight:900;letter-spacing:-.03em;position:relative;z-index:1}
.cta p{color:#8b96b8;margin:18px 0 36px;position:relative;z-index:1}
.cta p a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.btn-blue{
  position:relative;z-index:1;display:inline-block;
  padding:15px 30px;border-radius:999px;
  font-weight:700;font-size:.98rem;
  background:var(--blue);color:#fff;
  box-shadow:0 0 32px rgba(46,91,255,.5);
}
.btn-blue:hover{background:#3a61f0}

/* ── 푸터 (CTA 다크 톤 연장) ────────────────────── */
.site-footer{
  background:var(--navy);color:#8b96b8;
  border-top:1px solid rgba(242,245,255,.08);
}
.footer-inner{
  max-width:1240px;margin:0 auto;
  padding:64px 48px 48px;
  display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:40px;
}
.footer-brand .brand{color:#f2f5ff;font-size:1.05rem}
.footer-brand .brand img{filter:invert(1);height:28px}
.footer-brand p{margin-top:14px;font-size:.88rem;line-height:1.8}
.footer-col h4{
  color:#f2f5ff;font-size:.8rem;font-weight:800;
  letter-spacing:.18em;margin-bottom:14px;
}
.footer-col a{display:block;font-size:.9rem;padding:4px 0}
.footer-col a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.footer-col p{font-size:.9rem;line-height:1.9}
.footer-bottom{
  max-width:1240px;margin:0 auto;
  padding:20px 48px 28px;
  border-top:1px solid rgba(242,245,255,.08);
  font-size:.8rem;color:#5a6484;
}

/* ── 스크롤 리빌 (섹션 + 내부 스태거) ───────────── */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.reveal.visible{opacity:1;transform:none}

.reveal .track,
.reveal .video-card,
.reveal .profile li{opacity:0;transform:translateY(18px);transition:opacity .55s ease,transform .55s ease}
.reveal.visible .track,
.reveal.visible .video-card,
.reveal.visible .profile li{opacity:1;transform:none}
.reveal.visible .track:nth-child(2),
.reveal.visible .video-card:nth-child(2),
.reveal.visible .video-card:nth-child(5){transition-delay:.12s}
.reveal.visible .track:nth-child(3),
.reveal.visible .video-card:nth-child(3),
.reveal.visible .video-card:nth-child(6){transition-delay:.24s}
.reveal.visible .profile li:nth-child(2){transition-delay:.1s}
.reveal.visible .profile li:nth-child(3){transition-delay:.2s}
.reveal.visible .profile li:nth-child(4){transition-delay:.3s}
.reveal.visible .profile li:nth-child(5){transition-delay:.4s}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .video-modal{animation:none}
  .reveal,.reveal .track,.reveal .video-card,.reveal .profile li{opacity:1;transform:none;transition:none}
  .hero h1,.hero-lede,.hero .meta{animation:none}
}

/* ── 모바일 ─────────────────────────────────────── */
@media (max-width:820px){
  .br-wide{display:none}
  .site-header{padding:14px 20px}
  .site-header nav{gap:16px}
  .site-header nav a:not(.navcta){display:none}
  /* 섹션이 한 화면씩 꽉 차게 (svh: iOS 사파리 주소창 대응) */
  .hero{padding:90px 20px 44px;min-height:100vh;min-height:100svh}
  .hero .sub .meta{text-align:left}
  .sec{
    min-height:100vh;min-height:100svh;
    display:flex;flex-direction:column;justify-content:center;
    padding:64px 20px;
  }
  .hero + .sec{padding-top:64px}
  .profile{grid-template-columns:1fr;gap:18px}
  .profile img{max-height:28vh;max-height:28svh;object-fit:cover}
  .profile h2{font-size:1.55rem;margin-bottom:10px}
  .profile .lead{font-size:.93rem}
  .profile .lead + .lead{margin-top:8px}
  .profile ul{font-size:.85rem;margin-top:14px}
  .profile li{padding:7px 0}
  .tracks{grid-template-columns:1fr;gap:12px}
  .track{padding:26px 24px}
  .video-grid{grid-template-columns:1fr;gap:24px}
  .cta{
    min-height:100vh;min-height:100svh;
    display:flex;flex-direction:column;justify-content:center;align-items:center;
    padding:90px 20px;
  }
  .cta h2{font-size:1.9rem}
  .footer-inner{grid-template-columns:1fr 1fr;gap:32px;padding:48px 20px 36px}
  .footer-brand{grid-column:1/-1}
  .footer-bottom{padding:18px 20px 24px}
}
