/* ==========================================================================
   幻影体育 · 共享站点样式 /assets/site.css
   夜场数据台：墨蓝底 · 蓝图网格 · 左轨导航 · 状态色语义
   ========================================================================== */

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

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

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

ul, ol { list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #06101F;
  --ink-2: #0D1B2E;
  --ink-3: #08131F;
  --panel: #13263C;
  --paper: #E9F3F7;
  --muted: #9CB0BF;
  --cyan: #35F0CE;
  --cyan-dim: rgba(53, 240, 206, 0.10);
  --orange: #FF7B3F;
  --violet: #7F7BFF;
  --yellow: #F2C94C;
  --line: #2A4660;
  --line-soft: rgba(42, 70, 96, 0.5);

  --rail-w: 288px;
  --bar-h: 64px;
  --frame: clamp(16px, 3.4vw, 44px);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t: 200ms;

  --font-head: "Barlow Condensed", "DIN Condensed", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", monospace;
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
}

h1 { font-size: clamp(40px, 6vw, 88px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.6vw, 48px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.01em; }
h4 { font-size: clamp(16px, 1.5vw, 20px); letter-spacing: 0.01em; }

p { line-height: 1.75; }

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

::selection { background: var(--cyan); color: #04121F; }

/* ---------- 4. Focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 5. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--frame);
}

.section {
  position: relative;
  padding: clamp(40px, 6vw, 84px) 0;
}

.section + .section { border-top: 1px solid var(--line-soft); }

.prose {
  max-width: 68ch;
  color: #C3D3DC;
  font-size: 16px;
  line-height: 1.8;
}

.prose p + p { margin-top: 1em; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(53, 240, 206, 0.4); }
.prose a:hover { border-bottom-color: var(--cyan); }

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

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

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

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

/* ---------- 7. Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  flex: 0 0 auto;
}

/* ---------- 8. Status tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(42, 70, 96, 0.18);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.tag--live { color: var(--cyan); border-color: rgba(53, 240, 206, 0.45); background: rgba(53, 240, 206, 0.08); }
.tag--soon { color: var(--orange); border-color: rgba(255, 123, 63, 0.45); background: rgba(255, 123, 63, 0.08); }
.tag--topic { color: var(--violet); border-color: rgba(127, 123, 255, 0.45); background: rgba(127, 123, 255, 0.10); }
.tag--warn { color: var(--yellow); border-color: rgba(242, 201, 76, 0.45); background: rgba(242, 201, 76, 0.08); }

/* ---------- 9. Status dot ---------- */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot--live {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(53, 240, 206, 0.85);
  animation: dot-pulse 2.6s var(--ease) infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 240, 206, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(53, 240, 206, 0); }
}

/* ---------- 10. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--paper);
  cursor: pointer;
  transition: background-color var(--t) var(--ease),
              color var(--t) var(--ease),
              border-color var(--t) var(--ease);
}

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

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

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

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

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

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

.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__sep { color: #3C5A72; }
.breadcrumb a { color: var(--muted); transition: color var(--t) var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 12. Image container base ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
}

.figure__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, #17324C 0%, #0D1B2E 58%, #06101F 100%);
}

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

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(42, 70, 96, 0.28) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(180deg, rgba(42, 70, 96, 0.22) 0 1px, transparent 1px 64px);
}

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

.figure__caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.figure__caption::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--cyan);
  transform: translateY(-1px);
}

/* ---------- 13. Reveal ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

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

/* ---------- 14. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 2px;
  background: var(--cyan);
  color: #04121F;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: translate(-50%, -180%);
  transition: transform var(--t) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline-offset: 4px;
}

/* ---------- 15. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

.rail {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

/* --- brand --- */
.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1 1 auto;
  min-width: 0;
}

.brand__mark {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--paper);
  transition: color var(--t) var(--ease);
}

.brand:hover .brand__name { color: var(--cyan); }

.brand__tag {
  display: none;
  font-size: 11.5px;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: #7E96A8;
}

/* --- nav toggle --- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color var(--t) var(--ease),
              color var(--t) var(--ease),
              background-color var(--t) var(--ease);
}

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

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

.nav-toggle__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 16px;
  height: 12px;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-toggle__label {
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* --- rail top --- */
.rail__top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--bar-h);
  padding: 0 clamp(14px, 4vw, 24px);
  position: relative;
}

/* --- drawer panel (mobile default) --- */
.rail__panel {
  display: none;
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  flex-direction: column;
  gap: 20px;
  padding: 22px clamp(16px, 5vw, 30px) 40px;
  background-color: var(--ink-3);
  background-image: repeating-linear-gradient(180deg, rgba(42, 70, 96, 0.26) 0 1px, transparent 1px 56px);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-header[data-open] .rail__panel { display: flex; }

/* --- search --- */
.rail__search { display: flex; flex-direction: column; }

.search__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #5C788D;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(6, 16, 31, 0.65);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.search:hover { border-color: #3C5F7D; }

.search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(53, 240, 206, 0.35), 0 0 20px rgba(53, 240, 206, 0.14);
}

.search__glyph {
  position: relative;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.search__glyph::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 6px;
  height: 1.5px;
  background: var(--muted);
  transform: rotate(45deg);
}

.search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.search__input::placeholder { color: #6C8296; }
.search__input:focus-visible { outline: none; }

.search__count {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.search__hint {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #708799;
}

/* --- nav --- */
.rail__nav { display: flex; flex-direction: column; gap: 10px; }

.rail__nav-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #5C788D;
}

.nav-list { display: flex; flex-direction: column; gap: 2px; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-left: 2px solid transparent;
  color: #B9CBD6;
  font-size: 14.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  transition: color var(--t) var(--ease),
              background-color var(--t) var(--ease),
              border-color var(--t) var(--ease);
}

.nav-link__index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #4E6C82;
  transition: color var(--t) var(--ease);
}

.nav-link__label { flex: 1 1 auto; }

.nav-link__dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--line);
  transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(53, 240, 206, 0.06);
  border-left-color: rgba(53, 240, 206, 0.5);
}

.nav-link:hover .nav-link__index { color: var(--cyan); }
.nav-link:hover .nav-link__dot { background: var(--cyan); }

.nav-link[aria-current="page"] {
  color: var(--cyan);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(53, 240, 206, 0.16), rgba(53, 240, 206, 0));
  border-left-color: var(--cyan);
}

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

.nav-link[aria-current="page"] .nav-link__dot {
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 123, 63, 0.9);
}

/* --- rail foot --- */
.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.rail__meta {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #63798C;
}

/* ---------- 16. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 76px) var(--frame) 0;
  border-top: 1px solid var(--line);
  background-color: var(--ink);
  background-image: radial-gradient(140% 100% at 50% 0%, rgba(19, 38, 60, 0.85) 0%, rgba(6, 16, 31, 0.98) 58%);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(42, 70, 96, 0.26) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(180deg, rgba(42, 70, 96, 0.20) 0 1px, transparent 1px 80px);
  opacity: 0.7;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: var(--frame);
  bottom: 18px;
  width: 88px;
  height: 6px;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(53, 240, 206, 0.7) 0 2px, transparent 2px 8px);
  opacity: 0.6;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.footer-brand__mark {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-brand__name {
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.footer-brand__summary {
  margin-top: 14px;
  max-width: 38ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(53, 240, 206, 0.04);
}

.footer-status__text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #A9BFCC;
}

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

.footer-col__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #8FA7B8;
}

.footer-col__index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.footer-list { display: flex; flex-direction: column; gap: 2px; }

.footer-list__item { display: block; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: #A9BFCC;
  transition: color var(--t) var(--ease);
}

.footer-link::before {
  content: "";
  width: 14px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t) var(--ease);
}

.footer-link:hover { color: var(--cyan); }
.footer-link:hover::before { transform: scaleX(1); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }

.footer-contact__row { display: flex; flex-direction: column; gap: 2px; }

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5C788D;
}

.footer-contact__val {
  font-size: 13.5px;
  line-height: 1.65;
  color: #C3D3DC;
  word-break: break-word;
}

.footer-contact__val--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--paper);
}

.footer-note {
  margin-top: 16px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  max-width: 34ch;
  font-size: 11.5px;
  line-height: 1.7;
  color: #708799;
}

.footer-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: clamp(30px, 5vw, 54px);
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #78909F;
}

.footer-copy { letter-spacing: 0.04em; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.footer-legal__item { display: block; }

.footer-legal__link {
  color: #93A9B8;
  transition: color var(--t) var(--ease);
}

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

.footer-icp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #6C8296;
}

/* ---------- 17. Main anchor offset ---------- */
#main-content { scroll-margin-top: calc(var(--bar-h) + 8px); }

/* ---------- 18. Tablet ---------- */
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 19. Desktop rail ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  #main-content { scroll-margin-top: 0; }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #0D1B2E 0%, #06101F 55%, #08131F 100%);
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    pointer-events: none;
    background-image: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 16px);
    opacity: 0.45;
  }

  .rail {
    position: relative;
    padding: 26px 20px 22px;
    gap: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }

  .rail::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(180deg, rgba(42, 70, 96, 0.34) 0 1px, transparent 1px 56px);
    opacity: 0.55;
  }

  .rail > * { position: relative; z-index: 1; }

  .rail__top {
    min-height: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }

  .brand { gap: 4px; }
  .brand__mark { font-size: 10.5px; }
  .brand__name { font-size: 27px; line-height: 1; }
  .brand__tag { display: block; padding-top: 10px; }

  .nav-toggle { display: none; }

  .rail__panel {
    display: flex;
    position: static;
    z-index: auto;
    flex: 1 1 auto;
    min-height: 0;
    gap: 18px;
    padding: 0;
    border-top: 0;
    background: none;
    background-image: none;
    overflow: visible;
  }

  .rail__nav { flex: 1 1 auto; }

  .rail__foot { margin-top: auto; }

  .footer-grid { grid-template-columns: 1.5fr 0.8fr 0.8fr 1.3fr; }
  .footer-brand { grid-column: auto; }
  .footer-col--contact { grid-column: auto; }
}

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

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

  .status-dot--live { animation: none; }

  .nav-toggle__bar,
  .nav-link,
  .nav-link__index,
  .nav-link__dot,
  .footer-link,
  .footer-link::before,
  .btn,
  .skip-link {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
