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

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

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

/* ================= 2. Tokens ================= */
:root {
  --ink: #061A2E;
  --ink-2: #0B2942;
  --ink-3: #132F45;
  --coral: #FF6B4A;
  --cyan: #34F5D0;
  --mist: #B7C5D0;
  --paper: #F4EFE4;
  --fog: #E7EEF3;
  --line: rgba(183, 197, 208, 0.18);
  --line-strong: rgba(183, 197, 208, 0.34);
  --shell: min(1180px, 92vw);
  --cut: 12px;
  --font-display: "HarmonyOS Sans SC", "MiSans", "Inter Tight", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, "PingFang SC", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ================= 3. Base type ================= */
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

h1 { font-size: clamp(34px, 4.6vw, 60px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: clamp(17px, 1.5vw, 20px); }

p { max-width: 38em; }

strong { font-weight: 800; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.02em;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

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

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

/* ================= 4. Skip link ================= */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -160%);
  z-index: 120;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: 0 0 4px 4px;
  transition: transform 0.2s var(--ease);
}

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

/* ================= 5. Header ================= */
.site-header {
  position: relative;
  z-index: 60;
  background:
    radial-gradient(120% 150% at 50% -50%, rgba(52, 245, 208, 0.14), transparent 62%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}

.header-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(183, 197, 208, 0.16);
  z-index: 90;
  pointer-events: none;
}

.header-rail__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--coral), var(--cyan));
  transition: transform 0.12s linear;
}

.masthead {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 88px;
}

.masthead__kicker {
  justify-self: start;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.masthead__brand {
  justify-self: center;
  position: relative;
  padding: 6px 4px 11px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 2.8vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--paper);
  transition: color 0.25s var(--ease);
}

.masthead__brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--cyan));
}

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

.masthead__meta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.masthead__badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  color: var(--ink);
  background: var(--coral);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.masthead__scan {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cyan);
  border: 1px solid rgba(52, 245, 208, 0.45);
  border-radius: 2px;
  padding: 6px 12px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.masthead__scan:hover {
  background: var(--cyan);
  color: var(--ink);
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__label { white-space: nowrap; }

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

/* primary nav */
.site-nav {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 32px);
  padding: 2px 0;
}

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 13px 2px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--mist);
  transition: color 0.25s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.site-nav__link:hover { color: var(--paper); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--paper); }

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  height: 3px;
  background: var(--coral);
}

/* version strip */
.version-strip {
  background: var(--ink-2);
}

.version-strip__scroll {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 245, 208, 0.4) transparent;
}

.version-strip__scroll::-webkit-scrollbar { height: 4px; }
.version-strip__scroll::-webkit-scrollbar-thumb {
  background: rgba(52, 245, 208, 0.4);
}

.version-strip__label {
  flex: 0 0 auto;
  padding-right: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--coral);
}

.version-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  scroll-snap-align: start;
  padding: 6px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.version-chip:hover {
  color: var(--paper);
  border-color: var(--cyan);
}

.version-chip[aria-selected="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}

.version-strip__note {
  width: var(--shell);
  margin-inline: auto;
  padding-bottom: 11px;
  max-width: 62em;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--mist);
}

/* scan island */
.scan-island {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 70;
  width: 116px;
  padding: 11px 10px 12px;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  color: var(--paper);
  background: rgba(11, 41, 66, 0.94);
  border: 1px solid rgba(52, 245, 208, 0.36);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  animation: island-pulse 4.6s ease-in-out infinite;
}

.scan-island__code {
  position: relative;
  width: 66px;
  height: 66px;
  background:
    repeating-conic-gradient(var(--ink) 0% 25%, var(--paper) 0% 50%) 0 0 / 8px 8px;
  border: 2px solid var(--paper);
}

.scan-island__code::before,
.scan-island__code::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--ink);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px var(--ink);
}

.scan-island__code::before { top: 2px; left: 2px; }
.scan-island__code::after { bottom: 2px; right: 2px; }

.scan-island__text {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.scan-island__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border-bottom: 1px solid rgba(52, 245, 208, 0.5);
}

.scan-island__link:hover { color: var(--paper); }

@keyframes island-pulse {
  0%, 100% { border-color: rgba(52, 245, 208, 0.36); box-shadow: 0 0 0 0 rgba(52, 245, 208, 0); }
  50% { border-color: rgba(52, 245, 208, 0.85); box-shadow: 0 0 22px -6px rgba(52, 245, 208, 0.45); }
}

/* ================= 6. Footer ================= */
.site-footer {
  position: relative;
  background: var(--ink-3);
  color: var(--paper);
  border-top: 1px solid rgba(52, 245, 208, 0.22);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral) 0 24%, var(--cyan) 24% 48%, transparent 48%);
}

.footer-top {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 62px) 0 clamp(20px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.footer-brand { max-width: 32em; }

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.footer-brand__line {
  margin-top: 8px;
  font-size: 15px;
  color: var(--mist);
}

.footer-brand__note {
  margin-top: 6px;
  font-size: 13.5px;
  color: rgba(183, 197, 208, 0.82);
}

.footer-top__cta { flex: 0 0 auto; }

.footer-grid {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 46px) 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 56px);
}

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

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

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.footer-list { display: grid; gap: 9px; }

.footer-list__link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-list__link:hover {
  color: var(--paper);
  border-color: var(--coral);
  transform: translateX(3px);
}

.footer-contact { display: grid; gap: 12px; }

.footer-contact__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(183, 197, 208, 0.7);
}

.footer-contact__value {
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact__item--phone .footer-contact__value {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--coral);
}

.footer-bottom {
  width: var(--shell);
  margin-inline: auto;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-legal { color: rgba(183, 197, 208, 0.7); }
.footer-meta { color: var(--mist); }

/* ================= 7. Layout primitives ================= */
.container {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(48px, 7vw, 100px) 0;
}

.section--ink { background: var(--ink); color: var(--paper); }
.section--panel { background: var(--ink-2); color: var(--paper); }

.section--paper { background: var(--paper); color: var(--ink); }
.section--fog { background: var(--fog); color: var(--ink); }

.section--paper .section-sub,
.section--fog .section-sub,
.section--paper .lede,
.section--fog .lede { color: #45607A; }

.section--paper .tag,
.section--fog .tag {
  color: #33506B;
  border-color: rgba(6, 26, 46, 0.24);
}

.section-head {
  max-width: 44em;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section-title { margin-bottom: 0; }

.section-sub {
  margin-top: 12px;
  font-size: 16.5px;
  color: var(--mist);
}

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.8;
  color: var(--mist);
}

/* ================= 8. Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--primary {
  background: var(--coral);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(52, 245, 208, 0.5);
}

.btn--ghost:hover {
  background: rgba(52, 245, 208, 0.14);
  border-color: var(--cyan);
}

.btn--quiet {
  background: var(--ink-2);
  color: var(--paper);
  border-color: var(--line-strong);
}

.btn--quiet:hover {
  background: var(--ink-3);
  border-color: var(--cyan);
}

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--cyan);
}

/* ================= 9. Chips & tags ================= */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.tag--coral {
  color: var(--coral);
  border-color: rgba(255, 107, 74, 0.5);
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(52, 245, 208, 0.45);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mist);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chip:hover {
  color: var(--paper);
  border-color: var(--cyan);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}

/* ================= 10. Panels, cards, grids ================= */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.panel--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(6, 26, 46, 0.12);
}

.card {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.card:hover {
  border-color: rgba(52, 245, 208, 0.4);
  background: var(--ink-3);
}

.card:hover::after { transform: scaleX(1); }

.card__title {
  font-size: clamp(18px, 1.6vw, 21px);
  margin-bottom: 8px;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ================= 11. Media frames ================= */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame__img,
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(6, 26, 46, 0.55));
  pointer-events: none;
}

.media-frame--empty {
  background:
    repeating-linear-gradient(135deg, rgba(183, 197, 208, 0.12) 0 1px, transparent 1px 14px),
    var(--ink-2);
}

.media-frame--empty::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(52, 245, 208, 0.35);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

/* ================= 12. Breadcrumbs & prose ================= */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.breadcrumbs__link {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.breadcrumbs__sep {
  color: rgba(183, 197, 208, 0.5);
}

.breadcrumbs__current {
  color: var(--paper);
}

.prose {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(24px, 4vw, 56px);
}

.prose h2,
.prose h3 {
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  color: var(--ink);
}

.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }

.prose p,
.prose li {
  max-width: 40em;
  color: #22384C;
}

.prose p + p { margin-top: 0.9em; }

.prose ul,
.prose ol {
  margin: 0.8em 0;
  display: grid;
  gap: 0.4em;
}

.prose ul li::before {
  content: "—";
  color: var(--coral);
  margin-right: 0.5em;
}

.prose a {
  color: #0B5C6B;
  border-bottom: 1px solid rgba(11, 92, 107, 0.4);
}

/* ================= 13. Responsive ================= */
@media (max-width: 1023px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

  .footer-col--contact { grid-column: 1 / -1; }

  .scan-island { display: none; }
}

@media (max-width: 899px) {
  .masthead__inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: 66px;
  }

  .masthead__kicker { display: none; }

  .masthead__meta { display: none; }

  .masthead__brand {
    justify-self: start;
    font-size: 24px;
    padding-bottom: 9px;
  }

  .nav-toggle { display: inline-flex; justify-self: end; }

  .site-nav {
    width: 100%;
    display: block;
  }

  .site-nav[data-open="false"] { display: none; }

  .site-nav[data-open="true"] {
    display: block;
    background: var(--ink-2);
    border-top: 1px solid var(--line);
  }

  .site-nav__list {
    width: var(--shell);
    margin-inline: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 6px 0 12px;
  }

  .site-nav__link {
    display: block;
    padding: 13px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(183, 197, 208, 0.12);
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"] { color: var(--cyan); }

  .version-strip__scroll { padding: 8px 0; }

  .version-strip__note { font-size: 12px; }

  .footer-top { align-items: flex-start; }

  .footer-top__cta { width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .footer-col--contact { grid-column: auto; }

  .footer-bottom { justify-content: flex-start; }

  .footer-contact__item { grid-template-columns: 40px 1fr; }
}

/* ================= 14. Motion preferences ================= */
@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;
    scroll-behavior: auto !important;
  }
}
