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

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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ===== 2. Tokens ===== */
:root {
  --ink: #061711;
  --panel: #0D2A21;
  --steel: #16232B;
  --muted: #8FA39B;
  --soft: #C9D8D2;
  --paper: #EAF3EE;
  --lime: #C8FF3D;
  --lime-deep: #7FAE1F;
  --orange: #FF8A3D;
  --orange-deep: #B8561F;
  --alert: #FF6B6B;

  --rail: 88px;
  --bar: 76px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --font-display: "Oswald", "Bebas Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --line: rgba(143, 163, 155, 0.18);
  --line-lime: rgba(200, 255, 61, 0.32);
}

/* ===== 3. Base ===== */
html { background: var(--ink); }

body {
  min-height: 100vh;
  padding-left: var(--rail);
  padding-top: var(--bar);
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 80% at 100% 0%, rgba(200, 255, 61, 0.07), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(255, 138, 61, 0.06), transparent 60%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 163, 155, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 155, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(90% 80% at 60% 10%, #000 0%, transparent 78%);
  mask-image: radial-gradient(90% 80% at 60% 10%, #000 0%, transparent 78%);
}

main { position: relative; z-index: 1; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper);
}

::selection { background: var(--lime); color: var(--ink); }

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

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ===== 4. Shared layout components ===== */
.container {
  width: min(1320px, 100% - clamp(28px, 5vw, 72px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(44px, 7vw, 96px);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}
.section__eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--orange);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}

.lede {
  margin: 18px 0 0;
  max-width: 64ch;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.78;
  color: var(--soft);
}

.grid { display: grid; gap: clamp(14px, 2vw, 26px); }
.grid--4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(13, 42, 33, 0.95), rgba(6, 23, 17, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.4vw, 28px);
}
.card--accent {
  background: linear-gradient(160deg, rgba(22, 35, 43, 0.98), rgba(13, 42, 33, 0.92));
  border-color: var(--line-lime);
}
.card--alert {
  background: linear-gradient(160deg, rgba(184, 86, 31, 0.18), rgba(6, 23, 17, 0.92));
  border-color: rgba(255, 138, 61, 0.4);
}
.card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(143, 163, 155, 0.3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--soft);
}
.chip--lime {
  border-color: rgba(200, 255, 61, 0.5);
  background: rgba(200, 255, 61, 0.08);
  color: var(--lime);
}
.chip--orange {
  border-color: rgba(255, 138, 61, 0.5);
  background: rgba(255, 138, 61, 0.1);
  color: var(--orange);
}
.chip--ghost {
  border-color: rgba(234, 243, 238, 0.18);
  color: var(--muted);
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover { background: var(--orange); color: #1A0D04; }
.btn--ghost {
  border-color: rgba(234, 243, 238, 0.28);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--sm { padding: 8px 16px; font-size: 12.5px; }
.btn:active { transform: translateY(1px); }

.text-link {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--orange); }

.breadcrumb { margin: 0 0 clamp(18px, 3vw, 30px); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--lime-deep); }
.breadcrumb a { color: var(--soft); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--paper); font-weight: 600; }

.prose {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--soft);
}
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 {
  margin: 1.8em 0 0.6em;
  font-family: var(--font-display);
  color: var(--paper);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); }
.prose h3 { font-size: clamp(18px, 1.8vw, 22px); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.35em 0; }
.prose strong { color: var(--paper); }
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

.numeric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.divider {
  height: 1px;
  border: 0;
  margin: clamp(24px, 4vw, 48px) 0;
  background: linear-gradient(90deg, rgba(200, 255, 61, 0.5), rgba(255, 138, 61, 0.35), transparent);
}

/* 图片占位容器：页面阶段放入 img 或保留渐变网格 */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(143, 163, 155, 0.2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(200, 255, 61, 0.14), transparent 55%),
    radial-gradient(90% 80% at 90% 100%, rgba(255, 138, 61, 0.16), transparent 55%),
    linear-gradient(160deg, #0D2A21, #061711 65%, #16232B);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 163, 155, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 155, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
}
.media-frame img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}
.media-frame__caption {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-lime);
  background: rgba(6, 23, 17, 0.78);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ===== 5. Header ===== */
.site-header { position: relative; z-index: 60; }

.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail) + 12px);
  z-index: 130;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus-visible { transform: none; }

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 3px;
  background: rgba(143, 163, 155, 0.14);
  pointer-events: none;
}
.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transition: width 0.12s linear;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.14);
}
.dot--orange {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.14);
}

/* 侧边轨道 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: var(--rail);
  padding: 16px 0 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #0D2A21 0%, #061711 70%);
  border-right: 1px solid var(--line-lime);
  transition: width 0.24s ease, box-shadow 0.24s ease;
}
.rail:hover,
.rail:focus-within {
  width: 248px;
  box-shadow: 28px 0 70px rgba(0, 0, 0, 0.55);
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 10px 16px;
  padding: 4px 6px;
  border-radius: var(--r-sm);
}
.rail__brand-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.rail:hover .rail__brand-text,
.rail:focus-within .rail__brand-text { opacity: 1; }

.rail__list { display: flex; flex-direction: column; gap: 2px; }
.rail__item { margin: 0; padding: 0; list-style: none; }

.rail__link {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  margin: 2px 10px;
  padding: 11px 8px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.rail__link::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--lime);
  transform: translateY(-50%);
  transition: height 0.18s ease;
}
.rail__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  color: inherit;
}
.rail__label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.rail:hover .rail__label,
.rail:focus-within .rail__label { opacity: 1; transform: none; }

.rail__link:hover { color: var(--paper); background: rgba(200, 255, 61, 0.08); }
.rail__link[aria-current="page"] { color: var(--paper); background: rgba(200, 255, 61, 0.14); }
.rail__link[aria-current="page"] .rail__num { color: var(--lime); }
.rail__link[aria-current="page"]::before { height: 22px; }

.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-top: auto;
  padding: 14px 12px 4px;
  border-top: 1px solid var(--line);
}
.rail__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lime);
}
.rail__note {
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.rail:hover .rail__note,
.rail:focus-within .rail__note { opacity: 1; }

/* 顶部品牌条 */
.masthead {
  position: fixed;
  top: 0;
  left: var(--rail);
  right: 0;
  z-index: 50;
  height: var(--bar);
  background: rgba(6, 23, 17, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  width: 100%;
  height: 100%;
  padding-inline: clamp(16px, 3vw, 32px);
}
.masthead__brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 0; }
.masthead__brandline {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--paper);
  transition: color 0.18s ease;
}
.masthead__brand:hover .masthead__brandline { color: var(--lime); }

.masthead__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--muted);
}

.masthead__utility {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
}
.masthead__util-link {
  display: inline-block;
  padding: 6px 0;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--soft);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.masthead__util-link:hover { color: var(--lime); border-bottom-color: var(--lime); }

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.masthead__cta { padding: 10px 18px; font-size: 13px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(200, 255, 61, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__text { font-size: 12px; letter-spacing: 0.06em; }

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(3, 12, 8, 0.7);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ===== 6. Footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 9vw, 130px);
  padding-top: clamp(44px, 6vw, 80px);
  background: linear-gradient(180deg, rgba(13, 42, 33, 0.9), rgba(6, 23, 17, 0.98) 55%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), var(--orange), transparent);
  opacity: 0.7;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.4fr;
  gap: clamp(20px, 3vw, 44px);
  padding-bottom: clamp(28px, 4vw, 52px);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.footer__logo:hover { color: var(--lime); }
.footer__tagline {
  margin: 14px 0 0;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.footer__meta {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--soft);
}
.footer__icp {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lime-deep);
}

.footer__col { min-width: 0; }
.footer__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.footer__list { display: flex; flex-direction: column; gap: 2px; }
.footer__link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--soft);
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer__link:hover { color: var(--lime); transform: translateX(3px); }

.footer__contact { display: flex; flex-direction: column; gap: 14px; }
.footer__contact-row { display: flex; flex-direction: column; gap: 2px; }
.footer__contact-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__contact-value { font-size: 14px; line-height: 1.6; color: var(--paper); }
.footer__contact-value--mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  word-break: break-all;
}
.footer__note {
  margin: 4px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.footer__legal {
  max-width: 78ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.footer__legal-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal-link { font-size: 12.5px; color: var(--soft); }
.footer__legal-link:hover { color: var(--lime); }

/* ===== 7. Responsive ===== */
@media (max-width: 1080px) {
  .masthead__status { display: none; }
}

@media (max-width: 1023px) {
  :root { --rail: 0px; --bar: 64px; }

  body { padding-left: 0; padding-top: var(--bar); }
  .skip-link { left: 12px; }

  .rail {
    width: min(320px, 86vw);
    padding-top: 14px;
    visibility: hidden;
    transform: translateX(-102%);
    transition: transform 0.24s ease, visibility 0.24s ease;
    border-right: 1px solid var(--line-lime);
  }
  .rail:hover,
  .rail:focus-within { width: min(320px, 86vw); box-shadow: none; }
  .rail[data-open="true"] {
    visibility: visible;
    transform: translateX(0);
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.6);
  }
  .rail__label,
  .rail__brand-text,
  .rail__note { opacity: 1; transform: none; }

  .masthead { left: 0; }
  .masthead__utility { display: none; }
  .masthead__actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }

  .nav-scrim { display: block; }
  .nav-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

  body.is-nav-open { overflow: hidden; }

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

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

@media (max-width: 640px) {
  .masthead__brandline { font-size: 13px; }
  .masthead__cta { display: none; }
  .masthead__inner { gap: 10px; padding-inline: 14px; }

  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .media-frame__caption { left: 12px; bottom: 12px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .read-progress__bar { transition: none; }
}
