:root {
  --ink: #232240;
  --ink-soft: #45445F;
  --paper: #F7F7FA;
  --white: #FFFFFF;
  --brand: #F26722;
  --brand-deep: #C94F0D;
  --brand-tint: #FDE9DD;
  --accent: #F58B53;
  --indigo: #302F51;
  --indigo-deep: #262546;
  --accent-soft: #FDEBDF;
  --line: #E4E4EC;
  --muted: #66657E;
  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(35, 34, 64, 0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER & NAV (Matches existing Webyappy theme) ── */
header.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 247, 250, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 38px; width: auto; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-text strong {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.nav-brand-text span {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand);
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-cta {
  background: var(--ink); color: var(--white);
  font-size: 0.85rem; font-weight: 600;
  padding: 0.6rem 1.3rem; border-radius: 999px; text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brand); }

/* ── READING PROGRESS BAR ── */
.read-progress {
  position: fixed; top: 72px; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 101; pointer-events: none; transition: width 0.08s linear;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  padding: 0.9rem 1.8rem; border-radius: 999px; cursor: pointer; border: none;
  font-family: var(--body);
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--brand); color: var(--white); }
.btn-solid:hover { background: var(--brand-deep); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline-light {
  background: rgba(255, 255, 255, 0.06); color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.btn-outline-light:hover { border-color: rgba(255, 255, 255, 0.7); }

/* ── BLOG HERO (Clean white theme matching site pages) ── */
.blog-hero {
  background: var(--white); color: var(--ink);
  padding: 144px 0 64px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.blog-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 320px at 88% -5%, rgba(242, 103, 34, 0.09), transparent 68%),
    radial-gradient(420px 280px at 6% 100%, rgba(48, 47, 81, 0.06), transparent 68%);
}
.blog-hero .inner { position: relative; max-width: 820px; }
.b-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-tint);
  border: 1px solid rgba(242, 103, 34, 0.28);
  padding: 0.4rem 0.85rem; border-radius: 999px; margin-bottom: 1.35rem;
}
.b-eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.blog-hero h1 {
  font-family: var(--display); font-size: clamp(2.2rem, 4.4vw, 3.35rem);
  font-weight: 800; line-height: 1.07; letter-spacing: -0.035em;
  color: var(--ink); margin-bottom: 1.1rem;
}
.blog-hero h1 em { font-style: normal; color: var(--brand); }
.blog-hero-sub {
  font-size: 1.04rem; color: var(--muted);
  line-height: 1.72; max-width: 680px; margin-bottom: 1.55rem;
}
.blog-hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.35rem; align-items: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.blog-hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.blog-hero-meta .dot { color: var(--brand); }

/* ── FILTER & SEARCH TOOLBAR ── */
.blog-controls-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky; top: 72px; z-index: 40;
}
.blog-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.cat-pills {
  display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap;
}
.cat-pill {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line);
  padding: 0.45rem 0.9rem; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cat-pill:hover { border-color: var(--brand); color: var(--brand); }
.cat-pill.active {
  background: var(--ink); border-color: var(--ink); color: var(--white);
}
.blog-search-wrap {
  position: relative; min-width: 240px; flex: 0 1 280px;
}
.blog-search {
  width: 100%; height: 38px;
  padding: 0 2.2rem 0 0.95rem;
  font-family: var(--body); font-size: 0.85rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  outline: none; transition: border-color 0.2s, background 0.2s;
}
.blog-search:focus { border-color: var(--brand); background: var(--white); }
.blog-search::placeholder { color: var(--muted); }
.blog-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: var(--line); color: var(--ink-soft); font-size: 0.78rem;
  cursor: pointer; display: none; align-items: center; justify-content: center;
}
.blog-search-clear.show { display: inline-flex; }

/* ── BLOG LISTING SECTION ── */
.blog-section { padding: 52px 0 88px; }
.blog-status-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.blog-count {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.blog-series-note {
  font-size: 0.82rem; color: var(--muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.65rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(242, 103, 34, 0.45);
}
.blog-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--indigo-deep);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.blog-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.025); }
.blog-card-num {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(35, 34, 64, 0.86); color: var(--white);
  backdrop-filter: blur(6px);
  padding: 0.28rem 0.62rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.blog-card-body {
  padding: 1.55rem 1.6rem 1.6rem;
  display: flex; flex-direction: column; flex: 1;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.blog-cat-badge {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-tint);
  padding: 0.25rem 0.65rem; border-radius: 999px;
}
.blog-meta-dot { color: var(--line); font-size: 0.7rem; }
.blog-meta-text {
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
}
.blog-card h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
  line-height: 1.24; letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}
.blog-card h2 a {
  color: var(--ink); text-decoration: none; transition: color 0.2s;
}
.blog-card h2 a:hover { color: var(--brand); }
.blog-card-excerpt {
  font-size: 0.91rem; color: var(--muted); line-height: 1.65;
  margin-bottom: 1.2rem; flex: 1;
}
.blog-card-stat {
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.55rem 0.8rem;
  margin-bottom: 1.15rem; line-height: 1.45;
}
.blog-card-stat b { color: var(--brand); font-weight: 600; }
.blog-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.blog-read-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.86rem; font-weight: 600; color: var(--brand);
  text-decoration: none; transition: gap 0.2s, color 0.2s;
}
.blog-card:hover .blog-read-link { gap: 0.65rem; color: var(--brand-deep); }
.blog-date-label {
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
}

/* ── CARD ENTRANCE & SKELETON ── */
.blog-card.fade-in {
  animation: cardFadeIn 0.35s ease both;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.blog-skeleton {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden;
}
.skel-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #ECECF3 25%, #F5F5FA 50%, #ECECF3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}
.skel-body { padding: 1.55rem; display: flex; flex-direction: column; gap: 0.75rem; }
.skel-line {
  height: 14px; border-radius: 8px;
  background: linear-gradient(90deg, #ECECF3 25%, #F5F5FA 50%, #ECECF3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}
.skel-line.short { width: 42%; height: 12px; }
.skel-line.title { width: 88%; height: 22px; }
.skel-line.mid { width: 72%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── INFINITE SCROLL LOADER & EMPTY STATE ── */
.blog-loader-area {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  text-align: center;
}
.blog-sentinel { width: 100%; height: 1px; }
.blog-loader-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  background: var(--white); border: 1px solid var(--line);
  padding: 0.55rem 1.1rem; border-radius: 999px;
}
.blog-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--brand);
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.blog-empty {
  grid-column: 1 / -1;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 3rem 1.5rem; text-align: center;
}
.blog-empty h3 {
  font-family: var(--display); font-size: 1.25rem; margin-bottom: 0.5rem;
}
.blog-empty p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.25rem; }

/* ── SINGLE ARTICLE PAGE ── */
.article-wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.article-header {
  padding: 126px 0 40px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.article-breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted);
  margin-bottom: 1.5rem;
}
.article-breadcrumb a {
  color: var(--brand); text-decoration: none; font-weight: 500;
}
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb .sep { color: var(--line); }

.article-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-tint);
  padding: 0.32rem 0.8rem; border-radius: 999px; margin-bottom: 1.15rem;
}
.article-header h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.1vw, 3.05rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.032em;
  color: var(--ink); margin-bottom: 1.1rem;
}
.article-dek {
  font-size: 1.12rem; color: var(--muted); line-height: 1.68;
  margin-bottom: 1.6rem; max-width: 740px;
}
.article-byline {
  display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
  padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
}
.article-byline b { color: var(--ink); font-weight: 600; }

.article-hero-figure {
  margin: 2.2rem 0 0;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--indigo-deep);
}
.article-hero-figure img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
}

/* ── ARTICLE BODY & DATA CALLOUT ── */
.article-body-section { padding: 48px 0 72px; }
.article-prose {
  max-width: 740px;
  margin: 0 auto;
}

.stat-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 16px;
  padding: 1.65rem 1.75rem;
  margin-bottom: 2.4rem;
  box-shadow: 0 6px 22px rgba(35, 34, 64, 0.05);
}
.stat-panel-eyebrow {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1.1rem; display: block;
}
.stat-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.stat-item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 1.05rem;
}
.stat-val {
  font-family: var(--display); font-size: 1.95rem; font-weight: 800;
  line-height: 1.05; letter-spacing: -0.025em; display: block;
  margin-bottom: 0.4rem;
}
.stat-val.tone-brand { color: var(--brand); }
.stat-val.tone-accent { color: var(--brand-deep); }
.stat-val.tone-ink { color: var(--ink); }
.stat-val.tone-muted { color: var(--muted); }
.stat-label {
  font-size: 0.81rem; color: var(--ink-soft); line-height: 1.45; display: block;
}
.stat-source {
  font-family: var(--mono); font-size: 0.66rem; color: var(--muted);
  line-height: 1.55; padding-top: 0.85rem; border-top: 1px dashed var(--line);
}

.article-prose p {
  font-size: 1.03rem; color: var(--ink-soft);
  line-height: 1.82; margin-bottom: 1.3rem;
}
.article-prose a.inline-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(242, 103, 34, 0.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.18s, text-decoration-color 0.18s;
}
.article-prose a.inline-link:hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}
.article-prose h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  line-height: 1.22; letter-spacing: -0.025em;
  color: var(--ink);
  margin: 2.5rem 0 0.9rem;
}
.article-callout {
  margin: 2.4rem 0;
  padding: 1.55rem 1.75rem;
  background: var(--indigo);
  color: var(--white);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.article-callout::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--brand);
}

/* ── CONTEXTUAL OUR APPROACH COMPONENT ── */
.approach-box {
  margin-top: 2.75rem;
  padding: 2rem 2rem 1.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(35, 34, 64, 0.05);
}
.approach-eyebrow {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); display: inline-block; margin-bottom: 0.6rem;
}
.approach-box h3 {
  font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800; line-height: 1.22; letter-spacing: -0.022em;
  color: var(--ink); margin-bottom: 0.8rem;
}
.article-prose p.approach-intro {
  font-size: 0.93rem; color: var(--ink-soft);
  line-height: 1.7; margin-bottom: 0.75rem;
}
.article-prose p.approach-intro:last-of-type {
  margin-bottom: 1.4rem;
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  margin-bottom: 1.5rem;
}
.approach-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 1.15rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.approach-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.15rem;
}
.approach-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.approach-step {
  font-family: var(--mono); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--muted);
}
.approach-card h4 {
  font-family: var(--display); font-size: 0.96rem; font-weight: 700;
  line-height: 1.3; letter-spacing: -0.01em; color: var(--ink);
}
.article-prose .approach-card p {
  font-size: 0.82rem; color: var(--muted); line-height: 1.58; margin-bottom: 0;
}
.approach-cta-row {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: flex-start;
}
.approach-cta {
  display: inline-flex; align-items: center; gap: 0.48rem;
  background: var(--ink); color: var(--white);
  font-size: 0.87rem; font-weight: 600; text-decoration: none;
  padding: 0.72rem 1.45rem; border-radius: 999px;
  transition: background 0.2s, transform 0.15s;
}
.approach-cta:hover {
  background: var(--brand); transform: translateY(-1px);
}
@media (max-width: 760px) {
  .approach-box { padding: 1.5rem 1.3rem; }
  .approach-grid { grid-template-columns: 1fr; }
}

.references-box {
  margin-top: 2.6rem;
  padding: 1.5rem 1.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.references-box h3 {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 0.9rem;
}
.references-box ol {
  padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.references-box li {
  font-size: 0.84rem; color: var(--muted); line-height: 1.6;
}
.references-box a.ref-link {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(242, 103, 34, 0.45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.18s, text-decoration-color 0.18s;
}
.references-box a.ref-link strong {
  color: var(--ink);
  font-weight: 600;
}
.references-box a.ref-link:hover,
.references-box a.ref-link:hover strong {
  color: var(--brand);
  text-decoration-color: var(--brand);
}
.references-box .ref-ext {
  color: var(--brand);
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* ── PREV / NEXT NAVIGATION ── */
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
  margin-top: 2.8rem; padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.article-nav-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.25rem 1.35rem; text-decoration: none;
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.article-nav-card:hover {
  border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow);
}
.article-nav-card.next { text-align: right; }
.article-nav-dir {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand);
}
.article-nav-title {
  font-family: var(--display); font-weight: 700; font-size: 0.98rem;
  line-height: 1.32; color: var(--ink);
}

/* ── RELATED ARTICLES ── */
.related-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}
.related-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.sec-eyebrow {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 0.65rem; display: block;
}
.sec-title {
  font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.028em;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
}
.related-grid .blog-card-body { padding: 1.25rem; }
.related-grid .blog-card h2 { font-size: 1.06rem; }
.related-grid .blog-card-excerpt { font-size: 0.84rem; margin-bottom: 0.9rem; }

/* ── CTA & FOOTER (Matches existing Webyappy theme) ── */
.cta-section { padding: 84px 0 96px; }
.cta-box {
  background: var(--indigo); color: var(--white); border-radius: 24px;
  box-shadow: var(--shadow); padding: 3.75rem 3rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 260px at 50% -10%, rgba(242, 103, 34, 0.25), transparent 70%);
}
.cta-box h2 {
  font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; position: relative;
}
.cta-box h2 em { font-style: normal; color: var(--accent); }
.cta-box p {
  font-size: 1rem; color: rgba(255, 255, 255, 0.72);
  max-width: 600px; margin: 0 auto 2.1rem; line-height: 1.7; position: relative;
}
.cta-actions {
  display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; position: relative;
}

footer { background: var(--ink); padding: 56px 0 0; }
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 2rem; padding-bottom: 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-logo-card {
  background: var(--white); border-radius: 12px; padding: 0.7rem 1rem;
  display: inline-flex; width: fit-content;
}
.footer-logo-card img { height: 34px; width: auto; }
.footer-brand p {
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); max-width: 300px; line-height: 1.65;
}
.footer-brand .tagline {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.footer-contact { display: flex; flex-direction: column; gap: 0.55rem; text-align: right; }
.footer-contact a {
  font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); text-decoration: none;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 1.1rem 0; text-align: center;
}
.footer-bottom p {
  font-family: var(--mono); font-size: 0.68rem; color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.04em;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blog-card.fade-in, .skel-img, .skel-line, .blog-spinner { animation: none; }
}

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { overflow-x: hidden; }
  .nav-links { display: none; }
  .nav { height: auto; padding: 12px 16px; gap: 0.75rem; flex-wrap: wrap; }
  .nav-brand { gap: 8px; min-width: 0; flex: 1 1 auto; width: 100%; }
  .nav-brand img { height: 30px; }
  .nav-brand-text strong { font-size: 0.8rem; }
  .nav-brand-text span { font-size: 0.5rem; letter-spacing: 0.08em; }
  .nav-cta {
    margin-left: auto; font-size: 0.76rem; padding: 0.55rem 0.9rem;
    line-height: 1.15; text-align: center;
  }
  .read-progress { top: 0; }
  .blog-hero { padding: 142px 0 56px; }
  .blog-controls-band { position: static; padding: 16px 0; }
  .blog-search-wrap { flex: 1 1 100%; }
  .blog-section { padding: 36px 0 64px; }
  .article-header { padding: 132px 0 32px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-card.next { text-align: left; }
  .related-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 2.8rem 1.4rem; }
  .footer-contact { text-align: left; }
}
