/* 서보영 요가 · 공통 스타일
   색과 글꼴은 맨 위 :root 만 고치면 전체에 반영됩니다. */

:root {
  --paper: #F5F2EB;
  --stone: #E1DED6;
  --sand: #E9E5DA;
  --ink: #2F2A26;
  --ink-soft: #4B453E;
  --muted: #6A6259;
  --line: #DDD7CB;
  --line-strong: #CFC9BC;
  --orange: #F26A21;
  --orange-text: #B5430A;   /* 밝은 바탕 위 작은 글자 */
  --orange-title: #C94A0A;  /* 밝은 바탕 위 큰 글자 */
  --serif: 'Hahmlet', 'Noto Serif KR', 'AppleMyungjo', serif;
  --sans: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --gutter: clamp(20px, 3vw, 40px);
  --section: clamp(72px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-text); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 6px; }
.skip:focus { top: 12px; color: var(--paper); }

/* 강조: 색 + 밑줄 */
.em, .ek { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .15em; text-decoration-skip-ink: none; }
.em { color: var(--orange-title); text-decoration-color: var(--orange); }
.ek { text-decoration-color: currentColor; }
.eo { color: var(--orange); text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .15em; text-decoration-skip-ink: none; }
.eu, .eku { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .26em; text-decoration-skip-ink: none; }
.eu { text-decoration-color: var(--orange); }
.eku { text-decoration-color: currentColor; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #453D37; color: var(--paper); }
.btn--orange { background: var(--orange); color: var(--ink); font-weight: 500; }
.btn--orange:hover { background: #F7803F; color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.wordmark { font-family: var(--serif); font-size: 21px; letter-spacing: .44em; white-space: nowrap; }

/* 제목 */
.title { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 72px); line-height: 1.2; letter-spacing: -.04em; }
.title--sm { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.22; }
.title--center { text-align: center; }
.eyebrow { font-size: 13px; letter-spacing: .08em; color: var(--muted); }

.section { padding: var(--section) var(--gutter); }
.wrap { max-width: 1280px; margin: 0 auto; }
.wrap--narrow { max-width: 1120px; margin: 0 auto; }

/* ---------- 개인 / 기업 전환 ---------- */
html[data-mode="me"] .only-biz, html[data-mode="biz"] .only-me { display: none !important; }

/* ---------- 반반 첫 화면 ---------- */
.split { position: relative; display: flex; min-height: clamp(760px, 60vw, 900px); overflow: hidden; background: var(--stone); }
.hero-bar {
  position: absolute; z-index: 4; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--gutter); pointer-events: none;
}
.hero-bar > * { pointer-events: auto; }
.hero-bar__right { display: flex; align-items: center; gap: 22px; font-size: 14px; }
html[data-mode="biz"] .hero-bar__link { color: var(--paper); }

.pane {
  position: relative; flex: 28 1 0; min-width: 0; overflow: hidden;
  transition: flex-grow .7s cubic-bezier(.7, 0, .2, 1);
}
html[data-mode="me"] .pane--me, html[data-mode="biz"] .pane--biz { flex-grow: 72; }
.pane--me { background: var(--stone); }
.pane--biz { background: var(--orange); color: var(--ink); }

.pane__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
  transition: object-position .7s cubic-bezier(.7, 0, .2, 1);
}
html[data-mode="biz"] .pane__img { object-position: 76% center; }
.pane__scrim {
  position: absolute; inset: 0; transition: opacity .3s ease;
  background: radial-gradient(70% 74% at 0% 100%, rgba(225, 222, 214, .97) 0, rgba(225, 222, 214, .9) 46%, rgba(225, 222, 214, .5) 70%, rgba(225, 222, 214, 0) 100%);
}
html[data-mode="biz"] .pane__scrim { opacity: 0; }
.pane__duo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 46%; height: 100%;
  object-fit: cover; object-position: center 62%;
  filter: grayscale(1) contrast(1.14) brightness(1.1); mix-blend-mode: multiply;
  transition: opacity .35s ease;
}
html[data-mode="me"] .pane__duo { opacity: 0; }

/* 패널이 다 밀린 뒤에 글자가 나타난다 */
.pane__copy {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 44px;
  transition: opacity .3s ease .4s, visibility 0s linear .4s;
}
.pane--biz .pane__copy { right: 42%; }
html[data-mode="biz"] .pane--me .pane__copy, html[data-mode="me"] .pane--biz .pane__copy {
  opacity: 0; visibility: hidden; transition: opacity .14s ease, visibility 0s linear .14s;
}
.pane__label { font-size: 15px; font-weight: 500; }
.hero-title { margin-top: 12px; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.6vw, 84px); line-height: 1.16; letter-spacing: -.035em; }
.pane__lead { margin-top: 18px; max-width: 30em; }
.pane__copy .actions { margin-top: 22px; }

.door {
  position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%; padding: 0 clamp(20px, 2.6vw, 36px) 40px; border: 0; background: transparent; color: inherit;
  text-align: left; cursor: pointer; transition: opacity .3s ease .4s, visibility 0s linear .4s;
}
html[data-mode="me"] .pane--me .door, html[data-mode="biz"] .pane--biz .door {
  opacity: 0; visibility: hidden; transition: opacity .14s ease, visibility 0s linear .14s;
}
.door__in { display: flex; flex-direction: column; gap: 10px; transition: transform .3s ease; }
.door:hover .door__in { transform: translateY(-6px); }
.door__title { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 42px); line-height: 1.2; letter-spacing: -.03em; }
.door__sub { font-size: 15px; }
.door__link { align-self: flex-start; margin-top: 6px; font-size: 15px; }
.door--photo { color: var(--paper); background: linear-gradient(to top, rgba(47, 42, 38, .78), rgba(47, 42, 38, .06) 58%); }

/* 첫 화면 아래 네 칸 */
.band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 0 28px;
  padding: 22px var(--gutter) 26px; border-top: 3px solid var(--orange);
}
.band a { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; }
.band strong { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.02em; }
.band span { font-size: 14.5px; color: var(--ink-soft); }

/* 흐르는 띠 */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker__row { display: flex; gap: 64px; width: max-content; padding: 16px 0; font-size: 14px; color: var(--muted); white-space: nowrap; animation: ticker 46s linear infinite; }
.ticker:hover .ticker__row { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 예약 */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; margin-top: 44px; }
.book-card { display: flex; flex-direction: column; gap: 6px; min-height: 172px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 6px; transition: background-color .15s ease; }
.book-card strong { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.02em; }
.book-card span { color: var(--ink-soft); }
.book-card .eu { margin-top: auto; color: var(--ink); font-size: 15px; }
.book-card:hover { background: #EFEBE2; color: inherit; }
.book-card--main { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.book-card--main span { color: var(--ink); }
.book-card--main .eu { text-decoration-color: currentColor; }
.book-card--main:hover { background: #F7803F; }
.price-note { margin-top: 22px; text-align: center; font-size: 15px; color: var(--muted); }

.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 44px; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.days button { min-height: 60px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; }
.days button:last-child { border-right: 0; }
.days button[aria-pressed="true"] { background: var(--orange); font-weight: 500; }
.slots { margin-top: 24px; border-top: 1px solid var(--line-strong); }
.slot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 6px 20px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.slot strong { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.slot time { color: var(--orange-text); }
.slot span { color: var(--muted); }
.slot .btn { justify-self: end; }
.slots-empty { padding: 26px 8px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: center; }

/* 수업 목록 */
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 6px 32px; align-items: baseline;
  padding: 26px 8px; border-bottom: 1px solid var(--line); transition: background-color .15s ease;
}
a.row:hover { background: #EFEBE2; color: inherit; }
.row h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.3; }
.row p { color: var(--ink-soft); }

/* 대표 */
.founder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(36px, 6vw, 88px); align-items: start; }
.founder__photo { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: top; border-radius: 4px; }
.founder h2 { margin-top: 12px; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 68px); letter-spacing: -.04em; line-height: 1.15; }
.founder__text { margin-top: 20px; max-width: 30em; color: var(--ink-soft); }
.facts { margin-top: 30px; border-top: 1px solid var(--line-strong); font-size: 15px; }
.facts li { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li > span:first-child { color: var(--muted); }
.books { display: flex; gap: 12px; margin-top: 28px; padding-bottom: 8px; overflow-x: auto; }
.books img { flex: none; width: auto; height: 122px; box-shadow: 0 8px 20px rgba(47, 42, 38, .16); }

/* 오시는 길 */
.visit { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.visit__photo { width: 100%; height: clamp(300px, 34vw, 460px); object-fit: cover; border-radius: 4px; }
.visit .actions { margin-top: 24px; }

/* 기업: 30분 구성 */
.timeline { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 52px; }
.timeline li { padding: 14px 0 20px; border-top: 1px solid var(--ink); }
.timeline li.is-key { padding-top: 12px; border-top: 3px solid var(--orange); }
.timeline strong { display: block; font-family: var(--serif); font-weight: 300; font-size: 34px; letter-spacing: -.03em; }
.timeline span { font-size: 14.5px; color: var(--ink-soft); }
.steps { margin-top: 56px; border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 6px 32px; align-items: baseline; padding: 24px 8px; border-bottom: 1px solid var(--line); }
.step h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; }
.step p { color: var(--ink-soft); }
.step .free { color: var(--orange-text); font-weight: 500; }

/* 기업: 분야 */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); background: var(--sand); }
.fields__photo { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: center 30%; }
.fields__body { padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 72px); }
.plain-list { margin-top: 30px; border-top: 1px solid #C9C3B5; font-size: 15px; }
.plain-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; padding: 13px 0; border-bottom: 1px solid #C9C3B5; }
.plain-list strong { font-weight: 500; }
.plain-list span { color: #5C554C; }

.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 0 clamp(32px, 6vw, 80px); margin-top: 36px; border-top: 1px solid var(--ink); }
.guide div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.guide dt { color: var(--muted); }
.guide dd { margin: 0; }

.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 50%), 1fr)); margin-top: 36px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.clients li { padding: 18px 10px; text-align: center; font-size: 15px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }

/* 기업: 문의 */
.inquiry { padding: clamp(56px, 7vw, 96px) var(--gutter); background: var(--orange); }
.inquiry__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px clamp(32px, 6vw, 80px); }
.inquiry__phone { margin-top: 18px; font-size: 19px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; padding: 24px; border-radius: 6px; background: var(--paper); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #BDB5A8; border-radius: 4px; background: #FBF9F4; }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline-offset: 0; }
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.form__status { grid-column: 1 / -1; padding: 12px 14px; border-radius: 4px; background: var(--sand); font-size: 15px; }
.form__status[hidden] { display: none; }
.form__status p { margin-bottom: 10px; }
.form__status .btn { margin: 4px 8px 0 0; }
.form__copy { display: block; margin-bottom: 8px; font-size: 14px; }
.form button { grid-column: 1 / -1; min-height: 54px; }

/* 맺음 */
.closing { padding: clamp(52px, 7vw, 92px) var(--gutter); background: var(--orange); }
.closing .actions { margin-top: 26px; }
.footer { padding: 26px var(--gutter) 30px; background: var(--ink); color: #D9D3C7; font-size: 14px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a:hover { color: var(--orange); }
.footer__swap { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; color: #F0ECE3; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.nb { white-space: nowrap; }
.footer__fine { margin-top: 14px; padding-top: 14px; border-top: 1px solid #4C453E; font-size: 13px; color: #BDB5A8; }

/* 내려가면 나타나는 상단 띠 */
.bar {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 8px var(--gutter); background: rgba(245, 242, 235, .94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transform: translateY(-110%); transition: transform .28s ease; visibility: hidden;
}
.bar.is-on { transform: none; visibility: visible; }
.bar .wordmark { font-size: 17px; letter-spacing: .34em; }
.bar__nav { display: flex; gap: 24px; font-size: 14px; }
.bar__right { display: flex; align-items: center; gap: 12px; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--stone); font-size: 14px; }
.seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--orange); font-weight: 500; }

/* 휴대폰 하단 고정 버튼 */
.dock { display: none; }

@media (max-width: 960px) {
  .bar__nav { display: none; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 70px; }
  body { padding-bottom: 76px; }
  .hide-sm { display: none !important; }

  .visit { grid-template-columns: minmax(0, 1fr); }

  /* 지금 보는 쪽이 위, 반대쪽 문이 아래 */
  .split { flex-direction: column; min-height: 0; }
  .pane { flex: none !important; width: 100%; transition: none; }
  html[data-mode="me"] .pane--me, html[data-mode="biz"] .pane--biz { order: 1; }
  html[data-mode="me"] .pane--biz, html[data-mode="biz"] .pane--me { order: 2; }

  .pane__scrim { display: none; }
  .pane__copy, .pane--biz .pane__copy { position: relative; left: auto; right: auto; bottom: auto; padding: 22px var(--gutter) 30px; transition: none; }
  html[data-mode="biz"] .pane--me .pane__copy, html[data-mode="me"] .pane--biz .pane__copy { display: none; }
  html[data-mode="me"] .pane--me .door, html[data-mode="biz"] .pane--biz .door { display: none; }

  html[data-mode="me"] .pane__img { position: relative; inset: auto; height: 86vw; max-height: 420px; object-position: 74% center; }
  html[data-mode="biz"] .pane__img { object-position: 74% center; }
  html[data-mode="biz"] .pane__duo { position: relative; inset: auto; display: block; width: 100%; height: 86vw; max-height: 420px; }
  html[data-mode="me"] .pane__duo { display: none; }

  .door { position: relative; inset: auto; min-height: 168px; padding: 24px var(--gutter); justify-content: center; transition: none; }
  .door--photo { background: rgba(47, 42, 38, .62); }

  .bar { padding-top: 6px; padding-bottom: 6px; }
  .bar .btn { display: none; }

  .dock {
    position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(245, 242, 235, .96); border-top: 1px solid var(--line);
  }
  .dock .btn { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__row { animation: none; }
  .pane, .pane__img, .pane__copy, .door, .door__in, .bar, .btn { transition: none; }
}

@media print {
  .bar, .dock, .ticker { display: none; }
}
