/* ==========================================================
   소망잇는교회 / The Hub for Hopes Church
   STUDIO FOI 브랜드 디자인(2022) 기반
   Blue #2CA3FF / Noto Serif KR / Montserrat / Pretendard

   히어로 = 풀페이지 슬라이드(scroll-snap). 한 번 슬라이드하면
   관성으로 다음 씬에 스냅되고, 진입 시 애니메이션(.active)이 재생.
   (스크롤 스크럽 버전은 _backup_old/v9-scrub/ 참고)
   ========================================================== */

:root {
  --blue: #2CA3FF;
  --blue-soft: rgba(255, 255, 255, 0.72);   /* 파란 바 위 세리프 텍스트 */
  --ink: #0b0b0e;
  --paper: #ffffff;
  /* ③ 아래쪽 여백 / 카드 내용 밑에 닷 레일이 앉을 자리 */
  --sheet-bot: clamp(48px, 7vh, 74px);
  --gray: #8a8f98;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --eng: "Montserrat", var(--sans);
  --header-h: 72px;
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* ② 세로 성구 띠의 좌표 / 히어로 실선(.hero-thread)이 정확히 이 자리에
     착지해야 하므로 한 곳에서만 정의하고 양쪽이 함께 참조한다. */
  --bar-x: clamp(24px, 8vw, 140px);   /* 첫 선의 왼쪽 여백 */
  --bar-w: clamp(30px, 3.4vw, 50px);  /* 선 두께 */
  --bar-gap: clamp(26px, 3.2vw, 46px); /* 선 사이 간격 */
  --band-h: var(--bar-w);

  /* ③ 가로 밴드 두께 / ②의 세로선과 같은 선이라 두께도 --bar-w 를 그대로 쓴다
     (모바일도 함께 따라간다). */

  /* ② 맨 앞 종이(지금 열린 카드)만 둥실 떠 있다는 그림자.
     종이는 위아래, 오른쪽이 화면 밖이라 보이는 가장자리는 파란 선(종이의 등)
     왼쪽뿐이다 / 그림자를 전부 왼쪽, 아래 장 위로 검게 떨군다.
     세 겹: 종이 테 / 접지 / 그늘. --lift-air = 떴을 때(그늘이 멀고 넓다) /
     --lift-rest = 내려앉았을 때. 다른 장에는 그림자가 없다. */
  --lift-off:
    -1px 0 0 0 rgba(0, 0, 0, 0), -4px 0 8px -2px rgba(0, 0, 0, 0),
    -18px 0 34px -8px rgba(0, 0, 0, 0);
  --lift-rest:
    -1px 0 0 0 rgba(0, 0, 0, 0.04), -8px 0 14px -3px rgba(0, 0, 0, 0.12),
    -26px 0 48px -10px rgba(0, 0, 0, 0.18);
  --lift-air:
    -1px 0 0 0 rgba(0, 0, 0, 0.04), -10px 0 16px -4px rgba(0, 0, 0, 0.14),
    -34px 0 60px -12px rgba(0, 0, 0, 0.22);

  /* ③ 맨 앞 종이만 둥실 / ②의 --lift-* 를 위로 눕힌 것. ③의 종이는
     카드 머리(이름표 자리)에서 화면 아래 끝 너머까지 뻗고 좌우도 화면을
     꽉 채우므로, 보이는 가장자리는 윗변뿐이다 / 그림자를 전부 위로,
     윗장의 밴드 위로 검게 떨군다. 겹, 농도는 ②와 같다. */
  --lift-up-off:
    0 -1px 0 0 rgba(0, 0, 0, 0), 0 -4px 8px -2px rgba(0, 0, 0, 0),
    0 -18px 34px -8px rgba(0, 0, 0, 0);
  --lift-up-rest:
    0 -1px 0 0 rgba(0, 0, 0, 0.04), 0 -8px 14px -3px rgba(0, 0, 0, 0.12),
    0 -26px 48px -10px rgba(0, 0, 0, 0.18);
  --lift-up-air:
    0 -1px 0 0 rgba(0, 0, 0, 0.04), 0 -10px 16px -4px rgba(0, 0, 0, 0.14),
    0 -34px 60px -12px rgba(0, 0, 0, 0.22);
  /* PC 마우스 호버 / 앞장이 한 뼘 더 떠오른다. 내려앉은 그림자(rest) 위에
     한 겹 더 얹는 몫이라, 둘이 겹치면 떴을 때(air)보다 조금 더 멀고 넓다 */
  --lift-hover:
    -8px 0 16px -6px rgba(0, 0, 0, 0.04), -30px 0 52px -14px rgba(0, 0, 0, 0.07);
  --lift-up-hover:
    0 -8px 16px -6px rgba(0, 0, 0, 0.04), 0 -30px 52px -14px rgba(0, 0, 0, 0.07);
  /* ③ 밴드 위 이름표 자리 / 카드 머리. 앞장 그림자는 이 자리의 윗변에서
     위로 떨어지므로 이름표는 늘 흰 종이 위에 배경 없이 적힌다 */
  --tag-h: clamp(28px, 3.8vh, 38px);
  /* ③ 종이의 오른쪽 모서리 / 평소엔 화면 밖이라 안 보이다가, 넘길 때
     종이가 왼쪽으로 빠지면서 모서리와 함께 들어와 흰 종이가 흰 종이 위를
     미끄러져 나간다는 걸 보여준다. spread 를 blur 만큼 줄여 두어 번짐
     꼬리가 윗변 위로 새어 뒷장에 옅은 줄을 긋지 않는다. */
  --sheet-side: 26px 0 26px -26px rgba(0, 0, 0, 0.12);

  /* 히어로 HOPE 마크 폭. script.js 가 이 크기를 재서 실선 좌표(--h1-*)를
     계산하므로, 마크 크기를 바꾸면 실선도 자동으로 따라온다. */
  --hope-w: min(56vw, 760px);

  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  /* 히어로 4씬(①~④)은 script.js가 손가락 제스처 한 번당 한 씬씩
     풀스크린으로 넘김(rAF 커스텀 스크롤). ⑤ 공동체, 푸터는 네이티브 자유 스크롤.
     CSS scroll-behavior는 커스텀 스크롤과 이중 적용되지 않도록 두지 않음. */
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;        /* 낱말 중간에서 줄이 바뀌지 않게 */
  overflow-wrap: break-word;   /* 한 낱말이 칸보다 길 때만 꺾는다 */
}

img { display: block; max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ==========================================================
   머리글 / 히어로 위 고정. 배경은 깔지 않는다(흰 바탕, 검정 바탕, 흐림 모두 없음).
   글자 색은 칸 종류(data-tone)로, 지금 보는 칸의 메뉴는 .is-current 로 정한다.
   색 바뀜은 script.js 가 sweep-in(왼쪽에서 오른쪽으로 차오름),
   sweep-out(왼쪽에서 오른쪽으로 빠짐) 클래스를 건다.
   tone: hero 흰 글씨(강조 없음) / light 흰 칸 위 검정 + 파랑 강조 /
         blue 파란 칸 위 검정 + 흰 강조 / dark 어두운 칸 위 흰색 + 파랑 강조
   ========================================================== */
@property --nav-base { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --nav-on { syntax: "<color>"; inherits: true; initial-value: #ffffff; }

.site-header {
  --nav-base: #ffffff;
  --nav-on: #ffffff;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* 로고, 네비는 1280px 중앙 컨테이너에 정렬 */
  padding: 0 max(clamp(18px, 4vw, 40px), calc((100% - 1280px) / 2));
  background: none;
  transition: --nav-base 0.6s var(--ease-soft), --nav-on 0.6s var(--ease-soft);
  pointer-events: none;              /* 빈 자리는 클릭 통과 */
}
.site-header > * { pointer-events: auto; }
.site-header[data-tone="light"] { --nav-base: #0b0b0e; --nav-on: var(--blue); }
.site-header[data-tone="blue"]  { --nav-base: #0b0b0e; --nav-on: #ffffff; }
.site-header[data-tone="dark"]  { --nav-base: #ffffff; --nav-on: var(--blue); }

/* 히어로 사진 위에서만 위쪽을 살짝 어둡게 눌러 흰 글씨가 읽히게 한다 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--header-h) + 82px);
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.44) 0%,
    rgba(0, 0, 0, 0.26) 38%,
    rgba(0, 0, 0, 0.10) 70%,
    rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
}
.site-header[data-tone="hero"]::before { opacity: 1; }

.site-brand { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; transition: opacity 0.5s var(--ease-soft); }
/* 세로 파란 띠가 지나가는 동안은 로고를 숨기고, 띠가 사라지면 부드럽게 되돌린다 */
.site-header.logo-off .site-brand { opacity: 0; pointer-events: none; }
.site-brand img {
  height: 34px; width: auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
  transition: opacity 0.5s var(--ease-soft);
}
.site-brand .brand-paper {
  position: absolute; left: 0; top: 50%; translate: 0 -50%;
  filter: none;
  opacity: 0;
}
/* 로고는 흰 칸 위에서만 파랑, 사진과 파란 칸과 어두운 칸에서는 흰색 */
.site-header[data-tone="light"] .site-brand img { opacity: 0; }
.site-header[data-tone="light"] .site-brand .brand-paper { opacity: 1; }

.site-nav {
  display: flex; align-items: center;
  gap: clamp(13px, 2.4vw, 30px);
  margin-left: auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0));
  transition: filter 0.5s var(--ease-soft);
}
.site-header[data-tone="hero"] .site-nav { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35)); }

/* 글자 색은 배경을 글자 모양으로 오려 낸 것이라 색이 글자 안을 쓸고 지나갈 수 있다 */
.site-nav a {
  position: relative;
  display: inline-grid;
  justify-items: center;
  font-family: var(--eng);
  font-size: 15px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none;
  padding: 6px 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(var(--nav-base), var(--nav-base));
  -webkit-background-clip: text;
  background-clip: text;
  transition: opacity 0.25s var(--ease-soft);
}
/* 굵게 바뀌어도 메뉴 줄이 들썩이지 않게 굵은 글자 폭을 미리 잡아 둔다 */
.site-nav a::before {
  content: attr(data-label);
  display: block; height: 0; overflow: hidden; visibility: hidden;
  font-weight: 600;
}
.site-nav a.is-current {
  font-weight: 600;
  background-image: linear-gradient(var(--nav-on), var(--nav-on));
}
.site-nav a.sweep-in {
  background-image: linear-gradient(90deg, var(--nav-on) 50%, var(--nav-base) 50%);
  background-size: 200% 100%;
  animation: nav-sweep-in 0.6s var(--ease-soft) both;
}
.site-nav a.sweep-out {
  background-image: linear-gradient(90deg, var(--nav-base) 50%, var(--nav-on) 50%);
  background-size: 200% 100%;
  animation: nav-sweep-out 0.6s var(--ease-soft) both;
}
@keyframes nav-sweep-in  { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes nav-sweep-out { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (hover: hover) {
  .site-nav a:not(.is-current):hover { opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav a.sweep-in, .site-nav a.sweep-out { animation-duration: 0.01s; }
  .site-header { transition: none; }
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .site-nav a { color: var(--nav-base); -webkit-text-fill-color: currentColor; }
  .site-nav a.is-current { color: var(--nav-on); }
}

@media (max-width: 1024px) {
  /* 아이패드, 폰에서도 왼쪽 위 교회 로고를 그대로 둔다 (1018b) */
  .site-brand img { height: 30px; }
}
/* 아이패드, 폰 폭: 흰 칸(②, ③)에서는 헤더를 흰 바탕으로 두고, 파란 선의 세로 글자는
   그 아래에서 시작한다 / 로고, 메뉴가 선과 겹치지 않는다. PC(1401px 이상)는 그대로 */
@media (max-width: 1400px) {
  .site-header {
    transition: --nav-base 0.6s var(--ease-soft), --nav-on 0.6s var(--ease-soft),
                background-color 0.45s var(--ease-soft);
  }
  .site-header[data-tone="light"] { background-color: #ffffff; }
  .vbar { padding-top: calc(var(--header-h) + 14px); }  /* 흰 머리글 아래로 글자를 살짝 내린다 */
}
@media (max-width: 560px) {
  :root { --header-h: 62px; }
  .site-header { gap: 10px; }
  .site-brand img { height: 22px; }
  .site-nav { gap: 10px; }
  .site-nav a { font-size: 12.5px; letter-spacing: 0.01em; }
}
@media (max-width: 400px) {
  .site-header { padding-inline: 14px; }
  .site-brand img { height: 20px; }
  .site-nav { gap: 8px; }
  .site-nav a { font-size: 12px; letter-spacing: 0; }
}
@media (max-width: 340px) {
  /* 가장 작은 폰(320): 메뉴를 좁혀 파란 세로 막대 위로 덜 올라가게 */
  .site-header { padding-inline: 12px; gap: 8px; }
  .site-brand img { height: 17px; }
  .site-nav { gap: 6px; }
  .site-nav a { font-size: 10.5px; letter-spacing: 0; }
}

/* ==========================================================
   풀페이지 씬 공통
   ========================================================== */
.scene {
  position: relative;
  height: 100vh;    /* fallback */
  height: 100dvh;   /* 모바일 주소창 반영 / 씬이 화면에 딱 맞게 스냅 */
  overflow: hidden;
}

/* ---------- 공통 리빌 (히어로 이후 섹션) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-soft) var(--d, 0s),
              transform 0.9s var(--ease-soft) var(--d, 0s);
}
.in .reveal, .reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   ① 무지개 사진 + 성구
   ========================================================== */
.scene-photo { background: var(--ink); }
.scene-photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s var(--ease-soft), transform 1.8s var(--ease-soft);
}
.scene-photo.active .scene-photo-img { opacity: 1; transform: scale(1); }

.photo-verse {
  position: absolute;
  top: var(--verse-top);
  /* 왼쪽 끝을 HOPE 의 H 맨 왼쪽 세로획(viewBox 590 에서 x=3.92)에 맞춘다. 화면 폭이 바뀌어도 마크를 따라간다 */
  left: calc(50% - var(--hope-w) / 2 + var(--hope-w) * 3.92 / 590);
  font-family: var(--serif);
  font-size: clamp(21px, calc(2.2vw + 2px), 32px);
  /* 로고(가운데)와 겹치지 않게: 구절 아래 끝이 로고 윗변 16px 위에 머물도록
     남는 높이에서 글자 크기를 정한다. 구절 높이는 글자 크기의 약 7.7배
     (세 줄 1.85 x 3 + 출처 앞 1 + 출처 1.15). 큰 화면은 그대로 30px 까지,
     낮은 화면일수록 줄어든다(아래 12px 밑으로는 안 내려감). */
  /* 씬 높이가 100dvh 라 로고 자리(50%)도 dvh 기준이다 */
  --verse-top: clamp(90px, 13dvh, 160px);
  --verse-room: calc(50dvh - var(--hope-w) * 0.1525 - var(--verse-top) - 16px);
  font-size: max(14px, min(clamp(21px, calc(2.2vw + 2px), 32px), calc(var(--verse-room) / 7.7)));
  font-weight: 500;
  line-height: 1.85;
  text-align: left;
  color: #fff;
  text-shadow: 0 1px 20px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease-soft) 0.35s, transform 1s var(--ease-soft) 0.35s;
}
.scene-photo.active .photo-verse { opacity: 1; transform: none; }
.photo-verse cite {
  display: block; margin-top: 1em;
  font-style: normal; font-size: 0.62em; font-weight: 400; opacity: 0.88;
}

/* ---- HOPE 마크 / 화면 한가운데, 왼쪽에서 오른쪽으로 그어지듯 ---- */
.hero-mark {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: var(--hope-w);
  color: #fff;
  /* 사진 중앙부가 밝아(평균 129/255) 흰 획이 묻히므로 그림자를 두 겹으로 */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5))
          drop-shadow(0 0 42px rgba(0, 0, 0, 0.38));
  opacity: 0;
  transition: opacity 0.5s ease 0.35s;
}
.hero-mark svg {
  display: block; width: 100%; height: auto;
  clip-path: inset(0 100% 0 0);   /* 왼쪽 → 오른쪽으로 그어짐 */
  transition: clip-path 1.2s var(--ease-soft) 0.35s;
}
.scene-photo.active .hero-mark { opacity: 1; }
.scene-photo.active .hero-mark svg { clip-path: inset(0 0 0 0); }

/* 아래로 스크롤하는 순간(.leaving) / 마크 전체가 조용히 사라지고,
   H의 왼쪽 세로획 3개 자리는 .hero-threads 실선이 그대로 이어받는다.
   아래쪽 한 줄(태그라인)과 스크롤 큐는 곧 내려올 선이 가로지르는
   자리라 먼저 비켜 준다 / 선이 글자를 긋고 지나가면 어지럽다. */
.scene-photo.leaving .hero-mark {
  opacity: 0;
  transition: opacity 0.42s ease;
}
/* (.active 규칙이 파일 아래에 있어 같은 무게로는 지므로 .active 까지 건다) */
.scene-photo.active.leaving .hero-tagline,
.scene-photo.active.leaving .scroll-cue {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ---- H 왼쪽 세로획 3개 → ②의 파란 선 3개 ----
   ①에 머무는 동안은 아무것도 없다(로고 원형 그대로).
   아래로 스크롤하는 순간 선(i) 3개가 획 3개의 실제 자리에서 나타난다.
   내려오는 건 파란 선뿐이다 / 흰 바탕은 따라오지 않고, ②의 흰 화면은
   화면이 넘어가며 아래에서 올라온다.
     ① 획이 제자리에서 ② 선 두께, 간격으로 커지며 파랗게 물들고
     ② 선이 화면 바닥까지 자라 내려오고
     ③ 화면이 ②로 넘어가는 동안 선 윗끝도 화면 위 끝까지 올라가
        ②의 제자리로 들어가 앉는다.
   도착한 프레임에 진짜 카드에 바통을 넘기고 사라진다.
   좌표, 시간표는 script.js(playLeave)가 실측해 Web Animations 로 돌린다 ,
   여기엔 '움직이지 않을 때는 안 보인다'는 바탕만 둔다. */
.hero-threads > * {
  position: fixed;
  left: 0; top: 0; width: 0; height: 0;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
}
.hero-threads i { background: #fff; }

.hero-tagline {
  position: absolute;
  left: 50%; translate: -50% 0;
  bottom: clamp(72px, 12vh, 130px);
  font-family: var(--serif);
  font-size: clamp(17px, calc(1.7vw + 2px), 23px);
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 1px 22px rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 1s var(--ease-soft) 0.7s;
}
.scene-photo.active .hero-tagline { opacity: 1; }
.hero-tagline strong { color: #fff; font-weight: 500; }

/* ---- 스크롤 큐 ---- */
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%;
  width: 1px; height: 44px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.6s ease 1.1s;
}
.scene-photo.active .scroll-cue { opacity: 1; }
.scroll-cue span {
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--blue);
  animation: cueDrop 2s ease-in-out infinite;
}
@keyframes cueDrop { 60% { top: 100%; } 100% { top: 100%; } }

/* ==========================================================
   카드 공통 (②, ③) / 파란 선 하나 = 카드 한 장
   선(세로선/가로 밴드)이 카드의 등이고, 열린 카드만 흰 내용이
   선에 붙어 펼쳐진다. 열림 정도, 드래그 보간은 script.js 가
   인라인 스타일(width/height/opacity)로 넣는다.
   제스처는 씬 전체에서 받는다(손가락 1:1 추적).
   ========================================================== */
.scene-bars, .scene-bands {
  touch-action: pan-y;      /* 가로 드래그는 JS가 처리 */
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.scene-bars.dragging, .scene-bands.dragging { cursor: grabbing; }
.scene-bars img, .scene-bands img { -webkit-user-drag: none; }

/* 닷이 아니라 가로 레일 / 점 세 개는 '몇 장인지'만 알려주지만
   같은 길이의 막대 세 칸은 '어디까지 왔는지'를 자로 잰 듯 보여준다 */
.cards-nav {
  position: absolute;
  bottom: 14px; left: 50%;
  translate: -50% 0;
  display: flex; align-items: center;
  gap: clamp(6px, 1vw, 14px);
  z-index: 5;
}
.cards-dots {
  display: flex; gap: 6px;
}
/* 레일 양옆의 ‹ › / 카드가 좌우로 넘어간다는 걸 말없이 알려준다.
   레일과 같은 농도의 잉크색이라 화면을 어지럽히지 않는다. */
.cards-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  padding: 0; border: 0; background: none;
  color: rgba(11, 11, 14, 0.32);
  cursor: pointer;
  transition: color 0.3s var(--ease-soft), opacity 0.3s var(--ease-soft);
}
.cards-arrow svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.cards-arrow:hover, .cards-arrow:focus-visible { color: var(--blue); }
/* 끝 카드에선 눌러도 갈 곳이 없다 / 지우지 않고 흐리게 남겨 자리를 지킨다 */
.cards-arrow[disabled] { opacity: 0.28; cursor: default; color: rgba(11, 11, 14, 0.32); }
/* 막대는 3px지만 그대로 두면 손가락이 못 짚는다 ,
   위아래 여백까지 버튼으로 두고, 칠하는 건 가운데 3px 뿐 */
.cards-dots button {
  width: clamp(44px, 5vw, 64px); height: 25px;
  padding: 11px 0;
  background-clip: content-box;
  border-radius: 0; border: 0;
  background-color: rgba(11, 11, 14, 0.13);
  cursor: pointer;
  transition: background-color 0.35s var(--ease-soft);
}
.cards-dots button.on { background-color: var(--blue); }

.card-eyebrow {
  font-family: var(--eng);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--blue);
  margin-bottom: 18px;
}
.card-title {
  font-family: var(--serif);
  font-size: clamp(23px, calc(2.2vw + 2px), 32px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
}
.card-copy {
  font-size: clamp(15.5px, calc(1.15vw + 2px), 17.5px);
  line-height: 1.85;
  color: var(--gray);
  margin-bottom: 22px;
  max-width: 52ch;
}
.card-photo {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9;
  max-height: 30vh;
  background: #eef1f4;
  border: 1px dashed #cdd4dc;
  color: #9aa3ae;
  font-size: 15px;
  margin-bottom: 20px;
}
.card-more {
  /* 글자 없이 화살표만 / 손가락으로 누르기 쉬운 44px 칸 */
  display: inline-flex; align-items: center; justify-content: flex-start;
  /* .acc-inner/.band-inner 가 세로 flex 라 그냥 두면 칸 너비만큼 늘어난다 */
  align-self: flex-start;
  width: 44px; height: 44px;
  font-family: var(--eng);
  font-size: 26px; font-weight: 600; line-height: 1;
  color: var(--blue);
  text-decoration: none;
}
/* 글자가 있는 이동 링크(섬기는 사람들)만 예전 모양 */
.card-more.card-more-text {
  display: inline-block; width: auto; height: auto;
  font-size: 15px; letter-spacing: 0.06em;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 3px;
}
.card-more span { transition: translate 0.25s var(--ease-soft); display: inline-block; }
.acc-card:hover .card-more span,
.band-card:hover .card-more span { translate: 4px 0; }

/* ==========================================================
   ② 말씀 / 세로선 3개는 왼쪽에 나란히(히어로 H 획이 착지하는 자리),
   화면 전체가 흰 종이 / 선마다 종이 한 장이 겹쳐 놓인 덱
   ========================================================== */
.scene-bars { background: var(--paper); }
/* 아코디언 / 닫힌 상태에선 선 3개만 왼쪽에 나란히(히어로 착지 자리),
   열린 카드만 선 옆으로 내용(.acc-body)이 펼쳐진다 */
.accord {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: var(--bar-gap);
  padding: 0 var(--bar-x);
}
.acc-card {
  position: relative;
  display: flex; align-items: stretch;
  /* 카드마다 제 쌓임 맥락 / 오른쪽 카드가 통째로 왼쪽 카드 위에 칠해져야
     앞장의 그림자(.card-rise)가 왼쪽 카드의 종이, 이름표 위로 떨어진다 */
  isolation: isolate;
}
/* 카드의 몸 = 화면을 채우는 흰 종이 한 장. 왼쪽 끝이 곧 파란 선이고
   (선 = 종이의 등), 오른쪽은 화면 밖까지, 위아래도 화면 밖까지 뻗는다 ,
   떠 있는 카드가 아니라 화면 자체가 종이다. 뒤 카드의 종이가 앞 카드
   밑에 겹쳐 깔린다. 넘치는 부분은 .scene 의 overflow 가 자른다. */
.acc-card::before {
  content: "";
  position: absolute;
  left: 0; top: -80px; bottom: -80px;
  width: 100vw;
  background: var(--paper);
  pointer-events: none;
}
/* 앞장만 둥실 / 지금 열린 카드의 파란 선 왼쪽에 검은 그림자가 떠올랐다
   내려앉는다(세 장이 다 튕기지 않는다). 바깥(.card-rise)의 농도는
   script.js 가 넘김 위치로 넣어 넘기는 만큼 다음 장으로 옮겨 가고,
   안쪽(.card-edge)의 애니메이션이 떠오름을 맡는다.
   판은 위아래를 화면 밖까지, 안쪽은 오른쪽으로 화면 끝 너머까지 둔다 ,
   퍼짐(음수)이 선 폭을 넘어도 그림자가 가늘어지지 않고 종이 모서리처럼
   곧게 서며, 번짐의 꼬리가 판 오른쪽 끝에서 잘려 세로 줄로 비치지 않는다.
   바깥 그림자라 판 안쪽(종이, 글자 위)에는 칠해지지 않는다. */
.card-rise {
  position: absolute;
  left: 0; top: -200px; bottom: -200px;
  width: var(--bar-w);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}
.card-edge {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100vw;
  box-shadow: var(--lift-off);
}
/* 없다가 → 한 번 떴다가(--lift-air) → 제 자리에 내려앉는다(--lift-rest) */
@keyframes card-float {
  0%   { box-shadow: var(--lift-off); }
  50%  { box-shadow: var(--lift-air); }
  100% { box-shadow: var(--lift-rest); }
}
/* 세 줄이 다 그어지고 카드가 열린 뒤(1.1초)에 뜬다. 씬을 벗어나면
   .active 가 빠지며 걷혀, 다시 들어올 때마다 처음부터 떠오른다 */
.scene-bars.active .card-edge { animation: card-float 1s ease-in-out 1.1s both; }

/* 카드 이름표 / 선 사이 틈에 세로로 적힌 번호, 이름. 열린 카드도 접힌
   카드도 세 장 모두 같은 자리에 늘 적혀 있어, 닫힌 카드도 '제목이 있는
   한 장'으로 읽힌다. 접힌 카드의 이름표를 누르면 그 카드가 열린다 */
.card-tag {
  position: absolute;
  left: var(--bar-w); width: var(--bar-gap);
  top: calc(var(--header-h) + 40px);
  display: flex; justify-content: center;
  z-index: 2;
}
.acc-card.is-open .card-tag { pointer-events: none; }
.card-tag-in {
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-size: 15px; font-weight: 500; line-height: 1;
  letter-spacing: 0.12em;
  color: rgba(11, 11, 14, 0.58);
  white-space: nowrap;
  opacity: 0;
}
.card-tag-in em {
  font-family: var(--eng);
  font-size: 13px; font-weight: 600; font-style: normal;
  letter-spacing: 0;
  -webkit-text-combine: horizontal;
  text-combine-upright: all;   /* 세로쓰기 안에서 '03'을 가로로 한 칸에 */
  color: var(--blue);
  margin-inline-end: 10px;
}
@keyframes card-tag {
  from { opacity: 0; translate: 0 -8px; }
  to   { opacity: 1; translate: 0 0; }
}
/* 선이 거의 다 내려온 때 스며 나온다 */
.scene-bars.active .card-tag-in { animation: card-tag 0.7s var(--ease-soft) 0.9s both; }
.vbar {
  flex: 0 0 var(--bar-w);
  width: var(--bar-w);
  /* 종이(::before) 위에 그어진 선 / 절대배치된 ::before 가 정적인
     .vbar 보다 나중에 칠해지므로, 세워 두지 않으면 흰 종이가 선을 덮는다 */
  position: relative; z-index: 2;
  background: var(--blue);
  display: flex; justify-content: center;
  align-items: flex-start;         /* 세로 영문을 선 상단에 고정 */
  overflow: hidden;
  clip-path: inset(0 0 100% 0);   /* 위→아래로 그어짐 */
  transition: clip-path 1s var(--ease-soft);
}
/* 왼쪽 선부터 순차로 / 히어로 실선 3개가 이 자리에 그대로 착지한다 */
.acc-card:nth-child(1) .vbar { transition-delay: 0s; }
.acc-card:nth-child(2) .vbar { transition-delay: 0.12s; }
.acc-card:nth-child(3) .vbar { transition-delay: 0.24s; }
.scene-bars.active .vbar { clip-path: inset(0 0 0 0); }
/* ---- 히어로에서 내려온 진입(.from-hero) ----
   내려오는 동안 화면에 보이는 건 script.js 가 띄운 파란 실선 3개(.hero-threads)다.
   진짜 카드는 그 밑에서 이미 '열린 채'로 제자리에 숨어 기다리고(씬의
   흰 바탕만 보인다), 화면이 ②에 닿고 선이 제자리에 앉은 프레임에 .landed 가 붙어
   한 프레임에 바통을 넘긴다 / 둘이 함께 보이는 순간이 없다.
   바통을 받은 뒤에야 앞장의 그림자가 떠올랐다 내려앉고(card-float)
   접힌 카드의 이름표가 스며 나와, 화면을 채운 이 종이가 '넘기는 카드
   여러 장'이라는 걸 알린다. 글자는 그 위에 스며 나온다.
   ②를 벗어날 때 script.js 가 두 클래스를 떼어, 다음 진입부터는
   다시 선이 그어지고 카드가 떠오르는 원래 연출로 돌아간다. */
.scene-bars.from-hero:not(.landed) .acc-card { visibility: hidden; }
.scene-bars.from-hero .vbar { transition: none; clip-path: inset(0 0 0 0); }
.scene-bars.from-hero .card-edge,
.scene-bars.from-hero .card-tag-in { animation: none; }
.scene-bars.from-hero .acc-body,
.scene-bars.from-hero .vbar span { opacity: 0; }
.scene-bars.from-hero.landed .acc-body,
.scene-bars.from-hero.landed .vbar span {
  opacity: 1;
  transition: opacity 0.55s var(--ease-soft) 0.12s;
}
/* 착지 직후 바로 / 선은 이미 다 그어져 있고 카드도 열린 채 도착한다 */
.scene-bars.from-hero.landed .card-edge { animation: card-float 1s ease-in-out 0.15s both; }
.scene-bars.from-hero.landed .card-tag-in { animation: card-tag 0.7s var(--ease-soft) 0.3s both; }
.vbar span {
  font-family: var(--serif);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  height: max-content;
  font-size: clamp(15px, calc(1.4vw + 2px), 22px);
  color: var(--blue-soft);
  padding-block: 18px;
  white-space: nowrap;
}
.acc-body {
  width: 0;                        /* 열림 정도는 JS가 width 로 보간 */
  overflow: hidden;
  position: relative; z-index: 1;  /* 글자도 종이 위에 (같은 이유) */
}
.acc-inner {
  /* 폭은 JS가 열린 카드 기준(px)으로 고정 / 드래그 중 리플로 방지 */
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  /* 위아래를 같은 값으로 / 내용이 헤더를 피해 화면 정가운데에 앉는다 */
  padding: calc(var(--header-h) + 20px) clamp(20px, 3vw, 56px);
  opacity: 0;                      /* 열림 정도 따라 JS가 보간 */
}
.bars-verse {
  font-family: var(--serif);
  font-size: clamp(20px, calc(2vw + 2px), 30px);
  font-weight: 500;
  line-height: 1.8;
  color: var(--blue);
  margin-bottom: 20px;
}
.bars-verse cite {
  display: block; margin-top: 1em;
  font-style: normal; font-size: 0.58em; font-weight: 400;
}

/* ==========================================================
   ③ 잇다 / 종이 덱. 종이 한 장 = 이름표 + 가로 밴드 + 그 밑에 적힌 내용.
   세 장이 겹쳐 쌓여 밴드 3줄이 보이고, 맨 앞 종이(맨 아래 밴드)의 내용만
   드러난다. 좌우로 넘기면 맨 앞 종이가 이름표, 밴드, 내용과 한 몸으로
   왼쪽 밖으로 빠지고, 밑장의 내용이 제 밴드 바로 밑에서 드러난다.
   되돌리면 빠졌던 종이가 왼쪽에서 다시 들어와 덮는다 / 넘기는 방향과
   카드가 움직이는 방향이 같다.
   종이의 윗변이 곧 파란 밴드의 윗변이다(카드의 끝 = 파란색). 종이는 거기서
   화면 아래 끝 너머까지 뻗고, 아래 카드의 종이가 위 카드의 종이를 덮는다.
   앞장만 둥실 떠서 밴드 윗변 위로 검은 그림자를 떨구고, 이름표는 종이
   밖 그 그림자 위에 떠서(배경 없이) 제 밴드를 따라다닌다.
   종이의 transform 과 그림자 농도는 script.js(makeSheets)가 넣는다.
   ========================================================== */
.scene-bands {
  --band-draw-time: 1s;
  --band-last-delay: 0.48s;
  --band-shadow-delay: calc(var(--band-draw-time) + var(--band-last-delay));
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;     /* 밴드 3줄 + 그 밑의 내용 = 한 덩어리 */
  padding-top: calc(var(--header-h) + 2vh);
  padding-bottom: var(--sheet-bot);   /* 닷 레일이 앉을 자리 */
}
/* 내용은 밴드 밑에 absolute 로 걸려 있어 칸 높이에 안 잡힌다 ,
   script.js 가 가장 깊이 내려오는 내용만큼 --deck-h 를 넣어 줘야
   '밴드 3줄 + 내용'이 한 덩어리로 화면 가운데에 앉는다 */
.band-stack {
  position: relative;
  flex: none;
  padding-bottom: var(--deck-h, 34vh);
}
.band-card {
  position: relative;
  cursor: pointer;
  /* 카드마다 제 쌓임 맥락 / 아래 카드가 통째로 위 카드 위에 칠해져야
     앞장의 그림자(.band-rise)가 위 카드의 밴드 위로 떨어진다 */
  isolation: isolate;
  will-change: transform;
}
/* 카드의 몸 = 밴드 윗변에서 화면 아래 끝 너머까지 뻗는 흰 종이.
   이름표 자리(--tag-h)는 종이 밖이다. (넘치는 부분은 .scene 의 overflow 가
   자른다) 뒷장 내용을 덮고, 넘길 때만 오른쪽 모서리 그림자(--sheet-side)가 보인다 */
.band-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0; height: 120vh;
  z-index: -1;
  background: var(--paper);
  pointer-events: none;
}
.scene-bands.active .band-card::before {
  box-shadow: var(--sheet-side);
  transition: box-shadow 0s var(--band-shadow-delay);
}
.scene-bands .cards-nav { z-index: 20; }
/* 앞장만 둥실 / ②의 .card-rise, .card-edge 를 위로 눕힌 것. 맨 앞 카드의
   파란 밴드 윗변에서 검은 그림자가 떠올랐다 내려앉는다(②의 세로선 왼쪽
   그림자와 같은 자리). 그림자는 밴드 위 틈과 윗장 밴드 밑단에 떨어지고,
   이름표는 그 그림자 위에 떠 있다.
   바깥(.band-rise)의 농도는 script.js 가 넘김 위치로 넣어 넘기는 만큼
   다음 장으로 옮겨 가고, 안쪽(.band-edge)의 애니메이션이 떠오름을 맡는다.
   판은 좌우로 화면 밖까지 넓혀 그림자가 화면 양끝에서 가늘어지지 않게
   하고, 오른쪽 넘친 몫은 clip-path 로 종이 모서리에서 잘라 넘길 때
   그림자가 종이보다 앞서 나가지 않게 한다.
   바깥 그림자라 판 안쪽(종이, 글자 위)에는 칠해지지 않는다. */
.band-rise {
  position: absolute;
  left: -200px; right: -200px;
  top: 0; height: 120vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(-160px 200px 0 0);
  visibility: hidden;
}
.scene-bands.active .band-rise {
  visibility: visible;
  transition: visibility 0s var(--band-shadow-delay);
}
.band-edge {
  position: absolute;
  inset: 0;
  box-shadow: var(--lift-up-off);
}
/* 없다가 → 한 번 떴다가(--lift-up-air) → 제 자리에 내려앉는다(--lift-up-rest) */
@keyframes band-float {
  0%   { box-shadow: var(--lift-up-off); }
  50%  { box-shadow: var(--lift-up-air); }
  100% { box-shadow: var(--lift-up-rest); }
}
/* 마지막 띠가 다 그어지면 그림자가 보인다. 씬을 벗어나면 즉시 되감긴다. */
.scene-bands.active .band-edge { animation: band-float 1s ease-in-out var(--band-shadow-delay) both; }

/* 마지막 장(3번 카드)에는 그림자를 두지 않는다 / 넘길 곳이 없는 끝장이라 떠오르지 않는다.
   ②는 DOM 첫 카드(맨 왼쪽 선), ③은 DOM 첫 카드(맨 위 밴드)가 3번 카드다 */
.acc-card:nth-child(1) .card-rise,
.band-card:nth-child(1) .band-rise { display: none; }

/* ②, ③ PC 호버 / 마우스를 올린 앞장이 살짝 더 떠오른다. 떠오름 애니메이션이
   box-shadow 를 붙잡고 있어 같은 속성으로는 못 덮으므로, 그림자 한 겹을
   ::after 에 따로 깔고 농도만 바꾼다. 판(.card-rise, .band-rise)의 농도를
   JS 가 앞장에만 주므로 뒷장에 올려도 그림자는 생기지 않는다 ,
   뒷장(선, 밴드)으로 옮기면 앞장이 도로 내려앉는다 */
.card-edge::after,
.band-edge::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
}
.card-edge::after { box-shadow: var(--lift-hover); }
.band-edge::after { box-shadow: var(--lift-up-hover); }
@media (hover: hover) and (pointer: fine) {
  .acc-card:hover .card-edge::after,
  .band-card:hover .band-edge::after { opacity: 1; }
}

.band {
  height: var(--band-h);
  background: var(--blue);
  display: flex; align-items: center;
  padding: 0 clamp(20px, 5vw, 80px);
  gap: clamp(12px, 1.8vw, 28px);
  clip-path: inset(0 100% 0 0);   /* 왼쪽→오른쪽으로 그어짐 */
}
/* 앞장인 01부터 02, 03 순서로 띠가 나타난다. */
.band-card:nth-child(3) { --band-draw-delay: 0.12s; }
.band-card:nth-child(2) { --band-draw-delay: 0.3s; }
.band-card:nth-child(1) { --band-draw-delay: var(--band-last-delay); }
.scene-bands.active .band {
  clip-path: inset(0 0 0 0);
  transition: clip-path var(--band-draw-time) var(--ease-soft) var(--band-draw-delay);
}
.band em {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(15px, calc(1.4vw + 2px), 22px);  /* ② 선 글자(.vbar span)와 같은 크기 */
  color: var(--blue-soft);
  white-space: nowrap;
  line-height: 1;
}
.band-line {
  flex: 1;
  height: 2px;
  background: var(--blue-soft);
  opacity: 0.8;
}

/* 이름표 / 밴드 바로 위에 뜬 번호, 이름. 종이 밖에 상자도 배경도 없이 떠
   있어(앞장 그림자보다 위에 칠해진다) 스티커처럼 제 밴드에 붙어 따라다닌다.
   종이가 넘어가면 밴드와 함께 빠진다. 세 장 모두 늘 보인다 */
.band-tag {
  position: relative;
  display: flex; align-items: flex-start;
  height: var(--tag-h);
  padding: 11px clamp(20px, 5vw, 80px) 0;
}
.band-tag-in {
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  color: rgba(11, 11, 14, 0.58);
  white-space: nowrap;
  opacity: 0;
}
.band-tag-in em {
  font-family: var(--eng);
  font-size: 13px; font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  color: var(--blue);
  margin-inline-end: 10px;
}
@keyframes band-tag {
  from { opacity: 0; translate: -8px 0; }
  to   { opacity: 1; translate: 0 0; }
}
/* 제 띠가 그어지는 결을 따라 위 줄부터 */
.scene-bands.active .band-tag-in { animation: band-tag 0.7s var(--ease-soft) 0.8s both; }
.scene-bands.active .band-card:nth-child(2) .band-tag-in { animation-delay: 0.98s; }
.scene-bands.active .band-card:nth-child(3) .band-tag-in { animation-delay: 1.16s; }
/* 카드 내용 / 제 밴드 바로 밑, 제 종이 위에 적힌 글자라 상자도 그림자도 없다.
   밴드 밑에 걸려(absolute) 아래 카드들이 앉은 자리까지 내려오지만 그 자리는
   앞 종이들이 덮고 있어 맨 앞 종이의 내용 한 장만 보인다 */
.band-body {
  position: absolute;
  top: 100%; left: 0; right: 0;
}
.band-inner {
  display: flex; flex-direction: column; justify-content: flex-start;
  align-items: flex-start;
  /* 윗 여백은 이름표 자리보다 깊게 / 밴드 밑 틈은 앞 종이가 덮지 않는
     자리라, 뒷장 글자가 거기 걸리면 앞 카드 이름표 옆으로 비친다.
     글자가 앞 종이의 밴드 밑으로 들어가 앉게 한다 */
  padding: clamp(8px, 1.6vh, 18px) clamp(20px, 5vw, 80px) clamp(22px, 4vh, 46px);
}
/* 씬 진입 시 글자가 스르륵 나타난다 / 밴드가 그어지는 동안 농도만 올린다 */
.scene-bands .band-inner > * {
  opacity: 0;
  transition: opacity 0.8s var(--ease-soft) 0.55s;
}
.scene-bands.active .band-inner > * { opacity: 1; }
/* ==========================================================
   ④ HOPE 로고 완성 + 이번 주 주일예배
   위는 브랜드 클라이맥스, 그 아래에 유튜브 최신 주일예배.
   한 화면(100dvh)에 다 담겨야 하므로 영상은 남는 세로 공간만큼
   줄어들고(가로는 16:9로 따라온다), 스크롤은 생기지 않는다.
   파란 화면 위라 설교 쪽은 흰 계열 대비만으로 정리한다.
   ========================================================== */
.scene-logo {
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   /* 로고+앨범을 한 덩어리로 세로 가운데에 */
  gap: clamp(28px, 5vh, 64px);
  padding: calc(var(--header-h) + clamp(14px, 2.6vh, 38px))
           clamp(20px, 5vw, 80px) clamp(18px, 3.2vh, 44px);
}
/* 로고 한 줄 / HOPE 로고타입 하나. 아래 선교 카드와 사이를 넉넉히 비운다 */
.hope-brand {
  flex: none;
  display: flex;
  align-items: center; justify-content: center;
  gap: clamp(12px, 1.8vw, 26px);
}
.hope-logo {
  /* height 를 auto 로 풀지 않으면 마크업의 height="180" 이 그대로 먹어
     로고가 세로로 3배 늘어난다 (원본 비율 590:180) */
  width: min(30vw, 300px);
  height: auto;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft);
}
.scene-logo.active .hope-logo { opacity: 1; transform: scale(1); }
/* ---------- 이번 주 주일예배 (유튜브) / HOPE 브랜드 아래 ---------- */
/* 남은 세로 공간을 이 블록이 다 받고(flex:1), 그 안에서 영상이
   높이 기준으로 줄었다 늘었다 한다. 어떤 화면에서도 ④가 한 장에 담긴다. */
.hope-sermon {
  /* 제 높이만큼만 차지한다 / 남는 세로는 .scene-logo 가 위아래로
     고르게 나눠 갖고, 로고와 앨범이 한 덩어리로 가운데 앉는다 */
  flex: 0 1 auto; min-height: 0;
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: center;   /* 덱을 접고 남은 세로는 위아래로 고르게 */
  gap: clamp(9px, 1.4vh, 16px);
  opacity: 0; translate: 0 18px;
  transition: opacity 0.9s var(--ease-soft) 0.5s,
              translate 0.9s var(--ease-soft) 0.5s;
}
.scene-logo.active .hope-sermon { opacity: 1; translate: 0 0; }

/* 앨범 / 가운데 한 장이 이번 주, 옆으로 갈수록 비스듬히 뒤로 물러나며
   옅어진다. 카드 위치, 기울기, 불투명도는 script.js 가 매 프레임 잡는다
   (여기서 값을 정하면 드래그가 1:1로 손을 따라올 수 없다) */
.sermon-deck {
  position: relative;
  flex: 1; min-height: 0;
  width: 100%;
  container-type: size;
  perspective: 1500px;
  touch-action: pan-y;   /* 가로는 앨범이 받고 세로 스크롤은 씬에 넘긴다 */
  cursor: grab;
}
.sermon-deck.dragging { cursor: grabbing; }
.sermon-deck img { -webkit-user-drag: none; user-select: none; }
.sermon-card {
  position: absolute;
  left: 50%; top: 50%;
  width: min(100cqw, 720px, 100cqh * 16 / 9);  /* script.js 가 다시 잡는다 */
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.sermon-card .sermon-stage { width: 100%; }
.sermon-card .sermon-meta { margin-top: clamp(10px, 1.5vh, 18px); }
/* 목록을 못 구해 재생목록 하나만 걸린 경우 / 넘길 게 없으니 눕히지 않는다 */
.sermon-deck.is-single { perspective: none; cursor: default; }

.sermon-nav {
  position: static;
  translate: none;
  flex: none;
  margin-top: clamp(4px, 0.8vh, 10px);
  color: rgba(255,255,255,.6);
}
.sermon-nav .cards-arrow { color: rgba(255,255,255,.55); }
.sermon-nav .cards-arrow:hover,
.sermon-nav .cards-arrow:focus-visible { color: #fff; }
.sermon-nav .cards-arrow[disabled] { color: rgba(255,255,255,.55); }
/* ②③보다 장수가 많아 레일 한 칸을 좁게 잡는다 */
.sermon-nav .cards-dots button {
  width: clamp(30px, 3.4vw, 48px);
  background: rgba(255,255,255,.3);
}
.sermon-nav .cards-dots button.on { background: #fff; }

.sermon-eng {
  font-family: var(--eng);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.sermon-status {
  padding: 26px 0;
  font-size: 16px;
  color: rgba(255,255,255,.82);
}
.sermon-status a { color: #fff; }

/* 썸네일만 먼저 깔고 재생을 누르는 순간 iframe을 끼운다.
   페이지를 열자마자 유튜브가 붙지 않아 가볍고,
   재생 전까지 추적 쿠키도 심기지 않는다. */
.sermon-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(11,11,14,.45);
  overflow: hidden;
  box-shadow: 0 20px 52px rgba(11,11,14,.3);
}
.sermon-stage img {
  width: 100%; height: 100%;
  object-fit: cover;   /* hqdefault(4:3)의 위아래 검은 띠를 잘라낸다 */
}
.sermon-stage iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.sermon-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 0; border: 0;
  background: transparent;
  cursor: pointer;
}
.sermon-play::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,14,.06), rgba(11,11,14,.48));
  transition: background 0.4s var(--ease-soft);
}
.sermon-play:hover::before { background: linear-gradient(180deg, rgba(11,11,14,0), rgba(11,11,14,.3)); }
.sermon-play i {
  position: relative;
  display: grid; place-items: center;
  width: clamp(48px, 4.4vw, 66px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 32px rgba(11,11,14,.4);
  transition: transform 0.4s var(--ease-soft);
}
.sermon-play:hover i { transform: scale(1.09); }
.sermon-play i::after {
  content: "";
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 15px solid var(--blue);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

/* 설교 정보 / 가운데 정렬이라 세로 바 대신 짧은 가로선을 머리에 둔다
   (선으로 잇는다는 브랜드 문법 그대로) */
.sermon-meta {
  flex: none;
  text-align: center;
}
.sermon-meta::before {
  content: "";
  display: block;
  width: 32px; height: 3px;
  margin: 0 auto clamp(8px, 1.2vh, 13px);
  background: rgba(255,255,255,.85);
}
.sermon-date {
  font-family: var(--eng);
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,.72);
  margin-bottom: 7px;
}
.sermon-title {
  font-family: var(--serif);
  font-size: clamp(19px, calc(1.75vw + 2px), 27px);
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}
.sermon-sub {
  margin-top: 8px;
  font-size: clamp(14px, calc(1.15vw + 2px), 16px);
  line-height: 1.7;
  color: rgba(255,255,255,.7);
}
.sermon-sub b { color: #fff; font-weight: 500; }
.sermon-sub span { margin: 0 8px; color: rgba(255,255,255,.38); }


/* 채널 바로가기 */
.btn-yt {
  flex: none;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 21px;
  background: #fff;
  color: var(--ink);
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.btn-yt:hover { background: var(--ink); color: #fff; }
.btn-yt svg { width: 19px; height: 19px; }

/* 세로가 짧은 화면 / 영상과 설교 정보가 먼저다. 지난 예배는 접는다.
   (폰은 세로가 넉넉해서 남는 자리를 지난 예배가 채운다) */
@media (max-height: 760px) {
}

/* ==========================================================
   모션 최소화 / 애니메이션 없이 즉시 최종 상태
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1; transform: none; }
  .scene-photo-img, .photo-verse, .hero-tagline,
  .hero-mark, .hero-mark svg,
  .vbar, .band,
  .hope-logo {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: inset(0) !important;
  }
  /* 카드 그림자는 '떠 있음'을 알리는 정보라 남기되, 떠오르고 튕기는 과정은 뺀다 */
  .card-edge, .card-tag-in, .band-edge, .band-tag-in, .vbar {
    animation: none !important;
    transform: none;
  }
  .card-edge { box-shadow: var(--lift-rest) !important; }
  .band-edge { box-shadow: var(--lift-up-rest) !important; }
  .scene-bands .band-rise { visibility: visible; transition: none; }
  .scene-bands .band-card::before { box-shadow: var(--sheet-side); transition: none; }
  .card-tag-in, .band-tag-in { opacity: 1 !important; }
  .scene-bands .band-inner > * { opacity: 1 !important; transition: none !important; }
  /* 카드 열림 정도(width/height/opacity)는 JS 인라인이 관리 */
  /* 실선은 '이어짐'을 보여주는 연출 자체라 모션이 없으면 의미가 없다 */
  .scroll-cue, .hero-threads { display: none; }
  /* 카드 열림 정도(opacity)는 JS 인라인이 관리하므로 여기선 제외 */
}

/* ---------- 섹션 타이틀 ---------- */
.sec-kr {
  font-family: var(--serif);
  font-size: clamp(26px, calc(3.4vw + 2px), 44px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

/* ==========================================================
   ⑤ 공동체 & 예배 안내 (리플렛)
   ========================================================== */
.community {
  background: var(--paper);
  padding: clamp(110px, 15vh, 180px) clamp(24px, 6vw, 100px) clamp(130px, 17vh, 200px);
}
.community-head { text-align: center; margin-bottom: clamp(56px, 9vh, 100px); }
.community-intro {
  margin-top: 24px;
  font-size: clamp(16px, calc(1.5vw + 2px), 19px);
  line-height: 1.9;
  color: var(--gray);
}

.pillar-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 44px);
  max-width: 1200px;
  margin: 0 auto;
}
.pcol { border-top: 4px solid var(--blue); padding-top: 22px; }
.pcol h3 {
  font-family: var(--serif);
  font-size: clamp(19px, calc(1.7vw + 2px), 23px);
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
}
.pcol-kr {
  font-family: var(--serif);
  font-size: clamp(16px, calc(1.4vw + 2px), 18px);
  color: var(--ink);
  margin-bottom: 18px;
}
.pcol ul { list-style: none; }
.pcol li {
  position: relative;
  padding-left: 14px;
  font-size: clamp(15px, calc(1.3vw + 2px), 17px);
  line-height: 1.6;
  color: #3c4148;
  margin-bottom: 10px;
}
.pcol li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px;
  background: var(--blue);
}
.pcol li small { color: var(--gray); font-size: 0.85em; }

/* ---------- 푸터 ---------- */
footer {
  background: var(--ink);
  text-align: center;
  padding: clamp(80px, 12vh, 130px) 24px clamp(48px, 7vh, 70px);
}
.footer-lockup { height: 56px; width: auto; margin: 0 auto 36px; }
.footer-verse {
  font-family: var(--serif);
  font-size: clamp(16px, calc(1.6vw + 2px), 20px);
  color: rgba(255,255,255,0.65);
  margin-bottom: 30px;
  letter-spacing: 0.02em;
}
.footer-verse strong { color: #fff; font-weight: 600; }
.footer-verse em { font-style: italic; }
.footer-verse span {
  display: block; margin-top: 10px;
  font-size: 0.72em; opacity: 0.6;
}
footer address {
  font-style: normal;
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.footer-copy { font-size: 14px; color: rgba(255,255,255,0.3); }

/* ==========================================================
   반응형
   ========================================================== */
@media (max-width: 860px) {
  .pillar-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
    --bar-x: 18px;
    --bar-w: 23px;
    /* 선 사이 틈에 이름표가 들어가야 해서 11px → 20px */
    --bar-gap: 20px;
    /* 틈이 좁아 앞장 그림자도 짧게 / 멀리 번지면 틈이 회색으로 찬다 */
    --lift-off: -1px 0 0 0 rgba(0,0,0,0), -3px 0 5px -1px rgba(0,0,0,0), -10px 0 18px -4px rgba(0,0,0,0);
    --lift-rest: -1px 0 0 0 rgba(0,0,0,0.04), -5px 0 9px -2px rgba(0,0,0,0.12), -15px 0 26px -5px rgba(0,0,0,0.17);
    --lift-air: -1px 0 0 0 rgba(0,0,0,0.04), -6px 0 10px -2px rgba(0,0,0,0.14), -18px 0 30px -6px rgba(0,0,0,0.21);
    --hope-w: 84vw;
    /* ③ 윗변 그림자도 ②와 같은 비율로 줄인다 */
    --lift-up-off: 0 -1px 0 0 rgba(0,0,0,0), 0 -3px 5px -1px rgba(0,0,0,0), 0 -10px 18px -4px rgba(0,0,0,0);
    --lift-up-rest: 0 -1px 0 0 rgba(0,0,0,0.04), 0 -5px 9px -2px rgba(0,0,0,0.12), 0 -15px 26px -5px rgba(0,0,0,0.17);
    --lift-up-air: 0 -1px 0 0 rgba(0,0,0,0.04), 0 -6px 10px -2px rgba(0,0,0,0.14), 0 -18px 30px -6px rgba(0,0,0,0.21);
    --tag-h: 26px;
    --sheet-side: 18px 0 18px -18px rgba(0,0,0,0.12);
    --sheet-bot: 46px;
  }

  /* ① 사진: 무지개가 보이게 왼쪽 크롭 */
  .scene-photo-img { object-position: 30% center; }
  .photo-verse {
    --verse-top: calc(var(--header-h) + 4dvh);
    --verse-room: calc(50dvh - var(--hope-w) * 0.1525 - var(--verse-top) - 16px);
    font-size: max(14px, min(21px, calc(var(--verse-room) / 7.7)));
  }
  .hero-tagline {
    white-space: normal; text-align: center;
    width: 86vw; bottom: 88px;
    font-size: 17px; line-height: 1.8;
  }

  /* ② 말씀 / 세로선 카드 (아코디언) */
  .vbar span { font-size: 14px; padding-block: 12px; }
  .card-tag { top: calc(var(--header-h) + 24px); }
  .card-tag-in { font-size: 12.5px; }
  .card-tag-in em { font-size: 11px; margin-inline-end: 7px; }
  .acc-inner { padding: calc(var(--header-h) + 12px) 16px; }
  .bars-verse { font-size: 17px; line-height: 2; }
  .bars-verse cite { font-size: 0.62em; }
  .card-copy { font-size: 14.5px; }
  .card-photo { max-height: 20vh; }

  /* ③ 잇다 / 가로 아코디언 */
  .band { padding: 0 18px; gap: 10px; }
  .band em { font-size: 14px; }
  .band-line { height: 1.5px; }
  .band-inner { padding: 6px 18px 24px; }
  .band-tag { padding: 9px 18px 0; }
  .band-tag-in { font-size: 12.5px; }
  .band-tag-in em { font-size: 11px; margin-inline-end: 7px; }
  .cards-nav { bottom: 8px; gap: 2px; }
  .cards-arrow { width: 30px; height: 30px; }
  .cards-arrow svg { width: 15px; height: 15px; }
  /* ②는 화면 왼쪽 109px(18 + 23×3 + 11×2)를 파란 선 3개가 차지한다.
     좁은 폰에서 레일을 화면 한가운데에 두면 ‹ 가 선에 걸려 묻히므로,
     선 오른쪽 남은 폭의 한가운데 = 카드 본문 한가운데로 옮긴다.
     (③은 밴드가 화면을 가로질러서 그대로 화면 한가운데가 맞다) */
  .scene-bars .cards-nav { left: calc(50% + 54.5px); }

  /* ④ HOPE + 이번 주 주일예배 / 한 화면에 담아야 해서 브랜드 쪽을 줄인다 */
  .scene-logo { gap: 40px; padding: calc(var(--header-h) + 12px) 20px 22px; }
  .hope-brand { gap: 11px; }
  .hope-logo { width: 42vw; }
  /* 폰에서는 레일 한 칸을 더 좁혀 화살표까지 한 줄에 넉넉히 들어오게 */
  .sermon-nav .cards-dots button { width: 26px; }
  .sermon-eng { font-size: 12.5px; letter-spacing: 0.2em; }
  .sermon-title { font-size: 19px; }
  .sermon-sub { font-size: 14px; margin-top: 6px; }
  .sermon-date { font-size: 12.5px; margin-bottom: 5px; }
  .btn-yt { padding: 10px 18px; font-size: 14px; }

  /* 공동체 */
  .pillar-cols { grid-template-columns: 1fr; gap: 32px; }
  .community-intro br { display: none; }

  footer { padding-inline: 20px; }
  .footer-lockup { height: 44px; }
  .footer-verse { line-height: 1.9; }
}

/* ==========================================================
   접근성 / 화면에는 없지만 스크린리더와 문서 구조에는 남는 제목
   ========================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
   ⑥ 예배와 방문 안내
   스크롤 연출을 끝까지 보지 않아도 필요한 정보가 남도록 두는 자리.
   ⑤ 공동체 섹션과 같은 리듬(sec-eng / sec-kr / 파란 윗줄)을 쓴다.
   ========================================================== */
.guide {
  background: #f7f9fb;
  padding: clamp(100px, 14vh, 170px) clamp(24px, 6vw, 100px) clamp(110px, 15vh, 180px);
}
.guide-head { text-align: center; margin-bottom: clamp(48px, 8vh, 88px); }

.guide-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 64px);
  max-width: 1080px;
  margin: 0 auto;
}
.gcol { border-top: 4px solid var(--blue); padding-top: 22px; }
.gcol h3,
.guide-faq h3 {
  font-family: var(--serif);
  font-size: clamp(19px, calc(1.7vw + 2px), 23px);
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
}

.guide-facts {
  display: grid;
  grid-template-columns: minmax(88px, max-content) 1fr;
  gap: 8px 20px;
  margin-bottom: 20px;
  font-size: clamp(15px, calc(1.3vw + 2px), 17px);
  line-height: 1.7;
}
.guide-facts dt { color: var(--gray); }
.guide-facts dd { margin: 0; color: #3c4148; }
.guide-facts a { color: var(--blue); text-decoration: none; }
.guide-facts a:hover { text-decoration: underline; }

.guide-body {
  font-size: clamp(15px, calc(1.3vw + 2px), 17px);
  line-height: 1.95;
  color: #3c4148;
  max-width: 62ch;
}
.guide-body a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(44,163,255,0.35); }
.guide-body a:hover { border-bottom-color: var(--blue); }

.guide-faq {
  max-width: 1080px;
  margin: clamp(48px, 7vh, 84px) auto 0;
  border-top: 4px solid var(--blue);
  padding-top: 22px;
}
.qa-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px clamp(28px, 4vw, 64px);
  margin-bottom: 26px;
}
.qa-q {
  font-family: var(--serif);
  font-size: clamp(16px, calc(1.4vw + 2px), 18px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.qa-q::before { content: "Q. "; font-family: var(--eng); color: var(--blue); }
.qa-a {
  font-size: clamp(15px, calc(1.3vw + 2px), 17px);
  line-height: 1.85;
  color: #5a6068;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 22px;
  font-size: 15px;
}
.footer-nav a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-nav a:hover { color: rgba(255,255,255,0.9); }
.footer-guide { margin-bottom: 14px; }
/* 예장 통합 총회 공식 로고(pck.or.kr CI)를 흰색 단색으로, 저작권 줄 아래 */
.footer-pck { display: block; width: auto; height: 26px; margin: 40px auto 0; opacity: 0.8; }

@media (max-width: 720px) {
  .guide-cols { grid-template-columns: 1fr; }
}

/* --- 공동체의 네 기둥 --- */
.guide-pillars { max-width: 900px; margin: 0 auto 64px; }
.pillar-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.pillar-list li {
  position: relative;
  padding: 0 0 14px 18px;
  border-bottom: 1px solid rgba(11, 11, 14, .08);
  font-size: 17px;
  line-height: 1.85;
  color: #3a3f47;
}
.pillar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.pillar-list li:last-child { border-bottom: 0; }
.pillar-list strong { color: var(--ink); font-weight: 600; }
.footer-brand { display: inline-block; }

/* ==========================================================
   시안 1003: 교회 원고(26-0917) 반영. 왼쪽 가장자리 색 띠 금지.
   ========================================================== */
.val-title {
  font-family: var(--serif);
  font-size: clamp(24px, calc(2.3vw + 2px), 36px);
  font-weight: 500; line-height: 1.5;
  color: var(--blue);
  margin-bottom: 22px;
  word-break: keep-all;
}
.val-copy {
  font-size: clamp(16.5px, calc(1.2vw + 2px), 19px);
  line-height: 1.95;
  color: #3c4148;
  max-width: 30em;
  margin-bottom: 28px;
  word-break: keep-all;
}
.min-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px clamp(28px, 4vw, 64px);
  max-width: 1040px; width: 100%;
  margin-bottom: 24px;
}
.min-col { display: grid; gap: 22px; align-content: start; min-width: 0; }
.min-head {
  font-family: var(--serif);
  font-size: clamp(17px, calc(1.25vw + 2px), 19px); font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.min-head small { font-size: 0.8em; font-weight: 400; color: var(--gray); }
.min-items, .min-list li, .min-dl dd, .min-steps span, .min-note {
  font-size: clamp(15px, calc(1.1vw + 2px), 17px);
  line-height: 1.75;
  color: #3c4148;
  word-break: keep-all;
}
.min-list { list-style: none; }
.min-list li { position: relative; padding-left: 13px; }
.min-list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 4px; height: 4px; background: var(--blue);
}
.min-dl {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 4px 18px; align-content: start;
}
.min-dl dt {
  font-family: var(--serif);
  font-size: clamp(16px, calc(1.15vw + 2px), 18px); font-weight: 600;
  color: var(--ink); line-height: 1.75;
}
.min-steps { list-style: none; counter-reset: step; display: grid; gap: 8px; }
.min-steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 22px 1fr; column-gap: 10px;
}
.min-steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font: 600 13px/22px var(--eng); text-align: center;
  margin-top: 2px;
}
.min-steps b { font-size: clamp(15.5px, calc(1.15vw + 2px), 17.5px); font-weight: 600; color: var(--ink); line-height: 1.6; }
.min-chips {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px;
}
.min-chips li {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 112px;
  padding: 12px 18px;
  background: #f2f8ff;
  border: 1px solid #d5e8fb;
}
.min-chips b { font-family: var(--eng); font-size: 21px; font-weight: 600; letter-spacing: 0.06em; color: var(--blue); }
.min-chips span { font-size: 15px; color: #3c4148; }
.min-note { color: var(--gray); margin-bottom: 22px; }

/* About: 섬기는 사람들 + 위치 */
.staff-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  max-width: 1100px; margin: 0 auto clamp(64px, 9vh, 100px);
  text-align: center;
}
.staff-mark {
  display: grid; place-items: center;
  width: clamp(76px, 7.4vw, 104px); aspect-ratio: 1;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eef6ff;
  font-family: var(--serif); font-size: clamp(26px, calc(2.4vw + 2px), 34px);
  color: var(--blue);
}
.staff-name { font-family: var(--serif); font-size: clamp(17px, calc(1.3vw + 2px), 20px); font-weight: 600; color: var(--ink); }
.staff-role { margin-top: 4px; font-family: var(--eng); font-size: 14.5px; letter-spacing: 0.06em; color: var(--blue); }
.place {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 56px);
  max-width: 900px; margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  background: #f7f9fb;
  border: 1px solid #e3e8ee;
}
.place-mark {
  flex: none;
  display: grid; place-items: center;
  width: clamp(96px, 10vw, 132px); aspect-ratio: 1;
  border: 1px dashed #c3ccd6;
  color: #9aa3ae; font-size: 15px;
  background: #fff;
}
.place-addr { font-family: var(--serif); font-size: clamp(20px, calc(1.8vw + 2px), 25px); font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.place-floors { list-style: none; display: grid; gap: 6px; margin-bottom: 14px; }
.place-floors li { font-size: 16.5px; color: #3c4148; }
.place-floors b {
  display: inline-block; min-width: 34px; margin-inline-end: 10px;
  font-family: var(--eng); font-size: 14px; font-weight: 600;
  color: var(--blue);
}
.place-note { font-size: 15px; color: var(--gray); }

@media (max-width: 560px) {
  .val-title { font-size: 21px; margin-bottom: 14px; }
  .val-copy { font-size: 15.5px; line-height: 1.85; margin-bottom: 20px; }
  .min-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
  .min-col { gap: 12px; }
  .min-head { font-size: 16px; margin-bottom: 2px; }
  .min-items, .min-list li, .min-dl dd, .min-steps span, .min-note { font-size: 14.5px; line-height: 1.65; }
  .min-dl dt { font-size: 15px; line-height: 1.65; }
  .min-dl { gap: 2px 12px; }
  .min-steps b { font-size: 14.5px; }
  .min-steps li { grid-template-columns: 18px 1fr; column-gap: 8px; }
  .min-steps li::before { width: 18px; height: 18px; font-size: 12px; line-height: 18px; }
  .min-chips { gap: 8px; }
  .min-chips li { min-width: 0; flex: 1 1 calc(33% - 8px); padding: 10px 12px; }
  .min-chips b { font-size: 18px; }
  .min-chips span { font-size: 14px; }
  .staff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 12px; }
  .staff-mark { width: 68px; font-size: 24px; margin-bottom: 10px; }
  .staff-name { font-size: 16px; }
  .staff-role { font-size: 13px; }
  .place { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 20px; }
  .place-mark { width: 84px; }
}

/* ==========================================================
   1003b 시안: 형이 고른 다섯 가지(10-03)
   ========================================================== */
/* 첫 화면 큰 제목: 원고 문장을 크게, 교회 이름은 위에 작게 */
.hero-tagline {
  width: min(88vw, 980px);
  white-space: normal;
  text-align: center;
  color: #fff;
  letter-spacing: 0;
  word-break: keep-all;
}
.hero-name {
  display: block;
  margin-bottom: clamp(10px, 1.4vh, 16px);
  font-family: var(--sans);
  font-size: clamp(14px, calc(1vw + 2px), 16px);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.78);
}
.hero-line {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, calc(3.1vw + 2px), 46px);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: #fff;
}

/* 교회 확인이 남은 자리: 가짜 값 대신 회색 점선 알약 */
.tbc {
  display: inline-block;
  padding: 2px 10px;
  border: 1px dashed #b8c1cc;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
  color: #8a93a0;
  background: #fff;
  vertical-align: 1px;
}
.tbc-dark {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.6);
  background: transparent;
}
.place-mark { grid-auto-flow: row; align-content: center; gap: 8px; text-align: center; }
.place-mark .tbc { font-size: 13px; padding: 1px 8px; }
.place-note .tbc { margin-inline-end: 8px; }

/* 네 기둥 자리: 원고의 세 갈래(하나님, 사람, 교회)와 각 페이지 링크 */
.branch-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.branch {
  display: flex; flex-direction: column;
  padding: 22px 22px 20px;
  background: #fff;
  border: 1px solid #e3e8ee;
}
.branch-num {
  font-family: var(--eng); font-size: 14px; font-weight: 600;
  letter-spacing: 0.2em; color: var(--blue);
  margin-bottom: 10px;
}
.branch-name {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  color: var(--ink); margin-bottom: 10px;
}
.branch-name span {
  display: block; margin-top: 4px;
  font-family: var(--eng); font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--gray);
}
.branch-body { font-size: 16.5px; line-height: 1.8; color: #3a3f47; margin-bottom: 16px; flex: 1; }
.branch-link {
  align-self: flex-start;
  font-size: 16px; font-weight: 600; color: var(--blue); text-decoration: none;
}
.branch-link:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .branch-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-tagline { width: 86vw; bottom: 88px; line-height: 1; }
  .hero-name { font-size: 13.5px; letter-spacing: 0.28em; }
  .hero-line { font-size: 26px; line-height: 1.42; }
}
.br-m { display: none; }
@media (max-width: 560px) { .br-m { display: inline; } }

/* 세 갈래 칸: 위아래 칸(예배와 기도회, 자주 묻는 질문)과 같은 폭과 윗선 */
.guide-pillars {
  max-width: 1080px;
  margin: clamp(48px, 7vh, 84px) auto 0;
  border-top: 4px solid var(--blue);
  padding-top: 22px;
}
.guide-pillars h3 {
  font-family: var(--serif);
  font-size: clamp(19px, calc(1.7vw + 2px), 23px);
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
}

/* 가장 작은 폰(320): 히어로 구절 오른쪽 끝에 여유를 둔다 */
@media (max-width: 340px) {
  .photo-verse { font-size: max(14px, min(19.5px, calc(var(--verse-room) / 7.7))); }
}
