/* ============================================================
   沙巴体育站 · shared site kit  /assets/site.css
   ============================================================ */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  color: #2A2622;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid #DFD7C8; margin: 0; }

/* ---------- tokens ---------- */
:root {
  --paper: #F5F0E6;
  --paper-2: #FBF7EF;
  --paper-3: #EDE6D8;
  --ink: #0D1A2B;
  --brand-blue: #123A6B;
  --track: #1E7BE0;
  --flame: #FF4A1C;
  --amber: #FFB020;
  --text: #2A2622;
  --muted: #6E6A63;
  --rule: #DFD7C8;
  --glass: rgba(13, 26, 43, 0.55);
  --glass-line: rgba(30, 123, 224, 0.45);

  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono", monospace;

  --header-h: clamp(72px, 7.4vw, 96px);
  --shell-max: 1320px;
  --shell-pad: clamp(16px, 4vw, 40px);
  --slash: clamp(10px, 1.8vw, 22px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(rgba(42, 38, 34, 0.09) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid #FF4A1C;
  outline-offset: 3px;
  border-radius: 2px;
}
.site-header :focus-visible,
.site-footer :focus-visible {
  outline: 2px solid #FF4A1C;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(245, 240, 230, 0.28);
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-220%);
  transition: transform 0.24s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(var(--shell-max), calc(100% - var(--shell-pad) * 2));
  margin-inline: auto;
}

#main-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}
.bleed-top {
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}

/* ---------- typography ---------- */
.display-xl {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(52px, 8vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display-lg {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede {
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}
.prose {
  max-width: 68ch;
  line-height: 1.8;
}
.prose p + p { margin-top: 1.2em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: var(--ink);
}
.prose h3 {
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 700;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  color: var(--ink);
}
.prose ul, .prose ol {
  margin-top: 0.8em;
  padding-left: 1.1em;
  list-style: disc;
}
.prose li + li { margin-top: 0.4em; }
.prose a {
  color: var(--track);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(245, 240, 230, 0.82);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header[data-scrolled="true"] {
  background: rgba(245, 240, 230, 0.95);
  box-shadow: 0 14px 34px -28px rgba(13, 26, 43, 0.95);
}
.site-header[data-skin="ink"] {
  background: rgba(13, 26, 43, 0.74);
  border-bottom-color: rgba(30, 123, 224, 0.28);
  color: var(--paper);
}
.site-header[data-skin="ink"][data-scrolled="true"] {
  background: rgba(13, 26, 43, 0.92);
}

.header-inner {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--brand-blue);
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.site-header[data-skin="ink"] .brand-name { color: var(--paper); }
.site-header[data-skin="ink"] .brand-sub { color: rgba(245, 240, 230, 0.55); }
.site-header[data-skin="ink"] .brand-mark { background: var(--paper); color: var(--ink); }

/* floating pill nav */
.nav-pill {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: 0 10px 26px -20px rgba(13, 26, 43, 0.95);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header[data-scrolled="true"] .nav-list { padding: 3px; }

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 230, 0.8);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-list a:hover {
  color: #FFFFFF;
  background: rgba(30, 123, 224, 0.34);
}
.nav-list a[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  padding-left: 22px;
}
.nav-list a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 4px;
  height: 12px;
  border-radius: 1px;
  background: var(--flame);
  transform: translateY(-50%);
}

/* header actions */
.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.header-link:hover {
  color: var(--track);
  border-bottom-color: rgba(30, 123, 224, 0.5);
}
.site-header[data-skin="ink"] .header-link { color: rgba(245, 240, 230, 0.68); }
.site-header[data-skin="ink"] .header-link:hover { color: var(--amber); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(18, 58, 107, 0.8); }
.nav-toggle-bars {
  display: inline-grid;
  gap: 3px;
  width: 16px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--primary {
  background: var(--brand-blue);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn--primary:hover { background: var(--track); transform: translateX(2px); }
.btn--flame {
  background: var(--flame);
  color: #0D1A2B;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn--flame:hover { background: var(--amber); }
.btn--ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--track); color: var(--track); }

/* ---------- layout ---------- */
.section { padding-block: clamp(48px, 6vw, 96px); }
.section--ink {
  background: var(--ink);
  color: rgba(245, 240, 230, 0.84);
}
.section--ink .section-title { color: var(--paper); }
.section--ink .eyebrow { color: rgba(255, 176, 32, 0.92); }
.section--ink .lede { color: rgba(245, 240, 230, 0.66); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.split-rail {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

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

/* ---------- cards & data ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--flame);
  box-shadow: 0 16px 34px -26px rgba(13, 26, 43, 0.85);
}
.card--dark {
  background: var(--ink);
  color: rgba(245, 240, 230, 0.82);
  border-color: rgba(30, 123, 224, 0.32);
}
.card--dark:hover { border-color: var(--flame); }
.card--slash {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.stat { display: grid; gap: 6px; }
.stat-value {
  width: max-content;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--flame);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--ink .stat-value { color: var(--paper); }
.section--ink .stat-label { color: rgba(245, 240, 230, 0.55); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag--flame {
  border-color: rgba(255, 74, 28, 0.45);
  color: var(--flame);
}
.tag--amber {
  border-color: rgba(255, 176, 32, 0.55);
  color: #8A5C00;
}

.index-list {
  display: grid;
  border-top: 1px solid var(--rule);
}
.index-list li { border-bottom: 1px solid var(--rule); }
.index-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px;
  text-decoration: none;
  color: var(--text);
  font-size: 14.5px;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.index-list a:hover { color: var(--track); padding-left: 8px; }
.index-list .num { color: var(--muted); font-size: 12.5px; }

/* ---------- segmented control ---------- */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(13, 26, 43, 0.06);
  flex-wrap: wrap;
}
.seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-selected="true"] {
  background: var(--brand-blue);
  color: var(--paper);
  font-weight: 700;
}
.seg-panel { padding-top: 22px; }
.seg-panel[hidden] { display: none; }

/* ---------- media ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.media-frame:hover img { transform: scale(1.03); }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__caption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 8px 14px;
  background: rgba(13, 26, 43, 0.82);
  color: rgba(245, 240, 230, 0.86);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumbs a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.breadcrumbs a:hover { color: var(--track); }
.breadcrumbs span[aria-current="page"] { color: var(--text); }
.crumb-sep { color: var(--rule); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 8vw, 120px);
  padding-top: calc(clamp(56px, 7vw, 96px) + var(--slash));
  padding-bottom: clamp(26px, 3vw, 40px);
  background: var(--ink);
  color: rgba(245, 240, 230, 0.76);
  clip-path: polygon(0 var(--slash), 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 123, 224, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 123, 224, 0.14) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
}
.footer-inner {
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.9fr 1.2fr;
  gap: clamp(24px, 3.4vw, 56px);
}
.site-footer .brand-mark { background: var(--paper); color: var(--ink); }
.site-footer .brand-name { color: var(--paper); }
.site-footer .brand-sub { color: rgba(245, 240, 230, 0.5); }

.footer-intro {
  margin-top: 18px;
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(245, 240, 230, 0.7);
}
.footer-meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(30, 123, 224, 0.95);
}
.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.footer-list {
  display: grid;
  gap: 9px;
  font-size: 14.5px;
}
.footer-list a {
  color: rgba(245, 240, 230, 0.74);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-list a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: var(--flame);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.footer-contact .footer-list li {
  color: rgba(245, 240, 230, 0.68);
  line-height: 1.6;
}
.footer-bottom {
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 18px;
  border-top: 1px solid rgba(245, 240, 230, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 230, 0.46);
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 95;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #1E7BE0 0%, #FF4A1C 100%);
  pointer-events: none;
  transition: transform 0.1s linear;
}

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-list a { padding: 7px 11px; font-size: 13px; }
  .header-link { display: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-pill {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: var(--shell-pad);
    right: var(--shell-pad);
    z-index: 81;
    display: none;
    justify-content: stretch;
  }
  .nav-pill[data-open="true"] { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(13, 26, 43, 0.95);
    box-shadow: 0 24px 50px -30px rgba(13, 26, 43, 1);
  }
  .nav-list li { display: flex; }
  .nav-list a {
    flex: 1 1 auto;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 15px;
  }
  .nav-list a[aria-current="page"] { padding-left: 28px; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split-rail { position: static; top: auto; }
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .brand-mark { width: 32px; height: 32px; font-size: 16px; }
  .brand-name { font-size: 15.5px; }
  .header-actions { gap: 8px; }
  .btn--sm { padding: 8px 12px; font-size: 12.5px; }
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .btn--primary.btn--sm { display: none; }
}

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress { transition: none; }
  .media-frame:hover img { transform: none; }
  .card:hover { transform: none; }
  .btn--primary:hover { transform: none; }
}
