/* ---------- Typefaces, self-hosted ----------
   Archivo and Poppins, both under the SIL Open Font License 1.1; the licence
   text sits beside the files in ../fonts/. These were served from Google
   Fonts, which meant every visitor's IP address reached a third party just to
   load a typeface, and a paragraph in the privacy notice to explain it.

   Latin and Latin Extended only. Google also serves Devanagari and Vietnamese
   subsets, which this site has no use for.

   Archivo is a variable font: the four weights Google returns are byte-for-byte
   the same file, so it is declared once per subset across the 400-700 range
   rather than four times. font-display: swap matches the previous behaviour. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/poppins-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Cre8 site stylesheet.

   A plain, photography-led system: white and pale stone surfaces, charcoal
   text, the logo's teal kept for actions and the current page. Square photos
   and buttons (2px corners), sentence-case headings, one content width.

   Contents: tokens, base, layout, type, buttons, header, footer and contact
   invitation, homepage, project cards, project pages, inner-page components,
   form, responsive.
   ========================================================================== */

:root {
  --ink:       #141717;   /* text: 17.6:1 on white */
  --ink-soft:  #4A5050;   /* secondary text: 8.3:1 on white, 7.7:1 on stone */
  --dark:      #0B0C0C;   /* footer */
  --paper:     #FFFFFF;
  --stone:     #F5F5F2;   /* alternate section surface */
  --line:      #DCDCD5;
  --field:     #767C7C;   /* form borders: 4.3:1, above the 3:1 non-text minimum */
  --teal:      #67CDCD;   /* sampled from the logo; carries ink text at 10.4:1 */
  --teal-hover:#4FB3B3;
  --teal-ink:  #0F6A6A;   /* teal for text and focus rings on white: 6.5:1 */
  --error:     #A32020;

  --font:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --wrap:    75rem;                       /* 1200px of content */
  --gutter:  clamp(1rem, 4vw, 2.5rem);    /* 16px on a phone, 40px on a laptop */
  --section: clamp(3.5rem, 7vw, 6rem);
  --header:  4.25rem;
  --radius:  2px;
  --ease:    cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
/* The build wraps photos in <picture> for WebP. Taking the wrapper out of
   layout means every rule can treat the <img> as the direct child. */
picture { display: contents; }
/* Its <source> elements would otherwise take cells in a grid. */
picture > source { display: none; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 0.75rem; }

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

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.section-end { padding-bottom: var(--section); }
/* Two white sections in a row share one gap; a change of surface gets both. */
.section + .section { padding-top: 0; }
.section + .section--stone, .section--stone + .section,
.section + .about-us-section, .about-us-section + .section { padding-top: var(--section); }

/* A heading on the left, an optional sentence or link on the right. */
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.section-head p { max-width: 38rem; color: var(--ink-soft); }
.section-head--stack { display: block; }
.section-head--stack p { margin-top: 0.75rem; }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); line-height: 1.15; letter-spacing: -0.012em; }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
p { max-width: 68ch; }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); }
.prose-section { padding-top: clamp(2rem, 4vw, 3rem); }
.prose-section > * { max-width: 46rem; margin-inline: auto; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font: 500 0.9375rem/1.35 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose a { color: var(--teal-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.prose li + li { margin-top: 0.375rem; }

/* Links inside running text. */
:is(.prose, .text, .project-text, .page-head__intro) a:not(.btn, .more) {
  color: var(--teal-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
:is(.prose, .text, .project-text) a:not(.btn, .more):hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.875rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--dark);
  font: 500 0.9375rem/1.2 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* A quieter action: underlined text, with an arrow where it leads on. The
   arrow is an inline-block, so the underline runs under the words only, and
   it steps right on hover. The padding keeps a 44px tap target. */
.more {
  display: inline-block;
  padding-block: 0.8125rem;
  font: 500 0.9375rem/1.2 var(--font-ui);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.more:hover { text-decoration-thickness: 2px; text-decoration-color: var(--teal-ink); }
:is(.more, .hero__link) > [aria-hidden] { display: inline-block; margin-left: 0.4em; transition: transform 0.15s var(--ease); }
:is(.more, .hero__link):hover > [aria-hidden] { transform: translateX(0.2em); }
@media (prefers-reduced-motion: reduce) { :is(.more, .hero__link) > [aria-hidden] { transition: none; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header);
}
.brand { display: block; flex: none; padding-block: 0.5rem; }
.brand img { width: auto; height: 2.75rem; }

.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 2rem; }
.site-nav a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  font: 500 0.9375rem/1.2 var(--font-ui);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: box-shadow 0.15s var(--ease), color 0.15s var(--ease);
}
.site-nav a:hover { box-shadow: inset 0 -2px 0 var(--line); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--teal); }
.site-nav .site-nav__contact {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--dark);
  box-shadow: none;
}
.site-nav .site-nav__contact:hover { background: var(--teal-hover); box-shadow: none; }
/* On the Contact page the button stays in its hover teal: no underline on a rounded button. */
.site-nav .site-nav__contact[aria-current],
.has-js .site-nav .site-nav__contact[aria-current] { background: var(--teal-hover); box-shadow: none; padding-left: 1.1rem; }

.menu-toggle { display: none; }

/* Services and About open short drop-downs. Without script they open on
   hover and focus; with script the button opens them. */
.site-nav__has-sub { position: relative; display: flex; align-items: center; }
.site-nav__sub-toggle {
  display: grid; place-items: center; width: 1.75rem; height: 2.75rem; margin-left: 0.1rem;
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
}
.site-nav__sub-toggle svg { width: 1rem; height: 1rem; transition: transform 0.15s var(--ease); }
.site-nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav .site-nav__sub {
  display: none; position: absolute; top: 100%; left: -1rem; z-index: 5;
  width: max-content; min-width: 12rem; padding: 0.5rem 0;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.08);
}
.site-nav__has-sub:hover > .site-nav__sub,
:root:not(.has-js) .site-nav__has-sub:focus-within > .site-nav__sub,
.site-nav__sub-toggle[aria-expanded="true"] + .site-nav__sub { display: block; }
.site-nav .site-nav__sub a { display: flex; width: 100%; min-height: 2.75rem; padding: 0 1.25rem; white-space: nowrap; color: var(--ink); box-shadow: none; }
.site-nav .site-nav__sub a:hover { background: var(--stone); box-shadow: none; }

/* ---------- Contact invitation and footer ---------- */

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  padding-block: clamp(2.75rem, 5vw, 3.75rem) 1.5rem;
}
.site-footer :focus-visible { outline-color: var(--teal); }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
}
.site-footer__brand img { width: auto; height: 2.75rem; }
.site-footer__brand p { margin-top: 1rem; max-width: 30ch; }
.site-footer h2 {
  margin-bottom: 0.75rem;
  font: 500 0.9375rem/1.3 var(--font-ui);
  color: #fff;
}
.site-footer li + li { margin-top: 0.125rem; }
.site-footer a {
  display: inline-block; padding-block: 0.25rem;
  text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
}
.site-footer__base a { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Page header (every inner page) ---------- */
.page-head { padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(1.75rem, 3.5vw, 2.5rem); }
.page-head__intro { margin-top: 1rem; max-width: 40rem; }
.page-head__meta { margin-top: 0.75rem; color: var(--ink-soft); }
.crumbs { margin-bottom: 1rem; font: 500 0.875rem/1.4 var(--font-ui); color: var(--ink-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; }
.crumbs [aria-current] { display: inline-block; padding-block: 0.375rem; }
.crumbs li + li::before { content: "/"; margin-inline: 0.5rem; color: var(--line); color: var(--ink-soft); }
.crumbs a { display: inline-block; padding-block: 0.375rem; color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* The wide photograph under a page header, and the lead on a project page. */
.page-photo img, .lead-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover; object-position: var(--focus, 50% 50%);
  background: var(--stone);
}
.page-photo figcaption { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-soft); }
.page-photo figcaption a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.lead-photo img { aspect-ratio: var(--ratio, 16 / 9); }

/* ---------- Project cards, and the Projects page filter ---------- */
.plist-section { padding-top: clamp(2rem, 4vw, 3rem); }
.pfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.75rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.pfilter[hidden] { display: none; }
.pfilter button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.1rem;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 500 0.8125rem/1.2 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.pfilter button span { color: var(--ink-soft); letter-spacing: 0; }
.pfilter button:hover { border-color: var(--ink); }
.pfilter button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.pfilter button[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.78); }



/* ---------- Project page ---------- */
.page-title-center + .lead-photo, .page-title-center + .strip-section { margin-top: clamp(2rem, 4vw, 3rem); }

/* Every photograph at one height and its own width, so nothing is cropped.
   The strip scrolls sideways; the buttons below it appear once the script
   finds there is more to see. Heights match stripSizes() in build.mjs. */
.strip { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; overscroll-behavior-x: contain; }
.strip ul { display: flex; gap: clamp(0.5rem, 1vw, 0.75rem); }
.strip li { flex: none; scroll-snap-align: start; }
/* Auto margins centre a short strip and collapse to nothing once it overflows. */
.strip li:first-child { margin-left: auto; }
.strip li:last-child { margin-right: auto; }
.strip img { width: auto; height: clamp(16rem, 30vw, 26rem); background: var(--stone); }
.strip:focus-visible { outline-offset: 4px; }
.strip__controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1.25rem; }
.strip__controls[hidden] { display: none; }
.strip__count { font: 500 0.8125rem/1.2 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.strip__btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), opacity 0.15s var(--ease);
}
.strip__btn svg { width: 1.25rem; height: 1.25rem; }
.strip__btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.strip__btn:disabled { opacity: 0.35; cursor: default; }

/* Project details: the story beside a panel of facts. */
.pdetail-section { padding-top: clamp(3rem, 6vw, 4.5rem); }
.pdetail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem clamp(2.5rem, 6vw, 5rem); align-items: start; }
.pdetail__text .display { margin-bottom: 1.5rem; }
.pdetail__text p { font-size: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem); }
.pdetail__text p + p { margin-top: 1rem; }
.pdetail__facts { padding: 0.5rem clamp(1.25rem, 2.5vw, 2rem); background: var(--stone); }
.pdetail__facts > div { padding-block: 1rem; }
.pdetail__facts > div + div { border-top: 1px solid var(--line); }
.pdetail__facts dt { font: 500 0.8125rem/1.3 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; }
.pdetail__facts dd { margin-top: 0.3rem; color: var(--ink-soft); }
.pdetail__facts a { display: inline-block; padding-block: 0.2rem; color: var(--teal-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* Previous project, all projects, next project, between two rules. */
.pager {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem;
  margin-block: clamp(3rem, 6vw, 4.5rem) var(--section);
  padding-block: 1.25rem;
  border-block: 1px solid var(--line);
}
.pager a { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; color: var(--ink); text-decoration: none; }
.pager svg { flex: none; width: 1.25rem; height: 1.25rem; }
.pager small { display: block; font: 500 0.8125rem/1.3 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.pager a > span { font-weight: 500; line-height: 1.3; }
.pager__next { justify-self: end; text-align: right; }
.pager__all { justify-content: center; width: 2.75rem; }
.pager__all svg { width: 1.75rem; height: 1.75rem; }
.pager a:hover > span:not(.visually-hidden) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.pager__all:hover { color: var(--teal-ink); }
/* The details section already ends with its own space; the contact panel
   follows straight on. */
.pdetail-section + .pager, .siblings + .pager { margin-top: 0; }
.pager:has(+ .contact-strip) { margin-bottom: clamp(3rem, 6vw, 4.5rem); }

/* ---------- Items: a grid of short headed paragraphs ----------
   Services, scope, principles, sectors. A hairline over each, no boxes or
   icons. Three to a row on a six-column grid, so a short last row shares
   the width instead of leaving a gap (five items sit 3 + 2). */
.items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem clamp(1.5rem, 3vw, 2.5rem); }
.items > li, .items > div { border-top: 1px solid var(--line); padding-top: 1rem; }
.items p { margin-top: 0.4rem; color: var(--ink-soft); }
.items h4 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
/* One to a row, read down the page (Services sectors, 23 Oct): the name,
   then what it covers beside it on wider screens. */
.items.items--rows { display: block; margin-top: clamp(1.75rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); text-align: left; }
.items--rows > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.4rem; padding-block: 1.25rem; }
.items--rows h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.items--rows p { margin-top: 0; }
/* Services: a sector name links to its service, quietly; the line under the list links the rest. */
.items--rows h3 a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 0.25em; transition: text-decoration-color 0.15s var(--ease); }
.items--rows h3 a:hover, .items--rows h3 a:focus-visible { text-decoration-color: currentColor; }
.items--rows h3 a::after { content: "\2192"; display: inline-block; margin-left: 0.4em; color: var(--teal-ink, currentColor); opacity: 0.5; transition: transform 0.15s var(--ease), opacity 0.15s var(--ease); }
.items--rows h3 a:hover::after { opacity: 1; transform: translateX(0.2em); }
.sectors__more { margin-top: 1.5rem; color: var(--ink-soft, inherit); }
.sectors__more a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
@media (prefers-reduced-motion: reduce) { .items--rows h3 a::after { transition: none; } }
@media (min-width: 761px) {
  .items--rows > li { grid-template-columns: 16rem minmax(0, 1fr); gap: 2rem; align-items: baseline; }
}
.intro + .items { margin-top: clamp(2rem, 4vw, 3rem); }
.group-title { margin: clamp(2.25rem, 4vw, 3rem) 0 1rem; font-size: 1.375rem; }
.section-head + .group-title { margin-top: 0; }
.items h2 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.items :is(h2, h3) a { text-decoration: none; }
.items :is(h2, h3) a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.items :is(h2, h3) a::after { content: " \2192"; color: var(--teal-ink); }
@media (min-width: 601px) {
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .items > :nth-child(odd):last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .items { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .items > *, .items > :nth-child(odd):last-child { grid-column: span 2; }
  .items > :nth-child(3n+1):nth-last-child(2),
  .items > :nth-child(3n+2):last-child { grid-column: span 3; }
  .items > :nth-child(3n+1):last-child { grid-column: span 6; }
  .items--2 > *, .items--2 > :nth-child(odd):last-child,
  .items--2 > :nth-child(3n+1):nth-last-child(2),
  .items--2 > :nth-child(3n+2):last-child,
  .items--2 > :nth-child(3n+1):last-child { grid-column: span 3; }
}

/* ---------- Steps: a sequence, numbered because order matters ---------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.75rem clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.steps > li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1rem; }
.steps > li::before {
  content: counter(step);
  display: block; margin-bottom: 0.375rem;
  font: 600 0.9375rem/1 var(--font-ui); color: var(--teal-ink);
}
.steps p { margin-top: 0.4rem; color: var(--ink-soft); }

/* ---------- Split: a photograph and text side by side ---------- */
.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center;
}
.split__media img {
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: var(--focus, 50% 50%);
  background: var(--stone);
}
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__body > * + * { margin-top: 1rem; }
.split__body .actions { margin-top: 1.75rem; }
.split--media-right .split__media { order: 2; }

/* ---------- Two columns: a heading beside its text ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1.25rem clamp(2rem, 6vw, 5rem); }
.intro .text > * + * { margin-top: 1rem; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem); }
.member { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.member__head { display: flex; align-items: center; gap: 1rem; }
.member__portrait {
  flex: none; width: 4.5rem; height: 6rem;
  object-fit: cover; object-position: 50% 20%;
  background: var(--stone);
}
.section--stone .member__portrait--pending { background: var(--paper); }
.member__portrait--pending {
  display: grid; place-items: center;
  font: 600 1.125rem/1 var(--font-ui); color: var(--teal-ink);
}
.member__role { font-size: 0.9375rem; color: var(--ink-soft); }
.member h3 { font-size: 1.25rem; }
.member__quals { margin-top: 0.125rem; font-size: 0.9375rem; color: var(--teal-ink); font-weight: 500; }
.member__bio { margin-top: 1rem; }
.member__bio p + p { margin-top: 0.75rem; }

/* ---------- Contact page ----------
   A wide photograph in place of TCD's map (there is no office to map), then
   the direct details as tiles beside the enquiry form. */
.page-title-center + .contact-photo { margin-top: clamp(2rem, 4vw, 3rem); }
.contact-section { padding-top: clamp(3rem, 6vw, 4.5rem); }
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 2.5rem clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.contact-tiles { display: grid; position: sticky; top: calc(var(--header, 4.5rem) + 1.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1rem); }
.contact-tile { padding: clamp(1.25rem, 2vw, 1.5rem); background: var(--stone); }
.contact-tile svg { width: 1.75rem; height: 1.75rem; color: var(--teal-ink); }
.contact-tile h3 { margin-top: 1rem; font: 500 0.8125rem/1.3 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; }
.contact-tile p { margin-top: 0.4rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.contact-tile a { display: inline-block; padding-block: 0.2rem; color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.contact-tile p a:only-child { font-weight: 500; }
/* Beside the form on a narrower screen, two tiles across would break the email
   address mid-word: one tile per row, icon on the left, as on a phone. */
@media (min-width: 900px) and (max-width: 1199px) {
  .contact-tiles { grid-template-columns: minmax(0, 1fr); }
  .contact-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; }
  .contact-tile svg { grid-row: 1 / 3; width: 1.5rem; height: 1.5rem; }
  .contact-tile h3 { margin-top: 0.1rem; }
}
.contact-form .display { margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.contact-form .field-set legend { font: 500 0.875rem/1.35 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Form ---------- */
.field-set { border: 0; padding: 0; margin: 0 0 clamp(1.75rem, 3vw, 2.5rem); min-width: 0; }
.field-set legend { padding: 0 0 1rem; font-size: 1.25rem; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 1rem; }
.field .req { color: var(--teal-ink); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.7rem 0.875rem;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  /* Never below 16px: iOS Safari zooms the page on focusing a smaller field. */
  font: inherit; font-size: 1rem;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 2.75rem;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--teal-ink); outline-offset: 1px; border-color: var(--teal-ink);
}
.field ::placeholder { color: #6B7171; }
.field .err { display: none; font-size: 0.9375rem; color: var(--error); }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea,
.field[data-invalid="true"] select { border-color: var(--error); }
.field[data-invalid="true"] .err { display: block; }
.form-submit { margin-top: 0.5rem; }
.form-status {
  display: none;
  margin-top: 1.5rem; padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--teal-ink);
  background: var(--stone);
}
.form-status.is-shown { display: block; }
.form-status a { color: var(--teal-ink); font-weight: 600; }

/* ==========================================================================
   Homepage, after the TCD reference: a full-bleed hero under a transparent
   header, then About, the services over a photograph, the figures, the
   projects, the team and a contact panel. Cre8's own photographs and copy.
   The services band, the buttons, the display headings and the contact
   panel are shared with the Services page.
   ========================================================================== */

/* ---------- Header laid over the hero ----------
   Transparent with the light logo while it sits on the photograph, white
   once the page scrolls or the phone menu opens. Without script it simply
   scrolls away with the hero, so it is never white-on-white. */
.brand__logo--light { display: none; }
.site-header--overlay {
  position: absolute; left: 0; right: 0; top: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.has-js .site-header--overlay { position: fixed; }
.site-header--overlay.is-solid { background: var(--paper); border-bottom-color: var(--line); }
.site-header--overlay:not(.is-solid) .brand__logo { display: none; }
.site-header--overlay:not(.is-solid) .brand__logo--light { display: block; }
.site-header--overlay:not(.is-solid) :is(.site-nav a:not(.site-nav__contact), .menu-toggle) { color: #fff; }
.site-header--overlay:not(.is-solid) .site-nav a:not(.site-nav__contact):hover { box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.6); }
.site-header--overlay:not(.is-solid) .site-nav__sub-toggle { color: #fff; }
.site-header--overlay:not(.is-solid) .site-nav .site-nav__sub a { color: var(--ink); }
.site-header--overlay:not(.is-solid) .site-nav .site-nav__sub a:hover { box-shadow: none; }
.site-header--overlay:not(.is-solid) :focus-visible { outline-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; align-items: center;
  /* Quieter since 23 Oct: about three-quarters of the screen, not all of it. */
  min-height: clamp(32rem, 76svh, 46rem);
  background: var(--dark);
  color: #fff;
}
/* Three photographs take turns: each holds, then the next fades in (see
   site.js). Without script, or with reduced motion, the first one stays. */
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus, 50% 50%);
}
/* A subtle dark gradient, measured against the photographs (23 Oct): the top
   band carries the header, the left-hand fall carries the headline and the
   intro, and it fades out across the photo. Worst cases from 1024 to 1920
   wide: title 4.66:1 (large text, needs 3), intro 5.17:1, nav 6.16:1. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 12, 12, 0.7) 0%, rgba(11, 12, 12, 0.4) 10%, rgba(11, 12, 12, 0) 22%, rgba(11, 12, 12, 0) 80%, rgba(11, 12, 12, 0.5) 100%),
    linear-gradient(90deg, rgba(11, 12, 12, 0.75) 0%, rgba(11, 12, 12, 0.6) 45%, rgba(11, 12, 12, 0.28) 70%, rgba(11, 12, 12, 0.1) 100%);
}
.hero__inner { padding-block: calc(var(--header) + 2.5rem) 5rem; }
.hero__title {
  max-width: 18em;
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3.125rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero__lead { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.hero__link { display: inline-block; padding-block: 0.8125rem; color: #fff; font: 500 0.9375rem/1.2 var(--font-ui); text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.hero__link:hover { text-decoration-thickness: 2px; }
.hero :focus-visible { outline-color: #fff; }
.hero__credit {
  position: absolute; left: 0; right: 0; bottom: 1.5rem;
  max-width: none;
  font-size: 0.875rem;
}
.hero__credit a { color: #fff; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
/* One credit per photograph, stacked in one cell, shown with its slide. */
.hero__credit { display: grid; }
.hero__credit > span { grid-area: 1 / 1; opacity: 0; transition: opacity 0.6s var(--ease); }
.hero__credit > .is-active { opacity: 1; }

/* ---------- Homepage buttons ----------
   Solid, uppercase and spaced, after the reference, in Cre8's colours. */
.btn-caps {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem;
  padding: 0 2rem;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--dark);
  font: 500 0.8125rem/1.2 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn-caps:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
.btn-caps--white { background: #fff; border-color: #fff; color: var(--ink); }
.btn-caps--white:hover { background: #EDEDE8; border-color: #EDEDE8; }
.btn-caps--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-caps--ink:hover { background: #2A2E2E; border-color: #2A2E2E; }

/* ---------- Display headings and the side label ---------- */
.display {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.display span { color: var(--teal-ink); }
.display--light { color: #fff; }
:is(.display--light, .contact-strip .display) span { color: var(--teal); }
/* A short label above a heading, in the dark teal. */
.kicker { font: 500 0.8125rem/1.3 var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink); }
.kicker + .display { margin-top: 0.75rem; }

/* ---------- Services over a photograph ---------- */
.svc-band { position: relative; isolation: isolate; padding-block: clamp(4rem, 8vw, 6.5rem); background: var(--dark); }
.svc-band__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.svc-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 12, 12, 0.6); }
.svc-band__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); color: #fff; }
.svc-band__head .more { color: #fff; }
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.svc-card {
  position: relative;
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  background: #0E1010;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.svc-card__n { position: absolute; top: 1.5rem; right: 1.75rem; font: 500 0.9375rem/1 var(--font-ui); color: rgba(255, 255, 255, 0.72); }
.svc-card svg { width: 3rem; height: 3rem; color: var(--teal); }
.svc-card h3 {
  margin-top: 1.5rem; padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font: 500 1rem/1.35 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase;
}
.svc-card p { margin-top: 1.1rem; font-size: 1rem; line-height: 1.6; }
.svc-card__more {
  margin-top: auto; padding-top: 1.5rem;
  font: 500 0.8125rem/1.2 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
}
.svc-card__more span { text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
/* Only linked cards respond; the About page's cards are statements, not links. */
a.svc-card:hover, a.svc-card:focus-visible, a.svc-card[aria-current] { background: var(--teal); color: var(--dark); }
a.svc-card:is(:hover, :focus-visible, [aria-current]) :is(h3, .svc-card__n, .svc-card__more, svg) { color: var(--dark); }
a.svc-card:is(:hover, :focus-visible, [aria-current]) h3 { border-bottom-color: rgba(11, 12, 12, 0.3); }
.svc-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* About's How we work: a plain list of titles, three across. */
.svc-cards:has(.svc-card--static) { max-width: 56rem; margin-inline: auto; gap: 1.25rem 2.5rem; }
.svc-card--static { position: relative; display: block; height: auto; padding: 0 0 0 1.5rem; background: none; }
.svc-card--static::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; background: var(--teal); }
.svc-card--static h3 { margin-top: 0; padding-bottom: 0; border-bottom: 0; font-family: inherit; font-size: 1.0625rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; }

/* ---------- Figures ---------- */
/* Kept small and quiet on About (23 Oct): a kicker for a heading, modest
   numbers between two hairlines, and the trust line beneath. It follows
   the white opening section, so it carries on without a gap of its own. */
.figures-section { padding-top: 0; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; margin-top: 1.25rem; padding-block: 1.5rem; border-block: 1px solid var(--line); }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: start; text-align: center; }
.figures dd { font-size: clamp(1.75rem, 1.5rem + 0.9vw, 2.25rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.figures dt { margin: 0.4rem auto 0; max-width: 24ch; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.45; }
.figures__trust { max-width: 40rem; margin: 1.5rem auto 0; color: var(--ink-soft); line-height: 1.55; text-wrap: balance; }

/* ---------- Contact panel ---------- */


/* ---------- Homepage, smaller screens ---------- */
@media (max-width: 760px) {
  .hero__img { object-position: var(--focus-sm, var(--focus, 50% 50%)); }
}
@media (max-width: 1023px) {
  /* Narrower screens put the text across most of the photograph (and phones
     use the brighter portrait crop), so the shade evens out across it.
     Lightest profile that passed from 1023 down to 320 wide; see the
     measurements in HANDOFF.md. */
  .hero::after {
    background:
      linear-gradient(180deg, rgba(11, 12, 12, 0.6) 0%, rgba(11, 12, 12, 0.1) 20%, rgba(11, 12, 12, 0.1) 75%, rgba(11, 12, 12, 0.55) 100%),
      linear-gradient(90deg, rgba(11, 12, 12, 0.78) 0%, rgba(11, 12, 12, 0.68) 50%, rgba(11, 12, 12, 0.58) 100%);
  }
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .svc-cards { grid-template-columns: minmax(0, 1fr); }
  .hero__inner { padding-bottom: 5rem; }
  .figures { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}

/* ---------- Homepage, 23 Oct: one column, kept short ----------
   The client asked for a homepage that reads down rather than across and
   doesn't make you scroll: what we do, the projects as a list, a strip to
   get in touch. */
.center-col { max-width: 46rem; text-align: center; }
.center-col .display { margin-top: 0.75rem; }
.center-col > p { margin-inline: auto; }
.center-col > p:not(.kicker) { margin-top: 1rem; }
.center-col__lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; text-wrap: balance; }
.center-col .actions { justify-content: center; }
.center-col > .btn-caps { margin-top: 2rem; }
.center-col--wide { max-width: 52rem; }

/* About us: the lead and its paragraphs on one measure, read as one block. */
/* About us: one size, one measure, left-aligned under a centred heading. */
.about-us-section .center-col { max-width: 40rem; }
.about-us-section .center-col > p,
.about-us-section .center-col > .center-col__lead { margin-top: 0; font-size: 1.0625rem; line-height: 1.7; text-align: left; text-wrap: pretty; }
.about-us-section .center-col > .display + p { margin-top: 1.75rem; }
.about-us-section .center-col > p + p { margin-top: 1rem; }
/* Its own band, so it reads apart from the intro above it. */
.about-us-section { background: var(--stone); }
@media (min-width: 900px) {
  .about-us-section .center-col { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); column-gap: clamp(3rem, 7vw, 6rem); align-items: start; max-width: var(--wrap, 76rem); text-align: left; }
  .about-us-section .center-col > .display { grid-column: 1; grid-row: 1 / span 6; margin-top: 0; text-align: left; }
  .about-us-section .center-col > p { grid-column: 2; max-width: 36rem; margin-inline: 0; }
  .about-us-section .center-col > .display + p { margin-top: 0; }
}

/* Selected projects, a row each: thumbnail, name, type and location. */
.plist { margin-top: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--line); text-align: left; }
.plist > li[hidden] { display: none; }
.pfilter + .visually-hidden + .plist { margin-top: 0; }
.plist__row {
  display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto; align-items: center; gap: 1.5rem;
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.15s var(--ease);
}
.plist__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.plist__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
/* A site with no photographs yet: a plain dark tile with the client's name. */
.plist__media--blank { display: grid; place-items: center; background: var(--dark); color: #fff; font: 500 0.875rem/1 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; }
.plist__name { font: 500 1.0625rem/1.3 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.plist__meta { margin-top: 0.3rem; color: var(--ink-soft); font-size: 1rem; }
.plist__arrow { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--teal-ink); }
.plist__arrow svg { width: 1.25rem; height: 1.25rem; }
.plist__row:hover { background: var(--paper); }
.plist__row:hover .plist__name { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.plist__row:focus-visible { outline-offset: 2px; }

/* The contact strip: a plain dark band, no photograph. */
.contact-strip { padding-block: clamp(3.5rem, 7vw, 5rem); background: var(--dark); color: rgba(255, 255, 255, 0.86); }
.contact-strip .display { margin-top: 0; color: #fff; }
.contact-strip__direct { font-size: 1.125rem; }
.contact-strip__direct a { display: inline-block; padding-block: 0.25rem; color: #fff; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.contact-strip :focus-visible { outline-color: var(--teal); }
.contact-strip + .site-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* A showcase with one photograph (Retail, Commercial since 23 Oct). */
.showcase__photos.showcase__photos--single { display: block; height: auto; }
.showcase__photos.showcase__photos--single img { height: auto; aspect-ratio: 16 / 9; }

/* A showcase of five photographs laid out as the client's SOAS collage (28
   Oct): two across the top, three below. Phones: one wide, then two by two. */
.showcase__photos.showcase__photos--mosaic {
  grid-template-columns: repeat(20, minmax(0, 1fr)); grid-template-rows: minmax(0, 1.06fr) minmax(0, 1fr);
  height: auto; aspect-ratio: 3 / 2;
}
.showcase__photos--mosaic > :nth-child(1) { grid-column: span 12; }
.showcase__photos--mosaic > :nth-child(2) { grid-column: span 8; }
.showcase__photos--mosaic > :nth-child(3),
.showcase__photos--mosaic > :nth-child(5) { grid-column: span 7; }
.showcase__photos--mosaic > :nth-child(4) { grid-column: span 6; }
.showcase__photos--mosaic figure { margin: 0; min-height: 0; }

@media (max-width: 600px) {
  .plist__row { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-right: 0; }
  .plist__arrow { display: none; }
  .plist__name { font-size: 1rem; }
  .plist__meta { font-size: 0.9375rem; }
}

/* ==========================================================================
   Services and About pages, after the reference's: a centred breadcrumb,
   "what we offer" beside a photograph, the core services over a photograph
   (shared with the homepage), expertise as a list of rows, the steps as large
   numerals, and the contact strip.
   ========================================================================== */

.crumbs--center { margin: 0; padding-top: clamp(1.75rem, 3vw, 2.5rem); }
.crumbs--center ol { justify-content: center; }
.offer-section { padding-top: clamp(2rem, 4vw, 3.5rem); }

/* What we offer: the opening text, with the photograph on the left from
   tablet width up (it follows the text in the source, so the h1 comes first). */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem clamp(2.5rem, 6vw, 5rem); align-items: center; }
.offer__media { order: -1; }
.offer__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--focus, 50% 50%); background: var(--stone); }
.offer__media figcaption { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-soft); }
.offer__media figcaption a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.offer .display { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.06; }
.offer__sub { margin-top: 1rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--ink-soft); }
.offer__body { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.offer__body p + p, .offer__h + p { margin-top: 1rem; }
.offer__h { font: 500 0.9375rem/1.35 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; }
.offer__body a { color: var(--teal-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.offer .btn-caps { margin-top: 2.25rem; }

/* A centred heading with a line under it. */
.section-title { margin-bottom: clamp(2rem, 4vw, 3rem); text-align: center; }
.section-title p { margin: 0.75rem auto 0; color: var(--ink-soft); }
.svc-band__head--center { flex-direction: column; align-items: center; text-align: center; }
/* Full white: at 86% it measured 4.33:1 on the brightest part of the photo. */
.svc-band__head--center p { color: #fff; }


/* The steps as large numerals over a ruled line, like the homepage figures. */
.steps-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.steps-big > li { counter-increment: step; position: relative; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.steps-big > li::before { content: counter(step, decimal-leading-zero); display: block; font-size: clamp(2.75rem, 2.2rem + 2vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -0.01em; }
.steps-big > li::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 35%; height: 2px; background: var(--ink); }
.steps-big h3 { margin-top: 1.1rem; font: 500 0.9375rem/1.35 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; }
.steps-big p { margin-top: 0.5rem; color: var(--ink-soft); }
.steps-big--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .steps-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-big--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .steps-big--3 { grid-template-columns: minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer__media { order: 0; }
  .offer__media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .steps-big { grid-template-columns: minmax(0, 1fr); }
}


/* ---------- Service pages ----------
   A centred title, the service and what it includes beside a photograph,
   all six services with this one lit, related projects, the contact panel. */
.page-title-center { padding-top: clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.page-title-center .display { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.06; }
.page-title-center p { margin: 1rem auto 0; max-width: 40rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--ink-soft); }
.svc-detail-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.svc-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem clamp(2.5rem, 6vw, 5rem); align-items: start; }
.svc-detail__text > p + p { margin-top: 1rem; }
.svc-detail__text .offer__h { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.svc-detail__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--focus, 50% 50%); background: var(--stone); }
.svc-detail .actions { margin-top: 2.25rem; }
/* The list is titles only: two short columns. */
.svc-detail .ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem 2rem; }
.svc-detail .ticks li + li { margin-top: 0; }
.svc-detail .ticks h3 { font-family: inherit; font-size: 1.0625rem; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; }
@media (max-width: 480px) { .svc-detail .ticks { grid-template-columns: minmax(0, 1fr); } }

/* What a service includes: a teal square marks each item. */
.ticks { margin-top: 1.25rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li + li { margin-top: 1.1rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.5rem; height: 0.5rem; background: var(--teal); }
.ticks :is(h3, h4) { margin: 0; font: 500 0.875rem/1.4 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; }
/* A first heading needs no rule above it; a group label sits over its list. */
.svc-detail__text > .offer__h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.svc-detail__text > .offer__h + p { margin-top: 1rem; }
.ticks-group { margin-top: 1.75rem; font-size: 1.0625rem; font-weight: 600; }
.ticks-group + .ticks { margin-top: 1rem; }
/* Project showcase: one project in depth on a service page. A large photo
   beside two smaller ones, then the brief and what we did beside the facts. */
.showcase__photos {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1vw, 0.75rem); height: clamp(24rem, 42vw, 36rem);
}
.showcase__photos img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); background: var(--line); }
.showcase__big { grid-row: 1 / 3; }
.showcase__body {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem clamp(2.5rem, 6vw, 5rem); align-items: start; margin-top: clamp(2rem, 4vw, 3rem);
}
.showcase__text .offer__h + p { margin-top: 0.75rem; }
.showcase__text p + .offer__h { margin-top: 1.75rem; }
.showcase__text .more { display: inline-block; margin-top: 1.75rem; }
.section--stone .pdetail__facts { background: #fff; }

/* The enquiry panel's checklist of what to send. */
.contact-strip__h { margin-top: 2rem; font: 500 0.8125rem/1.3 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.contact-strip__send { margin-top: 0.75rem; }
.contact-strip__send li + li { margin-top: 0.35rem; }
.contact-strip__send + .contact-strip__direct { margin-top: 1.75rem; }

/* A long text column keeps its photograph in view. */
.svc-detail--sticky .svc-detail__media { position: sticky; top: calc(var(--header, 4.5rem) + 1.5rem); }
.ticks p { margin-top: 0.25rem; color: var(--ink-soft); }

@media (max-width: 899px) {
  .svc-detail { grid-template-columns: minmax(0, 1fr); }
  .svc-detail__media img { aspect-ratio: 16 / 10; }
  .svc-detail--sticky .svc-detail__media { position: static; }
  .showcase__body { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .pdetail { grid-template-columns: minmax(0, 1fr); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-tiles { position: static; }
  .intro { grid-template-columns: minmax(0, 1fr); }
  .page-photo img { aspect-ratio: 16 / 9; }
}

/* The navigation folds into a menu button. Without script the links stay
   visible under the logo, so nothing depends on it. */
@media (max-width: 760px) {
  :root { --header: 3.75rem; }
  .brand img { height: 2.375rem; }
  .has-js .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem;
    min-height: 2.75rem; padding: 0 0.25rem 0 0.75rem;
    border: 0; background: none; cursor: pointer;
    font: 500 0.9375rem/1 var(--font-ui);
  }
  .menu-toggle__icon, .menu-toggle__icon::before {
    display: block; width: 1.125rem; height: 2px; background: currentColor;
    transition: transform 0.15s var(--ease);
  }
  .menu-toggle__icon { position: relative; transform: translateY(-3px); }
  .menu-toggle__icon::before { content: ""; position: absolute; left: 0; top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon { transform: translateY(0) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 0; transform: rotate(-90deg); }

  .site-header__bar { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; }
  .site-nav ul { gap: 0 1.25rem; padding-bottom: 0.5rem; }
  .has-js .site-nav { display: none; }
  .has-js .site-nav.is-open { display: block; }
  .has-js .site-nav ul { display: block; padding-bottom: 1rem; }
  .has-js .site-nav li { border-top: 1px solid var(--line); }
  .has-js .site-nav a { display: flex; min-height: 3rem; font-size: 1.0625rem; box-shadow: none; }
  .has-js .site-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--teal); padding-left: 0.75rem; }
  .has-js .site-nav .site-nav__contact { margin-top: 0.75rem; justify-content: center; }
  .has-js .site-nav > ul > li:last-child { border-top: 0; }
  /* About folds too: its links open from the chevron beside it. */
  .has-js .site-nav__has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .has-js .site-nav__has-sub > a { flex: 1; }
  .has-js .site-nav__sub-toggle { width: 3rem; height: 3rem; margin: 0; }
  .has-js .site-nav__sub-toggle svg { width: 1.25rem; height: 1.25rem; }
  .has-js .site-nav .site-nav__sub { display: none; flex-basis: 100%; position: static; width: auto; min-width: 0; padding: 0 0 0 1rem; border: 0; background: none; box-shadow: none; }
  .has-js .site-nav .site-nav__sub-toggle[aria-expanded="true"] + .site-nav__sub { display: block; }
  .has-js .site-nav .site-nav__sub a { padding: 0; white-space: normal; }
  .has-js .site-nav .site-nav__sub a:hover { background: none; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split--media-right .split__media { order: 0; }
  .team { grid-template-columns: minmax(0, 1fr); }
  .page-photo img { aspect-ratio: 3 / 2; }
  .lead-photo img { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  /* The page's own name is the heading below, so a third crumb is dropped
     rather than wrapping onto a line that starts with a slash. */
  .crumbs li:nth-child(n+3) { display: none; }

  /* Buttons run the full width, so stacked pairs line up and long labels
     wrap as a balanced block. */
  .btn-caps { width: 100%; min-height: 3.25rem; padding: 0.85rem 1.25rem; line-height: 1.35; text-align: center; text-wrap: balance; }

  /* Service cards: icon beside the text, so six of them stay compact. */
  .svc-cards { gap: 0.75rem; }
  .svc-card { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-content: start; column-gap: 1.1rem; padding: 1.35rem 1.25rem; }
  .svc-card svg { grid-row: 1 / span 3; width: 2rem; height: 2rem; }
  .svc-card__n { display: none; }
  .svc-card :is(h3, p, .svc-card__more) { grid-column: 2; }
  .svc-card h3 { margin-top: 0.2rem; padding-bottom: 0.7rem; font-size: 0.875rem; }
  .svc-card p { margin-top: 0.7rem; font-size: 0.9375rem; line-height: 1.55; }
  .svc-card__more { margin-top: 0; padding-top: 0.8rem; }
  .svc-cards:has(.svc-card--static) { gap: 0.875rem; }
  .svc-card--static { display: block; padding: 0 0 0 1.5rem; }
  .svc-card--static h3 { margin-top: 0; padding-bottom: 0; font-size: 1.0625rem; }

  /* Large numbered steps: the number beside its step. */
  .steps-big { gap: 1.25rem; }
  .steps-big > li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: 0.75rem; padding-bottom: 1.25rem; }
  .steps-big > li::before { grid-row: 1 / span 2; font-size: 2.25rem; }
  .steps-big h3 { margin-top: 0.15rem; }

  /* Footer: the two short columns side by side, services full width. */
  .site-footer__grid > :nth-child(3) { grid-column: 1 / -1; order: 1; }

  /* Projects filter: two equal columns instead of ragged centred rows. */
  .pfilter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfilter button { justify-content: center; padding: 0.6rem 0.75rem; line-height: 1.3; text-align: center; }
  .showcase__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; height: auto; }
  .showcase__big { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .showcase__photos img:not(.showcase__big) { aspect-ratio: 1 / 1; }
  .showcase__photos.showcase__photos--mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; aspect-ratio: auto; }
  .showcase__photos--mosaic > :nth-child(n) { grid-column: auto; }
  .showcase__photos--mosaic > :first-child { grid-column: 1 / -1; }
  .showcase__photos--mosaic > img:first-child { aspect-ratio: 3 / 2; }
  .contact-tiles { grid-template-columns: minmax(0, 1fr); }
  .contact-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; }
  .contact-tile svg { grid-row: 1 / 3; width: 1.5rem; height: 1.5rem; }
  .contact-tile h3 { margin-top: 0.1rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pager { gap: 0.5rem; }
  .pager__word { display: none; }
  .pager a { gap: 0.4rem; }
}
