/* ==========================================================
   Site Kit — 欧宝竞界 / cheer-oubao.com.cn
   File: /assets/site.css
   Concept: 竞速蓝图 (Race Blueprint)
   ========================================================== */

/* ---------- 1. Variables ---------- */
:root {
  --field-blue: #0A1E3C;
  --energy-orange: #FF6B35;
  --signal-yellow: #FFD700;
  --paper-white: #F7F5F0;
  --ink-navy: #102A4E;
  --jewel-teal: #0E5E6E;
  --wine-red: #7D2A3E;
  --indigo-zone: #3A2E6E;
  --line-blue: #B7C9D6;
  --muted-light: #E9E2D2;

  --font-heading: 'Montserrat', 'Noto Sans SC', sans-serif;
  --font-body: 'Open Sans', 'Noto Sans SC', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --container-max: 1280px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-navy);
  background: var(--paper-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

a {
  color: var(--jewel-teal);
}

a:hover {
  color: var(--energy-orange);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--field-blue);
}

p {
  margin: 0 0 1rem;
}

:focus-visible {
  outline: 3px solid var(--energy-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--signal-yellow);
  color: var(--field-blue);
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + 3rem);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section--dense {
  padding: 2rem 0;
}

.section--relaxed {
  padding: 5rem 0;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.section__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: 4px;
  background: rgba(255, 107, 53, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--energy-orange);
}

.section__label-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jewel-teal);
}

.section__label-text--light {
  color: var(--signal-yellow);
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--field-blue);
  margin-bottom: 1rem;
}

.section__title--light {
  color: #fff;
}

.section__lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(16, 42, 78, 0.78);
  max-width: 58ch;
}

.heading--light {
  color: #fff;
}

/* ---------- 4. Grid ---------- */
.grid--4,
.grid--6,
.grid--8 {
  display: grid;
  gap: 1.5rem;
}

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

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

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

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--energy-orange);
  border-color: var(--energy-orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.btn--primary:hover {
  background: #E55322;
  border-color: #E55322;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.45);
}

.btn--outline {
  background: transparent;
  border-color: var(--jewel-teal);
  color: var(--jewel-teal);
}

.btn--outline:hover {
  background: var(--jewel-teal);
  border-color: var(--jewel-teal);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(10, 30, 60, 0.06);
  border-color: transparent;
  color: var(--field-blue);
}

.btn--ghost:hover {
  background: rgba(10, 30, 60, 0.12);
  color: var(--field-blue);
}

/* ---------- 6. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.5;
}

.tag--yellow {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.45);
  color: #6B5300;
}

.tag--red {
  background: rgba(125, 42, 62, 0.08);
  border-color: rgba(125, 42, 62, 0.3);
  color: var(--wine-red);
}

.tag--teal {
  background: rgba(14, 94, 110, 0.08);
  border-color: rgba(14, 94, 110, 0.3);
  color: var(--jewel-teal);
}

.tag--blue {
  background: rgba(10, 30, 60, 0.06);
  border-color: rgba(10, 30, 60, 0.2);
  color: var(--field-blue);
}

/* ---------- 7. Cards ---------- */
.card {
  background: var(--paper-white);
  border: 1px solid rgba(183, 201, 214, 0.5);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(10, 30, 60, 0.08);
}

.card--muted {
  background: var(--muted-light);
  border-color: transparent;
}

.card--highlight {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), transparent 60%);
  border-color: rgba(255, 107, 53, 0.25);
}

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb {
  margin: 1rem 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  font-family: var(--font-mono);
  color: rgba(183, 201, 214, 0.9);
}

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

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

/* ---------- 9. Data Table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 3px solid rgba(14, 94, 110, 0.25);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jewel-teal);
  white-space: nowrap;
}

.data-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(183, 201, 214, 0.4);
  color: var(--ink-navy);
}

.data-table tbody tr:hover {
  background: rgba(14, 94, 110, 0.04);
}

.data-table__cell--num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--field-blue);
}

/* ---------- 10. Accordion ---------- */
.accordion {
  border: 1px solid rgba(183, 201, 214, 0.5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-white);
}

.accordion__item {
  border-bottom: 1px solid rgba(183, 201, 214, 0.4);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--ink-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  transition: background 0.2s ease;
}

.accordion__summary:hover {
  background: rgba(14, 94, 110, 0.05);
}

.accordion__summary[aria-expanded="true"] {
  background: rgba(14, 94, 110, 0.08);
}

.accordion__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--energy-orange);
  flex-shrink: 0;
}

.accordion__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: auto;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--jewel-teal);
  transition: transform 0.25s ease;
}

.accordion__icon::before {
  top: 9px;
  left: 3px;
  width: 14px;
  height: 2px;
}

.accordion__icon::after {
  top: 3px;
  left: 9px;
  width: 2px;
  height: 14px;
}

.accordion__summary[aria-expanded="true"] .accordion__icon::after {
  transform: scaleY(0);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion__content-inner {
  padding: 0 1.3rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(16, 42, 78, 0.85);
}

/* ---------- 11. Ratio Boxes ---------- */
.ratio-box {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--muted-light);
  background-image:
    linear-gradient(rgba(183, 201, 214, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 201, 214, 0.3) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ratio-box--16-9::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.ratio-box--4-3::before {
  content: '';
  display: block;
  padding-top: 75%;
}

.ratio-box--square::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.ratio-box__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(16, 42, 78, 0.4);
}

/* ---------- 12. Pagination ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line-blue);
  background: var(--paper-white);
  color: var(--ink-navy);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pagination__link:hover {
  border-color: var(--energy-orange);
  color: var(--energy-orange);
}

.pagination__link[aria-current="page"] {
  background: var(--field-blue);
  border-color: var(--field-blue);
  color: #fff;
}

/* ---------- 13. Back to Top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--energy-orange);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  z-index: 900;
}

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

.back-to-top:hover {
  background: #E55322;
}

/* ---------- 14. Blueprint Utilities ---------- */
.blueprint-bg {
  position: relative;
  background-color: var(--field-blue);
  background-image:
    linear-gradient(rgba(183, 201, 214, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 201, 214, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  color: #fff;
}

.blueprint-bg--indigo {
  background-color: var(--indigo-zone);
}

.slant-band {
  position: relative;
  overflow: hidden;
}

.slant-band::after {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 8px;
  background: linear-gradient(90deg, var(--energy-orange) 0%, var(--signal-yellow) 55%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}

/* ---------- 15. Header ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 9999;
  background: var(--energy-orange);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 3px;
}

.site-header {
  position: relative;
  z-index: 10;
  background-color: var(--field-blue);
  background-image:
    linear-gradient(rgba(183, 201, 214, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 201, 214, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  color: #fff;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 107, 53, 0.14) 100%);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--energy-orange) 0%, var(--energy-orange) 32%, var(--signal-yellow) 32%, var(--signal-yellow) 48%, transparent 48%);
  pointer-events: none;
}

.site-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.4rem 0 1rem;
  border-bottom: 1px solid rgba(183, 201, 214, 0.18);
}

.site-header__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0 0.9rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.brand__line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.brand__divider {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--energy-orange);
}

.brand__display {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--signal-yellow);
  transition: color 0.2s ease;
}

.brand__tagline {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.brand:hover .brand__display {
  color: var(--energy-orange);
}

.brand:hover .brand__tagline {
  color: rgba(255, 255, 255, 0.9);
}

.site-header__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(183, 201, 214, 0.3);
  background: rgba(14, 94, 110, 0.35);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.site-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-yellow);
  animation: statusPulse 2.2s ease-out infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

.site-header__coords {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(183, 201, 214, 0.6);
  white-space: nowrap;
}

.main-nav {
  flex: 1;
}

.main-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
}

.main-nav__link {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.main-nav__link:hover,
.main-nav__link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(183, 201, 214, 0.3);
}

.main-nav__link[aria-current="page"] {
  color: #fff;
  background: var(--energy-orange);
  border-color: var(--energy-orange);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--energy-orange) 0%, var(--signal-yellow) 100%);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
  z-index: 999;
  pointer-events: none;
}

/* ---------- 16. Footer ---------- */
.site-footer {
  position: relative;
  background-color: var(--field-blue);
  background-image:
    linear-gradient(rgba(183, 201, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 201, 214, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  color: rgba(255, 255, 255, 0.75);
  border-top: 5px solid var(--signal-yellow);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 2rem;
  width: 90px;
  height: 5px;
  background: var(--energy-orange);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.site-footer__note {
  max-width: 46ch;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__heading {
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal-yellow);
}

.site-footer__links li {
  margin-bottom: 0.35rem;
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--signal-yellow);
  padding-left: 4px;
}

.site-footer__contact-list li {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__label {
  margin-bottom: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--line-blue);
}

.site-footer__bottom {
  background-color: var(--indigo-zone);
  background-image:
    linear-gradient(rgba(183, 201, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 201, 214, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  border-top: 1px solid rgba(183, 201, 214, 0.2);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.site-footer__legal {
  display: flex;
  gap: 1.5rem;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__legal a:hover {
  color: var(--signal-yellow);
}

.site-footer__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__copyright {
  font-family: var(--font-mono);
}

.site-footer__icp {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- 17. Scroll Reveal ---------- */
[data-reveal] {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(14px);
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 980px) {
  .site-header__coords {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__note {
    max-width: 100%;
  }

  .brand__name {
    font-size: 1.6rem;
  }

  .brand__display {
    font-size: 1.2rem;
  }

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

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

@media (max-width: 768px) {
  .site-header__top {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 0 0.85rem;
  }

  .site-header__bottom {
    justify-content: flex-end;
  }

  .main-nav {
    flex: none;
    display: none;
    flex-basis: 100%;
    order: 3;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(183, 201, 214, 0.15);
  }

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

  .main-nav__list {
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
  }

  .main-nav__item {
    border-bottom: 1px solid rgba(183, 201, 214, 0.12);
  }

  .main-nav__item:last-child {
    border-bottom: none;
  }

  .main-nav__link {
    display: block;
    border-radius: 8px;
    padding: 0.85rem 1rem;
  }

  .main-nav__link[aria-current="page"] {
    background: transparent;
    color: var(--signal-yellow);
    border-color: transparent;
    border-left: 4px solid var(--signal-yellow);
    border-radius: 0;
    box-shadow: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section--relaxed {
    padding: 3rem 0;
  }

  .section--dense {
    padding: 1.5rem 0;
  }

  .brand__name {
    font-size: 1.4rem;
  }

  .brand__display {
    font-size: 1.05rem;
  }

  .brand__tagline {
    font-size: 0.7rem;
  }

  .site-status {
    font-size: 0.66rem;
    padding: 0.35rem 0.8rem;
  }

  .site-footer__legal {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .site-footer__meta {
    flex-wrap: wrap;
  }
}

/* ---------- 19. Reduced Motion ---------- */
@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;
    transition-delay: 0s !important;
  }

  [data-reveal].is-hidden {
    opacity: 1;
    transform: none;
  }

  .card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}
