/* ==========================================================================
   博云体育安卓 · /assets/site.css
   共享外壳：重置 / 变量 / 中文排版 / 页头 / 页脚 / 基础组件 / 响应式
   ========================================================================== */

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

:root {
  --ink: #0B1026;
  --ink-2: #141B3D;
  --ink-3: #1B2450;
  --paper: #EEF1F7;
  --cyan: #35E0D6;
  --amber: #FFA23A;
  --wine: #B0274E;
  --wine-soft: #E8638A;
  --violet: #6C4BD8;
  --violet-soft: #9E8BF2;
  --steel: #8A93AC;
  --ivory: #F4F1E9;
  --line: rgba(238, 241, 247, .14);
  --line-2: rgba(238, 241, 247, .30);
  --font-head: 'Barlow Condensed', 'Oswald', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-num: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', monospace;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -28px rgba(0, 0, 0, .9);
  --shadow-float: 0 20px 50px -24px rgba(0, 0, 0, .88);
  --radius-pill: 999px;
  --radius-card: 14px;
  --radius-sm: 10px;
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(108, 75, 216, .22), transparent 62%),
    radial-gradient(900px 520px at 6% 4%, rgba(53, 224, 214, .12), transparent 60%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--cyan); color: #04211F; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--paper);
  margin: 0 0 .55em;
}
h1 { font-size: clamp(40px, 7vw, 64px); }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); }
h4 { font-size: 18px; letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.num, .score, [data-num] {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

strong { color: var(--paper); font-weight: 700; }

/* ---------- 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.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--rail { grid-template-columns: minmax(200px, 252px) minmax(0, 1fr); align-items: start; }
.grid--rail--right { grid-template-columns: minmax(0, 1fr) minmax(200px, 252px); }

.stack > * + * { margin-top: clamp(14px, 2vw, 22px); }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: 0;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--cyan);
  color: #04211F;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }

/* ---------- 页头：悬浮胶囊导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 12px var(--gutter) 0;
}

.header-shell {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: 10px 14px 10px 20px;
  background: rgba(20, 27, 61, .78);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-float);
  transition: background .3s ease, border-color .3s ease, border-radius .3s ease;
}
.site-header.is-pinned .header-shell {
  background: rgba(11, 16, 38, .95);
  border-color: var(--line-2);
}

.brand { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--paper);
}
.brand__name::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--cyan);
  vertical-align: middle;
  box-shadow: 0 0 10px var(--cyan);
}
.brand__line { font-size: 11px; line-height: 1.35; color: var(--steel); letter-spacing: .02em; }

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  color: var(--paper);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__text { line-height: 1; }

/* ---------- 主导航 ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-left: auto;
  min-width: 0;
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  color: var(--paper);
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-link:hover { background: rgba(238, 241, 247, .08); text-decoration: none; }
.nav-link[aria-current="page"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04211F;
  font-weight: 700;
}

/* ---------- 赛季切换器 ---------- */
.season-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: clamp(10px, 1.4vw, 18px);
  border-left: 1px solid var(--line);
  min-width: 0;
}
.season-switcher__label {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--steel);
  white-space: nowrap;
}
.season-switcher__track {
  display: flex;
  gap: 6px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.season-switcher__track::-webkit-scrollbar { display: none; }
.season-chip {
  font-family: var(--font-num);
  font-size: 12px;
  line-height: 1.4;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--steel);
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.season-chip:hover { color: var(--paper); border-color: var(--line-2); }
.season-chip.is-active {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(255, 162, 58, .12);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { text-decoration: none; }
.btn--amber { background: var(--amber); border-color: var(--amber); color: #20160A; }
.btn--amber:hover { background: #FFB65F; }
.btn--cyan { background: var(--cyan); border-color: var(--cyan); color: #04211F; }
.btn--cyan:hover { background: #5EEBE2; }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--paper); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--wine { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.btn--wine:hover { background: #C63460; }
.site-nav__cta { flex: 0 0 auto; white-space: nowrap; }

/* ---------- 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 12.5px;
  color: var(--steel);
}
.crumb li { display: flex; align-items: center; gap: 8px; }
.crumb li + li::before { content: "/"; color: var(--line-2); }
.crumb a { color: var(--steel); }
.crumb a:hover { color: var(--cyan); text-decoration: none; }
.crumb [aria-current="page"] { color: var(--paper); }

/* ---------- 章节画板 ---------- */
.section { position: relative; padding-block: clamp(48px, 7vw, 96px); }
.section--ivory { background: var(--ivory); color: var(--ink); }
.section--ivory h1, .section--ivory h2, .section--ivory h3, .section--ivory h4 { color: var(--ink); }
.section--ivory .lead { color: #3A4266; }

.panel {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-card);
}
.panel--ivory {
  background: var(--ivory);
  border-color: rgba(11, 16, 38, .14);
  color: var(--ink);
}
.panel--ivory h2, .panel--ivory h3, .panel--ivory h4 { color: var(--ink); }
.panel--tilt-l { transform: translateY(-8px) rotate(-.4deg); }
.panel--tilt-r { transform: translateY(10px) rotate(.4deg); }

.section-mark { display: flex; align-items: stretch; gap: 14px; margin-bottom: 16px; }
.section-mark__no {
  font-family: var(--font-num);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: var(--steel);
  opacity: .55;
}
.section-mark__body { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.section-mark__title { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.section-mark__desc { font-size: 13px; color: var(--steel); margin: 0; }

.bar { display: block; width: 4px; border-radius: 3px; background: var(--steel); align-self: stretch; }
.bar--cyan { background: var(--cyan); }
.bar--amber { background: var(--amber); }
.bar--violet { background: var(--violet); }
.bar--wine { background: var(--wine); }

/* ---------- 文本辅助 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}
.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.8; color: #C9D0E4; max-width: 64ch; }
.dim { color: var(--steel); }
.tiny { font-size: 12.5px; color: var(--steel); }

/* ---------- 标签与升降箭头 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: rgba(238, 241, 247, .05);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--steel);
  white-space: nowrap;
}
.tag--live { color: var(--cyan); border-color: rgba(53, 224, 214, .5); background: rgba(53, 224, 214, .1); }
.tag--review { color: var(--amber); border-color: rgba(255, 162, 58, .5); background: rgba(255, 162, 58, .1); }
.tag--coach { color: var(--violet-soft); border-color: rgba(108, 75, 216, .55); background: rgba(108, 75, 216, .16); }
.tag--risk { color: var(--wine-soft); border-color: rgba(176, 39, 78, .55); background: rgba(176, 39, 78, .18); }

.arrow { display: inline-flex; align-items: center; font-family: var(--font-num); font-size: 13px; line-height: 1; }
.arrow--up { color: var(--cyan); }
.arrow--up::before { content: "▲"; }
.arrow--down { color: var(--wine-soft); }
.arrow--down::before { content: "▼"; }

/* ---------- 数据块 ---------- */
.data-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.data-card--pop { transform: translateY(-10px); }
.data-card__label { font-size: 11.5px; letter-spacing: .08em; color: var(--steel); }
.data-card__value {
  font-family: var(--font-num);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--paper);
}
.data-card__value--cyan { color: var(--cyan); }
.data-card__value--amber { color: var(--amber); }
.data-card__value--wine { color: var(--wine-soft); }
.data-card__value--violet { color: var(--violet-soft); }
.data-card__foot { font-size: 12px; color: var(--steel); }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(20, 27, 61, .5);
}
table.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th {
  font-size: 11.5px;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--steel);
  text-transform: uppercase;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td.num { font-family: var(--font-num); }

/* ---------- 图片容器（页面阶段放置占位图） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.06) brightness(.92);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .22;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 38%, rgba(11, 16, 38, .62) 100%);
}
.media-frame--ratio-16x9 { aspect-ratio: 16 / 9; }
.media-frame--ratio-4x3 { aspect-ratio: 4 / 3; }
.media-frame--tilt { transform: rotate(-.5deg); }

/* ---------- 章节跟随导航（页面级索引） ---------- */
.spy-nav { display: flex; flex-direction: column; gap: 4px; list-style: none; margin: 0; padding: 0; }
.spy-nav__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--steel);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.spy-nav__link:hover { background: rgba(238, 241, 247, .05); color: var(--paper); text-decoration: none; }
.spy-nav__link[aria-current="true"] {
  color: var(--paper);
  background: rgba(53, 224, 214, .09);
  border-left-color: var(--cyan);
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 9vw, 120px);
  background: linear-gradient(180deg, rgba(20, 27, 61, .5), rgba(11, 16, 38, .96));
  padding: clamp(40px, 6vw, 72px) var(--gutter) 26px;
}
.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  margin: calc(-1 * clamp(40px, 6vw, 72px)) calc(-1 * var(--gutter)) clamp(30px, 4vw, 50px);
  background: linear-gradient(90deg, var(--cyan), var(--amber) 34%, var(--violet) 66%, var(--wine));
  opacity: .85;
}
.footer-shell { max-width: var(--shell); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr .8fr 1.3fr;
  gap: clamp(24px, 3vw, 44px);
}

.footer-brand__mark { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin: 0 0 6px; color: var(--paper); }
.footer-brand__line { font-size: 13px; color: var(--steel); margin: 0 0 16px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; margin: 0; padding: 0; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--steel); }
.legend__swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.legend__swatch--amber { background: var(--amber); }
.legend__swatch--cyan { background: var(--cyan); }
.legend__swatch--violet { background: var(--violet); }
.legend__swatch--wine { background: var(--wine); }

.footer-col__title {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}
.footer-col__list { display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0; padding: 0; }
.footer-link { font-size: 14px; color: rgba(238, 241, 247, .82); }
.footer-link:hover { color: var(--cyan); text-decoration: none; }

.footer-contact__title {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}
.footer-contact__list { display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0; padding: 0; }
.footer-contact__item { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; }
.footer-contact__key { flex: 0 0 34px; color: var(--steel); font-size: 12px; letter-spacing: .06em; }
.footer-contact__value { color: var(--paper); word-break: break-all; }
.footer-contact__value.num { color: var(--cyan); }
.footer-contact__note { margin: 14px 0 0; font-size: 12px; line-height: 1.7; color: var(--steel); }

.footer-bottom {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 12.5px;
  color: var(--steel);
}
.footer-bottom__legal { margin: 0; font-family: var(--font-num); letter-spacing: -.01em; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(53, 224, 214, .45);
  background: rgba(53, 224, 214, .12);
  color: var(--cyan);
  font-family: var(--font-num);
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s, background .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease, visibility 0s, background .2s ease; }
.to-top:hover { background: rgba(53, 224, 214, .22); }
.to-top__icon { font-size: 13px; line-height: 1; }
.to-top__label { line-height: 1; }

/* ---------- 入场 ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .float-arrow { animation: arrowFloat 2.2s ease-in-out infinite; }
}
@keyframes arrowFloat {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .header-shell { flex-wrap: wrap; row-gap: 10px; border-radius: 22px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .32s ease, opacity .22s ease, visibility 0s linear .32s;
  }
  .site-nav[data-open] {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    padding-bottom: 6px;
    transition: max-height .32s ease, opacity .22s ease, visibility 0s;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
  .season-switcher {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 12px 4px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .season-switcher__track { width: 100%; padding-bottom: 4px; }
  .site-nav__cta { width: 100%; }
  .grid--rail, .grid--rail--right { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: clamp(40px, 8vw, 72px); }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  html { scroll-padding-top: 96px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .brand__line { display: none; }
  .panel { padding: 20px 18px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand, .footer-contact { grid-column: auto; }
  .data-card--pop, .panel--tilt-l, .panel--tilt-r { transform: none; }
}

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