/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:          #040d18;
  --bg-2:        #071224;
  --bg-card:     #0a1628;
  --bg-card-h:   #0e1e38;
  --ink:         #f0f6ff;
  --ink-soft:    rgba(240,246,255,.7);
  --ink-mute:    rgba(240,246,255,.4);
  --accent:      #10b981;
  --accent-d:    #059669;
  --accent-2:    #3b82f6;
  --accent-3:    #06b6d4;
  --accent-warn: #f59e0b;
  --line:        rgba(240,246,255,.08);
  --line-accent: rgba(16,185,129,.25);
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --max-w:  1280px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r:     10px;
  --r-lg:  18px;
  --nav-h: 68px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4, h5 { text-wrap: balance; line-height: 1.1; letter-spacing: -.025em; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .5rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: var(--r); font-weight: 600; font-size: .85rem;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 10vw, 7rem); }
.section-sm { padding-block: clamp(3rem, 6vw, 4.5rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.tag {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 4px;
  background: rgba(16,185,129,.12); color: var(--accent);
  border: 1px solid rgba(16,185,129,.2);
}
.tag.tag-blue { background: rgba(59,130,246,.12); color: var(--accent-2); border-color: rgba(59,130,246,.2); }
.tag.tag-amber { background: rgba(245,158,11,.12); color: var(--accent-warn); border-color: rgba(245,158,11,.2); }
.tag.tag-cyan { background: rgba(6,182,212,.12); color: var(--accent-3); border-color: rgba(6,182,212,.2); }

.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--ink);
}
.section-header .see-all {
  font-family: var(--mono); font-size: .78rem; color: var(--accent);
  letter-spacing: .05em; white-space: nowrap;
  transition: color .2s var(--ease-out);
}
.section-header .see-all:hover { color: var(--ink); }

.divider-line { height: 1px; background: var(--line); margin-block: 0; }

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); display: block;
  margin-bottom: .75rem;
}
.display-xl {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1;
  color: var(--ink);
}
.display-lg {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700; letter-spacing: -.03em;
}
.display-md {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -.025em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-3) 50%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* =============================================================
   5. Buttons & CTAs
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--r);
  font-size: .9rem; font-weight: 600; letter-spacing: -.01em;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 0 0 0 rgba(16,185,129,0);
}
.btn-primary:hover { background: var(--accent-d); box-shadow: 0 8px 30px rgba(16,185,129,.3); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(240,246,255,.06); border-color: rgba(240,246,255,.2); }

.btn-sm { padding: .5rem 1rem; font-size: .82rem; }

/* =============================================================
   5b. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease-soft), border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4,13,24,.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex; align-items: center; gap: 2rem; width: 100%;
  max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter);
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1rem; letter-spacing: -.02em; white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.nav-logo-text span { color: var(--accent); }

.nav-links {
  display: none; align-items: center; gap: .25rem; flex: 1; margin-left: 1rem;
}
.nav-links a {
  padding: .4rem .75rem; border-radius: 7px; font-size: .875rem; font-weight: 500;
  color: var(--ink-soft); transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); background: rgba(240,246,255,.06); }

.nav-cta { margin-left: auto; }
.nav-burger {
  margin-left: auto; width: 40px; height: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 8px; transition: background .15s;
}
.nav-burger:hover { background: rgba(240,246,255,.06); }
.nav-burger span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(4,13,24,.97); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column; padding: 2rem var(--gutter); gap: .5rem;
  border-top: 1px solid var(--line);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  padding: .75rem 1rem; border-radius: var(--r); font-size: 1.1rem; font-weight: 500;
  color: var(--ink-soft); transition: color .15s, background .15s;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a:hover { color: var(--ink); background: rgba(240,246,255,.04); }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding-block: var(--nav-h) 4rem;
}

.hero-gradient {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle 800px at var(--mx,30%) var(--my,40%), rgba(16,185,129,.12) 0%, transparent 60%),
    radial-gradient(circle 600px at calc(var(--mx,30%) + 20%) calc(var(--my,40%) - 10%), rgba(59,130,246,.1) 0%, transparent 60%),
    radial-gradient(circle 1000px at 70% 80%, rgba(6,182,212,.06) 0%, transparent 55%);
  transition: background .15s ease;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .04;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-noise {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}
.hero-inner {
  position: relative; z-index: 2; text-align: center;
  max-width: 900px; padding-inline: var(--gutter);
}
.hero-kicker {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: 1.5rem;
}
.hero-kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.5; transform:scale(.7); } }

.hero-title {
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  font-weight: 800; letter-spacing: -.04em; line-height: .96;
  margin-bottom: 1.5rem; color: var(--ink);
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-title .line-2 { color: var(--ink-soft); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--ink-soft); max-width: 580px;
  margin-inline: auto; margin-bottom: 2.5rem; line-height: 1.6;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; max-width: 700px; margin-inline: auto;
}
.hero-stat {
  background: rgba(4,13,24,.8); backdrop-filter: blur(12px);
  padding: 1.25rem 1.5rem; text-align: center;
}
.hero-stat-number {
  font-family: var(--mono); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--ink); line-height: 1;
  display: flex; align-items: baseline; justify-content: center; gap: .1rem;
}
.hero-stat-number .suffix { font-size: .65em; color: var(--accent); }
.hero-stat-label { font-size: .78rem; color: var(--ink-mute); margin-top: .3rem; }

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute);
  animation: float-y 2.5s ease-in-out infinite;
}
.hero-scroll-line { width: 1px; height: 28px; background: linear-gradient(var(--accent), transparent); }
@keyframes float-y { 0%,100%{ transform:translateX(-50%) translateY(0); } 50%{ transform:translateX(-50%) translateY(5px); } }

/* =============================================================
   7. Stadium atmosphere band
   ============================================================= */
.stadium-band {
  position: relative; height: clamp(220px, 35vw, 480px); overflow: hidden;
}
.stadium-band img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  filter: saturate(.7) brightness(.55);
}
.stadium-band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.stadium-band-label {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.stadium-band-label span {
  font-family: var(--mono); font-size: clamp(.65rem, 1.2vw, .8rem);
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute);
  padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(4,13,24,.6); backdrop-filter: blur(8px);
}

/* =============================================================
   8. Article cards
   ============================================================= */
.articles-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
@media (hover: hover) {
  .article-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-accent);
    box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px var(--line-accent);
  }
}
.article-card-img { aspect-ratio: 16/9; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card.is-featured .article-card-img { width: 42%; flex-shrink: 0; aspect-ratio: auto; }
.article-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-card-meta {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
  flex-wrap: wrap;
}
.article-card-date { font-family: var(--mono); font-size: .7rem; color: var(--ink-mute); }
.article-card-title {
  font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 700;
  margin-bottom: .75rem; color: var(--ink); line-height: 1.35;
  transition: color .2s;
}
.article-card:hover .article-card-title { color: var(--accent); }
.article-card-excerpt { font-size: .875rem; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.article-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.article-card-reading { font-family: var(--mono); font-size: .7rem; color: var(--ink-mute); }
.article-card-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(16,185,129,.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: background .2s, transform .2s var(--ease-out);
}
.article-card:hover .article-card-arrow { background: var(--accent); color: var(--bg); transform: translateX(2px); }

/* Featured (first card) */
.article-card.is-featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.article-card.is-featured .article-card-body { padding: 2rem 2rem; }
.article-card.is-featured .article-card-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}
.article-card.is-featured .article-card-excerpt { font-size: .9rem; }

/* =============================================================
   9. Rankings table
   ============================================================= */
.rankings-table-wrap {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.rankings-table { width: 100%; border-collapse: collapse; }
.rankings-table th {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 500;
  padding: .85rem 1.25rem; text-align: left;
  background: rgba(7,18,36,.8); border-bottom: 1px solid var(--line);
}
.rankings-table th:not(:first-child) { text-align: right; }
.rankings-table td {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); font-size: .9rem;
  transition: background .15s;
}
.rankings-table tr:last-child td { border-bottom: 0; }
.rankings-table tr:hover td { background: rgba(240,246,255,.02); }

.rank-pos {
  font-family: var(--mono); font-size: .8rem; color: var(--ink-mute);
  font-weight: 700; width: 36px; display: block; text-align: center;
}
.rank-pos.is-top { color: var(--accent); }
.rank-club { font-weight: 600; }
.rank-liga { font-family: var(--mono); font-size: .72rem; color: var(--ink-mute); }
.rank-ied {
  font-family: var(--mono); font-weight: 700; text-align: right;
  color: var(--accent);
}
.rank-ied-bar-wrap { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.rank-ied-bar {
  width: 80px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.rank-ied-bar-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width .8s var(--ease-out);
}
.rank-number { font-family: var(--mono); text-align: right; font-size: .88rem; }
.rank-ratio { font-family: var(--mono); font-size: .8rem; text-align: right; }
.rank-ratio.high { color: var(--accent); }

.td-right { text-align: right; }
.hide-mobile { display: none; }

/* =============================================================
   10. KPI / Metrics section
   ============================================================= */
.kpi-section { background: var(--bg-2); }
.kpi-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.kpi-card {
  background: var(--bg-2); padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.kpi-icon { font-size: 1.5rem; margin-bottom: .25rem; }
.kpi-number {
  font-family: var(--mono); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1; color: var(--ink);
  display: flex; align-items: baseline; gap: .1rem;
}
.kpi-number .suffix { font-size: .5em; color: var(--accent); }
.kpi-label { font-size: .82rem; color: var(--ink-soft); font-weight: 500; }
.kpi-desc { font-size: .75rem; color: var(--ink-mute); line-height: 1.5; margin-top: .25rem; }

/* =============================================================
   11. Categories grid
   ============================================================= */
.categories-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.category-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s;
  cursor: pointer;
}
@media (hover: hover) {
  .category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16,185,129,.3);
    box-shadow: 0 12px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(16,185,129,.15);
  }
  .category-card:hover .category-icon { transform: scale(1.1); }
  .category-card:hover .category-arrow { opacity: 1; transform: translateX(2px); }
}
.category-icon { font-size: 1.75rem; transition: transform .25s var(--ease-out); }
.category-name { font-size: 1.05rem; font-weight: 700; }
.category-desc { font-size: .82rem; color: var(--ink-soft); line-height: 1.55; }
.category-count {
  font-family: var(--mono); font-size: .7rem; color: var(--ink-mute);
  margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--line);
}
.category-arrow { opacity: .3; font-size: .8rem; transition: opacity .2s, transform .2s var(--ease-out); }

/* =============================================================
   12. Methodology teaser
   ============================================================= */
.method-section { background: linear-gradient(135deg, rgba(16,185,129,.04), rgba(59,130,246,.04)); }
.method-inner {
  display: grid; gap: 3rem; align-items: center;
}
.method-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  padding: .35rem .8rem; border-radius: 20px;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2);
  margin-bottom: 1.25rem;
}
.method-title { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: 1.25rem; }
.method-text { font-size: .95rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 2rem; }
.method-formula {
  font-family: var(--mono); font-size: .82rem; color: var(--ink-soft);
  background: rgba(16,185,129,.05); border: 1px solid var(--line-accent);
  border-radius: var(--r); padding: 1.25rem 1.5rem; line-height: 1.8;
  margin-bottom: 2rem;
}
.method-formula strong { color: var(--accent); }
.ied-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 2rem;
}
.ied-title {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.25rem;
}
.ied-score {
  font-family: var(--mono); font-size: 4rem; font-weight: 800;
  color: var(--accent); line-height: 1; margin-bottom: .5rem;
}
.ied-club { font-weight: 600; font-size: 1rem; margin-bottom: 1.5rem; }
.ied-bars { display: flex; flex-direction: column; gap: .85rem; }
.ied-bar-row { display: flex; flex-direction: column; gap: .3rem; }
.ied-bar-label {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--ink-mute);
}
.ied-bar-label span:last-child { font-family: var(--mono); color: var(--ink-soft); }
.ied-bar-track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.ied-bar-fill { height: 100%; border-radius: 3px; transition: width 1s var(--ease-out); }
.ied-bar-fill.c1 { background: var(--accent); }
.ied-bar-fill.c2 { background: var(--accent-2); }
.ied-bar-fill.c3 { background: var(--accent-3); }
.ied-bar-fill.c4 { background: var(--accent-warn); }

/* =============================================================
   13. Footer
   ============================================================= */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; color: var(--ink-mute); max-width: 300px; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { font-size: .875rem; color: var(--ink-soft); transition: color .15s; }
.footer-col ul a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.footer-bottom p { font-size: .78rem; color: var(--ink-mute); }
.footer-credits a { color: var(--ink-mute); transition: color .15s; }
.footer-credits a:hover { color: var(--ink); }
.footer-methodology {
  font-family: var(--mono); font-size: .7rem; color: var(--accent);
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.15);
  padding: .3rem .7rem; border-radius: 4px;
}

/* =============================================================
   14. Inner pages (Rankings, Metodología)
   ============================================================= */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 3rem;
  background: linear-gradient(180deg, rgba(7,18,36,1) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; }
.page-hero p { font-size: 1rem; color: var(--ink-soft); max-width: 60ch; line-height: 1.7; }

.content-block { max-width: 72ch; }
.content-block h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 700; margin-bottom: .75rem; margin-top: 2.5rem; }
.content-block h2:first-child { margin-top: 0; }
.content-block p { font-size: .95rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 1.1rem; }
.content-block ul { margin-bottom: 1.1rem; }
.content-block ul li {
  font-size: .95rem; color: var(--ink-soft); line-height: 1.7;
  padding-left: 1.25rem; position: relative; margin-bottom: .4rem;
}
.content-block ul li::before {
  content: "—"; position: absolute; left: 0; color: var(--accent);
  font-family: var(--mono); font-size: .85em;
}

.formula-block {
  background: var(--bg-card); border: 1px solid var(--line-accent);
  border-radius: var(--r); padding: 1.5rem; margin: 2rem 0;
  font-family: var(--mono); font-size: .88rem; line-height: 1.9;
}
.formula-block strong { color: var(--accent); font-weight: 600; }
.formula-block .formula-title {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .75rem; display: block;
}

.sources-list { margin-top: 2rem; }
.sources-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem 0; border-bottom: 1px solid var(--line);
  font-size: .875rem; color: var(--ink-soft);
}
.sources-list li span.src-icon { color: var(--accent); flex-shrink: 0; font-family: var(--mono); font-size: .72rem; padding-top: .15rem; }
.sources-list li strong { color: var(--ink); display: block; }

/* =============================================================
   15. Reveal animations
   ============================================================= */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-split] { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* =============================================================
   16. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .nav-cta { display: inline-flex; }
  .rankings-table .hide-mobile { display: table-cell; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card.is-featured { flex-direction: row; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
  .article-card.is-featured { grid-column: span 2; }
  .method-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1280px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   17. Reduced-motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-kicker-dot { animation: none; }
  .hero-scroll { animation: none; }
  .rank-ied-bar-fill { transition: none; }
}

/* =============================================================
   18. View Transitions (cross-page)
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .45s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: vtFadeOut; }
::view-transition-new(root) { animation-name: vtFadeIn; }
@keyframes vtFadeOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtFadeIn { from { opacity: 0; transform: translateY(8px); } }
