/* ============================================================
   ganliu.blog — personal site
   Kami design language: warm parchment, ink-blue accent,
   serif-led hierarchy, tight editorial rhythm.
   Tokens & primitives derived from Kami's landing-page template;
   portfolio components (systems, ledger, pubcards, cv, skills)
   built in the same vocabulary.
   ============================================================ */

/* ---------- Self-hosted mono (engineer texture on tags/stack) ---------- */
@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ========== Tokens ========== */
:root {
  --parchment:   #f5f4ed;
  --ivory:       #faf9f5;
  --warm-sand:   #e8e6dc;

  --brand:       #1B365D;
  --brand-light: #2D5A8A;
  --brand-tint:  #EEF2F7;

  --near-black:  #141413;
  --dark-warm:   #3d3d3a;
  --olive:       #504e49;
  --stone:       #6b6a64;

  --accepted:    #2f6f43;   /* semantic status only (research accepted) */
  --amber:       #9a6a1f;   /* semantic status only (in-progress / review) */

  --border:      #e8e6dc;
  --border-soft: #e5e3d8;
  --line:        #d8d5c8;

  --serif: Charter, "Songti SC", "Noto Serif SC", "Source Han Serif SC",
           Georgia, Palatino, "Times New Roman", serif;
  --mono:  "JetBrains Mono", "SF Mono", "Fira Code", Consolas, Monaco, monospace;
  --latin-ui: system-ui, -apple-system, "Segoe UI", "PingFang SC", sans-serif;

  --radius: 10px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--parchment);
  color: var(--near-black);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-light); }

.num { font-variant-numeric: lining-nums tabular-nums; }

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 64px 100px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .2px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  transition: background .15s, border-color .15s, color .15s, transform .15s;
  cursor: pointer;
  min-width: 150px;
}
.btn-primary { background: var(--brand); color: var(--ivory); }
.btn-primary:hover { background: var(--brand-light); border-color: var(--brand-light); color: var(--ivory); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand); transform: translateY(-1px); }

/* ========== Hero ========== */
.hero {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 72px;
}
.eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--latin-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 26px;
}
.eyebrow .role-mark { color: var(--dark-warm); }
.eyebrow .role-mark b { color: var(--brand); font-weight: 600; }
.eyebrow-date { color: var(--stone); }

.hero-links { display: flex; gap: 10px; align-items: center; }
.hero-links > a {
  color: var(--stone);
  display: inline-flex;
  align-items: center;
  padding: 4px;
}
.hero-links > a:hover { color: var(--brand); }

/* language switch (dropdown) — descender-safe, hover-bridged */
.lang-switch { position: relative; }
.lang-trigger {
  appearance: none;
  border: 1px solid var(--border-soft);
  background: var(--ivory);
  color: var(--olive);
  font-family: var(--latin-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 30px;
  transition: color .15s, border-color .15s;
}
.lang-trigger::after { content: "▾"; margin-left: 6px; font-size: 10px; opacity: .7; }
.lang-trigger:hover { color: var(--brand); border-color: var(--line); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 132px;
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(20,19,19,.10);
  padding: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 20;
}
.lang-menu::before { /* invisible bridge trigger→menu */
  content: "";
  position: absolute;
  top: -8px; left: 0; right: 0; height: 8px;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: block;
  font-family: var(--latin-ui);
  font-size: 13px;
  color: var(--olive);
  padding: 6px 10px;
  min-height: 32px;
  line-height: 1.35;
  border-radius: 5px;
  text-transform: none;
  letter-spacing: 0;
}
.lang-menu a:hover { background: var(--brand-tint); color: var(--brand); }
.lang-menu a.active { color: var(--brand); font-weight: 600; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 88px;
  line-height: 1.04;
  letter-spacing: -.5px;
  margin: 0 0 16px;
  color: var(--near-black);
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  animation: hero-rise 900ms cubic-bezier(.16,1,.3,1) 100ms forwards;
}
.hero h1 .cn {
  font-size: .42em;
  font-weight: 500;
  color: var(--stone);
  margin-left: 18px;
  letter-spacing: 0;
  vertical-align: baseline;
}
@keyframes hero-rise { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

.hero .tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.45;
  color: var(--olive);
  letter-spacing: .1px;
  margin: 0 0 20px;
  max-width: 800px;
}
.hero .tagline b { color: var(--dark-warm); font-weight: 600; }

.now {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  font-family: var(--latin-ui);
  font-size: 13px;
  color: var(--stone);
  margin: 0 0 26px;
}
.now b { color: var(--dark-warm); font-weight: 600; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accepted);
  display: inline-block;
  margin-right: 5px;
  box-shadow: 0 0 0 3px rgba(47,111,67,.14);
}

.hero-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 0 0 30px;
  font-family: var(--latin-ui);
  font-size: 13px;
  color: var(--stone);
}
.hero-tokens span { display: inline-flex; gap: 7px; align-items: baseline; }
.hero-tokens b { color: var(--dark-warm); font-weight: 600; }

.hero-cta { display: flex; align-items: center; gap: 16px; }

/* ========== Section primitives ========== */
section { margin-bottom: 68px; }
.section-head { margin-bottom: 26px; }
.section-num {
  font-family: var(--latin-ui);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--brand);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 0 0 7px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 31px;
  line-height: 1.2;
  color: var(--near-black);
  margin: 0;
  letter-spacing: -.2px;
}
.section-lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--olive);
  margin: 12px 0 0;
  max-width: 760px;
}

/* ========== Approach (manifesto + metrics) ========== */
.manifesto {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--near-black);
  margin: 0 0 34px;
  font-weight: 400;
  max-width: 900px;
}
.manifesto em { color: var(--brand); font-style: normal; }

/* ========== Highlights (profile / 个人优势 — plain, pointed) ========== */
.highlights {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  max-width: 880px;
  counter-reset: hl;
}
.highlights li {
  position: relative;
  padding: 0 0 15px 40px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--dark-warm);
  counter-increment: hl;
}
.highlights li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.highlights li::before {
  content: counter(hl, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 3px;
  font-family: var(--latin-ui);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: lining-nums tabular-nums;
}
.highlights b { color: var(--near-black); font-weight: 600; }
.highlights em { color: var(--brand); font-style: normal; font-weight: 500; }

/* stat cards (résumé-style: brand-coloured value, bordered card) */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ivory);
  padding: 18px 18px 16px;
}
.metric-value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.05;
  color: var(--brand);
  font-variant-numeric: lining-nums tabular-nums;
}
.metric-value b { color: var(--brand); font-weight: 500; }
.metric-value .unit { font-size: .56em; color: var(--olive); font-weight: 400; letter-spacing: 0; }
.metric-label {
  font-family: var(--latin-ui);
  font-size: 12.5px;
  color: var(--olive);
  letter-spacing: .2px;
  line-height: 1.3;
}

/* ========== Systems (flagship project cards) ========== */
.systems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.system {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ivory);
  padding: 26px 26px 22px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.system:hover {
  box-shadow: 0 6px 30px rgba(20,19,19,.06);
  border-color: var(--line);
  transform: translateY(-2px);
}
.system .kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.system .khead { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sysicon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.5px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,19,19,.10);
}
.sysicon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.system .kicker h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  color: var(--near-black);
  margin: 0;
  letter-spacing: -.2px;
}
.system .role {
  font-family: var(--latin-ui);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.system .arch {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--olive);
  margin: 4px 0 14px;
  letter-spacing: -.1px;
}
.system .lede {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--dark-warm);
  margin: 0 0 14px;
}
.slist { list-style: none; margin: 0 0 16px; padding: 0; }
.slist li {
  position: relative;
  padding-left: 17px;
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--olive);
  margin-bottom: 8px;
}
.slist li:last-child { margin-bottom: 0; }
.slist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 5px; height: 5px;
  border: 1px solid var(--brand);
  border-radius: 1px;
  transform: rotate(45deg);
}
.slist b { color: var(--near-black); font-weight: 600; }
.system .stack {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--stone);
  margin: 0 0 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
  letter-spacing: -.1px;
}
.system .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--latin-ui);
  font-size: 12px;
  color: var(--stone);
}
.status .sdot { width: 6px; height: 6px; border-radius: 50%; background: var(--stone); }
.status.live .sdot { background: var(--accepted); }
.status.raising .sdot { background: var(--amber); }
.status.raising { color: var(--amber); font-weight: 500; }
.system .links { font-family: var(--latin-ui); font-size: 12.5px; }
.system .links a { color: var(--brand); font-weight: 500; }

/* ========== Ledger (also built / research projects) ========== */
.subhead {
  font-family: var(--latin-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--stone);
  margin: 34px 0 12px;
}
.ledger { border-top: 1px solid var(--border-soft); }
.ledger-row {
  display: grid;
  grid-template-columns: 200px 1fr 170px;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
}
.ledger-row .lname {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--near-black);
  margin: 0;
}
.ledger-row .lname a { color: var(--near-black); }
.ledger-row .lname a:hover { color: var(--brand); }
.ledger-row .ldesc {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--olive);
  margin: 0;
}
.ledger-row .lmeta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--stone);
  margin: 0;
  text-align: right;
  letter-spacing: -.1px;
}

/* ========== Publication cards ========== */
.pubcards { display: grid; gap: 20px; }
.pubcard {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ivory);
  overflow: hidden;
}
.pubcard .fig {
  background: #0f1114;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.pubcard .fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pubcard .body { padding: 22px 24px; }
.venue-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 12px;
}
.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--latin-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 4px 10px;
  border-radius: 999px;
}
.venue-badge .star { color: var(--amber); }
.pub-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--latin-ui);
  font-size: 11.5px;
  font-weight: 600;
}
.pub-status .pdot { width: 6px; height: 6px; border-radius: 50%; }
.pub-status.accepted { color: var(--accepted); }
.pub-status.accepted .pdot { background: var(--accepted); }
.pub-status.review { color: var(--amber); }
.pub-status.review .pdot { background: var(--amber); }
.venue-tier { font-family: var(--latin-ui); font-size: 12px; color: var(--stone); }
.pubcard h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--near-black);
  margin: 0 0 8px;
}
.pubcard .authors {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--olive);
  margin: 0 0 10px;
}
.pubcard .authors .me { color: var(--brand); font-weight: 600; }
.pubcard .contrib {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dark-warm);
  margin: 0 0 10px;
}
.pubcard .pfoot {
  font-family: var(--latin-ui);
  font-size: 12px;
  color: var(--stone);
}
.pubcard .pfoot a { color: var(--brand); font-weight: 500; }

/* ========== CV (experience / education) ========== */
.cv { border-top: 1px solid var(--border-soft); }
.cv-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}
.cv-row .when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone);
  margin: 2px 0 0;
  letter-spacing: -.2px;
}
.cv-row .where {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--near-black);
  margin: 0 0 2px;
}
.cv-row .where .tag-inline { color: var(--stone); font-weight: 400; font-size: 13px; }
.cv-row .what {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--brand);
  margin: 0 0 8px;
}
.dash { list-style: none; margin: 0; padding: 0; }
.dash li {
  position: relative;
  padding-left: 16px;
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--olive);
  margin-bottom: 5px;
}
.dash li::before {
  content: "–";
  position: absolute;
  left: 0; top: 0;
  color: var(--stone);
}
.dash b { color: var(--near-black); font-weight: 600; }

/* ========== Awards ========== */
.awards { list-style: none; margin: 0; padding: 0; }
.awards li {
  position: relative;
  padding-left: 20px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--olive);
  margin-bottom: 8px;
}
.awards li::before {
  content: "★";
  position: absolute;
  left: 0; top: 1px;
  color: var(--amber);
  font-size: 11px;
}
.awards b { color: var(--near-black); font-weight: 600; }

/* ========== Toolkit (skills grid) ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.skill-cell { background: var(--ivory); padding: 22px 24px; }
.skill-cell .sk-label {
  font-family: var(--latin-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 10px;
}
.skill-cell .sk-items {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dark-warm);
  margin: 0;
}

/* ========== Footer ========== */
.footer {
  margin-top: 52px;
  padding-top: 38px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}
.footer .mark {
  display: grid;
  grid-template-columns: 52px auto;
  column-gap: 14px;
  align-items: center;
}
.footer .mark svg { grid-row: 1 / span 2; }
.footer .mark .wm-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--near-black);
  line-height: 1.15;
}
.footer .mark .wm-sub {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--olive);
  margin-top: 2px;
}
.footer .colophon {
  text-align: right;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--stone);
  max-width: 460px;
}
.footer .colophon .links { font-family: var(--latin-ui); margin-bottom: 8px; }
.footer .colophon .links a { color: var(--dark-warm); font-weight: 500; }
.footer .colophon .links a:hover { color: var(--brand); }
.footer .colophon .place { margin-bottom: 8px; }
.footer .colophon .ethos { color: var(--olive); font-style: italic; line-height: 1.55; }

/* ========== CJK chrome (ZH page) ==========
   Keep Chinese glyphs in a serif face even inside UI/mono chrome so the
   serif-led hierarchy holds; Latin in these labels still renders system/mono. */
html[lang="zh-CN"] .eyebrow,
html[lang="zh-CN"] .role,
html[lang="zh-CN"] .status,
html[lang="zh-CN"] .venue-tier,
html[lang="zh-CN"] .subhead,
html[lang="zh-CN"] .section-num,
html[lang="zh-CN"] .metric-label,
html[lang="zh-CN"] .sk-label,
html[lang="zh-CN"] .now,
html[lang="zh-CN"] .hero-tokens,
html[lang="zh-CN"] .lang-trigger,
html[lang="zh-CN"] .lang-menu a {
  font-family: system-ui, -apple-system, "Segoe UI", "Songti SC",
               "Noto Serif SC", "Source Han Serif SC", sans-serif;
}
html[lang="zh-CN"] .arch,
html[lang="zh-CN"] .stack,
html[lang="zh-CN"] .lmeta {
  font-family: "JetBrains Mono", "SF Mono", Consolas, "Songti SC",
               "Noto Serif SC", "Source Han Serif SC", monospace;
}

/* ========== Responsive ========== */
@media (max-width: 880px) {
  .page { padding: 56px 28px 72px; }
  .hero { margin-bottom: 52px; padding-bottom: 30px; }
  .hero h1 { font-size: 60px; }
  .hero h1 .cn { font-size: .38em; margin-left: 12px; }
  .hero .tagline { font-size: 18px; }

  section { margin-bottom: 52px; }
  .section-title { font-size: 26px; }
  .manifesto { font-size: 18px; }

  .systems { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-grid { grid-template-columns: 1fr; }

  .pubcard { grid-template-columns: 1fr; }
  .pubcard .fig { border-right: none; border-bottom: 1px solid var(--border); max-height: 220px; }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
  .ledger-row .lmeta { text-align: left; }

  .cv-row { grid-template-columns: 1fr; gap: 6px; }
  .cv-row .when { order: -1; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer .colophon { text-align: left; max-width: 100%; }
}

@media (max-width: 480px) {
  .page { padding: 44px 20px 60px; }
  .hero h1 { font-size: 46px; }
  .hero h1 .cn { display: inline-block; margin-left: 0; margin-top: 4px; }
  .hero .tagline { font-size: 16.5px; }
  .eyebrow { flex-wrap: wrap; gap: 14px; }
  .hero-cta { gap: 10px; }
  .btn { min-width: 0; flex: 1; padding: 12px 14px; }
  .metric-value { font-size: 22px; }
  .system { padding: 22px 20px 20px; }
  .system .kicker { flex-wrap: wrap; gap: 8px; }
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; opacity: 1; transform: none; filter: none; }
  * { transition: none !important; }
}

/* ========== Print ========== */
@media print {
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page { padding: 0; max-width: 100%; }
  .hero-links, .hero-cta, .lang-switch { display: none; }
  section, .system, .pubcard { break-inside: avoid; }
}
