/* ==========================================================================
   01. Design tokens
   ========================================================================== */
:root {
  --ink-900: #07111F;
  --ink-800: #0C1B2E;
  --line: #132A42;
  --text: #E8F1F8;
  --muted: #9AB0C4;
  --cyan: #22E6D2;
  --cyan-deep: #0E7F76;
  --amber: #FFB347;
  --amber-soft: #F7D9A8;
  --wire: #4A6178;

  --cyan-08: rgba(34, 230, 210, 0.08);
  --cyan-16: rgba(34, 230, 210, 0.16);
  --cyan-32: rgba(34, 230, 210, 0.32);
  --amber-08: rgba(255, 179, 71, 0.08);
  --amber-28: rgba(255, 179, 71, 0.28);
  --amber-42: rgba(255, 179, 71, 0.42);

  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
    "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", "Cascadia Mono",
    Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-1: 0 18px 46px -28px rgba(0, 0, 0, 0.95);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(920px 560px at 8% -12%, rgba(34, 230, 210, 0.11), transparent 64%),
    radial-gradient(760px 540px at 98% 2%, rgba(255, 179, 71, 0.085), transparent 62%),
    linear-gradient(to right, rgba(19, 42, 66, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 42, 66, 0.5) 1px, transparent 1px);
  background-size: auto, auto, 112px 112px, 112px 112px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-position: center top;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(34, 230, 210, 0.3);
  color: #ffffff;
}

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

#main-content {
  display: block;
  scroll-margin-top: 132px;
}

/* ==========================================================================
   03. Typography & utilities
   ========================================================================== */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0.035em;
  text-wrap: balance;
}

.title-lg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: 0.03em;
}

.title-md {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.32;
  letter-spacing: 0.025em;
}

.lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.85;
  color: var(--muted);
  max-width: 46ch;
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

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

.prose h2,
.prose h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.65;
}

/* ==========================================================================
   04. Layout
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(30px, 5.5vw, 70px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(18px, 3vw, 32px);
}

.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--offset {
  align-items: start;
}

.grid--offset > :nth-child(even) {
  margin-top: clamp(12px, 2vw, 34px);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 22px);
}

/* ==========================================================================
   05. Buttons, tags, panels, cards
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    color 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--cyan);
  color: var(--ink-900);
  border-color: var(--cyan);
  box-shadow: 0 10px 26px -16px rgba(34, 230, 210, 0.9);
}

.btn--primary:hover {
  background: #4df0dd;
  border-color: #4df0dd;
}

.btn--ghost {
  background: rgba(12, 27, 46, 0.7);
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--cyan-32);
  color: var(--cyan);
}

.btn--amber {
  background: rgba(255, 179, 71, 0.12);
  border-color: var(--amber-42);
  color: var(--amber);
}

.btn--amber:hover {
  background: var(--amber);
  color: var(--ink-900);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--muted);
  background: rgba(12, 27, 46, 0.65);
  white-space: nowrap;
}

.tag--version {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
  font-weight: 700;
}

.tag--fit {
  background: rgba(255, 179, 71, 0.12);
  border-color: var(--amber-42);
  color: var(--amber);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(12, 27, 46, 0.94), rgba(7, 17, 31, 0.88));
  box-shadow: var(--shadow-1);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(34, 230, 210, 0.07), transparent 58%),
    linear-gradient(180deg, rgba(12, 27, 46, 0.92), rgba(7, 17, 31, 0.86));
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-32);
  box-shadow: 0 26px 50px -34px rgba(0, 0, 0, 0.95);
}

/* ==========================================================================
   06. Breadcrumb
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--wire);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--cyan);
  text-decoration: none;
}

.breadcrumb__sep {
  color: var(--line);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* ==========================================================================
   07. Responsive figure containers
   ========================================================================== */
.figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.figure__frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(34, 230, 210, 0.13), transparent 58%),
    radial-gradient(110% 100% at 100% 100%, rgba(255, 179, 71, 0.1), transparent 60%),
    linear-gradient(160deg, #0C1B2E, #07111F 78%);
}

.figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(19, 42, 66, 0.75) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 42, 66, 0.75) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.7;
}

.figure__media {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--wire);
}

.figure--wide .figure__frame {
  aspect-ratio: 21 / 9;
}

.figure--tall .figure__frame {
  aspect-ratio: 4 / 5;
}

/* ==========================================================================
   08. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--amber-soft);
  outline-offset: 3px;
  text-decoration: none;
}

/* 公告条 */
.header-notice {
  max-height: 150px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 179, 71, 0.12), rgba(255, 179, 71, 0.02) 62%, transparent);
  transition: max-height 0.3s var(--ease), opacity 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.header-notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-block: 10px;
}

.header-notice__tag {
  flex: none;
  padding: 2px 9px;
  border: 1px solid var(--amber-42);
  border-radius: var(--radius-pill);
  background: var(--amber-08);
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.7;
}

.header-notice__text {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.header-notice__link {
  flex: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--amber-28);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--amber-soft);
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.header-notice__link:hover {
  color: var(--amber);
  border-color: var(--amber);
  text-decoration: none;
}

/* 导航条 */
.header-bar {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: box-shadow 0.3s var(--ease);
}

.header-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  transition: padding 0.28s var(--ease);
}

.site-header[data-scrolled] .header-bar {
  box-shadow: 0 18px 34px -26px rgba(0, 0, 0, 0.95);
}

.site-header[data-scrolled] .header-notice {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

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

/* 品牌浮岛 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    linear-gradient(150deg, rgba(34, 230, 210, 0.95), rgba(14, 127, 118, 0.42) 58%, rgba(255, 179, 71, 0.62));
  box-shadow: inset 0 0 0 1px rgba(232, 241, 248, 0.18),
    0 0 18px -6px rgba(34, 230, 210, 0.7);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px solid rgba(7, 17, 31, 0.78);
  border-radius: 4px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand__line {
  max-height: 22px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  transition: opacity 0.2s var(--ease), max-height 0.28s var(--ease);
}

.site-header[data-scrolled] .brand__line {
  max-height: 0;
  opacity: 0;
}

/* 胶囊导航 */
.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(12, 27, 46, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  list-style: none;
}

.site-nav__item {
  display: flex;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--wire);
  transition: color 0.18s var(--ease);
}

.site-nav__label {
  display: inline-block;
}

.site-nav__link:hover {
  color: var(--text);
  background: var(--cyan-08);
  border-color: var(--cyan-32);
  text-decoration: none;
}

.site-nav__link:hover .site-nav__num {
  color: var(--cyan);
}

.site-nav__link[aria-current="page"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
  font-weight: 700;
  text-decoration: none;
}

.site-nav__link[aria-current="page"] .site-nav__num {
  color: rgba(7, 17, 31, 0.6);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(12, 27, 46, 0.82);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan-32);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bar:last-child {
  width: 70%;
}

.nav-toggle__label {
  letter-spacing: 0.08em;
}

.site-header[data-open] .nav-toggle__bar:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bar:last-child {
  width: 100%;
  transform: translateY(-2.75px) rotate(-45deg);
}

/* 阅读进度 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.header-progress span {
  display: block;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: transform 0.12s linear;
}

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

/* ==========================================================================
   09. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(255, 179, 71, 0.06), transparent 62%),
    linear-gradient(180deg, rgba(12, 27, 46, 0.62), rgba(7, 17, 31, 0.96));
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 230, 210, 0.6), rgba(255, 179, 71, 0.45), transparent);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(28px, 4.6vw, 52px) 22px;
  border-bottom: 1px dashed var(--line);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.footer-brand__line {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--cyan-32);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.footer-cta:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 0.9fr 1.25fr;
  gap: clamp(20px, 3vw, 42px);
  padding-block: clamp(26px, 4vw, 46px);
}

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

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wire);
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--text);
  transform: translateX(2px);
  text-decoration: none;
}

.footer-link:hover::before {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 230, 210, 0.9);
}

.footer-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  list-style: none;
}

.footer-status__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}

.footer-status__key {
  flex: none;
  padding: 1px 7px;
  border: 1px solid var(--amber-28);
  border-radius: 6px;
  background: var(--amber-08);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.footer-status__val {
  color: var(--muted);
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 6px;
}

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

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--wire);
}

.footer-contact__value {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
}

.footer-legal__link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-legal__link:hover {
  color: var(--cyan);
  text-decoration: none;
}

.footer-icp,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--wire);
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 1120px) and (min-width: 901px) {
  .site-nav__link {
    padding: 8px 11px;
    font-size: 13px;
  }

  .brand__line {
    display: none;
  }
}

@media (max-width: 900px) {
  html,
  #main-content {
    scroll-padding-top: 96px;
    scroll-margin-top: 96px;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 12px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 17, 31, 0.98);
    box-shadow: 0 26px 44px -32px rgba(0, 0, 0, 0.95);
  }

  .site-header[data-open] .site-nav {
    display: block;
    animation: nav-in 0.18s var(--ease) both;
  }

  .site-nav__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 8px;
    border-radius: var(--radius-md);
    background: rgba(12, 27, 46, 0.88);
    scrollbar-width: thin;
  }

  .site-nav__link {
    padding: 10px 15px;
    font-size: 14px;
  }

  .brand__line {
    display: none;
  }

  .header-bar__inner {
    padding-block: 11px;
  }

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

@media (max-width: 820px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .grid--offset > * {
    margin-top: 0;
  }

  .figure--wide .figure__frame {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15.5px;
  }

  .display {
    font-size: clamp(28px, 8vw, 36px);
  }

  .header-notice__inner {
    padding-block: 8px;
  }

  .header-notice__text {
    flex: 1 1 100%;
    order: 3;
    font-size: 12.5px;
  }

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

  .footer-cta {
    align-self: flex-start;
  }

  .footer-legal {
    gap: 8px 16px;
  }
}

/* ==========================================================================
   11. Reduced motion
   ========================================================================== */
@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;
  }

  .btn:hover,
  .card:hover,
  .footer-link:hover {
    transform: none !important;
  }

  .header-progress span {
    transition: none;
  }
}
