/* ─────────────────────────────────────────────
   PentaDimension — Master Stylesheet
   Design system: DM Serif Display · Inter · DM Sans
   Locked Nov 2026
   ───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   Metric-adjusted fallback fonts (prevents CLS)
   These match the metrics of the web fonts as
   closely as possible so when the swap happens
   from fallback → web font, layout doesn't shift.
   ───────────────────────────────────────────── */
@font-face {
  font-family: 'DM Serif Fallback';
  src: local('Georgia'), local('Times New Roman'), local('Times');
  size-adjust: 105%;
  ascent-override: 92%;
  descent-override: 23%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica'), local('sans-serif');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  /* Dark page tokens (brand pages) */
  --d-page:    #0E0C0C;
  --d-surface: #1C1818;
  --d-deep:    #141212;
  --d-text:    #FDF2E5;
  --d-t70:     rgba(253,242,229,.70);
  --d-t55:     rgba(253,242,229,.55);
  --d-t40:     rgba(253,242,229,.40);
  --d-t25:     rgba(253,242,229,.25);
  --d-border:  rgba(213,177,95,.12);

  /* Light page tokens (content pages) */
  --l-page:    #F7F5F1;
  --l-surface: #ECEAE6;
  --l-text:    #131010;
  --l-t70:     rgba(19,16,16,.70);
  --l-t55:     rgba(19,16,16,.55);
  --l-t40:     rgba(19,16,16,.40);
  --l-border:  rgba(19,16,16,.1);

  /* Brand */
  --cherry:  #AB1423;
  --gold:    #D5B15F;
  --primary: #480002;

  /* Type scale */
  --serif: 'DM Serif Display', 'DM Serif Fallback', Georgia, serif;
  --sans:  'Inter', 'Inter Fallback', -apple-system, system-ui, sans-serif;
  --ui:    'Inter', 'Inter Fallback', -apple-system, system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-pad: 48px;
  --section-y: 96px;
  --section-y-sm: 64px;
}

/* ── RESET ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; }

/* ── BODY THEMES ─────────────────────── */
body.theme-dark  { background: var(--d-page); color: var(--d-text); }
body.theme-light { background: var(--l-page); color: var(--l-text); }

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

/* ── NAV ─────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; display: flex; align-items: center;
  backdrop-filter: blur(14px);
}
.theme-dark  .nav { background: rgba(14,12,12,.88); border-bottom: 0.5px solid var(--d-border); }
.theme-light .nav { background: rgba(247,245,241,.92); border-bottom: 0.5px solid var(--l-border); }

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 32px;
  width: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo.has-uploaded-logo { gap: 0; }
.nav-logo-img { display: block; max-height: 40px; width: auto; height: auto; }
@media (max-width: 720px) {
  .nav-logo-img { max-height: 32px; }
}
.nav-wordmark { display: flex; flex-direction: column; line-height: 1.05; gap: 1px; }
.nav-penta { font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-dim   { font-family: var(--ui); font-size: 11px; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; }
.theme-dark  .nav-penta { color: var(--d-text); }
.theme-dark  .nav-dim   { color: var(--d-t40); }
.theme-light .nav-penta { color: var(--l-text); }
.theme-light .nav-dim   { color: var(--l-t40); }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links li { list-style: none; margin: 0; padding: 0; }
.nav-links a { white-space: nowrap; }
.nav-links a {
  font-family: var(--ui); font-size: 13px; font-weight: 400;
  letter-spacing: .03em; transition: color .2s;
}
.theme-dark  .nav-links a { color: var(--d-t70); }
.theme-dark  .nav-links a:hover, .theme-dark  .nav-links a.is-active { color: var(--d-text); }
.theme-light .nav-links a { color: var(--l-t70); }
.theme-light .nav-links a:hover, .theme-light .nav-links a.is-active { color: var(--l-text); }

.nav-cta {
  font-family: var(--ui); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 18px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.theme-dark .nav-cta {
  color: var(--gold); border: 1px solid var(--gold);
}
.theme-dark .nav-cta:hover { background: var(--gold); color: var(--d-page); }
.theme-light .nav-cta {
  color: var(--l-page); background: var(--primary); border: 1px solid var(--primary);
}
.theme-light .nav-cta:hover { background: var(--cherry); border-color: var(--cherry); }

/* ── TYPE ────────────────────────────── */
.eyebrow {
  font-family: var(--ui); font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--cherry); flex-shrink: 0; }
.eyebrow.is-center { justify-content: center; }
.eyebrow.is-center::before { display: none; }
.theme-dark  .eyebrow { color: var(--gold); }
.theme-light .eyebrow { color: var(--cherry); }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--serif);
  letter-spacing: -.018em;
  line-height: 1.08;
}
.theme-dark  h1, .theme-dark  h2, .theme-dark  h3, .theme-dark  h4 { color: var(--d-text); }
.theme-light h1, .theme-light h2, .theme-light h3, .theme-light h4 { color: var(--l-text); }

/* ── HEADING SCALE ──────────────────────
 * Design rule: all heading scale classes carry a default margin-bottom.
 * This guarantees breathing room between a heading and the next element
 * (paragraph, list, anything) regardless of wrapper or grid context.
 * Override with inline style or .h-flush utility only when explicitly needed.
 */
.h-hero    { font-size: 72px; line-height: 1.04; margin-bottom: 28px; }
.h-section { font-size: 48px; line-height: 1.08; margin-bottom: 20px; }
.h-mid     { font-size: 36px; line-height: 1.10; margin-bottom: 16px; }
.h-card    { font-size: 28px; line-height: 1.10; margin-bottom: 14px; }
.h-flush   { margin-bottom: 0 !important; }

p.body {
  font-family: var(--sans); font-size: 17px; line-height: 1.72;
  max-width: 600px;
}
p.body-lg {
  font-family: var(--sans); font-size: 18px; line-height: 1.68;
  max-width: 560px;
}
p.body-sm {
  font-family: var(--sans); font-size: 14px; line-height: 1.65;
}
.theme-dark  p.body, .theme-dark  p.body-lg, .theme-dark  p.body-sm { color: var(--d-t70); }
.theme-light p.body, .theme-light p.body-lg, .theme-light p.body-sm { color: var(--l-t70); }

/* ── BUTTONS ─────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--ui); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 32px; transition: background .2s, color .2s, border-color .2s;
}
.btn-outline-gold {
  color: var(--gold); border: 1px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--d-page); }
.btn-solid-primary {
  background: var(--primary); color: var(--d-text); border: 1px solid var(--primary);
}
.btn-solid-primary:hover { background: var(--cherry); border-color: var(--cherry); }
.btn-text {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--ui); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.theme-dark  .btn-text { color: var(--gold); }
.theme-light .btn-text { color: var(--cherry); }

/* ── SECTIONS ────────────────────────── */
.section    { padding: var(--section-y) 0; }
.section-sm { padding: var(--section-y-sm) 0; }

.section-label {
  font-family: var(--ui); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.section-label::before { content: ''; width: 20px; height: 1.5px; background: var(--cherry); }
.theme-dark  .section-label { color: var(--gold); }
.theme-light .section-label { color: var(--cherry); }

.rule { width: 24px; height: 1.5px; background: var(--cherry); }

/* ── HERO (dark) ─────────────────────── */
.hero {
  min-height: 88vh; display: flex; flex-direction: column;
  justify-content: center; padding-top: 68px;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; opacity: .03; pointer-events: none; }
.hero-content { padding: 90px 0 60px; max-width: 860px; position: relative; z-index: 1; }
.hero-content.is-narrow { max-width: 760px; }
.hero h1 { margin-bottom: 28px; }
.hero p.body-lg { margin-bottom: 44px; }

/* ── CREDENTIALS STRIP ───────────────── */
.cred-strip {
  background: var(--d-surface);
  border-top: 0.5px solid var(--d-border);
  border-bottom: 0.5px solid var(--d-border);
  padding: 17px 0; overflow: hidden;
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 24px; padding: 0 36px; white-space: nowrap; }
.m-text { font-family: var(--ui); font-size: 12px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--d-t70); }
.m-badge {
  font-family: var(--ui); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  border: 0.5px solid rgba(213,177,95,.4); padding: 3px 9px 3px 11px;
}
.m-dot { width: 3px; height: 3px; background: var(--cherry); border-radius: 50%; flex-shrink: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── STATS BLOCKS ────────────────────── */
.stats-stack { display: flex; flex-direction: column; gap: 32px; }
.stat-block { border-left: 1.5px solid var(--cherry); padding-left: 24px; }
.stat-num {
  font-family: var(--serif); font-size: 44px;
  line-height: 1; margin-bottom: 6px;
}
.stat-lbl { font-family: var(--ui); font-size: 13px; letter-spacing: .03em; }
.theme-dark  .stat-num { color: var(--d-text); } .theme-dark  .stat-lbl { color: var(--d-t40); }
.theme-light .stat-num { color: var(--l-text); } .theme-light .stat-lbl { color: var(--l-t55); }

/* ── SERVICES GRID ───────────────────── */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--d-border);
  border: 0.5px solid var(--d-border); margin-top: 56px;
}
.svc-card {
  background: var(--d-page);
  padding: 40px 32px 44px;
  transition: background .25s;
  display: flex; flex-direction: column;
}
.svc-card:hover { background: var(--d-surface); }
.svc-num {
  font-family: var(--ui); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; color: var(--gold);
  display: block; margin-bottom: 20px;
}
.svc-name { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--d-text); margin-bottom: 16px; }
.svc-desc {
  font-family: var(--sans); font-size: 15px; line-height: 1.72;
  color: var(--d-t70); margin-bottom: 28px;
}
.svc-link {
  font-family: var(--ui); font-size: 11px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--gold);
  margin-top: auto; padding-top: 14px;
  border-top: 0.5px solid var(--d-border);
  display: inline-flex; align-items: center; gap: 8px;
}
.svc-link::after { content: '→'; transition: transform .2s; }
.svc-link:hover::after { transform: translateX(3px); }

/* ── RESULT CARDS ────────────────────── */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.result-card { background: var(--d-surface); padding: 32px 28px 36px; border: 0.5px solid var(--d-border); }
.result-industry {
  font-family: var(--ui); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.result-metric { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--d-text); margin-bottom: 12px; }
.result-context { font-family: var(--sans); font-size: 14px; line-height: 1.65; color: var(--d-t70); margin-bottom: 18px; }
.result-tag { font-family: var(--ui); font-size: 11px; color: var(--d-t40); letter-spacing: .06em; }
.results-note { font-family: var(--ui); font-size: 13px; color: var(--d-t40); font-style: italic; margin-top: 20px; }

/* ── TESTIMONIALS ────────────────────── */
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.testi-card { background: var(--d-surface); padding: 40px 36px 44px; border: 0.5px solid var(--d-border); }
.testi-quote { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.55; color: var(--d-text); margin-bottom: 28px; }
.testi-rule { width: 22px; height: 1.5px; background: var(--cherry); margin-bottom: 16px; }
.testi-name { font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--d-text); margin-bottom: 3px; }
.testi-meta { font-family: var(--ui); font-size: 12px; color: var(--d-t40); letter-spacing: .03em; }
.testi-placeholder { font-style: italic; color: var(--d-t40); }

/* ── ABOUT BLOCK ─────────────────────── */
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 80px; align-items: start; }
.about-photo {
  aspect-ratio: 3/4; background: var(--d-surface); border: 0.5px solid var(--d-border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-photo-inner { font-family: var(--serif); font-size: 64px; color: var(--d-t40); }
.about-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo-label {
  position: absolute; bottom: 20px; left: 20px;
  font-family: var(--ui); font-size: 11px; color: var(--d-t40);
  font-style: italic; letter-spacing: .04em;
}
.about-name { font-family: var(--serif); font-size: 44px; line-height: 1.1; color: var(--d-text); margin-bottom: 8px; }
.about-title { font-family: var(--ui); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.about-bio { font-family: var(--sans); font-size: 16px; line-height: 1.78; color: var(--d-t70); margin-bottom: 36px; }
.cred-list { display: flex; flex-direction: column; gap: 14px; }
.cred-item { display: flex; align-items: center; gap: 14px; font-family: var(--ui); font-size: 14px; color: var(--d-t70); }
.cred-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cherry); flex-shrink: 0; }

/* ── FINAL CTA BAND ──────────────────── */
.final-cta { background: var(--d-surface); border-top: 0.5px solid var(--d-border); padding: 112px 0; text-align: center; }
.cta-heading { font-family: var(--serif); font-size: 54px; line-height: 1.08; letter-spacing: -.02em; color: var(--d-text); max-width: 640px; margin: 0 auto 20px; }
.cta-sub { font-family: var(--sans); font-size: 17px; color: var(--d-t70); max-width: 460px; margin: 0 auto 44px; line-height: 1.68; }

/* ── FOOTER ──────────────────────────── */
footer {
  background: var(--d-page);
  border-top: 0.5px solid var(--d-border);
  padding: 64px 0 36px;
}
.theme-light footer {
  background: var(--l-page);
  border-top: 0.5px solid var(--l-border);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand-text {
  font-family: var(--sans); font-size: 13px; line-height: 1.65;
  margin-top: 18px; max-width: 280px;
}
.theme-dark .footer-brand-text { color: var(--d-t55); }
.theme-light .footer-brand-text { color: var(--l-t70); }

.footer-col h2 {
  font-family: var(--ui); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 18px;
}
.theme-dark  .footer-col h2 { color: var(--gold); }
.theme-light .footer-col h2 { color: var(--cherry); }

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-family: var(--ui); font-size: 13px; transition: color .2s;
}
.theme-dark  .footer-col a { color: var(--d-t70); }
.theme-dark  .footer-col a:hover { color: var(--d-text); }
.theme-light .footer-col a { color: var(--l-t70); }
.theme-light .footer-col a:hover { color: var(--l-text); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
}
.theme-dark  .footer-bottom { border-top: 0.5px solid var(--d-border); }
.theme-light .footer-bottom { border-top: 0.5px solid var(--l-border); }
.footer-copy {
  font-family: var(--ui); font-size: 12px;
}
.theme-dark  .footer-copy { color: var(--d-t40); }
.theme-light .footer-copy { color: var(--l-t40); }

/* ── PAGE-SPECIFIC HELPERS ───────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.two-col-wide { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }

.feature-list { display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
.feature-item { display: flex; gap: 18px; align-items: flex-start; }
.feature-num {
  font-family: var(--serif); font-size: 24px; color: var(--gold);
  line-height: 1; flex-shrink: 0; min-width: 32px;
}
.feature-body h3 { font-family: var(--serif); font-size: 22px; line-height: 1.15; margin-bottom: 6px; }
.feature-body p { font-family: var(--sans); font-size: 14.5px; line-height: 1.7; color: var(--d-t70); }

.theme-light .feature-body h3 { color: var(--l-text); }
.theme-light .feature-body p { color: var(--l-t70); }

/* Blog post cards (light) */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.post-card { background: var(--l-surface); border: 0.5px solid var(--l-border); padding: 32px 28px 36px; transition: border-color .2s; overflow: hidden; display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--cherry); }
.post-cat { font-family: var(--ui); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--cherry); margin-bottom: 14px; }
.post-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--l-text); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-excerpt { font-family: var(--sans); font-size: 14px; line-height: 1.65; color: var(--l-t70); margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-family: var(--ui); font-size: 11px; color: var(--l-t40); letter-spacing: .05em; margin-top: auto; }

/* Tools cards (dark) */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
.tool-card {
  background: var(--d-surface);
  border: 0.5px solid var(--d-border);
  padding: 40px 36px 44px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.tool-card.is-coming { opacity: .55; }
.tool-card.is-live {
  text-decoration: none;
  color: inherit;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.tool-card.is-live:hover {
  border-color: var(--gold);
  background: var(--d-bg);
  transform: translateY(-3px);
}
.tool-status {
  font-family: var(--ui); font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  border: 0.5px solid var(--gold); color: var(--gold);
  padding: 4px 10px; display: inline-block; margin-bottom: 24px;
  align-self: flex-start;
}
.tool-status.live { color: var(--cherry); border-color: var(--cherry); }
.tool-name { font-family: var(--serif); font-size: 28px; color: var(--d-text); line-height: 1.15; margin-bottom: 14px; }
.tool-desc { font-family: var(--sans); font-size: 14px; line-height: 1.7; color: var(--d-t70); }
.tool-cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: flex-start;
  border-top: 0.5px solid var(--d-border);
  padding-right: 0;
  width: auto;
  transition: color .2s;
}
.tool-card.is-live:hover .tool-cta { color: var(--d-text); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.form-block { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: var(--ui); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--sans); font-size: 15px;
  background: var(--d-surface); color: var(--d-text);
  border: 0.5px solid var(--d-border);
  padding: 14px 16px; transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--gold);
}
.form-row textarea { min-height: 140px; resize: vertical; font-family: var(--sans); }

/* Service detail page specific */
.svc-includes {
  background: var(--d-surface); border: 0.5px solid var(--d-border);
  padding: 40px 44px;
}
.includes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; margin-top: 28px; }
.include-item { display: flex; gap: 14px; align-items: flex-start; }
.include-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border: 0.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 14px; color: var(--gold);
}
.include-text h4 { font-family: var(--ui); font-size: 14px; font-weight: 500; color: var(--d-text); margin-bottom: 4px; letter-spacing: .02em; }
.include-text p { font-family: var(--sans); font-size: 13px; line-height: 1.6; color: var(--d-t55); }

.related-block {
  background: var(--d-surface); border: 0.5px solid var(--d-border);
  padding: 36px 40px;
}
.related-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.related-link {
  font-family: var(--ui); font-size: 14px; color: var(--d-t70);
  padding-left: 16px; position: relative; transition: color .2s;
}
.related-link::before { content: '→'; position: absolute; left: 0; color: var(--cherry); }
.related-link:hover { color: var(--d-text); }

/* Locations */
.loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
.loc-card {
  background: var(--d-surface);
  border: 0.5px solid var(--d-border);
  padding: 32px 28px;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
a.loc-card:hover {
  border-color: var(--gold);
  background: var(--d-bg);
  transform: translateY(-3px);
}
.loc-status { font-family: var(--ui); font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.loc-name { font-family: var(--serif); font-size: 24px; color: var(--d-text); margin-bottom: 8px; }
.loc-region { font-family: var(--ui); font-size: 12px; color: var(--d-t55); letter-spacing: .04em; }

/* Responsive */
@media (max-width: 960px) {
  :root { --container-pad: 24px; --section-y: 64px; }
  .h-hero { font-size: 44px; }
  .h-section { font-size: 32px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 12px; }
  .two-col, .two-col-wide, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid, .results-grid, .tools-grid, .posts-grid, .loc-grid, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .includes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { height: 60px; }
  .nav-penta { font-size: 12px; }
  .nav-dim { font-size: 10px; }
  .nav-cta { padding: 7px 14px; font-size: 10px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .h-hero { font-size: 36px; }
}

/* ── FLUENT FORMS OVERRIDE (dark theme on contact page) ── */
.theme-dark .fluentform .ff-el-input--label label,
.theme-dark .fluentform label {
  font-family: var(--ui) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin-bottom: 8px !important;
  display: block;
}

.theme-dark .fluentform input[type="text"],
.theme-dark .fluentform input[type="email"],
.theme-dark .fluentform input[type="tel"],
.theme-dark .fluentform input[type="url"],
.theme-dark .fluentform select,
.theme-dark .fluentform textarea,
.theme-dark .fluentform .ff-el-form-control {
  font-family: var(--sans) !important;
  font-size: 15px !important;
  background: var(--d-surface) !important;
  color: var(--d-text) !important;
  border: 0.5px solid var(--d-border) !important;
  border-radius: 0 !important;
  padding: 14px 16px !important;
  width: 100% !important;
  box-shadow: none !important;
}

.theme-dark .fluentform input:focus,
.theme-dark .fluentform select:focus,
.theme-dark .fluentform textarea:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: none !important;
}

.theme-dark .fluentform textarea { min-height: 140px !important; resize: vertical !important; }

.theme-dark .fluentform .ff-el-input--content { margin-top: 0 !important; }
.theme-dark .fluentform .ff_columns_total_1 > .ff-t-cell,
.theme-dark .fluentform .ff-t-container { padding: 0 !important; }
.theme-dark .fluentform .ff-t-row { margin-bottom: 20px !important; }

.theme-dark .fluentform .ff-btn,
.theme-dark .fluentform button[type="submit"] {
  font-family: var(--ui) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  background: var(--primary) !important;
  color: var(--d-text) !important;
  border: 1px solid var(--primary) !important;
  border-radius: 0 !important;
  padding: 14px 32px !important;
  transition: background .2s, border-color .2s !important;
  box-shadow: none !important;
}
.theme-dark .fluentform .ff-btn:hover,
.theme-dark .fluentform button[type="submit"]:hover {
  background: var(--cherry) !important;
  border-color: var(--cherry) !important;
}

.theme-dark .fluentform .ff-el-is-required.asterisk-right .ff-el-input--label label:after { color: var(--cherry) !important; }

.theme-dark .fluentform .ff-message-success,
.theme-dark .fluentform .ff_submit_success {
  background: var(--d-surface) !important;
  color: var(--gold) !important;
  border: 0.5px solid var(--gold) !important;
  padding: 20px !important;
  border-radius: 0 !important;
  font-family: var(--sans) !important;
}

.theme-dark .fluentform .error,
.theme-dark .fluentform .ff-el-is-error input,
.theme-dark .fluentform .ff-el-is-error textarea {
  border-color: var(--cherry) !important;
}
.theme-dark .fluentform .text-danger { color: var(--cherry) !important; font-family: var(--ui) !important; font-size: 12px !important; }

/* ── CASE STUDIES ─────────────────────── */

/* Archive grid */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.cs-card {
  background: var(--d-surface);
  border: 0.5px solid var(--d-border);
  padding: 40px 36px 44px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
  overflow: hidden;
}
.cs-card:hover {
  border-color: var(--gold);
  background: var(--d-bg);
  transform: translateY(-3px);
}
.cs-industry {
  font-family: var(--ui); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.cs-name {
  font-family: var(--serif); font-size: 28px; line-height: 1.12;
  color: var(--d-text); margin-bottom: 24px;
  letter-spacing: -.01em;
}
.cs-result {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 0.5px solid var(--d-border);
}
.cs-result-value {
  font-family: var(--serif); font-size: 44px; line-height: 1;
  color: var(--d-text); letter-spacing: -.02em;
}
.cs-result-label {
  font-family: var(--ui); font-size: 12px; letter-spacing: .04em;
  color: var(--d-t55); text-transform: lowercase;
}
.cs-excerpt {
  font-family: var(--sans); font-size: 14.5px; line-height: 1.7;
  color: var(--d-t70); margin-bottom: 24px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.cs-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-family: var(--ui); font-size: 11px; color: var(--d-t40);
  letter-spacing: .06em; margin-bottom: 22px;
}
.cs-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cs-services::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--cherry); display: inline-block; margin-right: 8px;
}
.cs-duration::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); display: inline-block; margin-right: 8px;
}
.cs-link {
  font-family: var(--ui); font-size: 11px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--gold);
  margin-top: auto; padding-top: 16px;
  border-top: 0.5px solid var(--d-border);
  display: inline-flex; align-items: center; gap: 8px;
}
.cs-link::after { content: '→'; transition: transform .2s; }
.cs-card:hover .cs-link::after { transform: translateX(3px); }

/* Single case study — centered stat cards below title (replaces previous full-width grid) */
.cs-stats-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cs-stat {
  background: var(--d-surface);
  border: 0.5px solid var(--d-border);
  padding: 44px 40px 40px;
  flex: 1 1 280px;
  min-width: 280px;
  max-width: 360px;
  min-height: 200px;

  /* Center content both axes */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.cs-stat-label {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.cs-stat-value {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
  color: var(--d-text);
  letter-spacing: -.02em;
}

@media (max-width: 720px) {
  .cs-stats-row { gap: 12px; }
  .cs-stat {
    flex: 1 1 100%;
    max-width: 100%;
    min-height: 160px;
    padding: 32px 28px 28px;
  }
  .cs-stat-value { font-size: 34px; }
}

/* Legacy stats CSS - kept for backwards compatibility, no longer rendered by template */
.cs-stats {
  background: var(--d-surface);
  border-top: 0.5px solid var(--d-border);
  border-bottom: 0.5px solid var(--d-border);
  padding: 40px 0;
}
.cs-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.cs-stat { padding: 0; }
.cs-stat-value {
  font-family: var(--serif); font-size: 42px; line-height: 1;
  color: var(--d-text); margin-bottom: 8px; letter-spacing: -.02em;
}
.cs-stat-value--text {
  font-size: 22px; line-height: 1.2;
}
.cs-stat-label {
  font-family: var(--ui); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}

/* Case study prose content (dark theme) */
.cs-prose {
  font-family: var(--sans); font-size: 18px; line-height: 1.65;
  color: var(--d-t70);
}
.cs-prose > * + * { margin-top: 1.4em; }
.cs-prose h2 {
  font-family: var(--serif); font-size: 34px; color: var(--d-text);
  margin-top: 2em; margin-bottom: 0.4em; line-height: 1.18;
  letter-spacing: -.01em;
}
.cs-prose h3 {
  font-family: var(--serif); font-size: 24px; color: var(--d-text);
  margin-top: 1.7em; margin-bottom: 0.35em; line-height: 1.25;
}
.cs-prose h4 {
  font-family: var(--serif); font-size: 19px; color: var(--d-text);
  margin-top: 1.5em; margin-bottom: 0.3em; line-height: 1.3;
}
.cs-prose h2 + h3, .cs-prose h2 + h4, .cs-prose h3 + h4 { margin-top: 0.7em; }
.cs-prose p { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.65; color: var(--d-t70); }
.cs-prose p:first-child { font-size: 19px; color: var(--d-text); }
.cs-prose ul, .cs-prose ol { padding-left: 1.6em; margin: 0; }
.cs-prose li { margin-bottom: 0.5em; padding-left: 0.25em; font-family: var(--sans); font-size: 18px; line-height: 1.65; color: var(--d-t70); }
.cs-prose blockquote {
  border-left: 2px solid var(--cherry);
  padding-left: 24px; margin: 32px 0;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--d-text); line-height: 1.5;
}
.cs-prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cs-prose a:hover { color: var(--d-text); }

@media (max-width: 960px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-stats-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .cs-prose, .cs-prose p, .cs-prose li { font-size: 16px; line-height: 1.65; }
  .cs-prose h2 { font-size: 26px; margin-top: 1.7em; }
  .cs-prose h3 { font-size: 21px; margin-top: 1.4em; }
  .cs-prose h4 { font-size: 17px; }
  .cs-prose p:first-child { font-size: 17px; }
}

/* ── BLOG POST CONTENT (.prose) ──────────────────
 * Styling for the_content() output in single.php.
 * Targets WordPress Gutenberg block classes plus generic HTML.
 * Light theme context.
 */
.prose {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--l-text);
}

/* Spacing between block-level children */
.prose > * + * { margin-top: 1.4em; }

/* Paragraphs */
.prose p,
.prose .wp-block-paragraph {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--l-text);
  margin: 0;
}
.prose p + p,
.prose .wp-block-paragraph + .wp-block-paragraph {
  margin-top: 1.6em;
}

/* Headings — serif, with proper space above/below */
.prose h2, .prose .wp-block-heading.h2,
.prose h3, .prose .wp-block-heading.h3,
.prose h4, .prose .wp-block-heading.h4 {
  font-family: var(--serif);
  color: var(--l-text);
  letter-spacing: -0.01em;
  margin: 0;
}
.prose h2, .prose h2.wp-block-heading {
  font-size: 34px;
  line-height: 1.18;
  margin-top: 1.6em;
  margin-bottom: 0.65em;
}
.prose h3, .prose h3.wp-block-heading {
  font-size: 24px;
  line-height: 1.25;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}
.prose h4, .prose h4.wp-block-heading {
  font-size: 19px;
  line-height: 1.3;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}

/* Heading-after-heading: kill the giant top margin */
.prose h2 + h3, .prose h2 + h4, .prose h3 + h4 { margin-top: 0.7em; }

/* Lists — restore bullets/numbers killed by global reset */
.prose ul, .prose ol,
.prose ul.wp-block-list, .prose ol.wp-block-list {
  padding-left: 1.6em;
  margin: 0;
}
.prose ul + *, .prose ol + *,
.prose ul.wp-block-list + *, .prose ol.wp-block-list + * {
  margin-top: 1.6em;
}
.prose ul, .prose ul.wp-block-list { list-style: disc; }
.prose ol, .prose ol.wp-block-list { list-style: decimal; }
.prose li {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--l-text);
  margin-bottom: 0.5em;
  padding-left: 0.25em;
}
.prose li::marker { color: var(--l-t40); }

/* Nested lists */
.prose li > ul, .prose li > ol { margin-top: 0.5em; margin-bottom: 0.5em; }

/* Blockquote */
.prose blockquote, .prose .wp-block-quote {
  border-left: 2px solid var(--cherry);
  padding-left: 1.4em;
  margin: 1.8em 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--l-text);
}
.prose blockquote p { font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.45; }

/* Inline elements */
.prose strong { color: var(--l-text); font-weight: 600; }
.prose em { font-style: italic; }
.prose a { color: var(--cherry); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary); }
.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.92em;
  background: var(--l-surface);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--l-text);
}
.prose pre {
  background: var(--l-surface);
  border: 0.5px solid var(--l-border);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px;
  line-height: 1.55;
}
.prose pre code { background: transparent; padding: 0; }

/* Media */
.prose img, .prose figure { max-width: 100%; height: auto; margin: 2em 0; }
.prose figcaption { font-family: var(--ui); font-size: 13px; color: var(--l-t55); margin-top: 8px; }

/* Dividers */
.prose hr, .prose .wp-block-separator {
  border: 0;
  border-top: 1.5px solid var(--primary);
  margin: 3em 0;
}

/* Buttons — match light-mode header CTA */
.prose .wp-block-button .wp-block-button__link,
.prose .wp-block-buttons .wp-block-button__link {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  padding: 14px 32px;
  border-radius: 0 !important;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, border-color .2s;
}
.prose .wp-block-button .wp-block-button__link:hover,
.prose .wp-block-buttons .wp-block-button__link:hover {
  background: var(--cherry);
  border-color: var(--cherry);
  color: #fff;
}

/* Scroll navigation — blog posts */
.scroll-nav {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 90;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.scroll-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-btn {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--ui);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.scroll-btn:hover {
  background: var(--cherry);
}
@media (max-width: 720px) {
  .scroll-nav { bottom: 16px; right: 16px; }
  .scroll-btn { width: 36px; height: 36px; font-size: 16px; }
}

/* Share / copy link button — blog posts */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cherry);
  transition: color .2s;
}
.share-btn:hover { color: var(--primary); }
.share-icon { flex-shrink: 0; }

/* Dark theme variant */
.theme-dark .share-btn { color: var(--gold); }
.theme-dark .share-btn:hover { color: var(--d-text); }

/* Author link */
.author-link {
  color: var(--cherry);
  text-decoration: underline;
  text-decoration-color: rgba(171,20,35,.3);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.author-link:hover { text-decoration-color: var(--cherry); }

/* Blog post title */
.blog-title {
  font-size: 54px;
  line-height: 1.08;
  margin-bottom: 22px;
}
@media (max-width: 720px) {
  .blog-title { font-size: 32px; }
}

/* Callout cards — TL;DR / Your next move */
.callout-card {
  background: #FAEAEC;
  border-left: 4px solid var(--cherry);
  padding: 32px 36px;
}
.callout-label {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cherry);
  margin: 0 0 20px;
}
.callout-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--cherry);
  margin-right: 12px;
  vertical-align: middle;
}
.callout-card ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.callout-card li {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(19,16,16,.8);
  margin-bottom: 10px;
}
.callout-card li:last-child { margin-bottom: 0; }
.callout-card a:not(.btn) {
  color: var(--cherry);
  text-decoration: underline;
  text-decoration-color: rgba(171,20,35,.4);
  text-underline-offset: 2px;
  transition: text-decoration-color .2s;
}
.callout-card a:not(.btn):hover { text-decoration-color: var(--cherry); }
@media (max-width: 720px) {
  .callout-card { padding: 24px 24px; }
}

/* Category filter pills — /blog/ archive */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.cat-pill {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--l-border);
  background: transparent;
  color: var(--l-t70);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.cat-pill:hover {
  border-color: var(--cherry);
  color: var(--cherry);
}
.cat-pill.is-active {
  background: var(--cherry);
  border-color: var(--cherry);
  color: var(--l-page);
}

/* Mobile sizing */
@media (max-width: 720px) {
  .prose, .prose p, .prose .wp-block-paragraph, .prose li {
    font-size: 16px;
    line-height: 1.65;
  }
  .prose h2, .prose h2.wp-block-heading { font-size: 26px; margin-top: 1.4em; margin-bottom: 0.55em; }
  .prose h3, .prose h3.wp-block-heading { font-size: 21px; margin-top: 1.2em; margin-bottom: 0.4em; }
  .prose h4, .prose h4.wp-block-heading { font-size: 17px; }
  .prose blockquote, .prose blockquote p { font-size: 19px; }
}

/* ── FIX CS-PROSE LIST BULLETS (case studies content) ── */
.cs-prose ul { list-style: disc; }
.cs-prose ol { list-style: decimal; }
.cs-prose li::marker { color: var(--d-t40); }

/* ── THANK-YOU PAGE ──────────────────── */
.ty-links {
  display: flex;
  flex-direction: column;
  margin-top: 36px;
}
.ty-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 0.5px solid var(--d-border);
  transition: padding-left .2s ease, border-bottom-color .2s ease;
}
.ty-link:first-child { border-top: 0.5px solid var(--d-border); }
.ty-link:hover {
  padding-left: 10px;
  border-bottom-color: var(--gold);
}
.ty-link-label { display: flex; flex-direction: column; gap: 6px; }
.ty-link-cat {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.ty-link-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.22;
  color: var(--d-text);
  letter-spacing: -.01em;
}
.ty-link-arrow {
  font-family: var(--ui);
  font-size: 22px;
  color: var(--gold);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.ty-link:hover .ty-link-arrow { transform: translateX(5px); }

@media (max-width: 720px) {
  .ty-link-title { font-size: 18px; }
  .ty-link { padding: 20px 0; }
}

/* ── LANDING PAGE (/start/) ────────────────────
 * Stripped layout: hides nav menu, hides CTA button in header,
 * collapses footer to just the copyright line.
 * Used for paid-traffic conversion pages where focus must stay on the form.
 */
body.is-landing .nav-links,
body.is-landing .nav-cta,
body.is-landing .footer-grid {
  display: none !important;
}

body.is-landing .nav .nav-inner {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

body.is-landing .footer-bottom {
  border-top: 0;
  padding-top: 0;
  justify-content: center;
  text-align: center;
}

body.is-landing footer {
  padding: 32px 0 28px;
}

/* Landing page hero actions: CTA on top, partner badge stacked below */
.lp-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  margin-top: 36px;
}
.lp-partner-badge { display: flex; align-items: center; }
.lp-partner-badge img { display: block; height: 80px; width: auto; }

/* Social proof grid (left: industries + case studies link, right: review cards) */
.lp-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.lp-reviews {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lp-review {
  background: var(--d-bg);
  border: 0.5px solid var(--d-border);
  padding: 28px 30px;
  position: relative;
}
.lp-review::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 20px;
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
}
.lp-review-quote {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--d-text);
  margin-bottom: 18px;
  font-style: italic;
  padding-top: 8px;
}
.lp-review-attr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 16px 0 0;
  font-family: var(--sans);
}
.lp-review-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--d-text);
  border-bottom: 1px solid var(--d-t30);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.lp-review-name:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.lp-review-role {
  font-size: 13px;
  color: var(--d-t70);
  line-height: 1.4;
}
.lp-review-source {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}

/* FAQ stack */
.lp-faq {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}
.lp-faq-item {
  padding: 28px 0;
  border-bottom: 0.5px solid var(--d-border);
}
.lp-faq-item:first-child { border-top: 0.5px solid var(--d-border); }
.lp-faq-item h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--d-text);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.lp-faq-item p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--d-t70);
  margin: 0;
}

/* Form wrapper on landing page (slight surface contrast) */
.lp-form-wrap {
  background: var(--d-surface);
  border: 0.5px solid var(--d-border);
  padding: 48px 40px 40px;
}

@media (max-width: 960px) {
  .lp-social-grid { grid-template-columns: 1fr; gap: 48px; }
  .lp-hero-actions { gap: 24px; }
  .lp-partner-badge img { height: 64px; }
  .lp-form-wrap { padding: 32px 24px 28px; }
}
@media (max-width: 600px) {
  .lp-review-quote { font-size: 16px; }
  .lp-faq-item h3 { font-size: 19px; }
}

/* Landing page — case study metrics tease (auto-populates from case studies with results) */
.lp-metrics-tease {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.lp-metric {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 18px;
  background: var(--d-bg);
  border: 0.5px solid var(--d-border);
  transition: border-color .25s ease, transform .25s ease;
}
.lp-metric:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.lp-metric-value {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  color: var(--d-text);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.lp-metric-label {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.lp-metric-industry {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--d-t55);
  margin-top: auto;
  padding-top: 14px;
  border-top: 0.5px solid var(--d-border);
}

@media (max-width: 720px) {
  .lp-metrics-tease { grid-template-columns: 1fr; gap: 10px; }
  .lp-metric-value { font-size: 32px; }
}

/* ── LOCAL LANDING PAGE (/start/local/) ──── */

/* Pain points */
.lp-pain-stack {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.lp-pain-block h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--d-text);
  margin-bottom: 12px;
}
.lp-pain-block p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--d-t70);
}

/* Results — case study rows */
.lp-results-stack {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.lp-result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.lp-result-text h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  color: var(--d-text);
  margin-bottom: 16px;
}
.lp-result-text p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--d-t70);
}
.lp-result-card {
  background: var(--d-bg);
  border: 0.5px solid var(--d-border);
  padding: 16px;
}
.lp-result-card img {
  width: 100%;
  height: auto;
  display: block;
}
.lp-result-caption {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--d-t40);
  margin-top: 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .lp-result-row { grid-template-columns: 1fr; gap: 28px; }
  .lp-pain-block h3 { font-size: 19px; }
  .lp-result-text h3 { font-size: 21px; }
}

/* ─────────────────────────────────────────────
   TOOL PAGES — MER Calculator
   ───────────────────────────────────────────── */

.mer-tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* INPUTS */
.mer-field { margin-bottom: 22px; }
.mer-field label {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.mer-label-meta {
  text-transform: none;
  letter-spacing: .04em;
  font-weight: 400;
  color: var(--d-t55);
  font-size: 10px;
  margin-left: 6px;
}
.mer-input-wrap {
  display: flex;
  align-items: stretch;
  border: 0.5px solid var(--d-border);
  background: var(--d-surface);
  transition: border-color .2s ease;
}
.mer-input-wrap:focus-within { border-color: var(--gold); }
.mer-affix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--d-t55);
  background: rgba(0,0,0,0.15);
}
.mer-affix-suffix {
  background: rgba(0,0,0,0.15);
  border-left: 0.5px solid var(--d-border);
  border-right: none;
}
.mer-input-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 16px 16px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--d-text);
  outline: none;
  min-width: 0;
}
.mer-input-wrap input::placeholder { color: var(--d-t30); }
.mer-input-wrap input::-webkit-outer-spin-button,
.mer-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mer-input-wrap input[type=number] { -moz-appearance: textfield; }

.mer-help {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--d-t55);
  margin-top: 8px;
}
.mer-section-divider {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--d-t40);
  margin: 36px 0 18px;
  padding-top: 24px;
  border-top: 0.5px solid var(--d-border);
}

.mer-channels {
  margin-top: 12px;
  padding: 0;
}
.mer-channels summary {
  cursor: pointer;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 14px 0;
  list-style: none;
  border-top: 0.5px solid var(--d-border);
}
.mer-channels summary::-webkit-details-marker { display: none; }
.mer-channels summary::before {
  content: '+ ';
  font-family: var(--serif);
  font-size: 16px;
  margin-right: 6px;
  transition: transform .2s;
}
.mer-channels[open] summary::before { content: '− '; }
.mer-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
}

/* RESULTS */
.mer-results {
  background: var(--d-surface);
  border: 0.5px solid var(--d-border);
  padding: 48px 44px;
  position: sticky;
  top: 100px;
}
.mer-result-label {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.mer-result-value {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
  color: var(--d-text);
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.mer-result-explain {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--d-t70);
  margin: 0;
}

.mer-floor-divider {
  height: 0.5px;
  background: var(--d-border);
  margin: 36px 0 28px;
}
.mer-floor-value {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  color: var(--d-text);
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
.mer-floor-explain {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--d-t70);
  margin: 0 0 18px;
}

.mer-status {
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 16px;
  border: 0.5px solid var(--d-border);
  margin: 0;
}
.mer-status.is-good { color: var(--gold); border-color: var(--gold); background: rgba(213, 177, 95, 0.06); }
.mer-status.is-bad  { color: var(--cherry); border-color: var(--cherry); background: rgba(171, 20, 35, 0.06); }
.mer-status.is-neutral { color: var(--d-t70); }

/* Channel mix bar */
.mer-channel-bar {
  display: flex;
  height: 12px;
  border: 0.5px solid var(--d-border);
  margin-bottom: 16px;
  overflow: hidden;
}
.mer-bar-seg { display: block; height: 100%; transition: width .25s ease; }
.mer-channel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--d-t70);
}
.mer-channel-list li {
  padding: 6px 0;
  display: flex;
  align-items: center;
}
.mer-bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Explainer list */
.mer-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.mer-list li {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--d-t70);
  padding: 10px 0 10px 24px;
  border-bottom: 0.5px solid var(--d-border);
  position: relative;
}
.mer-list li::before {
  content: '·';
  position: absolute;
  left: 8px;
  color: var(--gold);
  font-weight: bold;
}
.mer-list li:last-child { border-bottom: 0; }

@media (max-width: 960px) {
  .mer-tool { grid-template-columns: 1fr; gap: 36px; }
  .mer-results { position: static; padding: 36px 28px; }
  .mer-result-value { font-size: 56px; }
  .mer-floor-value { font-size: 38px; }
  .mer-channels-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   TESTIMONIAL NAME LINK (homepage)
   ───────────────────────────────────────────── */
.testi-name a {
  color: var(--d-text);
  text-decoration: none;
  border-bottom: 1px solid var(--d-t30);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.testi-name a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ─────────────────────────────────────────────
   DETROIT PAGE — process steps, industries, banner
   ───────────────────────────────────────────── */

/* Detroit hero alignment: centered on desktop, left-aligned on mobile */
.det-hero { text-align: center; }
@media (max-width: 720px) {
  .det-hero { text-align: left; }
}

.det-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.det-step {
  background: var(--d-surface);
  border: 0.5px solid var(--d-border);
  padding: 32px 28px 28px;
}
.det-step-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--cherry);
  line-height: 1;
  margin: 0 0 12px;
}
.det-step-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--d-text);
  line-height: 1.2;
  margin: 0 0 12px;
}
.det-step-body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--d-t70);
  margin: 0;
}

.det-divider {
  padding: 8px 0 8px;
}
.det-divider-line {
  height: 0.5px;
  background: var(--d-border);
}

.det-industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.det-industry {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--d-text);
  background: var(--d-bg);
  border-left: 2px solid var(--cherry);
  padding: 18px 22px;
}

.det-photo {
  margin: 0;
}
.det-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: 0.5px solid var(--d-border);
}
.det-photo figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--d-t55);
  margin-top: 12px;
}

.det-banner {
  background: var(--d-surface);
  border-top: 0.5px solid var(--d-border);
  border-bottom: 0.5px solid var(--d-border);
  padding: 48px 0;
}
.det-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .det-process { grid-template-columns: 1fr; gap: 12px; }
  .det-industries { grid-template-columns: 1fr; }
  .det-banner-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
