/* SHINE KOREA — 스트리트 포스터 */
:root {
  --ink: #0b0b0c;
  --ink-2: #151517;
  --ink-3: #202023;
  --ink-4: #2c2c30;
  --text: #f5f5f2;
  --muted: #a8a8a3;
  --lime: #d4f53c;
  --lime-deep: #b9dc1a;
  --pink: #f4b6d2;
  --sky: #a9d3e6;
  --danger: #ff7a6b;
  --display: 'Bagel Fat One', 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --gutter: clamp(18px, 5vw, 40px);
  --tab-h: 66px;
  --top-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 8px; }
main { min-height: 100svh; outline: none; overflow-x: clip; }

/* ---------- 상단 ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background .3s, backdrop-filter .3s;
}
.topbar.solid { background: rgba(11, 11, 12, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-word { font-family: var(--display); font-size: 21px; line-height: 1; letter-spacing: .01em; display: flex; align-items: baseline; gap: 6px; }
.brand-word small { font-family: var(--body); font-weight: 800; font-size: 11px; letter-spacing: .22em; color: var(--lime); }
.desk-nav { display: none; }
.menu-btn { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border-radius: 50%; }
.menu-btn span { display: block; width: 22px; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease-out); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 35; background: var(--lime); color: var(--ink);
  padding: calc(var(--top-h) + 24px + env(safe-area-inset-top, 0px)) var(--gutter) calc(var(--tab-h) + 24px);
  overflow-y: auto; animation: menuIn .45s var(--ease-out);
}
.menu nav { display: flex; flex-direction: column; }
.menu a { font-family: var(--display); font-size: clamp(30px, 9vw, 54px); line-height: 1.25; padding: 4px 0; opacity: 0; animation: rise .5s var(--ease-out) forwards; }
.menu a:nth-child(n) { animation-delay: calc(var(--i, 0) * 40ms + 80ms); }
body.menu-open .topbar { color: var(--ink); }
body.menu-open .topbar .menu-btn span { background: var(--ink); }
body.menu-open .brand img { filter: invert(1); }
body.menu-open .brand-word small { color: var(--ink); }
@keyframes menuIn { from { clip-path: circle(0 at calc(100% - 40px) 30px); } to { clip-path: circle(150% at calc(100% - 40px) 30px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 하단 탭 ---------- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  height: calc(var(--tab-h) + var(--safe-b)); padding: 6px 8px var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(11, 11, 12, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -1px 0 rgba(255,255,255,.08);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; transition: color .2s; }
.tabbar svg { width: 24px; height: 24px; fill: currentColor; transition: transform .35s var(--ease-spring); }
.tabbar a.active { color: var(--text); }
.tabbar a.active svg { transform: translateY(-2px) scale(1.08); }
.tabbar a.active::after { content: ''; position: absolute; top: 2px; width: 22px; height: 3px; border-radius: 3px; background: var(--lime); }
.tabbar a:active svg { transform: scale(.88); }
.tab-main svg { fill: var(--lime); }

/* ---------- 공통 조각 ---------- */
.wrap { padding-inline: var(--gutter); max-width: 1240px; margin-inline: auto; }
.section { padding-block: clamp(56px, 12vw, 120px); }
.eyebrow { font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }
.display { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; margin: 0; }
.h-xl { font-size: clamp(44px, 14vw, 128px); }
.h-lg { font-size: clamp(34px, 9.5vw, 76px); }
.h-md { font-size: clamp(26px, 6.6vw, 44px); }
.h-sm { font-size: clamp(21px, 5vw, 28px); line-height: 1.15; }
.lead { font-size: clamp(17px, 4.4vw, 21px); line-height: 1.65; color: #dcdcd8; margin: 0; }
.muted { color: var(--muted); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head .more { font-size: 14px; font-weight: 700; color: var(--lime); white-space: nowrap; padding: 10px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border-radius: 99px;
  font-weight: 800; font-size: 16px; letter-spacing: -0.01em;
  transition: transform .2s var(--ease-out), background .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #e0fa63; }
.btn-ghost { background: rgba(255,255,255,.1); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-dark { background: var(--ink); color: var(--text); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--ink-3); color: var(--text); white-space: nowrap; }
.chip-lime { background: var(--lime); color: var(--ink); }
.chip-pink { background: var(--pink); color: var(--ink); }
.chip-sky { background: var(--sky); color: var(--ink); }
.chip-out { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }

.sticker { display: inline-block; font-family: var(--display); padding: 6px 14px 8px; border-radius: 10px; transform: rotate(-4deg); font-size: 15px; line-height: 1; }

/* 등장 */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="tilt"] { transform: translateY(40px) rotate(4deg); }
[data-reveal="tilt"].in { transform: rotate(var(--rot, 0deg)); }

/* ---------- 홈: 히어로 ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; transform: scale(1.08); animation: heroZoom 14s ease-out forwards; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.05) 30%, rgba(11,11,12,.35) 55%, rgba(11,11,12,.96) 100%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-inner { padding: 0 var(--gutter) calc(36px + 4vh); max-width: 1240px; width: 100%; margin-inline: auto; }
.hero .sticker { background: var(--pink); color: var(--ink); margin-bottom: 18px; }
.hero-title { font-family: var(--display); font-size: clamp(46px, 15vw, 172px); white-space: nowrap; line-height: .9; margin: 0; letter-spacing: -0.02em; }
.hero-title .l { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .l > span { display: inline-block; transform: translateY(105%); animation: lineUp .9s var(--ease-out) forwards; }
.hero-title .l:nth-child(2) > span { animation-delay: .12s; color: var(--lime); transform-origin: left bottom; }
.hero-title .l:nth-child(2) { transform: rotate(-3deg); margin-top: -.04em; }
@keyframes lineUp { to { transform: none; } }
.hero-ko { font-size: clamp(18px, 4.8vw, 26px); font-weight: 700; margin: 18px 0 26px; max-width: 18em; opacity: 0; animation: rise .8s .45s var(--ease-out) forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; opacity: 0; animation: rise .8s .6s var(--ease-out) forwards; }
.hero-cta .btn { flex: 1 1 auto; }
.hero-dday { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 14px; background: var(--ink); color: var(--lime); padding: 4px 9px 5px; border-radius: 99px; margin-left: 2px; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: calc(36px + 4vh); writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; font-weight: 800; color: rgba(255,255,255,.7); display: none; }

/* 흐르는 띠 */
.marquee { overflow: hidden; padding: 14px 0; transform: rotate(-2.2deg); margin: -8px -20px; position: relative; z-index: 2; }
.marquee.pink { background: var(--pink); color: var(--ink); transform: rotate(1.6deg); margin-top: -26px; }
.marquee.lime { background: var(--lime); color: var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marq 26s linear infinite; }
.marquee.pink .marquee-track { animation-direction: reverse; animation-duration: 32s; }
.marquee span { font-family: var(--display); font-size: clamp(22px, 6vw, 40px); line-height: 1; padding-right: 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.marquee span::after { content: '✦'; font-size: .7em; }
@keyframes marq { to { transform: translateX(-50%); } }

/* 다음 행사 */
.next-event { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; min-height: 460px; isolation: isolate; background: var(--ink-3); }
.next-event img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.next-event:hover img { transform: scale(1.04); }
.next-event::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,12,0) 25%, rgba(11,11,12,.92) 88%); }
.next-event .ne-top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.dday { background: var(--lime); color: var(--ink); border-radius: 18px; padding: 10px 14px 12px; text-align: center; transform: rotate(4deg); box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
.dday b { display: block; font-family: var(--display); font-size: 40px; line-height: .9; font-weight: 400; font-variant-numeric: tabular-nums; }
.dday small { font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.next-event .ne-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.ne-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: #dededa; margin: 10px 0 18px; }

/* 비전 — 스크롤로 한 단어씩 켜짐 */
.vision { position: relative; height: 170vh; }
.vision-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.vision-text { font-size: clamp(25px, 7vw, 58px); font-weight: 800; line-height: 1.38; letter-spacing: -0.03em; margin: 18px 0 0; max-width: 20em; }
.vision-text .w { color: #5f5f5c; transition: color .35s; }
.vision-text .w.on { color: var(--text); }
.vision-text .w.hl.on { color: var(--lime); }

/* 순모임 피치 */
.schools { background: var(--sky); color: var(--ink); border-radius: var(--r-lg) var(--r-lg) 0 0; position: relative; overflow: hidden; }
.schools .eyebrow { color: var(--ink); }
.schools .lead { color: #1d2a30; }
.school-search { margin-top: 26px; display: flex; gap: 8px; background: var(--ink); border-radius: 99px; padding: 6px; }
.school-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 16px; padding: 0 14px; outline: none; }
.school-search input::placeholder { color: #9a9a95; }
.school-search .btn { min-height: 46px; padding: 0 20px; }
.region-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.region-row a { background: rgba(11,11,12,.1); color: var(--ink); height: 34px; padding: 0 14px; border-radius: 99px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.region-row a b { font-family: var(--display); font-weight: 400; }
.collage { position: relative; height: 360px; margin-top: 40px; }
.collage img { position: absolute; border-radius: 16px; object-fit: cover; box-shadow: 0 20px 40px -18px rgba(0,0,0,.55); }
.collage img:nth-child(1) { width: 58%; height: 72%; left: 0; top: 8%; --rot: -5deg; }
.collage img:nth-child(2) { width: 50%; height: 62%; right: 0; top: 0; --rot: 4deg; }
.collage img:nth-child(3) { width: 46%; height: 48%; left: 30%; bottom: 0; --rot: -2deg; }
.collage .sticker { position: absolute; z-index: 2; right: 6%; bottom: 14%; background: var(--lime); color: var(--ink); font-size: 18px; transform: rotate(-8deg); }

/* 가로 스크롤 줄 */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 6px var(--gutter) 22px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }

/* 교재 카드 */
.book-card { width: min(78vw, 340px); border-radius: var(--r-lg); padding: 22px; color: var(--ink); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: transform .35s var(--ease-out); }
.book-card:active { transform: scale(.98); }
.book-card.lime { background: var(--lime); }
.book-card.pink { background: var(--pink); }
.book-card.sky { background: var(--sky); }
.book-card .cover { aspect-ratio: 4/3.4; display: grid; place-items: center; }
.book-card .cover img { max-height: 100%; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.35)); transition: transform .5s var(--ease-spring); }
.book-card:hover .cover img { transform: rotate(-3deg) scale(1.04); }
.book-card .tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.book-card h3 { margin: 0; }
.book-card p { margin: 0; font-size: 15px; line-height: 1.55; color: #2a2a26; }

/* 영상 */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: var(--ink-3); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-btn { position: absolute; inset: 0; display: grid; place-items: center; background-size: cover; background-position: center; }
.video-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.video-btn .play { position: relative; width: 74px; height: 74px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; transition: transform .3s var(--ease-spring); box-shadow: 0 10px 30px -6px rgba(0,0,0,.6); }
.video-btn:hover .play { transform: scale(1.1); }
.video-btn .play::after { content: ''; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.video-btn .vlabel { position: absolute; left: 16px; bottom: 14px; font-weight: 800; font-size: 14px; text-align: left; }

/* 기도 카드 */
.prayer { border-radius: var(--r); padding: 20px; color: var(--ink); display: flex; flex-direction: column; gap: 14px; transform: rotate(var(--rot, 0deg)); }
.prayer:nth-child(3n+1) { background: var(--pink); --rot: -1.2deg; }
.prayer:nth-child(3n+2) { background: var(--sky); --rot: 1deg; }
.prayer:nth-child(3n) { background: var(--lime); --rot: -.6deg; }
.prayer p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.55; }
.prayer footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.pray-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--ink); color: var(--text); font-weight: 800; font-size: 14px; position: relative; transition: transform .2s var(--ease-spring); }
.pray-btn:active { transform: scale(.9); }
.pray-btn.done { background: rgba(11,11,12,.85); color: var(--lime); }
.pray-btn b { font-variant-numeric: tabular-nums; }
.burst { position: absolute; pointer-events: none; left: 50%; top: 50%; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: burst .7s var(--ease-out) forwards; }
@keyframes burst { from { transform: translate(-50%,-50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.2); opacity: 0; } }
.prayer-rail .prayer { width: min(76vw, 320px); }

/* 소식 카드 */
.news-card { width: min(72vw, 300px); display: flex; flex-direction: column; gap: 12px; }
.news-card .thumb { aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--ink-3); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card h3 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 800; }
.news-card .src { font-size: 13px; color: var(--muted); }

/* 함께하기 */
.involve-poster { border-radius: var(--r-lg); overflow: hidden; background: var(--pink); margin-bottom: 18px; }
.involve-poster img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.acc { border-radius: var(--r); background: var(--ink-2); margin-bottom: 8px; overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font-weight: 800; font-size: 18px; min-height: 60px; }
.acc-poster { counter-reset: acc; }
.acc-poster .acc summary { font-family: var(--display); font-weight: 400; font-size: 22px; }
.acc-poster .acc summary::before { counter-increment: acc; content: '0' counter(acc); font-size: 13px; background: var(--lime); color: var(--ink); border-radius: 8px; padding: 3px 7px 4px; transform: rotate(-6deg); flex: none; }
.acc-poster .acc summary { justify-content: flex-start; }
.acc-poster .acc summary::after { margin-left: auto; }
.acc-poster .acc:nth-child(even) { transform: rotate(.6deg); }
.acc-poster .acc:nth-child(odd) { transform: rotate(-.4deg); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-family: var(--display); font-size: 26px; color: var(--lime); transition: transform .3s var(--ease-out); line-height: 1; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 20px 20px; color: #d6d6d2; }
.acc .acc-body p { margin: 0 0 14px; }
.acc .acc-body img { border-radius: var(--r-sm); width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- 페이지 머리 ---------- */
.page-head { padding: calc(var(--top-h) + 36px + env(safe-area-inset-top, 0px)) var(--gutter) 28px; max-width: 1240px; margin-inline: auto; position: relative; }
.page-head .display { margin-top: 10px; }
.page-head .lead { margin-top: 14px; max-width: 34em; }
.page-head .poster { position: absolute; right: var(--gutter); top: calc(var(--top-h) + 20px); width: 120px; transform: rotate(8deg); opacity: .95; pointer-events: none; }

/* 행사 목록 */
.event-list { display: grid; gap: 16px; }
.event-row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px; border-radius: var(--r); background: var(--ink-2); align-items: center; transition: background .2s, transform .2s var(--ease-out); }
.event-row:active { transform: scale(.985); }
.event-row:hover { background: var(--ink-3); }
.event-row .ev-img { width: 96px; height: 120px; border-radius: 14px; overflow: hidden; position: relative; }
.event-row .ev-img img { width: 100%; height: 100%; object-fit: cover; }
.event-row .ev-date { position: absolute; left: 6px; top: 6px; background: var(--lime); color: var(--ink); border-radius: 8px; padding: 3px 7px 4px; font-family: var(--display); font-size: 13px; line-height: 1.1; text-align: center; }
.event-row h3 { margin: 6px 0 4px; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.event-row p { margin: 0; font-size: 14px; color: var(--muted); }
.event-row .row-chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* 행사 상세 */
.ev-hero { position: relative; height: 72svh; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.ev-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ev-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,12,.4), rgba(11,11,12,0) 30%, rgba(11,11,12,.95) 92%); }
.ev-hero .wrap { width: 100%; padding-bottom: 28px; }
.ev-hero .dday { position: absolute; right: var(--gutter); top: calc(var(--top-h) + 18px); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.fact { background: var(--ink-2); border-radius: var(--r); padding: 16px; }
.fact span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.fact b { font-size: 16px; line-height: 1.4; }
.fact.wide { grid-column: 1 / -1; }
.cap { margin-top: 10px; }
.cap-bar { height: 10px; border-radius: 10px; background: var(--ink-3); overflow: hidden; }
.cap-bar i { display: block; height: 100%; background: var(--lime); border-radius: 10px; width: 0; transition: width 1.2s var(--ease-out); }
.cap-text { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.block { margin-top: 44px; }
.block h2 { margin: 0 0 16px; }
.hl-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hl-list li { background: var(--ink-2); border-radius: var(--r-sm); padding: 14px 16px; font-weight: 700; display: flex; gap: 12px; align-items: center; }
.hl-list li::before { content: '✦'; color: var(--lime); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px 0; position: relative; }
.timeline li b { font-family: var(--display); font-weight: 400; color: var(--lime); font-size: 17px; }
.lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.artist { position: relative; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; background: var(--ink-3); }
.artist img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .4s; }
.artist:hover img { filter: none; }
.artist span { position: absolute; left: 10px; right: 10px; bottom: 10px; font-family: var(--display); font-size: 17px; line-height: 1.05; background: var(--lime); color: var(--ink); padding: 5px 8px 6px; border-radius: 8px; width: fit-content; transform: rotate(-3deg); }
.pack { display: flex; flex-wrap: wrap; gap: 8px; }
.pack .chip { height: 36px; font-size: 14px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 25; padding: 12px var(--gutter); background: var(--ink-2); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.55); display: flex; gap: 10px; align-items: center; }
.sticky-cta .price { font-weight: 800; font-size: 14px; line-height: 1.3; min-width: 0; }
.done-chip { display: block; color: var(--lime); font-size: 12px; font-weight: 800; }
.sticky-cta .price small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.sticky-cta .btn { flex: 1; max-width: 360px; margin-left: auto; }
.has-sticky { padding-bottom: 130px; }

/* 교재 상세 */
.book-hero { padding: calc(var(--top-h) + 28px) var(--gutter) 34px; color: var(--ink); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.book-hero.lime { background: var(--lime); }
.book-hero.pink { background: var(--pink); }
.book-hero.sky { background: var(--sky); }
.book-hero .cover { max-width: 300px; margin: 6px auto 22px; }
.book-hero .cover img { margin-inline: auto; max-height: 300px; width: auto; filter: drop-shadow(0 24px 28px rgba(0,0,0,.35)); }
.book-hero .eyebrow { color: var(--ink); }
.book-hero .lead { color: #222; }
.units { display: grid; gap: 10px; }
.unit { background: var(--ink-2); border-radius: var(--r); overflow: hidden; }
.unit summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; min-height: 72px; }
.unit summary::-webkit-details-marker { display: none; }
.unit .no { font-family: var(--display); font-size: 30px; color: var(--lime); line-height: 1; }
.unit .ut { font-weight: 800; font-size: 17px; line-height: 1.3; }
.unit .ut small { display: block; font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.unit summary::after { content: '▶'; font-size: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-3); display: grid; place-items: center; color: var(--lime); }
.unit[open] summary::after { content: '▼'; }
.unit .unit-body { padding: 0 16px 16px; }
.unit .unit-body p { margin: 0 0 12px; color: #d6d6d2; }

/* 순모임 */
.filters { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: rgba(11,11,12,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px var(--gutter) 12px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--ink-3); border-radius: 99px; padding: 0 16px; height: 50px; }
.search svg { width: 20px; height: 20px; fill: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 16px; outline: none; height: 100%; }
.search input::placeholder { color: #9a9a95; }
.seg { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { height: 36px; padding: 0 14px; border-radius: 99px; background: var(--ink-2); font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.group-list { display: grid; gap: 12px; padding-top: 10px; }
.group-card { text-align: left; width: 100%; background: var(--ink-2); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; transition: background .2s, transform .2s var(--ease-out); }
.group-card:hover { background: var(--ink-3); }
.group-card:active { transform: scale(.985); }
.group-card .gc-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.group-card h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; }
.group-card .loc { font-size: 13px; color: var(--muted); }
.group-card .gc-info { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: #dcdcd8; }
.group-card .gc-info span { display: inline-flex; align-items: center; gap: 6px; }
.group-card .gc-info svg { width: 17px; height: 17px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pray-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.pray-btn.done svg { fill: var(--lime); stroke: var(--lime); }
.group-card .intro { margin: 0; font-size: 15px; color: #cfcfca; }
.empty { text-align: center; padding: 48px 20px; border-radius: var(--r-lg); background: var(--ink-2); }
.empty .display { color: var(--lime); }
.empty p { color: var(--muted); margin: 12px 0 22px; }
.start-steps { counter-reset: s; display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.start-steps li { counter-increment: s; background: var(--ink-2); border-radius: var(--r); padding: 18px 18px 18px 66px; position: relative; }
.start-steps li::before { content: counter(s); position: absolute; left: 18px; top: 14px; font-family: var(--display); font-size: 32px; color: var(--lime); line-height: 1; }
.start-steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.start-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.start-band { background: var(--lime); color: var(--ink); border-radius: var(--r-lg); padding: 26px 22px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.start-band p { margin: 0; color: #222; }

/* 나눔 탭 */
.tabs { display: flex; gap: 6px; background: var(--ink-2); border-radius: 99px; padding: 5px; width: fit-content; }
.tabs button { height: 42px; padding: 0 20px; border-radius: 99px; font-weight: 800; transition: background .25s, color .25s; }
.tabs button[aria-selected="true"] { background: var(--lime); color: var(--ink); }
.prayer-grid { display: grid; gap: 14px; }
.testi { background: var(--ink-2); border-radius: var(--r); padding: 22px; }
.testi h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; }
.testi p { margin: 0 0 12px; color: #d6d6d2; white-space: pre-line; }
.testi small { color: var(--muted); font-weight: 700; }
.fab { position: fixed; right: var(--gutter); bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 24; height: 56px; padding: 0 22px; border-radius: 99px; background: var(--lime); color: var(--ink); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 14px 30px -8px rgba(0,0,0,.7); transition: transform .25s var(--ease-spring); }
.fab:active { transform: scale(.92); }
.fab b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; }

/* 소개 */
.about-cards { display: grid; gap: 12px; }
.about-card { border-radius: var(--r-lg); padding: 24px; color: var(--ink); }
.about-card:nth-child(1) { background: var(--lime); }
.about-card:nth-child(2) { background: var(--pink); }
.about-card:nth-child(3) { background: var(--sky); }
.about-card h3 { margin: 0 0 8px; }
.about-card p { margin: 0; color: #222; }
.team-photo { border-radius: var(--r-lg); overflow: hidden; }
.team-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; }

/* 기사 */
.article { max-width: 720px; margin-inline: auto; }
.article .cover { border-radius: var(--r-lg); overflow: hidden; margin: 22px 0 26px; }
.article .cover img { width: 100%; max-height: 70vh; object-fit: cover; }
.article .body p { font-size: 17px; line-height: 1.85; color: #e2e2de; margin: 0 0 1.2em; }
.news-list { display: grid; gap: 22px; }
.policy p { font-size: 15px !important; line-height: 1.8 !important; }
.news-list .news-card { width: auto; }

/* 푸터 */
.footer { background: var(--lime); color: var(--ink); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 48px var(--gutter) 40px; margin-top: 40px; overflow: hidden; position: relative; }
.footer .big { font-family: var(--display); font-size: clamp(56px, 22vw, 220px); line-height: .82; margin: 0 0 26px; letter-spacing: -0.02em; }
.footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-weight: 800; }
.footer nav a { padding: 8px 0; }
.footer .contact { margin-top: 24px; font-size: 14px; font-weight: 600; display: grid; gap: 4px; }
.footer .copy { margin-top: 26px; font-size: 12px; font-weight: 700; opacity: .7; }

/* ---------- 바텀시트 / 폼 ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: fade .3s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92svh; background: var(--ink-2); border-radius: 28px 28px 0 0; display: flex; flex-direction: column; animation: sheetUp .45s var(--ease-out); box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
.sheet.closing { animation: sheetDown .3s var(--ease-out) forwards; }
.sheet-root.closing .sheet-backdrop { animation: fade .3s reverse forwards; }
.sheet-handle { width: 44px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.25); margin: 10px auto 0; flex: none; }
.sheet-close { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink-3); font-size: 16px; z-index: 2; }
.sheet-body { overflow-y: auto; padding: 18px var(--gutter) calc(28px + var(--safe-b)); overscroll-behavior: contain; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet h2 { margin: 6px 52px 6px 0; }

.form { display: grid; gap: 18px; margin-top: 20px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.form legend { font-family: var(--display); font-size: 18px; color: var(--lime); margin-bottom: 10px; padding: 0; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-weight: 700; font-size: 14px; }
.field label .opt { color: var(--muted); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--ink-3);
  border: 2px solid transparent; border-radius: 14px; padding: 13px 14px; min-height: 52px; outline: none; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--lime); background: var(--ink-4); }
.field input::placeholder, .field textarea::placeholder { color: #9a9a95; }
.field .err { color: var(--danger); font-size: 13px; font-weight: 600; min-height: 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .hint { font-size: 13px; color: var(--muted); }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; height: 42px; padding: 0 15px; border-radius: 99px; background: var(--ink-3); font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease-spring); }
.pick input:checked + span { background: var(--lime); color: var(--ink); transform: scale(1.04); }
.pick input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { appearance: none; width: 26px; height: 26px; flex: none; align-self: start; border-radius: 8px; background: var(--ink-3); margin: 0; display: grid; place-items: center; transition: background .2s; cursor: pointer; }
.check input:checked { background: var(--lime); }
.check input:checked::after { content: ''; width: 7px; height: 13px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.notice { font-size: 13px; color: var(--muted); background: var(--ink-3); border-radius: 12px; padding: 12px 14px; line-height: 1.6; }
.submit-bar { position: sticky; bottom: calc(-28px - var(--safe-b)); margin: 0 calc(var(--gutter) * -1) calc(-28px - var(--safe-b)); padding: 14px var(--gutter) calc(18px + var(--safe-b)); background: linear-gradient(180deg, rgba(21,21,23,0), var(--ink-2) 30%); z-index: 3; }
.form-error { background: rgba(255,122,107,.12); color: #ffb3a9; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.success { text-align: center; padding: 20px 0 10px; }
.success .big-check { width: 96px; height: 96px; border-radius: 50%; background: var(--lime); margin: 10px auto 22px; display: grid; place-items: center; animation: pop .6s var(--ease-spring); }
.success .big-check::after { content: ''; width: 24px; height: 44px; border: solid var(--ink); border-width: 0 8px 8px 0; transform: rotate(45deg) translate(-4px, -4px); }
.success p { color: #d6d6d2; margin: 12px 0 24px; }
@keyframes pop { from { transform: scale(0) rotate(-30deg); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--r)); } }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); transform: translate(-50%, 30px); opacity: 0; background: var(--text); color: var(--ink); font-weight: 700; padding: 12px 18px; border-radius: 99px; z-index: 90; transition: opacity .3s, transform .4s var(--ease-spring); max-width: calc(100% - 40px); text-align: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loading { min-height: 100svh; display: grid; place-items: center; }
.loading img { width: 64px; animation: spin 1.4s var(--ease-out) infinite; }
@keyframes spin { 50% { transform: rotate(180deg) scale(.85); } 100% { transform: rotate(360deg); } }
.page-enter { animation: pageIn .5s var(--ease-out); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 넓은 화면 ---------- */
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
  .group-list { grid-template-columns: repeat(2, 1fr); }
  .about-cards { grid-template-columns: repeat(3, 1fr); }
  .news-list { grid-template-columns: repeat(2, 1fr); }
  .collage { height: 460px; }
}
@media (min-width: 1000px) {
  :root { --top-h: 72px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .menu-btn { display: none; }
  .desk-nav { display: flex; gap: 4px; }
  .desk-nav a { height: 40px; padding: 0 16px; border-radius: 99px; display: inline-flex; align-items: center; font-weight: 700; font-size: 15px; transition: background .2s, color .2s; }
  .desk-nav a:hover { background: rgba(255,255,255,.1); }
  .desk-nav a.active { background: var(--lime); color: var(--ink); }
  .sticky-cta { bottom: 0; }
  .fab { bottom: 28px; }
  .toast { bottom: 32px; }
  .hero-cta .btn { flex: 0 0 auto; }
  .scroll-cue { display: block; }
  .hero-media video, .hero-media img { object-position: center; }
  .hero-ko { margin-top: 30px; }
  .hero-inner { padding-bottom: 72px; }
  .home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .next-event { min-height: 560px; }
  .rail { margin-inline: 0; padding-inline: 0; }
  .book-card { width: 360px; }
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
  .group-list { grid-template-columns: repeat(3, 1fr); }
  .event-list { grid-template-columns: repeat(2, 1fr); }
  .event-row { grid-template-columns: 140px 1fr; }
  .event-row .ev-img { width: 140px; height: 170px; }
  .ev-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .ev-side { position: sticky; top: calc(var(--top-h) + 20px); align-self: start; }
  .has-sticky { padding-bottom: 40px; }
  .sticky-cta.desk-hide { display: none; }
  .filters { padding-inline: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter))); }
  .book-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: calc(var(--top-h) + 40px) max(var(--gutter), calc((100% - 1240px) / 2)) 50px; }
  .book-hero .cover img { max-height: 420px; }
  .sheet { left: 50%; right: auto; bottom: 50%; width: min(560px, 92vw); transform: translate(-50%, 50%); border-radius: 28px; animation: sheetPop .4s var(--ease-out); max-height: 88vh; }
  .sheet.closing { animation: sheetPopOut .25s forwards; }
  .sheet-handle { display: none; }
  .footer nav { grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 36px; }
  .page-head .poster { width: 200px; }
}
@keyframes sheetPop { from { opacity: 0; transform: translate(-50%, 54%) scale(.96); } to { opacity: 1; transform: translate(-50%, 50%); } }
@keyframes sheetPopOut { to { opacity: 0; transform: translate(-50%, 54%) scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .vision { height: auto; }
  .vision-pin { position: static; height: auto; padding-block: 80px; }
  .vision-text .w { color: var(--text); }
}
