/* ─── Reset & Tokens ─────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:        #0a0a0a;
      --bg-alt:    #0f0f0f;
      --bg-card:   #141414;
      --border:    #1e1e1e;
      --border-hi: #2a2a2a;
      --text:      #e2e2e2;
      --text-muted:#888;
      --accent:    #ff3c38;
      --accent-dim:#cc2e2b;
      --mono:      'IBM Plex Mono', monospace;
      --sans:      'IBM Plex Sans', sans-serif;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--sans);
      font-size: 16px;
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* ─── Grid overlay texture ───────────────────────────── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background-image:
        linear-gradient(rgba(255,60,56,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,60,56,0.03) 1px, transparent 1px);
      background-size: 60px 60px;
    }

    /* ─── Navigation ─────────────────────────────────────── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 0 2.5rem;
      height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
      border-bottom: 1px solid transparent;
    }

    nav.scrolled {
      background: rgba(10, 10, 10, 0.85);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom-color: var(--border);
    }

    .nav-logo img { height: 44px; display: block; }

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

    .nav-links a {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 500;
      color: var(--text-muted);
      text-decoration: none;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      transition: color 0.2s;
    }

    .nav-links a:hover { color: var(--text); }

    .nav-cta {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--accent) !important;
      border: 1px solid var(--accent);
      padding: 0.4rem 1rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-decoration: none;
      transition: background 0.2s, color 0.2s !important;
    }

    .nav-cta:hover {
      background: var(--accent) !important;
      color: #fff !important;
    }

    /* Hamburger */
    .nav-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 4px;
    }
    .nav-toggle span {
      display: block;
      width: 22px;
      height: 1.5px;
      background: var(--text);
      transition: transform 0.3s, opacity 0.3s;
    }
    .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    /* ─── Hero ───────────────────────────────────────────── */
    .hero {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
      padding: 120px 2.5rem 80px;
      gap: 4rem;
    }

    .hero-copy { max-width: 580px; }

    .hero-eyebrow {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 500;
      color: var(--accent);
      letter-spacing: 0.15em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .hero-eyebrow::before {
      content: '';
      display: block;
      width: 32px;
      height: 1px;
      background: var(--accent);
    }

    .hero h1 {
      font-family: var(--sans);
      font-size: clamp(2.8rem, 5vw, 4.2rem);
      font-weight: 700;
      line-height: 1.05;
      letter-spacing: -0.02em;
      color: #fff;
      margin-bottom: 1.5rem;
    }

    .hero h1 em {
      font-style: normal;
      color: var(--accent);
    }

    .hero-sub {
      font-size: 1.05rem;
      color: var(--text-muted);
      line-height: 1.75;
      margin-bottom: 2.5rem;
      max-width: 460px;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .btn-primary {
      font-family: var(--mono);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      background: var(--accent);
      color: #fff;
      text-decoration: none;
      padding: 0.85rem 1.75rem;
      transition: background 0.2s, transform 0.15s;
      display: inline-block;
    }

    .btn-primary:hover {
      background: var(--accent-dim);
      transform: translateY(-1px);
    }

    .btn-ghost {
      font-family: var(--mono);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      background: transparent;
      color: var(--text-muted);
      text-decoration: none;
      padding: 0.85rem 1.75rem;
      border: 1px solid var(--border-hi);
      transition: border-color 0.2s, color 0.2s, transform 0.15s;
      display: inline-block;
    }

    .btn-ghost:hover {
      border-color: var(--text-muted);
      color: var(--text);
      transform: translateY(-1px);
    }

    .hero-visual {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .hero-visual::before {
      content: '';
      position: absolute;
      width: 320px;
      height: 320px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,60,56,0.08) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-visual img {
      width: 100%;
      max-width: 340px;
      opacity: 0.92;
      filter: drop-shadow(0 0 60px rgba(255,60,56,0.15));
      animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50%       { transform: translateY(-12px); }
    }

    /* ─── Stats Bar ──────────────────────────────────────── */
    .stats-bar {
      position: relative;
      z-index: 1;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      background: var(--bg-alt);
    }

    .stats-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2.5rem;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
    }

    .stat-item {
      padding: 2.5rem 0;
      text-align: center;
      border-right: 1px solid var(--border);
    }

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

    .stat-number {
      font-family: var(--mono);
      font-size: 2.4rem;
      font-weight: 600;
      color: var(--accent);
      line-height: 1;
      margin-bottom: 0.4rem;
    }

    .stat-label {
      font-family: var(--mono);
      font-size: 0.68rem;
      color: var(--text-muted);
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    /* ─── Sections ───────────────────────────────────────── */
    .section {
      position: relative;
      z-index: 1;
      padding: 100px 2.5rem;
    }

    .section-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .section-alt { background: var(--bg-alt); }

    .section-label {
      font-family: var(--mono);
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--accent);
      letter-spacing: 0.18em;
      text-transform: uppercase;
      margin-bottom: 1rem;
    }

    .section-title {
      font-size: clamp(1.8rem, 3vw, 2.6rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      color: #fff;
      line-height: 1.15;
      margin-bottom: 1.5rem;
    }

    .section-body {
      font-size: 1rem;
      color: var(--text-muted);
      line-height: 1.8;
      max-width: 700px;
    }

    .section-body + .section-body { margin-top: 1.25rem; }

    /* ─── About layout ───────────────────────────────────── */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: start;
    }

    .about-right {
      padding-top: 0.5rem;
    }

    .about-tagline {
      font-size: 1.3rem;
      font-weight: 500;
      color: var(--text);
      line-height: 1.6;
      border-left: 3px solid var(--accent);
      padding-left: 1.5rem;
      margin-bottom: 2rem;
    }

    .about-meta {
      display: flex;
      gap: 2rem;
      flex-wrap: wrap;
      margin-top: 2rem;
    }

    .meta-item {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .meta-key {
      font-family: var(--mono);
      font-size: 0.65rem;
      color: var(--text-muted);
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .meta-val {
      font-size: 0.9rem;
      color: var(--text);
      font-weight: 500;
    }

    /* ─── Capabilities ───────────────────────────────────── */
    .cap-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
      margin-top: 3rem;
    }

    .cap-card {
      background: var(--bg-card);
      padding: 2rem;
      position: relative;
      overflow: hidden;
      transition: background 0.25s;
      cursor: default;
    }

    .cap-card::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0;
      width: 0;
      height: 2px;
      background: var(--accent);
      transition: width 0.35s ease;
    }

    .cap-card:hover { background: #1a1a1a; }
    .cap-card:hover::after { width: 100%; }

    .cap-num {
      font-family: var(--mono);
      font-size: 0.65rem;
      color: var(--accent);
      letter-spacing: 0.1em;
      margin-bottom: 1rem;
    }

    .cap-title {
      font-size: 1rem;
      font-weight: 600;
      color: #fff;
      margin-bottom: 0.75rem;
    }

    .cap-desc {
      font-size: 0.88rem;
      color: var(--text-muted);
      line-height: 1.7;
    }

    /* ─── Certifications ─────────────────────────────────── */
    .cert-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-top: 2.5rem;
    }

    .cert-badge {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      color: var(--text);
      background: transparent;
      border: 1px solid var(--border-hi);
      padding: 0.5rem 1.1rem;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }

    .cert-badge:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(255,60,56,0.05);
    }

    /* ─── Past Performance ───────────────────────────────── */
    .perf-list {
      margin-top: 3rem;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .perf-item {
      display: grid;
      grid-template-columns: 56px 1fr;
      gap: 2rem;
      padding: 2.5rem 0;
      border-bottom: 1px solid var(--border);
      align-items: start;
    }

    .perf-item:first-child { border-top: 1px solid var(--border); }

    .perf-index {
      font-family: var(--mono);
      font-size: 0.65rem;
      color: var(--accent);
      padding-top: 0.2rem;
      letter-spacing: 0.08em;
    }

    .perf-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: #fff;
      margin-bottom: 0.5rem;
    }

    .perf-body {
      font-size: 0.88rem;
      color: var(--text-muted);
      line-height: 1.75;
    }

    /* ─── Blog ───────────────────────────────────────────── */
    .blog-cta-block {
      margin-top: 3rem;
      padding: 3rem;
      border: 1px solid var(--border);
      background: var(--bg-card);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
    }

    .blog-cta-text h3 {
      font-size: 1.1rem;
      font-weight: 600;
      color: #fff;
      margin-bottom: 0.4rem;
    }

    .blog-cta-text p {
      font-size: 0.88rem;
      color: var(--text-muted);
    }

    /* ─── Contact ────────────────────────────────────────── */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      margin-top: 3rem;
      align-items: start;
    }

    .contact-email {
      font-family: var(--mono);
      font-size: 1.15rem;
      color: var(--accent);
      text-decoration: none;
      display: block;
      margin-bottom: 0.5rem;
      transition: color 0.2s;
    }

    .contact-email:hover { color: #fff; }

    .entity-block {
      font-family: var(--mono);
      font-size: 0.78rem;
      color: var(--text-muted);
      background: var(--bg-card);
      border: 1px solid var(--border);
      padding: 1.5rem;
      line-height: 2;
    }

    .entity-block .key {
      color: var(--text-muted);
    }

    .entity-block .val {
      color: var(--text);
      font-weight: 500;
    }

    /* ─── Footer ─────────────────────────────────────────── */
    footer {
      position: relative;
      z-index: 1;
      border-top: 1px solid var(--border);
      padding: 2rem 2.5rem;
    }

    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .footer-copy {
      font-family: var(--mono);
      font-size: 0.68rem;
      color: var(--text-muted);
      letter-spacing: 0.05em;
    }

    .footer-vet {
      font-family: var(--mono);
      font-size: 0.68rem;
      color: var(--text-muted);
      letter-spacing: 0.05em;
    }

    /* ─── Scroll reveal ──────────────────────────────────── */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: none;
    }

    /* stagger children */
    .reveal-group > * {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .reveal-group.visible > *:nth-child(1) { transition-delay: 0.05s; opacity:1; transform:none; }
    .reveal-group.visible > *:nth-child(2) { transition-delay: 0.12s; opacity:1; transform:none; }
    .reveal-group.visible > *:nth-child(3) { transition-delay: 0.19s; opacity:1; transform:none; }
    .reveal-group.visible > *:nth-child(4) { transition-delay: 0.26s; opacity:1; transform:none; }
    .reveal-group.visible > *:nth-child(5) { transition-delay: 0.33s; opacity:1; transform:none; }
    .reveal-group.visible > *:nth-child(6) { transition-delay: 0.40s; opacity:1; transform:none; }

    /* ─── Responsive ─────────────────────────────────────── */
    @media (max-width: 900px) {
      .hero {
        grid-template-columns: 1fr;
        padding-top: 100px;
        text-align: left;
      }
      .hero-visual { order: -1; justify-content: flex-start; }
      .hero-visual img { max-width: 180px; }
      .hero-visual::before { display: none; }

      .stats-inner { grid-template-columns: repeat(2, 1fr); }
      .stat-item:nth-child(2) { border-right: none; }

      .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .cap-grid { grid-template-columns: repeat(2, 1fr); }
      .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .blog-cta-block { flex-direction: column; align-items: flex-start; }
    }

    @media (max-width: 640px) {
      nav { padding: 0 1.25rem; }
      .nav-links { display: none; flex-direction: column; gap: 0; position: fixed; top: 68px; left: 0; right: 0; background: rgba(10,10,10,0.97); border-bottom: 1px solid var(--border); padding: 1rem 0; }
      .nav-links.open { display: flex; }
      .nav-links li { border-bottom: 1px solid var(--border); }
      .nav-links a { display: block; padding: 1rem 1.5rem; font-size: 0.8rem; }
      .nav-cta { margin: 0.5rem 1.5rem; display: block; text-align: center; }
      .nav-toggle { display: flex; }

      .section { padding: 70px 1.25rem; }
      .hero { padding: 90px 1.25rem 60px; }
      .stats-inner { padding: 0 1.25rem; }
      .cap-grid { grid-template-columns: 1fr; }
      .stats-inner { grid-template-columns: repeat(2, 1fr); }

      footer { padding: 1.5rem 1.25rem; }
      .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
    }


/* ─── Shared a11y ─────────────────────────────────────── */
a:focus-visible, button:focus-visible, .nav-toggle:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual img { animation: none; }
  .reveal, .reveal-group > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.nav-links a[aria-current="page"] { color: var(--text); }

/* ─── Blog listing ───────────────────────────────────── */
.section-inner,
.article-page,
.blog-row,
.blog-row > div {
  min-width: 0;
}

.hero h1,
.section-title,
.article-page h1,
.blog-row-title,
.blog-row-excerpt,
.article-body {
  overflow-wrap: break-word;
}

.article-body a,
.article-body pre,
.article-body code,
.blog-tag {
  overflow-wrap: anywhere;
}

.blog-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
}

.blog-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 2rem;
  padding: 2.15rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  align-items: start;
}

a.blog-row:first-of-type,
.blog-list > a.blog-row:first-child { border-top: 1px solid var(--border); }

.blog-row-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  padding-top: 0.4rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.blog-row-title {
  font-size: 1.12rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.35;
  transition: color 0.2s;
}

.blog-row:hover .blog-row-title { color: var(--accent); }

.blog-row-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.blog-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border-hi);
  padding: 0.18rem 0.5rem;
}

.blog-more {
  margin-top: 2.25rem;
}

/* ─── Article ────────────────────────────────────────── */
.article-page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 2.5rem 80px;
}

.article-page .section-label {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1.1rem;
}

.article-page .section-label:hover { color: #fff; }

.article-tags {
  margin: -1.25rem 0 2.2rem;
}

.article-page h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.article-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}

.article-body > h2:first-child,
.article-body > figure:first-child { margin-top: 0; }

.article-body h2 {
  font-size: 1.28rem;
  font-weight: 600;
  color: #fff;
  margin: 2.6rem 0 0.9rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 2rem 0 0.7rem;
  line-height: 1.35;
}

.article-body p { margin: 0 0 1.15rem; }

.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 60, 56, 0.35);
}

.article-body a:hover { border-bottom-color: var(--accent); }

.article-body ul,
.article-body ol {
  margin: 0 0 1.15rem 1.2rem;
}

.article-body li { margin: 0.28rem 0; }

.article-body figure { margin: 1.75rem 0; }

.article-body figure img,
.article-body p img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  background: #111;
}

.article-body figure img {
  cursor: zoom-in;
}

html.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.image-lightbox-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 96vw;
  max-height: 92vh;
  filter: none;
}

.image-lightbox-frame img {
  display: block;
  max-width: 96vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .image-lightbox-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.article-body figcaption {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
  line-height: 1.5;
}

.article-body pre {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  background: #0e0e0e;
  border: 1px solid var(--border);
  box-shadow: inset 2px 0 0 rgba(255, 60, 56, 0.5);
  padding: 1.2rem 1.35rem;
  overflow-x: auto;
  margin: 1.5rem 0 1.65rem;
  color: #d2ccc6;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
  tab-size: 4;
}

.article-body pre code,
.article-body pre code.hljs {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  padding: 0;
  display: block;
}

.article-body pre ::selection {
  background: rgba(255, 60, 56, 0.28);
  color: #fff;
}

.hljs-comment,
.hljs-quote {
  color: #6b6762;
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-deletion {
  color: #e0605c;
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-symbol {
  color: #cbb48a;
}

.hljs-number {
  color: #d8c7a4;
}

.hljs-built_in,
.hljs-type,
.hljs-class .hljs-title,
.hljs-title.class_ {
  color: #b5a394;
}

.hljs-title,
.hljs-title.function_,
.hljs-section {
  color: #eeeae4;
}

.hljs-attr,
.hljs-attribute,
.hljs-property,
.hljs-variable,
.hljs-template-variable,
.hljs-params,
.hljs-name {
  color: #d7c4b4;
}

.hljs-meta,
.hljs-meta .hljs-keyword,
.hljs-meta .hljs-string,
.hljs-doctag {
  color: #8a8580;
}

.hljs-punctuation,
.hljs-operator {
  color: #8f8a84;
}

.hljs-subst {
  color: inherit;
}

.article-body :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: #ffb4b2;
}

.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.15rem 0 0.15rem 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.25rem 0;
}

.article-body .hash-block {
  font-family: var(--mono);
  font-size: 0.78rem;
  word-break: break-all;
  color: #cfcfcf;
  line-height: 1.55;
}

.article-body .resource-list { list-style: none; margin-left: 0; }
.article-body .resource-list li { margin: 0.45rem 0; }

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1.75rem 0 2rem;
  border: 1px solid var(--border);
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.article-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.pager-link {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.1rem 1.2rem;
  transition: border-color 0.2s;
  min-height: 100%;
}

.pager-link:hover { border-color: var(--border-hi); }
.pager-link.pager-next { text-align: right; }

.pager-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.pager-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.back-to-blog {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 1.5rem;
}

.back-to-blog:hover { color: var(--text); }

@media (max-width: 900px) {
  .blog-row { grid-template-columns: 1fr; gap: 0.45rem; }
  .blog-row-date { padding-top: 0; }
}

@media (max-width: 640px) {
  .article-page { padding: 100px 1.25rem 60px; }
  .article-pager { grid-template-columns: 1fr; }
  .pager-link.pager-next { text-align: left; }
}
