/* ========================================================================== */

/* ---- Fonts. Carlito, the metric match for Calibri, self hosted (DR76 item 2). */
@font-face {
  font-family: "Carlito";
  src: url("/assets/fonts/carlito-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("/assets/fonts/carlito-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Colour, Concept A palette (Addendum A, RA2). Sand rule is never text. */
  --navy-ink: #0D2440;
  --navy: #163A66;
  --blue: #2868B2;
  --blue-deep: #1F5292;
  --blue-pale: #BFD5EE;
  --mist: #F3F7FC;
  --sand: #EDE6DA;
  --sand-rule: #9C8B70;
  --earth: #7A6347;
  --ink: #142338;
  --ink-soft: #44536A;
  --line: #D5DCE6;
  --field: #6B7A90;
  --white: #FFFFFF;

  /* Type */
  --font-sans: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
  --step-00: 1rem;
  --step-0: 1.1875rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  --step-4: clamp(2.75rem, 1.6rem + 4.4vw, 5.25rem);
  --step-5: clamp(2.75rem, 1.4rem + 4.6vw, 5rem);
  --tracking-caps: 0.08em;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --section: 120px;

  /* Layout contract, D-100. Never re-derived: */
  --gutter: 1.5rem;
  --measure: 40rem;
  --track-aside: 24rem;
  --track-gap: 3rem;
  --measure-centred: 36rem;
  --container: 1120px;

  /* Concept A wrap: 1200px of content at desktop (RA6). */
  --wrap: 1200px;
  --edge: 20px;
  --rule-w: 64px;
  --rule-h: 8px;

  /* Motion, DR76 item 1 */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-post: cubic-bezier(0.34, 1.36, 0.64, 1);
  --dur-1: 150ms;
  --dur-2: 300ms;
  --dur-3: 600ms;
  --dur-4: 1200ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
main > :last-child {
  flex-grow: 1;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
picture {
  display: block;
}
figure {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--blue-deep);
}
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
/* On the navy and blue grounds the ring turns white so it holds its edge. */
.hero :focus-visible,
.services :focus-visible,
.section-blue :focus-visible,
.card--blue :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

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

/* ---- Type ---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  margin: 0 0 var(--space-md);
  text-wrap: balance;
  color: var(--navy);
}
h1 {
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
/* The rule device: an 8px bar above every H2. Blue on light grounds, sand on */
h2::before {
  content: "";
  display: block;
  width: var(--rule-w);
  height: var(--rule-h);
  margin-bottom: 28px;
  background: var(--blue);
}
h3 {
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h4 {
  font-size: var(--step-1);
  line-height: 1.2;
}

p {
  margin: 0 0 var(--space-md);
}

/* Kicker. Bold, over a 2px rule in its own colour. `.eyebrow` is the class */
.kicker,
.eyebrow {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 var(--space-lg);
  padding-bottom: 10px;
  border-bottom: 2px solid currentColor;
  font-size: var(--step-00);
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue);
  justify-self: start;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}

.small {
  font-size: var(--step-00);
  color: var(--ink-soft);
}

.descriptor {
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--blue);
}

.prose > * + * {
  margin-top: var(--space-md);
}
.prose h2 {
  margin-top: var(--space-xl);
}
.prose h3 {
  margin-top: var(--space-lg);
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
}
.prose li + li {
  margin-top: var(--space-xs);
}

.nowrap {
  white-space: nowrap;
}

/* ---- Layout contract ----------------------------------------------------- */
/* One content grid (D-060, D-100). The main track floors at the viewport less */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns:
    [full-start]         minmax(var(--gutter), 1fr)
    [main-start]         minmax(min(var(--measure), 100% - 2 * var(--gutter)), var(--measure))
    [main-end gap-start] minmax(0, var(--track-gap))
    [aside-start]        minmax(0, var(--track-aside))
    [aside-end]          minmax(var(--gutter), 1fr)
    [full-end];
}
.container > * { grid-column: main; }
.u-wide { grid-column: main-start / aside-end; }
.u-aside { grid-column: aside; }
.u-full { grid-column: full; }

/* The Concept A wrap, used by the home sections, the header and the footer. */
.wrap,
.header-inner,
.footer-inner {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--edge));
  margin-inline: auto;
  padding-inline: var(--edge);
}

/* Section grounds. White, mist, sand; navy and blue for the bands. */
.section {
  padding-block: var(--space-3xl);
}
.section--list {
  padding-block: 4.5rem;
}
.section-alt {
  background: var(--sand);
}
.section-alt h2::before {
  background: var(--navy);
}
.section-alt a:not(.btn) {
  color: var(--navy);
}
.section-accent {
  background: var(--mist);
}
.section-blue {
  background: var(--blue);
  color: var(--white);
}
.section-blue h2,
.section-blue h3,
.section-blue a:not(.btn) {
  color: var(--white);
}
.section-blue h2::before {
  display: none;
}

.section-head {
  margin-bottom: var(--space-xl);
}
.section-head p {
  margin-bottom: 0;
}
.section-head:has(+ .prose) {
  margin-bottom: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---- Buttons and the arrow link ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.6rem 26px;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--white);
}
.btn-secondary {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-lg);
}

/* On navy: the blue button keeps a white edge, the second button is outlined. */
.hero .btn-primary {
  border-color: var(--white);
}
.hero .btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.hero .btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}
/* On the blue block the button is white with navy text. */
.section-blue .btn-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.section-blue .btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.arrow-link {
  font-weight: 700;
  text-decoration: none;
}
.arrow-link::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.35em;
  transition: transform var(--dur-1) var(--ease-out);
}
.arrow-link:hover {
  text-decoration: underline;
}
.arrow-link:hover::after,
.arrow-link:focus-visible::after {
  transform: translateX(4px);
}

/* ---- Header and navigation ----------------------------------------------- */
.site-header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  min-width: 44px;
  margin-right: auto;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark {
  width: 40px;
  height: 40px;
  margin-left: -8px;
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  order: 3;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 0;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 0.6rem 0;
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--blue);
  text-decoration-line: underline;
}
.site-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: var(--blue);
}

/* Book a Call, the bordered header button (RA4). */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  order: 2;
  min-height: 44px;
  padding: 0.45rem 20px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--navy);
  text-decoration: none;
  border: 2px solid var(--navy);
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.header-cta:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---- Footer, navy ink ---------------------------------------------------- */
.site-footer {
  background: var(--navy-ink);
  color: var(--white);
  padding-block: 80px 64px;
  font-size: 1rem;
}
/* DR57: one grid row, so the three columns share one top edge. */
.footer-inner {
  display: grid;
  grid-template-columns: 6fr 3fr 3fr;
  gap: 32px 48px;
  align-items: start;
}
.footer-inner > * {
  grid-column: auto;
}
.footer-brand {
  margin: 0 0 12px;
}
.footer-brand .brand-name {
  font-size: 1.75rem;
  color: var(--white);
}
.footer-legal {
  margin: 0;
  color: var(--blue-pale);
}
.footer-legal + .footer-legal {
  margin-top: 24px;
  font-size: 0.9375rem;
}
.footer-col p {
  margin: 0 0 10px;
}
.footer-col p:first-child {
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  font-size: 0.9375rem;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.site-footer a {
  color: var(--white);
  font-size: 1.0625rem;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--blue-pale);
  text-decoration: underline;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero,
.hero.section-alt {
  position: relative;
  padding-block: 96px 104px;
  background: var(--navy);
  color: var(--white);
}
.hero h1,
.hero h2,
.hero h3 {
  color: var(--white);
}
.hero h1 {
  margin-bottom: var(--space-lg);
}
.hero:not(.hero--home) h1 {
  grid-column: main-start / aside-end;
  max-width: 13em;
}
.hero .lead,
.hero .small {
  color: var(--blue-pale);
}
.hero .kicker,
.hero .descriptor,
.hero a:not(.btn) {
  color: var(--white);
}
.hero .kicker {
  border-bottom-color: var(--sand);
}
.hero h2::before {
  background: var(--sand);
}

/* Home hero. The navy ground runs from the left edge to the centre line plus */
.hero--home {
  z-index: 1;
  min-height: 640px;
  padding: 0;
}
.hero--home .hero-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: calc(50% + 40px);
  z-index: 2;
}
.hero-photo picture,
.hero-photo img,
.who-photo picture,
.who-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo img {
  object-position: 70% 55%;
}
.hero--home .wrap {
  position: relative;
}
.hero-copy {
  max-width: min(610px, calc(50vw - var(--edge)));
  padding-block: 104px 112px;
}
.hero--home h1 {
  font-size: 5.25rem;
  line-height: 0.96;
  margin-bottom: 36px;
}
.hero--home .lead {
  max-width: 27em;
  margin-bottom: 40px;
  font-size: 1.375rem;
}
.hero--home .btn-group {
  margin-top: 0;
}
.hero--home::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(50% + 40px);
  height: 12px;
  background: var(--blue);
}

/* ---- The gap: the statement beside figure 6 ------------------------------ */
.gap {
  padding-block: calc(var(--section) + 40px) var(--section);
}
.gap-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: center;
}
.statement {
  font-size: var(--step-5);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 28px;
}
.gap-text p {
  max-width: 34em;
  font-size: var(--step-1);
}

/* Figures: mounted on mist under an 8px navy bar, the caption on a sand rule. */
.figure,
.media-figure {
  margin: 0;
  padding: 28px 28px 24px;
  background: var(--mist);
  border-top: 8px solid var(--navy);
}
.figure {
  margin-top: var(--space-xl);
}
.figure img,
.media-figure img {
  width: 100%;
  height: auto;
  background: var(--white);
}
.figure figcaption,
.media-figure figcaption {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--sand-rule);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 60ch;
}
.hero .figure {
  border-top-color: var(--blue);
}
.section-accent .figure,
.section-accent .media-figure {
  background: var(--white);
}

/* ---- Media rows ---------------------------------------------------------- */
.media-row {
  display: grid;
  grid-template-columns: 1fr;
  padding-inline: var(--gutter);
  gap: var(--space-xl);
  align-items: center;
}
.media-row > * {
  grid-column: auto;
}
.media-row > .statement {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.media-text {
  max-width: var(--measure);
}

/* ---- Services: the navy band and three flat cards ------------------------ */
.services {
  padding-block: var(--section);
  background: var(--navy);
  color: var(--white);
}
.services .section-head {
  margin-bottom: 56px;
}
.services h2 {
  color: var(--white);
}
.services h2::before {
  background: var(--sand);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ---- Cards. Flat and square. White by default. ------------------- */
.card-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: var(--space-xl);
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 32px;
  background: var(--white);
  color: var(--ink);
  border-top: 8px solid var(--blue);
}
.card .kicker {
  display: block;
  align-self: stretch;
}
.card h3 {
  margin: 0 0 14px;
}
.card .card-link {
  margin: auto 0 0;
  padding-top: 12px;
}
.section-alt .card a:not(.btn) {
  color: var(--blue);
}
.cards .card {
  padding: 40px 36px;
  border-top: 0;
}
.cards h3 {
  font-size: 2.375rem;
  letter-spacing: -0.02em;
}
@media (min-width: 920px) {
  .cards h3 {
    min-height: 2.2em;
  }
}
.cards .card p {
  font-size: 1.125rem;
}
.card--blue {
  background: var(--blue);
}
.card--blue,
.card--blue h3,
.card--blue .kicker,
.card--blue a {
  color: var(--white);
}
.card--white .kicker {
  color: var(--blue);
}
.card--sand {
  background: var(--sand);
}
.card--sand .kicker {
  color: var(--earth);
}
.card--sand a {
  color: var(--navy);
}
.card--blue a:hover,
.card--sand a:hover {
  color: inherit;
}

/* ---- Pillars ------------------------------------------------------------- */
.pillars {
  display: grid;
  gap: var(--space-xl) var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pillars--four {
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
  .pillars--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 62rem) {
  .pillars--four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pillar {
  padding-top: 18px;
  border-top: 4px solid var(--blue);
}
.section-alt .pillar {
  border-top-color: var(--navy);
}
.pillar h3 {
  font-size: var(--step-1);
  margin-bottom: var(--space-xs);
}
.pillar p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---- Steps, programme weeks ----------------------------------------------- */
.steps {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding-top: var(--space-md);
  border-top: 8px solid var(--navy);
}
.step-num {
  display: block;
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}
.step-post {
  display: block;
  width: 40px;
  height: 8px;
  margin: var(--space-sm) 0;
  background: var(--blue);
}
.step h3 {
  margin-bottom: var(--space-xs);
}
.step p {
  color: var(--ink-soft);
}

/* ---- Photograph bands. A figure child of main, never a section; no overlay, */
.band img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: 50% 80%;
}
.band--grader img {
  object-position: 66% 64%;
}
.band--low img {
  object-position: center 85%;
}

/* ---- The blue statement block -------------------------------------------- */
.cta {
  padding-block: 88px;
}
.cta-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 72px;
  align-items: end;
}
.cta h2 {
  margin: 0;
  font-size: var(--step-5);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.cta-body p {
  font-size: 1.5rem;
  line-height: 1.45;
  margin-bottom: 28px;
}
.cta .btn-group {
  margin-top: 0;
}
.closing p {
  font-size: var(--step-1);
}

/* ---- Self check, on sand ------------------------------------------------- */
.check {
  padding-block: var(--section);
}
.check-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 72px;
  align-items: start;
}
.check-head p:not(.small) {
  margin-bottom: var(--space-lg);
}
.check .small {
  padding-top: 16px;
  border-top: 2px solid var(--earth);
  font-weight: 700;
  color: var(--earth);
}

/* The white sheet: the static list with JavaScript off, the form with it on. */
#self-check-static,
#self-check-form,
form[action="/enquiry.php"] {
  padding: 44px;
  background: var(--white);
  border-top: 8px solid var(--navy);
}
#self-check-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 32px;
}
#self-check-form .form-field {
  display: flex;
  flex-direction: column;
  margin: 0;
}
#self-check-form .form-field label {
  flex: 1 0 auto;
  margin-bottom: 10px;
  line-height: 1.35;
}
#self-check-form .form-actions {
  grid-column: 1 / -1;
  margin: 0;
}

/* The result, identical for all three positions (DR07). */
#self-check-result {
  margin-top: 24px;
  padding: 36px 44px;
  background: var(--white);
  border-left: 8px solid var(--blue);
}
#self-check-result .eyebrow,
#self-check-static .eyebrow {
  margin-bottom: 0;
}
#self-check-result .btn {
  margin-top: var(--space-sm);
}

/* ---- Who runs it: the photograph bookend --------------------------------- */
.who {
  position: relative;
  background: var(--white);
}
.who .who-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(50% - 40px);
}
.who-photo img {
  object-position: 50% 60%;
}
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 600px;
}
.who-text {
  grid-column: 2;
  padding-block: var(--section);
}
.who-text .prose {
  font-size: var(--step-1);
}
.who::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(50% - 40px);
  height: 12px;
  background: var(--blue);
}

/* ---- Forms --------------------------------------------------------------- */
.form-field {
  margin-bottom: 1.25rem;
}
.form-field label {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--field);
  border-radius: 0;
}
.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: var(--navy);
}
.form-field textarea {
  min-height: 7.8rem;
  resize: vertical;
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--ink);
  background: var(--mist);
}
.form-field .small {
  margin: 0.35rem 0 0;
}
.form-actions {
  margin-top: var(--space-lg);
}

/* Honeypot: off screen, never display:none (RS1). */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Breakpoints. The set at 65de414, none added, none removed (RA6). ----- */
@media (min-width: 768px) {
  .hero:not(.hero--home) .lead {
    max-width: 34em;
  }
}
@media (min-width: 820px) {
  :root {
    --edge: 40px;
  }
  .media-row {
    grid-template-columns: 1fr 1fr;
  }
  .media-row--reverse .media-text {
    order: 2;
  }
}
@media (min-width: 860px) {
  .card-grid .card {
    min-height: 100%;
  }
}
@media (min-width: 700px) and (max-width: 1099.98px) {
  .header-inner { gap: 20px; }
  .site-nav ul { gap: 20px; }
  .site-nav a,
  .header-cta { font-size: 1rem; }
  .header-cta { padding-inline: 14px; }
  .hero--home h1 { font-size: 3.75rem; }
  .statement,
  .cta h2 { font-size: 3.5rem; }
  .cards .card { padding: 32px 24px; }
  .cards h3 { font-size: 1.875rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .closing .container h2,
  .closing .container > p,
  .closing .container .section-head,
  .closing .container .prose {
    grid-column: main;
  }
  .closing .container .btn-group {
    grid-column: aside;
    grid-row: 1 / span 2;
    align-self: end;
    margin-top: 0;
  }
}
@media (max-width: 919.98px) {
  :root {
    --section: 72px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-inner {
    gap: 8px;
    min-height: 64px;
  }
  .brand-name {
    font-size: 1.25rem;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    z-index: 50;
  }
  .site-header.nav-open .site-nav {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--edge) 1rem;
  }
  .site-nav li + li {
    border-top: 1px solid var(--line);
  }
  .site-nav a {
    display: block;
    padding: 0.85rem 0 0.85rem 0.75rem;
    border-left: 4px solid transparent;
  }
  .site-nav a[aria-current="page"] {
    text-decoration-line: none;
    border-left-color: var(--blue);
  }
  .header-cta {
    padding-inline: 12px;
    font-size: 1rem;
  }

  .hero,
  .hero.section-alt {
    padding-block: 3.5rem;
  }
  .hero--home {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
    padding: 0;
  }
  .hero--home .hero-photo {
    position: static;
  }
  .hero-photo img {
    height: 240px;
    object-position: 62% 60%;
  }
  .hero-copy {
    max-width: none;
    padding-block: 32px 36px;
  }
  .hero--home h1 {
    font-size: 2.75rem;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
  }
  .hero--home .lead {
    font-size: var(--step-0);
    line-height: 1.45;
    margin-bottom: 24px;
  }
  .hero--home .btn {
    flex: 1 1 auto;
  }
  .hero--home::after {
    display: none;
  }

  .gap {
    padding-block: var(--section);
  }
  .gap-grid,
  .cta-grid,
  .check-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gap-grid {
    gap: 40px;
  }
  .statement,
  .cta h2 {
    font-size: 2.75rem;
  }
  .gap-text p {
    font-size: var(--step-0);
  }
  .figure,
  .media-figure {
    padding: 16px;
  }

  .services .section-head {
    margin-bottom: 40px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cards .card {
    min-height: 0;
    padding: 28px 24px;
  }
  .cards .kicker {
    min-height: 0;
  }
  .cards h3 {
    font-size: 2rem;
  }

  .band img {
    height: 200px;
  }

  .cta {
    padding-block: 64px;
  }
  .cta-grid {
    gap: 24px;
  }
  .cta-body p {
    font-size: 1.25rem;
  }

  #self-check-static,
  #self-check-form,
  form[action="/enquiry.php"] {
    padding: 24px 20px 28px;
  }
  #self-check-form {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  #self-check-result {
    padding: 24px 20px;
  }

  .who {
    padding-block: var(--section);
  }
  .who .who-photo {
    position: static;
    width: auto;
    margin: 0 var(--edge) 32px;
  }
  .who-photo img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .who-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .who-text {
    grid-column: auto;
    padding: 0;
  }
  .who::after {
    display: none;
  }

  .site-footer {
    padding-block: 56px 48px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px) {
  .section {
    padding-block: 4rem;
  }
  .section--list {
    padding-block: 3.5rem;
  }
  .section-head {
    margin-bottom: var(--space-lg);
  }
  .hero:not(.hero--home) .btn-group {
    flex-direction: column;
  }
  .card {
    padding: 28px 24px;
  }
}
@media (max-width: 699.98px) {
  .steps { gap: var(--space-lg); }
}
@media (max-width: 859.98px) {
  #self-check-form .form-field select {
    font-size: var(--step-0);
  }
}
@media (min-width: 52rem) {
  .closing .prose {
    font-size: var(--step-1);
  }
}
@media (max-width: 51.99rem) {
  .closing .prose {
    font-size: var(--step-0);
  }
}
@media (max-width: 480px) {
  .hero--home .btn-group {
    flex-direction: column;
  }
}
@media (max-width: 399.98px) {
  :root {
    --edge: 16px;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 6px;
    padding-block: 10px;
  }
  .brand-name {
    font-size: 1rem;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    margin-left: -6px;
  }
  .header-cta {
    padding-inline: 8px;
    font-size: 0.9375rem;
  }
  .nav-toggle {
    padding-inline: 0.6rem;
    font-size: 0.9375rem;
  }
}

/* ==== R2a: Works Programme page ==== */
/* Brief 13 Addendum A, R2 part a. Every rule is scoped to main.page-programme */

/* Hero: the navy ground with the gravel road photograph bleeding off the */
.page-programme .hero--programme {
  z-index: 1;
  min-height: 640px;
  padding: 0;
}
.page-programme .hero--programme .hero-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: calc(50% + 40px);
  z-index: 2;
}
.page-programme .hero--programme .hero-photo img {
  object-position: 50% 72%;
}
.page-programme .hero--programme .wrap {
  position: relative;
}
.page-programme .hero--programme h1 {
  max-width: none;
  font-size: 4.5rem;
  line-height: 0.98;
  margin-bottom: 28px;
}
.page-programme .hero--programme .descriptor {
  margin-bottom: 20px;
}
.page-programme .hero--programme .lead {
  max-width: 30em;
  margin-bottom: 36px;
}
.page-programme .hero--programme .btn-group {
  margin-top: 0;
}
.page-programme .hero--programme::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(50% + 40px);
  height: 12px;
  background: var(--blue);
}

/* Section rhythm. */
.page-programme .prog-section {
  padding-block: var(--section);
}
.page-programme .prog-one {
  padding-top: calc(var(--section) + 72px);
}

/* Heading beside its text: 5 to 7 across the 1200px wrap. */
.page-programme .prog-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}
.page-programme .prog-split h2 {
  margin-bottom: 0;
}
.page-programme .prog-split .prose {
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.5;
}
.page-programme .prog-split .prose p {
  margin-bottom: 0;
}
.page-programme .prog-team .prose {
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--navy);
}

/* Figures 1, 2 and 4 on mist mounts across the full wrap. */
.page-programme .prog-split + .figure {
  margin-top: 64px;
}
.page-programme .figure + .figure {
  margin-top: 32px;
}

/* Figure 3 beside its text, on the mist ground with a white mount. */
.page-programme .prog-report .media-row {
  max-width: calc(var(--wrap) + 2 * var(--edge));
  padding-inline: var(--edge);
}

/* The three weeks: navy numerals on a ruled row. */
.page-programme .prog-weeks .steps {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 56px;
  border-top: 2px solid var(--navy);
}
.page-programme .prog-weeks .step {
  padding: 36px 40px 8px 0;
  border-top: 0;
}
.page-programme .prog-weeks .step-num {
  margin-bottom: 20px;
  font-size: 7.5rem;
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.page-programme .prog-weeks .step h3 {
  margin-bottom: 12px;
}
.page-programme .prog-weeks .step p {
  margin-bottom: 0;
  color: var(--ink);
}
.page-programme .prog-weeks .weeks-supply {
  padding-right: max(0px, calc(100% - 52rem));
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--sand-rule);
  font-size: var(--step-1);
  line-height: 1.5;
}

/* The agreement (W-6): the opening sentence beside the heading, the two */
.page-programme .terms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.page-programme .terms-grid h2 {
  margin-bottom: 0;
}
.page-programme .terms-open {
  margin: 0;
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
.page-programme .terms-pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-programme .terms-pair li {
  margin: 0;
  padding: 40px 36px;
  background: var(--white);
  border-top: 8px solid var(--navy);
  font-size: var(--step-1);
  line-height: 1.45;
}
.page-programme .terms-close {
  max-width: var(--measure);
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (min-width: 1100px) {
  .page-programme .prog-report .media-row {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
  }
}
@media (min-width: 820px) {
  .page-programme .prog-weeks .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-programme .prog-weeks .step + .step {
    padding-left: 40px;
    border-left: 1px solid var(--sand-rule);
  }
}
@media (min-width: 700px) and (max-width: 1099.98px) {
  .page-programme .hero--programme h1 {
    font-size: 3.5rem;
  }
  .page-programme .prog-weeks .step-num {
    font-size: 5.5rem;
  }
  .page-programme .prog-split,
  .page-programme .terms-grid {
    gap: 40px 48px;
  }
}
@media (max-width: 919.98px) {
  .page-programme .hero--programme {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }
  .page-programme .hero--programme .hero-photo {
    position: static;
  }
  .page-programme .hero--programme .hero-photo img {
    object-position: 50% 70%;
  }
  .page-programme .hero--programme::after {
    display: none;
  }
  .page-programme .hero--programme h1 {
    font-size: 2.75rem;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
  }
  .page-programme .hero--programme .lead {
    font-size: var(--step-0);
    line-height: 1.45;
    margin-bottom: 24px;
  }
  .page-programme .prog-one {
    padding-top: var(--section);
  }
  .page-programme .prog-split,
  .page-programme .terms-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .page-programme .prog-split + .figure {
    margin-top: 40px;
  }
  .page-programme .prog-team .prose {
    font-size: var(--step-1);
  }
  .page-programme .terms-pair,
  .page-programme .terms-close {
    grid-column: auto;
  }
  .page-programme .terms-pair {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 8px;
  }
  .page-programme .terms-pair li {
    padding: 28px 24px;
  }
  .page-programme .terms-open {
    font-size: var(--step-1);
  }
}
@media (max-width: 767.98px) {
  .page-programme .prog-weeks .steps {
    margin-top: 32px;
  }
  .page-programme .prog-weeks .step {
    padding: 28px 0;
  }
  .page-programme .prog-weeks .step + .step {
    border-top: 1px solid var(--sand-rule);
  }
  .page-programme .prog-weeks .step-num {
    margin-bottom: 14px;
    font-size: 4.5rem;
  }
  .page-programme .prog-weeks .weeks-supply {
    margin-top: 16px;
    font-size: var(--step-0);
  }
}
/* ==== end R2a ==== */

/* ==== R2b: inner pages ==== */
/* Framework, additional services, about, contact, 404 and the enquiry */

/* Inner hero: the navy ground on the 1200px wrap, the H1 on the left and the */
.hero.inner-hero {
  padding-block: 104px 112px;
}
.inner-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: var(--blue);
}
.inner-hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
  line-height: 0.98;
  max-width: none;
  margin-bottom: 0;
}
.inner-hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px 72px;
  align-items: end;
}
.hero .inner-hero-grid > h1,
.hero.inner-hero h1 {
  grid-column: 1;
}
.inner-hero-body > :last-child {
  margin-bottom: 0;
}
.inner-hero .lead {
  max-width: none;
  font-size: 1.375rem;
}
.inner-hero .descriptor {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--sand);
}
.inner-hero-grid > .figure {
  grid-column: 1 / -1;
  margin-top: 40px;
}

/* Framework: two equal blocks side by side (F-1), each with its foot kept */
.fw-blocks {
  padding-block: var(--section);
}
.fw-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.fw-card {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 48px 44px;
  border-top-color: var(--navy);
}
.fw-card .fw-title::before {
  display: none;
}
.fw-card .fw-title {
  line-height: 1.1;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.fw-card p {
  flex-grow: 1;
  max-width: 30em;
  font-size: var(--step-1);
  line-height: 1.5;
}
.fw-foot {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid var(--earth);
}
.fw-foot p {
  max-width: 40em;
  font-size: var(--step-1);
  margin-bottom: 0;
}
.fw-cutout {
  margin-top: 32px;
}
.fw-ext {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Additional services: ruled flat blocks across the width (A-1). */
.svc-section {
  padding-block: var(--section);
}
.svc-section .section-head {
  margin-bottom: 48px;
}
.svc-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.svc-block {
  padding: 32px 32px 28px;
  background: var(--mist);
  border-top: 4px solid var(--blue);
}
.svc-block h3 {
  font-size: 1.625rem;
  margin-bottom: 12px;
}
.svc-block p {
  margin: 0;
  color: var(--ink-soft);
}
.svc-council .svc-block {
  background: var(--white);
  border-top-color: var(--navy);
}
.svc-engaged-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 72px;
  align-items: start;
}
.svc-engaged-grid .section-head {
  margin-bottom: 0;
}
.svc-engaged .pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* The closing blue block on these pages: the button directly under the line, */
.page-services .cta-grid,
.page-about .about-grid {
  align-items: start;
}
.page-services .cta-body p,
.page-about .cta-body p {
  margin-bottom: 28px;
}

/* About: the headshot beside the body (B-1) */
.about-who {
  padding-block: var(--section);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "portrait body";
  gap: 0 80px;
}
.page-about .about-grid {
  align-items: center;
}
.about-portrait {
  grid-area: portrait;
}
.about-body {
  grid-area: body;
}
.about-signature img {
  width: 280px;
}
.about-body .prose p {
  max-width: 24em;
  font-size: var(--step-2);
  line-height: 1.45;
}

/* Contact: the direct email line beside the form sheet, on sand. */
.contact-form,
.contact-privacy {
  padding-block: var(--section);
}
.contact-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 72px;
  align-items: start;
}
.contact-side .section-head {
  margin-bottom: var(--space-lg);
}
.contact-side .prose p {
  font-size: var(--step-1);
}
.contact-form a:not(.btn) {
  color: var(--navy);
}
.contact-privacy .section-head {
  margin-bottom: 0;
}
.contact-privacy .prose p {
  max-width: 40em;
  font-size: var(--step-1);
}

/* 404: the H1 and the sentence, the page list below them across the width. */
.nf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.nf-text h1 {
  margin-bottom: var(--space-lg);
}
.nf-line {
  max-width: 34em;
  margin-bottom: 0;
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--blue-pale);
}
.nf-links ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.nf-links li {
  border-top: 4px solid var(--sand);
  border-bottom: 1px solid var(--blue-pale);
}
.nf-links li a {
  display: block;
  padding: 12px 0;
  font-size: var(--step-1);
  font-weight: 700;
  text-decoration: none;
}
.nf-links li a:hover {
  text-decoration: underline;
}
.nf-links p {
  margin: 0;
}

/* The enquiry responses: the navy hero on the wrap. */
.response-body {
  max-width: calc(var(--wrap) + 2 * var(--edge));
}
.response-body > h1,
.response-body > p,
.response-body > ul {
  max-width: 40rem;
}
.response-body .lead {
  margin-block: var(--space-lg);
}
.response-body ul {
  margin: 0 0 var(--space-lg);
  padding-left: 1.25rem;
}
.response-body .hero-alt-link {
  margin: 0;
}

@media (min-width: 700px) and (max-width: 1099.98px) {
  .fw-card .fw-title { font-size: 1.875rem; }
  .fw-card { padding: 40px 32px; }
  .svc-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-engaged-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 919.98px) {
  .hero.inner-hero {
    padding-block: 56px 64px;
  }
  .nf-links ul {
    grid-template-columns: 1fr;
  }
  .nf-links li {
    border-top-width: 0;
  }
  .nf-links li:first-child {
    border-top-width: 2px;
  }
  .inner-hero-grid,
  .nf-grid,
  .fw-pair,
  .svc-engaged-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-grid {
    grid-template-areas:
      "portrait"
      "body";
  }
  .inner-hero .lead,
  .nf-line {
    font-size: var(--step-1);
  }
  .inner-hero-grid > .figure {
    margin-top: 12px;
  }
  .fw-card {
    min-height: 0;
    padding: 32px 24px;
  }
  .fw-card .fw-title {
    font-size: 1.875rem;
  }
  .fw-foot {
    margin-top: 40px;
  }
  .svc-section .section-head {
    margin-bottom: 32px;
  }
  .svc-engaged .pillars {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    max-width: 320px;
  }
  .contact-grid {
    gap: 32px;
  }
}
@media (max-width: 767.98px) {
  .svc-blocks {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .svc-block {
    padding: 24px 20px;
  }
}
@media (max-width: 399.98px) {
  .fw-ext {
    padding-inline: 14px;
  }
}
/* ==== end R2b ==== */
