/* ==========================================================
   K-씨름 공공외교 프로젝트 · 기본 스타일
   팔레트: 이벤트 로고의 청(Navy) × 적(Red) + 드림네스트 Nest Green 악센트
   테마 변수는 [data-theme] 속성으로 스왑 (기본 = dreamnest-light)
   폰트: DreamNest 홈페이지와 동일한 Paperlogy (한글·영문 공용)
   ========================================================== */

/* Skip-to-main: 키보드/스크린리더 접근성 */
.skip-to-main {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--c-primary, #1b3d8f);
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.1s;
}
.skip-to-main:focus {
  top: 1rem;
}

/* Paperlogy — DreamNest 홈페이지와 동일. public/Paperlogy-font 에서 직접 로드.
   next.config.mjs 에서 /Paperlogy-font/* 경로에 CORS + 1년 캐시 헤더가 지정되어 있음. */
@font-face {
  font-family: "Paperlogy";
  src: url("/Paperlogy-font/Paperlogy-4Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("/Paperlogy-font/Paperlogy-5Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("/Paperlogy-font/Paperlogy-6SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("/Paperlogy-font/Paperlogy-7Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root,
[data-theme="dreamnest-light"] {
  /* Surfaces */
  --bg: #ffffff;
  --bg-elev: #f5f8fc;
  --bg-card: #ffffff;
  --bg-soft: #eef4fa;

  /* Ink */
  --ink: #0a1f3d;
  --ink-dim: #3e4e66;
  --ink-mute: #7a8aa0;

  /* Borders */
  --line: #d9e3ee;
  --line-soft: #edf2f7;

  /* Brand — 이벤트 로고 */
  --logo-navy: #1b3d8f;        /* 로고 청색 */
  --logo-navy-deep: #0f2659;
  --logo-red: #c8102e;         /* 로고 적색 */
  --logo-red-deep: #8b0a1f;

  /* DreamNest 브랜드 */
  --dream-blue: #0b7bbd;       /* hsl(199 88% 39%) */
  --dream-blue-deep: #085e91;
  --nest-green: #85d42a;       /* hsl(84 67% 50%) */
  --nest-green-deep: #5aa315;

  /* Semantic accents */
  --accent: var(--logo-navy);          /* 주(主) */
  --accent-deep: var(--logo-navy-deep);
  --accent-hot: var(--logo-red);       /* 포인트/강조 */
  --accent-hot-soft: #e3475c;
  --accent-fresh: var(--nest-green);   /* 긍정/진행/성과 */
  --accent-fresh-deep: var(--nest-green-deep);

  /* Paper (광고·버튼 onPrimary) */
  --paper: #ffffff;
  --paper-ink: var(--logo-navy-deep);

  --brand-gradient: linear-gradient(135deg, var(--logo-navy) 0%, var(--logo-red) 100%);
  --brand-gradient-fresh: linear-gradient(135deg, var(--dream-blue) 0%, var(--nest-green) 100%);

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow:
    0 20px 60px -30px rgba(15, 38, 89, 0.18),
    0 2px 6px -2px rgba(15, 38, 89, 0.08);
  --shadow-soft: 0 8px 24px -16px rgba(15, 38, 89, 0.18);

  /* DreamNest 본홈과 동일: Paperlogy 단일 패밀리. 라오어는 Noto Sans Lao 로 폴백 */
  --font-serif: "Paperlogy", "Noto Sans Lao", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, sans-serif;
  --font-sans:  "Paperlogy", "Noto Sans Lao", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --container: 1180px;
  --gutter: 20px;
}

/* 다크 모드 */
[data-theme="dreamnest-dark"] {
  --bg: #0a1830;
  --bg-elev: #0e2041;
  --bg-card: #142a55;
  --bg-soft: #1a3468;

  --ink: #ffffff;
  --ink-dim: #cfdbeb;
  --ink-mute: #8296b2;

  --line: #25396a;
  --line-soft: #1a2c56;

  --logo-navy: #5c8ff0;
  --logo-navy-deep: #3a6cc9;
  --logo-red: #ff5773;
  --logo-red-deep: #d13a55;

  --dream-blue: #4cb0e6;
  --dream-blue-deep: #2f90c9;
  --nest-green: #a5e34f;
  --nest-green-deep: #7dc927;

  --accent: var(--logo-navy);
  --accent-deep: var(--logo-navy-deep);
  --accent-hot: var(--logo-red);
  --accent-hot-soft: #ff8aa0;
  --accent-fresh: var(--nest-green);
  --accent-fresh-deep: var(--nest-green-deep);

  --paper: #ffffff;
  --paper-ink: #0a1830;

  --brand-gradient: linear-gradient(135deg, var(--logo-navy) 0%, var(--logo-red) 100%);
  --brand-gradient-fresh: linear-gradient(135deg, var(--dream-blue) 0%, var(--nest-green) 100%);

  --shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.65),
    0 2px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-soft: 0 10px 30px -16px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}

/* 라오어 가독성 보조 */
html[lang="lo"] body,
html[lang="lo"] .h-display,
html[lang="lo"] .h-section,
html[lang="lo"] .h-sub {
  line-height: 1.7;
}

/* 전체 배경 — 은은한 브랜드 그라디언트 오라 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% -5%, color-mix(in oklab, var(--logo-navy) 10%, transparent), transparent 55%),
    radial-gradient(ellipse at 105% 110%, color-mix(in oklab, var(--logo-red) 8%, transparent), transparent 55%),
    radial-gradient(ellipse at 50% 50%, color-mix(in oklab, var(--nest-green) 4%, transparent), transparent 70%);
  opacity: .9;
}
[data-theme="dreamnest-dark"] body::before {
  background:
    radial-gradient(ellipse at 15% -5%, color-mix(in oklab, var(--logo-navy) 24%, transparent), transparent 55%),
    radial-gradient(ellipse at 105% 110%, color-mix(in oklab, var(--logo-red) 18%, transparent), transparent 55%),
    radial-gradient(ellipse at 50% 50%, color-mix(in oklab, var(--nest-green) 6%, transparent), transparent 70%);
  opacity: .8;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------------- Typography ---------------- */
.h-display {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-size: clamp(36px, 7vw, 78px);
  color: var(--ink);
}
.h-section {
  font-family: var(--font-serif);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 4.2vw, 42px);
  margin: 0;
  color: var(--ink);
}
.h-sub {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  margin: 0;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
  display: inline-block;
}
.body-lg { font-size: 18px; color: var(--ink-dim); line-height: 1.7; text-wrap: pretty; }
.body { color: var(--ink-dim); text-wrap: pretty; }
.muted { color: var(--ink-mute); }

/* ---------------- Layout ---------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
section { position: relative; z-index: 1; }
.section-pad { padding: clamp(56px, 8vw, 110px) 0; }

/* ---------------- Top bar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--bg);
  padding: 2px;
  box-shadow: 0 0 0 1px var(--line-soft);
}
.brand-name { font-size: 15px; line-height: 1.15; color: var(--ink); }
.brand-sub {
  font-size: 10.5px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 3px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-elev);
}
.lang-switch button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-mute);
  transition: all .2s ease;
  font-weight: 500;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active {
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px -2px color-mix(in oklab, var(--logo-navy) 40%, transparent);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
  }
}

.hero-eyebrow { margin-bottom: 20px; }
.hero h1 { margin: 0 0 24px; }
.hero h1 .navy { color: var(--logo-navy); }
.hero h1 .red { color: var(--logo-red); font-weight: 900; }
.hero h1 .green { color: var(--nest-green-deep); }
.hero-lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-dim);
  max-width: 46ch;
  line-height: 1.75;
  text-wrap: pretty;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
}
.hero-meta-key {
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  padding: 2px 7px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border-radius: 999px;
}
.hero-meta-val {
  color: var(--ink);
  font-weight: 500;
}

/* Hero logo showcase */
.hero-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
}
.hero-logo-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 420px;
  display: grid;
  place-items: center;
}
.hero-logo-meaning {
  margin: 22px 0 0;
  padding: 0 6px;
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-dim);
  text-align: center;
  text-wrap: pretty;
  font-weight: 400;
  letter-spacing: -0.01em;
}
@media (min-width: 960px) {
  .hero-logo-meaning { font-size: 13.5px; }
}
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--logo-navy) 18%, transparent), transparent 60%),
    radial-gradient(circle at 70% 70%, color-mix(in oklab, var(--logo-red) 14%, transparent), transparent 60%);
  filter: blur(24px);
  z-index: 0;
  animation: hero-aura 9s ease-in-out infinite alternate;
}
@keyframes hero-aura {
  from { transform: scale(0.95) rotate(-4deg); opacity: .75; }
  to   { transform: scale(1.05) rotate(4deg);  opacity: 1; }
}
.hero-logo {
  position: relative;
  z-index: 1;
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 22px 40px rgba(15, 38, 89, 0.22));
  animation: hero-float 7s ease-in-out infinite alternate;
}
@keyframes hero-float {
  from { transform: translateY(-6px); }
  to   { transform: translateY(6px); }
}
[data-theme="dreamnest-dark"] .hero-logo {
  background: #fff;
  padding: 10px;
  border-radius: 50%;
}

/* ── 전체 너비 카운트다운 바 ──────────────────────────── */
.hero-countdown-row {
  margin-top: 36px;
}

.countdown {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.countdown::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-gradient);
}

/* 내부 3구역 가로 배치 */
.countdown-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 720px) {
  .countdown-inner {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
}

/* 왼쪽: 이벤트 정보 */
.countdown-info {
  flex: 1;
  min-width: 0;
}
.countdown-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.countdown-title {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.25;
  margin: 5px 0 2px;
  color: var(--ink);
}
.countdown-sub { font-size: 13px; color: var(--ink-mute); }

/* 중앙: 타이머 셀 */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex-shrink: 0;
}
@media (min-width: 720px) {
  .countdown-grid { gap: 10px; }
}
.cd-cell {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px 8px 9px;
  text-align: center;
  min-width: 62px;
}
.cd-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.cd-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 7px;
  font-weight: 600;
}

/* 완료 메시지 */
.countdown-past {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink-mute);
  text-align: center;
  padding: 12px 0;
  flex: 1;
}

/* 오른쪽: 날짜 + 장소 */
.countdown-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
  padding-left: 0;
}
@media (min-width: 720px) {
  .countdown-right {
    padding-left: 28px;
    border-left: 1px dashed var(--line);
    min-width: 160px;
  }
}

.countdown-date-badge {
  font-family: var(--font-serif);
  line-height: 1;
}
.countdown-date-badge .d {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--accent-hot);
  letter-spacing: -.02em;
}
.countdown-date-badge .m {
  display: block;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 4px;
  font-weight: 600;
}

.countdown-venue {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  align-items: flex-start;
}
.countdown-venue svg { flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.countdown-venue b { color: var(--ink); font-weight: 700; display: block; }

/* Hero decorative — 씨름 원 */
.hero-ring {
  position: absolute;
  pointer-events: none;
  right: -200px;
  top: 40%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 1px dashed color-mix(in oklab, var(--accent) 28%, transparent);
  z-index: 0;
  opacity: .5;
}
.hero-ring::before {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--accent-hot) 18%, transparent);
}
.hero-ring::after {
  content: "";
  position: absolute;
  inset: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--nest-green) 8%, transparent), transparent 70%);
}
@media (max-width: 959px) {
  .hero-ring { right: -260px; top: 60%; width: 520px; height: 520px; opacity: .25; }
}

/* ---------------- About / Why Laos ---------------- */
.about {
  background: var(--bg-elev);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; }
}
.about-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.stat {
  padding: 22px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.stat-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.pillar-list {
  display: grid;
  gap: 14px;
}
.pillar {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, border-color .25s ease;
}
.pillar:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
}
.pillar-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 30px;
  color: var(--accent-hot);
  line-height: 1;
  font-feature-settings: "tnum";
}
.pillar h4 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.pillar p { margin: 0; font-size: 14.5px; color: var(--ink-dim); line-height: 1.65; }

/* Unesco callout */
.unesco-seal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 12px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-soft);
  font-weight: 500;
}
.unesco-seal .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-hot) 25%, transparent);
}

/* ---------------- Partners ---------------- */
.partners {
  background: var(--bg-elev);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.partner-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 720px) { .partner-row { grid-template-columns: repeat(3, 1fr); } }

.partner {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  box-shadow: var(--shadow-soft);
}
.partner:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
  box-shadow: var(--shadow);
}
.partner::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 3px; width: 48px;
  background: var(--brand-gradient);
}
.partner-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}
.partner h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.2;
}
.partner h3 .en {
  display: block;
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 4px;
  text-transform: uppercase;
}
.partner p {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.65;
  margin: 16px 0 0;
}
.partner-lead {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-weight: 500;
}
.partner-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--bg-card) 88%, var(--line));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -12px color-mix(in oklab, var(--ink) 35%, transparent);
}
.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
/* Fallback when list item has no logo (text mark) */
.partner-logo:not(:has(img)) {
  background: var(--brand-gradient);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--logo-navy) 50%, transparent);
}
.partner:nth-child(2) .partner-logo:not(:has(img)) {
  background: linear-gradient(135deg, var(--logo-red) 0%, var(--logo-navy) 100%);
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--logo-red) 50%, transparent);
}
.partner:nth-child(3) .partner-logo:not(:has(img)) {
  background: var(--brand-gradient-fresh);
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--nest-green) 50%, transparent);
}

/* MOU bar */
.mou-stack {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mou-bar {
  margin-top: 0;
  padding: 20px 24px;
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--nest-green) 10%, transparent), transparent);
  border: 1px solid var(--line);
  border-left: 3px solid var(--nest-green);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mou-bar .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nest-green-deep);
  font-weight: 700;
}
.mou-bar .title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.mou-bar .date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); font-weight: 500; }

/* ---------------- Timeline ---------------- */
.timeline-wrap {
  background: var(--bg-elev);
  border-top: 1px solid var(--line-soft);
}
.timeline {
  position: relative;
  margin-top: 50px;
  padding-left: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hot) 40%, var(--line) 90%, transparent 100%);
}

.tl-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 40px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 9px;
  top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 2px solid var(--line);
  box-shadow: 0 0 0 4px var(--bg-elev);
}
.tl-item.is-current .tl-dot {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  box-shadow:
    0 0 0 4px var(--bg-elev),
    0 0 0 9px color-mix(in oklab, var(--accent-hot) 22%, transparent);
  animation: pulse 2.5s ease-in-out infinite;
}
.tl-item.is-past .tl-dot {
  background: var(--nest-green);
  border-color: var(--nest-green);
}
.tl-item.is-past .tl-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 40%, #fff 40% 45%, transparent 45%),
    linear-gradient(45deg, transparent 55%, #fff 55% 60%, transparent 60%);
  opacity: .95;
}
.tl-item.is-future .tl-dot { border-color: var(--line); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--bg-elev), 0 0 0 9px color-mix(in oklab, var(--accent-hot) 22%, transparent); }
  50%      { box-shadow: 0 0 0 4px var(--bg-elev), 0 0 0 16px color-mix(in oklab, var(--accent-hot) 0%, transparent); }
}

.tl-when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.tl-tag {
  font-size: 9.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-hot);
  color: #fff;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.tl-item.is-past .tl-tag { background: var(--nest-green-deep); color: #fff; }
.tl-item.is-future .tl-tag { display: none; }

.tl-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  margin: 8px 0 6px;
  color: var(--ink);
  line-height: 1.3;
}
.tl-desc { font-size: 14.5px; color: var(--ink-dim); line-height: 1.65; margin: 0; max-width: 58ch; }

@media (min-width: 960px) {
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .tl-item {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    padding: 0 0 40px 0;
  }
  .tl-item > .tl-body { grid-column: 3; padding-left: 34px; }
  .tl-item.tl-left > .tl-body {
    grid-column: 1;
    padding-left: 0;
    padding-right: 34px;
    text-align: right;
  }
  .tl-item.tl-left .tl-when { justify-content: flex-end; }
  .tl-dot {
    left: 50%;
    transform: translateX(-50%);
    top: 4px;
  }
}

/* ---------------- Progress Updates (NEW) ---------------- */
.updates {
  background: var(--bg);
}
.updates-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 720px) { .updates-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .updates-row { grid-template-columns: repeat(3, 1fr); } }

.update-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.update-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
  box-shadow: var(--shadow);
}
.update-thumb {
  aspect-ratio: 16 / 9;
  background: var(--brand-gradient);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 42px;
  letter-spacing: -.02em;
}
.update-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,.18), transparent 55%);
  pointer-events: none;
}
.update-card:nth-child(2n) .update-thumb {
  background: linear-gradient(135deg, var(--logo-red) 0%, var(--logo-navy) 100%);
}
.update-card:nth-child(3n) .update-thumb {
  background: var(--brand-gradient-fresh);
}
.update-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.update-when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.update-when .badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--nest-green) 18%, transparent);
  color: var(--nest-green-deep);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.update-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  margin: 10px 0 6px;
}
.update-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0;
}

.gallery-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-align: center;
}

/* ---------------- Cheer Wall (응원 보내기) ---------------- */
.cheerwall {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.cheerwall::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90%);
  height: 1px;
  background: var(--brand-gradient);
  opacity: .5;
}

/* 공용 버튼: 이전 JoinUs 스타일에서 재사용되던 것들을 유지 */
.btn-primary,
.btn-ghost {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 6px 16px -8px color-mix(in oklab, var(--logo-navy) 55%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; filter: none; }
.btn-primary.is-ok { background: linear-gradient(135deg, var(--nest-green-deep) 0%, var(--nest-green) 100%); color: #0a1f3d; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── 섹션 자체 패딩 (section-pad 대신 직접 제어) ──────── */
.cheerwall {
  padding: clamp(36px, 5vw, 64px) 0;
}

/* ── 섹션 헤더: 좌(제목) / 우(설명) 2열 ──────────────── */
.cheer-section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}
@media (min-width: 760px) {
  .cheer-section-head {
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
  }
}
.cheer-section-title-group .h-section {
  margin: 0;
  white-space: pre-line;
}
.cheer-section-lede {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.7;
  max-width: 38ch;
  text-wrap: pretty;
}
@media (max-width: 759px) {
  .cheer-section-lede { display: none; }
}

/* ── 2컬럼 레이아웃: 폼 | 미니 리스트 ────────────────── */
.cheer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
@media (min-width: 920px) {
  .cheer-layout { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}

/* 폼 카드 */
.cheer-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.cheer-form-wrap::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--brand-gradient);
  opacity: .85;
}

.cheer-form { display: flex; flex-direction: column; gap: 14px; }
.cheer-row { display: flex; flex-direction: column; gap: 6px; }
.cheer-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cheer-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.cheer-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
}
.cheer-input,
.cheer-textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  outline: none;
  resize: vertical;
}
.cheer-input:focus,
.cheer-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.cheer-textarea { min-height: 110px; }

.cheer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cheer-privacy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  flex: 1;
  min-width: 200px;
}
.cheer-footer .btn-primary { flex: 0 0 auto; }
.cheer-error {
  padding: 8px 12px;
  background: color-mix(in oklab, var(--logo-red) 10%, var(--bg));
  border: 1px solid color-mix(in oklab, var(--logo-red) 35%, var(--line));
  color: var(--logo-red-deep);
  border-radius: 10px;
  font-size: 12.5px;
}

/* ── 월(Wall) 오른쪽 카드 ────────────────────────────── */
.cheer-wall-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.cheer-wall-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  gap: 12px;
}
.cheer-wall-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
}
.cheer-wall-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cheer-wall-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
}
.cheer-pause {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-dim);
  cursor: pointer;
  transition: all .2s ease;
}
.cheer-pause:hover { border-color: var(--accent); color: var(--accent); }

.cheer-placeholder {
  padding: 28px 18px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
}

/* ── 미니 카드 리스트 ─────────────────────────────────── */
.cheer-mini-list {
  display: flex;
  flex-direction: column;
}
.cheer-mini-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s ease;
}
.cheer-mini-item:last-child { border-bottom: none; }
.cheer-mini-item:hover { background: var(--bg-elev); }

.cheer-mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.cheer-mini-body { flex: 1; min-width: 0; }
.cheer-mini-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.cheer-mini-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 0;
  min-width: 0;
  flex: 1;
}
.cheer-mini-name {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(140px, 42vw);
}
.cheer-mini-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  flex-shrink: 0;
}
.cheer-mini-msg {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-dim);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 롤링 스트립 ──────────────────────────────────────── */
.cheer-rolling {
  position: relative;
  margin-top: 0;
}
.cheer-rolling-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to right,
    var(--bg-card) 0%, transparent 6%,
    transparent 94%, var(--bg-card) 100%);
}
.cheer-track {
  display: flex;
  gap: 12px;
  padding: 4px 18px 12px;
  overflow-x: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cheer-track::-webkit-scrollbar { display: none; }

.cheer-card {
  flex: 0 0 auto;
  width: min(240px, 72vw);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px 14px;
  box-shadow: 0 4px 14px -10px rgba(15,38,89,.2);
  transition: transform .3s ease, border-color .3s ease;
}
.cheer-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line));
}
.cheer-card-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 8px;
}
.cheer-card-like {
  flex-shrink: 0;
  margin-left: auto;
  padding-top: 1px;
}
.cheer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.cheer-meta { flex: 1; min-width: 0; }
.cheer-name {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cheer-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  margin-top: 1px;
}
.cheer-message {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-dim);
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 좋아요 버튼 ──────────────────────────────────────── */
.cheer-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink-mute);
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .12s ease;
  user-select: none;
}
.cheer-like-btn:hover:not(:disabled) {
  color: #c8102e;
  border-color: #c8102e;
  background: color-mix(in oklab, #c8102e 8%, var(--bg-elev));
}
.cheer-like-btn:disabled {
  cursor: default;
}
.cheer-like-btn.is-liked {
  color: #c8102e;
  border-color: color-mix(in oklab, #c8102e 40%, var(--line));
  background: color-mix(in oklab, #c8102e 8%, var(--bg-elev));
}
/* 클릭 시 터지는 애니메이션 */
.cheer-like-btn.is-burst {
  animation: like-burst .45s ease;
}
@keyframes like-burst {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.35); }
  60%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.cheer-like-count {
  line-height: 1;
}
.cheer-like-btn--compact {
  padding: 3px 7px 3px 5px;
  gap: 4px;
  font-size: 10.5px;
}

/* ── 전체 너비 롤링 (배경 페이드 색 override) ─────────── */
.cheer-rolling-fullwidth {
  position: relative;
  margin-top: 16px;
}
.cheer-rolling-fullwidth .cheer-rolling-fade {
  background: linear-gradient(to right,
    var(--bg) 0%, transparent 8%,
    transparent 92%, var(--bg) 100%);
}

/* ── 모바일 (< 640px) ─────────────────────────────────── */
@media (max-width: 639px) {
  .cheerwall { padding: clamp(28px, 6vw, 44px) 0; }
  .cheer-layout { gap: 12px; }
  .cheer-form-wrap { padding: 18px 14px; }
  .cheer-wall-head { padding: 12px 14px; }
  .cheer-mini-item { padding: 10px 14px; gap: 9px; }
  .cheer-card { width: min(220px, 80vw); }
  .cheer-wall-meta { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
}

.share-hashtag {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-align: center;
}
.share-hashtag b { color: var(--accent-hot); font-weight: 600; }

/* ---------------- Donate strip (후원 CTA)
   버튼 = shadcn Button(variant 기본) + class 오버라이드:
   bg-gradient-to-r from-purple-600 to-blue-500 hover:from-purple-700 hover:to-blue-600
   + inline-flex … h-10 px-4 py-2 text-sm font-medium rounded-md 등
   ---------------- */
.donate-strip {
  background: var(--bg-elev);
  text-align: center;
  position: relative;
  border-top: 1px solid var(--line-soft);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.donate-strip-inner {
  max-width: min(52ch, 100%);
  margin: 0 auto;
}
.donate-strip-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.donate-strip-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4.2vw, 1.65rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.35;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.donate-strip-lede {
  margin: 0 0 22px;
  font-size: clamp(15px, 3.8vw, 16px);
  line-height: 1.7;
  color: var(--ink-dim);
  text-wrap: pretty;
}

/* shadcn button + 그라데이션 (링크이므로 type=button / dialog 속성은 생략) */
.donate-strip-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem; /* Tailwind rounded-md — shadcn Button */
  font-size: 0.875rem;
  line-height: 1.25;
  font-weight: 500;
  font-family: var(--font-sans);
  min-height: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  color: #fafafa; /* primary-foreground 근사 */
  text-decoration: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background-image: linear-gradient(to right, #9333ea, #3b82f6);
  background-color: transparent;
  transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.donate-strip-btn:hover {
  background-image: linear-gradient(to right, #7e22ce, #2563eb);
}
.donate-strip-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg-elev),
    0 0 0 4px color-mix(in oklab, #9333ea 65%, var(--ink));
}
.donate-strip-btn:active {
  opacity: 0.92;
}
/* [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 + lucide mr-2 */
.donate-strip-btn-icon {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

@media (max-width: 639px) {
  .donate-strip.section-pad {
    padding-top: clamp(40px, 11vw, 72px);
    padding-bottom: clamp(44px, 12vw, 80px);
  }
  .donate-strip-inner {
    text-align: center;
  }
  .donate-strip-lede {
    margin-bottom: 20px;
  }
  .donate-strip-btn {
    width: 100%;
    max-width: 100%;
    min-height: 2.75rem;
    height: auto;
    padding: 0.75rem 1.125rem;
    white-space: normal;
    text-align: center;
  }
}

/* ---------------- Footer ---------------- */
footer {
  padding: 44px 0 56px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-elev);
  color: var(--ink-mute);
  font-size: 12.5px;
  font-family: var(--font-mono);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg);
  padding: 2px;
  box-shadow: 0 0 0 1px var(--line-soft);
}
.footer-brand .name {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
}
.footer-brand .sub {
  color: var(--ink-mute);
  font-size: 11px;
  margin-top: 3px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
footer .credit { max-width: 52ch; line-height: 1.7; }
.footer-aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  text-align: right;
}
footer a {
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}
footer a:hover { color: var(--accent); border-color: var(--accent); }
.footer-home {
  font-weight: 600;
  color: var(--ink);
}
.footer-home:hover {
  color: var(--accent);
}
.footer-orgs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11.5px;
  color: var(--ink-mute);
}
.footer-orgs span { color: var(--ink-dim); font-weight: 500; }

/* ---------------- Tweaks panel ---------------- */
.tweaks {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: 12px;
  max-width: calc(100vw - 32px);
}
.tweaks h5 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.tweaks .theme-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tweak-swatch {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s ease;
}
.tweak-swatch:hover { color: var(--ink); }
.tweak-swatch.is-active { border-color: var(--accent); color: var(--accent); }
.tweak-swatch .chip {
  width: 14px; height: 14px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,.08);
}
.layout-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo, .hero-logo-wrap::before { animation: none !important; }
}

/* ---------------- utility ---------------- */
.vstack > * + * { margin-top: var(--gap, 18px); }
.divider {
  border: 0;
  height: 1px;
  background: var(--line-soft);
  margin: 0;
}
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── 히어로 모바일 조정 (< 640px) ──────────────────────── */
@media (max-width: 639px) {
  .hero {
    padding: 40px 0 28px;
  }
  .hero-countdown-row {
    margin-top: 24px;
  }
  .countdown {
    padding: 18px 18px 20px;
  }
  .countdown-inner {
    gap: 16px;
  }
  .countdown-right {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
  }
  .countdown-date-badge .d { font-size: 26px; }
  .cd-cell { min-width: 0; padding: 10px 4px 8px; }
  .hero-meta {
    gap: 6px;
  }
  .hero-meta-pill {
    font-size: 11px;
    padding: 4px 10px 4px 6px;
  }
}

/* compact layout 변형 */
[data-layout="compact"] .hero { min-height: auto; padding: 48px 0; }
[data-layout="compact"] .section-pad { padding: clamp(44px, 6vw, 84px) 0; }

/* 포커스 접근성 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 선택 배경 */
::selection {
  background: color-mix(in oklab, var(--accent) 30%, transparent);
  color: var(--ink);
}
