:root {
  --bg: oklch(99% 0.002 240);
  --surface: oklch(100% 0 0);
  --fg: oklch(18% 0.012 250);
  --muted: oklch(54% 0.012 250);
  --border: oklch(92% 0.005 250);
  --accent: oklch(58% 0.18 255);
  --good: oklch(55% 0.15 155);
  --warn: oklch(68% 0.16 75);
  --risk: oklch(58% 0.18 25);
  --band: oklch(97% 0.006 245);
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --line: 1px solid var(--border);
  --shadow: 0 18px 48px oklch(22% 0.02 250 / 0.07);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: linear-gradient(180deg, oklch(99% 0.002 240), oklch(97.5% 0.006 245) 40%, var(--bg));
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 0;
  background: oklch(23% 0.004 250);
  backdrop-filter: blur(18px);
}
.nav-inner { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: flex;
  align-items: center;
  color: white;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.brand-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--fg); color: white; font-size: 12px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  color: oklch(88% 0.004 250);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.nav-links a { padding: 8px 9px; border-radius: 8px; }
.nav-links a:hover { color: white; background: oklch(32% 0.006 250); }

.hero {
  padding: 64px 0 48px;
  border-bottom: 0;
  background: var(--fg);
  color: white;
}
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 750; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: 0; word-break: keep-all; overflow-wrap: break-word; }
h1 { max-width: 860px; font-size: clamp(42px, 5.8vw, 74px); line-height: 1.02; }
h2 { font-size: clamp(30px, 3.7vw, 50px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.25; }
.lead { max-width: 740px; margin: 24px 0 0; color: oklch(88% 0.008 250); font-size: 18px; line-height: 1.75; }
.hero-brief {
  display: grid;
  gap: 13px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid oklch(100% 0 0 / 0.18);
}
.hero-brief-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}
.hero-brief .section-kicker {
  margin: 0;
  color: var(--accent);
}
.hero-brief h3 {
  color: white;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.32;
}
.hero-brief p {
  margin: 8px 0 0;
  color: oklch(86% 0.008 250);
  font-size: 16px;
  line-height: 1.65;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 16px; border: var(--line); border-radius: 8px; background: var(--surface); font-weight: 750; font-size: 14px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: white; box-shadow: 0 12px 28px oklch(58% 0.18 255 / 0.24); }
.hero .btn { border-color: white; background: white; color: var(--fg); }
.hero .btn.primary { border-color: var(--accent); background: var(--accent); color: white; }
.hero .meta-grid {
  border-color: oklch(100% 0 0 / 0.16);
  background: oklch(100% 0 0 / 0.14);
  box-shadow: 0 18px 44px oklch(0% 0 0 / 0.18);
}
.hero .meta-row {
  color: white;
  background: oklch(100% 0 0 / 0.08);
}
.hero .meta-row b {
  color: oklch(80% 0.01 250);
}

section { padding: 64px 0; border-bottom: var(--line); }
.section-head { display: grid; grid-template-columns: 0.56fr 1fr; gap: 48px; margin-bottom: 28px; align-items: start; }
[data-od-id$="-limits"] .section-head { grid-template-columns: 0.7fr 1fr; }
.decision-head {
  grid-template-columns: 1fr;
  gap: 14px;
}
.decision-head h2 {
  max-width: none;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.18;
  white-space: nowrap;
}
.decision-head .section-copy {
  max-width: 1040px;
}
.section-kicker { color: var(--accent); font-size: 13px; font-weight: 750; margin-bottom: 12px; }
.section-copy { margin: 0; color: oklch(36% 0.014 250); font-size: 17px; line-height: 1.75; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.card { border: var(--line); border-radius: 8px; background: var(--surface); padding: 24px; box-shadow: 0 1px 0 oklch(100% 0 0 / 0.72) inset; }
.card p, .card li { color: oklch(36% 0.014 250); line-height: 1.65; font-size: 15px; }
.card p { margin: 10px 0 0; }
.meta-grid { display: grid; gap: 1px; border: var(--line); border-radius: 8px; overflow: hidden; background: var(--border); box-shadow: var(--shadow); }
.meta-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; background: var(--surface); padding: 13px 15px; font-size: 14px; }
.meta-row b { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: var(--line); border-radius: 8px; overflow: hidden; background: var(--border); }
.metric { background: var(--surface); padding: 22px; min-height: 118px; }
.metric strong { display: block; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.metric span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.decision-list { display: grid; gap: 14px; }
.decision { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; align-items: start; }
.step-number { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--fg); color: white; font-size: 12px; font-weight: 800; }
.visual-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 16px; align-items: stretch; }
.visual-showcase { display: grid; gap: 16px; }
.visual-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.visual-grid-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.visual-stack { display: grid; gap: 16px; }
.visual-card { padding: 0; overflow: hidden; }
[data-od-id="education-visual-main"],
[data-od-id="mlb-visual-team-status"],
[data-od-id="commercial-visual-guide"] {
  width: min(88%, 980px);
  justify-self: center;
}
.visual-frame {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 6px;
  background: var(--surface);
}
.visual-image {
  display: block;
  width: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: none;
}
.visual-gallery {
  width: 100%;
  display: grid;
  gap: 6px;
}
.visual-gallery .visual-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.visual-gallery .visual-image.has-lightbox {
  cursor: zoom-in;
}
.visual-gallery .visual-image.has-lightbox:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--accent) 72%, white);
  outline-offset: 2px;
}
.visual-placeholder {
  width: min(78%, 520px);
  border: 1px dashed oklch(74% 0.025 250);
  border-radius: 8px;
  background: oklch(100% 0 0 / 0.82);
  padding: 24px;
  text-align: center;
}
.visual-placeholder strong { display: block; color: var(--fg); font-size: 18px; line-height: 1.35; }
.visual-placeholder span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.visual-caption { padding: 18px 20px 20px; border-top: var(--line); }
.visual-caption b { display: block; font-size: 17px; line-height: 1.35; }
.visual-caption p { margin-top: 7px; }
.visual-card.has-lightbox {
  cursor: zoom-in;
}
.visual-card.has-lightbox .visual-frame {
  transition: filter 0.18s ease, transform 0.18s ease;
}
.visual-card.has-lightbox:hover .visual-frame {
  filter: brightness(0.98);
}
.visual-card.has-lightbox:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--accent) 72%, white);
  outline-offset: 4px;
}
.visual-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: oklch(7% 0.01 250 / 0.78);
}
.visual-lightbox[hidden] {
  display: none;
}
.visual-lightbox-panel {
  width: min(1180px, 100%);
  max-height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 30px 80px oklch(0% 0 0 / 0.36);
}
.visual-lightbox-image-wrap {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: white;
}
.visual-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
}
.visual-lightbox-copy {
  position: relative;
  border-top: var(--line);
  padding: 18px 72px 20px 22px;
}
.visual-lightbox-title {
  display: block;
  font-size: 20px;
  line-height: 1.35;
}
.visual-lightbox-desc {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.visual-lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--fg);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.insight { display: grid; gap: 14px; }
.insight-main { border: var(--line); padding: 20px 22px; background: color-mix(in oklch, var(--accent) 7%, var(--surface)); border-radius: 8px; font-size: 20px; line-height: 1.55; font-weight: 750; box-shadow: var(--shadow); }
.viz { display: grid; gap: 14px; }
.viz-title { color: var(--muted); font-size: 13px; font-weight: 750; }
.bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 58px; gap: 10px; align-items: center; color: oklch(36% 0.014 250); font-size: 13px; }
.bar { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--c, var(--accent)); border-radius: inherit; }
.note-list { margin: 0; padding-left: 18px; }
.next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.next-card { display: block; border: var(--line); border-radius: 8px; background: var(--surface); padding: 20px; transition: transform 180ms ease, box-shadow 180ms ease; }
.next-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.next-card span { display: block; margin-bottom: 8px; color: var(--accent); font-size: 13px; font-weight: 750; }
footer { padding: 34px 0; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .section-head, .hero-grid, .split, .metric-grid, .evidence-grid, .visual-layout, .visual-grid-two, .visual-grid-three, .next-grid { grid-template-columns: 1fr; }
  [data-od-id="education-visual-main"],
  [data-od-id="mlb-visual-team-status"],
  [data-od-id="commercial-visual-guide"] { width: 100%; }
  .decision-head h2 { white-space: normal; }
  h1 { font-size: 44px; }
  .hero { padding: 52px 0 42px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .nav-inner { height: auto; padding: 12px 0; align-items: flex-start; }
  .nav-links { display: none; }
  h1 { font-size: 38px; }
  .metric span { font-size: 14px; }
  .hero-brief-item { grid-template-columns: 1fr; gap: 8px; }
  .decision, .meta-row { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 78px minmax(0, 1fr) 50px; }
  .visual-lightbox { padding: 14px; }
  .visual-lightbox-panel { max-height: calc(100vh - 28px); }
  .visual-lightbox-image-wrap { padding: 12px; }
  .visual-lightbox-copy { padding: 16px 62px 18px 16px; }
}
