/* ══════════════════════════════════════════════════
   BLOG — blog.html + article.html
   Fix: styles.css @media all overrides body to white/black.
══════════════════════════════════════════════════ */

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

/* ══════════════════════════════════════════════════
   READING COLUMN SYSTEM
   One axis for all text content.
   --read-col  = max readable width
   --read-pad  = side margins to reach it
   All text blocks center their content using these vars.
══════════════════════════════════════════════════ */

:root {
  --read-col: min(680px, 100%);
  --read-pad: clamp(24px, 8vw, 96px);
}

/* ── Blog nav (prefix b- to avoid .site-nav collision in styles.css) ── */
.b-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 9, 9, 0.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.b-nav__logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.b-nav__logo span { color: var(--accent); }

.b-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.b-nav__link {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 236, 231, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.b-nav__link:hover,
.b-nav__link.is-active { color: var(--text); }

.b-nav__cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #090909;
  background: var(--accent);
  padding: 8px 18px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.b-nav__cta:hover { opacity: 0.85; }

/* ── Pill nav (floating, like main page site-nav) ── */
.b-pill-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(14, 14, 14, 0.88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 5px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.b-pill-nav__item {
  display: flex;
  align-items: center;
  border-radius: 100px;
  padding: 9px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
}

.b-pill-nav__item:hover { color: rgba(255, 255, 255, 0.88); background: rgba(255, 255, 255, 0.07); }
.b-pill-nav__item.is-active { background: #fff; color: #0c0c0c; }

.b-pill-nav__item--cta {
  background: var(--accent);
  color: #090909;
  font-weight: 700;
}

.b-pill-nav__item--cta:hover { background: var(--accent); color: #090909; opacity: 0.88; }

@media (max-width: 600px) {
  .b-pill-nav {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 4px calc(10px + env(safe-area-inset-bottom, 12px));
    justify-content: space-around;
    box-shadow: none;
  }

  .b-pill-nav__item { padding: 8px 12px; font-size: 11px; }
  .b-pill-nav__item--cta { display: none; }
}

/* ── Article nav ── */
.b-article-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 9, 9, 0.94);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

.b-article-nav__back {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 236, 231, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.b-article-nav__back::before { content: '←'; font-size: 14px; }
.b-article-nav__back:hover { color: var(--text); }

.b-article-nav__logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.b-article-nav__logo span { color: var(--accent); }

.b-article-nav__share {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 236, 231, 0.45);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.b-article-nav__share:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════
   BLOG INDEX
══════════════════════════════════════════════════ */

.blog-hero {
  background: var(--bg);
  padding: clamp(64px, 10vw, 120px) var(--read-pad) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(184, 255, 104, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.blog-hero__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.blog-hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 20vw, 260px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 clamp(20px, 3vw, 36px);
}

.blog-hero__desc {
  max-width: 52ch;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.6;
  color: rgba(240, 236, 231, 0.5);
}

/* ── Filters ── */
.blog-filters {
  display: flex;
  gap: 0;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
}

.blog-filters::-webkit-scrollbar { display: none; }

.blog-filter {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 236, 231, 0.4);
  padding: 15px 20px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s, background 0.2s;
}

.blog-filter:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.blog-filter.is-active { color: var(--accent); }

/* ── Cards grid ── */
main { background: var(--bg); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card--featured { grid-column: span 2; }
@media (max-width: 560px) { .blog-card--featured { grid-column: span 1; } }

.blog-card {
  background: var(--bg);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: background 0.22s;
  overflow: hidden;
}

.blog-card:hover { background: rgba(255, 255, 255, 0.02); }
.blog-card:hover .blog-card__img img { transform: scale(1.03); }
.blog-card:hover .blog-card__arrow { color: var(--accent); transform: translate(3px, -3px); }

/* ── Card image / placeholder ── */
.blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.blog-card--featured .blog-card__img { aspect-ratio: 21/9; }

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  filter: saturate(0.85);
}

/* Placeholder — shows when no image */
.blog-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(16px, 2vw, 24px);
  /* background set per card via data-bg or nth-child below */
}

.blog-card__ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 56px 100%;
}

.blog-card__ph::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 7vw, 90px);
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.07);
  white-space: nowrap;
  pointer-events: none;
}

.blog-card__ph-tag {
  position: relative;
  z-index: 1;
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* Placeholder gradient backgrounds by card position / category */
.blog-card:nth-child(1) .blog-card__ph { background: linear-gradient(135deg, #141c2e 0%, #0d1520 100%); }
.blog-card:nth-child(2) .blog-card__ph { background: linear-gradient(135deg, #1c1428 0%, #120d1e 100%); }
.blog-card:nth-child(3) .blog-card__ph { background: linear-gradient(135deg, #141e18 0%, #0d180f 100%); }
.blog-card:nth-child(4) .blog-card__ph { background: linear-gradient(135deg, #1a1412 0%, #160f0c 100%); }
.blog-card:nth-child(5) .blog-card__ph { background: linear-gradient(135deg, #141c2e 0%, #0a1018 100%); }
.blog-card:nth-child(6) .blog-card__ph { background: linear-gradient(135deg, #1c1e14 0%, #141600 100%); }
.blog-card:nth-child(7) .blog-card__ph { background: linear-gradient(135deg, #101c1c 0%, #081414 100%); }
.blog-card:nth-child(8) .blog-card__ph { background: linear-gradient(135deg, #1c1418 0%, #150d11 100%); }
.blog-card:nth-child(9) .blog-card__ph { background: linear-gradient(135deg, #1a1e12 0%, #12160a 100%); }

/* ── Card body ── */
.blog-card__body {
  padding: clamp(18px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.blog-card__tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(184, 255, 104, 0.25);
  padding: 3px 7px;
}

.blog-card__date {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  color: var(--muted);
}

.blog-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 10px;
}

.blog-card--featured .blog-card__title {
  font-size: clamp(20px, 2.6vw, 34px);
  letter-spacing: -0.03em;
}

.blog-card__excerpt {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(13px, 0.95vw, 14px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.blog-card__read-time {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  color: rgba(240, 236, 231, 0.28);
}

.blog-card__arrow {
  font-size: 14px;
  color: rgba(240, 236, 231, 0.28);
  transition: transform 0.25s, color 0.25s;
  line-height: 1;
}

/* ── Pagination ── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg);
}

.blog-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.blog-page-btn:last-child { border-right: 1px solid rgba(255, 255, 255, 0.12); }
.blog-page-btn:hover,
.blog-page-btn.is-active { background: rgba(184,255,104,0.07); color: var(--accent); }

/* ══════════════════════════════════════════════════
   ARTICLE PAGE
   Single reading-column axis for all text.
   Full-bleed for media / stats / quote.
══════════════════════════════════════════════════ */

/* Reading progress bar — fixed at very top of viewport */
.post-progress {
  position: fixed;
  top: 58px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 100;
  transition: width 0.1s linear;
  pointer-events: none;
}

.post { width: 100%; background: var(--bg); padding-top: 58px; }

/* ── Article header ── */
.post-header {
  background: var(--bg);
  padding: clamp(56px, 8vw, 96px) var(--read-pad) clamp(36px, 5vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(200px, 0.55fr);
  gap: clamp(32px, 4vw, 64px);
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .post-header { grid-template-columns: 1fr; gap: 28px; }
}

.post-header__tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(184, 255, 104, 0.3);
  padding: 4px 10px;
  margin-bottom: 22px;
}

.post-header__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 18px;
}

.post-header__lead {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.6;
  color: rgba(240, 236, 231, 0.55);
  margin: 0;
}

.post-header__meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  padding-top: 4px;
}

.post-meta-item { display: flex; flex-direction: column; gap: 3px; }

.post-meta-item__label {
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 236, 231, 0.28);
}

.post-meta-item__value {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  color: rgba(240, 236, 231, 0.7);
  letter-spacing: -0.01em;
}

/* ══════════════════════════════════════════════════
   POST BLOCKS
   Base: full-width, dark bg.
   .post-col constrains content to reading column.
══════════════════════════════════════════════════ */

.post-block {
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* The one-column reading container used by all text blocks */
.post-col {
  width: var(--read-col);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--read-pad);
  padding-right: var(--read-pad);
  box-sizing: content-box; /* pad adds to --read-col, so clamp keeps it in bounds */
}

/* When --read-col is already 100%, override padding to avoid double */
@media (max-width: 680px) {
  .post-col {
    padding-left: var(--read-pad);
    padding-right: var(--read-pad);
  }
}

/* ── Text block ── */
.post-block--text {
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(44px, 6vw, 72px);
}

/* ── Typography ── */
.post-body h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 16px;
}

/* h2 after a paragraph gets extra top margin */
.post-body p + h2,
.post-body ul + h2,
.post-body ol + h2 { margin-top: 48px; }

.post-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 36px 0 12px;
}

.post-body p {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
  color: rgba(240, 236, 231, 0.72);
  margin: 0 0 1.3em;
}

.post-body p:last-child { margin-bottom: 0; }

.post-body strong { color: var(--text); font-weight: 700; }

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(184, 255, 104, 0.35);
  transition: text-decoration-color 0.2s;
}

.post-body a:hover { text-decoration-color: var(--accent); }

.post-body ul,
.post-body ol {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
  color: rgba(240, 236, 231, 0.72);
  margin: 0 0 1.3em;
  padding-left: 1.4em;
}

.post-body li + li { margin-top: 5px; }

.post-body code {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.84em;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 5px;
  color: var(--accent);
}

/* ── Full-width media block ── */
.post-block--media {
  padding: 0;
  background: #0b0b09;
  line-height: 0;
}

.post-block--media img,
.post-block--media video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.post-block--media-tall img,
.post-block--media-tall video {
  height: clamp(320px, 52vw, 720px);
  object-fit: cover;
}

/* ── Image placeholder ── */
.post-img-ph {
  width: 100%;
  height: clamp(320px, 52vw, 720px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 28px 36px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Narrow version for 2col / 3col */
.post-img-ph--sm {
  height: clamp(200px, 30vw, 480px);
  padding: 20px 24px;
}

/* Grid pattern */
.post-img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 72px 100%;
}

/* Big faded label */
.post-img-ph::after {
  content: attr(data-label);
  position: absolute;
  bottom: -10%;
  right: -2%;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 10vw, 160px);
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.post-img-ph__caption {
  position: relative;
  z-index: 1;
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

/* Gradient variants */
.post-img-ph--blue   { background: linear-gradient(135deg, #0d1828 0%, #081020 100%); }
.post-img-ph--purple { background: linear-gradient(135deg, #14102a 0%, #0d0a1e 100%); }
.post-img-ph--green  { background: linear-gradient(135deg, #0e1c14 0%, #091410 100%); }
.post-img-ph--amber  { background: linear-gradient(135deg, #1c1408 0%, #140e06 100%); }
.post-img-ph--teal   { background: linear-gradient(135deg, #081818 0%, #061210 100%); }

/* ── 2-column media ── */
.post-block--media-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0b0b09;
}

.post-block--media-2col > * {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.post-block--media-2col > *:last-child { border-right: none; }

.post-block--media-2col img { display: block; width: 100%; height: clamp(220px, 32vw, 520px); object-fit: cover; }

/* ── 3-column media ── */
.post-block--media-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #0b0b09;
}

.post-block--media-3col > * { border-right: 1px solid rgba(255, 255, 255, 0.07); }
.post-block--media-3col > *:last-child { border-right: none; }
.post-block--media-3col img { display: block; width: 100%; height: clamp(160px, 24vw, 420px); object-fit: cover; }

@media (max-width: 640px) {
  .post-block--media-2col,
  .post-block--media-3col { grid-template-columns: 1fr; }
  .post-block--media-2col > *,
  .post-block--media-3col > * { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .post-block--media-2col > *:last-child,
  .post-block--media-3col > *:last-child { border-bottom: none; }
}

/* ── Split block: portrait image (1fr) + text (2fr) ── */
.post-block--split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  height: min(100vh, 760px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Image column */
.post-split__img {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

/* Image/placeholder fills column absolutely */
.post-split__img img,
.post-split__img .post-img-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text column */
.post-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 72px);
  background: var(--bg);
  overflow-y: auto;
}

/* Reverse: image right, text left */
.post-block--split-reverse .post-split__img {
  grid-column: 2;
  grid-row: 1;
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.post-block--split-reverse .post-split__text {
  grid-column: 1;
  grid-row: 1;
}

@media (max-width: 768px) {
  .post-block--split {
    grid-template-columns: 1fr;
    height: auto;
  }

  .post-split__img {
    height: clamp(280px, 70vw, 480px);
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .post-block--split-reverse .post-split__img {
    grid-column: auto;
    grid-row: auto;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .post-block--split-reverse .post-split__text {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ── Pull quote ── */
.post-block--quote {
  padding: clamp(56px, 8vw, 96px) var(--read-pad);
  background: rgba(255, 255, 255, 0.012);
}

.post-quote {
  width: var(--read-col);
  margin: 0 auto;
  text-align: center;
}

.post-quote__mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.7;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
  opacity: 0.5;
}

.post-quote__text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 18px;
}

.post-quote__author {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── Stats ── */
.post-block--stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg);
}

@media (max-width: 560px) { .post-block--stats { grid-template-columns: 1fr; } }

.post-stat {
  padding: clamp(28px, 4vw, 52px) clamp(24px, 3.5vw, 48px);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bg);
}

.post-stat:last-child { border-right: none; }

.post-stat__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.9;
  color: var(--accent);
}

.post-stat__label {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 6px;
}

.post-stat__desc {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 22ch;
  margin-top: 6px;
}

/* ── Code block ── */
.post-block--code {
  padding: clamp(32px, 4vw, 48px) var(--read-pad);
  background: #070706;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Code content fits same column as text */
.post-block--code .post-col {
  box-sizing: border-box;
}

.code-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.post-block--code pre {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(12px, 0.95vw, 13px);
  line-height: 1.7;
  color: rgba(240, 236, 231, 0.8);
  margin: 0;
  overflow-x: auto;
}

/* ── Caption ── */
.post-caption {
  padding: 12px var(--read-pad);
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-caption p,
.post-caption {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(240, 236, 231, 0.28);
  margin: 0;
  text-align: center;
}

/* ── Green accent CTA ── */
.post-block--accent {
  background: var(--accent);
  padding: clamp(56px, 7vw, 88px) var(--read-pad);
  border-bottom: none;
}

.post-block--accent .post-col p,
.post-block--accent p {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(17px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: #090909;
  margin: 0;
}

/* ── FAQ block ── */
.post-block--faq {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 56px);
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* 1-col: reading column, centered */
.post-faq--1col {
  width: var(--read-col);
  margin: 0 auto;
  padding-left: var(--read-pad);
  padding-right: var(--read-pad);
  box-sizing: content-box;
}

/* 2-col / 3-col: full width grid */
.post-faq--2col,
.post-faq--3col {
  display: grid;
  gap: 0 clamp(24px, 3vw, 48px);
}

.post-faq--2col { grid-template-columns: repeat(2, 1fr); }
.post-faq--3col { grid-template-columns: repeat(3, 1fr); }

/* Title spans all columns in multi-col; left-aligned */
.post-faq__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 clamp(28px, 4vw, 48px);
}

.post-faq--2col .post-faq__title,
.post-faq--3col .post-faq__title {
  grid-column: 1 / -1;
}

/* Each faq-item is a self-contained accordion column */
.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  align-self: start;
}

.faq-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

/* In 1-col every item gets a bottom border */
.post-faq--1col .faq-item { border-bottom: none; }
.post-faq--1col .faq-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.faq-item__btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  text-align: left;
}

.faq-item__question {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(240, 236, 231, 0.45);
  transition: transform 0.25s ease, border-color 0.2s;
  line-height: 1;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  color: var(--accent);
}

.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-item__body { grid-template-rows: 1fr; }

.faq-item__inner { overflow: hidden; }

.faq-item__answer {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.75;
  color: rgba(240, 236, 231, 0.6);
  padding-bottom: 20px;
  margin: 0;
}

@media (max-width: 900px) {
  .post-faq--3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .post-faq--2col,
  .post-faq--3col { grid-template-columns: 1fr; }
}

/* ── Glossary block ── */
.post-block--glossary {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.012);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* 1-col: reading column */
.post-glossary--1col {
  width: var(--read-col);
  margin: 0 auto;
  padding-left: var(--read-pad);
  padding-right: var(--read-pad);
  box-sizing: content-box;
}

/* 2-col / 3-col: full width grid */
.post-glossary--2col,
.post-glossary--3col {
  display: grid;
  gap: 0 clamp(24px, 3vw, 48px);
}

.post-glossary--2col { grid-template-columns: repeat(2, 1fr); }
.post-glossary--3col { grid-template-columns: repeat(3, 1fr); }

.post-glossary__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 clamp(28px, 4vw, 40px);
}

.post-glossary--2col .post-glossary__title,
.post-glossary--3col .post-glossary__title {
  grid-column: 1 / -1;
}

/* Each item is a grid cell */
.glossary-list { display: contents; }

.glossary-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-self: start;
}

.glossary-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

/* In 1-col: term + def side by side */
.post-glossary--1col .glossary-list { display: flex; flex-direction: column; }
.post-glossary--1col .glossary-item {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) 1fr;
  gap: 8px clamp(24px, 4vw, 56px);
  align-items: baseline;
  flex-direction: unset;
}

.glossary-item__term {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.glossary-item__def {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.65;
  color: rgba(240, 236, 231, 0.6);
  margin: 0;
}

@media (max-width: 900px) {
  .post-glossary--3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .post-glossary--2col,
  .post-glossary--3col { grid-template-columns: 1fr; }
  .post-glossary--1col .glossary-item { grid-template-columns: 1fr; gap: 4px; }
}

/* ── Sources block ── */
.post-block--sources {
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.post-sources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(24px, 3vw, 48px);
}

@media (max-width: 900px) {
  .post-sources { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .post-sources { grid-template-columns: 1fr; }
}

.post-sources__title {
  grid-column: 1 / -1;
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 236, 231, 0.28);
  margin: 0 0 20px;
}

.sources-list {
  display: contents;
  counter-reset: sources;
}

.sources-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  counter-increment: sources;
}

.sources-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sources-item::before {
  content: counter(sources, decimal-leading-zero);
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  color: rgba(240, 236, 231, 0.2);
  flex-shrink: 0;
  width: 24px;
}

.sources-item a {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(13px, 1vw, 14px);
  line-height: 1.5;
  color: rgba(240, 236, 231, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.sources-item a:hover { color: var(--accent); }

.sources-item__note {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  color: rgba(240, 236, 231, 0.2);
  margin-left: 6px;
}

/* ── Author row — full width grid of cols ── */
.post-author {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.post-author__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 3.5vw, 48px) clamp(20px, 3.5vw, 48px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.post-author__col:last-child { border-right: none; }

@media (max-width: 600px) {
  .post-author { grid-template-columns: 1fr; }
  .post-author__col { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .post-author__col:last-child { border-bottom: none; }
}

/* Label above each column */
.post-author__label {
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 236, 231, 0.28);
  margin: 0;
}

/* Author identity row */
.post-author__identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.post-author__avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1a1a18;
}

.post-author__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-author__name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}

.post-author__role {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: rgba(240, 236, 231, 0.35);
  margin: 0;
}

.post-author__bio {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(240, 236, 231, 0.5);
  margin: 0;
}

/* Client logo placeholder */
.post-author__logo {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: rgba(240, 236, 231, 0.3);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Contact links list */
.post-author__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-author__contacts a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(240, 236, 231, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.post-author__contacts a:hover { color: var(--accent); }

.post-author__contacts a::before {
  content: '↗';
  font-size: 11px;
  color: var(--accent);
  opacity: 0.7;
}

/* ── Related — full width grid ── */
.post-footer {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) 1fr 1fr;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 700px) {
  .post-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .post-footer {
    grid-template-columns: 1fr;
  }
}

.post-footer__label {
  display: flex;
  align-items: center;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 36px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 236, 231, 0.3);
  margin: 0;
}

@media (max-width: 700px) {
  .post-footer__label {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    padding-top: 24px;
  }
}

.post-footer__card {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 36px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg);
  transition: background 0.2s;
}

.post-footer__card:last-child { border-right: none; }
.post-footer__card:hover { background: rgba(255, 255, 255, 0.03); }

.post-footer__card-tag {
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.post-footer__card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}
