/* ========== 1 · RESET & VARIABLES ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-bg: #0B0F14;
  --c-bg2: #111820;
  --c-bg3: #1A2230;
  --c-gold: #D4AF37;
  --c-gold-light: #E8C64A;
  --c-red: #E63946;
  --c-cyan: #00E5FF;
  --c-purple: #9D4EDD;
  --c-text: #E5E7EB;
  --c-text2: #9CA3AF;
  --sidebar-w: 280px;
  --header-mobile-h: 64px;
  --container-w: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-heading: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Source Han Sans", sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  padding-left: var(--sidebar-w);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: var(--c-cyan);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--c-gold);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

h3 {
  font-size: 24px;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.5rem;
}

[hidden] {
  display: none !important;
}

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

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: var(--c-text);
}

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

/* ========== 2 · SKIP LINK & SCROLL PROGRESS ========== */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 9999;
  background: var(--c-gold);
  color: var(--c-bg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 0.6rem 1.6rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: transform 0.3s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: 3px;
  background: rgba(212, 175, 55, 0.12);
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}

.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-gold), var(--c-cyan));
  width: 0%;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

/* ========== 3 · HEADER / SIDEBAR ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg2) 100%);
  border-right: 2px solid rgba(212, 175, 55, 0.3);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
}

.header-bar {
  display: none;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--c-text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--c-text);
}

.brand-badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold) 100%);
  color: var(--c-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  display: block;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--c-text2);
  letter-spacing: 0.02em;
  margin-top: 3px;
  white-space: nowrap;
}

/* Nav container */
.site-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.site-nav .brand {
  margin-bottom: 3rem;
}

/* Nav list */
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  color: var(--c-text2);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 6px;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--c-text);
  background: rgba(212, 175, 55, 0.08);
  border-left-color: var(--c-gold);
}

.nav-link[aria-current="page"] {
  color: var(--c-gold);
  background: rgba(212, 175, 55, 0.12);
  border-left-color: var(--c-gold);
  font-weight: 700;
}

/* Nav foot */
.nav-foot {
  margin-top: auto;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(229, 231, 235, 0.08);
  position: relative;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text2);
  margin-bottom: 0.5rem;
}

.nav-update {
  display: inline-block;
  font-size: 12px;
  color: rgba(230, 57, 70, 0.9);
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 1.25rem;
}

.nav-footline {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.35em;
  color: rgba(229, 231, 235, 0.35);
  line-height: 1.4;
  margin-left: auto;
  margin-right: 0.25rem;
  user-select: none;
}

/* Status dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 10px var(--c-cyan);
  display: inline-block;
  flex-shrink: 0;
  animation: dot-pulse 2.2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* ========== 4 · MOBILE HEADER ========== */
.nav-toggle {
  display: none;
}

@media (max-width: 960px) {
  body {
    padding-left: 0;
    padding-top: var(--header-mobile-h);
  }

  .site-header {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--header-mobile-h);
    padding: 0 1.25rem;
    border-right: none;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    background: var(--c-bg);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
  }

  .header-bar .brand {
    margin-bottom: 0;
  }

  .header-bar .brand-badge {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.35);
  }

  .header-bar .brand-name {
    font-size: 15px;
  }

  .header-bar .brand-sub {
    font-size: 8px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    padding: 8px;
    background: transparent;
    transition: border-color var(--transition);
  }

  .nav-toggle:hover {
    border-color: var(--c-gold);
  }

  .nav-toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-gold);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
  }

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

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

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

  /* Nav drawer on mobile */
  .site-nav {
    position: fixed;
    top: var(--header-mobile-h);
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 88vw;
    padding: 2rem 1.75rem;
    background: var(--c-bg2);
    border-right: 2px solid rgba(212, 175, 55, 0.35);
    transform: translateX(-100%);
    transition: transform var(--transition);
    box-shadow: none;
    z-index: 200;
    overflow-y: auto;
    flex: none;
  }

  .site-nav[data-open] {
    transform: translateX(0);
    box-shadow: 12px 0 48px rgba(0, 0, 0, 0.7);
  }

  .site-nav .brand {
    margin-bottom: 2rem;
  }

  .scroll-progress {
    left: 0;
    top: var(--header-mobile-h);
  }
}

/* ========== 5 · FOOTER ========== */
.site-footer {
  background: var(--c-bg2);
  border-top: 2px solid rgba(212, 175, 55, 0.25);
  padding: 3.5rem 4rem 2.25rem;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 120px;
  height: 2px;
  background: var(--c-gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 220px;
}

.footer-badge {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold));
  color: var(--c-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.footer-brand-name strong {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--c-text);
  display: block;
  line-height: 1.3;
}

.footer-brand-name span {
  font-size: 13px;
  color: var(--c-text2);
}

.footer-trust {
  max-width: 520px;
  margin: 0;
  padding: 1rem 1.25rem;
  background: rgba(0, 229, 255, 0.04);
  border-left: 3px solid var(--c-cyan);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--c-text2);
  line-height: 1.75;
}

.footer-nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(229, 231, 235, 0.08);
  border-bottom: 1px solid rgba(229, 231, 235, 0.08);
  margin-bottom: 1.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.footer-link {
  color: var(--c-text2);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--c-gold);
}

.footer-sep {
  color: rgba(212, 175, 55, 0.45);
  margin: 0 0.1rem;
  user-select: none;
}

.footer-legal .footer-link {
  font-weight: 500;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2rem;
  font-size: 13px;
  color: var(--c-text2);
  margin-bottom: 2rem;
}

.footer-meta p {
  margin: 0;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(229, 231, 235, 0.08);
}

.footer-icp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.25rem 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.06);
  color: var(--c-text2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.footer-copy {
  font-size: 13px;
  color: var(--c-text2);
}

/* ========== 6 · CONTAINER & SECTION ========== */
.container {
  width: min(100% - 4rem, var(--container-w));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section + .section {
  border-top: 2px solid rgba(212, 175, 55, 0.14);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0;
  position: relative;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--c-gold);
  border-radius: 2px;
  margin-right: 14px;
  vertical-align: middle;
  transform: rotate(45deg);
}

.section-desc {
  color: var(--c-text2);
  max-width: 420px;
  font-size: 14px;
  margin: 0;
}

/* ========== 7 · GRID SYSTEM ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-5  { grid-column: span 5; }
.col-span-6  { grid-column: span 6; }
.col-span-7  { grid-column: span 7; }
.col-span-8  { grid-column: span 8; }
.col-span-9  { grid-column: span 9; }
.col-span-12 { grid-column: span 12; }

.col-start-2 { grid-column-start: 2; }
.col-start-3 { grid-column-start: 3; }
.col-start-4 { grid-column-start: 4; }
.col-start-5 { grid-column-start: 5; }
.col-start-6 { grid-column-start: 6; }

/* ========== 8 · CARD & BUTTONS ========== */
.card {
  background: var(--c-bg2);
  border: 2px solid var(--c-gold);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--c-gold-light);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 20px rgba(212, 175, 55, 0.12);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--c-text2);
  font-size: 15px;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.6;
  text-align: center;
}

.btn-gold {
  background: var(--c-gold);
  color: var(--c-bg);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover {
  background: var(--c-gold-light);
  color: var(--c-bg);
  box-shadow: 0 6px 32px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--c-gold-light);
  color: var(--c-gold-light);
  transform: translateY(-2px);
}

.btn-cyan {
  background: var(--c-cyan);
  color: var(--c-bg);
  box-shadow: 0 4px 24px rgba(0, 229, 255, 0.2);
}

.btn-cyan:hover {
  background: #33eaff;
  color: var(--c-bg);
  box-shadow: 0 6px 32px rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

/* ========== 9 · TAGS & BADGES ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(157, 78, 221, 0.12);
  color: var(--c-purple);
  border: 1px solid rgba(157, 78, 221, 0.35);
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-gold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--c-gold);
  border-color: rgba(212, 175, 55, 0.4);
}

.tag-cyan {
  background: rgba(0, 229, 255, 0.08);
  color: var(--c-cyan);
  border-color: rgba(0, 229, 255, 0.35);
}

.tag-red {
  background: rgba(230, 57, 70, 0.1);
  color: #ff7a88;
  border-color: rgba(230, 57, 70, 0.4);
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.45);
  color: #ff8a92;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.update-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 8px var(--c-red);
  flex-shrink: 0;
}

/* ========== 10 · BREADCRUMB ========== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem 0;
  font-size: 14px;
  color: var(--c-text2);
}

.breadcrumb a {
  color: var(--c-text2);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--c-gold);
}

.breadcrumb-sep {
  color: rgba(212, 175, 55, 0.4);
  user-select: none;
}

.breadcrumb .breadcrumb-current {
  color: var(--c-gold);
  font-weight: 600;
}

/* ========== 11 · TYPOGRAPHY & DECORATION ========== */
.display-text {
  font-family: var(--font-heading);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.ghost-num {
  font-family: var(--font-heading);
  font-size: clamp(64px, 11vw, 120px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.28);
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.deco-line {
  height: 2px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--c-gold) 25%, var(--c-cyan) 75%, transparent);
  margin: 2.5rem 0;
  opacity: 0.5;
}

.data-highlight {
  color: var(--c-gold);
  font-weight: 800;
  font-family: var(--font-heading);
}

/* ========== 12 · IMAGE FRAME ========== */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-bg2);
  border: 2px solid rgba(212, 175, 55, 0.2);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.img-frame::before {
  content: "IMG";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: rgba(229, 231, 235, 0.18);
  pointer-events: none;
}

.img-frame:hover {
  border-color: rgba(212, 175, 55, 0.45);
}

.img-frame-16x9 {
  aspect-ratio: 16 / 9;
}

.img-frame-4x3 {
  aspect-ratio: 4 / 3;
}

.img-frame-square {
  aspect-ratio: 1 / 1;
}

/* ========== 13 · FILTER BAR ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-btn {
  padding: 0.5rem 1.35rem;
  border: 2px solid rgba(229, 231, 235, 0.18);
  background: transparent;
  color: var(--c-text2);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.5;
}

.filter-btn:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.filter-btn.is-active {
  background: var(--c-gold);
  color: var(--c-bg);
  border-color: var(--c-gold);
  font-weight: 700;
}

/* ========== 14 · RESPONSIVE ========== */
@media (max-width: 1200px) {
  .col-span-3 { grid-column: span 6; }
  .col-span-4 { grid-column: span 6; }
  .col-start-2, .col-start-3, .col-start-4, .col-start-5, .col-start-6 {
    grid-column-start: auto;
  }
}

@media (max-width: 960px) {
  .section {
    padding: 3.5rem 0;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 20px;
  }

  .site-footer {
    padding: 2.5rem 1.5rem 1.75rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-trust {
    max-width: 100%;
  }

  .footer-nav-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-meta {
    flex-direction: column;
    gap: 0.15rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 2rem);
  }

  .card {
    padding: 1.25rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  .btn + .btn {
    margin-top: 0.5rem;
  }

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

  .col-span-3, .col-span-4, .col-span-5, .col-span-6,
  .col-span-7, .col-span-8, .col-span-9, .col-span-12 {
    grid-column: span 1;
  }

  .col-start-2, .col-start-3, .col-start-4, .col-start-5, .col-start-6 {
    grid-column-start: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ========== 15 · ACCESSIBILITY & MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover {
    transform: none;
  }

  .status-dot {
    animation: none;
  }

  .scroll-progress::after {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}
