/* =========================================================
   YOGA ISEO — 1주년 감사제 랜딩페이지
   Design system: warm espresso ↔ parchment, photography-first
   ========================================================= */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.css");
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap");

:root {
  /* — Palette — */
  --espresso:      #211610;   /* deepest brown, dark sections */
  --espresso-2:    #2a1d14;   /* slightly lifted dark */
  --espresso-3:    #3a2a1d;   /* card / hairline on dark */
  --parchment:     #f2ece1;   /* warm light base */
  --parchment-2:   #ece3d4;   /* alt light tile */
  --parchment-3:   #e3d8c5;   /* deeper warm beige */
  --ink:           #2b2018;   /* primary text on light */
  --ink-soft:      #6f6051;   /* secondary text on light */
  --ink-faint:     #9c8d7c;   /* tertiary text on light */
  --cream:         #f4ede2;   /* primary text on dark */
  --cream-soft:    #c9bba9;   /* secondary text on dark */
  --cream-faint:   #8d7d6c;   /* tertiary text on dark */
  --sage:          #9ba089;   /* logo line / quiet accent */
  --sage-deep:     #7f846d;
  --gold:          #b58e54;   /* anniversary accent, used sparingly */
  --gold-soft:     #c9a877;

  /* — difficulty levels — */
  --lvl-beg:       #93a07e;   /* 초급  sage green */
  --lvl-mid:       #c2a06a;   /* 중급  warm gold */
  --lvl-adv:       #b66e4f;   /* 상·중급  terracotta */

  /* — Type — */
  --serif: "Cormorant Garamond", "Gowun Batang", "Nanum Myeongjo", serif;
  --serif-ko: "Gowun Batang", "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;

  /* — Spacing — */
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 11vw, 168px);
  --max: 1280px;
  --max-text: 760px;

  --ease: cubic-bezier(0.33, 0, 0.1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: var(--parchment);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--gold); color: #fff; }

/* ---------- shared helpers ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: 0.04em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(29px, 4.6vw, 54px);
  line-height: 1.26;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.95;
  color: var(--ink-soft);
  font-weight: 350;
  text-wrap: pretty;
}

.hanja { font-family: var(--serif); }

/* alternating tile colors */
.tile-dark { background: var(--espresso); color: var(--cream); }
.tile-dark .lead { color: var(--cream-soft); }
.tile-light { background: var(--parchment); color: var(--ink); }
.tile-light-2 { background: var(--parchment-2); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 100px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: var(--gold); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost {
  border: 1px solid rgba(244, 237, 226, 0.35);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(244,237,226,0.06); }
.btn-ghost-dark {
  border: 1px solid rgba(43, 32, 24, 0.28);
  color: var(--ink);
}
.btn-ghost-dark:hover { border-color: var(--ink); }

.btn svg { width: 16px; height: 16px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.scrolled {
  padding: 14px var(--gutter);
  background: rgba(33, 22, 16, 0.72);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  box-shadow: 0 1px 0 rgba(244,237,226,0.06);
}
.nav-brand { display: flex; align-items: center; gap: 13px; color: var(--cream); }
.nav-brand .mark { width: 40px; height: 40px; flex: none; object-fit: contain; }
.nav-brand .mark .stroke { stroke: var(--sage); }
.nav-wordmark { line-height: 1; white-space: nowrap; }
.nav-wordmark b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.16em;
  color: var(--cream);
  white-space: nowrap;
}
.nav-wordmark span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.4em;
  color: var(--cream-faint);
  margin-top: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-menu { display: flex; align-items: center; gap: 38px; white-space: nowrap; }
.nav-menu a { white-space: nowrap; }
.nav-menu a {
  font-size: 14px;
  font-weight: 450;
  color: var(--cream-soft);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-menu a:not(.nav-cta):hover { color: var(--cream); }
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  padding: 11px 22px;
  border: 1px solid rgba(181,142,84,0.6);
  border-radius: 100px;
  color: var(--gold-soft) !important;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: #fff !important; border-color: var(--gold); }

.nav-burger { display: none; width: 30px; height: 30px; flex-direction: column; justify-content: center; gap: 6px; }
.nav-burger span { display: block; height: 1.5px; background: var(--cream); border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(33,22,16,0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.nav-drawer.open { opacity: 1; pointer-events: auto; }
.nav-drawer a {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--cream);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav-drawer.open a { opacity: 1; transform: none; }
.nav-drawer.open a:nth-child(1){transition-delay:.06s}
.nav-drawer.open a:nth-child(2){transition-delay:.12s}
.nav-drawer.open a:nth-child(3){transition-delay:.18s}
.nav-drawer.open a:nth-child(4){transition-delay:.24s}
.nav-drawer.open a:nth-child(5){transition-delay:.30s}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 16s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,9,5,0.82) 0%, rgba(14,9,5,0.12) 17%, rgba(14,9,5,0) 38%, rgba(14,9,5,0.5) 74%, rgba(10,6,4,0.97) 100%),
    linear-gradient(102deg, rgba(12,8,5,0.9) 0%, rgba(12,8,5,0.52) 36%, rgba(12,8,5,0) 64%),
    rgba(14,9,5,0.22);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(64px, 10vh, 120px);
}
.hero .eyebrow { color: var(--gold-soft); }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 94px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 26px 0 0;
  max-width: 18ch;
  text-wrap: balance;
  text-shadow: 0 2px 50px rgba(0,0,0,0.45);
}
.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}
.hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.85;
  color: var(--cream-soft);
  font-weight: 350;
  max-width: 40ch;
}
.hero-sub .hanja { color: var(--cream); font-size: 1.08em; }
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--cream-soft);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-scroll .line { width: 1px; height: 46px; background: linear-gradient(var(--cream-soft), transparent); position: relative; overflow: hidden; }
.hero-scroll .line::after { content:""; position:absolute; top:-46px; left:0; width:1px; height:46px; background: var(--gold-soft); animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { to { top: 46px; } }

/* anniversary ribbon below hero */
.ribbon {
  background: var(--espresso-2);
  color: var(--cream-soft);
  border-top: 1px solid var(--espresso-3);
  border-bottom: 1px solid var(--espresso-3);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
}
.ribbon-track { display: inline-flex; gap: 0; animation: marquee 38s linear infinite; }
.ribbon-track span {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
  padding: 0 34px;
  display: inline-flex;
  align-items: center;
  gap: 34px;
}
.ribbon-track span::after { content: "❋"; color: var(--gold); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTION scaffold
   ========================================================= */
.section { padding-block: var(--section-y); }
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .section-title { margin-top: 22px; }

/* =========================================================
   PHILOSOPHY (怡舒)
   ========================================================= */
.philo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.philo-figure { position: relative; }
.philo-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.philo-figure .seal {
  position: absolute;
  left: -26px; bottom: -26px;
  width: clamp(96px, 12vw, 150px); height: clamp(96px, 12vw, 150px);
  background: var(--espresso);
  color: var(--gold-soft);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: 0 24px 60px rgba(33,22,16,0.32);
}
.philo-figure .seal b { font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); font-weight: 500; line-height: 1; display: block; }
.philo-figure .seal small { font-size: 10px; letter-spacing: 0.32em; color: var(--cream-faint); margin-top: 7px; display: block; text-transform: uppercase; }

.philo-body .section-title { margin: 22px 0 28px; }
.philo-body p + p { margin-top: 20px; }
.philo-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.philo-tags span {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  border: 1px solid rgba(43,32,24,0.16);
  padding: 8px 16px;
  border-radius: 100px;
}
.philo-tags .hanja { font-size: 15px; color: var(--gold); }

/* pull quote band */
.quote-band { text-align: center; }
.quote-band .quote-mark { width: 50px; height: 50px; margin: 0 auto 28px; display: block; object-fit: contain; }
.quote-band .mark-lg { width: 46px; height: 46px; margin: 0 auto 26px; }
.quote-band .mark-lg .stroke { stroke: var(--gold-soft); }
.quote-band blockquote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 4vw, 50px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: 0 auto;
}
.quote-band blockquote em { font-style: italic; color: var(--gold-soft); }
.quote-band cite { display: block; margin-top: 26px; font-style: normal; font-size: 13px; letter-spacing: 0.2em; color: var(--cream-faint); text-transform: uppercase; }

/* =========================================================
   TIMELINE (발자취)
   ========================================================= */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(48px, 7vw, 84px); }
.tl-item { position: relative; padding: 0 24px; }
.tl-item:not(:last-child) { border-right: 1px solid var(--espresso-3); }
.tl-rail { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--sage-deep); flex: none; }
.tl-item.now .tl-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(181,142,84,0.18); }
.tl-line { flex: 1; height: 1px; background: var(--espresso-3); }
.tl-year { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); font-weight: 400; color: var(--cream); letter-spacing: 0.01em; }
.tl-month { font-size: 12px; letter-spacing: 0.24em; color: var(--gold-soft); margin-top: 4px; text-transform: uppercase; }
.tl-name { margin-top: 18px; font-size: 17px; font-weight: 500; color: var(--cream); }
.tl-desc { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--cream-faint); }
.tl-badge { display: inline-block; margin-top: 14px; font-size: 10.5px; letter-spacing: 0.18em; color: var(--gold-soft); border: 1px solid rgba(181,142,84,0.4); padding: 4px 10px; border-radius: 100px; text-transform: uppercase; }

.tl-stats { display: flex; gap: clamp(30px, 6vw, 80px); justify-content: center; margin-top: clamp(56px, 8vw, 96px); flex-wrap: wrap; }
.tl-stat { text-align: center; }
.tl-stat b { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); font-weight: 400; color: var(--cream); display: block; line-height: 1; }
.tl-stat span { font-size: 12.5px; letter-spacing: 0.16em; color: var(--cream-faint); margin-top: 12px; display: block; text-transform: uppercase; }

/* =========================================================
   VIDEO (수련영상)
   ========================================================= */
.video-section { position: relative; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 3px;
  overflow: hidden;
  background: var(--espresso);
  box-shadow: 0 40px 90px rgba(33,22,16,0.5);
}
.video-frame video, .video-frame iframe, .video-frame .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-frame .poster::after { content: ""; position: absolute; inset: 0; background: rgba(33,22,16,0.32); }
.video-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  transition: opacity 0.5s var(--ease);
}
.video-play .ring {
  width: clamp(72px, 8vw, 104px); height: clamp(72px, 8vw, 104px);
  border-radius: 50%;
  border: 1px solid rgba(244,237,226,0.7);
  background: rgba(33,22,16,0.28);
  backdrop-filter: blur(4px);
  display: grid; place-content: center;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.video-play:hover .ring { transform: scale(1.06); background: rgba(181,142,84,0.85); border-color: transparent; }
.video-play .ring svg { width: 26px; height: 26px; fill: var(--cream); margin-left: 4px; }
.video-caption { position: absolute; left: clamp(24px,4vw,48px); bottom: clamp(24px,4vw,44px); z-index: 3; color: var(--cream); }
.video-caption .vc-eyebrow { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 17px; }
.video-caption .vc-title { font-size: clamp(20px, 2.6vw, 32px); font-weight: 300; letter-spacing: -0.02em; margin-top: 6px; }
.video-hint { text-align: center; margin-top: 22px; font-size: 13px; color: var(--cream-faint); letter-spacing: 0.02em; }

/* =========================================================
   PROGRAMS
   ========================================================= */
.prog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 30px); margin-top: clamp(48px, 6vw, 76px); }
.prog-card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16/11;
  color: var(--cream);
  display: flex;
  align-items: flex-end;
}
.prog-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.prog-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,22,16,0) 30%, rgba(33,22,16,0.86) 100%); transition: background 0.5s var(--ease); }
.prog-card:hover img { transform: scale(1.05); }
.prog-meta { position: relative; z-index: 2; padding: clamp(24px, 3vw, 38px); width: 100%; }
.prog-no { font-family: var(--serif); font-size: 14px; letter-spacing: 0.2em; color: var(--gold-soft); }
.prog-tag { display: inline-block; font-size: 11px; letter-spacing: 0.14em; color: var(--cream); border: 1px solid rgba(244,237,226,0.4); padding: 4px 11px; border-radius: 100px; margin-bottom: 16px; text-transform: uppercase; }
.prog-name { font-family: var(--serif); font-size: clamp(23px, 2.8vw, 30px); font-weight: 400; letter-spacing: -0.005em; }
.prog-card .prog-desc {
  font-size: 14.5px; line-height: 1.7; color: var(--cream-soft);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.55s var(--ease), opacity 0.45s var(--ease), margin 0.5s var(--ease);
}
.prog-card:hover .prog-desc { max-height: 120px; opacity: 1; margin-top: 12px; }

.prog-banner {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(26px, 3vw, 38px) clamp(28px, 4vw, 48px);
  background: var(--parchment-3);
  color: var(--ink);
  border-radius: 3px;
}
.prog-banner .pb-text b { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; color: var(--ink); }
.prog-banner .pb-text span { display:block; color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; }
.prog-banner .pb-text del { color: var(--ink-faint); }

/* =========================================================
   BRANCHES + TIMETABLES
   ========================================================= */
.branch-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 56px); }
.branch-tabs button {
  display: flex; align-items: baseline; gap: 9px;
  padding: 12px 22px; border-radius: 100px;
  border: 1px solid var(--espresso-3);
  color: var(--cream-soft); font-size: 15px; font-weight: 500;
  transition: all 0.4s var(--ease);
}
.branch-tabs button .t-en { font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--cream-faint); }
.branch-tabs button:hover { border-color: var(--sage-deep); color: var(--cream); }
.branch-tabs button.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.branch-tabs button.active .t-en { color: rgba(255,255,255,0.7); }

.branch-panel { margin-top: clamp(34px, 4vw, 50px); }
.branch-top {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: stretch;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.branch-info { display: flex; flex-direction: column; justify-content: center; }
.branch-info .b-no { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 18px; }
.branch-info .b-name { font-family: var(--serif); font-size: clamp(32px, 4vw, 50px); font-weight: 400; letter-spacing: -0.01em; margin: 8px 0 24px; }
.branch-info .b-name small { font-family: var(--serif); font-style: italic; font-size: 0.42em; color: var(--cream-faint); margin-left: 14px; letter-spacing: 0.04em; }
.branch-meta { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.branch-meta .row { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--cream-soft); }
.branch-meta .row svg { width: 17px; height: 17px; flex: none; margin-top: 3px; stroke: var(--gold-soft); fill: none; }
.branch-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.branch-thumb { position: relative; border-radius: 3px; overflow: hidden; min-height: 260px; background: var(--espresso-2); }
.branch-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.branch-thumb .open-flag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--gold); color: #fff; padding: 6px 13px; border-radius: 100px;
}

.branch-pending {
  text-align: center; padding: clamp(56px, 9vw, 110px) 24px;
  border: 1px solid var(--espresso-3); border-radius: 3px;
  background: linear-gradient(160deg, var(--espresso-2), var(--espresso));
}
.branch-pending .hanja { font-family: var(--serif); font-size: clamp(40px,6vw,60px); color: var(--gold-soft); }
.branch-pending b { display: block; font-family: var(--serif); font-size: clamp(24px,3vw,32px); color: var(--cream); margin-top: 14px; font-weight: 500; }
.branch-pending p { color: var(--cream-faint); margin-top: 14px; font-size: 15px; }

/* ---- timetable ---- */
.tt { border: 1px solid var(--espresso-3); border-radius: 4px; overflow: hidden; background: var(--espresso-2); }
.tt-head { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 20px clamp(18px,2.4vw,28px); border-bottom: 1px solid var(--espresso-3); }
.tt-title { font-family: var(--serif); font-size: 21px; color: var(--cream); letter-spacing: 0.01em; }
.tt-title em { font-style: italic; color: var(--gold-soft); margin-right: 8px; }
.tt-legend { display: flex; gap: 18px; flex-wrap: wrap; }
.tt-legend .lv { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--cream-soft); }
.tt-legend .lv::before { content: ""; width: 11px; height: 11px; border-radius: 3px; }
.lv.beg::before { background: var(--lvl-beg); }
.lv.mid::before { background: var(--lvl-mid); }
.lv.adv::before { background: var(--lvl-adv); }
.tt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tt-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.tt-table th, .tt-table td { border-right: 1px solid var(--espresso-3); border-bottom: 1px solid var(--espresso-3); text-align: center; }
.tt-table th:last-child, .tt-table td:last-child { border-right: none; }
.tt-table tbody tr:last-child th, .tt-table tbody tr:last-child td { border-bottom: none; }
.tt-table thead th {
  padding: 15px 10px; font-size: 12.5px; letter-spacing: 0.16em; font-weight: 600;
  color: var(--cream-soft); background: rgba(0,0,0,0.18);
}
.tt-table thead th:first-child { color: var(--gold-soft); }
.tt-time { padding: 14px 12px; white-space: nowrap; background: rgba(0,0,0,0.12); }
.tt-time b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--cream); }
.tt-time span { display: block; font-size: 11px; color: var(--cream-faint); margin-top: 3px; }
.cell { padding: 13px 12px; vertical-align: middle; position: relative; }
.cell.lv-beg { box-shadow: inset 3px 0 0 var(--lvl-beg); }
.cell.lv-mid { box-shadow: inset 3px 0 0 var(--lvl-mid); }
.cell.lv-adv { box-shadow: inset 3px 0 0 var(--lvl-adv); }
.cell b { display: block; font-size: 14px; font-weight: 500; color: var(--cream); letter-spacing: -0.01em; line-height: 1.35; }
.cell span { display: block; font-size: 12px; color: var(--cream-faint); margin-top: 4px; }
.cell.muted b { color: var(--cream-faint); font-weight: 400; font-size: 13px; }
.cell.empty { background: rgba(0,0,0,0.08); }
.cell.special b { color: var(--gold-soft); }
.cell.banner { background: rgba(181,142,84,0.07); }
.cell.banner b { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--cream-soft); font-weight: 400; }
.tt-notes { list-style: none; padding: clamp(18px,2.4vw,26px) clamp(18px,2.4vw,28px); display: grid; gap: 9px; border-top: 1px solid var(--espresso-3); }
.tt-notes li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.65; color: var(--cream-faint); }
.tt-notes li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-soft); }
.tt-scroll-hint { display: none; text-align: center; font-size: 12px; color: var(--cream-faint); padding: 12px; letter-spacing: 0.04em; }

/* ---- mobile day-by-day timetable ---- */
.tt-mobile { display: none; }
.tt-daysel { display: flex; gap: 6px; padding: 16px clamp(14px,3vw,20px); border-bottom: 1px solid var(--espresso-3); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tt-day {
  flex: 1 0 auto; min-width: 48px; padding: 9px 6px; border-radius: 100px;
  border: 1px solid var(--espresso-3); color: var(--cream-soft);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: all 0.3s var(--ease);
}
.tt-day b { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.tt-day span { font-size: 9px; letter-spacing: 0.14em; color: var(--cream-faint); }
.tt-day.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.tt-day.active span { color: rgba(255,255,255,0.75); }
.tt-daypanels { padding: 6px clamp(12px,3vw,18px) 4px; }
.tt-daypanel { display: none; }
.tt-daypanel.active { display: block; }
.m-row { display: flex; align-items: baseline; gap: 14px; padding: 15px 8px; border-bottom: 1px solid var(--espresso-3); }
.m-row:last-child { border-bottom: none; }
.m-time { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--gold-soft); flex: none; width: 64px; }
.m-class { font-size: 15.5px; font-weight: 500; color: var(--cream); line-height: 1.4; }
.m-teacher { display: block; font-size: 13px; font-weight: 400; color: var(--cream-faint); margin-top: 3px; }
.m-row.lv-beg { box-shadow: inset 3px 0 0 var(--lvl-beg); }
.m-row.lv-mid { box-shadow: inset 3px 0 0 var(--lvl-mid); }
.m-row.lv-adv { box-shadow: inset 3px 0 0 var(--lvl-adv); }
.m-row.lv-beg, .m-row.lv-mid, .m-row.lv-adv { padding-left: 14px; }
.m-muted .m-class { color: var(--cream-faint); font-weight: 400; }
.m-special .m-class { color: var(--gold-soft); }
.m-banner .m-class { font-family: var(--serif); font-style: italic; color: var(--cream-soft); font-weight: 400; }
.m-empty { padding: 30px 8px; text-align: center; color: var(--cream-faint); font-size: 14px; }

.branch-nav { display: flex; align-items: center; justify-content: flex-end; margin-top: clamp(26px, 3vw, 38px); }
.branch-count { margin-right: auto; font-family: var(--serif); font-style: italic; color: var(--cream-faint); font-size: 15px; }
.branch-count b { color: var(--gold-soft); font-style: normal; }
.branch-arrows { display: flex; gap: 10px; }
.branch-arrows button {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--espresso-3); color: var(--cream);
  display: grid; place-content: center;
  transition: all 0.4s var(--ease);
}
.branch-arrows button:hover { border-color: var(--gold); background: var(--gold); }
.branch-arrows button:active { transform: scale(0.94); }
.branch-arrows button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.faq-aside img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.faq-list { border-top: 1px solid rgba(43,32,24,0.14); }
.faq-item { border-bottom: 1px solid rgba(43,32,24,0.14); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; gap: 20px;
  padding: 28px 0;
  text-align: left;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.faq-q .q-mark { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 24px; flex: none; }
.faq-q .q-icon { margin-left: auto; flex: none; width: 18px; height: 18px; position: relative; }
.faq-q .q-icon::before, .faq-q .q-icon::after { content: ""; position: absolute; background: var(--ink-soft); transition: transform 0.4s var(--ease); }
.faq-q .q-icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-q .q-icon::after { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.faq-item.open .q-icon::after { transform: translateX(-50%) scaleY(0); }
.faq-item.open .faq-q { color: var(--gold); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a .faq-a-inner { padding: 0 0 30px 44px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.9; max-width: 52ch; }
.faq-a strong { color: var(--ink); font-weight: 600; }

/* =========================================================
   APPLY FORM
   ========================================================= */
.apply-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 6vw, 80px); align-items: start; margin-top: clamp(40px, 5vw, 60px); }
.benefit-list { display: flex; flex-direction: column; gap: 4px; margin-top: 30px; }
.benefit { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--espresso-3); }
.benefit .b-idx { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 18px; flex: none; width: 26px; }
.benefit .b-main { font-size: 16.5px; color: var(--cream); font-weight: 500; }
.benefit .b-main span { display: block; font-weight: 400; font-size: 13.5px; color: var(--cream-faint); margin-top: 3px; }
.benefit .b-val { margin-left: auto; font-family: var(--serif); color: var(--gold-soft); font-size: 16px; white-space: nowrap; }
.benefit.highlight .b-val { color: var(--gold); }

.goods-strip { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--espresso-3); }
.goods-label { font-size: 12px; letter-spacing: 0.16em; color: var(--gold-soft); text-transform: uppercase; }
.goods-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.goods-chips span { font-size: 13.5px; color: var(--cream-soft); border: 1px solid var(--espresso-3); padding: 8px 16px; border-radius: 100px; }

.form-card {
  background: var(--parchment);
  color: var(--ink);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
}
.form-card h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.01em; }
.form-card .fc-sub { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 9px; font-weight: 500; }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(43,32,24,0.15);
  border-radius: 2px;
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(181,142,84,0.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 22px; font-size: 13.5px; color: var(--ink-soft); }
.consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.form-card .btn-gold { width: 100%; padding: 17px; font-size: 16px; }
.form-note { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }

.form-success { text-align: center; padding: clamp(30px, 5vw, 56px) 10px; display: none; }
.form-success.show { display: block; }
.form-success .check { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; background: var(--gold); display: grid; place-content: center; }
.form-success .check svg { width: 30px; height: 30px; stroke: #fff; }
.form-success h3 { margin-bottom: 12px; }
.form-success p { color: var(--ink-soft); font-size: 15px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #1a110b; color: var(--cream-soft); padding-top: clamp(64px, 8vw, 100px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(36px, 5vw, 70px); padding-bottom: clamp(48px, 6vw, 70px); border-bottom: 1px solid var(--espresso-3); }
.footer-brand .footer-logo { width: 176px; max-width: 62%; height: auto; display: block; margin-bottom: 24px; }
.footer-brand .mark { width: 44px; height: 44px; margin-bottom: 22px; }
.footer-brand .mark .stroke { stroke: var(--sage); }
.footer-brand b { font-family: var(--serif); font-size: 24px; letter-spacing: 0.16em; color: var(--cream); display: block; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.8; color: var(--cream-faint); max-width: 34ch; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a { width: 40px; height: 40px; border: 1px solid var(--espresso-3); border-radius: 50%; display: grid; place-content: center; transition: all 0.35s var(--ease); }
.footer-social a:hover { border-color: var(--gold); background: var(--gold); }
.footer-social a svg { width: 18px; height: 18px; stroke: var(--cream-soft); transition: stroke 0.3s; }
.footer-social a:hover svg { stroke: #fff; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.18em; color: var(--gold-soft); text-transform: uppercase; margin-bottom: 22px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-col li { font-size: 14px; }
.footer-col li b { color: var(--cream); font-weight: 500; }
.footer-col li span { color: var(--cream-faint); }
.footer-col a { transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; font-size: 12.5px; color: var(--cream-faint); flex-wrap: wrap; gap: 12px; }

/* =========================================================
   REVEAL animation — enhancement only.
   Base state is VISIBLE; the hidden start-state applies only when
   <html class="js"> is set by an inline script, so content is never
   trapped invisible if JS is slow, blocked, or transitions don't run.
   ========================================================= */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; transform: none; }
  .ribbon-track { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .tl-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 880px) {
  .nav-menu { display: none; }
  .nav-burger { display: flex; }
  .philo-grid { grid-template-columns: 1fr; gap: 54px; }
  .philo-figure { max-width: 460px; }
  .philo-figure .seal { left: auto; right: -10px; }
  .branch-top { grid-template-columns: 1fr; gap: 28px; }
  .branch-thumb { min-height: 220px; aspect-ratio: 16/10; }
  .tt-desktop { display: none; }
  .tt-mobile { display: block; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-aside { display: none; }
  .apply-grid { grid-template-columns: 1fr; }
  .prog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* ---- mobile: center-align section heads + philosophy ---- */
  .section-head { margin-inline: auto; text-align: center; }
  .section-head .eyebrow { justify-content: center; }
  .philo-grid { justify-items: center; }
  .philo-figure { margin-inline: auto; }
  .philo-body { text-align: center; }
  .philo-body .eyebrow { justify-content: center; }
  .philo-tags { justify-content: center; }
  .prog-banner { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .timeline { grid-template-columns: 1fr; }
  .tl-item { border-right: none !important; padding: 0; }
  /* center timeline items on mobile */
  .tl-item { text-align: center; }
  .tl-rail { justify-content: center; }
  .tl-line { display: none; }
  .tl-dot { width: 13px; height: 13px; }
  .tl-stats { gap: 30px 40px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}
