/* 세컨하프 디자인 시스템 v1 (2026-09-23)
   분위기: 단순·따뜻·안정·격조 (사양서). 독자: 40~70대 후원자·목회자.
   하나의 색 세계: 깊은 남색(안정, 로고의 파랑에서) + 금빛(따뜻함) + 차가운 미색 바탕.
   서체: 마루부리(제목, 네이버) + Pretendard(본문). 외부 JS 없음. */

:root {
  --ground: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #e8ebef;
  --line: #d5dae1;
  --ink: #1b232c;
  --ink-2: #4a5665;
  --ink-3: #71808f;
  --navy: #173a5e;
  --navy-2: #0f2740;
  --navy-tint: #e4ebf3;
  --gold: #c9962b;
  --gold-2: #a97a1b;
  --gold-tint: #f6ecd2;
  --focus: #2b6cb0;

  --font-display: 'Hahmlet', 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --radius: 6px;
  --w: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;
  --shadow: 0 10px 30px -12px rgba(23, 58, 94, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; background: var(--ground); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--ground);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-tint); color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
p { margin: 0 0 1.2em; }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.6rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- 머리말 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }
.brand .brand-t { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-t small { font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.02em; }
.brand .brand-t strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }

.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: block; padding: 0.55rem 0.9rem; font-weight: 600; text-decoration: none; color: var(--ink);
  border-radius: var(--radius); white-space: nowrap;
}
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current="true"] { color: var(--navy); background: var(--navy-tint); }
.nav .sub {
  list-style: none; margin: 0; padding: 0.5rem; position: absolute; left: 0; top: calc(100% + 6px);
  min-width: 15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s 0.18s;
}
.nav > ul > li:hover .sub, .nav > ul > li:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav .sub a { display: block; padding: 0.55rem 0.8rem; border-radius: 4px; text-decoration: none; color: var(--ink-2); }
.nav .sub a:hover, .nav .sub a[aria-current="page"] { background: var(--ground); color: var(--navy); }

.btn-menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.75rem; font: inherit; cursor: pointer; }
.btn-menu span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 960px) {
  .nav { display: none; }
  .btn-menu { display: block; }
}
.drawer { display: none; }
.drawer[open] { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--surface); z-index: 99; overflow: auto; padding: 1rem var(--gutter) 3rem; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer > ul > li { border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
.drawer > ul > li > strong { display: block; font-family: var(--font-display); font-size: 1.1rem; padding: 0.4rem 0; }
.drawer .sub a { display: block; padding: 0.55rem 0.5rem; text-decoration: none; color: var(--ink-2); font-size: 1.05rem; }
body.drawer-open { overflow: hidden; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.4rem; min-height: 48px;
  border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid transparent;
  font: inherit; cursor: pointer; transition: transform 0.15s var(--ease), background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy-2); }
.btn-gold:hover { background: var(--gold-2); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-light:hover { background: rgba(255,255,255,0.24); color: #fff; }

/* ---------- 히어로 슬라이드 ---------- */
.hero { position: relative; background: var(--navy-2); color: #fff; min-height: min(78vh, 720px); display: grid; isolation: isolate; }
.hero .slide { grid-area: 1 / 1; display: grid; place-items: center; text-align: center; padding: 5rem var(--gutter) 6rem; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero .slide.is-on { opacity: 1; z-index: 1; }
.hero .slide::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--img) center / cover no-repeat;
}
.hero .slide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,39,64,0.55) 0%, rgba(15,39,64,0.72) 100%);
}
.hero .verse { max-width: 46rem; }
.hero .verse-ko { font-family: var(--font-display); font-size: clamp(1.35rem, 1rem + 1.6vw, 2.15rem); line-height: 1.6; font-weight: 500; margin: 0 0 1rem; text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.hero .verse-en { font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem); line-height: 1.7; color: rgba(255,255,255,0.85); margin: 0 0 1.2rem; font-style: italic; }
.hero .verse-ref { font-size: 0.95rem; letter-spacing: 0.04em; color: var(--gold-tint); margin: 0; }
.hero .verse-ref .en { opacity: 0.8; }
.hero-ctl { position: absolute; left: 0; right: 0; bottom: 1.4rem; z-index: 2; display: flex; justify-content: center; gap: 0.75rem; align-items: center; }
.hero-ctl button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.8); background: transparent; padding: 0; cursor: pointer; }
.hero-ctl button[aria-current="true"] { background: var(--gold); border-color: var(--gold); }
.hero-ctl .pause { width: auto; height: auto; border: 1px solid rgba(255,255,255,0.5); border-radius: 999px; color: #fff; font-size: 0.8rem; padding: 0.15rem 0.7rem; margin-left: 0.5rem; background: rgba(0,0,0,0.2); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0,0,0,0.25); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; }
.hero-arrow:hover { background: rgba(0,0,0,0.45); }
.hero-arrow.prev { left: 1rem; } .hero-arrow.next { right: 1rem; }
@media (max-width: 720px) { .hero-arrow { display: none; } .hero { min-height: 70vh; } }

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-title { margin-bottom: 1.6rem; }
.section-title p { color: var(--ink-2); max-width: 60ch; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy a { color: var(--gold-tint); }
.section.navy h2 { color: #fff; }

/* 홈: 인사말 발췌 (좌 사진 / 우 글) */
.greet { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.greet figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--surface-2); }
.greet figure img { width: 100%; height: 100%; object-fit: cover; }
.greet .sig { font-family: var(--font-display); color: var(--navy); margin-top: 1rem; }
@media (max-width: 860px) { .greet { grid-template-columns: 1fr; } .greet figure { aspect-ratio: 16 / 10; } }

/* 홈: 사업안내 3 (한 줄에 나란히, 세로 구분선) */
.works { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.works > a { padding: 2rem 1.5rem 2rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; display: block; }
.works > a + a { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.works h3 { color: var(--navy); transition: color 0.2s; }
.works > a:hover h3 { color: var(--gold-2); }
.works .quote { font-family: var(--font-display); color: var(--ink-2); font-size: 1.05rem; }
.works .go { color: var(--gold-2); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 860px) {
  .works { grid-template-columns: 1fr; }
  .works > a + a { border-left: 0; padding-left: 0; }
}

/* 홈: 소식 + 영상 */
.news-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 4rem); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: flex; gap: 1rem; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.post-list a { text-decoration: none; color: var(--ink); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-list a:hover { color: var(--navy); text-decoration: underline; }
.post-list time { color: var(--ink-3); font-size: 0.9rem; white-space: nowrap; }
.post-list .pin { color: var(--gold-2); font-size: 0.8rem; font-weight: 700; margin-right: 0.4rem; }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: #fff; }
.video-play span { width: 68px; height: 68px; border-radius: 50%; background: rgba(23,58,94,0.85); display: grid; place-items: center; font-size: 1.6rem; padding-left: 4px; }
.video-play:hover span { background: var(--gold); color: var(--navy-2); }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

/* 홈: 기부금 안내 띠 */
.give { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.give .acct { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.give .acct dt { font-size: 0.85rem; color: var(--gold-tint); letter-spacing: 0.04em; }
.give .acct dd { margin: 0.15rem 0 1rem; font-size: 1.35rem; font-weight: 700; font-family: var(--font-body); }
.give .acct dd:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .give { grid-template-columns: 1fr; } }

/* ---------- 내부 페이지 ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head .crumb { font-size: 0.9rem; color: var(--ink-3); margin-bottom: 0.6rem; }
.page-head .crumb a { color: inherit; text-decoration: none; }
.page-head h1 { margin: 0; }
.page-head .subtitle { color: var(--ink-2); margin: 0.6rem 0 0; font-size: 1.1rem; }
.page-body { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.prose { max-width: 72ch; font-size: 1.1rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: 0.5rem 0 0.5rem 1.2rem; border-left: 3px solid var(--gold); color: var(--ink-2); font-family: var(--font-display); }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.5rem; text-align: left; vertical-align: top; }
.prose th { color: var(--ink-2); font-weight: 600; }
.two-col { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.two-col figure { margin: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.two-col figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .two-col figure { position: static; order: -1; } }

.side-nav { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.side-nav a { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 0.95rem; background: var(--surface); }
.side-nav a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.notice-box { background: var(--gold-tint); border: 1px solid #e6d5a7; border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.5rem 0; }
.prep { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--ink-2); }

/* 핵심가치: 방향성을 중심에 둔 원형 배치 (사양서) */
.values-ring { position: relative; width: min(100%, 760px); aspect-ratio: 1; margin: 1rem auto 2rem; }
.values-ring .center {
  position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; text-align: center; padding: 1.5rem;
  box-shadow: 0 20px 50px -20px rgba(15,39,64,0.6);
}
.values-ring .center h3 { color: var(--gold-tint); font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); margin-bottom: 0.4rem; }
.values-ring .center p { margin: 0; font-size: clamp(0.85rem, 0.75rem + 0.4vw, 1rem); line-height: 1.6; color: rgba(255,255,255,0.9); }
.values-ring .orbit {
  position: absolute; width: 27%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; padding: 0.8rem; box-shadow: var(--shadow);
  left: calc(50% + var(--x) * 36.5% - 13.5%); top: calc(50% + var(--y) * 36.5% - 13.5%);
}
.values-ring .orbit h3 { font-size: clamp(0.9rem, 0.7rem + 0.7vw, 1.15rem); margin: 0 0 0.2rem; color: var(--navy); }
.values-ring .orbit p { margin: 0; font-size: 0.75rem; line-height: 1.45; color: var(--ink-2); display: none; }
.values-ring::before { content: ""; position: absolute; inset: 13.5%; border-radius: 50%; border: 1px dashed var(--line); }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem 2rem; }
.values-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.values-list h3 { color: var(--navy); margin-bottom: 0.3rem; }
.values-list li.center h3 { color: var(--gold-2); }
.values-list p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 640px) { .values-ring { display: none; } }

/* 오시는 길 */
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface-2); }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.contact-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 1.5rem 0; }
.contact-dl dt { color: var(--ink-3); }
.contact-dl dd { margin: 0; font-weight: 600; }

/* 게시판 */
.board { border-top: 2px solid var(--navy); }
.board .row { display: grid; grid-template-columns: 1fr max-content; gap: 1rem; padding: 1rem 0.25rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.board .row a { text-decoration: none; color: var(--ink); font-size: 1.1rem; }
.board .row a:hover { color: var(--navy); text-decoration: underline; }
.board time { color: var(--ink-3); font-size: 0.95rem; }
.board .empty { padding: 3rem 1rem; text-align: center; color: var(--ink-3); }
.pager { display: flex; justify-content: center; gap: 0.35rem; margin: 2rem 0 0; }
.pager a, .pager span { min-width: 2.4rem; text-align: center; padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink-2); background: var(--surface); }
.pager span.cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-head { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.post-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.post-meta { color: var(--ink-3); font-size: 0.95rem; }
.post-nav { margin-top: 2.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.video-card { text-decoration: none; color: inherit; }
.video-card .thumb { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 0.6rem; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.video-card:hover .thumb img { transform: scale(1.03); }
.video-card h3 { font-family: var(--font-body); font-size: 1.05rem; margin: 0; }
.video-card time { color: var(--ink-3); font-size: 0.9rem; }

/* 기부금 명세서 */
.pdf-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); height: clamp(560px, 80vh, 960px); margin: 0 0 0.6rem; }
.pdf-box iframe { width: 100%; height: 100%; border: 0; }
.report-list { list-style: none; margin: 0; padding: 0; }
.report-list li { display: grid; grid-template-columns: max-content 1fr max-content; gap: 1.5rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.report-list .year { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); }
.report-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.report-figs div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.report-figs dt { color: var(--ink-3); font-size: 0.9rem; }
.report-figs dd { margin: 0.2rem 0 0; font-size: 1.3rem; font-weight: 700; }
@media (max-width: 720px) { .report-list li { grid-template-columns: 1fr; gap: 0.5rem; } .report-figs { grid-template-columns: 1fr; } }

/* ---------- 꼬리말 ---------- */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,0.82); padding: 3rem 0 2rem; margin-top: 2rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer .disc { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; color: rgba(255,255,255,0.65); }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* 표 상단 공통 */
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-title-row h2 { margin: 0; }
.section-title-row a { white-space: nowrap; font-weight: 600; text-decoration: none; }

/* =========================================================
   홈 v2 (2026-09-23) — 벤치마크형: 전면 사진 첫 화면 + 걸친 바로가기 카드
   + 숫자 + 사진 카드 + 스크롤 등장. 외부 JS 없음.
   ========================================================= */
.eyebrow { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 0.9rem; }

/* 스크롤 등장 (JS 있을 때만 숨김 → JS 없으면 그대로 보임) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* 머리말: 홈 첫 화면 위에서는 투명 */
.is-home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.is-home .site-header:not(.solid) .brand, .is-home .site-header:not(.solid) .nav > ul > li > a { color: #fff; }
.is-home .site-header:not(.solid) .brand small { color: rgba(255,255,255,0.75); }
.is-home .site-header:not(.solid) .nav > ul > li > a:hover { background: rgba(255,255,255,0.14); color: #fff; }
.is-home .site-header:not(.solid) .btn-menu { border-color: rgba(255,255,255,0.5); }
.is-home .site-header:not(.solid) .btn-menu span { background: #fff; }
.is-home .site-header.solid { background: rgba(255,255,255,0.96); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,39,64,0.5); backdrop-filter: saturate(140%) blur(8px); }
.is-home .site-header .brand img { background: #fff; padding: 2px; }

/* 첫 화면: 화면 가득, 천천히 확대 */
.hero.hx { min-height: min(100svh, 920px); overflow: hidden; }
.hero.hx .slide { place-items: end start; text-align: left; padding: calc(var(--header-h) + 3rem) 0 clamp(8rem, 16vh, 11rem); }
.hero.hx .slide::before { transform: scale(1.12); transition: transform 8s linear; }
.hero.hx .slide.is-on::before { transform: scale(1); }
.hero.hx .slide::after { background: linear-gradient(90deg, rgba(10,28,48,0.86) 0%, rgba(10,28,48,0.55) 55%, rgba(10,28,48,0.25) 100%), linear-gradient(0deg, rgba(10,28,48,0.7) 0%, transparent 45%); }
.hero.hx .verse { max-width: none; }
.hero.hx .verse > * { max-width: 44rem; opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.hero.hx .slide.is-on .verse > * { opacity: 1; transform: none; }
.hero.hx .slide.is-on .verse > :nth-child(2) { transition-delay: 0.15s; }
.hero.hx .slide.is-on .verse > :nth-child(3) { transition-delay: 0.3s; }
.hero.hx .slide.is-on .verse > :nth-child(4) { transition-delay: 0.45s; }
.hero.hx .eyebrow { color: var(--gold); }
.hero.hx .verse-ko { font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem); line-height: 1.45; font-weight: 700; letter-spacing: -0.02em; }
.hero.hx .verse-en { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); }
.hero.hx .hero-ctl { justify-content: flex-start; bottom: clamp(5.5rem, 12vh, 7.5rem); width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto; }
.hero.hx .hero-ctl [data-go] { width: 56px; height: 3px; border: 0; border-radius: 0; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.hero.hx .hero-ctl [data-go] i { position: absolute; inset: 0; width: 0; background: var(--gold); }
.hero.hx .hero-ctl [data-go][aria-current="true"] { background: rgba(255,255,255,0.3); }
.hero.hx .hero-ctl [data-go][aria-current="true"] i { animation: hx-bar 7s linear forwards; }
.hero.hx.paused .hero-ctl [data-go][aria-current="true"] i { animation: none; width: 100%; }
@keyframes hx-bar { to { width: 100%; } }
.hero.hx .hero-arrow { top: auto; bottom: clamp(5rem, 11vh, 7rem); transform: none; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); }
.hero.hx .hero-arrow.prev { left: auto; right: calc(var(--gutter) + 60px); }
.hero.hx .hero-arrow.next { right: var(--gutter); }

/* 바로가기 카드: 첫 화면 아래에 걸침 */
.quick { position: relative; z-index: 5; margin-top: -4.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.quick a { background: var(--surface); border-radius: 20px; padding: 2rem 1rem 1.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; text-decoration: none; color: var(--ink); box-shadow: 0 24px 50px -28px rgba(15,39,64,0.45); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, opacity 0.9s var(--ease); }
.quick svg { width: 52px; height: 52px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.7rem; transition: stroke 0.3s, transform 0.35s var(--ease); }
.quick strong { font-size: 1.12rem; }
.quick small { color: var(--ink-3); font-size: 0.82rem; letter-spacing: 0.06em; }
.quick a:hover { transform: translateY(-8px); background: var(--navy); color: #fff; box-shadow: 0 30px 60px -26px rgba(15,39,64,0.6); }
.quick a:hover svg { stroke: var(--gold); transform: scale(1.08); }
.quick a:hover small { color: rgba(255,255,255,0.7); }
@media (max-width: 860px) { .quick { grid-template-columns: repeat(2, 1fr); margin-top: -3rem; gap: 0.8rem; } .quick a { padding: 1.4rem 0.6rem 1.2rem; border-radius: 16px; } .quick svg { width: 40px; height: 40px; } }

/* 사명: 큰 숫자 */
.mission { padding-top: clamp(4rem, 8vw, 7rem); }
.mission-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mission .num { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 9vw, 10rem); line-height: 1; font-weight: 700; color: var(--navy); margin: 0; letter-spacing: -0.04em; }
.mission .num em { font-style: normal; font-size: 0.3em; color: var(--gold-2); margin-left: 0.2em; letter-spacing: 0; }
.mission h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
@media (max-width: 860px) { .mission-grid { grid-template-columns: 1fr; } }

/* 인사말: 큰 사진 + 금색 액자선 */
.greet-x .greet figure { position: relative; overflow: visible; box-shadow: none; background: none; }
.greet-x .greet figure img { position: relative; z-index: 1; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(15,39,64,0.55); aspect-ratio: 4 / 5; }
.greet-x .greet figure::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 2px solid var(--gold); border-radius: 14px; }
.greet-x h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); }
.greet-x .sig strong { font-size: 1.2rem; }

/* 사업안내: 세로 사진 카드 */
.works-x { background: var(--navy-2); color: #fff; }
.works-x .section-title h2 { color: #fff; }
.works-x .section-title p { color: rgba(255,255,255,0.75); }
.works-x .eyebrow { color: var(--gold); }
.works-x .works { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; border: 0; }
.works-x .works > a { position: relative; min-height: 460px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.works-x .works > a + a { border: 0; padding: 0; }
.works-x .works > a::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat; transition: transform 0.9s var(--ease); }
.works-x .works > a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,28,48,0.95) 0%, rgba(10,28,48,0.35) 55%, rgba(10,28,48,0.1) 100%); transition: background 0.5s; }
.works-x .works > a:hover::before { transform: scale(1.08); }
.works-x .w-in { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.8rem; }
.works-x .w-t { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.works-x .quote { font-family: var(--font-display); color: var(--gold-tint); }
.works-x .desc { color: rgba(255,255,255,0.82); font-size: 0.98rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.4s; }
.works-x .works > a:hover .desc, .works-x .works > a:focus-visible .desc { max-height: 12rem; opacity: 1; }
.works-x .go { color: var(--gold); font-weight: 700; }
@media (hover: none) { .works-x .desc { max-height: none; opacity: 1; } }
@media (max-width: 860px) { .works-x .works { grid-template-columns: 1fr; } .works-x .works > a { min-height: 340px; } .works-x .desc { max-height: none; opacity: 1; } }

/* 소식 + 영상 레일 */
.news-x .section-title-row a { color: var(--gold-2); }
.news-x .post-list li { padding: 1.05rem 0.2rem; transition: background 0.2s, padding 0.3s var(--ease); }
.news-x .post-list li:hover { background: var(--surface); padding-left: 0.8rem; }
.vrail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.8rem; scrollbar-width: thin; }
.vcard { scroll-snap-align: start; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 0.6rem; }
.vcard .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.vcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.vcard .thumb i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(23,58,94,0.85); color: #fff; display: grid; place-items: center; font-style: normal; padding-left: 3px; transition: background 0.3s, transform 0.3s var(--ease); }
.vcard:hover .thumb img { transform: scale(1.06); }
.vcard:hover .thumb i { background: var(--gold); color: var(--navy-2); transform: translate(-50%, -50%) scale(1.1); }
.vcard .t { font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 후원 띠: 사진 배경 */
.give-x { position: relative; isolation: isolate; color: #fff; padding: clamp(4.5rem, 10vw, 8rem) 0; margin-top: clamp(2rem, 5vw, 4rem); }
.give-x::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat; }
.give-x::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,39,64,0.95) 0%, rgba(15,39,64,0.8) 60%, rgba(15,39,64,0.6) 100%); }
@media (min-width: 1024px) and (hover: hover) { .give-x::before { background-attachment: fixed; } }
.give-x h2 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); }
.give-x .eyebrow { color: var(--gold); }
.give-x .cta { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.give-x .acct { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 16px; padding: 1.8rem 2rem; backdrop-filter: blur(6px); }
.give-x .acct dt { font-size: 0.85rem; color: var(--gold-tint); letter-spacing: 0.04em; }
.give-x .acct dd { margin: 0.15rem 0 1rem; font-size: 1.4rem; font-weight: 700; }
.give-x .acct dd:last-child { margin-bottom: 0; }
.is-home .site-footer { margin-top: 0; }
.news-grid > *, .mission-grid > *, .greet > * { min-width: 0; }

/* 모바일 최적화 */
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  body { font-size: 17px; }
  .brand img { width: 36px; height: 36px; }
  .hero.hx { min-height: 88svh; }
  .hero.hx .slide { padding: calc(var(--header-h) + 2rem) 0 7.5rem; }
  .hero.hx .verse-ko { font-size: clamp(1.3rem, 5.6vw, 1.6rem); line-height: 1.55; }
  .hero.hx .verse-en { font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero.hx .eyebrow { font-size: 0.7rem; letter-spacing: 0.16em; }
  .hero.hx .hero-ctl { bottom: 4.6rem; }
  .hero.hx .hero-ctl [data-go] { width: 36px; }
  .hero.hx .hero-arrow { display: none; }
  .quick { margin-top: -2.6rem; }
  .quick strong { font-size: 1rem; }
  .mission { padding-top: 3.5rem; }
  .mission .num { font-size: 5.2rem; }
  .greet-x .greet figure { margin-right: 1rem; }
  .greet-x .greet figure img { aspect-ratio: 4 / 4.2; }
  .greet-x .greet figure::before { inset: 0.9rem -0.9rem -0.9rem 0.9rem; }
  .works-x .works > a { min-height: 300px; }
  .works-x .w-t { font-size: 1.45rem; }
  .vrail { grid-auto-columns: 86%; }
  .give-x .acct { padding: 1.3rem 1.4rem; }
  .give-x .acct dd { font-size: 1.15rem; }
  .give-x .cta .btn { flex: 1 1 auto; justify-content: center; }
  .section-title-row h2 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero.hx .slide::before, .hero.hx .verse > * { transition: none; transform: none; opacity: 1; }
  .hero.hx .hero-ctl [data-go][aria-current="true"] i { animation: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .slide { transition: none; }
  .btn, .nav .sub, .video-card .thumb img { transition: none; }
}
@media print {
  .site-header, .site-footer, .hero-ctl, .hero-arrow, .btn-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
