/* ============================================================
   谈球吧账号 · 全站共享样式 /assets/site.css
   深墨绿近单色画布 · 荧光青主强调 · 信号橙瞬时提示
   ============================================================ */

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

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

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ---------- 变量 ---------- */
:root {
  --ink-900: #06231C;
  --ink-800: #0B2F26;
  --ink-700: #10473A;

  --cyan: #6FF7D0;
  --cyan-soft: rgba(111, 247, 208, 0.12);
  --cyan-line: rgba(111, 247, 208, 0.24);
  --orange: #FF7A2F;

  --paper: #E8F1EE;
  --paper-soft: rgba(232, 241, 238, 0.86);
  --mist: #9FB8B0;

  --l-eng: #FF4D6D;
  --l-esp: #FFC93C;
  --l-ita: #4DA3FF;
  --l-ger: #B07CFF;
  --l-fra: #5CE1E6;

  --font-display: "Playfair Display Condensed", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Noto Sans SC", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;

  --shell: 1280px;
  --gutter: 24px;
}

/* ---------- 基础排版 ---------- */
html {
  background-color: var(--ink-900);
}

body {
  background-color: var(--ink-900);
  background-image:
    radial-gradient(760px 460px at 6% -8%, rgba(111, 247, 208, 0.09), transparent 62%),
    radial-gradient(620px 420px at 98% 2%, rgba(255, 122, 47, 0.06), transparent 64%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong { font-weight: 600; color: var(--paper); }
small { font-size: 13px; }

::selection {
  background: rgba(111, 247, 208, 0.28);
  color: var(--paper);
}

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 通用工具 ---------- */
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.02em;
}

.num-xl {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.num-md {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.canvas {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.prose {
  max-width: 68ch;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--paper-soft);
}

.prose p + p { margin-top: 1.1em; }

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -96px;
  z-index: 200;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04241C;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: top 0.22s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: #04241C;
  font-weight: 600;
  box-shadow: 0 14px 30px -20px rgba(111, 247, 208, 0.9);
}

.btn--primary:hover {
  background: #8BFFE0;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--cyan-line);
  color: var(--cyan);
}

.btn--ghost:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan);
}

.btn--quiet {
  border-color: rgba(159, 184, 176, 0.3);
  color: var(--paper);
}

.btn--quiet:hover {
  border-color: rgba(232, 241, 238, 0.6);
}

/* ---------- 胶囊筛选 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(159, 184, 176, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.chip:hover {
  color: var(--paper);
  border-color: rgba(159, 184, 176, 0.6);
}

.chip[aria-pressed="true"],
.chip.is-active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

/* ---------- 联赛色点图例 ---------- */
.league-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.league-key::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, var(--cyan));
  box-shadow: 0 0 0 3px rgba(232, 241, 238, 0.06);
}

.league-key[data-league="eng"] { --dot: var(--l-eng); }
.league-key[data-league="esp"] { --dot: var(--l-esp); }
.league-key[data-league="ita"] { --dot: var(--l-ita); }
.league-key[data-league="ger"] { --dot: var(--l-ger); }
.league-key[data-league="fra"] { --dot: var(--l-fra); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: underline;
  text-decoration-color: var(--cyan-line);
  text-underline-offset: 3px;
}

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb__sep { opacity: 0.45; }

/* ---------- 章节 ---------- */
.chapter {
  position: relative;
  padding-top: clamp(72px, 10vw, 144px);
}

.chapter__index {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--cyan-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 18px;
}

.chapter__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.chapter__latin {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--mist);
  text-transform: lowercase;
}

/* ---------- 斜切色带 ---------- */
.band {
  height: clamp(56px, 7vw, 120px);
  margin: clamp(40px, 6vw, 88px) 0;
  background: linear-gradient(100deg,
    rgba(16, 71, 58, 0.92) 0%,
    rgba(11, 47, 38, 0.5) 58%,
    rgba(6, 35, 28, 0) 100%);
  clip-path: polygon(0 0, 100% 24%, 100% 100%, 0 76%);
  transform: translateY(var(--band-shift, 0px));
  will-change: transform;
}

.band--flip {
  clip-path: polygon(0 24%, 100% 0, 100% 76%, 0 100%);
  background: linear-gradient(260deg,
    rgba(16, 71, 58, 0.9) 0%,
    rgba(11, 47, 38, 0.45) 58%,
    rgba(6, 35, 28, 0) 100%);
}

/* ---------- 框景 ---------- */
.frame {
  position: relative;
}

.frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  pointer-events: none;
  opacity: 0.75;
  background:
    linear-gradient(var(--cyan), var(--cyan)) left top / 18px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left top / 2px 18px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right top / 18px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right top / 2px 18px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left bottom / 18px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left bottom / 2px 18px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 18px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 2px 18px no-repeat;
}

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--ink-800), var(--ink-700));
  isolation: isolate;
}

.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--pitch { aspect-ratio: 21 / 9; }

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(96deg,
      rgba(111, 247, 208, 0.06) 0 26px,
      rgba(111, 247, 208, 0) 26px 52px),
    radial-gradient(120% 80% at 18% 0%, rgba(111, 247, 208, 0.16), transparent 62%),
    radial-gradient(90% 70% at 92% 100%, rgba(255, 122, 47, 0.1), transparent 60%),
    var(--ink-800);
}

.media--dim::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 35, 28, 0.12) 0%, rgba(6, 35, 28, 0.74) 100%);
}

.media__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 35, 28, 0.78);
  border: 1px solid var(--cyan-line);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px 18px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper-soft);
  background: linear-gradient(180deg, rgba(6, 35, 28, 0) 0%, rgba(6, 35, 28, 0.92) 100%);
}

/* ---------- 显现动画 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
  transition-delay: var(--rd, 0ms);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 主体 ---------- */
main {
  display: block;
  min-height: 60vh;
  position: relative;
  z-index: 1;
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(6, 35, 28, 0.94) 0%, rgba(6, 35, 28, 0) 100%);
}

.header-shell {
  position: relative;
  z-index: 80;
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--cyan-line);
  border-radius: 999px;
  background: rgba(11, 47, 38, 0.94);
  box-shadow: 0 22px 46px -34px rgba(0, 0, 0, 0.95);
  transition: padding 0.28s var(--ease), background-color 0.28s var(--ease),
              border-color 0.28s var(--ease);
}

.site-header[data-scrolled="true"] .header-shell {
  padding: 6px 10px 6px 12px;
  background: rgba(11, 47, 38, 0.98);
  border-color: rgba(111, 247, 208, 0.32);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--cyan) 0%, #3FD8B0 100%);
  color: #04241C;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.brand__text {
  display: block;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.brand__line {
  display: block;
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.brand--footer .brand__mark {
  background: linear-gradient(140deg, rgba(111, 247, 208, 0.92), rgba(92, 225, 230, 0.8));
}

/* 导航 */
.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

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

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--paper);
  background: rgba(111, 247, 208, 0.08);
}

.nav__link[aria-current="page"] {
  color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: inset 0 0 0 1px rgba(111, 247, 208, 0.42);
}

.nav__foot { display: none; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04241C;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav__meta {
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
}

/* 工具区 */
.header-utility {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-round {
  padding: 5px 12px;
  border: 1px solid rgba(159, 184, 176, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.site-header[data-scrolled="true"] .header-round {
  opacity: 1;
  transform: none;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--cyan-line);
  border-radius: 999px;
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.24s var(--ease), top 0.24s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 10px; }

.site-header[data-open="true"] .nav-toggle__bars::before {
  top: 5px;
  transform: rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars::after {
  top: 5px;
  transform: rotate(-45deg);
}

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

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--cyan-line);
  background: linear-gradient(180deg,
    rgba(11, 47, 38, 0.6) 0%,
    rgba(6, 35, 28, 1) 46%);
}

.footer-shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) 2fr;
  gap: 56px 48px;
  padding-bottom: clamp(48px, 6vw, 72px);
}

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

.footer-region {
  width: min(260px, 100%);
  color: rgba(111, 247, 208, 0.38);
}

.region-mark {
  width: 100%;
  height: auto;
}

.footer-note {
  max-width: 40ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-note .mono {
  color: var(--paper-soft);
  word-break: break-all;
}

.footer-note--muted {
  color: rgba(159, 184, 176, 0.72);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}

.footer-col__title {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.footer-col__latin {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--mist);
  text-transform: lowercase;
}

.footer-col__list li + li {
  margin-top: 10px;
}

.footer-col__link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--paper-soft);
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.footer-col__link:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

.footer-base {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: 22px 0 32px;
  border-top: 1px solid rgba(159, 184, 176, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}

.footer-legal,
.footer-copy {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.footer-copy .mono {
  color: var(--paper-soft);
}

/* ---------- 返回顶部（由 JS 创建） ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan-line);
  border-radius: 50%;
  background: rgba(11, 47, 38, 0.92);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
              visibility 0.24s var(--ease), border-color 0.2s var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--cyan);
  background: rgba(16, 71, 58, 0.96);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .brand__line { display: none; }
  .header-round { display: none; }
}

@media (max-width: 1080px) {
  .grid--7-5,
  .grid--8-4 { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  :root { --gutter: 16px; }

  body { font-size: 17px; line-height: 1.8; }

  .header-shell {
    gap: 10px;
    padding: 8px 8px 8px 12px;
  }

  .site-header[data-scrolled="true"] .header-shell {
    padding: 8px 8px 8px 12px;
  }

  .header-cta { display: none; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    padding: 104px 24px 48px;
    overflow-y: auto;
    background: linear-gradient(158deg, #06231C 0%, #0B2F26 56%, #10473A 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
                visibility 0.26s var(--ease);
  }

  .site-header[data-open="true"] .nav,
  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .nav__link {
    display: block;
    padding: 16px 6px;
    border-radius: 12px;
    border-bottom: 1px solid rgba(159, 184, 176, 0.16);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 6.6vw, 1.95rem);
    line-height: 1.25;
    color: var(--paper);
    background: transparent;
    box-shadow: none;
  }

  .nav__link:hover { background: transparent; }

  .nav__link[aria-current="page"] {
    color: var(--cyan);
    background: transparent;
    box-shadow: none;
    padding-left: 16px;
    border-left: 3px solid var(--cyan);
  }

  .nav__foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
  }

  .nav__cta { align-self: flex-start; }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }
}

@media (max-width: 560px) {
  .brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.96rem;
  }

  .brand__name { font-size: 0.98rem; }

  .nav__toggle,
  .nav-toggle { padding: 0 12px; }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 26px 18px;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    right: 14px;
    width: 48px;
    height: 48px;
  }
}

/* ---------- reduced motion ---------- */
@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;
    transition: none;
  }

  .band {
    transform: none !important;
  }
}
