/* ============================================================
   latest-hth-sports.com.cn — shared site kit
   Blueprint frame · numbered archive · near-monochrome blue
   ============================================================ */

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

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

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

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

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

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

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

:root {
  --ink-900: #060D1E;
  --ink-800: #0C1730;
  --ink-700: #152547;
  --ink-600: #223A69;
  --steel-500: #3F5C90;
  --fog-200: #A9B8D4;
  --snow-050: #F2F5FA;
  --cyan-400: #25E0D0;
  --cyan-200: #7CF2E8;
  --orange-400: #FF7A2F;
  --gold-300: #FFC24D;
  --on-cyan: #04231F;

  --line-soft: rgba(63, 92, 144, 0.38);
  --line-grid: rgba(34, 58, 105, 0.55);
  --fog-quiet: rgba(169, 184, 212, 0.64);

  --font-sans: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail-w: 8.75rem;
  --topbar-h: 3.9rem;
  --container: 1180px;

  --radius-l: 26px;
  --radius-m: 20px;
  --radius-s: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 22px 48px -30px rgba(0, 0, 0, 0.92);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  :root { --topbar-h: 4.4rem; }
}

/* ---------- base / blueprint canvas ---------- */

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--ink-900);
  color: var(--fog-200);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-grid) 1px, transparent 1px);
  background-size: 88px 88px, 88px 88px;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(125% 95% at 50% 0%, #000 25%, transparent 82%);
  mask-image: radial-gradient(125% 95% at 50% 0%, #000 25%, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 92% 4%, rgba(37, 224, 208, 0.12), transparent 70%),
    radial-gradient(55% 50% at 4% 96%, rgba(255, 122, 47, 0.07), transparent 72%);
}

main { position: relative; z-index: 1; }

#main-content { scroll-margin-top: calc(var(--topbar-h) + 1.25rem); }

h1, h2, h3, h4 {
  color: var(--snow-050);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; }

p { text-wrap: pretty; }

::selection { background: var(--cyan-400); color: var(--on-cyan); }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------- skip link ---------- */

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 50%;
  z-index: 200;
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--cyan-400);
  color: var(--on-cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translate(-50%, -180%);
  transition: transform 0.24s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 2px solid var(--snow-050);
  outline-offset: 3px;
}

/* ---------- header shell ---------- */

.site-header {
  position: relative;
  z-index: 60;
}

/* rail: mobile = display contents */
.rail { display: contents; }
.rail__brand, .rail__foot { display: none; }

/* top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 65;
  background: rgba(6, 13, 30, 0.88);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--topbar-h);
  padding: 0.45rem clamp(1rem, 3vw, 2rem);
}

.topbar__meta {
  display: none;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog-quiet);
  white-space: nowrap;
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(37, 224, 208, 0.18);
}

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

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(37, 224, 208, 0.5);
  border-radius: 12px;
  background: radial-gradient(circle at 28% 18%, rgba(37, 224, 208, 0.24), transparent 72%);
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--cyan-400);
  opacity: 0.9;
}

.brand__mark::before { width: 15px; height: 1px; translate: -50% -50%; }
.brand__mark::after { width: 1px; height: 15px; translate: -50% -50%; }

.brand__mark-arc {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(124, 242, 232, 0.45);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-24deg);
}

.brand__text {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--snow-050);
}

.brand__sub {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog-quiet);
}

.brand--compact { display: inline-flex; }

/* league switch + chips */
.league-switch { display: none; }

.chip {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fog-200);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover { background: rgba(37, 224, 208, 0.12); color: var(--snow-050); }

.chip[aria-pressed="true"] {
  background: var(--cyan-400);
  color: var(--on-cyan);
  box-shadow: 0 8px 22px -14px rgba(37, 224, 208, 0.95);
}

/* subscription state */
.sub-state {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(21, 37, 71, 0.55);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fog-200);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.sub-state__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel-500);
  box-shadow: 0 0 0 3px rgba(63, 92, 144, 0.2);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.sub-state[aria-pressed="true"] {
  border-color: rgba(37, 224, 208, 0.55);
  color: var(--snow-050);
}

.sub-state[aria-pressed="true"] .sub-state__dot {
  background: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(37, 224, 208, 0.24);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--primary {
  background: var(--cyan-400);
  color: var(--on-cyan);
  box-shadow: 0 12px 28px -16px rgba(37, 224, 208, 0.95);
}

.btn--primary:hover { background: var(--cyan-200); transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--line-soft);
  background: rgba(21, 37, 71, 0.45);
  color: var(--snow-050);
}

.btn--ghost:hover { border-color: rgba(37, 224, 208, 0.6); transform: translateY(-2px); }

.btn--sm { padding: 0.55rem 1rem; font-size: 13px; }

.topbar__cta { display: none; margin-inline-start: auto; }

/* mobile toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  background: rgba(21, 37, 71, 0.5);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: rgba(37, 224, 208, 0.55); }

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--snow-050);
  transition: transform 0.24s var(--ease), background 0.24s var(--ease);
}

.nav-toggle__bars { position: relative; }

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(34, 58, 105, 0.45);
  overflow: hidden;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-400), var(--cyan-200) 62%, var(--orange-400));
}

/* nav list (base) */
.nav-list { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-item { display: block; }

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.75rem 0.6rem 0.9rem;
  border-radius: var(--radius-s);
  color: var(--fog-200);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--cyan-400);
  translate: 0 -50%;
  transition: height 0.2s var(--ease);
}

.nav-link:hover { background: rgba(37, 224, 208, 0.07); color: var(--snow-050); }
.nav-link:hover::before { height: 58%; }

.nav-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--fog-quiet);
}

.nav-label { font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: 0.01em; }

.nav-link[aria-current="page"] {
  background: rgba(37, 224, 208, 0.1);
  color: var(--snow-050);
}

.nav-link[aria-current="page"]::before { height: 70%; background: var(--cyan-400); }
.nav-link[aria-current="page"] .nav-index { color: var(--cyan-400); }

.nav-extra { display: flex; margin-top: 1.25rem; }
.nav-extra__btn { width: 100%; }

/* ---------- mobile drawer ---------- */

@media (max-width: 1023px) {
  .rail__nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--topbar-h);
    z-index: 64;
    display: block;
    max-height: calc(100vh - var(--topbar-h));
    max-height: calc(100dvh - var(--topbar-h));
    overflow-y: auto;
    padding: 1rem clamp(1rem, 4vw, 1.5rem) 1.6rem;
    background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.95);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s linear;
  }

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

  .nav-list { gap: 0; }

  .nav-link {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 0.6rem;
    border-bottom: 1px dashed rgba(63, 92, 144, 0.3);
    border-radius: 0;
  }

  .nav-link::before { display: none; }
  .nav-link:hover { background: rgba(37, 224, 208, 0.06); }
  .nav-label { font-size: 16px; }
  .nav-index { font-size: 12px; }
  .nav-link[aria-current="page"] { background: rgba(37, 224, 208, 0.08); border-radius: var(--radius-s); }
}

/* ---------- desktop rail frame ---------- */

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: var(--rail-w);
    padding: 1.35rem 0.85rem 1.2rem;
    background: linear-gradient(180deg, rgba(12, 23, 48, 0.97), rgba(6, 13, 30, 0.98));
    border-right: 1px solid var(--line-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .rail__brand { display: block; }

  .brand--rail {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .brand--rail .brand__text { font-size: 13.5px; line-height: 1.3; }
  .brand--rail .brand__sub { letter-spacing: 0.16em; }

  .rail__nav {
    position: static;
    flex: 1;
    margin-top: 1.75rem;
    max-height: none;
    overflow-y: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-extra { display: none; }

  .rail__foot {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(63, 92, 144, 0.32);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--fog-quiet);
    line-height: 1.7;
  }

  .rail__edition { color: var(--cyan-400); }

  .brand--compact { display: none; }
  .nav-toggle { display: none; }
  .topbar__meta { display: inline-flex; margin-inline-end: auto; }
  .league-switch { display: flex; margin-inline-start: 0.5rem; }

  .league-switch {
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    background: rgba(12, 23, 48, 0.6);
  }

  .sub-state { display: inline-flex; }
  .topbar__cta { display: inline-flex; margin-inline-start: 0; }
}

@media (min-width: 640px) {
  .topbar__cta { display: inline-flex; }
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(12, 23, 48, 0.96), rgba(6, 13, 30, 1));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

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

.footer-col--brand .brand__text { font-size: 16px; }

.footer-pitch {
  margin-top: 1rem;
  max-width: 32ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fog-200);
}

.footer-edition {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-quiet);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.footer-col__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(63, 92, 144, 0.35);
}

.footer-list { display: grid; gap: 0.55rem; font-size: 14.5px; }

.footer-nav a,
.footer-list a {
  color: var(--fog-200);
  transition: color 0.2s var(--ease), padding-inline-start 0.2s var(--ease);
}

.footer-nav a:hover,
.footer-list a:hover { color: var(--cyan-400); padding-inline-start: 0.25rem; }

.footer-list--contact { gap: 0.85rem; }

.footer-key {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--fog-quiet);
}

.footer-val {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fog-200);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 1.1rem;
  max-width: 26ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--fog-quiet);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem) 1.6rem;
  border-top: 1px solid rgba(63, 92, 144, 0.28);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fog-quiet);
}

.footer-legal { color: var(--fog-200); }

.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.footer-legal-links a { color: var(--fog-quiet); transition: color 0.2s var(--ease); }
.footer-legal-links a:hover { color: var(--cyan-400); }

.footer-copy { color: var(--fog-quiet); }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.25fr 1fr; }
  .footer-col--brand { grid-column: auto; }
}

/* ---------- shared layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section--alt {
  background: linear-gradient(180deg, rgba(12, 23, 48, 0.9), rgba(12, 23, 48, 0.5));
  border-block: 1px solid rgba(63, 92, 144, 0.25);
}

.section-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 62ch;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--cyan-400);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fog-quiet);
}

.lede {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.72;
  color: var(--fog-200);
}

.rule {
  height: 1px;
  margin-block: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(90deg, rgba(63, 92, 144, 0.55), rgba(63, 92, 144, 0.08));
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--fog-200);
}

.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.prose h3 { margin-top: 1.7em; }
.prose strong { color: var(--snow-050); }
.prose ul, .prose ol { display: grid; gap: 0.5rem; padding-left: 1.15rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--cyan-200); text-decoration: underline; text-underline-offset: 4px; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1.25rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--fog-quiet);
}

.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before { content: "/"; color: var(--steel-500); }
.breadcrumb a { color: var(--fog-200); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan-400); }
.breadcrumb [aria-current="page"] { color: var(--snow-050); }

/* grid */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--split { grid-template-columns: 1fr; }

@media (min-width: 900px) {
  .grid--split { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

/* card = archive folder */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  background: linear-gradient(168deg, rgba(21, 37, 71, 0.92), rgba(12, 23, 48, 0.94));
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.card:hover { transform: translateY(-4px); border-color: rgba(37, 224, 208, 0.55); }

.card__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.card__index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--fog-quiet);
}

.card__title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--snow-050);
}

.card__text { font-size: 14.5px; line-height: 1.7; color: var(--fog-200); }

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(63, 92, 144, 0.32);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--fog-quiet);
}

/* tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(63, 92, 144, 0.5);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog-200);
}

.tag--accent {
  border-color: rgba(37, 224, 208, 0.5);
  background: rgba(37, 224, 208, 0.09);
  color: var(--cyan-400);
}

.tag--alert {
  border-color: rgba(255, 122, 47, 0.5);
  background: rgba(255, 122, 47, 0.09);
  color: var(--orange-400);
}

/* stat block */
.stat { display: grid; gap: 0.3rem; }

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--snow-050);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog-quiet);
}

/* media / image containers */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 100% at 18% 0%, rgba(37, 224, 208, 0.16), transparent 62%),
    linear-gradient(158deg, var(--ink-700), var(--ink-900));
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(34, 58, 105, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 58, 105, 0.5) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.5;
}

.media__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media__caption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 13, 30, 0.78);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan-200);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--1x1 { aspect-ratio: 1 / 1; }

/* ---------- reveal (JS driven, data-reveal) ---------- */

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.48s var(--ease), transform 0.48s var(--ease);
  will-change: opacity, transform;
}

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

/* ---------- 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;
  }

  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .card:hover, .btn:hover, .footer-nav a:hover, .footer-list a:hover { transform: none; padding-inline-start: 0; }
}
