/* ==========================================================================
   마음돌봄 — Design Tokens
   ========================================================================== */
:root {
  /* Color: warm terracotta + sage, ivory ground */
  --color-bg: #fbf7f2;
  --color-bg-soft: #f4ece3;
  --color-bg-deep: #efe4d6;
  --color-surface: #ffffff;

  --color-primary: #c1704a;
  --color-primary-dark: #a25a38;
  --color-primary-light: #e8c4ae;
  --color-primary-tint: #f7e9e0;

  --color-secondary: #7c9070;
  --color-secondary-dark: #5f7355;
  --color-secondary-tint: #eaf0e5;

  --color-accent: #cf9a41;
  --color-accent-tint: #f8ecd2;

  --color-text: #3a322c;
  --color-text-soft: #6f6157;
  --color-text-mute: #9c8f83;
  --color-border: #e7dbcd;
  --color-white: #ffffff;

  --shadow-sm: 0 2px 10px rgba(58, 50, 44, 0.06);
  --shadow-md: 0 12px 32px rgba(58, 50, 44, 0.09);
  --shadow-lg: 0 24px 60px rgba(58, 50, 44, 0.14);
  --shadow-float: 0 2px 6px rgba(58, 50, 44, 0.04), 0 18px 36px -14px rgba(58, 50, 44, 0.16);
  /* 테라코타 기운이 감도는 다층 종이 그림자: 접지 · 확산 · 앰비언트 3겹 */
  --shadow-paper: 0 1px 1px rgba(120, 64, 38, 0.04), 0 4px 10px -3px rgba(120, 64, 38, 0.06), 0 14px 30px -14px rgba(150, 80, 48, 0.12);
  --shadow-paper-lift: 0 2px 3px rgba(120, 64, 38, 0.05), 0 12px 22px -8px rgba(120, 64, 38, 0.10), 0 32px 56px -20px rgba(162, 90, 56, 0.24);
  --shadow-cta: 0 2px 4px -1px rgba(162, 90, 56, 0.30), 0 10px 22px -10px rgba(162, 90, 56, 0.55), 0 22px 40px -22px rgba(193, 112, 74, 0.45);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 999px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 140px;

  --font-display: "Gowun Batang", "Noto Serif KR", serif;
  --font-body: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 220ms;
  --dur-mid: 420ms;
  --dur-slow: 720ms;

  --container: 1180px;

  /* Typography scale (Gowun Batang display / Pretendard body) */
  --fs-h1: clamp(34px, 4.6vw + 8px, 56px);
  --fs-h2: clamp(28px, 2.6vw + 14px, 42px);
  --fs-h3: clamp(19px, 0.6vw + 16px, 23px);
  --fs-h4: 17px;
  --fs-lede: clamp(16.5px, 0.3vw + 15px, 18px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-eyebrow: 12.5px;

  --lh-h1: 1.28;
  --lh-h2: 1.36;
  --lh-h3: 1.45;
  --lh-h4: 1.5;
  --lh-body: 1.75;

  --ls-h1: -0.022em;
  --ls-h2: -0.018em;
  --ls-h3: -0.01em;
  --ls-h4: -0.005em;
  --ls-eyebrow: 0.14em;

  /* Spacing rhythm: sections & cards */
  --section-pad-y: clamp(64px, 6vw + 32px, 112px);
  --section-pad-y-mobile: 64px;
  --card-pad: 32px;
  --card-pad-mobile: 28px;
  --grid-gap: 24px;
  --grid-gap-lg: 32px;

  /* Focus ring */
  --focus-ring-color: var(--color-secondary-dark);
  --focus-ring-width: 3px;
  --focus-ring-offset: 3px;
  --focus-ring-halo: 0 0 0 6px rgba(124, 144, 112, 0.22);

  /* Backdrop blur (header, overlays) */
  --blur-backdrop: 10px;
  --header-bg: rgba(251, 247, 242, 0.78);
  --header-bg-solid: rgba(251, 247, 242, 0.97);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 가로 넘침 방지: clip은 스크롤 컨테이너를 만들지 않아 sticky/fixed 동작을 해치지 않는다 */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
/* 한글 조판: 단어 단위 줄바꿈, 긴 URL/영문만 강제 줄바꿈 */
h1, h2, h3, h4, p, li, dd, dt, figcaption, blockquote, .lede {
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3 { text-wrap: balance; }
p, .lede { text-wrap: pretty; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  box-shadow: var(--focus-ring-halo);
}
.btn:focus-visible { border-radius: var(--radius-full); }
.site-footer :focus-visible,
.section-primary :focus-visible,
.cta-banner :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.28);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring-halo);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-tint);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.section-head {
  max-width: 620px;
  margin: 0 auto var(--space-5);
  text-align: center;
}
.section-head.align-left { margin-left: 0; text-align: left; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: var(--ls-h3);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.75;
  color: var(--color-text-soft);
  margin-top: var(--space-2);
}

.text-center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; transition-duration: 0.08s; }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 1px 2px rgba(162, 90, 56, 0.18), 0 6px 16px -8px rgba(162, 90, 56, 0.55);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-cta); }
.btn-primary:active { background: #8d4d2f; }
.btn-ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary-dark); background: #fffaf6; transform: translateY(-2px); }
.btn-ghost:active { background: var(--color-primary-tint); }
.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.btn-outline-light:active { background: rgba(255,255,255,0.22); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--header-bg-solid);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast), transform 0.45s var(--ease-out);
}
/* 스마트 헤더: 아래로 스크롤하면 위로 숨고, 위로 스크롤하면 즉시 다시 내려온다 */
.site-header.is-hidden { transform: translate3d(0, -100%, 0); box-shadow: none; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(140%) blur(var(--blur-backdrop));
    backdrop-filter: saturate(140%) blur(var(--blur-backdrop));
  }
  .img-lightbox {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}
.site-header.is-menu-open {
  background: var(--color-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: var(--color-border);
}
.site-header.is-scrolled {
  border-color: var(--color-border);
  box-shadow: 0 4px 20px rgba(58,50,44,0.05);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--color-text);
}
.logo-mark-img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: var(--space-5); }
.main-nav ul { display: flex; gap: var(--space-4); }
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-soft);
  padding: 8px 2px;
  position: relative;
  transition: color var(--dur-fast);
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--color-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.main-nav a:hover, .main-nav a.is-active, .main-nav a[aria-current="page"] { color: var(--color-text); }
.main-nav a:hover::after, .main-nav a.is-active::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a.is-active, .main-nav a[aria-current="page"] { color: var(--color-primary-dark); }
.main-nav a.is-active::after, .main-nav a[aria-current="page"]::after { height: 2px; border-radius: 2px; }

.header-cta { display: flex; align-items: center; gap: var(--space-2); }
.header-phone { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--color-text-soft); white-space: nowrap; letter-spacing: 0.01em; }
.header-cta .btn { white-space: nowrap; }
.logo { white-space: nowrap; flex-shrink: 0; }
.header-phone svg { width: 16px; height: 16px; color: var(--color-primary); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  width: 22px; height: 2px; background: var(--color-text);
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }
.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { transform: translateY(0) rotate(45deg); background: var(--color-text); }
.nav-toggle.is-active span::after { transform: translateY(0) rotate(-45deg); background: var(--color-text); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  --hero-header: 84px;
  padding: calc(var(--hero-header) + clamp(28px, 5vh, 64px)) 0 clamp(48px, 7vh, 88px);
  min-height: min(100svh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  /* 정갈한 아이보리 그러데이션 + 은은한 종이 결 */
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(232, 196, 174, 0.28) 0%, transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(234, 240, 229, 0.7) 0%, transparent 65%),
    linear-gradient(180deg, #fcf9f4 0%, var(--color-bg) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.36 0 0 0 0 0.28 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.hero > .container { width: 100%; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: blob-drift 24s ease-in-out infinite;
}
.hero-blob--warm {
  width: 520px; height: 520px; top: -180px; right: -160px;
  background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
}
.hero-blob--sage {
  width: 380px; height: 380px; bottom: -150px; left: -120px;
  background: radial-gradient(circle, var(--color-secondary-tint) 0%, transparent 70%);
  animation-duration: 30s;
  animation-delay: -9s;
}
@keyframes blob-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
  33% { transform: translate3d(-26px, 18px, 0) scale(1.06); opacity: 0.66; }
  66% { transform: translate3d(14px, -14px, 0) scale(0.97); opacity: 0.58; }
}
@keyframes blob-breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.7; }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary-dark);
  position: relative;
  /* 붓으로 살짝 칠한 듯한 밑줄 */
  background: linear-gradient(transparent 68%, rgba(207, 154, 65, 0.22) 68%, rgba(207, 154, 65, 0.22) 92%, transparent 92%);
}
.hero .lede { max-width: 34em; margin-top: var(--space-3); }
.hero-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: var(--space-4); }
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-soft);
  box-shadow: var(--shadow-sm);
}
.hero-badge svg { width: 15px; height: 15px; color: var(--color-secondary-dark); }
.hero-actions { display: flex; gap: 12px var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; align-items: center; }

/* 손그림 무대: 아치형 한지 액자 속 서촌 한옥 + 앞에 놓인 서촌상담소 */
.hero-art { position: relative; line-height: 0; }
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  padding: 0 0 8% 0;
}
.hero-paper {
  position: relative;
  aspect-ratio: 5 / 5.2;
  max-height: calc(100svh - var(--hero-header) - 120px);
  margin-left: auto;
  border-radius: 280px 280px 28px 28px;
  overflow: hidden;
  background: #f6ece2;
  border: 1px solid rgba(193, 112, 74, 0.16);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 30px 60px -28px rgba(58, 50, 44, 0.28), 0 10px 24px -14px rgba(58, 50, 44, 0.16);
}
.hero-paper::after {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 270px 270px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
}
.hero-hanok {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 38% 72%;
  mix-blend-mode: multiply;
}
.hero-house {
  position: absolute;
  left: -10%;
  bottom: 0;
  width: 54%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(58, 50, 44, 0.18));
  animation: hero-img-breathe 9s ease-in-out infinite;
}
/* 두 손그림이 모두 준비될 때까지 숨겼다가 한 프레임에 함께 노출 (js/motion.js) */
.hero-art-pending .hero-hanok,
.hero-art-pending .hero-house { opacity: 0; }
@keyframes hero-img-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.illus-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.illus-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Sections / Cards
   ========================================================================== */
.section { padding: var(--section-pad-y) 0; }
.section-soft { background: var(--color-bg-soft); }
.section-primary {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
}
.section-primary h2, .section-primary .eyebrow { color: #fff; }
.section-primary .eyebrow { background: rgba(255,255,255,0.16); color: #fff; }
.section-primary .lede { color: rgba(255,255,255,0.82); }

.grid { display: grid; gap: var(--grid-gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--card-pad);
  box-shadow: var(--shadow-paper);
  transition: transform 0.35s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-paper-lift); border-color: var(--color-primary-light); }
a.card:active { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.icon-tile {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid; place-items: center;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}
.icon-tile svg { width: 26px; height: 26px; }

.avatar-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}
.tile-terracotta { background: var(--color-primary-tint); color: var(--color-primary-dark); }
.tile-sage { background: var(--color-secondary-tint); color: var(--color-secondary-dark); }
.tile-gold { background: var(--color-accent-tint); color: #a97a1f; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-soft); font-size: 15px; }

/* pill link inside card */
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--space-2);
  font-size: 14px; font-weight: 700;
  color: var(--color-primary-dark);
}
.card-link svg { width: 14px; height: 14px; transition: transform var(--dur-fast); }
.card:hover .card-link svg, .location-card:hover .card-link svg { transform: translateX(4px); }

/* ==========================================================================
   Philosophy split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
  align-items: center;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .split-art { order: 2; }

.split-art { position: relative; }
.quote-mark { font-family: var(--font-display); font-size: 64px; color: var(--color-primary-light); line-height: 1; }

/* ==========================================================================
   Location cards
   ========================================================================== */
.location-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  transition: box-shadow 0.45s var(--ease-out), transform 0.35s var(--ease-out);
}
.location-card:hover { box-shadow: var(--shadow-paper-lift); transform: translateY(-4px); }
a.location-card { display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.card { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.location-visual {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.location-visual svg { width: 72px; height: 72px; opacity: 0.9; }
.location-visual.counselor-visual { height: 220px; }
.location-visual.counselor-visual svg { width: 150px; height: 150px; }
.location-visual.book-visual { height: 200px; background: var(--color-bg-soft); }
.location-visual.book-visual img { width: auto; height: 100%; max-width: 100%; object-fit: contain; box-shadow: var(--shadow-sm); }
.location-body { padding: var(--card-pad); }
.location-tag {
  display: inline-block;
  font-size: 12.5px; font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-primary-tint);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}
.location-meta { margin-top: var(--space-2); display: flex; flex-direction: column; gap: 8px; }
.location-meta li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--color-text-soft); }
.location-meta svg { width: 16px; height: 16px; color: var(--color-secondary-dark); margin-top: 2px; flex-shrink: 0; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-wrap { margin-top: clamp(-40px, -3vw, -16px); position: relative; z-index: 2; }
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: var(--space-4) var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-paper), 0 30px 60px -34px rgba(162, 90, 56, 0.22);
}
.stat { text-align: center; padding: 4px var(--space-2); position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 1px; background: var(--color-border);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 1.6vw + 22px, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}
.stat strong small {
  font-family: var(--font-body);
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 3px;
  color: var(--color-text-soft);
  vertical-align: 0.5em;
}
.stat span { font-size: 13.5px; color: var(--color-text-soft); letter-spacing: 0.01em; }

/* ==========================================================================
   Timeline (연혁 축약)
   ========================================================================== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--color-border); }
.timeline-item { position: relative; padding-bottom: var(--space-4); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-primary); border: 3px solid var(--color-primary-tint);
}
.timeline-year { font-weight: 700; color: var(--color-primary-dark); font-size: 14px; margin-bottom: 4px; }
.timeline-item p { color: var(--color-text-soft); font-size: 15px; }

.timeline-full { max-width: 760px; margin: 0 auto; }
.timeline-full .year-group {
  position: relative;
  padding: 0 0 var(--space-6) 32px;
  border-left: 2px solid var(--color-border);
}
.timeline-full .year-group:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-full .year-group::before {
  content: ''; position: absolute; left: -7px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-primary); border: 3px solid var(--color-primary-tint);
}
.timeline-full .year-label {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}
.timeline-full .year-entries { list-style: none; padding: 0; margin: 0; }
.timeline-full .year-entries li {
  display: flex; gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 14.5px; line-height: 1.6;
  color: var(--color-text-soft);
}
.timeline-full .year-entries li:last-child { border-bottom: none; }
.timeline-full .year-entries li > span:last-child { flex: 1 1 auto; min-width: 0; }
.timeline-full .entry-when {
  flex: none; width: 60px;
  color: var(--color-text-mute);
  font-weight: 600; font-size: 13px;
  padding-top: 1px;
}

/* ==========================================================================
   Steps (process)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); counter-reset: step; }
.step { position: relative; padding: var(--space-4) var(--space-3) var(--space-3); background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-paper); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  margin-bottom: var(--space-2);
}
.step h3 { font-size: 18px; }
.step p { color: var(--color-text-soft); font-size: 14px; margin-top: 6px; }
.step-arrow { display: none; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-top: var(--space-2); font-size: 17px; }
.cta-actions { display: flex; gap: var(--space-2); justify-content: center; margin-top: var(--space-4); flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #33291f; color: #cfc3b6; padding: var(--space-7) 0 var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-5) var(--space-4); padding-bottom: var(--space-5); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 700; color: #fff; }
.footer-logo .logo-mark-img { background: #fff; border-radius: 50%; padding: 4px; }
.footer-logo-img { height: 84px; width: auto; max-width: 100%; background: #fff; padding: 16px 24px; border-radius: 14px; display: block; }
.footer-desc { font-size: 14px; line-height: 1.8; color: #b8ab9d; max-width: 300px; }
.footer-col .footer-heading {
  color: #fff; font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  line-height: 1.4; letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  margin-bottom: var(--space-3); padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 14px; line-height: 1.6; color: #b8ab9d; }
.footer-col a { transition: color var(--dur-fast); text-underline-offset: 3px; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); }
.footer-col .footer-hours { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px dashed rgba(255,255,255,0.12); gap: 4px; }
.footer-col .footer-hours li { color: #cfc3b6; font-variant-numeric: tabular-nums; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; padding-top: var(--space-3); font-size: 12.5px; line-height: 1.7; color: #8d8072; flex-wrap: wrap; gap: 10px var(--space-4); }
.footer-legal { font-style: normal; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.footer-copy { letter-spacing: 0.06em; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; transition: background var(--dur-fast); }
.footer-social a:hover { background: rgba(255,255,255,0.16); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-hero {
  padding: 152px 0 var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow { margin-bottom: var(--space-2); }
.page-hero h1 { font-size: clamp(32px, 3.2vw + 12px, 48px); }
.breadcrumb { display: flex; gap: 6px; justify-content: center; font-size: 13.5px; color: var(--color-text-mute); margin-top: var(--space-2); }
.breadcrumb a:hover { color: var(--color-primary-dark); }

/* Section spacing helpers (replace inline padding overrides) */
.section.section--flush-top { padding-top: 0; }
.section.article-hero { padding-top: 152px; padding-bottom: var(--space-5); }
.article-breadcrumb { justify-content: flex-start; max-width: 720px; margin: 0 auto var(--space-3); }

/* ==========================================================================
   Notice list
   ========================================================================== */
.notice-list { display: flex; flex-direction: column; border-top: 2px solid var(--color-text); }
.notice-item {
  display: grid; grid-template-columns: 90px 1fr 130px;
  align-items: center; gap: var(--space-3);
  padding: 22px 8px;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-fast);
}
.notice-item:hover { background: var(--color-surface); }
.notice-badge {
  font-size: 12px; font-weight: 700; text-align: center;
  padding: 5px 0; border-radius: var(--radius-full);
  background: var(--color-secondary-tint); color: var(--color-secondary-dark);
}
.notice-badge.is-new { background: var(--color-primary-tint); color: var(--color-primary-dark); }
.notice-badge.is-pinned { background: var(--color-primary); color: #fff; }
.notice-title { font-weight: 600; font-size: 15.5px; }
.notice-date { font-size: 13.5px; color: var(--color-text-mute); text-align: right; }
a.notice-item { color: inherit; text-decoration: none; cursor: pointer; }
.notice-section-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--color-primary-dark); margin: 0 0 12px;
}
.notice-license-table td, .notice-kv-table td { text-align: left; white-space: normal; padding: 12px 10px; }
.notice-license-table th { text-align: left; padding: 0 10px 8px; }
.notice-license-table td:nth-child(3) { white-space: nowrap; }
.notice-kv-table td:first-child {
  width: 140px; color: var(--color-text-mute); font-weight: 600;
  text-align: left; white-space: nowrap;
}
.notice-kv-table td:last-child { text-align: left; color: var(--color-text); }
.notice-kv-table tr td { border-bottom: 1px solid var(--color-border); padding: 12px 10px; }

/* ==========================================================================
   Form (문의)
   ========================================================================== */
.contact-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: var(--space-3); }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--dur-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-primary); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.form-note { font-size: 13px; color: var(--color-text-mute); margin-top: var(--space-2); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out) var(--reveal-delay, 0ms), transform 600ms var(--ease-out) var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }
/* 등장 후에는 카드 부유 효과가 reveal 의 transform 에 덮이지 않도록 */
.card.reveal.is-visible,
.location-card.reveal.is-visible {
  transition: opacity 600ms var(--ease-out) var(--reveal-delay, 0ms), transform 600ms var(--ease-out) var(--reveal-delay, 0ms), box-shadow 0.45s var(--ease-out), border-color 0.35s ease;
}
.card.reveal.is-visible:hover,
.location-card.reveal.is-visible:hover { transform: translateY(-4px); }
a.card.reveal.is-visible:active { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .hero-blob, .hero-house { animation: none; }
  .card.reveal.is-visible:hover, .location-card.reveal.is-visible:hover, a.card.reveal.is-visible:active,
  .btn:hover, .btn:active, .card:hover, a.card:active, .location-card:hover,
  .btn:hover svg, .card:hover .card-link svg, .location-card:hover .card-link svg { transform: none; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.mt-0 { margin-top: 0 !important; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 13.5px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-full);
  background: var(--color-bg-soft); color: var(--color-text-soft);
  border: 1px solid var(--color-border);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: var(--space-4); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-4); }
  .stat:nth-child(3)::before { display: none; }
}

@media (max-width: 900px) {
  .main-nav, .header-phone { display: none; }
  .nav-wrap { gap: var(--space-2); }
  .nav-wrap > .header-cta { margin-left: auto; }
  .nav-toggle { display: flex; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: 0; }
  .br-desktop { display: none; }

  /* 모바일 히어로: 손그림 → 카피 → CTA 가 첫 화면 안에 */
  .hero { min-height: 0; padding: calc(var(--hero-header) + 12px) 0 var(--space-6); align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: clamp(14px, 2.5svh, 28px); }
  .hero-art { order: -1; }
  .hero-stage { max-width: none; padding: 0; }
  .hero-paper {
    aspect-ratio: auto;
    height: clamp(132px, 24svh, 260px);
    max-height: none;
    border-radius: 120px 120px 20px 20px;
  }
  .hero-paper::after { inset: 6px; border-radius: 114px 114px 14px 14px; }
  /* 모바일: 한옥 배경 대신 전봇대가 있는 서촌상담소 손그림을 아치 액자 가운데에 세운다.
     참새 착지 좌표는 화면에 보이는 손그림(.hero-house)을 기준으로 js/wow.js 가 계산한다. */
  .hero-hanok { display: none; }
  .hero-house {
    left: 0; right: 0;
    bottom: 0;
    margin: 0 auto;
    width: auto;
    height: 100%;
    max-width: none;
    mix-blend-mode: multiply;
    filter: none;
  }
  .hero .eyebrow { margin-bottom: 10px; padding: 6px 14px; }
  .hero h1 { font-size: clamp(27px, 7.4vw, 40px); line-height: 1.3; }
  .hero .lede { font-size: 15.5px; line-height: 1.65; margin-top: 10px; }
  .hero-actions { margin-top: clamp(16px, 2.6svh, 28px); }
}
@media (max-width: 900px) and (min-height: 760px) {
  .hero-paper { height: clamp(180px, 28svh, 300px); }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer { padding: var(--space-6) 0 var(--space-3); }
  .footer-grid { gap: var(--space-4); }
  .footer-copy { white-space: normal; }
  .section.article-hero { padding-top: 128px; padding-bottom: var(--space-4); }
  .section { padding: var(--section-pad-y-mobile) 0; }
  .card, .location-body { padding: var(--card-pad-mobile); }
  .notice-item { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .notice-badge { width: fit-content; padding: 4px 12px; }
  .notice-date { text-align: left; }
  .page-hero { padding-top: 128px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: 84px; left: 0; right: 0; bottom: 0;
  height: calc(100vh - 84px);
  background: var(--color-bg);
  z-index: 90;
  padding: var(--space-4) var(--space-3);
  transform: translateX(100%);
  transition: transform var(--dur-mid) var(--ease-out);
  overflow-y: auto;
}
.mobile-nav { visibility: hidden; transition: transform var(--dur-mid) var(--ease-out), visibility 0s linear var(--dur-mid); }
.mobile-nav.is-open { transform: translateX(0); visibility: visible; transition: transform var(--dur-mid) var(--ease-out), visibility 0s; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav ul a { display: block; padding: 18px 6px; font-size: 19px; font-weight: 700; border-bottom: 1px solid var(--color-border); color: var(--color-text); transition: color var(--dur-fast); }
.mobile-nav ul a { position: relative; font-family: var(--font-display); }
.mobile-nav ul a:hover { color: var(--color-primary-dark); }
.mobile-nav a.is-active, .mobile-nav a[aria-current="page"] { color: var(--color-primary-dark); }
.mobile-nav ul a.is-active::before, .mobile-nav ul a[aria-current="page"]::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 22px;
  margin-top: -11px; border-radius: 2px; background: var(--color-primary);
}
.mobile-nav ul { padding-left: 12px; }
.mobile-nav .header-cta { margin-top: var(--space-4); flex-direction: column; align-items: stretch; }
.mobile-nav .btn { width: 100%; }

/* ==========================================================================
   마음학당 (Journal / Series / Post)
   ========================================================================== */
.post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--color-text-mute);
  margin-top: 8px;
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--color-text-mute); }

.post-card-excerpt {
  color: var(--color-text-soft);
  font-size: 14.5px;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--color-text);
  display: flow-root;
}
.post-body p { margin-bottom: 22px; }
.post-body p:last-child { margin-bottom: 0; }
.post-subhead {
  display: flex; align-items: center; gap: 10px;
  margin: 40px 0 20px;
  font-size: 19px; font-weight: 700;
  color: var(--color-text);
}
.post-subhead::before {
  content: ''; width: 20px; height: 2px; flex-shrink: 0;
  background: var(--color-primary-dark);
}
.post-body ul { margin: 0 0 22px; padding-left: 20px; }
.post-body ul li { margin-bottom: 10px; color: var(--color-text-soft); }
.post-scale-table {
  width: 100%; border-collapse: collapse;
  margin: 8px 0 30px;
  font-size: 14.5px;
}
.post-scale-table th { font-weight: 500; color: var(--color-text-mute); font-size: 13px; padding-bottom: 6px; }
.post-scale-table td { padding: 9px 4px; text-align: center; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.post-scale-table td.scale-label-left { text-align: right; padding-right: 14px; color: var(--color-text-soft); white-space: normal; }
.post-scale-table td.scale-label-right { text-align: left; padding-left: 14px; color: var(--color-text-soft); white-space: normal; }
.post-scale-table td.scale-num { color: var(--color-text-mute); width: 28px; }
.post-illustration {
  width: 100%;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: 8px 0 30px;
  box-sizing: border-box;
}
.post-illustration svg { width: 100%; height: auto; display: block; }

.post-trail {
  position: relative;
  margin: 10px 0 30px;
  padding-left: 26px;
  border-left: 2px dashed var(--color-border);
}
.post-trail-note {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 0 0 22px;
  position: relative;
}
.post-trail-note::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 22px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
}
.post-trail-note p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--color-text); }
.post-trail-note.post-trail-start,
.post-trail-note.post-trail-end { background: var(--color-secondary-tint); }
.post-trail-note.post-trail-start::before,
.post-trail-note.post-trail-end::before { background: var(--color-secondary-dark); }
.trail-badge {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--color-secondary-dark);
  background: #fff;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  margin-bottom: 8px;
}
.post-trail-note .check-list { list-style: none; padding: 0; margin: 12px 0 0; }
.post-trail-note .check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--color-text-soft);
  line-height: 1.6;
}
.post-trail-note .check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 14px; height: 14px;
  border: 1.5px solid var(--color-text-mute);
  border-radius: 3px;
}
.post-trail-label {
  font-size: 13px;
  color: var(--color-text-mute);
  font-style: italic;
  margin: -10px 0 22px 4px;
}

.post-book-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-bg-soft);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 8px 0 30px;
}
.post-book-card .book-cover {
  flex: none;
  width: 96px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.post-book-card .book-cover img { width: 100%; height: auto; display: block; }
.post-book-card .book-info { flex: 1; min-width: 0; }
.post-book-card .book-title { font-size: 20px; font-weight: 700; color: var(--color-text); margin: 0 0 6px; }
.post-book-card .book-subtitle { font-size: 14.5px; color: var(--color-text-soft); margin: 0 0 10px; }
.post-book-card .book-meta { font-size: 13px; color: var(--color-text-mute); margin: 0; }
@media (max-width: 480px) {
  .post-book-card { flex-direction: column; }
  .post-book-card .book-cover { width: 120px; }
}

/* 글 본문에 사진 한 장을 넣고 싶을 때 사용하는 범용 사진 블록 (post-book-card 전용이 아님) */
.post-photo {
  margin: 8px 0 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.post-photo img { width: 100%; height: auto; display: block; }
.post-photo figcaption {
  padding: 10px 4px 0;
  font-size: 13px;
  color: var(--color-text-mute);
  text-align: center;
}
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 22px;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

.img-lightbox {
  position: fixed; inset: 0;
  background: rgba(30, 24, 20, 0.88);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  padding: 40px;
  box-sizing: border-box;
}
.img-lightbox[hidden] { display: none; }
.img-lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  cursor: default;
}
.img-lightbox-close {
  position: fixed; top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.img-lightbox-close:hover { background: rgba(255,255,255,0.28); }
.post-body .post-refs {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 14.5px;
  color: var(--color-text-soft);
}
.post-refs p { margin-bottom: 8px; }

.post-nav {
  max-width: 720px;
  margin: var(--space-6) auto 0;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}
.post-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-nav a:hover { color: var(--color-primary-dark); }
.post-nav svg { width: 16px; height: 16px; }

.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-3);
  color: var(--color-text-mute);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

.share-wrap { position: relative; display: inline-block; }
.share-menu[hidden] { display: none; }
.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.share-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: background var(--dur-fast);
}
.share-menu button:hover { background: var(--color-bg-soft); }
.share-menu svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--color-text-soft); }
.share-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 200;
  opacity: 0;
  transition: opacity var(--dur-fast);
  pointer-events: none;
}
.share-toast.is-visible { opacity: 1; }

/* ==========================================================================
   Motion & depth layers (js/motion.js)
   - html.motion-ok 는 prefers-reduced-motion 이 아닐 때만 붙는다. 모든 연출은 그 아래에서만 동작.
   - 움직임은 transform / opacity 만 사용(붓선은 SVG stroke-dashoffset, 커튼 리빌은 clip-path).
   ========================================================================== */

/* 1) 홈 히어로 진입 연출 (총 1.2초 이내) ------------------------------------ */
.hero h1 .line-mask { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .line-inner { display: inline-block; }
.motion-ok #hero-title:not(.is-split) { opacity: 0; }
.motion-ok .hero h1 .line-inner { animation: mask-rise 0.8s var(--ease-out) both; animation-delay: calc(var(--line, 0) * 80ms); }
.motion-ok .hero-copy .eyebrow { animation: fade-rise 0.6s var(--ease-out) both; }
.motion-ok .hero-art { animation: art-settle 1s var(--ease-out) 0.1s both; }
.motion-ok .hero-copy .lede { animation: fade-rise 0.7s var(--ease-out) 0.25s both; }
.motion-ok .hero-actions { animation: fade-rise 0.7s var(--ease-out) 0.33s both; }
@keyframes mask-rise { from { transform: translate3d(0, 108%, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes fade-rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes art-settle { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }

/* 2) 살아 있는 일러스트: 패럴랙스 레이어 + 뒤편 앰비언트 블롭 ------------------ */
.hero-stage::before {
  content: "";
  position: absolute;
  inset: -6% -8% 0 -10%;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(42% 46% at 30% 38%, rgba(232, 196, 174, 0.55) 0%, transparent 70%),
    radial-gradient(40% 42% at 72% 66%, rgba(196, 211, 186, 0.55) 0%, transparent 72%);
  opacity: 0.85;
}
/* 후광은 정적으로 두고(패럴랙스 레이어와 함께 이동), 유영은 히어로 블롭 2개가 24s/30s 주기로 담당한다.
   큰 그라데이션 레이어를 하나 더 애니메이션하면 저사양 기기에서 합성 비용이 커져 60fps 를 지키기 어렵다. */
.hero-paper { box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 2px 4px rgba(120, 64, 38, 0.05), 0 12px 26px -14px rgba(120, 64, 38, 0.18), 0 36px 64px -30px rgba(150, 80, 48, 0.30); }

/* 3) 스크롤 리빌: 16px · 600ms · 순차 80ms (main.js 가 --reveal-delay 지정) ----- */
/* 8) 이미지 커튼 리빌 (상담소 카드 비주얼) */
.motion-ok .location-card.reveal .location-visual {
  transition: clip-path 0.9s var(--ease-draw) calc(var(--reveal-delay, 0ms) + 120ms);
}
.motion-ok .location-card.reveal:not(.is-visible) .location-visual { clip-path: inset(0 0 100% 0); }
.motion-ok .split-art.reveal > svg { transition: clip-path 1s var(--ease-draw) 0.15s; }
.motion-ok .split-art.reveal:not(.is-visible) > svg { clip-path: inset(0 0 100% 0); }

/* 4) 섹션 제목 손그림 붓선 ------------------------------------------------- */
.has-brush { position: relative; }
.brush-line {
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: min(132px, 60%);
  height: auto;
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
}
.section-head.align-left .brush-line { left: 0; transform: none; }
.brush-line path {
  fill: none;
  stroke: var(--color-primary);
  stroke-opacity: 0.5;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.motion-ok .brush-line path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.5s var(--ease-draw) 0.28s;
}
.motion-ok .is-visible .brush-line path,
.motion-ok .is-visible.has-brush .brush-line path,
.motion-ready .page-hero .brush-line path { stroke-dashoffset: 0; }

/* 5) 신뢰 지표 카운트업: 자릿수가 바뀌어도 흔들리지 않도록 고정폭 숫자 */
.stat-num.is-counting { font-variant-numeric: tabular-nums; }

/* 6) 카드 호버: 상승 + 그림자 확장 + 썸네일 확대 + 아이콘 살랑 + 미세 3D 틸트(최대 3도) */
.motion-ok .card:hover,
.motion-ok .card.reveal.is-visible:hover,
.motion-ok .location-card:hover,
.motion-ok .location-card.reveal.is-visible:hover {
  transform: perspective(900px) translateY(-4px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.location-visual img { transition: transform 0.9s var(--ease-out); }
.motion-ok .location-card:hover .location-visual img,
.motion-ok .card:hover .location-visual img { transform: scale(1.04); }
.motion-ok .card:hover .icon-tile { animation: tile-wiggle 0.7s var(--ease-out); }
@keyframes tile-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-7deg); }
  55% { transform: rotate(5deg); }
  80% { transform: rotate(-2deg); }
}

/* 7) 버튼: 앰비언트 섀도우 · 빛 시머 1회 · 마그네틱 ---------------------------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.motion-ok .btn-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 60%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 246, 236, 0.38) 50%, rgba(255, 255, 255, 0) 80%, transparent 100%);
  transform: translate3d(-120%, 0, 0) skewX(-18deg);
}
.motion-ok .btn-primary:hover::after { transform: translate3d(260%, 0, 0) skewX(-18deg); transition: transform 0.85s var(--ease-out); }
.hero-cta { translate: var(--mag-x, 0px) var(--mag-y, 0px); }

/* 9) 아날로그 종이 질감 + 부드러운 섹션 전환 ------------------------------------ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.27 0 0 0 0 0.2 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.section-soft {
  isolation: isolate;
  background: linear-gradient(180deg, var(--color-bg) 0, var(--color-bg-soft) 72px, var(--color-bg-soft) calc(100% - 72px), var(--color-bg) 100%);
}
.section-soft::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 140px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

/* 10) 페이지 간 부드러운 크로스페이드 (View Transitions, 미지원 시 기본 탐색) ---- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 380ms; animation-timing-function: var(--ease-out); }
  .site-header { view-transition-name: site-header; }
}

/* 11) 긴 본문 읽기 진행선 ------------------------------------------------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.read-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-radius: 0 3px 3px 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* 백그라운드 탭: 반복 애니메이션 일시정지 */
.is-tab-hidden .hero-blob,
.is-tab-hidden .hero-house { animation-play-state: paused; }

/* 모션 민감 사용자: 모든 연출을 끄고 최종 정적 화면으로 */
@media (prefers-reduced-motion: reduce) {
  .hero-art, .hero h1 .line-inner, .hero-copy .eyebrow, .hero-copy .lede, .hero-actions, .card:hover .icon-tile { animation: none; }
  .hero-cta { translate: none; }
  .brush-line path { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .location-visual img { transition: none; transform: none; }
  .site-header.is-hidden { transform: none; }
}
@media print {
  body::after, .read-progress { display: none; }
}

/* ==========================================================================
   와우포인트: 처마 위 아기 참새 · 복슬복슬 흰 강아지 (js/wow.js)
   - transform / opacity 만 움직이고, 모두 aria-hidden + pointer-events: none
   ========================================================================== */
.wow-sparrow {
  --sp-w: 48px;
  position: absolute;
  left: 0; top: 0;
  width: var(--sp-w);
  height: calc(var(--sp-w) * 52 / 62);
  margin: calc(var(--sp-w) * -50 / 62) 0 0 calc(var(--sp-w) / -2);
  z-index: 3;
  line-height: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.wow-sparrow.is-flying, .wow-sparrow.is-perched { opacity: 1; }
.wow-sparrow__flip { width: 100%; height: 100%; transform-origin: 50% 50%; }
.wow-sparrow__svg { transform-box: border-box; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 3px rgba(74, 53, 40, 0.18)); }
.wow-sparrow__svg g { transform-box: view-box; }
.wow-sparrow .sp-body { transform-origin: 31px 48px; }
.wow-sparrow .sp-head { transform-origin: 23px 27px; }
.wow-sparrow .sp-wing { transform-origin: 30px 28px; }
/* 착지 중에만 호버/탭 영역을 국소 허용 */
.wow-sparrow__hit {
  position: absolute;
  inset: -10px -8px -4px;
  border-radius: 50%;
  pointer-events: none;
}
.wow-sparrow.is-perched .wow-sparrow__hit { pointer-events: auto; cursor: pointer; }
.wow-sparrow.is-flying .sp-wing { animation: sp-flap 0.16s ease-in-out infinite alternate; }
.wow-sparrow.is-flying .sp-body { transform: rotate(-8deg); }
.wow-sparrow.is-startled .sp-wing { animation-duration: 0.09s; }
.wow-sparrow.is-hopping .sp-body { animation: sp-hop 0.5s cubic-bezier(0.3, 0, 0.4, 1) 2; }
.wow-sparrow.is-tilting .sp-head { animation: sp-tilt 1.6s ease-in-out 1; }
.wow-sparrow.is-preening .sp-head { animation: sp-preen 1.3s ease-in-out 1; }
.wow-sparrow.is-preening .sp-wing { animation: sp-ruffle 1.3s ease-in-out 1; }
@keyframes sp-flap { from { transform: rotate(14deg) scaleY(0.9); } to { transform: rotate(-38deg) scaleY(1.05); } }
@keyframes sp-hop {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1, 1); }
  18% { transform: translate3d(0, 0, 0) scale(1.06, 0.92); }
  50% { transform: translate3d(0, -7px, 0) scale(0.96, 1.05); }
  82% { transform: translate3d(0, 0, 0) scale(1.05, 0.94); }
}
@keyframes sp-tilt {
  0%, 100% { transform: rotate(0); }
  20%, 38% { transform: rotate(-16deg); }
  58%, 78% { transform: rotate(14deg); }
}
@keyframes sp-preen {
  0%, 100% { transform: rotate(0) translate(0, 0); }
  35%, 65% { transform: rotate(-34deg) translate(5px, 4px); }
  50% { transform: rotate(-28deg) translate(6px, 5px); }
}
@keyframes sp-ruffle {
  0%, 25%, 75%, 100% { transform: rotate(0); }
  40% { transform: rotate(-10deg); }
  55% { transform: rotate(4deg); }
}
.wow-note {
  position: absolute;
  left: 18%; top: -6px;
  font: 700 18px/1 "Gowun Batang", serif;
  color: var(--color-primary, #c1704a);
  opacity: 0;
  pointer-events: none;
}
.wow-note.is-popping { animation: wow-pop-up 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes wow-pop-up {
  0% { opacity: 0; transform: translate3d(0, 4px, 0) scale(0.4); }
  25% { opacity: 1; transform: translate3d(-2px, -10px, 0) scale(1.15); }
  100% { opacity: 0; transform: translate3d(-8px, -34px, 0) scale(1) rotate(-12deg); }
}

/* 복슬복슬 흰 강아지 — 화면 맨 아래 가장자리 레이어 */
.wow-puppy-layer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 96px;
  z-index: 85;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  contain: layout paint;
}
.wow-puppy-layer.is-active { visibility: visible; }
.wow-puppy-layer * { pointer-events: none; }
.wow-flower {
  position: absolute;
  left: 0; bottom: 2px;
  width: 22px; height: 36px;
  opacity: 0;
  transform-box: border-box;
  transform-origin: 50% 100%;
}
.wow-puppy-layer.is-active .wow-flower { opacity: 1; animation: wow-flower-sway 3.2s ease-in-out infinite; }
@keyframes wow-flower-sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 5deg; } }
.wow-puppy {
  --pp-w: 84px;
  position: absolute;
  left: 0; bottom: 2px;
  width: var(--pp-w);
  height: calc(var(--pp-w) * 66 / 90);
  will-change: transform;
}
.wow-puppy__svg { transform-box: border-box; transform-origin: 50% 50%; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 5px rgba(91, 74, 64, 0.16)); }
.wow-puppy.is-turned .wow-puppy__svg { transform: scaleX(-1); }
.wow-puppy__svg g { transform-box: view-box; }
.wow-puppy .pp-leg--fr { transform-origin: 25px 50px; }
.wow-puppy .pp-leg--fl { transform-origin: 34px 50px; }
.wow-puppy .pp-leg--bl { transform-origin: 68px 50px; }
.wow-puppy .pp-leg--br { transform-origin: 59px 50px; }
.wow-puppy .pp-body, .wow-puppy .pp-head, .wow-puppy .pp-tail { transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1); }
.wow-puppy .pp-body { transform-origin: 64px 52px; }
.wow-puppy .pp-head { transform-origin: 26px 34px; }
.wow-puppy .pp-tail { transform-origin: 74px 38px; }
.wow-puppy .pp-ear { transform-origin: 12px 16px; }
.wow-puppy .pp-leg { transition: transform 0.4s ease; }
/* 총총 걷기 */
.wow-puppy.is-walking .pp-leg--fl, .wow-puppy.is-walking .pp-leg--br { animation: pp-step 0.36s ease-in-out infinite alternate; }
.wow-puppy.is-walking .pp-leg--fr, .wow-puppy.is-walking .pp-leg--bl { animation: pp-step 0.36s ease-in-out infinite alternate-reverse; }
.wow-puppy.is-walking .wow-puppy__svg .pp-body,
.wow-puppy.is-walking .wow-puppy__svg .pp-head { animation: pp-bob 0.36s ease-in-out infinite alternate; }
.wow-puppy.is-walking .pp-tail { animation: pp-wag 0.36s ease-in-out infinite alternate; }
.wow-puppy.is-hurrying .pp-leg, .wow-puppy.is-hurrying .pp-body, .wow-puppy.is-hurrying .pp-head, .wow-puppy.is-hurrying .pp-tail { animation-duration: 0.2s !important; }
/* 킁킁 */
.wow-puppy.is-sniffing .pp-head { animation: pp-sniff 0.9s ease-in-out infinite; }
.wow-puppy.is-sniffing .pp-nose { animation: pp-nose 0.22s ease-in-out infinite alternate; transform-origin: 22px 28px; }
/* 얌전히 앉기 + 꼬리 살랑 */
.wow-puppy.is-sitting .pp-body { transform: rotate(11deg) translate(0, 1px); }
.wow-puppy.is-sitting .pp-head { transform: translate(3px, -9px) rotate(-5deg); }
.wow-puppy.is-sitting .pp-leg--fl, .wow-puppy.is-sitting .pp-leg--fr { transform: translate(1px, -6px) scaleY(1.45); }
.wow-puppy.is-sitting .pp-leg--bl, .wow-puppy.is-sitting .pp-leg--br { transform: translate(0, 4px) scaleY(0.4); }
.wow-puppy.is-sitting .pp-tail { transform: translate(-4px, 6px); }
.wow-puppy.is-wagging .pp-tail { animation: pp-wag 0.28s ease-in-out infinite alternate; }
.wow-puppy.is-sitting .pp-ear--front { animation: pp-ear 2.4s ease-in-out infinite; }
/* 분홍 하트 퐁 */
.wow-heart {
  position: absolute;
  left: 10%; top: -20px;
  width: 22px; height: 22px;
  opacity: 0;
}
.wow-puppy.is-turned .wow-heart { left: auto; right: 10%; }
.wow-puppy.is-loving .wow-heart { animation: wow-heart-rise 2.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes wow-heart-rise {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.3); }
  18% { opacity: 1; transform: translate3d(0, -4px, 0) scale(1.15); }
  30% { transform: translate3d(0, -8px, 0) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(4px, -30px, 0) scale(0.9); }
}
@keyframes pp-step { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
@keyframes pp-bob { from { transform: translate(0, 0); } to { transform: translate(0, -2px); } }
@keyframes pp-wag { from { transform: rotate(-16deg); } to { transform: rotate(18deg); } }
@keyframes pp-sniff { 0%, 100% { transform: translate(0, 2px) rotate(8deg); } 50% { transform: translate(-1px, 4px) rotate(14deg); } }
@keyframes pp-nose { from { transform: scale(1); } to { transform: scale(1.18, 0.9); } }
@keyframes pp-ear { 0%, 80%, 100% { transform: rotate(0); } 88% { transform: rotate(-12deg); } }
@media (max-width: 900px) {
  .wow-sparrow { --sp-w: 36px; }
  .wow-puppy { --pp-w: 70px; }
}
/* 백그라운드 탭에서는 와우 모션도 멈춘다 (타이머 · WAAPI 는 wow.js 가 일시정지) */
.is-tab-hidden .wow-sparrow *, .is-tab-hidden .wow-puppy-layer * { animation-play-state: paused !important; }
/* 모션 민감 사용자: 와우포인트는 아예 그리지 않는다 */
@media (prefers-reduced-motion: reduce) {
  .wow-sparrow, .wow-puppy-layer { display: none !important; }
}
@media print {
  .wow-sparrow, .wow-puppy-layer { display: none !important; }
}

/* PC 전화번호 복사 안내 토스트 */
.toast-message {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  max-width: calc(100vw - 32px);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(58, 50, 44, 0.92);
  color: var(--color-white);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast-message.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  .toast-message, .toast-message.is-visible { transition: none; transform: translate(-50%, 0); }
}
