/* 青阶·石阶 Linux 教学平台 · 设计系统
   沿用青阶的方向：深墨绿舞台 + 奶油纸色 + 荧光绿强调，
   一个高光时刻（页头海报），其余安静；数字大、说明少。 */

:root {
  --bg: #f7f6f0;
  --bg-2: #f1f0e7;
  --card: #ffffff;
  --raised: #efeee4;
  --ink: #1a1e19;
  --ink-2: #4b5449;
  --ink-3: #788276;
  --line: rgba(26, 30, 25, 0.10);
  --line-strong: rgba(26, 30, 25, 0.20);

  --accent: #2c6a4c;
  --accent-deep: #1f5039;
  --accent-soft: #e3ede4;
  --accent-wash: #f2f7f1;

  --danger: #a93b32;
  --positive: #1f7a4d;
  --warn: #8f5d1d;

  --ink-green: #091c13;
  --ink-green-2: #102a1c;
  --cream: #f4f0e2;
  --lime: #cdff5e;
  --lime-soft: rgba(205, 255, 94, 0.16);

  /* 四态进度配色（对应 locked/white/green/red） */
  --st-locked: #b9beb6;
  --st-locked-bg: #f0f0ea;
  --st-open: #4b5449;
  --st-open-bg: #ffffff;
  --st-pass: #1f7a4d;
  --st-pass-bg: #e8f5ec;
  --st-fail: #a93b32;
  --st-fail-bg: #fdeceb;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
  --mid: 320ms;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------- 顶栏 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(247, 246, 240, 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 17px;
  white-space: nowrap;
}

.nav-brand svg { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--accent-wash); }
.nav-link.active { color: var(--ink-green); font-weight: 700; background: var(--accent-soft); }

.nav-link .badge {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--raised);
  color: var(--ink-3);
}
.nav-link.active .badge { background: var(--accent); color: var(--cream); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
}

.nav-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink-green);
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease),
    border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn:hover { border-color: var(--accent); background: var(--accent-wash); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--ink-green);
  border-color: var(--ink-green);
  color: var(--cream);
}
.btn-primary:hover { background: var(--ink-green-2); border-color: var(--ink-green-2); }

.btn-lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-green);
}
.btn-lime:hover { background: #d8ff7a; border-color: #d8ff7a; }

.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--accent-wash); border-color: transparent; }

/* ---------------- 页头海报 ---------------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 74px) 0 clamp(30px, 4vw, 52px);
  background: var(--ink-green);
  color: var(--cream);
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1100px 380px at 88% -30%, rgba(205, 255, 94, 0.16), transparent 62%);
  pointer-events: none;
}

.page-head .wrap { position: relative; z-index: 2; }

.page-head h1 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.page-head .lede {
  margin-top: 12px;
  max-width: 60ch;
  font-size: clamp(14px, 1.6vw, 16px);
  color: rgba(244, 240, 226, 0.72);
}

.page-head .ghost {
  position: absolute;
  right: -0.04em;
  bottom: -0.26em;
  z-index: 1;
  font-size: clamp(80px, 17vw, 220px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(205, 255, 94, 0.20);
  pointer-events: none;
  user-select: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(30px, 4.4vw, 58px) 0; }
.section.tight { padding: clamp(20px, 2.6vw, 34px) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(21px, 2.6vw, 28px);
  letter-spacing: -0.025em;
  font-weight: 800;
}

.section-head .sub { color: var(--ink-3); font-size: 13.5px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------- 卡片 ---------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}

.card-pad { padding: 22px 24px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------- 三阶段流程 ---------------- */

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: stage;
}

.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease),
    border-color var(--mid) var(--ease);
}

.flow-step::before {
  counter-increment: stage;
  content: "0" counter(stage);
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.flow-step:hover:not(.locked) {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -30px rgba(9, 28, 19, 0.55);
  border-color: var(--accent);
}

.flow-step.current {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-wash), var(--card) 62%);
}
.flow-step.current::before { color: var(--accent); }

.flow-step.locked { opacity: 0.62; }
.flow-step.done { border-color: var(--st-pass); background: linear-gradient(180deg, var(--st-pass-bg), var(--card) 62%); }

.flow-step h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.flow-step p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

.flow-step .step-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--raised);
  color: var(--ink-2);
  white-space: nowrap;
}

.pill-pass { background: var(--st-pass-bg); color: var(--st-pass); }
.pill-fail { background: var(--st-fail-bg); color: var(--st-fail); }
.pill-open { background: var(--accent-soft); color: var(--accent-deep); }
.pill-lock { background: var(--st-locked-bg); color: var(--ink-3); }
.pill-lime { background: var(--lime); color: var(--ink-green); }

/* 三档徽章 */
.tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  border: 1px solid transparent;
}
.tier-weak { background: var(--st-fail-bg); color: var(--st-fail); border-color: rgba(169, 59, 50, 0.25); }
.tier-mid { background: var(--accent-soft); color: var(--accent-deep); border-color: rgba(44, 106, 76, 0.22); }
.tier-strong { background: #eef7d8; color: #33530f; border-color: rgba(205, 255, 94, 0.6); }
.tier-none { background: var(--raised); color: var(--ink-3); border-color: var(--line); }

/* ---------------- 统计 ---------------- */

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.stat .num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .lab { font-size: 12px; color: var(--ink-3); }
.stat .num.pass { color: var(--st-pass); }
.stat .num.fail { color: var(--st-fail); }

/* ---------------- 图表容器 ---------------- */

.graph-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fbfbf7, #f4f5ee);
  overflow: hidden;
  /* 与橡树底图同为 16:9：按宽度适配后正好铺满，不再上下各留一大块空白。
     原来是固定 620px 高 + 832px 宽的 4:3，树只占到 41% 的高度。 */
  /* 必须显式给宽度：只写 aspect-ratio + max-height 时浏览器会按高度反推宽度
     （570×16/9≈1013px），卡片右边缘回缩，右侧空出一条。 */
  width: 100%;
  aspect-ratio: 16 / 9;
  /* 按视口封顶，让图谱底边落在首屏内，不用滚动就能看全。
     fitToView 的包围盒高度是「树高 562.5 + 上下留白 52 + 工具栏预留 58 ≈ 672」，
     容器低于这个数就会被高度卡住缩放（570 高时 scale 只有 0.845，树左右各空 168px）。
     这里配合 .section--graph 收掉的顶部留白，把可用高度抬到 ~620。 */
  max-height: min(820px, calc(100vh - 380px));
}

/* 图谱是首屏主体，不要沿用普通 section 那 58px 的上留白 */
.section--graph { padding-top: clamp(16px, 2vw, 26px); }

@media (max-width: 860px) {
  /* 窄屏关掉 aspect-ratio 固定高度：390px 手机上 16:9 只有 219px 高，
     节点文字会挤成一条；而且 height 一旦低于 min-height，浏览器会按高度
     反推宽度，把画布撑到 676px，横向溢出 306px。 */
  .graph-shell {
    aspect-ratio: auto;
    height: 420px;
    max-height: none;
  }
}

/* 知识点详情浮层：不再长期占掉 336px 宽度，画布因此能吃满整宽 */
.node-panel {
  position: absolute;
  top: 60px;
  right: 14px;
  bottom: 14px;
  width: min(340px, calc(100% - 28px));
  overflow-y: auto;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 42px -22px rgba(9, 28, 19, 0.5);
  /* 必须高于工具栏（z-index 4），否则会被视图切换按钮压住 */
  z-index: 5;
}
.node-panel[hidden] { display: none; }

.node-panel-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.node-panel-close:hover { background: var(--raised); color: var(--ink); }

@media (max-width: 860px) {
  /* 手机上浮层改成贴底，横向挤不下 340px 的侧栏 */
  .node-panel {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: 58%;
  }
}

.graph-svg { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.graph-svg.panning { cursor: grabbing; }

/* 橡树底图：原图是白底，直接叠上去会显出一块突兀的白方块。
   multiply 让白色融进卡片渐变底，只留下树本身。 */
.graph-svg .tree-bg {
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.95;
}

/* 胶囊节点浮在插画上：不加投影时，压到深绿树叶上的节点边界会糊成一片，
   分不清哪里是节点、哪里是背景。 */
.graph-svg .gnode {
  filter: drop-shadow(0 1px 2px rgba(9, 28, 19, 0.22));
}
.graph-svg .gnode:hover {
  filter: drop-shadow(0 2px 5px rgba(9, 28, 19, 0.3));
}

.graph-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 4;
  pointer-events: none;
}
.graph-toolbar > * { pointer-events: auto; }

.graph-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -12px rgba(9, 28, 19, 0.5);
}

.graph-seg button {
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.graph-seg button.active { background: var(--ink-green); color: var(--cream); }

.graph-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-2);
  z-index: 4;
}
.graph-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
}

/* ---------------- 终端 ---------------- */

.term-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.term-box {
  border: 1px solid var(--ink-green);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0b1611;
  min-height: 420px;
}

.term-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--ink-green-2);
  color: var(--cream);
  font-size: 12px;
  font-family: var(--font-mono);
}
.term-dots { display: inline-flex; gap: 5px; margin-right: 4px; }
.term-dots i { width: 9px; height: 9px; border-radius: 50%; background: #4b5449; }
.term-dots i:nth-child(1) { background: #e0574b; }
.term-dots i:nth-child(2) { background: #e2b93b; }
.term-dots i:nth-child(3) { background: #4fbe6a; }

.term-mount { height: min(430px, 56vh); padding: 8px; }
.term-mount .xterm { height: 100%; }

/* ---------------- 表单 ---------------- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }

.input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--card);
  font-size: 14px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea.input { min-height: 90px; resize: vertical; font-family: var(--font-mono); font-size: 13px; }

/* ---------------- 表格 ---------------- */

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left;
  padding: 9px 12px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: var(--accent-wash); }

.bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--raised);
  overflow: hidden;
  min-width: 70px;
}
.bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--accent); }
.bar.pass > i { background: var(--st-pass); }
.bar.fail > i { background: var(--st-fail); }

/* ---------------- 提示条 ---------------- */

.note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--accent-wash);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.62;
}
.note.warn { background: #fdf6e8; border-color: rgba(143, 93, 29, 0.28); color: #6b4512; }
.note.danger { background: var(--st-fail-bg); border-color: rgba(169, 59, 50, 0.28); color: #7d2a23; }

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink-green);
  color: var(--cream);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
  z-index: 400;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 抽屉 ---------------- */

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(9, 28, 19, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mid) var(--ease);
  z-index: 200;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--line-strong);
  transform: translateX(100%);
  transition: transform var(--mid) var(--ease);
  z-index: 210;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; }

/* ---------------- 空态 ---------------- */

.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 48px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
}
.empty svg { width: 34px; height: 34px; opacity: 0.5; }

/* ---------------- 工具类 ---------------- */

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.mt { margin-top: 16px; }
.mt-sm { margin-top: 10px; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
  .term-shell { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    z-index: 59;
  }
  .nav-toggle { display: inline-flex !important; }
}

.nav-toggle { display: none; }

@media (max-width: 620px) {
  .page-head .ghost { font-size: 62px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stat .num { font-size: 24px; }
}

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