/* ==========================================================================
   Zastras Accelerate — main stylesheet
   One file, no build step. Sections:
   1. Fonts            2. Design tokens     3. Base and typography
   4. Layout           5. Buttons           6. Header and navigation
   7. Hero             8. Section patterns  9. Outcomes
   10. Services        11. Who we help      12. Approach
   13. Team            13b. Costs           14. Contact form
   15. Footer          16. Privacy and retainer pages
   17. Utilities       18. Motion, contrast, print
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------
   Geist and Geist Mono (SIL Open Font License, see assets/fonts/OFL-*.txt).
   Self-hosted, latin subset, so visitors make no third-party font requests. */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* 2. Design tokens ------------------------------------------------------- */
:root {
  /* Navy and graphite: the dark foundation */
  --navy-950: #060b16;
  --navy-900: #0a1222;
  --navy-800: #0f1a2f;
  --navy-700: #16243d;
  --navy-600: #20324f;

  /* Light surfaces */
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: #dce4ef;          /* hairlines on light */
  --line-strong: #7b8ba5;   /* form control borders: 3.6:1 on white */

  /* Text */
  --ink: #0a1222;           /* on light: 17:1 */
  --ink-muted: #44546c;     /* on light: 7:1 */
  --mist: #b7c3d8;          /* on navy: 10:1 */
  --mist-dim: #93a3be;      /* on navy: 7:1 */

  /* Accents: used sparingly */
  --blue-300: #8da8ff;      /* on navy: 8:1 (text, rings, nodes) */
  --blue-500: #3d6bff;
  --blue-600: #2650e6;      /* white text on it: 6.2:1 */
  --teal-400: #3ddcc8;      /* on navy: 11:1 */
  --teal-700: #0b7a72;      /* on light: 5:1 (text) */
  --violet-400: #9a8cff;    /* gradients only */

  --danger: #b42318;        /* on white: 6.5:1 */
  --success: #0b7a72;
  --amber-bg: #fff3d0;
  --amber-ink: #6b4700;
  --amber-line: #e0b24a;

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;
  --fs-h1: clamp(2.45rem, 1.55rem + 4.5vw, 4.6rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.4vw, 2.95rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);

  /* Space and shape */
  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8.5vw, 7.25rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 4.5rem;

  --shadow-card: 0 1px 2px rgba(10, 18, 34, 0.05), 0 18px 40px -22px rgba(10, 18, 34, 0.22);
  --focus: var(--blue-600);
}

/* 3. Base and typography ------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy-900); /* dark underlay so the sticky header always sits on navy */
  font-feature-settings: "ss01" 0, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.038em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: var(--blue-600);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
/* On dark surfaces the focus ring switches to the light blue */
.on-dark { --focus: var(--blue-300); }

::selection { background: rgba(61, 107, 255, 0.28); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}
.on-dark .eyebrow { color: var(--teal-400); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 40rem;
}
.on-dark .lead { color: var(--mist); }

.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.on-dark .label { color: var(--mist-dim); }

/* 4. Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--deep { background: var(--navy-950); color: var(--white); }

.section__head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
.section__head .lead { margin-top: 0.15rem; }

/* Structured-information texture: a faint grid that fades out */
.texture { isolation: isolate; overflow: hidden; }
.texture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(141, 168, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 168, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 75% 25%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 75% 25%, #000 15%, transparent 78%);
}
.texture::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40rem 28rem at 88% -8%, rgba(61, 107, 255, 0.22), transparent 70%),
    radial-gradient(34rem 26rem at 4% 108%, rgba(61, 220, 200, 0.12), transparent 70%);
  pointer-events: none;
}

/* 5. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.18s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  color: var(--white);
  background: var(--blue-600);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px -12px rgba(38, 80, 230, 0.8);
}
.btn--primary:hover { background: #3260f2; text-decoration: none; }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(183, 195, 216, 0.38);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(183, 195, 216, 0.6); text-decoration: none; }

.btn--sm { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: 0.9rem; border-radius: 10px; }
.btn--block { width: 100%; }

.btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
.btn[aria-disabled="true"]:hover svg { transform: none; }

/* 6. Header and navigation ----------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 18, 34, 0.92);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(141, 168, 255, 0.16);
  color: var(--white);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-size: 1.28rem; font-weight: 650; letter-spacing: -0.03em; }
.brand__sub {
  margin-top: 0.32rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.site-nav ul { display: flex; align-items: center; gap: 0.2rem; }
.site-nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.15s ease;
}
/* Six links plus the button need slightly tighter spacing just above the mobile breakpoint */
@media (min-width: 62.0625rem) and (max-width: 72rem) {
  .site-nav a { padding-inline: 0.55rem; }
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="true"] { color: var(--white); }
.site-nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-300), var(--teal-400));
}


.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(183, 195, 216, 0.38);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 1.05rem; height: 0.75rem; }
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars i { top: calc(50% - 1px); }
.nav-toggle__bars::after { top: calc(100% - 2px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: calc(50% - 1px); transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i { opacity: 0; }

@media (max-width: 62rem) {
  .site-header__cta { display: none; }

  /* Without JavaScript the navigation simply wraps beneath the brand */
  .site-header__inner { flex-wrap: wrap; padding-block: 0.6rem; }
  .site-nav { order: 3; width: 100%; }
  .site-nav ul { flex-wrap: wrap; gap: 0 0.1rem; margin-inline: -0.8rem; }

  /* With JavaScript the navigation becomes a menu */
  .js .site-header__inner { flex-wrap: nowrap; padding-block: 0; }
  .js .nav-toggle { display: inline-flex; margin-left: auto; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(141, 168, 255, 0.2);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  }
  .js .site-nav[hidden] { display: none; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .js .site-nav a { padding: 0.9rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid rgba(141, 168, 255, 0.12); border-radius: 0; }
  .js .site-nav li:last-child a { border-bottom: 0; }
  .js .site-nav a[aria-current="true"]::after { left: 0.25rem; right: auto; width: 1.5rem; bottom: 0.55rem; }
}

/* 7. Hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
}
.hero__copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero h1 .accent {
  background: linear-gradient(95deg, var(--blue-300) 0%, var(--teal-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero .lead { max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.4rem; }

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(141, 168, 255, 0.16);
  width: 100%;
}
.principles li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--mist);
}
.principles li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(61, 220, 200, 0.18);
}

/* Illustrative workflow panel */
.flow-card {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.9rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(141, 168, 255, 0.22);
  background: linear-gradient(160deg, rgba(32, 50, 79, 0.62), rgba(15, 26, 47, 0.78));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.flow-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.flow-card__dots { display: inline-flex; gap: 0.35rem; }
.flow-card__dots i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(183, 195, 216, 0.3); }

.flow-wrap { position: relative; }
.flow { position: relative; display: grid; gap: 0.85rem; }
.flow__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem 1rem 0.85rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 14px;
}
.flow__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--navy-800);
  border: 2px solid var(--blue-300);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-300);
}
/* Connector from each step's node to the next */
.flow__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(0.55rem + 1.2rem - 1px);
  top: 3.25rem;
  bottom: -1.7rem;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-300), rgba(141, 168, 255, 0.35));
  transform-origin: top;
}
.flow__item--check:not(:last-child)::before { background: linear-gradient(180deg, var(--teal-400), rgba(61, 220, 200, 0.35)); }
.flow__title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.flow__text { margin-top: 0.2rem; font-size: 0.9rem; line-height: 1.5; color: var(--mist); }
.flow__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  color: var(--navy-900);
  background: var(--teal-400);
}
.flow__item--check {
  background: rgba(61, 220, 200, 0.07);
  border-color: rgba(61, 220, 200, 0.45);
}
.flow__item--check .flow__node { border-color: var(--teal-400); color: var(--teal-400); box-shadow: 0 0 0 5px rgba(61, 220, 200, 0.14); }
.flow-card__foot {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(141, 168, 255, 0.16);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--mist-dim);
}

/* 8. Section patterns ---------------------------------------------------- */
.statement { padding-block: clamp(3.25rem, 7vw, 5.5rem) clamp(1rem, 2vw, 1.5rem); background: var(--paper); }
.statement__inner {
  display: grid;
  gap: 1.5rem;
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--blue-600), var(--teal-400)) 1;
}
.statement__text {
  max-width: 52rem;
  font-size: clamp(1.6rem, 1.1rem + 2.1vw, 2.65rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.statement__sub { max-width: 40rem; color: var(--ink-muted); font-size: var(--fs-lead); line-height: 1.55; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow-card);
}
.card::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: -1px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-400));
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
  border-radius: 12px;
  color: var(--blue-600);
  background: linear-gradient(145deg, #eaf0ff, #e3f8f5);
  border: 1px solid #d3def5;
}
.icon-tile svg { width: 1.5rem; height: 1.5rem; }

.note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600);
  color: var(--ink-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.section--white .note { background: var(--paper); }
.note strong { color: var(--ink); font-weight: 600; }
.note svg { width: 1.4rem; height: 1.4rem; flex: none; margin-top: 0.1rem; color: var(--blue-600); }

/* 9. Outcomes ------------------------------------------------------------- */
.outcomes { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .outcomes { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }

.outcome h3 { margin-top: 1.25rem; }
.outcome__meaning { margin-top: 0.5rem; color: var(--ink-muted); font-size: var(--fs-small); line-height: 1.55; }
.outcome__example {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: 0.45rem;
}
.outcome__example p { font-size: var(--fs-small); line-height: 1.55; }
.outcome__check { margin-top: auto; padding-top: 1.1rem; display: grid; gap: 0.35rem; }
.outcome__check p { font-size: 0.875rem; line-height: 1.5; color: var(--ink-muted); }
.outcome__check .label { color: var(--teal-700); }

/* 10. Services ------------------------------------------------------------ */
.services { display: grid; gap: 1.25rem; counter-reset: service; }
@media (min-width: 62rem) { .services { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--radius);
  border: 1px solid rgba(141, 168, 255, 0.2);
  background: linear-gradient(170deg, rgba(32, 50, 79, 0.5), rgba(15, 26, 47, 0.7));
}
.service__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue-300);
}
.service h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
.service p { color: var(--mist); font-size: var(--fs-small); line-height: 1.6; }
.service .service__more a { color: var(--blue-300); font-weight: 600; }
.service .service__more a:hover { color: var(--white); }
.service__out {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(141, 168, 255, 0.18);
  display: grid;
  gap: 0.35rem;
}
.service__out p { color: var(--white); font-size: 0.95rem; }
@media (min-width: 62rem) { .service__out p:not(.label) { min-height: 3.1em; } }

/* Arrow connecting the three services on wide screens */
@media (min-width: 62rem) {
  .service:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3.15rem;
    right: -1.75rem;
    width: 1.75rem;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-300), var(--teal-400));
  }
  .service:not(:last-child)::before {
    content: "";
    position: absolute;
    top: calc(3.15rem - 4px);
    right: -1.75rem;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--teal-400);
    border-right: 2px solid var(--teal-400);
    transform: translateX(-1px) rotate(45deg);
    transform-origin: center;
    z-index: 1;
    margin-right: 1px;
  }
}

.capabilities { margin-top: clamp(2.25rem, 5vw, 3.25rem); display: grid; gap: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 168, 255, 0.28);
  background: rgba(141, 168, 255, 0.07);
  font-size: 0.9rem;
  color: var(--white);
}

/* 11. Who we help --------------------------------------------------------- */
.sectors { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 66rem) { .sectors { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }
.sector__top { display: flex; align-items: center; gap: 0.9rem; }
.sector h3 { font-size: 1.2rem; }
.sector__body { margin-top: 1.1rem; }
.sector__body p { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-muted); }

/* 12. Approach ------------------------------------------------------------ */
.approach { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 62rem) {
  .approach { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
  .approach__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.approach__intro { display: grid; gap: 1.2rem; }
.throughout {
  margin-top: 0.75rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(61, 220, 200, 0.35);
  background: rgba(61, 220, 200, 0.06);
  color: var(--mist);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.throughout strong { color: var(--white); font-weight: 600; }

.steps { position: relative; counter-reset: step; display: grid; gap: 0; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  padding-bottom: 1.9rem;
  counter-increment: step;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(141, 168, 255, 0.45), rgba(141, 168, 255, 0.12));
}
.step:last-child::before { display: none; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--blue-300);
  background: var(--navy-900);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--blue-300);
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step:last-child .step__num { border-color: var(--teal-400); color: var(--teal-400); }
.step h3 { padding-top: 0.55rem; font-size: 1.2rem; }
.step p { margin-top: 0.35rem; color: var(--mist); font-size: var(--fs-small); line-height: 1.6; max-width: 34rem; }

/* 13. Team ---------------------------------------------------------------- */
.team { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 56rem) { .team { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } }

.profile { padding: 0; overflow: hidden; }
.profile::before { z-index: 2; left: 0; right: 0; top: 0; height: 3px; border-radius: 0; }
.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 6 / 5;
  background: #dfe7f2;
  overflow: hidden;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-pos, 50% 25%);
}
.profile__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.5rem, 3vw, 2.1rem); }
.profile h3 { font-size: 1.65rem; letter-spacing: -0.025em; }
.profile__role {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.profile__bio { margin-top: 1.25rem; display: grid; gap: 1rem; color: var(--ink-muted); }
.profile__bio p { margin: 0; }
.profile__footnote {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.profile__bio + .profile__footnote { margin-top: 1.5rem; }
.profile__footnote > span { display: block; padding-top: 1rem; border-top: 1px solid var(--line); }

/* 13b. Costs --------------------------------------------------------------
   Three price cards that mirror the three services. Cards sit on the paper tone
   so they read against the white section. The amount never wraps, so the
   three-column layout starts only where the widest range (£2,000–£5,000) fits. */
.prices { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 72rem) { .prices { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.price {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}
/* Spacing comes from the flex gap, not from the global p + p margin */
.price > p, .price__foot p { margin: 0; }
.price::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: -1px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-400));
}
.price__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue-600);
}
.price h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
.price p { color: var(--ink-muted); font-size: var(--fs-small); line-height: 1.6; }
.price .price__amount {
  margin-top: 0.15rem;
  color: var(--ink);
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.price__unit {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.price__foot {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: 0.35rem;
}
.price__foot a { font-weight: 600; }

/* 14. Contact form -------------------------------------------------------- */
.contact { display: grid; gap: clamp(2.25rem, 5vw, 4rem); align-items: start; }
@media (min-width: 62rem) { .contact { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.contact__intro { display: grid; gap: 1.4rem; justify-items: start; }

.next-steps { display: grid; gap: 0.9rem; counter-reset: next; margin-top: 0.4rem; }
.next-steps li {
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  gap: 0.9rem;
  align-items: start;
  color: var(--mist);
  font-size: var(--fs-small);
  line-height: 1.55;
  counter-increment: next;
}
.next-steps li::before {
  content: counter(next);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid rgba(141, 168, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-300);
}

.callout {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(61, 220, 200, 0.4);
  background: rgba(61, 220, 200, 0.07);
  color: var(--white);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.callout svg { width: 1.4rem; height: 1.4rem; flex: none; margin-top: 0.1rem; color: var(--teal-400); }
.callout p + p { margin-top: 0.5rem; }
.callout a { color: var(--blue-300); }

.form-card {
  position: relative;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.75);
  --focus: var(--blue-600);
}
.form-card h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.form-card__intro { margin-top: 0.35rem; font-size: var(--fs-small); color: var(--ink-muted); }

.form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em; }
.field .req { color: var(--danger); margin-left: 0.15rem; }
.field .opt { font-weight: 400; color: var(--ink-muted); }
.field .hint { font-size: 0.85rem; line-height: 1.45; color: var(--ink-muted); }

.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.input { min-height: 9.5rem; resize: vertical; }
.input:hover { border-color: var(--ink-muted); }
.input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--blue-600);
  border-radius: var(--radius-sm);
}
.input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }

.field__error {
  display: none;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--danger);
}
.field__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--danger);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.field__error.is-visible { display: flex; }

/* Honeypot: present in the DOM for bots, invisible and unreachable for people */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: grid; gap: 0.9rem; margin-top: 0.25rem; }
.form__small { font-size: 0.85rem; line-height: 1.5; color: var(--ink-muted); }
.form__small a { color: var(--blue-600); }

.form-status { font-size: 0.95rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-error {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #fdecea;
  border: 1px solid #f1b5af;
  color: #7a1b12;
  font-weight: 500;
}
.form-status.is-info {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #e8efff;
  border: 1px solid #c3d3fb;
  color: #1c3a8a;
  font-weight: 500;
}

.success {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  padding: 0.25rem 0;
}
.success[hidden] { display: none; }
.success__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #dcf5f1;
  color: var(--success);
}
.success__icon svg { width: 1.6rem; height: 1.6rem; }
.success h3:focus { outline: none; }
.success p { color: var(--ink-muted); font-size: var(--fs-small); }
.btn--outline {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--ink); text-decoration: none; }

/* 15. Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: var(--mist); padding-block: clamp(2.75rem, 6vw, 4.25rem) 2rem; border-top: 1px solid rgba(141, 168, 255, 0.14); }
.site-footer a { color: var(--mist); text-decoration-color: rgba(183, 195, 216, 0.4); }
.site-footer a:hover { color: var(--white); }
.footer__grid { display: grid; gap: 2.25rem; }
@media (min-width: 56rem) { .footer__grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.footer__brand { display: grid; gap: 1rem; justify-items: start; }
.footer__tag { max-width: 24rem; font-size: var(--fs-small); line-height: 1.6; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer__nav a { font-size: var(--fs-small); text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__legal {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(141, 168, 255, 0.14);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--mist-dim);
  max-width: 62rem;
}

/* 16. Privacy and retainer pages ------------------------------------------ */
.page-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); }
.page-hero__inner { display: grid; gap: 1.1rem; justify-items: start; }
.page-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3.4vw, 3.6rem); }
.draft-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  color: var(--amber-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.prose-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 62rem) { .prose-wrap { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; } }
.toc { font-size: 0.9rem; }
@media (min-width: 62rem) { .toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.toc ol { display: grid; gap: 0.15rem; margin-top: 0.75rem; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; color: var(--ink-muted); text-decoration: none; }
.toc a:hover { color: var(--blue-600); text-decoration: underline; }

.prose { max-width: 44rem; min-width: 0; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: 1.6rem; letter-spacing: -0.022em; line-height: 1.2; margin-top: 3rem; padding-top: 1rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.prose ol { list-style: decimal; padding-left: 1.4rem; display: grid; gap: 0.6rem; }
.prose li::marker { color: var(--blue-600); }
.prose ol li::marker { font-weight: 600; }
.prose strong { font-weight: 600; }
.owner-decision {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-left-width: 5px;
  color: var(--amber-ink);
  font-size: 0.95rem;
  line-height: 1.55;
}
.owner-decision code { font-family: var(--font-mono); font-size: 0.85em; }
.owner-decision ul { margin-top: 0.5rem; }
.owner-decision li::marker { color: var(--amber-ink); }
.owner-decision strong { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.25rem; }

/* 17. Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] { display: none !important; }

/* 18. Motion, contrast and print ----------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* One purposeful entrance: the example workflow assembles step by step,
     showing the order of events and the human checkpoint. It plays once. */
  .flow__item { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 170ms + 250ms); }
  .flow__item:not(:last-child)::before { animation: draw 0.5s ease-out both; animation-delay: calc(var(--i, 0) * 170ms + 600ms); }
  .flow__item--check .flow__node { animation: ring 1.2s ease-out 1.1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 200, 0.5); } 100% { box-shadow: 0 0 0 5px rgba(61, 220, 200, 0.14); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

@media (forced-colors: active) {
  .hero h1 .accent { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; }
  .btn, .input, .card, .service, .price, .flow-card { border: 1px solid CanvasText; }
  .flow__item::before, .step::before { background: CanvasText !important; }
}

@media print {
  .site-header, .nav-toggle, .skip-link, .form-card, .hero__actions { display: none !important; }
  body { background: #fff; color: #000; }
  .section--dark, .section--deep, .site-footer { background: #fff !important; color: #000 !important; }
  .on-dark .lead, .service p, .step p, .site-footer, .site-footer a { color: #000 !important; }
}
