/* Fonts: Montserrat for headings, Open Sans for body text (both SIL OFL). */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* Brand palette */
:root {
  --slate: #2F3B44;      /* Jet Black */
  --teal: #28B29A;       /* Ocean Mist */
  --honey: #EDAE49;      /* Honey Bronze */
  --amaranth: #7B0828;   /* Dark Amaranth */
  --cream: #F3E9D2;      /* Vanilla Cream */

  --teal-dark: #1B7F6D;  /* teal dark enough for text on white */
  --on-teal: #17201f;    /* text on teal buttons */

  --bg: #ffffff;
  --surface: #faf6ec;    /* light cream for alternate sections */
  --border: #e6dfcc;
  --text: var(--slate);
  --muted: #56626b;
  --accent: var(--teal);
  --link: var(--teal-dark);

  --font-heading: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 8px;
  --max-width: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  line-height: 1.05;
}
.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal);
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--slate);
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}
nav a {
  text-decoration: none;
  color: var(--muted);
}
nav a:hover { color: var(--slate); }
nav .nav-cta {
  padding: 6px 14px;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--on-teal);
}
nav .nav-cta:hover { color: var(--on-teal); filter: brightness(1.06); }

/* Hero: slate, with a muted chart illustration fading in from the right */
.hero {
  --hero-bg: var(--slate);
  --text: #ffffff;
  --muted: #d5dbdf;

  padding: 112px 0 96px;
  color: var(--text);
  background-color: var(--hero-bg);
  background-image:
    linear-gradient(90deg, var(--hero-bg) 0%, rgb(47 59 68 / 0.92) 50%, rgb(47 59 68 / 0.55) 72%, rgb(47 59 68 / 0.35) 100%),
    url("images/hero-charts.svg"),
    radial-gradient(ellipse at 78% 60%, #3e4e5a 0%, var(--hero-bg) 70%);
  background-repeat: no-repeat;
  background-size: cover, auto 100%, cover;
  background-position: center, right -80px center, center;
}

/* Keep the bars clear of the headline on mid-width screens */
@media (max-width: 1400px) {
  .hero { background-position: center, right -180px center, center; }
}

/* Too narrow to sit beside the text: dim it evenly behind */
@media (max-width: 1100px) {
  .hero {
    background-image:
      linear-gradient(rgb(47 59 68 / 0.85), rgb(47 59 68 / 0.85)),
      url("images/hero-charts.svg"),
      radial-gradient(ellipse at 78% 60%, #3e4e5a 0%, var(--hero-bg) 70%);
    background-position: center, right -120px center, center;
  }
}

.hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero .highlight { color: var(--teal); }

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 32px;
}

.button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--on-teal);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { filter: brightness(1.06); }

/* Sections */
.section { padding: 88px 0; scroll-margin-top: 72px; }
.section-alt { background: var(--surface); }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 32px;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--honey);
}

/* What we do */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }

/* How we work */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--honey);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}
.steps h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; }
.steps p { margin: 0; color: var(--muted); }
.note {
  margin: 40px 0 0;
  padding: 16px 20px;
  border-left: 4px solid var(--honey);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px 48px;
  align-items: start;
}
.headshot {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 35%;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 4px var(--teal);
}
.about p { margin: 0 0 16px; }
.ticks {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.ticks li { margin-bottom: 8px; }
.ticks li::marker { color: var(--teal); }
.callout {
  grid-column: 2;
  background: var(--cream);
  border-left: 4px solid var(--amaranth);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px;
}
.callout h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; color: var(--amaranth); }
.callout p { margin: 0; }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 24px; }
  .callout { grid-column: auto; }
  .headshot { width: 160px; height: 160px; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 48px;
  align-items: center;
}
.contact-logo {
  width: 200px;
  height: auto;
}
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
  .contact-logo { width: 140px; }
}
.contact-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--slate);
  color: var(--cream);
  padding: 24px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
