/* ==========================================================================
   Lead Engineering - styles.css

   Contents
    1. Fonts (self-hosted, no third-party requests)
    2. Design tokens
    3. Base
    4. Layout
    5. Buttons and links
    6. Header and navigation
    7. Hero
    8. Line drawings
    9. About
   10. Services
   11. Approach
   12. Contact, form and map
   13. Footer
   14. Privacy page and 404 page
   15. Reduced motion
   16. Print
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semi-condensed-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens -------------------------------------------------------- */

:root {
  /* Surfaces */
  --white: #ffffff;
  --paper: #f6f8fa;          /* soft off-white */
  --mist: #ebf0f4;           /* light grey sections */
  --line: #d6dfe8;           /* borders and rules */

  /* Steel blue (primary brand colour) */
  --steel-50: #f0f4f8;
  --steel-100: #e1eaf2;
  --steel-200: #c4d4e3;
  --steel-300: #9db5cc;
  --steel-400: #7392b1;
  --steel-500: #4f7396;
  --steel-600: #3e5d7d;

  /* Navy (headings, contrast) */
  --navy-900: #13294b;
  --navy-950: #0e2140;

  /* Teal (used only for live signals, focus and success) */
  --teal-50: #e4f3f1;
  --teal-500: #2a8c86;
  --teal-600: #1f746f;

  /* Text */
  --ink: #36475b;
  --ink-soft: #55677c;
  --error: #b3261e;

  /* Type */
  --font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", "Arial Narrow", system-ui, sans-serif;
  --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --fs-h1: clamp(2.625rem, 1.55rem + 3.9vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.55rem + 1.7vw, 3rem);
  --fs-h3: 1.5rem;

  /* Space and shape */
  --gutter: clamp(1.25rem, 0.75rem + 2.4vw, 2.5rem);
  --max-w: 75rem;
  --space-section: clamp(4.5rem, 3rem + 5vw, 7.5rem);
  --header-h: 4rem;
  --radius-sm: 0.625rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-card: 0 1px 2px rgba(19, 41, 75, 0.05), 0 12px 32px -20px rgba(19, 41, 75, 0.22);
}

@media (min-width: 60em) {
  :root {
    --header-h: 4.75rem;
  }
}

/* 3. Base ----------------------------------------------------------------- */

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--navy-900);
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--steel-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy-900);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

main:focus {
  outline: none;
}

::selection {
  background: var(--steel-100);
  color: var(--navy-900);
}

.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;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* 4. Layout --------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--max-w) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-section);
}

.section--white {
  background: var(--white);
}

.section--mist {
  background: var(--mist);
}

.section--paper {
  background: var(--paper);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-title {
  font-size: var(--fs-h2);
}

.section-intro {
  margin: 1.125rem 0 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
}

/* 5. Buttons and links ---------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button svg {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

.button--primary {
  background: var(--steel-500);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(19, 41, 75, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.button--primary:hover {
  background: var(--steel-600);
  color: var(--white);
}

.button--secondary {
  border-color: var(--steel-300);
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy-900);
}

.button--secondary:hover {
  border-color: var(--steel-500);
  background: var(--white);
  color: var(--navy-900);
}

.button--small {
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  font-size: 1rem;
}

.button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.text-link {
  font-weight: 600;
  color: var(--steel-600);
  text-decoration: underline;
  text-decoration-color: var(--steel-300);
  text-underline-offset: 0.25em;
}

.text-link:hover {
  color: var(--navy-900);
  text-decoration-color: currentColor;
}

/* 6. Header and navigation ------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.nav-open,
.site-header--solid {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--navy-900);
  text-decoration: none;
}

.brand:hover {
  color: var(--navy-900);
}

.brand__mark {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-900);
  cursor: pointer;
}

.icon-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav__list {
  list-style: none;
}

.site-nav__link {
  color: var(--navy-900);
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--steel-600);
}

@media (max-width: 59.99em) {
  .site-nav__list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0.25rem var(--gutter) 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 18px 30px -18px rgba(19, 41, 75, 0.25);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .nav-open .site-nav__list {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav__link {
    display: block;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--mist);
    font-size: 1.125rem;
  }

  .site-nav__item--phone {
    display: none;
  }

  /* Without JavaScript the menu simply shows as a row of links */
  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .site-header {
    position: static;
    height: auto;
    background: var(--white);
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }

  html:not(.js) .site-nav {
    order: 3;
    width: 100%;
  }

  html:not(.js) .site-nav__list {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  html:not(.js) .site-nav__link {
    border: 0;
    padding: 0.5rem 0;
  }

  html:not(.js) .hero,
  html:not(.js) .page-hero,
  html:not(.js) .error-page {
    padding-top: 0;
  }
}

@media (min-width: 60em) {
  .nav-toggle,
  .header-call {
    display: none;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .site-nav__link:not(.button) {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
  }

  .site-nav__link:not(.button)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.2rem;
    left: 0;
    height: 2px;
    background: var(--steel-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .site-nav__link:not(.button):hover::after,
  .site-nav__link.is-current::after {
    transform: scaleX(1);
  }

  .site-nav__item--phone {
    margin-left: 0.5rem;
  }
}

/* 7. Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--header-h);
  background: var(--paper);
}

/* Engineering-paper grid, strongest behind the drawing */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(79, 115, 150, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 115, 150, 0.1) 1px, transparent 1px),
    linear-gradient(to right, rgba(79, 115, 150, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 115, 150, 0.055) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  -webkit-mask-image: linear-gradient(105deg, transparent 18%, #000 62%);
  mask-image: linear-gradient(105deg, transparent 18%, #000 62%);
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(0.15) saturate(0.9) contrast(1.02);
  transition: opacity 1.2s ease;
}

/* Light overlay keeps the headline readable over the video */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg,
      rgba(246, 248, 250, 0.96) 0%,
      rgba(246, 248, 250, 0.9) 34%,
      rgba(246, 248, 250, 0.45) 62%,
      rgba(246, 248, 250, 0.12) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.9) 100%);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero.has-video .hero__video,
.hero.has-video .hero__overlay {
  opacity: 1;
}

.hero.has-video::before {
  opacity: 0.2;
}

.hero__inner {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

@media (min-width: 48em) {
  .hero__title-line {
    display: block;
  }
}

.hero__lead {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

.hero__art {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  transition: opacity 0.9s ease;
}

.hero.has-video .hero__art {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.hero__motion {
  position: absolute;
  right: var(--gutter);
  bottom: 1.25rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy-900);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.hero__motion svg {
  width: 0.875rem;
  height: 0.875rem;
}

.hero__motion:hover {
  background: var(--white);
}

.hero__motion .icon-play,
.hero__motion.is-paused .icon-pause {
  display: none;
}

.hero__motion.is-paused .icon-play {
  display: block;
}

@media (max-width: 39.99em) {
  .hero__actions .button {
    flex: 1 1 100%;
  }
}

@media (min-width: 60em) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    min-height: min(calc(100svh - var(--header-h)), 50rem);
  }

  /* Headline sized to its column so each line stays on one line */
  .hero__title {
    font-size: clamp(2.75rem, 4.8vw - 0.1rem, 3.75rem);
  }

  .hero__art {
    max-width: 40rem;
    margin-right: calc(var(--gutter) * -0.5);
  }
}

/* 8. Line drawings ---------------------------------------------------------- */

.drawing {
  display: block;
  width: 100%;
  height: auto;
}

.drawing path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawing .s-main {
  stroke: var(--steel-500);
  stroke-width: 1.6;
}

.drawing .fill {
  fill: var(--drawing-fill, var(--paper));
}

.drawing .s-detail {
  stroke: var(--steel-400);
  stroke-width: 1.1;
}

.drawing .s-faint {
  stroke: var(--steel-200);
  stroke-width: 1;
}

.drawing .s-env {
  stroke: var(--steel-300);
  stroke-width: 1;
  stroke-dasharray: 5 7;
}

.drawing .s-centre {
  stroke: var(--steel-300);
  stroke-width: 0.9;
  stroke-dasharray: 18 4 2 4;
}

.drawing .s-dim path,
.drawing .s-label path {
  stroke: var(--steel-400);
  stroke-width: 0.9;
}

.drawing .s-label path {
  stroke: var(--steel-300);
}

.drawing .s-dim .s-dim-head,
.drawing .s-dim-head {
  fill: var(--steel-400);
  stroke: none;
}

.drawing text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  fill: var(--steel-500);
}

.drawing .s-wp-text text {
  font-size: 12px;
  fill: var(--steel-600);
}

.drawing .s-link {
  stroke: var(--teal-500);
  stroke-width: 1.1;
  stroke-dasharray: 2 5;
}

.drawing .s-iot-ring {
  stroke: var(--teal-500);
  stroke-width: 1.1;
}

.drawing .s-iot-node {
  fill: var(--teal-500);
  stroke: none;
}

.drawing .s-iot-text {
  fill: var(--teal-600);
}

.drawing .s-progress {
  fill: var(--steel-200);
  stroke: var(--steel-500);
  stroke-width: 1.6;
}

/* The one orchestrated moment: the hero drawing draws itself in, once */
.drawing .delay-0 { --d: 0; }
.drawing .delay-150 { --d: 150; }
.drawing .delay-450 { --d: 450; }
.drawing .delay-600 { --d: 600; }
.drawing .delay-750 { --d: 750; }
.drawing .delay-1000 { --d: 1000; }
.drawing .delay-1150 { --d: 1150; }
.drawing .delay-1500 { --d: 1500; }
.drawing .delay-1700 { --d: 1700; }
.drawing .delay-1900 { --d: 1900; }
.drawing .delay-2100 { --d: 2100; }

.drawing .pulse {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .drawing--hero .draw {
    stroke-dasharray: 1;
    animation:
      le-draw 1.5s cubic-bezier(0.6, 0.05, 0.3, 1) both,
      le-fill 0.7s ease both;
    animation-delay: calc(var(--d, 0) * 1ms), calc(var(--d, 0) * 1ms + 900ms);
  }

  .drawing--hero .fade {
    animation: le-fade 0.8s ease both;
    animation-delay: calc(var(--d, 0) * 1ms);
  }

  .drawing--hero .pulse {
    display: inline;
    transform-box: fill-box;
    transform-origin: center;
    animation: le-pulse 2.4s ease-out 2.8s 3 both;
  }
}

@keyframes le-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes le-fill {
  from { fill-opacity: 0; }
  to { fill-opacity: 1; }
}

@keyframes le-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes le-pulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(2.4); opacity: 0; }
}

/* 9. About ------------------------------------------------------------------ */

.about {
  display: grid;
  gap: 3rem;
}

.about__intro .section-title {
  margin-bottom: 1.5rem;
}

.about__intro p {
  max-width: 38rem;
}

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

.audiences__title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.audience-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.audience-list__item {
  display: grid;
  gap: 0.2rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.audience-list dt {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-900);
}

.audience-list dd {
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 40em) {
  .audience-list__item {
    grid-template-columns: 12.5rem minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 60em) {
  .about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }

  .audiences {
    padding-top: 0.5rem;
  }
}

/* 10. Services -------------------------------------------------------------- */

.services {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.service-card__figure {
  --drawing-fill: var(--steel-50);
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--line);
  background-color: var(--steel-50);
  background-image:
    linear-gradient(to right, rgba(79, 115, 150, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 115, 150, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}

.service-card__figure .drawing {
  max-width: 18.5rem;
}

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.75rem 1.75rem 2rem;
}

.service-card__title {
  font-size: var(--fs-h3);
}

.service-card__summary {
  margin: 0.75rem 0 1.5rem;
}

.service-card__list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-card__list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.45;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 0.2rem;
  width: 0.75rem;
  height: 0.42rem;
  border-bottom: 2px solid var(--teal-500);
  border-left: 2px solid var(--teal-500);
  transform: rotate(-45deg);
}

.service-card__link {
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 40em) and (max-width: 59.99em) {
  .service-card__figure .drawing {
    max-width: 22rem;
  }

  .service-card__body {
    padding-inline: 2.25rem;
  }

  .service-card__summary {
    max-width: 38rem;
  }

  .service-card__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

@media (min-width: 60em) {
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 11. Approach -------------------------------------------------------------- */

.values {
  display: grid;
  gap: 2.25rem 3rem;
}

.value {
  position: relative;
  padding-top: 1.25rem;
}

.value::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--steel-500);
}

.value__title {
  margin-bottom: 0.6rem;
  font-size: 1.3125rem;
}

.value p {
  margin: 0;
}

@media (min-width: 48em) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 75em) {
  .values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

/* Concept-to-delivery sequence, drawn as a chain dimension */
.lifecycle {
  margin-top: clamp(3.5rem, 3rem + 3vw, 5.5rem);
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.lifecycle__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 2.25rem;
}

.lifecycle__title {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}

.lifecycle__note {
  max-width: 30rem;
  margin: 0;
  color: var(--ink-soft);
}

.lifecycle__steps {
  display: grid;
  list-style: none;
}

.lifecycle__step {
  position: relative;
}

.lifecycle__name {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.375rem;
}

.lifecycle__num {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border: 1.5px solid var(--steel-300);
  border-radius: 50%;
  background: var(--white);
  font-size: 1rem;
  color: var(--steel-600);
}

.lifecycle__text {
  margin: 0;
}

@media (max-width: 59.99em) {
  .lifecycle__step {
    padding: 0 0 1.75rem 3rem;
  }

  .lifecycle__step:last-child {
    padding-bottom: 0;
  }

  .lifecycle__name {
    margin-left: -3rem;
    margin-bottom: 0.4rem;
  }

  .lifecycle__name .lifecycle__num {
    margin-right: 0.45rem;
  }

  .lifecycle__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.25rem;
    bottom: 0.4rem;
    left: 0.9rem;
    width: 1px;
    background: var(--steel-300);
  }

  .lifecycle__dim {
    display: none;
  }
}

@media (min-width: 60em) {
  .lifecycle__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lifecycle__step {
    padding: 0 1.5rem;
  }

  .lifecycle__step:first-child {
    padding-left: 0;
  }

  .lifecycle__step:last-child {
    padding-right: 0;
  }

  .lifecycle__dim {
    position: relative;
    display: block;
    height: 1.5rem;
    margin: 1rem -1.5rem 1.25rem;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7'%3E%3Cpath d='M0 3.5 9 0v7z' fill='%237392b1'/%3E%3C/svg%3E") left center / 9px 7px no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7'%3E%3Cpath d='M9 3.5 0 0v7z' fill='%237392b1'/%3E%3C/svg%3E") right center / 9px 7px no-repeat,
      linear-gradient(var(--steel-400), var(--steel-400)) center / 100% 1px no-repeat;
  }

  .lifecycle__step:first-child .lifecycle__dim {
    margin-left: 0;
  }

  .lifecycle__step:last-child .lifecycle__dim {
    margin-right: 0;
  }

  /* Extension lines at each boundary */
  .lifecycle__dim::before,
  .lifecycle__step:last-child .lifecycle__dim::after {
    content: "";
    position: absolute;
    top: -0.35rem;
    bottom: -0.35rem;
    width: 1px;
    background: var(--steel-300);
  }

  .lifecycle__dim::before {
    left: 0;
  }

  .lifecycle__step:last-child .lifecycle__dim::after {
    right: 0;
  }
}

/* 12. Contact, form and map ------------------------------------------------ */

.contact {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.contact-list {
  display: grid;
  gap: 1.5rem;
  list-style: none;
}

.contact-list__label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact-list__value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-900);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-list__value:hover {
  color: var(--steel-600);
  text-decoration: underline;
}

.contact-list__value--phone {
  font-size: 1.875rem;
  letter-spacing: 0.01em;
}

.contact-list__value--email {
  font-size: 1.5rem;
  overflow-wrap: normal;
  word-break: normal;
}

address.contact-list__value {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
}

.contact-list__extra {
  display: inline-block;
  margin-top: 0.5rem;
}

.contact-tips {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--steel-50);
}

.contact-tips__title {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.contact-tips ul {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.1rem;
}

.contact-tips li::marker {
  color: var(--steel-500);
}

/* Without a configured form, the details spread across the full width */
@media (min-width: 48em) {
  .contact[data-form-state="off"] .contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .contact[data-form-state="off"] .contact-list {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }

  .contact[data-form-state="off"] .contact-tips {
    margin-top: 0;
  }
}

@media (min-width: 60em) {
  .contact[data-form-state="on"] {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

.form-card__title {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}

.form-card__intro {
  margin-bottom: 1.75rem;
  color: var(--ink-soft);
}

.enquiry-form {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40em) {
  .form-row--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.field__label {
  font-weight: 600;
  color: var(--navy-900);
}

.field__optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.field__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #7d91a6;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-900);
  line-height: 1.4;
  transition: border-color 0.15s ease;
}

.field__input:hover {
  border-color: var(--steel-500);
}

.field__input:focus-visible {
  border-color: var(--steel-500);
  outline-offset: 1px;
}

.field__input[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

textarea.field__input {
  min-height: 9.5rem;
  resize: vertical;
}

select.field__input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5l6-6' fill='none' stroke='%2313294b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 14px 9px;
}

.field__error {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--error);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 0.25rem;
}

.form-privacy {
  max-width: 26rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.form-status {
  margin: 0;
  font-weight: 600;
}

.form-status:empty {
  margin-block: -0.625rem;
}

.form-status--error {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--error);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fbeeed;
  color: var(--error);
}

.form-success {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--teal-50);
}

.form-success:focus {
  outline: none;
}

.form-success__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.form-success__title svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--teal-600);
}

/* Honeypot field for spam bots: hidden from people and screen readers */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Map: loads Google Maps only when the visitor asks for it */
.map {
  position: relative;
  min-height: 22rem;
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--steel-50);
}

.map__placeholder {
  position: relative;
  display: grid;
  min-height: inherit;
  place-items: center;
  padding: 2rem var(--gutter);
  text-align: center;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' viewBox='0 0 640 640'%3E%3Cg fill='none' stroke='%239db5cc' stroke-width='1'%3E%3Ccircle cx='320' cy='320' r='120' stroke-dasharray='4 6'/%3E%3Ccircle cx='320' cy='320' r='220' stroke-dasharray='4 6' opacity='.7'/%3E%3Ccircle cx='320' cy='320' r='310' stroke-dasharray='4 6' opacity='.45'/%3E%3Cpath d='M320 0v640M0 320h640' stroke-dasharray='18 4 2 4' opacity='.8'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(to right, rgba(79, 115, 150, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 115, 150, 0.06) 1px, transparent 1px);
  background-position: center, 0 0, 0 0;
  background-repeat: no-repeat, repeat, repeat;
  background-size: 640px 640px, 24px 24px, 24px 24px;
}

.map__inner {
  max-width: 34rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(240, 244, 248, 0.92);
}

.map__pin {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.75rem;
  color: var(--steel-500);
}

.map__title {
  margin-bottom: 0.4rem;
  font-size: 1.375rem;
}

.map__address {
  margin-bottom: 0.75rem;
}

.map__note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.map__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 60em) {
  .map {
    min-height: 26rem;
  }
}

/* 13. Footer ---------------------------------------------------------------- */

.site-footer {
  padding-top: clamp(3.5rem, 3rem + 3vw, 5rem);
  background: var(--navy-950);
  color: #c9d5e2;
  font-size: 1rem;
}

.site-footer a {
  color: #e6edf4;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer :focus-visible {
  outline-color: #6fd0c8;
}

.site-footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.site-footer__about p {
  max-width: 22rem;
  margin: 1.25rem 0 0;
  line-height: 1.6;
}

.site-footer__heading {
  margin-bottom: 0.9rem;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--white);
}

.site-footer ul {
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.site-footer address {
  line-height: 1.6;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9375rem;
  color: #b2c1d1;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.brand--light,
.brand--light:hover {
  color: var(--white);
}

.brand--light .brand__mark rect {
  fill: var(--white);
}

.brand--light .brand__mark path {
  stroke: var(--navy-950);
}

@media (min-width: 40em) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60em) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 3rem;
  }
}

/* 14. Privacy page and 404 page --------------------------------------------- */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem));
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-hero__title {
  font-size: var(--fs-h2);
}

.page-hero__meta {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.625rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--steel-500);
}

.error-page {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  background: var(--paper);
}

.error-page__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.error-page__code {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--steel-500);
}

.error-page__title {
  max-width: 16ch;
  font-size: var(--fs-h2);
}

.error-page__text {
  max-width: 32rem;
  margin: 1rem 0 0;
  font-size: var(--fs-lead);
}

.error-page__art {
  width: 100%;
  max-width: 26rem;
  opacity: 0.85;
}

@media (min-width: 60em) {
  .error-page__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

/* 15. Reduced motion -------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

/* 16. Print ----------------------------------------------------------------- */

@media print {
  .site-header,
  .skip-link,
  .hero__media,
  .hero__overlay,
  .hero__motion,
  .map,
  .contact__form {
    display: none !important;
  }

  .hero {
    padding-top: 0;
  }

  .section {
    padding-block: 1.5rem;
  }

  body {
    color: #000;
  }
}
