/*
Theme Name:   Belkaci Child
Description:  Child theme for Ghilas Belkaci portfolio, built on Divi.
Author:       Ghilas Belkaci
Template:     Divi
Version:      1.0.0
Text Domain:  belkaci-child
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Color */
  --navy: #1A1A2E;
  --navy-2: #2D2D5B;
  --indigo: #5B6EF7;
  --indigo-dark: #3A4AC4;
  --indigo-tint: #F0F2FF;
  --indigo-tint-hover: #C7CCFA;
  --white: #FFFFFF;
  --offwhite: #FAFAFA;
  --zinc: #71717A;
  --zinc-2: #F4F4F5;
  --border: #E4E4E7;

  /* Type */
  --display: "Sora", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-12: 12px;
  --s-md: 16px;
  --s-24: 24px;
  --s-lg: 32px;
  --s-xl: 48px;
  --s-2xl: 64px;
  --s-3xl: 96px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* Motion */
  --ease: ease;
  --ease-bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max: 1200px;
  --pad: 80px;
}

@media (max-width: 1100px) { :root { --pad: 48px; } }
@media (max-width: 700px)  { :root { --pad: 24px; } }

/* ============================================================
   GLOBAL RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--zinc);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; }
h4 { font-family: var(--body); color: var(--navy); margin: 0; font-weight: 500; font-size: 18px; line-height: 1.4; }

::selection { background: var(--indigo); color: var(--white); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================================
   TYPE UTILITIES
   ============================================================ */
.h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 56px); line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); margin: 0; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 36px); line-height: 1.2; color: var(--navy); margin: 0; }
.h3 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.3; color: var(--navy); margin: 0; }
.body { font-size: 16px; line-height: 1.7; color: var(--zinc); }
.small { font-size: 13px; line-height: 1.6; color: var(--zinc); }
.overline {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
}
.overline.muted { color: var(--zinc); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: var(--s-3xl) 0; }
section.alt { background: var(--offwhite); }
@media (max-width: 700px) { section { padding: var(--s-2xl) 0; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: padding 0.25s var(--ease), background 0.25s var(--ease), backdrop-filter 0.25s var(--ease), border-color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0);
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand .dot { color: var(--indigo); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
  background-image: linear-gradient(var(--indigo), var(--indigo));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: left bottom;
  transition: background-size 0.25s var(--ease), color 0.2s;
}
.nav-link:hover { background-size: 100% 1.5px; color: var(--indigo); }
.nav-link.active { color: var(--indigo); background-size: 100% 1.5px; }
.nav-right { display: flex; align-items: center; gap: 16px; }

@media (max-width: 900px) { .nav-links { display: none; } }

/* ============================================================
   LANG DROPDOWN
   ============================================================ */
.lang { position: relative; }
.lang-button {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  transition: border-color 0.2s, background 0.2s;
}
.lang-button:hover { border-color: var(--navy); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
  min-width: 150px;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s;
}
.lang-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.lang-item {
  text-align: left;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--zinc);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lang-item:hover { background: var(--indigo-tint); color: var(--indigo-dark); }
.lang-item.active { color: var(--indigo); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-md);
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: var(--navy);
  color: var(--white);
  padding: 12px 28px;
}
.btn.primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn.secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 11px 27px;
}
.btn.secondary:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--indigo);
  padding: 12px 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn.ghost:hover { background: var(--indigo-tint); }

/* ============================================================
   TAGS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--indigo-tint);
  color: var(--indigo-dark);
}
.tag.muted { background: var(--zinc-2); color: var(--zinc); }
.tag.dark { background: var(--navy); color: var(--white); }
.tag.dark .pulse {
  width: 6px; height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ============================================================
   FILTER PILL
   ============================================================ */
.filter-pill {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--zinc);
  background: var(--white);
  transition: all 0.2s var(--ease);
}
.filter-pill:hover { border-color: var(--navy); color: var(--navy); }
.filter-pill.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-bouncy), transform 0.4s var(--ease-bouncy);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 140px 0 var(--s-3xl);
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: var(--s-xl);
  align-items: center;
  width: 100%;
}
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s-24);
}
.hero-headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 var(--s-24);
}
.hero-headline .accent { color: var(--indigo); }
.hero-headline .cursor {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  background: var(--indigo);
  margin-left: 4px;
  vertical-align: -0.08em;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--zinc);
  margin: 0 0 var(--s-lg);
  max-width: 56ch;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  border: 1px dashed var(--border);
  background: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--zinc);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}
.hero-portrait .icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--indigo-tint);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-lg); }
  .hero-portrait { max-width: 280px; aspect-ratio: 1; }
}

/* ============================================================
   SECTION HEADING BLOCK
   ============================================================ */
.section-head {
  margin-bottom: var(--s-xl);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-head .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-xl);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-body p { margin: 0 0 16px; max-width: 60ch; }
.about-body p strong { color: var(--navy); font-weight: 500; }

.facts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: var(--s-lg);
}
.fact-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.25s;
}
.fact-card:hover { border-color: var(--indigo-tint-hover); box-shadow: 0 4px 20px rgba(91, 110, 247, 0.08); }
.fact-card .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 8px;
}
.fact-card .label { font-size: 13px; color: var(--zinc); }

.about-side {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.about-side h4 { margin: 0 0 16px; }
.about-side .meta-list { display: flex; flex-direction: column; gap: 14px; }
.about-side .meta-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
.about-side .meta-row .label { color: var(--zinc); font-size: 13px; }
.about-side .meta-row .value { color: var(--navy); font-weight: 500; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
}
.skill-card:hover {
  border-color: var(--indigo-tint-hover);
  box-shadow: 0 4px 20px rgba(91, 110, 247, 0.08);
  transform: translateY(-2px);
}
.skill-card .head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.skill-card .num {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--zinc);
}
.skill-card h3 { font-size: 20px; }
.skill-card .tech-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
}
.project-card:hover {
  border-color: var(--indigo-tint-hover);
  box-shadow: 0 4px 20px rgba(91, 110, 247, 0.08);
  transform: translateY(-4px);
}
.project-cover {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  background: var(--cover, var(--navy));
}
.project-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(0, 0, 0, 0.30) 0%, transparent 60%);
}
.browser-bar {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 5px;
  backdrop-filter: blur(4px);
}
.browser-bar .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.cover-watermark {
  position: absolute;
  left: 18px;
  bottom: 14px;
  right: 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 22px);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--zinc);
}
.project-title { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--navy); }
.project-desc  { font-size: 14px; line-height: 1.55; color: var(--zinc); margin: 0; }
.project-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  animation: backdrop-in 0.25s var(--ease) forwards;
  overflow-y: auto;
}
@keyframes backdrop-in { to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: var(--r-xl);
  max-width: 880px;
  width: 100%;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  position: relative;
  transform: scale(0.97);
  opacity: 0;
  animation: modal-in 0.3s var(--ease-bouncy) 0.05s forwards;
}
@keyframes modal-in { to { transform: scale(1); opacity: 1; } }

.modal-cover {
  aspect-ratio: 16 / 8;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  position: relative;
  overflow: hidden;
}
.modal-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(0, 0, 0, 0.30) 0%, transparent 60%);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s, background 0.2s;
}
.modal-close:hover { transform: rotate(90deg); background: var(--white); }
.modal-body { padding: 32px 40px 40px; }
.modal-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.modal-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.modal-desc { font-size: 16px; line-height: 1.7; color: var(--zinc); margin: 0 0 24px; max-width: 60ch; }
.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.modal-meta-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--zinc);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.modal-meta-value { font-size: 14px; color: var(--navy); }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .modal-body { padding: 24px 20px 28px; }
  .modal-meta { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   BLOG TEASER + INDEX
   ============================================================ */
.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .blog-teaser-grid { grid-template-columns: 1fr; } }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: var(--s-3xl);
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  width: 100%;
  padding: 0;
  display: block;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
}
.blog-card:hover {
  border-color: var(--indigo-tint-hover);
  box-shadow: 0 4px 20px rgba(91, 110, 247, 0.08);
  transform: translateY(-3px);
}
.blog-cover {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.blog-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 75%, rgba(0, 0, 0, 0.28) 0%, transparent 60%);
}
.blog-cover .cat-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.20);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.blog-cover .symbol {
  position: absolute;
  right: 24px; bottom: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 96px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
}
.blog-card-body { padding: 20px 22px 22px; }
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--zinc);
  margin-bottom: 12px;
}
.blog-card-meta .read { color: var(--indigo); font-weight: 500; }
.blog-card-title { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.4; color: var(--navy); margin: 0 0 8px; }
.blog-card-excerpt { font-size: 14px; line-height: 1.6; color: var(--zinc); margin: 0 0 14px; }
.blog-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.blog-card-foot .date { font-size: 12px; color: var(--zinc); }
.blog-card-foot .read-cta {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.blog-card:hover .blog-card-foot .read-cta { gap: 10px; }

/* Compact blog teaser card */
.blog-card-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  transition: transform 0.2s;
}
.blog-card-mini:hover { transform: translateY(-2px); }
.blog-card-mini .title { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.4; color: var(--navy); }
.blog-card-mini .excerpt { font-size: 14px; color: var(--zinc); line-height: 1.6; }
.blog-card-mini .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.blog-card-mini .foot .date { font-size: 12px; color: var(--zinc); }
.blog-card-mini .foot .read { font-size: 13px; font-weight: 500; color: var(--indigo); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--offwhite); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-xl);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 16px 0 16px;
}
.contact-headline .accent { color: var(--indigo); }
.contact-lede { font-size: 18px; line-height: 1.65; color: var(--zinc); max-width: 480px; margin: 0 0 var(--s-lg); }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.socials {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.social-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: var(--r-md);
  transition: background 0.2s;
}
.social-row:hover { background: var(--indigo-tint); }
.social-row + .social-row { border-top: 1px solid var(--border); }
.social-row:hover + .social-row { border-top-color: transparent; }
.social-row .label { font-size: 12px; font-weight: 500; letter-spacing: 0.05em; color: var(--zinc); text-transform: uppercase; }
.social-row .handle { font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--navy); }
.social-row:hover .handle { color: var(--indigo-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--white);
  color: var(--zinc);
  padding: 28px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner .brand { font-size: 14px; }

/* ============================================================
   BLOG INDEX PAGE
   ============================================================ */
.page { padding-top: 120px; padding-bottom: var(--s-3xl); }
.back-link {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--zinc);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--s-lg);
  transition: color 0.2s, gap 0.2s;
}
.back-link:hover { color: var(--indigo); gap: 10px; }
.blog-hero { margin-bottom: var(--s-xl); }
.blog-hero .title { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 56px); line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); margin: 12px 0 12px; }
.blog-hero .title .accent { color: var(--indigo); }
.blog-hero .subtitle { font-size: 18px; color: var(--zinc); margin: 0; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--indigo);
  z-index: 200;
  transition: width 0.05s linear;
  width: 0%;
}
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px var(--s-3xl);
}
.article-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--zinc);
}
.article-eyebrow-row .sep { color: var(--border); }
.article-title { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5.5vw, 56px); line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 20px; text-wrap: balance; }
.article-lede { font-size: 19px; line-height: 1.65; color: var(--zinc); padding-bottom: 28px; border-bottom: 1px solid var(--border); margin: 0 0 28px; }
.article-body { font-size: 17px; line-height: 1.8; color: var(--zinc); }
.article-body p { margin: 0 0 22px; }
.article-body h2 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.25; color: var(--navy); margin: 40px 0 18px; letter-spacing: -0.01em; }
.pullquote {
  border-left: 3px solid var(--indigo);
  background: var(--indigo-tint);
  padding: 18px 24px;
  margin: 32px 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
}
.code-block {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--navy);
  overflow-x: auto;
  margin: 24px 0;
  white-space: pre;
}

/* ============================================================
   DIVI OVERRIDES — reset Divi defaults so our layout takes over
   ============================================================ */
#et-main-area { padding-top: 0 !important; }
.et_pb_section { padding: 0 !important; }
.et_pb_row { max-width: none !important; padding: 0 !important; width: 100% !important; margin: 0 !important; }
.et_pb_column { padding: 0 !important; }
.et_pb_code_inner { padding: 0 !important; }
/* Hide Divi default header — we use our own header.php */
#main-header, #et-secondary-nav { display: none !important; }
/* Fix body top padding Divi injects for fixed header */
body.et_fixed_nav { padding-top: 0 !important; }
