/* ============================================================
   球王会体育 · 共享 Site Kit
   /assets/site.css
   ============================================================ */

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

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

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, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

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

/* ---------- 2. Design tokens ---------- */
:root {
  --night: #061826;
  --console: #0B2A45;
  --lake: #10B7A5;
  --lake-light: #62E0CF;
  --rape: #F5C542;
  --ref: #E23B3B;
  --mist: #F2F7FA;
  --steel: #8AA2B8;
  --line: #1D4F73;
  --white: #FFFFFF;

  --ink: #04141f;
  --mist-soft: rgba(242, 247, 250, 0.82);
  --console-glass: rgba(11, 42, 69, 0.74);

  --font-head: 'Barlow Condensed', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'Courier New', monospace;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 48px);

  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-pill: 999px;

  --shadow-panel: 0 24px 60px rgba(2, 9, 16, 0.5);
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

/* ---------- 3. Base typography & background ---------- */
body {
  min-height: 100vh;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--mist);
  background-color: var(--night);
  background-image:
    radial-gradient(1100px 520px at 82% -8%, rgba(16, 183, 165, 0.16), transparent 70%),
    radial-gradient(820px 460px at 4% 2%, rgba(29, 79, 115, 0.34), transparent 72%),
    linear-gradient(rgba(29, 79, 115, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 79, 115, 0.15) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-position: center top, center top, center top, center top;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--white);
  text-wrap: balance;
}

h3, h4 {
  line-height: 1.18;
}

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

p {
  text-wrap: pretty;
}

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

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

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

.section {
  padding-block: clamp(38px, 6vw, 78px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 26px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lake-light);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--rape);
}

.section-title {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.02;
}

.lede {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--mist-soft);
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 24, 38, 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -90px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--rape);
  color: #1a1200;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

.header-rail {
  background: var(--console);
  border-bottom: 1px solid var(--line);
}

.rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.rail-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--lake-light);
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.rail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ref);
  box-shadow: 0 0 0 4px rgba(226, 59, 59, 0.18);
  animation: railPulse 2.4s var(--ease) infinite;
}

@keyframes railPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(226, 59, 59, 0.14); }
  50% { box-shadow: 0 0 0 7px rgba(226, 59, 59, 0.04); }
}

.rail-note {
  font-size: 11.5px;
  color: var(--steel);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.header-main {
  position: relative;
}

.header-grid {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  min-height: 76px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--mist);
  transition: opacity 0.2s var(--ease);
}

.brand:hover {
  opacity: 0.86;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(142deg, var(--lake) 0%, #0a8d84 52%, var(--console) 100%);
  box-shadow: inset 0 0 0 1px rgba(98, 224, 207, 0.45);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 23px;
  line-height: 1;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--white);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--steel);
  line-height: 1.4;
}

.nav {
  margin-left: auto;
}

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

.nav-item {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--mist);
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--lake-light);
  opacity: 0.72;
}

.nav-link:hover {
  background: rgba(16, 183, 165, 0.16);
  color: var(--white);
}

.nav-link:hover .nav-idx {
  opacity: 1;
}

.nav-link[aria-current="page"] {
  background: var(--lake);
  color: var(--ink);
}

.nav-link[aria-current="page"] .nav-idx {
  color: var(--ink);
  opacity: 0.68;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 16px 10px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--console-glass);
  color: var(--mist);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--lake-light);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(29, 79, 115, 0.55);
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lake) 0%, var(--lake-light) 58%, var(--rape) 100%);
  transition: transform 0.12s linear;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-primary {
  background: var(--lake);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--rape);
  color: #191200;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--mist);
}

.btn-ghost:hover {
  border-color: var(--lake-light);
  color: var(--lake-light);
  transform: translateY(-2px);
}

.header-cta {
  flex: 0 0 auto;
  padding: 10px 18px;
  font-size: 16px;
}

/* ---------- 7. Content components ---------- */
.breadcrumb {
  padding-top: 22px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb-list li + li::before {
  content: "›";
  color: var(--lake);
  font-size: 14px;
  line-height: 1;
}

.breadcrumb-link {
  color: var(--steel);
  transition: color 0.2s var(--ease);
}

.breadcrumb-link:hover {
  color: var(--lake-light);
}

.breadcrumb-current {
  color: var(--mist);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

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

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(11, 42, 69, 0.94), rgba(6, 24, 38, 0.94));
  box-shadow: var(--shadow-panel);
}

.panel-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.16;
  color: var(--white);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--console-glass);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--lake);
  color: var(--lake-light);
}

.chip[aria-pressed="true"],
.chip[aria-selected="true"] {
  background: var(--lake);
  border-color: var(--lake);
  color: var(--ink);
  font-weight: 700;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(138, 162, 184, 0.16);
  color: var(--steel);
}

.pill-label--lake {
  background: rgba(16, 183, 165, 0.18);
  color: var(--lake-light);
}

.pill-label--rape {
  background: rgba(245, 197, 66, 0.16);
  color: var(--rape);
}

.pill-label--ref {
  background: rgba(226, 59, 59, 0.18);
  color: #FF8A8A;
}

.stat {
  display: grid;
  gap: 8px;
}

.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--rape);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(150deg, rgba(16, 183, 165, 0.22), rgba(6, 24, 38, 0.94) 62%),
    var(--console);
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--tall {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
}

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

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--steel);
}

.prose {
  max-width: 72ch;
}

.prose p {
  margin-bottom: 1.1em;
  color: var(--mist-soft);
}

.prose h2 {
  margin-top: 1.7em;
  margin-bottom: 0.6em;
  font-size: clamp(26px, 3.4vw, 36px);
}

.prose h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: clamp(20px, 2.4vw, 24px);
}

.prose ul,
.prose ol {
  margin-bottom: 1.2em;
}

.prose li {
  position: relative;
  margin-bottom: 0.6em;
  padding-left: 20px;
  color: var(--mist-soft);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--lake);
}

.prose a {
  color: var(--lake-light);
  border-bottom: 1px solid rgba(98, 224, 207, 0.45);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.prose a:hover {
  color: var(--rape);
  border-color: var(--rape);
}

.spy-link {
  display: block;
  padding: 9px 15px;
  border-left: 2px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--steel);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.spy-link:hover {
  color: var(--mist);
}

.spy-link[aria-current="true"] {
  border-left-color: var(--lake);
  background: rgba(16, 183, 165, 0.1);
  color: var(--mist);
}

/* ---------- 8. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  padding: clamp(44px, 7vw, 88px) 0 32px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(16, 183, 165, 0.16), transparent 70%),
    linear-gradient(180deg, #04121d 0%, var(--night) 55%, #030d16 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg,
    var(--lake) 0 20%,
    var(--lake-light) 20% 32%,
    var(--rape) 32% 46%,
    var(--ref) 46% 52%,
    var(--line) 52% 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -10%;
  width: 40%;
  background: linear-gradient(180deg, rgba(29, 79, 115, 0.38), transparent 72%);
  clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%);
  opacity: 0.55;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 90px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  background: linear-gradient(102deg, var(--white) 0%, var(--mist) 34%, var(--lake-light) 74%, var(--rape) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.footer-summary {
  max-width: 34ch;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist-soft);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--console-glass);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.copy-chip:hover {
  border-color: var(--lake);
  background: rgba(16, 183, 165, 0.14);
}

.copy-chip-label {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
  transition: color 0.2s var(--ease);
}

.copy-chip-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-chip[data-copied="true"] {
  border-color: var(--rape);
  color: var(--rape);
}

.copy-chip[data-copied="true"] .copy-chip-label {
  color: var(--rape);
}

.footer-address {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--lake-light);
}

.footer-links {
  display: grid;
  gap: 2px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: 15px;
  color: var(--mist-soft);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-link::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--lake-light);
  transform: translateX(3px);
}

.footer-link:hover::before {
  background: var(--rape);
}

.footer-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--steel);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.legal-link {
  padding-bottom: 1px;
  font-size: 13px;
  color: var(--steel);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.legal-link:hover {
  color: var(--lake-light);
  border-color: var(--lake);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--lake);
  border-radius: var(--r-pill);
  background: rgba(11, 42, 69, 0.94);
  color: var(--lake-light);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
              visibility 0.24s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

.to-top:hover {
  color: var(--rape);
  border-color: var(--rape);
}

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

/* ---------- 9. Responsive ---------- */
@media (max-width: 1080px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    padding: 12px var(--gutter) 20px;
    background: #082238;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px rgba(2, 9, 16, 0.6);
    max-height: min(74vh, 620px);
    overflow-y: auto;
  }

  .nav[data-open="true"] {
    display: block;
    animation: navDrop 0.24s var(--ease) both;
  }

  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

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

  .nav-link {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--r-md);
    font-size: 20px;
  }

  .nav-idx {
    font-size: 12px;
  }

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

  .header-cta {
    display: none;
  }
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 108px;
  }

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

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

  .lede {
    font-size: 16px;
  }
}

@media (max-width: 620px) {
  .header-grid {
    min-height: 64px;
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 20px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-tag {
    display: none;
  }

  .rail-note {
    display: none;
  }

  .footer-meta {
    justify-content: flex-start;
  }

  .to-top {
    padding: 9px 14px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

  .rail-dot {
    animation: none;
    box-shadow: 0 0 0 4px rgba(226, 59, 59, 0.18);
  }

  .nav[data-open="true"] {
    animation: none;
  }

  .btn:hover,
  .footer-link:hover {
    transform: none;
  }

  .to-top {
    transform: none;
  }
}
