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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

:root {
  --color-primary: #FF6B00;
  --color-gold: #FFB800;
  --color-deep: #0A1A2F;
  --color-ink: #050A14;
  --color-white: #FFFFFF;
  --color-muted: #B0B8C8;
  --color-danger: #E63946;
  --color-ok: #2A9D8F;
  --color-text: #FFFFFF;
  --color-text-secondary: #B0B8C8;
  --color-text-tertiary: rgba(176, 184, 200, 0.6);

  --font-headline: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-data: "Roboto Mono", "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  --rail-width: 76px;
  --breakpoint-desktop: 900px;
  --content-max: 1200px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.18);

  --border-white-06: 1px solid rgba(255, 255, 255, 0.06);
  --border-white-10: 1px solid rgba(255, 255, 255, 0.1);
  --border-orange: 1px solid rgba(255, 107, 0, 0.4);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 0.2s;
  --duration-med: 0.35s;
  --duration-slow: 0.6s;
}

/* ========== BASE TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
}
h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}
h4 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1em;
}

strong,
b {
  font-weight: 600;
  color: var(--color-white);
}

.data-num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

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

.main-content {
  min-height: 70vh;
  position: relative;
}

.content-container {
  width: min(100% - 48px, var(--content-max));
  margin-inline: auto;
}

/* ========== SKIP LINK ========== */
.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 3000;
  padding: 10px 20px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-gold) 100%);
  z-index: 2000;
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ========== TOPBAR (MOBILE) ========== */
.topbar {
  display: none;
}

/* ========== SIDERAL ========== */
.siderail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-width);
  background: var(--color-ink);
  border-right: var(--border-white-06);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  overflow: hidden;
}

.siderail::before {
  content: "";
  position: absolute;
  left: calc((var(--rail-width) - 2px) / 2);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 107, 0, 0.25) 12%,
    rgba(255, 107, 0, 0.25) 78%,
    transparent 100%
  );
  pointer-events: none;
}

.siderail::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 5px,
    rgba(255, 255, 255, 0.012) 5px,
    rgba(255, 255, 255, 0.012) 6px
  );
  pointer-events: none;
}

.siderail[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.siderail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 0 12px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.siderail__logo {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.35));
}

.siderail__brand-name {
  font-size: 8px;
  font-weight: 700;
  font-family: var(--font-headline);
  color: var(--color-white);
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1.4;
  margin-top: 2px;
}

.siderail__nav {
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 1;
  padding-top: 8px;
}

.siderail__list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.siderail__item {
  width: 100%;
}

.siderail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 4px;
  color: var(--color-text-secondary);
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  overflow: hidden;
}

.siderail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--color-primary);
  border-radius: 0 3px 3px 0;
  transition: height 0.25s var(--ease-out);
}

.siderail__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 184, 0, 0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease-out);
  pointer-events: none;
}

.siderail__link:hover {
  color: var(--color-white);
}

.siderail__link:hover::after {
  transform: translateX(0);
}

.siderail__link:hover::before {
  height: 60%;
}

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

.siderail__link[aria-current="page"]::before {
  height: 100%;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.6);
}

.siderail__link[aria-current="page"] .siderail__icon {
  filter: drop-shadow(0 0 6px rgba(255, 107, 0, 0.4));
}

.siderail__index {
  position: absolute;
  top: 2px;
  right: 6px;
  font-family: var(--font-data);
  font-size: 7px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0;
}

.siderail__icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s var(--ease-out);
}

.siderail__link:hover .siderail__icon {
  transform: translateY(-1px) scale(1.05);
}

.siderail__label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  font-family: var(--font-headline);
}

.siderail__cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px 16px;
  color: var(--color-gold);
  transition: color 0.25s var(--ease-out);
  border-top: var(--border-white-06);
  width: 100%;
}

.siderail__cta:hover {
  color: var(--color-white);
}

.siderail__cta-icon {
  width: 20px;
  height: 20px;
}

.siderail__cta-text {
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  font-family: var(--font-headline);
}

/* ========== HEADER OVERLAY ========== */
.site-header__overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  pointer-events: none;
}

.site-header__overlay[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  pointer-events: auto;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-ink);
  border-top: var(--border-white-06);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 0, 0.3) 20%, rgba(255, 184, 0, 0.3) 80%, transparent 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0px,
    transparent 7px,
    rgba(255, 255, 255, 0.008) 7px,
    rgba(255, 255, 255, 0.008) 8px
  );
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--space-7);
  padding: var(--space-8) var(--space-5) var(--space-6);
  max-width: calc(var(--content-max) + var(--rail-width));
  margin-inline: auto;
}

.site-footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__logo {
  width: 28px;
  height: 28px;
}

.site-footer__name {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.site-footer__claim {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 34em;
}

.site-footer__trust {
  font-size: 13px;
  color: var(--color-text-tertiary);
  line-height: 1.7;
  max-width: 36em;
  border-left: 2px solid rgba(255, 107, 0, 0.35);
  padding-left: var(--space-4);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: var(--space-5);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2);
  font-family: var(--font-headline);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__link {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
  position: relative;
}

.site-footer__link:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.site-footer__link[aria-current="page"] {
  color: var(--color-primary);
}

.site-footer__list--contact li {
  font-size: 14px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}

.site-footer__tag {
  display: inline-block;
  min-width: 2.5em;
  color: var(--color-text-tertiary);
  font-family: var(--font-data);
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0 6px;
  text-align: center;
  line-height: 1.6;
  flex-shrink: 0;
  margin-top: 2px;
}

.site-footer__note {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-top: var(--space-2);
  line-height: 1.6;
  border-top: var(--border-white-06);
  padding-top: var(--space-2);
  max-width: 28em;
}

.site-footer__meta {
  position: relative;
  z-index: 1;
  border-top: var(--border-white-06);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  max-width: calc(var(--content-max) + var(--rail-width));
  margin-inline: auto;
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.site-footer__copyright,
.site-footer__icp {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin: 0;
}

.site-footer__icp {
  font-family: var(--font-data);
  letter-spacing: 0.04em;
}

/* ========== COMMON COMPONENTS ========== */
/* Buttons */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
  background: #ff7a1a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-ghost:active {
  transform: translateY(0);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 24px 0 8px;
}

.breadcrumbs__sep {
  color: var(--color-text-tertiary);
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

/* Section heading */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-6);
}

.section-heading__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.section-heading__kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.section-heading__title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.25;
  margin: 0;
}

/* Grid */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
}

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

@media (min-width: 640px) {
  .grid-12 > .col-span-2 { grid-column: span 2; }
  .grid-12 > .col-span-3 { grid-column: span 3; }
  .grid-12 > .col-span-4 { grid-column: span 4; }
  .grid-12 > .col-span-5 { grid-column: span 5; }
  .grid-12 > .col-span-6 { grid-column: span 6; }
  .grid-12 > .col-span-7 { grid-column: span 7; }
  .grid-12 > .col-span-8 { grid-column: span 8; }
  .grid-12 > .col-span-9 { grid-column: span 9; }
  .grid-12 > .col-span-10 { grid-column: span 10; }
  .grid-12 > .col-span-11 { grid-column: span 11; }
  .grid-12 > .col-span-12 { grid-column: span 12; }
}

/* Data card */
.data-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.008) 100%);
  border: var(--border-white-10);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.data-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 0, 0.25) 30%, rgba(255, 184, 0, 0.25) 70%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.data-card:hover {
  border-color: rgba(255, 107, 0, 0.35);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.data-card:hover::before {
  opacity: 1;
}

.data-card__title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}

.data-card__value {
  font-family: var(--font-data);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.data-card__label {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-6);
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  line-height: 1.4;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-white);
}

.filter-btn[data-active] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

[data-filter-item].is-filtered {
  display: none;
}

/* Image containers */
.img-container {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  border-radius: var(--radius-md);
  border: var(--border-white-06);
}

.img-container img,
.img-container picture,
.img-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

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

.img-container--1-1 {
  aspect-ratio: 1 / 1;
}

.img-container--motion-blur img {
  filter: blur(0.4px) contrast(1.06) saturate(1.08);
  transform: scale(1.02);
}

.img-container__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 20px 16px 10px;
  font-size: 12px;
  color: var(--color-white);
  background: linear-gradient(to top, rgba(5, 10, 20, 0.8) 0%, transparent 100%);
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

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

/* ========== FOCUS VISIBLE ========== */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

#main-content:focus {
  outline: none;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 900px) {
  .topbar {
    display: none;
  }

  .siderail {
    transform: none;
    visibility: visible;
    width: var(--rail-width);
  }

  .siderail[data-open="true"] {
    transform: none;
  }

  .site-header__overlay {
    display: none;
  }

  .main-content,
  .site-footer {
    margin-left: var(--rail-width);
  }

  .site-footer__inner {
    grid-template-columns: 1.1fr 2fr;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  .site-footer__meta {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (max-width: 899px) {
  .topbar {
    display: flex;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(5, 10, 20, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: var(--border-white-06);
    z-index: 1001;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }

  .topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .topbar__logo {
    width: 28px;
    height: 28px;
  }

  .topbar__name {
    font-family: var(--font-headline);
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--color-white);
    letter-spacing: 0.02em;
  }

  .topbar__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  }

  .topbar__toggle:hover {
    border-color: var(--color-primary);
  }

  .topbar__toggle-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
  }

  .topbar__toggle-line {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), background 0.2s;
  }

  .topbar__toggle:hover .topbar__toggle-line {
    background: var(--color-primary);
  }

  .topbar__toggle-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
  }

  .siderail {
    width: min(280px, 86vw);
    align-items: stretch;
    padding: 0;
  }

  .siderail__brand {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: var(--border-white-06);
  }

  .siderail__brand-name {
    font-size: 14px;
    letter-spacing: 0.04em;
    margin-top: 0;
  }

  .siderail__logo {
    width: 32px;
    height: 32px;
  }

  .siderail__nav {
    padding-top: 12px;
    overflow-y: auto;
  }

  .siderail__list {
    padding: 0 12px;
    gap: 2px;
  }

  .siderail__link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
  }

  .siderail__link::before {
    width: 3px;
    height: 0;
    left: 0;
    border-radius: 0 3px 3px 0;
  }

  .siderail__link[aria-current="page"] {
    background: rgba(255, 107, 0, 0.08);
  }

  .siderail__index {
    position: static;
    font-size: 9px;
    order: -1;
    color: var(--color-text-tertiary);
    min-width: 18px;
  }

  .siderail__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .siderail__label {
    font-size: 14px;
    text-align: left;
  }

  .siderail__cta {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: var(--border-white-06);
  }

  .siderail__cta-text {
    font-size: 13px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-7) var(--space-5) var(--space-5);
  }

  .site-footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .site-footer__nav .site-footer__col:last-child {
    grid-column: 1 / -1;
  }

  .site-footer__meta {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-footer__nav {
    grid-template-columns: 1fr;
  }

  .site-footer__nav .site-footer__col:last-child {
    grid-column: auto;
  }

  .site-footer__inner {
    padding: var(--space-6) var(--space-4) var(--space-4);
  }

  .topbar {
    height: 56px;
    padding: 0 12px;
  }

  .topbar__toggle {
    padding: 6px 10px;
  }
}

/* ========== 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;
  }

  .siderail {
    transition: none;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress {
    transition: none;
  }
}
