/* ============ 1. Tokens ============ */
:root {
  --ink-900: #08122E;
  --ink-800: #101D44;
  --ink-700: #1B2C5F;
  --brass-500: #C58B4E;
  --brass-300: #E3B77E;
  --silver-200: #C9D3E6;
  --silver-050: #F3F6FB;
  --paper: #F7F9FF;
  --teal-400: #16D9BE;
  --amber: #C98A2E;
  --sky: #2F7FB8;
  --violet: #7563C9;
  --mint: #3E9B78;
  --coral: #D96B5F;

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

  --line: 1px solid rgba(201, 211, 230, 0.16);
  --line-brass: 1px solid rgba(197, 139, 78, 0.42);
  --shadow-soft: 0 18px 42px -28px rgba(2, 6, 20, 0.95);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 2px;
  --measure: 68ch;
}

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

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

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

ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }

img, svg, video { max-width: 100%; }

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

a { color: inherit; }

/* ============ 3. Base typography ============ */
body {
  background-color: var(--ink-900);
  color: var(--silver-200);
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-cn);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.012em;
  color: var(--paper);
}

:where(h1) { font-size: clamp(34px, 5vw, 56px); font-weight: 900; }
:where(h2) { font-size: clamp(24px, 3vw, 32px); }
:where(h3) { font-size: clamp(19px, 2.1vw, 24px); }
:where(h4) { font-size: 17px; }

p { max-width: var(--measure); }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

::selection {
  background: var(--brass-500);
  color: var(--ink-900);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.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;
}

/* ============ 4. Layout primitives ============ */
.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .wrap { padding-inline: 32px; }
}

@media (min-width: 1200px) {
  .wrap { padding-inline: 64px; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}

.grid--gap-lg { gap: clamp(28px, 4vw, 64px); }

.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; }

@media (max-width: 900px) {
  .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9 { grid-column: span 12; }
}

/* ============ 5. Panels & section type ============ */
.panel {
  position: relative;
  background: var(--ink-800);
  border: var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--shadow-soft);
}

.panel--light {
  background: var(--silver-050);
  color: var(--ink-800);
  border-color: rgba(27, 44, 95, 0.14);
}

.panel--light :where(h1, h2, h3, h4) { color: var(--ink-800); }
.panel--light .lede { color: var(--ink-700); }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(16px, 2vw, 28px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-300);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: var(--brass-500);
  flex: none;
}

.section-title { font-size: clamp(26px, 3.4vw, 40px); }

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.85;
  color: var(--silver-200);
}

/* ============ 6. Slash ornament ============ */
.slash-band { position: relative; overflow: hidden; }

.slash-band::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -6%;
  width: 54%;
  height: 130%;
  background: linear-gradient(150deg, rgba(197, 139, 78, 0.17), rgba(22, 217, 190, 0.07) 58%, transparent 82%);
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.slash-band > * { position: relative; z-index: 1; }

/* ============ 7. Data cards / tags ============ */
.data-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--ink-800);
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--board, var(--brass-500));
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: var(--silver-200);
  white-space: nowrap;
}

[data-board] { --board: var(--silver-200); }
[data-board="wensan"]  { --board: var(--amber); }
[data-board="cuiyuan"] { --board: var(--sky); }
[data-board="gudang"]  { --board: var(--violet); }
[data-board="xixi"]    { --board: var(--mint); }
[data-board="liuxia"]  { --board: var(--coral); }
[data-board="jiangcun"]{ --board: var(--teal-400); }

.tag--amber   { color: var(--amber); }
.tag--sky     { color: var(--sky); }
.tag--violet  { color: var(--violet); }
.tag--mint    { color: var(--mint); }
.tag--coral   { color: var(--coral); }
.tag--teal    { color: var(--teal-400); }

/* ============ 8. Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--teal-400);
  border-color: var(--teal-400);
  color: #04121A;
}

.btn--primary:hover { background: #3DEBD4; border-color: #3DEBD4; }

.btn--brass {
  background: var(--brass-500);
  border-color: var(--brass-500);
  color: var(--ink-900);
}

.btn--brass:hover { background: var(--brass-300); border-color: var(--brass-300); }

.btn--ghost {
  background: transparent;
  border-color: rgba(201, 211, 230, 0.34);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--brass-300);
  color: var(--brass-300);
}

.btn--sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ============ 9. Breadcrumb ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(201, 211, 230, 0.62);
}

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(197, 139, 78, 0.6);
}

.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--brass-300); }

/* ============ 10. Figure containers ============ */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  border: var(--line);
  border-radius: var(--radius);
}

.figure > img,
.figure > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.figure--cut { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }

.figure__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 211, 230, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 211, 230, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.7;
  pointer-events: none;
}

.figure__frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(197, 139, 78, 0.3);
  pointer-events: none;
}

.figure__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--silver-200);
  background: linear-gradient(180deg, transparent, rgba(8, 18, 46, 0.9));
}

/* ============ 11. Skip link ============ */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--teal-400);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-220%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* ============ 12. Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 18, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--line);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 16px 36px -26px #000;
  border-bottom-color: rgba(197, 139, 78, 0.4);
}

/* 12.1 ticker */
.header-ticker {
  background: linear-gradient(90deg, var(--ink-800), var(--ink-900) 70%);
  border-bottom: 1px solid rgba(201, 211, 230, 0.1);
}

.ticker-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px clamp(12px, 2vw, 28px);
  min-height: 38px;
  padding-block: 6px;
  font-size: 12.5px;
}

.ticker-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-300);
}

.ticker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(10px, 2vw, 24px);
}

.ticker-link {
  display: inline-block;
  color: var(--silver-200);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ticker-link:hover {
  color: var(--brass-300);
  border-bottom-color: var(--brass-500);
}

.ticker-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(201, 211, 230, 0.58);
  white-space: nowrap;
}

/* 12.2 masthead */
.masthead { position: relative; }

.masthead::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 139, 78, 0.55), transparent);
  pointer-events: none;
}

.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(197, 139, 78, 0.5);
  border-radius: var(--radius);
  background: linear-gradient(142deg, rgba(197, 139, 78, 0.24), rgba(22, 217, 190, 0.1));
}

.brand-mark svg { width: 22px; height: 22px; display: block; }

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

.brand-name {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.brand-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-300);
}

.masthead-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 211, 230, 0.62);
  max-width: none;
}

.masthead-meta--right { text-align: right; }

.masthead-meta .mono {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--paper);
}

/* 12.3 nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  justify-self: end;
  padding: 9px 12px;
  border: 1px solid rgba(201, 211, 230, 0.3);
  border-radius: var(--radius);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--silver-200);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: var(--brass-500); color: var(--paper); }

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
  flex: none;
}

.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 0.26s var(--ease);
}

.site-header[data-open="true"] .nav-toggle-bars span:first-child {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-toggle-text { line-height: 1; }

/* 12.4 nav */
.site-nav {
  background: linear-gradient(180deg, rgba(16, 29, 68, 0.92), rgba(8, 18, 46, 0.92));
  border-top: 1px solid rgba(197, 139, 78, 0.28);
}

.nav-inner { display: flex; justify-content: center; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px clamp(10px, 2.6vw, 34px);
}

.nav-link {
  position: relative;
  display: block;
  padding: 13px 2px 15px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--silver-200);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1.5px;
  background: var(--brass-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease), background-color 0.2s var(--ease);
}

.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }

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

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--teal-400);
}

/* 12.5 progress */
.progress {
  height: 2px;
  background: rgba(201, 211, 230, 0.1);
  overflow: hidden;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brass-500), var(--teal-400));
  transition: width 0.12s linear;
}

/* 12.6 mobile header */
@media (max-width: 900px) {
  .masthead-meta { display: none; }

  .masthead-inner {
    grid-template-columns: 1fr auto;
    padding-block: 12px;
  }

  .brand { justify-self: start; }

  .brand-mark { width: 36px; height: 36px; }

  .nav-toggle { display: inline-flex; }

  .site-nav { display: none; }

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

  .nav-inner { justify-content: flex-start; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 6px;
  }

  .nav-list li + li { border-top: 1px solid rgba(201, 211, 230, 0.1); }

  .nav-link { padding: 14px 4px; font-size: 16px; }
  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    color: var(--teal-400);
    box-shadow: inset 2px 0 0 var(--teal-400);
    padding-left: 12px;
  }

  .ticker-meta { display: none; }
  .ticker-inner { min-height: 34px; }
}

@media (max-width: 420px) {
  .header-ticker .ticker-list { gap: 4px 12px; }
  .ticker-link { font-size: 12px; }
}

/* ============ 13. Floating rail ============ */
.rail { display: none; }

@media (min-width: 1120px) {
  .rail {
    position: fixed;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 6px;
    background: rgba(16, 29, 68, 0.82);
    border: 1px solid rgba(201, 211, 230, 0.16);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.rail-title {
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(201, 211, 230, 0.14);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--brass-300);
}

.rail-link {
  display: block;
  padding: 8px 6px;
  border-left: 1px solid transparent;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  color: var(--silver-200);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.rail-link:hover {
  color: var(--paper);
  background: rgba(197, 139, 78, 0.16);
}

.rail-link[aria-current="page"] {
  color: var(--teal-400);
  border-left-color: var(--teal-400);
}

/* ============ 14. Footer ============ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink-900);
  border-top: 1px solid rgba(197, 139, 78, 0.32);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(27, 44, 95, 0.6), transparent);
  pointer-events: none;
}

.footer-slash {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 139, 78, 0.55), transparent);
}

.footer-inner {
  position: relative;
  padding-block: clamp(40px, 6vw, 72px) 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1.3fr;
  gap: clamp(24px, 3vw, 44px);
}

.footer-brand { min-width: 0; }

.brand--footer {
  justify-self: start;
  display: inline-flex;
}

.brand--footer .brand-name { font-size: 20px; }

.footer-summary {
  margin-top: 16px;
  max-width: 36ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--silver-200);
}

.footer-stamp {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(197, 139, 78, 0.85);
  max-width: none;
}

.footer-col { min-width: 0; }

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-300);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.7;
}

.footer-list a {
  color: var(--silver-200);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-list a:hover {
  color: var(--paper);
  border-bottom-color: var(--brass-500);
}

.footer-col--contact .footer-list { gap: 12px; }

.footer-label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 211, 230, 0.5);
}

.footer-col--contact .mono {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--paper);
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 52px);
  padding-top: 18px;
  border-top: 1px solid rgba(201, 211, 230, 0.14);
  font-size: 12.5px;
}

.footer-copy { color: rgba(201, 211, 230, 0.7); max-width: none; }

.legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.legal-list a {
  color: rgba(201, 211, 230, 0.82);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.legal-list a:hover { color: var(--brass-300); }

.footer-icp {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(201, 211, 230, 0.55);
  max-width: none;
}

@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ============ 15. Reveal motion ============ */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

html.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============ 16. Reduced motion ============ */
@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;
  }

  html.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .btn:active { transform: none; }
}
