/* =========================================================
   Complete Product Marketing — site styles
   Design system drawn from BRAND_GUIDELINES.md; layout
   borrows resample.io's pacing (dark hero, generous
   whitespace, pill CTAs, three-column features).
   ========================================================= */

:root {
  /* Primary (from brand guidelines) */
  --cpm-navy:        #024969;
  --cpm-navy-deep:   #012B40;   /* hero background — extended */
  --cpm-navy-darker: #001B2A;   /* footer */
  --cpm-sand:        #D8D2C6;
  --cpm-charcoal:    #3B3A3A;
  --cpm-orange:      #B06027;
  --cpm-orange-600:  #8E4A1B;
  --cpm-orange-100:  #F5E2D2;

  /* Secondary */
  --cpm-slate:       #455457;
  --cpm-sage:        #DADFD7;
  --cpm-subtext:     #505050;
  --cpm-white:       #FFFFFF;

  /* Complementary */
  --cpm-navy-600:    #0A6E96;
  --cpm-navy-300:    #66A3BD;
  --cpm-navy-100:    #E3ECF1;
  --cpm-success:     #5E7A66;
  --cpm-ink:         #1A1A1A;

  /* Warm neutrals */
  --cpm-neutral-50:  #F7F4EE;
  --cpm-neutral-100: #EAE5D9;
  --cpm-neutral-200: #D0CABC;
  --cpm-neutral-400: #8A8579;
  --cpm-neutral-700: #4A4843;

  /* Type */
  --font-sans:  "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Spacing */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;
  --s-16: 128px;

  /* Container */
  --container: 1200px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cpm-charcoal);
  background: var(--cpm-sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cpm-navy-600); text-decoration: none; }
a:hover { color: var(--cpm-navy); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--cpm-navy);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
  line-height: 1.15;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0 0 var(--s-3); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cpm-navy-300);
  margin-bottom: var(--s-2);
}
.hero .eyebrow { color: var(--cpm-orange-100); }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
}
section { padding: var(--s-12) 0; }
@media (max-width: 700px) { section { padding: var(--s-8) 0; } }

.section-band--white { background: var(--cpm-white); }
.section-band--sand  { background: var(--cpm-sand); }
.section-band--sage  { background: var(--cpm-sage); }
.section-band--navy  { background: var(--cpm-navy-deep); color: var(--cpm-white); }

.section-band--navy h2,
.section-band--navy h3 { color: var(--cpm-white); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--cpm-neutral-100);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 56px; width: auto; display: block; }

@media (max-width: 820px) {
  .site-header__inner { height: 72px; }
  .site-header__logo img { height: 44px; }
}
.site-nav { display: flex; align-items: center; gap: var(--s-3); }
.site-nav a {
  color: var(--cpm-charcoal);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--cpm-navy); text-decoration: none; }
.site-nav a.is-cta {
  background: var(--cpm-orange);
  color: var(--cpm-white);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.site-nav a.is-cta:hover { background: var(--cpm-orange-600); color: var(--cpm-white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cpm-navy);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 72px; /* matches reduced mobile header height */
    left: 0;
    right: 0;
    background: var(--cpm-white);
    border-bottom: 1px solid var(--cpm-neutral-100);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-2) 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
  }
  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-nav a {
    padding: 14px var(--s-3);
    border-top: 1px solid var(--cpm-neutral-100);
  }
  .site-nav a.is-cta {
    margin: var(--s-2) var(--s-3) var(--s-1);
    text-align: center;
    border-top: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--cpm-navy-deep) 0%, #022436 100%);
  color: var(--cpm-white);
  padding: var(--s-16) 0 var(--s-12);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle radial glow */
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(176, 96, 39, 0.18), rgba(176, 96, 39, 0) 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-8);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { color: var(--cpm-white); margin-bottom: var(--s-3); }
.hero h1 .hero__accent { color: var(--cpm-orange); }
.hero__sub {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38em;
  margin-bottom: var(--s-6);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero__meta {
  margin-top: var(--s-6);
  display: flex; gap: var(--s-4); flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}
.hero__meta strong { color: var(--cpm-white); font-weight: 600; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero { padding: var(--s-12) 0 var(--s-8); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary {
  background: var(--cpm-orange);
  color: var(--cpm-white);
}
.btn--primary:hover { background: var(--cpm-orange-600); color: var(--cpm-white); }
.btn--secondary {
  background: transparent;
  color: var(--cpm-white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.08); color: var(--cpm-white); border-color: rgba(255, 255, 255, 0.7); }
.btn--secondary-dark {
  background: transparent;
  color: var(--cpm-navy);
  border-color: var(--cpm-navy);
}
.btn--secondary-dark:hover { background: var(--cpm-navy-100); color: var(--cpm-navy); }

.btn .arrow { transition: transform 0.18s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Animated value-flow constellation ----------
   Story: each satellite (capability) emits a glowing packet that
   travels into the central success hub. Ripples fire at the hub when
   packets arrive. Continuous flow of value from every direction. */

.constellation {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  margin: 0 auto;
}
.constellation svg { width: 100%; height: 100%; overflow: visible; }

.const-bg {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(10, 110, 150, 0.15), transparent 70%),
    radial-gradient(closest-side at 50% 50%, rgba(176, 96, 39, 0.18), transparent 60%);
  filter: blur(24px);
  z-index: 0;
  animation: bgPulse 4s ease-in-out infinite;
}
@keyframes bgPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.04); }
}

/* Ambient rings around the hub */
.const-hub-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}
.const-hub-ring.r2 {
  stroke-dasharray: 2 5;
  transform-origin: 260px 260px;
  transform-box: fill-box;
  animation: rotate 32s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* Faint baseline connection lines */
.const-lines-base line {
  stroke: rgba(102, 163, 189, 0.18);
  stroke-width: 1;
}

/* Charged trails — a dashed gradient that scrolls toward the hub.
   Each trail mirrors its packet's timing so the line "lights up"
   just as the packet passes. */
.const-trails .trail {
  stroke: rgba(255, 138, 58, 0.55);
  stroke-width: 1.4;
  stroke-dasharray: 14 220;
  stroke-linecap: round;
  fill: none;
  animation: trailFlow 2.8s linear infinite;
}
@keyframes trailFlow {
  from { stroke-dashoffset: 234; }
  to   { stroke-dashoffset: 0;   }
}
/* 8 trails — staggered 0.35s apart over a 2.8s loop */
.const-trails .t1 { animation-delay: 0s;     }
.const-trails .t2 { animation-delay: -0.35s; }
.const-trails .t3 { animation-delay: -0.7s;  }
.const-trails .t4 { animation-delay: -1.05s; }
.const-trails .t5 { animation-delay: -1.4s;  }
.const-trails .t6 { animation-delay: -1.75s; }
.const-trails .t7 { animation-delay: -2.1s;  }
.const-trails .t8 { animation-delay: -2.45s; }

/* Satellite node circles */
.const-nodes .node-bg {
  fill: var(--cpm-navy-deep);
  stroke: rgba(102, 163, 189, 0.55);
  stroke-width: 1.4;
}
/* Subtle node "charging" — slow brightness pulse staggered per node */
.const-nodes .node {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodeCharge 2.8s ease-in-out infinite;
}
.const-nodes .n1 { animation-delay: 0s;    }
.const-nodes .n2 { animation-delay: 0.35s; }
.const-nodes .n3 { animation-delay: 0.7s;  }
.const-nodes .n4 { animation-delay: 1.05s; }
.const-nodes .n5 { animation-delay: 1.4s;  }
.const-nodes .n6 { animation-delay: 1.75s; }
.const-nodes .n7 { animation-delay: 2.1s;  }
.const-nodes .n8 { animation-delay: 2.45s; }
@keyframes nodeCharge {
  0%, 80%, 100% { filter: none; }
  10%           { filter: drop-shadow(0 0 6px rgba(255, 138, 58, 0.9)); }
}

/* Node labels — always upright, centered on each node */
.const-labels .node-label {
  fill: var(--cpm-white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

/* The packets — small glowing dots traveling along each path */
.const-packets .packet {
  fill: #FFB370;
}

/* Arrival ripples at the hub. Each ripple starts invisible, then
   expands outward + fades when its corresponding packet lands. */
.const-ripples .ripple {
  fill: none;
  stroke: rgba(255, 138, 58, 0.7);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: rippleOut 2.8s ease-out infinite;
}
@keyframes rippleOut {
  0%   { transform: scale(0.95); opacity: 0; stroke-width: 2;   }
  5%   { transform: scale(1);    opacity: 0.9; stroke-width: 2.2; }
  60%  { transform: scale(1.5);  opacity: 0;   stroke-width: 1; }
  100% { transform: scale(1.5);  opacity: 0;   stroke-width: 1; }
}
/* Each ripple delayed so it fires when its packet arrives.
   Packet i begins at (i-1)*0.4s and travels 2.8s, so it arrives at
   (i-1)*0.4s + 2.8s. With animation-duration = 2.8s, an
   animation-delay of (i-1)*0.4s puts the 0% frame at the right moment
   on subsequent cycles. We add the 2.8s for the first arrival by
   using a negative offset trick instead: a fresh anim-delay of
   2.8s + (i-1)*0.4s. To keep the math readable we use positive delays. */
/* 8 ripples — each fires when its packet arrives (2.8s travel + 0.35s stagger) */
.const-ripples .r-1 { animation-delay: 2.8s;  }
.const-ripples .r-2 { animation-delay: 3.15s; }
.const-ripples .r-3 { animation-delay: 3.5s;  }
.const-ripples .r-4 { animation-delay: 3.85s; }
.const-ripples .r-5 { animation-delay: 4.2s;  }
.const-ripples .r-6 { animation-delay: 4.55s; }
.const-ripples .r-7 { animation-delay: 4.9s;  }
.const-ripples .r-8 { animation-delay: 5.25s; }

/* Two-line node label (for "AI & Automation") */
.const-labels .node-label--two-line { font-size: 12px; }

/* Central success hub */
.hub-core {
  fill: url(#hubGradient);
  transform-box: fill-box;
  transform-origin: center;
  animation: hubBreathe 2.8s ease-in-out infinite;
}
@keyframes hubBreathe {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 8px rgba(255, 138, 58, 0.6)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 16px rgba(255, 138, 58, 0.95)); }
}
.hub-glow {
  fill: var(--cpm-orange);
  filter: blur(14px);
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: center;
  animation: hubGlow 2.8s ease-in-out infinite;
}
@keyframes hubGlow {
  0%, 100% { transform: scale(1);   opacity: 0.4; }
  50%      { transform: scale(1.2); opacity: 0.8; }
}
.hub-check {
  stroke: var(--cpm-white);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

@media (prefers-reduced-motion: reduce) {
  .const-bg,
  .const-hub-ring.r2,
  .const-trails .trail,
  .const-nodes .node,
  .const-ripples .ripple,
  .hub-core, .hub-glow {
    animation: none !important;
  }
  .const-packets { display: none; }
}

/* ---------- Logo strip / proof ---------- */
.proof-strip {
  padding: var(--s-6) 0;
  background: var(--cpm-navy-darker);
  color: rgba(255,255,255,0.7);
  text-align: center;
}
.proof-strip__label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--s-3);
}
.proof-strip__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-6);
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
}

/* ---------- Section intros ---------- */
.section-intro {
  max-width: 760px;
  margin: 0 auto var(--s-8);
  text-align: center;
}
.section-intro p {
  font-size: 1.125rem;
  color: var(--cpm-neutral-700);
}

/* ---------- Service grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--cpm-white);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  border: 1px solid var(--cpm-neutral-100);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--cpm-navy-300);
  box-shadow: 0 12px 32px -16px rgba(2, 73, 105, 0.18);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--cpm-navy-100);
  color: var(--cpm-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: var(--s-1); font-size: 1.25rem; }
.service-card p { color: var(--cpm-neutral-700); font-size: 0.95rem; line-height: 1.6; }

/* ---------- "How it works" steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  position: relative;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--cpm-orange);
  line-height: 1;
  margin-bottom: var(--s-2);
}
.step h3 { font-size: 1.25rem; margin-bottom: var(--s-2); }
.step p { color: var(--cpm-neutral-700); }

/* ---------- Testimonials ---------- */
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) { .t-grid { grid-template-columns: 1fr; } }
.t-card {
  background: var(--cpm-white);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  border: 1px solid var(--cpm-neutral-100);
  display: flex; flex-direction: column;
}
.t-card__quote {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--cpm-charcoal);
  font-style: italic;
  margin: 0 0 var(--s-3);
  position: relative;
}
.t-card__quote::before {
  content: "\201C";
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--cpm-orange);
  position: absolute;
  top: -2.5rem;
  left: -0.5rem;
  line-height: 1;
  font-style: normal;
}
.t-card__author {
  margin-top: auto;
  font-size: 0.95rem;
}
.t-card__author strong { display: block; color: var(--cpm-navy); }
.t-card__author span { color: var(--cpm-neutral-700); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid img { border-radius: var(--r-lg); }

/* Circular portrait used in the About section */
.about-portrait {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  object-fit: cover;
  object-position: center center;
  margin: 0 auto;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 0 0 6px rgba(176, 96, 39, 0.45),
    0 20px 40px -16px rgba(0, 0, 0, 0.5);
}
.about-grid h2 { color: var(--cpm-white); }
.about-grid p { color: rgba(255,255,255,0.78); font-size: 1.0625rem; }

/* ---------- Capability tags ---------- */
.tag-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: var(--s-3);
}
.tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-pill);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--cpm-navy-deep);
  color: var(--cpm-white);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(176,96,39,0.25), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--cpm-white); margin-bottom: var(--s-3); }
.cta-banner p { color: rgba(255,255,255,0.82); max-width: 600px; margin: 0 auto var(--s-4); font-size: 1.0625rem; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ---------- Blog cards (used on home + blog index) ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr; } }
/* Two-card variant (used on the home page until we have 3+ posts) */
.posts-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 700px) { .posts-grid--two { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column;
  background: var(--cpm-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--cpm-neutral-100);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--cpm-navy-300);
  box-shadow: 0 12px 32px -16px rgba(2, 73, 105, 0.18);
  text-decoration: none;
}
.post-card__thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--cpm-navy) 0%, var(--cpm-navy-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.post-card__thumb-svg { width: 60%; height: auto; opacity: 0.85; }
.post-card__body { padding: var(--s-3) var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.post-card__meta { font-size: 0.8rem; color: var(--cpm-neutral-400); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.post-card__title { color: var(--cpm-navy); font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin: 0; }
.post-card__excerpt { color: var(--cpm-neutral-700); font-size: 0.95rem; line-height: 1.55; }
.post-card__read { margin-top: auto; color: var(--cpm-orange); font-weight: 600; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cpm-navy-darker);
  color: rgba(255,255,255,0.7);
  padding: var(--s-12) 0 var(--s-4);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  align-items: start;
}
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--cpm-white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--s-2); }
.site-footer a { color: rgba(255,255,255,0.7); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--cpm-white); text-decoration: none; }
.site-footer__brand img { height: 56px; margin-bottom: var(--s-3); }
.site-footer__brand p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.site-footer__bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.form {
  background: var(--cpm-white);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  border: 1px solid var(--cpm-neutral-100);
  display: grid; gap: var(--s-2);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
@media (max-width: 500px) { .form__row { grid-template-columns: 1fr; } }
.form label { font-size: 0.85rem; font-weight: 600; color: var(--cpm-neutral-700); display: block; margin-bottom: 4px; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cpm-neutral-200);
  border-radius: var(--r-sm);
  font: inherit;
  background: var(--cpm-white);
  color: var(--cpm-charcoal);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--cpm-navy);
  box-shadow: 0 0 0 3px rgba(2, 73, 105, 0.15);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { justify-self: start; }
.required-mark { color: var(--cpm-orange); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Article (blog post) ---------- */
.article {
  background: var(--cpm-white);
  padding: var(--s-12) 0;
}
.article__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--s-3);
}
.article__meta { font-size: 0.85rem; color: var(--cpm-neutral-400); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: var(--s-2); }
.article h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: var(--s-3); }
.article__lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--cpm-neutral-700);
  margin-bottom: var(--s-6);
}
.article__body p, .article__body ul, .article__body ol { font-size: 1.0625rem; line-height: 1.75; color: var(--cpm-charcoal); }
.article__body h2 { font-size: 1.625rem; margin-top: var(--s-6); }
.article__body h3 { font-size: 1.25rem; margin-top: var(--s-4); }
.article__body blockquote {
  border-left: 3px solid var(--cpm-orange);
  margin: var(--s-4) 0;
  padding: 4px 0 4px var(--s-3);
  font-style: italic;
  color: var(--cpm-neutral-700);
}
.article__body a { color: var(--cpm-navy-600); text-decoration: underline; text-underline-offset: 3px; }

/* Inline editorial figures inside blog posts.
   Default: float right alongside text on desktop.
   --full variant breaks out as a full-width centered figure. */
.post-figure {
  margin: var(--s-3) 0 var(--s-3) var(--s-4);
  float: right;
  width: 280px;
  max-width: 45%;
}
.post-figure svg {
  width: 100%;
  height: auto;
  background: var(--cpm-neutral-50);
  border: 1px solid var(--cpm-neutral-100);
  border-radius: var(--r-md);
  display: block;
}
.post-figure figcaption {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--cpm-neutral-700);
  font-style: italic;
  margin-top: 6px;
  text-align: center;
}
.post-figure--full {
  float: none;
  width: 100%;
  max-width: 100%;
  margin: var(--s-6) auto;
}
.post-figure--full svg { max-height: 320px; object-fit: contain; }
.post-figure--left {
  float: left;
  margin: var(--s-3) var(--s-4) var(--s-3) 0;
}
@media (max-width: 640px) {
  .post-figure, .post-figure--left {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: var(--s-3) 0;
  }
}
/* Clear floats after the article body */
.article__body::after { content: ""; display: table; clear: both; }
.article__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  color: var(--cpm-navy);
  margin-bottom: var(--s-3);
}
