:root {
  --ice: #eff5fc;
  --paper: #f8faff;
  --blue: #c5d8f0;
  --blue2: #dbe8f7;
  --lilac: #e0daf1;
  --lilac2: #d9d1ed;
  --accent: #40578f;
  --ink: #242c40;
  --rule: rgba(36, 44, 64, .2);
  --page: 1600px;
  --pad: clamp(22px, 4.8vw, 76px);
  --display: "Michroma", sans-serif;
  --sans: "Instrument Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

html { scroll-behavior: smooth; }
body { background: var(--ice); color: var(--ink); font-family: var(--sans); }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--ice);
  font: 500 12px var(--mono);
  letter-spacing: .04em;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #40578f;
}
.page { max-width: var(--page); overflow: clip; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 116px;
  padding: 24px var(--pad);
  border-color: var(--rule);
  background: rgba(239, 245, 252, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow .22s ease, background-color .22s ease;
}
.site-header.is-scrolled {
  background: rgba(239, 245, 252, .91);
  box-shadow: 0 8px 26px rgba(36, 44, 64, .08);
}
.brand-name { font-family: var(--sans); line-height: 1; }
.nav, .language, .contact, .contact-button, .menu-toggle { font-family: var(--mono); }
.nav { align-items: center; letter-spacing: .07em; }
.language { margin-left: clamp(18px, 2.5vw, 42px); letter-spacing: .05em; }
.contact, .contact-button { letter-spacing: .07em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.contact, .contact-button { border-color: currentColor; }
.eyebrow { color: var(--accent); font-family: var(--mono); }
.eyebrow.eyebrow {
  font: 500 10px/normal var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.fact strong { text-transform: none; }
h1, h2, h3 {
  font-family: var(--display);
  /* Editorial headings use the copy's natural sentence case. Small technical
     labels, navigation and metadata retain their uppercase treatment. */
  text-transform: none !important;
}
.case-page h1,
.case-page h2,
.case-page h3 { font-weight: 400; }
.case-page .facts .fact strong {
  font: 400 clamp(17px, 1.25vw, 20px)/1.55 var(--display);
}
footer, .site-footer { font-family: var(--mono); border-color: var(--rule); }
.signature { color: var(--accent); }
.families .service h3 a { display: flex; justify-content: space-between; gap: 18px; }
.families .service h3 a::after { content: "→"; font-family: var(--mono); }
.families .service h3 a:hover { color: var(--accent); }

/* Compact external links used to identify the organisations in client cases. */
.case-client-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
}
.case-client-sites a {
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font: 500 9px var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.case-client-sites a:hover { color: var(--ink); }

/* Consistent interaction language across the site. Text navigation gains an
   underline; outlined actions invert; large linked surfaces retain their own
   background treatment. Keyboard focus remains independently visible. */
a,
button {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.nav a {
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  border-color: currentColor;
}
.language a,
footer a,
.site-footer a,
main :where(p, li) > a:not([class]) {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.language a:hover,
footer a:hover,
.site-footer a:hover,
main :where(p, li) > a:not([class]):hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
:is(.contact, .contact-button, .document-action, .pdf-action, .cta a, .service-cta a, .error-actions a):hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ice);
}
:is(.text-link, .managed-link):hover {
  color: var(--accent);
  border-color: currentColor;
}
.client {
  transition: filter .18s ease;
}
.client:hover {
  filter: brightness(.975);
}
.client:hover .client-name {
  color: var(--accent);
}
.detail:hover {
  color: var(--accent);
}
.case-link,
.detail,
.client-name {
  transition: color .18s ease, background-color .18s ease;
}

@media (max-width: 1080px) {
  /* Keep the language switch and primary contact action in the compact header.
     The language control takes the automatic margin so all three controls sit
     together at the right: language, contact, then Menu/Close. */
  .site-header .language,
  .site-header .contact,
  .site-header .contact-button {
    display: block !important;
    margin-top: 0 !important;
  }
  .site-header .language { margin-left: auto !important; }
  .site-header .contact,
  .site-header .contact-button { margin-left: 16px !important; }
  .site-header .menu-toggle { margin-left: 16px; }

  .site-header.open { flex-wrap: wrap; }
  .site-header.open .nav {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    order: 4;
    margin: 22px 0 0;
    border-top: 1px solid var(--rule);
  }
  .site-header.open .nav a { padding: 17px 0; border-bottom: 1px solid var(--rule); }
  .site-header.open .language,
  .site-header.open .contact,
  .site-header.open .contact-button { display: block; margin-top: 22px; }
}

@media (max-width: 700px) {
  .site-header { min-height: 90px; }

  .site-header .brand { gap: 10px; }
  .site-header .language { font-size: 8px; }
  .site-header .contact,
  .site-header .contact-button {
    margin-left: 10px !important;
    padding: 10px 11px;
    font-size: 8px;
  }
  .site-header .menu-toggle {
    margin-left: 10px;
    padding-left: 0;
    font-size: 9px;
  }

  /* Michroma is deliberately wide. Scale display headings to the usable
     viewport rather than letting long words disappear behind the page edge. */
  h1,
  h2 {
    max-width: 100%;
    font-size: clamp(1.35rem, 7vw, 2.1rem) !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }
}

@media (max-width: 520px) {
  .site-header { padding-right: 16px; padding-left: 16px; }
  .site-header .brand img,
  .site-header .brand svg { width: 40px; height: 40px; }
  .site-header .brand-name { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  a,
  button,
  .client,
  .client-name { transition: none; }
}

/* Supporting statements belong to the page flow, not on top of hero copy. */
.hero-note-band {
  padding: 30px var(--pad);
  border-top: 1px solid rgba(239, 245, 252, .18);
  background: var(--ink);
  color: var(--ice);
}
.proof-statement {
  display: grid;
  grid-template-columns: .42fr 1.15fr .72fr;
  gap: 50px;
}
.proof-statement p {
  grid-column: 2 / 4;
  max-width: 980px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}
.sla-inclusions {
  display: grid;
  grid-template-columns: minmax(190px, .45fr) minmax(0, 1.55fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  background: var(--ink);
  color: var(--ice);
  border-color: rgba(239, 245, 252, .18);
}
.sla-inclusions strong {
  color: var(--ice);
  font: 500 10px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sla-inclusions p {
  max-width: 850px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

/* At tablet widths, photographic heroes remain one composition: the copy
   compresses beside the photograph instead of creating a separate image row. */
@media (min-width: 701px) and (max-width: 1080px) {
  body:not(.case-page) .hero:has(> .hero-visual),
  body:not(.case-page) .hero:has(> .hero-mark) {
    position: relative;
    display: block;
    min-height: 620px;
    overflow: hidden;
    background: var(--paper);
  }

  body:not(.case-page) .hero > .hero-visual,
  body:not(.case-page) .hero > .hero-mark {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    min-height: 620px;
    padding: 0;
    background-size: cover;
  }

  body:not(.case-page) .hero:has(> .hero-visual) > .hero-copy,
  body:not(.case-page) .hero:has(> .hero-mark) > .hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    width: 82%;
    min-height: 620px;
    flex-direction: column;
    justify-content: center;
    padding: 76px var(--pad);
    background: linear-gradient(90deg, var(--paper) 0 70%, rgba(248,250,255,.98) 76%, rgba(248,250,255,.92) 84%, rgba(248,250,255,.70) 90%, rgba(248,250,255,.30) 96%, transparent 100%) !important;
  }

  /* Case studies already use one full-bleed composition at this width. Keep
     the fade beyond the readable line length rather than beneath the copy. */
  body.case-page .hero-copy,
  .proof-hero > .proof-hero-copy {
    width: 82% !important;
    background: linear-gradient(90deg, var(--paper) 0 70%, rgba(248,250,255,.98) 76%, rgba(248,250,255,.92) 84%, rgba(248,250,255,.70) 90%, rgba(248,250,255,.30) 96%, transparent 100%) !important;
  }

  .pricing-hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 590px;
    background-color: var(--paper);
    background-image: url('../images/pricing-sla-hero-v1.webp');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto 100%;
  }
  .pricing-hero::before { display: block; }
  .pricing-hero > .hero-copy {
    min-height: 590px;
    background: transparent;
  }
}

/* The homepage photograph is the hero background itself rather than a
   separate visual element. At tablet widths, place the same graduated wash
   above it while preserving the existing phone treatment below 761px. */
@media (min-width: 761px) and (max-width: 1080px) {
  body.home-page .hero {
    isolation: isolate;
  }
  body.home-page .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(239,245,252,.98) 0 58%, rgba(239,245,252,.92) 66%, rgba(239,245,252,.68) 74%, rgba(239,245,252,.28) 82%, transparent 90%);
  }
}

@media (max-width: 700px) {
  .hero-note-band { padding: 27px var(--pad); }
  .proof-statement { grid-template-columns: 1fr; gap: 0; }
  .proof-statement p { grid-column: 1; margin: 0; font-size: 15px; }
  .sla-inclusions { grid-template-columns: 1fr; gap: 13px; }
  .sla-inclusions p { font-size: 15px; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .proof-statement { grid-template-columns: 1fr; gap: 0; }
  .proof-statement p { grid-column: 1; }
}
