*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }

:root {
  --void: #070B18;
  --void-2: #0B1224;
  --teal: #16E0C4;
  --blue: #2C6BFF;
  --glass: #1A2238;
  --gold: #FFC46B;
  --cyan: #38F5FF;
  --coral: #FF6F5E;
  --mist: #E6EDF7;
  --slate: #7C8AA5;
  --paper: #F7FAFF;
  --line: rgba(230, 237, 247, .12);
  --line-strong: rgba(230, 237, 247, .26);
  --grad-aurora: linear-gradient(135deg, var(--teal), var(--blue));
  --grad-warm: linear-gradient(120deg, var(--gold), var(--coral));
  --rail-w: 72px;
  --rail-w-open: 248px;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body {
  min-height: 100vh;
  padding-top: 64px;
  background: var(--void);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 84% 6%, rgba(44, 107, 255, .30), transparent 70%),
    radial-gradient(46% 42% at 8% 24%, rgba(22, 224, 196, .20), transparent 72%),
    radial-gradient(40% 38% at 68% 92%, rgba(255, 111, 94, .10), transparent 72%),
    var(--void);
}

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

h1, .h1, h2, .h2, h3, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
  color: var(--mist);
}
h1, .h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.04; }
h2, .h2 { font-size: clamp(1.65rem, 3.6vw, 2.8rem); }
h3, .h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 700; letter-spacing: -.01em; }
p { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mono { font-family: var(--font-mono); font-size: .82em; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: .62rem 1.15rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #04121A;
  font-weight: 800;
  font-size: .86rem;
  transform: translateY(-180%);
  transition: transform .28s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(1180px, 100% - 2.25rem); margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.8rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--asym { grid-template-columns: 1fr; }

.divider {
  height: 1px;
  border: 0;
  margin: clamp(1.8rem, 5vw, 3.2rem) 0;
  background: linear-gradient(90deg, rgba(56, 245, 255, .55), rgba(255, 196, 107, .32), transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--grad-aurora);
  color: #04121A;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .02em;
  line-height: 1.2;
  box-shadow: 0 12px 30px -16px rgba(22, 224, 196, .95);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, color .25s, filter .25s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn--ghost {
  background: rgba(230, 237, 247, .05);
  border-color: var(--line-strong);
  color: var(--mist);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--warm { background: var(--grad-warm); color: #1A1205; box-shadow: 0 12px 30px -16px rgba(255, 196, 107, .95); }
.btn--sm { padding: .48rem .9rem; font-size: .8rem; }
.btn--block { width: 100%; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  padding: .2rem .58rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.tag--gold { color: var(--gold); background: rgba(255, 196, 107, .12); border-color: rgba(255, 196, 107, .34); }
.tag--coral { color: var(--coral); background: rgba(255, 111, 94, .12); border-color: rgba(255, 111, 94, .34); }
.tag--cyan { color: var(--cyan); background: rgba(56, 245, 255, .10); border-color: rgba(56, 245, 255, .30); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(26, 34, 56, .62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(26, 34, 56, .60);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56, 245, 255, .35); box-shadow: 0 26px 60px -42px rgba(56, 245, 255, .9); }
.card--solid { background: var(--glass); border-color: var(--line-strong); }
.card--paper { background: var(--paper); border-color: transparent; color: #101828; }
.card--paper h2, .card--paper h3 { color: #101828; }

.section-head { display: grid; gap: .55rem; margin-bottom: clamp(1.4rem, 4vw, 2.4rem); }
.section-no {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.breadcrumb { font-size: .76rem; color: var(--slate); }
.breadcrumb ol, .breadcrumb ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "›"; color: rgba(124, 138, 165, .7); }
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); }

.prose { max-width: 68ch; font-size: 1.02rem; line-height: 1.85; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; color: var(--cyan); }
.prose ul, .prose ol { padding-left: 1.25em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(56, 245, 255, .35); }
.prose code {
  font-family: var(--font-mono);
  font-size: .86em;
  padding: .14em .42em;
  border-radius: 6px;
  background: rgba(255, 196, 107, .12);
  color: var(--gold);
}
.prose strong { color: #FFFFFF; font-weight: 700; }

.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 70% at 20% 15%, rgba(22, 224, 196, .34), transparent 70%),
    radial-gradient(80% 80% at 85% 80%, rgba(44, 107, 255, .38), transparent 72%),
    linear-gradient(140deg, rgba(255, 196, 107, .12), transparent 60%);
}
.media img, .media video, .media picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--free { aspect-ratio: auto; }
.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: .9rem 1rem;
  font-size: .74rem;
  color: var(--mist);
  background: linear-gradient(0deg, rgba(7, 11, 24, .88), transparent);
}

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

.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.reading-progress.is-active { opacity: 1; }
.reading-progress span {
  display: block;
  width: 100%; height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--gold));
  box-shadow: 0 0 12px rgba(56, 245, 255, .65);
}

.to-top {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(26, 34, 56, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--mist);
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s, color .25s, border-color .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s, color .25s, border-color .25s; }
.to-top:hover { color: var(--cyan); border-color: var(--cyan); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  height: 64px;
  background: linear-gradient(180deg, rgba(9, 14, 28, .96), rgba(9, 14, 28, .84));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 0 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
}
.brand__mark {
  position: relative;
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: conic-gradient(from 220deg, var(--teal), var(--blue), var(--cyan), var(--gold), var(--teal));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 26px -12px rgba(22, 224, 196, .95);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 4px;
  background: var(--void);
}
.brand__mark--sm { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 9px; }
.brand__mark--sm::after { inset: 7px; border-radius: 3px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; transition: opacity .3s var(--ease); }
.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--mist);
  white-space: nowrap;
}
.brand__tag {
  font-size: 11px;
  color: var(--slate);
  letter-spacing: .02em;
  white-space: nowrap;
  display: none;
}
.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(26, 34, 56, .62);
  color: var(--mist);
  transition: color .25s, border-color .25s, background .25s;
}
.nav-toggle:hover { color: var(--cyan); border-color: var(--cyan); }
.nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.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); }

.site-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: min(340px, 86vw);
  padding: 18px 16px 26px;
  background: linear-gradient(165deg, #101A30, #070B18 72%);
  border-right: 1px solid var(--line-strong);
  box-shadow: 30px 0 80px -40px rgba(0, 0, 0, .95);
  overflow-y: auto;
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.site-nav[data-open] {
  transform: translateX(0);
  visibility: visible;
  transition: transform .45s var(--ease), visibility 0s linear 0s;
}
.site-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.site-nav__title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .24em; color: var(--gold); font-weight: 700; }
.site-nav__count { font-size: .72rem; color: var(--slate); }
.site-nav__tools { display: flex; gap: 8px; margin-bottom: 16px; }
.site-nav__tools .btn { flex: 1 1 0; padding: .58rem .5rem; font-size: .8rem; }
.site-nav__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.site-nav__note { font-size: .74rem; line-height: 1.7; color: var(--slate); }

.nav-list { display: flex; flex-direction: column; gap: 3px; }
.nav-list__item { display: block; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--mist);
  transition: color .25s, background .25s;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2px; height: 22px;
  border-radius: 2px;
  background: transparent;
  transform: translateY(-50%);
  transition: height .3s var(--ease), background .3s, width .3s var(--ease), box-shadow .3s;
}
.nav-link:hover { color: var(--cyan); background: rgba(230, 237, 247, .06); }
.nav-link__no { flex: 0 0 auto; font-size: .7rem; letter-spacing: .08em; color: var(--slate); }
.nav-link__text { font-size: .94rem; font-weight: 600; white-space: nowrap; }
.nav-link[aria-current="page"] { color: var(--cyan); background: rgba(56, 245, 255, .08); }
.nav-link[aria-current="page"]::before {
  width: 4px;
  height: 30px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
  box-shadow: 0 0 16px rgba(56, 245, 255, .75);
}
.nav-link[aria-current="page"] .nav-link__no { color: var(--gold); }

.site-search {
  position: absolute;
  top: 64px; left: 0; right: 0;
  z-index: 95;
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  opacity: 0;
  visibility: hidden;
  background: rgba(8, 13, 26, .98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: max-height .45s var(--ease), opacity .3s var(--ease), padding .3s var(--ease), visibility 0s linear .45s;
}
.site-header.is-open .site-search {
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 16px;
  opacity: 1;
  visibility: visible;
  transition: max-height .45s var(--ease), opacity .3s var(--ease), padding .3s var(--ease), visibility 0s linear 0s;
}
.site-search__label { display: block; margin-bottom: 8px; font-size: .7rem; letter-spacing: .2em; color: var(--gold); }
.site-search__input {
  width: 100%;
  padding: .68rem .9rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 24, .78);
  color: var(--mist);
  font-size: .9rem;
}
.site-search__input::placeholder { color: rgba(124, 138, 165, .95); }
.site-search__input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(56, 245, 255, .35);
}
.site-search__hint { margin-top: 10px; font-size: .76rem; line-height: 1.7; color: var(--slate); }
.site-search__results { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.site-search__results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: .55rem .7rem;
  border-radius: 10px;
  font-size: .86rem;
  color: var(--mist);
  transition: background .2s, color .2s;
}
.site-search__results a:hover, .site-search__results a:focus-visible { background: rgba(56, 245, 255, .12); color: var(--cyan); }
.site-search__results .no { font-family: var(--font-mono); font-size: .7rem; color: var(--slate); letter-spacing: .08em; }

.rail-tools { display: none; }
.rail-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 12px;
  overflow: hidden;
  color: var(--slate);
  font-size: .78rem;
  transition: background .25s, color .25s;
}
.rail-tool:hover { color: var(--cyan); background: rgba(56, 245, 255, .08); }
.rail-tool__icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.rail-tool__icon::after {
  content: "";
  position: absolute;
  right: -4px; bottom: -5px;
  width: 2px; height: 7px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.rail-tool__label { white-space: nowrap; opacity: 0; transition: opacity .3s var(--ease); }
.rail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .68rem .5rem;
  border-radius: 14px;
  background: var(--grad-warm);
  color: #1A1205;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .08em;
  white-space: nowrap;
  box-shadow: 0 10px 26px -14px rgba(255, 196, 107, .95);
  transition: transform .25s var(--ease), filter .25s;
}
.rail-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }

@media (max-width: 1023px) {
  body.is-nav-open { overflow: hidden; }
  body.is-nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(4, 7, 16, .62);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}

/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 18, 36, .30), rgba(4, 7, 16, .98));
  overflow: hidden;
  isolation: isolate;
}
.footer-aurora {
  position: absolute;
  right: -160px; bottom: -260px;
  z-index: -1;
  width: 620px; height: 620px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
  background:
    radial-gradient(circle at 44% 44%, rgba(22, 224, 196, .26), transparent 62%),
    radial-gradient(circle at 66% 62%, rgba(44, 107, 255, .30), transparent 60%);
}
.footer__inner {
  width: min(1180px, 100% - 2.25rem);
  margin-inline: auto;
  padding: clamp(2.2rem, 5.5vw, 4rem) 0 1.5rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 2.4rem);
}
.footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--mist);
}
.footer__brand-link:hover { color: var(--cyan); }
.footer__tag {
  margin-top: .7rem;
  max-width: 24ch;
  font-size: .84rem;
  line-height: 1.75;
  color: var(--slate);
}
.footer__col-title {
  margin-bottom: .85rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--gold);
}
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__link {
  display: inline-block;
  font-size: .88rem;
  color: var(--mist);
  opacity: .86;
  transition: color .22s, opacity .22s, transform .22s var(--ease);
}
.footer__link:hover { color: var(--cyan); opacity: 1; transform: translateX(3px); }
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1.6rem;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.3rem;
  font-size: .79rem;
  color: var(--slate);
}
.footer__contact li { display: inline-flex; align-items: baseline; gap: .45rem; }
.footer__contact .mono { font-size: .68rem; letter-spacing: .14em; color: var(--gold); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  font-size: .77rem;
  color: var(--slate);
}
.footer__sigil {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: conic-gradient(from 140deg, var(--teal), var(--blue), var(--coral), var(--gold), var(--teal));
  box-shadow: 0 0 22px -6px rgba(22, 224, 196, .95);
}

@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid--asym { grid-template-columns: 1.35fr .95fr; }
  .footer__top { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  body { padding-top: 0; padding-left: var(--rail-w); }
  .container, .footer__inner { width: min(1180px, 100% - 5rem); }

  .site-header {
    top: 0; bottom: 0; right: auto;
    height: auto;
    width: var(--rail-w);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(20, 28, 48, .94), rgba(7, 11, 24, .96));
    overflow: hidden;
    transition: width .45s var(--ease);
  }
  .site-header:hover,
  .site-header:focus-within,
  .site-header.is-open { width: var(--rail-w-open); }

  .header-bar {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 18px 0 4px;
  }
  .brand { justify-content: center; width: 100%; padding: 0 12px; }
  .brand__text { opacity: 0; }
  .brand__tag { display: block; }
  .site-header:hover .brand,
  .site-header:focus-within .brand,
  .site-header.is-open .brand { justify-content: flex-start; }
  .site-header:hover .brand__text,
  .site-header:focus-within .brand__text,
  .site-header.is-open .brand__text { opacity: 1; }

  .header-actions { display: none; }

  .site-nav {
    position: static;
    flex: 1 1 auto;
    min-height: 0;
    width: auto;
    padding: 8px 0 4px;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    overflow-y: auto;
    overflow-x: hidden;
    transition: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 138, 165, .4) transparent;
  }
  .site-nav__head, .site-nav__tools, .site-nav__foot { display: none; }
  .nav-list { padding: 0 10px; gap: 2px; }
  .nav-link {
    gap: 12px;
    min-height: 48px;
    padding: 8px 0 8px 22px;
    overflow: hidden;
    color: var(--slate);
  }
  .nav-link__no { flex: 0 0 12px; font-size: .66rem; letter-spacing: .02em; }
  .nav-link__text {
    font-size: .86rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .3s var(--ease) .08s, transform .3s var(--ease) .08s;
  }
  .site-header:hover .nav-link__text,
  .site-header:focus-within .nav-link__text,
  .site-header.is-open .nav-link__text { opacity: 1; transform: none; }

  .site-search {
    position: static;
    flex: 0 0 auto;
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    opacity: 0;
    visibility: hidden;
    background: none;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: max-height .4s var(--ease), opacity .3s var(--ease), padding .3s var(--ease), visibility 0s linear .4s;
  }
  .site-header.is-open .site-search {
    max-height: 420px;
    overflow-y: auto;
    padding: 10px 16px 14px;
    opacity: 1;
    visibility: visible;
    transition: max-height .45s var(--ease), opacity .3s var(--ease), padding .3s var(--ease), visibility 0s linear 0s;
  }

  .rail-tools {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px 18px;
    border-top: 1px solid var(--line);
  }
  .site-header:hover .rail-tool__label,
  .site-header:focus-within .rail-tool__label,
  .site-header.is-open .rail-tool__label { opacity: 1; }

  .to-top { right: 24px; bottom: 24px; }
  .reading-progress { left: var(--rail-w); }
  .skip-link { left: calc(var(--rail-w) + 12px); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .nav-link__text, .brand__text, .rail-tool__label { transition: none !important; }
}
