/* =================================================================
   Habla Journal - Editorial template
   Shared by: /blog/index.html and /blog/article-*.html
   Adapted from the Breach Culture streetmedia-social template.
   Uses Habla typography (Fraunces + Geist Mono + Inter Tight) and
   brand palette (carbon base, nieve text, cielo blue accent with
   rojo red highlight). One file, one voice.
   ================================================================= */

/* ---------- TOKENS (scoped to .habla-editorial body) ---------- */
body.habla-editorial {
  --ed-bg:         #131018;         /* warm off-black */
  --ed-bg-2:       #1B1720;         /* card / pull-quote bg */
  --ed-bg-3:       #27222B;         /* hover state */
  --ed-text:       #F2EEE5;         /* cream body text */
  --ed-text-2:     #BDB5A6;         /* muted secondary */
  --ed-text-3:     #7A7267;         /* meta / quiet */
  --ed-rule:       #2A252E;         /* dividers */
  --ed-accent:     #4E6FD0;         /* cielo-hot: hero/progress/drop cap */
  --ed-accent-2:   #6B89E6;         /* hover */
  --ed-rojo:       #E63B54;         /* red highlight (bang-close glyph) */
  --ed-paper:      #F8F6F0;         /* nieve for reference */

  --ed-display:    'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --ed-body:       'Inter Tight', ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  --ed-mono:       'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- RESET / BASE on editorial pages ---------- */
body.habla-editorial {
  margin: 0;
  background: var(--ed-bg);
  color: var(--ed-text);
  font-family: var(--ed-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  opacity: 0;
  animation: hablaPageFadeIn 0.9s ease-out 0.1s forwards;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@keyframes hablaPageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Subtle grain overlay — matches marketing.css texture treatment */
body.habla-editorial::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: 0.05;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

body.habla-editorial img { display: block; max-width: 100%; height: auto; }

body.habla-editorial a {
  color: var(--ed-accent-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
body.habla-editorial a:hover { color: var(--ed-rojo); }

body.habla-editorial ::selection {
  background: var(--ed-accent);
  color: var(--ed-paper);
}

/* ---------- EDITORIAL NAV (slim, transparent over hero) ---------- */
.ed-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
}

.ed-nav-mark {
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 35, 'SOFT' 30;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ed-paper);
  line-height: 1;
}
.ed-nav-mark .bang-open  { color: var(--ed-accent); margin-right: 0.04em; }
.ed-nav-mark .bang-close { color: var(--ed-rojo);   margin-left: 0.04em; }

.ed-nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
}
.ed-nav-links a {
  font-family: var(--ed-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ed-text-2);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.ed-nav-links a:hover {
  color: var(--ed-paper);
  background: rgba(255,255,255,0.06);
}
.ed-nav-links a.is-active { color: var(--ed-rojo); }
.ed-nav-cta {
  background: var(--ed-paper);
  color: var(--ed-bg) !important;
  font-weight: 500;
}
.ed-nav-cta:hover {
  background: var(--ed-accent) !important;
  color: var(--ed-paper) !important;
}

@media (max-width: 640px) {
  .ed-nav-links .ed-hide-mobile { display: none; }
}

/* ---------- READING PROGRESS BAR ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--ed-accent) 0%, var(--ed-rojo) 100%);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---------- LIGHTBOX (retained for forward compat if imagery added) ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 14, 0.96);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  z-index: 10001;
  font-family: var(--ed-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-text-2);
  background: none;
  border: 1px solid var(--ed-rule);
  padding: 8px 16px;
  cursor: pointer;
  display: none;
}
.lightbox-overlay.active ~ .lightbox-close,
.lightbox-close.active { display: block; }

/* ---------- HERO (typographic, no image) ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}

/* Parallax wrapper holds the decorative background layers
   so they can be translated on scroll via JS */
.hero-image-wrapper {
  position: absolute;
  inset: -80px 0 0 0;
  overflow: hidden;
  z-index: 0;
  will-change: transform;
}

/* Decorative "cover" for hero. For articles without photos we use
   a layered gradient + giant Fraunces glyph. Articles with images
   can drop an <img class="hero-image"> in here. */
.hero-image {
  width: 100%;
  height: calc(100% + 80px);
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
  opacity: 0.55;
}

.hero-bg-paint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 15% 15%, rgba(78,111,208,0.38) 0%, transparent 55%),
    radial-gradient(100% 70% at 85% 30%, rgba(230,59,84,0.22) 0%, transparent 55%),
    linear-gradient(180deg, #1F1A28 0%, #131018 70%, #0C0A12 100%);
}

.hero-glyph {
  position: absolute;
  right: clamp(-80px, -5vw, -20px);
  top: -8vh;
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 100, 'SOFT' 100;
  font-size: clamp(20rem, 52vw, 46rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.04);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  font-style: italic;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(19, 16, 24, 0.25) 0%,
    rgba(19, 16, 24, 0.15) 35%,
    rgba(19, 16, 24, 0.55) 70%,
    rgba(19, 16, 24, 0.92) 90%,
    var(--ed-bg) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(64px, 9vh, 120px);
}

.hero-label {
  font-family: var(--ed-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ed-accent-2);
  margin-bottom: 28px;
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(107, 137, 230, 0.35);
  border-radius: 999px;
  background: rgba(78, 111, 208, 0.08);
}

.hero-title {
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 100, 'SOFT' 40;
  font-size: clamp(2.4rem, 6.8vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--ed-paper);
  margin: 0 0 24px;
  max-width: 18ch;
}
.hero-title em {
  font-style: italic;
  color: var(--ed-accent-2);
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 100, 'SOFT' 100;
}

.hero-subtitle {
  font-family: var(--ed-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 40, 'wght' 400, 'WONK' 0, 'SOFT' 20;
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--ed-text-2);
  margin: 0 0 32px;
  max-width: 46ch;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  font-family: var(--ed-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-text-3);
}
.hero-meta span { display: inline-flex; align-items: center; }
.meta-divider {
  width: 4px; height: 4px;
  background: var(--ed-accent);
  border-radius: 50%;
  display: inline-block;
}

/* ---------- ARTICLE BODY ---------- */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  position: relative;
  z-index: 3;
}

.article-lead {
  padding-top: clamp(64px, 10vh, 112px);
  padding-bottom: 20px;
}

.article-lead p {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--ed-text);
  margin: 0 0 28px;
}
.article-lead p:first-child { font-size: 1.28rem; }

.article-lead p:first-child::first-letter {
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 100, 'SOFT' 60;
  font-size: 5.6em;
  float: left;
  line-height: 0.78;
  margin: 8px 14px 0 0;
  color: var(--ed-accent);
  padding-right: 4px;
}

.body-text p {
  margin: 0 0 24px;
  font-size: 1.1rem;
  line-height: 1.78;
  color: var(--ed-text);
}

.body-text h2,
.article-body h2 {
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 72, 'wght' 700, 'WONK' 30, 'SOFT' 20;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ed-paper);
  margin: 56px 0 20px;
}
.body-text h2:first-child,
.article-body h2:first-child { margin-top: 0; }

.body-text h3,
.article-body h3 {
  font-family: var(--ed-body);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ed-paper);
  margin: 40px 0 14px;
}

.body-text strong,
.article-body strong { color: var(--ed-paper); font-weight: 600; }

.body-text em,
.article-body em { font-style: italic; color: var(--ed-text); }

/* ---------- BLOCKQUOTE (decorative opening quote) ---------- */
.article-body blockquote,
.body-text blockquote {
  border-left: 3px solid var(--ed-accent);
  padding: 8px 0 8px 32px;
  margin: 36px 0 20px;
  font-family: var(--ed-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 40, 'wght' 400, 'WONK' 40, 'SOFT' 40;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ed-text);
  position: relative;
  background: linear-gradient(90deg, rgba(78,111,208,0.06) 0%, transparent 80%);
}

.article-body blockquote::before,
.body-text blockquote::before {
  content: "\201C";
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 100, 'SOFT' 100;
  font-size: 6rem;
  color: rgba(78, 111, 208, 0.28);
  position: absolute;
  top: -22px;
  left: 12px;
  line-height: 1;
  pointer-events: none;
}

.article-body blockquote p,
.body-text blockquote p { margin: 0 0 14px; font-size: 1.2rem; }
.article-body blockquote p:last-child,
.body-text blockquote p:last-child { margin-bottom: 0; }

.article-body blockquote cite,
.body-text blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--ed-mono);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-text-3);
}

.attribution {
  font-family: var(--ed-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-text-3);
  margin: 12px 0 32px;
}

/* ---------- RESEARCH / CITATION CALLOUT ---------- */
.blog-research {
  margin: 36px 0;
  padding: 22px 26px;
  background: var(--ed-bg-2);
  border: 1px solid var(--ed-rule);
  border-left: 3px solid var(--ed-rojo);
  border-radius: 0 10px 10px 0;
}
.blog-research p {
  margin: 0;
  font-family: var(--ed-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: var(--ed-text-2);
}
.blog-research strong { color: var(--ed-paper); font-weight: 500; }

/* ---------- THIN RULE ---------- */
hr.thin-rule,
.article-body hr,
.body-text hr {
  border: 0;
  height: 1px;
  background: var(--ed-rule);
  margin: 48px 0;
}

/* ---------- PULL QUOTE SPREAD ---------- */
.pull-quote-spread {
  width: 100%;
  min-height: 420px;
  background: var(--ed-bg-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px clamp(20px, 5vw, 56px);
  margin: 80px 0;
  overflow: hidden;
}

.pull-quote-spread::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(78,111,208,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(230,59,84,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.pull-quote-spread::after {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 100, 'SOFT' 100;
  font-size: 9rem;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.pull-quote-text {
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 80, 'SOFT' 50;
  font-size: clamp(1.75rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--ed-paper);
  max-width: 960px;
  position: relative;
  z-index: 1;
  margin: 0;
}
.pull-quote-text .highlight {
  color: var(--ed-rojo);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 100, 'SOFT' 100;
}

.pull-quote-attr {
  font-family: var(--ed-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-text-3);
  margin: 28px 0 0;
  position: relative;
  z-index: 1;
}

/* ---------- PHOTO GRID (retained; Habla articles may not use it) ---------- */
.photo-grid {
  width: 100%;
  margin: 72px 0;
}
.photo-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.photo-grid-inner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  cursor: pointer;
}
.photo-grid figcaption,
.full-bleed figcaption {
  font-family: var(--ed-mono);
  font-size: 0.72rem;
  color: var(--ed-text-3);
  letter-spacing: 0.05em;
  padding: 14px clamp(20px, 5vw, 40px) 0;
  max-width: 720px;
  margin: 0 auto;
}

.full-bleed {
  width: 100%;
  margin: 72px 0;
  overflow: hidden;
}
.full-bleed img {
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
  cursor: pointer;
}

/* ---------- CTA BLOCK (end-of-article conversion) ---------- */
.blog-cta {
  max-width: 720px;
  margin: 72px auto 0;
  padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(135deg, var(--ed-accent) 0%, #3A55B5 100%);
  border-radius: 22px;
  color: var(--ed-paper);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(78, 111, 208, 0.45);
}

.blog-cta::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(230,59,84,0.35) 0%, transparent 60%);
  pointer-events: none;
}

.blog-cta .blog-cta-label {
  font-family: var(--ed-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(248,246,240,0.7);
  position: relative;
  z-index: 1;
}
.blog-cta h3 {
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 72, 'wght' 700, 'WONK' 40, 'SOFT' 30;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ed-paper);
  position: relative;
  z-index: 1;
}
.blog-cta p {
  margin: 0;
  font-family: var(--ed-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(248,246,240,0.88);
  position: relative;
  z-index: 1;
  max-width: 48ch;
}
.blog-cta .blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 14px 26px;
  background: var(--ed-paper);
  color: var(--ed-bg);
  font-family: var(--ed-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  position: relative;
  z-index: 1;
}
.blog-cta .blog-cta-btn:hover {
  transform: translateY(-2px);
  background: var(--ed-bg);
  color: var(--ed-paper);
}
.blog-cta .blog-cta-btn::after { content: '\2192'; transition: transform 0.25s ease; }
.blog-cta .blog-cta-btn:hover::after { transform: translateX(4px); }

/* ---------- ARTICLE FOOTER ---------- */
.article-footer {
  border-top: 1px solid var(--ed-rule);
  padding: 48px 0 32px;
  margin-top: 72px;
}
.footer-byline {
  font-family: var(--ed-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ed-paper);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.footer-credits {
  font-family: var(--ed-body);
  font-size: 0.9rem;
  color: var(--ed-text-3);
  margin: 0 0 28px;
  line-height: 1.55;
}
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.footer-tags span {
  font-family: var(--ed-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ed-text-2);
  border: 1px solid var(--ed-rule);
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-tags span:hover {
  color: var(--ed-paper);
  border-color: var(--ed-accent);
  background: rgba(78,111,208,0.12);
}

.footer-home {
  font-family: var(--ed-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}
.footer-home a {
  color: var(--ed-accent-2);
  border-bottom: 1px solid var(--ed-rule);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-home a:hover {
  color: var(--ed-rojo);
  border-color: var(--ed-rojo);
}

/* ---------- BACK LINK (inside article header area) ---------- */
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ed-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-back:hover { color: var(--ed-paper); }
.blog-back svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- SITE FOOTER ---------- */
.ed-site-footer {
  padding: 48px clamp(20px, 5vw, 56px);
  text-align: center;
  border-top: 1px solid var(--ed-rule);
  margin-top: 72px;
  position: relative;
  z-index: 3;
}
.ed-site-footer p,
.ed-site-footer a {
  font-family: var(--ed-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ed-text-3);
  margin: 0;
}
.ed-site-footer nav { display: inline-flex; gap: 18px; margin-top: 10px; }
.ed-site-footer a:hover { color: var(--ed-paper); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   BLOG INDEX (Habla Journal magazine layout)
   ====================================================== */
.journal-index {
  position: relative;
  z-index: 3;
  padding: 0 0 clamp(80px, 12vh, 160px);
}

.journal-hero {
  position: relative;
  padding: clamp(120px, 18vh, 200px) clamp(20px, 5vw, 56px) clamp(64px, 10vh, 120px);
  border-bottom: 1px solid var(--ed-rule);
  overflow: hidden;
}
.journal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 60% at 20% 20%, rgba(78,111,208,0.22) 0%, transparent 55%),
    radial-gradient(80% 50% at 90% 80%, rgba(230,59,84,0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.journal-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.journal-kicker {
  font-family: var(--ed-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ed-accent-2);
  margin: 0 0 24px;
  display: inline-block;
}
.journal-title {
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 100, 'SOFT' 40;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.042em;
  color: var(--ed-paper);
  margin: 0 0 24px;
  max-width: 14ch;
}
.journal-title em {
  font-style: italic;
  color: var(--ed-accent-2);
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 100, 'SOFT' 100;
}
.journal-lede {
  font-family: var(--ed-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 40, 'wght' 400, 'WONK' 0, 'SOFT' 20;
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  color: var(--ed-text-2);
  max-width: 54ch;
  margin: 0 0 40px;
}
.journal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--ed-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-text-3);
  padding-top: 24px;
  border-top: 1px solid var(--ed-rule);
}
.journal-meta-row span::before {
  content: '\2022  ';
  color: var(--ed-accent);
  margin-right: 6px;
}
.journal-meta-row span:first-child::before { content: ''; margin: 0; }

/* Featured article card (full width) */
.journal-featured {
  max-width: 1080px;
  margin: clamp(56px, 8vh, 96px) auto 0;
  padding: 0 clamp(20px, 5vw, 56px);
}
.journal-featured-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(32px, 5vw, 56px);
  background: var(--ed-bg-2);
  border: 1px solid var(--ed-rule);
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}
.journal-featured-inner::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(78,111,208,0.2) 0%, transparent 60%);
  pointer-events: none;
  transition: transform 0.8s ease;
}
.journal-featured-inner:hover {
  border-color: var(--ed-accent);
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -30px rgba(78, 111, 208, 0.4);
}
.journal-featured-inner:hover::before { transform: scale(1.15); }

.journal-featured-tag {
  font-family: var(--ed-mono);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ed-rojo);
  margin-bottom: 18px;
}
.journal-featured h2 {
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 80, 'SOFT' 40;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ed-paper);
  margin: 0 0 18px;
}
.journal-featured-excerpt {
  font-family: var(--ed-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ed-text-2);
  margin: 0 0 24px;
}
.journal-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-family: var(--ed-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-text-3);
}
.journal-featured-meta span + span::before {
  content: '\2022  ';
  color: var(--ed-accent);
  margin-right: 6px;
}
.journal-featured-number {
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 100, 'SOFT' 100;
  font-size: clamp(8rem, 14vw, 14rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--ed-accent);
  opacity: 0.9;
  align-self: start;
  font-style: italic;
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .journal-featured-inner { grid-template-columns: 1fr; }
  .journal-featured-number { font-size: 6rem; margin-bottom: 8px; }
}

/* Remaining 5 article grid */
.journal-grid-section {
  max-width: 1080px;
  margin: clamp(56px, 8vh, 96px) auto 0;
  padding: 0 clamp(20px, 5vw, 56px);
}
.journal-grid-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ed-rule);
}
.journal-grid-heading h2 {
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 72, 'wght' 700, 'WONK' 40, 'SOFT' 20;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--ed-paper);
  margin: 0;
}
.journal-grid-heading .count {
  font-family: var(--ed-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ed-text-3);
}
.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  background: var(--ed-rule);
  border: 1px solid var(--ed-rule);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
}

.journal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(24px, 3vw, 32px);
  background: var(--ed-bg);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
  min-height: 220px;
}
.journal-card:hover {
  background: var(--ed-bg-2);
  transform: translateY(-2px);
}
.journal-card::after {
  content: '\2192';
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--ed-mono);
  font-size: 1.1rem;
  color: var(--ed-text-3);
  transition: transform 0.3s ease, color 0.3s ease;
}
.journal-card:hover::after {
  color: var(--ed-accent);
  transform: translateX(6px);
}

.journal-card-number {
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 60, 'SOFT' 60;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 0.9;
  color: var(--ed-accent);
  font-style: italic;
  letter-spacing: -0.04em;
}
.journal-card-body h3 {
  font-family: var(--ed-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 72, 'wght' 700, 'WONK' 40, 'SOFT' 20;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ed-paper);
  margin: 0 0 10px;
}
.journal-card-excerpt {
  font-family: var(--ed-body);
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ed-text-2);
  margin: 0 0 18px;
  max-width: 52ch;
}
.journal-card-meta {
  font-family: var(--ed-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.journal-card-meta span + span::before {
  content: '\2022  ';
  color: var(--ed-accent);
  margin-right: 4px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  body.habla-editorial { font-size: 17px; }
  .hero { min-height: 80vh; }
  .hero-content { padding-bottom: 56px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 3.5rem); }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-glyph { font-size: clamp(14rem, 58vw, 28rem); right: -40px; top: 2vh; }
  .article-lead p { font-size: 1.08rem; }
  .article-lead p:first-child { font-size: 1.15rem; }
  .article-lead p:first-child::first-letter { font-size: 4.5em; margin-right: 10px; }
  .body-text p, .article-body p { font-size: 1.02rem; }
  .body-text h2, .article-body h2 { font-size: 1.45rem; }
  .article-body blockquote,
  .body-text blockquote { font-size: 1.12rem; padding-left: 22px; }
  .article-body blockquote::before,
  .body-text blockquote::before { font-size: 4.5rem; }
  .pull-quote-spread { min-height: 320px; padding: 72px 20px; margin: 56px 0; }
  .pull-quote-text { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .photo-grid-inner { grid-template-columns: 1fr; }
  .photo-grid-inner img { height: 280px; }
  .blog-cta { margin-left: clamp(20px, 5vw, 40px); margin-right: clamp(20px, 5vw, 40px); }
  .journal-hero { padding-top: clamp(100px, 14vh, 160px); }
  .journal-title { font-size: clamp(2.6rem, 11vw, 4.6rem); }
  .journal-lede { font-size: 1.05rem; }
  .journal-featured-inner { padding: 28px; }
  .journal-featured h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .journal-card { padding: 22px; min-height: auto; }
  .journal-card::after { top: 20px; right: 22px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-meta { font-size: 0.64rem; gap: 10px 14px; }
  .hero-label { font-size: 10px; padding: 5px 10px; }
  .article-lead { padding-top: 56px; }
  .pull-quote-text { font-size: 1.5rem; }
  .journal-card { grid-template-columns: 1fr; gap: 14px; }
  .journal-card-number { font-size: 2.4rem; }
  .blog-cta { padding: 28px 22px; border-radius: 18px; }
  .blog-cta h3 { font-size: 1.35rem; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  body.habla-editorial { animation: none; opacity: 1; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .progress-bar { transition: none; }
  .hero-image-wrapper, .hero-image { transform: none !important; }
}
