/* =====================================================
   乐鱼赛场 · 共享站点样式  /assets/site.css
   夜航数据舱 / 框架式导航 / 档案卡信息系统
   ===================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- tokens ---------- */
:root {
  --deep: #050B18;
  --hull: #0B1830;
  --panel: #14243F;
  --panel-2: #0E1B31;
  --grid: #24406A;
  --cyan: #2FF0D6;
  --cyan-deep: #0FB9A6;
  --amber: #FF9A3C;
  --violet: #7C5CFF;
  --violet-soft: #B9A8FF;
  --green: #5FE08A;
  --text: #EAF2FF;
  --muted: #9DB2CC;
  --muted-dim: rgba(157, 178, 204, .74);

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

  --radius-a: 20px 6px 20px 6px;
  --radius-b: 14px 4px 14px 4px;
  --radius-c: 6px 20px 6px 20px;

  --shell: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- base ---------- */
body {
  background-color: var(--deep);
  background-image:
    radial-gradient(880px 520px at 10% -10%, rgba(47, 240, 214, .10), transparent 62%),
    radial-gradient(720px 460px at 94% 4%, rgba(124, 92, 255, .10), transparent 60%),
    linear-gradient(180deg, rgba(11, 24, 48, .92) 0%, rgba(5, 11, 24, 0) 46%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--text);
}
h1 { font-size: clamp(1.65rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, 2.4vw, 1.25rem); }
p { font-size: 1rem; }
strong { font-weight: 700; color: var(--text); }
small { font-size: .8rem; color: var(--muted); }

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

/* ---------- utilities ---------- */
.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;
}
.container {
  width: min(var(--shell), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: .5rem; left: .5rem;
  z-index: 200;
  padding: .6rem 1rem;
  background: var(--cyan);
  color: #04121A;
  font-weight: 700;
  font-size: .88rem;
  border-radius: var(--radius-b);
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem .95rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-b);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn-ghost {
  color: var(--cyan);
  background: rgba(47, 240, 214, .06);
  border-color: rgba(47, 240, 214, .38);
}
.btn-ghost:hover {
  background: rgba(47, 240, 214, .15);
  border-color: var(--cyan);
}
.btn-solid {
  color: #04161B;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}
.btn-solid:hover {
  background: #63f8e6;
  border-color: #63f8e6;
}
.btn:active { transform: translateY(1px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #0B1830 0%, #0A1730 68%, rgba(10, 23, 48, .94) 100%);
  border-bottom: 1px solid var(--grid);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-rail {
  height: 8px;
  background-image:
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(47, 240, 214, .6) 0 1px, transparent 1px 60px);
  opacity: .6;
}
.header-inner {
  width: min(var(--shell), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
}
.brand-mark {
  position: relative;
  width: 32px; height: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(47, 240, 214, .55);
  border-radius: 11px 3px 11px 3px;
  background:
    linear-gradient(135deg, rgba(47, 240, 214, .18), rgba(124, 92, 255, .14)),
    var(--panel-2);
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(47, 240, 214, 0));
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(47, 240, 214, .85);
}
.brand-text { display: block; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: .05em;
  color: var(--text);
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: .56rem;
  line-height: 1.4;
  letter-spacing: .26em;
  color: var(--muted-dim);
  text-transform: uppercase;
}

.header-status {
  display: none;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}
.status-dot {
  width: 7px; height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(95, 224, 138, .7);
  animation: status-pulse 2.6s ease-out infinite;
}
.status-count {
  font-weight: 700;
  color: var(--amber);
  padding: 0 .12rem;
}
@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(95, 224, 138, .6); }
  70%  { box-shadow: 0 0 0 7px rgba(95, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 224, 138, 0); }
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.header-actions .btn { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .65rem;
  background: rgba(5, 11, 24, .5);
  border: 1px solid var(--grid);
  border-radius: var(--radius-b);
  color: var(--text);
  font-size: .78rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-toggle:hover { border-color: rgba(47, 240, 214, .5); }
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 18px;
  height: 12px;
}
.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle-bars span:nth-child(2) { width: 70%; }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.nav-toggle-label {
  font-family: var(--font-mono);
  letter-spacing: .12em;
}

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(5, 11, 24, .74);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}

.site-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 70;
  width: min(82vw, 304px);
  padding: 4.75rem .5rem 2rem;
  overflow-y: auto;
  background: linear-gradient(180deg, #0B1830 0%, #060E1E 100%);
  border-right: 1px solid var(--grid);
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform .32s var(--ease), visibility .32s var(--ease);
}
.site-header[data-open] .site-nav { transform: translateX(0); visibility: visible; }

.nav-scale {
  display: block;
  height: 14px;
  margin: 0 .9rem 1rem;
  background-image:
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(47, 240, 214, .55) 0 1px, transparent 1px 36px);
  opacity: .85;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-list a {
  display: block;
  padding: .85rem .9rem;
  font-size: 1rem;
  color: var(--muted);
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(36, 64, 106, .55);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text);
  background: rgba(47, 240, 214, .06);
}
.nav-list a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(47, 240, 214, .09);
  border-left-color: var(--cyan);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 8vw, 5.5rem);
  background: linear-gradient(180deg, #0B1830 0%, #071021 58%, var(--deep) 100%);
  border-top: 1px solid var(--grid);
  color: var(--muted);
}
.footer-rail {
  height: 8px;
  background-image:
    repeating-linear-gradient(90deg, rgba(47, 240, 214, .45) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 8px);
  opacity: .5;
}
.footer-inner {
  width: min(var(--shell), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
}
.footer-col { min-width: 0; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: var(--text);
  line-height: 1.3;
}
.footer-tagline {
  margin-top: .5rem;
  font-size: .92rem;
  color: var(--muted);
}
.footer-note {
  margin-top: .75rem;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--muted-dim);
  max-width: 34ch;
}
.footer-title {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-list {
  margin-top: .85rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .9rem;
  line-height: 1.6;
}
.footer-list a {
  color: var(--muted);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer-list a:hover,
.footer-list a:focus-visible { color: var(--cyan); padding-left: .2rem; }
.footer-list--contact { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .01em; }
.footer-list--contact li { word-break: break-word; }
.footer-list--legal {
  margin-top: 1rem;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .5rem 1.1rem;
  font-size: .84rem;
  border-top: 1px solid rgba(36, 64, 106, .6);
  padding-top: .9rem;
}
.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(36, 64, 106, .7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--muted-dim);
}
.footer-scale {
  margin-top: 1.1rem;
  height: 10px;
  background-image: repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 24px);
  opacity: .5;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .85rem;
  background: rgba(11, 24, 48, .92);
  border: 1px solid rgba(47, 240, 214, .42);
  border-radius: var(--radius-b);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  opacity: 0;
  transform: translateY(150%);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .2s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.to-top.is-shown { opacity: 1; transform: translateY(0); }
.to-top:hover { background: rgba(15, 185, 166, .22); }
.to-top-arrow { font-size: 1rem; line-height: 1; }

/* ---------- section shell ---------- */
.section { padding: clamp(2.25rem, 6vw, 4.25rem) 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  max-width: 68ch;
}
.section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--cyan);
}
.section-title {
  font-size: clamp(1.35rem, 3.6vw, 1.9rem);
  color: var(--text);
}
.section-desc {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- grids ---------- */
.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

/* ---------- cards ---------- */
.card {
  position: relative;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(158deg, var(--panel) 0%, #101D33 100%);
  border: 1px solid var(--grid);
  border-radius: var(--radius-a);
  transition: transform .24s var(--ease), border-color .24s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 240, 214, .45);
}
.data-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1rem 1.15rem 1.05rem 1.35rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--grid);
  border-radius: var(--radius-a);
}
.data-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), rgba(47, 240, 214, 0));
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .55rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  border-radius: 8px 3px 8px 3px;
  border: 1px solid rgba(47, 240, 214, .45);
  background: rgba(47, 240, 214, .08);
  color: var(--cyan);
  white-space: nowrap;
}
.tag--amber {
  border-color: rgba(255, 154, 60, .5);
  background: rgba(255, 154, 60, .12);
  color: var(--amber);
}
.tag--violet {
  border-color: rgba(124, 92, 255, .52);
  background: rgba(124, 92, 255, .14);
  color: var(--violet-soft);
}
.tag--green {
  border-color: rgba(95, 224, 138, .45);
  background: rgba(95, 224, 138, .1);
  color: var(--green);
}

/* ---------- stats ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--amber);
}
.stat-label {
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ---------- timeline ---------- */
.timeline {
  position: relative;
  padding: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: .4rem;
  bottom: .4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--grid) 55%, rgba(36, 64, 106, .2) 100%);
}
.timeline-item {
  position: relative;
  padding: 0 0 1.5rem 2rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .5rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--deep);
  border: 2px solid var(--grid);
  transition: border-color .24s var(--ease), background .24s var(--ease), box-shadow .24s var(--ease);
}
.timeline-item.is-active::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 240, 214, .16);
}

/* ---------- compare strip ---------- */
.compare-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  padding: 1rem;
  background: rgba(20, 36, 63, .62);
  border: 1px solid var(--grid);
  border-radius: 22px 8px 22px 8px;
}

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

/* ---------- annotations ---------- */
.annotation {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.annotation--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .3em;
}

/* ---------- image frames ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--grid);
  border-radius: 24px 8px 24px 8px;
  background: linear-gradient(150deg, var(--panel) 0%, var(--hull) 100%);
}
.img-frame--wide { border-radius: 8px 24px 8px 24px; }
.img-frame img,
.img-frame .img-ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-ph {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  color: rgba(157, 178, 204, .6);
  background-image: repeating-linear-gradient(135deg, rgba(36, 64, 106, .55) 0 1px, transparent 1px 14px);
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-3x2  { aspect-ratio: 3 / 2; }
.ratio-1x1  { aspect-ratio: 1 / 1; }

/* ---------- reveal ---------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

/* ---------- md: 760px ---------- */
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-strip { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- sm: 560px ---------- */
@media (min-width: 560px) {
  .header-actions .btn { display: inline-flex; }
  .header-inner { gap: 1rem; }
}

/* ---------- lg: 900px ---------- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-scrim { display: none !important; }

  .site-nav {
    position: static;
    width: 100%;
    padding: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
    background: rgba(5, 11, 24, .38);
    border-right: 0;
    border-top: 1px solid rgba(36, 64, 106, .65);
  }
  .nav-scale { display: none; }
  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .1rem;
    width: min(var(--shell), calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
  }
  .nav-list a {
    padding: .68rem 1rem;
    font-size: .9rem;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .nav-list a[aria-current="page"] {
    background: transparent;
    border-left: 0;
    border-bottom-color: var(--cyan);
  }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: span 1; }
}

/* ---------- xl: 1100px ---------- */
@media (min-width: 1100px) {
  .header-status { display: inline-flex; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.5fr; }
  .to-top { right: 1.5rem; bottom: 1.5rem; }
}

/* ---------- mobile scrim ---------- */
@media (max-width: 899px) {
  .nav-scrim { display: block; }
  .site-header[data-open] .nav-scrim {
    opacity: 1;
    visibility: visible;
  }
  .to-top-label { display: none; }
  .to-top { padding: .6rem .7rem; }
}

/* ---------- 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;
  }
  .status-dot { animation: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .site-nav { transition: none; }
}
