/*
  VOICE   Calm, senior, plain-spoken: an operator talking to a board, not an agency pitching.
  IDEA    The BFoundry mark as structure: a solid spine, two blocks built on it, one copper spark.
  PICTURE Peter's portrait on the midnight field, a copper spine rule beside it and the spark at its corner.
  COLOUR  Sand ground, midnight bands to the edges, midnight tint for structure, copper only as the spark.
  TYPE    Space Grotesk 600 for headings, Inter for body. LAYOUT: full-width bands, 1180px content.
*/

:root {
  --midnight: #14213D;
  --tint: #34497A;
  --copper: #C8743A;
  --copper-deep: #9A5422;
  --sand: #F4EFE6;
  --linen: #E9E2D5;
  --stone: #5E636B;
  --blocks-dark: #8A9BBF;
  --copper-dark: #E7C9A9;
  --white: #FFFFFF;
  --display: "Space Grotesk", Arial, sans-serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
  --max: 1180px;
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--midnight);
  font: 400 17px/1.6 var(--body);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--copper-deep); text-underline-offset: 3px; }
a:hover { color: var(--midnight); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5.2vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(5vw, 20px); }
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band.tight { padding: clamp(48px, 6vw, 80px) 0; }
.band.dark { background: var(--midnight); color: var(--sand); }
.band.dark a:not(.btn) { color: var(--copper-dark); }
.band.linen { background: var(--linen); }
.band.white { background: var(--white); }
.muted { color: var(--stone); }
.dark .muted { color: var(--blocks-dark); }

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--midnight); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--linen); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand img { width: 152px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav a { color: var(--midnight); text-decoration: none; font-weight: 500; font-size: 16px; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--copper-deep); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--copper); }
.menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius);
  font: 600 16px/1.2 var(--body);
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper-deep); color: var(--white); }
.btn-primary:hover { background: var(--midnight); color: var(--white); }
.dark .btn-primary { background: var(--copper); color: var(--midnight); }
.dark .btn-primary:hover { background: var(--copper-dark); color: var(--midnight); }
.btn-ghost { border-color: currentColor; color: var(--midnight); }
.dark .btn-ghost { color: var(--sand); }
.btn-ghost:hover { background: var(--midnight); color: var(--sand); border-color: var(--midnight); }
.dark .btn-ghost:hover { background: var(--sand); color: var(--midnight); border-color: var(--sand); }
.nav .btn { padding: 10px 18px; min-height: 44px; color: var(--white); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Hero */
.hero { background: var(--midnight); color: var(--sand); overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero h1 { color: var(--white); }
.hero .lede { color: #D9DEE9; }
.hero .tagline { font-family: var(--display); font-weight: 500; color: var(--copper-dark); margin-bottom: 20px; font-size: 18px; }

/* Hero portrait */
.hero-portrait { position: relative; margin: 0 0 0 auto; width: 100%; max-width: 420px; }
.hero-portrait picture { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero-portrait picture { box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hero-portrait::before {
  content: ""; position: absolute; left: -18px; top: 28px; bottom: 28px; width: 6px;
  background: var(--copper); border-radius: 3px;
}
.hero-portrait figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 24px 20px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(to top, rgba(14,24,48,.92), rgba(14,24,48,0));
  display: flex; flex-direction: column; gap: 2px;
}
.hero-portrait figcaption strong { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--white); }
.hero-portrait figcaption span { font-size: 15px; color: var(--copper-dark); }
.hero-portrait .spark {
  position: absolute; right: -14px; top: -14px; width: 30px; height: 30px;
  background: var(--copper); transform: rotate(45deg);
}
.hero-portrait.animate .spark { animation: spark 1.1s cubic-bezier(.2,.8,.2,1) .35s both; }
@keyframes spark {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  70% { transform: scale(1.2) rotate(52deg); opacity: 1; }
  100% { transform: scale(1) rotate(45deg); opacity: 1; }
}

/* Problem / three columns */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: 48px; }
.point { border-top: 2px solid var(--midnight); padding-top: 22px; }
.point p { color: var(--stone); margin: 0; }
.dark .point { border-top-color: var(--tint); }
.dark .point p { color: #C9D0DE; }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.section-head p { margin: 0; }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.service {
  background: var(--white);
  border-radius: 10px;
  padding: clamp(28px, 3.4vw, 44px);
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(20,33,61,.06), 0 18px 40px -28px rgba(20,33,61,.35);
}
.service .icon { width: 44px; height: 44px; margin-bottom: 24px; }
.service ul { margin: 8px 0 28px; padding: 0; list-style: none; }
.service li { padding: 10px 0 10px 26px; border-top: 1px solid var(--linen); position: relative; }
.service li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 8px; height: 8px; background: var(--copper); transform: rotate(45deg);
}
.service .btn { margin-top: auto; align-self: flex-start; }

/* Credentials band */
.creds { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { display: grid; gap: 0; margin: 0; }
.fact { padding: 22px 0; border-top: 1px solid rgba(138,155,191,.35); }
.fact:last-child { border-bottom: 1px solid rgba(138,155,191,.35); }
.fact dt { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; color: var(--white); line-height: 1.15; }
.fact dd { margin: 6px 0 0; color: var(--blocks-dark); font-size: 16px; }

/* Approach: Build · Lead · Grow */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; counter-reset: s; }
.step { background: var(--sand); border-radius: 10px; padding: 32px; position: relative; }
.white .step { background: var(--sand); }
.linen .step { background: var(--white); }
.step .word { font-family: var(--display); font-weight: 600; font-size: 30px; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step .word::before { content: ""; width: 12px; height: 12px; background: var(--copper); transform: rotate(45deg); flex: none; }
.step p { margin: 0; color: var(--stone); }

/* Audience list */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 40px; padding: 0; list-style: none; }
.fit li { padding: 18px 0 18px 34px; border-top: 1px solid var(--linen); position: relative; }
.fit li::before { content: ""; position: absolute; left: 4px; top: 27px; width: 12px; height: 2px; background: var(--copper-deep); }
.fit li::after { content: ""; position: absolute; left: 12px; top: 23px; width: 6px; height: 6px; border-top: 2px solid var(--copper-deep); border-right: 2px solid var(--copper-deep); transform: rotate(45deg); }

/* CTA */
.cta { text-align: left; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 40px; align-items: center; }
.cta .email { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: var(--white); text-decoration: none; word-break: break-word; }
.cta .email:hover { color: var(--copper-dark); }
.cta-box { border-left: 2px solid var(--copper); padding-left: 28px; }
.cta-box p { margin: 0 0 6px; color: var(--blocks-dark); font-size: 15px; }

/* Page hero (inner pages) */
.page-hero { background: var(--midnight); color: var(--sand); }
.page-hero .wrap { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 48px; align-items: end; }
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: #D9DEE9; margin-bottom: 0; }
.page-hero .crumb { font-size: 15px; margin-bottom: 18px; }
.page-hero .crumb a { color: var(--copper-dark); text-decoration: none; }
.page-hero .glyph { width: 100%; max-width: 200px; justify-self: end; opacity: .95; }

/* Prose + side column */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.split.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); }
.aside-card { background: var(--white); border-radius: 10px; padding: 32px; align-self: start; position: sticky; top: 100px; }
.aside-card h3 { margin-bottom: 14px; }
.aside-card dl { margin: 0; }
.aside-card dt { font-weight: 600; margin-top: 16px; }
.aside-card dd { margin: 2px 0 0; color: var(--stone); }

/* About portrait */
.portrait { border-radius: 10px; overflow: hidden; background: var(--midnight); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.timeline { list-style: none; padding: 0; margin: 32px 0 0; }
.timeline li { padding: 20px 0; border-top: 1px solid var(--linen); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
.timeline strong { font-family: var(--display); font-weight: 600; font-size: 18px; }
.timeline p { margin: 0; color: var(--stone); }

/* Footer */
.site-footer { background: #0E1830; color: var(--blocks-dark); padding: 64px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.8fr); gap: 40px; }
.site-footer img { width: 220px; height: auto; margin-bottom: 18px; }
.site-footer h4 { font: 600 15px/1.3 var(--body); color: var(--sand); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--copper-dark); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(138,155,191,.25); padding-top: 24px; margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-portrait.animate .spark { animation: none; }
  .btn, .btn .arrow { transition: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .hero .wrap, .creds, .section-head, .split, .split.wide-left, .cta .wrap, .page-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { max-width: 380px; margin: 0 auto; }
  .page-hero .glyph { display: none; }
  .aside-card { position: static; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; background: transparent; color: var(--midnight); cursor: pointer; border-radius: var(--radius);
  }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand); border-bottom: 1px solid var(--linen);
    padding: 8px max(5vw, 20px) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-top: 1px solid var(--linen); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 12px; justify-content: center; border-top: 0; }
  .cols-3, .services, .steps, .fit { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero .wrap { gap: 40px; }
  .hero-portrait { max-width: 320px; }
  .hero-portrait::before { left: -12px; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}
