/* Manrope, self-hosted (Latin subset, variable weight 400 to 800). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
}

:root {
  /* Charcoal palette: every colour is drawn from the logo's charcoal #202528.
     The --navy names are kept from the earlier navy palette; they hold the brand colour. */
  --ink: #202528;
  --ink-soft: #4a5258;
  --muted: #5f6870;
  --navy: #202528;
  --navy-deep: #141719;
  --navy-hover: #363d42;
  --tint: #f4f5f6;
  --tint-2: #e9ecee;
  --icon-bg: #eceef0;
  --line: #e0e3e6;
  --white: #ffffff;
  /* Accent for eyebrows, icons, card and step rules. Defaults to the brand colour. */
  --accent: var(--navy);
  /* Text links and ghost button text. Defaults to the brand colour. */
  --link: var(--navy);
  /* Featured card icon tile and the form's focus border. Default to the brand colour. */
  --feature-bg: var(--navy);
  --feature-ink: var(--on-navy);
  --input-focus-border: var(--navy);
  --on-navy: #ffffff;
  --focus: #5f6870;
  --focus-ring: rgba(32, 37, 40, .18);
  --header-bg: rgba(255, 255, 255, .94);
  --hero-top: #ffffff;
  --ghost-border: #c8cdd1;
  --card-hover-border: #d0d5d9;
  --step-num: #c1c7cc;
  --input-border: #cfd7e2;
  --input-bg: #fbfcfd;
  --input-bg-focus: #ffffff;
  --error: #b3261e;
  --success: #1d6b3f;
  /* Contact band. */
  --contact-glow: #3a4247;
  --contact-mid: var(--navy);
  --contact-end: var(--navy-deep);
  --contact-text: #ffffff;
  --contact-soft: #d2d7da;
  --contact-icon: #a7afb5;
  --contact-focus: #ffffff;
  --contact-shadow: rgba(10, 20, 40, .25);
  /* Logo treatment, so dark palettes can flip the black logo to white. */
  --logo-filter: none;
  /* Hero animation colours, read by hero-art.js. */
  --art-bg: #f0f2f3;
  --art-ink: #202528;
  --art-ket: var(--art-ink);
  --art-wire: #5f6870;
  --art-mid: #a9b1b7;
  --art-pale: #e4e7e9;
  --art-fill: #ffffff;
  --art-line: #d6dadd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(32, 37, 40, .04), 0 6px 20px rgba(32, 37, 40, .05);
  --shadow-hover: 0 2px 4px rgba(32, 37, 40, .05), 0 14px 32px rgba(33, 58, 99, .10);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--on-navy); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(32, 37, 40, .04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 60px; width: auto; filter: var(--logo-filter); }
.brand { border-radius: 6px; }

.site-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background-color .15s, color .15s;
}
.site-nav a:hover { background: var(--tint); color: var(--link); }
.site-nav a.nav-cta { background: var(--navy); color: var(--on-navy); margin-left: 8px; padding: 9px 18px; }
.site-nav a.nav-cta:hover { background: var(--navy-hover); color: var(--on-navy); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--navy-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--link); border-color: var(--ghost-border); }
.btn-ghost:hover { border-color: var(--navy); background: var(--white); }

/* Hero */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-top) 55%, var(--tint) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.025em; max-width: 16ch; }
.lead { font-size: 1.15rem; color: var(--ink-soft); margin-top: 22px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art svg { width: 100%; height: auto; max-width: 480px; margin-left: auto; }
.hero-art svg > circle { fill: var(--art-bg); }

/* Bands */
.band { padding: 96px 0; }
.band-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2, .why-copy h2, .about-grid h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); margin-top: 16px; font-size: 1.1rem; }

/* Cards */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--card-hover-border); }
.card h3 { font-size: 1.18rem; font-weight: 700; margin: 20px 0 10px; }
.card p { color: var(--muted); font-size: 1rem; }

.card-feature { border-top: 3px solid var(--accent); }
.card-feature .icon { background: var(--feature-bg); color: var(--feature-ink); }

.card-light { background: var(--tint); border-color: transparent; box-shadow: none; padding: 26px 24px; }
.card-light:hover { background: var(--white); border-color: var(--line); }
.card-light h3 { font-size: 1.08rem; margin-top: 16px; }
.card-light p { font-size: .96rem; }
.card-light .icon { background: var(--white); }
.card-light:hover .icon { background: var(--icon-bg); }

.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--icon-bg); color: var(--accent);
  transition: background-color .2s;
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 44px; height: 44px; border-radius: 10px; }
.icon-sm svg { width: 22px; height: 22px; }

/* How we work */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
}
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step-num { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--step-num); letter-spacing: -0.02em; }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .98rem; }

/* Why */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why-copy p:not(.eyebrow) { color: var(--ink-soft); margin-top: 16px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--icon-bg);
}
.ticks li::after {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px;
  transition: box-shadow .2s, transform .2s;
}
.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tile .icon { grid-row: span 2; }
.tile h3 { font-size: 1.05rem; font-weight: 700; align-self: end; }
.tile p { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.about-copy { display: grid; gap: 18px; color: var(--ink-soft); font-size: 1.08rem; }
.about-copy p:first-child { color: var(--ink); font-size: 1.18rem; font-weight: 500; }

/* Contact */
.contact {
  padding: 96px 0;
  background: radial-gradient(120% 140% at 0% 0%, var(--contact-glow) 0%, var(--contact-mid) 45%, var(--contact-end) 100%);
  color: var(--contact-text);
}
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; }
.contact-copy p { color: var(--contact-soft); margin-top: 16px; font-size: 1.1rem; }
.contact-email { display: flex; align-items: center; gap: 12px; margin-top: 28px !important; }
.contact-email svg { width: 22px; height: 22px; fill: none; stroke: var(--contact-icon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-email a { color: var(--contact-text); font-weight: 600; text-decoration-color: color-mix(in srgb, var(--contact-text) 40%, transparent); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-email a:hover { text-decoration-color: var(--contact-text); }
.contact :focus-visible { outline-color: var(--contact-focus); }

.contact-form {
  background: var(--white); color: var(--ink); border-radius: 18px; padding: 32px;
  box-shadow: 0 20px 50px var(--contact-shadow); display: grid; gap: 18px;
}
.contact-form :focus-visible { outline-color: var(--focus); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-short { max-width: 220px; }
/* Honeypot field for spam bots: kept off screen, never shown to people. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1px solid var(--input-border); border-radius: 10px; background: var(--input-bg);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--input-focus-border); background: var(--input-bg-focus); box-shadow: 0 0 0 3px var(--focus-ring);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.form-foot button[disabled] { opacity: .7; cursor: progress; }
.form-status { font-weight: 600; font-size: .95rem; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); }

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.footer-inner img { width: 34px; height: 34px; filter: var(--logo-filter); }
.footer-inner p { flex: 1; min-width: 220px; }
.footer-inner a { color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 4px; }
.footer-inner a:hover { color: var(--link); text-decoration: underline; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .cards-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { grid-template-columns: 1fr; }
  .tile .icon { grid-row: auto; margin-bottom: 10px; }
}

@media (max-width: 900px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art svg { max-width: 460px; margin: 0 auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 76px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(32, 37, 40, .06);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 2px; }
  .site-nav a { padding: 12px 14px; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }
  .hero { padding: 44px 0 60px; overflow: hidden; }
  .band, .contact { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .cards-3, .cards-4, .steps { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px 22px; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { grid-template-columns: auto 1fr; }
  .tile .icon { grid-row: span 2; margin-bottom: 0; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .brand img { height: 46px; }
  /* Full width on phones, bleeding into the side gutters; the art has its own margins. */
  .hero-art svg { max-width: none; width: calc(100% + 36px); margin: 0 -18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .tile:hover, .btn-primary:hover { transform: none; }
}
