/* =============================================================
   styles.css — AX builder portfolio
   테마: html[data-theme="dark" | "light"]
   색·간격은 아래 :root 토큰만 바꾸면 전체가 따라옵니다.
   ============================================================= */

:root {
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, "JetBrains Mono", monospace;

  --wrap: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[data-theme="dark"] {
  --bg: #0a0d13;
  --bg-soft: #0d1119;
  --surface: #111722;
  --surface-2: #151c29;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef7;
  --muted: #b4bdcc;
  --dim: #8f99ab;
  --accent: #3ddc97;
  --accent-2: #7ea8ff;
  --accent-soft: rgba(61, 220, 151, 0.1);
  --accent-line: rgba(61, 220, 151, 0.35);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --grid-line: rgba(255, 255, 255, 0.045);
  --glow: radial-gradient(60% 60% at 70% 0%, rgba(61, 220, 151, 0.16), transparent 70%);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f5f9;
  --line: #e3e8ef;
  --line-strong: #cfd7e3;
  --text: #0d1524;
  --muted: #3f4a5e;
  --dim: #5c677a;
  --accent: #0d9a6c;
  --accent-2: #2563eb;
  --accent-soft: rgba(13, 154, 108, 0.09);
  --accent-line: rgba(13, 154, 108, 0.35);
  --shadow: 0 20px 50px -32px rgba(15, 32, 60, 0.35);
  --grid-line: rgba(13, 21, 36, 0.05);
  --glow: radial-gradient(60% 60% at 70% 0%, rgba(13, 154, 108, 0.12), transparent 70%);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on;
  word-break: keep-all;
  overflow-wrap: break-word;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; font-weight: 800; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--accent); color: #04120c; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------------- top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 66px; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em;
  color: var(--accent);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand__text em {
  font-style: normal; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim);
}

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

.toggles { display: flex; align-items: center; gap: 10px; }
.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px;
}
.seg__btn {
  border: 0; background: transparent; color: var(--dim);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em;
  padding: 4px 9px; border-radius: 6px; transition: all 0.2s var(--ease);
}
.seg__btn.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.iconbtn {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--muted); transition: all 0.2s var(--ease);
}
.iconbtn:hover { color: var(--text); border-color: var(--line-strong); }
.iconbtn svg { width: 17px; height: 17px; }
.iconbtn .i-moon { display: none; }
html[data-theme="light"] .iconbtn .i-moon { display: block; }
html[data-theme="light"] .iconbtn .i-sun { display: none; }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 30% 10%, #000 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 30% 10%, #000 25%, transparent 85%);
}
.hero__glow { position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.hero__inner {
  position: relative;
  padding-top: 92px;
  padding-bottom: 34px;
}
.hero__metrics { position: relative; padding-bottom: 80px; }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px 7px 11px; border-radius: 100px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 14px; color: var(--muted);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  margin: 26px 0 22px;
  max-width: 22em;
  font-size: clamp(2.05rem, 4.1vw, 3.35rem);
  line-height: 1.28; font-weight: 800; letter-spacing: -0.038em;
}
.hero__title span { display: block; }
.hero__accent { color: var(--accent); }

.hero__sub { max-width: 46em; color: var(--muted); font-size: 17px; line-height: 1.78; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 17px; font-weight: 600; color: var(--text);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent-line); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #04160f; }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }

.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  box-shadow: var(--shadow);
}
.panel--metrics { padding: 22px 26px 18px; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 2px;
}
.panel__head .mono { color: var(--dim); }
.badge {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 100px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { padding: 16px 26px; border-left: 1px dashed var(--line); }
.metric:first-child { padding-left: 2px; border-left: 0; }
.metric:last-child { padding-right: 2px; }
.metric__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.metric__label { font-size: 14px; color: var(--muted); }
.metric__idx { font-family: var(--mono); font-size: 13px; color: var(--dim); letter-spacing: 0.1em; }
.metric__nums { display: flex; align-items: baseline; gap: 10px; margin-top: 5px; }
.metric__before {
  font-family: var(--mono); font-size: 14px; color: var(--dim);
  text-decoration: line-through; text-decoration-thickness: 1px;
}
.metric__arrow { width: 14px; height: 14px; color: var(--dim); flex: none; align-self: center; }
.metric__after {
  font-size: 25px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.panel__foot { color: var(--dim); margin-top: 10px; letter-spacing: 0.02em; text-transform: none; }

/* ---------------- domain expertise ---------------- */
.domainblock { margin-bottom: 38px; }
.domainblock__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.domainblock__head h3 { font-size: 19px; letter-spacing: -0.02em; }
.domainblock__head .mono { color: var(--dim); white-space: nowrap; }
.domain {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin-top: 16px;
}
.domain__card {
  padding: 16px 18px 17px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface);
}
.domain__tag { font-size: 11px; letter-spacing: 0.08em; color: var(--accent); }
.domain__title { margin-top: 8px; font-size: 15.5px; line-height: 1.35; letter-spacing: -0.015em; }
.domain__desc { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.domain__link {
  margin-top: 14px; padding: 12px 14px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  color: var(--text); font-size: 14.5px; line-height: 1.6;
}

/* ---------------- sections ---------------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg-soft); }
.section__head { max-width: 62ch; margin-bottom: 44px; }
.eyebrow { color: var(--accent); margin-bottom: 16px; }
.eyebrow span { color: var(--dim); margin-right: 8px; }
.section h2 { font-size: clamp(1.55rem, 2.9vw, 2.35rem); letter-spacing: -0.035em; }
.section__lead { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ---------------- cases ---------------- */
.cases { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 26px; align-items: start; }

.cases__rail { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 84px; }
.railbtn {
  display: block; width: 100%; text-align: left;
  padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent;
  transition: all 0.2s var(--ease);
}
.railbtn:hover { background: var(--surface-2); }
.railbtn__no {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; color: var(--dim);
  display: block; margin-bottom: 3px;
}
.railbtn__title { display: block; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--muted); word-break: keep-all; }
.railbtn.is-active {
  background: var(--surface); border-color: var(--line-strong);
  box-shadow: inset 2px 0 0 var(--accent);
}
.railbtn.is-active .railbtn__no { color: var(--accent); }
.railbtn.is-active .railbtn__title { color: var(--text); }

.cases__panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 30px 32px 32px; box-shadow: var(--shadow);
  min-height: 430px;
}

.case__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.case__tag {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px; background: var(--accent-soft);
  border: 1px solid var(--accent-line); color: var(--accent);
}
.case__org, .case__period, .case__role {
  font-size: 14px; color: var(--dim); font-family: var(--mono); letter-spacing: 0.03em;
}
.case__org { color: var(--muted); }
.case__period::before, .case__role::before { content: "·"; margin-right: 8px; color: var(--dim); }

.case__title { font-size: clamp(1.24rem, 2.1vw, 1.62rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.case__onliner { color: var(--muted); font-size: 17px; max-width: 66ch; }

.steps { display: flex; gap: 8px; margin: 26px 0 22px; }
.step {
  flex: 1 1 0; min-width: 0; text-align: left;
  padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  transition: all 0.2s var(--ease);
}
.step:hover { border-color: var(--line-strong); }
.step__no { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; color: var(--dim); }
.step__label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.step.is-active { background: var(--accent-soft); border-color: var(--accent-line); }
.step.is-active .step__no { color: var(--accent); }
.step.is-active .step__label { color: var(--text); }

.stepbody { animation: fade 0.32s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.stepbody h4 {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--dim); font-weight: 500; margin-bottom: 10px;
}
.stepbody__lead { font-size: 17px; color: var(--text); line-height: 1.75; max-width: 68ch; }

.bullets { display: grid; gap: 9px; margin-top: 18px; }
.bullets li {
  position: relative; padding-left: 18px; color: var(--muted); font-size: 17px; line-height: 1.65;
}
.bullets li::before {
  content: ""; position: absolute; left: 1px; top: 0.66em;
  width: 6px; height: 1.5px; background: var(--accent); border-radius: 2px;
}

/* flow diagram */
.flow {
  display: flex; gap: 15px; margin-top: 22px; padding: 2px 0 4px;
}
.node {
  position: relative; flex: 1 1 0; min-width: 0;
  padding: 9px 10px 10px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.node__label {
  display: block; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em;
  overflow-wrap: normal;
}
.node__sub {
  display: block; font-size: 13px; color: var(--dim); line-height: 1.45; margin-top: 3px;
  overflow-wrap: normal;
}
.node:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -12px; width: 8px; height: 1px;
  background: var(--line-strong);
}
.node:not(:last-child)::before {
  content: ""; position: absolute; top: 50%; right: -12px; width: 4px; height: 4px;
  border-right: 1.4px solid var(--line-strong); border-top: 1.4px solid var(--line-strong);
  transform: translate(2px, -50%) rotate(45deg);
}
.node--gate { border-color: var(--accent-line); background: var(--accent-soft); }
.node--gate .node__label { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.chips span {
  font-size: 13px; padding: 5px 10px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
}

/* impact tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.tile {
  padding: 14px 15px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-soft);
}
.tile__label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.tile__row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.tile__before { font-family: var(--mono); font-size: 13px; color: var(--dim); text-decoration: line-through; }
.tile__arrow { width: 12px; height: 12px; color: var(--dim); align-self: center; flex: none; }
.tile__after { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1.3; word-break: keep-all; }
.case__note {
  margin-top: 18px; padding: 12px 14px; border-left: 2px solid var(--accent-line);
  background: var(--surface-2); border-radius: 0 8px 8px 0;
  font-size: 14px; color: var(--muted);
}

/* ---------------- principles ---------------- */
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.layer {
  position: relative; padding: 24px 22px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.layer::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
  border-radius: var(--radius) var(--radius) 0 0; opacity: 0.7;
}
.layer__tag { font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; color: var(--accent); }
.layer h3 { font-size: 20px; margin: 10px 0 8px; }
.layer p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.layer__ex {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--dim);
  text-transform: none;
}

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.principle {
  padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.principle:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.principle__no { font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; color: var(--dim); }
.principle h3 { font-size: 17px; margin: 9px 0 8px; letter-spacing: -0.02em; }
.principle p { font-size: 14px; color: var(--muted); line-height: 1.7; }

.stackblock { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.stackblock__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.stackblock__head h3 { font-size: 17px; letter-spacing: 0.02em; }
.stackblock__head p { color: var(--dim); }
.stack { display: grid; gap: 10px; }
.stackrow { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: start; }
.stackrow__group { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding-top: 6px; }
.stackrow__items { display: flex; flex-wrap: wrap; gap: 7px; }
.stackrow__items span {
  font-size: 14px; padding: 6px 11px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}

/* ---------------- timeline ---------------- */
.timeline { position: relative; margin-left: 6px; padding-left: 26px; border-left: 1px solid var(--line-strong); display: grid; gap: 6px; }
.tl { position: relative; padding: 16px 0 20px; }
.tl::before {
  content: ""; position: absolute; left: -32px; top: 24px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--line-strong);
}
.tl:first-child::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tl__period { font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; color: var(--dim); min-width: 132px; }
.tl__org { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.tl__role { font-size: 14px; color: var(--muted); }
.tl__role::before { content: "·"; margin-right: 7px; color: var(--dim); }
.tl ul { margin-top: 8px; display: grid; gap: 5px; max-width: 78ch; }
.tl li { position: relative; padding-left: 15px; font-size: 14px; color: var(--muted); }
.tl li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--line-strong); }

/* ---------------- contact ---------------- */
.section--contact { border-bottom: 0; }
.contact {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px;
  align-items: start; padding: 44px 40px;
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: linear-gradient(150deg, var(--surface), var(--bg-soft));
  box-shadow: var(--shadow);
}
.contact h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 4px; }
.contact__lead { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 46ch; }
.contact__links { display: grid; gap: 8px; }
.clink {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  transition: all 0.2s var(--ease);
}
.clink:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.clink__key { font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; color: var(--dim); text-transform: uppercase; display: block; }
.clink__val { font-size: 14px; font-weight: 600; }
.clink svg { width: 15px; height: 15px; color: var(--dim); flex: none; }
.clink:hover svg { color: var(--accent); }

/* ---------------- footer ---------------- */
.footer { padding: 30px 0 44px; }
.footer__inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer p { color: var(--dim); letter-spacing: 0.03em; text-transform: none; }
.footer__meta { max-width: 46ch; }

/* ---------------- live demos (fictional data) ---------------- */
.section--demos {
  --tone-pass: var(--accent);
  --tone-pass-bg: var(--accent-soft);
  --tone-pass-line: var(--accent-line);
  --tone-warn: #d99a2b;
  --tone-warn-bg: rgba(217, 154, 43, 0.12);
  --tone-warn-line: rgba(217, 154, 43, 0.4);
  --tone-halt: #e2685f;
  --tone-halt-bg: rgba(226, 104, 95, 0.12);
  --tone-halt-line: rgba(226, 104, 95, 0.42);
  --tone-info: var(--accent-2);
  --tone-info-bg: color-mix(in srgb, var(--accent-2) 13%, transparent);
  --tone-info-line: color-mix(in srgb, var(--accent-2) 42%, transparent);
  --tone-mute: var(--dim);
  --tone-mute-bg: var(--surface-2);
  --tone-mute-line: var(--line);
}

html[data-theme="light"] .section--demos {
  --tone-warn: #96620a;
  --tone-warn-bg: rgba(150, 98, 10, 0.1);
  --tone-warn-line: rgba(150, 98, 10, 0.3);
  --tone-halt: #b03a30;
  --tone-halt-bg: rgba(176, 58, 48, 0.09);
  --tone-halt-line: rgba(176, 58, 48, 0.28);
}

.pill {
  display: inline-flex; align-items: center; flex: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.5;
  padding: 2px 8px; border-radius: 100px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
}
.pill--pass { color: var(--tone-pass); background: var(--tone-pass-bg); border-color: var(--tone-pass-line); }
.pill--warn { color: var(--tone-warn); background: var(--tone-warn-bg); border-color: var(--tone-warn-line); }
.pill--halt { color: var(--tone-halt); background: var(--tone-halt-bg); border-color: var(--tone-halt-line); }
.pill--info { color: var(--tone-info); background: var(--tone-info-bg); border-color: var(--tone-info-line); }
.pill--mute { color: var(--tone-mute); background: var(--tone-mute-bg); border-color: var(--tone-mute-line); }

.demos { display: grid; gap: 18px; }
.section, .demo { scroll-margin-top: 82px; }
.demo {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
.demo__head {
  padding: 24px 26px 20px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.demo__tags { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.demo__no {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent);
}
.demo__fict {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--dim); border: 1px dashed var(--line-strong); padding: 2px 8px; border-radius: 100px;
}
.demo__title { font-size: clamp(1.06rem, 1.7vw, 1.28rem); letter-spacing: -0.025em; }
.demo__lead { margin-top: 8px; font-size: 14px; color: var(--muted); max-width: 72ch; line-height: 1.7; }
.demo__body { padding: 22px 26px 26px; }
.demo__h {
  margin: 0 0 10px; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 500;
}

/* demo 1 — rule simulator */
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preset {
  display: grid; gap: 2px; text-align: left;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-soft);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.preset:hover { border-color: var(--line-strong); }
.preset.is-active { border-color: var(--tone-pass-line); background: var(--tone-pass-bg); }
.preset__no { font-size: 13px; letter-spacing: 0.05em; color: var(--dim); }
.preset__name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.preset__hint { font-size: 13px; color: var(--dim); }

.reqmsg {
  margin-top: 12px; padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2);
}
.reqmsg__head { display: block; color: var(--dim); font-size: 13px; margin-bottom: 6px; }
.reqmsg__text { font-size: 14px; line-height: 1.72; color: var(--text); }

.sim { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.35fr); gap: 16px; margin-top: 18px; align-items: start; }
.sim__col { min-width: 0; }
.sim__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sim__head .demo__h { margin: 0; }
.sim__counts { display: flex; gap: 5px; flex-wrap: wrap; }

.extract {
  margin: 0; display: grid; gap: 1px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line);
}
.extract__row {
  display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px;
  padding: 9px 12px; background: var(--surface);
}
.extract__key { font-size: 13px; color: var(--dim); }
.extract__val { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.extract__val.is-warn { color: var(--tone-warn); }

.rules { display: grid; gap: 4px; }
.rule {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.rule--warn { border-color: var(--tone-warn-line); background: var(--tone-warn-bg); }
.rule--halt { border-color: var(--tone-halt-line); background: var(--tone-halt-bg); }
.rule__main { min-width: 0; }
.rule__top { display: flex; align-items: baseline; gap: 7px; }
.rule__id { font-size: 13px; letter-spacing: 0.05em; color: var(--dim); flex: none; }
.rule__name { font-size: 14px; font-weight: 600; }
.rule--warn .rule__name { color: var(--tone-warn); }
.rule--halt .rule__name { color: var(--tone-halt); }
.rule__note { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

.draft {
  margin-top: 16px; padding: 15px 18px 17px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
}
.draft--fix { border-color: var(--tone-warn-line); }
.draft--hold { border-color: var(--tone-halt-line); }
.draft__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.draft__head .demo__h { margin: 0; }
.draft__title { font-size: 14px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.draft__row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); }
.draft__k { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--dim); padding-top: 2px; }
.draft__v { font-size: 14px; color: var(--muted); }
.draft__gate {
  margin-top: 12px; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--tone-halt-line); background: var(--tone-halt-bg);
  font-size: 14px; color: var(--text); line-height: 1.65;
}

/* demo 2 — tracking board */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi { padding: 11px 14px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); }
.kpi__val {
  display: block; font-size: 22px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.kpi__label { display: block; font-size: 13px; color: var(--dim); margin-top: 1px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  font-size: 14px; transition: all 0.2s var(--ease);
}
.filter:hover { border-color: var(--line-strong); color: var(--text); }
.filter.is-active { background: var(--tone-pass-bg); border-color: var(--tone-pass-line); color: var(--accent); }
.filter__n { font-family: var(--mono); font-size: 13px; opacity: 0.8; }

.board { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 14px; align-items: start; }
.board__list { display: grid; gap: 6px; }
.camp {
  display: grid; gap: 3px; width: 100%; text-align: left;
  padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-soft);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.camp:hover { border-color: var(--line-strong); }
.camp.is-active { border-color: var(--tone-pass-line); background: var(--tone-pass-bg); box-shadow: inset 2px 0 0 var(--accent); }
.camp__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.camp__brand { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.camp__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 13px; color: var(--dim); }
.camp__dot { color: var(--line-strong); }
.camp__due { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.camp__due.is-urgent { color: var(--tone-halt); font-weight: 700; }
.camp__next { font-size: 13px; color: var(--muted); line-height: 1.5; }

.board__detail {
  position: sticky; top: 84px;
  padding: 15px 18px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.board__hint { font-size: 14px; color: var(--dim); }
.detail__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail__brand { font-size: 17px; letter-spacing: -0.02em; }
.detail__kv { display: grid; gap: 4px; margin: 12px 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail__kvrow { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.detail__k { color: var(--dim); }
.detail__v { color: var(--text); font-weight: 600; }
.detail__summary { font-size: 14px; color: var(--muted); line-height: 1.65; }
.detail__next { margin-top: 12px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--tone-pass-line); background: var(--tone-pass-bg); }
.detail__nextlabel { display: block; font-size: 13px; color: var(--accent); margin-bottom: 3px; }
.detail__next p { font-size: 14px; line-height: 1.6; }
.detail__h { margin: 14px 0 6px; font-size: 13px; color: var(--dim); }
.detail__hist { display: grid; gap: 3px; }
.detail__hist li { position: relative; padding-left: 12px; font-size: 13px; color: var(--muted); }
.detail__hist li::before {
  content: ""; position: absolute; left: 1px; top: 0.68em;
  width: 5px; height: 1px; background: var(--line-strong);
}

/* demo 3 — outreach tracker */
.outreach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; margin-top: 14px; align-items: start; }
.outreach__col { min-width: 0; }
.partners { display: grid; gap: 6px; }
.partner {
  display: grid; gap: 4px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-soft);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.partner:hover { border-color: var(--line-strong); }
.partner.is-active { border-color: var(--tone-pass-line); background: var(--tone-pass-bg); }
.partner__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.partner__name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.partner__region { font-size: 13px; color: var(--dim); }
.prog { display: flex; gap: 4px; margin-top: 2px; }
.prog__dot { flex: 1 1 0; height: 3px; border-radius: 2px; background: var(--line-strong); }
.prog__dot.is-done { background: var(--tone-pass-line); }
.prog__dot.is-now { background: var(--accent); box-shadow: 0 0 0 2px var(--tone-pass-bg); }
.pdetail { margin-top: 10px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.pdetail__label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 3px; }
.pdetail__text { font-size: 14px; line-height: 1.6; }
.tpl__note { font-size: 13px; color: var(--dim); margin-bottom: 10px; line-height: 1.6; }
.segsm {
  display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 10px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2);
}
.segsm__btn {
  border: 0; background: transparent; color: var(--dim);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 6px; transition: all 0.2s var(--ease);
}
.segsm__btn.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.tpl { padding: 14px 16px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); }
.tpl__subject { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.tpl__k { font-size: 13px; color: var(--dim); }
.tpl__subjecttext { font-size: 14px; font-weight: 700; line-height: 1.55; letter-spacing: -0.01em; }
.tpl__body {
  font-size: 14px; color: var(--muted); line-height: 1.78;
  white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere;
}

/* evidence card */
.evidence {
  padding: 22px 24px 24px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
}
.evidence__title { font-size: 17px; letter-spacing: -0.02em; }
.evidence__lead { margin-top: 8px; font-size: 14px; color: var(--muted); max-width: 76ch; line-height: 1.7; }
.evidence__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; }
.estat { padding: 13px 15px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.estat__val {
  display: block; font-size: 21px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.estat__label { display: block; font-size: 13px; font-weight: 600; margin-top: 3px; }
.estat__sub { display: block; font-size: 13px; color: var(--dim); margin-top: 1px; }
.evidence__note { padding-left: 10px; border-left: 2px solid var(--tone-pass-line); font-size: 13px; color: var(--dim); line-height: 1.65; }

.demos__foot { margin-top: 16px; color: var(--dim); text-transform: none; letter-spacing: 0.02em; line-height: 1.7; }

/* ---------------- responsive ---------------- */
@media (min-width: 901px) {
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
  .hero__inner { padding-top: 72px; padding-bottom: 30px; }
  .hero__metrics { padding-bottom: 64px; }
  .cases { grid-template-columns: 200px minmax(0, 1fr); }
  .tiles { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .domain { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero__inner { padding-top: 56px; padding-bottom: 26px; }
  .hero__metrics { padding-bottom: 54px; }
  .section { padding: 72px 0; }
  .cases { grid-template-columns: 1fr; gap: 14px; }
  .cases__rail {
    position: static; flex-direction: row; gap: 8px;
    overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .cases__rail::-webkit-scrollbar { display: none; }
  .railbtn { flex: 0 0 auto; max-width: 220px; padding: 10px 12px; border-color: var(--line); }
  .railbtn__title { font-size: 14px; }
  .cases__panel { padding: 24px 20px 26px; min-height: 0; }
  .layers { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding: 30px 22px; gap: 26px; }
  .stackrow { grid-template-columns: 1fr; gap: 8px; }
  .stackrow__group { padding-top: 0; }
  .presets { grid-template-columns: 1fr; }
  .sim { grid-template-columns: 1fr; gap: 18px; }
  .rules { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .board__detail { position: static; }
  .outreach { grid-template-columns: 1fr; gap: 20px; }
  .demo__head { padding: 20px 18px 18px; }
  .demo__body { padding: 18px 18px 20px; }
  .evidence { padding: 20px 18px 22px; }
  .evidence__stats { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }  body { font-size: 17px; }
  .brand__text em { display: none; }
  .hero__title { font-size: clamp(1.72rem, 7.1vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.32; }
  .hero__sub { font-size: 17px; }
  .steps { flex-direction: column; gap: 6px; }
  .step { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
  .step__label { margin-top: 0; }
  .panel--metrics { padding: 16px 16px 12px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { padding: 13px 2px; border-left: 0; border-bottom: 1px dashed var(--line); }
  .metric:last-child { border-bottom: 0; }
  .metric__after { font-size: 22px; }
  /* flow turns vertical so the approval gate is never cut off */
  .flow { flex-direction: column; gap: 20px; margin-top: 18px; }
  .node { width: 100%; padding: 10px 12px 11px 34px; }
  .node:not(:last-child)::after {
    top: auto; bottom: -16px; left: 17px; right: auto;
    width: 1px; height: 11px;
  }
  .node:not(:last-child)::before {
    top: auto; bottom: -20px; left: 13.5px; right: auto;
    width: 0; height: 0; border-right: 3.5px solid transparent;
    border-top: 4px solid var(--line-strong); border-left: 3.5px solid transparent;
    transform: none;
  }
  .tl__period { min-width: 0; width: 100%; }
  .tl__head { gap: 4px; }
  .contact { padding: 26px 18px; }
  .footer__inner { flex-direction: column; gap: 10px; }
  .kpis { grid-template-columns: 1fr; }
  .extract__row { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
  .draft__row { grid-template-columns: 66px minmax(0, 1fr); gap: 8px; }
  .rule { padding: 7px 9px; }
  .rule__name { font-size: 13px; }
  .camp { padding: 10px 12px; }
  .camp__brand { font-size: 14px; }
  .tpl { padding: 12px 13px 14px; }
  .tpl__body { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------- readability pass ----------------
   번역되는 문구(KO/EN/ZH)는 고정폭·대문자 대신 본문 서체로.
   고정폭은 번호·ID·날짜처럼 짧은 라벨에만 남깁니다. */
.panel__foot, .demos__foot, .footer p, .stackblock__head p,
.case__tag, .case__org, .case__period, .case__role,
.stepbody h4, .demo__h, .demo__fict, .layer__ex, .draft__k,
.reqmsg__head, .detail__nextlabel, .detail__h, .pdetail__label, .tpl__k,
.brand__text em {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.stepbody h4, .demo__h { font-weight: 700; color: var(--muted); }
.reqmsg__head, .detail__nextlabel, .detail__h, .pdetail__label, .tpl__k { font-weight: 600; }
.case__org { font-weight: 600; }

/* 본문 리드·불릿은 한 줄 길이를 줄이고 줄 간격을 넉넉하게 */
.section__lead { font-size: 17px; line-height: 1.75; }
.stepbody__lead { line-height: 1.8; }
.bullets { gap: 12px; }
.bullets li { line-height: 1.75; }
.case__note { line-height: 1.7; }

/* 흐름도: 두 줄 그리드, 번호로 순서 표시, 줄 끝 화살표 숨김 */
.flow { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 12px 22px; }
.node__no { display: block; font-size: 13px; letter-spacing: 0.05em; color: var(--dim); margin-bottom: 4px; }
.node--gate .node__no { color: var(--accent); }
@media (min-width: 621px) {
  .node { padding: 10px 12px 12px; }
  .node:not(:last-child)::after { right: -17px; width: 12px; }
  .node:not(:last-child)::before { right: -17px; }
  .node--rowend::after, .node--rowend::before { display: none; }
}
@media (max-width: 620px) {
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .node { padding-left: 44px; }
  .node__no { position: absolute; left: 12px; top: 11px; margin: 0; }
  .node:not(:last-child)::after { left: 21px; }
  .node:not(:last-child)::before { left: 17.5px; }
}

/* 데모 1: 걸린 규칙은 한 줄씩 크게, 통과한 규칙은 작은 칩으로 */
.sim__col > .demo__h { margin-bottom: 10px; }
@media (min-width: 901px) {
  .rules { grid-template-columns: 1fr; }
}
.rules { gap: 6px; margin-bottom: 10px; }
.rule { padding: 10px 12px; }
.passrules { display: flex; flex-wrap: wrap; gap: 6px; }
.passrule {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 5px 10px; border-radius: 8px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--tone-pass-line); background: var(--tone-pass-bg);
}
.passrule .rule__id { color: var(--accent); }

/* 데모 2·3: 숫자 카드를 낮게 — 값과 설명을 한 줄에 */
.kpi { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; }
.kpi__label { margin-top: 0; }

/* 데모 3: 진행 막대 단계 범례 (막대와 같은 5칸 그리드) */
.stagekey {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
  margin: 0 0 8px; padding: 0 13px; list-style: none;
}
.stagekey li {
  font-size: 13px; color: var(--dim); line-height: 1.35;
  padding-top: 5px; border-top: 2px solid var(--line-strong);
}

/* =============================================================
   UI/UX 피드백 반영 — 읽는 순서: 숫자 → 규칙 → 설명
   ============================================================= */

/* 섹션 배경을 번갈아: 다크에서도 경계가 보이도록 bg-soft를 한 단계 밝힘 */
html[data-theme="dark"] { --bg-soft: #111723; }
.section { padding: 104px 0; }
.eyebrow { color: var(--text); font-weight: 700; letter-spacing: 0.06em; }
.eyebrow span {
  display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px;
  margin-right: 10px; border-radius: 6px; background: var(--text); color: var(--bg); font-weight: 700;
}

/* 글: 본문 17px · 행간 1.75 · 한 줄 680px까지만 */
body { line-height: 1.75; }
.section__lead, .hero__sub, .case__onliner, .stepbody__lead,
.demo__lead, .evidence__lead, .contact__lead, .case__note, .evidence__note {
  max-width: 680px;
}
.section__lead, .hero__sub, .stepbody__lead { font-size: 17px; line-height: 1.75; }
.case__onliner, .demo__lead, .evidence__lead { font-size: 17px; line-height: 1.75; }
.section h2, .hero__title, .case__title { word-break: keep-all; }
.estat__val, .metric__after, .metric__before, .kpi__val, .tile__after, .tile__before {
  font-variant-numeric: tabular-nums;
}

/* 장식 빼기: 그라데이션 워시 제거, 면은 단색 */
.hero__grid, .hero__glow { display: none; }
.panel, .contact, .evidence { background: var(--surface); }
.demo__head { background: var(--surface); }
.layer::before { display: none; }

/* 색은 둘: 값은 먹색, 강조색은 사람이 판단하는 지점에만 */
.metric__after, .tile__after, .kpi__val, .estat__val { color: var(--text); }
.hero__accent { color: inherit; }
.case__tag, .badge {
  background: var(--surface-2); border-color: var(--line-strong); color: var(--muted);
}
.layer__tag { color: var(--muted); font-weight: 700; }
.section--demos {
  --tone-pass: var(--muted);
  --tone-pass-bg: var(--surface-2);
  --tone-pass-line: var(--line-strong);
}
.passrule .rule__id { color: var(--dim); }
.railbtn.is-active { box-shadow: inset 3px 0 0 var(--text); }
.railbtn.is-active .railbtn__no, .step.is-active .step__no { color: var(--text); }
.step.is-active { background: var(--surface); border-color: var(--text); }
.preset.is-active, .camp.is-active, .partner.is-active {
  background: var(--surface); border-color: var(--text); box-shadow: none;
}
.filter.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.prog__dot.is-done { background: var(--muted); }
.prog__dot.is-now { background: var(--text); box-shadow: none; }
.detail__next { background: var(--surface-2); border-color: var(--line-strong); }
.detail__nextlabel { color: var(--text); }
/* 사람이 판단하는 지점 = 강조색 */
.node--gate, .estat--human, .demo__focus {
  border-color: var(--accent-line); background: var(--accent-soft);
}
.node--gate .node__label, .node--gate .node__no, .estat--human .estat__val { color: var(--accent); }

/* 히어로: 헤드라인 + 근거 숫자 3개 + 주 버튼 1개 */
.hero__inner { padding-top: 72px; padding-bottom: 32px; }
.hero__title { margin-top: 0; }
.panel--metrics { padding: 24px 28px 20px; box-shadow: none; }
.metric { padding: 18px 28px; }
.metric__nums { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 6px; }
.metric__arrow { display: none; }
.metric__before { font-family: var(--sans); font-size: 14px; }
.metric__before::after { content: " →"; text-decoration: none; display: inline-block; margin-left: 4px; }
.metric__after { font-size: 48px; line-height: 1.1; letter-spacing: -0.04em; }
.metric__label { font-size: 14px; color: var(--text); font-weight: 600; }
.metric__idx { display: none; }
#career .chip { margin-top: 18px; }

/* 측정 기록: 분수를 크게, 분모는 작게, 아래 한 줄 설명 */
.evidence__stats { gap: 12px; margin: 20px 0 16px; }
.estat { padding: 20px 20px 18px; border-color: var(--line-strong); }
.estat__val { font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.estat__den { font-size: 24px; font-weight: 700; color: var(--muted); margin-left: 2px; letter-spacing: -0.02em; }
.estat--human .estat__den { color: var(--accent); opacity: 0.75; }
.estat__label { font-size: 17px; font-weight: 700; margin-top: 10px; }
.estat__sub { font-size: 14px; }

/* 데모: 탭으로 하나씩 */
.demotabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.demotabs::-webkit-scrollbar { display: none; }
.demotab {
  flex: 1 1 0; min-width: 180px; min-height: 52px;
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  font-size: 15px; font-weight: 700;
}
.demotab:hover { color: var(--text); }
.demotab__no { font-size: 13px; color: var(--dim); }
.demotab.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.demotab.is-active .demotab__no { color: var(--bg); opacity: 0.7; }
.demo[hidden] { display: none; }
.demo__focus {
  display: flex; flex-direction: column; gap: 4px; max-width: 760px;
  margin-top: 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid;
  font-size: 15px; line-height: 1.65; color: var(--text);
}
.demo__focus strong { font-size: 13px; color: var(--accent); }

/* 터치 영역 44px · 모바일에서도 본문을 줄이지 않음 */
@media (max-width: 900px), (pointer: coarse) {
  .seg__btn, .segsm__btn { min-height: 44px; min-width: 44px; }
  .iconbtn { width: 44px; height: 44px; }
  .btn, .filter, .step, .preset, .demotab { min-height: 44px; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .hero__sub { font-size: 17px; }
  .section { padding: 80px 0; }
  .hero__inner { padding-top: 64px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { padding: 13px 2px; border-bottom: 1px dashed var(--line); }
  .metric:last-child { border-bottom: 0; }
  .metric__after { font-size: 40px; }
  .evidence__stats { grid-template-columns: 1fr 1fr; }
  .estat:last-child { grid-column: 1 / -1; }
  .estat__val { font-size: 48px; }
  .demotab { min-width: 150px; }
}
.panel__head .mono { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--muted); }
@media (max-width: 620px) {
  .topbar__inner { gap: 10px; }
  .brand__text strong { white-space: nowrap; }
  .seg__btn { min-width: 40px; padding: 4px 6px; }
}
