/* =========================================================
   PEB CORP GROUP · Premium Web
   Based on "Manual de Uso · Sistema de Identidad · PEB Corp Group v1.0"
   ========================================================= */

/* -------------------- Tokens -------------------- */
:root {
  /* Brand · Group Green */
  --green-100: #EAF6D8;
  --green-400: #84C341;
  --green-500: #6DBD04;
  --green-600: #5FA803;

  /* Brand anchors */
  --peb-navy:   #031557;
  --peb-navy-2: #051e6f;
  --carbon:     #1A1A1A;
  --steel:      #0A0A0A;

  /* Neutrals (Ink scale) */
  --ink-0:   #FFFFFF;
  --ink-50:  #F8F9FB;
  --ink-100: #F2F4F7;
  --ink-150: #E9ECF1;
  --ink-200: #DCE0E6;
  --ink-300: #B7BCC6;
  --ink-400: #8B92A0;
  --ink-500: #5C6473;
  --ink-600: #3D4452;
  --ink-700: #232833;
  --ink-900: #0A0D14;

  /* Signals */
  --signal-amber: #E39D0B;
  --signal-red:   #C43636;
  --signal-green: #5FA803;

  /* Layout */
  --container: 1280px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 8px;

  /* Spacing (8px scale) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 80px;
  --sp-8: 112px;

  /* Fonts */
  --ff-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body:    "Inter",  ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: .4s;
}

/* -------------------- Reset -------------------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink-900);
  background: var(--ink-0);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1,h2,h3,h4 { font-family: var(--ff-display); letter-spacing: -0.01em; line-height: 1.1; margin: 0; color: var(--ink-900); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--peb-navy); color: #fff; padding: 12px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* -------------------- Kicker / labels -------------------- */
.kicker {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.kicker::before {
  content: "";
  width: 28px; height: 1px; background: var(--green-500);
}
.kicker-light { color: var(--green-400); }
.kicker-light::before { background: var(--green-400); }

.kicker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(109,189,4,.2);
}
.kicker.dotted::before { display:none; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--green-500);
  color: var(--ink-900);
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 20px rgba(109,189,4,.28);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); color:#fff; }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-400); }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 20, 0);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(3, 21, 87, .94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 24px rgba(3,21,87,.35);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px;
}
.brand img { height: 36px; width: auto; }
.site-header.scrolled .brand img { filter: none; }

.nav-links {
  display: flex; gap: 28px;
  font-family: var(--ff-body); font-weight: 500; font-size: 14.5px;
  color: #fff;
}
.nav-links a { position: relative; padding: 8px 0; }
.nav-links a::after {
  content: ""; position: absolute; bottom: 2px; left: 0; right: 0;
  height: 2px; background: var(--green-500); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.site-header.scrolled .nav-links { color: rgba(255,255,255,.88); }
.site-header.scrolled .nav-links a:hover { color: var(--green-400); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; position: relative;
  border: 1px solid rgba(255,255,255,.22); border-radius: 8px;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: #fff;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.site-header.scrolled .nav-toggle { border-color: rgba(255,255,255,.24); }
.site-header.scrolled .nav-toggle span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  padding: 20px clamp(20px, 4vw, 40px) 28px;
  background: rgba(3, 21, 87, .98);
  backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-family: var(--ff-display); font-weight: 600; font-size: 17px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.mobile-menu a.btn { margin-top: 16px; justify-content: center; border-bottom: 0; color: var(--ink-900); }
.mobile-menu.open { display: block; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  color: #fff;
  padding: 120px 0 80px;
  overflow: hidden;
  isolation: isolate;
  margin-top: -72px; /* slide under sticky nav */
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img,
.hero-media .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .hero-media .hero-video { display: none; }
  .hero-media { background: url('images/video_poster.webp') center/cover no-repeat; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(3,21,87,.25), transparent 60%),
    linear-gradient(180deg, rgba(10,13,20,.55) 0%, rgba(10,13,20,.85) 65%, rgba(10,13,20,.95) 100%);
}
.hero-inner { position: relative; max-width: 980px; }
.hero-title {
  font-weight: 800;
  font-size: clamp(40px, 6.8vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 20px;
  color: #fff;
}
.hero-title .accent {
  display: block;
  background: linear-gradient(90deg, #fff 0%, #E5F3CF 40%, var(--green-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  max-width: 720px;
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
}
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
  max-width: 880px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--green-500);
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-label {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}
.hero-foot {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 40px;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
}

/* -------------------- Trust strip -------------------- */
.trust-strip {
  padding: 28px 0;
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-150);
}
.trust-label {
  text-align: center;
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-500);
  margin-bottom: 12px;
}
.trust-logos {
  display: flex; flex-wrap: wrap; gap: 20px 36px;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-500);
  letter-spacing: -0.005em;
}
.trust-logos span { padding: 6px 0; transition: color var(--dur) var(--ease); }
.trust-logos span:hover { color: var(--peb-navy); }

/* -------------------- Sections base -------------------- */
section { padding: clamp(64px, 8vw, 120px) 0; }
.section-head { max-width: 880px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-title.light { color: #fff; }
.section-title .accent-dark {
  color: var(--peb-navy);
}
.section-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-600);
  line-height: 1.55;
  max-width: 720px;
}
.section-lead.light { color: rgba(255,255,255,.72); max-width: 720px; }
.section-head.center .section-lead { margin-left:auto; margin-right:auto; }
.subhead { font-size: 22px; font-weight: 700; margin-bottom: 28px; }
.subhead.light { color: #fff; }

/* two col utility */
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

/* -------------------- Problem -------------------- */
.problem { background: var(--ink-50); }
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.problem-card {
  background: #fff;
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  isolation: isolate;
}
.problem-card::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  background: linear-gradient(90deg, var(--signal-red), var(--signal-amber));
  border-radius: 0 0 3px 3px;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(10,13,20,.06); border-color: var(--ink-200); }
.problem-num {
  font-family: var(--ff-mono); font-size: 13px; color: var(--signal-red);
  font-weight: 600; letter-spacing: .04em; margin-bottom: 12px;
}
.problem-card h3 { font-size: 24px; margin-bottom: 8px; font-weight: 700; }
.problem-card p { color: var(--ink-600); font-size: 15.5px; }

.problem-cta {
  margin-top: 40px;
  text-align: center;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--green-600);
}
.problem-cta .arrow { color: var(--green-500); font-weight: 800; margin-right: 8px; }

/* -------------------- Solution -------------------- */
.solution { background: #fff; }
.col-media .media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(3,21,87,.25), 0 12px 24px -12px rgba(0,0,0,.15);
}
.col-media .media-frame img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.col-media figcaption {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(10,13,20,.78);
  color: #fff;
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.1em;
  padding: 8px 14px; border-radius: 999px; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.check-list {
  display: flex; flex-direction: column; gap: 10px;
  margin: 24px 0 28px; font-size: 16.5px; color: var(--ink-700);
}
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-100); color: var(--green-600); font-weight: 700;
  flex-shrink: 0; font-size: 13px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-family: var(--ff-mono);
  font-size: 12px;
  padding: 6px 12px;
  background: var(--ink-100);
  color: var(--ink-700);
  border-radius: 999px;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink-150);
}

/* -------------------- Flow (dark) -------------------- */
.flow {
  background:
    radial-gradient(800px 400px at 85% 20%, rgba(109,189,4,.08), transparent 60%),
    linear-gradient(180deg, var(--peb-navy) 0%, var(--ink-900) 100%);
  color: #fff;
  position: relative;
}
.flow::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}
.flow > .container { position: relative; }
.flow-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px;
  margin-bottom: 72px;
}
.flow-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.flow-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--green-500);
  transform: scaleY(0); transform-origin: top; transition: transform var(--dur) var(--ease);
}
.flow-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: rgba(109,189,4,.35); }
.flow-card:hover::before { transform: scaleY(1); }
.flow-num {
  font-family: var(--ff-mono);
  font-size: 13px; letter-spacing: 0.1em;
  color: var(--green-500); margin-bottom: 20px;
}
.flow-card h3 { color: #fff; font-size: 22px; margin-bottom: 10px; font-weight: 700; }
.flow-card p { color: rgba(255,255,255,.7); font-size: 15px; }

.flow-advantages { margin-top: 40px; }
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.adv {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.adv-ico {
  display: inline-flex; align-items:center; justify-content:center;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(109,189,4,.12);
  color: var(--green-500); font-size: 22px;
  margin-bottom: 14px;
  border: 1px solid rgba(109,189,4,.25);
}
.adv h4 { color: #fff; font-size: 16px; font-family: var(--ff-display); font-weight: 700; margin-bottom: 6px; }
.adv p { color: rgba(255,255,255,.65); font-size: 14px; }

/* -------------------- Steps -------------------- */
.steps { background: var(--ink-50); }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px;
}
.step-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-150);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -20px rgba(10,13,20,.12); }
.step-card figure { margin: 0; overflow: hidden; aspect-ratio: 16/10; background: var(--ink-100); }
.step-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.step-card:hover img { transform: scale(1.04); }
.step-body { padding: 22px 22px 26px; }
.step-label {
  display: inline-block;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.step-card p { color: var(--ink-600); font-size: 15px; }

/* -------------------- Velocity -------------------- */
.velocity { background: #fff; }
.velocity-compare {
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-lg);
  padding: 40px clamp(24px, 3vw, 48px);
  margin-bottom: 48px;
}
.bar-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center;
  margin-bottom: 18px;
}
.bar-row:last-child { margin-bottom: 0; }
.bar-label {
  font-family: var(--ff-mono); font-size: 13px; letter-spacing: 0.06em;
  color: var(--ink-700); text-transform: uppercase;
}
.bar {
  position: relative; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 16px;
  font-family: var(--ff-display); font-weight: 700; font-size: 16px;
}
.bar-tradicional {
  width: 100%; background: var(--ink-300); color: var(--ink-900);
}
.bar-peb {
  width: 25%; background: var(--green-500); color: var(--ink-900);
  box-shadow: 0 8px 20px rgba(109,189,4,.3);
}
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.kpi {
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  transition: all var(--dur) var(--ease);
}
.kpi:hover { background: #fff; border-color: var(--green-400); }
.kpi-num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 48px);
  color: var(--peb-navy);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.kpi-num span { color: var(--green-600); font-weight: 700; font-size: .7em; }
.kpi-lbl {
  font-family: var(--ff-body); font-size: 14px; color: var(--ink-600);
}

/* -------------------- Brands -------------------- */
.brands { background: var(--ink-900); color: #fff; position: relative; overflow: hidden; }
.brands::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(109,189,4,.08), transparent 70%);
  pointer-events: none;
}
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; position: relative; }
.brand-card {
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 340px;
}
.brand-card:hover { transform: translateY(-4px); border-color: rgba(109,189,4,.4); }
.brand-peb { background: linear-gradient(180deg, rgba(3,21,87,.5), rgba(3,21,87,.15)); border-color: rgba(3,21,87,.45); }
.brand-smartbrix { background: linear-gradient(180deg, rgba(26,26,26,.7), rgba(26,26,26,.2)); }
.brand-newcon { background: linear-gradient(180deg, rgba(10,10,10,.8), rgba(10,10,10,.3)); }
.brand-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-head img { max-height: 40px; width: auto; }
.brand-role {
  font-family: var(--ff-mono);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-400);
  padding: 4px 10px; border-radius: 999px;
  background: rgba(109,189,4,.1);
  border: 1px solid rgba(109,189,4,.25);
  white-space: nowrap;
}
.brand-card h3 { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.brand-card p { color: rgba(255,255,255,.7); font-size: 15.5px; }
.brand-meta {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--ff-mono); font-size: 12.5px;
  color: rgba(255,255,255,.55);
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06);
}
.brand-meta li::before { content: "— "; color: var(--green-500); }

/* -------------------- Projects -------------------- */
.projects { background: #fff; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.project-card.project-wide { grid-column: span 2; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 32px 50px -20px rgba(10,13,20,.14); }
.project-card figure { margin: 0; aspect-ratio: 16/10; overflow: hidden; background: var(--ink-900); }
.project-wide figure { aspect-ratio: 16/9; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover img { transform: scale(1.05); }
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-card .tag {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--green-600); text-transform: uppercase;
}
.project-card h3 { font-size: 20px; font-weight: 700; line-height: 1.2; }
.project-card p { color: var(--ink-600); font-size: 14.5px; }
.project-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--ink-600);
}
.project-meta li strong { color: var(--peb-navy); font-weight: 700; }

/* -------------------- Certifications -------------------- */
.certifications { background: var(--ink-50); }
.iso-list {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.iso-list li { display: flex; gap: 16px; align-items: flex-start; }
.iso-list li div { color: var(--ink-700); font-size: 15.5px; }
.iso-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 86px; height: 40px;
  padding: 0 14px;
  background: var(--green-100); color: var(--green-600);
  border-radius: 999px;
  font-family: var(--ff-mono); font-size: 12.5px;
  font-weight: 600; letter-spacing: .05em;
  border: 1px solid rgba(109,189,4,.3);
  flex-shrink: 0;
}
.standards-card {
  background: var(--peb-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 40px 60px -20px rgba(3,21,87,.35);
}
.standards-card .kicker { color: var(--green-400); }
.standards-card .kicker::before { background: var(--green-400); }
.standards-card h3 { color: #fff; font-size: 26px; margin-bottom: 20px; font-weight: 700; }
.std-list { display: flex; flex-direction: column; gap: 10px; }
.std-list li {
  display: flex; gap: 12px; font-size: 15px; color: rgba(255,255,255,.85);
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.std-list li:last-child { border-bottom: 0; }
.std-list strong { color: #fff; }
.std-list .chk { color: var(--green-400); font-size: 8px; margin-top: 8px; flex-shrink: 0; }

/* -------------------- ESG (dark) -------------------- */
.esg {
  background: linear-gradient(180deg, var(--ink-900) 0%, #000 100%);
  color: #fff;
  position: relative;
}
.esg-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.esg-card {
  padding: 32px 26px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease);
}
.esg-card:hover { border-color: rgba(109,189,4,.4); background: rgba(255,255,255,.05); transform: translateY(-3px); }
.esg-tag {
  display: inline-block;
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--green-400); text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(109,189,4,.1); border: 1px solid rgba(109,189,4,.25);
}
.esg-card h3 { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.esg-card p { color: rgba(255,255,255,.68); font-size: 14.5px; }

/* -------------------- Regions -------------------- */
.regions { background: #fff; }
.regions-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.region-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-150);
  background: #fff;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.region-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -20px rgba(10,13,20,.14); }
.region-card figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink-100);
  position: relative;
  display: block;
}
.region-card figure picture {
  display: block;
  width: 100%;
  height: 100%;
}
.region-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .8s var(--ease);
}
.region-card:hover img { transform: scale(1.05); }
.region-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.region-body h3 { font-size: 22px; font-weight: 700; }
.region-body p { color: var(--ink-600); font-size: 14.5px; }
.region-tag {
  margin-top: auto; align-self: flex-start;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(109,189,4,.25);
}

/* -------------------- Procurement -------------------- */
.procurement { background: var(--ink-50); }
.procurement-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px;
}
.procurement-grid li {
  background: #fff;
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.procurement-grid li:hover { transform: translateY(-3px); border-color: var(--green-400); }
.procurement-grid li::after {
  content: "→";
  position: absolute;
  top: 50%; right: -14px;
  transform: translateY(-50%);
  color: var(--ink-300);
  font-family: var(--ff-display); font-weight: 700; font-size: 20px;
  background: var(--ink-50);
  padding: 0 4px;
}
.procurement-grid li:last-child::after { display: none; }
.proc-num {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--green-600);
  margin-bottom: 18px;
  padding: 4px 10px; background: var(--green-100); border-radius: 999px;
  display: inline-block;
}
.procurement-grid li h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.procurement-grid li p { color: var(--ink-600); font-size: 14.5px; }
.procurement-grid li em { color: var(--peb-navy); font-style: normal; font-weight: 600; }

/* -------------------- Guarantees (dark) -------------------- */
.guarantees {
  background: linear-gradient(180deg, var(--peb-navy) 0%, var(--peb-navy-2) 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.guarantees::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(109,189,4,.18), transparent);
  pointer-events: none;
}
.guar-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.guar-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  border-left: 3px solid var(--green-500);
  transition: all var(--dur) var(--ease);
}
.guar-card:hover { background: rgba(255,255,255,.07); transform: translateY(-3px); }
.guar-card h3 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.005em; }
.guar-card p { color: rgba(255,255,255,.7); font-size: 14.5px; }

/* -------------------- FAQ -------------------- */
.faq { background: #fff; }
.faq .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.faq .section-head .section-lead { margin-left: auto; margin-right: auto; }
.faq .section-head a { color: var(--peb-navy); font-weight: 600; border-bottom: 1px solid var(--peb-navy); }
.faq-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq details {
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq details[open] { background: #fff; border-color: var(--green-400); box-shadow: 0 16px 30px -12px rgba(10,13,20,.08); }
.faq summary {
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-family: var(--ff-display); font-weight: 700; font-size: 17px;
  color: var(--ink-900);
  cursor: pointer;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink-0);
  border: 1px solid var(--ink-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-600);
  font-size: 20px; font-weight: 400;
  transition: all var(--dur) var(--ease);
}
.faq details[open] summary::after { content: "−"; background: var(--green-500); color: var(--ink-900); border-color: var(--green-500); }
.faq-answer { padding: 4px 24px 24px; color: var(--ink-600); font-size: 15.5px; line-height: 1.65; }
.faq-answer strong { color: var(--ink-900); font-weight: 600; }
.faq-answer em { color: var(--peb-navy); font-weight: 600; font-style: normal; }

/* -------------------- CTA Final -------------------- */
.cta-final {
  background:
    radial-gradient(800px 400px at 20% 20%, rgba(109,189,4,.12), transparent 60%),
    linear-gradient(180deg, var(--ink-900) 0%, #000 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(600px 400px at 80% 80%, #000, transparent);
  pointer-events: none;
}
.cta-final > .container { position: relative; }
.contact-list {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.contact-list li {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  color: rgba(255,255,255,.85);
  font-size: 15px;
}
.contact-list .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(109,189,4,.12);
  color: var(--green-400); font-size: 16px;
  border: 1px solid rgba(109,189,4,.3);
  flex-shrink: 0;
}
.contact-list a { color: #fff; font-weight: 500; }
.contact-list a:hover { color: var(--green-400); }

.contact-form {
  background: #fff;
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 36px clamp(24px, 3vw, 40px);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
}
.contact-form h3 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--ink-500); text-transform: uppercase;
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 14px;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  color: var(--ink-900);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(109,189,4,.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-foot {
  margin-top: 14px;
  font-family: var(--ff-mono); font-size: 11.5px;
  color: var(--ink-500); letter-spacing: 0.04em;
  text-align: center;
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: #000;
  color: rgba(255,255,255,.7);
  padding: 72px 0 32px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.6); margin-bottom: 10px; max-width: 320px; font-size: 14.5px; }
.footer-legal { font-family: var(--ff-mono); font-size: 12px !important; color: rgba(255,255,255,.4) !important; }
.site-footer h4 {
  color: #fff; font-family: var(--ff-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: var(--green-400); }
.iso-mini {
  margin-top: 18px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--green-400);
  padding: 6px 10px;
  background: rgba(109,189,4,.08);
  border: 1px solid rgba(109,189,4,.2);
  border-radius: 999px;
  display: inline-block;
}
.social-links {
  display: inline-flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.social-links a:hover {
  background: rgba(109,189,4,.14);
  border-color: rgba(109,189,4,.45);
  color: var(--green-400);
  transform: translateY(-1px);
}
.social-links svg { width: 18px; height: 18px; display: block; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 28px; flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,.5); font-size: 13px; }
.footer-bottom .micro { font-family: var(--ff-mono); color: rgba(255,255,255,.35); font-size: 12px; letter-spacing: 0.08em; }

/* -------------------- Reveal on scroll -------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* -------------------- Responsive -------------------- */
@media (max-width: 1100px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow-grid, .adv-grid, .esg-grid, .regions-grid, .guar-grid, .kpi-grid, .procurement-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-card.project-wide { grid-column: span 2; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .brand-grid { grid-template-columns: 1fr; }
  .procurement-grid li::after { display: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* Force dark navy header on mobile so logo + toggle stay visible at page top
     (the hero's dark background doesn't extend behind the sticky header on small screens) */
  .site-header {
    background: rgba(3, 21, 87, .94);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-header .brand img { filter: none; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .two-col { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 8px; }
  .problem-grid { grid-template-columns: 1fr; }
  .project-card.project-wide { grid-column: span 1; }
  .projects-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 540px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .flow-grid, .adv-grid, .esg-grid, .regions-grid, .guar-grid, .kpi-grid, .procurement-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .trust-logos { gap: 14px 20px; font-size: 13px; }
  .bar-tradicional { width: 100%; }
  .bar-peb { width: 28%; }
}

/* -------------------- Print -------------------- */
@media print {
  .site-header, .nav-toggle, .hero-ctas, .contact-form, .cta-final { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  section { padding: 24pt 0; page-break-inside: avoid; }
}

/* -------------------- Reduced motion -------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   BLOG — added for /blog/ and /en/blog/ pages
   Matches the main site design tokens (green accents, navy
   header, Archivo + Inter typography, 1280px container).
   =========================================================== */

/* Force solid navy header on blog pages (no hero video behind it) */
.blog-page .site-header,
body.blog-page .site-header {
  background: rgba(3, 21, 87, .96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 24px rgba(3,21,87,.35);
}
.blog-page .site-header .nav-links { color: rgba(255,255,255,.92); }

/* Reading-progress bar at top of article */
.blog-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green-400), var(--green-600));
  z-index: 200;
  transition: width .1s linear;
}

/* Breadcrumb */
.lp-breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 40px) 0;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink-500);
  letter-spacing: .02em;
}
.lp-breadcrumb a {
  color: var(--ink-600);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lp-breadcrumb a:hover { color: var(--green-600); border-bottom-color: var(--green-500); }

/* ================ Pillar Hero (blog index) ================ */
.pillar-hero {
  position: relative;
  min-height: 52vh;
  display: flex; align-items: center;
  color: #fff;
  padding: 120px 0 80px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-900);
}
.pillar-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  display: block;
}
.pillar-hero-bg img,
.pillar-hero-bg source {
  width: 100%; height: 100%; object-fit: cover;
}
.pillar-hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(3,21,87,.35) 0%, rgba(10,13,20,.78) 60%, rgba(10,13,20,.92) 100%);
}
.pillar-hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.pillar-hero-pill {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-400);
  padding: 6px 14px;
  border: 1px solid rgba(132,195,65,.45);
  border-radius: 999px;
  background: rgba(132,195,65,.08);
  margin-bottom: 20px;
}
.pillar-hero h1 {
  color: #fff;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.pillar-hero h1 em {
  font-style: normal;
  color: var(--green-400);
  font-family: var(--ff-display);
}
.pillar-hero-lead {
  max-width: 680px;
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
}

/* ================ Card grid (blog index) ================ */
.cs-grid-full {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.cs-grid-item {
  display: flex;
  background: var(--ink-0);
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  color: var(--ink-900);
}
.cs-grid-item:hover {
  transform: translateY(-4px);
  border-color: var(--green-400);
  box-shadow: 0 12px 36px rgba(3,21,87,.08);
}
.cs-grid-body { display: flex; flex-direction: column; gap: 12px; }
.cs-grid-body h3 {
  font-size: 20px; line-height: 1.3;
  color: var(--ink-900);
}
.cs-grid-body p {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.55;
}
.cs-grid-cta {
  margin-top: auto;
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-600);
  font-weight: 600;
}
.cs-grid-item:hover .cs-grid-cta { color: var(--green-500); }

/* ================ Article hero (single post) ================ */
.blog-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 40px) 40px;
  border-bottom: 1px solid var(--ink-150);
}
.blog-back {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--green-600);
  letter-spacing: .04em;
  margin-bottom: 24px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.blog-back:hover { border-bottom-color: var(--green-500); }
.blog-hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.018em;
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 920px;
}
.blog-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink-500);
}
.article-meta span { display: inline-block; }

/* ================ Article body ================ */
.blog-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 40px) 64px;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-700);
}
.blog-body h2 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--ink-900);
  margin: 44px 0 16px;
  letter-spacing: -0.01em;
}
.blog-body h3 {
  font-family: var(--ff-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 32px 0 12px;
}
.blog-body p { margin: 0 0 18px; }
.blog-body strong { color: var(--ink-900); font-weight: 600; }
.blog-body a {
  color: var(--green-600);
  border-bottom: 1px solid rgba(95,168,3,.35);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.blog-body a:hover { color: var(--green-500); border-bottom-color: var(--green-500); }
.blog-body ul, .blog-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
  list-style: disc;
}
.blog-body ol { list-style: decimal; }
.blog-body li { margin-bottom: 8px; }
.blog-body li::marker { color: var(--green-500); }
.blog-body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--green-500);
  background: var(--ink-50);
  color: var(--ink-700);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.blog-body blockquote p:last-child { margin-bottom: 0; }
.blog-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.blog-body th, .blog-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink-150);
  text-align: left;
  vertical-align: top;
}
.blog-body th {
  background: var(--ink-50);
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--ink-900);
}
.blog-body hr {
  border: 0;
  border-top: 1px solid var(--ink-150);
  margin: 40px 0;
}
.blog-body code {
  font-family: var(--ff-mono);
  font-size: 0.92em;
  background: var(--ink-50);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-900);
}
.blog-body img { border-radius: var(--radius); margin: 20px 0; }

/* ================ Article attribution / CTA boxes ================ */
.blog-body .attribution,
.blog-body .article-attribution {
  margin: 40px 0 0;
  padding: 20px 24px;
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.6;
}
.blog-body .attribution strong,
.blog-body .article-attribution strong { color: var(--ink-700); }

.article-cta, .blog-body .cta-box {
  background: linear-gradient(135deg, var(--peb-navy) 0%, var(--peb-navy-2) 100%);
  color: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  margin: 36px 0;
  text-align: center;
}
.article-cta h3, .blog-body .cta-box h3 { color: #fff; margin-bottom: 10px; }
.article-cta p, .blog-body .cta-box p { color: rgba(255,255,255,.85); margin-bottom: 18px; }
.article-cta .btn, .blog-body .cta-box .btn { color: var(--ink-900); }

/* Related articles list */
.blog-body .related-articles,
.blog-body .related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-150);
}
.blog-body .related-articles h3,
.blog-body .related h3 {
  font-size: 20px; margin-bottom: 16px;
}
.blog-body .related-articles li,
.blog-body .related li { list-style: none; margin-bottom: 10px; }
.blog-body .related-articles a,
.blog-body .related a { color: var(--green-600); font-weight: 500; }

/* Responsive */
@media (max-width: 720px) {
  .pillar-hero { min-height: 40vh; padding: 96px 0 56px; }
  .pillar-hero h1 { font-size: clamp(30px, 7vw, 44px); }
  .blog-hero { padding-top: 24px; padding-bottom: 28px; }
  .blog-body { padding: 32px 20px 48px; font-size: 16px; line-height: 1.7; }
  .cs-grid-full { grid-template-columns: 1fr; gap: 16px; }
  .cs-grid-item { padding: 22px; }
}


/* ================ Language switch (global, used on blog) ================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
  font-family: var(--ff-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 4px 6px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.lang-switch a,
.lang-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.lang-switch a { color: rgba(255,255,255,.92); }
.lang-switch a:hover,
.lang-switch a:focus-visible {
  background: rgba(255,255,255,.18);
  color: #fff;
  outline: none;
}
.lang-switch span[aria-current="true"] {
  background: var(--green-600, #6DBD04);
  color: #fff;
  font-weight: 700;
}
.mobile-menu .mobile-lang {
  font-family: var(--ff-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .lang-switch { display: none; }
}

/* ================ Attribution block (author/sources) ================ */
.attribution {
  max-width: 780px;
  margin: 0 auto 8px;
  padding: 20px clamp(20px, 4vw, 40px);
  color: var(--ink-600, #2a3240);
  font-family: var(--ff-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid rgba(3, 21, 87, 0.08);
  border-bottom: 1px solid rgba(3, 21, 87, 0.08);
  background: rgba(3, 21, 87, 0.02);
}
.attribution .attr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}
.attribution .attr-row strong {
  color: var(--peb-navy, #031557);
  font-weight: 700;
  min-width: 180px;
}
.attribution .attr-row span {
  color: var(--ink-700, #3a4250);
  flex: 1;
}
.attribution .code-ref {
  font-family: var(--ff-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 12px;
  background: rgba(109, 189, 4, 0.08);
  border: 1px solid rgba(109, 189, 4, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--peb-navy, #031557) \!important;
}

/* Standalone article-cta (outside .blog-body) should stay centered and bounded */
.article-cta {
  max-width: 780px;
  margin: 48px auto \!important;
}

/* Ensure orphan elements after </article> still sit in the reading column */
.blog-page main > .article-cta,
.blog-page main > .attribution,
.blog-page main > .related-articles {
  display: block;
}

@media (max-width: 720px) {
  .attribution {
    font-size: 12px;
    padding: 16px 20px;
  }
  .attribution .attr-row { flex-direction: column; gap: 2px; }
  .attribution .attr-row strong { min-width: 0; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px;
  background: #031557;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.15);
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--ff-body, Inter), system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  animation: cookieSlideUp .4s cubic-bezier(.2,.8,.3,1);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 240px;
}
.cookie-banner a {
  color: #a5e04c;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner a:hover { color: #6DBD04; }
.cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.cookie-banner button:hover { transform: translateY(-1px); }
.cookie-banner .btn-accept {
  background: #6DBD04;
  color: #031557;
}
.cookie-banner .btn-accept:hover { background: #8FD636; }
.cookie-banner .btn-decline {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.cookie-banner .btn-decline:hover { background: rgba(255,255,255,.14); }
@keyframes cookieSlideUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 560px) {
  .cookie-banner { padding: 16px 18px; font-size: 13px; }
  .cookie-banner .cookie-actions { width: 100%; }
  .cookie-banner button { flex: 1; }
}

/* ============================================================
   TL;DR / KEY TAKEAWAYS BLOCK (blog posts)
   ============================================================ */
.tldr {
  max-width: 780px;
  margin: 0 auto 32px;
  padding: 24px clamp(20px, 4vw, 36px);
  background: linear-gradient(135deg, rgba(109,189,4,.08) 0%, rgba(3,21,87,.04) 100%);
  border-left: 4px solid #6DBD04;
  border-radius: 8px;
  font-family: var(--ff-body, Inter), system-ui, sans-serif;
}
.tldr h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #031557;
  font-weight: 700;
  margin: 0 0 12px;
  font-family: var(--ff-mono, monospace);
}
.tldr ul {
  margin: 0;
  padding-left: 22px;
  color: #1a1a1a;
}
.tldr li {
  margin-bottom: 6px;
  line-height: 1.6;
  font-size: 15px;
}
.tldr li:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .tldr { padding: 18px 20px; }
  .tldr li { font-size: 14px; }
}

/* ============================================================
   404 ERROR PAGE
   ============================================================ */
body.error-page { background: #fff; }
body.error-page .btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease;
}
body.error-page .btn:hover { transform: translateY(-1px); }
body.error-page .btn-primary {
  background: #6DBD04;
  color: #031557;
}
body.error-page .btn-secondary {
  background: transparent;
  border: 1.5px solid #031557;
  color: #031557;
}

/* ============================================================
   LEGAL PAGES (privacy, terms, cookies)
   ============================================================ */
.legal-page h1 {
  font-family: var(--ff-display, Archivo), system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  color: #031557;
  margin: 16px 0 8px;
  line-height: 1.2;
  letter-spacing: -.5px;
}
.legal-page .lede {
  color: #666;
  font-size: 14px;
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(3, 21, 87, 0.08);
}
.legal-page h2 {
  font-family: var(--ff-display, Archivo), system-ui, sans-serif;
  font-size: 22px;
  color: #031557;
  margin: 40px 0 12px;
  font-weight: 700;
  line-height: 1.3;
}
.legal-page h3 {
  font-family: var(--ff-display, Archivo), system-ui, sans-serif;
  font-size: 17px;
  color: #031557;
  margin: 28px 0 10px;
  font-weight: 600;
}
.legal-page p, .legal-page li {
  font-family: var(--ff-body, Inter), system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: #222;
}
.legal-page ul {
  padding-left: 22px;
  margin: 12px 0 16px;
}
.legal-page li { margin-bottom: 6px; }
.legal-page a {
  color: #031557;
  text-decoration: underline;
  text-decoration-color: rgba(109, 189, 4, .5);
  text-underline-offset: 3px;
}
.legal-page a:hover {
  color: #6DBD04;
  text-decoration-color: #6DBD04;
}
.legal-page code {
  background: rgba(3, 21, 87, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--ff-mono, monospace);
  font-size: 13.5px;
  color: #031557;
}
.legal-page .lp-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}
.legal-page .lp-breadcrumb a {
  color: #666;
  text-decoration: none;
}
.legal-page .lp-breadcrumb a:hover { color: #031557; }

/* Footer legal-links row */
.footer-legal-links {
  font-size: 13px;
  opacity: .75;
  margin: 4px 0;
}
.footer-legal-links a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s;
}
.footer-legal-links a:hover { opacity: 1; color: var(--green-400, #8FD636); }

/* ============================================================
   MOBILE JUMP NAV — sticky anchor menu for homepage on phones
   ============================================================ */
.mobile-jump-nav { display: none; }

@media (max-width: 860px) {
  .mobile-jump-nav {
    display: block;
    position: sticky;
    top: 72px; /* sits right under .site-header (height 72px) */
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid var(--ink-150, #e5e7eb);
    box-shadow: 0 2px 8px rgba(10, 13, 20, 0.06);
  }
  .mobile-jump-nav .jump-row {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
  }
  .mobile-jump-nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 8px 4px;
    background: var(--ink-50, #f4f5f7);
    border: 1px solid var(--ink-150, #e5e7eb);
    border-radius: 999px;
    font-family: var(--ff-body, system-ui);
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 600;
    color: var(--ink-700, #3b4252);
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
  }
  .mobile-jump-nav a:active,
  .mobile-jump-nav a:hover {
    background: var(--peb-navy, #031557);
    color: #fff;
    border-color: var(--peb-navy, #031557);
  }
  .mobile-jump-nav a.is-primary {
    background: var(--green-500, #8FD636);
    color: var(--peb-navy, #031557);
    border-color: var(--green-500, #8FD636);
  }
  /* Adjust scroll-margin so anchored sections aren't hidden under both bars */
  main section[id] {
    scroll-margin-top: 130px;
  }
}
