:root {
  --bg: #070706;
  --bg-soft: #11100e;
  --ivory: #f3eee4;
  --gold: #c9a56b;
  --gold-bright: #e8c37a;
  --mute: #8d867b;
  --line: rgba(201, 165, 107, 0.22);
  --header-h: 72px;
  --sticky-h: 64px;
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  padding-bottom: var(--sticky-h);
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 10px 14px; background: var(--ivory); color: var(--bg);
}
.skip:focus { top: 12px; }

.site-chrome { position: sticky; top: 0; z-index: 40; }
.site-header {
  position: relative;
  z-index: 56;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #070706;
  border-bottom: 1px solid rgba(201, 165, 107, 0.14);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-ball {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(232, 195, 122, 0.65);
}
.logo-text {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo-text em { font-style: normal; font-weight: 500; color: var(--gold); margin-left: 6px; font-size: 12px; letter-spacing: 0.12em; }

.menu-toggle { display: none; }
.site-nav {
  position: absolute;
  top: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  z-index: 57;
  font-size: 13px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--gold-bright); }
.nav-kakao {
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright);
}
.nav-kakao:hover { background: var(--gold); color: var(--bg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,6,0.82) 0%, rgba(7,7,6,0.4) 48%, rgba(7,7,6,0.15) 100%),
    linear-gradient(to top, rgba(7,7,6,0.88) 0%, rgba(7,7,6,0.15) 42%, transparent 70%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 8vw 11vh;
  max-width: 920px;
}
.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 20px;
}
h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.18;
}
h1 { font-size: clamp(44px, 8vw, 108px); }
h2 { font-size: clamp(32px, 5vw, 64px); }
h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }

.hero-line {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 28px);
  color: var(--gold-bright);
  letter-spacing: -0.02em;
}
@media (min-width: 700px) {
  .hero-line, .hero-define, .hero .kicker { white-space: nowrap; }
}
.hero-define {
  margin-top: 14px;
  font-size: 16px;
  color: var(--mute);
  max-width: 22em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font-size: 14px; font-weight: 500;
  border-radius: 999px;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { border: 1px solid rgba(243,238,228,0.4); }
.btn-ghost:hover { background: var(--ivory); color: var(--bg); }

.hero-orbit {
  position: absolute;
  right: 6vw; top: 18vh;
  width: min(280px, 32vw);
  color: var(--gold);
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
}

/* About */
.about {
  padding: 11vh 8vw;
  border-top: 1px solid var(--line);
}
.about-text {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.55;
  letter-spacing: -0.03em;
  max-width: 16em;
}

/* Master dispatch — same voice as About */
.master {
  padding: 11vh 8vw;
  border-top: 1px solid var(--line);
}
.master .about-text { max-width: 18em; }

/* Principles */
.principles { padding: 0 0 0; }
.principles-head { padding: 12vh 8vw 6vh; max-width: 900px; }
.section-lead { margin-top: 16px; color: var(--mute); max-width: 28em; }

.principles-stage {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 0 8vw 8vh;
  align-items: center;
}
.principles-diagram {
  color: var(--gold);
  text-align: center;
}
.ball-diagram { width: 100%; max-width: 420px; height: auto; }
.box-path { opacity: 0.45; }
.orbit-path { opacity: 0.85; }
.pendulum-path { opacity: 0.35; }
.diagram-ball { filter: drop-shadow(0 0 8px rgba(232,195,122,0.8)); }
.diagram-caption {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mute);
}

.principle-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}
.principle-list li {
  border-top: 1px solid var(--line);
}
.principle-list li:last-child { border-bottom: 1px solid var(--line); }
.principle-list summary {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
}
.principle-list summary::-webkit-details-marker,
.principle-list summary::marker { display: none; content: ""; }
.principle-list .num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-top: 4px;
}
.principle-list h3 { font-size: 20px; margin-bottom: 0; }
.principle-list p {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.7;
  padding: 0 0 20px 68px;
}

.principles-band { margin: 0; }
.principles-band img {
  width: 100%;
  height: min(52vh, 560px);
  object-fit: cover;
  object-position: 50% 40%;
}

/* Programs */
.programs-head { padding: 12vh 8vw 4vh; max-width: 900px; }
.program-select { padding: 0 0 0; }
.program-tabs {
  display: flex;
  gap: 8px;
  padding: 0 8vw 28px;
}
.program-tabs button {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: rgba(243,238,228,0.28);
  padding: 0 18px 8px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.program-tabs button[aria-selected="true"] {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}
.program-tabs button:hover { color: var(--gold-bright); }

.program-stage {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}
.program-images { position: absolute; inset: 0; }
.program-images img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: 0;
  transition: opacity .6s ease;
}
.program-images img.is-on { opacity: 1; }
.program-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,7,6,0.88) 0%, rgba(7,7,6,0.55) 42%, rgba(7,7,6,0.18) 100%);
  pointer-events: none;
}
.program-panels { position: relative; z-index: 2; padding: 48px 8vw; max-width: 640px; }
.panel-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 28px;
}
.program-panel[hidden] { display: none; }
.program-panel ul { list-style: none; padding: 0; }
.program-panel li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.program-panel li:last-child { border-bottom: 1px solid var(--line); }
.program-panel h3 { font-size: 22px; grid-column: 1; }
.program-panel p { grid-column: 1; color: var(--mute); font-size: 14px; }
.program-panel a {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 13px;
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(201,165,107,0.5);
  padding-bottom: 2px;
}
.program-panel a:hover { color: var(--ivory); border-color: var(--ivory); }

/* Start */
.start {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
}
.start-media { position: absolute; inset: 0; margin: 0; }
.start-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.start-copy {
  position: relative;
  z-index: 2;
  padding: 14vh 8vw 12vh;
  max-width: 720px;
  background: linear-gradient(90deg, rgba(7,7,6,0.72), transparent);
}
.start-copy .section-lead { color: rgba(243,238,228,0.7); }
.start-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.start-note { margin-top: 24px; font-size: 13px; color: var(--mute); }
.start-note a { color: var(--gold-bright); border-bottom: 1px solid var(--line); }

/* Family */
.family { padding: 12vh 8vw 6vh; }
.family-list {
  list-style: none;
  padding: 36px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.family-list a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 20px 28px 0;
  border-bottom: 1px solid var(--line);
}
.family-list li:not(:nth-child(3n)) a { border-right: 1px solid var(--line); }
.family-list strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.family-list span { font-size: 13px; color: var(--mute); }
.family-list a:hover strong { color: var(--gold-bright); }

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px 8vw 48px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
}
.site-footer p:first-child {
  font-family: var(--serif);
  color: var(--ivory);
  font-size: 15px;
}
.site-footer a:hover { color: var(--gold-bright); }

.sticky-bar { display: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

@media (max-width: 899px) {
  body { padding-bottom: var(--sticky-h); }
  .sticky-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    height: var(--sticky-h);
    background: #050504;
  }
  .sticky-bar a {
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 500;
  }
  .sticky-bar a:first-child { background: var(--gold); color: var(--bg); }

  .site-header {
    background: #070706;
    padding: 0 20px;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 60;
    font-size: 13px;
    font-weight: 500;
  }
  .menu-icon {
    width: 16px; height: 10px;
    border-top: 1.5px solid var(--ivory);
    border-bottom: 1.5px solid var(--ivory);
    position: relative;
  }
  body.nav-open .menu-icon {
    border-color: transparent;
  }
  body.nav-open .menu-icon::before,
  body.nav-open .menu-icon::after {
    content: "";
    position: absolute; left: 0; right: 0; top: 4px;
    height: 1.5px; background: var(--ivory);
  }
  body.nav-open .menu-icon::before { transform: rotate(45deg); }
  body.nav-open .menu-icon::after { transform: rotate(-45deg); }

  .site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: var(--sticky-h);
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 32px) 24px 40px;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    z-index: 45;
  }
  body.nav-open .site-nav { opacity: 1; pointer-events: auto; }
  .site-nav a {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 600;
    padding: 10px 0;
    letter-spacing: -0.03em;
  }
  .site-nav .nav-kakao {
    margin-top: 24px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    padding: 10px 22px;
  }

  .hero { min-height: 86dvh; }
  .hero-media img { object-position: 58% 40%; }
  .hero-copy { padding: 0 24px 12vh; max-width: none; }
  .hero-orbit { width: 140px; top: 14vh; right: 16px; opacity: 0.45; }
  .about { padding: 4vh 24px; }
  .master { padding: 6vh 24px; }
  .principles-head, .programs-head, .family, .start-copy { padding-left: 24px; padding-right: 24px; }
  .principles-head { padding-top: 4vh; padding-bottom: 1.5vh; }
  .principles-stage {
    grid-template-columns: 1fr;
    padding: 0 24px 3vh;
    gap: 12px;
  }
  .ball-diagram { max-width: 150px; }
  .principle-list summary { padding: 12px 0; align-items: center; }
  .principle-list h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 17px;
  }
  .principle-list h3::after {
    content: "";
    width: 7px; height: 7px;
    border-right: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(45deg);
    transition: transform .2s;
    flex: 0 0 auto;
    margin-top: -3px;
  }
  .principle-list details[open] h3::after { transform: rotate(225deg); margin-top: 3px; }
  .principle-list p { padding: 0 28px 12px 68px; }
  .principles-band img { height: 130px; }
  .programs-head { padding-top: 5vh; padding-bottom: 1.5vh; }
  .program-tabs { padding: 0 24px 12px; gap: 16px; overflow-x: auto; }
  .program-stage { min-height: 0; }
  .program-images { position: relative; height: 180px; }
  .program-shade {
    background: linear-gradient(to top, var(--bg) 0%, rgba(7,7,6,0.2) 70%, transparent);
  }
  .program-panels { padding: 12px 24px 20px; max-width: none; }
  .panel-kicker { margin-bottom: 12px; }
  .program-panel li { gap: 2px 16px; padding: 10px 0; }
  .program-panel h3 { font-size: 18px; }
  .program-panel a { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .start { min-height: 0; }
  .start-media { position: relative; height: 130px; width: 100%; }
  .start-copy { padding-top: 20px; padding-bottom: 28px; background: none; }
  .start-actions { margin-top: 20px; }
  .start-note { margin-top: 16px; }
  .family { padding-top: 5vh; padding-bottom: 3vh; }
  .family-list { padding-top: 16px; margin-top: 18px; }
  .family-list a { padding: 16px 16px 16px 0; gap: 4px; }
  .family-list strong { font-size: 17px; }
  .family-list { grid-template-columns: 1fr 1fr; }
  .family-list li:not(:nth-child(3n)) a { border-right: 0; }
  .family-list li:nth-child(odd) a { border-right: 1px solid var(--line); }
  .site-footer { padding: 18px 24px 18px; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .principle-list summary { cursor: default; pointer-events: none; }
  .principle-list h3 { margin-bottom: 6px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orbit circle, .diagram-ball { animation: none; }
  animateMotion { display: none; }
  .btn, .program-images img { transition: none; }
}

.about-text .gold{display:inline-block;min-width:5.5em;color:var(--gold,#c8a96a);font-size:.78em;letter-spacing:.18em;margin-right:.6em}
