/* =========================================================
   利记看台 · /assets/site.css
   共享层：reset / tokens / 排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

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

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

button { font: inherit; color: inherit; }

a { color: inherit; }

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #07130F;
  --coal: #0B0E0D;
  --turf: #14302A;
  --lime: #C6FF3D;
  --flare: #FF4D2E;
  --steel: #8A9691;
  --paper: #F4F1E8;
  --fence: #2A3A35;
  --white: #FFFFFF;
  --amber: #FFC24B;

  --rail: 88px;
  --header-h: 68px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --maxw: 1380px;
  --rhythm: clamp(56px, 8vw, 112px);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: .28s;

  --font-display: "Oswald", "Arial Narrow", "Haettenschweiler", "Impact",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-head: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun",
    Georgia, "Times New Roman", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono",
    Menlo, monospace;
}

/* ---------- 3. Base ---------- */
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(30px, 5vw, 58px); }
h2 { font-size: clamp(24px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }

.num,
.stat-value,
.data-table th,
.data-table td {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

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

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

main {
  display: block;
  padding-top: var(--header-h);
}

.page-bleed { padding-top: 0; }

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.site-header[data-pinned],
.site-header[data-nav-open] {
  background: var(--coal);
  border-bottom-color: var(--fence);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 130;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* 左侧品牌轨道 */
.header-rail { display: none; }

.header-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
  padding: 10px var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--lime) 0 50%, var(--flare) 50% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .06em;
}

.brand-sub {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--steel);
}

/* 导航 */
.nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--steel);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--lime); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 汉堡 */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--fence);
  background: var(--turf);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

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

.nav-toggle-bars {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  background: var(--lime);
  transition: background-color var(--dur) var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--lime);
  transition: transform var(--dur) var(--ease);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* 阅读进度 */
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime), var(--flare));
}

/* ---------- 5. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: var(--rhythm);
  padding: clamp(40px, 6vw, 72px) 0 0;
  background: var(--coal);
  border-top: 1px solid var(--fence);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--lime) 0 34%,
    var(--flare) 34% 48%,
    transparent 48%
  );
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--fence);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-summary {
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.8;
  color: #A5AFAA;
}

.footer-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-link {
  width: fit-content;
  font-size: 14px;
  color: #A5AFAA;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-link:hover { color: var(--paper); border-bottom-color: var(--lime); }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--fence);
}

.contact-item { display: flex; flex-direction: column; gap: 7px; }

.contact-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel);
}

.contact-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px dashed var(--fence);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.copy-chip .contact-value { font-family: var(--font-mono); }

.copy-chip:hover { border-color: var(--lime); }
.copy-chip:hover .contact-value { color: var(--lime); }

.copy-chip-hint {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

.copy-chip[data-copied] { border-color: var(--lime); border-style: solid; }
.copy-chip[data-copied] .copy-chip-hint { color: var(--lime); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px 0 30px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--steel);
}

.footer-legal { font-family: var(--font-mono); color: var(--paper); }
.footer-note { color: #6E7A74; }

/* ---------- 6. Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.section { padding-block: var(--rhythm); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 18px;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--fence);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  color: var(--paper);
}

.divider { height: 1px; border: 0; background: var(--fence); }

.ruled { border-top: 1px solid var(--fence); padding-top: 18px; }

.stack { display: grid; }

.stack > * { position: relative; }

.stack > * + * { margin-top: -12px; }

.stack > *:nth-child(1) { z-index: 3; }
.stack > *:nth-child(2) { z-index: 2; }
.stack > *:nth-child(3) { z-index: 1; }

/* ---------- 7. Type blocks ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--flare);
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
  color: #CFCDC3;
}

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
  color: #D6D4CA;
}

.prose h2,
.prose h3 { margin: 32px 0 12px; color: var(--paper); }

.prose p + p { margin-top: 16px; }

.prose ul,
.prose ol { margin: 16px 0; padding-left: 22px; }

.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }

.prose a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong { color: var(--paper); }

/* ---------- 8. Panels & frames ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--turf);
  border: 1px solid var(--fence);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--fence);
}

.panel-body { color: var(--paper); }

.frame {
  position: relative;
  padding: clamp(20px, 3vw, 44px);
  background: linear-gradient(180deg, rgba(20, 48, 42, .74), rgba(7, 19, 15, .92));
  border: 1px solid var(--fence);
}

.frame-ticks::before,
.frame-ticks::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--lime);
}

.frame-ticks::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.frame-ticks::after {
  right: -1px;
  bottom: -1px;
  border-top: 0;
  border-left: 0;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 194, 75, .08);
  font-size: 14px;
  line-height: 1.7;
  color: #EADFC6;
}

/* ---------- 9. Tags & stats ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 4px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--turf);
  border: 1px solid var(--fence);
  color: var(--steel);
}

.tag-lime { background: transparent; border-color: var(--lime); color: var(--lime); }
.tag-flare { background: transparent; border-color: var(--flare); color: var(--flare); }
.tag-amber { background: transparent; border-color: var(--amber); color: var(--amber); }
.tag-steel { background: transparent; border-color: var(--fence); color: var(--steel); }
.tag-solid { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.stat {
  padding: 4px 0 4px 14px;
  border-left: 2px solid var(--lime);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--paper);
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- 10. Scoreline ---------- */
.scoreline {
  display: flex;
  gap: 10px;
  padding: 14px 0 18px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--fence) transparent;
}

.scoreline::-webkit-scrollbar { height: 6px; }
.scoreline::-webkit-scrollbar-track { background: var(--ink); }
.scoreline::-webkit-scrollbar-thumb { background: var(--fence); }

.scoreline-item {
  flex: 0 0 auto;
  min-width: 168px;
  padding: 10px 14px;
  background: var(--coal);
  border: 1px solid var(--fence);
  border-left: 2px solid var(--lime);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- 11. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}

.breadcrumb-item { color: var(--steel); text-decoration: none; }
.breadcrumb-item:hover { color: var(--lime); }
.breadcrumb-item[aria-current="page"] { color: var(--paper); }
.breadcrumb-sep { color: var(--fence); }

/* ---------- 12. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .1em;
  text-decoration: none;
  background: var(--turf);
  border: 1px solid var(--fence);
  color: var(--paper);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn:hover { border-color: var(--lime); color: var(--lime); }

.btn-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--flare);
  border-color: var(--flare);
  color: var(--paper);
}

.btn-ghost { background: transparent; }

.btn-block { width: 100%; }

.header-cta {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: .12em;
}

/* ---------- 13. Table ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--coal);
  border: 1px solid var(--fence);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 640px;
  font-size: 15px;
}

.data-table caption {
  caption-side: top;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
  border-bottom: 1px solid var(--fence);
}

.data-table th,
.data-table td {
  padding: 11px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--fence);
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--coal);
  color: var(--steel);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.data-table tbody tr:hover { background: rgba(198, 255, 61, .06); }
.data-table tbody tr[data-highlight] { background: rgba(198, 255, 61, .1); }

.data-table th:first-child,
.data-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--coal);
  border-right: 1px solid var(--fence);
}

.data-table thead th:first-child { z-index: 3; }

/* ---------- 14. Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--turf), var(--ink));
  border: 1px solid var(--fence);
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(244, 241, 232, .05) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: soft-light;
}

.media-16x9 { aspect-ratio: 16 / 9; }
.media-4x3 { aspect-ratio: 4 / 3; }
.media-1x1 { aspect-ratio: 1 / 1; }
.media-3x4 { aspect-ratio: 3 / 4; }

.media-caption {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--steel);
}

/* ---------- 15. Chapter nav ---------- */
.chapter-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chapter-link {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--steel);
  text-decoration: none;
  border-left: 2px solid var(--fence);
  transition: color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.chapter-link:hover { color: var(--paper); border-left-color: var(--steel); }

.chapter-link[data-active] {
  color: var(--ink);
  background: var(--lime);
  border-left-color: var(--lime);
}

/* ---------- 16. Reveal ---------- */
.reveal { opacity: 1; }

html[data-js="on"] .reveal {
  opacity: 0;
  transform: translateY(12px);
}

html[data-js="on"] .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

/* ---------- 17. Desktop rail layout ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail); }

  .site-header { left: var(--rail); }

  .header-rail {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail);
    z-index: 71;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 26px;
    background: var(--coal);
    border-right: 1px solid var(--fence);
  }

  .header-rail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lime), var(--flare));
  }

  .header-bar {
    gap: 20px;
    padding-inline: var(--gutter);
  }

  .nav-toggle { display: none; }
}

.rail-brand {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .34em;
  color: var(--paper);
}

.rail-meter {
  position: relative;
  width: 6px;
  height: 128px;
  overflow: hidden;
  background: var(--fence);
}

.rail-meter > i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fill, 82%);
  background: linear-gradient(0deg, var(--lime), rgba(198, 255, 61, .35));
}

.rail-season {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--steel);
}

/* ---------- 18. Mobile / tablet ---------- */
@media (max-width: 1023px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 69;
    width: min(86vw, 340px);
    margin: 0;
    padding: 84px 20px 32px;
    overflow-y: auto;
    background: var(--coal);
    border-left: 1px solid var(--fence);
    transform: translateX(102%);
    transition: transform var(--dur) var(--ease);
  }

  .nav[data-open] { transform: none; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 16px 6px;
    font-size: 15px;
    border-bottom: 1px solid var(--fence);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    color: var(--lime);
    background: rgba(198, 255, 61, .07);
  }

  .nav-link[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--lime);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  body.nav-open { overflow: hidden; }

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

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

@media (max-width: 720px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 17px; }
  .header-cta { margin-right: 0; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-contact { padding: 26px 0; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .section-head { align-items: flex-start; }
}

@media (max-width: 480px) {
  .header-cta { display: none; }
}

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  html[data-js="on"] .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .progress > i { transition: none; }
}
