:root {
  --ink: #17233a;
  --navy: #233a5e;
  --paper: #fbfaf7;
  --white: #ffffff;
  --orange: #d97745;
  --moon: #d3d3ff;
  --lilac: #ceb5ff;
  --sky: #8ec1de;
  --periwinkle: #80a8ff;
  --muted: #536078;
  --rule: #d8dbe2;
  --focus: #924b24;
  --content: 1180px;
  --reading: 740px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.reading { max-width: var(--reading); }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}

.header-row {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { flex: 0 0 auto; }
.brand img { width: 174px; height: auto; }

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 650;
}

.primary-navigation a { text-decoration: none; }
.primary-navigation a:hover,
.primary-navigation a[aria-current='page'] { color: #9b4b24; }

.menu-button {
  display: none;
  min-width: 46px;
  min-height: 46px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: clamp(3.15rem, 7vw, 5.8rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.16;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 112px;
  background: var(--paper);
}

.page-hero.compact { padding-block: 82px 88px; }
.page-hero.compact h1 { max-width: 900px; font-size: clamp(2.9rem, 6vw, 5.1rem); }

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.lede {
  max-width: 820px;
  margin: 0;
  color: #31405b;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.58;
}

.path-motif {
  position: absolute;
  right: -92px;
  top: 54px;
  width: 420px;
  height: 420px;
  border: 2px solid rgba(35, 58, 94, 0.09);
  border-radius: 50%;
}

.path-motif::before,
.path-motif::after {
  position: absolute;
  content: '';
  border-radius: 50%;
}

.path-motif::before {
  inset: 76px;
  border: 2px solid rgba(35, 58, 94, 0.12);
}

.path-motif::after {
  width: 18px;
  height: 18px;
  top: 108px;
  left: 120px;
  background: var(--periwinkle);
  box-shadow: 96px 148px 0 var(--sky), 198px 44px 0 var(--orange);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.button-primary { color: var(--white); background: var(--navy); }
.button:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }

.section { padding: 94px 0; }
.section-tight { padding: 72px 0; }
.surface-moon { background: var(--moon); }
.surface-sky { background: var(--sky); }
.surface-white { background: var(--white); }
.surface-navy { color: var(--white); background: var(--navy); }
.surface-navy .eyebrow { color: var(--moon); }
.surface-navy h2, .surface-navy h3 { color: var(--white); }
.surface-navy p { color: rgba(255,255,255,0.86); }

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.section-intro { max-width: 760px; margin-bottom: 46px; }
.section-intro p { margin-bottom: 0; color: var(--muted); font-size: 19px; }

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding: 16px 0 16px 30px;
  border-bottom: 1px solid rgba(23, 35, 58, 0.2);
}

.plain-list li::before {
  position: absolute;
  left: 0;
  top: 25px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  content: '';
}

.service-list { border-top: 1px solid var(--rule); }

.service-row {
  display: grid;
  grid-template-columns: 54px minmax(220px, 0.72fr) minmax(0, 1.28fr) auto;
  gap: 22px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}

.service-number { color: #a54e25; font-weight: 760; }
.service-row h3 { margin-bottom: 0; font-size: 1.45rem; }
.service-row p { margin: 0; color: var(--muted); }
.text-link { color: var(--navy); font-weight: 760; white-space: nowrap; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: process;
}

.process-step {
  min-height: 230px;
  padding: 26px 24px;
  border-top: 1px solid rgba(255,255,255,0.25);
  border-right: 1px solid rgba(255,255,255,0.25);
  counter-increment: process;
}

.process-step:last-child { border-right: 0; }
.process-step::before {
  display: block;
  margin-bottom: 52px;
  color: var(--moon);
  content: '0' counter(process);
  font-weight: 760;
}

.process-step h3 { font-size: 1.32rem; }
.process-step p { margin-bottom: 0; font-size: 15px; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.proof-card {
  padding: 28px;
  border: 1px solid var(--rule);
  background: var(--white);
}

.proof-card p { color: var(--muted); }
.proof-card p:last-child { margin-bottom: 0; }
.proof-label { color: #9b4b24 !important; font-size: 13px; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(48px, 8vw, 120px);
}

.detail-navigation { position: sticky; top: 26px; }
.detail-navigation a { display: block; padding: 8px 0; color: var(--muted); }
.detail-content > section { padding-bottom: 58px; margin-bottom: 58px; border-bottom: 1px solid var(--rule); }
.detail-content > section:last-child { border-bottom: 0; }
.detail-content h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.detail-content h3 { margin-top: 34px; font-size: 1.35rem; }
.detail-content li + li { margin-top: 8px; }

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.22);
}

.fact-strip div { padding: 30px; background: var(--navy); }
.fact-strip strong { display: block; margin-bottom: 8px; color: var(--moon); font-family: var(--serif); font-size: 1.65rem; font-weight: 500; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 740; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #788298;
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
}
.field textarea { min-height: 180px; resize: vertical; }
.form-note { max-width: 720px; color: var(--muted); font-size: 14px; }
.form-status { padding: 14px 16px; border-left: 4px solid var(--orange); background: #f1f1ff; }

.callout {
  padding: 34px;
  border-left: 5px solid var(--orange);
  background: #f2f2ff;
}

.callout p:last-child { margin-bottom: 0; }

.site-footer { color: rgba(255,255,255,0.82); background: var(--ink); }
.footer-main { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 70px; padding: 62px 0 42px; }
.footer-main strong { color: var(--white); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.footer-links a { color: var(--white); }
.footer-base { display: flex; justify-content: space-between; gap: 30px; padding: 24px 0 34px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 14px; }
.colour-rule { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; height: 9px; }
.colour-rule span:nth-child(1) { background: var(--orange); }
.colour-rule span:nth-child(2) { background: var(--moon); }
.colour-rule span:nth-child(3) { background: var(--sky); }
.colour-rule span:nth-child(4) { background: var(--periwinkle); }

@media (max-width: 900px) {
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .primary-navigation {
    display: none;
    position: absolute;
    inset: 84px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
  }
  .primary-navigation[data-open] { display: flex; }
  .primary-navigation a { padding: 13px 0; border-bottom: 1px solid var(--rule); }
  .two-column, .detail-layout { grid-template-columns: 1fr; }
  .three-column, .proof-grid { grid-template-columns: 1fr 1fr; }
  .detail-navigation { position: static; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { border-bottom: 1px solid rgba(255,255,255,0.25); }
  .service-row { grid-template-columns: 48px 1fr; }
  .service-row p, .service-row .text-link { grid-column: 2; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 32px), var(--content)); }
  .header-row { min-height: 72px; }
  .brand img { width: 150px; }
  .primary-navigation { top: 72px; }
  .page-hero, .page-hero.compact { padding: 68px 0 76px; }
  h1, .page-hero.compact h1 { font-size: clamp(2.55rem, 13vw, 3.45rem); line-height: 1.01; }
  h2 { font-size: clamp(2.05rem, 10vw, 3rem); }
  .path-motif { right: -195px; top: 38px; opacity: 0.7; }
  .actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .section { padding: 70px 0; }
  .section-tight { padding: 56px 0; }
  .three-column, .proof-grid, .form-grid, .fact-strip, .footer-main { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: auto; border-right: 0; }
  .process-step::before { margin-bottom: 24px; }
  .service-row { grid-template-columns: 38px 1fr; padding: 24px 0; }
  .detail-content > section { padding-bottom: 42px; margin-bottom: 42px; }
  .footer-main { gap: 36px; padding-top: 48px; }
  .footer-base { flex-direction: column; }
}

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

@media print {
  .site-header, .site-footer, .actions, .detail-navigation { display: none; }
  body { color: #000; background: #fff; font-size: 12pt; }
  .section, .page-hero { padding: 24px 0; }
  a { color: #000; }
}
