@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
  --charcoal: #1E1E1E;
  --blue: #0D3B66;
  --mist: #F2F4F7;
  --line: #E3E7EC;
  --muted: #5A6470;
  --max: 1120px;
  --measure: 68ch;
  --section-gap: 64px;
  --header-height: 139px;
  --font: 'Inter', Arial, Helvetica, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Inter', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: #fff;
  line-height: 1.65;
  font-size: 1.125rem;
}

a { color: var(--blue); }

/* ── Header ────────────────────────────────────────────────── */

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 40px;
}

.brand img { display: block; height: 83px; width: auto; }

.header-cta {
  font-size: 15px;
  text-decoration: none;
  color: var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-cta:hover { color: var(--blue); border-color: var(--blue); }

/* ── Desktop nav ───────────────────────────────────────────── */

.site-nav { display: flex; gap: 24px; align-items: center; }
.nav-link {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue); }
.nav-link[aria-current="page"] {
  color: var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 2px;
}

/* ── Mobile nav toggle ─────────────────────────────────────── */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  padding: 8px 0;
  line-height: 1;
}
.nav-toggle:hover { color: var(--blue); }

.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  z-index: 200;
  padding: 8px 0;
}
.nav-panel.is-open { display: block; }
.nav-panel .nav-link {
  display: flex;
  align-items: center;
  padding: 14px 40px;
  font-size: 16px;
  min-height: 48px;
  border-bottom: none;
}
.nav-panel .nav-link[aria-current="page"] {
  color: var(--charcoal);
  font-weight: 600;
  border-bottom: none;
}

/* ── Layout ────────────────────────────────────────────────── */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Type scale ────────────────────────────────────────────── */

h1 {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.5vw, 3.75rem);
  line-height: 1.08;
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 600;
  color: var(--charcoal);
}

h3 {
  margin: 40px 0 12px;
  font-family: var(--font-sans);
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--charcoal);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  padding: 48px 0 var(--section-gap);
}

.hero:has(.hero-portrait) {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.hero-copy { min-width: 0; }

.hero-portrait { min-width: 0; display: flex; }

.hero-portrait picture { display: block; flex: 1; }

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.lede {
  margin: 0 0 32px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: #2C333B;
}

/* ── CTA button ────────────────────────────────────────────── */

.cta {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  line-height: 1.4;
}
.cta:hover { background: #0a2f53; }
.cta:disabled { opacity: 0.6; cursor: default; }

/* ── Content blocks ────────────────────────────────────────── */

.block { padding: var(--section-gap) 0; }

.block-lede {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  max-width: var(--measure);
}

.about-proof { margin-top: 18px; }

/* Anchor scroll offset */
#about,
#contact {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* ── Two Causes section (full-bleed, inside main) ──────────── */

.two-causes {
  background: rgba(13, 59, 102, 0.04);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  padding-left: max(40px, calc((100vw - var(--max)) / 2 + 40px));
  padding-right: max(40px, calc((100vw - var(--max)) / 2 + 40px));
}

.two-causes .eyebrow { margin-bottom: 32px; color: var(--blue); }

.cause-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.cause-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
}

.cause-panel-label {
  display: block;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cause-panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--blue);
}

.cause-panel p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #2C333B;
}

.two-causes-footer {
  font-size: 18px;
  color: #2C333B;
  line-height: 1.6;
  margin: 0;
}

.two-causes-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.two-causes-cta:hover { background: var(--blue); color: #fff; }

/* ── What I do — mist background ──────────────────────────── */

.what-i-do-mist {
  background: var(--mist);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  padding-left: max(40px, calc((100vw - var(--max)) / 2 + 40px));
  padding-right: max(40px, calc((100vw - var(--max)) / 2 + 40px));
}

/* ── Signals list ──────────────────────────────────────────── */

.signals {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.signals li {
  position: relative;
  padding-left: 26px;
  font-size: 18px;
  color: #2C333B;
}
.signals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

/* ── Step name (audit heading on homepage) ─────────────────── */

.step-name {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--charcoal);
}

/* ── Audit teaser (homepage) ───────────────────────────────── */

.audit-teaser {
  margin-top: 24px;
  padding-left: 24px;
  border-left: 3px solid var(--blue);
}
.audit-teaser p {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 20px;
  max-width: var(--measure);
  color: #2C333B;
}
.audit-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
}

/* ── Audit panel (/commercial-story-audit) ─────────────────── */

.audit-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  background: #fff;
  max-width: 720px;
}

.audit-row {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.audit-row:first-child {
  padding-top: 0;
  border-top: none;
}

.audit-label {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.audit-row p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  color: #2C333B;
  line-height: 1.6;
}

/* ── Feedback / testimonials ───────────────────────────────── */

.feedback-list {
  margin-top: 32px;
  display: grid;
  gap: 0;
}

.feedback-item {
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.feedback-quote {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.45;
}

.feedback-cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.feedback-note {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ── Who cols ──────────────────────────────────────────────── */

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

/* ── Prose lists ───────────────────────────────────────────── */

.prose-list {
  list-style: disc;
  margin: 16px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.prose-list li {
  font-family: var(--font-sans);
  font-size: 18px;
  color: #2C333B;
  line-height: 1.55;
}

/* ── Who-cols label headings ───────────────────────────────── */

.who-cols .col-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ── FAQ section divider ───────────────────────────────────── */

.faq-intro {
  margin: 0 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Pull quote ────────────────────────────────────────────── */

.pull-quote {
  margin: 40px 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--blue);
  max-width: var(--measure);
}
.pull-quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--blue);
}

/* ── Deal-state cards ──────────────────────────────────────── */

.deal-states {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.deal-state {
  padding: 20px 24px;
  background: var(--mist);
  border-radius: 6px;
  border-left: 3px solid transparent;
}
.deal-state p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  color: #2C333B;
  line-height: 1.6;
}
.deal-state--active  { border-left-color: #2E7D32; }
.deal-state--delay   { border-left-color: #F57C00; }
.deal-state--stall   { border-left-color: #C62828; }
.deal-state--zombie  { border-left-color: #6A1B9A; }
.deal-state--nodecision { border-left-color: var(--muted); }

/* ── Checklist ─────────────────────────────────────────────── */

.check-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  font-family: var(--font-sans);
  font-size: 18px;
  color: #2C333B;
  line-height: 1.55;
  padding-left: 28px;
  position: relative;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--blue);
  border-radius: 3px;
  background: transparent;
}

/* ── FAQ ───────────────────────────────────────────────────── */

.faq-q {
  margin: 32px 0 6px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
  max-width: var(--measure);
}
.faq-q:first-child { margin-top: 0; }
.faq-a {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  color: #2C333B;
  max-width: var(--measure);
  line-height: 1.6;
}

/* ── About ─────────────────────────────────────────────────── */

.about-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* ── Form prompt ───────────────────────────────────────────── */

.form-prompt {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--blue);
  margin: 28px 0 0;
  max-width: 50ch;
}

/* ── Email link (obfuscated) ───────────────────────────────── */

.js-email {
  display: inline-block;
  margin-top: 16px;
  font-size: 16px;
  color: var(--blue);
}

/* ── Contact form ──────────────────────────────────────────── */

.contact-form {
  margin-top: 44px;
  display: grid;
  gap: 0;
  max-width: 560px;
  position: relative;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-field { padding: 20px 0; }

.form-field + .form-field { border-top: 1px solid var(--line); }

.form-field label {
  display: block;
  font-size: 15px;
  color: var(--charcoal);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.required { color: var(--muted); font-weight: 400; }

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: #c8cdd4; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.08);
  background: #fff;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); opacity: 0.55; }

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

.form-field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235A6470' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--mist);
}
.form-field select:focus { background-color: #fff; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.form-row .form-field { padding: 0; }
.form-row .form-field + .form-field { border-top: none; }

.form-actions {
  padding-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.form-status {
  font-size: 16px;
  line-height: 1.4;
  min-height: 1px;
  padding-top: 2px;
}

.form-success { color: var(--blue); }
.form-error { color: #8B3A3A; }

.privacy-note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}
.privacy-note a { color: var(--muted); }
.privacy-note a:hover { color: var(--blue); }

.contact-rows {
  display: grid;
  gap: 16px;
  max-width: 460px;
  margin-top: 40px;
}
.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.contact-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.contact-row a { text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }

/* ── About page banner (full-bleed image below header) ─────── */

.about-banner {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 62%;
}

/* ── About page prose and image layout ─────────────────────── */

.about-body { max-width: var(--max); }

.about-body p {
  max-width: var(--measure);
  font-size: 18px;
  color: #2C333B;
  line-height: 1.65;
  margin: 0 0 20px;
}

.about-body h2 { margin-top: 16px; margin-bottom: 16px; }

.about-chapter {
  display: block;
  margin-top: 56px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.about-chapter:first-child { margin-top: 32px; }

.about-figure {
  float: right;
  width: 480px;
  margin: 4px 0 24px 40px;
  clear: right;
}
.about-figure img { display: block; width: 100%; height: auto; }
.about-figure figcaption {
  margin: 0;
  padding: 10px 0 0;
  border-top: 2px solid var(--blue);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

/* ── About teaser (replaces full about section on other pages) */

.about-teaser .block-lede { max-width: var(--measure); }

/* ── Closing CTA section (outside main, navy) ──────────────── */

.site-cta {
  background: var(--blue);
  color: #fff;
  padding: 80px 40px;
  position: relative;
}
.site-cta-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.site-cta h2 {
  color: #fff;
  margin-bottom: 16px;
}
.site-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
}
.site-cta .cta {
  background: #fff;
  color: var(--blue);
}
.site-cta .cta:hover { background: rgba(255,255,255,0.9); color: var(--blue); }

/* Industrial banner on site-cta — desktop only, not loaded on mobile */
@media (min-width: 769px) {
  .site-cta {
    background:
      linear-gradient(rgba(13,59,102,0.80), rgba(13,59,102,0.80)),
      url('/industrial-dusk-1200.jpg') center / cover no-repeat;
  }
}

/* ── Cookie banner ─────────────────────────────────────────── */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#cookie-banner.cb-visible { transform: translateY(0); opacity: 1; }

.cb-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cb-text {
  margin: 0;
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.5;
  flex: 1;
}

.cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cb-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.cb-btn.cb-primary { background: var(--mist); color: var(--charcoal); border-color: var(--line); }
.cb-btn.cb-primary:hover { background: #e8ebef; border-color: #c8cdd4; }
.cb-btn.cb-secondary { background: transparent; color: var(--muted); border-color: transparent; }
.cb-btn.cb-secondary:hover { color: var(--charcoal); border-color: var(--line); }

/* ── Cookie panel ──────────────────────────────────────────── */

#cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#cookie-panel.cp-visible { opacity: 1; pointer-events: auto; }

.cp-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.25); }

.cp-box {
  position: relative;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  max-width: 480px;
  width: calc(100% - 48px);
  padding: 32px;
  outline: none;
}

.cp-title { margin: 0 0 24px; font-size: 18px; font-weight: 700; color: var(--charcoal); }

.cp-group { display: grid; gap: 0; }

.cp-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cp-label { flex: 1; }
.cp-label strong { display: block; font-size: 15px; color: var(--charcoal); margin-bottom: 4px; }
.cp-desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }

.cp-always { font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 2px; white-space: nowrap; }

.cp-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cp-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.cp-slider {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.cp-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.cp-toggle input:checked + .cp-slider { background: var(--blue); }
.cp-toggle input:checked + .cp-slider::before { transform: translateX(20px); }
.cp-toggle input:focus-visible + .cp-slider { outline: 2px solid var(--blue); outline-offset: 2px; }

.cp-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ── Footer (navy, outside main) ───────────────────────────── */

.site-footer { background: var(--blue); }

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 40px 48px;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.site-footer img {
  display: block;
  opacity: 0.5;
  filter: invert(1) brightness(2);
  align-self: center;
}

.footer-reg {
  flex: 1 1 300px;
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  flex-basis: 100%;
  margin-top: 12px;
}

.footer-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
}
.footer-link:hover { color: #fff; }

.footer-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.footer-btn:hover { color: #fff; }
.footer-link.js-email { margin-top: 0; font-size: 13px; color: rgba(255,255,255,0.65); }

/* ── Responsive: mobile nav at 900px ───────────────────────── */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}

/* ── Portrait phones/tablets: stack hero vertically ────────── */

@media (max-width: 768px) and (orientation: portrait) {
  .hero:has(.hero-portrait) { grid-template-columns: 1fr; gap: 32px; }
  .hero-portrait { order: 2; max-width: 280px; margin: 0 auto; width: 100%; }
}

/* ── Responsive: small screens ─────────────────────────────── */

@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 2.25rem; line-height: 1.1; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  .lede { font-size: 18px; }
  .block-lede { font-size: 18px; }
  .brand img { height: 68px; }
  .hero { padding: 24px 0 36px; grid-template-columns: 1fr; gap: 32px; }
  .hero-portrait { order: 2; max-width: 280px; margin: 0 auto; width: 100%; }
  .about-banner { height: 220px; }
  .about-figure { float: none; width: 100%; margin: 0 0 24px 0; }
  .block { padding: 36px 0; }
  .site-header { padding: 20px 24px; }
  main { padding: 0 24px; }
  .two-causes,
  .what-i-do-mist {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .cause-panels { grid-template-columns: 1fr; gap: 16px; }
  .nav-panel .nav-link { padding: 14px 24px; }
  .site-cta { padding: 64px 24px; }
  .cb-inner { padding: 20px 24px; flex-direction: column; align-items: stretch; gap: 16px; }
  .cb-actions { justify-content: stretch; }
  .cb-actions .cb-btn { flex: 1; text-align: center; }
  .cp-box { padding: 24px; }
  .contact-row { grid-template-columns: 90px 1fr; }
  .form-prompt { font-size: 20px; }
  .contact-form { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .form-field + .form-field { border-top: 1px solid var(--line); padding-top: 20px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .cta { text-align: center; }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-portrait img { max-width: 160px; }
  .who-cols { grid-template-columns: 1fr; gap: 40px; }
  .site-footer-inner { padding: 24px 24px 40px; }
  .audit-panel { padding: 24px; }
}

/* ── Worked example (full-bleed tinted, mirrors .two-causes) ── */

.worked-example {
  background: rgba(13, 59, 102, 0.04);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  padding-left: max(40px, calc((100vw - var(--max)) / 2 + 40px));
  padding-right: max(40px, calc((100vw - var(--max)) / 2 + 40px));
}

.worked-example .eyebrow { margin-bottom: 16px; }

.worked-example h3 {
  margin: 32px 0 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--blue);
}

/* ── Score grid ──────────────────────────────────────────── */

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0 40px;
}

.score-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.score-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

/* ── Site-CTA secondary link ─────────────────────────────── */

.hero .cta { margin-top: 32px; }
.site-cta .cta { margin-top: 32px; }

.site-cta-secondary {
  display: block;
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
}
.site-cta-secondary:hover { color: #fff; }

/* Three-column cause panels (audit dimensions) */
.cause-panels--three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .cause-panels--three { grid-template-columns: 1fr; }
}

/* Section eyebrow label above h2 */
.block .eyebrow + h2 { margin-top: 6px; }

@media (max-width: 600px) {
  .score-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .score-number { font-size: 1.75rem; }
  .worked-example {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ── Focus styles ──────────────────────────────────────────── */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

input:focus, select:focus, textarea:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
