@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS 自定义属性
   ============================================================ */
:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-accent: #e8e8e8;
  --c-accent2: #c8c8c8;
  --c-border: #222222;
  --c-border-light: #3a3a3a;
  --c-text: #ffffff;
  --c-text-muted: #aaaaaa;
  --c-bg: #000000;
  --c-surface: #0e0e0e;
  --c-surface2: #181818;
  --c-hover: #222222;

  --f-sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --f-display: 'Syne', 'Helvetica Neue', Arial, sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;

  --radius-card: 18px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --nav-w: 240px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--c-bg);
  color: var(--c-text);
}

body {
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: var(--fw-regular);
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--f-display); line-height: 1.15; font-weight: var(--fw-bold); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   Layout Shell: aside nav + main
   ============================================================ */
.site-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: var(--c-black);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.nav-brand {
  padding: var(--sp-3) var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.brand-icon { width: 40px; height: 40px; object-fit: contain; }

.brand-icon-text {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--c-white);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--c-white);
}

.site-nav {
  flex: 1;
  padding: var(--sp-2) 0;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
}

.site-nav ul li a {
  display: block;
  padding: 12px var(--sp-3);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  color: var(--c-text-muted);
  letter-spacing: 0.03em;
  border-left: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  line-height: 1.4;
  min-height: 44px;
}

.site-nav ul li a:hover,
.site-nav ul li a[aria-current="page"] {
  color: var(--c-white);
  border-left-color: var(--c-white);
  background: var(--c-surface);
}

.nav-contact {
  padding: var(--sp-2) var(--sp-3);
  border-top: 1px solid var(--c-border);
  flex-shrink: 0;
}

.nav-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  border: 1px solid var(--c-border-light);
  color: var(--c-text-muted);
  transition: color var(--transition), border-color var(--transition);
}

.nav-contact-link:hover {
  color: var(--c-white);
  border-color: var(--c-white);
}

.layout-main {
  margin-left: var(--nav-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Sticky Anchor Bar
   ============================================================ */
.sticky-anchor {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-black);
  border-bottom: 1px solid var(--c-border);
}

.anchor-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-inner::-webkit-scrollbar { display: none; }

.anchor-label {
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.anchor-pills {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: nowrap;
}

.anchor-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--sp-2);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.anchor-pill:hover,
.anchor-pill--active {
  color: var(--c-black);
  background: var(--c-white);
  border-color: var(--c-white);
}

/* ============================================================
   HOME Hero
   ============================================================ */
.hero--home {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--c-black);
}

.hero-collage {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: absolute;
  inset: 0;
}

.hero-collage-a,
.hero-collage-b {
  position: relative;
  overflow: hidden;
}

.hero-collage-a { border-right: 2px solid var(--c-border); }

.hero-img,
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-img-placeholder {
  background: var(--c-surface2);
  display: block;
}

.hero-img-placeholder--alt {
  background: #111111;
  transform: scale(1.04);
}

.hero-collage-a::after,
.hero-collage-b::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}

.hero-badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 5;
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 2px;
}

.hero-copy {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.2em;
  color: var(--c-accent2);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
}

.hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 800px;
  margin-bottom: var(--sp-3);
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--c-accent2);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 var(--sp-4);
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.hero-cta:hover {
  background: var(--c-accent);
  transform: translateY(-2px);
}

.hero-ticker {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  position: relative;
  z-index: 5;
  display: flex;
  gap: 0;
  border-top: 1px solid var(--c-border);
  background: var(--c-black);
}

.hero-ticker span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  border-right: 1px solid var(--c-border);
  min-height: 44px;
}

.hero-ticker span:last-child { border-right: none; }

/* ============================================================
   Section Hero
   ============================================================ */
.section-hero {
  padding: var(--sp-7) var(--sp-5) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  align-items: start;
  background: var(--c-surface);
}

.section-hero-inner { grid-column: 1; }

.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  color: var(--c-text-muted);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
  display: block;
}

.section-h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-2);
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  max-width: 600px;
  line-height: 1.65;
}

.section-hero-deco {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
  padding-top: var(--sp-2);
}

.deco-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--c-border-light);
}

.deco-badge {
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border-light);
  padding: 4px 10px;
  white-space: nowrap;
}

/* ============================================================
   Story Header
   ============================================================ */
.story-header {
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}

.story-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

.story-breadcrumb a { color: var(--c-text-muted); transition: color var(--transition); }
.story-breadcrumb a:hover { color: var(--c-white); }
.bc-sep { color: var(--c-border-light); }

.story-hero-wrap {
  margin-bottom: var(--sp-3);
  max-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.story-hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
}

.story-meta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  flex-wrap: wrap;
}

.story-date, .story-mod-date {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  font-weight: var(--fw-medium);
}

.story-cat-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--sp-2);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  border-radius: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.story-cat-badge:hover {
  color: var(--c-white);
  border-color: var(--c-white);
}

.story-h1 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}

.story-deck {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  max-width: 680px;
}

/* ============================================================
   Tag / About / Privacy Headers
   ============================================================ */
.tag-header,
.about-header,
.privacy-header {
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}

.tag-eyebrow, .about-eyebrow, .privacy-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  color: var(--c-text-muted);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.tag-h1, .about-h1, .privacy-h1 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}

.tag-lead, .about-lead, .privacy-lead {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  max-width: 600px;
  line-height: 1.65;
}

.tag-meta {
  margin-top: var(--sp-2);
}

.tag-count {
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
}

.tag-siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sp-3);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--sp-2);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  border-radius: var(--radius-pill);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  min-height: 40px;
}

.tag-chip:hover, .tag-chip--active {
  color: var(--c-black);
  background: var(--c-white);
  border-color: var(--c-white);
}

.about-deco {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.about-deco-line {
  flex: 1;
  height: 1px;
  background: var(--c-border);
  max-width: 80px;
}

.about-deco-badge {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  padding: 4px 12px;
}

/* ============================================================
   Page Article Containers
   ============================================================ */
.page-article {
  flex: 1;
  padding: 0;
}

.content-section {
  padding: var(--sp-5) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.content-inner {
  max-width: 800px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-accent);
}

.content-inner--legal {
  max-width: 720px;
}

/* Prose styles inside content */
.content-inner h2 {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--c-white);
  margin: var(--sp-4) 0 var(--sp-2);
  letter-spacing: -0.015em;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--c-border);
}

.content-inner h3 {
  font-size: 1.2rem;
  font-weight: var(--fw-semibold);
  color: var(--c-white);
  margin: var(--sp-3) 0 var(--sp-1);
}

.content-inner p { margin-bottom: var(--sp-2); }

.content-inner ul, .content-inner ol {
  list-style: disc;
  padding-left: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.content-inner li { margin-bottom: 6px; }

.content-inner a {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}

.content-inner a:hover { opacity: 0.7; }

.content-inner strong { color: var(--c-white); font-weight: var(--fw-semibold); }

.content-inner time {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  margin-bottom: var(--sp-2);
  font-weight: var(--fw-medium);
}

/* ============================================================
   Section Header Row
   ============================================================ */
.section-header-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.section-heading {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--c-white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.section-count {
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ============================================================
   Sections Pills Grid (home categories)
   ============================================================ */
.sections-grid-section {
  padding: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.sections-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-2);
}

.section-pill {
  border: 1px solid var(--c-border);
  transition: border-color var(--transition), background var(--transition);
}

.section-pill:hover {
  border-color: var(--c-white);
  background: var(--c-surface);
}

.section-pill a {
  display: block;
  padding: var(--sp-3);
}

.pill-label {
  display: block;
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  color: var(--c-white);
  margin-bottom: 4px;
}

.pill-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  line-height: 1.4;
}

/* ============================================================
   Cards
   ============================================================ */
.cards-section {
  padding: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.children-section,
.cards-section,
.related-section,
.tag-items-section {
  padding: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-3);
}

.cards-grid--list {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.cards-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-2);
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  border-color: var(--c-border-light);
  transform: translateY(-3px);
}

.card:hover::after {
  transform: scaleX(1);
}

.card--featured {
  grid-column: span 2;
}

.card-media {
  overflow: hidden;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img {
  transform: scale(1.04);
}

.card-body {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.card-date {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  font-weight: var(--fw-medium);
}

.card-title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--c-white);
  line-height: 1.3;
}

.card-title a {
  transition: opacity var(--transition);
}

.card-title a:hover { opacity: 0.7; }

.card--compact .card-title {
  font-size: 0.9375rem;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--sp-2);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  width: fit-content;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  min-height: 40px;
}

.card-cta:hover {
  color: var(--c-black);
  background: var(--c-white);
  border-color: var(--c-white);
}

/* ============================================================
   About Nav Grid
   ============================================================ */
.about-links-section {
  padding: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.about-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.about-nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
  min-height: 48px;
}

.about-nav-item:hover {
  border-color: var(--c-white);
  background: var(--c-surface);
}

.about-nav-title {
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  color: var(--c-white);
}

.about-nav-desc {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  line-height: 1.4;
}

/* ============================================================
   Privacy links
   ============================================================ */
.privacy-toc-section {
  padding: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.privacy-link-item {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--sp-3);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.privacy-link-item:hover {
  color: var(--c-black);
  background: var(--c-white);
  border-color: var(--c-white);
}

/* ============================================================
   Nav Back Link
   ============================================================ */
.nav-links-section {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--c-border);
}

.nav-back-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--sp-3);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.nav-back-link:hover {
  color: var(--c-black);
  background: var(--c-white);
  border-color: var(--c-white);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--c-black);
  border-top: 2px solid var(--c-white);
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.footer-brand-col {}

.footer-brand-super {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-2);
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--f-display);
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav-col ul li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  transition: color var(--transition);
  line-height: 1.4;
  padding: 4px 0;
}

.footer-nav-col ul li a:hover {
  color: var(--c-white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  font-weight: var(--fw-regular);
}

.footer-bottom-links {
  display: flex;
  gap: var(--sp-3);
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--c-white); }

/* ============================================================
   Stagger List Animation
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .cards-grid .card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 0.4s ease forwards;
  }

  .cards-grid .card:nth-child(1) { animation-delay: 0.05s; }
  .cards-grid .card:nth-child(2) { animation-delay: 0.10s; }
  .cards-grid .card:nth-child(3) { animation-delay: 0.15s; }
  .cards-grid .card:nth-child(4) { animation-delay: 0.20s; }
  .cards-grid .card:nth-child(5) { animation-delay: 0.25s; }
  .cards-grid .card:nth-child(6) { animation-delay: 0.30s; }

  @keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
  }

  .site-nav ul li {
    opacity: 0;
    animation: navIn 0.3s ease forwards;
  }

  .site-nav ul li:nth-child(1) { animation-delay: 0.05s; }
  .site-nav ul li:nth-child(2) { animation-delay: 0.1s; }
  .site-nav ul li:nth-child(3) { animation-delay: 0.15s; }
  .site-nav ul li:nth-child(4) { animation-delay: 0.2s; }
  .site-nav ul li:nth-child(5) { animation-delay: 0.25s; }
  .site-nav ul li:nth-child(6) { animation-delay: 0.3s; }
  .site-nav ul li:nth-child(7) { animation-delay: 0.35s; }

  @keyframes navIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Mobile Nav Toggle
   ============================================================ */
.nav-toggle {
  display: none;
  position: fixed;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 200;
  width: 44px;
  height: 44px;
  background: var(--c-black);
  border: 1px solid var(--c-border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-white);
  transition: transform var(--transition), opacity var(--transition);
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 90;
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / 3;
  }

  .card--featured {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-w: 220px;
  }

  .site-nav-wrap {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }

  body.nav-open .site-nav-wrap {
    transform: translateX(0);
  }

  body.nav-open .nav-overlay {
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .layout-main {
    margin-left: 0;
  }

  .hero--home {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }

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

  .hero-copy {
    padding: var(--sp-8) var(--sp-3) var(--sp-4);
  }

  .hero-ticker {
    flex-wrap: wrap;
  }

  .hero-ticker span {
    flex: none;
    width: 50%;
    border-bottom: 1px solid var(--c-border);
  }

  .section-hero {
    grid-template-columns: 1fr;
    padding: var(--sp-5) var(--sp-3) var(--sp-4);
  }

  .section-hero-deco { grid-column: 1; flex-direction: row; }

  .story-header,
  .tag-header,
  .about-header,
  .privacy-header {
    padding: var(--sp-4) var(--sp-3);
  }

  .content-section {
    padding: var(--sp-4) var(--sp-3);
  }

  .cards-section,
  .children-section,
  .related-section,
  .tag-items-section,
  .sections-grid-section,
  .about-links-section,
  .privacy-toc-section,
  .nav-links-section {
    padding: var(--sp-4) var(--sp-3);
  }

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

  .cards-grid--list { grid-template-columns: 1fr; }
  .cards-grid--compact { grid-template-columns: 1fr 1fr; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    padding: var(--sp-4) var(--sp-3);
  }

  .footer-brand-col { grid-column: 1 / 3; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-3);
  }

  .story-hero-img {
    height: 240px;
  }

  .anchor-inner {
    padding: var(--sp-1) var(--sp-2);
  }

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

@media (max-width: 480px) {
  .hero-h1 { font-size: 2rem; }
  .section-h1 { font-size: 1.75rem; }
  .story-h1 { font-size: 1.5rem; }
  .footer-brand-super { font-size: 2rem; }

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

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

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

  .footer-brand-col { grid-column: 1; }

  .hero-copy { padding-top: var(--sp-7); }
}
