/* ===== 기본 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #22252a;
  background: #f7f5f1;
  line-height: 1.75;
  word-break: keep-all;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:root {
  --navy: #131c2b;
  --navy2: #1b2a3c;
  --accent: #4a7bd4;   /* UN blue */
  --gold: #c9a45c;
  --ink: #22252a;
  --paper: #f7f5f1;
}

/* ===== 내비게이션 ===== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(19, 28, 43, 0.92);
  backdrop-filter: blur(8px);
  transition: background .3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo { color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.nav-logo span { color: var(--gold); font-weight: 500; font-size: .78rem; margin-left: 6px; letter-spacing: .08em; }
.nav-menu { display: flex; gap: 4px; list-style: none; }
.nav-menu a {
  color: #cfd6e2; font-size: .88rem; font-weight: 600;
  padding: 8px 12px; border-radius: 6px; transition: all .2s;
}
.nav-menu a:hover { color: #fff; background: rgba(255,255,255,.1); }
#nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
#nav-toggle .bar {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 1px; margin: 5px 0;
}

/* ===== 히어로 ===== */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
  opacity: 0; filter: blur(14px);
  transition: opacity 1.6s ease, filter 1.6s ease;
}
.hero-bg.active { opacity: 1; filter: blur(0); }
@keyframes heroZoom { to { transform: scale(1.13); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,25,.55) 0%, rgba(10,15,25,.72) 60%, rgba(19,28,43,.95) 100%);
}
/* 사진 속 인물이 가려지지 않도록 텍스트를 위쪽에 모아서 배치 */
.hero-content { position: relative; z-index: 2; color: #fff; padding: 74px 24px 32px; max-width: 900px; }
.hero-eyebrow {
  font-size: .95rem; letter-spacing: .35em; color: var(--gold);
  font-weight: 700; margin-bottom: 14px;
}
#hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 900; line-height: 1.2; letter-spacing: -.03em;
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
/* "Freedom Is Not Free"를 메인 타이틀로 */
#hero h1.hero-freedom {
  font-size: clamp(2.8rem, 8.4vw, 5.4rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-shadow: 0 6px 40px rgba(0,0,0,.6);
}
.hero-freedom .q { color: var(--gold); font-weight: 700; }
.hero-divider {
  width: 70px; height: 3px; margin: 0 auto 16px;
  background: var(--gold); border-radius: 2px;
}
.hero-sub { font-size: clamp(1.05rem, 2.5vw, 1.35rem); color: #dfe6f2; font-weight: 500; }
.hero-quote { margin-top: 10px; font-size: .95rem; color: #aeb9cc; font-style: italic; }
.hero-btn {
  display: inline-block; margin-top: 18px;
  padding: 14px 36px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px;
  color: #fff; font-weight: 700; font-size: .95rem;
  transition: all .25s;
}
.hero-btn:hover { background: #fff; color: var(--navy); }

/* ===== 히어로 스트립 (전체 영상 가로 밴드) ===== */
.strip-section {
  background: var(--navy);
  color: #e8ebf2;
  padding: 54px 0 60px;
}
.strip-head { margin-bottom: 22px; }
.strip-head .section-eyebrow { color: var(--gold); margin-bottom: 8px; }
.strip-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 900; letter-spacing: -.02em; color: #fff;
}
.strip-wrap { position: relative; }
.strip-track {
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  padding: 4px 24px 14px;
  scrollbar-width: none;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.strip-card {
  flex: 0 0 clamp(230px, 24vw, 300px);
  scroll-snap-align: start;
  background: none; border: none; padding: 0; margin: 0;
  color: inherit; text-align: left; cursor: pointer;
  font: inherit;
}
.strip-media {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #000; box-shadow: 0 8px 26px rgba(0,0,0,.35);
}
.strip-media img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  display: block; transition: transform .4s ease, filter .4s ease;
}
.strip-card:hover .strip-media img { transform: scale(1.05); filter: brightness(1.06); }
/* 재생 배지 */
.play-badge {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(10,15,25,.55);
  border: 2px solid rgba(255,255,255,.85);
  backdrop-filter: blur(2px);
  transition: background .25s ease, transform .25s ease;
}
.play-badge::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 0; height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  transform: translateX(3px);
}
.strip-card:hover .play-badge { background: var(--accent); transform: scale(1.08); }
.strip-caption {
  margin-top: 10px; font-size: .88rem; font-weight: 600;
  color: #c3cad8; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 화살표: 수동 전용, 끝에서 비활성화, 넘칠 게 없으면 숨김 */
.strip-arrow {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%);
  z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, opacity .2s ease;
}
.strip-arrow:hover:not(:disabled) { background: var(--accent); }
.strip-arrow:disabled { opacity: .28; cursor: default; }
.strip-arrow.prev { left: 10px; }
.strip-arrow.next { right: 10px; }
.strip-wrap.no-scroll .strip-arrow { display: none; }

@media (max-width: 900px) {
  .strip-card { flex-basis: 78vw; }
  .strip-arrow { display: none; }
}

/* ===== 공통 섹션 ===== */
.section { padding: 110px 0; }
.section.dark { background: var(--navy); color: #e8ebf2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 800px; }
.section-eyebrow {
  font-size: .82rem; font-weight: 800; letter-spacing: .3em;
  color: var(--accent); margin-bottom: 14px;
}
.section.dark .section-eyebrow { color: var(--gold); }
.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900;
  letter-spacing: -.02em; line-height: 1.3; margin-bottom: 28px;
}
.section h2 .en { display: block; font-size: .95rem; font-weight: 600; color: #8a93a3; margin-top: 8px; letter-spacing: .02em; }
.section p + p { margin-top: 16px; }
.section-desc { max-width: 700px; margin-bottom: 10px; }
strong { color: var(--accent); font-weight: 800; }
.section.dark strong { color: var(--gold); }

/* ===== 타임라인 ===== */
.timeline { margin-top: 50px; position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--gold), rgba(201,164,92,.15));
}
.tl-item { position: relative; padding: 0 0 44px 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -7px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy); border: 3px solid var(--gold);
}
.tl-date { font-weight: 800; color: var(--gold); font-size: 1.02rem; letter-spacing: .02em; margin-bottom: 6px; }
.tl-body h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.tl-body p { color: #c3cad8; font-size: .98rem; max-width: 720px; }

/* ===== 통계 ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 46px 0;
}
.stat {
  background: #fff; border-radius: 16px; padding: 30px 18px;
  text-align: center; box-shadow: 0 6px 24px rgba(19,28,43,.07);
  border-top: 4px solid var(--accent);
}
.stat-num { font-size: 2.6rem; font-weight: 900; color: var(--navy); letter-spacing: -.03em; }
.stat-label { font-size: .9rem; color: #66707f; font-weight: 600; margin-top: 4px; }

.nations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nation-group {
  background: #fff; border-radius: 16px; padding: 26px 28px;
  box-shadow: 0 6px 24px rgba(19,28,43,.07);
}
.nation-group h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; color: var(--navy); }
.nation-group p { color: #4a5261; font-size: .95rem; }

/* ===== 갤러리 ===== */
.gallery {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery a {
  display: block; overflow: hidden; border-radius: 12px;
  position: relative; cursor: zoom-in;
}
.gallery a.tall { grid-row: span 2; }
.gallery a.wide { grid-column: span 2; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}
.gallery a:hover img { transform: scale(1.06); filter: brightness(1.08); }
/* 인물 얼굴이 위쪽에 있는 사진: 잘리지 않도록 윗부분 기준으로 표시 */
.gallery a.focus-top img { object-position: center 18%; }

/* ===== 영상 ===== */
.video-title { margin-top: 56px; font-size: 1.2rem; font-weight: 800; }
.video-grid {
  margin-top: 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.video-grid figure {
  border-radius: 14px; overflow: hidden;
  background: rgba(0,0,0,.25);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}
.section:not(.dark) .video-grid figure { background: #fff; box-shadow: 0 6px 24px rgba(19,28,43,.09); }
.video-grid video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.video-grid figcaption {
  padding: 12px 16px; font-size: .88rem; font-weight: 600;
}
.section.dark .video-grid figcaption { color: #c3cad8; }

/* ===== 에필로그 ===== */
.epilogue {
  background: linear-gradient(180deg, #131c2b 0%, #0d1420 100%);
  color: #e8ebf2; text-align: center;
}
.epilogue h2 { color: #fff; }
.epilogue p { text-align: left; }
.epilogue-quote {
  text-align: center !important; margin-top: 40px;
  font-size: .95rem; letter-spacing: .18em; color: var(--gold);
  font-weight: 700;
}

/* ===== 푸터 ===== */
footer {
  background: #0a0f18; color: #8a93a3; text-align: center;
  padding: 36px 0; font-size: .9rem;
}
.footer-sub { font-size: .8rem; margin-top: 6px; color: #5a6273; }

/* ===== 라이트박스 ===== */
#lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 8, 14, .96);
  display: flex; align-items: center; justify-content: center;
}
#lightbox[hidden] { display: none; }
#lb-stage {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 92vw;
}
#lb-img, #lb-video {
  max-width: 92vw; max-height: 84vh;
  border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,.6);
}
#lb-video { width: min(1100px, 92vw); background: #000; }
#lb-img[hidden], #lb-video[hidden] { display: none; }
#lb-caption {
  color: #dfe6f2; font-size: .95rem; font-weight: 600;
  text-align: center; max-width: 80ch; margin: 0;
}
#lb-caption:empty { display: none; }
#lightbox button {
  position: absolute; background: rgba(255,255,255,.08);
  border: none; color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1;
  transition: background .2s;
}
#lightbox button:hover { background: rgba(255,255,255,.22); }
#lb-close { top: 22px; right: 22px; }
#lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
#lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ===== 리빌 애니메이션 =====
   JS가 정상 동작할 때(html.js)만 숨김 상태로 시작한다.
   JS가 없거나 실패해도 콘텐츠는 항상 보인다. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.on { opacity: 1; transform: none; }

/* ===== 반응형 ===== */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .video-grid { grid-template-columns: 1fr; }
  .nations-grid { grid-template-columns: 1fr; }
  .nav-menu {
    position: fixed; top: 60px; right: 0; left: 0;
    background: rgba(19,28,43,.97);
    flex-direction: column; gap: 0; padding: 10px 0;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: 13px 24px; }
  #nav-toggle { display: block; }
  .section { padding: 80px 0; }
}
