/* ── 온담 메인 시안 v1 · 2026-09-02 ─────────────────────
   팔레트: 로고 실측 3색 + 한지 아이보리 (BI 확정, 2026-08-28)
   포인트 컬러: 오렌지 #E0621A / 딥 #B84E0E (온담 1차 피드백 채도 상향, 2026-09-05)
──────────────────────────────────────────────────────── */
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --brown: #7A5B3E;
  --brown-deep: #5C452F;
  --olive: #747E45;
  --teal: #4B7A75;
  --ivory: #FAF7F2;
  --ivory-deep: #F1EAE0;
  --ink: #3A3128;
  --muted: #8B7D6D;
  --line: #E7DFD3;
  --accent: #E0621A;
  --accent-deep: #B84E0E;
  --radius: 18px;
  --radius-s: 12px;
  --font-body: "Pretendard", "Malgun Gothic", sans-serif;
  --font-head: "Pretendard", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ── 공통 섹션 리듬 ── */
.sec { padding: 110px 0; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--teal);
}
.sec-title {
  font-family: var(--font-head);
  font-size: 37px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--brown-deep);
}
.sec-desc { margin-top: 18px; font-size: 18px; color: var(--muted); }
.sec-more { margin-top: 52px; text-align: center; }

/* ── 버튼 ── */
.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 0;
  padding: 16px 34px 16px 40px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
/* 호버: 왼쪽의 색 원이 커지며 버튼을 채움 (평상시에도 왼쪽에 원 노출) */
.btn::before, .gnb-cta::before {
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: var(--fill, var(--accent-deep));
  transform: translateY(-50%);
  transition: transform 0.8s cubic-bezier(0.33, 1, 0.5, 1);
  z-index: -1;
}
.btn:hover::before, .gnb-cta:hover::before { transform: translateY(-50%) scale(56); }
.btn:hover { transform: translateY(-3px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #FFF9F3; --fill: var(--accent-deep); }
.btn-primary:hover { box-shadow: 0 14px 28px rgba(90, 66, 40, 0.22); }
.btn-ghost { background: rgba(255, 252, 246, 0.16); color: #FFF9F3; border: 1.5px solid rgba(255, 250, 242, 0.75); backdrop-filter: blur(4px); --fill: #FFF9F3; }
.btn-ghost:hover { color: var(--brown-deep); border-color: #FFF9F3; }
.btn-line { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); --fill: var(--accent); }
.btn-line:hover { color: #FFF9F3; box-shadow: 0 12px 24px rgba(90, 66, 40, 0.18); }
.btn-lg { padding: 19px 44px 19px 50px; font-size: 18px; }
.btn-store { background: var(--teal); color: #F3FAF8; --fill: #3C6560; }
.btn-store:hover { box-shadow: 0 14px 28px rgba(60, 101, 96, 0.24); }
.btn-store .ext { margin-left: 8px; }
.store-note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.text-link {
  display: inline-block;
  margin-top: 26px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}
.text-link:hover { opacity: 0.65; }

/* ── 이미지 슬롯 (실사 대체 전) ── */
.slot { position: relative; overflow: hidden; }
.slot-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(58, 49, 40, 0.55);
  color: #F7F1E8;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(3px);
}
.slot-inline { color: var(--muted); font-size: 14px; }

/* 슬롯별 웜톤 변주 (회색 박스 금지) */
.slot-hero1, .slot-hero2, .slot-hero3, .slot-hero4, .slot-hero5, .slot-hero6, .slot-hero7, .slot-hero8 { background-size: cover; background-position: center; }
.slot-hero1 { background-image: url("../images/o-h41b.jpg"); }
.slot-hero2 { background-image: url("../images/o-h81.jpg"); }
.slot-hero3 { background-image: url("../images/o-h42.jpg"); }
.slot-hero4 { background-image: url("../images/o-h82.jpg"); }
.slot-hero5 { background-image: url("../images/o-h43.jpg"); }
.slot-hero6 { background-image: url("../images/o-h83.jpg"); }
.slot-hero7 { background-image: url("../images/o-h84.jpg"); }
.slot-hero8 { background-image: linear-gradient(rgba(250, 243, 232, 0.06), rgba(250, 243, 232, 0.06)), url("../images/o-hero1-l.jpg"); }
.slot-story, .slot-p1, .slot-p2, .slot-p3, .slot-p4,
.slot-m1, .slot-m2, .slot-m3, .slot-m4, .slot-m5,
.slot-g1, .slot-g2, .slot-g3 { background-size: cover; background-position: center; }
.slot-story { background-image: url("../images/story-name2.jpg"); }
/* 온담 이야기: 서클 마스크 안 슬라이드 (메인 전용, 슬라이드 4장) */
.story-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: translateX(100%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-slide.is-cur { transform: translateX(0); }
.slot-p1 { background-image: url("../images/p-owl-t.jpg"); background-position: center 30%; }
.slot-p2 { background-image: url("../images/p-wreath-t.jpg"); }
.slot-p3 { background-image: url("../images/p-obong-t.jpg"); }
.slot-p4 { background-image: url("../images/p-najeon-t.jpg"); }
.slot-m1 { background-image: url("../images/o-m1.jpg"); }
.slot-m2 { background-image: url("../images/o-m2.jpg"); }
.slot-m3 { background-image: url("../images/o-m3.jpg"); }
.slot-m4 { background-image: url("../images/o-m4.jpg"); }
.slot-m5 { background-image: url("../images/o-m5.jpg"); }
.slot-g1 { background-image: url("../images/g-owl-t.jpg"); background-position: center 40%; }
.slot-g2 { background-image: url("../images/g-wreath-l-t.jpg"); }
.slot-g3 { background-image: url("../images/g-najeon-t.jpg"); background-position: center 35%; }

/* ── GNB ── */
.gnb {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.gnb.is-solid { background: rgba(250, 247, 242, 0.94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.gnb-inner { max-width: 1320px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 40px; }
.gnb-logo img { height: 94px; width: auto; max-width: none; display: block; }
.gnb-logo .logo-c { display: none; }
.gnb.is-solid .gnb-logo .logo-w { display: none; }
.gnb.is-solid .gnb-logo .logo-c { display: block; }
.gnb-menu { display: flex; gap: 34px; margin-left: auto; }
.gnb-menu a {
  font-size: 17px;
  font-weight: 600;
  color: #FFF9F3;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.gnb.is-solid .gnb-menu a { color: var(--ink); }
.gnb-menu a:hover, .gnb-menu a.on { border-color: currentColor; }
.gnb-cta {
  position: relative;
  overflow: hidden;
  z-index: 0;
  padding: 11px 24px 11px 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFF9F3;
  font-size: 16px;
  font-weight: 700;
  --fill: var(--accent-deep);
  transition: transform 0.25s ease;
}
.gnb-cta:hover { transform: translateY(-2px); }

/* ── 1. 히어로 ── */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; touch-action: pan-y; }
/* 스와이프/드래그 중: 텍스트 선택·링크 클릭 방지, 커서로 끌 수 있음을 표시 */
.hero.is-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.hero.is-dragging a { pointer-events: none; }
.hero-media { position: absolute; inset: 0; overflow: hidden; cursor: grab; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 30, 20, 0.28) 0%, rgba(40, 30, 20, 0.14) 45%, rgba(40, 30, 20, 0.42) 100%); }
.hero-body { position: relative; z-index: 3; padding: 0 24px; }
/* 밝은 배경 컷에서 텍스트 가독 확보용 국소 스크림 (사진 밝기는 유지) */
.hero-body::before {
  content: "";
  position: absolute;
  inset: -14% -22%;
  z-index: -1;
  background: radial-gradient(ellipse 60% 64% at 50% 48%, rgba(45, 32, 20, 0.55), rgba(45, 32, 20, 0) 78%);
  pointer-events: none;
}
.hero-logo {
  height: 280px;
  aspect-ratio: 264.44 / 236.22;
  margin-bottom: 36px;
  filter: drop-shadow(0 4px 16px rgba(30, 20, 10, 0.35));
}
/* 로고 획 드로잉: 심볼 획이 실제로 그어지고(스트로크 원본), 태그라인은 뒤이어 나타남 */
.hero-logo .st0, .hero-logo .st3, .hero-logo .st4,
.hero-logo .st5, .hero-logo .st6, .hero-logo .st7 { stroke: #FFFDF8; }
.hero-logo .st1, .hero-logo .st2 { fill: #FFFDF8; }
.hero-logo .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-opacity: 0;
  animation: logo-draw 1.1s cubic-bezier(0.45, 0, 0.35, 1) forwards,
             logo-seam 0.01s linear forwards;
  animation-delay: calc(0.3s + var(--i) * 0.12s), calc(1.42s + var(--i) * 0.12s);
}
.hero-logo .fillin {
  fill-opacity: 0;
  animation: logo-fill 0.7s ease forwards;
  animation-delay: calc(1.9s + var(--i) * 0.05s);
}
@keyframes logo-draw { from { stroke-opacity: 1; } to { stroke-dashoffset: 0; stroke-opacity: 1; } }
/* 드로잉 완료 후 대시 해제: 닫힌 획(원, ㅇ)의 이음새 틈 제거 */
@keyframes logo-seam { to { stroke-dasharray: none; stroke-dashoffset: 0; } }
@keyframes logo-fill { to { fill-opacity: 1; } }
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: 54px;
  line-height: 1.3;
  color: #FFFDF8;
  text-shadow: 0 3px 18px rgba(30, 20, 10, 0.35);
}
.hero-kicker {
  display: block;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 249, 243, 0.92);
}
.hero-sub { margin-top: 20px; font-size: 20px; color: rgba(255, 251, 244, 0.92); text-shadow: 0 2px 10px rgba(30, 20, 10, 0.3); }
.hero-sub .br-m { display: none; } /* 모바일 전용 줄바꿈 (온담 수정요청 10/8 주석 #1) */
.hero-btns { margin-top: 42px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; }
/* 점 = 버튼 (탭 영역 24px 확보, 보이는 점은 9px) */
.hero-dots i { position: relative; width: 13px; height: 24px; cursor: pointer; transition: width 0.3s ease; }
.hero-dots i::before { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 9px; transform: translateY(-50%); border-radius: 999px; background: rgba(255, 250, 242, 0.45); transition: background-color 0.3s ease; }
.hero-dots i.is-on { width: 30px; }
.hero-dots i.is-on::before { background: #FFFDF8; }
.hero-dots i:focus-visible { outline: 2px solid #FFFDF8; outline-offset: 2px; border-radius: 999px; }

/* ── 1.5 활동 가치 ── */
.sec-values { background: #FFFDF9; border-bottom: 1px solid var(--line); padding: 96px 0; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.value { text-align: left; }
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  margin-bottom: 20px;
}
.value-icon svg { width: 44px; height: 44px; fill: currentColor; }
.vi-teal { background: #E2EEEC; color: var(--teal); }
.vi-olive { background: #EEF0DF; color: #5B6532; }
.vi-brown { background: #F0E6D8; color: var(--brown); }
.vi-orange { background: #F9E4D3; color: var(--accent); }
.value h3 { font-size: 20px; color: var(--brown-deep); }
.value p { margin-top: 8px; font-size: 16px; color: var(--muted); }

/* ── 2. 온담 이야기 프리뷰 ── */
.sec-story { background: var(--ivory); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.story-text .lead { margin-top: 24px; font-size: 18.5px; color: #5C5245; }
.story-slogan {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.story-visual { position: relative; }
.slot-story { height: 510px; border-radius: var(--radius); }

/* 온담 이야기 사진: 서클 리빌(작은 원 → 화면 전체) + 스케일 세틀 (로고 원형 모티프)
   ⭐클립은 반드시 자식(.slot-story)에만 — 관찰 대상(.story-visual)을 clip-path로
   가리면 IntersectionObserver 교차 면적이 0이 되어 영영 트리거되지 않는다 */
/* 섹션 타이틀 공통: 좌→우 와이프 리빌 (보이지 않는 선이 지나가며 드러남)
   ⭐width: fit-content 필수 — 박스가 텍스트보다 넓으면 와이프가 중간에 끝나 보인다 */
.reveal .sec-title,
.cta-inner .cta-text h2 {
  width: fit-content;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.reveal.is-in .sec-title,
.cta-inner.is-in .cta-text h2 { clip-path: inset(0 0 0 0); }

.story-visual.reveal { opacity: 1; transform: none; }
.story-visual .slot-story {
  clip-path: circle(11% at 50% 50%);
  transform: scale(1.08);
  transition: clip-path 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
              transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.story-visual.is-in .slot-story {
  clip-path: circle(75% at 50% 50%);
  transform: scale(1);
}
/* 온담 이야기 슬라이드: 넘김 점 표시 + 스와이프/드래그 (온담 수정요청 10/6 주석 #11) */
.story-visual { touch-action: pan-y; }
.story-visual .slot-story { cursor: grab; }
.story-visual.is-dragging { user-select: none; }
.story-visual.is-dragging .slot-story { cursor: grabbing; }
.story-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; opacity: 0; transition: opacity 0.6s ease 1s; }
.story-visual.is-in .story-dots { opacity: 1; }
.story-dots i { position: relative; width: 13px; height: 24px; cursor: pointer; transition: width 0.3s ease; }
.story-dots i::before { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 9px; transform: translateY(-50%); border-radius: 999px; background: rgba(255, 250, 242, 0.5); box-shadow: 0 1px 4px rgba(40, 26, 14, 0.28); transition: background-color 0.3s ease; }
.story-dots i.is-on { width: 30px; }
.story-dots i.is-on::before { background: #FFFDF8; }
.story-dots i:focus-visible { outline: 2px solid #FFFDF8; outline-offset: 2px; border-radius: 999px; }

/* ── 3. 교구·프로그램 ── */
.sec-program { background: #FFFDF9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.pcard {
  display: block;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pcard:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(90, 66, 40, 0.14); }
.pcard-img { height: 265px; transition: transform 0.5s ease; }
.pcard:hover .pcard-img { transform: scale(1.045); }
.pcard-body { padding: 24px 22px 26px; }
.pcard-body h3 { font-size: 20px; color: var(--brown-deep); }
.pcard-body p { margin-top: 10px; font-size: 16px; color: var(--muted); }
.badges { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge { padding: 5px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.badge-olive { background: #EEF0DF; color: #5B6532; }
.badge-teal { background: #E2EEEC; color: #37605B; }
/* 난이도 A안: 둥근 점 5개 + 한글 라벨 */
.badge-level { display: inline-flex; align-items: center; gap: 7px; }
.dots { display: inline-flex; gap: 4px; align-items: center; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: transparent; border: 1.5px solid #A9C6C2; }
.dots i.on { background: #37605B; border-color: #37605B; }
.spec-level { display: inline-flex; align-items: center; gap: 10px; }
.spec-level .dots { gap: 5px; }
.spec-level .dots i { width: 11px; height: 11px; border-color: #CFC5B4; }
.spec-level .dots i.on { background: var(--teal); border-color: var(--teal); }
.spec-level .dlabel { color: var(--teal); font-weight: 700; }

/* ── 4. 활동의 순간들 ── */
.sec-moments { background: var(--ivory); }
.moments-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0 32px;
  max-width: 1320px;
  margin: 0 auto;
}
.moments-strip .slot { height: 430px; border-radius: var(--radius-s); transition: transform 0.4s ease, box-shadow 0.4s ease; cursor: pointer; }
.val-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.93);
  color: var(--brown-deep);
  font-size: 14.5px;
  font-weight: 700;
  pointer-events: none;
}
.moments-strip .slot:hover { transform: scale(1.02); box-shadow: 0 16px 32px rgba(90, 66, 40, 0.2); }
.moments-strip .slot:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.zoom-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.92);
  color: var(--brown-deep);
  box-shadow: 0 4px 12px rgba(30, 20, 10, 0.22);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.zoom-badge svg { width: 21px; height: 21px; }
.moment:hover .zoom-badge { transform: scale(1.12); background: var(--accent); color: #FFF9F3; }

/* ── 라이트박스 ── */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 22, 14, 0.82);
  padding: 40px;
}
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: lightbox-in 0.3s ease;
}
@keyframes lightbox-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.lightbox-close {
  position: absolute;
  top: 26px; right: 30px;
  width: 52px; height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.92);
  color: var(--brown-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.lightbox-close svg { width: 24px; height: 24px; }
.lightbox-close:hover { transform: scale(1.08); }

/* ── 5. 기관 도입 3단계 ── */
.sec-steps { background: var(--ivory-deep); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps.reveal { opacity: 1; transform: none; }
.step { position: relative; text-align: center; padding: 0 36px; }
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFF9F3;
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 10px 22px rgba(151, 73, 31, 0.25);
}
.step h3 { font-size: 22px; color: var(--brown-deep); }
.step p { margin-top: 12px; font-size: 16.5px; color: var(--muted); max-width: 300px; margin-left: auto; margin-right: auto; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(50% + 56px);
  width: calc(100% - 112px);
  border-top: 2.5px dashed #CBB79D;
}

/* 단계 순차 모션: 번호가 떠오르고 → 불이 하나씩 켜지고 → 점선이 그려짐 (온담 수정요청 10/6 주석 #9) */
.steps .step { --d: 0s; opacity: 0; transform: translateY(26px); transition: opacity 0.55s ease var(--d), transform 0.55s ease var(--d); }
.steps .step:nth-child(2) { --d: 0.3s; }
.steps .step:nth-child(3) { --d: 0.6s; }
.steps .step .step-no {
  background: #D9CDBB; box-shadow: none; transform: scale(0.5);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d),
              background-color 0.3s ease calc(var(--d) + 0.3s),
              box-shadow 0.3s ease calc(var(--d) + 0.3s);
}
.steps .step::after { transform: scaleX(0); transform-origin: left center; transition: transform 0.45s ease-out calc(var(--d) + 0.45s); }
.steps.is-in .step { opacity: 1; transform: none; }
.steps.is-in .step .step-no {
  background: var(--accent); box-shadow: 0 10px 22px rgba(151, 73, 31, 0.25); transform: scale(1);
  animation: step-light 0.8s ease-out calc(var(--d) + 0.3s) both;
}
.steps.is-in .step::after { transform: scaleX(1); }
@keyframes step-light {
  0%   { box-shadow: 0 0 0 0 rgba(224, 98, 26, 0), 0 10px 22px rgba(151, 73, 31, 0); filter: brightness(1); }
  30%  { box-shadow: 0 0 0 9px rgba(224, 98, 26, 0.32), 0 10px 22px rgba(151, 73, 31, 0.25); filter: brightness(1.2); }
  100% { box-shadow: 0 0 0 20px rgba(224, 98, 26, 0), 0 10px 22px rgba(151, 73, 31, 0.25); filter: brightness(1); }
}
.steps-cta { margin-top: 48px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── 6. 대표 제품 ── */
.sec-product { background: #FFFDF9; text-align: left; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.prod { display: block; }
.prod .prod-buy { margin-top: 14px; font-size: 16px; }
.prod-img { height: 385px; border-radius: var(--radius); }

/* 대표 제품 이미지: 좌→우 와이프 (카드 순서대로 시차) */
.prod-grid .prod-img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s, transform 0.4s ease, box-shadow 0.4s ease;
}
.prod-grid .prod:nth-child(2) .prod-img {
  transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s, transform 0.4s ease, box-shadow 0.4s ease;
}
.prod-grid .prod:nth-child(3) .prod-img {
  transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s, transform 0.4s ease, box-shadow 0.4s ease;
}
.prod-grid.is-in .prod-img { clip-path: inset(0 0 0 0); }
.prod:hover .prod-img { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(90, 66, 40, 0.13); }
.prod h3 { margin-top: 22px; font-size: 20px; color: var(--brown-deep); }
.prod-cap { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.sec-product .sec-more { text-align: center; }

/* ── 7. 문의 CTA (풀블리드 배너) ── */
.sec-cta {
  position: relative;
  padding: 160px 0;
  background: #3A2614;
}
/* 배경 이미지 레이어: 아래→위 와이프 */
.sec-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(58, 38, 20, 0.62), rgba(58, 38, 20, 0.62)), url("../images/o-cta2.jpg");
  background-size: cover;
  background-position: center;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.sec-cta:has(.cta-inner.is-in)::before { clip-path: inset(0 0 0 0); }
.cta-text-center { width: 100%; text-align: center; margin-bottom: 12px; }
.cta-text-center h2 { margin-left: auto; margin-right: auto; }
.cta-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  margin-top: 28px;
}
.cta-path {
  background: rgba(255, 250, 243, 0.09);
  border: 1px solid rgba(255, 250, 243, 0.22);
  border-radius: var(--radius);
  padding: 34px 36px;
  backdrop-filter: blur(3px);
}
.cta-path h3 { font-size: 21px; color: #FFF9F3; }
.cta-path p { margin: 12px 0 22px; font-size: 16.5px; color: rgba(255, 249, 243, 0.85); }
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 { font-family: var(--font-head); font-size: 36px; color: #FFFDF8; line-height: 1.4; letter-spacing: -0.01em; }
.cta-text p { margin-top: 16px; font-size: 19px; color: rgba(255, 250, 242, 0.88); }
.sec-cta .btn-primary { background: #FFFDF8; color: var(--brown-deep); --fill: #F1E6D4; }
.sec-cta .btn-primary:hover { box-shadow: 0 14px 28px rgba(20, 12, 5, 0.3); }

/* 교구·프로그램 목록 하단 밴드 「기관 상황에 맞춰 구성해 드릴까요?」: 전통 퍼즐 교구 연출컷 (온담 수정요청 10/8 PC ②)
   밝은 배경이라 어두운 오버레이 없이 텍스트를 좌측에 둔다 */
.sec-cta-consult { background: var(--ivory-deep); padding: 140px 0; }
.sec-cta-consult::before {
  background-image: linear-gradient(90deg, rgba(247, 241, 232, 0.55) 0%, rgba(247, 241, 232, 0) 48%), url("../images/cta-consult4.jpg");
  background-position: center;
}
.sec-cta-consult .cta-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
.sec-cta-consult .cta-text { max-width: 640px; }
.sec-cta-consult .cta-text h2 { color: var(--brown-deep); text-shadow: none; }
.sec-cta-consult .cta-text p { color: #5C5245; }
.sec-cta-consult .btn-primary { background: var(--accent); color: #FFF9F3; --fill: var(--accent-deep); }
.sec-cta-consult .btn-primary:hover { box-shadow: 0 14px 28px rgba(90, 66, 40, 0.22); }

/* ── 푸터 ── */
.footer { background: #332A21; color: #CBBFAF; padding: 64px 0 48px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
.footer-logo { height: 144px; margin-left: -41px; } /* 로고 PNG 좌측 투명 여백(23%) 보정 → 하단 텍스트와 좌측선 일치 */
.footer-tag { margin-top: 14px; font-size: 15.5px; color: #A79A87; }
.footer-menu { display: flex; gap: 28px; font-size: 16px; }
.footer-menu a { color: #D8CCBA; transition: color 0.2s ease; }
.footer-menu a:hover { color: #FFF9F3; }
.footer-info { grid-column: 1 / -1; margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(210, 196, 172, 0.2); font-size: 14.5px; color: #948875; }
.footer-copy { grid-column: 1 / -1; font-size: 14px; color: #6E6353; }
/* 푸터 사업자 정보 (온담 수정요청 10/8 주석 #15) — 항목 사이 가는 구분선 */
.footer-info { display: flex; flex-wrap: wrap; gap: 6px 0; }
.footer-info span:not(:last-child)::after { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 14px; background: rgba(210, 196, 172, 0.35); vertical-align: -1px; }
.footer-info a { color: inherit; }
.footer-info a:hover { color: #FFF9F3; }

/* ── 스크롤 리빌 ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* 모션 줄이기(prefers-reduced-motion) 예외 블록 제거 (온담 수정요청 10/6): PC의 Windows「애니메이션 효과」꺼짐 설정이
   이 조건에 걸려 웹에서 모든 모션이 사라졌던 문제 → 어떤 환경에서도 모션을 동일하게 재생 */

/* ── 반응형 ──
   기준(온담 수정요청 10/2): ≤1024 = 모바일 계열(태블릿·폴더블 813·폰) — 햄버거 메뉴 통일, 히어로 비율형 높이
                          ≤640  = 폰 — 섹션 여백·카드 높이·버튼 높이 규격화, 2·3열 구성으로 세로 길이 축소
   확인 폭: 375 / 390 / 430 / 768 / 813 */
@media (max-width: 1024px) {
  /* 헤더: 햄버거 메뉴로 통일(상단 기관문의는 드로어·하단 CTA로), 로고는 한 단계 크게 */
  .gnb { padding: 10px 0; }
  .gnb-inner { gap: 16px; padding: 0 24px; }
  .gnb-logo img { height: 80px; }
  .gnb-menu, .gnb-cta { display: none; }
  .wrap { padding: 0 24px; }

  /* 히어로: 롱 배너 — 첫 화면을 가득 채움 (온담 수정요청 10/7 ①, 이전 모바일 버전 형태) */
  .hero { height: 100vh; height: 100svh; min-height: 640px; padding: 80px 0 60px; }
  .hero-logo { height: 150px; margin-bottom: 22px; }
  .hero-title { font-size: 36px; }
  .hero-kicker { font-size: 16px; margin-bottom: 10px; }
  .hero-sub { font-size: 16.5px; margin-top: 12px; }
  .hero-btns { margin-top: 26px; }
  .hero-dots { bottom: 22px; }

  .sec { padding: 72px 0; }
  /* 도입 단계(메인) · 만드는 과정(온담 이야기): 세로 여백 확대 (온담 수정요청 10/7 ②④) */
  .sec-steps, .sec:has(> .wrap > .steps) { padding: 96px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-title { font-size: 31px; }
  .sec-desc { font-size: 17px; margin-top: 12px; }
  .sec-more { margin-top: 36px; }

  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .pcard-img { height: 220px; }
  /* 활동 사진 5장: 6트랙 그리드 — 윗줄 3장 + 아랫줄 2장(1.5칸씩)으로 빈칸 없이 */
  .moments-strip { grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 0 24px; }
  .moments-strip .slot { grid-column: span 2; height: auto; aspect-ratio: 1 / 1; }
  .moments-strip .slot-m4, .moments-strip .slot-m5 { grid-column: span 3; aspect-ratio: 16 / 10; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .slot-story { height: 420px; }
  .prod-grid { gap: 18px; }
  .prod-img { height: 260px; }
  .step { padding: 0 14px; }
  .step-no { width: 54px; height: 54px; font-size: 22px; margin-bottom: 16px; }
  .step h3 { font-size: 19px; }
  .step p { font-size: 15px; margin-top: 8px; }
  .step:not(:last-child)::after { top: 26px; left: calc(50% + 44px); width: calc(100% - 88px); }
  .sec-cta { padding: 110px 0; }
  .sec-cta-consult { padding: 96px 0; }
  .cta-text h2 { font-size: 31px; }
  .cta-path { padding: 26px 26px; }
  .footer { padding: 52px 0 40px; }
  .footer-logo { height: 120px; margin-left: -34px; }
}

@media (max-width: 640px) {
  /* ── 폰 규격 ──
     섹션 상하 48px · 섹션 제목 24px · 카드/상자 라운드 14px · 버튼 높이 46px(글자 15px)
     카드 간격 10px · 본문 14~15px · 그리드는 2열(교구 카드) / 3열(대표 제품·활동 사진·도입 단계) */
  :root { --radius: 14px; --radius-s: 10px; }
  body { font-size: 15.5px; line-height: 1.65; }
  .wrap { padding: 0 20px; }
  .gnb-inner { padding: 0 16px; }
  .gnb-logo img { height: 74px; }
  .gnb-drawer { padding: 6px 20px 12px; }
  .gnb-drawer a { padding: 12px 4px; font-size: 16.5px; }

  .sec { padding: 48px 0; }
  .sec-head { margin-bottom: 24px; }
  .eyebrow { font-size: 13px; margin-bottom: 8px; letter-spacing: 0.12em; }
  .sec-title { font-size: 24px; line-height: 1.32; }
  .sec-desc { font-size: 14.5px; margin-top: 10px; }
  .sec-more { margin-top: 26px; }
  .sec-product .sec-more { margin-top: 38px; } /* 스마트스토어 버튼 살짝 아래로 (온담 수정요청 10/8 주석 #2) */
  .btn { padding: 12px 20px 12px 30px; font-size: 15px; line-height: 1.4; }
  .btn-lg { padding: 13px 24px 13px 34px; font-size: 15.5px; }
  .btn::before, .gnb-cta::before { left: 12px; }
  .text-link { margin-top: 14px; font-size: 14.5px; }
  .store-note { font-size: 13px; margin-top: 10px; }

  /* 히어로: 롱 배너 — 첫 화면(작은 뷰포트 높이 기준) 안에 로고·문구·버튼이 모두 들어오도록 (온담 수정요청 10/7 ①)
     글자·로고 크기는 이전 모바일 버전(seyeong1403 배포본)과 동일 */
  .hero { height: 100vh; height: 100svh; min-height: 600px; padding: 84px 0 44px; }
  .hero-body { padding: 0 20px; }
  .hero-body::before { inset: -10% -14%; }
  .hero-logo { height: 150px; margin-bottom: 24px; }
  .hero-title { font-size: 36px; line-height: 1.3; }
  .hero-kicker { font-size: 16px; margin-bottom: 10px; }
  .hero-sub { font-size: 17px; margin-top: 16px; line-height: 1.6; }
  .hero-btns { margin-top: 34px; gap: 10px; flex-wrap: nowrap; } /* 버튼 가로 배치·가운데 정렬 (온담 수정요청 10/7 ①) */
  .hero-btns .btn { padding: 12px 18px 12px 30px; font-size: 14.5px; white-space: nowrap; }
  .hero-dots { bottom: 28px; }
  .hero-sub .br-m { display: inline; } /* 손을 움직이고, 생각을 더하며, / 하나의 작품을… / 인지와 소근육을… / 활동의 즐거움을… (주석 #1) */
  /* 모바일: 얼굴+손+교구 중심의 전용 세로 크롭 이미지로 스왑 (온담 3차 ②) */
  .slot-hero1 { background-image: url("../images/o-h41bm.jpg"); }
  .slot-hero2 { background-image: url("../images/o-h81m.jpg"); }
  .slot-hero3 { background-image: url("../images/o-h42m.jpg"); }
  .slot-hero4 { background-image: url("../images/o-h82m.jpg"); }
  .slot-hero5 { background-image: url("../images/o-h43m.jpg"); }
  .slot-hero6 { background-image: url("../images/o-h83m.jpg"); }
  .slot-hero7 { background-image: url("../images/o-h84m.jpg"); }
  .slot-hero8 { background-position: 62% center; }

  /* 활동 사진: 3열(정사각) + 2열(가로형), 간격 8px */
  .moments-strip { gap: 8px; padding: 0 20px; }
  .moments-strip .slot-m4, .moments-strip .slot-m5 { aspect-ratio: 4 / 3; }
  .val-tag { font-size: 11.5px; padding: 4px 9px; left: 8px; bottom: 8px; }
  .zoom-badge { width: 30px; height: 30px; top: 8px; right: 8px; }
  .zoom-badge svg { width: 15px; height: 15px; }

  /* 교구 카드: 2열 컴팩트 */
  .card-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard-img { height: 128px; }
  .pcard-body { padding: 12px 12px 14px; }
  .pcard-body h3 { font-size: 15.5px; }
  .pcard-body p { font-size: 13px; margin-top: 5px; line-height: 1.5; }
  .pcard-body .badges { margin-top: 9px; gap: 5px; }
  /* 메인 교구·프로그램 카드: 시간·난이도 배지를 모든 카드에서 세로로 통일, 배지 안 줄바꿈 금지 (온담 수정요청 10/8 주석 #3) */
  #program .pcard-body .badges { flex-direction: column; align-items: flex-start; }
  #program .pcard-body .badge { white-space: nowrap; }
  .pcard-body .badge { font-size: 12px; padding: 3px 9px; }
  .dots i { width: 7px; height: 7px; }

  /* 대표 제품: 3열(정사각 사진) */
  .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .prod-grid .prod:nth-child(3) { grid-column: auto; }
  .prod-img { height: auto; aspect-ratio: 1 / 1; }
  .prod h3 { font-size: 14.5px; margin-top: 10px; line-height: 1.35; }
  .prod-cap { font-size: 12px; margin-top: 4px; line-height: 1.45; }
  .prod .prod-buy { font-size: 13px; margin-top: 8px; }

  /* 도입 3단계: 가로 배치 유지 (1 → 2 → 3이 한눈에), 번호+짧은 제목 중심 */
  .steps { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .step { padding: 0 2px; }
  .step-no { width: 40px; height: 40px; font-size: 17px; margin-bottom: 10px; }
  .steps.is-in .step .step-no { box-shadow: 0 6px 14px rgba(151, 73, 31, 0.22); }
  .step h3 { font-size: 15px; line-height: 1.3; }
  .step p { font-size: 12.5px; line-height: 1.45; margin-top: 6px; }
  .step:not(:last-child)::after { display: block; top: 19px; left: calc(50% + 26px); width: calc(100% - 52px); border-top-width: 2px; }
  .steps-cta { margin-top: 26px; gap: 10px; }
  /* 도입 단계(메인) · 만드는 과정(온담 이야기): 모바일 세로 여백 확대 (온담 수정요청 10/7 ②④) */
  .sec-steps, .sec:has(> .wrap > .steps) { padding: 76px 0; }
  /* 도입 단계: 1-2-3 다이어그램 위아래 세로 여백 확대 (온담 수정요청 10/8 주석 #4) */
  .sec-steps .sec-head { margin-bottom: 44px; }
  .sec-steps .steps-cta { margin-top: 44px; }
  .sec:not(.sec-steps):has(> .wrap > .steps) .steps-cta { margin-top: 32px; }
  .steps-cta .btn { flex: 1 1 0; text-align: center; min-width: 0; }

  /* 활동 가치(온담 이야기·상세 기대효과): 2열, 아이콘 64px */
  .values { gap: 18px 14px; }
  .value-icon { width: 64px; height: 64px; margin-bottom: 12px; }
  .value-icon svg { width: 32px; height: 32px; }
  .value h3 { font-size: 16.5px; }
  .value p { margin-top: 5px; font-size: 14px; }

  /* 온담 이야기 */
  .story-grid { gap: 24px; }
  .story-text .lead { font-size: 15px; margin-top: 12px; }
  .story-slogan { font-size: 16px; margin-top: 12px; }
  .slot-story { height: 240px; }
  .story-dots { bottom: 10px; }

  /* 문의 CTA */
  .sec-cta { padding: 56px 0; }
  .sec-cta::before { background-position: 62% center; } /* 스트링아트 카드가 가운데 오도록 */
  .cta-inner { gap: 20px; }
  .cta-text h2 { font-size: 23px; line-height: 1.35; }
  .cta-text p { font-size: 15px; margin-top: 10px; }
  .cta-text-center { margin-bottom: 0; }
  .cta-paths { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .cta-path { padding: 18px 18px 20px; }
  .cta-path h3 { font-size: 17px; }
  .cta-path p { margin: 6px 0 14px; font-size: 14px; }
  .cta-path .btn { display: block; text-align: center; }
  .sec-cta-consult { padding: 60px 0 150px; }
  .sec-cta-consult::before {
    background-image: linear-gradient(180deg, rgba(247, 241, 232, 0.78) 0%, rgba(247, 241, 232, 0.1) 62%), url("../images/cta-consult4-m.jpg");
    background-position: center 70%;
  }
  .sec-cta-consult .cta-inner { gap: 16px; }
  .sec-cta-consult .btn-lg { align-self: stretch; text-align: center; }

  /* 푸터 */
  .footer { padding: 36px 0 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
  .footer-logo { height: 96px; margin-left: -27px; }
  .footer-tag { font-size: 14px; margin-top: 8px; }
  .footer-menu { gap: 18px; font-size: 15px; }
  .footer-info { font-size: 13px; margin-top: 16px; padding-top: 16px; }
  .footer-info { flex-direction: column; gap: 4px; }
  .footer-info span::after { display: none !important; }
  .footer-copy { font-size: 13px; }
  .lightbox { padding: 16px; }
  .lightbox-close { top: 14px; right: 14px; width: 44px; height: 44px; }
}

/* ══ 서브페이지 공통 ══ */
.subpage .gnb { background: rgba(250, 247, 242, 0.94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.subpage .gnb-logo .logo-w { display: none; }
.subpage .gnb-logo .logo-c { display: block; }
.subpage .gnb-menu a { color: var(--ink); }
.page-head { padding: 176px 0 64px; background: var(--ivory-deep); border-bottom: 1px solid var(--line); }
/* 교구·프로그램 / 기관 문의 상단: 온담 이야기와 같은 .story-hero(사진 히어로 + 투명 상단바)로 통일 (온담 수정요청 10/8 주석 #10~#13)
   — 높이·글 위치·오버레이는 .story-hero 공통, 사진만 다름 */
/* 기관 문의 하단 사업자 정보 (온담 수정요청 10/8 PC ④) — 박스형, 위 문의 폼·상담 박스와 좌우 끝 맞춤, 오렌지 포인트 라인·아이콘 (주석 #6·#7·#8) */
.sec-biz { background: var(--ivory-deep); padding: 0 0 72px; }
.biz-box { margin: -46px 0 0; background: #FFFDF9; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 30px 40px 34px; text-align: center; box-shadow: 0 10px 30px rgba(90, 66, 40, 0.06); }
.biz-title { font-size: 17px; font-weight: 700; color: var(--brown-deep); margin-bottom: 22px; }
.biz-list { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 24px; }
.biz-list > div { display: flex; flex-direction: column; align-items: center; }
.biz-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 50%; background: rgba(224, 98, 26, 0.1); color: var(--accent); }
.biz-ico svg { width: 21px; height: 21px; }
.biz-list dt { font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.biz-list dd { margin: 5px 0 0; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.biz-list a { color: inherit; }
.biz-list a:hover { color: var(--accent); }
/* 메인 홈: 좌측 상단 로고 제거 — PC(10/8 PC ①) + 모바일(주석 #9). 헤더 높이는 유지, 홈 이동은 햄버거 메뉴의 '홈' */
.home .gnb-logo { visibility: hidden; pointer-events: none; }
/* 온담 이야기: 풀블리드 사진 히어로 (메인 히어로와 같은 문법) */
.story-hero {
  display: flex;
  align-items: flex-end;
  min-height: 65vh;
  padding: 150px 0 64px;
  background-image: linear-gradient(rgba(44, 30, 18, 0.18), rgba(44, 30, 18, 0.52)), url("../images/story-hero2.jpg");
  background-size: cover;
  background-position: center 62%;
}
.story-hero .wrap { width: 100%; }
.story-hero .eyebrow { color: #F3D9C2; }
.story-hero .page-title { color: #FFF9F3; text-shadow: 0 2px 18px rgba(40, 26, 14, 0.35); }
.story-hero .page-sub { color: rgba(255, 249, 243, 0.88); }
/* 교구·프로그램 / 기관 문의: .story-hero 공통 규칙 뒤에 두어 사진만 교체 */
.hero-program { background-image: linear-gradient(rgba(44, 30, 18, 0.18), rgba(44, 30, 18, 0.52)), url("../images/program-head.jpg"); background-position: center 30%; }
.hero-contact { background-image: linear-gradient(rgba(44, 30, 18, 0.2), rgba(44, 30, 18, 0.58)), url("../images/contact-head.jpg"); background-position: right center; }
.page-title { font-family: var(--font-head); font-size: 42px; font-weight: 800; letter-spacing: -0.01em; color: var(--brown-deep); margin: 0; }
.page-sub { margin-top: 14px; font-size: 18.5px; color: var(--muted); }
.crumb { color: var(--teal); }
.crumb:hover { text-decoration: underline; }
.sec-alt { background: #FFFDF9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* 온담 이야기: 로고 모티프 */
.motifs { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; }
/* 온담 이야기 페이지: 목록 세로 여백을 넉넉히 두고, 마지막 항목이 우측 사진 하단과 같은 선에서 끝나도록 (온담 수정요청 10/6 주석 #14) */
@media (min-width: 1025px) {
  .story-grid:has(.motifs) { align-items: stretch; }
  .story-grid:has(.motifs) .story-text { display: flex; flex-direction: column; }
  .story-grid:has(.motifs) .motifs { flex: 1; align-content: space-between; margin-top: 36px; gap: 26px; }
}
.motifs li { display: flex; align-items: center; gap: 18px; }
.motifs h3 { font-size: 18.5px; color: var(--brown-deep); }
.motifs p { margin-top: 3px; font-size: 16px; color: var(--muted); }
.motif-shape { flex: none; width: 54px; height: 54px; display: inline-block; position: relative; }
.ms-circle { border: 4px solid var(--brown); border-radius: 50%; }
.ms-d { border: 4px solid var(--olive); border-right: none; border-radius: 14px 0 0 14px; }
.ms-bowl { border: 4px solid var(--teal); border-top: none; border-radius: 0 0 999px 999px; height: 30px; margin-top: 12px; }

/* 교구·프로그램 목록 */
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.cat-chip {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #FFFDF9;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cat-chip:hover { border-color: var(--accent); color: var(--accent); }
.cat-chip.on { background: var(--accent); border-color: var(--accent); color: #FFF9F3; }
.pl-grid { grid-template-columns: repeat(3, 1fr); }
.pl-card .pcard-img { height: 250px; background-size: cover; background-position: center; }
/* 메인 홈 교구 카드: 교구·프로그램 페이지와 같은 사진(인라인 지정)이 칸에 맞게 채워지도록 (온담 수정요청 10/8 주석 #14) */
#program .pcard-img { background-size: cover; background-position: center; }
.pl-card[hidden] { display: none; }

/* 교구 상세 */
.detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.detail-photo .slot { height: 480px; border-radius: var(--radius); background-size: cover; background-position: center; }
.spec-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 2px solid var(--brown-deep); }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
.spec-k { color: var(--muted); font-weight: 600; }
.spec-v { color: var(--ink); font-weight: 600; text-align: right; }
.spec-v .tbd { font-style: normal; font-size: 13.5px; color: var(--muted); font-weight: 400; }
.detail-btns { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.how-img { height: 200px; border-radius: var(--radius-s); background-size: cover; background-position: center; margin-bottom: 16px; }
.how h3 { font-size: 18px; color: var(--brown-deep); }
.how p { margin-top: 7px; font-size: 15.5px; color: var(--muted); }

/* 기관 문의 */
/* FAQ 블록 중앙 정렬 (온담 수정요청 10/6) — 타이틀은 와이프용 fit-content라 margin auto */
.sec-faq .sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.sec-faq .sec-title { margin-left: auto; margin-right: auto; }
.sec-faq .faq-list { margin-left: auto; margin-right: auto; }
/* 문의 영역: 상단 배너와 같은 진한 아이보리 바탕 + 폼·안내 카드로 정리 */
.sec-contact { background: var(--ivory-deep); border-top: 1px solid var(--line); }
.sec-contact .contact-form { background: #FFFDF9; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 36px 32px; box-shadow: 0 10px 30px rgba(90, 66, 40, 0.06); }
.sec-contact .field input, .sec-contact .field select, .sec-contact .field textarea { background: var(--ivory); }
.sec-contact .contact-types li { background: #FFFDF9; }
/* 문의 보내기: 테두리·왼쪽 점 없는 오렌지 라운드 버튼, 높이 축소 */
.btn-plain { padding: 13px 32px; border: none; }
.btn-plain::before { display: none; }
/* 문의 폼과 우측 「이런 문의를 받고 있어요」 박스가 같은 높이로 끝나도록 (온담 수정요청 10/6 주석 #10) */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: stretch; }
.contact-side { display: flex; flex-direction: column; }
.contact-form { display: grid; gap: 22px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: block; }
.field-label { display: block; font-size: 15.5px; font-weight: 700; color: var(--brown-deep); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: #FFFDF9;
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-submit { justify-self: start; }
.form-note { font-size: 14.5px; color: var(--muted); }
.contact-side h2 { font-size: 23px; color: var(--brown-deep); margin-bottom: 20px; }
.contact-types { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; flex: 1; grid-auto-rows: 1fr; }
.contact-types li { background: #FFFDF9; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.contact-types h3 { font-size: 17.5px; color: var(--brown-deep); }
.contact-types p { margin-top: 5px; font-size: 15.5px; color: var(--muted); }
.contact-direct { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-direct h3 { font-size: 17.5px; color: var(--brown-deep); }
.contact-direct p { margin-top: 6px; font-size: 16px; color: var(--muted); }

/* 햄버거 메뉴 */
.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #FFF9F3;
  width: 46px; height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 28px; height: 28px; }
.gnb.is-solid .menu-toggle, .subpage .menu-toggle { color: var(--ink); }
.gnb-drawer {
  background: rgba(250, 247, 242, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(60, 45, 25, 0.12);
  padding: 10px 24px 18px;
}
.gnb-drawer a { display: block; padding: 14px 6px; font-size: 18px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.gnb-drawer a:last-child { border-bottom: none; }

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .page-head { padding: 140px 0 44px; }
  .page-title { font-size: 34px; }
  .story-hero { min-height: 52vw; padding: 130px 0 44px; }
  .detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .pl-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .pl-card .pcard-img { height: 220px; }
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .detail-photo .slot { height: 400px; }
}
@media (max-width: 640px) {
  /* 서브페이지 폰 규격: 타이틀 밴드 상단 112px(헤더 아래) · 목록 2열 · 과정 2열 */
  .page-head { padding: 112px 0 32px; }
  .sec-biz { padding: 0 0 48px; }
  .biz-box { margin-top: -20px; padding: 22px 18px 24px; border-radius: 14px; }
  .biz-list { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .biz-ico { width: 36px; height: 36px; margin-bottom: 8px; }
  .biz-ico svg { width: 18px; height: 18px; }
  .biz-list dd { font-size: 15px; }
  .page-title { font-size: 26px; line-height: 1.3; }
  .page-sub { font-size: 15px; margin-top: 8px; }
  .story-hero { min-height: 0; padding: 112px 0 32px; }
  .cat-chips { gap: 8px; margin-bottom: 20px; }
  .cat-chip { padding: 8px 14px; font-size: 14px; }
  .pl-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pl-card .pcard-img { height: 140px; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .how-img { height: 118px; margin-bottom: 10px; }
  .how h3 { font-size: 15.5px; }
  .how p { font-size: 13.5px; margin-top: 4px; }
  .form-row2 { grid-template-columns: 1fr; gap: 14px; }
  .contact-form { gap: 14px; }
  .field-label { font-size: 14px; margin-bottom: 6px; }
  .field input, .field select, .field textarea { padding: 12px 14px; font-size: 15.5px; }
  .contact-types { gap: 10px; }
  .contact-types li { padding: 14px 16px; }
  .contact-types h3, .contact-direct h3 { font-size: 16px; }
  .contact-types p, .contact-direct p { font-size: 14px; }
  .contact-side h2 { font-size: 19px; margin-bottom: 12px; }
  .contact-direct { margin-top: 20px; padding-top: 16px; }
  .detail-grid { gap: 22px; }
  .sec-contact .contact-form { padding: 20px 16px 18px; border-radius: 14px; }
  .btn-plain { width: 100%; text-align: center; }
  .detail-photo .slot { height: 250px; }
  .spec-list { margin-top: 16px; }
  .spec-list li { padding: 11px 2px; font-size: 15px; gap: 12px; }
  .detail-btns { margin-top: 18px; gap: 10px; }
  .detail-btns .btn { flex: 1 1 0; text-align: center; min-width: 0; }
  .motifs { gap: 14px; margin-top: 18px; }
  .motifs li { gap: 14px; }
  .motif-shape { width: 44px; height: 44px; }
  .ms-bowl { height: 24px; margin-top: 10px; }
  .motifs h3 { font-size: 16.5px; }
  .motifs p { font-size: 14.5px; }
}


/* 상세: 실제 활동 모습 갤러리 */
.detail-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.detail-gallery .slot {
  height: 280px;
  border-radius: var(--radius-s);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.detail-gallery .slot:hover { transform: scale(1.02); box-shadow: 0 16px 32px rgba(90, 66, 40, 0.2); }
.detail-gallery .slot:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* 기관 문의: FAQ */
.faq-list { display: grid; gap: 14px; max-width: 900px; }
.faq {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0 24px;
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-deep);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; flex: none; width: 22px; height: 22px; }
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.faq-mark::before { width: 16px; height: 2.5px; transform: translate(-50%, -50%); }
.faq-mark::after { width: 2.5px; height: 16px; transform: translate(-50%, -50%); }
.faq[open] .faq-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq > p { padding: 0 0 22px; font-size: 16.5px; color: #5C5245; }

@media (max-width: 1024px) {
  .detail-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .detail-gallery .slot { height: 240px; }
  .faq-list { gap: 10px; }
}
@media (max-width: 640px) {
  .detail-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .detail-gallery .slot { height: auto; aspect-ratio: 1 / 1; }
  .faq { padding: 0 16px; }
  .faq summary { padding: 14px 0; font-size: 15.5px; gap: 12px; }
  .faq > p { padding: 0 0 16px; font-size: 14.5px; }
}
