/* =========================================================
   하주선퍼스널컬러교육원 — 공통 스타일
   콘셉트: "선명한 레드 한 점, 먹색 타이포로 완성한 갤러리 같은 교육원"
   ========================================================= */

:root {
  /* 입력된 색 코드 (임의 변경 금지) */
  --bg: #fafafa;          /* 바탕 */
  --ink: #09090b;         /* 글자 */
  --accent: #e10f1a;      /* 포인트 */
  --tint: #fef2f2;        /* 연한 구분색 */
  --dark: #09090b;        /* 진한 섹션 */
  --accent-dark: #ff2d36; /* 진한 섹션 위 포인트 */
  --on-accent: #ffffff;   /* 버튼 글자 */

  /* 위 색에서 투명도만 바꾼 보조 단계 */
  --ink-2: rgba(9, 9, 11, .70);
  --line: rgba(9, 9, 11, .12);
  --paper-2: rgba(250, 250, 250, .72);
  --line-dark: rgba(250, 250, 250, .14);

  --font-sans: "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, sans-serif;
  --font-serif: "Noto Serif KR", serif;

  --radius: 20px;
  --shadow: 0 1px 2px rgba(9, 9, 11, .06), 0 12px 32px -12px rgba(9, 9, 11, .18);
  --shadow-deep: 0 2px 4px rgba(9, 9, 11, .06), 0 28px 56px -20px rgba(9, 9, 11, .28);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
  --wrap: 1240px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- 버튼 ----------
   From Uiverse.io by Cksunandh — 볼록 튀어나온 부드러운 버튼(뉴모피즘)
   원본은 100x100 정사각형이라, 글자 길이에 맞게 늘어나도록 응용했습니다.
   색은 홈페이지 색 코드로 맞추고, 주 버튼은 빨간 테두리와 빨간 아이콘으로 구분합니다. */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 2px solid rgba(9, 9, 11, .18);
  border-radius: 20px;
  background-color: var(--bg);
  color: var(--ink);
  font-weight: 800; font-size: 16px; line-height: 1; white-space: nowrap;
  box-shadow:
    -3px -10px 15px #ffffff,
    -3px -5px 8px #ffffff,
    -10px 0 15px #ffffff,
    3px 10px 14px rgba(9, 9, 11, .13),
    inset 0 -3px 0 rgba(9, 9, 11, .06);
  transition: .3s ease-in-out;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); transform: translate3d(0, -2px, 0); transition: .3s ease-in-out; }
.btn:hover {
  transform: scale(1.06);
  box-shadow:
    -3px -15px 20px #ffffff,
    -3px -10px 10px #ffffff,
    -10px 0 15px #ffffff,
    5px 15px 20px rgba(9, 9, 11, .2),
    inset 0 -3px 0 rgba(9, 9, 11, .06);
}
.btn:hover svg { transform: translateY(-6px); }
.btn:active { transform: scale(.95); box-shadow: none; }
/* 주 버튼(전화 상담 등)은 빨간 바탕 + 흰 글자로 눈에 띄게. 모양과 움직임은 같은 볼록 버튼 */
.btn-primary {
  background-color: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow:
    -3px -10px 15px #ffffff,
    -3px -5px 8px #ffffff,
    -10px 0 15px #ffffff,
    3px 10px 14px rgba(225, 15, 26, .35),
    inset 0 -4px 0 rgba(9, 9, 11, .18);
}
.btn-primary:hover {
  box-shadow:
    -3px -15px 20px #ffffff,
    -3px -10px 10px #ffffff,
    -10px 0 15px #ffffff,
    5px 15px 18px rgba(225, 15, 26, .45),
    inset 0 -4px 0 rgba(9, 9, 11, .18);
}
.btn-primary svg { color: var(--on-accent); }
/* 카카오톡 상담 버튼: 카카오 공식 노란색 */
.btn-kakao { background-color: #FEE500; color: #191919; border-color: #FEE500; }
.btn-kakao svg { width: 20px; height: 20px; }
/* 어두운 바탕에서는 흰 빛 그림자를 빼고 아래 그림자만 */
.section--dark .btn, .footer .btn { box-shadow: 3px 10px 12px rgba(0, 0, 0, .45), inset 0 -3px 0 rgba(9, 9, 11, .06); }
.section--dark .btn:hover, .footer .btn:hover { box-shadow: 5px 15px 15px rgba(0, 0, 0, .55), inset 0 -3px 0 rgba(9, 9, 11, .06); }
.section--dark .btn-primary, .footer .btn-primary { box-shadow: 3px 10px 12px rgba(0, 0, 0, .45), inset 0 -4px 0 rgba(9, 9, 11, .18); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.text-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- 상단 메뉴 ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.header.is-scrolled {
  background: rgba(250, 250, 250, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand__mark { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); flex: none; }
.brand img { display: none; height: 36px; width: auto; }
.brand.has-logo img { display: block; }
.brand.has-logo .brand__mark, .brand.has-logo .brand__text { display: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(9, 9, 11, .05); }
.header__cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }

/* ---------- 사진·영상 자리 틀 ---------- */
.ph { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph__empty {
  position: absolute; inset: 0; z-index: 1; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background:
    radial-gradient(circle at 30% 20%, rgba(225, 15, 26, .07), transparent 55%),
    var(--tint);
}
.ph__empty svg { width: 28px; height: 28px; opacity: .55; }
.ph.is-empty > img { display: none; }
.ph.is-empty .ph__empty { display: flex; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-3x2 { aspect-ratio: 3 / 2; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-1x1 { aspect-ratio: 1 / 1; }
.r-arch { border-radius: 999px 999px var(--radius) var(--radius); }
.ph--contain { background: #ffffff; }
.ph--contain > img { object-fit: contain; }

/* ---------- 첫 화면 ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 84vh, 740px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 32px) 0 72px;
  background: var(--bg);
}
#hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
#hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(60px); }
#hero-bg .glow--1 {
  width: min(900px, 60vw); aspect-ratio: 1; right: -14vw; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(225, 15, 26, .14) 0%, rgba(254, 242, 242, .95) 42%, rgba(250, 250, 250, 0) 70%);
}
#hero-bg .glow--2 { width: 36vw; aspect-ratio: 1; left: -16vw; bottom: -20vw; background: var(--tint); }

/* 오로라 배경 (aurora.js) — 글자가 또렷하도록 옅게, 아래쪽은 바탕색으로 자연스럽게 사라짐 */
.aurora-container {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
.aurora-container.is-on { opacity: .55; }
.aurora-container canvas { display: block; width: 100% !important; height: 100% !important; }

/* (이전) GridScan 느낌 배경 — 지금은 쓰지 않음, 다시 쓰려면 index.html에 gridscan 블록을 넣으면 됨 */
.gridscan { position: absolute; inset: 0; overflow: hidden; }
.gridscan__floor {
  position: absolute; left: -50%; right: -50%; bottom: -6%; height: 72%;
  transform-origin: 50% 100%;
  transform: perspective(720px) rotateX(64deg);
  background-image:
    linear-gradient(rgba(9, 9, 11, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 9, 11, .10) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 25%, transparent 90%);
  mask-image: linear-gradient(to top, #000 0%, #000 25%, transparent 90%);
  overflow: hidden;
}
.gridscan__beam {
  position: absolute; left: 0; right: 0; top: 0; height: 22%;
  background: linear-gradient(to bottom, rgba(225, 15, 26, 0) 0%, rgba(225, 15, 26, .28) 55%, rgba(255, 45, 54, .55) 62%, rgba(225, 15, 26, 0) 100%);
  animation: gridscan-sweep 7s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes gridscan-sweep {
  0%   { transform: translateY(-100%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(460%); opacity: 0; }
}
#hero-bg .grain { display: none; position: absolute; inset: 0; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.overline {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.overline::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section--dark .overline { color: var(--paper-2); }
.section--dark .overline::before { background: var(--accent-dark); }
#hero-title {
  margin: 24px 0 24px;
  font-size: clamp(32px, 1.2rem + 3vw, 62px);
  line-height: 1.2; font-weight: 900; letter-spacing: -.04em;
}
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: .06em; height: .32em;
  background: var(--accent); opacity: .9; border-radius: 3px;
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .55s;
}
.hl-on-light { color: var(--ink); }
.hl-on-light::after { opacity: .22; }
.is-loaded .hl::after { transform: scaleX(1); }
.hero__lead { max-width: 30em; font-size: clamp(17px, 1rem + .3vw, 20px); color: var(--ink-2); line-height: 1.7; }
.hero .btn-row { margin-top: 36px; gap: 12px 20px; align-items: center; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 17px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* 첫 화면 오른쪽: 색 견본 부채 + 원형 선 (사진이 있으면 아치형 사진이 함께 보임) */
.hero__visual { position: relative; justify-self: end; width: 100%; max-width: 480px; aspect-ratio: 1; }
.hero__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(9, 9, 11, .10); }
.hero__ring--2 { inset: 15%; border-color: rgba(225, 15, 26, .22); }
.hero__fan { position: absolute; left: 50%; bottom: 8%; width: 108%; transform: translateX(-50%); overflow: visible; filter: drop-shadow(0 18px 30px rgba(9, 9, 11, .14)); }
.hero__fan .sw { transform-origin: 0 0; transform: rotate(0deg); transition: transform 1.3s var(--ease) .45s; }
.is-loaded .hero__fan .sw { transform: rotate(var(--r)); }
.hero__frame {
  position: absolute; z-index: 2; left: 50%; top: 4%; width: 54%; aspect-ratio: 4 / 5; transform: translateX(-50%);
  border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow-deep);
  opacity: 0; transition: opacity .8s var(--ease);
}
.hero--media .hero__frame { opacity: 1; }
.hero__frame > video { opacity: 0; transition: opacity .6s var(--ease); }
.hero__frame.has-video > video { opacity: 1; z-index: 2; }
.hero__frame.has-video > img { display: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .2em; color: var(--ink-2); }
.scroll-cue span { width: 1px; height: 28px; background: linear-gradient(var(--ink), transparent); }

/* ---------- 첫 화면: 가운데 정렬 + 아래에서 펼쳐지는 색 견본 ---------- */
.hero--center { align-items: flex-start; min-height: clamp(600px, 90vh, 860px); padding: calc(var(--header-h) + clamp(40px, 7vh, 72px)) 0 0; }
.hero__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 940px; margin: 0 auto;
  padding-bottom: clamp(200px, 30vh, 300px);
}
.hero--center #hero-title { font-size: clamp(34px, 1.2rem + 3.4vw, 74px); line-height: 1.16; margin: 22px 0 22px; }
.hero--center .hero__lead { max-width: 32em; margin: 0 auto; }
.hero--center .btn-row { justify-content: center; margin-top: 34px; }
.hero__arc {
  position: absolute; z-index: -1; left: 50%; bottom: 0; pointer-events: none;
  width: clamp(620px, min(100vw, 140vh), 1180px);
  transform: translate(-50%, 60%);
  opacity: 0; transition: opacity 1s var(--ease) .2s;
}
.is-loaded .hero__arc { opacity: 1; }
.hero__arc-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 -10px 30px rgba(9, 9, 11, .12)); }
.hero__arc-svg .sw { transform-origin: 0 0; transform: rotate(0deg); transition: transform 1.4s var(--ease) .45s; }
.is-loaded .hero__arc-svg .sw { transform: rotate(var(--r)); }
.hero__photo { position: absolute; left: 50%; bottom: 0; width: clamp(120px, 12vw, 180px); transform: translateX(-50%); pointer-events: none; }
.hero__photo .hero__frame img { object-position: 50% 15%; }
.person__media img { object-position: 50% 20%; }
.hero__photo .hero__frame { position: relative; left: auto; top: auto; width: 100%; transform: none; border-radius: 999px 999px 0 0; }

/* ---------- 첫 화면: 왼쪽 약속 문장 + 오른쪽 대표 사진 ---------- */
.hero--split { min-height: clamp(600px, 88vh, 820px); padding: calc(var(--header-h) + 40px) 0 64px; }
.hero__split { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero--split #hero-title { font-size: clamp(34px, 1.2rem + 3vw, 66px); line-height: 1.18; }
.hero--split .btn-row { margin-top: 36px; }
.hero__creds { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero__creds li { display: inline-flex; align-items: center; gap: 8px; }
.hero__creds li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__stage { position: relative; justify-self: end; width: 100%; max-width: 500px; aspect-ratio: 5 / 6; }
.hero__portrait {
  position: absolute; right: 0; top: 0; width: 78%; aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: linear-gradient(180deg, var(--tint), #ffffff);
  box-shadow: var(--shadow-deep);
  transform: scale(.96); transition: transform 1s var(--ease) .25s;
}
.hero__portrait img { object-position: 50% 12%; }
.hero__drape {
  position: absolute; z-index: 2; left: 0; bottom: 4%; width: 50%; aspect-ratio: 4 / 3;
  border: 6px solid var(--bg); box-shadow: var(--shadow-deep);
  opacity: 0; transform: rotate(-5deg) translateY(24px); transition: opacity .9s var(--ease) .55s, transform .9s var(--ease) .55s;
}
.hero__tag {
  position: absolute; z-index: 3; right: 4%; bottom: 8%;
  padding: 12px 18px; border-radius: 16px; line-height: 1.4;
  background: rgba(250, 250, 250, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease) .8s, transform .8s var(--ease) .8s;
}
.hero__tag b { display: block; font-size: 17px; }
.hero__tag span { font-size: 13px; color: var(--ink-2); }
.is-loaded .hero__portrait { transform: none; }
.is-loaded .hero__drape { opacity: 1; transform: rotate(-5deg); }
.is-loaded .hero__tag { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .hero--split { padding: calc(var(--header-h) + 36px) 0 56px; }
  .hero__split { grid-template-columns: 1fr; gap: 40px; }
  .hero__stage { justify-self: center; max-width: 400px; }
}
@media (max-width: 640px) {
  .hero__stage { max-width: 320px; }
  .hero__creds { margin-top: 28px; gap: 6px 14px; font-size: 13px; }
  .hero__drape { border-width: 4px; }
  .hero__tag { padding: 10px 14px; }
  .hero__tag b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__portrait, .hero__tag { transform: none; opacity: 1; }
  .hero__drape { opacity: 1; transform: rotate(-5deg); }
}

/* 첫 화면 등장 (0.1초 간격) */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-loaded .rise { opacity: 1; transform: none; }
.is-loaded .rise:nth-child(2) { transition-delay: .1s; }
.is-loaded .rise:nth-child(3) { transition-delay: .2s; }
.is-loaded .rise:nth-child(4) { transition-delay: .3s; }
.is-loaded .rise:nth-child(5) { transition-delay: .4s; }

/* ---------- 정보 띠 ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { display: flex; align-items: center; gap: 12px; padding: 22px 20px; font-size: 15px; font-weight: 600; }
.facts li + li { border-left: 1px solid var(--line); }
.facts svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.facts small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; }

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(88px, 10vw, 136px) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: var(--bg); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 5.5vw, 72px); }
.section-head h2 { margin-top: 16px; font-size: clamp(28px, 1rem + 2vw, 46px); }
.section-head p { margin-top: 20px; font-size: 18px; line-height: 1.75; color: var(--ink-2); max-width: 36em; }
.section--dark .section-head p { color: var(--paper-2); }
.section-foot { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.accent-word { color: var(--accent); }
.section--dark .accent-word { color: var(--accent-dark); }

/* ---------- 서비스 카드 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.svc-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  overflow: hidden; background-color: var(--bg); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.svc-card .ph { border-radius: 0; }
.svc-card .ph > img { transition: transform 1.2s var(--ease); }
.svc-card:hover .ph > img { transform: scale(1.04); }
.svc-card__body { padding: 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.svc-card__tag { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--ink-2); }
.svc-card h3 { font-size: clamp(22px, 1rem + .8vw, 28px); }
.svc-card p { color: var(--ink-2); }
.svc-card ul { display: grid; gap: 8px; margin: 4px 0 8px; }
.svc-card li { display: flex; gap: 10px; font-size: 16px; }
.svc-card li svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--accent); }
.svc-card .btn { align-self: flex-start; margin-top: auto; }

.svc-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-grid--3 .svc-card__body { padding: 28px; }

/* ---------- 온라인 채널 버튼 ---------- */
.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.channel {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 700;
  transition: background-color .3s, color .3s, border-color .3s;
}
.channel svg { width: 20px; height: 20px; }
.channel:hover .logo-threads { color: inherit; }
.channel:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.footer .channel { border-color: var(--line-dark); color: var(--bg); }
.footer .channel:hover { background: var(--bg); color: var(--ink); }

/* ---------- 강의·활동 목록 ---------- */
.records { display: grid; border-top: 1px solid var(--line); }
.records li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.records__tag { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--ink-2); padding-top: 3px; }
.records h3 { font-size: 19px; }
.records p { margin-top: 4px; color: var(--ink-2); font-size: 16px; }

/* 교실 수업 사진: 대표가 서 있는 오른쪽이 보이게 */
img[src$="lecture-1.jpg"] { object-position: 66% 50%; }
img[src$="lecture-3.jpg"] { object-position: 24% 50%; }
img[src$="lecture-4.jpg"] { object-position: 55% 30%; }
img[src$="lecture-5.jpg"] { object-position: 62% 42%; } /* 대표가 서 있는 쪽이 보이게 */
.lecture-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
@media (max-width: 640px) { .lecture-shots { grid-template-columns: 1fr; } }

/* ---------- 수업·활동 갤러리 ---------- */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gal__item {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--tint); cursor: zoom-in;
}
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gal__item:hover img { transform: scale(1.04); }
.gal__item::after { /* 마우스를 올리면 아래에 설명이 보임 */
  content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 28px 16px 14px;
  font-size: 14px; font-weight: 600; color: var(--bg); line-height: 1.4;
  background: linear-gradient(transparent, rgba(9, 9, 11, .7)); opacity: 0; transition: opacity .3s;
}
.gal__item:hover::after, .gal__item:focus-visible::after { opacity: 1; }
.gal--page .gal__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 640px) {
  .gal { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gal__item { border-radius: 14px; }
  .gal--page .gal__item:first-child { grid-row: span 1; aspect-ratio: 4 / 3; }
  .gal__item::after { display: none; }
}

/* 사진 크게 보기 */
.lb { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 72px 72px 88px; background: rgba(9, 9, 11, .94); }
.lb.is-open { display: flex; }
.lb__img { max-width: min(1280px, 100%); max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; -webkit-user-select: none; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 28px; padding: 0 24px; text-align: center; color: var(--bg); font-size: 15px; }
.lb__cap span { opacity: .6; margin-left: 10px; }
.lb__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(250, 250, 250, .3); background: rgba(250, 250, 250, .08); color: var(--bg); cursor: pointer;
  transition: background-color .2s;
}
.lb__btn:hover { background: rgba(250, 250, 250, .2); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb { padding: 64px 12px 120px; }
  .lb__prev, .lb__next { top: auto; bottom: 56px; transform: none; }
  .lb__prev { left: calc(50% - 64px); } .lb__next { right: calc(50% - 64px); }
  .lb__cap { bottom: 20px; font-size: 13px; }
}

/* ---------- 소식 (build_site.js 가 만드는 페이지) ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); overflow: hidden; background: var(--bg); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.news-card__link { display: flex; flex-direction: column; height: 100%; }
.news-card .ph { border-radius: 0; }
.news-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.news-card h2 { font-size: 20px; line-height: 1.4; }
.news-card p { color: var(--ink-2); font-size: 16px; }
.news-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.news-card__more svg { width: 16px; height: 16px; }
.news-empty { padding: 48px 0; text-align: center; color: var(--ink-2); font-size: 18px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.article__cat { padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--ink); font-weight: 700; font-size: 13px; }
.page-hero .article__meta { margin-bottom: 16px; }
.article-wrap { max-width: calc(780px + var(--gutter) * 2); }
.article-section { padding-top: 24px; }
.article__cover { margin: 0 0 48px; border-radius: var(--radius); }
.article__cover img { width: 100%; height: auto; }
.article__body { font-size: 18px; line-height: 1.9; color: var(--ink); word-break: keep-all; }
.article__body > * + * { margin-top: 1.1em; }
.article__body h2 { margin-top: 2em; font-size: clamp(24px, 1rem + 1.2vw, 32px); line-height: 1.35; }
.article__body h3 { margin-top: 1.6em; font-size: 21px; }
.article__body p, .article__body li { color: var(--ink-2); }
.article__body strong { color: var(--ink); }
.article__body a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.article__body ul, .article__body ol { padding-left: 1.3em; list-style: revert; display: grid; gap: .4em; }
.article__body img { border-radius: var(--radius); margin: 1.4em 0; }
.article__body blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--font-serif); color: var(--ink); }
.article__body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article__body th, .article__body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.article__body th { background: var(--tint); }
.article__related { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.article__related .next-links { margin-top: 16px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; gap: 20px; }
  .article__body { font-size: 17px; }
  .article__body table { display: block; overflow-x: auto; }
}

/* ---------- 진단 가격 ---------- */
.price-extra { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.price-extra li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.price-extra b { font-size: 17px; }
.price-extra span { font-size: 20px; font-weight: 800; }
@media (max-width: 640px) { .price-extra { grid-template-columns: 1fr; } }

/* ---------- 저서 ---------- */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.book__cover { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); box-shadow: var(--shadow-deep); }
.book__cover img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.book__cover:hover img { transform: scale(1.03); }
.book__tagline { margin-top: 14px; font-family: var(--font-serif); font-size: 17px; color: var(--ink-2); }
.book__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.book__meta span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.book__toc { display: grid; gap: 12px; margin-top: 28px; }
.book__toc li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.book__toc b { font-size: 13px; letter-spacing: .08em; color: var(--ink-2); padding-top: 2px; }
.section--dark .book__tagline { color: var(--paper-2); }
.section--dark .book__meta span { border-color: var(--line-dark); color: var(--bg); }
.section--dark .book__cover { background: transparent; }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } }

/* ---------- 대표자 약력 ---------- */
.cv-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-top: 40px; }
.cv-block { padding: 32px; border-radius: var(--radius); background: var(--tint); }
.cv-block h3 { font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.cv-block h3::before { content: ""; width: 20px; height: 3px; background: var(--accent); border-radius: 2px; }
.cv-list { display: grid; gap: 10px; }
.cv-list li { position: relative; padding-left: 16px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.cv-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: .5; }
@media (max-width: 960px) { .cv-grid { grid-template-columns: 1fr; } .cv-block { padding: 24px; } }

/* ---------- 이런 분께 ---------- */
.needs { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.needs li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 32px 8px 32px 0; border-bottom: 1px solid var(--line); }
.needs li:nth-child(odd) { padding-right: 40px; }
.needs li:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line); }
.needs__num { font-size: 40px; font-weight: 900; line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.needs h3 { font-size: 20px; margin-bottom: 8px; }
.needs p { color: var(--ink-2); font-size: 16px; }

/* ---------- 핵심 메시지 (어두운 섹션) ---------- */
.statement { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 1rem + 2.4vw, 54px); line-height: 1.45; letter-spacing: -.02em; max-width: 18em; }
.statement .q { color: var(--accent-dark); font-size: 1.4em; line-height: 0; vertical-align: -.3em; margin-right: .1em; }
.statement-note { margin-top: 28px; max-width: 36em; color: var(--paper-2); font-size: 18px; }
.marquee { margin-top: clamp(56px, 7vw, 88px); overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 22px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { padding-right: 48px; font-size: clamp(28px, 1rem + 2.2vw, 52px); font-weight: 900; letter-spacing: -.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(250, 250, 250, .55); }
.marquee__track span:nth-child(4n+2) { color: var(--accent-dark); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 곡선을 따라 흐르는 글자 띠 — From React Bits "CurvedLoop" (CSS 원본을 이 구역에 맞게 조정) */
.curved-loop-jacket {
  margin-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(16px, 3vw, 40px);
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  cursor: grab; touch-action: pan-y;
}
.curved-loop-jacket.is-dragging { cursor: grabbing; }
.curved-loop-svg {
  user-select: none; -moz-user-select: none; -webkit-user-select: none;
  width: 100%;
  aspect-ratio: 100 / 12;
  overflow: visible;
  display: block;
  font-size: 6rem;
  fill: var(--bg);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}
.curved-loop-svg .accent { fill: var(--accent-dark); }

/* ---------- 과정 (타임라인) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 36px 28px 0 0; border-top: 1px solid var(--ink); }
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.steps__num { display: block; font-size: 64px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); letter-spacing: -.04em; margin-bottom: 20px; }
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 16px; }
.steps-note { margin-top: 40px; font-size: 15px; color: var(--ink-2); }
.section--dark .steps li { border-top-color: rgba(250, 250, 250, .4); }
.section--dark .steps li::before { background: var(--accent-dark); }
.section--dark .steps__num { -webkit-text-stroke-color: rgba(250, 250, 250, .6); }
.section--dark .steps p { color: var(--paper-2); }

/* ---------- 대형 이미지 띠 ---------- */
/* 화면 폭 전체 대형 사진 섹션 (화면 높이의 약 85%) */
.band { position: relative; height: clamp(460px, 85svh, 900px); border-radius: 0; isolation: isolate; }
.band > img { transform: scale(1.08); will-change: transform; transition: scale 2.4s var(--ease); }
.band:hover > img { scale: 1.05; } /* 마우스를 올리면 천천히 확대 */
.band::after { /* 어두운 막: 아래로 갈수록 진하게 (글자가 또렷하도록) */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(9, 9, 11, .2) 0%, rgba(9, 9, 11, .35) 40%, rgba(9, 9, 11, .82) 100%);
}
.band--soft::after { /* 흐린 사진은 막을 더 진하게 */
  background: linear-gradient(180deg, rgba(9, 9, 11, .45) 0%, rgba(9, 9, 11, .55) 40%, rgba(9, 9, 11, .88) 100%);
}
.band.is-empty::after { display: none; }
.band__text { position: absolute; z-index: 2; inset: auto 0 0 0; padding-bottom: clamp(48px, 8vw, 104px); color: var(--bg); }
.band.is-empty .band__text { color: var(--ink); }
.band__eyebrow { display: inline-block; margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--accent-dark); }
.band__text p { font-size: clamp(28px, 1rem + 3vw, 72px); font-weight: 900; letter-spacing: -.035em; line-height: 1.22; max-width: 15em; text-wrap: balance; text-shadow: 0 2px 24px rgba(9, 9, 11, .35); }
.band__text small { display: block; margin-top: 18px; font-size: clamp(15px, .9rem + .3vw, 18px); font-weight: 600; opacity: .9; }
@media (max-width: 640px) {
  .band { height: clamp(420px, 72svh, 640px); }
  .band__text p { font-size: clamp(26px, 7.4vw, 34px); }
}

/* 사진과 글 반반 (사진 쪽은 화면 끝까지 꽉 차게) */
.split-bleed { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(560px, 86svh, 900px); background: var(--bg); }
.split-bleed__media { position: relative; overflow: hidden; margin: 0; background: var(--tint); }
.split-bleed__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: scale 2.4s var(--ease); will-change: transform; }
.split-bleed__media:hover img { scale: 1.05; }
/* 대표 사진: 확대·움직임 없이 얼굴과 어깨가 잘리지 않게 (흰 배경 사진이라 흰 바탕으로 이어 붙임) */
.split-bleed__media:has(img[data-static]) { background: #ffffff; }
.split-bleed__media img[data-static] { object-fit: contain; object-position: 50% 100%; transform: none !important; }
.split-bleed__media:hover img[data-static] { scale: 1; }
.split-bleed__text { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 120px) clamp(24px, 6vw, 112px); max-width: 720px; }
@media (max-width: 960px) {
  .split-bleed { grid-template-columns: 1fr; }
  .split-bleed__media { aspect-ratio: 4 / 5; max-height: 76svh; }
}
.band .ph__empty { justify-content: flex-start; padding-top: 40px; }

/* ---------- 분할 소개 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--rev .split__media { order: 2; }
.points { display: grid; gap: 28px; margin-top: 36px; }
.points li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.points__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.section--tint .points__icon { background: var(--bg); }
.points__icon svg { width: 24px; height: 24px; }
.points h3 { font-size: 19px; margin-bottom: 6px; }
.points--row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 40px; margin-top: 44px; }
.points p { color: var(--ink-2); font-size: 16px; }

/* ---------- 대표자 ---------- */
.person { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.person__name { margin-top: 18px; font-size: clamp(30px, 1rem + 2vw, 48px); }
.person__role { margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.person__text { margin-top: 24px; display: grid; gap: 16px; font-size: 17px; color: var(--ink-2); }

/* ---------- 체크리스트 ---------- */
.checks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.checks li { padding: 28px 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.checks__no { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--ink-2); }
.checks h3 { margin: 14px 0 8px; font-size: 18px; }
.checks p { font-size: 15px; color: var(--ink-2); line-height: 1.65; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: clamp(17px, 1rem + .3vw, 20px); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 22px; height: 22px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { padding: 0 48px 28px 0; color: var(--ink-2); display: grid; gap: 10px; }
.faq__a a { color: var(--ink); font-weight: 700; border-bottom: 1px solid currentColor; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 22px; margin-bottom: 16px; }

/* ---------- 문의 띠 ---------- */
.cta-band { background: var(--tint); padding: clamp(72px, 9vw, 120px) 0; }
.cta-band__inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; }
.cta-band h2 { font-size: clamp(30px, 1rem + 2.6vw, 58px); font-weight: 900; letter-spacing: -.035em; }
.cta-band p { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.cta-band .btn-row { justify-content: flex-end; }

/* ---------- 연락처·지도 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); }
.info-list { display: grid; border-top: 1px solid var(--line); }
.info-list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.info-list dd { margin: 0; font-weight: 600; }
.info-list a { border-bottom: 1px solid currentColor; }
.map { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); background: var(--tint); }
.contact-ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.way { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); transition: border-color .3s, box-shadow .3s; }
.way:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.way svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.way b { display: block; font-size: 17px; }
.way span { font-size: 14px; color: var(--ink-2); }

/* ---------- 하위 페이지 머리 ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(56px, 7vw, 88px); background: linear-gradient(180deg, var(--tint), var(--bg)); }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: 24px; }
.crumbs a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(32px, 1rem + 2.8vw, 60px); font-weight: 900; letter-spacing: -.035em; max-width: 16em; }
.page-hero .lead { margin-top: 22px; max-width: 40em; font-size: clamp(17px, 1rem + .3vw, 20px); color: var(--ink-2); }
.page-hero .btn-row { margin-top: 32px; }

.prose { max-width: 760px; display: grid; gap: 20px; font-size: 18px; color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: clamp(24px, 1rem + 1.2vw, 34px); margin-top: 24px; }
.prose h3 { color: var(--ink); font-size: 21px; margin-top: 8px; }
.prose strong { color: var(--ink); }
.prose ol, .prose ul { display: grid; gap: 10px; }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 44px; counter-increment: n; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0; font-weight: 900; color: var(--accent); }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 20px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--tint); font-size: 14px; letter-spacing: .04em; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td a { font-weight: 700; border-bottom: 1px solid currentColor; }

.next-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.next-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); font-weight: 700; font-size: 18px; transition: background-color .3s, color .3s; }
.next-links a:hover { background: var(--ink); color: var(--bg); }
.next-links svg { width: 22px; height: 22px; flex: none; }
.next-links small { display: block; font-size: 13px; font-weight: 600; opacity: .7; }

/* ---------- 푸터 ---------- */
.footer { background: var(--dark); color: var(--bg); padding: clamp(72px, 8vw, 104px) 0 40px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer h2 { font-size: 15px; letter-spacing: .1em; color: var(--paper-2); margin-bottom: 18px; font-weight: 700; }
.footer address { font-style: normal; display: grid; gap: 6px; color: var(--paper-2); font-size: 15px; line-height: 1.7; }
.footer address b { color: var(--bg); font-size: 18px; margin-bottom: 6px; }
.footer address a:hover, .footer nav a:hover { color: var(--accent-dark); }
.footer nav { display: grid; gap: 10px; font-size: 15px; color: var(--paper-2); }
.footer__cta p { color: var(--paper-2); font-size: 15px; margin-bottom: 18px; }
.footer__giant {
  margin: 48px 0 24px; font-weight: 900; letter-spacing: -.05em; line-height: .95; white-space: nowrap;
  font-size: clamp(26px, 7.4vw, 104px); color: var(--bg);
}
.footer__giant em { font-style: normal; color: var(--accent-dark); -webkit-text-stroke: 0; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--paper-2); }

/* ---------- 모바일 하단 고정 바 ---------- */
.dock { display: none; }

/* ---------- 오른쪽 아래 고정 "문의하기" (카카오톡) ---------- */
.fab {
  position: fixed; z-index: 95; right: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  background: #FEE500; color: #191919; font-weight: 800; font-size: 16px;
  box-shadow: 0 2px 6px rgba(9, 9, 11, .12), 0 16px 32px -12px rgba(9, 9, 11, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.fab svg { width: 24px; height: 24px; }
.fab:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(9, 9, 11, .14), 0 22px 40px -14px rgba(9, 9, 11, .45); }
@media (max-width: 640px) {
  /* 휴대폰: 하단 고정 바에 카카오톡 버튼이 있으므로 겹치지 않게 숨김 */
  .fab { display: none; }
}
@media print { .fab, .dock { display: none !important; } }

/* ---------- 스크롤 등장 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1100px) {
  .checks { grid-template-columns: repeat(3, 1fr); }
  .svc-grid--3 { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px; background: var(--bg); box-shadow: 0 20px 40px -20px rgba(9, 9, 11, .3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .header__cta { display: none; }
  .header.menu-open { background: var(--bg); }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; --header-h: 68px; }

  .hero { min-height: 0; padding: calc(var(--header-h) + 40px) 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__visual { justify-self: center; max-width: 380px; }
  .gridscan__floor { height: 55%; background-size: 44px 44px; }
  .scroll-cue { display: none; }

  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .svc-grid, .svc-grid--3, .split, .person, .contact-grid, .cta-band__inner { grid-template-columns: 1fr; }
  .records li { grid-template-columns: 1fr; gap: 6px; }
  .split--rev .split__media { order: 0; }
  .needs { grid-template-columns: 1fr; }
  .needs li:nth-child(n) { padding: 28px 0; border-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 24px; }
  .cta-band .btn-row { justify-content: flex-start; }
  .next-links { grid-template-columns: 1fr; }
  .person__media { max-width: 400px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; padding-bottom: 76px; }
  .brand { font-size: 15px; }
  .hero .btn-row .btn { width: 100%; }
  .hero__lead { font-size: 17px; }
  .hero .btn-ghost { min-height: 48px; }
  .hero--center { padding-top: calc(var(--header-h) + 36px); }
  .hero__inner { padding-bottom: 180px; }
  .hero__arc { width: 170vw; transform: translate(-50%, 60%); }
  .hero--center .btn-row { width: 100%; }
  .hero__meta { margin-top: 28px; gap: 6px 16px; font-size: 13px; }
  .hero__visual { max-width: 300px; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .facts li { padding: 16px 0; }
  .svc-card__body { padding: 24px; }
  .steps { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .contact-ways { grid-template-columns: 1fr; }
  .info-list div { grid-template-columns: 88px 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; }
  .section-foot .btn, .cta-band .btn, .page-hero .btn { width: 100%; }
  .faq__a { padding-right: 0; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 250, 250, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .dock .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
}

/* =========================================================
   휴대폰 점검 후 보완 (누르기 쉬운 크기, 글자 크기, 표, 넘침)
   ========================================================= */
.section--dark { overflow-x: clip; } /* 곡선 글자 띠가 화면 밖으로 나가지 않게 */
@media (max-width: 640px) {
  /* 누르는 곳은 높이 44px 이상 */
  .brand { min-height: 44px; }
  .text-link { min-height: 44px; padding: 0; border-bottom: 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
  .crumbs { flex-wrap: wrap; gap: 0 8px; }
  .crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 4px; margin: 0 -8px; }
  .footer nav { gap: 0; }
  .footer nav a { display: flex; align-items: center; min-height: 44px; }
  .footer address a { display: inline-flex; align-items: center; min-height: 44px; }
  .faq__a a, .info-list a { display: inline-flex; align-items: center; min-height: 44px; }
  /* 작은 이름표 글자 키우기 */
  .facts small { font-size: 13px; }
  /* 첫 화면 오로라: 휴대폰은 화면이 좁아 색이 진하게 덮이므로 더 옅게 */
  .aurora-container.is-on { opacity: .3; }
  /* 표: 휴대폰에서는 줄마다 카드처럼 위아래로 펼쳐 보기 (옆으로 밀 필요 없음) */
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .table { min-width: 0; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
  .table tbody th { padding: 14px 18px; background: var(--tint); font-size: 15px; border-bottom: 1px solid var(--line); }
  .table td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
  .table td:last-child { border-bottom: 0; }
  .table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
  .table td a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 0; text-decoration: underline; text-underline-offset: 4px; }
  .faq__a a, .info-list a { border-bottom: 0; text-decoration: underline; text-underline-offset: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .rise { opacity: 1; transform: none; }
  .hl::after { transform: scaleX(1); }
  .hero__fan .sw, .hero__arc-svg .sw { transform: rotate(var(--r)); }
  .hero__arc { opacity: 1; }
  .band > img { transform: none; }
}

/* ---------- 방문자 후기 (reviews.html) ---------- */
.rev-grid { columns: 3 320px; column-gap: 24px; }
.rev { break-inside: avoid; margin: 0 0 24px; padding: 28px 26px; background: #fff; border: 1px solid var(--line, #eee); border-radius: 20px; box-shadow: 0 1px 2px rgba(9, 9, 11, .04); }
.rev__tag { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--tint, #fff1f1); color: var(--accent, #d7141f); font-size: 13px; font-weight: 700; }
.rev blockquote { margin: 0; font-size: 16px; line-height: 1.75; color: var(--ink, #18181b); }
.rev blockquote p + p { margin-top: 10px; }
.rev figcaption { margin-top: 16px; font-size: 13px; color: var(--muted, #71717a); }
.rev-more { margin-top: 16px; text-align: center; }
.rev-grid--home { columns: 3 300px; }
.news-card h3 { font-size: 19px; line-height: 1.4; margin: 6px 0 8px; }
