/* ============================================================
   瑞祥电竞局 · 共享外壳 /assets/site.css
   ============================================================ */

:root {
  --c-ink: #070A11;
  --c-deep: #0B1424;
  --c-panel: #12213A;
  --c-white: #F2F7FF;
  --c-mist: #A9B8CC;
  --c-steel: #6E809A;
  --c-cyan: #3DE8FF;
  --c-violet: #8C5CFF;
  --c-amber: #FFA23A;
  --c-region-east: #3FB6A8;
  --c-region-south: #5B8DEF;
  --c-region-north: #D96C9A;
  --c-region-central: #C9A45C;
  --c-region-southwest: #9B8BD6;

  --line: rgba(110, 128, 154, 0.28);
  --line-soft: rgba(110, 128, 154, 0.16);

  --f-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --f-struct: "Barlow Condensed", "思源黑体", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-1: 0 18px 40px -28px rgba(0, 0, 0, 0.95);
}

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

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--c-mist);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  background-color: var(--c-ink);
  background-image:
    radial-gradient(1100px 620px at 84% -12%, rgba(140, 92, 255, 0.10), transparent 62%),
    radial-gradient(880px 520px at -12% 6%, rgba(61, 232, 255, 0.07), transparent 58%);
  background-repeat: no-repeat;
}

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

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

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

a { color: inherit; }

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

table { border-collapse: collapse; width: 100%; }

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

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

/* ---------- 工具类 ---------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow { max-width: 900px; }

.section { padding: clamp(40px, 6vw, 76px) 0; }
.section--tight { padding: clamp(26px, 4vw, 46px) 0; }

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

.mono {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-steel);
}

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

.is-hidden { display: none !important; }
[hidden] { display: none !important; }

/* ---------- 排版组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.display-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.section-heading {
  margin: 0;
  font-family: var(--f-struct);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-white);
}

.lede {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.75;
  color: var(--c-mist);
}

/* ---------- 面板（切角战术板） ---------- */
.panel {
  --cut: 18px;
  --cut-bg: var(--c-ink);
  position: relative;
  padding: 22px;
  background: var(--c-panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-1);
}

.panel::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: var(--cut);
  height: var(--cut);
  background: var(--cut-bg);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  pointer-events: none;
}

.panel--focus {
  border-color: rgba(61, 232, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(61, 232, 255, 0.12), var(--shadow-1);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-title {
  margin: 0;
  font-family: var(--f-struct);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--c-white);
}

.panel-meta {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-steel);
  white-space: nowrap;
}

/* ---------- 按钮与链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

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

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #7FF2FF;
  border-color: #7FF2FF;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(169, 184, 204, 0.42);
  color: var(--c-white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(61, 232, 255, 0.08);
}

.btn--block { width: 100%; }

.link-sweep {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--c-cyan);
  text-decoration: none;
}

.link-sweep::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.14s var(--ease);
}

.link-sweep:hover::after,
.link-sweep:focus-visible::after { transform: scaleX(1); }

/* ---------- 面包屑 ---------- */
.breadcrumbs { padding: 18px 0 0; }

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-steel);
}

.breadcrumbs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-list li + li::before {
  content: "/";
  color: var(--c-steel);
}

.breadcrumb-link {
  color: var(--c-mist);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible { color: var(--c-cyan); }

.breadcrumb-current { color: var(--c-white); }

/* ---------- 图片容器基座 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(150deg, var(--c-panel) 0%, var(--c-ink) 92%);
  border: 1px solid rgba(110, 128, 154, 0.25);
  border-radius: 2px;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 17, 0) 42%, rgba(7, 10, 17, 0.74) 100%);
  pointer-events: none;
}

.media-frame img,
.media-frame > .media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame > * { position: relative; z-index: 1; }
.media-frame::after { z-index: 2; }

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--board { aspect-ratio: 21 / 9; }

/* ---------- 标签与芯片 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-mist);
  background: rgba(18, 33, 58, 0.72);
  border: 1px solid rgba(110, 128, 154, 0.4);
  border-radius: 2px;
  white-space: nowrap;
}

.tag--live {
  color: var(--c-ink);
  background: var(--c-cyan);
  border-color: var(--c-cyan);
}

.tag--moving {
  color: var(--c-ink);
  background: var(--c-amber);
  border-color: var(--c-amber);
}

.tag--muted {
  color: var(--c-steel);
  border-color: rgba(110, 128, 154, 0.26);
  background: transparent;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-mist);
  background: rgba(18, 33, 58, 0.78);
  border: 1px solid rgba(110, 128, 154, 0.34);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.chip:hover,
.chip:focus-visible {
  color: var(--c-white);
  border-color: rgba(61, 232, 255, 0.5);
}

.chip[aria-pressed="true"],
.chip.is-active {
  color: var(--c-ink);
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  transform: translateX(2px);
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(11, 20, 36, 0.97);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7, 10, 17, 0.98);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.95);
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--c-cyan);
  color: var(--c-ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.18s var(--ease);
}

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

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(61, 232, 255, 0.10);
  pointer-events: none;
}

.header-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-violet) 0%, var(--c-cyan) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

.header-top .header-inner { min-height: 74px; }

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

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--c-white);
  font-family: var(--f-struct);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.wordmark:hover { color: var(--c-cyan); }

.wordmark-code {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--c-cyan);
}

.wordmark-divider {
  color: var(--c-steel);
  font-weight: 400;
}

.wordmark-name { color: inherit; }

.brand-tagline {
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(110, 128, 154, 0.42);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--c-steel);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.utility-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-mist);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.utility-key {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-steel);
  transition: color 0.18s var(--ease);
}

.utility-link:hover,
.utility-link:focus-visible {
  color: var(--c-white);
  border-color: rgba(61, 232, 255, 0.45);
  background: rgba(61, 232, 255, 0.07);
}

.utility-link:hover .utility-key,
.utility-link:focus-visible .utility-key { color: var(--c-cyan); }

.utility-link--accent {
  color: var(--c-white);
  border-color: rgba(140, 92, 255, 0.5);
  background: rgba(140, 92, 255, 0.14);
}

.utility-link--accent .utility-key { color: var(--c-violet); }

.utility-link--accent:hover,
.utility-link--accent:focus-visible {
  color: var(--c-white);
  border-color: var(--c-violet);
  background: rgba(140, 92, 255, 0.26);
}

.utility-link--accent:hover .utility-key,
.utility-link--accent:focus-visible .utility-key { color: var(--c-white); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: 10px;
  padding: 8px 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-mist);
  background: transparent;
  border: 1px solid rgba(169, 184, 204, 0.35);
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: rgba(61, 232, 255, 0.07);
}

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

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: currentColor;
  transform-origin: 50% 50%;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle[aria-expanded="true"] {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

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

.header-nav-bar {
  background: linear-gradient(180deg, rgba(18, 33, 58, 0.55) 0%, rgba(7, 10, 17, 0) 100%);
  border-top: 1px solid var(--line-soft);
}

.header-inner--nav {
  min-height: 54px;
  gap: 26px;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 14px 16px;
  font-family: var(--f-struct);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--c-mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.14s var(--ease), background-color 0.18s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--c-white); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

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

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

.nav-note {
  margin: 0;
  margin-left: auto;
  flex: none;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-steel);
  white-space: nowrap;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, #070A11 0%, #0B1424 46%, #070A11 100%);
  color: var(--c-mist);
}

.footer-topbar {
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--c-violet) 0%,
    var(--c-violet) 16%,
    var(--c-cyan) 16%,
    var(--c-cyan) 32%,
    rgba(110, 128, 154, 0.34) 32%,
    rgba(110, 128, 154, 0.34) 100%
  );
}

.footer-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(0, 1.6fr) minmax(250px, 1fr);
  gap: 40px 36px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer-wordmark {
  font-family: var(--f-struct);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-white);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-wordmark:hover { color: var(--c-cyan); }

.footer-code {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--c-cyan);
  margin-right: 6px;
}

.footer-slash {
  color: var(--c-steel);
  font-weight: 400;
  margin-right: 6px;
}

.footer-brand-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-mist);
}

.footer-meta {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c-steel);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

.footer-col-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-struct);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-steel);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-mist);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.14s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--c-white); }

.footer-links a:hover::after,
.footer-links a:focus-visible::after { transform: scaleX(1); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 24px;
  border-left: 1px solid var(--line-soft);
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  min-width: 0;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.footer-contact-label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-steel);
}

.footer-contact-link {
  color: var(--c-white);
  word-break: break-word;
}

.footer-hours {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-steel);
}

.footer-bottom {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 32px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-steel);
}

.footer-copy { margin: 0; }

.footer-legal {
  margin: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal a {
  color: var(--c-mist);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--c-cyan); }

.footer-icp { margin: 0; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .brand-tagline { display: none; }

  .nav-link {
    padding: 14px 11px;
    font-size: 14px;
  }

  .nav-link::after {
    left: 11px;
    right: 11px;
  }

  .utility-link {
    padding: 8px 10px;
    font-size: 12px;
  }

  .nav-note { display: none; }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }

  .footer-contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px 24px;
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .footer-hours { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .header-top .header-inner {
    min-height: 64px;
    padding: 0 20px;
    gap: 12px;
  }

  .header-inner--nav {
    display: block;
    min-height: 0;
    padding: 0 20px;
  }

  .header-nav-bar {
    border-top: 0;
    background: rgba(7, 10, 17, 0.96);
  }

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

  .primary-nav { display: none; }

  .primary-nav[data-open] {
    display: block;
    padding: 6px 0 16px;
    border-top: 1px solid var(--line-soft);
  }

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

  .nav-link {
    display: block;
    padding: 13px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-link::after {
    left: 2px;
    right: auto;
    width: 24px;
    bottom: 8px;
  }

  .nav-list li:last-child .nav-link { border-bottom: 0; }

  .container { padding: 0 20px; }

  .grid { gap: 16px; }
}

@media (max-width: 760px) {
  .utility-link:not(.utility-link--accent) { display: none; }

  .wordmark { font-size: 19px; }
  .wordmark-code { font-size: 13px; }

  .header-inner { padding: 0 18px; }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px 28px;
    gap: 30px;
  }

  .footer-nav { grid-template-columns: 1fr 1fr; }

  .footer-bottom {
    padding: 16px 20px 28px;
    font-size: 11px;
  }

  .footer-legal { margin-left: 0; }

  .panel { padding: 18px; }
}

@media (max-width: 460px) {
  .footer-nav { grid-template-columns: 1fr; }

  .utility-link--accent {
    padding: 8px 10px;
    font-size: 12px;
  }

  .nav-toggle { padding: 8px 10px; }
}

@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;
    scroll-behavior: auto !important;
  }
}
