*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #2A2A2A;
  --beige: #BAB7AC;
  --beige-light: #F0EDE7;
  --beige-pale: #F7F5F1;
  --white: #FFFFFF;
  --green: #4B6043;
  --green-light: #5E7655;
  --text-muted: #7A7870;
  --border: #E2DFD9;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--beige-pale);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--beige-light); }
::-webkit-scrollbar-thumb { background: var(--beige); border-radius: 3px; }

/* ─── UTILITY ─── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(75, 96, 67, 0.25);
}
.btn-primary:hover {
  background: var(--green-light);
  box-shadow: 0 8px 24px rgba(75, 96, 67, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn svg { flex-shrink: 0; }

/* ─── NAV ─── */
nav#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 245, 241, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
nav#nav.scrolled { border-bottom-color: var(--border); }
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.nav-links a:hover { opacity: 1; }
.nav-cta { margin-left: 8px; }

/* ─── HERO ─── */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.hero-content { padding: 24px 0; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--beige-light);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.hero-tag-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 24px;
}
.hero-title .muted { color: var(--beige); }
.hero-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ─── HERO VISUAL ─── */
.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--black);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.hero-visual-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px 36px;
}
.hero-visual-logo-main {
  width: min(240px, 70%);
  height: auto;
  border-radius: 16px;
}
.hero-visual-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(42,42,42,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatUp 3s ease-in-out infinite;
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-badge-icon {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge-text { font-size: 12px; font-weight: 600; color: var(--black); }
.hero-badge-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ─── HERO CLIENTS TICKER ─── */
.hero-clients {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  overflow: hidden;
}
.hero-clients-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-bottom: 14px;
}
.hero-clients-track-wrap { overflow: hidden; }
.hero-clients-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 18s linear infinite;
  padding: 0 24px;
}
.hero-clients-track:hover { animation-play-state: paused; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.hero-client-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  cursor: default;
}
.hero-clients-track:hover .hero-client-name { color: rgba(255,255,255,0.8); }

/* ─── SOCIAL PROOF ─── */
#social-proof {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.logo-item {
  font-size: 15px;
  font-weight: 700;
  color: var(--beige);
  letter-spacing: -0.01em;
  transition: color var(--transition);
  cursor: default;
}
.logo-item:hover { color: var(--black); }

/* ─── PITCH ─── */
#pitch { background: var(--white); }
.pitch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.pitch-left { position: sticky; top: 96px; }
.pitch-headline {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.pitch-headline .accent { color: var(--green); }
.pitch-right { display: flex; flex-direction: column; gap: 28px; }
.pitch-block {
  padding: 28px;
  background: var(--beige-pale);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pitch-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(42,42,42,0.08);
}
.pitch-quote {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--black);
  margin-bottom: 12px;
}
.pitch-text { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ─── SERVICES ─── */
#services { background: var(--beige-pale); }
.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}
.services-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 400px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(42,42,42,0.1); }
.service-card:hover::before { transform: scaleX(1); }
.service-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--beige);
  margin-bottom: 16px;
}
.service-icon {
  width: 48px; height: 48px;
  background: var(--beige-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: var(--green); }
.service-card:hover .service-icon svg { stroke: white; }
.service-icon svg { stroke: var(--green); transition: stroke var(--transition); }
.service-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-items { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-items li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.service-items li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
}

/* ─── METHODOLOGY ─── */
#methodology { background: var(--black); color: var(--white); }
#methodology .section-label { color: var(--beige); }
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.method-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.method-title .accent { color: var(--beige); }
.method-text { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7; }
.method-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.method-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background var(--transition), transform var(--transition);
}
.method-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}
.method-card.wide { grid-column: span 2; }
.method-card-icon { font-size: 24px; margin-bottom: 12px; }
.method-card-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.method-card-text { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.55; }

/* ─── PILLARS ─── */
#pillars { background: var(--beige-pale); }
.pillars-header { text-align: center; margin-bottom: 64px; }
.pillars-title {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.pillars-subtitle { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(42,42,42,0.1); }
.pillar-num {
  font-size: 72px;
  font-weight: 900;
  color: var(--beige-light);
  line-height: 1;
  position: absolute;
  top: 16px; right: 24px;
  letter-spacing: -0.04em;
  transition: color var(--transition);
  user-select: none;
}
.pillar-card:hover .pillar-num { color: rgba(75,96,67,0.12); }
.pillar-icon {
  width: 52px; height: 52px;
  background: var(--green);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.pillar-icon svg { stroke: white; }
.pillar-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.pillar-text { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }

/* ─── ESSENCE ─── */
#essence {
  background: var(--green);
  color: var(--white);
  text-align: center;
}
.essence-title {
  font-size: clamp(24px, 3.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 760px;
  margin: 0 auto 24px;
}
.essence-text {
  font-size: 17px;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.essence-cta { background: var(--white); color: var(--green); }
.essence-cta:hover { background: var(--beige-light); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }

/* ─── TEAM ─── */
#team { background: var(--white); }
.team-header { margin-bottom: 56px; }
.team-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--beige-pale);
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(42,42,42,0.1); }
.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo-g { background: linear-gradient(135deg, #3d4f38 0%, #5a7052 100%); }
.team-photo-l { background: linear-gradient(135deg, #B09A8E 0%, #8A7A70 100%); }
.team-photo-d { background: linear-gradient(135deg, #4A5568 0%, #2D3748 100%); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: white;
}
.team-info { padding: 24px; }
.team-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.team-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.team-bio { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.team-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.team-link:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ─── CONTACT ─── */
#contact { background: var(--beige-pale); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-left { position: sticky; top: 96px; }
.contact-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.contact-text { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.contact-info-item svg { flex-shrink: 0; stroke: var(--green); }
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
}

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo img { height: 24px; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ─── BLOG HOMEPAGE ─── */
#blog { background: var(--black); }
.blog-hp-inner { padding: 80px 0; }
.blog-hp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
}
.blog-hp-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-top: 12px;
}
.blog-hp-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.15);
  padding: 10px 20px;
  border-radius: 100px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.blog-hp-all:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }

.blog-hp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.bhp-featured {
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  transition: background var(--transition);
}
.bhp-featured:hover { background: rgba(255,255,255,0.07); }
.bhp-featured-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.bhp-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.bhp-featured:hover .bhp-featured-img img { transform: scale(1.04); }
.bhp-img-placeholder { width: 100%; height: 100%; }
.bhp-img-a { background: linear-gradient(135deg, #3d4f38 0%, #2a3825 100%); }
.bhp-featured-body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.bhp-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.bhp-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
  background: rgba(75,96,67,0.25);
  padding: 3px 8px;
  border-radius: 100px;
}
.bhp-date { font-size: 12px; color: rgba(255,255,255,0.35); }
.bhp-read { font-size: 12px; color: rgba(255,255,255,0.25); }
.bhp-featured-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 14px;
  flex: 1;
}
.bhp-featured-title a { text-decoration: none; color: inherit; transition: color var(--transition); }
.bhp-featured-title a:hover { color: var(--beige); }
.bhp-featured-excerpt { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: 24px; }
.bhp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--beige);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
  margin-top: auto;
}
.bhp-link:hover { gap: 10px; color: var(--white); }

.bhp-secondary { display: flex; flex-direction: column; background: rgba(255,255,255,0.04); }
.bhp-item {
  padding: 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--transition);
}
.bhp-item:hover { background: rgba(255,255,255,0.06); }
.bhp-item-meta { display: flex; align-items: center; gap: 10px; }
.bhp-item-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; color: var(--white); flex: 1; }
.bhp-item-title a { text-decoration: none; color: inherit; transition: color var(--transition); }
.bhp-item-title a:hover { color: var(--beige); }
.bhp-divider { height: 1px; background: rgba(255,255,255,0.07); }

/* ─── BLOG LISTING PAGE ─── */

/* ─── POST CARDS (shared by homepage, blog listing, archive) ─── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.posts-grid--3 { grid-template-columns: repeat(3, 1fr); }

.post-card {
  background: var(--beige-pale);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(42,42,42,0.1); }
.post-card--sm {}

.post-card-img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--beige);
}
.post-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.post-card:hover .post-card-img-wrap img { transform: scale(1.04); }

.post-card-img-placeholder {
  background: linear-gradient(135deg, var(--black) 0%, #3d4f38 100%);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.post-card-img-placeholder--sm { aspect-ratio: 16/9; }
.post-card-img-placeholder span {
  font-size: 40px;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
}

.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.post-card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(75,96,67,0.1);
  padding: 3px 8px;
  border-radius: 100px;
}
.post-card-date { font-size: 12px; color: var(--text-muted); }
.post-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
}
.post-card-title a { text-decoration: none; color: var(--black); transition: color var(--transition); }
.post-card-title a:hover { color: var(--green); }
.post-card-title--sm { font-size: 15px; }
.post-card-excerpt { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--transition);
}
.post-card-link:hover { gap: 10px; }

.blog-empty-hp {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
  font-size: 15px;
  background: var(--beige-pale);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ─── BLOG LISTING PAGE ─── */
#blog-main { padding-top: 64px; }
.blog-hero {
  background: var(--black);
  color: var(--white);
  padding: 72px 0 64px;
}
.blog-hero .section-label { color: var(--beige); }
.blog-hero-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.blog-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  line-height: 1.65;
}
.blog-body { padding: 64px 0 96px; }
.blog-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.blog-pagination .nav-links { display: flex; gap: 8px; list-style: none; }
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next { width: auto; padding: 0 16px; }
.blog-empty {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

/* ─── SINGLE POST ─── */
#single-main { padding-top: 64px; }
.single-hero {
  background: var(--beige-pale);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}
.single-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color var(--transition);
}
.single-back:hover { color: var(--black); }
.single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.single-read-time { font-size: 12px; color: var(--text-muted); }
.single-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 820px;
  margin-bottom: 20px;
}
.single-excerpt {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 28px;
}
.single-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.single-author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.single-author-name { font-size: 14px; font-weight: 600; }
.single-author-role { font-size: 12px; color: var(--text-muted); }

.single-featured-img { padding: 40px 0 0; background: var(--beige-pale); }
.single-featured-img img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.single-content-wrap { padding: 56px 0 80px; background: var(--white); }
.single-content {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
  color: #3A3A38;
}

/* ── Titres ── */
.single-content h1,
.single-content h2,
.single-content .wp-block-heading[data-level="2"],
.single-content :is(h1,h2):not([class*="wp-block"]) {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
  margin: 48px 0 16px; color: var(--black);
}
.single-content h3,
.single-content .wp-block-heading[data-level="3"],
.single-content h3:not([class*="wp-block"]) {
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  margin: 36px 0 12px; color: var(--black);
}
.single-content h4,
.single-content h5,
.single-content h6 {
  font-size: 17px; font-weight: 700;
  margin: 28px 0 10px; color: var(--black);
}

/* ── Paragraphes & texte ── */
.single-content p,
.single-content .wp-block-paragraph {
  margin-bottom: 22px;
}
.single-content > p:first-child,
.single-content > .wp-block-paragraph:first-child {
  font-size: 18px; color: var(--text-muted);
}
.single-content a { color: var(--green); text-underline-offset: 3px; }
.single-content a:hover { text-decoration: underline; }
.single-content strong { font-weight: 700; color: var(--black); }
.single-content em { font-style: italic; }

/* ── Listes ── */
.single-content ul,
.single-content ol,
.single-content .wp-block-list {
  padding-left: 24px;
  margin-bottom: 22px;
}
.single-content li,
.single-content .wp-block-list li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ── Citations ── */
.single-content blockquote,
.single-content .wp-block-quote {
  border-left: 3px solid var(--green);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--beige-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18px;
  font-style: italic;
  color: var(--black);
}
.single-content .wp-block-quote p { margin-bottom: 0; }
.single-content .wp-block-pullquote {
  border: none;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  padding: 32px 0;
  text-align: center;
  margin: 40px 0;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  font-style: normal;
  color: var(--black);
}

/* ── Images ── */
.single-content img,
.single-content .wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 8px 0;
  display: block;
}
.single-content .wp-block-image {
  margin: 32px 0;
}
.single-content .wp-block-image figcaption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ── Code ── */
.single-content code {
  background: var(--beige-light);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
  color: var(--black);
}
.single-content pre,
.single-content .wp-block-code {
  background: var(--black);
  color: #e2e8f0;
  padding: 24px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 28px 0;
  font-size: 14px;
  line-height: 1.6;
}
.single-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* ── Séparateurs ── */
.single-content hr,
.single-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Tableaux ── */
.single-content table,
.single-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}
.single-content th,
.single-content .wp-block-table th {
  background: var(--black);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.single-content td,
.single-content .wp-block-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.single-content tr:nth-child(even) td { background: var(--beige-pale); }

/* ── Boutons dans le contenu ── */
.single-content .wp-block-button__link {
  background: var(--green);
  color: white;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}
.single-content .wp-block-button__link:hover { background: var(--green-light); }

/* ── Colonnes Gutenberg ── */
.single-content .wp-block-columns { margin-bottom: 28px; gap: 24px; }

/* ── Cover / Media-text ── */
.single-content .wp-block-cover,
.single-content .wp-block-media-text {
  margin: 32px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.single-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.single-tag:hover { background: var(--black); color: white; border-color: var(--black); }

.single-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 36px 40px;
  background: var(--black);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.single-cta-text h3 { font-size: 20px; font-weight: 700; color: white; margin-bottom: 6px; }
.single-cta-text p { font-size: 14px; color: rgba(255,255,255,0.55); }

.single-related { padding: 64px 0; background: var(--beige-pale); }
.single-related .section-label { margin-bottom: 28px; }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  nav#nav { padding: 0 20px; }
  .nav-links { display: none; }
  #hero { grid-template-columns: 1fr; padding-top: 80px; gap: 32px; }
  .hero-visual { min-height: 300px; }
  .pitch-grid, .method-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .pitch-left, .contact-left { position: static; }
  .services-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .method-visual { grid-template-columns: 1fr; }
  .method-card.wide { grid-column: span 1; }
  .section { padding: 64px 0; }
  .blog-hp-grid { grid-template-columns: 1fr; }
  .blog-hp-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .posts-grid, .posts-grid--3 { grid-template-columns: 1fr; }
}
