/* ============================================================
   BSPORTS 中文官方站 · 共享样式 /assets/site.css
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 148px;
}

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

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

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

button { font: inherit; color: inherit; }

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- Tokens ---------- */
:root {
  --ink:      #06120E;
  --navy:     #0B1B2B;
  --pine:     #12291F;
  --moss:     #1F3D30;
  --lime:     #B7FF3C;
  --orange:   #FF7A2B;
  --mist:     #6FD9C0;
  --paper:    #EAF2ED;
  --gray:     #9AB0A7;
  --violet:   #2A2440;

  --font-display: "Arial Narrow", "Liberation Sans Narrow", "Helvetica Neue", Arial,
                  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif:   Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", "SimSun", serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
                  "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                  "Liberation Mono", monospace;

  --wrap: 1240px;
  --gutter: 24px;

  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, .55);
  --shadow-soft: 4px 4px 0 rgba(0, 0, 0, .40);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Base ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 520px at 50% -8%, rgba(11, 27, 43, .95), rgba(6, 18, 14, 0) 72%),
    linear-gradient(rgba(31, 61, 48, .30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 61, 48, .22) 1px, transparent 1px);
  background-size: 100% 640px, 88px 88px, 88px 88px;
  background-repeat: no-repeat, repeat, repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

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

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

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--font-mono); letter-spacing: .04em; }

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

.muted { color: var(--gray); }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
}

.rule {
  height: 2px;
  border: 0;
  background: var(--moss);
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 11px 18px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: top .16s var(--ease);
}

.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  border-bottom: 2px solid var(--moss);
}

.masthead {
  background: linear-gradient(180deg, #08170F 0%, #06120E 100%);
  border-bottom: 1px solid var(--moss);
}

.masthead__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  transition: padding .22s var(--ease);
}

.masthead__side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.masthead__side--start { justify-content: flex-start; }
.masthead__side--end { justify-content: flex-end; }

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  box-shadow: var(--shadow-soft);
  transition: width .22s var(--ease), height .22s var(--ease),
              font-size .22s var(--ease), box-shadow .22s var(--ease);
}

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  transition: font-size .22s var(--ease);
}

.brand__line {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

/* Season chip */
.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid var(--moss);
  background: var(--pine);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--gray);
  white-space: nowrap;
}

.season-chip__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(183, 255, 60, .16);
  animation: bsp-pulse 2.6s var(--ease) infinite;
}

@keyframes bsp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.78); }
}

/* Utility links */
.utility {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.utility__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--moss);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s var(--ease), color .18s var(--ease),
              background .18s var(--ease), box-shadow .18s var(--ease);
}

.utility__link:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(183, 255, 60, .07);
  box-shadow: 3px 3px 0 rgba(183, 255, 60, .16);
}

.utility__link--hot {
  color: var(--orange);
  border-color: rgba(255, 122, 43, .45);
}

.utility__link--hot:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 122, 43, .08);
  box-shadow: 3px 3px 0 rgba(255, 122, 43, .18);
}

.utility__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
}

/* Nav bar */
.nav-bar {
  position: relative;
  background: var(--navy);
}

.nav-bar__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: stretch;
  gap: 0;
}

.nav-bar__list {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--moss) transparent;
  -webkit-overflow-scrolling: touch;
}

.nav-bar__list::-webkit-scrollbar { height: 5px; }
.nav-bar__list::-webkit-scrollbar-track { background: transparent; }
.nav-bar__list::-webkit-scrollbar-thumb { background: var(--moss); }

.nav-bar__item { display: flex; }

.nav-bar__link {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 3px solid transparent;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--gray);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease),
              background .18s var(--ease);
}

.nav-bar__link:hover {
  color: var(--paper);
  background: rgba(183, 255, 60, .06);
}

.nav-bar__link[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
  background: rgba(183, 255, 60, .09);
}

/* Nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--moss);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--lime);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-bar[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-bar[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-bar[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(31, 61, 48, .8);
  pointer-events: none;
  z-index: 2;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime), var(--mist));
}

/* Compact header */
.site-header.is-compact .masthead__inner { padding-block: 8px; }
.site-header.is-compact .brand__mark {
  width: 34px;
  height: 34px;
  font-size: 19px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
}
.site-header.is-compact .brand__name { font-size: 19px; }
.site-header.is-compact .brand__line { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 2px solid var(--moss);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease),
              background .18s var(--ease), box-shadow .18s var(--ease);
}

.btn:hover {
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: 4px 4px 0 rgba(183, 255, 60, .18);
}

.btn--solid {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.btn--solid:hover {
  background: #d3ff7c;
  border-color: #d3ff7c;
  color: var(--ink);
  box-shadow: var(--shadow-hard);
}

.btn--ghost {
  border-color: rgba(111, 217, 192, .45);
  color: var(--mist);
}

.btn--ghost:hover {
  border-color: var(--mist);
  color: var(--paper);
  background: rgba(111, 217, 192, .10);
  box-shadow: 4px 4px 0 rgba(111, 217, 192, .16);
}

.btn--sm { padding: 8px 14px; font-size: 11px; letter-spacing: .12em; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb__sep { color: var(--moss); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }

.prose > * + * { margin-top: 18px; }

.prose p {
  max-width: 34em;
  color: #CFDDD5;
}

.prose h2 {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
}

.prose h3 {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
}

.prose ul,
.prose ol {
  max-width: 34em;
  color: #CFDDD5;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-top: 9px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .76em;
  width: 9px;
  height: 2px;
  background: var(--lime);
}

.prose ol { list-style: decimal; padding-left: 24px; }

.prose ol li { margin-top: 9px; }

.prose ol li::marker {
  color: var(--lime);
  font-family: var(--font-mono);
}

.prose blockquote {
  margin: 26px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--lime);
  background: linear-gradient(90deg, rgba(183, 255, 60, .09), rgba(183, 255, 60, 0));
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--paper);
}

.prose a {
  color: var(--mist);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--lime); }

.prose strong { color: var(--paper); }

.prose code {
  padding: 1px 6px;
  border: 1px solid var(--moss);
  background: var(--pine);
  font-family: var(--font-mono);
  font-size: .9em;
}

.prose hr {
  height: 1px;
  border: 0;
  background: var(--moss);
  margin: 34px 0;
}

/* ---------- Panels ---------- */
.panel {
  padding: 22px;
  border: 2px solid var(--moss);
  background: var(--pine);
}

.panel--navy { background: var(--navy); }

.panel--violet {
  background: var(--violet);
  border-color: #453A6B;
}

.panel--hard { box-shadow: var(--shadow-hard); }

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--moss);
}

.section-head__kicker {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lime);
}

.section-head__title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.section-head__aside {
  flex: 0 0 auto;
  padding-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--gray);
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--moss);
  background: rgba(11, 27, 43, .65);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--gray);
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--lime { color: var(--lime); border-color: rgba(183, 255, 60, .45); }
.tag--orange { color: var(--orange); border-color: rgba(255, 122, 43, .5); }
.tag--mist { color: var(--mist); border-color: rgba(111, 217, 192, .45); }

/* ---------- KPI ---------- */
.kpi {
  padding: 16px 18px;
  border: 2px solid var(--moss);
  border-bottom: 4px solid var(--lime);
  background: linear-gradient(180deg, var(--pine), rgba(6, 18, 14, .72));
}

.kpi__value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--lime);
}

.kpi__label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- Legend ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 16px;
  border: 1px solid var(--moss);
  background: rgba(11, 27, 43, .55);
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--gray);
}

.legend__swatch {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, .45);
  background: var(--lime);
}

/* ---------- Tabs ---------- */
.tabs { display: block; }

.tabs__list {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 2px solid var(--moss);
  background: var(--navy);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--moss) transparent;
}

.tabs__list::-webkit-scrollbar { height: 6px; }
.tabs__list::-webkit-scrollbar-track { background: rgba(31, 61, 48, .3); }
.tabs__list::-webkit-scrollbar-thumb { background: var(--moss); }

.tabs__tab {
  position: relative;
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--moss);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s var(--ease), background .18s var(--ease);
}

.tabs__tab:last-child { border-right: 0; }

.tabs__tab:hover {
  color: var(--paper);
  background: rgba(183, 255, 60, .05);
}

.tabs__tab[aria-selected="true"] {
  color: var(--lime);
  background: rgba(183, 255, 60, .10);
}

.tabs__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--lime);
}

.tabs__panels {
  padding: 24px;
  border: 2px solid var(--moss);
  border-top: 0;
  background: rgba(18, 41, 31, .58);
}

.tabs__panel:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

/* ---------- Scroller ---------- */
.scroller {
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--moss) transparent;
  -webkit-overflow-scrolling: touch;
}

.scroller::-webkit-scrollbar { height: 8px; }
.scroller::-webkit-scrollbar-track { background: rgba(31, 61, 48, .35); }
.scroller::-webkit-scrollbar-thumb { background: var(--moss); }
.scroller::-webkit-scrollbar-thumb:hover { background: var(--lime); }

.scroller__track {
  display: flex;
  gap: 18px;
  min-width: max-content;
}

/* ---------- Figure ---------- */
.figure { display: block; margin: 0; }

.figure__frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--moss);
  background-color: var(--navy);
  background-image:
    repeating-linear-gradient(135deg, rgba(31, 61, 48, .55) 0 2px, transparent 2px 9px),
    radial-gradient(120% 90% at 50% 112%, rgba(183, 255, 60, .13), rgba(6, 18, 14, 0) 62%);
  box-shadow: var(--shadow-hard);
}

.figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(6, 18, 14, .85);
  pointer-events: none;
}

.figure__frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.05) brightness(.92);
}

.figure--21x9 .figure__frame { aspect-ratio: 21 / 9; }
.figure--16x9 .figure__frame { aspect-ratio: 16 / 9; }
.figure--4x3  .figure__frame { aspect-ratio: 4 / 3; }
.figure--1x1  .figure__frame { aspect-ratio: 1 / 1; }

.figure__badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 6px 11px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.figure__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--gray);
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

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

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 72px;
  background: var(--navy);
  border-top: 2px solid var(--moss);
  color: var(--gray);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 255, 60, .55), transparent);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 34px;
}

.site-footer__brand { max-width: 340px; }

.brand--footer { justify-self: start; }

.brand--footer .brand__mark {
  width: 40px;
  height: 40px;
  font-size: 22px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .5);
}

.brand--footer .brand__name { font-size: 22px; }

.site-footer__tagline {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
}

.site-footer__meta {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

.site-footer__title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--moss);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 14px;
  color: #B6C7BF;
  text-decoration: none;
  transition: color .18s var(--ease);
}

.site-footer__links a::before {
  content: "";
  width: 8px;
  height: 1px;
  background: var(--moss);
  transition: background .18s var(--ease), width .18s var(--ease);
}

.site-footer__links a:hover { color: var(--lime); }
.site-footer__links a:hover::before { background: var(--lime); width: 16px; }

.site-footer__contact {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--moss);
}

.site-footer__contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--paper);
}

.site-footer__label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
}

.site-footer__value { color: var(--paper); }

.site-footer__sep { color: var(--moss); }

.site-footer__note {
  max-width: 70ch;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--gray);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid var(--moss);
}

.site-footer__copy,
.site-footer__icp {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--gray);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-bar__link { padding: 13px 16px; font-size: 13px; }
}

@media (max-width: 960px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .masthead__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    padding: 12px 16px;
  }

  .brand {
    order: 1;
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  .brand__name { font-size: 21px; }

  .brand__line { display: none; }

  .masthead__side { width: auto; }

  .masthead__side--start { display: none; }

  .masthead__side--end {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .utility { justify-content: center; }

  .site-header.is-compact .masthead__side--end { display: none; }

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

  .nav-bar__inner { padding: 0; gap: 0; }

  .nav-bar__list {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-bar__link {
    padding: 12px 15px;
    font-size: 12.5px;
    letter-spacing: .08em;
  }

  .nav-bar[data-open="true"] .nav-bar__inner { flex-wrap: wrap; }

  .nav-bar[data-open="true"] .nav-bar__list {
    flex: 1 1 100%;
    flex-direction: column;
    overflow: visible;
    border-top: 1px solid var(--moss);
  }

  .nav-bar[data-open="true"] .nav-bar__link {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(31, 61, 48, .65);
    border-left: 3px solid transparent;
    font-size: 14px;
  }

  .nav-bar[data-open="true"] .nav-bar__link[aria-current="page"] {
    border-left-color: var(--lime);
    border-bottom-color: rgba(31, 61, 48, .65);
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  :root { --gutter: 16px; }

  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-head__title { font-size: 26px; }

  .kpi__value { font-size: 30px; }

  .tabs__panels { padding: 18px; }

  .tabs__tab { padding: 11px 15px; font-size: 12px; }

  .site-footer { margin-top: 56px; }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 36px;
    padding-bottom: 26px;
  }

  .site-footer__base { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress__bar { transition: none !important; }
}
