/* =========================================================
   한국기독교장로회 서대전교회 — style.css
   "말씀에서 시작해, 대전에서 땅끝까지 이어지는 선."
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --ivory: #F4F1E9;
  --green: #263A32;
  --charcoal: #20221F;
  --orange: #B9663A;        /* 포인트 컬러 — 점, 숫자, 선 */
  --orange-soft: #E3A27C;   /* 어두운 배경 위 포인트 */

  --muted: #5E605A;
  --line: #D3CEC1;
  --ph-a: #E8E3D6;
  --ph-b: #EFEBE1;

  --green-line: #4A5E55;
  --green-muted: #B7C0B8;
  --green-text: #DCE0D8;

  --footer-line: #3A3C37;
  --footer-muted: #B5B4AC;
  --footer-text: #DAD8CF;

  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  --pad: clamp(20px, 5vw, 80px);
  --max: 1320px;
  --section-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.22, .61, .24, 1);

  --ph-dark-a: #2E3A35; --ph-dark-b: #34413B; --surface: #FBF9F4; --fs-label: 13px; --ls-label: .12em;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* 브라우저·인앱 브라우저(카카오톡 등)의 자동 글자 확대 방지 — 앱이 넣는 인라인 스타일보다 우선하도록 !important */
html, body { -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; }
html.is-fullpage { scroll-behavior: auto; scrollbar-gutter: stable; }
html.is-locked body { overflow: hidden; }
.br-m { display: none; } /* 모바일에서만 줄바꿈 */
html.is-fullpage { overscroll-behavior-y: none; } /* iOS 고무줄 튕김이 스냅 보정과 겹쳐 떨리는 것 방지 */
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  text-wrap: pretty;   /* 마지막 줄에 단어 하나만 떨어지지 않게 */
  overflow-x: hidden;
}
h1, h2, h3 { text-wrap: balance; }   /* 제목은 줄 길이를 고르게 */
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .3s; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--green); color: var(--ivory); }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--green); color: var(--ivory); padding: 10px 16px; font-size: 14px;
}
.skip-link:focus { left: 16px; color: var(--ivory); }

/* ---------- 3. Shared ---------- */
.container { max-width: var(--max); margin: 0 auto; width: 100%; }
.section {
  padding: var(--section-y) var(--pad);
  border-top: 1px solid var(--line);
  scroll-margin-top: 60px;
}
.section-body { margin-top: clamp(40px, 5vw, 64px); }

.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; letter-spacing: .14em; font-weight: 600; color: var(--muted);
}
.eyebrow__num { color: var(--orange); font-weight: 600; }
.eyebrow__bar { width: 48px; height: 1px; background: var(--charcoal); }

.section-title {
  margin-top: 16px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4vw, 56px); line-height: 1.2; letter-spacing: -.025em;
}
.label { font-size: var(--fs-label); letter-spacing: var(--ls-label); color: var(--muted); }
.accent { color: var(--orange); }
.is-green { color: var(--green); }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 22px; border-radius: 2px;
  font-size: 15px; font-weight: 500;
  transition: background .3s, color .3s;
}
.btn--primary { background: var(--green); color: var(--ivory); }
.btn--primary:hover { background: var(--charcoal); color: var(--ivory); }
.btn__arrow { color: var(--orange-soft); }
.btn--outline { border: 1px solid var(--charcoal); padding: 14px 22px; }
.btn--outline:hover { background: var(--charcoal); color: var(--ivory); }

.link-line {
  display: inline-flex; padding: 8px 0;
  font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--charcoal);
  transition: color .3s, border-color .3s;
}
.link-line:hover { border-color: var(--orange); }

.photo { width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  display: flex; align-items: flex-end; padding: 16px;
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 10px, var(--ph-b) 10px 20px);
  border: 1px solid var(--line);
}
.placeholder span { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--muted); }

.section--green { background: var(--green); color: var(--ivory); border-top: 0; }
.section--dark  { background: var(--charcoal); color: var(--ivory); border-top: 0; }
.section--green .eyebrow, .section--green .label { color: var(--green-muted); }
.section--dark .eyebrow,  .section--dark .label  { color: var(--footer-muted); }
.section--green .eyebrow__num, .section--dark .eyebrow__num { color: var(--orange-soft); }
.section--green .eyebrow__bar, .section--dark .eyebrow__bar { background: var(--ivory); }
.section--green .is-green { color: var(--orange-soft); }
.section--dark .btn--primary { background: var(--ivory); color: var(--charcoal); }
.section--dark .btn--outline { border-color: var(--ivory); color: var(--ivory); }
.section--dark .btn--outline:hover { background: var(--ivory); color: var(--charcoal); }
.placeholder--dark { background: repeating-linear-gradient(135deg, var(--ph-dark-a) 0 10px, var(--ph-dark-b) 10px 20px); border-color: var(--green-line); }
.placeholder--dark span { color: var(--green-muted); }

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .6s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 24px; padding: 14px var(--pad);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--charcoal); }
.logo__mark { height: 40px; width: auto; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; gap: 5px; }
.logo__row { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.logo:hover { color: var(--charcoal); }
.logo__sub { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.logo__name { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.logo__en { font-size: 10px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }

.nav {
  display: flex; gap: clamp(14px, 2.6vw, 40px);
  max-width: 100%; overflow-x: auto; white-space: nowrap;
  font-size: 14px; font-weight: 500;
  scrollbar-width: none;
  order: 2; margin-left: auto;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 6px 0;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 100% / 0% 1px;
  transition: background-size .5s var(--ease), color .3s;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current] { background-size: 100% 1px; }

/* 배경음악 — 헤더의 아이콘 버튼을 누르면 곡 제목·재생/정지·음량 패널이 열림 */
.bgm { position: relative; order: 3; flex-shrink: 0; }
.bgm[hidden] { display: none; }
.bgm-toggle {
  display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0;
  border: 0; background: none; color: var(--charcoal); cursor: pointer;
  opacity: .7; transition: opacity .3s, color .3s;
}
.bgm-toggle:hover, .bgm-toggle:focus-visible { color: var(--orange); }
.bgm-toggle:hover, .bgm-toggle:focus-visible,
.bgm-toggle[aria-expanded="true"], .bgm.is-playing .bgm-toggle { opacity: 1; }
.bgm-bars { display: flex; align-items: flex-end; gap: 2.5px; height: 14px; }
/* 꺼져 있을 땐 헤드폰, 재생 중엔 움직이는 이퀄라이저 막대 */
.bgm-headphones { width: 18px; height: 18px; fill: currentColor; }
.bgm.is-playing .bgm-headphones, .bgm:not(.is-playing) .bgm-bars { display: none; }
.bgm-bars i { width: 2.5px; height: 14px; background: currentColor; transform-origin: bottom; }
.bgm.is-playing .bgm-bars i { animation: bgm-bar 1s ease-in-out infinite alternate; }
.bgm.is-playing .bgm-bars i:nth-child(2) { animation-delay: -.4s; }
.bgm.is-playing .bgm-bars i:nth-child(3) { animation-delay: -.7s; }
@keyframes bgm-bar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

.bgm-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  width: 200px; padding: 10px 12px;
  background: var(--surface); color: var(--charcoal);
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 8px 24px rgba(32, 34, 31, .12);
}
.bgm-panel[hidden] { display: none; }
/* 자동재생이 막혔을 때 헤드폰 아래 말풍선(bgm.js) — Hero 위에서만 보임 */
.bgm-hint {
  position: absolute; top: calc(100% + 10px); right: -4px; z-index: 1;
  display: flex; align-items: center;
  background: rgba(244, 241, 233, .08); color: rgba(244, 241, 233, .72);
  border: 1px solid rgba(244, 241, 233, .16); border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .8s ease, transform .8s ease, visibility .8s;
}
.bgm-hint::before {
  content: ""; position: absolute; bottom: 100%; right: 14px;
  border: 5px solid transparent; border-bottom-color: rgba(244, 241, 233, .16);
}
.bgm-hint button {
  border: 0; background: none; color: inherit; cursor: pointer;
  font: 400 12px/1 var(--sans); letter-spacing: .02em; white-space: nowrap;
  transition: color .3s;
}
.bgm-hint__play { padding: 7px 4px 7px 12px; }
.bgm-hint__close { padding: 7px 10px 7px 6px; font-size: 14px; opacity: .6; }
.bgm-hint button:hover, .bgm-hint button:focus-visible { color: var(--ivory); opacity: 1; }
.bgm-hint.is-on { opacity: 1; visibility: visible; transform: none; }
.site-header:not(.is-over-hero) .bgm-hint { opacity: 0; visibility: hidden; }
.bgm-play {
  display: grid; place-items: center; flex-shrink: 0;
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: var(--green); color: var(--ivory); cursor: pointer;
  transition: background .3s;
}
.bgm-play:hover, .bgm-play:focus-visible { background: var(--orange); }
.bgm-play svg { width: 11px; height: 11px; fill: currentColor; }
.bgm-play .bgm-icon-pause, .bgm.is-playing .bgm-play .bgm-icon-play { display: none; }
.bgm.is-playing .bgm-play .bgm-icon-pause { display: block; }
.bgm-panel__body { flex: 1; min-width: 0; }
.bgm-panel__title { font-size: 12px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.bgm-volume { display: block; }
.bgm-volume[hidden] { display: none; }
.bgm-volume input { display: block; width: 100%; height: 14px; margin: 4px 0 0; accent-color: var(--orange); cursor: pointer; }

/* 메뉴가 줄바꿈되는 폭: 로고·음악 버튼이 첫 줄, 메뉴는 둘째 줄 전체 */
@media (max-width: 960px) {
  .bgm { order: 1; margin-left: auto; }
  .nav { order: 2; flex-basis: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bgm.is-playing .bgm-bars i { animation: none; }
}

/* ---------- 5. Hero : 빛의 십자가 ----------
   대전(왼쪽) → 십자가 → 땅 끝(오른쪽).
   기본 스타일은 완성 상태(선이 땅 끝까지 닿은 모습)이고,
   .motion일 때만 등장 연출과 스크롤 연출이 붙습니다.
   --t: 선의 진행(0→1) / --f: 빛이 화면을 채우는 정도(0→1), JS가 갱신
   ------------------------------------------------------------------ */
.hero-wrap { position: relative; }
/* 글자 확대 환경(main.js가 감지): 화면 높이 고정을 풀어 내용이 잘리지 않게 */
.is-large-text .hero { height: auto; min-height: 100svh; }
.motion .hero-wrap { height: 480vh; }

.hero {
  --t: 1; --f: 0; --f3: 0;
  --wall: #18241F;
  --light: #FFE8C4;
  --cross-top: clamp(100px, 14vh, 150px);
  --cross-h: 36vh;
  --arm-y: calc(var(--cross-top) + var(--cross-h) * .26);
  --route: calc(100% - var(--pad) * 2);
  position: sticky; top: 0;
  height: 100vh; height: 100svh; min-height: 580px;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 var(--pad) clamp(40px, 7vh, 72px);
  background:
    radial-gradient(ellipse 40% 50% at 50% 30%, rgba(255,220,170,.07), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 40%, #1F2E28 0%, var(--wall) 55%, #111915 100%);
  color: var(--ivory);
}

/* 벽의 질감: 아주 옅은 노이즈로 매끈한 그라데이션을 회벽처럼 */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .06; mix-blend-mode: overlay;
}

/* 벽에 번지는 빛 / 바닥에 떨어진 빛 */
.hero__halo {
  position: absolute; left: 50%; top: var(--cross-top); width: 70vh; height: 70vh;
  transform: translate(-50%, -8%);
  background: radial-gradient(circle, rgba(255,214,160,.22) 0%, rgba(255,214,160,.06) 40%, transparent 70%);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
  pointer-events: none;
}
.hero.is-through .hero__halo { transform: translate(-50%, -8%) scale(1.35); filter: brightness(1.5); }
.hero__floor {
  position: absolute; left: 50%; bottom: -12vh; width: 90%; height: 34vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,222,176,.14), transparent 70%);
  pointer-events: none;
}

/* 십자가: 벽의 틈으로 새어 나오는 빛 */
.hero__slit {
  position: absolute; left: 50%; z-index: 2;
  background: var(--light);
  box-shadow: 0 0 6px 1px rgba(255,236,200,.95), 0 0 28px 6px rgba(255,210,150,.45), 0 0 90px 24px rgba(255,190,120,.18);
  transition: box-shadow 1s var(--ease);
}
.hero.is-through .hero__slit {
  box-shadow: 0 0 8px 2px rgba(255,240,210,1), 0 0 40px 10px rgba(255,210,150,.55), 0 0 140px 40px rgba(255,190,120,.24);
}
.hero__cross-v { position: absolute; left: 0; right: 0; top: var(--cross-top); height: var(--cross-h); }
.hero__cross-v .hero__slit {
  top: 0; height: 100%; width: calc(6px + var(--f3) * 130vw); transform: translateX(-50%);
  border-radius: 3px;
  /* 교차점(26%)이 가장 뜨겁고 끝으로 갈수록 식는 빛 */
  background: linear-gradient(180deg, rgba(255,232,196,.55) 0%, var(--light) 12%, #FFF8EA 26%, var(--light) 55%, rgba(255,226,186,.7) 100%);
}
.hero__cross-h { position: absolute; left: 0; right: 0; top: var(--arm-y); height: 0; }
.hero__cross-h .hero__slit {
  width: calc(var(--cross-h) * .5); height: calc(6px + var(--f3) * 130vh); transform: translate(-50%, -50%);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,232,196,.55) 0%, var(--light) 22%, #FFF8EA 50%, var(--light) 78%, rgba(255,232,196,.55) 100%);
}
/* 틈 한가운데의 가장 밝은 심 + 번지는 잔광 */
.hero__slit::before, .hero__slit::after { content: ""; position: absolute; pointer-events: none; }
.hero__slit::before { background: #fff; opacity: .9; border-radius: 1px; }
.hero__cross-v .hero__slit::before { left: 50%; top: 3%; bottom: 3%; width: 2px; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 35%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 20%, #000 35%, transparent); }
.hero__cross-h .hero__slit::before { top: 50%; left: 6%; right: 6%; height: 2px; transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent); }
.hero__slit::after {
  inset: -10px; border-radius: 12px;
  background: rgba(255,214,160,.35); filter: blur(14px);
  opacity: calc(1 - var(--f) * 2);
}
.motion .hero__slit::after { animation: slit-breathe 5.5s ease-in-out infinite; }
@keyframes slit-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35, 1.12); } }

/* 교차점에서 십자가 결을 따라 부드럽게 번지는 빛 */
.hero__rays {
  position: absolute; left: 50%; top: var(--arm-y); z-index: 1;
  width: 120vh; height: 120vh; transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse 7% 45% at 50% 50%, rgba(255,222,176,.16), transparent 70%),
    radial-gradient(ellipse 30% 6% at 50% 50%, rgba(255,222,176,.13), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(255,214,160,.12), transparent 30%);
  filter: blur(8px);
  /* 헤더(60px) 아래에서만 보이게: 헤더 밑선에서 십자가 머리까지 페이드 인 */
  -webkit-mask-image: linear-gradient(180deg, transparent calc(60vh - var(--arm-y) + 64px), #000 calc(60vh - var(--arm-y) + var(--cross-top)));
          mask-image: linear-gradient(180deg, transparent calc(60vh - var(--arm-y) + 64px), #000 calc(60vh - var(--arm-y) + var(--cross-top)));
  opacity: calc(1 - var(--f) * 2);
  pointer-events: none;
}
/* 크기를 키우면 마스크 경계도 헤더 쪽으로 밀려 올라가므로 밝기로만 숨쉬기 */
.motion .hero__rays { animation: rays-breathe 7s ease-in-out infinite; }
@keyframes rays-breathe { 0%, 100% { filter: blur(8px) brightness(1); } 50% { filter: blur(8px) brightness(1.35); } }

/* 대전 → 십자가 → 땅 끝 */
/* 열방으로 라벨은 따로: 십자가와 함께 커지며 가장 늦게 빛 속으로 사라짐 */
.hero__route > :not(.hero__label--end) { opacity: calc(1 - var(--f) * 3); }
.hero__route {
  --gap: calc(var(--cross-h) * .25 + 14px);  /* 가로대 반폭 + 여백 */
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(50% - var(--gap) - 18px), transparent calc(50% - var(--gap)), transparent calc(50% + var(--gap)), #000 calc(50% + var(--gap) + 18px));
          mask-image: linear-gradient(90deg, #000 calc(50% - var(--gap) - 18px), transparent calc(50% - var(--gap)), transparent calc(50% + var(--gap)), #000 calc(50% + var(--gap) + 18px));
}
.hero__track {
  position: absolute; left: var(--pad); width: var(--route); top: var(--arm-y); z-index: 1;
  border-top: 1px dashed rgba(220,224,216,.18);
}
.hero__beam {
  position: absolute; left: var(--pad); top: var(--arm-y); z-index: 1;
  width: calc(var(--route) * min(var(--t), .5)); height: 1px; margin-top: -.5px;
  background: rgba(220,224,216,.45);
}
.hero__beam--lit {
  left: 50%; width: calc(var(--route) * max(var(--t) - .5, 0));
  height: 1.5px; margin-top: -.75px;
  background: linear-gradient(90deg, rgba(255,240,212,1), rgba(255,226,180,.8));
  box-shadow: 0 0 10px rgba(255,210,150,.55), 0 0 24px rgba(255,200,130,.25);
}
.hero__beam--lit::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(90deg, transparent 30%, var(--orange-soft));
  transition: opacity .8s var(--ease);
}
.hero.is-arrived .hero__beam--lit::after { opacity: 1; }
.hero__dot {
  position: absolute; top: var(--arm-y); z-index: 2;
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
}
.hero__dot--origin { left: var(--pad); background: var(--green-text); }
.hero__dot--end {
  left: calc(100% - var(--pad));
  border: 1px solid rgba(227,162,124,.6);
  transition: background .4s, transform .4s;
}
.hero.is-arrived .hero__dot--end { background: var(--orange-soft); transform: scale(1.3); }
/* 도착 순간 끝점에서 퍼지는 파동 */
.hero__dot--end::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--orange-soft); opacity: 0;
}
.motion .hero.is-arrived .hero__dot--end::after { animation: hero-ripple 1.6s var(--ease) both; }
@keyframes hero-ripple {
  from { opacity: .9; transform: scale(1); }
  to   { opacity: 0; transform: scale(7); }
}
.hero__head { display: none; }
.hero__label {
  position: absolute; z-index: 2;
  font-size: 13px; font-weight: 500; letter-spacing: .24em; line-height: 1.7; color: var(--green-text);
}
.hero__label--origin {
  bottom: calc(100% - var(--arm-y) + 12px); left: var(--pad);
  font-family: var(--serif); font-size: 14px; letter-spacing: .04em; color: var(--ivory);
}
.hero__label--end {
  top: calc(var(--arm-y) + 14px); right: var(--pad); text-align: right;
  font-family: var(--serif); font-size: 14px; letter-spacing: .04em; color: var(--green-text);
  transform-origin: right top;
  /* 도착 강조(scale)와 스크롤 연동 확대(transform)를 분리해 서로 덮어쓰지 않게 함 */
  transform: translateX(calc(var(--f) * -22vw)) scale(calc(1 + var(--f) * 1.4));
  /* 등장 애니메이션(hero-fade)이 opacity를 붙잡고 있어 filter로 사라지게 함 */
  filter: opacity(calc(1 - var(--f) * 1.8)) blur(calc(var(--f) * 6px));
  transition: color .6s, scale .7s var(--ease), text-shadow .7s, font-weight .6s;
}
.hero.is-arrived .hero__label--end {
  scale: 1.7; font-weight: 600; color: var(--orange-soft);
  text-shadow: 0 0 14px rgba(227,162,124,.55), 0 0 36px rgba(227,162,124,.3);
}
.hero__cue { display: none; }

/* 텍스트 */
.hero__text {
  position: relative; z-index: 3; text-align: center;
  opacity: calc(1 - var(--f) * 3);
  transform: translateY(calc(var(--f) * -40px));
}
.hero__meta { font-family: var(--serif); font-size: clamp(15px, 1.3vw, 18px); letter-spacing: .02em; color: #E9EBE4; }
.hero__meta span { margin-left: 8px; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; color: var(--green-muted); }
.hero__title {
  margin-top: 20px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5.2vw, 80px); line-height: 1.18; letter-spacing: -.035em;
}
.hero__title em {
  font-style: normal; font-weight: 600; color: var(--orange-soft);
  background: linear-gradient(180deg, #FBDDBC 0%, var(--orange-soft) 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(255,200,140,.28));
}
.hero__lead {
  margin-top: 22px;
  font-family: var(--serif); font-size: clamp(16px, 1.5vw, 21px); font-weight: 500; letter-spacing: .02em;
  color: var(--green-text);
}
.hero__cta { margin-top: 28px; display: flex; justify-content: center; gap: 28px; font-size: 15px; }
.hero__cta a { padding-bottom: 4px; color: var(--green-text); border-bottom: 1px solid rgba(220,224,216,.35); }
.hero__cta a:first-child { color: var(--ivory); font-weight: 600; border-color: var(--ivory); }
.hero__cta a:hover { color: var(--orange-soft); border-color: var(--orange-soft); }

/* 스크롤 끝에서 화면을 채우는 빛 → 다음 섹션의 아이보리로 이어짐 */
.hero__flood {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, #FFF9EC, var(--ivory) 70%);
  opacity: calc(var(--f) * 1.6 - .2);
}

/* 빛이 화면을 채운 뒤 떠오르는 말씀
   단어마다 --w(0→1): 빛 속에서 번져 있다가 초점이 맞듯 또렷해짐
   --o(0→1): 다시 빛 속으로 번지며 사라짐 */
.hero {
  --w0: 0; --w1: 0; --w2: 0; --ws: 0; --o: 0;
}
.hero__verse {
  position: absolute; inset: 0; z-index: 5; margin: 0; padding: 0 var(--pad);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--green); pointer-events: none;
  opacity: calc(1 - var(--o));
  filter: blur(calc(var(--o) * 14px));
}
/* 말씀 뒤에서 은은하게 비치는 빛: 중심의 온기(::before)와 넓게 번지는 여광(::after)이 천천히 숨 쉼 */
.hero__verse::before,
.hero__verse::after {
  content: ""; position: absolute; left: 50%; top: 46%; z-index: -1; pointer-events: none;
  transform: translate(-50%, -50%); border-radius: 50%;
}
.hero__verse::before {
  width: min(90vw, 1000px); height: min(60vh, 600px);
  background: radial-gradient(ellipse at center, rgba(255,196,120,.38) 0%, rgba(255,206,140,.16) 40%, transparent 70%);
  opacity: var(--w0); filter: blur(30px);
}
.hero__verse::after {
  width: min(150vw, 1700px); height: min(100vh, 1000px);
  background: radial-gradient(ellipse at center, rgba(255,214,160,.2) 0%, rgba(255,220,170,.07) 45%, transparent 70%);
  opacity: var(--w1); filter: blur(40px);
}
.motion .hero__verse::before { animation: verse-breathe 7s ease-in-out infinite; }
.motion .hero__verse::after { animation: verse-breathe 11s ease-in-out -3s infinite; }
@keyframes verse-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(.92); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}
.hero__verse-main {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .32em;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 72px); line-height: 1.2; letter-spacing: -.03em;
}
.hero__word {
  display: inline-block;
  opacity: var(--w);
  filter: blur(calc((1 - var(--w)) * 16px));
  transform: translateY(calc((1 - var(--w)) * .18em)) scale(calc(1.1 - var(--w) * .1));
  text-shadow: 0 0 calc((1 - var(--w)) * 40px) rgba(255, 200, 130, .9);
}
.hero__word em { font-style: normal; color: var(--orange); }
.hero__verse-foot {
  margin-top: clamp(24px, 4vh, 40px);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: var(--ws); transform: translateY(calc((1 - var(--ws)) * 12px));
}
.hero__verse-sub { font-family: var(--serif); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.8; color: var(--charcoal); }
.hero__verse-src {
  display: flex; align-items: center; gap: 12px;
  font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--orange);
}
.hero__verse-src::before,
.hero__verse-src::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

/* 히어로 위에 있는 동안 헤더는 투명 + 밝은 글자 */
.site-header { transition: border-color .6s ease, background .6s ease; }
.site-header.is-over-hero { background: transparent; border-bottom-color: transparent; }
.site-header.is-over-hero .logo,
.site-header.is-over-hero .nav a,
.site-header.is-over-hero .bgm-toggle { color: var(--ivory); }
.site-header.is-over-hero :is(.logo__sub, .logo__en) { color: var(--green-muted); }
.site-header.is-over-hero .nav a:hover,
.site-header.is-over-hero .bgm-toggle:hover { color: var(--orange-soft); }
/* 인트로(Hero 말씀이 끝나기 전)에는 메뉴를 숨겨 애니메이션을 건너뛰지 않게 — fullpage.js가 is-intro를 붙이고 뗀다 */
.nav, .menu-toggle { transition: opacity .8s ease, visibility .8s; }   /* 모바일 .nav는 아래에서 자체 transition으로 덮어씀 */
.site-header.is-intro :is(.nav, .menu-toggle) { opacity: 0; visibility: hidden; pointer-events: none; }

/* 초록·어두운 섹션 위에서는 헤더도 섹션 색 + 밝은 글자 */
.site-header.is-on-green { background: var(--green); border-bottom-color: var(--green-line); }
.site-header.is-on-dark  { background: var(--charcoal); border-bottom-color: rgba(255,255,255,.08); }
.site-header:is(.is-on-green, .is-on-dark) .logo,
.site-header:is(.is-on-green, .is-on-dark) .nav a,
.site-header:is(.is-on-green, .is-on-dark) .bgm-toggle { color: var(--ivory); }
.site-header:is(.is-on-green, .is-on-dark) :is(.logo__sub, .logo__en) { color: var(--green-muted); }
.site-header:is(.is-on-green, .is-on-dark) .nav a:hover,
.site-header:is(.is-on-green, .is-on-dark) .bgm-toggle:hover { color: var(--orange-soft); }

@media (max-width: 720px) {
  .hero { --cross-top: clamp(128px, 18vh, 170px); --cross-h: 30vh; }
  .hero__label { font-size: 13px; }
  .hero__label--origin, .hero__label--end { font-size: 13px; }
}

/* ---------- 6. Our Story ---------- */
/* 섹션 전체가 데스크톱 한 화면에 들어오도록 세로 리듬을 줄임 */
#story { padding-block: clamp(72px, 9vw, 128px); }
#story .section-body { margin-top: clamp(36px, 4vw, 56px); }
.story__grid { display: flex; flex-wrap: wrap; gap: clamp(36px, 6vw, 104px); }
.story__lines {
  flex: 1 1 560px; min-width: 0;
  display: flex; flex-direction: column; gap: 1em;
  font-family: var(--serif); font-size: clamp(20px, 2.1vw, 30px); line-height: 1.6; letter-spacing: -.02em;
}
.story__lines em {
  font-style: normal; color: var(--green);
  background: linear-gradient(rgba(185, 102, 58, .16), rgba(185, 102, 58, .16)) no-repeat 0 100% / 100% .28em;
}
.story__media { flex: 0 1 440px; min-width: 260px; }
.story__photo { aspect-ratio: 2 / 3; } /* church.png 원본 비율 — 잘림 없이 꽉 참 */
.story__media figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.pillars {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.pillar { position: relative; padding-top: 20px; }
.pillar__rule { position: absolute; inset: 0 0 auto; height: 1px; background: var(--charcoal); }
.pillar__num { margin-right: 12px; color: var(--orange); font-weight: 600; }
.pillar h3 { margin: 10px 0 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 1.9vw, 26px); letter-spacing: -.02em; }
.pillar p:last-child { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- 7. Vision : 회복 ── 성장 ── 섬김 ----------
   회복 → (선) → 성장 → (선) → 섬김 순서로 등장, 각 단어 위 선 그림이 그려짐
   ------------------------------------------------------------------ */
#vision .section-body { margin-top: clamp(40px, 5vw, 72px); }
.vision {
  --vw: clamp(52px, 6.4vw, 104px); --gap: clamp(24px, 4vw, 64px);
  --glyph: clamp(60px, 5.6vw, 84px); --glyph-gap: clamp(16px, 2vw, 28px);
}
.vision__list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.vision__head { display: flex; align-items: flex-end; }
/* 단어 오른쪽 끝 → 다음 단어 앞까지 이어지는 주황 선 (열 간격만큼 밖으로 뻗음) */
.vision__link { flex: 1; height: 1px; margin: 0 calc(var(--gap) * -1) calc(var(--vw) / 2) clamp(16px, 2vw, 28px); background: var(--orange); }
/* 선 그림은 단어 폭 기준 가운데 */
.vision__word {
  display: inline-flex; flex-direction: column; align-items: center;
  font-family: var(--serif); font-weight: 500; color: var(--green);
  font-size: var(--vw); line-height: 1; letter-spacing: -.04em;
}
/* 선 그림: 초록 선 + 주황 포인트. pathLength="1"이라 dasharray 1로 그리기 애니메이션 */
.vision__glyph {
  display: block; width: var(--glyph); height: var(--glyph); margin-bottom: var(--glyph-gap);
  fill: none; stroke: var(--green); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.vision__glyph .is-accent { stroke: var(--orange); }
.vision__glyph circle.is-accent { fill: var(--orange); stroke: none; }
.vision__en { margin-top: 20px; font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.vision__desc { margin-top: 16px; max-width: 320px; font-size: 15px; line-height: 1.75; color: var(--muted); }

@media (max-width: 720px) {
  .vision__link { display: none; }
  .vision__list { grid-template-columns: 1fr; gap: 0; }
  .vision__item { padding: 0 0 36px 24px; border-left: 1px solid var(--orange); }
  .vision__item:last-child { padding-bottom: 0; }
}

/* ---------- 8. Mission Map ---------- */
.mission {
  --mission-head: 60px; /* 고정 헤더 높이 */
  background: var(--green); color: var(--ivory);
  padding: clamp(96px, 12vw, 170px) var(--pad) 0;
  scroll-margin-top: var(--mission-head);
}
.mission .eyebrow { color: var(--green-muted); }
.mission .eyebrow__num { color: var(--orange-soft); }
.mission .eyebrow__bar { background: var(--ivory); }

.mission__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }

.map { position: relative; margin-top: clamp(32px, 5vw, 64px); }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }

/* 넓은 화면: 눈썹 제목 + 지도가 헤더 아래 한 화면을 정확히 채움 */
@media (min-width: 720px) and (min-height: 480px) {
  .mission { padding-top: 0; }
  .mission__stage {
    --stage-y: clamp(28px, 5vh, 56px);
    display: flex; flex-direction: column;
    height: calc(100vh - var(--mission-head));
    height: calc(100svh - var(--mission-head));
    padding: var(--stage-y) 0;
  }
  .map {
    flex: 1; min-height: 0; margin-top: clamp(20px, 3vh, 40px);
    display: flex; align-items: center; justify-content: center;
  }
  /* 가로폭 기준 높이가 남은 높이를 넘으면 높이에 맞춰 축소 (비율 유지) */
  .map svg { height: 100%; max-height: 100%; width: auto; max-width: 100%; }
  .is-fullpage .mission__stage { height: calc(var(--vh) - var(--head)); }
}
.map-label { font-family: var(--sans); font-size: 15px; fill: var(--ivory); }
.map-label__no { font-size: 12px; letter-spacing: 1px; fill: var(--orange-soft); }
.map-dj-name { font-family: var(--serif); font-size: 20px; font-weight: 600; fill: var(--ivory); }
.map-dj-en { font-family: var(--sans); font-size: 12px; letter-spacing: 3px; fill: var(--green-muted); }
.map-dj-dot, .map-dj-ring { transform-box: fill-box; transform-origin: center; }

/* 지도 ↔ 목록 연결: 선택된 선교지만 밝히고 나머지는 흐리게 */
.map-path { transition: stroke .3s ease, stroke-opacity .3s ease, stroke-width .3s ease; }
.map-node { cursor: pointer; }
.map-node circle { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.mission .map.is-settled .map-node { transition: opacity .3s ease; }
.mission .map.has-active .map-path { stroke-opacity: .18; }
.mission .map.has-active .map-path.is-active { stroke: var(--orange-soft); stroke-opacity: 1; stroke-width: 2; }
.mission .map.has-active .map-node:not(.is-active) { opacity: .3; }
.map-node.is-active circle { transform: scale(1.35); }
/* 빛 줄기: 대전 파동(pulse)과 같은 박자로 6개 선에 동시에 흐름. 흰 선을 뒤따라 2.6s부터 흐르고, 화면 밖에선 파동과 함께 멈춤 */
.map-glow { pointer-events: none; filter: drop-shadow(0 0 3px rgba(227, 162, 124, .9)); }
.map-glow__path {
  fill: none; stroke: var(--orange-soft); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: .07 2; stroke-dashoffset: .07; opacity: 0;
  transition: opacity .6s ease;
}
.motion .map.is-visible .map-glow__path { animation: glow-run 3.6s cubic-bezier(.5, 0, .3, 1) 2.6s infinite; }
.map.is-visible .map-glow__path { opacity: 1; }
.motion .map.is-visible:not(.is-inview) .map-glow__path, .motion .map.is-visible:not(.is-inview) .map-dj-ring { animation-play-state: paused; }
.map.has-active .map-glow__path:not(.is-active) { opacity: 0; }
/* 선교지 도착 파동: glow-run과 같은 3.6s 박자, 빛이 끝에 닿는 시점(≈40%)에 퍼짐 */
.map-node__pulse { transform-box: fill-box; transform-origin: center; opacity: 0; pointer-events: none; }
.map-node__pulse circle { fill: none; stroke: var(--orange-soft); stroke-width: 1; }
.motion .map.is-visible .map-node__pulse { animation: node-pulse 3.6s ease-out 2.6s infinite; } /* 빛 줄기와 같은 박자: 첫 파동(2.6s+1.4s)은 is-settled(3s) 이후라 온전히 보임 */
.map:not(.is-settled) .map-node__pulse { visibility: hidden; }
.motion .map.is-visible:not(.is-inview) .map-node__pulse { animation-play-state: paused; }
.map.has-active .map-node:not(.is-active) .map-node__pulse { visibility: hidden; }
/* 첫 도착 파동: 흰 선(--d - 1.1s 시작, 1.4s)이 끝나는 시점. .map-node의 --d = 선 지연 + 1.1s */
.map-node__arrive { transform-box: fill-box; transform-origin: center; opacity: 0; pointer-events: none; }
.map-node__arrive circle { fill: none; stroke: var(--orange-soft); stroke-width: 1; }
.motion .map.is-visible .map-node__arrive { animation: node-arrive 1.6s ease-out calc(var(--d, 0s) + .2s) both; }
.motion .map.is-visible:not(.is-inview) .map-node__arrive { animation-play-state: paused; }
@keyframes node-arrive { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }
@keyframes node-pulse { 0%, 39% { transform: scale(1); opacity: 0; } 41% { opacity: .8; } 80%, 100% { transform: scale(3); opacity: 0; } }
@keyframes glow-run { 0% { stroke-dashoffset: .07; } 45%, 100% { stroke-dashoffset: -1; } }

.map-tip {
  position: absolute; z-index: 2; pointer-events: none;
  transform: translate(-50%, calc(-100% - 16px));
  padding: 10px 14px 10px 16px; background: rgba(32, 46, 40, .92); color: var(--ivory);
  border: 1px solid var(--green-line); border-left: 2px solid var(--orange-soft);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 13px; line-height: 1.5; white-space: nowrap; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.map-tip strong { display: block; font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.map-tip span { display: block; margin-top: 2px; font-size: 12px; letter-spacing: .08em; color: var(--orange-soft); }
.map-tip[hidden] { display: none; }
.map-tip.is-below { transform: translate(-50%, 16px); }

.mission__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 48px; margin-top: clamp(40px, 5vw, 72px);
}
.mission__text { flex: 1 1 520px; min-width: 0; }
.mission__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 4.6vw, 76px); line-height: 1.16; letter-spacing: -.035em;
}
.mission__title .line { display: block; padding-bottom: .04em; }
.mission__title .line:last-child { color: var(--orange-soft); text-shadow: 0 0 36px rgba(227,162,124,.28); }
.mission__msg {
  margin-top: clamp(24px, 3vw, 40px); max-width: 34em;
  font-size: clamp(16px, 1.35vw, 19px); line-height: 1.85; color: var(--green-text); word-break: keep-all;
}
.mission__en { margin-top: 24px; font-size: 13px; letter-spacing: .14em; line-height: 1.9; color: var(--green-muted); }

.missionaries { flex: 0 1 460px; min-width: 280px; }
.missionaries .label { margin-bottom: 16px; color: var(--green-muted); }
.missionaries ol { position: relative; }
/* 목록 윗선: 등장 시 왼쪽에서 오른쪽으로 그어진다 */
.missionaries ol::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--green-line); transform-origin: left center; }
.motion .missionaries ol::before { transform: scaleX(0); transition: transform 1.4s var(--ease) .45s; }
.motion .missionaries.is-visible ol::before { transform: none; }
.missionaries li {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 8px; margin: 0 -8px;
  border-bottom: 1px solid var(--green-line); cursor: pointer; transition: background .25s ease;
}
.missionaries li.is-active { background: rgba(244, 241, 233, .06); }
.missionaries li.is-active .missionaries__name { color: var(--orange-soft); }
.missionaries li:focus-visible { outline: 1px solid var(--orange-soft); outline-offset: -1px; }
.missionaries__no { font-size: 13px; letter-spacing: .1em; color: var(--orange-soft); }
.missionaries__name { flex: 1; font-family: var(--serif); font-size: 17px; transition: color .25s ease; }
.missionaries__place { font-size: 14px; color: var(--green-text); text-align: right; }
/* 넓은 화면: 두 칸을 반씩 나누고 세로 구분선으로 이어 가운데 빈 공간을 없앤다 */
@media (min-width: 1000px) {
  .mission__foot {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0; align-items: stretch;
  }
  .mission__text { display: flex; flex-direction: column; justify-content: flex-end; padding-right: clamp(40px, 5vw, 88px); }
  .missionaries {
    display: flex; flex-direction: column; justify-content: flex-end;
    position: relative; padding-left: clamp(40px, 5vw, 88px);
  }
  /* 세로 구분선: 등장 시 위에서 아래로 그어진다 */
  .missionaries::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
    background: var(--green-line); transform-origin: center top;
  }
  .motion .missionaries::before { transform: scaleY(0); transition: transform 1.6s var(--ease) .2s; }
  .motion .missionaries.is-visible::before { transform: none; }
  .missionaries__name { font-size: 18px; }
}

/* 지도 → 성구로 이어지는 선 */
.bridge { position: relative; margin-top: clamp(56px, 6vw, 88px); height: clamp(96px, 10vw, 140px); }
.bridge__dot { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.bridge__label { position: absolute; left: 24px; top: -4px; font-size: 13px; letter-spacing: .14em; color: var(--green-muted); white-space: nowrap; }
.bridge__line { position: absolute; left: 4px; top: 9px; bottom: 0; width: 1px; background: var(--orange); }
/* 점이 먼저 맺히고 → 문구가 열리고 → 선이 아래로 내려간다. 이후 점은 잔잔히 맥박 */
.motion .bridge__dot[data-anim] { opacity: 0; transform: scale(0); transition: opacity .6s ease var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.motion .bridge__dot.is-visible { animation: hero-pulse 2.4s ease-out calc(var(--d, 0s) + 2.4s) infinite; }
/* rise 전환이 목록 hover 배경 전환을 덮어쓰지 않도록 합친다 */
.motion .missionaries li[data-anim] { transition: opacity 1.1s ease var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s), background .25s ease; }

/* ---------- 9. Scripture ---------- */
.scripture { padding: 0 var(--pad) var(--section-y); overflow: hidden; }
.scripture__verse {
  font-family: var(--serif); font-weight: 600; color: var(--green);
  font-size: clamp(52px, 8vw, 140px); line-height: 1.1; letter-spacing: -.045em;
}
.scripture__verse p { margin: 0; }
.scripture__verse .soft { font-weight: 300; color: var(--muted); }
.scripture__line { position: relative; }
.scripture__vrule { position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--orange); }
.scripture__hrule { position: absolute; bottom: 0; width: min(100%, 1180px); height: 1px; background: var(--orange); }

.scripture__line--left { padding: clamp(56px, 8vh, 96px) 0 clamp(28px, 3vw, 48px) clamp(28px, 4.5vw, 72px); }
.scripture__line--left .scripture__hrule { left: 4px; }
.scripture__line--center {
  margin-top: clamp(56px, 9vh, 112px); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 3vw, 48px);
}
.scripture__line--center .scripture__hrule { position: static; width: clamp(80px, 14vw, 220px); }
.scripture__line--right { margin-top: clamp(56px, 9vh, 112px); padding-bottom: clamp(28px, 3vw, 48px); text-align: right; }
.scripture__line--right .scripture__hrule { right: 0; }

.scripture__source {
  margin-top: clamp(40px, 6vh, 72px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.scripture__source span:first-child { font-size: 13px; letter-spacing: .18em; font-weight: 500; }
.scripture__source span:last-child { font-size: 14px; color: var(--muted); }

/* ---------- 10. Worship ---------- */
.worship__grid { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 80px); }
.service-main {
  flex: 1 1 380px; min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
  padding: clamp(28px, 3.5vw, 52px);
  background: var(--green); color: var(--ivory);
  position: relative; overflow: hidden; isolation: isolate;
}
.service-main__media { position: absolute; inset: 0; z-index: -1; }
.service-main__media > * { width: 100%; height: 100%; }
.service-main__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,58,50,.55) 0%, rgba(38,58,50,.92) 65%); }
@media (min-width: 720px) { .service-main { aspect-ratio: 4 / 5; } }
.service-main__top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; letter-spacing: .14em; color: var(--green-muted);
}
.service-main__top::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.service-main h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.02em; }
.service-main__time { margin-top: 18px; display: flex; align-items: baseline; gap: 14px; font-family: var(--serif); }
.service-main__time small { font-size: 18px; color: var(--green-muted); }
.service-main__time strong { font-size: clamp(84px, 10vw, 168px); line-height: .95; letter-spacing: -.04em; font-weight: 500; }
.service-main__place { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--green-line); font-size: 15px; color: var(--green-text); }

.worship__side { flex: 1.3 1 440px; min-width: 0; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 56px); }
.worship__side .label { margin-bottom: 8px; }
.service-list { border-top: 1px solid var(--charcoal); }
.service-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.service-list__name { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.time { display: flex; align-items: baseline; gap: 10px; }
.time small { font-size: 14px; color: var(--muted); }
.time strong { font-family: var(--serif); font-size: 26px; font-weight: 400; }

.gen-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 24px; }
.gen-list li { border-top: 1px solid var(--charcoal); padding-top: 18px; }
.gen-list__name { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.gen-list .time { margin-top: 14px; gap: 8px; }
.gen-list .time strong { font-size: 24px; }

/* ---------- 11. History (timeline) ---------- */
.timeline { --year: clamp(92px, 18vw, 240px); position: relative; max-width: 980px; }
.timeline::before, .timeline__progress {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(var(--year) + 20px); width: 1px;
}
.timeline::before { background: var(--green-line); }
.timeline__progress { background: var(--orange-soft); transform-origin: top; }
/* 1992 → TODAY 로 빛이 쉭 지나가는 효과 */
.timeline__progress::after {
  content: ""; position: absolute; left: -1px; right: -1px; top: 0; height: 90px;
  background: linear-gradient(to bottom, transparent, #fff 55%, transparent);
  filter: drop-shadow(0 0 4px #fff); opacity: 0; transform: translateY(-100%);
}
.timeline__progress.is-visible::after { animation: timeline-sweep-y 3.2s cubic-bezier(.55,0,.35,1) 2.2s infinite; }
@keyframes timeline-sweep-y {
  0% { top: 0; opacity: 0; } 8% { opacity: 1; } 38% { opacity: 1; } 45%, 100% { top: 100%; opacity: 0; }
}
@keyframes timeline-sweep-x {
  0% { left: 0; opacity: 0; } 8% { opacity: 1; } 38% { opacity: 1; } 45%, 100% { left: 100%; opacity: 0; }
}
.timeline__item {
  position: relative;
  display: grid; grid-template-columns: var(--year) 41px minmax(0, 1fr);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__year {
  font-family: var(--serif); font-size: clamp(28px, 3.6vw, 52px); line-height: 1; letter-spacing: -.03em;
  color: var(--ivory); transition: color .8s;
}
.timeline__year--today { color: var(--orange-soft); }
.timeline__date { margin-top: 10px; font-size: 14px; letter-spacing: .1em; color: var(--green-muted); }
.timeline__dot {
  position: relative; justify-self: center; margin-top: 10px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--orange-soft); border: 1px solid var(--orange-soft);
  transition: background .6s, border-color .6s;
}
.timeline__text { margin-top: 6px; font-family: var(--serif); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.55; color: var(--green-text); }
@media (min-width: 1000px) {
  .timeline { max-width: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0 clamp(16px, 2vw, 32px); padding-top: 0; }
  .timeline::before, .timeline__progress { top: 5px; left: 0; right: 0; bottom: auto; height: 1px; width: auto; }
  .timeline__progress { transform-origin: left; }
  .timeline__progress::after {
    top: -1px; bottom: -1px; left: 0; right: auto; width: 160px; height: auto;
    background: linear-gradient(to right, transparent, #fff 55%, transparent);
    transform: translateX(-100%);
  }
  .timeline__progress.is-visible::after { animation-name: timeline-sweep-x; }
  .timeline__item { display: flex; flex-direction: column; padding: 28px 0 0; }
  .timeline__dot { position: absolute; top: 0; left: 0; margin: 0; }
  .timeline__year { font-size: clamp(28px, 3vw, 44px); }
  .timeline__text { font-size: clamp(16px, 1.3vw, 19px); }
}

/* ---------- 12. People ---------- */
#pastor, #organization { scroll-margin-top: 60px; }
[data-panel="elders"] .people__block, [data-panel="organization"] .people__block { margin-top: clamp(56px, 7vw, 96px); }
.people__sub { display: flex; align-items: baseline; gap: 16px; }
.people__sub .label { flex: none; }
.people__sub-ko { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); font-weight: 500; }
.people__sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.pastor__grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(40px, 7vw, 120px); margin-top: 32px; }
.pastor__photo { flex: 0 1 400px; min-width: 240px; }
.pastor__photo .photo { aspect-ratio: 3 / 4; object-position: center 20%; }
.pastor__info { flex: 1 1 440px; min-width: 0; }
.pastor__name {
  margin-top: 18px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 6vw, 96px); line-height: 1.1; letter-spacing: -.04em;
}
.pastor__name span { font-weight: 300; color: var(--muted); }
.bio { margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--charcoal); font-size: 16px; line-height: 1.6; }
.bio li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.bio__tag { margin-right: 10px; font-size: 14px; font-weight: 600; color: var(--orange); }

.elders { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px); }
.elder__photo .photo { aspect-ratio: 3 / 4; object-position: center 20%; }
.elder__name { margin-top: 18px; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; }
.elder__name span { font-weight: 300; color: var(--muted); }
.elder__role { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--orange); }
.elder .bio { margin-top: 20px; }

/* 간사: 조직 카드와 같은 격자 폭(auto-fill)으로 — 1장이어도 가로로 늘어나지 않게 */
.staff { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.staff__card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--charcoal); border-radius: 2px; }
.staff__card .elder__role { margin-top: 0; }
.staff__card .elder__name { margin-top: 8px; }
.org { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 24px); }
/* 번호·부서명 → 구분선 → 업무 순으로 위에서부터 붙여 쌓는다(바닥 정렬 시 한 줄짜리 카드 가운데가 비어 어색함) */
.org > li { display: flex; flex-direction: column; gap: 16px; padding: 24px 24px 22px; background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--charcoal); border-radius: 2px; }
.org__head { display: flex; align-items: baseline; gap: 14px; }
.org__no { flex: none; font-size: 13px; letter-spacing: .1em; color: var(--orange); }
.org h4 { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.org__tags { padding-top: 14px; border-top: 1px solid var(--line); }
/* 업무: 태그 상자 없이 글자 + 가는 세로선 구분 */
/* 업무: 태그 상자 없이 글자 + 가는 세로선 구분. 선은 각 항목 왼쪽 간격에 두고 overflow로 줄 맨 앞 선을 가린다 */
.org__tags { --gap: 24px; display: flex; flex-wrap: wrap; gap: 2px var(--gap); overflow: hidden; font-size: 15px; line-height: 1.7; color: var(--muted); }
.org__tags li { position: relative; }
.org__tags li::before { content: ""; position: absolute; left: calc(var(--gap) / -2); top: .5em; width: 1px; height: .75em; background: var(--line); }
/* hover: 윗선이 주황으로 두꺼워지고 살짝 그림자 — rise 전환(transform)과 겹치지 않게 선·그림자만 */
.org > li, .staff__card { transition: border-color .25s ease, box-shadow .25s ease; }
.motion :is(.org > li, .staff__card)[data-anim] { transition: opacity 1.1s ease var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s), border-color .25s ease, box-shadow .25s ease; }
@media (hover: hover) {
  :is(.org > li, .staff__card):hover { border-top-color: var(--orange); box-shadow: inset 0 1px 0 var(--orange), 0 10px 24px -16px rgba(32, 34, 31, .35); }
  .org > li:hover .org__no { font-weight: 600; }
}

/* ---------- 14-2. YouTube ---------- */
.yt { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.yt__card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--charcoal); border-radius: 2px; }
/* 재생 전엔 iframe이 휠을 삼키지 않도록(풀페이지 스크롤) 버튼이 덮고, 누르면 iframe으로 넘김 */
.yt__media { position: relative; aspect-ratio: 16 / 9; background: var(--charcoal); border-bottom: 1px solid var(--line); }
.yt__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.yt__media.is-playing iframe { pointer-events: auto; }
.yt__play { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.yt__play:focus-visible { outline-offset: -3px; }
.yt__media.is-playing .yt__play { display: none; }
.yt__body { flex: 1; display: flex; flex-direction: column; padding: 24px 24px 28px; }
.yt__body:hover { color: inherit; }
.yt__title { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.02em; }
.yt__desc { margin-top: 12px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.yt__desc { margin-bottom: 24px; }
.yt__cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; padding: 13px 20px; border-radius: 2px; background: var(--green); color: var(--ivory); font-size: 15px; font-weight: 500; transition: background .3s, color .3s; }
.yt__cta > span { color: var(--orange-soft); }
.yt__body:hover .yt__cta { background: var(--charcoal); color: var(--ivory); }

/* ---------- 15. Location ---------- */
.location__grid { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 72px); }
.location__info { flex: 1 1 480px; min-width: 0; }
.address { font-style: normal; }
.address__main { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.3; letter-spacing: -.03em; color: var(--footer-muted); }
.address__detail { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--footer-muted); }
.address__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.contact { margin-top: clamp(32px, 4vw, 48px); max-width: none; border-top: 1px solid var(--ivory); }
.contact div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--footer-line); }
.contact dt { color: var(--footer-muted); }
.contact dd { min-width: 0; overflow-wrap: anywhere; font-family: var(--serif); font-size: 24px; color: var(--ivory); }
.contact dd.contact__small { font-family: var(--sans); font-size: 15px; }

.location__media { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.location__map { aspect-ratio: 4 / 3; }
.location__map--live { width: 100%; border: 1px solid var(--green-line); }
.map-pin { padding: 5px 10px; background: var(--green); color: var(--ivory); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.location__media figcaption { margin-top: 10px; font-size: 14px; color: var(--footer-muted); }

/* ---------- 16. Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--charcoal); color: var(--ivory); padding: clamp(40px, 5vw, 64px) var(--pad) 40px; border-top: 1px solid var(--footer-line); }
.site-footer .container { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }

/* 마지막 장면: 대전(점) → 땅 끝(화면 밖으로 번지는 동심원) */
.footer__hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(48px, 10vh, 120px) 0 clamp(24px, 4vh, 48px); }
.footer__verse { position: relative; z-index: 1; max-width: 40em; margin: 0 0 clamp(28px, 5vh, 56px); }
/* 구절 뒤를 배경색으로 가려, 세로 빛이 말씀 아래에서 흘러나오듯 보이게 */
.footer__verse::before { content: ""; position: absolute; z-index: -1; inset: -28px -48px; background: radial-gradient(closest-side, var(--charcoal) 70%, rgba(32,34,31,0)); }
.footer__verse p { font-family: var(--serif); font-size: clamp(14px, 1.3vw, 18px); line-height: 1.9; color: var(--footer-muted); word-break: keep-all; }
.footer__verse strong { font-weight: 500; color: var(--ivory); }
.footer__verse cite { display: block; margin-top: 12px; font-style: normal; font-size: 12px; letter-spacing: .14em; color: var(--orange-soft); }
.footer__cross { position: relative; z-index: 0; display: block; width: 8px; height: 8px; }
.footer__dot { position: absolute; inset: 0; border-radius: 50%; background: var(--orange-soft); box-shadow: 0 0 18px 4px rgba(227,162,124,.45); }
.footer__beam { position: absolute; pointer-events: none; }
.footer__beam--v {
  left: 50%; bottom: 50%; width: 1.5px; height: 55vh; margin-left: -.75px;
  background: linear-gradient(180deg, transparent, rgba(255,226,180,.35) 40%, rgba(255,240,212,1));
  box-shadow: 0 0 10px rgba(255,210,150,.4); transform-origin: center top;
}
.footer__beam--l, .footer__beam--r { top: 50%; width: 100vw; height: 1.5px; margin-top: -.75px; box-shadow: 0 0 10px rgba(255,210,150,.4); }
.footer__beam--l { right: 50%; background: linear-gradient(270deg, rgba(255,240,212,1), rgba(227,162,124,.7) 45%, transparent); transform-origin: right center; }
.footer__beam--r { left: 50%; background: linear-gradient(90deg, rgba(255,240,212,1), rgba(227,162,124,.7) 45%, transparent); transform-origin: left center; }
.footer__motto {
  position: relative; z-index: 1; margin-top: clamp(24px, 4vh, 40px);
  font-family: var(--serif); font-size: clamp(28px, 3.8vw, 54px); font-weight: 500; line-height: 1.3; letter-spacing: .01em;
  word-break: keep-all;
  color: var(--orange-soft);
  background: linear-gradient(100deg, var(--orange) 0%, var(--orange-soft) 35%, #F7DCC8 50%, var(--orange-soft) 65%, var(--ivory) 100%);
  background-size: 200% 100%; background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer__motto em { font-style: normal; }
.footer__motto-en {
  position: relative; z-index: 1; margin-top: clamp(14px, 2vh, 22px);
  font-size: clamp(10px, .9vw, 12px); letter-spacing: .36em; text-transform: uppercase; color: var(--orange-soft); opacity: .75;
}
.footer__top { display: flex; justify-content: center; align-items: center; gap: 14px; }
.footer__mark { height: 56px; width: auto; flex-shrink: 0; }
.footer__sub { font-size: 12px; letter-spacing: .1em; color: var(--footer-muted); }
.footer__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.footer__name { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.footer__en { margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--footer-muted); }

/* 글자: 도착 후 빛이 왼쪽→오른쪽으로 한 번 스쳐 지나감 */
.motion .footer__motto.is-visible { animation: footer-sheen 3.2s var(--ease) 3.4s both; }
@keyframes footer-sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }
/* 빛의 십자가: 세로 빛이 내려와 점에 닿고 → 점이 켜지고 → 좌우로 땅 끝까지 */
/* 공통 [data-anim].is-visible의 clip-path가 8px 상자 밖 빛줄기를 잘라내므로 해제 */
.motion .footer__cross[data-anim].is-visible { clip-path: none; }
.motion .footer__cross .footer__beam--v { transform: scaleY(0); }
.motion .footer__cross .footer__beam--l, .motion .footer__cross .footer__beam--r { transform: scaleX(0); }
.motion .footer__cross .footer__dot { opacity: 0; transform: scale(.3); }
.motion .footer__cross.is-visible .footer__beam--v { animation: hero-grow-y 1.8s cubic-bezier(.55,0,.35,1) .6s forwards; }
.motion .footer__cross.is-visible .footer__dot { animation: footer-light .7s var(--ease) 2.3s forwards, hero-pulse 2.4s ease-out 3s infinite; }
.motion .footer__cross.is-visible .footer__beam--l,
.motion .footer__cross.is-visible .footer__beam--r { animation: hero-grow-x 1.8s var(--ease) 2.4s forwards; }
@keyframes footer-light { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.8); } 100% { opacity: 1; transform: none; } }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 32px;
  padding-top: 24px; border-top: 1px solid var(--footer-line);
  font-size: 14px; line-height: 1.6; color: var(--footer-muted);
}
.footer__org { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer__org-items { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; row-gap: 2px; }
.footer__org-items li { color: var(--footer-text); }
.footer__org-items li + li::before {
  content: ""; display: inline-block; width: 1px; height: .8em; margin: 0 12px; vertical-align: -.05em;
  background: var(--footer-line);
}
.footer__org-k { margin-right: 4px; color: var(--footer-muted); }
.footer__org-btn {
  display: inline-flex; align-items: baseline; gap: 4px;
  color: var(--footer-text); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--footer-muted); transition: color .2s, text-decoration-color .2s;
}
.footer__org-btn span { color: var(--orange-soft); transition: transform .2s; }
.footer__org-btn:hover { color: var(--ivory); text-decoration-color: var(--ivory); }
.footer__org-btn:hover span { transform: translateX(3px); }
.footer__org-btn:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 3px; }

/* ---------- 기관 정보 페이지(organization.html) ---------- */
.org-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.org-page__head { padding: 20px var(--pad); border-bottom: 1px solid var(--line); }
.org-page__head .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.org-page__home { font-size: 14px; color: var(--muted); white-space: nowrap; }
.org-page__home:hover { color: var(--charcoal); }
.org-page__main { flex: 1; padding: clamp(40px, 7vw, 88px) var(--pad); }
.org-page__main .container { max-width: 760px; }
.org-page__title { margin: 12px 0 16px; font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); font-weight: 500; }
.org-page__lead { font-size: 16px; line-height: 1.7; color: var(--muted); }
.org-list {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px;
  margin-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--charcoal);
}
.org-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.org-list > .is-wide { grid-column: 1 / -1; }
.org-list dt { margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.org-list dt span { margin-left: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.org-list dd { font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.org-list dd span { display: block; font-size: 14px; color: var(--muted); }
.org-list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.org-statement {
  margin-top: clamp(28px, 4vw, 40px); padding: 20px 24px; border-left: 2px solid var(--orange);
  background: var(--ph-b); font-size: 15px; line-height: 1.7;
}
.org-statement p + p { margin-top: 8px; color: var(--muted); }
.org-page__foot { padding: 24px var(--pad); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 559px) {
  .org-list { grid-template-columns: 1fr; }
  .org-list dd { font-size: 16px; }
  .org-page__home span { display: none; }
  /* 푸터 요약줄 — 좁은 화면: 도메인은 다음 줄로(줄 맨 앞에 구분선이 오지 않게) */
  .footer__org-items li:nth-child(3) { flex-basis: 100%; }
  .footer__org-items li:nth-child(3)::before { display: none; }
}

/* ---------- 17. Breakpoints ---------- */
@media (max-width: 719px) {
  .map { overflow: hidden; }
  .map svg { overflow: hidden; }
  .map-label__place, .map-dj-en { display: none; }
  .map-label, .map-label__no { font-size: 36px; }
  .map-dj-name { font-size: 44px; }
  .map-path { stroke-width: 3; }
  .map-glow__path { stroke-width: 4; }
  .mission .map.has-active .map-path.is-active { stroke-width: 4.5; }
  .map-node circle { transform: scale(2.2); }
  .map-node.is-active circle { transform: scale(2.8); }
    .mission__msg br { display: none; }
  .br-m { display: inline; }
  /* 연락처: 라벨·값이 각각 한 줄에 들어가도록 */
  .contact div { gap: 12px; }
  .contact dt, .contact dd { white-space: nowrap; }
  .contact dd { font-size: clamp(14px, 4.4vw, 18px); }
}
@media (max-width: 560px) {
  .missionaries { min-width: 0; flex-basis: 100%; }
  .missionaries li { flex-wrap: wrap; }
}

/* ---------- 18. Motion ---------------------------------------------
   .motion 클래스는 JS가 켜져 있고, 사용자가 '동작 줄이기'를
   설정하지 않은 경우에만 <html>에 추가됩니다.
   JS가 없으면 모든 콘텐츠가 처음부터 보입니다.
   ------------------------------------------------------------------ */
.motion [data-anim="clip"] { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease) var(--d, 0s); }
.motion [data-anim="fade"] { opacity: 0; transition: opacity 1.6s ease var(--d, 0s); }
.motion [data-anim="line-x"] { transform: scaleX(0); transform-origin: var(--origin, left) center; transition: transform 2s var(--ease) var(--d, 0s); }
.motion [data-anim="line-y"] { transform: scaleY(0); transform-origin: center top; transition: transform 1.6s var(--ease) var(--d, 0s); }
.motion [data-anim^="verse"] { opacity: 0; transition: opacity 2.2s ease var(--d, 0s), transform 2.6s var(--ease) var(--d, 0s); }
.motion [data-anim="verse-left"] { transform: translateX(-4vw); }
.motion [data-anim="verse-right"] { transform: translateX(4vw); }
.motion [data-anim="verse-center"] { transform: scale(.965); }
.motion [data-anim="rise"] { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s); }
.motion [data-anim="mark"] { background-size: 0% .28em; transition: background-size 1.4s var(--ease) var(--d, 0s); }
.motion [data-anim].is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
/* 비전 선 그림: 항목이 떠오른 뒤 초록 선 → 주황 포인트 순으로 그려짐 (--d는 항목에서 상속) */
.motion .vision__link { transition-duration: .8s; }
.motion .vision__glyph path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0s) + .3s); }
.motion .vision__glyph path.is-accent { transition-delay: calc(var(--d, 0s) + 1.3s); transition-duration: .9s; }
.motion .vision__glyph circle { opacity: 0; transition: opacity .8s ease calc(var(--d, 0s) + 1.6s); }
.motion .vision__item.is-visible .vision__glyph path { stroke-dashoffset: 0; }
.motion .vision__item.is-visible .vision__glyph circle { opacity: 1; }
/* 인라인 형광펜은 줄바꿈될 수 있어 clip-path를 걸면 둘째 줄이 잘림 */
.motion [data-anim="mark"].is-visible { background-size: 100% .28em; clip-path: none; }

/* Hero: 십자가가 열림 → 제목 → 경로 → 스크롤로 대전에서 땅 끝까지 */
.motion .hero__halo { opacity: 0; animation: hero-fade 2s var(--ease) .8s forwards; }
.motion .hero__floor { opacity: 0; animation: hero-fade 2s var(--ease) 1.1s forwards; }
.motion .hero__cross-v { transform: scaleY(0); animation: hero-grow-y 1.2s var(--ease) .2s forwards; }
.motion .hero__cross-h { transform: scaleX(0); animation: hero-grow-x .9s var(--ease) .8s forwards; }
.motion .hero__track,
.motion .hero__dot,
.motion .hero__label { opacity: 0; animation: hero-fade 1s ease 2.2s forwards; }
.motion .hero__head {
  display: block; position: absolute; top: var(--arm-y); z-index: 2;
  left: calc(var(--pad) + var(--route) * var(--t));
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: var(--green-text); box-shadow: 0 0 6px 1px rgba(220,224,216,.5);
  opacity: calc(var(--t) * 20);
  transition: background .5s, box-shadow .5s;
}
.motion .hero.is-through .hero__head { background: #FFF4DE; box-shadow: 0 0 8px 3px rgba(255,220,170,.85), 0 0 30px 8px rgba(255,200,130,.35); }
.motion .hero.is-arrived .hero__dot--end { animation: hero-fade 0s forwards, hero-pulse 2.4s infinite; }
/* 스크롤 안내: 서대전교회에서 작은 빛이 경로를 따라 조금 나아가다 사라짐 */
.motion .hero__cue {
  display: block; position: absolute; top: var(--arm-y); left: var(--pad); z-index: 2;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: #FFF4DE; box-shadow: 0 0 8px 3px rgba(255,220,170,.7);
  opacity: 0; animation: hero-cue 2.8s ease-in-out 3.2s infinite;
}
@keyframes hero-cue {
  0% { opacity: 0; transform: translateX(0); }
  20% { opacity: 1; }
  70%, 100% { opacity: 0; transform: translateX(clamp(60px, 12vw, 180px)); }
}
.motion .hero.is-moving .hero__cue { visibility: hidden; }
.motion .hero__rise { opacity: 0; transform: translateY(14px); animation: hero-rise 1.1s var(--ease) var(--d, 0s) forwards; }
@keyframes hero-grow-y { to { transform: scaleY(1); } }
@keyframes hero-grow-x { to { transform: scaleX(1); } }
@keyframes hero-fade { to { opacity: 1; } }
@keyframes hero-rise { to { opacity: 1; transform: none; } }
@keyframes hero-pulse { 0% { box-shadow: 0 0 0 0 rgba(227,162,124,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(227,162,124,0); } }

/* Map sequence: 대전 점 → 선 → 선교지 점 → 문구 */
.motion .map-field { opacity: 0; transition: opacity 2.4s ease; }
.motion .map-dj-dot { opacity: 0; transform: scale(0); transition: opacity .9s ease .6s, transform 1.1s var(--ease) .6s; }
.motion .map-dj-ring { opacity: 0; }
.motion .map-dj-label { opacity: 0; transition: opacity 1.2s ease 1s; }
.motion .map-node { opacity: 0; transition: opacity 1s ease var(--d, 0s); }
.motion .map.is-visible .map-path { transition: stroke-dashoffset 1.4s cubic-bezier(.45, .05, .25, 1) var(--d, 0s), stroke .3s ease, stroke-opacity .3s ease, stroke-width .3s ease; }
.motion .map.is-visible .map-field,
.motion .map.is-visible .map-dj-dot,
.motion .map.is-visible .map-dj-label,
.motion .map.is-visible .map-node { opacity: 1; transform: none; }
.motion .map.is-visible .map-dj-ring { animation: pulse 3.6s ease-out 2.6s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }

/* Timeline */
.motion [data-anim="timeline"] { transform: scaleY(0); transform-origin: top; transition: transform 2s var(--ease) .2s; }
@media (min-width: 1000px) { .motion [data-anim="timeline"] { transform: scaleX(0); transform-origin: left; } }
.motion [data-anim="timeline"].is-visible { transform: none; }

/* ---------- 19. Fullpage ---------- */
.is-fullpage [data-panel] {
  box-sizing: border-box; min-height: 100vh; min-height: var(--vh, 100svh);
  padding: calc(var(--head, 60px) + 16px) var(--pad) 24px;
  display: flex; flex-direction: column; justify-content: center;
}
.is-fullpage [data-panel]:focus { outline: none; }
.is-fullpage #story, .is-fullpage .mission, .is-fullpage #people { padding: 0; }
.is-fullpage [data-panel="elders"] .people__block, .is-fullpage [data-panel="organization"] .people__block { margin-top: 0; }
.is-fullpage .story__photo { width: auto; max-width: 100%; height: min(44svh, 500px); }
/* 칸 너비(440px)를 사진 너비에 맞춰 줄여 사진 오른쪽 빈 공간 제거 → 본문 오른쪽 끝에 붙음 */
.is-fullpage .story__media { flex: 0 0 auto; min-width: 0; }
.is-fullpage .pillars { margin-top: clamp(28px, 5svh, 56px); }
.is-fullpage [data-panel="mission-map"] { padding-top: var(--head); padding-bottom: 0; }
.is-fullpage .mission__foot { margin-top: 0; }
.is-fullpage .bridge { margin-top: clamp(24px, 4vh, 48px); height: clamp(48px, 7vh, 80px); }
.is-fullpage .service-main { aspect-ratio: auto; min-height: 380px; }
.is-fullpage .pastor__photo .photo, .is-fullpage .elder__photo .photo { max-height: 48svh; }
/* 높이 제한 시 칸 너비를 그대로 채우면 얼굴만 남도록 잘리므로, 너비를 비율대로 줄여 전신(상반신)을 유지 */
.is-fullpage .elder__photo .photo { width: auto; height: auto; max-width: 100%; }
.is-fullpage .people__block--staff + .people__block { margin-top: clamp(24px, 4svh, 48px); }
.is-fullpage .staff { margin-top: 16px; }
.is-fullpage .bio li { padding: 10px 0; }
.is-fullpage .contact div { padding: 12px 0; }
.is-fullpage .location__map { max-height: 60svh; }
.is-fullpage .site-footer .container { flex: 1; justify-content: space-between; }
.is-fullpage .footer__hero { flex: 1; justify-content: center; padding-top: 0; }

.is-fullpage .scripture__verse { font-size: clamp(32px, min(7vw, 8svh), 120px); }
.is-fullpage .scripture__line--left { padding-top: clamp(16px, 3svh, 48px); }
.is-fullpage .scripture__line--center,
.is-fullpage .scripture__line--right { margin-top: clamp(16px, 3svh, 48px); }
.is-fullpage .scripture__source { margin-top: clamp(16px, 3svh, 48px); }

/* 데스크톱에서는 모든 패널이 한 화면에 들어가도록 넘치던 패널(예배·담임목사·장로·오시는 길)을 조인다.
   모바일은 넘치면 패널 안 정지점이 추가되는 방식(fullpage.js stopsOf)으로 처리 */
@media (min-width: 720px) {
  .is-fullpage .section-body { margin-top: clamp(20px, 3.5svh, 48px); }
  .is-fullpage .scripture__verse { font-size: clamp(32px, min(7vw, 7.4svh), 120px); }
  .is-fullpage .service-main { min-height: 0; }
  .is-fullpage .service-main__time strong { font-size: clamp(64px, min(10vw, 13svh), 168px); }
  .is-fullpage .service-main__place { margin-top: 18px; }
  .is-fullpage .worship__side { gap: clamp(20px, 3svh, 48px); }
  .is-fullpage .pastor__grid { margin-top: 16px; }
  .is-fullpage .pastor__photo .photo { max-height: 42svh; }
  .is-fullpage .bio { margin-top: 16px; line-height: 1.5; }
  .is-fullpage .bio li { padding: 7px 0; }
  .is-fullpage .elders { margin-top: 20px; }
  .is-fullpage .elder__photo .photo { max-height: 32svh; }
  .is-fullpage .elder__name { margin-top: 12px; }
  .is-fullpage .elder .bio { margin-top: 12px; }
  .is-fullpage .address__actions { margin-top: 20px; }
  .is-fullpage .contact { margin-top: 20px; }
  .is-fullpage .contact div { padding: 8px 0; }
  .is-fullpage .location__map { max-height: 52svh; }
  .is-fullpage .staff__card { padding: 16px 20px; }
  .is-fullpage .org { margin-top: 16px; }
  .is-fullpage .org > li { gap: 12px; padding: 16px 20px 16px; }
  .is-fullpage .org h4 { font-size: 21px; }
  .is-fullpage .org__tags { padding-top: 10px; }
}

.scroll-cue {
  position: fixed; left: 50%; bottom: 22px; z-index: 40; width: 1px; height: 44px; transform: translateX(-50%);
  color: var(--charcoal); opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.scroll-cue.is-on { opacity: 1; }
.scroll-cue.is-light { color: var(--ivory); }
.scroll-cue__line { position: absolute; inset: 0; background: currentColor; opacity: .35; }
.scroll-cue__dot {
  position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--orange); animation: cue-drop 2.2s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80%, 100% { transform: translateY(40px); opacity: 0; }
}

/* 맨 위로 버튼 — 한 화면 이상 내려가면 나타남 */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 45;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: var(--ivory); box-shadow: 0 4px 14px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .2s ease;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green); }
.to-top:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 3px; }

/* ---------- 19. Mobile (≤719px) ---------------------------------------
   방문자 대부분이 폰으로 보므로 한 화면에 핵심이 들어가도록 조인다.
   ------------------------------------------------------------------ */
.menu-toggle { display: none; }
@media (max-width: 719px) {
  /* 헤더: 한 줄(로고 · 음악 · 메뉴 버튼), 메뉴는 아래로 펼침 */
  .site-header__inner { flex-wrap: nowrap; gap: 4px; padding: 10px var(--pad); }
  .logo__mark { height: 34px; }
  .logo__sub { font-size: 11px; }
  .logo__name { font-size: 18px; }
  .logo__en { font-size: 9px; letter-spacing: .08em; }
  .bgm { order: 2; margin-left: auto; }
  .bgm-toggle { width: 40px; height: 40px; }
  .bgm-hint::before { right: 19px; }   /* 버튼이 40px로 커진 만큼 화살표를 중앙에 */
  .menu-toggle {
    order: 3; display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 40px; height: 40px; margin-right: -8px; padding: 0 9px;
    border: 0; background: none; color: var(--charcoal); cursor: pointer;
  }
  .menu-toggle span { display: block; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .site-header:is(.is-over-hero, .is-on-green, .is-on-dark) .menu-toggle { color: var(--ivory); }
  .is-menu-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .is-menu-open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; overflow: visible;
    padding: 4px var(--pad) 20px; margin: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(32, 34, 31, .12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s ease, transform .35s var(--ease), visibility .3s;
  }
  .nav a { padding: 15px 0; font-family: var(--serif); font-size: 19px; font-weight: 500; border-bottom: 1px solid var(--line); background: none; }
  .nav a:last-child { border-bottom: 0; }
  .site-header .nav a, .site-header:is(.is-over-hero, .is-on-green, .is-on-dark) .nav a { color: var(--charcoal); }
  .is-menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .site-header .nav a[aria-current], .site-header:is(.is-over-hero, .is-on-green, .is-on-dark) .nav a[aria-current] { color: var(--orange); }
  /* 메뉴가 열리면 헤더도 밝은 바탕으로 */
  .site-header.is-menu-open { background: var(--ivory); border-bottom-color: var(--line); }
  .site-header.is-menu-open .logo, .site-header.is-menu-open .bgm-toggle, .site-header.is-menu-open .menu-toggle { color: var(--charcoal); }
  .site-header.is-menu-open :is(.logo__sub, .logo__en) { color: var(--muted); }

  /* 맨 위로 버튼: 작게, 본문을 덜 가리게 */
  .to-top { right: 12px; bottom: 12px; width: 40px; height: 40px; }
  .to-top.is-on { opacity: .85; }
  .to-top svg { width: 17px; height: 17px; }

  .is-fullpage .service-main { min-height: 300px; }

  /* 담임목사: 사진이 화면을 다 차지하지 않게 */
  .pastor__grid { gap: 24px; margin-top: 20px; }
  .pastor__photo, .pastor__info { flex-basis: 100%; min-width: 0; }
  .pastor__photo .photo, .is-fullpage .pastor__photo .photo { width: 100%; height: 38svh; max-height: 360px; aspect-ratio: auto; object-position: center 22%; }

  /* 장로: 사진은 작게 왼쪽, 이름은 오른쪽, 약력은 아래 전체 폭 */
  .elders, .is-fullpage .elders { gap: 36px; margin-top: 24px; }
  .elder { display: grid; grid-template-columns: 104px 1fr; column-gap: 18px; align-items: end; }
  .elder__photo { grid-column: 1; grid-row: 1; }
  .elder__photo .photo, .is-fullpage .elder__photo .photo { width: 104px; height: 138px; max-height: none; max-width: none; aspect-ratio: auto; }
  .elder__name, .is-fullpage .elder__name { grid-column: 2; grid-row: 1; margin: 0 0 4px; font-size: 24px; }
  .elder .bio, .is-fullpage .elder .bio { grid-column: 1 / -1; margin-top: 14px; }

  /* 간사·조직: 카드 여백을 줄이고 조직은 두 칸 */
  .staff__card { padding: 16px 18px; }
  .org { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .org > li { gap: 12px; padding: 14px 12px 12px; }
  .org__head { gap: 8px; }
  .org h4 { font-size: 18px; }
  .org__tags { padding-top: 8px; }
  .org__tags { --gap: 14px; row-gap: 0; font-size: 13px; line-height: 1.6; }


  /* 풀페이지: 조금만 넘치면 몇 줄 보려고 한 번 더 넘겨야 하므로, 일반 폰(390×844)에서
     패널이 한 화면에 다 들어가게 조인다. 다 못 넣는 패널(장로)은 기존 정지점 방식 유지 */
  /* 기준은 Safari 실제 보이는 높이(주소창·툴바 제외, 390×664 안팎) — 간격은 svh로 화면 높이에 맞춰 줄어듦 */
  .is-fullpage [data-panel]:not([data-panel="mission-map"]) { padding-top: calc(var(--head, 60px) + 8px); }
  .is-fullpage .section-title { margin-top: 10px; font-size: 26px; }
  .is-fullpage .section-body, .is-fullpage #story .section-body, .is-fullpage #vision .section-body { margin-top: clamp(16px, 2.8svh, 24px); }

  /* 이야기: 본문 축소, 사진은 잘리지 않게 작게 본문 오른쪽, 세 기둥은 제목·라벨 한 줄 */
  .is-fullpage .story__grid { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 16px; align-items: start; }
  .is-fullpage .story__lines { font-size: clamp(15px, 4.1vw, 16px); gap: .7em; }
  .is-fullpage .story__media { min-width: 0; }
  .is-fullpage .story__photo { width: 100%; height: auto; }
  .is-fullpage .story__media figcaption { margin-top: 6px; font-size: 12px; }
  .is-fullpage .pillars { margin-top: 18px; gap: 10px; }
  .is-fullpage .pillar { padding-top: 12px; }
  .is-fullpage .pillar > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
  .is-fullpage .pillar h3 { order: -1; margin: 0; font-size: 19px; }
  .is-fullpage .pillar .label { font-size: 11px; }
  .is-fullpage .pillar p:last-child { flex-basis: 100%; margin-top: 4px; font-size: 13px; line-height: 1.55; }

  /* 비전: 단어·그림 축소 */
  .is-fullpage .vision { --vw: clamp(32px, 5svh, 40px); --glyph: clamp(34px, 5.2svh, 44px); --glyph-gap: 6px; }
  .is-fullpage .vision__item { padding-bottom: clamp(12px, 2.4svh, 20px); }
  .is-fullpage .vision__item:last-child { padding-bottom: 0; }
  .is-fullpage .vision__en { margin-top: 8px; font-size: 12px; }
  .is-fullpage .vision__desc { margin-top: 6px; font-size: 14px; line-height: 1.6; }

  /* 선교 하단: 제목·문구·목록 간격 축소 */
  .is-fullpage .mission__foot { gap: clamp(18px, 3.4svh, 28px); }
  .is-fullpage .mission__title { font-size: 30px; }
  .is-fullpage .mission__msg { margin-top: 12px; font-size: 15px; line-height: 1.65; }
  .is-fullpage .mission__en { margin-top: 12px; font-size: 12px; }
  .is-fullpage .missionaries .label { margin-bottom: 10px; }
  .is-fullpage .missionaries li { padding: clamp(4px, .9svh, 9px) 8px; }
  .is-fullpage .missionaries__name { font-size: 16px; }
  .is-fullpage .bridge { margin-top: 20px; }

  /* 예배: 주일예배 카드 높이 해제, 목록 간격 축소, 다음세대는 세 칸 */
  .is-fullpage .worship__grid { gap: clamp(12px, 2.4svh, 20px); }
  .is-fullpage .service-main { min-height: 0; gap: 10px; padding: clamp(14px, 2.4svh, 20px) 20px; }
  .is-fullpage .service-main__top { display: none; }
  .is-fullpage .service-main h3 { font-size: 20px; }
  .is-fullpage .service-main__time { margin-top: 6px; }
  .is-fullpage .service-main__time small { font-size: 15px; }
  .is-fullpage .service-main__time strong { font-size: clamp(44px, 6.6svh, 56px); }
  .is-fullpage .service-main__place { margin-top: 12px; padding-top: 10px; font-size: 14px; }
  .is-fullpage .worship__side { gap: clamp(12px, 2.4svh, 20px); }
  .is-fullpage .worship__side .label { margin-bottom: 6px; }
  .is-fullpage .service-list li { padding: clamp(6px, 1.2svh, 10px) 0; }
  .is-fullpage .service-list__name { font-size: 17px; }
  .is-fullpage .service-list .time strong { font-size: 20px; }
  .is-fullpage .gen-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .is-fullpage .gen-list li { padding-top: 10px; }
  .is-fullpage .gen-list__name { font-size: 15px; }
  .is-fullpage .gen-list .time { margin-top: 6px; flex-direction: column; gap: 0; }
  .is-fullpage .gen-list .time small { font-size: 12px; }
  .is-fullpage .gen-list .time strong { font-size: 20px; }

  /* 담임목사: 장로처럼 사진은 작게 왼쪽, 이름은 오른쪽 아래, 약력은 아래 전체 폭 */
  .is-fullpage .pastor__grid { display: block; margin-top: 16px; }
  .is-fullpage .pastor__photo { float: left; width: 120px; margin-right: 18px; }
  .is-fullpage .pastor__photo .photo { width: 120px; height: 160px; max-height: none; }
  .is-fullpage .pastor__head { display: flex; flex-direction: column; justify-content: flex-end; height: 160px; }
  .is-fullpage .pastor__name { margin-top: 8px; font-size: 34px; }
  .is-fullpage .pastor__info .bio { clear: both; margin-top: 14px; font-size: 15px; line-height: 1.5; }
  .is-fullpage .pastor__info .bio li { padding: clamp(5px, .9svh, 7px) 0; }

  /* 연혁: 항목 간격을 화면 높이에 맞춰 */
  .is-fullpage .timeline__item { padding-bottom: clamp(12px, 2.8svh, 40px); }
  .is-fullpage .timeline__year { font-size: 24px; }
  .is-fullpage .timeline__date { margin-top: 4px; font-size: 13px; }
  .is-fullpage .timeline__dot { margin-top: 7px; }
  .is-fullpage .timeline__text { margin-top: 2px; font-size: 16px; line-height: 1.5; }
  .is-fullpage .timeline__item:last-child { padding-bottom: 0; }

  /* 간사·조직: 블록 사이·목록 간격 축소 */
  .is-fullpage .staff { margin-top: 10px; }
  .is-fullpage .people__block--staff + .people__block { margin-top: 20px; }
  .is-fullpage .org { margin-top: 12px; }
  .is-fullpage .staff__card { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; }   /* 직분·이름 한 줄 */
  .is-fullpage .staff__card .elder__role { font-size: 12px; }
  .is-fullpage .staff__card .elder__name { margin: 0; font-size: 19px; }
  .is-fullpage .org > li { gap: 8px; padding: 10px 12px 10px; }
  .is-fullpage .org__tags { padding-top: 7px; line-height: 1.5; }

  /* 오시는 길: 정보·지도 사이 간격 축소 */
  .is-fullpage .location__grid { gap: 16px; }
  .is-fullpage .address__main { font-size: 24px; }
  .is-fullpage .address__detail { margin-top: 8px; }
  .is-fullpage .address__actions { margin-top: 16px; }
  .is-fullpage .address__actions .btn { padding-block: 12px; }
  .is-fullpage .contact { margin-top: 16px; }
  .is-fullpage .contact div { padding: 6px 0; }
  .is-fullpage .location__map { aspect-ratio: auto; height: 30svh; max-height: none; }
  .is-fullpage .location__media figcaption { display: none; }   /* 주소 설명과 같은 내용 */

  /* 장로: 담임목사처럼 약력 간격을 좁혀 두 번 만에 넘어가게 */
  .is-fullpage .elders { gap: clamp(20px, 3.4svh, 36px); margin-top: 16px; }
  .is-fullpage .elder .bio { margin-top: 10px; font-size: 15px; line-height: 1.5; }
  .is-fullpage .elder .bio li { padding: clamp(5px, .9svh, 7px) 0; }

  /* 푸터 하단 정보: 작게 */
  .footer__bottom { font-size: 12px; }

  /* 유튜브: 영상은 그대로, 카드 본문은 라벨·제목·설명 왼쪽 + 바로가기 오른쪽 */
  .is-fullpage .yt { gap: 8px; }
  /* 영상 박스는 화면 높이에 맞춰 낮추고, 영상은 16:9 그대로 가운데(양옆은 박스 배경색) */
  .is-fullpage .yt__media { aspect-ratio: auto; height: clamp(110px, 18.5svh, 200px); }
  .is-fullpage .yt__media iframe { left: 50%; width: auto; aspect-ratio: 16 / 9; transform: translateX(-50%); }
  .is-fullpage .yt__body { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; padding: 10px 16px; }
  .is-fullpage .yt__body > .label { grid-column: 1 / -1; }
  .is-fullpage .yt__title { grid-column: 1; margin-top: 4px; font-size: 19px; }
  .is-fullpage .yt__desc { grid-column: 1; margin: 4px 0 0; font-size: 13px; line-height: 1.55; }
  .is-fullpage .yt__cta { grid-column: 2; grid-row: 2 / span 2; margin: 0; padding: 9px 12px; gap: 6px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
