/* Yonsei Saebom Q1 결산 — Cinema dark + petal hero */

:root {
  --bg-0:        #06060d;
  --bg-1:        #0a0a14;
  --bg-2:        #0f0f1c;
  --fg-0:        #ffffff;
  --fg-1:        rgba(255,255,255,0.88);
  --fg-2:        rgba(255,255,255,0.62);
  --fg-3:        rgba(255,255,255,0.42);
  --accent-blue:    #3b82f6;
  --accent-emerald: #10b981;
  --accent-violet:  #a78bfa;
  --accent-rose:    #f43f5e;
  --accent-amber:   #f59e0b;
  --accent-cyan:    #22d3ee;
  --accent-pink:    #f9a8d4;
  --accent-petal:   #fbcfe8;
  --border:      rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-0); color: var(--fg-1); }
body {
  font-family: 'Inter', 'Pretendard Variable', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'cv11','ss01','ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.font-display { font-family: 'Playfair Display', 'Noto Serif KR', Georgia, serif; }
.font-mono    { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }

/* Subtle gradient mesh (non-hero sections) */
.mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 14% 8%, rgba(59,130,246,0.08), transparent 38%),
    radial-gradient(circle at 86% 28%, rgba(167,139,250,0.07), transparent 42%),
    radial-gradient(circle at 50% 92%, rgba(16,185,129,0.05), transparent 45%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
}

/* ━━━ HERO ━━━ */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(167,139,250,0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 85%, rgba(244,114,182,0.06), transparent 70%),
    var(--bg-0);
}

#petals {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1100px, 88vw);
  text-align: center;
  padding: 12vh 0 8vh;
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
  margin: 0;
}

.hero-headline {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--fg-0);
  margin: 28px 0 0;
}
.hero-headline .accent {
  background: linear-gradient(120deg, #6ee7b7 0%, #22d3ee 50%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero-sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--fg-2);
  letter-spacing: 0.04em;
  margin: 20px 0 0;
}

.hero-divider {
  width: 56px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  margin: 48px auto;
}

.hero-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--border);
}
.hero-kpi {
  padding: 22px 18px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.hero-kpi .num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--fg-0);
  white-space: nowrap;
}
.hero-kpi .lbl {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 10px;
}

.hero-narrative {
  margin: 56px auto 0;
  max-width: 640px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--fg-2);
}
.hero-narrative b { color: var(--fg-0); font-weight: 500; }
.hero-narrative .acc-em { color: #6ee7b7; }
.hero-narrative .acc-rs { color: #fda4af; }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.4em;
  color: var(--fg-3);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%     { transform: translate(-50%, 6px); opacity: 1; }
}

@media (max-width: 760px) {
  .hero-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .hero-kpi { border-bottom: 1px solid var(--border); }
  .hero-kpi:nth-child(2n) { border-right: none; }
}

/* ━━━ SECTIONS ━━━ */
.section {
  position: relative;
  padding: 14vh 8vw;
  max-width: 1400px;
  margin: 0 auto;
}
.section.compact { padding: 10vh 8vw; }

.section-eyebrow {
  font-size: 11px; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500;
  margin: 0;
}

h2.section-title {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.15; letter-spacing: -0.03em; font-weight: 500;
  margin: 14px 0 24px; color: var(--fg-0);
  word-break: keep-all;        /* 한글 단어 단위 줄바꿈 — widow 방지 */
  overflow-wrap: break-word;
}
h2.section-title .em-up { color: #6ee7b7; font-style: italic; }
h2.section-title .em-dn { color: #fda4af; font-style: italic; }
h2.section-title .em-it { font-style: italic; opacity: 0.85; }

/* Closing 타이틀 — 흰색 강도를 한 단계 줄임 (배경과 가깝게) */
h2.closing-title {
  color: rgba(255,255,255,0.72);
  font-weight: 400;
  line-height: 1.25;
}
h2.closing-title .em-it { color: rgba(255,255,255,0.88); }
.closing-section .signature { color: rgba(255,255,255,0.78); }

/* Footnote */
.fn-ref {
  font-size: 0.6em;
  margin: 0 1px 0 1px;
  font-weight: 400;
  color: rgba(110,231,183,0.85);
  vertical-align: super;
  line-height: 0;
}
.footnote-block {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: left;
  padding: 22px 26px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.footnote {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fg-3);
  margin: 8px 0;
  padding-left: 22px;
  text-indent: -22px;
}
.footnote b { color: var(--fg-2); font-weight: 500; }
.fn-mark {
  display: inline-block;
  width: 18px;
  color: #6ee7b7;
  font-weight: 500;
}

.lede {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--fg-2);
  max-width: 720px;
}
.lede b { color: var(--fg-0); font-weight: 500; }

/* Cards */
.card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.card:hover {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

/* Month grid */
.month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) { .month-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .month-grid { grid-template-columns: 1fr; } }

.month-card { position: relative; overflow: hidden; }
.month-card::before {
  content:''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.month-card.dip::before     { background: linear-gradient(135deg, rgba(244,63,94,0.16) 0%, transparent 60%); }
.month-card.rebound::before { background: linear-gradient(135deg, rgba(16,185,129,0.18) 0%, transparent 60%); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--fg-2);
  white-space: nowrap;
}
.tag.rose    { color: #fda4af; border-color: rgba(244,63,94,0.4); background: rgba(244,63,94,0.10); }
.tag.emerald { color: #6ee7b7; border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.10); }
.tag.amber   { color: #fcd34d; border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.10); }
.tag.violet  { color: #c4b5fd; border-color: rgba(167,139,250,0.4); background: rgba(167,139,250,0.10); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 4vh 0;
}

/* Chart wrappers — fixed heights to prevent infinite expand */
.chart-wrap {
  position: relative;
  height: 360px;
  width: 100%;
}
.chart-wrap.sm { height: 240px; }

/* Spike rows */
.spike-row {
  display: grid; grid-template-columns: 140px 1fr 90px 100px;
  align-items: center; gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border); border-radius: 14px;
  background: rgba(16,185,129,0.04);
  position: relative; overflow: hidden;
}
@media (max-width: 720px) {
  .spike-row { grid-template-columns: 100px 1fr 70px; }
  .spike-spend { display: none; }
}

/* DoW */
.dow-row { display: grid; grid-template-columns: 40px 1fr 80px; gap: 14px; align-items: center; }
.dow-bar-wrap { position: relative; height: 36px; background: rgba(255,255,255,0.04); border-radius: 8px; overflow: hidden; }
.dow-bar-fill {
  position: absolute; inset: 0 auto 0 0; height: 100%; width: 0;
  background: linear-gradient(90deg, #10b981 0%, #22d3ee 100%);
  border-radius: 8px;
}

/* Strategy */
.strategy-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) { .strategy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .strategy-grid { grid-template-columns: 1fr; } }

.strategy-card {
  border: 1px solid var(--border); border-radius: 18px; padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 100%);
  position: relative; overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.strategy-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.strategy-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 64px; line-height: 1; font-weight: 600; opacity: 0.10;
  position: absolute; top: 14px; right: 20px;
}
.strategy-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 24px; margin: 0 0 12px; color: var(--fg-0); letter-spacing: -0.02em;
}
.strategy-card p { color: var(--fg-2); margin: 6px 0; font-size: 14px; line-height: 1.65; }
.strategy-card .bullets { list-style: none; padding: 0; margin: 14px 0 0; }
.strategy-card .bullets li {
  font-size: 13px; color: var(--fg-2);
  padding: 5px 0 5px 16px; position: relative;
}
.strategy-card .bullets li::before {
  content:'▸'; position: absolute; left: 0; top: 5px;
  color: var(--accent-emerald); font-size: 10px;
}

/* Roadmap timeline — vertical (mobile default) */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content:''; position: absolute; left: 14px; top: 4px; bottom: 0;
  width: 2px; background: linear-gradient(180deg, #6ee7b7, #fcd34d, #c4b5fd);
}
.t-node { position: relative; margin-bottom: 32px; }
.t-node::before {
  content:''; position: absolute; left: -28px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-emerald); box-shadow: 0 0 0 4px rgba(16,185,129,0.20);
}
.t-node:nth-child(2)::before { background: #fcd34d; box-shadow: 0 0 0 4px rgba(245,158,11,0.20); }
.t-node:nth-child(3)::before { background: #c4b5fd; box-shadow: 0 0 0 4px rgba(167,139,250,0.22); }
.t-node h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; margin: 8px 0 6px; color: var(--fg-0); letter-spacing: -0.02em;
}
.t-node ul { color: var(--fg-2); line-height: 1.85; padding-left: 18px; margin: 8px 0 0; }
.t-node ul li { font-size: 14px; }

/* Roadmap horizontal — desktop ≥ 900px */
@media (min-width: 900px) {
  .timeline {
    padding-left: 0;
    padding-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .timeline::before {
    top: 22px; left: 6%; right: 6%; bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(90deg, #6ee7b7 0%, #fcd34d 50%, #c4b5fd 100%);
  }
  .t-node {
    margin-bottom: 0;
    padding: 8px 4px 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    padding: 32px 22px 22px;
    transition: border-color 0.3s ease, transform 0.3s ease;
  }
  .t-node:hover { border-color: var(--border-strong); transform: translateY(-2px); }
  .t-node::before {
    left: 50%; top: -38px;
    transform: translateX(-50%);
  }
  .t-node h3 { font-size: 20px; }
  .t-node ul { padding-left: 16px; }
}

/* ── Chapter 02.5 · The Why ── */
.hyp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 760px) { .hyp-grid { grid-template-columns: 1fr; } }

.hyp-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  background: rgba(255,255,255,0.025);
  position: relative;
  overflow: hidden;
}
.hyp-card.confirmed { border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.06); }
.hyp-card.refuted   { border-color: rgba(255,255,255,0.10); background: rgba(255,255,255,0.02); opacity: 0.82; }

.hyp-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hyp-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; letter-spacing: -0.02em; color: var(--fg-0); margin: 0;
}
.hyp-verdict {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.hyp-card.confirmed .hyp-verdict { color: #6ee7b7; background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.35); }
.hyp-card.refuted   .hyp-verdict { color: var(--fg-3); background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.hyp-evidence { color: var(--fg-2); font-size: 13.5px; line-height: 1.75; margin: 0; }

/* New-ads table */
.newads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.newads-table th, .newads-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.newads-table th {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500;
}
.newads-table td.num { font-family: 'JetBrains Mono', monospace; text-align: right; }
.newads-table tr.muted td { color: var(--fg-3); }
.newads-table tr.top td { background: rgba(16,185,129,0.06); }

/* Ramadan bar comparison */
.ramadan-row {
  display: grid; grid-template-columns: 220px 1fr 60px;
  gap: 14px; align-items: center;
  padding: 8px 0;
}
@media (max-width: 760px) {
  .ramadan-row { grid-template-columns: 1fr 60px; }
  .ramadan-row .r-label { grid-column: 1 / -1; }
}
.ramadan-bar-wrap {
  position: relative; height: 30px;
  background: rgba(255,255,255,0.04); border-radius: 6px; overflow: hidden;
}
.ramadan-bar-fill {
  position: absolute; inset: 0 auto 0 0; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent-violet) 0%, var(--accent-cyan) 100%);
  border-radius: 6px;
}
.ramadan-bar-fill.dip { background: linear-gradient(90deg, #f43f5e 0%, #fda4af 100%); }
.r-label { color: var(--fg-2); font-size: 13px; }
.r-label.dip { color: #fda4af; font-weight: 500; }
.r-val { color: var(--fg-0); font-family: 'JetBrains Mono', monospace; font-size: 13px; text-align: right; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Closing */
.signature {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: 22px; color: var(--fg-1); letter-spacing: -0.01em;
}

/* Print */
@media print {
  html, body { background: white; color: #0a0a14; }
  .mesh, #petals { display: none !important; }
  .card, .strategy-card, .month-card { background: white !important; color: #0a0a14 !important; border-color: #d4d4d8 !important; }
  .lede, .hero-headline, h2.section-title { color: #0a0a14 !important; }
  .hero-section { background: white !important; }
  .chart-wrap { height: 280px; }
}

/* Responsive shrink */
@media (max-width: 760px) {
  .section { padding: 10vh 6vw; }
  h2.section-title { font-size: 32px; }
}
