/* =========================================================
   Site Kit / 瑞祥电竞 · spark-ruixiang.com.cn
   Blueprint rail shell · dark training-room palette
   ========================================================= */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

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

[hidden] { display: none !important; }

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

::selection {
  background: var(--violet);
  color: #04060C;
}

/* ---------- 02 Tokens ---------- */
:root {
  --ink:        #06070B;
  --ink-2:      #0A0C13;
  --panel:      #10121C;
  --panel-2:    #151827;
  --violet:     #7A4DFF;
  --violet-soft:#A38BFF;
  --cyan:       #25E0FF;
  --coral:      #FF5E72;
  --mint:       #7DFFB2;
  --wire:       #2A2F44;
  --text:       #F4F6FF;
  --muted:      #9AA3B8;
  --dim:        #5B6478;
  --grad:       linear-gradient(135deg, #7A4DFF 0%, #25E0FF 100%);

  --rail-w: 252px;
  --bar-h:  64px;
  --maxw:   1200px;
  --pad:    clamp(16px, 4vw, 48px);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", "Roboto Mono",
               Menlo, Consolas, "Liberation Mono", monospace;

  --shadow-hard: 8px 8px 0 rgba(0, 0, 0, .6);
  --shadow-hard-sm: 4px 4px 0 rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.2, .7, .25, 1);
}

/* ---------- 03 Base ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(42, 47, 68, .32) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 47, 68, .32) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.25; }

p { text-wrap: pretty; }

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

.mono,
.num,
time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

/* ---------- 04 Layout utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(40px, 6vw, 80px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.rule {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--wire), transparent);
}

/* ---------- 05 Type ornaments ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--grad);
  flex: none;
}

.plaque {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--wire);
  background: rgba(16, 18, 28, .85);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--muted);
}

.index-num {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--dim);
}

.note-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .28em;
  color: var(--dim);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.tag--violet { color: var(--violet-soft); border-color: rgba(122, 77, 255, .6); background: rgba(122, 77, 255, .14); }
.tag--cyan   { color: var(--cyan);        border-color: rgba(37, 224, 255, .55); background: rgba(37, 224, 255, .1); }
.tag--coral  { color: var(--coral);       border-color: rgba(255, 94, 114, .55); background: rgba(255, 94, 114, .12); }
.tag--mint   { color: var(--mint);        border-color: rgba(125, 255, 178, .5); background: rgba(125, 255, 178, .1); }

/* ---------- 06 Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.3rem;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--wire);
  border-radius: 4px;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease);
}

.btn-primary {
  color: #04060C;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 4px 4px 0 rgba(37, 224, 255, .26), 0 0 0 1px rgba(122, 77, 255, .5);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(37, 224, 255, .4);
}

.btn-ghost {
  background: rgba(16, 18, 28, .6);
  border-color: var(--wire);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 07 Cards ---------- */
.card {
  position: relative;
  padding: clamp(16px, 2vw, 26px);
  background: linear-gradient(180deg, var(--panel) 0%, #0B0E18 100%);
  border: 2px solid var(--wire);
  border-radius: 6px;
  box-shadow: var(--shadow-hard);
}
.card::before {
  content: "";
  position: absolute;
  inset: -2px -2px auto -2px;
  height: 4px;
  background: var(--grad);
  border-radius: 4px 4px 0 0;
}
.card--violet::before { background: linear-gradient(90deg, var(--violet), var(--violet-soft)); }
.card--cyan::before   { background: linear-gradient(90deg, var(--cyan), #8CF3FF); }
.card--coral::before  { background: linear-gradient(90deg, var(--coral), #FFA8B2); }

/* ---------- 08 Media frame (页面阶段放置图片/SVG) ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--wire);
  border-radius: 6px;
  background:
    radial-gradient(circle at 28% 18%, rgba(122, 77, 255, .24), transparent 62%),
    linear-gradient(160deg, #0D1020 0%, #06070B 100%);
  box-shadow: var(--shadow-hard);
}
.media-frame::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  opacity: .55;
  pointer-events: none;
}
.media-frame img,
.media-frame svg,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3  { aspect-ratio: 4 / 3; }
.media-frame--1x1  { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--tilt   { transform: rotate(-1.6deg); }
.media-frame--tilt-r { transform: rotate(1.6deg); }

.media-caption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--muted);
}
.media-caption::before {
  content: "图";
  color: var(--coral);
  font-family: var(--font-sans);
}

/* ---------- 09 Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--wire);
}
.breadcrumb a { color: var(--muted); transition: color .16s var(--ease); }
.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- 10 Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: .7rem 1.1rem;
  font-size: .84rem;
  font-weight: 700;
  color: #03060A;
  background: var(--cyan);
  border: 2px solid #03060A;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 11 Header / Rail ---------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: var(--rail-w);
  padding: 22px 18px 20px;
  background: linear-gradient(180deg, #0B0D16 0%, #10121C 58%, #0A0C13 100%);
  border-right: 2px solid var(--wire);
  overflow: visible;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--violet), var(--cyan));
  opacity: .85;
  pointer-events: none;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: rgba(42, 47, 68, .6);
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad);
  transition: transform .1s linear;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--wire);
  flex: none;
}
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #03060A;
  background: var(--grad);
  border: 2px solid #03060A;
  border-radius: 3px;
  box-shadow: 3px 3px 0 rgba(37, 224, 255, .32);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.25;
}
.brand-line {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  line-height: 1.6;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--wire);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: background .16s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .18s var(--ease), top .18s var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

.site-header[data-open] .nav-toggle-bars { background: transparent; }
.site-header[data-open] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
  flex: none;
}
.nav-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--wire);
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 8px;
  border-left: 3px solid transparent;
  border-radius: 0 3px 3px 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.nav-idx {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  color: var(--dim);
  transition: color .18s var(--ease);
}
.nav-label { min-width: 0; }

.nav-link:hover {
  color: var(--text);
  background: rgba(122, 77, 255, .12);
  border-left-color: var(--violet);
  transform: translateX(2px);
}
.nav-link:hover .nav-idx { color: var(--cyan); }

.nav-link[aria-current="page"] {
  color: var(--text);
  background: linear-gradient(90deg, rgba(122, 77, 255, .3), rgba(37, 224, 255, .06));
  border-left-color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(37, 224, 255, .18);
}
.nav-link[aria-current="page"] .nav-idx { color: var(--cyan); }

.nav-quick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--wire);
  flex: none;
}
.nav-quick-title {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--dim);
}
.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  font-size: .78rem;
  color: var(--muted);
  background: rgba(16, 18, 28, .7);
  border: 1px solid var(--wire);
  border-radius: 3px;
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.quick-link::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--cyan);
  flex: none;
}
.quick-link:hover,
.quick-link:focus-visible {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(37, 224, 255, .08);
}

.nav-cta {
  width: 100%;
  margin-top: auto;
  padding: .8rem 1rem;
  font-size: .84rem;
  flex: none;
}

.rail-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--wire);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  color: var(--muted);
  flex: none;
}
.rail-meta-row { display: flex; justify-content: space-between; gap: 8px; }
.rail-meta-key { color: var(--dim); }
.rail-meta-val { color: var(--cyan); }

/* ---------- 12 Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background:
    linear-gradient(to right, rgba(42, 47, 68, .22) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(42, 47, 68, .22) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, #0B0D16 0%, #070910 100%);
  border-top: 2px solid var(--wire);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan) 55%, transparent);
}

.footer-inner { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(140px, .7fr) minmax(140px, .7fr) minmax(230px, 1.2fr);
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 40px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 36ch;
}
.footer-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: #04060C;
  background: var(--grad);
  border: 2px solid #04060C;
  border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(122, 77, 255, .35);
}
.footer-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.2;
}
.footer-brand-line {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--cyan);
}
.footer-summary {
  font-size: .86rem;
  line-height: 1.8;
  color: var(--muted);
}

.footer-col { min-width: 0; }
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--text);
}
.footer-col-title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--coral);
  flex: none;
}

.footer-list { display: flex; flex-direction: column; gap: 9px; }
.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--muted);
  transition: color .16s var(--ease), transform .16s var(--ease);
}
.footer-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--wire);
  transition: background .16s var(--ease);
}
.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--cyan);
  transform: translateX(2px);
}
.footer-list a:hover::before,
.footer-list a:focus-visible::before { background: var(--cyan); }

.footer-contact-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  padding-block: 5px;
  border-bottom: 1px dotted rgba(42, 47, 68, .7);
  font-size: .82rem;
  color: var(--muted);
}
.footer-key {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  line-height: 1.9;
  color: var(--dim);
}
.footer-val {
  color: #C9D2E8;
  word-break: break-word;
  line-height: 1.6;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--wire);
  font-size: .76rem;
  color: var(--muted);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
}
.footer-sep { color: var(--wire); }
.footer-year { color: var(--cyan); }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .76rem;
}
.footer-legal-links a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.footer-version {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--dim);
}

/* ---------- 13 Reveal protocol ---------- */
[data-reveal].reveal-armed {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 14 Tablet ---------- */
@media (max-width: 1023px) {
  body {
    padding-left: 0;
    padding-top: var(--bar-h);
    background-size: 72px 72px;
  }
  body[data-nav-lock] { overflow: hidden; }

  .site-header {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 var(--pad);
    border-right: 0;
    border-bottom: 2px solid var(--wire);
    background: linear-gradient(180deg, #0B0D16 0%, #0A0C13 100%);
  }
  .site-header::before { display: none; }

  .scroll-progress {
    top: auto;
    bottom: -2px;
    height: 2px;
    background: transparent;
  }

  .brand {
    flex: 1 1 auto;
    padding-bottom: 0;
    border-bottom: 0;
    min-width: 0;
  }
  .brand-mark { width: 36px; height: 36px; font-size: .76rem; }
  .brand-name { font-size: .96rem; }
  .brand-line { display: none; }

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

  .site-nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 79;
    gap: 16px;
    padding: 20px var(--pad) 40px;
    background: linear-gradient(180deg, #090B12 0%, #10121C 100%);
    border-top: 1px solid var(--wire);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list { gap: 4px; }
  .nav-link {
    padding: 14px 12px;
    font-size: 1rem;
    border: 1px solid var(--wire);
    border-left-width: 3px;
    background: rgba(16, 18, 28, .6);
  }
  .nav-link:hover { transform: none; }
  .nav-link[aria-current="page"] { border-color: rgba(37, 224, 255, .4); border-left-color: var(--cyan); }

  .nav-quick { margin-top: 4px; }
  .quick-link { padding: 12px; font-size: .88rem; }
  .nav-cta { margin-top: 8px; padding: 1rem; font-size: .95rem; }
  .rail-meta { margin-top: 8px; font-size: .66rem; }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

/* ---------- 15 Phone ---------- */
@media (max-width: 600px) {
  .blueprint-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section-head { align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .footer-col { border-top: 1px dashed var(--wire); padding-top: 16px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-legal-links { gap: 12px; }
  .footer-contact-row { grid-template-columns: 44px minmax(0, 1fr); }
  .media-frame--tilt,
  .media-frame--tilt-r { transform: none; }
}

/* ---------- 16 Desktop-only footer separators ---------- */
@media (min-width: 1024px) {
  .footer-top > * + * {
    border-left: 1px dashed var(--wire);
    padding-left: clamp(14px, 1.8vw, 26px);
  }
}

/* ---------- 17 Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal].reveal-armed {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-link:hover,
  .quick-link:hover,
  .btn:hover,
  .footer-list a:hover { transform: none; }
  .scroll-progress-bar { transition: none; }
}
