/* ==========================================================================
   大江体育赛事 · 共享样式 /assets/site.css
   01 Reset  02 变量  03 基础排版  04 焦点与无障碍  05 通用布局
   06 通用组件  07 头部  08 页脚  09 动效  10 响应式与降级
   ========================================================================== */

/* 01 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 { margin: 0; }

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

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

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

table { border-collapse: collapse; width: 100%; }

/* 02 变量 ----------------------------------------------------------------- */
:root {
  /* 品牌色 */
  --jiang: #0E6E6A;
  --jiang-deep: #0A5652;
  --ink: #0B1F2A;
  --mist: #F4F7F5;
  --mist-2: #DDE8E4;
  --graphite: #3A4A4F;
  --orange: #C7431F;
  --orange-deep: #A83717;
  --yellow: #F2B705;
  --cyan: #17C3B2;
  --violet: #5B4B8A;
  --white: #FFFFFF;

  /* 线条与阴影 */
  --line: rgba(58, 74, 79, 0.16);
  --line-2: rgba(58, 74, 79, 0.32);
  --line-light: rgba(255, 255, 255, 0.14);
  --line-light-2: rgba(255, 255, 255, 0.28);
  --shadow: 0 1px 0 rgba(11, 31, 42, 0.04), 0 12px 26px -20px rgba(11, 31, 42, 0.55);
  --shadow-lift: 0 18px 34px -24px rgba(11, 31, 42, 0.62);

  /* 字体 */
  --head: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, "Courier New", monospace;

  /* 站点尺度 */
  --maxw: 1240px;
  --gutter: 24px;
  --radius: 2px;
  --ease: cubic-bezier(0.32, 0.72, 0.32, 1);
}

/* 03 基础排版 ------------------------------------------------------------- */
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--graphite);
  background-color: var(--mist);
  background-image: repeating-linear-gradient(180deg, rgba(11, 31, 42, 0.016) 0 1px, transparent 1px 4px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(34px, 4.6vw, 60px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: clamp(19px, 1.7vw, 24px); }
h4 { font-size: 17px; letter-spacing: 0; }

p { margin: 0; }

a {
  color: var(--jiang);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--orange); }

strong, b { font-weight: 700; color: var(--ink); }

code, kbd, samp, pre { font-family: var(--mono); font-size: 0.92em; }

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

/* 04 焦点与无障碍 --------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 8px; color: var(--white); }

/* 05 通用布局 ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 64px 0; }
.section--tint { background: var(--mist-2); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, 0.76); }
.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--white); }
.section--ink a { color: var(--cyan); }

.split { display: grid; grid-template-columns: 1fr; gap: 28px; }
.split--reverse > *:first-child { order: 2; }

.grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.grid--2,
.grid--3 { grid-template-columns: 1fr; }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 32px 0;
}
.section--ink .rule { background: var(--line-light); }

/* 06 通用组件 ------------------------------------------------------------- */
.mono,
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--jiang);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}
.section--ink .eyebrow { color: var(--cyan); }
.section--ink .eyebrow::before { background: var(--yellow); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--jiang);
  background: rgba(14, 110, 106, 0.08);
  border: 1px solid rgba(14, 110, 106, 0.24);
  border-radius: var(--radius);
}
.tag--orange { color: var(--orange); background: rgba(199, 67, 31, 0.08); border-color: rgba(199, 67, 31, 0.26); }
.tag--violet { color: var(--violet); background: rgba(91, 75, 138, 0.09); border-color: rgba(91, 75, 138, 0.26); }
.tag--yellow { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--jiang);
  color: var(--jiang);
}
.btn--primary { background: var(--jiang); border-color: var(--jiang); color: var(--white); }
.btn--primary:hover { background: var(--jiang-deep); border-color: var(--jiang-deep); color: var(--white); }
.btn--orange { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--on-dark { background: transparent; border-color: var(--line-light-2); color: var(--white); }
.btn--on-dark:hover { border-color: var(--yellow); color: var(--yellow); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--jiang);
  box-shadow: var(--shadow-lift);
}
.card--cut { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.card--accent { border-top: 2px solid var(--jiang); }
.section--ink .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-light);
  box-shadow: none;
}
.section--ink .card:hover { border-color: var(--cyan); }

.stat { display: grid; gap: 4px; }
.stat-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--graphite);
}
.section--ink .stat-value { color: var(--white); }
.section--ink .stat-label { color: rgba(255, 255, 255, 0.6); }

.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--graphite);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb a {
  color: var(--jiang);
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 110, 106, 0.35);
}
.breadcrumb a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(58, 74, 79, 0.4);
}
.breadcrumb [aria-current="page"] { color: var(--graphite); }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul,
.prose ol { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote {
  border-left: 3px solid var(--jiang);
  padding: 4px 0 4px 18px;
  color: var(--ink);
  font-weight: 600;
}

.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.img-frame img,
.img-frame picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--tilt { transform: rotate(-1.2deg); }
.img-frame--empty::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--jiang);
  opacity: 0.6;
}

/* 07 头部 ---------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 90;
  background: var(--mist);
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 300;
  background: rgba(11, 31, 42, 0.08);
  pointer-events: none;
}
.scroll-meter-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--jiang), var(--cyan) 62%, var(--yellow));
}

/* 索引栏 */
.header-rail { background: var(--ink); color: rgba(255, 255, 255, 0.68); }
.rail-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
}
.rail-mono { white-space: nowrap; }
.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}
.rail-dot {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.16);
  animation: railPulse 2.4s var(--ease) infinite;
}
@keyframes railPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(242, 183, 5, 0.04); }
}

/* 品牌条 */
.header-bar {
  position: relative;
  background: var(--mist);
  border-bottom: 1px solid var(--line-2);
}
.header-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(180px, 28vw);
  height: 3px;
  background: var(--jiang);
}
.bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--jiang);
  color: var(--white);
  font-family: var(--head);
  font-size: 19px;
  font-weight: 800;
  border-bottom: 3px solid var(--yellow);
  border-radius: var(--radius);
  transition: background-color 0.18s var(--ease);
}
.brand:hover .brand-mark { background: var(--jiang-deep); }
.brand-text { display: block; }
.brand-name {
  display: block;
  font-family: var(--head);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.brand-tag {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--jiang);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--jiang); color: var(--jiang); }
.nav-toggle[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.nav-toggle-bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle-bars span { display: block; height: 2px; background: currentColor; }

/* 主导航 */
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 11px;
  font-size: 15px;
  font-weight: 600;
  color: var(--graphite);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--jiang);
  background: rgba(14, 110, 106, 0.06);
  border-bottom-color: var(--yellow);
}
.nav-link[aria-current="page"] {
  color: var(--jiang);
  background: rgba(14, 110, 106, 0.07);
  border-bottom-color: var(--jiang);
}
.nav-index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--jiang);
  opacity: 0.55;
}
.nav-link[aria-current="page"] .nav-index { opacity: 1; color: var(--orange); }

.nav-foot { display: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.nav-cta:hover { background: var(--orange-deep); color: var(--white); transform: translateY(-2px); }

.nav-scrim { display: none; }

/* 赛程带 */
.schedule-band {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.band-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
}
.band-scroll {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  padding: 2px 0 4px;
  cursor: grab;
}
.band-scroll.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.band-scroll::-webkit-scrollbar { height: 4px; }
.band-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.24); }
.band-scroll::-webkit-scrollbar-track { background: transparent; }

.match-chip {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "round state"
    "teams score";
  gap: 1px 12px;
  min-width: 158px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.match-chip:hover,
.match-chip:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(23, 195, 178, 0.12);
  color: var(--white);
}
.chip-round {
  grid-area: round;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--yellow);
}
.chip-state {
  grid-area: state;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: right;
  color: rgba(255, 255, 255, 0.5);
}
.chip-state--live { color: var(--cyan); }
.chip-teams {
  grid-area: teams;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--white);
}
.chip-score {
  grid-area: score;
  font-family: var(--mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--white);
}

.band-controls { display: flex; gap: 6px; flex: 0 0 auto; }
.band-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line-light-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.band-btn:hover { color: var(--yellow); border-color: var(--yellow); background: rgba(242, 183, 5, 0.1); }
.band-btn:disabled { opacity: 0.35; cursor: default; }

/* 08 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--line-light);
}
.footer-frame {
  position: absolute;
  top: -1px;
  left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  width: 96px;
  height: 3px;
  background: var(--yellow);
}
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 52px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--jiang);
  color: var(--white);
  font-family: var(--head);
  font-size: 20px;
  font-weight: 800;
  border-bottom: 3px solid var(--yellow);
  border-radius: var(--radius);
}
.footer-name {
  font-family: var(--head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--white);
}
.footer-slogan {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.7;
  color: var(--cyan);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer-col-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--yellow);
  margin-bottom: 12px;
}
.footer-links { display: grid; gap: 8px; }
.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible { color: var(--white); border-bottom-color: var(--cyan); }
.footer-contact-line {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.6);
  overflow-wrap: anywhere;
}
.footer-meta {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.46);
}
.footer-icp,
.footer-copy { white-space: nowrap; }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--line-light-2);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--cyan); border-color: var(--cyan); border-left-color: var(--yellow); }

/* 09 动效 ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 10 响应式与降级 --------------------------------------------------------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .section { padding: 84px 0; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: minmax(240px, 1fr) 2.2fr; align-items: start; padding-top: 62px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .split { grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr); gap: 36px; }
  .split--reverse { grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr); }
  .split--reverse > *:first-child { order: 0; }
}

@media (max-width: 720px) {
  .rail-hide { display: none; }
}

@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(11, 31, 42, 0.56);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s var(--ease), visibility 0.24s var(--ease);
  }
  .site-header[data-nav-open="true"] .nav-scrim { opacity: 1; visibility: visible; }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 120;
    width: min(86vw, 340px);
    margin: 0;
    padding: 22px 20px 30px;
    display: flex;
    flex-direction: column;
    background: var(--ink);
    border-left: 1px solid var(--line-light);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform 0.28s var(--ease);
  }
  .site-nav[data-open="true"] { transform: translateX(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line-light); }
  .nav-link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 4px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.86);
    border-bottom: 2px solid transparent;
  }
  .nav-link:hover,
  .nav-link:focus-visible {
    color: var(--white);
    background: rgba(23, 195, 178, 0.12);
    border-bottom-color: transparent;
  }
  .nav-link[aria-current="page"] {
    color: var(--cyan);
    background: transparent;
    border-bottom-color: transparent;
  }
  .nav-index { color: var(--yellow); opacity: 0.9; }
  .nav-link[aria-current="page"] .nav-index { color: var(--yellow); }

  .nav-foot { display: block; margin-top: 22px; }
  .nav-cta { width: 100%; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; line-height: 1.8; }
  .bar-inner { min-height: 64px; gap: 12px; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
  .brand-name { font-size: 17px; }
  .brand-tag { font-size: 9.5px; letter-spacing: 0.12em; }
  .band-controls { display: none; }
  .to-top { right: 12px; bottom: 12px; }
}

@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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rail-dot { animation: none; }
}
