/* =============================================================
   MY5K 2026 — style.css
   light theme locked · 단일 브랜드 액센트(레드, data-brand 로 오렌지 전환) · pill/20px/10px radius
   ============================================================= */

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;            /* 한국어 줄바꿈 자연스럽게 */
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { line-height: var(--lh-tight); letter-spacing: -0.03em; color: var(--ink); font-weight: 400; }
strong { font-weight: 700; color: var(--ink); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-px); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: var(--z-skip);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

/* ── Reveal animation ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: var(--text-base);
  line-height: 1; white-space: nowrap; border: none; cursor: pointer;
  border-radius: var(--r-pill); padding: 14px 28px;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.btn i { font-size: 1.2em; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary { background: var(--brand-deep); color: #fff; box-shadow: var(--shadow-card); }
.btn--primary:hover { background: var(--brand-hover); box-shadow: var(--shadow-lift); }

.btn--invert { background: #fff; color: var(--brand-deep); box-shadow: var(--shadow-card); }
.btn--invert:hover { background: var(--ink); color: #fff; }

.btn--ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 2px #fff; }

.btn--text { background: transparent; color: var(--ink); padding: 14px 8px; }
.btn--text:hover { color: var(--brand-deep); }
.btn--text i { transition: transform var(--t-fast); }
.btn--text:hover i { transform: translateX(4px); }

.btn--lg { padding: 17px 34px; font-size: var(--text-lg); }
.btn--sm { padding: 10px 20px; font-size: var(--text-sm); }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block; font-family: var(--font-en); font-weight: 700;
  font-size: var(--text-sm); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-deep); margin-bottom: var(--space-3);
}
.eyebrow--light { color: var(--yellow); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3rem); color: var(--ink); }
.section-title--light { color: #fff; }
.title-accent { color: var(--brand); }   /* 헤드라인 강조 슬로건 (My5K는 즐겁다!) */
/* 브랜드 워드마크: 두꺼우면서 비율 정확한 Archivo Black 사용 (M 대문자·y 소문자·5K cap-height) */
.wm { font-family: var(--font-wm); font-weight: 400; font-size: 0.86em; letter-spacing: -0.01em; }
.section-desc { margin-top: var(--space-4); font-size: var(--text-lg); color: var(--muted); line-height: var(--lh-snug); }

/* ============================ GNB ============================ */
.gnb {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.gnb[data-elevated="true"] { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.gnb__inner { display: flex; align-items: center; gap: var(--space-6); height: 72px; }
.gnb__logo { display: flex; align-items: center; }
.gnb__logo svg { height: 28px; width: auto; display: block; }
.gnb__logo svg path { fill: var(--brand); }   /* 브랜드 색 자동 적용 (레드/오렌지 전환 연동) */
.gnb__logo-text { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-deep); }

.gnb__nav { display: flex; gap: var(--space-6); margin-right: auto; margin-left: var(--space-4); }
.gnb__nav a { position: relative; font-size: var(--text-sm); font-weight: 600; color: var(--body); padding: 6px 2px; transition: color var(--t-fast); }
.gnb__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast); }
.gnb__nav a:hover, .gnb__nav a.is-active { color: var(--ink); }
.gnb__nav a:hover::after, .gnb__nav a.is-active::after { transform: scaleX(1); }

.gnb__utils { display: flex; align-items: center; gap: var(--space-4); }
.gnb__ghost { font-size: var(--text-sm); font-weight: 600; color: var(--muted); transition: color var(--t-fast); }
.gnb__ghost:hover { color: var(--ink); }

/* language toggle */
.gnb__lang { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; font: inherit; cursor: pointer; }
.gnb__lang i { font-size: 1.05rem; }
.drawer__lang { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font: inherit; font-size: var(--text-lg); font-weight: 600; color: var(--ink); padding: 14px 6px; border-radius: var(--r-sm); }
.drawer__lang:hover { background: var(--brand-soft); color: var(--brand-deep); }

.gnb__burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.gnb__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t-base), opacity var(--t-fast); }
.gnb__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gnb__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gnb__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); z-index: var(--z-drawer);
  background: #fff; transform: translateX(100%); transition: transform var(--t-base);
  padding: 96px 28px 32px; overflow-y: auto; box-shadow: var(--shadow-lift);
}
.drawer.is-open { transform: none; }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__nav a { padding: 14px 6px; font-size: var(--text-lg); font-weight: 600; color: var(--ink); border-radius: var(--r-sm); }
.drawer__nav a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.drawer__nav hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
.drawer__nav .btn { margin-top: 12px; }
.drawer-scrim { position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1); background: rgba(20,17,15,.45); }

/* ============================ HERO ============================ */
.hero { padding: 132px 0 var(--section-py); background:
  radial-gradient(120% 90% at 85% 0%, var(--brand-soft) 0%, transparent 55%),
  linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__lettering { width: clamp(240px, 32vw, 360px); height: auto; margin-bottom: var(--space-5); }
.hero__eyebrow { font-family: var(--font-en); font-weight: 700; letter-spacing: .04em; color: var(--brand-deep); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.hero__title { font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 4.6rem); color: var(--ink); letter-spacing: -0.04em; }
.hero__sub { margin: var(--space-6) 0 var(--space-8); font-size: var(--text-lg); color: var(--body); max-width: 30ch; line-height: var(--lh-snug); }
/* 영문은 Black Han Sans 폭이 넓어 살짝 축소 + 본문 폭 확보 */
html[lang="en"] .hero__title { font-size: clamp(2.6rem, 5.4vw, 4rem); letter-spacing: -0.03em; }
html[lang="en"] .hero__sub { max-width: 42ch; }
.hero__cta { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }

.hero__media { position: relative; aspect-ratio: 1/1; }
.hero__photo { position: absolute; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lift); border: 6px solid #fff; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main { inset: 0 0 18% 22%; }
.hero__photo--sub { width: 44%; aspect-ratio: 3/4; left: 0; bottom: 0; z-index: 2; }
.hero__chip {
  position: absolute; top: 6%; right: 2%; z-index: 3; background: var(--brand); color: #fff;
  border-radius: var(--r-card); padding: 16px 20px; box-shadow: var(--shadow-lift); text-align: center;
  transform: rotate(4deg);
}
.hero__chip-num { display: block; font-family: var(--font-en); font-weight: 900; font-size: 1.9rem; line-height: 1; }
.hero__chip-label { display: block; font-size: var(--text-xs); font-weight: 700; margin-top: 4px; line-height: 1.25; }

/* ========================== IMPACT ========================== */
.impact { background: var(--ink-section); color: var(--on-dark); padding: var(--section-py) 0; }
.impact__head { text-align: center; max-width: 620px; margin: 0 auto clamp(36px, 5vw, 60px); }
.impact__title { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3rem); color: #fff; }
.impact__desc { margin-top: var(--space-4); color: var(--on-dark-muted); font-size: var(--text-lg); }
.impact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat { text-align: center; padding: var(--space-6) var(--space-3); }
.stat__num { font-family: var(--font-en); font-weight: 900; color: var(--brand); font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1; letter-spacing: -.02em; display: flex; align-items: baseline; justify-content: center; gap: 4px; white-space: nowrap; }
.stat__num--won { font-size: clamp(1.45rem, 3vw, 2.3rem); }   /* 긴 후원금 숫자: 한 줄 유지 */
.stat__num em { font-family: var(--font-display); font-style: normal; font-size: .42em; color: #fff; }
.stat__num--won em { font-size: .52em; }
.stat__label { margin-top: var(--space-3); color: var(--on-dark-muted); font-size: var(--text-sm); }
.impact__note { text-align: center; margin-top: clamp(28px, 4vw, 44px); color: var(--on-dark-muted); font-size: var(--text-sm); }

/* =========================== WHY / 소개 =========================== */
.why { padding: var(--section-py) 0; background: var(--bg); }
.intro { text-align: center; max-width: 860px; margin: 0 auto clamp(48px, 7vw, 84px); }
.intro__banner { width: min(700px, 92%); height: auto; margin: 0 auto var(--space-8); }
.intro__lead { font-size: clamp(1.1rem, 2.4vw, 1.55rem); font-weight: 700; color: var(--brand);
  line-height: var(--lh-snug); max-width: 36ch; margin: 0 auto; letter-spacing: -0.01em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); counter-reset: s; }
.step { position: relative; padding: var(--space-8) var(--space-6) var(--space-6); background: var(--bg-warm); border-radius: var(--r-card); border: 1px solid var(--line); }
.step__no { font-family: var(--font-en); font-weight: 800; font-size: var(--text-sm); color: var(--brand-deep); letter-spacing: .1em; }
.step__icon { display: block; font-size: 2.6rem; color: var(--brand); margin: var(--space-3) 0 var(--space-4); }
.step__title { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.step__text { color: var(--muted); font-size: var(--text-base); }

/* ========================== STORY ========================== */
.story { padding: var(--section-py) 0; background: var(--bg-warm); }
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--brand-line); }
.tl { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: var(--space-5); padding: var(--space-4) 0; align-items: start; }
.tl::before { content: ""; position: absolute; left: -28px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg-warm); box-shadow: 0 0 0 2px var(--brand-line); }
.tl__year { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); }
.tl__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--space-5) var(--space-6); box-shadow: var(--shadow-sm); }
.tl__stats { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-3); }
.tl__stats span { font-size: var(--text-sm); color: var(--muted); }
.tl__stats strong { font-family: var(--font-en); font-size: 1.1rem; color: var(--brand-deep); }
.tl__badge { background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; padding: 2px 12px; border-radius: var(--r-pill); }
.tl__impact { color: var(--body); }

/* ========================== EVENT ========================== */
.event { padding: var(--section-py) 0; background: var(--bg); }

/* 신청 정보 — 강조 pill-rows */
.reg { display: flex; flex-direction: column; gap: var(--space-3); max-width: 960px; }
.reg__row { display: flex; align-items: center; gap: var(--space-5); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); padding: 11px 24px 11px 11px; }
.reg__badge { flex: none; min-width: 108px; text-align: center; background: var(--brand); color: #fff; font-weight: 800; font-size: var(--text-base); padding: 11px 18px; border-radius: var(--r-pill); }
.reg__val { font-size: var(--text-lg); font-weight: 600; color: var(--ink); }
.reg__val strong { font-weight: 800; }
.reg__muted { color: var(--muted); font-weight: 600; font-size: var(--text-base); margin-left: 4px; }
.reg__tag { display: inline-block; margin-left: 8px; background: var(--brand-soft); color: var(--brand-deep); font-size: var(--text-xs); font-weight: 800; padding: 3px 12px; border-radius: var(--r-pill); vertical-align: middle; }
.reg__row--course { flex-wrap: wrap; }
.reg__dist { flex: none; background: var(--ink); color: #fff; font-family: var(--font-en); font-weight: 800; font-size: var(--text-sm); padding: 8px 16px; border-radius: var(--r-pill); }
.reg__route { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-weight: 700; color: var(--ink); font-size: var(--text-base); }
.reg__arrow { color: var(--brand); font-weight: 800; }

.event__subhead { font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink); margin: clamp(40px, 5vw, 60px) 0 var(--space-5); }

/* 당일 진행 — 3열 카드 */
.schedule { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.schedule li { padding: var(--space-6); background: var(--bg-warm); border-radius: var(--r-card); border: 1px solid var(--line); }
.schedule__time { display: block; font-family: var(--font-en); font-weight: 800; color: var(--brand-deep); font-size: var(--text-lg); line-height: 1.15; margin-bottom: var(--space-3); }
.schedule h3 { font-size: var(--text-lg); margin-bottom: 4px; }
.schedule p { font-size: var(--text-sm); color: var(--muted); }

/* 코스 안내도 (기존 이미지) */
.coursemap { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.coursemap img { width: 100%; height: auto; display: block; }

/* ========================= BENEFITS ========================= */
.benefits { padding: var(--section-py) 0; background: var(--bg-warm); }
.give { margin-top: clamp(40px, 6vw, 64px); }
.give:first-of-type { margin-top: 0; }
.give__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: var(--space-6); }
.give__head h3 { font-size: var(--text-xl); color: var(--ink); }
.give__head .give__count { font-family: var(--font-en); font-weight: 800; font-size: var(--text-sm); color: var(--brand-deep); }
.give__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
.give__grid--photo { grid-template-columns: repeat(3, 1fr); }
.give__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t-fast), box-shadow var(--t-fast); }
.give__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.give__card figure { margin: 0; }
.give__thumb { aspect-ratio: 1/1; background: var(--brand-soft); display: block; }
.give__grid--photo .give__thumb { aspect-ratio: 4/3; }
.give__thumb img { width: 100%; height: 100%; object-fit: cover; }
.give__grid:not(.give__grid--photo) .give__thumb img { object-fit: contain; padding: 12px; }   /* 지급물품: 제품 전체 노출 */
.give__card figcaption { padding: 12px 10px; text-align: center; font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
.give__grid--photo .give__card figcaption { font-size: var(--text-base); }

/* ========================= GALLERY ========================= */
.gallery { padding: var(--section-py) 0; background: var(--ink-section); color: #fff; }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--space-8); }
.gallery__ctrl { display: flex; gap: 10px; }
.gallery__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; transition: background var(--t-fast), border-color var(--t-fast); }
.gallery__btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.gallery__track { display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--container-px) var(--space-6); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track figure { flex: 0 0 clamp(260px, 32vw, 380px); aspect-ratio: 4/3; scroll-snap-align: start; border-radius: var(--r-card); overflow: hidden; background: var(--ink-section-2); }
.gallery__track img { width: 100%; height: 100%; object-fit: cover; }
.gallery__more { margin-top: var(--space-6); color: var(--on-dark-muted); font-size: var(--text-base); }
.gallery__more a { color: var(--yellow); font-weight: 700; margin-left: 8px; }
.gallery__more a:hover { text-decoration: underline; }

/* ========================== APPLY ========================== */
.apply { padding: var(--section-py) 0; background:
  radial-gradient(120% 120% at 0% 0%, var(--brand) 0%, var(--brand-deep) 60%, var(--brand-hover) 100%); color: #fff; }
.apply__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.apply__title { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3.1rem); color: #fff; }
.apply__sub { margin: var(--space-5) auto var(--space-5); font-size: var(--text-lg); color: rgba(255,255,255,.92); max-width: 46ch; }
.apply__period { display: inline-flex; gap: 8px; align-items: baseline; margin-bottom: var(--space-8); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-pill); padding: 8px 20px; font-size: var(--text-sm); color: rgba(255,255,255,.9); }
.apply__period strong { color: #fff; font-family: var(--font-en); }
.apply__cta { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }

/* ========================== FOOTER ========================== */
.footer { background: var(--ink-section); color: var(--on-dark-muted); padding: var(--section-py) 0 var(--space-10); font-size: var(--text-sm); }
.footer__inner { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-12); padding-bottom: var(--space-10); }
.footer__logo { font-family: var(--font-display); font-size: 1.8rem; color: #fff; }
.footer__logo svg { height: 34px; width: auto; display: block; }
.footer__logo svg path { fill: #fff; }
.footer__brand p { margin-top: var(--space-3); }
.footer__sns { display: flex; gap: 10px; margin-top: var(--space-5); }
.footer__sns a { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; font-size: 1.2rem; transition: background var(--t-fast); }
.footer__sns a:hover { background: var(--brand-deep); }
.footer__info { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.footer__info dl { display: flex; flex-direction: column; gap: var(--space-4); }
.footer__info div { display: flex; flex-direction: column; gap: 2px; }
.footer__info dt { color: #fff; font-weight: 700; font-size: var(--text-xs); }
.footer__info dd a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-top: var(--space-8); border-top: 1px solid rgba(255,255,255,.1); }
.footer__links { display: flex; gap: var(--space-6); }
.footer__links a:hover { color: #fff; }
.footer__copy { font-family: var(--font-en); font-size: var(--text-xs); }

/* ============================================================
   MODAL (이용약관 / 개인정보처리방침)
   ============================================================ */
.modal { width: min(760px, 92vw); max-height: 86vh; margin: auto; padding: 0; border: none;
  border-radius: var(--r-card); box-shadow: var(--shadow-lift); overflow: hidden; color: var(--body); }
/* 전역 리셋(* { margin:0 })이 dialog 중앙정렬을 덮어쓰므로 명시적으로 복구 */
.modal[open] { display: flex; flex-direction: column; inset: 0; margin: auto; }
.modal::backdrop { background: rgba(20,17,15,.55); backdrop-filter: blur(2px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 18px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.modal__title { font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink); }
.modal__close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--bg-warm); color: var(--ink); font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), color var(--t-fast); }
.modal__close:hover { background: var(--brand-soft); color: var(--brand-deep); }
.modal__body { padding: 24px clamp(20px,3vw,32px) 32px; overflow-y: auto; line-height: 1.75; }
.modal__body p { margin: 0 0 14px; font-size: .96rem; color: var(--body); }
.modal__body p:first-child { font-weight: 700; color: var(--ink); }
body.modal-open { overflow: hidden; }

/* ============================================================
   PROMO VIDEO
   ============================================================ */
.promo { padding: var(--section-py) 0; background: var(--bg-warm); }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.promo__slogan { font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--brand); letter-spacing: -0.02em; }
.promo__video { position: relative; max-width: 920px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--ink-section); }
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: none; cursor: pointer; background: none; display: block; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-base); }
.video-facade::after { content: ""; position: absolute; inset: 0; background: rgba(20,17,15,.28); transition: background var(--t-fast); }
.video-facade:hover img { transform: scale(1.04); }
.video-facade:hover::after { background: rgba(20,17,15,.14); }
.video-facade__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: clamp(64px, 8vw, 88px); height: clamp(64px, 8vw, 88px); border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: clamp(1.8rem, 3vw, 2.4rem);
  padding-left: 6px; box-shadow: var(--shadow-lift); transition: transform var(--t-fast), background var(--t-fast); }
.video-facade:hover .video-facade__play { transform: translate(-50%, -50%) scale(1.08); background: var(--brand-hover); }
.video-facade:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.promo__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   FAQ (자주 묻는 질문)
   ============================================================ */
.faq { padding: var(--section-py) 0; background: var(--bg); }
.faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.faq__item { background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  cursor: pointer; list-style: none; padding: 18px 24px; font-weight: 700; font-size: var(--text-base); color: var(--ink);
  transition: background var(--t-fast); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--brand-soft); }
.faq__item summary i { flex: none; font-size: 1.1rem; color: var(--brand-deep); transition: transform var(--t-base); }
.faq__item[open] summary i { transform: rotate(180deg); }
.faq__item[open] summary { background: var(--brand-soft); color: var(--brand-deep); }
.faq__item p { padding: 16px 24px 20px; color: var(--body); font-size: var(--text-base); border-top: 1px solid var(--line); background: #fff; }
.faq__more { text-align: center; margin-top: clamp(28px, 4vw, 40px); color: var(--muted); font-size: var(--text-base);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2) var(--space-5); }
.faq__more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-deep); }
.faq__more a:hover { text-decoration: underline; }

/* ============================================================
   APPLY 보강 (단계 미리보기 · 혜택 · D-day)
   ============================================================ */
.apply__dday { display: inline-block; margin-left: 6px; background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: var(--text-xs); padding: 3px 12px; border-radius: var(--r-pill); }
.apply__steps { display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: var(--space-2) var(--space-6); margin: 0 0 var(--space-2); }
.apply__steps li { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: var(--text-base); position: relative; }
.apply__steps li + li::before { content: "→"; position: absolute; left: calc(-1 * var(--space-6) + 6px); color: rgba(255,255,255,.55); font-weight: 800; }
.apply__step-no { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.55);
  font-family: var(--font-en); font-weight: 800; font-size: var(--text-sm); }
.apply__stepnote { color: rgba(255,255,255,.85); font-size: var(--text-sm); margin-bottom: var(--space-8); }
.apply__perks { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-8); }
.apply__perks li { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.92); font-size: var(--text-sm); font-weight: 600; }
.apply__perks i { font-size: 1.15rem; color: var(--yellow); }

/* ============================================================
   IMPACT 인라인 CTA
   ============================================================ */
.impact__cta { text-align: center; margin-top: clamp(20px, 3vw, 32px); }

/* ============================================================
   MOBILE 하단 고정 신청 바 (≤860px, 히어로 이후 표시)
   ============================================================ */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-drawer) - 2);
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 10px var(--container-px);
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateY(110%); transition: transform var(--t-base);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta__info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
  .mobile-cta__info > span { font-size: var(--text-xs); color: var(--muted); font-weight: 600; }
  .mobile-cta__dday { font-family: var(--font-en); font-size: var(--text-sm); color: var(--brand-deep); font-weight: 800; white-space: nowrap; }
  .mobile-cta .btn { flex: none; }
  body.has-mobile-cta { padding-bottom: 72px; }   /* 푸터 가림 방지 */
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .gnb__nav { gap: var(--space-4); }
  .give__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  /* nav → drawer */
  .gnb__nav, .gnb__utils { display: none; }
  .gnb__burger { display: flex; }
  .gnb[data-elevated="false"] { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }

  .hero { padding-top: 108px; }
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero__media { max-width: 440px; margin: 0 auto; width: 100%; }
  .hero__sub { max-width: none; }

  .impact__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .steps { grid-template-columns: 1fr; }
  .schedule { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: var(--space-8); }
}

@media (max-width: 560px) {
  :root { --container-px: 16px; }
  .hero__title { font-size: clamp(2.4rem, 11vw, 3rem); }
  .give__grid, .give__grid--photo { grid-template-columns: repeat(2, 1fr); }
  .reg__row { flex-wrap: wrap; gap: var(--space-2) var(--space-3); padding: 14px 18px; border-radius: var(--r-lg); }
  .reg__badge { min-width: 92px; padding: 9px 14px; font-size: var(--text-sm); }
  .reg__val { font-size: var(--text-base); }
  .tl { grid-template-columns: 64px 1fr; gap: var(--space-3); }
  .tl__year { font-size: 1.3rem; }
  .footer__info { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .apply__facts strong { font-size: var(--text-sm); }
}

/* ============================================================
   EDIT MODE (?edit=1 · 관계자 시연용 섹션 순서 편집)
   운영 배포에서는 파라미터 없이는 어떤 스타일도 적용되지 않음
   ============================================================ */
.edit-mode .gnb, .edit-mode .drawer, .edit-mode .mobile-cta, .edit-mode .skip-link { display: none !important; }
.edit-mode { background: #efe9e1; }
.edit-mode #main { padding: 88px 0 120px; }
.edit-mode #main > section {
  max-height: 128px; overflow: hidden; position: relative;
  width: min(92%, 880px); margin: 12px auto; padding-top: 0;
  border-radius: 16px; border: 2px dashed var(--brand-line);
  box-shadow: var(--shadow-sm); cursor: grab;
  transition: box-shadow var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.edit-mode #main > section:hover { border-color: var(--brand); box-shadow: var(--shadow-card); }
.edit-mode #main > section.is-dragging { opacity: .45; border-color: var(--brand); cursor: grabbing; }
.edit-mode #main > section#hero { cursor: default; border-style: solid; border-color: var(--line-strong); }
.edit-mode #main > section::after {           /* 하단 페이드 — "접힌 카드" 시각화 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.85));
  pointer-events: none;
}

.edit-tag {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border-radius: var(--r-pill);
  padding: 6px 14px 6px 8px; font-size: var(--text-xs); font-weight: 700;
  box-shadow: var(--shadow-card); pointer-events: none;
}
.edit-tag__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand);
  font-family: var(--font-en); font-weight: 800;
}
.edit-tag__grip, .edit-tag__lock { display: inline-flex; align-items: center; gap: 3px; color: rgba(255,255,255,.75); font-weight: 600; }
.edit-tag i { font-size: 1rem; }

.edit-toolbar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 400;
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border-radius: var(--r-pill);
  padding: 10px 12px 10px 20px; box-shadow: var(--shadow-lift);
  white-space: nowrap; max-width: 94vw;
}
.edit-toolbar__hint { font-size: var(--text-sm); font-weight: 600; color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; }
.edit-toolbar button {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: none; border-radius: var(--r-pill); padding: 9px 16px;
  font: inherit; font-size: var(--text-sm); font-weight: 700;
  background: rgba(255,255,255,.14); color: #fff; transition: background var(--t-fast);
}
.edit-toolbar button:hover { background: rgba(255,255,255,.26); }
.edit-toolbar button[data-act="save"] { background: var(--brand); }
.edit-toolbar button[data-act="save"]:hover { background: var(--brand-hover); }

.edit-toast {
  position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%) translateY(8px); z-index: 400;
  background: #fff; color: var(--ink); font-size: var(--text-sm); font-weight: 700;
  border-radius: var(--r-pill); padding: 10px 22px; box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none; transition: opacity var(--t-base), transform var(--t-base);
}
.edit-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 700px) {
  .edit-toolbar { flex-wrap: wrap; justify-content: center; border-radius: var(--r-card); white-space: normal; }
  .edit-toolbar__hint { width: 100%; justify-content: center; margin: 0 0 2px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
