/* ============================================================
   浩瀚体育安装 / Site Kit 共享样式  →  /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: 120px;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd { 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; text-decoration: none; }

input, textarea, select { font: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #061826;
  --deck: #0B2C46;
  --deck-lift: #0E3350;
  --line: #123F5E;
  --cyan: #2FE3D0;
  --cyan-soft: #A4FFF5;
  --orange: #FF7A29;
  --orange-deep: #C24E12;
  --bone: #EFE7DA;
  --mist: #C7D6DE;
  --stone: #6E828F;
  --moss: #5C7A64;
  --paper: #F9FDFF;

  --font-display: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Courier New', monospace;

  --radius-pill: 999px;
  --radius-lg: 26px;
  --radius-md: 16px;

  --shell-max: 1280px;
  --gutter: clamp(18px, 4vw, 64px);
  --ease: cubic-bezier(.32, .72, .28, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  position: relative;
  min-height: 100%;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: clamp(15px, .55vw + 13px, 17px);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 蓝图网格背景 */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 63, 94, .42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 63, 94, .42) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 12%, #000 0%, rgba(0,0,0,.45) 46%, transparent 82%);
  mask-image: radial-gradient(ellipse at 50% 12%, #000 0%, rgba(0,0,0,.45) 46%, transparent 82%);
  opacity: .55;
}

main,
main#main-content { position: relative; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--paper);
}

h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 900; }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: clamp(17px, 1.6vw, 20px); }

p { max-width: 68ch; }

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

a { cursor: pointer; }

[id] { scroll-margin-top: 118px; }

/* ---------- 4. Focus & accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: clamp(12px, 3vw, 28px);
  z-index: 200;
  display: inline-block;
  padding: 12px 22px;
  border-radius: 0 0 14px 14px;
  background: var(--cyan);
  color: #04222b;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  transition: top .22s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline-offset: 0;
}

/* ---------- 5. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--paper);
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1vw + 12px, 18px);
  line-height: 1.85;
  color: var(--mist);
}

.mono-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  opacity: .75;
}

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .22s var(--ease),
              border-color .22s var(--ease),
              color .22s var(--ease),
              transform .22s var(--ease),
              box-shadow .22s var(--ease);
}

.btn--pill {
  padding: 7px 16px;
  font-size: 12.5px;
  color: var(--cyan-soft);
  background: rgba(47, 227, 208, .08);
  border-color: rgba(47, 227, 208, .45);
}
.btn--pill:hover {
  background: rgba(47, 227, 208, .18);
  border-color: var(--cyan);
  color: var(--paper);
}

.btn--cta {
  background: var(--orange);
  color: #0A1A24;
  border-color: var(--orange);
  box-shadow: 0 12px 28px -20px rgba(255, 122, 41, .95);
}
.btn--cta:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--mist);
  border-color: rgba(199, 214, 222, .3);
  background: transparent;
}
.btn--ghost:hover {
  color: var(--cyan-soft);
  border-color: var(--cyan);
  background: rgba(47, 227, 208, .08);
}

/* ---------- 7. Cards / tags / media ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(158deg, rgba(11, 44, 70, .92), rgba(6, 24, 38, .94));
  transition: transform .3s var(--ease),
              border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 227, 208, .55);
  box-shadow: 0 24px 46px -32px rgba(47, 227, 208, .8);
}

.card__index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--cyan);
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--paper);
}

.card__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--cyan);
  align-self: flex-start;
  border-bottom: 1px solid rgba(47, 227, 208, .35);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.card__link:hover { color: var(--cyan-soft); border-color: var(--cyan); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(47, 227, 208, .35);
  background: rgba(47, 227, 208, .08);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--cyan-soft);
  white-space: nowrap;
}

.media {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgba(47, 227, 208, .2), transparent 58%),
    linear-gradient(142deg, var(--deck) 0%, #04121d 100%);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media img,
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(1.04);
}

.media__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(6, 24, 38, .86) 100%);
}

.media__caption {
  position: absolute;
  left: clamp(14px, 2vw, 22px);
  right: clamp(14px, 2vw, 22px);
  bottom: clamp(12px, 2vw, 20px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--cyan-soft);
}

/* ---------- 8. Breadcrumb / prose / panel ---------- */
.breadcrumb { padding-block: clamp(16px, 2.4vw, 26px) 0; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--stone);
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a { color: var(--mist); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }

.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.92;
  color: var(--mist);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-top: 1.9em;
  padding-top: .4em;
  border-top: 1px solid var(--line);
}
.prose h3 { font-size: clamp(18px, 1.8vw, 22px); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(47, 227, 208, .4); }
.prose a:hover { color: var(--cyan-soft); }
.prose blockquote {
  padding: 18px 22px;
  border-left: 2px solid var(--cyan);
  background: rgba(11, 44, 70, .72);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--mist);
}

.panel--bone {
  padding: clamp(24px, 4vw, 48px);
  border-radius: clamp(20px, 3vw, 34px);
  background: var(--bone);
  color: var(--deck);
}
.panel--bone h2,
.panel--bone h3,
.panel--bone strong { color: #0B2C46; }
.panel--bone .prose { color: #17425f; }
.panel--bone .mono-label { color: #0F6E76; }

/* ---------- 9. TOC ---------- */
.toc {
  position: sticky;
  top: 118px;
  align-self: start;
}
.toc__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}
.toc__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid var(--line);
}
.toc__list a {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--stone);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.toc__list a:hover { color: var(--mist); }
.toc__list a[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

/* ---------- 10. Copy button ---------- */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1px 0 3px;
  max-width: 100%;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--paper);
  text-align: left;
  border-bottom: 1px dashed rgba(47, 227, 208, .35);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.copy-btn:hover { color: var(--cyan-soft); border-bottom-color: var(--cyan); }

.copy-btn__text { overflow-wrap: anywhere; }

.copy-btn__hint {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(47, 227, 208, .3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--cyan);
  opacity: .78;
  transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.copy-btn.is-copied .copy-btn__hint {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04222b;
  opacity: 1;
}

/* ---------- 11. Scroll progress & reveal & top-link ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 3px;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 55%, var(--orange) 100%);
  transition: width .12s linear;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.top-link {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11, 44, 70, .94);
  color: var(--cyan);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  cursor: pointer;
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              visibility .3s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease);
}
.top-link.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.top-link:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04222b;
}
.top-link__glyph {
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1;
  transform: translateY(-1px);
}

/* ---------- 12. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 24, 38, .94);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(18, 63, 94, .95);
}

.header-utility {
  max-height: 56px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(11, 44, 70, .95) 0%, rgba(6, 24, 38, .55) 100%);
  border-bottom: 1px solid rgba(18, 63, 94, .85);
  transition: max-height .34s var(--ease), opacity .24s var(--ease), border-color .34s var(--ease);
}
.site-header.is-condensed .header-utility {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.header-utility__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  min-height: 44px;
  padding-block: 6px;
}

.header-utility__note {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: none;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--mist);
}

.header-utility__brand { color: var(--cyan-soft); }

.header-utility__sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(47, 227, 208, .4);
}

.header-utility__ver {
  color: var(--stone);
  letter-spacing: .12em;
}

.header-utility__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.util-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.util-link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(47, 227, 208, .6);
}

.header-main { position: relative; }

.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  min-height: 70px;
  padding-block: 10px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--paper);
}

.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px 12px 12px 3px;
  background: linear-gradient(145deg, var(--cyan) 0%, #17A8A0 100%);
  color: #04222B;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(164, 255, 245, .35),
              0 10px 24px -16px rgba(47, 227, 208, .95);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--paper);
}

.brand__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: .82;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  order: 2;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 16px 9px 13px;
  border: 1px solid rgba(47, 227, 208, .4);
  border-radius: var(--radius-pill);
  background: rgba(47, 227, 208, .07);
  color: var(--cyan-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover {
  background: rgba(47, 227, 208, .17);
  border-color: var(--cyan);
  color: var(--paper);
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
.nav-toggle__label { line-height: 1; }

/* 主导航 */
.main-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.8vw, 24px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(4px, 1.3vw, 20px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 4px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--mist);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease), background .28s var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--paper);
  font-weight: 700;
}
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 100%);
}

.nav-cta {
  flex: 0 0 auto;
  padding: 10px 20px;
  font-size: 13.5px;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  padding: clamp(44px, 6vw, 80px) 0 26px;
  border-top: 1px solid rgba(47, 227, 208, .22);
  border-radius: clamp(26px, 4vw, 46px) clamp(26px, 4vw, 46px) 0 0;
  background:
    radial-gradient(ellipse at 82% 0%, rgba(47, 227, 208, .1), transparent 58%),
    linear-gradient(178deg, #0A2537 0%, #061826 62%);
  color: var(--mist);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 74%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 227, 208, .8), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr .9fr 1fr 1.35fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 46px);
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.brand--footer { color: var(--paper); }

.footer-brand__note {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--stone);
}

.footer-brand__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--stone);
}

.footer-brand__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(92, 122, 100, .22);
}

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

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--mist);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-links a::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 1px;
  background: var(--line);
  transition: background-color .2s var(--ease), width .2s var(--ease);
}
.footer-links a:hover { color: var(--cyan-soft); transform: translateX(2px); }
.footer-links a:hover::before { background: var(--cyan); width: 16px; }

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

.footer-contact__item { display: flex; flex-direction: column; gap: 3px; }

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}

.footer-contact__value {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--mist);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin-top: 16px;
  max-width: 40ch;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--stone);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(18, 63, 94, .9);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--stone);
}
.footer-bottom__copy,
.footer-bottom__icp { max-width: none; }
.footer-bottom__icp { color: var(--mist); }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1140px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px 40px;
  }
  .footer-contact__note { margin-top: 0; max-width: 56ch; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }

  .header-main__inner {
    flex-wrap: wrap;
    min-height: 64px;
    padding-block: 10px;
  }

  .main-nav {
    order: 3;
    display: none;
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    padding: 10px 0 18px;
    border-top: 1px solid rgba(18, 63, 94, .95);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
  }
  .main-nav[data-open] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    display: block;
    padding: 13px 10px;
    border-radius: 10px;
    font-size: 16px;
  }
  .nav-link::after { left: 10px; right: 10px; bottom: 7px; }
  .nav-link:hover { background: rgba(11, 44, 70, .85); }

  .nav-cta {
    width: 100%;
    margin-top: 10px;
    padding-block: 14px;
    font-size: 15px;
  }

  .header-utility__inner { min-height: 38px; padding-block: 5px; }
  .header-utility .util-link { display: none; }

  .grid--7-5,
  .grid--8-4 { grid-template-columns: 1fr; }

  .toc { position: static; }

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

@media (max-width: 640px) {
  .header-utility__ver,
  .header-utility__sep { display: none; }
  .header-utility__note { font-size: 11.5px; }

  .header-main__inner { min-height: 58px; }
  .brand__mark { width: 34px; height: 34px; font-size: 15px; border-radius: 11px 11px 11px 3px; }
  .brand__name { font-size: 15px; }
  .brand__meta { font-size: 9px; letter-spacing: .14em; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .btn { padding: 10px 18px; }
  .card { gap: 10px; }
  .top-link { width: 42px; height: 42px; }
}

@media (max-width: 400px) {
  .nav-toggle__label { display: none; }
  .btn--pill { font-size: 11.5px; padding: 6px 12px; }
}

/* ---------- 15. 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;
  }

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

  .card:hover,
  .footer-links a:hover,
  .btn--cta:hover { transform: none; }

  .top-link { transform: none; }
}
