/* ==========================================================================
   MANBETX赛场 · /assets/site.css
   共享外壳与通用组件：夜间赛场指挥中心
   ========================================================================== */

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

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B0F0E;
  --deep: #0E2A22;
  --mesh: #143A30;
  --panel: #1A1F1D;
  --line: #2D3531;
  --muted: #8B9691;
  --paper: #F2F5F1;
  --lime: #C6FF3D;
  --lime-dim: #9FD42B;
  --orange: #FF6A1A;
  --soft: #CFD8D3;

  --font-head: "Barlow Condensed", "Oswald", "Arial Narrow", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell-max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
  --header-stack: 113px;
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(15px, 0.35vw + 14px, 17px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(20, 58, 48, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 58, 48, 0.34) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(32px, 6vw, 64px); }
h2 { font-size: clamp(24px, 3.6vw, 40px); }
h3 { font-size: clamp(18px, 2.2vw, 24px); line-height: 1.25; }

p { color: var(--soft); }

strong { color: var(--paper); font-weight: 700; }

::selection {
  background: var(--lime);
  color: #07130A;
}

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

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

.page-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(20px, 3vw, 36px) var(--gutter) clamp(48px, 7vw, 88px);
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 12px 18px;
  background: var(--lime);
  color: #07130A;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transform: translateY(-240%);
  transition: transform 0.22s var(--ease);
}

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

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-feature-settings: "tnum" 1;
}

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

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  flex: none;
  background: var(--lime);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
  color: var(--soft);
  max-width: 62ch;
}

.divider {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(24px, 4vw, 40px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.link-arrow::after {
  content: "\2192";
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 5. Buttons & tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--paper);
  text-transform: uppercase;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

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

.btn--primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #07130A;
}

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

.btn--ghost {
  background: transparent;
  border-color: #3A443F;
  color: var(--paper);
}

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

.mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(11, 15, 14, 0.55);
  white-space: nowrap;
}

.mono-tag--live {
  color: var(--orange);
  border-color: rgba(255, 106, 26, 0.45);
  background: rgba(255, 106, 26, 0.09);
}

.mono-tag--lime {
  color: var(--lime);
  border-color: rgba(198, 255, 61, 0.42);
  background: rgba(198, 255, 61, 0.09);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(255, 106, 26, 0.65); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 106, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 26, 0); }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(11, 15, 14, 0.5);
}

.tag--lime {
  color: var(--lime);
  border-color: rgba(198, 255, 61, 0.4);
  background: rgba(198, 255, 61, 0.08);
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 106, 26, 0.42);
  background: rgba(255, 106, 26, 0.08);
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 22px 46px -34px #000;
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--mesh) 0 10px,
    var(--deep) 10px 20px
  );
}

/* 顶部轮次短讯带 */
.header-ticker {
  background: var(--deep);
  border-bottom: 1px solid var(--line);
}

.header-ticker__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 38px;
  padding-block: 6px;
}

.ticker-text {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--orange);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.ticker-link:hover {
  color: #FF8B4D;
  border-bottom-color: currentColor;
}

/* 品牌与主入口 */
.header-main {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

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

.brand__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}

.brand__line {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.brand:hover .brand__mark { background: #D8FF74; }
.brand:hover .brand__name { color: var(--lime); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease);
}

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

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after  { transform: translateY(-5px) rotate(-45deg); }

/* 框架式索引导航 */
.site-nav {
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.site-nav__list > li + li {
  border-left: 1px solid var(--line);
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 13px 18px;
  border-bottom: 2px solid transparent;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #4A5750;
  transition: color 0.18s var(--ease);
}

.nav-link__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--paper);
  transition: color 0.18s var(--ease);
}

.nav-link:hover { background: rgba(198, 255, 61, 0.06); }
.nav-link:hover .nav-link__label { color: var(--lime); }
.nav-link:hover .nav-link__idx { color: var(--lime-dim); }

.nav-link[aria-current="page"] {
  background: rgba(198, 255, 61, 0.1);
  border-bottom-color: var(--lime);
}

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

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  background: var(--deep);
  border-top: 1px solid var(--line);
  padding-top: clamp(34px, 5vw, 60px);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      var(--lime) 0 30%,
      var(--orange) 30% 34%,
      rgba(20, 58, 48, 0.6) 34% 100%
    );
  opacity: 0.9;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
  padding-bottom: clamp(30px, 4vw, 48px);
}

.footer-brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.footer-brand__name::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  background: var(--lime);
}

.footer-brand__line {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-brand .btn { margin-top: 22px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-col__title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--lime);
}

.footer-list li + li { margin-top: 9px; }

.footer-list a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--soft);
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}

.footer-list a:hover {
  color: var(--lime);
  transform: translateX(4px);
}

.footer-contact__list li {
  display: flex;
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px dashed rgba(45, 53, 49, 0.95);
  font-size: 14px;
}

.footer-contact__key {
  flex: 0 0 42px;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-contact__val {
  color: var(--paper);
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.footer-contact__note {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-copy,
.footer-icp { margin: 0; color: var(--muted); }

.footer-icp { letter-spacing: 0.1em; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-links a {
  color: #B9C3BE;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.legal-links a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* ---------- 8. Shared content components ---------- */
.breadcrumbs {
  padding-block: 16px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumbs li + li::before {
  content: "\FF0F";
  margin-right: 6px;
  color: #3F4A45;
}

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

.prose { max-width: 70ch; }
.prose p + p { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; margin-bottom: 0.5em; }
.prose h3 { margin-top: 1.4em; margin-bottom: 0.4em; }
.prose ul { margin-top: 0.8em; }
.prose ul li {
  position: relative;
  padding-left: 18px;
  color: var(--soft);
}
.prose ul li + li { margin-top: 0.4em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--lime);
}
.prose a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.grid {
  display: grid;
  gap: clamp(14px, 2.2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.grid--three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.panel {
  position: relative;
  padding: clamp(16px, 2.2vw, 24px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.panel--slant {
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 22px),
    calc(100% - 22px) 100%,
    0 100%
  );
}

.panel__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.22;
  color: var(--paper);
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--lime);
  font-feature-settings: "tnum" 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 图片容器基础规则（页面阶段放置图片） */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mesh);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media > img,
.media > video,
.media > picture,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 245, 241, 0.62);
  background-image:
    linear-gradient(135deg, rgba(198, 255, 61, 0.14), transparent 58%),
    repeating-linear-gradient(
      45deg,
      rgba(20, 58, 48, 0.95) 0 12px,
      rgba(14, 42, 34, 0.95) 12px 24px
    );
}

.media__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

/* 可展开内容组 */
.disclosure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}

.disclosure + .disclosure { margin-top: 10px; }

.disclosure[data-open] { border-color: rgba(198, 255, 61, 0.4); }

.disclosure__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--paper);
  transition: color 0.18s var(--ease);
}

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

.disclosure__idx {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.disclosure__sign {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: auto;
}

.disclosure__sign::before,
.disclosure__sign::after {
  content: "";
  position: absolute;
  background: var(--lime);
  border-radius: 1px;
}

.disclosure__sign::before { top: 6px; left: 0; width: 14px; height: 2px; }
.disclosure__sign::after  { top: 0; left: 6px; width: 2px; height: 14px; transition: transform 0.24s var(--ease); }

.disclosure[data-open] .disclosure__sign::after { transform: scaleY(0); }

.disclosure__panel {
  height: 0;
  overflow: hidden;
  transition: height 0.3s var(--ease);
}

.disclosure__inner {
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--soft);
}

/* ---------- 9. Motion ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 0;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(198, 255, 61, 0.65);
  pointer-events: none;
}

[data-reveal] {
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

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

/* ---------- 10. Responsive ---------- */
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  }
  .footer-contact { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }
  .footer-contact { grid-column: auto; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
}

@media (max-width: 899px) {
  html.nav-open { overflow: hidden; }

  .site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(4, 8, 7, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }

  .site-header[data-open]::after {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: min(360px, 88vw);
    border-top: 0;
    border-left: 1px solid var(--line);
    background: var(--deep);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform 0.34s var(--ease);
    box-shadow: -30px 0 70px -24px rgba(0, 0, 0, 0.9);
  }

  .site-header[data-open] .site-nav { transform: translateX(0); }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 122px var(--gutter) 40px;
  }

  .site-nav__list > li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .nav-link {
    width: 100%;
    padding: 16px 2px;
  }

  .nav-link__label { font-size: 17px; }

  .ticker-text { display: none; }

  .brand__line { display: none; }

  .header-actions .btn--primary {
    padding: 0 14px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 600px) {
  body { background-size: 64px 64px; }

  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-legal { font-size: 11px; }
  .footer-contact__key { flex-basis: 38px; }
}

@media (max-width: 379px) {
  .header-actions .btn--primary { display: none; }
}

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

  .dot { animation: none; }

  .skip-link,
  .btn,
  .nav-link,
  .ticker-link,
  .footer-list a,
  .legal-links a,
  .link-arrow::after,
  .site-nav,
  .disclosure__panel,
  .disclosure__sign::after { transition: none; }

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

  .scroll-progress { transition: none; }
}
