
  /* ---------- Reset & Base ---------- */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #0a0a0f;
    color: #e8e8ec;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

  :root {
    --bg: #0a0a0f;
    --bg-2: #12121a;
    --bg-3: #1a1a25;
    --border: #24243a;
    --text: #e8e8ec;
    --text-dim: #9b9baf;
    --text-dimmer: #6b6b7d;
    --accent: #ff3d57;        /* Ares red */
    --accent-2: #00e5ff;      /* neon cyan */
    --accent-3: #b4ff39;      /* lime */
    --gradient: linear-gradient(135deg, #ff3d57 0%, #ff6b35 100%);
    --gradient-2: linear-gradient(135deg, #00e5ff 0%, #b4ff39 100%);
  }

  /* ---------- Background Grain ---------- */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      radial-gradient(circle at 20% 10%, rgba(255, 61, 87, 0.08), transparent 40%),
      radial-gradient(circle at 80% 60%, rgba(0, 229, 255, 0.06), transparent 50%);
    pointer-events: none;
    z-index: 0;
  }

  .container { max-width: 1360px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

  /* ---------- Top Bar ---------- */
  .topbar {
    background: #000;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
  }
  .topbar-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 28px; max-width: 1360px; margin: 0 auto;
  }
  .topbar-left { display: flex; gap: 18px; align-items: center; }
  .live-dot {
    width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
    display: inline-block; margin-right: 6px;
    animation: pulse 1.8s infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 61, 87, 0.7); }
    50% { box-shadow: 0 0 0 6px rgba(255, 61, 87, 0); }
  }
  .topbar-right { display: flex; gap: 16px; }

  /* ---------- Header ---------- */
  header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0;
  }
  .logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 22px;
    letter-spacing: -0.02em;
  }
  .logo-mark {
    width: 36px; height: 36px;
    background: var(--gradient);
    border-radius: 8px;
    display: grid; place-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 18px; color: #000;
    position: relative; overflow: hidden;
  }
  .logo-mark::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: shine 3s infinite;
  }
  @keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }
  .logo-text { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
  .logo-text small { font-size: 9px; color: var(--text-dim); letter-spacing: 0.2em; font-family: 'JetBrains Mono', monospace; }

  .nav-links { display: flex; gap: 28px; list-style: none; }
  .nav-links a {
    font-size: 14px; font-weight: 500; color: var(--text-dim);
    transition: color 0.2s;
    position: relative;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a.active { color: var(--text); }
  .nav-links a.active::after {
    content: ''; position: absolute; bottom: -22px; left: 0; right: 0;
    height: 2px; background: var(--accent);
  }

  .nav-right { display: flex; align-items: center; gap: 14px; }
  .search-btn, .theme-btn {
    width: 38px; height: 38px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid; place-items: center;
    transition: all 0.2s;
    color: var(--text-dim);
  }
  .search-btn:hover, .theme-btn:hover { color: var(--text); border-color: var(--accent); }
  .subscribe-btn {
    padding: 10px 18px;
    background: var(--gradient);
    color: #000;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: all 0.2s;
  }
  .subscribe-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 61, 87, 0.35); }

  /* ---------- Category Tabs ---------- */
  .tabs-wrap {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }
  .tabs {
    display: flex; gap: 4px; padding: 12px 0;
    overflow-x: auto; scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    padding: 8px 16px;
    font-size: 13px; font-weight: 500;
    color: var(--text-dim);
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
    font-family: 'JetBrains Mono', monospace;
  }
  .tab:hover { color: var(--text); background: var(--bg-2); }
  .tab.active { color: var(--accent); background: rgba(255, 61, 87, 0.1); }
  .tab-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }

  /* ---------- Hero ---------- */
  .hero {
    padding: 36px 0 48px;
    display: grid; grid-template-columns: 2fr 1fr; gap: 24px;
  }
  .hero-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #111;
    cursor: pointer;
    transition: transform 0.4s;
  }
  .hero-main:hover { transform: translateY(-4px); }
  .hero-img {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0520 100%);
  }
  .hero-img::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(circle at 30% 40%, rgba(255, 61, 87, 0.6), transparent 50%),
      radial-gradient(circle at 70% 60%, rgba(180, 255, 57, 0.3), transparent 55%),
      conic-gradient(from 45deg at 50% 50%, rgba(0, 229, 255, 0.3), transparent, rgba(255, 61, 87, 0.3), transparent);
    mix-blend-mode: screen;
  }
  .hero-img::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
  }
  .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.4) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 36px;
  }
  .tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    background: var(--accent);
    color: #000;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    width: fit-content;
    margin-bottom: 16px;
  }
  .tag.cyan { background: var(--accent-2); }
  .tag.lime { background: var(--accent-3); }
  .tag.ghost { background: rgba(255,255,255,0.1); color: var(--text); border: 1px solid var(--border); }
  .hero-main h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    max-width: 80%;
  }
  .hero-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
  .hero-meta span { display: flex; align-items: center; gap: 6px; }

  .hero-side { display: flex; flex-direction: column; gap: 16px; }
  .hero-sub {
    position: relative;
    border-radius: 14px; overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer; transition: transform 0.3s;
  }
  .hero-sub:hover { transform: translateY(-3px); }
  .hero-sub .bg {
    position: absolute; inset: 0;
  }
  .bg-a { background: linear-gradient(135deg, #003344 0%, #001122 100%); }
  .bg-a::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0, 229, 255, 0.5), transparent 50%);
  }
  .bg-b { background: linear-gradient(135deg, #1f0f00 0%, #0a0503 100%); }
  .bg-b::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 140, 0, 0.5), transparent 55%);
  }
  .hero-sub .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,15,0.95) 10%, transparent 70%);
    padding: 20px; display: flex; flex-direction: column; justify-content: flex-end;
  }
  .hero-sub h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px; font-weight: 600; line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .hero-sub .tag { margin-bottom: 10px; }

  /* ---------- Section Titles ---------- */
  .section-title {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
    padding-top: 16px;
  }
  .section-title h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex; align-items: center; gap: 12px;
  }
  .section-title h2::before {
    content: '';
    width: 6px; height: 28px;
    background: var(--accent);
    border-radius: 2px;
  }
  .section-title a {
    font-size: 13px; color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    display: flex; align-items: center; gap: 6px;
    transition: color 0.2s;
  }
  .section-title a:hover { color: var(--accent); }

  /* ---------- News Grid ---------- */
  .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-bottom: 60px;
  }
  .card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    display: flex; flex-direction: column;
  }
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  }
  .card-img {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
  }
  .card-img::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 30px 30px;
  }
  .img-1 { background: linear-gradient(135deg, #1a0033 0%, #000 100%); }
  .img-1::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 60% 40%, rgba(150, 0, 255, 0.6), transparent 55%); }
  .img-2 { background: linear-gradient(135deg, #003322 0%, #000511 100%); }
  .img-2::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 40% 60%, rgba(0, 255, 150, 0.4), transparent 55%); }
  .img-3 { background: linear-gradient(135deg, #332200 0%, #110800 100%); }
  .img-3::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(255, 200, 0, 0.5), transparent 55%); }
  .img-4 { background: linear-gradient(135deg, #220011 0%, #11000a 100%); }
  .img-4::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(255, 0, 100, 0.5), transparent 55%); }
  .img-5 { background: linear-gradient(135deg, #001a33 0%, #000811 100%); }
  .img-5::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(0, 150, 255, 0.5), transparent 55%); }
  .img-6 { background: linear-gradient(135deg, #2a1a00 0%, #110a00 100%); }
  .img-6::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 60% 60%, rgba(255, 100, 30, 0.5), transparent 55%); }
  .img-7 { background: linear-gradient(135deg, #001c1c 0%, #000a0a 100%); }
  .img-7::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 40% 40%, rgba(0, 229, 255, 0.5), transparent 55%); }
  .img-8 { background: linear-gradient(135deg, #180022 0%, #08000f 100%); }
  .img-8::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 55% 45%, rgba(180, 255, 57, 0.4), transparent 55%); }

  .card-tag {
    position: absolute; top: 14px; left: 14px;
    z-index: 2;
  }
  .card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
  .card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px; font-weight: 600;
    line-height: 1.25; letter-spacing: -0.01em;
    margin-bottom: 10px;
    transition: color 0.2s;
  }
  .card:hover h3 { color: var(--accent); }
  .card p {
    font-size: 14px; color: var(--text-dim);
    margin-bottom: 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--text-dimmer);
    font-family: 'JetBrains Mono', monospace;
    border-top: 1px solid var(--border);
    padding-top: 14px;
  }
  .card-meta .author { color: var(--text-dim); }

  /* ---------- Two-column row ---------- */
  .split {
    display: grid; grid-template-columns: 2fr 1fr; gap: 40px;
    padding: 20px 0 60px;
  }

  /* ---------- Trending Sidebar ---------- */
  .trending {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    position: sticky; top: 100px;
    height: fit-content;
  }
  .trending h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
  }
  .trending h3 .fire {
    font-size: 14px;
  }
  .trend-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
  .trend-item {
    display: flex; gap: 14px;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .trend-item:hover { transform: translateX(4px); }
  .trend-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px; font-weight: 700;
    color: var(--text-dimmer);
    line-height: 1; min-width: 32px;
    transition: color 0.2s;
  }
  .trend-item:hover .trend-num { color: var(--accent); }
  .trend-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px; font-weight: 600;
    line-height: 1.3; margin-bottom: 6px;
    letter-spacing: -0.01em;
  }
  .trend-meta {
    font-size: 11px; color: var(--text-dimmer);
    font-family: 'JetBrains Mono', monospace;
    display: flex; gap: 10px;
  }

  /* ---------- Stat Strip ---------- */
  .stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 40px 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-2);
  }
  .stat {
    padding: 28px;
    border-right: 1px solid var(--border);
    position: relative;
  }
  .stat:last-child { border-right: none; }
  .stat-label {
    font-size: 11px; color: var(--text-dim);
    letter-spacing: 0.15em; text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 12px;
  }
  .stat-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 34px; font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1; margin-bottom: 6px;
  }
  .stat-change {
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
  }
  .up { color: var(--accent-3); }
  .down { color: var(--accent); }

  /* ---------- Newsletter ---------- */
  .newsletter {
    margin: 40px 0 80px;
    padding: 60px 48px;
    background: linear-gradient(135deg, #1a0a14 0%, #0a0a1f 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
  }
  .newsletter::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(circle at 20% 50%, rgba(255, 61, 87, 0.2), transparent 40%),
      radial-gradient(circle at 80% 50%, rgba(0, 229, 255, 0.15), transparent 40%);
    pointer-events: none;
  }
  .newsletter::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
  }
  .newsletter-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  }
  .newsletter-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 61, 87, 0.15);
    border: 1px solid rgba(255, 61, 87, 0.3);
    color: var(--accent);
    border-radius: 20px;
    font-size: 12px; font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
  }
  .newsletter h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700; line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }
  .newsletter h2 span { color: var(--accent); }
  .newsletter p {
    color: var(--text-dim); font-size: 15px;
    max-width: 90%;
  }
  .newsletter-form {
    display: flex; flex-direction: column; gap: 12px;
  }
  .input-wrap {
    display: flex; gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    transition: border-color 0.2s;
  }
  .input-wrap:focus-within { border-color: var(--accent); }
  .input-wrap input {
    flex: 1;
    background: transparent; border: none;
    padding: 12px 16px;
    color: var(--text); font-size: 15px;
    font-family: inherit;
    outline: none;
  }
  .input-wrap input::placeholder { color: var(--text-dimmer); }
  .input-wrap button {
    padding: 12px 22px;
    background: var(--gradient);
    color: #000;
    font-weight: 700; font-size: 14px;
    border-radius: 8px;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.2s;
  }
  .input-wrap button:hover { transform: translateX(2px); }
  .newsletter-meta {
    font-size: 12px; color: var(--text-dimmer);
    font-family: 'JetBrains Mono', monospace;
    display: flex; gap: 20px; flex-wrap: wrap;
  }
  .newsletter-meta span { display: flex; align-items: center; gap: 6px; }

  /* ---------- Footer ---------- */
  footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    background: #050508;
    position: relative;
    z-index: 1;
  }
  .footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    margin-bottom: 40px;
  }
  .footer-brand p {
    color: var(--text-dim); font-size: 14px;
    margin-top: 16px; max-width: 340px;
  }
  .footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 18px;
    color: var(--text);
  }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .footer-col a {
    font-size: 14px; color: var(--text-dim);
    transition: color 0.2s;
  }
  .footer-col a:hover { color: var(--accent); }
  .footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-dimmer);
    font-family: 'JetBrains Mono', monospace;
  }
  .socials { display: flex; gap: 10px; }
  .socials a {
    width: 34px; height: 34px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid; place-items: center;
    transition: all 0.2s;
  }
  .socials a:hover { border-color: var(--accent); color: var(--accent); }

  /* ---------- Responsive ---------- */
  @media (max-width: 1000px) {
    .hero { grid-template-columns: 1fr; }
    .hero-side { flex-direction: row; }
    .hero-sub { flex: 1; }
    .split { grid-template-columns: 1fr; }
    .trending { position: static; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
    .newsletter-inner { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
  }
  @media (max-width: 640px) {
    .hero-side { flex-direction: column; }
    .news-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid var(--border); }
    .stat:last-child { border-bottom: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; }
    .newsletter { padding: 40px 24px; }
    .topbar-right { display: none; }
  }

  /* Helmet logo */
  .logo-mark { padding: 0; background: transparent; display: grid; place-items: center; overflow: visible; }
  .logo-mark::after { display: none; }
  .logo-mark .helmet { width: 36px; height: 36px; display: block; filter: drop-shadow(0 0 8px rgba(255,61,87,0.4)); }
  .byline-avatar .helmet { width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(255,61,87,0.5)); }


/* Logo image styling (replaces inline SVG version) */
.helmet {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 61, 87, 0.35));
}
.logo-mark .helmet { width: 36px; height: 36px; }
.byline-avatar { background: #000; border: 1px solid var(--border); padding: 0; overflow: hidden; }
.byline-avatar .helmet { width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(255, 61, 87, 0.4)); }


  /* Stronger contrast for text readability against fire */
  .topbar .topbar-left, .topbar .topbar-right, .topbar .topbar-right a { text-shadow: 0 1px 4px rgba(0,0,0,0.9); }


  /* Make nav text pop against the flames */
  header .nav-links a, header .logo, header .logo-text span, header .logo-text small { text-shadow: 0 1px 6px rgba(0,0,0,0.9); }
  /* Restore plain topbar (remove previous fire from topbar) */
  .topbar { position: relative; overflow: hidden; background: #000; }


  /* Main header pixel fire (canvas-based) */
  header { position: sticky; top: 0; z-index: 100; background: #000; border-bottom: 1px solid var(--border); overflow: hidden; isolation: isolate; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header-fire {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
    pointer-events: none;
    z-index: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    opacity: 1;
  }
  .header-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(10,10,15,0.55) 0%, rgba(10,10,15,0.18) 35%, rgba(10,10,15,0.18) 65%, rgba(10,10,15,0.55) 100%);
    pointer-events: none;
    z-index: 1;
  }
  header > .container { position: relative; z-index: 2; }
  header .nav-links a, header .logo, header .logo-text span, header .logo-text small { text-shadow: 0 1px 6px rgba(0,0,0,0.95); }
  .topbar { position: relative; overflow: hidden; background: #000; }

  /* Nav logo — bigger helmet in the main header (footer stays compact) */
  header .logo-mark { width: 100px; height: 100px; }
  header .logo-mark .helmet { width: 100px; height: 100px; object-fit: contain; }
