:root {
  --grey-950: #16191c;
  --grey-800: #23282d;
  --grey-600: #4a5158;
  --grey-400: #8b9299;
  --grey-200: #d5d9dd;
  --grey-050: #f1f3f4;
  --flame: #f4531e;
  --flame-deep: #c13a0d;
  --track-blue: #1b62c4;
  --field-green: #237f4b;
  --amber: #b26a00;
  --paper: #fcfcfb;
  --glass: rgba(255, 255, 255, 0.74);
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --content: 1200px;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-glass: 0 16px 50px rgba(22, 25, 28, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

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

* {
  margin: 0;
}

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

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(213, 217, 221, 0.28) 0 18%, transparent 18% 100%),
    var(--grey-050);
  color: var(--grey-800);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button {
  font-family: var(--font-sans);
}

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

a {
  color: var(--track-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--flame-deep);
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--grey-800);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.2em;
}

::selection {
  background: var(--flame);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--track-blue);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

#main-content {
  display: block;
  min-height: 50vh;
  padding-top: clamp(96px, 14vh, 136px);
  scroll-margin-top: 120px;
}

.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: 10px;
  left: 14px;
  z-index: 400;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--flame);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms var(--ease);
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 18px clamp(14px, 3vw, 40px) 0;
  pointer-events: none;
  transition: padding 250ms var(--ease);
}

.header-shell {
  pointer-events: auto;
  width: min(1360px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 18px);
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  transition: padding 250ms var(--ease), background 250ms var(--ease), box-shadow 250ms var(--ease);
}

.site-header[data-scrolled] {
  padding-top: 9px;
}

.site-header[data-scrolled] .header-shell {
  padding-top: 6px;
  padding-bottom: 6px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(22, 25, 28, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-header[data-nav-open] .header-shell {
  background: rgba(255, 255, 255, 0.92);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--grey-950);
  text-decoration: none;
}

.brand:hover {
  color: var(--grey-950);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--grey-950);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark__tower {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--flame);
  border-top-width: 4px;
}

.brand-mark__tower::before {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: -8px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--flame) 0 4px, transparent 4px 7px);
}

.brand-mark__tower::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 7px;
  background: var(--flame);
  transform: translateX(-50%);
}

.brand-name {
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  background: var(--paper);
  color: var(--grey-800);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.nav-link {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--grey-800);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.nav-link:hover {
  background: rgba(244, 83, 30, 0.1);
  color: var(--flame-deep);
}

.nav-link[aria-current="page"] {
  background: var(--flame);
  color: #fff;
  box-shadow: 0 5px 16px rgba(244, 83, 30, 0.28);
}

.nav-link[aria-current="page"]:hover {
  background: var(--flame-deep);
  color: #fff;
}

.search-trigger {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  max-width: 260px;
  padding: 9px 14px;
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  background: var(--paper);
  color: var(--grey-800);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.search-trigger:hover {
  border-color: rgba(244, 83, 30, 0.48);
  color: var(--flame-deep);
}

.search-trigger[aria-expanded="true"] {
  border-color: var(--grey-950);
  background: var(--grey-950);
  color: #fff;
}

.search-trigger__icon {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-trigger__icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.search-trigger__label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.quick-index {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  pointer-events: auto;
  transform: translateX(-50%);
}

.quick-index[hidden] {
  display: none;
}

.quick-index__inner {
  padding: 20px;
  border: 1px solid var(--grey-200);
  border-radius: 18px;
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(244, 83, 30, 0.08) 72% 100%),
    var(--paper);
  box-shadow: 0 22px 54px rgba(22, 25, 28, 0.18);
  animation: quick-index-in 180ms var(--ease) both;
}

.quick-index__eyebrow {
  color: var(--flame-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.quick-index__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-index__links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  background: #fff;
  color: var(--grey-800);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.quick-index__links a:hover {
  border-color: var(--flame);
  color: var(--flame-deep);
}

.quick-index__hint {
  margin-top: 14px;
  color: var(--grey-600);
  font-size: 12px;
}

@keyframes quick-index-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--flame), var(--amber));
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 80ms linear;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(64px, 10vw, 120px);
  padding: clamp(44px, 6vw, 74px) clamp(20px, 5vw, 64px) 24px;
  background: var(--grey-950);
  color: #e9edef;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), rgba(244, 83, 30, 0.35) 50%, transparent calc(50% + 1px)),
    linear-gradient(135deg, transparent 0 70%, rgba(27, 98, 196, 0.16) 70% 100%);
}

.site-footer a {
  color: #e9edef;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--flame);
}

.site-footer :focus-visible {
  outline-color: #fff;
}

.footer-main,
.footer-note,
.footer-meta,
.footer-legal {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin-inline: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

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

.footer-brand {
  display: inline-block;
  color: #fff;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.footer-kicker {
  margin-top: 8px;
  color: var(--grey-400);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.footer-contact__big {
  display: block;
  margin-top: 18px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 31px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.footer-contact__big + .footer-contact__big {
  margin-top: 6px;
}

.footer-contact__detail {
  display: block;
  margin-top: 14px;
  color: var(--grey-400);
  font-size: 13px;
  line-height: 1.6;
}

.footer-nav__title {
  margin-bottom: 16px;
  color: var(--grey-400);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-nav__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.footer-nav__links a {
  display: inline-block;
  width: fit-content;
  color: #dfe3e6;
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: color 180ms var(--ease), text-decoration-color 180ms var(--ease);
}

.footer-nav__links a:hover {
  color: var(--flame);
  text-decoration-color: currentColor;
}

.footer-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(32px, 5vw, 52px);
  padding: 17px 0;
  border-top: 1px dashed rgba(213, 217, 221, 0.22);
  border-bottom: 1px dashed rgba(213, 217, 221, 0.22);
}

.footer-note__label {
  color: var(--flame);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-note__formats {
  color: #cfd5d9;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 18px 0;
  color: var(--grey-400);
  font-size: 12px;
  line-height: 1.7;
}

.footer-meta__address {
  max-width: 70ch;
}

.footer-meta__icp {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(213, 217, 221, 0.14);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal__link {
  color: #cfd5d9;
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(207, 213, 217, 0.42);
  text-underline-offset: 0.2em;
}

.footer-legal__link:hover {
  color: var(--flame);
}

.footer-copyright {
  color: var(--grey-400);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Shared layout */
.container {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, calc(100% - 40px));
}

.container--wide {
  width: min(1360px, calc(100% - 40px));
}

.section {
  padding-block: clamp(44px, 7vw, 88px);
}

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

.section--loose {
  padding-block: clamp(64px, 10vw, 128px);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.eyebrow {
  color: var(--flame-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.display-title {
  max-width: 12ch;
  color: var(--grey-950);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.page-title {
  color: var(--grey-950);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 64ch;
  color: var(--grey-600);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.65;
}

.text-muted {
  color: var(--grey-600);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--grey-200);
}

/* Buttons and labels */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn--primary {
  background: var(--flame);
  color: #fff;
  box-shadow: 0 8px 22px rgba(244, 83, 30, 0.26);
}

.btn--primary:hover {
  background: var(--flame-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--grey-400);
  background: transparent;
  color: var(--grey-800);
}

.btn--ghost:hover {
  border-color: var(--flame);
  color: var(--flame-deep);
}

.btn--text {
  min-height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--track-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.btn--text:hover {
  color: var(--flame-deep);
}

.btn--small {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13px;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge {
  padding: 4px 8px;
  border: 1px solid var(--grey-200);
  background: #fff;
  color: var(--grey-600);
}

.badge--orange {
  border-color: rgba(244, 83, 30, 0.38);
  background: rgba(244, 83, 30, 0.1);
  color: var(--flame-deep);
}

.badge--blue {
  border-color: rgba(27, 98, 196, 0.32);
  background: rgba(27, 98, 196, 0.08);
  color: var(--track-blue);
}

.badge--green {
  border-color: rgba(35, 127, 75, 0.32);
  background: rgba(35, 127, 75, 0.08);
  color: var(--field-green);
}

.badge--amber {
  border-color: rgba(178, 106, 0, 0.36);
  background: rgba(178, 106, 0, 0.09);
  color: var(--amber);
}

.tag {
  padding: 3px 7px;
  border: 1px solid var(--grey-200);
  background: var(--grey-050);
  color: var(--grey-600);
}

/* Surfaces and grids */
.panel,
.surface {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  background: var(--paper);
}

.panel {
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 10px 30px rgba(22, 25, 28, 0.05);
}

.surface {
  padding: clamp(16px, 2.4vw, 22px);
}

.grid {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
}

.grid--7-5 {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.grid--8-4 {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

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

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-600);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

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

.breadcrumb__item a {
  color: var(--track-blue);
  text-decoration: none;
}

.breadcrumb__item a:hover {
  color: var(--flame-deep);
  text-decoration: underline;
}

.breadcrumb__current {
  color: var(--grey-600);
}

/* Image foundation */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 180px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(244, 83, 30, 0.22) 0 1px, transparent 1px 100%),
    linear-gradient(145deg, var(--grey-800), var(--grey-600));
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, transparent calc(50% - 1px), rgba(244, 83, 30, 0.58) 50%, transparent calc(50% + 1px));
  opacity: 0.7;
}

.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.media-frame--tall .media-frame__img {
  aspect-ratio: 4 / 5;
}

.media-frame__outline {
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.34);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 42% 100%, 0 100%);
}

.media-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  max-width: calc(100% - 28px);
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(22, 25, 28, 0.72);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.filter-button {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  background: var(--paper);
  color: var(--grey-600);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.filter-button:hover {
  border-color: var(--flame);
  color: var(--flame-deep);
}

.filter-button.is-active {
  border-color: var(--flame);
  background: var(--flame);
  color: #fff;
  box-shadow: 0 5px 15px rgba(244, 83, 30, 0.22);
}

/* Reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .nav-link {
    padding-inline: 10px;
    font-size: 13px;
  }

  .search-trigger__label {
    max-width: 150px;
  }
}

@media (max-width: 960px) {
  .header-shell {
    gap: 8px;
  }

  .nav-link {
    padding-inline: 9px;
    font-size: 13px;
  }

  .search-trigger {
    max-width: 190px;
  }

  .search-trigger__label {
    max-width: 110px;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 10px 12px 0;
  }

  .site-header[data-scrolled] {
    padding-top: 6px;
  }

  .header-shell {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 8px 8px 12px;
    border-radius: 24px;
  }

  .brand {
    flex: 1 1 auto;
    margin-right: auto;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-nav {
    order: 5;
    flex: 1 0 100%;
    display: none;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px 0 3px;
    margin-top: 2px;
    border-top: 1px solid rgba(22, 25, 28, 0.08);
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

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

  .nav-link {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 13px;
  }

  .search-trigger {
    min-width: 42px;
    max-width: 180px;
    padding-inline: 11px;
  }

  .search-trigger__label {
    max-width: 104px;
  }

  .quick-index {
    top: calc(100% + 8px);
  }

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

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

@media (max-width: 560px) {
  .search-trigger__label {
    display: none;
  }

  .nav-toggle__text {
    display: none;
  }

  .quick-index__inner {
    padding: 16px;
  }

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

  .footer-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    flex-direction: column;
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
  }
}

@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;
  }

  .js [data-reveal],
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .scroll-progress {
    transition: none;
  }
}
