/* Fonts: self-hosted, latin subset */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #eef4f8;
  --paper-deep: #dfeaf2;
  --grid: #cfdfea;
  --ink: #142a3a;
  --ink-soft: #3d5566;
  --blue: #1f5fbf;
  --blue-dark: #174a96;
  --marker: #f6c445;
  --white: #ffffff;
  --on-blue: #ffffff;
  --error: #a3261b;
  --radius: 6px;
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1d29;
    --paper-deep: #162a3a;
    --grid: #1f3546;
    --ink: #e8f0f6;
    --ink-soft: #a9bccb;
    --blue: #6aa5f5;
    --blue-dark: #8bbaf8;
    --on-blue: #0f1d29;
    --error: #ff9b91;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0; }
a { color: var(--blue); }
a:focus-visible, .btn:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--marker);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  z-index: 30;
}
.skip:focus { left: 8px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.15;
}
.brand small { font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); }
.brand-mark { width: 36px; height: 36px; color: var(--blue); flex: none; }
.brand-mark .mark-hi { fill: var(--marker); }

.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 1rem; padding: 6px 0; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--marker); text-underline-offset: 6px; }
.site-nav .nav-cta {
  background: var(--blue);
  color: var(--on-blue);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}
.site-nav .nav-cta:hover { background: var(--blue-dark); text-decoration: none; }

/* Buttons */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.actions-flush { margin-top: 0; }

.btn {
  display: inline-block;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-quiet { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }

.lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-top: 20px;
}
.lead-flush { margin-top: 0; margin-bottom: 24px; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 64px) var(--gutter) clamp(32px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.graph { margin: 0; }
.graph svg {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}
.grid-line { stroke: var(--grid); stroke-width: 1; }
.axis { stroke: var(--ink); stroke-width: 2; }
.trace {
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.2s ease-out 0.3s forwards;
}
.dots circle { fill: var(--ink); opacity: 0; animation: pop 0.3s ease-out forwards; }
.dots .dot-hi { fill: var(--marker); stroke: var(--ink); stroke-width: 2; }
.dots circle:nth-child(1) { animation-delay: 0.3s; }
.dots circle:nth-child(2) { animation-delay: 0.6s; }
.dots circle:nth-child(3) { animation-delay: 0.9s; }
.dots circle:nth-child(4) { animation-delay: 1.2s; }
.dots circle:nth-child(5) { animation-delay: 1.5s; }
.dots circle:nth-child(6) { animation-delay: 1.8s; }
.dots circle:nth-child(7) { animation-delay: 2.1s; }
.dots circle:nth-child(8) { animation-delay: 2.4s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace { animation: none; stroke-dashoffset: 0; }
  .dots circle { animation: none; opacity: 1; }
}

/* Inner page heading */
.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 48px) var(--gutter) clamp(24px, 5vw, 56px);
}
.page-head .lead { margin-top: 16px; }

/* Proof strip */
.proof {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.proof li { padding: 18px 20px 18px 0; }
.proof li + li { padding-left: 20px; border-left: 2px solid var(--ink); }
.proof strong {
  display: block;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.3rem;
  line-height: 1.2;
}
.proof span { color: var(--ink-soft); font-size: 1rem; }

/* Sections */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.band { background: var(--paper-deep); }
.section h2 { margin-bottom: 28px; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--paper);
}

.split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px 48px;
}
.split > h2 { margin-bottom: 0; }

/* Testimonials */
.quote-main {
  margin: 0 0 40px;
  padding-left: 24px;
  border-left: 6px solid var(--marker);
  max-width: 46em;
}
.quote-main p { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.5; }
.quote-main footer { margin-top: 14px; font-weight: 700; }
.quote-main footer span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 1rem; }

.quotes-small { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-bottom: 40px; }
.quote {
  margin: 0;
  padding-left: 18px;
  border-left: 4px solid var(--blue);
}
.quote footer { margin-top: 10px; font-weight: 700; font-size: 1rem; }
.quote footer span { font-weight: 400; color: var(--ink-soft); }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 28px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 16px;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--marker);
  color: #142a3a;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
}
.steps p { color: var(--ink-soft); max-width: 32em; }

/* Rates */
.rates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 0; }
.rate {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
}
.rate.featured { border-width: 4px; }
.rate dt { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 1.3rem; }
.rate .price {
  margin: 8px 0 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}
.rate .price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.rate dd { margin: 10px 0 0; color: var(--ink-soft); }
.rate .tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 10px;
  background: var(--marker);
  color: #142a3a;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}
.rates-note { margin-top: 24px; max-width: 40em; color: var(--ink-soft); }
.rates-link { margin-top: 20px; }

/* Meet / portrait */
.meet { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--ink-soft);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.prose { display: grid; gap: 16px; max-width: 36em; }
.prose h2 { margin-bottom: 4px; }

/* Form */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.direct { display: grid; gap: 20px; }
.direct h2 { font-size: 1.25rem; margin-bottom: 2px; }
.direct .big {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  overflow-wrap: anywhere;
  display: inline-block;
  padding: 4px 0;
}
.direct p { color: var(--ink-soft); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 1rem; padding: 0; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: flex; gap: 12px; flex-wrap: wrap; }
.radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px 16px;
  min-height: 48px;
  cursor: pointer;
}
.radios input { width: 20px; height: 20px; accent-color: var(--blue); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 700; }
.form-status.error { color: var(--error); }
.form-note { font-size: 1rem; color: var(--ink-soft); }
.confirm {
  border: 2px solid var(--ink);
  border-left-width: 8px;
  border-left-color: var(--marker);
  border-radius: var(--radius);
  padding: 24px;
}
.confirm h3 { margin-bottom: 8px; }

/* Contact strip */
.contact-strip {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(40px, 7vw, 72px) 0;
}
.contact-strip .lead { color: var(--paper); opacity: 0.85; }
.contact-strip .btn-primary { background: var(--marker); color: #142a3a; }
.contact-strip .btn-primary:hover { background: #ffd66b; }
.contact-strip .btn-quiet { border-color: var(--paper); color: var(--paper); }
.contact-strip .btn-quiet:hover { background: var(--paper); color: var(--ink); }

/* Footer */
.site-footer { padding: 28px 0 32px; font-size: 0.95rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); }

/* Mobile sticky action bar */
.sticky-bar { display: none; }

@media (max-width: 820px) {
  .hero, .split, .form-wrap, .meet { grid-template-columns: 1fr; }
  .rates, .quotes-small { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .proof { grid-template-columns: 1fr; }
  .proof li, .proof li + li { padding: 14px 0; border-left: 0; }
  .proof li + li { border-top: 2px solid var(--ink); }
  .portrait { max-width: 240px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .pair { grid-template-columns: 1fr; }
  .site-nav .nav-cta { display: none; }
  .sticky-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 10px var(--gutter);
    background: var(--paper);
    border-top: 2px solid var(--ink);
    z-index: 20;
  }
  .sticky-bar .btn { text-align: center; padding: 12px 8px; }
}

.direct .big.email { font-size: clamp(1rem, 4.2vw, 1.25rem); overflow-wrap: normal; }
