/* ============================================================
   球王会主站 · 共享样式 /assets/site.css
   主场夜场数据舱：深墨绿底 + 荧光青柠数据 + 暖金关键标记
   ============================================================ */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

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

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

/* ---------- tokens ---------- */
:root {
  --ink: #061A14;
  --panel: #0B2A21;
  --card: #123B2F;
  --edge: #1C5A47;
  --lime: #C8FF3D;
  --gold: #F0C15C;
  --red: #8E2F35;
  --text: #E9F5EC;
  --muted: #9CB8AA;
  --aqua: #7DF0C1;

  --font-display: "HarmonyOS Sans SC Heavy", "MiSans Heavy", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-index: "HarmonyOS Sans SC Light", "MiSans Light", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-body: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", "Menlo", "Consolas", monospace;

  --shell-max: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.6rem);
  --gap: clamp(1rem, 2.4vw, 1.75rem);
  --radius: 14px;
  --line: rgba(28, 90, 71, 0.62);
  --glass: rgba(18, 59, 47, 0.42);
  --ease: cubic-bezier(0.22, 0.85, 0.24, 1);
  --header-h: 76px;
}

/* ---------- base ---------- */
body {
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 540px at 84% -14%, rgba(125, 240, 193, 0.14), transparent 68%),
    radial-gradient(860px 460px at 4% 0%, rgba(200, 255, 61, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(11, 42, 33, 0.62) 0%, rgba(6, 26, 20, 0) 46%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.35rem); letter-spacing: -0.015em; }

p { color: #CFE3D6; }

::selection {
  background: var(--lime);
  color: #06251B;
}

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

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

.page-main {
  display: block;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3.5rem, 8vw, 6rem);
}

.content-shell {
  max-width: 72ch;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--lime), var(--edge) 42%, rgba(28, 90, 71, 0) 100%);
  opacity: 0.85;
  margin-block: clamp(1.5rem, 3vw, 2.4rem);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  padding: 0.65rem 1rem;
  background: var(--lime);
  color: #06251B;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-radius: 3px;
  transform: translateY(-160%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  isolation: isolate;
  background: linear-gradient(180deg,
    rgba(6, 26, 20, 0.92) 0%,
    rgba(6, 26, 20, 0.62) 62%,
    rgba(6, 26, 20, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: var(--panel);
  border-bottom-color: var(--edge);
  box-shadow: 0 22px 46px -34px #000;
}

.header-rail {
  border-bottom: 1px solid rgba(28, 90, 71, 0.5);
}

.rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.rail-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.rail-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.16);
  animation: railPulse 2.6s ease-in-out infinite;
}

.rail-meta {
  color: var(--gold);
  letter-spacing: 0.12em;
}

@keyframes railPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.14); }
  50% { box-shadow: 0 0 0 6px rgba(200, 255, 61, 0.04); }
}

.header-main { position: relative; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: var(--header-h);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  color: var(--text);
}

.brand-mark {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  width: 38px;
  height: 38px;
  padding-left: 9px;
  background: linear-gradient(150deg, var(--lime), var(--aqua));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand-mark span {
  display: block;
  height: 3px;
  width: 20px;
  background: #08251B;
  border-radius: 1px;
}

.brand-mark span:nth-child(2) { width: 15px; }
.brand-mark span:nth-child(3) { width: 10px; background: var(--gold); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--lime);
  line-height: 1.3;
}

/* toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-inline-start: auto;
  padding: 0.5rem 0.85rem 0.5rem 0.7rem;
  border: 1px solid var(--edge);
  border-radius: 3px;
  background: rgba(18, 59, 47, 0.55);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

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

.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--lime);
  transition: transform 0.24s var(--ease), opacity 0.18s linear;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) 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(-5px) rotate(-45deg); }

/* nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-inline-start: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.7rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 3px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.26rem;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}

.nav-list a:hover { color: var(--lime); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] {
  color: var(--gold);
  background: rgba(240, 193, 92, 0.08);
}

.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--gold);
}

.nav-cta { flex: 0 0 auto; }

/* scroll meter */
.header-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(28, 90, 71, 0.4);
  pointer-events: none;
}

.header-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--lime) 62%, var(--gold));
  transition: width 0.12s linear;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease);
}

.btn:hover::after { transform: scaleX(1); }

.btn-primary {
  background: var(--lime);
  color: #06251B;
}

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

.btn-ghost {
  background: rgba(18, 59, 47, 0.45);
  border-color: var(--edge);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-gold {
  background: var(--gold);
  color: #241A05;
}

.btn-gold:hover {
  background: #FFD277;
  transform: translateY(-1px);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  background: var(--panel);
  border-top: 1px solid var(--edge);
  color: var(--text);
  overflow: hidden;
}

.footer-slash {
  height: 10px;
  border-top: 1px solid rgba(28, 90, 71, 0.9);
  background:
    repeating-linear-gradient(115deg,
      var(--lime) 0 10px,
      transparent 10px 34px,
      var(--gold) 34px 44px,
      transparent 44px 82px);
  opacity: 0.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.45fr 0.95fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  padding-block: clamp(2.4rem, 5vw, 3.6rem) clamp(1.8rem, 3.5vw, 2.6rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.footer-brandline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.025em;
  color: var(--text);
}

.footer-brandsep {
  color: var(--lime);
  margin-inline: 0.15rem;
}

.footer-summary {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-cta { margin-top: 0.3rem; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
  align-content: start;
}

.footer-col-title {
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: rgba(233, 245, 236, 0.86);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: -0.7rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--lime);
  transform: translateX(0.75rem);
}

.footer-links a:hover::before { opacity: 1; }

.footer-contact {
  position: relative;
  padding: 1.15rem 1.15rem 1.25rem;
  background: linear-gradient(158deg, rgba(18, 59, 47, 0.92), rgba(11, 42, 33, 0.55));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.footer-contact-title {
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--gold);
}

.footer-contact-list {
  display: grid;
  gap: 0.75rem;
}

.footer-contact-list li {
  display: grid;
  gap: 0.15rem;
}

.footer-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.footer-v {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}

.footer-contact-note {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(28, 90, 71, 0.7);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-legal {
  border-top: 1px solid rgba(28, 90, 71, 0.7);
  background: rgba(6, 26, 20, 0.55);
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem;
}

.footer-legal-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-icp { color: var(--gold); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { margin-bottom: clamp(1.2rem, 3vw, 2rem); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--edge);
}

.breadcrumbs a { color: var(--muted); transition: color 0.2s var(--ease); }
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs [aria-current="page"] { color: var(--gold); }

/* ---------- typographic blocks ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--lime);
  opacity: 0.8;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  color: #D5E9DB;
  max-width: 62ch;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.section-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 58ch;
}

.index-num {
  display: block;
  font-family: var(--font-index);
  font-weight: 200;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--edge);
}

.data-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

/* ---------- cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), background-color 0.24s var(--ease);
}

.card:hover {
  border-color: rgba(200, 255, 61, 0.5);
  transform: translateY(-2px);
}

.card-glass {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  background: var(--glass);
  border: 1px solid rgba(28, 90, 71, 0.75);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.24s var(--ease), background-color 0.24s var(--ease);
}

.card-glass:hover { border-color: rgba(125, 240, 193, 0.6); }

/* ---------- tags & pills ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.tag--lime { border-color: rgba(200, 255, 61, 0.55); color: var(--lime); }
.tag--gold { border-color: rgba(240, 193, 92, 0.55); color: var(--gold); }
.tag--red { border-color: rgba(142, 47, 53, 0.85); color: #E4A0A4; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--edge);
  border-radius: 3px;
  background: rgba(18, 59, 47, 0.5);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.pill:hover { border-color: var(--lime); color: var(--lime); }

.pill[aria-pressed="true"],
.pill[data-active="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: #06251B;
}

/* ---------- media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(125, 240, 193, 0.14), rgba(18, 59, 47, 0.9) 46%, rgba(6, 26, 20, 0.95));
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 26, 20, 0) 42%, rgba(6, 26, 20, 0.78) 100%);
  pointer-events: none;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-caption {
  position: relative;
  z-index: 1;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- prose ---------- */
.prose { max-width: 70ch; }

.prose p {
  font-size: 16px;
  line-height: 1.8;
  color: #CFE3D6;
}

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

.prose h2 {
  margin-top: 2.1em;
  margin-bottom: 0.55em;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}

.prose h3 {
  margin-top: 1.7em;
  margin-bottom: 0.45em;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.45em;
  margin-block: 0.9em;
  padding-left: 1.25em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { color: #CFE3D6; line-height: 1.75; }
.prose li::marker { color: var(--lime); }
.prose strong { color: var(--lime); font-weight: 700; }
.prose a { color: var(--aqua); border-bottom: 1px solid rgba(125, 240, 193, 0.4); }

/* ---------- accordion ---------- */
.accordion {
  display: grid;
  gap: 0.7rem;
}

.accordion-item {
  border: 1px solid var(--edge);
  border-left: 3px solid var(--edge);
  border-radius: 3px;
  background: rgba(18, 59, 47, 0.45);
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.accordion-item:has(.accordion-trigger[aria-expanded="true"]) {
  border-left-color: var(--lime);
  background: rgba(18, 59, 47, 0.75);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  text-align: start;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.accordion-trigger:hover { color: var(--lime); }

.accordion-trigger::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--lime);
  transition: transform 0.24s var(--ease);
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "−";
  transform: rotate(180deg);
}

.accordion-panel {
  padding: 0 1.1rem 1.05rem;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.accordion-panel[hidden] { display: none; }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-reveal="shown"] {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  html { scroll-padding-top: 92px; }

  .header-rail { display: none; }

  .header-main { position: relative; z-index: 2; }

  .header-inner {
    min-height: var(--header-h);
    gap: 0.8rem;
  }

  .brand-name { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; }

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

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    margin: 0;
    padding: calc(var(--header-h) + 42px) var(--gutter) 2rem;
    background: rgba(6, 26, 20, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.28s var(--ease), transform 0.34s var(--ease), visibility 0.34s linear;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    counter-reset: navIndex;
  }

  .nav-list li {
    counter-increment: navIndex;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .site-nav[data-open] .nav-list li { opacity: 1; transform: none; }
  .site-nav[data-open] .nav-list li:nth-child(1) { transition-delay: 0.04s; }
  .site-nav[data-open] .nav-list li:nth-child(2) { transition-delay: 0.08s; }
  .site-nav[data-open] .nav-list li:nth-child(3) { transition-delay: 0.12s; }
  .site-nav[data-open] .nav-list li:nth-child(4) { transition-delay: 0.16s; }
  .site-nav[data-open] .nav-list li:nth-child(5) { transition-delay: 0.2s; }
  .site-nav[data-open] .nav-list li:nth-child(6) { transition-delay: 0.24s; }

  .nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    background: var(--card);
    border: 1px solid var(--edge);
    border-left: 3px solid var(--edge);
    border-radius: 3px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .nav-list a::before {
    content: "0" counter(navIndex);
    order: -1;
    margin-inline-end: 0.75rem;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--muted);
  }

  .nav-list a::after { display: none; }

  .nav-list a[aria-current="page"] {
    background: rgba(200, 255, 61, 0.1);
    border-left-color: var(--gold);
    color: var(--gold);
  }

  .nav-list a[aria-current="page"]::before { color: var(--gold); }

  .nav-cta {
    width: 100%;
    padding-block: 1rem;
    font-size: 15px;
  }

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

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

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

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-column: auto; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
  .footer-legal-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { clip-path: none; }
}

@media (max-width: 420px) {
  .brand-tag { display: none; }
  .nav-toggle-label { display: none; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .rail-dot { animation: none; }
  .card:hover { transform: none; }
  .btn-primary:hover,
  .btn-gold:hover { transform: none; }
  .footer-links a:hover { transform: none; }
}
