/* /assets/site.css */
:root {
  --ink-950: #020A12;
  --ink-900: #071A2B;
  --ink-800: #0D2740;
  --violet: #2A1B4D;
  --wine: #4A2030;
  --cyan: #2EF2D0;
  --orange: #FF7A1A;
  --green: #48C774;
  --paper: #F4F1E8;
  --mist: #8FA9BF;
  --line: rgba(143, 169, 191, 0.28);
  --line-strong: rgba(143, 169, 191, 0.52);
  --shadow-hard: 8px 8px 0 rgba(2, 10, 18, 0.78);
  --shadow-soft: 0 18px 48px rgba(2, 10, 18, 0.35);
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --font-display: "Arial Narrow", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(46, 242, 208, 0.08), transparent 35%),
    radial-gradient(circle at 92% 8%, rgba(255, 122, 26, 0.055), transparent 28%),
    repeating-linear-gradient(115deg, transparent 0 54px, rgba(143, 169, 191, 0.035) 54px 55px);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

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

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--cyan);
  color: var(--ink-950);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--ink-950);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 26, 43, 0.97);
  border-bottom: 3px solid var(--ink-950);
  box-shadow: 0 6px 0 rgba(2, 10, 18, 0.35);
}

.header-rail {
  background: var(--ink-950);
  border-bottom: 1px solid rgba(143, 169, 191, 0.22);
  color: var(--mist);
}

.header-rail__inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 7px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.header-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(46, 242, 208, 0.14);
}

.header-rail__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 18px;
}

.rail-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

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

.rail-link--quiet {
  color: var(--mist);
  font-weight: 500;
}

.header-main {
  padding: clamp(14px, 2.2vw, 24px) 0 clamp(10px, 1.6vw, 16px);
  background: linear-gradient(180deg, rgba(13, 39, 64, 0.35), transparent);
  transition: padding 200ms ease;
}

.header-main__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.5vw, 16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--paper);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--ink-950);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.06em;
  box-shadow: 4px 4px 0 var(--ink-950);
  transition: width 200ms ease, height 200ms ease, font-size 200ms ease, box-shadow 200ms ease;
}

.brand__type {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
}

.brand__tag {
  position: relative;
  padding-left: 12px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand__tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--orange);
  transform: translateY(-50%) rotate(45deg);
}

.brand:hover .brand__mark {
  background: var(--ink-800);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 12px;
  background: var(--ink-950);
  border: 2px solid var(--cyan);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink-950);
}

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

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

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
}

.nav-toggle__text {
  line-height: 1;
}

.site-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-nav__list a::before {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  margin-right: 9px;
  background: rgba(143, 169, 191, 0.5);
  transform: rotate(45deg);
}

.site-nav__list a:hover {
  color: var(--paper);
  background: rgba(46, 242, 208, 0.06);
}

.site-nav__list a[aria-current="page"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(46, 242, 208, 0.08);
}

.site-nav__list a[aria-current="page"]::before {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(46, 242, 208, 0.15);
}

.site-header[data-scrolled] .header-rail {
  display: none;
}

.site-header[data-scrolled] .header-main {
  padding: 8px 0;
}

.site-header[data-scrolled] .brand__mark {
  width: 34px;
  height: 34px;
  font-size: 12px;
  box-shadow: 3px 3px 0 var(--ink-950);
}

.site-header[data-scrolled] .brand__name {
  font-size: 20px;
}

.site-header[data-scrolled] .brand__tag {
  display: none;
}

.site-header[data-scrolled] .site-nav__list a {
  min-height: 34px;
  padding: 5px 12px;
  font-size: 12px;
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 3px;
  background: rgba(143, 169, 191, 0.12);
  overflow: hidden;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 120ms linear;
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 128px);
  background: var(--ink-950);
  border-top: 4px solid var(--cyan);
  box-shadow: 0 -12px 40px rgba(2, 10, 18, 0.28);
}

.site-footer::before {
  content: "";
  display: block;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 18px, transparent 18px 36px, var(--orange) 36px 54px, transparent 54px 72px);
  opacity: 0.6;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 72px);
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(32px, 4vw, 54px);
}

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

.footer-brand__lockup {
  display: inline-block;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration: none;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 8px;
}

.footer-brand__line {
  margin: 16px 0 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-brand__note {
  max-width: 36ch;
  margin: 0;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.8;
}

.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 22px;
  padding: 9px 14px;
  background: var(--orange);
  border: 2px solid var(--orange);
  color: var(--ink-950);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(46, 242, 208, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background 160ms ease;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--cyan);
  border-color: var(--cyan);
}

.to-top__icon {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.footer-nav__group {
  min-width: 0;
  padding-left: clamp(14px, 2vw, 22px);
  border-left: 1px solid var(--line);
}

.footer-nav__group--contact {
  border-left-color: rgba(255, 122, 26, 0.34);
}

.footer-nav__title {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-nav__group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav__group a {
  color: var(--paper);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-nav__group a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.contact-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.contact-list__label {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.contact-list__value {
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-service {
  margin: 14px 0 0;
  color: var(--mist);
  font-size: 12px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 12px;
  line-height: 1.6;
}

.footer-legal {
  margin: 0;
  padding: 6px 10px;
  background: rgba(13, 39, 64, 0.45);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-family: var(--font-mono);
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.footer-legal-links a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.footer-legal-links a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* Shared layout */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section--tight {
  padding-block: clamp(28px, 4vw, 56px);
}

.section--panel {
  background: linear-gradient(180deg, var(--ink-800), rgba(13, 39, 64, 0.8));
  border-block: 1px solid var(--line);
}

.section--violet {
  background: linear-gradient(180deg, var(--violet), rgba(42, 27, 77, 0.78));
  border-block: 1px solid rgba(46, 242, 208, 0.16);
}

.section--wine {
  background: linear-gradient(180deg, var(--wine), rgba(74, 32, 48, 0.8));
  border-block: 1px solid rgba(255, 122, 26, 0.14);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

/* Shared type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  flex: none;
  background: var(--orange);
}

.display {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.display--xl {
  font-size: clamp(42px, 8vw, 96px);
}

.lede {
  max-width: 64ch;
  margin: 18px 0 0;
  color: var(--mist);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.8;
}

.prose {
  max-width: 72ch;
  color: rgba(244, 241, 232, 0.86);
  font-size: 17px;
  line-height: 1.9;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose h2,
.prose h3 {
  margin: 1.6em 0 0.55em;
  color: var(--paper);
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.text-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 242, 208, 0.5);
}

.text-link:hover {
  color: var(--paper);
  border-color: var(--paper);
}

/* Buttons and tags */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink-950);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink-950);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-950);
}

.btn--ghost {
  background: rgba(13, 39, 64, 0.4);
  border-color: var(--mist);
}

.btn--small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(2, 10, 18, 0.35);
  border: 1px solid var(--line-strong);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(46, 242, 208, 0.45);
  background: rgba(46, 242, 208, 0.08);
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 26, 0.45);
  background: rgba(255, 122, 26, 0.08);
}

.tag--green {
  color: var(--green);
  border-color: rgba(72, 199, 116, 0.45);
  background: rgba(72, 199, 116, 0.08);
}

/* Panels, stats and tables */
.panel {
  padding: clamp(18px, 3vw, 28px);
  background: var(--ink-800);
  border: 2px solid var(--ink-950);
  box-shadow: var(--shadow-hard);
}

.panel--violet {
  background: linear-gradient(135deg, var(--violet), rgba(42, 27, 77, 0.72));
  border-color: rgba(46, 242, 208, 0.18);
}

.panel--wine {
  background: linear-gradient(135deg, var(--wine), rgba(74, 32, 48, 0.78));
  border-color: rgba(255, 122, 26, 0.18);
}

.stat {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.stat__value {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat__label {
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: rgba(2, 10, 18, 0.5);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.data-table td {
  color: rgba(244, 241, 232, 0.82);
}

.data-table__num {
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 700;
  white-space: nowrap;
}

/* Breadcrumb and table of contents */
.breadcrumb {
  margin: 0 0 18px;
  color: var(--mist);
  font-size: 12px;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
}

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

.toc {
  position: sticky;
  top: 110px;
  align-self: start;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.toc__title {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc__link {
  display: block;
  margin-left: -18px;
  padding: 4px 0 4px 16px;
  border-left: 2px solid transparent;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

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

.toc__link[data-active] {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

/* Image containers */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-800), var(--violet));
  border: 2px solid var(--ink-950);
  box-shadow: var(--shadow-hard);
}

.media__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.06);
}

.media__caption {
  margin: 0;
  padding: 10px 14px;
  background: rgba(2, 10, 18, 0.88);
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 12px;
  line-height: 1.55;
}

.media--wide .media__img {
  aspect-ratio: 21 / 9;
}

.media--tall .media__img {
  aspect-ratio: 3 / 4;
}

.media--slant {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

/* Tracks and notices */
.track {
  position: relative;
  height: 2px;
  margin: 22px 0;
  background: linear-gradient(90deg, var(--cyan), rgba(46, 242, 208, 0.06) 70%, transparent);
}

.track__dot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border: 1px solid var(--ink-950);
  transform: translateY(-50%) rotate(45deg);
}

.notice {
  margin: 20px 0;
  padding: 14px 16px 14px 18px;
  background: rgba(255, 122, 26, 0.08);
  border-left: 4px solid var(--orange);
  color: rgba(244, 241, 232, 0.86);
  font-size: 14px;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 1080px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .header-rail__inner {
    align-items: flex-start;
  }

  .header-main__inner {
    align-items: stretch;
    gap: 0;
  }

  .brand {
    align-self: center;
    max-width: calc(100% - 54px);
    padding: 0 62px;
  }

  .brand__type {
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .brand__tag {
    font-size: 10px;
  }

  .nav-toggle {
    position: absolute;
    top: 50%;
    right: var(--gutter);
    z-index: 2;
    display: inline-flex;
    transform: translateY(-50%);
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 2px solid var(--ink-950);
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-nav__list a {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }

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

  .site-header[data-scrolled] .brand {
    max-width: calc(100% - 54px);
    padding: 0 62px;
  }

  .site-header[data-scrolled] .site-nav {
    margin-top: 10px;
  }

  .site-header[data-scrolled] .site-nav__list a {
    min-height: 40px;
  }

  .span-3,
  .span-4 {
    grid-column: span 6;
  }

  .span-7,
  .span-8 {
    grid-column: span 12;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

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

  .footer-nav__group {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-nav__group:first-child {
    padding-top: 0;
    border-top: 0;
  }

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

  .footer-legal-links {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .header-rail__inner {
    display: block;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .header-kicker {
    display: none;
  }

  .header-rail__actions {
    justify-content: space-between;
    gap: 8px;
  }

  .brand {
    padding: 0 54px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .brand__name {
    font-size: 22px;
  }

  .brand__tag {
    display: none;
  }

  .nav-toggle__text {
    display: none;
  }

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

  .span-3,
  .span-4,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1 / -1;
  }

  .contact-list li {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .skip-link,
  .to-top,
  .scroll-progress__bar {
    transition: none;
  }
}
