/* ============================================================
   星空赛场 · /assets/site.css
   高原夜空下的看台感：深空底、湖青锚点、星芒紫光晕、暖金数据
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: #060A18;
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; }
ul[role="list"], .nav-list, .footer-list, .rail-list, .breadcrumb ol { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --deep: #060A18;
  --night: #0E1A38;
  --lake: #17B3C4;
  --lake-deep: #0C6A78;
  --violet: #7C5CFF;
  --gold: #FFC24B;
  --star: #EAF0FF;
  --mist: #93A0BE;
  --orbit: #22305A;
  --stand: #4A5570;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  --surface: rgba(14, 26, 56, 0.72);
  --surface-2: rgba(16, 27, 56, 0.88);
  --line: rgba(34, 48, 90, 0.88);
  --line-soft: rgba(34, 48, 90, 0.5);

  --gutter: clamp(16px, 4vw, 44px);
  --maxw: 1200px;
  --band: clamp(52px, 7vw, 104px);

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

  --shadow-float: 0 20px 50px -26px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--star);
  background:
    radial-gradient(140% 58% at 78% -8%, rgba(124, 92, 255, 0.17), transparent 58%),
    radial-gradient(120% 52% at 6% 2%, rgba(23, 179, 196, 0.13), transparent 62%),
    linear-gradient(180deg, #060A18 0%, #0E1A38 44%, #060A18 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--star);
}
h1 { font-size: clamp(2.2rem, 7vw, 5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.28rem); letter-spacing: -0.01em; }
h4 { font-size: 1rem; }
p { line-height: 1.75; }
strong { font-weight: 700; color: #FFFFFF; }
small { font-size: 0.8rem; color: var(--mist); }

::selection { background: rgba(23, 179, 196, 0.35); color: #FFFFFF; }

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

#main-content { display: block; scroll-margin-top: 96px; }

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 6px;
  left: 50%;
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--lake), var(--violet));
  color: #04121A;
  font-size: 0.86rem;
  font-weight: 700;
  transform: translate(-50%, -180%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 5. 头部：悬浮胶囊导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: 14px var(--gutter);
  pointer-events: none;
}
.header-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  pointer-events: auto;
}
.header-capsule {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  padding: 9px 12px 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(14, 26, 56, 0.9), rgba(6, 10, 24, 0.82));
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header[data-stuck="true"] .header-capsule {
  padding: 6px 10px 6px 16px;
  background: linear-gradient(120deg, rgba(14, 26, 56, 0.97), rgba(6, 10, 24, 0.94));
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 1 1 0;
  min-width: 0;
  color: var(--star);
}
.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #FFFFFF 0%, var(--lake) 34%, var(--violet) 70%, rgba(124, 92, 255, 0) 76%);
  box-shadow: 0 0 0 1px rgba(23, 179, 196, 0.4), 0 0 22px rgba(124, 92, 255, 0.45);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(23, 179, 196, 0.32);
}
.brand-text { display: block; min-width: 0; }
.brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  white-space: nowrap;
}
.brand-tagline {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--mist);
  line-height: 1.5;
  white-space: nowrap;
}

/* 导航 */
.nav {
  flex: 0 1 auto;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--star);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.76;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.nav-link:hover { opacity: 1; background: rgba(23, 179, 196, 0.12); }
.nav-link[aria-current="page"] {
  opacity: 1;
  color: var(--lake);
  background: rgba(23, 179, 196, 0.14);
  box-shadow: inset 0 0 0 1px rgba(23, 179, 196, 0.36);
}
.nav-aside { display: none; }

/* 桌面端 CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  justify-content: flex-end;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--primary {
  background: linear-gradient(135deg, var(--lake), #1FC6D6 54%, var(--violet));
  color: #04121A;
  box-shadow: 0 10px 30px -14px rgba(23, 179, 196, 0.9);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -14px rgba(23, 179, 196, 1); }
.btn--primary:active { background: linear-gradient(135deg, var(--lake-deep), var(--violet)); transform: none; }
.btn--ghost {
  background: rgba(234, 240, 255, 0.05);
  border-color: var(--line);
  color: var(--star);
}
.btn--ghost:hover { border-color: rgba(23, 179, 196, 0.55); color: var(--lake); }
.btn--quiet {
  background: transparent;
  color: var(--mist);
  padding-left: 10px;
  padding-right: 10px;
}
.btn--quiet:hover { color: var(--lake); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(234, 240, 255, 0.06);
  color: var(--star);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-toggle:hover { border-color: rgba(23, 179, 196, 0.5); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--lake);
  transition: background 0.22s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--lake);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

/* 遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  border: 0;
  padding: 0;
  background:
    radial-gradient(70% 45% at 50% 100%, rgba(23, 179, 196, 0.16), rgba(6, 10, 24, 0.82) 68%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s var(--ease), visibility 0.24s;
}
.site-header[data-open="true"] .nav-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: var(--band);
  border-top: 1px solid var(--orbit);
  background:
    radial-gradient(120% 78% at 12% -12%, rgba(124, 92, 255, 0.2), transparent 60%),
    radial-gradient(96% 62% at 88% -4%, rgba(23, 179, 196, 0.16), transparent 62%),
    linear-gradient(180deg, var(--night) 0%, var(--deep) 66%);
  color: var(--star);
  overflow: hidden;
}
.footer-rail {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--lake) 22%, var(--violet) 58%, transparent 94%);
  opacity: 0.85;
}
.footer-glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}
.footer-glow--arc {
  width: min(760px, 92vw);
  height: min(760px, 92vw);
  top: -48%;
  right: -18%;
  border: 1px solid rgba(124, 92, 255, 0.22);
  box-shadow: inset 0 0 90px rgba(124, 92, 255, 0.1);
}
.footer-glow--star {
  width: 320px;
  height: 320px;
  bottom: -40%;
  left: -8%;
  background: radial-gradient(circle, rgba(23, 179, 196, 0.24), rgba(23, 179, 196, 0) 70%);
}
.footer-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 86px) var(--gutter) 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(26px, 4vw, 56px);
}
.footer-brand .brand { flex: 0 1 auto; }
.footer-summary {
  margin-top: 18px;
  max-width: 34em;
  font-size: 0.92rem;
  color: var(--mist);
}
.footer-contact {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}
.footer-contact__item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.84rem;
  line-height: 1.6;
}
.footer-contact__label {
  flex: 0 0 auto;
  min-width: 4.6em;
  color: var(--lake);
  letter-spacing: 0.08em;
}
.footer-contact__value { color: var(--star); word-break: break-word; }
.footer-col { min-width: 0; }
.footer-col__title {
  position: relative;
  padding-left: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--star);
}
.footer-col__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 3px;
  height: 0.92em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--lake), var(--violet));
}
.footer-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.footer-list a {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--mist);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-list a:hover { color: var(--lake); transform: translateX(3px); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(34px, 4vw, 54px);
  padding-top: 20px;
  border-top: 1px solid var(--orbit);
  font-size: 0.78rem;
  color: var(--mist);
}
.footer-meta { letter-spacing: 0.04em; }
.footer-icp { letter-spacing: 0.06em; color: var(--stand); }

/* ---------- 7. 页面骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--band); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
  margin-bottom: clamp(20px, 3vw, 38px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--lake);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--lake), rgba(23, 179, 196, 0));
}
.section-title { margin: 0; }
.lede {
  max-width: 38em;
  font-size: 1rem;
  color: var(--mist);
}
.prose { max-width: 38em; }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { margin-top: 1.8em; }
.prose a { color: var(--lake); text-decoration: underline; text-underline-offset: 3px; }

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
}
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--offset > *:nth-child(even) { transform: translateY(clamp(12px, 3vw, 34px)); }

/* 面包屑 */
.breadcrumb { font-size: 0.8rem; color: var(--mist); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--stand); }
.breadcrumb a { color: var(--mist); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--lake); }
.breadcrumb [aria-current="page"] { color: var(--star); }

/* ---------- 8. 卡片 / 标签 / 数据 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(16, 27, 56, 0.9), rgba(6, 10, 24, 0.78));
  color: var(--star);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -60%;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18), rgba(124, 92, 255, 0) 70%);
  pointer-events: none;
}
.card:hover { transform: translateY(-3px); border-color: rgba(23, 179, 196, 0.45); }
.card--raised { box-shadow: 0 26px 60px -36px rgba(0, 0, 0, 0.96); }
.card--accent { border-color: rgba(23, 179, 196, 0.42); }
.card__title {
  position: relative;
  margin-bottom: 8px;
  font-size: 1.06rem;
  font-weight: 750;
}
.card__meta {
  position: relative;
  font-size: 0.8rem;
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(23, 179, 196, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(23, 179, 196, 0.14);
  color: var(--lake);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tag--violet {
  border-color: rgba(124, 92, 255, 0.34);
  background: rgba(124, 92, 255, 0.16);
  color: #B9A8FF;
}
.tag--gold {
  border-color: rgba(255, 194, 75, 0.34);
  background: rgba(255, 194, 75, 0.14);
  color: var(--gold);
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__value {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.stat__label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

/* ---------- 9. 媒体容器（页面阶段放图） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #101B38 0%, #060A18 74%);
  overflow: hidden;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media__img,
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 10, 24, 0.04) 0%, rgba(6, 10, 24, 0.74) 100%),
    linear-gradient(120deg, rgba(14, 26, 56, 0.42), rgba(23, 179, 196, 0.14));
}
.media__glow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 75, 0.85), rgba(255, 194, 75, 0) 68%);
  filter: blur(2px);
  pointer-events: none;
}
.media__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-size: 0.8rem;
  color: var(--star);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

/* ---------- 10. 滚动组件 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 140;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lake), var(--violet) 68%, var(--gold));
  pointer-events: none;
  transition: width 0.08s linear;
}
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(23, 179, 196, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(14, 26, 56, 0.94);
  color: var(--star);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s,
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--lake); color: var(--lake); }

.rail { display: none; }
.rail-list { display: grid; gap: 10px; margin: 0; padding: 0; }
.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--mist);
  transition: color 0.2s var(--ease);
}
.rail-link::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--orbit);
  transition: width 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.rail-link:hover { color: var(--star); }
.rail-link.is-active { color: var(--lake); }
.rail-link.is-active::before {
  width: 30px;
  background: var(--lake);
  box-shadow: 0 0 14px rgba(23, 179, 196, 0.8);
}

/* ---------- 11. 显现 ---------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 8px 11px; font-size: 0.86rem; }
  .btn { padding: 10px 16px; font-size: 0.84rem; }
}

@media (max-width: 1000px) {
  body { padding-bottom: 104px; }
  .site-header {
    top: auto;
    bottom: 0;
    padding: 0 var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .header-capsule {
    gap: 12px;
    padding: 9px 10px 9px 14px;
    border-radius: 24px;
    background: linear-gradient(120deg, rgba(14, 26, 56, 0.97), rgba(6, 10, 24, 0.95));
  }
  .site-header[data-stuck="true"] .header-capsule { padding: 9px 10px 9px 14px; }
  .brand-tagline { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    max-height: min(68vh, 540px);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(14, 26, 56, 0.98), rgba(6, 10, 24, 0.98));
    box-shadow: 0 -12px 50px -20px rgba(0, 0, 0, 0.92);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
  }
  .nav[data-open="true"],
  .site-header[data-open="true"] .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 1rem;
    opacity: 0.9;
  }
  .nav-aside {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--orbit);
  }
  .nav-aside .btn { width: 100%; }

  .to-top { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); right: 14px; }

  .grid--7-5,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--offset > *:nth-child(even) { transform: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-contact__label { min-width: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding-block: clamp(40px, 10vw, 62px); }
}

@media (min-width: 1680px) {
  .rail {
    display: block;
    position: fixed;
    top: 50%;
    left: calc((100vw - 1200px) / 2 - 190px);
    width: 172px;
    transform: translateY(-50%);
    z-index: 90;
  }
}

/* ---------- 13. Reduced motion ---------- */
@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-js [data-reveal] { opacity: 1; transform: none; }
  .card:hover,
  .btn--primary:hover { transform: none; }
}
