/* ══════════════════════════════════════════
   TOKENS
══════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:          #07090c;
  --bg-card:     #0c1017;
  --bg-hover:    #10161f;
  --bg-input:    #0e1520;
  --border:      #1a2535;
  --border-hi:   #273a50;
  --accent:      #6aabcf;
  --accent-dim:  #2d5a7a;
  --accent-glow: rgba(106,171,207,0.12);
  --text:        #b8cdd8;
  --text-dim:    #4a6878;
  --text-bright: #dceaf2;
  --hero-overlay: linear-gradient(to bottom, rgba(7,9,12,0.3) 0%, rgba(7,9,12,0.65) 60%, rgba(7,9,12,1) 100%);
  --grain: 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='0.04'/%3E%3C/svg%3E");
}
[data-theme="light"] {
  --bg:          #eef2f7;
  --bg-card:     #f7fafd;
  --bg-hover:    #edf3f9;
  --bg-input:    #ffffff;
  --border:      #ccd7e3;
  --border-hi:   #a6bccf;
  --accent:      #246ea0;
  --accent-dim:  #6c9fbe;
  --accent-glow: rgba(36,110,160,0.10);
  --text:        #334c60;
  --text-dim:    #6d8699;
  --text-bright: #162e43;
  --hero-overlay: linear-gradient(to bottom, rgba(10,18,30,0.10) 0%, rgba(20,34,50,0.24) 58%, rgba(238,242,247,0.88) 100%);
  --grain: none;
}

/* font families */
[data-font="A"] {
  --font-display: 'Anta', sans-serif;
  --font-body:    'Sansation', sans-serif;
  --display-weight: 700;
  --display-size-hero: clamp(56px, 9vw, 100px);
  --display-tracking: 0;
  --display-transform: none;
}
:root {
  --site-max-width: 1440px;
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
}
[data-theme="light"] body {
  background-image:
    radial-gradient(circle, rgba(36,110,160,0.20) 1px, transparent 1.2px),
    radial-gradient(circle at 18% 0%, rgba(128,166,194,0.16) 0%, rgba(238,242,247,0) 42%);
  background-size: 18px 18px, 100% 100%;
  background-attachment: fixed, fixed, fixed;
}
[data-theme="dark"] body {
  background-image:
    radial-gradient(circle, rgba(106,171,207,0.28) 1px, transparent 1.2px),
    radial-gradient(circle at 22% 0%, rgba(35, 76, 112, 0.42) 0%, rgba(7,9,12,0) 45%);
  background-size: 18px 18px, 100% 100%;
  background-attachment: fixed, fixed, fixed;
}
[data-theme="dark"] body::after {
  content: '';
  position: fixed; inset: 0;
  background: var(--grain);
  pointer-events: none; z-index: 9999;
  opacity: 0.45;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s;
}
.topbar-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: var(--display-weight);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-bright);
}
.heo-mark {
  font-family: 'Bruno Ace SC', sans-serif;
  letter-spacing: 0.03em;
}
.topbar-controls {
  display: flex; align-items: center; gap: 8px;
}
.ctrl-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s;
  border-radius: 0;
}
.ctrl-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex; align-items: center;
  padding-top: calc(var(--hero-offset, 90px) + 20px);
  padding-bottom: 48px;
}
.hero-img {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1800&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center 20%;
  transform-origin: center;
  animation: heroZoom 30s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--hero-overlay);
  transition: background 0.4s;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--site-max-width); margin: 0 auto; width: 100%;
  padding: 0 24px;
}
.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--display-size-hero);
  font-weight: var(--display-weight);
  line-height: 0.98;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  color: #f0f8ff;
  margin-bottom: 28px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
[data-font="A"] .hero h1 em { font-style: normal; color: var(--accent); }
[data-font="A"] .hero h1 em {
  font-family: 'Bruno Ace SC', sans-serif;
  letter-spacing: 0.03em;
}
.hero-sub {
  font-size: 14px; color: rgba(200,220,230,0.86);
  max-width: 480px; line-height: 1.75;
  font-weight: 400;
}
.hero-scroll {
  position: absolute; bottom: 32px; right: 32px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; color: rgba(180,210,230,0.5);
  letter-spacing: 0.16em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: ''; display: block;
  width: 1px; height: 48px;
  background: rgba(180,210,230,0.3);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(0.6); }
}

/* ══════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════ */
.site-main { max-width: var(--site-max-width); margin: 0 auto; padding: 80px 24px; }

/* ══════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════ */
.sec-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 28px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sec-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-dim);
  letter-spacing: 0.15em;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: var(--display-weight);
  color: var(--text-bright);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
}

/* ══════════════════════════════════════════
   CARDS GRID
══════════════════════════════════════════ */
.section-block { margin-bottom: 88px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: transparent;
  border: 1px solid var(--border);
}
.card {
  background: var(--bg-card);
  padding: 28px 28px 24px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
  border: 1px solid transparent;
}
.card::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--card-accent, var(--accent));
  transition: width 0.35s ease;
}
.card:hover {
  background: var(--bg-hover);
  border-color: var(--border-hi);
  box-shadow: 0 10px 24px rgba(7, 20, 36, 0.08);
}
.card:hover::after { width: 100%; }
.card.full { grid-column: 1 / -1; }

.card-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  color: var(--tag-accent, var(--accent));
  background: color-mix(in srgb, var(--tag-accent, var(--accent)) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag-accent, var(--accent)) 50%, transparent);
}
[data-theme="light"] .card-tag {
  background: color-mix(in srgb, var(--tag-accent, var(--accent)) 14%, #f0f4f8);
  border: 1px solid color-mix(in srgb, var(--tag-accent, var(--accent)) 38%, #c5cdd6);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: var(--display-weight);
  color: var(--text-bright); line-height: 1.25;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  margin-bottom: 12px;
}
.card p { font-size: 13px; color: var(--text); line-height: 1.78; }

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.card-agency-logo {
  height: 18px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}
[data-theme="light"] .card-agency-logo {
  opacity: 1;
}

.card-stat {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; gap: 24px;
}
.stat-val {
  font-family: var(--font-display);
  font-size: 26px; font-weight: var(--display-weight);
  color: var(--accent); line-height: 1;
  display: block;
}
.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; color: var(--text-dim);
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ══════════════════════════════════════════
   CARD WITH IMAGE
══════════════════════════════════════════ */
.card-img-wrap {
  margin: -28px -28px 20px;
  height: 160px; overflow: hidden;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.6) brightness(0.85);
  transition: filter 0.3s, transform 0.4s;
}
.card-media-link { display: block; text-decoration: none; }
.card-title-link { color: inherit; text-decoration: none; }
.card-title-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card:hover .card-img-wrap img {
  filter: saturate(0.9) brightness(0.95);
  transform: scale(1.03);
}

/* ══════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════ */
.timeline {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  margin-top: 24px;
}
.tl-item {
  display: grid; grid-template-columns: 110px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.tl-item:last-child { border-bottom: none; }
.tl-item:hover { background: var(--bg-hover); }
.tl-year {
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  display: flex; align-items: flex-start;
}
.tl-year span {
  font-family: var(--font-display);
  font-size: 24px; font-weight: var(--display-weight);
  color: var(--accent-dim); line-height: 1;
  text-transform: var(--display-transform);
  letter-spacing: var(--display-tracking);
}
.tl-body { padding: 18px 22px; }
.tl-body h4 {
  font-family: var(--font-display);
  font-size: 14px; font-weight: var(--display-weight);
  color: var(--text-bright); margin-bottom: 5px;
  text-transform: var(--display-transform);
  letter-spacing: var(--display-tracking);
}
.tl-body p { font-size: 12px; color: var(--text-dim); line-height: 1.7; }

/* ══════════════════════════════════════════
   FORUM
══════════════════════════════════════════ */
.forum-section { margin-top: 96px; }
.forum-desc {
  font-size: 13px; color: var(--text-dim); line-height: 1.75;
  margin-bottom: 36px; max-width: 600px;
}

.new-post-box {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 24px; margin-bottom: 32px;
  transition: border-color 0.2s;
}
.new-post-box:focus-within { border-color: var(--accent); }
.np-top { display: flex; gap: 12px; margin-bottom: 12px; }
.np-input {
  flex: 1; background: var(--bg-input);
  border: 1px solid var(--border); color: var(--text-bright);
  font-family: var(--font-body); font-size: 13px;
  padding: 9px 14px; outline: none;
  transition: border-color 0.2s;
}
.np-input::placeholder { color: var(--text-dim); }
.np-input:focus { border-color: var(--accent-dim); }
.np-title {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border); color: var(--text-bright);
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 15px; padding: 10px 14px; outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
}
.np-title::placeholder { color: var(--text-dim); font-style: normal; }
.np-title:focus { border-color: var(--accent-dim); }
.np-textarea {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border); color: var(--text-bright);
  font-family: var(--font-body); font-size: 13px;
  padding: 10px 14px; outline: none; resize: vertical;
  min-height: 90px; line-height: 1.7;
  transition: border-color 0.2s;
}
.np-textarea:focus { border-color: var(--accent-dim); }
.np-bottom {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 12px; align-items: center;
}
.np-tag-select {
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-dim); font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 10px; cursor: pointer; outline: none;
}
.submit-btn {
  padding: 8px 20px;
  background: var(--accent); color: var(--bg);
  border: none; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; transition: opacity 0.2s;
}
.submit-btn:hover { opacity: 0.85; }

.posts-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.post-item {
  background: var(--bg-card); padding: 22px 26px;
  transition: background 0.2s;
  display: grid; grid-template-columns: 48px 1fr; gap: 18px;
  align-items: start;
}
.post-item:hover { background: var(--bg-hover); }
.post-votes {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px; padding-top: 2px;
}
.vote-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer;
  width: 28px; height: 22px;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.vote-btn:hover, .vote-btn.voted { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.vote-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--text-dim);
}
.post-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.post-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: var(--display-weight);
  color: var(--text-bright); line-height: 1.3;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
}
.post-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; color: var(--text-dim);
  letter-spacing: 0.12em; white-space: nowrap;
}
.post-content { font-size: 13px; color: var(--text); line-height: 1.75; }
.post-actions { display: flex; gap: 14px; margin-top: 12px; }
.post-action-btn {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px;
  color: var(--text-dim); letter-spacing: 0.12em; text-transform: uppercase;
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color 0.2s;
}
.post-action-btn:hover { color: var(--accent); }

.replies-wrap {
  border-top: 1px solid var(--border);
  margin-top: 14px; padding-top: 14px;
  display: none; flex-direction: column; gap: 12px;
}
.replies-wrap.open { display: flex; }
.reply-item {
  display: grid; grid-template-columns: 1fr;
  padding: 12px 14px;
  background: var(--bg); border-left: 2px solid var(--border);
}
.reply-item .reply-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; color: var(--text-dim);
  letter-spacing: 0.1em; margin-bottom: 5px;
}
.reply-item p { font-size: 12px; color: var(--text); line-height: 1.7; }
.reply-form {
  display: flex; gap: 8px; margin-top: 8px;
}
.reply-input {
  flex: 1; background: var(--bg-input);
  border: 1px solid var(--border); color: var(--text-bright);
  font-family: var(--font-body); font-size: 12px;
  padding: 7px 12px; outline: none;
  transition: border-color 0.2s;
}
.reply-input:focus { border-color: var(--accent-dim); }
.reply-name { width: 120px; flex-shrink: 0; }
.reply-submit {
  padding: 7px 14px; background: transparent;
  border: 1px solid var(--border); color: var(--text-dim);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.reply-submit:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  max-width: var(--site-max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-l {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-dim);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.footer-r {
  font-family: var(--font-display);
  font-size: 12px; font-style: normal;
  color: var(--text-dim);
  font-weight: 500;
}

/* ══════════════════════════════════════════
   RESPONSIVE  — mobile-first breakpoints
   < 640px   : mobile
   640–1023  : tablet
   1024–1279 : laptop
   1280+     : desktop (default, 4 cols)
══════════════════════════════════════════ */

/* ── Laptop: 3 columnas ── */
@media (max-width: 1279px) {
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Tablet: 2 columnas ── */
@media (max-width: 1023px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-main { padding: 64px 20px; }
  .feature-post-layout, .bot-post-layout { grid-template-columns: 1fr; }
  .feature-stats, .bot-post-stats { flex-wrap: wrap; }
}

/* ── Mobile: 1 columna ── */
@media (max-width: 639px) {
  :root { --site-max-width: 100%; }

  /* Topbar */
  .topbar { padding: 0 16px; height: 48px; }

  /* Hero */
  .hero { min-height: 480px; padding-top: 80px; padding-bottom: 32px; }
  .hero-content { padding: 0 16px; }
  .hero-sub { font-size: 13px; max-width: 100%; }
  .hero-scroll { display: none; }

  /* Main */
  .site-main { padding: 48px 16px; }
  .section-block { margin-bottom: 56px; }

  /* Cards: 1 columna, borde completo */
  .cards-grid {
    grid-template-columns: 1fr;
    border: none;
    gap: 0;
    background: transparent;
  }
  .card {
    border: 1px solid var(--border);
    border-top: none;
  }
  .cards-grid .card:first-child { border-top: 1px solid var(--border); }

  /* Estadísticas de tarjeta */
  .card-stat { gap: 16px; }
  .stat-val { font-size: 20px; }

  /* Timeline */
  .tl-item { grid-template-columns: 64px 1fr; gap: 12px; }
  .tl-year span { font-size: 17px; }

  /* Foro — formulario */
  .np-top { flex-direction: column; }
  .np-input[style*="max-width"] { max-width: 100% !important; }
  .forum-section { margin-top: 56px; }

  /* Foro — posts */
  .post-item { grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; }
  .vote-btn { width: 24px; height: 20px; font-size: 9px; }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 6px;
    padding: 24px 16px;
    text-align: center;
  }

  /* Post artículo */
  .feature-post-shell { padding: 0; }
  .feature-post-header { padding: 24px 16px 20px; }
  .feature-post-content, .bot-post-content { padding: 20px 16px 24px; }
  .feature-post-aside, .bot-post-aside { padding: 20px 16px; }
  .feature-post-aside blockquote, .bot-post-aside blockquote { font-size: 18px; }
  .feature-stats, .bot-post-stats { flex-direction: column; gap: 0; }
  .feature-stat, .bot-post-stat { padding: 14px 16px; }
  .feature-stat .val, .bot-post-stat .val { font-size: 28px; }

  /* Sección cabecera */
  .sec-head h2 { font-size: 20px; }
}

/* ══════════════════════════════════════════
   BREAKING NEWS BANNER
══════════════════════════════════════════ */
.breaking-bar {
  position: fixed; top: 52px; left: 0; right: 0; z-index: 99;
  height: 38px;
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s ease, background 0.3s;
}
.breaking-bar.hidden { transform: translateY(-38px); }

.bn-badge {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px 0 18px;
  height: 100%;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, #1a0606 70%, var(--bg));
  white-space: nowrap;
}
.bn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e04040;
  box-shadow: 0 0 0 0 rgba(224,64,64,0.5);
  animation: livePulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,64,64,0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(224,64,64,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,64,64,0); }
}
.bn-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #ff6262;
}

.bn-ticker-wrap {
  flex: 1; overflow: hidden; position: relative;
  height: 100%; display: flex; align-items: center;
}
.bn-ticker-wrap::before,
.bn-ticker-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2;
  pointer-events: none;
}
.bn-ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.bn-ticker-wrap::after  { right: 40px; background: linear-gradient(to left, var(--bg), transparent); }

.bn-ticker {
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;
  animation: none;
  will-change: transform;
}
.bn-ticker:hover,
.bn-ticker-wrap:hover .bn-ticker { animation-play-state: paused; }

.bn-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--text);
  border-right: 1px solid var(--border);
}
.bn-item .bn-event {
  color: var(--accent);
  font-weight: 500;
}
.bn-item .bn-sep {
  color: var(--text-dim); font-size: 8px;
}
.bn-item .bn-status-live {
  color: #ff5b5b; font-size: 8px; letter-spacing: 0.2em;
  background: rgba(255, 91, 91, 0.12);
  border: 1px solid rgba(255, 91, 91, 0.35);
  padding: 1px 6px;
}
.bn-item .bn-status-soon {
  color: #ffae63; font-size: 8px; letter-spacing: 0.2em;
  background: rgba(255, 174, 99, 0.12);
  border: 1px solid rgba(255, 174, 99, 0.35);
  padding: 1px 6px;
}
.bn-item .bn-status-watch {
  color: var(--accent); font-size: 8px; letter-spacing: 0.2em;
  background: rgba(106,171,207,0.14);
  border: 1px solid rgba(106,171,207,0.35);
  padding: 1px 6px;
}

.bn-close {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-left: 1px solid var(--border);
  background: transparent; color: var(--text-dim);
  cursor: pointer; font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.bn-close:hover { color: var(--text-bright); background: var(--bg-hover); }

/* ══════════════════════════════════════════
   ENTRY ANIMATIONS
══════════════════════════════════════════ */
.section-block, .forum-section, .hero-content {
  opacity: 0; transform: translateY(16px);
  animation: up 0.55s ease forwards;
}
.section-block:nth-child(1) { animation-delay: 0.1s; }
.section-block:nth-child(2) { animation-delay: 0.22s; }
.section-block:nth-child(3) { animation-delay: 0.34s; }
.section-block:nth-child(4) { animation-delay: 0.46s; }
.forum-section { animation-delay: 0.58s; }
.hero-content { animation-delay: 0.05s; }
@keyframes up { to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════════════════
   SINGLE POST PAGE
══════════════════════════════════════════ */
.post-page-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 140px 24px 72px;
}
.article-shell {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 90%, transparent);
}
.article-hero {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.article-body {
  padding: 28px 30px 34px;
}
.article-tag-line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.article-title {
  font-family: var(--font-display);
  color: var(--text-bright);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  margin-bottom: 16px;
}
.article-subtitle {
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.article-metadata {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 24px;
}
.article-block + .article-block {
  margin-top: 20px;
}
.article-block h3 {
  font-family: var(--font-display);
  font-size: 23px;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.article-block p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
}
.article-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 28px;
}
.article-stat {
  background: var(--bg-card);
  padding: 18px 18px 16px;
}
.article-stat-val {
  display: block;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}
.article-stat-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ══════════════════════════════════════════
   FEATURE POST (STATIC SEO)
══════════════════════════════════════════ */
.feature-post-main, .bot-post-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 116px 24px 78px;
}
.feature-post-shell, .bot-post-shell {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
}
.feature-post-header, .bot-post-header {
  padding: 30px 34px 24px;
  border-bottom: 1px solid var(--border);
}
.feature-kicker, .bot-post-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.feature-post-header h1, .bot-post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 0.98;
  color: var(--text-bright);
  margin-bottom: 14px;
}
.feature-deck, .bot-post-deck {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  max-width: 880px;
  margin-bottom: 18px;
}
.feature-meta, .bot-post-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.feature-hero-wrap, .bot-post-hero-wrap {
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.feature-hero-image, .bot-post-hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.feature-hero-wrap figcaption, .bot-post-hero-wrap figcaption {
  padding: 10px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.feature-post-layout, .bot-post-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1px;
  background: var(--border);
}
.feature-post-content,
.feature-post-aside,
.bot-post-content,
.bot-post-aside {
  background: var(--bg-card);
}
.feature-post-content, .bot-post-content {
  padding: 30px 34px 36px;
}
.feature-post-content section + section, .bot-post-content section + section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.feature-post-content h2, .bot-post-content h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.08;
  color: var(--text-bright);
  margin-bottom: 9px;
}
.feature-post-content p, .bot-post-content p {
  font-size: 16px;
  line-height: 1.86;
  color: var(--text);
}
.feature-post-content p::first-letter, .bot-post-content p::first-letter {
  font-family: var(--font-display);
  font-size: 2.1em;
  line-height: 0.85;
  float: left;
  padding-right: 8px;
  color: var(--accent);
}
.feature-post-aside, .bot-post-aside {
  padding: 30px 26px;
}
.feature-post-aside blockquote, .bot-post-aside blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.3;
  color: var(--text-bright);
  margin-bottom: 20px;
}
.feature-stats, .bot-post-stats {
  display: flex;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-post-aside .feature-stats,
.bot-post-aside .bot-post-stats {
  flex-direction: column;
}
.feature-stat, .bot-post-stat {
  flex: 1;
  background: var(--bg-card);
  padding: 20px 28px;
}
.feature-post-aside .feature-stat,
.bot-post-aside .bot-post-stat {
  flex: 0 1 auto;
  padding: 18px 20px;
}
.feature-stat .val, .bot-post-stat .val {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}
.feature-stat .lab, .bot-post-stat .lab {
  display: block;
  margin-top: 7px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@media (max-width: 900px) {
  .feature-post-layout, .bot-post-layout { grid-template-columns: 1fr; }
}
