/* ============================================================
   易贝体育 · 共享样式 /assets/site.css
   高原夜空蓝图 + 赛道数据流
   ============================================================ */

/* ---------- 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, dl, dd, figure, blockquote {
  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; }

a { color: inherit; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; }

/* ---------- tokens ---------- */
:root {
  --ink: #0A1836;
  --ink-deep: #061027;
  --grid-blue: #123A6B;
  --jade: #1FA6A0;
  --jade-light: #7FE3D6;
  --lane: #FF5A2B;
  --lane-soft: #FFB877;
  --paper: #E8EEF7;
  --mist: #8FA3C0;
  --line: rgba(201, 214, 232, 0.22);
  --line-strong: rgba(201, 214, 232, 0.46);

  --header-h: 72px;
  --rail-w: 88px;
  --gutter: clamp(18px, 3.2vw, 52px);
  --ease: cubic-bezier(.2, .7, .3, 1);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo Expanded", "Archivo", "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "PingFang SC", monospace;
}

html[data-rail="collapsed"] { --rail-w: 0px; }

/* ---------- base ---------- */
html { background: var(--ink-deep); }

body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 85% at 82% -8%, rgba(31, 166, 160, 0.16), transparent 58%),
    radial-gradient(95% 70% at -5% 4%, rgba(18, 58, 107, 0.55), transparent 62%),
    repeating-linear-gradient(90deg, rgba(18, 58, 107, 0.55) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(18, 58, 107, 0.55) 0 1px, transparent 1px 88px);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-w);
    transition: padding-left 0.28s var(--ease);
  }
}

::selection {
  background: var(--jade);
  color: #04121f;
}

:focus-visible {
  outline: 2px solid var(--jade-light);
  outline-offset: 3px;
}

.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: 10px 18px;
  background: var(--jade);
  color: #04121f;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

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

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(6, 16, 39, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, rgba(201, 214, 232, 0.22) 0 1px, transparent 1px 22px);
  pointer-events: none;
}

.header-inner {
  width: 100%;
  max-width: 1720px;
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(14px, 2.2vw, 32px);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  position: relative;
  border: 1px solid rgba(127, 227, 214, 0.55);
  background:
    linear-gradient(140deg,
      rgba(31, 166, 160, 0.95) 0 46%,
      rgba(10, 24, 54, 0) 46% 54%,
      rgba(255, 90, 43, 0.95) 54% 100%);
  box-shadow: inset 0 0 0 4px rgba(6, 16, 39, 0.92);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--mist);
}

.brand-tag {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(127, 227, 214, 0.35);
  color: var(--jade-light);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

/* middle */
.header-mid {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 4px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-toggle:hover {
  color: var(--paper);
  border-color: rgba(127, 227, 214, 0.6);
  background: rgba(18, 58, 107, 0.4);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 9px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

.header-rule {
  flex: 1 1 auto;
  min-width: 16px;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, rgba(201, 214, 232, 0.34) 0 6px, transparent 6px 13px);
}

/* right */
.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--jade-light);
  box-shadow: 0 0 0 3px rgba(31, 166, 160, 0.18);
  animation: statusPulse 2.8s ease-in-out infinite;
}

.status-round { color: var(--jade-light); }

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(31, 166, 160, 0.18); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(31, 166, 160, 0.05); }
}

.btn-subscribe {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 17px;
  background: var(--lane);
  border: 1px solid var(--lane);
  color: #1a0703;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn-subscribe:hover {
  background: var(--lane-soft);
  border-color: var(--lane-soft);
  color: #240b03;
}

/* ---------- rail nav ---------- */
.rail-scrim { display: none; }

.rail-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: var(--rail-w);
  height: calc(100vh - var(--header-h));
  z-index: 95;
  background: linear-gradient(180deg, rgba(6, 16, 39, 0.97), rgba(10, 24, 54, 0.92));
  border-right: 1px solid var(--line);
  overflow: hidden;
  transition: width 0.28s var(--ease);
}

.rail-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 88px;
  overflow-y: auto;
  scrollbar-width: none;
}

.rail-inner::-webkit-scrollbar { display: none; }

.rail-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 6px;
}

.rail-code {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(143, 163, 192, 0.7);
}

.rail-close { display: none; }

.rail-list {
  display: flex;
  flex-direction: column;
  margin-block: auto;
  padding-block: 14px;
}

.rail-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  text-decoration: none;
  color: var(--mist);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.rail-link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--lane);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.18s var(--ease);
}

.rail-link:hover {
  color: var(--paper);
  background: rgba(18, 58, 107, 0.42);
}

.rail-link:hover::after { transform: scaleY(1); }

.rail-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(31, 166, 160, 0.1);
}

.rail-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--jade);
  box-shadow: 0 0 12px rgba(31, 166, 160, 0.75);
}

.rail-index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(143, 163, 192, 0.66);
}

.rail-link[aria-current="page"] .rail-index { color: var(--jade-light); }

.rail-label {
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: 0.2em;
  line-height: 1;
}

.rail-foot {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(201, 214, 232, 0.12);
}

.rail-coord {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(143, 163, 192, 0.55);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(18, 58, 107, 0.55), transparent 62%),
    var(--ink-deep);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--jade) 0%, var(--jade-light) 32%, rgba(127, 227, 214, 0) 62%, var(--lane) 100%);
}

.footer-inner {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding: clamp(38px, 5vw, 68px) var(--gutter) 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.35fr 0.8fr;
  gap: clamp(24px, 3vw, 48px);
}

.footer-claim {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--paper);
  max-width: 24ch;
}

.footer-icp {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--jade-light);
}

.footer-list li { display: block; }

.footer-list a {
  display: inline-block;
  padding: 5px 0;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

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

.contact-list { margin: 0; }

.contact-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(201, 214, 232, 0.14);
}

.contact-row:last-child { border-bottom: 0; }

.contact-row dt {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(143, 163, 192, 0.85);
}

.contact-row dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.footer-base {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(143, 163, 192, 0.8);
}

.footer-copy { color: rgba(232, 238, 247, 0.72); }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 6.5vw, 92px); }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--jade-light);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--jade);
  flex: none;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  font-stretch: expanded;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 800;
  font-stretch: expanded;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
}

/* ---------- band ---------- */
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg,
      rgba(18, 58, 107, 0.52) 0%,
      rgba(10, 24, 54, 0.28) 58%,
      rgba(255, 90, 43, 0.1) 100%);
  padding-block: clamp(18px, 2.4vw, 30px);
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.band-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.band-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

/* ---------- cards ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: rgba(10, 24, 54, 0.72);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  border-color: rgba(127, 227, 214, 0.5);
  background: rgba(18, 58, 107, 0.44);
  transform: translateY(-2px);
}

.card-index {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--jade-light);
}

.card-title {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}

.card-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.data-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 14px;
  border-left: 2px solid var(--jade);
}

.data-value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.data-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- glass ---------- */
.glass {
  background: rgba(18, 58, 107, 0.28);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--lane);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}

.btn:hover::after { transform: scaleX(1); }

.btn--primary {
  background: var(--lane);
  border-color: var(--lane);
  color: #1a0703;
}

.btn--primary:hover {
  background: var(--lane-soft);
  border-color: var(--lane-soft);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}

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

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin: 0 9px;
  color: rgba(143, 163, 192, 0.45);
}

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

.breadcrumb a:hover { color: var(--jade-light); }

/* ---------- prose ---------- */
.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--paper);
}

.prose p + p { margin-top: 1.1em; }

.prose h2,
.prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.prose h2 { font-size: clamp(22px, 2.6vw, 30px); }
.prose h3 { font-size: clamp(18px, 2vw, 22px); }

.prose ul,
.prose ol {
  margin: 1em 0;
  padding-left: 1.2em;
  list-style: disc;
}

.prose li { margin: 0.35em 0; }

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

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

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(45deg, rgba(18, 58, 107, 0.55) 0 1px, transparent 1px 14px),
    linear-gradient(150deg, rgba(18, 58, 107, 0.9), rgba(6, 16, 39, 0.96));
  border: 1px solid var(--line);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(127, 227, 214, 0.12);
}

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

/* ---------- tags & rules ---------- */
.tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid rgba(127, 227, 214, 0.4);
  color: var(--jade-light);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.tag--lane {
  border-color: rgba(255, 90, 43, 0.5);
  color: var(--lane-soft);
}

.rule {
  height: 1px;
  border: 0;
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 130;
  pointer-events: none;
  background: transparent;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--jade) 0%, var(--jade-light) 58%, var(--lane) 100%);
  box-shadow: 0 0 10px rgba(31, 166, 160, 0.55);
  transition: width 0.08s linear;
}

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

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

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

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .status-text { display: none; }
}

@media (max-width: 1023px) {
  .rail-nav {
    top: 0;
    left: auto;
    right: 0;
    width: min(340px, 86vw);
    height: 100vh;
    z-index: 120;
    border-right: 0;
    border-left: 1px solid var(--line);
    background: var(--ink-deep);
    transform: translateX(102%);
    transition: transform 0.28s var(--ease);
  }

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

  .rail-inner {
    min-width: 0;
    padding-bottom: 8px;
  }

  .rail-head {
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }

  .rail-code {
    writing-mode: horizontal-tb;
    font-size: 10px;
    letter-spacing: 0.24em;
  }

  .rail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    color: var(--paper);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
  }

  .rail-close:hover {
    border-color: var(--lane);
    color: var(--lane-soft);
  }

  .rail-list {
    margin-block: 0;
    justify-content: flex-start;
    padding: 16px 0;
    gap: 2px;
  }

  .rail-link {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    padding: 13px 22px;
  }

  .rail-link::after,
  .rail-link[aria-current="page"]::before {
    top: 9px;
    bottom: 9px;
    width: 3px;
  }

  .rail-label {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .rail-index { font-size: 11px; letter-spacing: 0.18em; }

  .rail-foot {
    justify-content: flex-start;
    padding: 14px 22px 0;
    border-top: 1px solid rgba(201, 214, 232, 0.12);
  }

  .rail-coord {
    writing-mode: horizontal-tb;
    font-size: 10px;
  }

  .rail-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(3, 8, 18, 0.74);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease);
  }

  .rail-scrim[data-open] {
    opacity: 1;
    pointer-events: auto;
  }

  .header-status { display: none; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--7-5 { grid-template-columns: minmax(0, 1fr); }

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

@media (max-width: 900px) {
  .brand-tag { display: none; }
}

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

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

  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }

  .brand-mark { width: 26px; height: 26px; }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 8px; letter-spacing: 0.22em; }

  .nav-toggle-label { display: none; }

  .btn-subscribe {
    padding: 9px 12px;
    font-size: 12.5px;
  }

  .contact-row { grid-template-columns: 62px minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .brand-sub { display: none; }
  .header-rule { display: none; }
}

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

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

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

  .scroll-progress__bar { transition: none; }

  .card:hover { transform: none; }
  .footer-list a:hover { transform: none; }
}
