/* ==========================================================================
   Futuretrace V1 — styles.css
   Foundation (tokens, reset, base type, spacing, widths, shared structural
   classes) and the shared site header. Hero and page sections come later.
   Colour values are provisional; tune during browser review (BRAND.md).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour: brand */
  --colour-navy: #0a1f44;          /* deep navy: hero, CTA, footer, body text */
  --colour-navy-soft: #16305e;     /* raised surface on navy */
  --colour-footer: #050f24;        /* blue-black footer: clearly darker than navy sections */
  --colour-blue: #0b5fff;          /* primary brand blue */
  --colour-blue-light: #4db2ff;    /* accent on navy (headline highlights, links) */
  --colour-sky: #e9f3fd;           /* very pale blue section background */
  --colour-yellow: #ffd60a;        /* primary accent and CTA */
  --colour-yellow-hover: #ffe04d;
  --colour-yellow-pale: #fff6c7;   /* pale yellow card background */
  --colour-sky-card: #dcebfd;      /* light-blue card background */
  --colour-neutral-tint: #f3f6fa;  /* very quiet cool-grey card background */
  --colour-white: #ffffff;
  --colour-offwhite: #fafbfd;      /* main page background */

  /* Colour: roles */
  --colour-bg: var(--colour-offwhite);
  --colour-text: var(--colour-navy);
  --colour-text-muted: #41506b;    /* secondary text on light backgrounds */
  --colour-link: var(--colour-blue);
  --colour-border: #d3dded;
  --colour-focus: var(--colour-blue);
  --colour-focus-on-dark: var(--colour-yellow);

  /* Typography
     Direction is a TT Commons-style sans. TT Commons is NOT shipped (no web
     licence yet). To swap in a licensed face, add @font-face and put its name
     first in --font-sans; nothing else needs to change. */
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  /* Restrained fluid scale (mobile → desktop) */
  --text-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --text-h2: clamp(1.875rem, 1.4rem + 2.2vw, 3rem);
  --text-h1: clamp(2.5rem, 1.7rem + 4vw, 4.75rem);

  --leading-tight: 1.08;
  --leading-heading: 1.15;
  --leading-body: 1.6;
  --tracking-heading: -0.02em;

  /* Spacing scale (fluid at the larger steps) */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  --space-xl: clamp(3rem, 2.2rem + 3.2vw, 5rem);
  --space-2xl: clamp(4rem, 2.8rem + 5vw, 8rem);   /* section vertical padding */

  /* Widths */
  --width-page: 75rem;             /* max page container */
  --width-text: 38rem;             /* readable line length */
  --gutter: clamp(1.25rem, 0.8rem + 2.2vw, 2.5rem);
  --column-gap: clamp(2rem, 1rem + 4vw, 5rem);

  /* Shape: square or lightly softened */
  --radius: 2px;

  /* Motion */
  --transition: 150ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

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

button {
  cursor: pointer;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* --------------------------------------------------------------------------
   3. Base typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--colour-text);
  background-color: var(--colour-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
}

p {
  max-width: var(--width-text);
  text-wrap: pretty;
}

.lead {
  font-size: var(--text-lg);
  color: var(--colour-text-muted);
}

small,
.text-sm {
  font-size: var(--text-sm);
}

a {
  color: var(--colour-link);
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}

/* Restrained list: square markers, used sparingly (LAYOUT-SYSTEM.md) */
.list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2xs);
}

.list li {
  position: relative;
  padding-left: 1.5rem;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--colour-blue);
}

/* --------------------------------------------------------------------------
   4. Accessibility helpers
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--colour-focus);
  outline-offset: 3px;
}

.section--dark :focus-visible {
  outline-color: var(--colour-focus-on-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   5. Shared structure
   -------------------------------------------------------------------------- */

/* Page container: centred, max width, side gutters at every size */
.container {
  width: 100%;
  max-width: calc(var(--width-page) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section: generous vertical rhythm. Background variants alternate white and
   very pale blue; navy is reserved for hero, CTA and footer. */
.section {
  padding-block: var(--space-2xl);
  background-color: var(--colour-white);
}

.section--pale {
  background-color: var(--colour-sky);
}

.section--dark {
  background-color: var(--colour-navy);
  color: var(--colour-white);
}

.section--dark .lead,
.section--dark p {
  color: inherit;
}

.section--dark a:not(.btn) {
  color: var(--colour-blue-light);
}

/* Full-width single idea: constrains text to a readable measure */
.statement {
  max-width: 48rem;
}

/* Two major columns (maximum on any internal-page section).
   Mobile: one column, text first then visual (DOM order).
   Desktop: two equal columns; .split--reverse swaps sides for alternation
   without changing DOM (or mobile) order. */
.split {
  display: grid;
  gap: var(--space-xl) var(--column-gap);
  align-items: center;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

/* Vertical flow inside a column: heading, copy, list, CTA */
.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   6. Buttons (BRAND.md: yellow primary, outline secondary)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.8em 1.4em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn--primary {
  background-color: var(--colour-yellow);
  color: var(--colour-navy);
}

.btn--primary:hover {
  background-color: var(--colour-yellow-hover);
}

.btn--secondary {
  border-color: currentColor;
  background-color: transparent;
  color: var(--colour-navy);
}

.section--dark .btn--secondary {
  color: var(--colour-white);
}

/* --------------------------------------------------------------------------
   7. Site header and navigation (shared on every page)
   Mobile-first: wordmark + menu button, nav opens below.
   From 56rem: wordmark, links and CTA on one row.
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: var(--space-2xs);
  left: var(--space-2xs);
  z-index: 100;
  padding: 0.75em 1.25em;
  background-color: var(--colour-yellow);
  color: var(--colour-navy);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  background-color: var(--colour-navy);
  color: var(--colour-white);
}

.site-header :focus-visible {
  outline-color: var(--colour-focus-on-dark);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-md);
  padding-block: var(--space-sm);
}

.wordmark {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--colour-white);
  text-decoration: none;
}

/* Menu button: hidden unless JavaScript has enabled the collapsible menu */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--colour-white);
  border-radius: var(--radius);
  background: transparent;
  color: var(--colour-white);
}

.js .nav-toggle {
  display: inline-flex;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--transition), background-color var(--transition);
}

.nav-toggle__icon {
  position: relative;
}

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

.nav-toggle__icon::before {
  top: -0.4rem;
}

.nav-toggle__icon::after {
  top: 0.4rem;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: translateY(0.4rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: translateY(-0.4rem) rotate(-45deg);
}

/* Navigation: stacked full-width panel on mobile */
.site-nav {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding-block: var(--space-md) var(--space-sm);
}

.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  display: flex;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 0;
}

.site-nav__list a {
  display: block;
  padding: var(--space-xs) 0;
  border-bottom: 3px solid transparent;
  color: var(--colour-white);
  font-weight: 500;
  text-decoration: none;
}

.site-nav__list a:hover {
  border-bottom-color: var(--colour-blue-light);
}

.site-nav__list a[aria-current="page"] {
  border-bottom-color: var(--colour-yellow);
}

@media (min-width: 56rem) {
  .nav-toggle,
  .js .nav-toggle {
    display: none;
  }

  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-nav,
  .js .site-nav {
    display: flex;
    flex: 1;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-block: 0;
  }

  .site-nav__list {
    flex-direction: row;
    align-self: auto;
    gap: var(--space-lg);
    margin-inline: auto;
  }

  .site-nav__list a {
    padding: var(--space-3xs) 0;
    font-size: var(--text-sm);
  }
}

/* --------------------------------------------------------------------------
   8. Homepage hero
   Navy, continuous with the header. Left-aligned copy, one geometric graphic.
   -------------------------------------------------------------------------- */
.hero {
  padding-block: var(--space-lg) var(--space-2xl);
}

.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem);
  line-height: 1.1;  /* mobile stays tight to keep a strong hierarchy */
}

.hero__accent {
  color: var(--colour-blue-light);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 30rem;
}

.hero__copy {
  gap: var(--space-lg);
}

.hero__visual svg {
  width: 100%;
  max-width: 26rem;
}

/* Geometric graphic: squares, nodes and thin lines */
.hero-art__panel {
  fill: var(--colour-navy-soft);
}

.hero-art__lines path {
  fill: none;
  stroke: var(--colour-blue-light);
  stroke-width: 1.5;
  stroke-opacity: 0.7;
}

.hero-art__sky {
  fill: #bfe3ff;
}

.hero-art__blue {
  fill: var(--colour-blue);
}

.hero-art__yellow {
  fill: var(--colour-yellow);
}

.hero-art__outline {
  fill: none;
  stroke: var(--colour-blue-light);
  stroke-width: 1.5;
}

.hero-art__nodes rect {
  fill: var(--colour-yellow);
}

/* Tablet: the hero is still stacked, but there is far more room than on a
   phone, so the graphic scales up (~70% of the content width, capped) and is
   centred under the copy. Phone (<40rem) and desktop (>=52rem) are untouched. */
@media (min-width: 40rem) and (max-width: 51.999rem) {
  .hero__visual {
    width: min(70%, 33rem);
    margin-inline: auto;
  }

  .hero__visual svg {
    max-width: none;
  }
}

@media (min-width: 52rem) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hero h1 {
    font-weight: 700;
    line-height: 1.18;
  }

  /* Graphic is ~22% larger than the column on desktop/tablet. It is anchored
     to the right, so any extra width spills left into the (empty) gap; the
     SVG's own left margin is blank, so the artwork never meets the copy. */
  .hero__visual {
    justify-self: end;
    width: min(122%, 36.5rem);
    pointer-events: none;
  }

  .hero__visual svg {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   9. Homepage services overview
   Homepage exception: 2 x 2 grid (Websites, Automation, Practical AI, CTA).
   Single column on phones; 2 x 2 from 48rem. Square corners, no shadows.
   -------------------------------------------------------------------------- */
.services-overview {
  background-color: var(--colour-offwhite);
}

.services-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding: 0;
}

@media (min-width: 48rem) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.service-card p {
  color: var(--colour-text-muted);
}

.service-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-2xs);
}

.service-card__link {
  margin-top: auto;
  padding-top: var(--space-2xs);
  color: var(--colour-navy);
  font-weight: 700;
  text-underline-offset: 0.3em;
}

.service-card__link:hover {
  color: var(--colour-blue);
}

.service-card--sky {
  background-color: var(--colour-sky-card);
}

.service-card--yellow {
  background-color: var(--colour-yellow-pale);
}

.service-card--navy {
  background-color: var(--colour-navy);
  color: var(--colour-white);
}

.service-card--navy p {
  color: rgba(255, 255, 255, 0.86);
}

.service-card--navy .service-card__link {
  color: var(--colour-yellow);
}

.service-card--navy .service-card__link:hover {
  color: var(--colour-blue-light);  /* the brand blue is too dark on navy; light blue keeps contrast */
}

.service-card--navy :focus-visible {
  outline-color: var(--colour-focus-on-dark);
}

.service-card--cta {
  justify-content: center;
  background-color: var(--colour-neutral-tint);
  border-color: var(--colour-border);
}

.service-card--cta .btn {
  margin-top: var(--space-xs);
}

/* Card icons: connected squares in the brand palette */
.icon-line {
  fill: none;
  stroke: var(--colour-navy);
  stroke-width: 2;
}

.icon-line--light {
  stroke: var(--colour-blue-light);
}

.icon-blue {
  fill: var(--colour-blue);
}

.icon-navy {
  fill: var(--colour-navy);
}

.icon-yellow {
  fill: var(--colour-yellow);
}

.icon-sky {
  fill: #bfe3ff;
}

.icon-outline {
  fill: none;
  stroke: var(--colour-blue-light);
  stroke-width: 2;
}

/* --------------------------------------------------------------------------
   10. Homepage testimonials
   Editorial, not cards: no boxes, just a thin rule, the quotation and its
   attribution. Columns are top-aligned (never stretched) because the two
   quotations are very different lengths; the wider column takes the longer
   quotation. Stacks to one column below 52rem.
   -------------------------------------------------------------------------- */
.testimonials {
  display: grid;
  gap: var(--space-xl) var(--column-gap);
  align-items: start;
}

@media (min-width: 52rem) {
  .testimonials {
    grid-template-columns: 1.3fr 1fr;
  }
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 2px solid var(--colour-blue);
}

.testimonial blockquote {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.testimonial__name {
  font-weight: 700;
}

.testimonial__role {
  font-size: var(--text-sm);
  color: var(--colour-text-muted);
}

/* --------------------------------------------------------------------------
   11. Global site footer (shared on every page; see LAYOUT-SYSTEM.md)
   Navy. Two columns on desktop (brand + CTA | navigation), then one quiet
   base row (copyright | social icons). One column below 52rem, via .split.
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: var(--space-xl) var(--space-lg);
  background-color: var(--colour-footer);
  color: var(--colour-white);
}

.site-footer a:not(.btn) {
  color: var(--colour-white);
  text-decoration: none;
}

.site-footer :focus-visible {
  outline-color: var(--colour-focus-on-dark);
}

.site-footer__main {
  align-items: start;
}

.site-footer__brand {
  gap: var(--space-md);
}

.site-footer__brand p {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer__nav ul {
  display: grid;
  gap: var(--space-2xs);
  padding: 0;
}

.site-footer__nav a {
  display: inline-block;
  padding-block: var(--space-3xs);
  border-bottom: 2px solid transparent;
}

.site-footer__nav a:hover {
  border-bottom-color: var(--colour-blue-light);
}

.site-footer__nav a[aria-current="page"] {
  font-weight: 700;
  border-bottom-color: var(--colour-yellow);
}

@media (min-width: 52rem) {
  .site-footer__nav {
    justify-self: end;
    min-width: 10rem;
  }
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer__base p {
  color: rgba(255, 255, 255, 0.72);
}

/* Privacy link beside the copyright: underlined so it reads as a link, since
   footer links are otherwise undecorated; yellow underline marks the current page */
.site-footer .site-footer__legal a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.site-footer .site-footer__legal a:hover {
  text-decoration-color: var(--colour-blue-light);
}

.site-footer .site-footer__legal a[aria-current="page"] {
  font-weight: 700;
  text-decoration-color: var(--colour-yellow);
}

/* Understated social icons: standard LinkedIn and GitHub marks, secondary to the CTA */
.social-links {
  display: flex;
  gap: var(--space-2xs);
  padding: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--transition);
}

.site-footer .social-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .social-links a:not(.btn):hover {
  color: var(--colour-blue-light);
}

.social-links svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   12. Light hero variant (Services)
   Same structure, type and spacing as the homepage hero, on the pale-blue
   background. Everything is scoped to .hero--light, so the navy homepage hero
   is unaffected. The graphic keeps its shapes; only colours change for contrast.
   -------------------------------------------------------------------------- */
.hero--light .hero__accent {
  color: var(--colour-blue);
}

.hero--light .lead {
  color: var(--colour-text-muted);
}

.hero--light .hero-art__panel {
  fill: var(--colour-sky-card);
}

.hero--light .hero-art__lines path {
  stroke: var(--colour-blue);
  stroke-opacity: 0.8;
}

.hero--light .hero-art__sky {
  fill: var(--colour-blue-light);
}

.hero--light .hero-art__outline {
  stroke: var(--colour-blue);
}

.hero--light .hero-art__nodes rect {
  fill: var(--colour-navy);
}

/* --------------------------------------------------------------------------
   13. Services page content sections (01 Websites; later sections reuse these)
   White section, two columns via .split (text first on mobile), one visual.
   -------------------------------------------------------------------------- */
.service__number {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--colour-blue);
}

/* Quiet capability list: subordinate to the heading and main copy */
.service__list {
  align-self: stretch;
  margin-top: var(--space-xs);
  padding-top: var(--space-md);
  border-top: 1px solid var(--colour-border);
  font-size: var(--text-sm);
  color: var(--colour-text-muted);
}

.service__visual svg {
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
}

/* Websites graphic: yellow panel, abstract interface blocks and a step flow */
.service-art__ground {
  fill: var(--colour-yellow);
}

.service-art__lines path {
  fill: none;
  stroke: var(--colour-navy);
  stroke-width: 2;
}

.service-art__navy {
  fill: var(--colour-navy);
}

.service-art__blue {
  fill: var(--colour-blue);
}

.service-art__sky {
  fill: #bfe3ff;
}

.service-art__yellow {
  fill: var(--colour-yellow);
}

.service-art__outline {
  fill: none;
  stroke: var(--colour-blue-light);
  stroke-width: 2;
}

.service-art__tile {
  fill: var(--colour-yellow-pale);
}

.service-art__glyph-outline {
  fill: none;
  stroke: var(--colour-navy);
  stroke-width: 2.5;
}

.service-art__glyph-sky {
  fill: #bfe3ff;
  stroke: var(--colour-navy);
  stroke-width: 2.5;
}

.service-art__nodes rect {
  fill: var(--colour-navy);
}

.service-art__label {
  fill: var(--colour-navy);
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
}

/* Automation graphic: dark navy workflow panel (variants of the service-art classes) */
.service-art__ground--navy {
  fill: var(--colour-navy);
}

.service-art__step {
  fill: var(--colour-navy-soft);
}

.service-art__lines--light path {
  stroke: var(--colour-blue-light);
}

.service-art__nodes--yellow rect {
  fill: var(--colour-yellow);
}

.service-art__label--light {
  fill: var(--colour-white);
}

/* Practical AI: dark section variation (contrast overrides for the shared service classes) */
.section--dark .service__number {
  color: var(--colour-blue-light);
}

.section--dark .service__list {
  border-top-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.86);
}

.section--dark .list li::before {
  background-color: var(--colour-blue-light);
}

/* Practical AI graphic: raised navy panel, yellow "human review" step */
.service-art__ground--soft {
  fill: var(--colour-navy-soft);
}

.service-art__check {
  fill: none;
  stroke: var(--colour-yellow);
  stroke-width: 3;
  stroke-linecap: square;
}

/* --------------------------------------------------------------------------
   14. Work hero: yellow variant
   Yellow background with dark type, a navy button (the yellow primary button
   would vanish here) and a graphic that avoids yellow at its edges.
   -------------------------------------------------------------------------- */
.hero--yellow {
  background-color: var(--colour-yellow);
}

.hero--yellow .lead {
  color: var(--colour-navy);
}

.hero--yellow :focus-visible {
  outline-color: var(--colour-navy);
}

/* Dark button for light or yellow backgrounds (new modifier; existing buttons unchanged) */
.btn--dark {
  background-color: var(--colour-navy);
  color: var(--colour-white);
}

.btn--dark:hover {
  background-color: var(--colour-navy-soft);
}

.service-art__white {
  fill: var(--colour-white);
}

/* Closing CTA band on yellow (Work page): heading + supporting line beside body + dark button.
   Compact padding; text and focus ring switch to navy for contrast on yellow. */
.section--yellow {
  padding-block: var(--space-xl);
  background-color: var(--colour-yellow);
}

.section--yellow .lead {
  color: var(--colour-navy);
}

.section--yellow :focus-visible {
  outline-color: var(--colour-navy);
}

/* --------------------------------------------------------------------------
   15. Work page featured projects (Learn Ealing first; others reuse these)
   The work itself leads: the image column is wider than the text column.
   Mobile order: identity, image, details. Desktop: text left, image spanning
   both text rows on the right (.project--reverse swaps sides for alternation).
   -------------------------------------------------------------------------- */
.project__layout {
  display: grid;
  gap: var(--space-lg);
  grid-template-areas:
    "head"
    "media"
    "details";
}

.project__head {
  grid-area: head;
  gap: var(--space-sm);
}

.project__media {
  grid-area: media;
  margin: 0;
}

.project__details {
  grid-area: details;
  gap: var(--space-lg);
}

@media (min-width: 52rem) {
  .project__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "head media"
      "details media";
    column-gap: var(--column-gap);
    row-gap: var(--space-lg);
    align-items: start;
  }

  .project--reverse .project__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "media head"
      "media details";
  }
}

/* Genuine screenshots: same box as the placeholder, cropped from the top */
.project__media img,
.project__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
}

/* The real screenshot is wider than 16:10; show it whole (its width/height attributes set the ratio) instead of cropping its sides */
.project__media img {
  aspect-ratio: auto;
  height: auto;
}

.project__placeholder {
  display: grid;
  place-items: center;
  padding: var(--space-md);
  background-color: var(--colour-sky);
  color: var(--colour-text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.project__facts {
  display: grid;
  gap: var(--space-md);
  margin: 0;
}

.project__facts > div {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--colour-border);
}

.project__facts dt {
  margin-bottom: var(--space-3xs);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--colour-blue);
}

.project__facts dd {
  margin: 0;
  max-width: var(--width-text);
}

.project__link {
  color: var(--colour-navy);
  font-weight: 700;
  text-underline-offset: 0.3em;
}

.project__link:hover {
  color: var(--colour-blue);
}

/* --------------------------------------------------------------------------
   16. About: personal introduction
   Copy beside a portrait (4:5). Plain rectangle with the site's subtle edge:
   no circle, frame or card.
   -------------------------------------------------------------------------- */
.about-intro__copy {
  gap: var(--space-md);
}

.about-intro__copy p {
  max-width: 34rem;
  font-size: var(--text-lg);
}

.about-intro__photo {
  width: 100%;
  max-width: 30rem;
  height: auto;  /* overrides the img height attribute so the 4:5 ratio (not 2000px) sets the height */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
}

/* Tablet only (stacked, but wide): a controlled ~75% width, centred under the copy,
   like the hero graphic. Phone (<40rem) and desktop (>=52rem) are untouched. */
@media (min-width: 40rem) and (max-width: 51.999rem) {
  .about-intro__photo {
    width: 75%;
    max-width: 26rem;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   17. About: what I bring (four capabilities)
   Open editorial list on pale blue: dividing lines, no cards or icons.
   One column on phones; 2 x 2 from 48rem.
   -------------------------------------------------------------------------- */
.about-skills__list {
  display: grid;
  gap: var(--space-lg) var(--column-gap);
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
}

.about-skills__list li {
  padding-top: var(--space-md);
  border-top: 1px solid var(--colour-border);
}

.about-skills__number {
  margin-bottom: var(--space-2xs);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--colour-blue);
}

.about-skills__list h3 {
  margin-bottom: var(--space-xs);
}

.about-skills__list p:not(.about-skills__number) {
  max-width: var(--width-text);
}

@media (min-width: 48rem) {
  .about-skills__list {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-xl);
  }
}

/* --------------------------------------------------------------------------
   18. About: closing CTA (inside the navy approach section)
   A short line and the standard yellow button, set apart from the paragraphs.
   -------------------------------------------------------------------------- */
.about-cta {
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.about-cta__line {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--colour-white);
}

/* --------------------------------------------------------------------------
   19. Contact: enquiry form
   Open, spacious fields on a white section: no cards, shadows or large radii.
   One column on phones and tablets; two columns from 52rem, with the message
   field spanning the full width. Submits to HubSpot via js/contact-form.js.
   -------------------------------------------------------------------------- */
.enquiry__intro {
  gap: var(--space-sm);
}

.form {
  display: grid;
  gap: var(--space-lg) var(--column-gap);
  max-width: 52rem;
  margin-top: var(--space-xl);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.form label {
  font-weight: 700;
}

.form__flag {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--colour-text-muted);
}

/* Borders use the muted text colour so the field edge meets 3:1 contrast on white */
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1px solid var(--colour-text-muted);
  border-radius: var(--radius);
  background-color: var(--colour-white);
  color: var(--colour-text);
}

.form textarea {
  min-height: 12rem;
  resize: vertical;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  border-color: var(--colour-navy);
}

.form__actions {
  padding-top: var(--space-2xs);
}

/* Privacy statement directly above the submit button */
.form__privacy {
  margin-bottom: var(--space-md);
  color: var(--colour-text-muted);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn:disabled:hover {
  background-color: var(--colour-yellow);  /* suppress the hover colour while a submission is in progress */
}

/* Honeypot: clipped to 1px in place (same technique as .visually-hidden) rather than pushed
   off-screen, so it can't widen the page and cause horizontal scroll. Absolute positioning also
   takes it out of the form grid, so it doesn't consume a grid cell. It is additionally
   aria-hidden in the HTML, so — unlike .visually-hidden — it never reaches assistive technology. */
.form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Submission feedback: an aria-live region, so it collapses to nothing until a message is set */
.form__status {
  margin-top: var(--space-sm);
  font-weight: 700;
}

.form__status:empty {
  display: none;
}

@media (min-width: 52rem) {
  .form {
    grid-template-columns: 1fr 1fr;
  }

  .form__field--full,
  .form__actions {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   20. 404 page
   Reuses the light hero (.hero--light) and its graphic; the only new rule is
   the large "404" numerals above the heading.
   -------------------------------------------------------------------------- */
.error-code {
  font-size: clamp(4.5rem, 2.5rem + 9vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tracking-heading);
  color: var(--colour-blue);
}
