/* ── 온담 메인 시안 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; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s 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-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: 10px; }
.hero-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 250, 242, 0.45); transition: background-color 0.3s ease, width 0.3s ease; }
.hero-dots i.is-on { background: #FFFDF8; width: 26px; 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);
}

/* ── 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;
}

/* 단계 순차 모션: 번호가 떠오르고 → 점선이 그려짐 */
.steps .step { opacity: 0; transform: translateY(26px); transition: opacity 0.55s ease, transform 0.55s ease; }
.steps .step .step-no { transform: scale(0.5); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.steps .step::after { transform: scaleX(0); transform-origin: left center; transition: transform 0.45s ease-out; }
.steps .step:nth-child(2) { transition-delay: 0.3s; }
.steps .step:nth-child(2) .step-no { transition-delay: 0.3s; }
.steps .step:nth-child(3) { transition-delay: 0.6s; }
.steps .step:nth-child(3) .step-no { transition-delay: 0.6s; }
.steps .step:nth-child(1)::after { transition-delay: 0.35s; }
.steps .step:nth-child(2)::after { transition-delay: 0.65s; }
.steps.is-in .step { opacity: 1; transform: none; }
.steps.is-in .step .step-no { transform: scale(1); }
.steps.is-in .step::after { transform: scaleX(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-cta.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); }

/* ── 푸터 ── */
.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; }
.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; }

/* ── 스크롤 리빌 ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .lightbox img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
  .steps .step, .steps .step .step-no, .steps .step::after { opacity: 1; transform: none; transition: none; }
  .story-visual .slot-story { clip-path: none; transform: none; transition: none; }
  .reveal .sec-title, .cta-inner .cta-text h2 { clip-path: none; transition: none; }
  .prod-grid .prod-img { clip-path: none; transition: none; }
  .sec-cta::before { clip-path: none; transition: none; }
  .btn::before, .gnb-cta::before { transition: none; }
  .hero-logo .draw { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; stroke-opacity: 1; }
  .hero-logo .fillin { animation: none; fill-opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .moments-strip { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .gnb-menu { display: none; }
}
@media (max-width: 640px) {
  /* 모바일: 상단 기관문의 제거(온담 확정 9/17, 하단 CTA·드로어 메뉴로 통일) + 로고 원본 비율 유지 */
  .gnb-cta { display: none; }
  /* 모바일 크롭: 활동(손·교구·얼굴)이 보이도록 슬라이드별 조정 (온담 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; }
  .gnb-logo img { height: 64px; }
  .sec { padding: 72px 0; }
  .sec-title { font-size: 29px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 17px; }
  .hero-kicker { font-size: 16px; margin-bottom: 10px; }
  .hero-logo { height: 150px; }
  .steps { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pcard-img { height: 150px; }
  .pcard-body { padding: 14px 14px 16px; }
  .pcard-body h3 { font-size: 16.5px; }
  .pcard-body p { font-size: 13.5px; margin-top: 6px; }
  .pcard-body .badges { margin-top: 10px; gap: 5px; }
  .pcard-body .badge { font-size: 13px; padding: 4px 10px; }
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .prod-grid .prod:nth-child(3) { grid-column: 1 / -1; }
  .prod-img { height: 210px; }
  .val-tag { font-size: 13px; padding: 5px 12px; left: 10px; bottom: 9px; }
  .steps { gap: 40px; }
  .step:not(:last-child)::after { display: none; }
  .moments-strip { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; gap: 36px; }
  .moments-strip .slot { height: 220px; }
  .slot-story { height: 300px; }
  .moments-strip .slot-m5 { grid-column: 1 / -1; }
  .sec-cta { padding: 96px 0; }
  .cta-paths { grid-template-columns: 1fr; gap: 16px; }
  .cta-path { padding: 28px 26px; }
  .cta-text h2 { font-size: 27px; }
  .footer-inner { grid-template-columns: 1fr; }
}


/* ══ 서브페이지 공통 ══ */
.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 {
  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-hero.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); }
.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; }
.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; }
.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); }

/* 기관 문의 */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: start; }
.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; }
.contact-types li { background: #FFFDF9; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px 20px; }
.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; }
  .detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .pl-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .page-head { padding: 150px 0 48px; }
  .page-title { font-size: 30px; }
  .pl-grid, .how-grid, .form-row2 { grid-template-columns: 1fr; }
  .detail-photo .slot { height: 320px; }
}


/* 상세: 실제 활동 모습 갤러리 */
.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); }
}
@media (max-width: 640px) {
  .detail-gallery { grid-template-columns: 1fr 1fr; }
  .detail-gallery .slot { height: 180px; }
}
