/* ==========================================================================
   华体门户 · 共享样式 /assets/site.css
   设计基调：技术蓝图网格 + 深色控制台 + 荧光青状态 / 暖橙行动路径
   ========================================================================== */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: #0B1220;
  background-image:
    linear-gradient(rgba(107, 100, 128, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 100, 128, 0.10) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-position: -1px -1px;
  color: #F2EFE7;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B1220;
  --ink-2: #141D2E;
  --cyan: #3FE0D0;
  --cyan-soft: #63F0E2;
  --orange: #FF8A3D;
  --teal: #1F8F85;
  --clay: #8C4A22;
  --violet: #6B6480;
  --moss: #4A5A50;
  --paper: #F2EFE7;
  --stone: #9AA3AE;

  --line: rgba(107, 100, 128, 0.42);
  --line-soft: rgba(107, 100, 128, 0.24);
  --line-cyan: rgba(63, 224, 208, 0.34);
  --line-warm: rgba(255, 138, 61, 0.40);

  --font-display: 'Barlow Condensed', 'Oswald', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --maxw: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 2px;
}

/* ---------- 3. Typography ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  flex: 0 0 auto;
}
.eyebrow--warm { color: var(--orange); }
.eyebrow--warm::before { background: var(--orange); }

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}
.h1 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
}
.h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  line-height: 1.4;
}
.h3 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.lead {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: #DAD5C9;
  max-width: 68ch;
}
.muted { color: var(--stone); }
.mono { font-family: var(--font-mono); }
.fine {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--violet);
  text-transform: uppercase;
}
.num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--cyan);
}
.num--warm { color: var(--orange); }

.tag {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-cyan);
  color: var(--cyan);
  border-radius: var(--radius);
}
.tag--warm { border-color: var(--line-warm); color: #FFC79B; }
.tag--mute { border-color: var(--line); color: var(--stone); }

/* ---------- 4. Layout ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.section { padding-block: clamp(44px, 6.5vw, 96px); }
.section--tight { padding-block: clamp(26px, 3.5vw, 52px); }
.stack > * + * { margin-top: clamp(14px, 1.8vw, 22px); }
.stack--sm > * + * { margin-top: 10px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.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-12 { grid-column: span 12; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(20px, 2.6vw, 34px);
}
.section-head__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--violet);
}

.band-light {
  background: var(--paper);
  color: var(--ink);
  border-block: 1px solid var(--line);
}
.band-light .h1,
.band-light .h2,
.band-light .h3 { color: var(--ink); }
.band-light .lead { color: #2C3546; }
.band-light .muted { color: #4C5563; }
.band-light .eyebrow { color: #1A6B64; }
.band-light .eyebrow::before { background: #1A6B64; }
.band-light .rule { background: rgba(11, 18, 32, 0.18); }

/* ---------- 5. Buttons / chips / panels ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateX(2px); }
.btn--cyan { background: var(--cyan); border-color: var(--cyan); color: #04211F; }
.btn--cyan:hover { background: var(--cyan-soft); }
.btn--orange { background: var(--orange); border-color: var(--orange); color: #2A1206; }
.btn--orange:hover { background: #FFA365; }
.btn--ghost { background: rgba(242, 239, 231, 0.04); color: var(--paper); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stone);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.chip:hover { color: var(--paper); border-color: var(--line-cyan); }
.chip[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: #04211F; font-weight: 600; }
.chip--warm[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #2A1206; }

.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
}
.glass {
  background: rgba(20, 29, 46, 0.62);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  backdrop-filter: blur(12px) saturate(140%);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.filter-bar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--violet);
  margin-right: 4px;
}
.filter-bar__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}
.filter-empty {
  padding: 28px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--violet);
}

/* ---------- 6. 索引 / 状态 / 面包屑 ---------- */
.index-list { border-top: 1px solid var(--line); }
.index-list__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.index-list__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--violet);
}

.stat { border-top: 1px solid var(--line); padding-top: 12px; }
.stat__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  color: var(--cyan);
}
.stat__label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: clamp(16px, 2vw, 26px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--violet);
}
.crumb__link { color: var(--stone); transition: color 0.18s ease; }
.crumb__link:hover { color: var(--cyan); }
.crumb__sep { opacity: 0.55; }
.crumb [aria-current="page"] { color: var(--cyan); }

/* ---------- 7. 图片容器（页面阶段放图） ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.media__img,
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--violet);
  background-image:
    linear-gradient(rgba(107, 100, 128, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 100, 128, 0.16) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
}
.media__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(63, 224, 208, 0.10) 0%, rgba(11, 18, 32, 0.55) 100%);
}
.media__cap {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--violet);
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }

/* ---------- 8. 命令栏 / Header ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04211F;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.cmdbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 18, 32, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(150%);
}
.cmdbar[data-scrolled] {
  background: rgba(11, 18, 32, 0.97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}
.cmdbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  min-height: 66px;
  padding-block: 8px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  flex: 0 0 auto;
  padding: 4px 9px 5px;
  background: var(--cyan);
  color: #04211F;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}
.brand__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.brand__line {
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
  white-space: nowrap;
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--violet);
  white-space: nowrap;
}

.nav { flex: 1 1 auto; min-width: 0; }
.nav__list { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.nav__list::-webkit-scrollbar { height: 3px; }
.nav__list::-webkit-scrollbar-thumb { background: var(--line); }
.nav__item { flex: 0 0 auto; }
.nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--stone);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.nav__link:hover {
  color: var(--paper);
  border-bottom-color: var(--line-cyan);
  transform: translateX(-2px);
}
.nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--violet);
  transition: color 0.18s ease;
}
.nav__link:hover .nav__idx { color: var(--cyan); }
.nav__link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.nav__link[aria-current="page"] .nav__idx { color: var(--cyan); opacity: 0.75; }

.cmdbar__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.quick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--paper);
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.quick::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  transition: background 0.18s ease;
}
.quick--search:hover { border-color: var(--cyan); color: var(--cyan); }
.quick--search:hover::before { background: var(--cyan); }
.quick--feedback { border-color: var(--line-warm); color: #FFD3B4; }
.quick--feedback::before { background: var(--orange); }
.quick--feedback:hover { border-color: var(--orange); background: rgba(255, 138, 61, 0.12); color: #FFFFFF; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.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: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }
.cmdbar[data-open] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.cmdbar[data-open] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

.cmdbar__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--teal) 55%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}
.cmdbar__ruler {
  display: block;
  height: 5px;
  border-top: 1px solid var(--line-soft);
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px);
  opacity: 0.55;
}

/* ---------- 9. 页脚 ---------- */
.footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  background: linear-gradient(180deg, rgba(20, 29, 46, 0.72) 0%, rgba(11, 18, 32, 1) 42%);
  border-top: 1px solid var(--line);
}
.footer__band {
  height: 8px;
  background: linear-gradient(90deg,
    var(--cyan) 0 16%,
    var(--teal) 16% 40%,
    var(--clay) 40% 74%,
    var(--orange) 74% 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 48px) 100%, 0 100%);
}
.footer__inner { padding-block: clamp(38px, 5.5vw, 72px) 26px; }

.footer__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
}
.footer__brand { grid-column: span 3; }
.footer__cols {
  grid-column: span 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.footer__contact { grid-column: span 4; }

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: 0.02em;
  color: var(--paper);
  line-height: 1.1;
}
.footer__slogan {
  margin-top: 10px;
  font-size: 14px;
  color: var(--stone);
  max-width: 26ch;
}
.footer__note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--violet);
}

.footer__col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
}
.footer__col-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--stone);
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer__link:hover { color: var(--cyan); transform: translateX(3px); }

.contact-list { display: flex; flex-direction: column; gap: 9px; }
.contact-list__row {
  display: flex;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13px;
  line-height: 1.6;
}
.contact-list__key {
  flex: 0 0 66px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--violet);
}
.contact-list__val { color: var(--paper); word-break: break-word; }
.contact-list__val--mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.footer__fine {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--violet);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(30px, 4vw, 54px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer__close {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--violet);
}

/* ---------- 10. 工具类 / 动效钩子 ---------- */
[data-reveal] {
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].is-armed { opacity: 0; transform: translateY(14px); }
[data-reveal].is-armed.is-in { opacity: 1; transform: none; }

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 29, 46, 0.9);
  color: var(--cyan);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, border-color 0.2s ease;
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--cyan); }
.to-top__glyph { font-family: var(--font-mono); font-size: 15px; line-height: 1; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1100px) {
  .brand__tag { display: none; }
  .footer__brand { grid-column: span 12; }
  .footer__cols { grid-column: span 12; }
  .footer__contact { grid-column: span 12; }
}

@media (max-width: 900px) {
  .cmdbar__inner { flex-wrap: wrap; min-height: 0; padding-block: 10px; }
  .nav-toggle { display: inline-flex; order: 2; margin-left: auto; }
  .nav__list { flex-direction: column; gap: 0; overflow: visible; }
  .nav { order: 3; flex: 1 0 100%; display: none; margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
  .nav[data-open] { display: block; }
  .nav__link { justify-content: flex-start; width: 100%; padding: 11px 4px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .nav__link:hover { transform: none; }
  .nav__link[aria-current="page"] { border-bottom-color: var(--line-soft); box-shadow: inset 3px 0 0 var(--cyan); padding-left: 12px; }
  .cmdbar__actions { order: 4; flex: 1 0 100%; display: none; padding: 12px 0 6px; }
  .cmdbar[data-open] .cmdbar__actions { display: flex; }

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

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 1; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer__band { clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); }
  .filter-bar__count { margin-left: 0; }
  .index-list__item { grid-template-columns: 42px minmax(0, 1fr); }
}

@media (max-width: 460px) {
  .brand__text { display: none; }
  .nav-toggle__label { display: none; }
}

/* ---------- 12. Reduced motion ---------- */
@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;
  }
  [data-reveal],
  [data-reveal].is-armed { opacity: 1 !important; transform: none !important; }
  .btn:hover,
  .nav__link:hover,
  .footer__link:hover { transform: none; }
}
