/* ============================================================
   火狐体育 · 共享样式表 /assets/site.css
   夜间赛场转播室 + 旧版终端档案秩序
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 24px);
}

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

/* ---------- tokens ---------- */
:root {
  --ember: #FF5B1A;
  --ember-deep: #B33A0C;
  --ink: #0E0F12;
  --ink-2: #16181D;
  --card: #2A2C31;
  --line: #3E424B;
  --muted: #A8ADB6;
  --paper: #F5F3EF;
  --cyan: #2FD3C8;
  --lime: #E8FF4D;

  --rail-w: 112px;
  --topbar-h: 62px;
  --gap: 26px;
  --radius: 4px;
  --container: 1240px;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(36px, 6vw, 84px); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -0.022em; }
h3 { font-size: clamp(19px, 1.7vw, 25px); }
h4 { font-size: 17px; }

p { max-width: 74ch; }

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--ember);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- layout shell ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.site-main {
  padding-inline-start: var(--rail-w);
  padding-block-start: var(--topbar-h);
  min-height: 72vh;
  transition: padding-inline-start .25s ease, padding-block-start .25s ease;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 100vh;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  grid-template-areas:
    "rail top"
    "rail filler";
  pointer-events: none;
  z-index: 90;
  transition: grid-template-columns .25s ease;
}
.site-header > * { pointer-events: auto; }

/* ---------- rail ---------- */
.rail {
  grid-area: rail;
  position: relative;
  width: var(--rail-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  overflow: hidden auto;
  background-color: #101216;
  background-image: repeating-linear-gradient(180deg, rgba(62, 66, 75, .8) 0 1px, transparent 1px 24px);
  background-size: 4px 100%;
  background-position: right top;
  background-repeat: repeat-y;
  border-right: 1px solid var(--line);
  box-shadow: 14px 0 40px rgba(0, 0, 0, .45);
  scrollbar-width: thin;
  transition: width .25s ease;
}
.rail::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  background: radial-gradient(120% 100% at 50% 132%, rgba(255, 91, 26, .26), transparent 68%);
  pointer-events: none;
}
.rail::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ember) 0%, rgba(255, 91, 26, 0) 44%, rgba(47, 211, 200, .5) 88%, transparent 100%);
  pointer-events: none;
}

.rail__brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px 0 4px;
}
.rail__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--ember);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--ember-deep), 0 8px 24px rgba(255, 91, 26, .35);
}
.rail__name {
  writing-mode: vertical-rl;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .26em;
  line-height: 1;
  color: var(--paper);
}

.rail__nav {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rail__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}
.rail__item {
  width: 100%;
  display: flex;
  justify-content: center;
}
.rail__link {
  display: block;
  writing-mode: vertical-rl;
  padding: 8px 9px;
  font-size: 13px;
  letter-spacing: .14em;
  line-height: 1;
  color: var(--muted);
  border-radius: 3px;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.rail__link:hover {
  color: var(--paper);
  background-color: rgba(255, 255, 255, .06);
}
.rail__link[aria-current="page"] {
  color: var(--ink);
  background-color: var(--ember);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--ember-deep), 0 6px 20px rgba(255, 91, 26, .32);
}

.rail__foot {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rail__cta {
  writing-mode: vertical-rl;
  padding: 12px 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1;
  color: var(--ember);
  background: rgba(255, 91, 26, .08);
  border: 1px solid var(--ember-deep);
  border-radius: 3px;
  transition: background-color .18s ease, color .18s ease;
}
.rail__cta:hover {
  background: var(--ember);
  color: var(--ink);
}

/* ---------- topbar ---------- */
.topbar {
  grid-area: top;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  background: rgba(14, 15, 18, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: height .25s ease, border-color .2s ease;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1640px;
  margin-inline: auto;
  padding-inline: 24px;
  min-width: 0;
}
.topbar__segment {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
  max-width: none;
}
.topbar__segment::before {
  content: "";
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 91, 26, .18); }
  50% { box-shadow: 0 0 0 8px rgba(255, 91, 26, 0); }
}
.topbar__spacer { flex: 1 1 auto; min-width: 12px; }
.topbar__chips {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar__brand-mobile {
  display: none;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--paper);
  white-space: nowrap;
}
.topbar__brand-mobile em {
  font-style: normal;
  color: var(--ember);
}

/* ---------- nav toggle ---------- */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 42px; height: 42px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.nav-toggle:hover {
  border-color: var(--ember);
  background: rgba(255, 91, 26, .08);
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.chip:hover {
  color: var(--paper);
  border-color: var(--ember);
  background: rgba(255, 91, 26, .1);
}
.chip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-block-start: 72px;
  padding-inline-start: var(--rail-w);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  transition: padding-inline-start .25s ease;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ember) 0%, rgba(255, 91, 26, .12) 42%, var(--cyan) 78%, transparent 100%);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(140px, 1fr));
  gap: 40px 30px;
  padding-block: 56px 44px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .05em;
  color: var(--paper);
}
.footer__logo::before {
  content: "";
  width: 12px; height: 12px;
  background: var(--ember);
  box-shadow: 0 0 0 1px var(--ember-deep);
}
.footer__tagline {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 34ch;
}
.footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--paper);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer__col a {
  font-size: 14px;
  color: var(--muted);
  transition: color .18s ease;
}
.footer__col a:hover { color: var(--ember); }

.footer__bottom {
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-block: 20px;
}
.footer__legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  max-width: none;
}
.footer__contact,
.footer__address {
  font-size: 12.5px;
  color: var(--muted);
  max-width: none;
}
.footer__contact { margin-inline-end: auto; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-inline-start: auto;
}
.footer__links a {
  font-size: 12.5px;
  color: var(--muted);
  transition: color .18s ease;
}
.footer__links a:hover { color: var(--ember); }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ember); color: var(--ink); }
.btn--primary:hover { background: #FF7A47; }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ember); color: var(--ember); background: rgba(255, 91, 26, .1); }
.btn--sm { padding: 8px 15px; font-size: 13px; }
.btn--block { width: 100%; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
  color: var(--muted);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.tag--update { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 700; }
.tag--source { background: transparent; border-color: rgba(47, 211, 200, .45); color: var(--cyan); }
.tag--live { background: rgba(255, 91, 26, .14); border-color: var(--ember-deep); color: var(--ember); }
.tag--num { color: var(--cyan); border-color: rgba(47, 211, 200, .3); }

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); transition: color .18s ease; }
.breadcrumb a:hover { color: var(--ember); }
.breadcrumb__sep { color: var(--line); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ember);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--ember);
}

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

.card {
  position: relative;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card--quiet { background: var(--ink-2); }
.card--clip {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.card--float {
  box-shadow: 0 18px 46px rgba(0, 0, 0, .5);
  border-color: #43474F;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
}
.stat__value .num { color: var(--cyan); }
.stat__label {
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--muted);
}

.timeline {
  position: relative;
  padding-inline-start: 28px;
  border-left: 1px solid var(--line);
}
.timeline__item {
  position: relative;
  padding-bottom: 30px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--ember);
}
.timeline__item:last-child { padding-bottom: 0; }

.archive {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.archive + .archive { margin-top: 10px; }
.archive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
  transition: background-color .18s ease, color .18s ease;
}
.archive summary::-webkit-details-marker { display: none; }
.archive summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-right: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  transform: rotate(45deg);
  transition: transform .22s ease, margin-top .22s ease;
}
.archive[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 5px;
}
.archive summary:hover { background: rgba(255, 91, 26, .1); }
.archive[open] summary {
  color: var(--ember);
  border-bottom: 1px solid var(--line);
}
.archive__body {
  padding: 18px 20px 22px;
  font-size: 15px;
  color: var(--muted);
}

.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(160deg, #1B1E24, #101216);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.94) contrast(1.06);
}
.media--wide { aspect-ratio: 16 / 9; }
.media--std { aspect-ratio: 4 / 3; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--banner { aspect-ratio: 21 / 9; }
.media__cap {
  position: absolute;
  left: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  background: rgba(14, 15, 18, .82);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.media__badge {
  position: absolute;
  top: 12px; left: 12px;
}

/* ---------- injected ui ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--ember), var(--lime));
  z-index: 200;
  pointer-events: none;
}

[data-reveal] { opacity: 1; transform: none; }
body.is-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
body.is-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .tag--source { display: none; }
}

@media (max-width: 1024px) {
  .topbar__chips { display: none; }
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--topbar-h);
    grid-template-areas: "top";
    height: auto;
    inset: 0 0 auto 0;
  }
  .site-main {
    padding-inline-start: 0;
    padding-block-start: var(--topbar-h);
  }
  .site-footer { padding-inline-start: 0; }

  .rail {
    grid-area: auto;
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    z-index: 85;
    width: min(86vw, 340px);
    height: auto;
    align-items: stretch;
    gap: 18px;
    padding: 22px 20px 28px;
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 30px 0 70px rgba(0, 0, 0, .6);
  }
  .site-header[data-open] .rail { transform: none; }
  [data-nav][data-open] { visibility: visible; }
  .site-header[data-open] .topbar { border-bottom-color: var(--ember); }

  .rail::after { width: 2px; }
  .rail::before { height: 160px; }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
  }
  .rail__mark { width: 34px; height: 34px; font-size: 17px; }
  .rail__name {
    writing-mode: horizontal-tb;
    font-size: 17px;
    letter-spacing: .12em;
  }

  .rail__nav { justify-content: flex-start; }
  .rail__list { align-items: stretch; gap: 4px; }
  .rail__item { justify-content: flex-start; }
  .rail__link {
    writing-mode: horizontal-tb;
    width: 100%;
    padding: 12px 14px;
    font-size: 15.5px;
    letter-spacing: .04em;
    border: 1px solid transparent;
  }
  .rail__link[aria-current="page"] { border-color: var(--ember-deep); }

  .rail__foot { align-items: stretch; }
  .rail__cta {
    writing-mode: horizontal-tb;
    text-align: center;
    padding: 13px 16px;
    font-size: 14px;
    letter-spacing: .1em;
  }

  .nav-toggle { display: inline-flex; }
  .topbar__brand-mobile { display: inline-flex; }
  .topbar__actions .btn { display: none; }
  .topbar__segment { font-size: 12px; }

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

@media (max-width: 760px) {
  .container { padding-inline: 20px; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-block: 44px 34px;
  }
  .footer__contact { margin-inline-end: 0; }
  .footer__links { margin-inline-start: 0; }
  h1 { font-size: clamp(32px, 10vw, 54px); }
  .card { padding: 18px 18px; }
}

@media (max-width: 620px) {
  .topbar__segment { display: none; }
  .tag--update { font-size: 11px; padding: 4px 8px; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  body.is-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .topbar__segment::before {
    box-shadow: 0 0 0 3px rgba(255, 91, 26, .2);
  }
}
