/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Wp2ywxg089UriCZaSExdy3sGt9zz86D3wyKK58UfivUw4aw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Wp2ywxg089UriCZaSExdy3sGt9zz86D3wyKy58UfivUw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZ2IHTWEBlwu8Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZ2IHTWEBlwu8Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZ2IHTWEBlwu8Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZ2IHTWEBlwu8Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmserifdisplay/v17/-nFhOHM81r4j6k0gjAW3mujVU2B2G_VB3vD2xWr53BJl.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmserifdisplay/v17/-nFhOHM81r4j6k0gjAW3mujVU2B2G_VB0PD2xWr53A.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmserifdisplay/v17/-nFnOHM81r4j6k0gjAW3mujVU2B2G_5x0vrx52jJ3Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmserifdisplay/v17/-nFnOHM81r4j6k0gjAW3mujVU2B2G_Bx0vrx52g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Noise texture overlay ─── */
    body::before {
      content: '';
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='1'/%3E%3C/svg%3E");
      opacity: 0.032;
      mix-blend-mode: multiply;
    }

    /* ─── Nav ─── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 200;
      height: var(--nav-h);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 2.5rem;
      background: rgba(253,246,236,0.88);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      text-decoration: none;
      display: flex; align-items: center; gap: 0.6rem;
    }

    .nav-logo-flame {
      width: 22px; height: 22px;
      background: linear-gradient(160deg, var(--amber), var(--red));
      clip-path: polygon(50% 0%, 80% 30%, 100% 60%, 70% 80%, 50% 100%, 30% 80%, 0% 60%, 20% 30%);
    }

    .nav-logo span {
      font-family: 'DM Serif Display', serif;
      font-size: 1rem;
      color: var(--ink);
      letter-spacing: -0.01em;
    }

    .nav-links {
      list-style: none;
      display: flex; gap: 2rem;
    }

    .nav-links a {
      font-size: 0.82rem;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      text-decoration: none;
      color: var(--mid);
      transition: color 0.2s;
    }

    .nav-links a:hover, .nav-links a.active { color: var(--red); }

    /* ─── Hero ─── */
    #hhi-section-hero {
      min-height: 100vh;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      text-align: center;
      padding: calc(var(--nav-h) + 3rem) 2rem 5rem;
      position: relative;
    }

    #hhi-section-hero::after {
      content: '';
      position: absolute;
      top: 30%; left: 50%; transform: translate(-50%, -50%);
      width: 700px; height: 500px;
      background: radial-gradient(ellipse, rgba(230,126,34,0.12) 0%, rgba(192,57,43,0.06) 40%, transparent 70%);
      pointer-events: none;
      z-index: 0;
    }

    .hhi-eyebrow {
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 2rem;
      position: relative; z-index: 1;
    }

    #hhi-reveal-btn {
      position: relative; z-index: 1;
      background: var(--ink);
      color: var(--cream);
      border: none;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.9rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      padding: 1rem 2.2rem;
      cursor: pointer;
      border-radius: 2px;
      display: flex; align-items: center; gap: 0.6rem;
      transition: background 0.25s, transform 0.15s;
    }

    #hhi-reveal-btn:hover { background: var(--red); transform: translateY(-1px); }

    #hhi-reveal-btn .btn-icon {
      width: 18px; height: 18px;
      background: linear-gradient(150deg, var(--amber), var(--red));
      clip-path: polygon(50% 0%, 80% 35%, 95% 65%, 65% 80%, 50% 100%, 35% 80%, 5% 65%, 20% 35%);
      flex-shrink: 0;
    }

    /* ─── Title reveal ─── */
    #hhi-hero-title-wrap {
      max-height: 0; overflow: hidden; opacity: 0;
      transition: max-height 0.8s cubic-bezier(0.16,1,0.3,1), opacity 0.6s ease;
      margin-top: 3rem;
      position: relative; z-index: 1;
    }

    #hhi-hero-title-wrap.visible {
      max-height: 700px; opacity: 1;
    }

    #hhi-hero-title-wrap h1 {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(2.4rem, 6vw, 5rem);
      line-height: 1.1;
      letter-spacing: -0.02em;
      color: var(--ink);
      margin-bottom: 1.5rem;
    }

    #hhi-hero-title-wrap h1 em {
      font-style: italic;
      color: var(--red);
    }

    .hhi-hero-sub {
      font-size: clamp(0.95rem, 1.8vw, 1.15rem);
      color: var(--mid);
      max-width: 520px;
      margin: 0 auto 2.5rem;
      line-height: 1.65;
      font-weight: 300;
    }

    /* ─── Scroll arrow ─── */
    .hhi-scroll-arrow {
      display: inline-flex; flex-direction: column; align-items: center;
      gap: 0.4rem;
      cursor: pointer;
      color: var(--mid);
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-top: 1rem;
      animation: hhiBob 2s ease-in-out infinite;
    }

    .hhi-scroll-arrow svg { width: 22px; height: 22px; }

    @keyframes hhiBob {
      0%, 100% { transform: translateY(0); }
      50%       { transform: translateY(6px); }
    }

    /* ─── Shake animation ─── */
    @keyframes hhiShake {
      0%   { transform: translate(0,0) rotate(0); }
      15%  { transform: translate(-12px, 6px) rotate(-.8deg); }
      30%  { transform: translate(12px, -6px) rotate(.8deg); }
      45%  { transform: translate(-8px, 4px) rotate(-.5deg); }
      60%  { transform: translate(8px, -4px) rotate(.5deg); }
      75%  { transform: translate(-4px, 2px) rotate(-.2deg); }
      100% { transform: translate(0,0) rotate(0); }
    }

    .hhi-shaking { animation: hhiShake .5s ease; }

    /* ─── Fade-in sections ─── */
    #hhi-section-story,
    #hhi-section-guide,
    #hhi-section-graphs,
    #hhi-section-cta {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.9s ease, transform 0.9s ease;
      pointer-events: none;
    }

    #hhi-section-story.visible,
    #hhi-section-guide.visible,
    #hhi-section-graphs.visible,
    #hhi-section-cta.visible {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    /* ─── Story section ─── */
    #hhi-section-story {
      padding: 7rem 2rem;
      background: var(--ink);
      position: relative;
      overflow: hidden;
    }

    #hhi-section-story::before {
      content: '';
      position: absolute;
      top: -60px; right: -40px;
      width: 320px; height: 320px;
      border: 1px solid rgba(192,57,43,0.2);
      border-radius: 50%;
      pointer-events: none;
    }

    .hhi-story-inner {
      max-width: 680px;
      margin: 0 auto;
      position: relative; z-index: 1;
    }

    .hhi-story-tag {
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--amber);
      margin-bottom: 1.5rem;
    }

    #hhi-section-story h2 {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(2rem, 4.5vw, 3.5rem);
      color: var(--cream);
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin-bottom: 1.8rem;
    }

    #hhi-section-story h2 em {
      color: var(--orange);
      font-style: italic;
    }

    #hhi-section-story p {
      font-size: 1.05rem;
      line-height: 1.75;
      color: rgba(253,246,236,0.7);
      font-weight: 300;
      margin-bottom: 1.4rem;
    }

    #hhi-section-story p strong { color: var(--cream); font-weight: 500; }

    .hhi-section-divider {
      width: 48px; height: 2px;
      background: linear-gradient(90deg, var(--red), var(--amber));
      margin: 2rem 0;
      border-radius: 2px;
    }

    /* ─── Stat pills ─── */
    .hhi-stats-row {
      display: flex; gap: 1.5rem; flex-wrap: wrap;
      margin-top: 2.5rem;
    }

    .hhi-stat {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(192,57,43,0.25);
      border-radius: 6px;
      padding: 1rem 1.4rem;
      flex: 1; min-width: 140px;
    }

    .hhi-stat-num {
      font-family: 'DM Serif Display', serif;
      font-size: 2.2rem;
      color: var(--amber);
      line-height: 1;
      margin-bottom: 0.3rem;
    }

    .hhi-stat-label {
      font-size: 0.78rem;
      color: rgba(253,246,236,0.5);
      font-weight: 400;
      letter-spacing: 0.03em;
      line-height: 1.4;
    }

    /* ─── Guide section ─── */
    #hhi-section-guide {
      padding: 7rem 2rem;
      background: var(--cream);
      position: relative;
    }

    #hhi-section-guide::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 80% 50%, rgba(243,156,18,0.07) 0%, transparent 60%);
      pointer-events: none;
    }

    .hhi-guide-inner {
      max-width: 860px;
      margin: 0 auto;
      position: relative; z-index: 1;
    }

    .hhi-guide-header {
      max-width: 580px;
      margin-bottom: 3.5rem;
    }

    .hhi-guide-header .hhi-story-tag { color: var(--red); }

    .hhi-guide-header h2 {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(1.9rem, 4vw, 3.2rem);
      color: var(--ink);
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin-bottom: 1rem;
    }

    .hhi-guide-header h2 em { color: var(--red); font-style: italic; }

    .hhi-guide-header p {
      font-size: 1rem;
      color: var(--mid);
      line-height: 1.7;
      font-weight: 300;
    }

    .hhi-why-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 3rem;
    }

    .hhi-why-cell {
      background: #fff;
      padding: 2rem 1.8rem;
    }

    .hhi-why-cell-icon {
      font-size: 1.4rem;
      margin-bottom: 0.75rem;
      line-height: 1;
    }

    .hhi-why-cell h3 {
      font-family: 'DM Serif Display', serif;
      font-size: 1.1rem;
      color: var(--ink);
      margin-bottom: 0.5rem;
      font-weight: normal;
    }

    .hhi-why-cell p {
      font-size: 0.875rem;
      color: var(--mid);
      line-height: 1.65;
      font-weight: 300;
    }

    .hhi-guide-subhead {
      font-size: 0.68rem; font-weight: 600;
      letter-spacing: 0.2em; text-transform: uppercase;
      color: var(--red);
      margin-bottom: 1.4rem;
      margin-top: 3rem;
      display: flex; align-items: center; gap: 0.8rem;
    }

    .hhi-guide-subhead::after {
      content: '';
      flex: 1; height: 1px;
      background: var(--border);
    }

    .hhi-steps {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
    }

    .hhi-step {
      background: var(--pale);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.5rem 1.4rem;
      position: relative;
    }

    .hhi-step-num {
      font-family: 'DM Serif Display', serif;
      font-size: 2.5rem;
      color: rgba(192,57,43,0.12);
      line-height: 1;
      position: absolute;
      top: 0.8rem; right: 1rem;
    }

    .hhi-step h4 {
      font-family: 'DM Serif Display', serif;
      font-size: 1rem;
      color: var(--ink);
      font-weight: normal;
      margin-bottom: 0.5rem;
    }

    .hhi-step p {
      font-size: 0.83rem;
      color: var(--mid);
      line-height: 1.6;
      font-weight: 300;
    }

    .hhi-score-legend {
      margin-top: 3rem;
      background: var(--ink);
      border-radius: 8px;
      padding: 2rem 2.2rem;
      display: flex;
      gap: 2rem;
      flex-wrap: wrap;
      align-items: flex-start;
    }

    .hhi-score-legend-label {
      font-size: 0.68rem; font-weight: 600;
      letter-spacing: 0.15em; text-transform: uppercase;
      color: var(--amber);
      margin-bottom: 0.9rem;
    }

    .hhi-score-legend-title {
      font-family: 'DM Serif Display', serif;
      font-size: 1.2rem;
      color: var(--cream);
      margin-bottom: 0.4rem;
      font-weight: normal;
    }

    .hhi-score-legend-desc {
      font-size: 0.82rem;
      color: rgba(253,246,236,0.55);
      font-weight: 300;
      line-height: 1.55;
      max-width: 280px;
    }

    .hhi-score-bands {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      flex: 1;
      min-width: 200px;
    }

    .hhi-score-band {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .hhi-score-band-swatch {
      width: 32px; height: 14px;
      border-radius: 3px;
      flex-shrink: 0;
    }

    .hhi-score-band-text {
      font-size: 0.82rem;
      color: rgba(253,246,236,0.7);
      font-weight: 300;
    }

    .hhi-score-band-text strong {
      color: var(--cream);
      font-weight: 500;
    }

    @media (max-width: 640px) {
      .hhi-why-grid { grid-template-columns: 1fr; }
      .hhi-score-legend { flex-direction: column; }
    }

    /* ─── Graphs section ─── */
    #hhi-section-graphs {
      padding: 7rem 2rem;
      background: var(--ink);
      position: relative;
      overflow: hidden;
    }

    #hhi-section-graphs::before {
      content: '';
      position: absolute;
      bottom: -100px; left: -100px;
      width: 500px; height: 500px;
      background: radial-gradient(ellipse, rgba(192,57,43,0.1) 0%, transparent 65%);
      pointer-events: none;
    }

    .hhi-graphs-inner { max-width: 980px; margin: 0 auto; position: relative; z-index: 1; }

    .hhi-graphs-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1.5rem;
      margin-bottom: 3rem;
    }

    .hhi-graphs-header-left .hhi-story-tag { color: var(--amber); margin-bottom: 0.6rem; }

    .hhi-graphs-header h2 {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(1.8rem, 4vw, 3rem);
      letter-spacing: -0.02em;
      color: var(--cream);
      margin-bottom: 0.5rem;
    }

    .hhi-graphs-header p {
      font-size: 0.9rem;
      color: rgba(253,246,236,0.5);
      line-height: 1.6;
      font-weight: 300;
      max-width: 400px;
    }

    .hhi-glance-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: rgba(192,57,43,0.2);
      border: 1px solid rgba(192,57,43,0.2);
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 2.5rem;
    }

    .hhi-glance-stat {
      background: rgba(255,255,255,0.03);
      padding: 1.6rem 1.4rem;
      text-align: center;
      transition: background 0.2s;
    }

    .hhi-glance-stat:hover { background: rgba(255,255,255,0.07); }

    .hhi-glance-stat-num {
      font-family: 'DM Serif Display', serif;
      font-size: 2.6rem;
      line-height: 1;
      margin-bottom: 0.3rem;
      background: linear-gradient(135deg, var(--amber), var(--orange));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hhi-glance-stat-label {
      font-size: 0.75rem;
      color: rgba(253,246,236,0.45);
      font-weight: 400;
      letter-spacing: 0.04em;
      line-height: 1.4;
    }

    .hhi-chart-tabs {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }

    .hhi-tab-btn {
      background: transparent;
      border: 1px solid rgba(253,246,236,0.12);
      color: rgba(253,246,236,0.45);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 0.55rem 1.2rem;
      border-radius: 3px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .hhi-tab-btn:hover {
      border-color: rgba(243,156,18,0.4);
      color: rgba(253,246,236,0.8);
    }

    .hhi-tab-btn.active {
      background: var(--red);
      border-color: var(--red);
      color: #fff;
    }

    .hhi-chart-panel {
      display: none;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(192,57,43,0.18);
      border-radius: 10px;
      padding: 2rem;
      animation: hhiFadeIn 0.35s ease;
    }

    .hhi-chart-panel.active { display: block; }

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

    .hhi-chart-panel-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }

    .hhi-chart-panel-title {
      font-family: 'DM Serif Display', serif;
      font-size: 1.2rem;
      color: var(--cream);
      margin-bottom: 0.25rem;
    }

    .hhi-chart-panel-sub {
      font-size: 0.78rem;
      color: rgba(253,246,236,0.4);
      font-weight: 300;
    }

    .hhi-chart-insight {
      background: rgba(192,57,43,0.15);
      border-left: 3px solid var(--red);
      border-radius: 4px;
      padding: 0.75rem 1rem;
      font-size: 0.8rem;
      color: rgba(253,246,236,0.7);
      line-height: 1.55;
      max-width: 280px;
      flex-shrink: 0;
    }

    .hhi-chart-insight strong { color: var(--amber); font-weight: 500; }

    .hhi-risk-meter-wrap { margin-top: 2rem; }

    .hhi-risk-meter-label {
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(253,246,236,0.4);
      margin-bottom: 0.8rem;
    }

    .hhi-risk-meter-controls {
      display: flex;
      gap: 1rem;
      margin-bottom: 1rem;
      flex-wrap: wrap;
    }

    .hhi-risk-select {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(253,246,236,0.12);
      color: var(--cream);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.82rem;
      padding: 0.5rem 0.9rem;
      border-radius: 4px;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(253,246,236,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.8rem center;
      padding-right: 2.2rem;
    }

    .hhi-risk-select option { background: #2a1a0a; }

    .hhi-risk-bars { display: flex; flex-direction: column; gap: 0.7rem; }

    .hhi-risk-bar-row {
      display: grid;
      grid-template-columns: 110px 1fr 42px;
      align-items: center;
      gap: 0.9rem;
    }

    .hhi-risk-bar-name {
      font-size: 0.78rem;
      color: rgba(253,246,236,0.6);
      font-weight: 400;
      text-align: right;
    }

    .hhi-risk-bar-track {
      height: 10px;
      background: rgba(255,255,255,0.06);
      border-radius: 99px;
      overflow: hidden;
    }

    .hhi-risk-bar-fill {
      height: 100%;
      border-radius: 99px;
      transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
    }

    .hhi-risk-bar-val {
      font-family: 'DM Serif Display', serif;
      font-size: 0.9rem;
      color: var(--amber);
      text-align: right;
    }

    @media (max-width: 640px) {
      .hhi-glance-stats { grid-template-columns: 1fr; }
      .hhi-chart-panel-header { flex-direction: column; }
      .hhi-chart-insight { max-width: 100%; }
      .hhi-risk-bar-row { grid-template-columns: 80px 1fr 36px; }
    }

    /* ─── CTA section ─── */
    #hhi-section-cta {
      padding: 8rem 2rem;
      text-align: center;
      background: var(--cream);
      position: relative;
    }

    #hhi-section-cta::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 50% 60%, rgba(230,126,34,0.08) 0%, transparent 65%);
      pointer-events: none;
    }

    .hhi-cta-inner { position: relative; z-index: 1; }

    .hhi-cta-inner p {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(1.4rem, 3vw, 2.2rem);
      color: var(--ink);
      margin-bottom: 2rem;
      letter-spacing: -0.01em;
    }

    .hhi-map-btn {
      display: inline-flex; align-items: center; gap: 0.6rem;
      background: var(--red);
      color: #fff;
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      padding: 1.1rem 2.4rem;
      border-radius: 2px;
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
      box-shadow: 0 4px 20px rgba(192,57,43,0.3);
    }

    .hhi-map-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
    .hhi-map-btn:hover {
      background: var(--ink);
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(26,18,8,0.25);
    }

    /* ─── Footer ─── */
    footer {
      border-top: 1px solid var(--border);
      padding: 1.8rem 2.5rem;
      text-align: center;
      font-size: 0.78rem;
      color: var(--mid);
      letter-spacing: 0.03em;
      background: var(--cream);
    }

    footer strong { color: var(--ink); }

    @media (max-width: 600px) {
      nav { padding: 0 1.2rem; }
      .nav-links { gap: 1.2rem; }
      .hhi-stats-row { flex-direction: column; }
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    :root {
      --red:    #c0392b;
      --orange: #e67e22;
      --amber:  #f39c12;
      --cream:  #fdf6ec;
      --ink:    #1a1208;
      --mid:    #6b4f2a;
      --pale:   #f5ede0;
      --border: rgba(192,57,43,0.15);
      --nav-h:  64px;
    }

    body {
      background: var(--cream);
      color: var(--ink);
      font-family: 'DM Sans', sans-serif;
      min-height: 100vh;
    }

    body::before {
      content: '';
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='1'/%3E%3C/svg%3E");
      opacity: 0.032;
      mix-blend-mode: multiply;
    }

    nav {
      position: sticky; top: 0; z-index: 200;
      height: var(--nav-h);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 2.5rem;
      background: rgba(253,246,236,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      text-decoration: none;
      display: flex; align-items: center; gap: 0.6rem;
    }

    .nav-logo-flame {
      width: 20px; height: 20px;
      background: linear-gradient(160deg, var(--amber), var(--red));
      clip-path: polygon(50% 0%, 80% 30%, 100% 60%, 70% 80%, 50% 100%, 30% 80%, 0% 60%, 20% 30%);
      flex-shrink: 0;
    }

    .nav-logo span {
      font-family: 'DM Serif Display', serif;
      font-size: 1rem;
      color: var(--ink);
    }

    .nav-links { list-style: none; display: flex; gap: 2rem; }

    .nav-links a {
      font-size: 0.82rem; font-weight: 500;
      letter-spacing: 0.06em; text-transform: uppercase;
      text-decoration: none; color: var(--mid);
      transition: color 0.2s;
    }

    .nav-links a:hover, .nav-links a.active { color: var(--red); }

    .page-header {
      padding: 5rem 2.5rem 4rem;
      max-width: 860px;
      margin: 0 auto;
    }

    .page-header-eyebrow {
      font-size: 0.68rem; font-weight: 600;
      letter-spacing: 0.2em; text-transform: uppercase;
      color: var(--red); margin-bottom: 1.2rem;
    }

    .page-header h1 {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(2.4rem, 5vw, 4rem);
      font-weight: normal;
      letter-spacing: -0.02em;
      line-height: 1.1;
      color: var(--ink);
      margin-bottom: 1.2rem;
    }

    .page-header p {
      font-size: 1.05rem;
      color: var(--mid);
      line-height: 1.65;
      font-weight: 300;
      max-width: 560px;
    }

    .page-header-rule {
      width: 100%; height: 1px;
      background: var(--border);
      margin-top: 3.5rem;
    }

    main {
      max-width: 860px;
      margin: 0 auto;
      padding: 0 2.5rem 7rem;
    }

    .resource-category {
      padding-top: 3.5rem;
      margin-bottom: 1.6rem;
    }

    .category-eyebrow {
      font-size: 0.65rem; font-weight: 600;
      letter-spacing: 0.2em; text-transform: uppercase;
      color: var(--red); margin-bottom: 0.75rem;
    }

    .category-title {
      font-family: 'DM Serif Display', serif;
      font-size: 1.6rem; font-weight: normal;
      letter-spacing: -0.01em;
      color: var(--ink);
      margin-bottom: 0.4rem;
    }

    .category-desc {
      font-size: 0.88rem;
      color: var(--mid);
      font-weight: 300;
      line-height: 1.55;
      margin-bottom: 1.4rem;
    }

    .category-rule {
      width: 40px; height: 2px;
      background: linear-gradient(90deg, var(--red), var(--amber));
      border-radius: 2px;
    }

    .resource-card {
      display: block;
      text-decoration: none;
      color: inherit;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 1.4rem 1.6rem;
      margin-top: 0.75rem;
      transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
      position: relative;
    }

    .resource-card::after {
      content: '↗';
      position: absolute;
      top: 1.3rem; right: 1.4rem;
      font-size: 0.85rem;
      color: rgba(192,57,43,0.2);
      transition: color 0.2s, transform 0.2s;
    }

    .resource-card:hover {
      border-color: rgba(192,57,43,0.4);
      box-shadow: 0 4px 24px rgba(192,57,43,0.08);
      transform: translateY(-1px);
    }

    .resource-card:hover::after {
      color: var(--red);
      transform: translate(2px, -2px);
    }

    .resource-publisher {
      font-size: 0.68rem; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--orange);
      margin-bottom: 0.35rem;
    }

    .resource-title {
      font-family: 'DM Serif Display', serif;
      font-size: 1.05rem;
      color: var(--ink);
      line-height: 1.35;
      margin-bottom: 0.5rem;
      padding-right: 1.5rem;
    }

    .resource-desc {
      font-size: 0.85rem;
      color: var(--mid);
      line-height: 1.6;
      font-weight: 300;
    }
    
    
    
    /* ─── LiveDataTable.css ─── */
/* Matches Heat-Health Risk Index design system */

/* ─── Variables (mirror your main stylesheet) ─── */
:root {
  --red:    #c0392b;
  --orange: #e67e22;
  --amber:  #f39c12;
  --cream:  #fdf6ec;
  --ink:    #1a1208;
  --mid:    #6b4f2a;
  --pale:   #f5ede0;
  --border: rgba(192,57,43,0.15);
}

/* ─── Section wrapper ─── */
#hhi-section-live {
  padding: 7rem 2rem;
  background: var(--cream);
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}

#hhi-section-live.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#hhi-section-live::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(192,57,43,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── Inner container ─── */
.hhi-live-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ─── Header row ─── */
.hhi-live-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hhi-live-header-left .hhi-story-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.hhi-live-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.hhi-live-header p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.6;
  font-weight: 300;
  max-width: 400px;
}

/* ─── Live badge ─── */
.hhi-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 99px;
  padding: 0.3rem 0.8rem;
  align-self: flex-start;
}

.hhi-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ─── Controls bar ─── */
.hhi-live-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  align-items: center;
}

.hhi-live-search {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.hhi-live-search::placeholder { color: rgba(26,18,8,0.3); }
.hhi-live-search:focus { border-color: rgba(192,57,43,0.4); }

.hhi-live-sort {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  padding: 0.6rem 2.2rem 0.6rem 0.9rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(26,18,8,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.hhi-live-sort:focus { border-color: rgba(192,57,43,0.4); }

.hhi-live-count {
  font-size: 0.78rem;
  color: var(--mid);
  margin-left: auto;
  font-weight: 400;
}

/* ─── Table wrapper ─── */
.hhi-live-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(26,18,8,0.04);
}

/* ─── Table ─── */
.hhi-live-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
}

/* ─── Table head ─── */
.hhi-live-table thead tr {
  background: var(--pale);
  border-bottom: 1px solid var(--border);
}

.hhi-live-table th {
  text-align: left;
  padding: 0.85rem 1.2rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.hhi-live-table th:hover { color: var(--red); }

.hhi-live-table th.sorted { color: var(--red); }

.hhi-live-table th .sort-icon {
  display: inline-block;
  margin-left: 0.3rem;
  opacity: 0.35;
  font-style: normal;
  font-size: 0.7rem;
}

.hhi-live-table th.sorted .sort-icon { opacity: 1; }

/* ─── Table body rows ─── */
.hhi-live-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.hhi-live-row:last-child { border-bottom: none; }

.hhi-live-row:hover { background: var(--pale); }

.hhi-live-table td {
  padding: 0.85rem 1.2rem;
  vertical-align: middle;
}

/* ─── Cell types ─── */
.hhi-td-tract {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
}

.hhi-td-score {
  min-width: 120px;
}

.hhi-td-score-val {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 4px;
}

/* mini progress bar */
.hhi-td-bar {
  height: 3px;
  width: 80px;
  background: var(--pale);
  border-radius: 99px;
  overflow: hidden;
}

.hhi-td-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}

.hhi-td-num {
  font-family: 'DM Serif Display', serif;
  font-size: 0.98rem;
  color: var(--ink);
}

.hhi-td-arrow {
  color: rgba(192,57,43,0.18);
  font-size: 0.9rem;
  text-align: right;
  padding-right: 1rem;
  transition: color 0.2s;
}

.hhi-live-row:hover .hhi-td-arrow { color: var(--red); }

/* ─── Risk badge (reused from card design) ─── */
.hhi-live-risk {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  white-space: nowrap;
}

.hhi-live-risk.high     { background: rgba(192,57,43,0.10); color: var(--red); }
.hhi-live-risk.elevated { background: rgba(230,126,34,0.10); color: var(--orange); }
.hhi-live-risk.moderate { background: rgba(243,156,18,0.10); color: #b37a00; }
.hhi-live-risk.low      { background: rgba(76,175,80,0.10);  color: #2e7d32; }

/* ─── Loading / error states ─── */
.hhi-live-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--mid);
  font-size: 0.85rem;
  font-weight: 300;
  padding: 2rem 0;
}

.hhi-live-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hhi-live-error {
  color: var(--red);
  font-size: 0.85rem;
  padding: 1.5rem 0;
  font-weight: 300;
}

/* ─── Load more button ─── */
.hhi-live-more-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

.hhi-live-more-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.hhi-live-more-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .hhi-live-header { flex-direction: column; align-items: flex-start; }
  .hhi-live-controls { flex-direction: column; }
  .hhi-live-search { min-width: 100%; }
  .hhi-td-bar { width: 50px; }
}


/*MAP DATA STYLE */

   .data-page *, 
.data-page *::before, 
.data-page *::after { box-sizing: border-box; margin: 0; padding: 0; }

.data-page html { scroll-behavior: smooth; }

.data-page {
  --red: #c0392b;
  --orange: #e67e22;
  --amber: #f39c12;
  --cream: #fdf6ec;
  --ink: #1a1208;
  --mid: #6b4f2a;
  --border: rgba(192,57,43,0.15);
  --nav-h: 64px;
  background: var(--ink);
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}

.data-page body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

.data-page nav {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(26,18,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192,57,43,0.2);
}

.data-page .nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.data-page .nav-logo span {
  font-family: "DM Serif Display", serif;
  font-size: 1rem;
  color: var(--cream);
}

.data-page .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.data-page .nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(253,246,236,0.45);
  transition: color 0.2s;
}

.data-page .nav-links a:hover,
.data-page .nav-links a.active {
  color: var(--amber);
}

.data-page #map-section {
  position: relative;
  width: 100%;
  height: 680px;
  overflow: hidden;
  border-bottom: 1px solid rgba(192,57,43,0.2);
}

.data-page #map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.data-page #map-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
  z-index: 2;
}

.data-page #view-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 4px;
  backdrop-filter: blur(6px);
}

.data-page .view-btn {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 2px;
  transition: all 0.2s;
}

.data-page .view-btn.active {
  background: #ff5014;
  color: #fff;
}

.data-page #hud {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  width: 210px;
  pointer-events: none;
}

.data-page .hud-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 26px;
  letter-spacing: 3px;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
  text-shadow: 0 0 20px rgba(255,80,20,0.9);
}

.data-page .hud-sub {
  font-size: 9px;
  color: #bbb;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: "Space Mono", monospace;
}

.data-page .legend-label {
  font-size: 9px;
  color: #999;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-family: "Space Mono", monospace;
}

.data-page .gradient-bar {
  height: 8px;
  border-radius: 2px;
  margin-bottom: 4px;
  background: linear-gradient(to right,#0d0221,#3d0066,#cc00ff,#ff3300,#ffaa00,#ffff00);
}

.data-page .legend-ticks {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.data-page .legend-ticks span {
  font-size: 8px;
  color: #888;
  font-family: "Space Mono", monospace;
}

.data-page .stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.data-page .stat-box {
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  padding: 8px;
  backdrop-filter: blur(6px);
}

.data-page .stat-box .val {
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px;
  color: #ff5014;
  line-height: 1;
}

.data-page .stat-box .lbl {
  font-size: 8px;
  color: #666;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
  font-family: "Space Mono", monospace;
}

.data-page .mapboxgl-popup-content {
  background: rgba(8,8,8,0.97)!important;
  border: 1px solid rgba(255,80,20,0.6)!important;
  border-radius: 4px!important;
  padding: 0!important;
  box-shadow: 0 4px 24px rgba(255,80,20,0.25)!important;
  font-family: "Space Mono", monospace!important;
  min-width: 200px;
}

.data-page .mapboxgl-popup-tip { display: none!important; }

.data-page .mapboxgl-popup-close-button {
  color: #ff5014!important;
  font-size: 16px!important;
  padding: 6px 8px!important;
  line-height: 1!important;
}

.data-page .p-inner { padding: 14px 16px; }

.data-page .p-tract {
  font-size: 9px;
  color: #666;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.data-page .p-score {
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  color: #ff5014;
  line-height: 1;
  margin-bottom: 4px;
}

.data-page .p-bar-bg {
  height: 3px;
  background: #222;
  border-radius: 2px;
  margin-bottom: 12px;
}

.data-page .p-bar {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right,#cc00ff,#ff3300,#ffaa00);
}

.data-page .p-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #1a1a1a;
}

.data-page .p-row:last-child { border-bottom: none; }

.data-page .p-lbl {
  color: #666;
  font-size: 10px;
}

.data-page .p-val {
  font-weight: bold;
  color: #ddd;
  font-size: 10px;
}

.data-page .page-header {
  padding: 3.5rem 2.5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.data-page .page-header-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.data-page .page-header h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem,4vw,3.5rem);
  font-weight: normal;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1rem;
}

.data-page .page-header p {
  font-size: 0.95rem;
  color: rgba(253,246,236,0.5);
  line-height: 1.65;
  font-weight: 300;
  max-width: 560px;
}

.data-page .data-controls {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

.data-page .data-search {
  flex: 1;
  min-width: 220px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(253,246,236,0.1);
  border-radius: 4px;
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.data-page .data-search::placeholder { color: rgba(253,246,236,0.25); }

.data-page .data-search:focus { border-color: rgba(243,156,18,0.4); }

.data-page .data-filter {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(253,246,236,0.1);
  border-radius: 4px;
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  padding: 0.65rem 2rem 0.65rem 0.9rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(253,246,236,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-color: rgba(255,255,255,0.05);
}

.data-page .data-filter option { background: #2a1a0a; }

.data-page .data-count {
  font-size: 0.78rem;
  color: rgba(253,246,236,0.3);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-left: auto;
}

.data-page .table-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem 6rem;
  position: relative;
  z-index: 1;
}

.data-page .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.data-page .data-table thead th {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(253,246,236,0.35);
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(192,57,43,0.2);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.data-page .data-table thead th:hover { color: var(--amber); }

.data-page .data-table thead th.sorted { color: var(--amber); }

.data-page .data-table thead th .sort-icon {
  display: inline-block;
  margin-left: 0.35rem;
  opacity: 0.4;
  font-size: 0.6rem;
}

.data-page .data-table thead th.sorted .sort-icon { opacity: 1; }

.data-page .data-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
  cursor: pointer;
}

.data-page .data-table tbody tr:hover { background: rgba(255,255,255,0.05); }

.data-page .data-table tbody td {
  padding: 0.85rem 1rem;
  color: rgba(253,246,236,0.7);
  font-weight: 300;
  vertical-align: middle;
}

.data-page .data-table tbody td:first-child {
  color: var(--cream);
  font-weight: 400;
  font-size: 0.78rem;
  font-family: "Space Mono", monospace;
}

.data-page .risk-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

.data-page .risk-badge.low { background: rgba(76,175,80,0.15); color: #4caf50; }
.data-page .risk-badge.moderate { background: rgba(243,156,18,0.15); color: #f39c12; }
.data-page .risk-badge.elevated { background: rgba(230,126,34,0.15); color: #e67e22; }
.data-page .risk-badge.high { background: rgba(192,57,43,0.2); color: #e84040; }

.data-page .mini-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.data-page .mini-bar-track {
  width: 64px;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
  flex-shrink: 0;
}

.data-page .mini-bar-fill {
  height: 100%;
  border-radius: 99px;
}

.data-page .mini-bar-val {
  font-family: "DM Serif Display", serif;
  font-size: 0.88rem;
  color: var(--amber);
  min-width: 34px;
}

.data-page .no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(253,246,236,0.3);
  font-size: 0.9rem;
}

.data-page footer {
  border-top: 1px solid rgba(192,57,43,0.15);
  padding: 1.8rem 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(253,246,236,0.3);
  letter-spacing: 0.03em;
}

.data-page footer strong { color: rgba(253,246,236,0.6); }

@media (max-width: 768px) {
  .data-page .table-wrap { overflow-x: auto; }
  .data-page .data-table { min-width: 700px; }
  .data-page #map-section { height: 480px; }
}

@media (max-width: 600px) {
  .data-page nav { padding: 0 1.2rem; }
  .data-page .nav-links { gap: 1.2rem; }
  .data-page .page-header,
  .data-page .data-controls,
  .data-page .table-wrap {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .data-page #map-section { height: 400px; }
}