/* ==========================================================================
   Mateen Theme — Main Stylesheet
   Brand: #B51734 · #000000 · #FFFFFF · IBM Plex Sans Arabic
   ========================================================================== */

/* ─── CSS Custom Properties ──────────────────────────────────────────────── */
:root {
  --red:          #B51734;
  --red-deep:     #8F0F27;
  --black:        #000000;
  --white:        #FFFFFF;
  --radius:       2px;

  /* Light theme tokens */
  --ink:          #0A0A0A;
  --paper:        #FAF8F5;
  --paper-2:      #F0ECE4;
  --line:         #1A1A1A;
  --muted:        #4A4A4A;
  --surface:      #FFFFFF;
  --surface-2:    #FAF8F5;
  --hairline:     rgba(0,0,0,0.08);
  --hairline-2:   rgba(0,0,0,0.10);
  --nav-bg:       rgba(250,248,245,0.85);
  --nav-bg-solid: rgba(250,248,245,0.95);
  --on-red:       #FFFFFF;
  --meta-bg:      rgba(181,23,52,0.08);
  --meta-border:  rgba(181,23,52,0.20);
  --stats-bg:     #0A0A0A;
  --stats-wm:     rgba(255,255,255,0.03);
  --stats-line:   rgba(255,255,255,0.15);
  --stats-label:  rgba(255,255,255,0.80);
  --stats-tag:    rgba(255,255,255,0.40);
  --tag-bg:       #FFFFFF;
}

/* Dark theme */
[data-theme="dark"] {
  --ink:          #F5F3EE;
  --paper:        #0B0B0D;
  --paper-2:      #131316;
  --line:         #2A2A2E;
  --muted:        #ABABAB;
  --surface:      #18181B;
  --surface-2:    #0F0F12;
  --hairline:     rgba(255,255,255,0.08);
  --hairline-2:   rgba(255,255,255,0.12);
  --nav-bg:       rgba(11,11,13,0.72);
  --nav-bg-solid: rgba(11,11,13,0.92);
  --red:          #E1294A;
  --red-deep:     #B51734;
  --meta-bg:      rgba(225,41,74,0.14);
  --meta-border:  rgba(225,41,74,0.35);
  --stats-bg:     #050507;
  --stats-wm:     rgba(255,255,255,0.025);
  --stats-line:   rgba(255,255,255,0.10);
  --stats-label:  rgba(245,243,238,0.75);
  --stats-tag:    rgba(245,243,238,0.35);
  --tag-bg:       #18181B;
  color-scheme:   dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --ink:          #F5F3EE;
    --paper:        #0B0B0D;
    --paper-2:      #131316;
    --line:         #2A2A2E;
    --muted:        #ABABAB;
    --surface:      #18181B;
    --surface-2:    #0F0F12;
    --hairline:     rgba(255,255,255,0.08);
    --hairline-2:   rgba(255,255,255,0.12);
    --nav-bg:       rgba(11,11,13,0.72);
    --nav-bg-solid: rgba(11,11,13,0.92);
    --red:          #E1294A;
    --red-deep:     #B51734;
    --meta-bg:      rgba(225,41,74,0.14);
    --meta-border:  rgba(225,41,74,0.35);
    --stats-bg:     #050507;
    --stats-wm:     rgba(255,255,255,0.025);
    --stats-line:   rgba(255,255,255,0.10);
    --stats-label:  rgba(245,243,238,0.75);
    --stats-tag:    rgba(245,243,238,0.35);
    --tag-bg:       #18181B;
    color-scheme:   dark;
  }
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  direction: rtl;
}

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; direction: ltr; display: inline-block; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* Accessibility */
.skip-link {
  position: absolute; top: -100px; right: 1rem; z-index: 1000;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; border-radius: var(--radius); font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; outline: 3px solid var(--red); outline-offset: 2px; }
*:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: var(--radius); }

/* Layout */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ─── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(181,23,52,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(181,23,52,0); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--hairline-2);
  background: var(--nav-bg-solid);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1400px; margin: 0 auto; gap: 2rem;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 0.85rem; font-weight: 700; }
.site-logo svg { height: 34px; width: auto; }
.site-logo .logo-svg path { fill: var(--ink); transition: fill 0.2s; }
.site-logo:hover .logo-svg path { fill: var(--red); }
.logo-divider { width: 1px; height: 22px; background: var(--line); opacity: 0.25; flex-shrink: 0; }
.logo-tagline { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }

/* Primary Menu */
.primary-menu { display: flex; gap: 2.25rem; list-style: none; align-items: center; }
.primary-menu a {
  position: relative; font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 0; color: var(--ink); transition: color 0.2s;
}
.primary-menu a::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 0; height: 2px; background: var(--red); transition: width 0.3s ease;
}
.primary-menu a:hover::after,
.primary-menu .current-menu-item a::after,
.primary-menu .current-page-ancestor a::after { width: 100%; }
.primary-menu .current-menu-item a,
.primary-menu .current-page-ancestor a { color: var(--red); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.nav-cta {
  height: 38px;
  background: var(--ink); color: var(--paper);
  padding: 0 1rem; font-size: 0.875rem; font-weight: 500;
  border-radius: var(--radius); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1.5px solid transparent; white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--red); transform: translateY(-1px); }
.nav-cta--primary { background: var(--red); color: #fff; }
.nav-cta--primary:hover { background: var(--red); color: #fff; filter: brightness(1.1); border-color: transparent; }
.nav-cta--icon-only {
  width: 38px; height: 38px; padding: 0;
  background: transparent; color: var(--ink);
  border: 1px solid var(--hairline-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.nav-cta--icon-only svg { width: 17px; height: 17px; }
.nav-cta--icon-only:hover { background: transparent; border-color: var(--red); color: var(--red); transform: translateY(-1px); }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  color: var(--ink);
  transition: all 0.2s ease;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--red); color: var(--red); }
.theme-toggle svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  position: absolute;
  transition: transform 0.4s cubic-bezier(.5,0,.25,1.2), opacity 0.25s;
}
.theme-toggle .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: var(--radius);
}

/* Mobile nav */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.85rem 0; font-weight: 500; font-size: 1.05rem;
  border-bottom: 1px solid var(--hairline); display: block;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu li:last-child a { border-bottom: none; }

@media (max-width: 860px) {
  .primary-menu, .nav-cta { display: none; }
  .menu-toggle { display: grid; }
}

/* ─── Shared Section Parts ───────────────────────────────────────────────── */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); flex-wrap: wrap;
}
.section-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.section-label::before { content: ''; width: 32px; height: 2px; background: var(--red); }
.section-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.02em; max-width: 18ch;
}
.section-desc { font-size: 1.1rem; color: var(--muted); max-width: 40ch; line-height: 1.6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.75rem; font-weight: 500; font-size: 1rem;
  border-radius: var(--radius); transition: all 0.25s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: var(--on-red); border-color: var(--red); }
.btn-primary:hover {
  background: var(--red-deep); border-color: var(--red-deep);
  transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(181,23,52,0.4);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform 0.25s; display: inline-block; }
.btn:hover .arrow { transform: translateX(-4px); }

/* Tags */
.tag {
  padding: 0.5rem 1rem; border: 1px solid var(--line);
  background: var(--tag-bg); font-size: 0.9rem; font-weight: 500;
  border-radius: 999px; color: var(--ink);
}
.tag.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag.red   { background: var(--red); color: var(--on-red); border-color: var(--red); }

/* Page banner (inner pages) */
.page-banner {
  padding: clamp(4rem, 7vw, 7rem) 0 clamp(3rem, 5vw, 5rem);
  background: var(--paper); border-bottom: 1px solid var(--hairline);
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--meta-bg) 0%, transparent 60%);
  pointer-events: none;
}
.page-banner .breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem;
  font-family: 'IBM Plex Mono', monospace; direction: ltr;
}
.page-banner .breadcrumb a { color: var(--red); }
.page-banner .breadcrumb .sep { opacity: 0.4; }
.banner-label { color: var(--red); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.banner-title {
  font-size: clamp(2.75rem, 6vw, 5.5rem); font-weight: 700;
  line-height: 0.95; letter-spacing: -0.035em; max-width: 20ch;
}
.banner-title .accent { color: var(--red); }
.banner-desc { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 52ch; margin-top: 1.5rem; line-height: 1.6; }

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  background: #0a0a0a;
}

/* Background image */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 14s ease;
}
.hero:hover .hero-bg img { transform: scale(1.04); }

/* Disable parallax zoom when a video is playing */
.hero.has-video:hover .hero-bg img { transform: none; }

/* ── Video backgrounds ───────────────────────────────────────────────────── */

/* Direct MP4/WebM */
.hero-vid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* YouTube / Vimeo iframe — oversized & centred to fill any viewport */
.hero-yt-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-yt-wrap iframe {
  position: absolute;
  /* Cover trick: wider than 16:9 viewport always wins */
  width: 177.78vh;   /* 16/9 × 100vh */
  height: 56.25vw;   /* 9/16 × 100vw */
  min-width: 100%;
  min-height: 100%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* Multi-layer gradient — ensures WCAG AA contrast for all text */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top,
      rgba(0,0,0,0.93) 0%,
      rgba(0,0,0,0.78) 25%,
      rgba(0,0,0,0.45) 55%,
      rgba(0,0,0,0.18) 100%),
    linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 60%);
}

/* Hero content wrapper */
.hero > .wrap {
  position: relative; z-index: 1;
  padding-top: clamp(8rem, 14vw, 14rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
  text-align: center;
}

/* Eyebrow pill — glassy on dark background */
.hero-meta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px; margin-bottom: 2rem;
  font-size: 0.8rem; font-weight: 500;
  color: rgba(245,243,238,0.9);
}
.hero-meta .dot {
  width: 7px; height: 7px; background: var(--red); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(181,23,52,0.5);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(181,23,52,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(181,23,52,0); }
}
.hero-meta .eyebrow { color: #ffb3bf; font-weight: 600; }
.hero-meta .sep { color: rgba(255,255,255,0.3); }
.hero-meta .date { color: rgba(245,243,238,0.82); }

/* Title */
.hero-title {
  font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 700;
  line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 1.75rem;
  color: #F5F3EE;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.hero-title .accent {
  color: var(--red); position: relative; display: inline-block;
}
.hero-title .accent::after {
  content: ''; position: absolute; bottom: 0.08em; right: 0;
  width: 100%; height: 4px; background: var(--red); opacity: 0.35;
}

/* Subtitle */
.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.65;
  color: rgba(245,243,238,0.88); max-width: 56ch; margin-bottom: 2.5rem;
  margin-inline: auto;
}
.hero-sub strong { color: #ffb3bf; font-weight: 600; }

/* CTA buttons */
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; }
.hero .btn-ghost {
  border-color: rgba(255,255,255,0.45);
  color: #F5F3EE;
}
.hero .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.75);
}

/* Metrics row */
.hero-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 3.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.hero-metric { padding: 0 1rem; }
.hero-metric:last-child { }
.hero-metric .num {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700;
  line-height: 1; letter-spacing: -0.02em; display: block; margin-bottom: 0.4rem;
  direction: ltr; unicode-bidi: plaintext; color: #F5F3EE;
}
.hero-metric .num .c { color: var(--red); }
.hero-metric .lbl { font-size: 0.82rem; color: rgba(245,243,238,0.65); line-height: 1.4; font-weight: 500; }

/* Scroll hint */
.hero-scroll {
  position: absolute; bottom: 5.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.72); font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; pointer-events: none;
  animation: bob 2.8s ease-in-out infinite;
}
.hero-scroll svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* Ticker — sits at bottom of hero, glass style */
.ticker {
  position: relative; z-index: 1;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(245,243,238,0.88);
  padding: 0.95rem 0; overflow: hidden;
}
.ticker-inner {
  display: inline-flex; gap: 0;
  animation: ticker 35s linear infinite;
  white-space: nowrap; font-size: 0.9rem; font-weight: 500;
  direction: ltr; width: max-content;
}
@media (max-width: 860px) {
  .ticker-inner { animation-duration: 25s; }
}
.ticker-item { display: inline-flex; align-items: center; gap: 1rem; margin-inline-end: 3rem; }
.ticker-item::after { content: '✦'; color: var(--red); margin-inline-start: 3rem; }

@media (max-width: 860px) {
  .hero-metrics { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-metric { border-bottom: 1px solid rgba(255,255,255,0.12); padding: 0 0 1rem; }
  .hero-metric:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ─── Pillars ─────────────────────────────────────────────────────────────── */
.pillars { padding: clamp(5rem, 8vw, 8rem) 0; border-bottom: 1px solid var(--hairline); }
.pillars-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.pillar {
  padding: clamp(2rem, 3.5vw, 3rem); background: var(--surface);
  border-inline-end: 1px solid var(--line);
  position: relative; transition: background 0.3s, box-shadow 0.3s; cursor: pointer; color: var(--ink);
  border-top: 3px solid transparent;
}
.pillar:nth-child(1) { border-top-color: var(--red); }
.pillar:nth-child(2) { border-top-color: rgba(181,23,52,0.55); }
.pillar:nth-child(3) { border-top-color: rgba(181,23,52,0.28); }
.pillar:last-child { border-inline-end: none; }
.pillar::before {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 0; height: 3px; background: var(--red); transition: width 0.4s ease;
}
.pillar:hover::before { width: 100%; }
.pillar:hover { background: rgba(181,23,52,0.04); }
.pillar-num {
  font-family: 'IBM Plex Mono', monospace; direction: ltr;
  font-size: 0.85rem; color: var(--red);
  margin-bottom: 2.5rem; display: block; text-align: right; opacity: 0.7;
}
.pillar-icon {
  width: 64px; height: 64px; margin-bottom: 1.5rem;
  display: grid; place-items: center;
  background: rgba(181,23,52,0.07); border: 1px solid rgba(181,23,52,0.2);
  border-radius: var(--radius); transition: all 0.3s; color: var(--red);
}
.pillar:hover .pillar-icon { background: var(--red); border-color: var(--red); color: #fff; }
.pillar-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pillar-title { font-size: 1.65rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.01em; }
.pillar-text { font-size: 1rem; line-height: 1.7; color: var(--muted); }

@media (max-width: 900px) {
  .pillar { border-inline-end: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
}

/* ─── Stats ──────────────────────────────────────────────────────────────── */
.stats {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--stats-bg); color: #F5F3EE;
  position: relative; overflow: hidden;
  isolation: isolate;
}
/* Background photo */
.stats-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.stats-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.55);
  opacity: 0.45; transform: scale(1.05);
}
.stats-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,7,0.6) 0%, rgba(5,5,7,0.35) 45%, rgba(5,5,7,0.85) 100%),
    linear-gradient(90deg, rgba(181,23,52,0.18) 0%, transparent 50%);
}
.stats > .wrap { position: relative; z-index: 1; }
.stats-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem;
}
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.stat {
  padding: 2rem 1.75rem;
  background: rgba(10,10,12,0.55);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: var(--radius); position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(225,41,74,0.4) !important; background: rgba(15,15,18,0.7); }
.stat::before {
  content: ''; position: absolute; top: 0; right: 1.75rem;
  width: 32px; height: 3px; background: var(--red);
}
.stat-kicker {
  font-family: 'IBM Plex Mono', monospace; direction: ltr;
  font-size: 0.7rem; letter-spacing: 0.15em;
  color: rgba(245,243,238,0.78); text-transform: uppercase; display: block;
}
.stat-num {
  font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700;
  line-height: 1; letter-spacing: -0.03em; direction: ltr;
  display: block; margin: 0.5rem 0 1rem; text-align: right;
}
.stat-num .pct { color: var(--red); }
.stat-label { font-size: 1rem; line-height: 1.55; color: rgba(245,243,238,0.8); margin: 0; }
.stat-label strong { color: #F5F3EE; font-weight: 700; }

/* ─── Articles ───────────────────────────────────────────────────────────── */
.articles { padding: clamp(5rem, 8vw, 8rem) 0; border-bottom: 1px solid var(--hairline); }
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.75rem;
}
.article-card {
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--radius); overflow: hidden; color: var(--ink);
}
.article-card:hover { transform: translateY(-4px); box-shadow: -8px 8px 0 var(--red); }
.article-card-img {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.article-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.article-card-img.mono img { }
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 50%);
  pointer-events: none;
}
.article-kicker {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: var(--red); color: var(--on-red);
  padding: 0.35rem 0.9rem !important; font-size: 0.78rem !important; font-weight: 600 !important;
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
  letter-spacing: 0 !important; border-radius: 999px !important;
}
.article-kicker.red { background: var(--red); color: var(--on-red); }
.article-card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.article-meta {
  font-family: 'IBM Plex Mono', monospace; direction: ltr;
  font-size: 0.75rem; color: var(--muted);
  margin-bottom: 0.85rem; display: none !important; gap: 0.75rem;
}
.article-meta span:not(:first-child)::before { content: '/'; margin-inline-end: 0.75rem; color: var(--red); }
.article-card-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.85rem; }
.article-excerpt { font-size: 0.98rem; line-height: 1.65; color: var(--muted); margin-bottom: 1.5rem; flex: 1; }
.article-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem; color: var(--red); align-self: flex-start;
}
.article-link::after { content: '←'; transition: transform 0.25s; }
.article-card:hover .article-link::after { transform: translateX(-6px); }

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: clamp(3rem, 5vw, 4rem);
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--radius); font-weight: 500; font-size: 0.95rem;
  transition: all 0.2s;
}
.pagination a:hover { background: var(--red); border-color: var(--red); color: var(--on-red); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ─── About Section ──────────────────────────────────────────────────────── */
.about { padding: clamp(5rem, 8vw, 8rem) 0; background: var(--paper-2); border-bottom: 1px solid var(--hairline); }
.about-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-heading {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700;
  line-height: 1.5; letter-spacing: -0.03em; margin-bottom: 2rem;
}
.about-text {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.7;
  max-width: 50ch; margin-bottom: 2rem;
}
.about-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.about-visual {
  position: relative; aspect-ratio: 4/5;
  max-width: 480px; width: 100%; margin-inline-start: auto;
}
.about-photo {
  position: absolute; inset: 0;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-visual.mono .about-photo img { }

/* ── About multi-image grid ─────────────────────────────────── */
.about-img-grid {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}
.about-img-grid--2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}
.about-img-grid--3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}
.about-img-grid--3 .about-img-cell--main {
  grid-row: span 2;
}
.about-img-cell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3/4;
}
.about-img-cell--main {
  aspect-ratio: unset;
}
.about-img-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.about-img-cell .about-badge {
  position: absolute; top: 1rem; right: 1rem;
}

.about-badge {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
  background: rgba(255,255,255,0.95); padding: 0.85rem 1rem;
  border-radius: var(--radius); display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; font-weight: 600; color: #0A0A0A;
  font-family: var(--font);
}
.about-badge .pulse {
  width: 8px; height: 8px; background: var(--red); border-radius: 50%;
  animation: pulse 2s infinite; flex-shrink: 0;
}
.overlay-card {
  position: absolute; bottom: -1.25rem; left: -1.25rem;
  background: var(--red); color: var(--on-red);
  padding: 1.25rem 1.5rem; font-size: 0.95rem; font-weight: 600;
  max-width: 240px; border-radius: var(--radius); z-index: 3;
  box-shadow: 0 12px 30px rgba(181,23,52,0.3);
}
.overlay-card span {
  display: block; font-size: 0.7rem; letter-spacing: 0.1em;
  font-weight: 500; opacity: 0.9; margin-bottom: 0.35rem;
  font-family: 'IBM Plex Mono', monospace; direction: ltr;
}

/* ─── CTA Section ────────────────────────────────────────────────────────── */
.cta-section {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--red); color: var(--on-red); position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 40px, rgba(0,0,0,0.05) 40px 41px);
  pointer-events: none;
}
.cta-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; align-items: center; position: relative;
}
@media (min-width: 760px) { .cta-grid { grid-template-columns: 2fr 1fr; } }
.cta-title {
  font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em;
}
.cta-actions {
  display: flex; flex-wrap: nowrap; gap: 0.75rem; align-items: center;
  justify-self: start;
}
@media (min-width: 760px) { .cta-actions { justify-self: end; } }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1.1rem 1.75rem; background: #FFFFFF; color: var(--red);
  font-weight: 600; font-size: 1rem; border-radius: var(--radius);
  transition: all 0.25s; border: 2px solid #FFFFFF; white-space: nowrap;
}
.cta-btn:hover { background: #0A0A0A; color: #FFFFFF; border-color: #0A0A0A; transform: translateY(-2px); }
.cta-btn--outline {
  background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.5);
}
.cta-btn--outline:hover { background: #FFFFFF; color: var(--red); border-color: #FFFFFF; }
.cta-btn--icon-only { padding: 1.1rem; flex-shrink: 0; }
.cta-btn--icon-only svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: #000000; color: #F5F3EE; padding: clamp(3rem, 5vw, 5rem) 0 2rem; }
[data-theme="dark"] .site-footer { background: #050507; border-top: 1px solid var(--line); }

.foot-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem;
}
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.foot-brand p { margin-top: 1rem; color: rgba(245,243,238,0.65); max-width: 38ch; line-height: 1.7; }
.foot-title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 1.25rem; }
.foot-list { display: flex; flex-direction: column; gap: 0.6rem; }
.foot-list li, .foot-list a { color: rgba(245,243,238,0.75); font-size: 0.95rem; transition: color 0.2s; }
.foot-list a:hover { color: var(--red); }

.foot-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(245,243,238,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; font-size: 0.85rem; color: rgba(245,243,238,0.75);
}
.foot-bottom .mono { font-family: 'IBM Plex Mono', monospace; }

.socials { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.social-link {
  width: 40px; height: 40px; border: 1px solid rgba(245,243,238,0.2);
  display: grid; place-items: center; border-radius: var(--radius);
  transition: all 0.2s; color: #F5F3EE;
}
.social-link:hover { background: var(--red); border-color: var(--red); }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }

/* ─── About Page Sections ────────────────────────────────────────────────── */
.about-hero-img {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--ink);
}
@media (max-width: 700px) { .about-hero-img { aspect-ratio: 4 / 3; } }
.about-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.about-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 60%);
  pointer-events: none;
}
.about-hero-img__placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #111, #0a0a0a);
  display: grid; place-items: center;
}
.about-hero-img__badge {
  position: absolute; bottom: 1.75rem; right: 2rem;
  z-index: 2;
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}

/* Vision section */
.about-vision {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: #0A0A0A;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
[data-theme="dark"] .about-vision { background: #050507; }
.about-vision .section-label { color: var(--red); }
.about-vision .section-title { color: #F5F3EE; }
.vision-body {
  max-width: 780px;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.vision-body p {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.7;
  color: rgba(245,243,238,0.88);
}

/* Mission/Task section */
.about-task {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--hairline);
}
.task-body {
  max-width: 820px;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.task-body p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink);
}
.task-body p + p { margin-top: 1.5rem; }

.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: clamp(3rem, 5vw, 5rem);
}
.value-card {
  padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: all 0.3s;
}
.value-card:hover { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.value-icon {
  width: 48px; height: 48px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: var(--meta-bg); border-radius: var(--radius);
}
.value-icon svg { width: 24px; height: 24px; stroke: var(--red); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.value-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.value-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

/* Approach/methodology */
.approach { padding: clamp(5rem, 8vw, 8rem) 0; background: var(--paper-2); border-bottom: 1px solid var(--hairline); }
.approach-steps { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: clamp(2rem, 4vw, 3rem); }
.approach-step {
  display: grid; grid-template-columns: 64px 1fr; gap: 2rem; align-items: start;
  padding: 2rem 0; border-bottom: 1px solid var(--hairline);
}
.approach-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'IBM Plex Mono', monospace; direction: ltr;
  font-size: 2.5rem; font-weight: 700; color: var(--red); line-height: 1;
}
.step-body h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-body p { font-size: 1rem; color: var(--muted); line-height: 1.7; }

/* ─── Projects Page ──────────────────────────────────────────────────────── */
.projects-section { padding: clamp(5rem, 8vw, 8rem) 0; }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem;
}
.project-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: all 0.3s;
  display: flex; flex-direction: column; color: var(--ink);
}
.project-card:hover { transform: translateY(-4px); box-shadow: -8px 8px 0 var(--red); border-color: var(--red); }
.project-card-img {
  aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--paper-2);
}
.project-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-card-img.mono img { }
.project-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 50%);
  pointer-events: none;
}
.project-pillar {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: var(--red); color: var(--on-red);
  padding: 0.35rem 0.9rem; font-size: 0.78rem; font-weight: 600;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  letter-spacing: 0; border-radius: 999px;
}
.project-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.project-meta {
  font-family: var(--font);
  font-size: 0.8rem; color: var(--muted); margin-bottom: 0.85rem;
  display: flex; gap: 0.25rem; justify-content: flex-end;
}
.project-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem; }
.project-desc { font-size: 0.98rem; line-height: 1.65; color: var(--muted); flex: 1; margin-bottom: 1.5rem; }
.project-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem; color: var(--red); align-self: flex-start;
}
.project-link::after { content: '←'; transition: transform 0.25s; }
.project-card:hover .project-link::after { transform: translateX(-6px); }

/* Project pillars filter */
.projects-filter {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem; border: 1px solid var(--line);
  border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  background: var(--tag-bg); color: var(--ink); transition: all 0.2s; cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--red); border-color: var(--red); color: var(--on-red);
}

/* ─── Single Post / Article ──────────────────────────────────────────────── */
.single-article { padding: clamp(3rem, 6vw, 6rem) 0; }
.single-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(3rem, 5vw, 5rem);
}
@media (min-width: 1024px) { .single-grid { grid-template-columns: 1fr 320px; } }

.article-header { margin-bottom: 3rem; }
.article-header .article-kicker { position: static; margin-bottom: 1rem; display: inline-block; }
.article-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1.25rem;
}
.article-header .article-meta { font-size: 0.85rem; margin-bottom: 0; }
.article-hero-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 3rem;
  border: 1px solid var(--hairline);
}

/* Content styles */
.article-content { max-width: 70ch; }
.article-content h2 { font-size: 1.85rem; font-weight: 700; margin: 2.5rem 0 1rem; letter-spacing: -0.02em; }
.article-content h3 { font-size: 1.45rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.article-content p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; }
.article-content strong { font-weight: 700; }
.article-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote {
  border-right: 4px solid var(--red); padding: 1rem 1.5rem;
  background: var(--meta-bg); margin: 2rem 0; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.15rem; font-weight: 500; line-height: 1.6;
}
.article-content ul, .article-content ol {
  padding-right: 1.5rem; margin-bottom: 1.5rem;
}
.article-content li { font-size: 1.1rem; line-height: 1.8; margin-bottom: 0.5rem; }
.article-content img { border-radius: var(--radius); margin: 2rem 0; width: 100%; }

/* Article sidebar */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
}
.sidebar-card h4 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.related-article {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.75rem 0; border-bottom: 1px solid var(--hairline);
  transition: color 0.2s;
}
.related-article:last-child { border-bottom: none; padding-bottom: 0; }
.related-article:hover { color: var(--red); }
.related-article img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.related-article .title { font-size: 0.9rem; font-weight: 600; line-height: 1.4; }
.related-article .date { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; font-family: 'IBM Plex Mono', monospace; }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  margin-bottom: 2rem; transition: color 0.2s;
}
.back-link:hover { color: var(--red); }
.back-link::before { content: '→'; transition: transform 0.25s; }
.back-link:hover::before { transform: translateX(4px); }

/* ─── Articles Listing Page ─────────────────────────────────────────────── */

/* Banner */
.articles-banner {
  padding: clamp(4rem,7vw,7rem) 0 clamp(3rem,5vw,5rem);
  background: var(--paper); border-bottom: 1px solid var(--hairline);
  position: relative; overflow: hidden;
}
.articles-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--meta-bg) 0%, transparent 60%);
  pointer-events: none;
}
.articles-banner-inner {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 3rem; flex-wrap: wrap;
}
.articles-banner-meta {
  display: flex; gap: 3rem; flex-shrink: 0; align-items: flex-end;
}
.articles-banner-stat { text-align: right; }
.articles-banner-num {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700;
  line-height: 1; letter-spacing: -0.04em; display: block; color: var(--ink);
}
.articles-banner-lbl {
  font-size: 0.8rem; color: var(--muted); font-weight: 500;
  margin-top: 0.25rem; display: block;
}
@media (max-width: 760px) {
  .articles-banner-inner { flex-direction: column; align-items: flex-start; }
  .articles-banner-meta { align-items: flex-start; }
}

/* Filter bar */
.articles-filter-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2.5rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
}
.filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hairline-2); color: var(--muted);
  font-size: 0.7rem; font-family: 'IBM Plex Mono', monospace;
  width: 22px; height: 22px; border-radius: 50%; margin-inline-start: 0.35rem;
  transition: background 0.2s, color 0.2s;
}
.filter-btn.active .filter-count { background: rgba(255,255,255,0.25); color: var(--on-red); }

/* Results label */
.articles-results-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem;
}
.results-clear {
  color: var(--red); font-weight: 500; font-size: 0.85rem;
  transition: opacity 0.2s;
}
.results-clear:hover { opacity: 0.7; }

/* Grid */
.articles-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Article card top row */
.article-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.75rem; gap: 0.5rem;
}
.article-card-date {
  font-size: 0.75rem; color: var(--muted); direction: ltr;
}
.article-card-read {
  font-size: 0.75rem; color: var(--red); font-weight: 500;
  background: var(--meta-bg); padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
}

/* Placeholder when no image */
.article-card-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* Empty state */
.articles-empty {
  text-align: center;
  padding: clamp(5rem,10vw,10rem) 0;
}
.articles-empty-num {
  font-size: clamp(5rem,15vw,12rem); font-weight: 700;
  line-height: 1; color: var(--hairline-2); letter-spacing: -0.04em;
}
.articles-empty-title {
  font-size: clamp(1.5rem,3vw,2.5rem); font-weight: 700;
  margin: 0.5rem 0 1rem;
}


/* ─── Single Post ────────────────────────────────────────────────────────── */

/* Reading progress */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 200; background: transparent;
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%; width: 0; background: var(--red);
  transition: width 0.1s linear;
}

/* Single header */
.single-header {
  padding: clamp(4rem,7vw,7rem) 0 clamp(2.5rem,4vw,4rem);
  background: var(--paper); border-bottom: 1px solid var(--hairline);
  position: relative; overflow: hidden;
}
.single-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--meta-bg) 0%, transparent 60%);
  pointer-events: none;
}
.single-kicker-row { margin-bottom: 1.5rem; }
.single-title {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em; max-width: 22ch;
  margin-bottom: 2rem;
}
.single-byline {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  font-size: 0.9rem;
}
.single-byline-date { font-family: 'IBM Plex Mono', monospace; direction: ltr; color: var(--muted); }
.single-byline-sep { color: var(--red); }
.single-byline-read {
  background: var(--meta-bg); color: var(--red);
  padding: 0.2rem 0.65rem; border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 500;
}
.single-byline-author { font-weight: 600; }

/* Hero image */
.single-hero-wrap {
  background: var(--paper);
  padding: 0 0 clamp(2rem,4vw,4rem);
}
.single-hero-img-box {
  position: relative; border-radius: var(--radius);
  overflow: hidden; max-height: 560px;
  border: 1px solid var(--hairline);
}
.single-hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  max-height: 560px;
}
.single-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
}

/* Article body layout */
.single-body {
  padding: clamp(3rem,5vw,5rem) 0 clamp(5rem,8vw,8rem);
  background: var(--paper);
}
.single-layout {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(3rem,5vw,5rem);
}
@media (min-width: 1024px) {
  .single-layout { grid-template-columns: 1fr 300px; }
}

/* Content */
.single-content-col { min-width: 0; }
.article-content { max-width: 70ch; }
.article-content > * + * { margin-top: 1.5rem; }
.article-content h2 {
  font-size: clamp(1.6rem,2.5vw,2rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2;
  padding-top: 1rem;
}
.article-content h3 {
  font-size: clamp(1.25rem,2vw,1.55rem); font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.3;
}
.article-content p {
  font-size: clamp(1.05rem,1.4vw,1.15rem); line-height: 1.85;
  color: var(--ink);
}
.article-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-content strong { font-weight: 700; }
.article-content blockquote {
  border-right: 4px solid var(--red);
  padding: 1rem 1.5rem; margin: 2rem 0;
  background: var(--meta-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.15rem; font-weight: 500; line-height: 1.6;
}
.article-content ul, .article-content ol {
  padding-right: 1.5rem; margin-bottom: 1.5rem;
}
.article-content li { font-size: 1.08rem; line-height: 1.8; }
.article-content img {
  border-radius: var(--radius); width: 100%; margin: 2rem 0;
  border: 1px solid var(--hairline);
}

/* Tags */
.single-tags {
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--hairline);
}
.single-tags-label {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--muted);
  text-transform: uppercase;
}

/* Author box */
.single-author-box {
  display: flex; gap: 1.5rem; align-items: flex-start;
  margin-top: 3rem; padding: 2rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.single-author-name { display: block; font-size: 1.05rem; margin-bottom: 0.35rem; }
.single-author-bio { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

/* Share row */
.single-share-row {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.single-share-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
}

/* Post navigation */
.single-post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 3rem;
  padding-top: 2.5rem; border-top: 1px solid var(--hairline);
}
.post-nav-card {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.25rem; border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s;
}
.post-nav-card:hover { border-color: var(--red); box-shadow: -4px 4px 0 var(--red); }
.post-nav-card--right { text-align: left; }
.post-nav-dir {
  font-size: 0.75rem; color: var(--muted);
  font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.05em;
}
.post-nav-title { font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
@media (max-width: 640px) {
  .single-post-nav { grid-template-columns: 1fr; }
}

/* Sidebar */
.single-sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-info-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.75rem;
}
.sidebar-info-list li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
}
.sidebar-info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-info-key { color: var(--muted); }


/* ─── 404 Page ───────────────────────────────────────────────────────────── */
.error-404 { padding: clamp(6rem, 12vw, 12rem) 0; text-align: center; }
.error-num {
  font-size: clamp(6rem, 20vw, 16rem); font-weight: 700;
  line-height: 1; letter-spacing: -0.04em; color: var(--red);
  font-family: 'IBM Plex Mono', monospace; direction: ltr;
}
.error-title { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; margin: 1rem 0; }
.error-text { color: var(--muted); font-size: 1.1rem; max-width: 40ch; margin: 0 auto 2rem; }

/* Projects preview on landing page */
.projects-preview { padding: clamp(5rem, 8vw, 8rem) 0; border-bottom: 1px solid var(--hairline); }

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

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* WordPress alignment classes */
.alignleft   { float: right; margin-left: 1.5rem; }
.alignright  { float: left; margin-right: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }
.alignwide   { width: 100%; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ─── Comments ───────────────────────────────────────────────────────────────── */
.mateen-comments { margin-top: clamp(3rem,5vw,5rem); }

.comments-title {
  font-size: clamp(1.2rem,2vw,1.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}

/* Comment list */
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.comment-list ol { list-style: none; margin-top: 1rem; margin-right: 3rem; display: flex; flex-direction: column; gap: 1rem; }

.mateen-comment { padding: 0; }
.comment-body {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1.5rem;
}

.comment-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.comment-avatar img { border-radius: 50%; width: 44px; height: 44px; }
.comment-author { font-weight: 700; font-size: 0.95rem; }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-awaiting { font-size: 0.8rem; color: var(--red); margin-right: auto; }

.comment-content { font-size: 0.95rem; line-height: 1.75; color: var(--ink); }
.comment-content p:last-child { margin: 0; }

.comment-footer { margin-top: 1rem; }
.comment-reply-link {
  font-size: 0.85rem; font-weight: 600; color: var(--red);
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: opacity 0.2s;
}
.comment-reply-link:hover { opacity: 0.7; }

/* Comment form */
.comment-respond { margin-top: 3rem; }
.comment-respond h3 {
  font-size: clamp(1.1rem,2vw,1.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.comment-notes { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.comment-form { display: flex; flex-direction: column; gap: 1.25rem; }
.comment-form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.comment-form-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.comment-form-field label span { color: var(--red); }
.comment-form-field input,
.comment-form-field textarea {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s;
  width: 100%;
}
.comment-form-field input:focus,
.comment-form-field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.comment-form-field textarea { resize: vertical; min-height: 140px; }
.form-submit { margin-top: 0.5rem; }

/* ==========================================================================
   Writing Guide Page (page-writing-guide.php)
   ========================================================================== */

/* ── Hero ── */
.wg-hero {
  background: #0A0A0A;
  color: #F5F3EE;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .wg-hero { background: #050507; }
.wg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(181,23,52,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.wg-hero .wrap { position: relative; z-index: 1; }
.wg-hero__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.wg-hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #fff;
}
.wg-hero__accent { color: var(--red); }
.wg-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.wg-hero__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wg-hero__toc a {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.wg-hero__toc a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── Sections ── */
.wg-section { padding: clamp(3rem, 8vw, 6rem) 0; }
.wg-section--dark {
  background: #0A0A0A;
  color: #F5F3EE;
}
[data-theme="dark"] .wg-section--dark { background: #050507; }
.wg-section--dark .wg-section-header p,
.wg-section--dark p { color: rgba(245,243,238,0.82); }
.wg-section--tinted { background: var(--paper-2); }

.wg-section-header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.wg-section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
}
.wg-section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 680px;
}
.wg-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--red);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Cards ── */
.wg-cards-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.wg-card {
  padding: 2rem;
  border-radius: var(--radius);
}
.wg-card--highlight {
  background: var(--meta-bg);
  border: 1px solid var(--meta-border);
}
.wg-card--outline {
  border: 1px solid var(--hairline-2);
  background: var(--surface);
}
.wg-card p + p { margin-top: 0.75rem; }
.wg-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.wg-list { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.wg-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.wg-check { color: var(--red); font-weight: 700; flex-shrink: 0; }
.wg-x { opacity: 0.5; flex-shrink: 0; }

/* ── Principle ── */
.wg-principle {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-right: 4px solid var(--red);
  margin-bottom: 2.5rem;
}
.wg-principle__icon {
  width: 48px; height: 48px;
  color: var(--red);
  flex-shrink: 0;
}
.wg-principle__title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ── 3-col steps intro ── */
.wg-three-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.wg-step-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
}
.wg-step-card__num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.wg-step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.wg-step-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }

/* ── Compare infographic ── */
.wg-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.wg-compare__col {
  flex: 1;
  padding: 2.5rem 2rem;
  text-align: center;
}
.wg-compare__col--left { background: rgba(181,23,52,0.12); }
.wg-compare__col--right { background: rgba(255,255,255,0.06); }
.wg-compare__badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.wg-compare__badge--red { background: var(--red); color: #fff; }
.wg-compare__badge--dark { background: rgba(255,255,255,0.15); color: #fff; }
.wg-compare__quote {
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(245,243,238,0.82);
  font-style: italic;
}
.wg-compare__divider {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(245,243,238,0.78);
  flex-shrink: 0;
}

/* ── Table ── */
.wg-table-wrap { overflow-x: auto; margin-bottom: 2.5rem; }
.wg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.wg-table th, .wg-table td {
  padding: 0.85rem 1rem;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wg-table thead th {
  background: rgba(255,255,255,0.06);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.75);
}
.wg-table .th-red { color: var(--red) !important; }
.wg-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.wg-table td { color: rgba(245,243,238,0.88); }
.wg-table td:first-child { font-weight: 600; color: rgba(245,243,238,0.78); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Evidence block ── */
.wg-evidence-block { margin-top: 2.5rem; }
.wg-evidence-block__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.wg-evidence-block__sub {
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}
.wg-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.wg-evidence-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
}
.wg-evidence-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--red); }

/* ── Rule box ── */
.wg-rule-box {
  padding: 1rem 1.5rem;
  background: rgba(181,23,52,0.12);
  border: 1px solid rgba(181,23,52,0.3);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink);
  margin: 1.25rem 0;
}
.wg-section--dark .wg-rule-box { color: rgba(245,243,238,0.88); }
.wg-rule-box--center { text-align: center; }
.wg-rule-box--light {
  background: var(--meta-bg);
  border-color: var(--meta-border);
  color: var(--ink);
}
.wg-section--dark .wg-rule-box--light { color: rgba(245,243,238,0.88); }
.wg-rule-box strong { color: var(--red); }

/* ── Warning box ── */
.wg-warning-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,180,0,0.08);
  border: 1px solid rgba(255,180,0,0.25);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  margin: 1.5rem 0;
  line-height: 1.6;
}
.wg-warning-box__icon { font-size: 1.3rem; flex-shrink: 0; padding-top: 0.1rem; }
.wg-warning-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.wg-warning-checks span {
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}

/* ── Example blocks ── */
.wg-example-block { margin-top: 2rem; }
.wg-example-block__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wg-example-block__col {
  padding: 1.25rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.65;
}
.wg-example-block__col--bad {
  background: rgba(255,60,60,0.08);
  border: 1px solid rgba(255,60,60,0.2);
  color: rgba(255,255,255,0.75);
}
.wg-example-block__col--good {
  background: rgba(40,180,80,0.08);
  border: 1px solid rgba(40,180,80,0.25);
  color: rgba(255,255,255,0.82);
}
.wg-section:not(.wg-section--dark) .wg-example-block__col--bad { color: var(--ink); }
.wg-section:not(.wg-section--dark) .wg-example-block__col--good { color: var(--ink); }
.wg-example-block__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0.7;
}

/* ── Side by side article cards ── */
.wg-side-by-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.wg-article-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-2);
  background: var(--surface);
}
.wg-article-card--opinion { border-top: 4px solid var(--red); }
.wg-article-card--diagnosis { border-top: 4px solid var(--ink); background: var(--paper-2); }
.wg-article-card__type {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.wg-article-card--diagnosis .wg-article-card__type { color: var(--muted); }
.wg-article-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.4; }
.wg-article-card__intro,
.wg-article-card__end {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  padding: 0.75rem;
  background: var(--paper-2);
  border-radius: var(--radius);
  margin-top: 0.75rem;
}

/* ── Steps (diagnosis structure) ── */
.wg-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.wg-steps::before {
  content: '';
  position: absolute;
  right: 20px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: rgba(255,255,255,0.08);
}
.wg-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  position: relative;
}
.wg-step:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.06); }
.wg-step__num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.wg-step--optional .wg-step__num {
  background: transparent;
  border-color: rgba(255,255,255,0.18);
  color: rgba(245,243,238,0.72);
}
.wg-step__content h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.wg-step__content p { font-size: 0.92rem; color: rgba(255,255,255,0.65); line-height: 1.7; }
.wg-step__content--highlight {
  padding: 1rem 1.25rem;
  background: rgba(181,23,52,0.12);
  border: 1px solid rgba(181,23,52,0.3);
  border-radius: var(--radius);
  width: 100%;
}
.wg-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
}
.wg-tag--muted { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); }

/* ── Sub section ── */
.wg-sub-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.wg-sub-section h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.wg-sub-section p { color: rgba(255,255,255,0.72); margin-bottom: 1.5rem; }

.wg-transparency-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.wg-transparency-item {
  padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.wg-transparency-item__type {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245,243,238,0.72);
  margin-bottom: 0.5rem;
}
.wg-transparency-item--ok { border-color: rgba(40,180,80,0.3); background: rgba(40,180,80,0.06); }
.wg-transparency-item--ok .wg-transparency-item__type { color: #5CC96B; }

.wg-cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.wg-info-card {
  padding: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.wg-info-card__icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.wg-info-card h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.wg-info-card p { font-size: 0.88rem; color: rgba(255,255,255,0.62); line-height: 1.6; }

/* ── Checklist ── */
.wg-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.wg-checklist-col {
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.wg-checklist-col__header {
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wg-checklist-col__header--opinion { background: var(--red); color: #fff; }
.wg-checklist-col__header--diagnosis { background: var(--stats-bg); color: #F5F3EE; }
.wg-checklist {
  list-style: none;
  padding: 0.75rem 0;
}
.wg-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  line-height: 1.55;
}
.wg-checklist li:last-child { border-bottom: none; }
.wg-checklist li::before { content: none; }
.wg-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  width: 100%;
}
.wg-checklist input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  border: 2px solid var(--red);
  border-radius: 3px;
  margin-top: 0.15rem;
  cursor: pointer;
  position: relative;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}
.wg-checklist input[type="checkbox"]:checked {
  background: var(--red);
  border-color: var(--red);
}
.wg-checklist input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -65%) rotate(45deg);
}
.wg-checklist input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.wg-checklist input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  opacity: 0.45;
}

/* ── Topics grid ── */
.wg-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.wg-topic-card {
  padding: 1.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.wg-topic-card:hover { border-color: rgba(181,23,52,0.5); }
.wg-topic-card__icon {
  width: 36px; height: 36px;
  color: var(--red);
  margin-bottom: 1rem;
}
.wg-topic-card__icon svg { width: 100%; height: 100%; }
.wg-topic-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.wg-topic-card p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ── Red lines ── */
.wg-redlines { display: flex; flex-direction: column; gap: 0; }
.wg-redline-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--hairline-2);
}
.wg-redline-item:first-child { border-top: 1px solid var(--hairline-2); }
.wg-redline-item__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wg-redline-item__label::before {
  content: '✗';
  font-size: 1rem;
  flex-shrink: 0;
}
.wg-redline-item__reason { font-size: 0.92rem; color: var(--muted); }

/* ── Style grid ── */
.wg-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.wg-style-col {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline-2);
}
.wg-style-col__header {
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wg-style-col__header--yes { background: var(--red); color: #fff; }
.wg-style-col__header--no { background: var(--paper-2); color: var(--muted); }
.wg-style-list { list-style: none; padding: 0.5rem 0; background: var(--surface); }
.wg-style-list li {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.92rem;
  gap: 0.25rem;
}
.wg-style-list li:last-child { border-bottom: none; }
.wg-style-list li strong { color: var(--ink); }
.wg-style-list li span { color: var(--muted); line-height: 1.55; }
.wg-style-list--no li strong { color: var(--muted); }

/* Voice block */
.wg-voice-block {
  margin-bottom: 2rem;
}
.wg-voice-block__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.wg-voice-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.wg-voice-option {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
}
.wg-voice-option--preferred { border-color: var(--red); border-top: 3px solid var(--red); }
.wg-voice-option__badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.wg-voice-option--preferred .wg-voice-option__badge { color: var(--red); }
.wg-voice-option__name { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.wg-voice-option p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

.wg-tip-box {
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-right: 3px solid var(--muted);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}
.wg-tip-box strong { color: var(--ink); }

/* ── Format grid ── */
.wg-format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.wg-format-item {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
}
.wg-format-item__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.wg-format-item__value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.wg-format-item__note { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* ── Process ── */
.wg-process { display: flex; flex-direction: column; gap: 0; margin-bottom: 2rem; }
.wg-process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 0;
  position: relative;
}
.wg-process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 68px;
  height: calc(100% - 48px);
  width: 2px;
  background: rgba(255,255,255,0.08);
}
.wg-process-step__circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.wg-process-step__body h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.wg-process-step__body p { font-size: 0.92rem; color: rgba(255,255,255,0.65); line-height: 1.65; }
.wg-process-step__body a { color: var(--red); text-decoration: none; }
.wg-process-step__body a:hover { text-decoration: underline; }

.wg-note-box {
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}
.wg-note-box strong { color: #fff; }

/* ── Rights ── */
.wg-rights-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
.wg-rights-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.65;
}
.wg-rights-item__icon { font-size: 1.4rem; flex-shrink: 0; }
.wg-rights-item strong { color: var(--ink); }

/* ── CTA ── */
.wg-cta {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 2rem;
  background: #0A0A0A;
  color: #F5F3EE;
  border-radius: var(--radius);
}
[data-theme="dark"] .wg-cta { background: #050507; }
.wg-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 0.75rem; }
.wg-cta p { color: rgba(255,255,255,0.65); margin-bottom: 2rem; font-size: 1.05rem; }
.wg-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: filter 0.2s;
  direction: ltr;
}
.wg-cta-btn:hover { filter: brightness(1.1); }
.wg-cta-btn svg { width: 18px; height: 18px; }
.wg-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.wg-cta-btn--wa {
  direction: rtl;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .wg-example-block__row { grid-template-columns: 1fr; }
  .wg-compare { flex-direction: column; }
  .wg-compare__col { width: 100%; }
  .wg-compare__divider { width: 100%; height: 40px; border-radius: var(--radius); }
  .wg-redline-item { grid-template-columns: 1fr; }
  .wg-steps::before { display: none; }
  .wg-process-step::after { display: none; }
}
