/* ============================================================
   /assets/site.css — 经典指南 · 经典K8 共享外壳与基础组件
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #0B1626;
}

body,
h1, h2, h3, h4, h5, p, figure, blockquote,
ul, ol, dl, dd, fieldset { margin: 0; }

ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B1626;
  --ink-2: #12263D;
  --ink-3: #0E1D31;
  --paper: #F5F2EA;
  --paper-2: #E7E1D3;
  --text-ink: #101820;
  --gold: #C8912E;
  --gold-light: #E7C27D;
  --cyan: #32D3CE;
  --cyan-light: #A8ECE8;
  --mist: #6F8198;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step-0: clamp(0.98rem, 0.3vw + 0.9rem, 1.05rem);
  --step-1: clamp(1.15rem, 0.6vw + 1rem, 1.35rem);
  --step-2: clamp(1.45rem, 1.4vw + 1.1rem, 2rem);
  --step-3: clamp(2.6rem, 6vw, 5.4rem);

  --gutter: clamp(1.05rem, 4vw, 3rem);
  --maxw: 1240px;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --hairline: rgba(231, 194, 125, 0.18);
  --hairline-strong: rgba(231, 194, 125, 0.42);

  --speed: 180ms;
  --ease: cubic-bezier(0.32, 0.72, 0.28, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 { font-size: var(--step-3); line-height: 1.05; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.35; }

p { max-width: 68ch; }

strong { font-weight: 700; }

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

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

/* ---------- 4. Utility primitives ---------- */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  margin-inline: auto;
}

.section {
  padding-block: clamp(2.2rem, 6vw, 4.5rem);
}

.lede {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.12rem);
  line-height: 1.8;
  color: rgba(245, 242, 234, 0.82);
  max-width: 62ch;
}

.surface .lede,
.surface--muted .lede,
.card--paper .lede { color: rgba(16, 24, 32, 0.78); }

.rule {
  height: 1px;
  border: 0;
  margin-block: 1.6rem;
  background: linear-gradient(90deg, var(--hairline-strong), rgba(231, 194, 125, 0));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  line-height: 1.5;
  color: var(--gold-light);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}

.annotation {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--mist);
}

.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.3em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.62rem;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  color: var(--text-ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.tag--gold {
  background: rgba(200, 145, 46, 0.16);
  border: 1px solid rgba(200, 145, 46, 0.45);
  color: var(--gold-light);
}

.tag--cyan {
  background: rgba(50, 211, 206, 0.14);
  border: 1px solid rgba(50, 211, 206, 0.45);
  color: var(--cyan);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: background var(--speed) var(--ease),
              color var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}

.btn--sm { padding: 0.5rem 0.88rem; font-size: 0.82rem; }

.btn--mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #12100A;
}

.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #12100A;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--gold-light);
}

.btn--ghost:hover {
  background: rgba(231, 194, 125, 0.12);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn--cyan {
  background: rgba(50, 211, 206, 0.12);
  border-color: rgba(50, 211, 206, 0.5);
  color: var(--cyan);
}

.btn--cyan:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04181A;
}

.btn.is-copied {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04181A;
}

/* ---------- 6. Layout grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.9rem);
}

.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.rail {
  position: sticky;
  top: 7.5rem;
  align-self: start;
}

/* ---------- 7. Surfaces & cards ---------- */
.surface {
  background: var(--paper);
  color: var(--text-ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2.4rem);
}

.surface--muted {
  background: var(--paper-2);
  color: var(--text-ink);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2.4vw, 1.7rem);
}

.surface--ink {
  background: var(--ink-2);
  color: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2.4vw, 1.7rem);
}

.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2vw, 1.5rem);
  transition: transform var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(231, 194, 125, 0.55);
  box-shadow: 0 18px 36px -28px #000;
}

.card--paper {
  background: var(--paper);
  color: var(--text-ink);
  border-color: rgba(16, 24, 32, 0.14);
}

/* ---------- 8. Image containers (供页面阶段放图) ---------- */
.figure { display: block; margin: 0; }

.figure__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  background:
    linear-gradient(135deg, var(--ink-2) 0%, #0A1320 58%, #132A3F 100%);
}

.figure__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    -12deg,
    rgba(168, 236, 232, 0.16) 0 1px,
    transparent 1px 8px
  );
}

.figure--wide .figure__frame { aspect-ratio: 21 / 9; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }
.figure--tall .figure__frame { aspect-ratio: 4 / 5; }

.figure__caption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.65;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 9. Breadcrumbs ---------- */
.breadcrumbs {
  padding-block: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.55rem;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(111, 129, 152, 0.7);
}

.breadcrumbs__link {
  color: var(--cyan-light);
  transition: color var(--speed) var(--ease);
}

.breadcrumbs__link:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 10. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 300;
  padding: 0.65rem 1.1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--cyan);
  color: #04181A;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transition: transform var(--speed) var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: -4px;
}

/* ---------- 11. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background: rgba(245, 242, 234, 0.06);
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: width 120ms linear;
}

/* 上层工具带 */
.header-utility {
  background: var(--ink-3);
  border-bottom: 1px solid rgba(111, 129, 152, 0.22);
}

.header-utility__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  min-height: 38px;
  padding-block: 0.3rem;
}

.header-utility__note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--mist);
  max-width: none;
}

.header-utility__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--cyan-light);
  transition: color var(--speed) var(--ease),
              background var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}

.utility-link:hover {
  color: var(--cyan);
  border-color: rgba(50, 211, 206, 0.5);
  background: rgba(50, 211, 206, 0.08);
}

.utility-link--search::before {
  content: "⌕";
  font-size: 0.9em;
  line-height: 1;
  color: var(--cyan);
}

/* 下层主栏 */
.header-main {
  position: relative;
  background:
    linear-gradient(180deg, rgba(18, 38, 61, 0.55) 0%, rgba(11, 22, 38, 0) 78%);
}

.header-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    -18deg,
    rgba(50, 211, 206, 0.06) 0 1px,
    transparent 1px 11px
  );
}

.header-main__inner {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.9rem);
  padding-block: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(200, 145, 46, 0.75);
  background: radial-gradient(circle at 30% 20%, rgba(200, 145, 46, 0.35), transparent 72%);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--gold-light);
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  border-color: var(--cyan);
  color: var(--cyan);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.brand__sub {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--mist);
}

/* 主导航 */
.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.12rem;
}

.nav__item { list-style: none; }

.nav__link {
  display: block;
  padding: 0.5rem 0.78rem;
  border-radius: var(--radius-pill);
  font-size: 0.93rem;
  line-height: 1.4;
  color: rgba(245, 242, 234, 0.78);
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.nav__link:hover {
  color: var(--paper);
  background: rgba(245, 242, 234, 0.07);
}

.nav__link[aria-current="page"] {
  background: var(--cyan);
  color: #04181A;
  font-weight: 600;
}

.nav__link[aria-current="page"]:hover {
  background: var(--cyan-light);
  color: #04181A;
}

.header-cta { flex: 0 0 auto; }

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--speed) var(--ease), top var(--speed) var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }

.site-header[data-open="true"] .nav-toggle {
  color: var(--cyan);
  border-color: rgba(50, 211, 206, 0.6);
}

.site-header[data-open="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  color: var(--paper);
  border-top: 1px solid rgba(231, 194, 125, 0.3);
  margin-top: clamp(2.5rem, 7vw, 5rem);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(50, 211, 206, 0.85) 55%, transparent);
}

.footer__arc {
  position: absolute;
  top: -30%;
  right: -10%;
  width: min(520px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(50, 211, 206, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.footer__arc--sm {
  top: auto;
  right: auto;
  bottom: -18%;
  left: -6%;
  width: min(240px, 42vw);
  border-color: rgba(200, 145, 46, 0.22);
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-block: clamp(2.4rem, 6vw, 4.2rem);
}

.footer__lede { display: grid; gap: 0.7rem; justify-items: start; }

.footer__brand-line {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--paper);
  max-width: none;
}

.footer__url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--cyan-light);
  max-width: none;
}

.footer__line {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(245, 242, 234, 0.72);
  max-width: 34ch;
}

.footer__label {
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  line-height: 1.5;
  color: var(--gold-light);
  max-width: none;
}

.footer__list { display: grid; gap: 0.42rem; }

.footer__link {
  display: inline-block;
  padding-block: 0.1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(245, 242, 234, 0.78);
  transition: color var(--speed) var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__list--contact { gap: 0.7rem; }

.footer__list--contact li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.6rem;
  font-size: 0.86rem;
  line-height: 1.65;
}

.footer__k {
  padding-top: 0.18rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.footer__v {
  color: rgba(245, 242, 234, 0.86);
  overflow-wrap: anywhere;
}

.footer__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
}

.footer__legal .footer__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--cyan-light);
}

.footer__icp,
.footer__copy { white-space: nowrap; max-width: none; }

.footer__update {
  flex: 1 1 22ch;
  max-width: 46ch;
  color: rgba(111, 129, 152, 0.95);
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: clamp(0.9rem, 3vw, 2rem);
  bottom: clamp(0.9rem, 3vw, 2rem);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.9rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: var(--ink-2);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--speed) var(--ease),
              transform var(--speed) var(--ease),
              visibility var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              color var(--speed) var(--ease);
}

.to-top::before { content: "↑"; color: var(--cyan); }

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1080px) {
  .nav__link { padding: 0.48rem 0.6rem; font-size: 0.88rem; }
  .brand__sub { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .brand__sub { display: block; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: min(78vh, 520px);
    overflow-y: auto;
    padding: 0.6rem var(--gutter) 1rem;
    background: var(--ink-2);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline-strong);
    box-shadow: 0 28px 44px -28px #000;
    justify-content: flex-start;
  }

  .site-header[data-open="true"] .nav { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    width: 100%;
  }

  .nav__link {
    padding: 0.72rem 0.8rem;
    border-radius: 0.7rem;
    font-size: 1rem;
  }

  .nav__link[aria-current="page"] { border-radius: 0.7rem; }

  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-7,
  .col-8,
  .col-9 { grid-column: span 6; }

  .rail { position: static; top: auto; }

  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__lede { grid-column: 1 / -1; }
  .footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .header-utility__note { font-size: 0.62rem; letter-spacing: 0.12em; }
  .header-main__inner { gap: 0.55rem; }
  .brand__name { font-size: 1.15rem; }
  .brand__sub { display: none; }
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .header-cta { padding: 0.46rem 0.7rem; font-size: 0.76rem; }
  .nav-toggle { padding: 0.42rem 0.55rem; }
  .nav-toggle__label { display: none; }

  .grid { grid-template-columns: minmax(0, 1fr); }
  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-12 { grid-column: 1 / -1; }

  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__meta { gap: 0.55rem 1rem; font-size: 0.68rem; }
  .footer__icp,
  .footer__copy { white-space: normal; }
  .to-top { font-size: 0.66rem; padding: 0.5rem 0.75rem; }
}

/* ---------- 14. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .card:focus-within,
  .btn--gold:hover,
  .to-top { transform: none; }
}

@media print {
  .site-header,
  .site-footer,
  .to-top,
  .scroll-progress,
  .nav-toggle { display: none !important; }

  body { background: #fff; color: #000; }
  .container { width: 100%; }
}
