/* ==========================================================================
   GW+Co – site styles
   One stylesheet for the whole site. Change a token here and it applies everywhere.
   Paths in this file are relative to assets/css/ (e.g. ../fonts/, ../img/).
   ========================================================================== */

/* ---------- Fonts ---------- */
/* GauthierFY (Black Foundry, formerly Fontyou) – self-hosted under GW+Co's web licence for gwco.uk. */
@font-face {
  font-family: "GauthierFY";
  src: url("../fonts/GauthierFY-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "GauthierFY";
  src: url("../fonts/GauthierFY-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "GauthierFY";
  src: url("../fonts/GauthierFY-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Nitti Grotesk comes from Adobe Fonts (kit hyh2iix) – linked in each page's <head>. */

/* ---------- Tokens ---------- */
:root {
  --c-paper: #f3f1e8;
  --c-ink: #000; /* black for the dark bands, panels and footer */
  --c-text: #262626; /* not-quite-black: all text, lines and underlines */
  --c-inverse: #fff;
  --c-accent: #f6c045;
  --c-grey: #e6e6e6; /* light grey band (Immersive "The tools", added 19 Nov 2026) */

  --f-sans: "nitti-grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "GauthierFY", Georgia, "Times New Roman", serif;

  --max: 1500px;                                  /* content width on large screens */
  --gutter: max(24px, 8px + 2.7vw);               /* space either side – matches live: 24px on phones, 43px at 1327 wide */
  --container: min(calc(100vw - 2 * var(--gutter)), var(--max));
  --inset: calc((100vw - var(--container)) / 2 + var(--container) * 0.1707); /* left edge of the projects block */
  --section-gap: clamp(48px, 5.5vw, 88px);
  --space-s: clamp(16px, 2vw, 24px);
  --space-m: clamp(32px, 5vw, 72px);
  --space-l: clamp(64px, 9vw, 140px);

  /* Type sizes follow the live site's rule: fixed up to 600px wide, growing evenly to full size at 1500px.
     Pattern: clamp(MIN, calc(MIN + (MAX − MIN) × (100vw − 600px) / 900), MAX) */
  --t-display: clamp(40px, calc(40px + 66 * (100vw - 600px) / 900), 106px);   /* 40 → 106px */
  --t-lead: clamp(18px, calc(18px + 10 * (100vw - 600px) / 900), 28px);       /* 18 → 28px */
  --t-body: clamp(16px, calc(16px + 6 * (100vw - 600px) / 900), 22px);       /* 16 → 22px */
  --t-label: clamp(16px, calc(16px + 4 * (100vw - 600px) / 900), 20px);      /* 16 → 20px: footer labels, eyebrows, bylines */
  --t-small: 0.875rem;

  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);   /* hover timing, as on the original site */
  --dur: .3s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;   /* as on the live site: avoids single words left on a last line */
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
strong, b { font-weight: 600; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(1100px + 2 * var(--gutter)); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { font-weight: 600; position: absolute; left: 8px; top: -100px; background: var(--c-ink); color: var(--c-inverse); padding: 8px 12px; z-index: 100; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 33px 0; }
@media (min-width: 800px) { .site-header__inner { padding-top: clamp(58px, 55px + .35vw, 60px); } }
/* Logo top sits exactly on the header padding; nav and menu button are centred on it */
.logo { display: inline-flex; color: inherit; align-self: flex-start; }
@media (min-width: 800px) { .site-nav { display: flex; align-items: center; height: 27px; } }
.logo svg { width: 124px; height: auto; }   /* fixed size at every width, as on the live site */

.site-nav ul { display: flex; gap: clamp(17px, 12px + .67vw, 22px); }
.site-nav a {
  font-weight: 600; font-size: 1.125rem; text-decoration: none; padding-block: 6px;
  box-shadow: 0 3px 0 0 transparent; transition: box-shadow var(--dur) var(--ease) .05s;   /* .05s delay, as on the live site */
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { box-shadow: 0 3px 0 0 var(--c-accent); }
/* On yellow pages (Contact) the yellow underline would vanish: text colour instead (desktop menu only; the phone menu already uses dark) */
@media (min-width: 800px) {
  .page--yellow .site-nav a:hover, .page--yellow .site-nav a:focus-visible, .page--yellow .site-nav a[aria-current="page"] { box-shadow: 0 3px 0 0 var(--c-text); }
}

.nav-toggle { display: none; }

/* Mobile menu (below 800px, as on the live site): a "+" button that turns into a cross,
   opening a full-screen yellow panel with large centred links. The panel appears instantly;
   only the button animates. */
@media (max-width: 799px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 2;
    width: 44px; height: 44px; margin-right: -2px; margin-block: -8.5px; padding: 0;
    background: none; border: 0; color: inherit; cursor: pointer;
  }
  /* The plus: two 4px bars, 18.7px long (the live site's 32px icon) */
  .nav-toggle__bar { position: relative; display: block; width: 18.7px; height: 4px; background: currentColor; transition: transform var(--dur) var(--ease); }
  .nav-toggle__bar::before { content: ""; position: absolute; inset: 0; background: currentColor; transform: rotate(90deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { transform: rotate(135deg); }

  .logo { position: relative; z-index: 2; }
  .site-nav { display: none; }

  /* Open: the header becomes a fixed yellow layer covering the screen */
  .site-header.is-open { position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: var(--c-accent); color: var(--c-text); }
  .a-top:has(.site-header.is-open) { z-index: 100; }   /* dark-hero pages hold the header inside their own layer */
  .site-header.is-open .site-nav { display: block; width: 100%; padding: 40px 0; margin-top: 57px; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 25px; }
  .site-nav a { display: block; font-size: 1.75rem; line-height: 1.4; padding-block: 8px; text-align: center; }
  /* Current page, hover and keyboard focus: a black 3px underline (the desktop yellow would vanish on the yellow panel) */
  .site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { box-shadow: 0 3px 0 0 var(--c-text); }
  .site-nav a:focus-visible { outline: none; }
  .site-header__inner { flex-wrap: wrap; }

  /* Links fade in and rise 16px one after another (live: 0.5s each, 0.1s apart) */
  .site-header.is-open .site-nav li { animation: menu-link-in .5s ease both; }
  .site-header.is-open .site-nav li:nth-child(1) { animation-delay: .1s; }
  .site-header.is-open .site-nav li:nth-child(2) { animation-delay: .2s; }
  .site-header.is-open .site-nav li:nth-child(3) { animation-delay: .3s; }
  .site-header.is-open .site-nav li:nth-child(4) { animation-delay: .4s; }
  .site-header.is-open .site-nav li:nth-child(5) { animation-delay: .5s; }
}
@keyframes menu-link-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header.is-open .site-nav li { animation: none; } }
html.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
/* Top space puts every section-page title (Home, About, Approach, Services, Journal, Contact) at the same
   height as on live: fixed below 600px, growing to 1500px like the rest of the type scale.
   Variants change only the bottom space – don't give one its own top padding, or its title will sit out of line. */
.hero { text-align: center; padding-block: clamp(93.4px, 87.53px + .978vw, 102.2px) clamp(48px, 7.4vw, 119px); }
.hero__title {
  font-size: var(--t-display); font-weight: 600; line-height: 1; letter-spacing: -0.025em;
  max-width: 32ch; margin-inline: auto; text-wrap: balance;
}
.hero__sub { font-family: var(--f-serif); font-weight: 500; font-size: var(--t-lead); margin-top: var(--space-s); }

/* ---------- Text + overlapping images ---------- */
/* Desktop grid: images take the first 51.3% of the container, text the rest (and the reverse). */
.split {
  display: grid; grid-template-columns: 51.33% 1fr; align-items: start;
  padding-bottom: var(--section-gap);
}
/* Text starts a little below the top of the front image, as on the original site. */
.split__text { max-width: calc(var(--container) * 0.4); margin-top: calc(var(--container) * 0.09); }
.split__text > * + * { margin-top: var(--space-s); }
.split--reverse { grid-template-columns: 51.33% 1fr; }
.split--reverse .split__text { order: -1; }

.lead { font-family: var(--f-serif); font-weight: 500; font-size: var(--t-lead); line-height: 1.4; }

/* Yellow underline that turns to the text colour (#262626) on hover – changed from live's white on 11 Nov 2026. */
.text-link {
  display: inline-block; font-weight: 600;
  text-decoration: underline 3px var(--c-accent); text-underline-offset: 14px;
  transition: text-decoration-color var(--dur) var(--ease);
}
.text-link:hover, .text-link:focus-visible { text-decoration-color: var(--c-text); }
.text-link { margin-bottom: 14px; }

/* Two images: a smaller one behind, a larger one in front, offset diagonally.
   The front image sits in the flow (so it sets the height); the back image is positioned. */
.split__media { position: relative; }
.split__img--front { position: relative; z-index: 1; }
.split__img--back { position: absolute; top: 0; }

.split__media--left .split__img--back  { left: 0; width: 44.8%; }
.split__media--left .split__img--front { width: 61.4%; margin-left: 33.2%; margin-top: 11.43%; }

.split__media--right .split__img--back  { right: 0; width: 47.3%; }
.split__media--right .split__img--front { width: 64.8%; margin-top: 12.05%; }

@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: var(--space-m); }
  .split--reverse .split__text { order: 0; }
  .split__text { max-width: none; margin-top: 0; }
  .split__media { max-width: 560px; }
}

/* ---------- Projects carousel ---------- */
.projects { background: var(--c-ink); color: var(--c-inverse); padding-block: clamp(56px, 6.2vw, 100px) var(--section-gap); }
.projects .wrap--narrow { max-width: none; padding-inline: var(--inset) var(--gutter); }
.projects__title { font-family: var(--f-serif); font-weight: 500; font-size: var(--t-lead); line-height: clamp(28px, calc(28px + 16 * (100vw - 600px) / 900), 44px);   /* live line spacing: 28 → 44px */ max-width: calc(var(--container) * 0.647); }

.carousel { margin-top: clamp(40px, 6.3vw, 102px); }
.carousel__track {
  display: flex; gap: clamp(16px, 2.5vw, 40px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--inset);
  scroll-padding-inline: var(--inset);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.card { flex: 0 0 max(80vw - var(--inset), calc(var(--container) * 0.5867)); max-width: 880px; scroll-snap-align: start; }
.card a {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  color: var(--c-inverse); text-decoration: none; background: var(--c-accent);
  transition: color var(--dur) var(--ease);
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur) var(--ease); }
.card a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); transition: opacity var(--dur) var(--ease); }
/* Hover: the image fades to reveal yellow, text turns black and lifts slightly. */
.card a:hover, .card a:focus-visible { color: var(--c-text); }
.card a:hover img, .card a:focus-visible img,
.card a:hover::after, .card a:focus-visible::after { opacity: 0; }
.card__title, .card__client { transition: transform var(--dur) var(--ease); }
.card a:hover .card__title, .card a:hover .card__client,
.card a:focus-visible .card__title, .card a:focus-visible .card__client { transform: translateY(-12px); }
.card__label, .card__title, .card__client { position: absolute; left: clamp(16px, 2vw, 33px); z-index: 1; }
.card__label { top: clamp(16px, 2vw, 32px); font-size: var(--t-small); line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.card__title { text-wrap: balance; bottom: clamp(44px, 4.5vw, 64px); font-size: clamp(28px, calc(28px + 6 * (100vw - 600px) / 900), 34px); font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.card__client { bottom: clamp(16px, 2vw, 32px); font-size: var(--t-small); line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.carousel__controls { display: flex; gap: 8px; margin-top: 16px; }
.carousel__btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--c-inverse); cursor: pointer; }
.carousel__btn:disabled { opacity: .35; cursor: default; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: var(--c-inverse); padding-block: clamp(32px, 3.4vw, 55px) var(--section-gap); font-size: var(--t-body); }
.site-footer a { text-decoration: none; transition: color var(--dur) var(--ease); }
.site-footer a:not(.logo):hover, .site-footer a:not(.logo):focus-visible { color: var(--c-accent); }
.site-footer__top { display: flex; justify-content: space-between; align-items: center; }
.social svg { width: 32px; height: 32px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: clamp(32px, 3.4vw, 54px); margin-top: clamp(48px, 6.5vw, 105px); }
.site-footer__label { font-size: var(--t-label); line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: var(--space-s); }
.site-footer__badges { margin-left: auto; display: flex; gap: clamp(16px, 2vw, 28px); align-items: flex-start; }
.site-footer__badges img { height: clamp(32px, 2.6vw, 42px); width: auto; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(48px, 6vw, 96px); }
.site-footer__legal { font-size: clamp(14px, calc(14px + 4 * (100vw - 600px) / 900), 18px); }   /* privacy, cookie settings, copyright: a step smaller than the rest of the footer (14 → 18px; was 16 → 22px) */

@media (max-width: 720px) {
  .site-footer__badges { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* On small screens the projects block lines up with everything else. */
@media (max-width: 860px) {
  :root { --inset: var(--gutter); }
  .projects__title { max-width: none; }
  .card { flex-basis: 85vw; }
}


/* ==========================================================================
   Shared page pieces (used from the About page onwards)
   ========================================================================== */

/* Text block that starts at the same inset as the projects heading */
.text-inset { margin-left: calc(var(--container) * 0.1707); max-width: calc(var(--container) * 0.658); }
.intro { padding-bottom: var(--section-gap); }
.intro p + p { margin-top: clamp(16px, 1.4vw, 22px); }

.section-title { font-size: clamp(36px, calc(36px + 24 * (100vw - 600px) / 900), 60px); font-weight: 600; line-height: 1; letter-spacing: -0.025em; }
.section-title + .lead { margin-top: clamp(16px, 1.4vw, 22px); }

/* Hero without the large gap underneath (when something sits straight below the title) */
.hero--compact { padding-bottom: clamp(32px, 6.6vw, 107px); }

/* Text vertically centred against the images (About page) */
.split--centre { align-items: center; }
.split--centre .split__text { margin-top: 0; max-width: calc(var(--container) * 0.371); }

/* ---------- Flipbook: stacked images that cycle, then spread into a row on scroll ---------- */
.flipbook {
  --fw: clamp(180px, calc(var(--container) * 0.2133), 320px);
  position: relative; overflow: hidden;
  height: calc(var(--fw) * 1.25);
  margin-bottom: clamp(64px, 11.7vw, 188px);
}
.flipbook img {
  position: absolute; top: 0; left: 50%; width: var(--fw); aspect-ratio: 4 / 5; object-fit: cover;
  transform: translateX(-50%); transition: transform .3s ease-out;
}
.flipbook img:first-child { z-index: 10; }

/* ---------- Team ---------- */
.team { background: var(--c-accent); padding-block: var(--section-gap); }
.team__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 40px);
  margin-top: clamp(66px, 57.8px + 2.1vw, 90px);   /* gap from the intro text to the photos, measured on live: 66px at 390 wide, 88px at 1440, 90px max */
}
.person {
  position: relative; aspect-ratio: 345 / 446; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(16px, 2vw, 33px) clamp(16px, 2vw, 33px) clamp(18px, 2.2vw, 36px);
  background: var(--c-accent); color: var(--c-inverse);
}
/* Static for now – no hover (the live site only had duplicate images, not a real second state). */
.person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); }
.person__name, .person__role { position: relative; z-index: 1; }
.person__name { text-wrap: balance; font-size: 22px; font-weight: 600; line-height: 1; }   /* live: 22px on phones, then 18 → 34px from 600px */
@media (min-width: 601px) { .person__name { font-size: clamp(18px, calc(18px + 16 * (100vw - 600px) / 900), 34px); } }
.person__role { margin-top: 11px; font-size: var(--t-small); line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 860px) {
  .text-inset { margin-left: 0; max-width: none; }
  .split--centre .split__text { max-width: none; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}


/* ==========================================================================
   Services, Approach and Contact
   ========================================================================== */
:root { --c-pink: #ed1e79; --c-heading: var(--c-text); }
.pink { color: var(--c-pink); }
.section-title { color: var(--c-heading); }

.hero--tight { padding-bottom: clamp(24px, 3.7vw, 59px); }
.hero--split { padding-bottom: clamp(48px, 8.1vw, 130px); }

.intro--centre { text-align: center; }
.intro--centre .text-inset p + p { margin-top: clamp(16px, 1.75vw, 28px); }
.intro--before-collage { padding-bottom: clamp(80px, 13.5vw, 216px); }
.intro--flush { padding-bottom: 0; }
.text-wide { margin-left: calc(var(--container) * 0.0853); max-width: calc(var(--container) * 0.8287); }
.footnote { margin-top: clamp(12px, 1.4vw, 22px); color: var(--c-pink); }

/* Bold in-text links with a thin yellow underline (Services intro) */
.inline-link { text-decoration: underline 2px var(--c-accent); text-underline-offset: 3.5px; transition: text-decoration-color var(--dur) var(--ease); }
.inline-link:hover, .inline-link:focus-visible { text-decoration-color: currentColor; }
.inline-link--dark { text-decoration-color: currentColor; }
.inline-link--dark:hover, .inline-link--dark:focus-visible { text-decoration-color: transparent; }
/* On yellow (pages and bands) the dark underline turns white on hover, rather than fading away */
.page--yellow .inline-link--dark:hover, .page--yellow .inline-link--dark:focus-visible,
.l-bg--mango .inline-link--dark:hover, .l-bg--mango .inline-link--dark:focus-visible { text-decoration-color: var(--c-inverse); }
.text-link--dark { text-decoration-color: var(--c-text); }
.text-link--dark:hover, .text-link--dark:focus-visible { text-decoration-color: transparent; }
.page--yellow .text-link--dark:hover, .page--yellow .text-link--dark:focus-visible { text-decoration-color: var(--c-inverse); }   /* "View on a map" (Contact): dark underline turns white */

/* ---------- Collage (Services): positions measured from the live page, as % of a 1500px box ---------- */
.collage-band { overflow-x: clip; }
.collage { position: relative; aspect-ratio: 1500 / 605; }
.collage__img { position: absolute; aspect-ratio: 4 / 5; object-fit: cover; will-change: transform; }
.collage__img--compass    { left: 46.33%; top: -1.65%; width: 13.33%; z-index: 0; }
.collage__img--connect    { left: -9.47%; top: 3.31%;  width: 28%;    z-index: 1; }
.collage__img--bold       { left: 88.13%; top: -1.65%; width: 21.33%; z-index: 1; }
.collage__img--reiss      { left: 21.53%; top: 0;      width: 30.13%; z-index: 3; }
.collage__img--conference { left: 61%;    top: -8.26%; width: 30.13%; z-index: 3; }
@media (max-width: 860px) {
  .collage { width: 150%; margin-left: -25%; }
}

/* ---------- Service blocks ---------- */
.services-list { padding-top: clamp(64px, 9.2vw, 148px); padding-bottom: var(--section-gap); }
.service + .service { margin-top: clamp(40px, 4.4vw, 70px); }
.service { scroll-margin-top: 24px; }
.wiggle { display: block; width: 58px; height: 16px; margin-block: clamp(14px, 1.4vw, 22px); }
.service p + p { margin-top: clamp(14px, 1.4vw, 22px); }

/* Accordions (shared) */
.accordion__toggle { display: flex; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .3s; }
.accordion--examples .accordion__toggle { margin-top: clamp(14px, 1.4vw, 22px); color: var(--c-pink); font-weight: 600; }
.examples { display: flex; flex-direction: column; gap: 11px; margin-top: 10px; padding-left: 20px; list-style: disc; color: var(--c-pink); }
.examples li { margin-bottom: 6px; }

/* ---------- Yellow call-to-action band ---------- */
.cta-band { background: var(--c-accent); padding-block: var(--section-gap); }
.cta-band__text { margin-top: clamp(14px, 1.4vw, 22px); }
.cta-band__link { margin-top: clamp(14px, 1.4vw, 22px); }

/* ---------- Article carousel (Services) ---------- */
.projects--articles { padding-top: var(--section-gap); }
.projects--articles .section-title { color: var(--c-inverse); }
.projects--articles .carousel { margin-top: clamp(32px, 3.1vw, 50px); }
.projects--articles .carousel__controls { margin-top: clamp(12px, 1.4vw, 22px); }
.card--article { flex: 0 0 calc(var(--container) * 0.2833); max-width: 425px; }
.card--article a { aspect-ratio: 425 / 550; }
.card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur) var(--ease); }
.card a:hover video, .card a:focus-visible video { opacity: 0; }
@media (max-width: 860px) { .card--article { flex-basis: 70vw; } }

/* ---------- Scroll story (Approach) ---------- */
.stack { position: relative; height: 300vh; }
.stack__inner { position: sticky; top: 0; height: 80vh; display: flex; align-items: center; justify-content: space-between; }
.stack__images { position: relative; flex: 0 0 64.87%; aspect-ratio: 973 / 782; max-height: 100%; }
.stack__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s; }
.stack__img.is-visible { opacity: 1; }
.stack__texts { position: relative; flex: 0 0 32.47%; align-self: stretch; }
.stack__text { position: absolute; left: 0; right: 0; top: 50%; opacity: 0; transform: translateY(calc(-50% + 90px)); transition: opacity .6s, transform .6s; }
.stack__text.is-visible { opacity: 1; transform: translateY(-50%); }
@media (max-width: 720px) {
  .stack__inner { flex-direction: column; justify-content: center; height: 100vh; }
  .stack__images { flex: none; width: 100%; max-height: 55vh; }
  .stack__texts { flex: none; width: 100%; min-height: 30vh; align-self: auto; }
}

/* Text sections (Approach) */
.text-section { padding-block: var(--section-gap); }
.text-section .section-title + p { margin-top: clamp(14px, 1.4vw, 22px); }
.text-section p + p { margin-top: clamp(14px, 1.4vw, 22px); }

/* ---------- Stats ---------- */
.stats-band { background: var(--c-accent); padding-block: var(--section-gap); }
.eyebrow { font-size: var(--t-label); font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: 1px; }
.stats { display: grid; grid-template-columns: repeat(3, max-content); gap: clamp(24px, 3vw, 48px) clamp(32px, 5vw, 80px); margin-top: clamp(20px, 1.9vw, 30px); }
.stat__num { font-size: clamp(40px, calc(40px + 90 * (100vw - 600px) / 900), 130px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
.stat__label { contain: inline-size; margin-top: 11px; font-weight: 600; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } .stat__label { contain: none; } }

/* ---------- Five principles ---------- */
.principles { padding-block: var(--section-gap); }
.principles__list { margin-top: clamp(32px, 3.9vw, 63px); border-top: 1px solid var(--c-text); }
.principle { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding-block: 34px 33px; border-bottom: 1px solid var(--c-text); }
.principle__num { position: sticky; top: 20px; align-self: start; font-size: clamp(20px, 14.4px + 2vw, 40px); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.principle__toggle { justify-content: space-between; align-items: center; gap: 16px; }
.principle__label { font-size: clamp(20px, 14.4px + 2vw, 40px); font-weight: 600; line-height: 1.2; }
.principle__icon { flex: none; transition: transform var(--dur) var(--ease); }
.principle__toggle[aria-expanded="true"] .principle__icon { transform: rotate(45deg); } /* plus turns into a cross, as on the live site */
.principle .accordion__panel > .lead { padding-top: 10px; }
.principle__case { margin-top: 31px; color: var(--c-pink); font-weight: 500; }
.principle__case p + p { margin-top: 0; }
@media (max-width: 600px) { .principle { grid-template-columns: 40px 1fr; gap: 12px; } }

.text-section--body { padding-top: 0; padding-bottom: clamp(96px, 11vw, 176px); }

/* ---------- Tools (Approach) ---------- */
.tools-band { background: var(--c-ink); color: var(--c-inverse); padding-block: var(--section-gap); }
.tools-band .section-title { color: var(--c-inverse); }
.tools-band__intro { margin-top: clamp(14px, 1.4vw, 22px); }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 40px); margin-top: clamp(48px, 5.6vw, 90px); }
.tool { position: relative; aspect-ratio: 345 / 446; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(16px, 2vw, 33px); background: var(--c-accent); }
.tool__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tool::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 60%); }
.tool__logo { position: absolute; z-index: 1; top: clamp(16px, 2.1vw, 35px); left: 50%; width: 56.5%; height: auto; transform: translateX(-50%); }
.tool__text { position: relative; z-index: 1; }
@media (max-width: 860px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tools { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.page--yellow { background: var(--c-accent); }
.split__text--narrow { max-width: calc(var(--container) * 0.371); }
.split__text--narrow .section-title + p { margin-top: clamp(14px, 1.4vw, 22px); }
@media (max-width: 860px) { .split__text--narrow { max-width: none; } }

/* ---------- Buttons ----------
 One shared button. Default: yellow (the same yellow as the yellow bands, --c-accent – changed from live's #eec25d on 11 Nov 2026),
 turning black on hover. Every button, including form buttons, uses this size.
 .btn--dark: black, turning white on hover (forms). 5px corners to match the form fields. */
.btn {
  display: inline-block; border: 0; border-radius: 5px; cursor: pointer;
  /* Slightly smaller on phones, growing to full size by 1500px wide (the site's usual 600 → 1500px rule):
     text 15 → 18px, padding 14 → 19px top/bottom and 20 → 25px at the sides */
  padding: clamp(14px, calc(14px + 5 * (100vw - 600px) / 900), 19px) clamp(20px, calc(20px + 5 * (100vw - 600px) / 900), 25px);
  background: var(--c-accent); color: var(--c-text);
  font-family: var(--f-sans); font-size: clamp(15px, calc(15px + 3 * (100vw - 600px) / 900), 18px); font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--c-ink); color: var(--c-inverse); }
.btn:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.btn--dark { background: var(--c-ink); color: var(--c-inverse); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--c-inverse); color: var(--c-text); }

/* ---------- Forms (Kit) ----------
 Fields as on the live site: white, no border, 5px corners, 50px high, small uppercase labels above.
 Error messages come from site.js (forms marked data-validate), not the browser. */
.form__field { display: flex; flex-direction: column; gap: clamp(4px, 2.667px + .2222vw, 6px); }
.form__label { font-size: 14px; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .05em; }
.form__input, .form__select {
 font: inherit; color: var(--c-text);
 width: 100%; height: 50px; padding: 0 12.5px;
 background-color: var(--c-inverse); border: 0; border-radius: 5px;
}
.form__input::placeholder { color: rgba(38, 38, 38, .5); }
/* Dropdowns: browser arrow replaced by a chevron, as on live */
.form__select {
 appearance: none; -webkit-appearance: none; padding-right: calc(12.5px + 10px + 14px); cursor: pointer;
 background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
 background-repeat: no-repeat; background-position: calc(100% - 12.5px) center; background-size: 14px;
}
/* Tick boxes: a 50px white square with a tick, label beside it */
.form__check { display: flex; align-items: center; gap: 20px; position: relative; font-weight: 600; cursor: pointer; }
.form__check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.form__check::before { content: ""; flex: 0 0 50px; height: 50px; background: var(--c-inverse); border-radius: 5px; }
.form__check::after {
 content: ""; position: absolute; left: 13px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); opacity: 0;
 background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.form__check:has(input:checked)::after { opacity: 1; }
/* Keyboard focus: a 3px ring (live uses blue; ink here so it shows on yellow and white alike) */
.form__input:focus, .form__select:focus { outline: none; }
.form__input:focus-visible, .form__select:focus-visible { box-shadow: 0 0 0 3px var(--c-text); }
.form__check:has(input:focus-visible)::before { box-shadow: 0 0 0 3px var(--c-text); }
/* Errors: a red bar beside the field and a message under it (live layout; darker red than live's #e80d3d so it reads on yellow) */
.form__field.is-invalid { border-left: 3px solid var(--c-error); padding-left: clamp(12px, 9.667px + .3889vw, 17px); }
.form__input[aria-invalid="true"], .form__select[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--c-error); }
.form__error { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--c-error); }
:root { --c-error: #b3001b; }

/* Kit sign-up forms (Download page). Matches the live HubSpot form, measured at 390 and 1440px:
   Two columns from 800px (39px apart): First name | Last name, then Work email | How will you use the map? (changed
   from live on 11 Nov 2026); ~27px between rows, 14px small print, standard button. Sits in .l-form-col (760px wide). */
.kit-form { display: grid; grid-template-columns: 1fr; gap: 20px 39px; }
@media (max-width: 799px) { .kit-form > .form__field:nth-child(2) { margin-top: -8px; } }   /* live: first and last name 12px apart on phones */
@media (min-width: 800px) { .kit-form { grid-template-columns: 1fr 1fr; row-gap: 27px; } }
.kit-form[hidden] { display: none; }
.kit-form__wide { grid-column: 1 / -1; }
.kit-form__small { font-size: 14px; line-height: 1.4; }
.kit-form__submit { justify-self: start; }   /* standard .btn size, same as the jump-link buttons */
.kit-form__thanks { text-align: center; }
.kit-form__thanks:focus { outline: none; }

/* ---------- Contact form (Contact page, Netlify Forms) ----------
 Matches the live HubSpot form: Name and Email side by side, a full-width message box,
 a small black button. Measured on live at 1749px wide: 70px below the heading, 40px between
 the columns, 28px between rows, 112px message box, 44px button. */
.contact-form {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 28px 40px;
 margin-top: clamp(32px, 4vw, 70px);
}
.contact-form[hidden] { display: none; }
.contact-form__wide { grid-column: 1 / -1; }
.form__label--required::after { content: "*"; } /* drawn by CSS so site.js error messages don't include it */
.form__input--area { height: 112px; padding: 10px 12.5px; line-height: 1.4; resize: none; }
.form__honeypot { display: none; }
.contact-form__submit { justify-self: start; }   /* standard .btn size (live used a smaller 44px button; changed 11 Nov 2026) */
.contact-form__thanks { margin-top: clamp(32px, 4vw, 70px); font-size: 20px; line-height: 1.4; }
.contact-form__thanks:focus { outline: none; }
@media (max-width: 600px) { .contact-form { grid-template-columns: 1fr; } }

/* ==========================================================================
   Journal article (site/journal/<slug>/ and site/conversation/<slug>/)
   Sizes measured from the live article pages at 390px and 1327px wide.
   Text column = 65.7% of the container, centred; wide = 82.9%; full = 100%.
   ========================================================================== */
:root {
  /* Same 600 → 1500px rule as the rest of the site */
  --a-title: clamp(40px, calc(40px + 34 * (100vw - 600px) / 900), 74px);       /* 40 → 74px */
  --a-title-big: clamp(40px, calc(40px + 66 * (100vw - 600px) / 900), 106px);  /* 40 → 106px */
  --a-lead: var(--t-lead);     /* 18 → 28px */
  --a-body: var(--t-body);     /* 16 → 22px */
  --a-h2: clamp(36px, calc(36px + 24 * (100vw - 600px) / 900), 60px);          /* 36 → 60px */
  --a-h3: clamp(28px, calc(28px + 16 * (100vw - 600px) / 900), 44px);          /* 28 → 44px */
  --a-h4: clamp(20px, calc(20px + 8 * (100vw - 600px) / 900), 28px);          /* 20 → 28px */
  --a-quote: clamp(30px, calc(30px + 34 * (100vw - 600px) / 900), 64px);       /* 30 → 64px (large quotes) */
  --a-gap: clamp(48px, 34.7px + 3.415vw, 88px);               /* space between blocks */
}

.article { font-size: var(--a-body); line-height: 1.4; padding-bottom: calc(var(--a-gap) * 1.5); }
.article:has(> .a-body:last-child:empty) { padding-bottom: 0; }

/* Block widths */
.a-block { margin-inline: auto; }
.a-block + .a-block, .a-hero + .a-block { margin-top: var(--a-gap); }
/* Live breakpoints: full width below 800px; from 800px the text column is 8 of 12 columns.
   The hero (title and lead) is 10 of 12 columns from 800px, narrowing to the text column at 960px. */
@media (min-width: 800px) {
  .a-block--text { width: calc(var(--container) * 0.6573); }
  .a-hero { width: calc(var(--container) * 0.829); }
  .a-block--wide { width: calc(var(--container) * 0.829); }
}
@media (min-width: 960px) {
  .a-hero { width: calc(var(--container) * 0.6573); }
}
.a-block--full { width: 100%; }

/* Hero: date, title, then either a lead paragraph (text column) or a byline (full width) */
/* Space above the title, measured from the live site (gap below the logo: 93px at 390 wide → 102px at 1938) */
.a-hero { --a-hero-pt: clamp(93px, 89.8px + .81vw, 102px); margin-inline: auto; padding-top: var(--a-hero-pt); }
/* Posts whose live template keeps an empty label line above the title, pushing it down ~30px */
.a-hero--offset { padding-top: calc(var(--a-hero-pt) + clamp(28px, 27px + .2vw, 31px)); }
/* Full-width titles keep their lead paragraph to the live measure */
.a-hero--wide .a-hero__lead { max-width: calc(var(--container) * 0.728); }
.a-hero--wide { width: 100%; }
.a-hero + .a-block { margin-top: clamp(72px, 66px + 4.8vw, 136px); }
.a-hero__date, .a-hero__by { font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.a-hero__date { font-size: var(--t-small); margin-bottom: 10px; }
.a-hero__by { font-size: var(--t-label); line-height: 1.2; margin-top: 12px; }
.a-hero__title { font-family: var(--f-serif); font-weight: 600; font-size: var(--a-title); line-height: 1.1; }   /* "pretty" wrap, not balanced – as on live */
.a-hero__title--big { font-size: var(--a-title-big); }
.a-hero__title--sans { font-family: var(--f-sans); line-height: 1; letter-spacing: -0.025em; }   /* set per post on the live site */
.a-hero__lead { font-family: var(--f-serif); font-weight: 500; font-size: var(--a-lead); line-height: 1.4; margin-top: 12px; }

/* Label above the date (topic name, or "Collaborative Conversations") */
.a-hero__label { font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: var(--t-label); line-height: 1.2; margin-bottom: 30px; }

/* Dark hero: black band holding the header and hero, white text (topic articles and Conversations) */
.a-top { position: relative; isolation: isolate; background: var(--c-ink); color: var(--c-inverse); padding-bottom: 50px; }
.a-top--image .a-hero { padding-top: clamp(40px, 7.3vw, 84px); }
.a-top--image { display: flex; flex-direction: column; min-height: 75vh; min-height: 75svh; }
.a-top--image > .wrap { margin-top: auto; }
.a-top__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.a-top + .article { padding-top: clamp(64px, 50px + 3.4vw, 88px); }

/* Text */
.a-text > * + *, .a-text + .a-text { margin-top: 1em; }
.a-text--lg { font-family: var(--f-serif); font-weight: 500; font-size: var(--a-lead); }
.a-text--small { font-size: .85em; }
.a-text h2 { font-size: var(--a-h2); font-weight: 400; line-height: 1; letter-spacing: -0.025em; color: var(--c-heading); }
.a-text h3 { font-size: var(--a-h3); font-weight: 500; line-height: 1; color: var(--c-heading); }
.a-text h4, .a-text h5, .a-text h6 { font-size: var(--a-h4); font-weight: 600; line-height: 1.1; color: var(--c-heading); }
.a-text * + h2, .a-text * + h3 { margin-top: 1.5em; }
.a-text * + h2 { margin-top: .9em; }
.a-text ul, .a-text ol { padding-left: 40px; }
.a-text ul { list-style: none; }
.a-text ul > li { position: relative; }
.a-text ul > li::before { content: "+"; position: absolute; left: -1.15em; font-weight: 600; }
.a-text ol { list-style: decimal; }
.a-text li + li { margin-top: .5em; }
.a-text a { text-decoration: underline 2px var(--c-accent); text-underline-offset: 3.5px; transition: text-decoration-color var(--dur) var(--ease); }
.a-text a:hover, .a-text a:focus-visible { text-decoration-color: currentColor; }
.a-text em { font-style: italic; }

/* Black panel (e.g. "What's next?" boxes) */
.a-block--panel { background: var(--c-ink); color: var(--c-inverse); padding: clamp(24px, 3vw, 48px); }
.a-block--panel h2, .a-block--panel h3, .a-block--panel h4 { color: inherit; }
.a-block--panel a:hover, .a-block--panel a:focus-visible { text-decoration-color: var(--c-inverse); }

/* Images: landscape fill their column; portrait sit at their set width, centred */
.a-figure img { width: 100%; }
.a-figure figcaption { font-size: var(--t-small); margin-top: 10px; }

/* Video (HubSpot-hosted videos are placeholders until they have a new home) */
.a-video__placeholder { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--c-ink); color: var(--c-inverse); font-size: var(--t-small); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.a-video iframe, .a-video video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* Quote with a hanging opening mark */
.a-quote blockquote { margin: 0; font-family: var(--f-serif); font-size: var(--a-quote); line-height: 1.4; }
.a-quote blockquote { font-weight: 500; }
.a-quote--small blockquote { font-size: var(--a-lead); }
.a-quote--light blockquote { font-weight: 400; }   /* the live site's "lighter" large quotes */
.a-quote blockquote p { position: relative; text-wrap: balance; }   /* live balances quote lines */
.a-quote blockquote p:first-child::before { content: "\201C"; position: absolute; right: 100%; }
.a-quote blockquote p:last-child::after { content: "\201D"; }
.a-quote figcaption { font-weight: 600; margin-top: clamp(24px, calc(24px + 27 * (100vw - 600px) / 900), 51px); }
.a-quote--small figcaption { margin-top: clamp(8px, calc(8px + 2 * (100vw - 600px) / 900), 10px); }   /* live: attribution sits close under standard quotes */

/* Two small text columns (credits, author notes) */
.a-columns { display: grid; gap: var(--space-s); }
@media (min-width: 600px) { .a-columns { grid-template-columns: 1fr 1fr; gap: var(--space-m); } }

/* Related articles: reuses the Services article carousel */
/* Privacy + Cookies page (site/privacy-and-cookies/): article blocks, spaced as the live page's text module
   (measured at 390 and 1440px). Title sits 8–11px lower (live keeps an empty label line above it). */
.article--privacy { padding-bottom: var(--l-s); }
.article--privacy .a-hero { padding-top: calc(var(--a-hero-pt) + clamp(8px, 6.886px + .2857vw, 11px)); }
.article--privacy .a-text * + h2, .article--privacy .a-text * + h3 { margin-top: 1em; }
.article--privacy .a-text h2:first-of-type { margin-top: calc(var(--a-body) * 1.5); }
.article--privacy .a-text h3 + * { margin-top: calc(var(--a-body) * 1.5); }

.a-related { margin-top: calc(var(--a-gap) * 1.5); }
.a-related .section-title { font-weight: 400; }
.a-body:empty { display: none; }
.article:has(> .a-related:last-child) { padding-bottom: 0; }

/* ==========================================================================
   Journal page (journal/index.html) – measured from the live page
   Featured card in a sticky left column; filterable two-column grid on the right.
   Projects span both columns; "dense" packing fills gaps the way the live site's
   masonry script did.
   ========================================================================== */
/* Title sits at the same height as the other section pages (top space comes from .hero); bottom space matches live */
.hero--journal { padding-bottom: clamp(73.2px, 56.6px + 2.767vw, 98.1px); }
.journal {
  --j-gap: clamp(16px, 3.5vw, 40px);
  --j-pad: clamp(24px, 18px + 1vw, 33px);
  --j-card-h: clamp(300px, 136px + 40.9vw, 750px);
  display: grid; gap: var(--j-gap); padding-bottom: clamp(48px, 6.3vw, 72px);
}
@media (min-width: 800px) {
  .journal { --j-card-h: clamp(250px, 141px + 27.27vw, 550px); grid-template-columns: calc(33.333% - var(--j-gap) / 2) 1fr; align-items: start; }
  .journal__featured { align-self: stretch; }   /* the column runs the full height of the grid, so the card has room to stay put */
  .journal__sticky { position: sticky; top: var(--j-gap); }
}
.j-label { display: flex; align-items: center; min-height: 28px; font-size: var(--t-small); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; line-height: 1; color: var(--c-heading); }
.j-list { margin-top: 31px; }

/* Filters */
.j-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; }
.j-filters__list { display: flex; flex-wrap: wrap; gap: 10px 15px; }
.j-filter {
  height: 28px; padding: 0 20px; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: var(--t-small); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; line-height: 1;
  background: var(--c-inverse); color: var(--c-text); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.j-filter:hover, .j-filter:focus-visible, .j-filter[aria-pressed="true"] { background: var(--c-ink); color: var(--c-inverse); }

/* Grid */
.j-grid { position: relative; display: grid; gap: var(--j-gap); margin-top: 31px; grid-auto-flow: dense; }   /* relative: cards leaving the grid animate out in place */
@media (min-width: 800px) {
  .j-grid { grid-template-columns: 1fr 1fr; }
  .j-grid > .card--wide { grid-column: span 2; }
}
.j-grid > [hidden] { display: none; }

/* Cards: the shared card, sized and spaced as on the live Journal page */
.card--grid { flex: none; max-width: none; scroll-snap-align: none; }
.card--grid a { aspect-ratio: auto; height: var(--j-card-h); }
.card--grid a::after { background: linear-gradient(to top, rgba(0,0,0,.4), transparent); }
.card--grid .card__label { top: var(--j-pad); left: var(--j-pad); }
.card--grid .card__title { left: var(--j-pad); right: var(--j-pad); bottom: calc(var(--j-pad) + 41px); font-size: clamp(1.75rem, 1.5rem + .6667vw, 2.125rem); line-height: 1; text-wrap: balance; }
.card--grid .card__client { left: var(--j-pad); bottom: calc(var(--j-pad) + 4px); }

/* Load more */
.j-more {
  display: block; margin-top: 31px; height: 44px; padding: 0 20px; border: 0; border-radius: 5px; cursor: pointer;
  font: inherit; font-size: var(--t-small); font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  background: var(--c-ink); color: var(--c-inverse); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.j-more:hover, .j-more:focus-visible { background: var(--c-accent); color: var(--c-text); }
.j-more[hidden] { display: none; }

/* ==========================================================================
   Project case studies (site/project/<slug>/) – measured from the live pages at 1938px wide
   Built by not-deployed/tools/build-projects.py. Reuses the Journal article blocks
   (.a-block widths, .a-text, .a-quote, .a-video, related-posts carousel); only what differs is here.
   ========================================================================== */
:root {
  --p-gap: clamp(16px, 2.6667vw, 40px);                 /* live grid gap */
  --p-margin: clamp(24px, 8px + 2.6667vw, 48px);         /* live page margin */
  --p-col: calc((100vw - 2 * var(--p-margin) - 11 * var(--p-gap)) / 12);   /* one live grid column (live measures it from the screen width) */
}

/* Project pages are white on the live site (the rest of the site is paper) */
.is-project, .is-white { background: var(--c-inverse); }   /* .is-white: other white pages (Privacy + Cookies, as on live) */

/* Hero: client, title and lead over a full-bleed image or looping video, with the shared header on top */
.p-top {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  gap: clamp(16px, 12px + .6667vw, 22px); padding-bottom: 50px; color: var(--c-text);
}
.p-top--light { color: var(--c-inverse); }
.p-top--fill { min-height: 100vh; min-height: 100dvh; }
.p-top--75 { min-height: 75vh; min-height: 75dvh; }
.p-top__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.p-top:has(.site-header.is-open) { z-index: 100; }
.p-top .site-header__inner { padding-bottom: 56px; }   /* live hero header block: equal space above and below the logo */
@media (min-width: 800px) { .p-top .site-header__inner { padding-bottom: clamp(58px, 55px + .35vw, 60px); } }
.p-hero { margin-top: auto; }                            /* most heroes: text sits at the bottom */
.p-top--centred .p-hero { margin-block: auto; }          /* some live heroes centre it instead */
.p-hero__content { display: flex; flex-direction: column; gap: clamp(8px, 6px + .3333vw, 11px); }
.p-hero__content--pad { padding-block: 20px; }
@media (min-width: 800px) { .p-hero__content--inset { width: calc(var(--container) * 0.829); margin-inline: auto; } }
@media (min-width: 960px) { .p-hero__content--inset { width: calc(var(--container) * 0.6573); } }
.p-hero__label { font-size: var(--t-label); line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 20px; }
.p-hero__title { font-size: var(--a-title-big); font-weight: 600; line-height: 1; letter-spacing: -0.025em; text-wrap: balance; padding-bottom: clamp(12px, 8.667px + .5556vw, 17px); }
.p-hero__lead { font-family: var(--f-serif); font-weight: 500; font-size: var(--t-lead); line-height: 1.4; max-width: 65ch; }
.p-top + .project { padding-top: var(--a-gap); }
.project { padding-bottom: var(--a-gap); }   /* live: one normal gap before the footer, not the articles' 1.5× */

/* Figures carry the browser's default margins: remove them so the live spacing holds when a page opens with a quote or image */
.project figure.a-block { margin-block: 0; }
.p-cols figure { margin: 0; }
.project .a-body > .a-block + .a-block { margin-top: var(--a-gap); }

/* Extra block widths used by the project template */
@media (min-width: 800px) {
  .p-w--inset, .p-w--flush { width: calc(var(--container) * 0.829); }
}
@media (min-width: 960px) {
  .p-w--inset, .p-w--flush { width: calc(var(--container) * 0.6573); }
}
@media (min-width: 1180px) {
  .p-w--flush { width: calc(var(--container) * 0.829); }
}
@media (max-width: 799px) {   /* five of the six phone columns, left-aligned */
  .p-w--flush { width: calc((var(--container) - 5 * var(--p-gap)) * 5 / 6 + 4 * var(--p-gap)); margin-inline: 0 auto; }
}

/* Text: sub-headings at body size, even spacing between everything (as on the live case studies) */
.project .a-text :where(h4, h5, h6) { margin-block: 0; }   /* no browser default margins: spacing comes from the 1em rhythm */
.project .a-text h6 { font-size: inherit; line-height: 1.4; }
.project .a-text h5 { font-size: var(--t-label); line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--c-heading); }
/* A quote typed into a text block: serif, with hanging quotation marks (live theme defaults) */
.project .a-text blockquote { margin: 0; }
.project .a-text blockquote > p { font-family: var(--f-serif); font-weight: 500; margin-inline-start: -.375em; padding-inline-start: .375em; }
.project .a-text blockquote > p::before { content: "\201C"; display: inline-block; width: .375em; margin-left: -.375em; }
.project .a-text blockquote > p:last-of-type::after { content: "\201D"; display: inline-block; width: .375em; }
/* Live spacing rule: 1em between the direct children of a text block, and after any heading;
   content the editor wrapped in an extra <div> gets none, as on the live page */
.project .a-text * + h2, .project .a-text * + h3 { margin-top: 0; }
.project .a-text > * + *, .project .a-text > * + h2, .project .a-text > * + h3,
.project .a-text :is(h2, h3, h4, h5, h6) + p { margin-top: 1em; }
.project .a-text { display: flow-root; }   /* each live block is a grid item: margins stay inside it, floats are contained */
.p-heading h2 { color: var(--c-heading); }
/* Lists: a flex column beside any floated image, with the live site's larger "+" marker */
.project .a-text ul { display: flex; flex-direction: column; gap: .5em; list-style: "+  "; }
.project .a-text ul > li::before { content: none; }
.project .a-text ul > li::marker { font-size: 1.2em; }
.project .a-text li + li { margin-top: 0; }
.p-spacer { display: flow-root; }   /* empty live module: keeps its gap instead of merging into the next one */
.p-rule { height: 0; border: 0; border-top: 1px solid var(--c-text); margin-bottom: 0; }

/* Images sit at their own size, capped by the column – never stretched */
.p-figure img, .p-figure video, .p-cols video { max-width: 100%; height: auto; }
/* Live images are inline, so even a hairline divider takes a text line's height, centred in it */
.p-figure:not(.p-figure--pair) { display: flex; flex-direction: column; justify-content: center; min-height: 1.4em; }
.p-figure--center > img, .p-figure--center > video { margin-inline: auto; }
.p-figure--right > img, .p-figure--right > video { margin-left: auto; }
.p-figure figcaption, .project .a-video figcaption {
  font-size: clamp(16px, calc(16px + 2 * (100vw - 600px) / 900), 18px); line-height: 1.4; text-wrap: balance; margin-top: var(--p-gap);
}
.project .a-video figcaption { margin-top: 0; }   /* live: video captions sit directly under the player */
.p-figure--pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--p-gap); align-items: start; }
.p-figure--pair figcaption { grid-column: 1 / -1; margin-top: 0; }
.a-video[style*="--ratio"] .a-video__placeholder, .a-video[style*="--ratio"] iframe { aspect-ratio: var(--ratio); }
.a-video[style*="--max"] .a-video__placeholder, .a-video[style*="--max"] iframe { max-width: var(--max); margin-inline: auto; }   /* smaller videos: own width, centred */

/* Two columns: text + text, image + text or image + image */
.p-cols { display: flex; flex-direction: column; gap: var(--p-gap); }
.p-cols > .a-text + .a-text { margin-top: 0; }   /* side-by-side columns: the gap does the spacing */
@media (max-width: 799px) {   /* phones, as on the live site: each half is given half the block's height, */
  .p-cols > * { flex: 0 0 calc(50% - var(--p-gap) / 2); }
  .p-cols__item--last.p-cols__item--media { padding-top: clamp(48px, 21.333px + 4.4444vw, 88px); }   /* and an image placed right on desktop gets space above it */
}
@media (min-width: 800px) {
  .p-cols { flex-direction: row; align-items: flex-start; }
  .p-cols > * { flex: 0 0 calc(50% - var(--p-gap) / 2); min-width: 0; }
  .p-cols__item--last { order: 2; }
  /* Text beside an image keeps one grid column clear on its far side */
  .p-cols--has-media:not(.p-cols--flush) > .a-text { padding-inline-end: calc(var(--p-gap) + var(--p-col)); }
}

/* "More projects": the live card scroller – card text placed as on the Journal page cards; portrait cards on phones */
.project .a-related { --j-pad: clamp(24px, 18px + 1vw, 33px); margin-top: var(--a-gap); }   /* live: the normal gap, not the articles' 1.5× */
.project .a-related .carousel { margin-top: 50px; }
.project .a-related .card__label { top: var(--j-pad); left: var(--j-pad); }
.project .a-related .card__title { left: var(--j-pad); right: var(--j-pad); bottom: calc(var(--j-pad) + 41px); font-size: clamp(1.75rem, 1.5rem + .6667vw, 2.125rem); }
.project .a-related .card__client { left: var(--j-pad); bottom: calc(var(--j-pad) + 4px); }
.project .a-related .carousel__btn { height: 32px; }
.project .a-related .carousel__controls { margin-top: 22px; }
@media (max-width: 799px) {
  .project .a-related { --p-card-h: clamp(400px, 363.6px + 9.0909vw, 500px); }
  .project .a-related .card { flex: 0 0 calc(var(--p-card-h) * 17 / 22); max-width: none; }
  .project .a-related .card a { aspect-ratio: auto; height: var(--p-card-h); }
}

/* ==========================================================================
   Landing pages (site/immersive/, site/download/) – measured from the live pages at 390, 1327 and 1938px wide
   Header is the logo only (no menu), in the same place as on the other pages. Forms are placeholders until the Kit forms are added.
   ========================================================================== */
:root {
  --l-gap: clamp(16px, 2.6667vw, 40px);                                    /* live grid gap */
  --l-col: calc((var(--container) - 11 * var(--l-gap)) / 12);              /* one live grid column */
  --l-s: clamp(48px, 21.333px + 4.4444vw, 88px);                           /* space between blocks and inside coloured bands */
  --l-h4: clamp(21px, calc(21px + 7 * (100vw - 600px) / 900), 28px);       /* 21 → 28px */
}
/* Logo sits in the same place as on every other page (live landing pages had it at 50px from the top at all widths) */

/* Blocks are spaced by --l-s; coloured bands sit edge to edge and carry the space inside */
.l-page > * + * { margin-top: var(--l-s); }
.l-page > .l-bg + .l-bg, .l-band + .l-bg { margin-top: 0; }
.l-page > .l-band { margin-top: calc(var(--l-s) - 14px); }   /* live: this band is pulled up 14px */
.l-page > .l-bg + .l-bg--overlap { margin-top: -21px; }              /* live: the testimonials band overlaps the band above by 21px */
.l-bg { padding-block: var(--l-s); }
.l-page > :last-child:not(.l-bg) { padding-bottom: var(--l-s); }   /* a page that ends on plain paper keeps the same space above the footer as a band */
.l-bg--mango, .l-band { background: var(--c-accent); }
.l-bg--white { background: var(--c-inverse); }
.l-bg--paper { background: var(--c-paper); }
.l-bg--grey { background: var(--c-grey); }

/* Hero: label and title, centred, under the logo */
.l-hero { padding-top: calc(clamp(20px, 4px + 2.6667vw, 44px) + clamp(16px, 12px + .6667vw, 22px) + 20px); text-align: center;
  display: flex; flex-direction: column; gap: clamp(8px, 6px + .3333vw, 11px); }
.l-eyebrow { font-size: var(--t-label); font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: .05em; }
.l-hero__title { font-size: var(--a-title-big); font-weight: 600; line-height: 1; letter-spacing: -0.025em; text-wrap: balance;
  padding-bottom: clamp(12px, 8.667px + .5556vw, 17px); }
.l-page > .l-hero + .l-sec--first { margin-top: clamp(28px, calc(28px + 3 * (100vw - 600px) / 900), 31px); }

/* Countdown to the next Immersive */
.l-page > .l-hero + .l-countdown { margin-top: clamp(16px, calc(16px + 43 * (100vw - 600px) / 900), 59px); }
.l-countdown { text-align: center; color: var(--c-heading); }
.l-countdown__label, .l-countdown__unit { font-size: var(--t-label); font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .05em; }
.l-countdown__clock { display: flex; justify-content: center; align-items: flex-start; gap: 1rem; margin-top: var(--t-body); }
.l-countdown__col { display: flex; flex-direction: column; align-items: center; }
.l-countdown__value { font-family: var(--f-serif); font-size: var(--a-title); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.l-countdown__colon { font-family: var(--f-serif); font-size: 2rem; font-weight: 600; line-height: 1.4; margin-top: .5rem; }
.l-countdown[hidden] { display: none; }

.l-cta { text-align: center; }

/* Column widths (12-column grid from 800px) */
@media (min-width: 800px) {
  .l-narrow { margin-inline: calc(var(--l-col) + var(--l-gap)); }                 /* columns 2–11 */
  .l-mid { margin-inline: calc(var(--l-col) + var(--l-gap)); }
}
@media (min-width: 960px) {
  .l-mid { margin-inline: calc(2 * (var(--l-col) + var(--l-gap))); }              /* columns 3–10 */
}
.l-centre { text-align: center; }
.l-intro { margin-bottom: calc(50px + var(--l-gap)); text-align: center; }
@media (min-width: 800px) { .l-intro { margin-inline: calc(var(--l-col) + var(--l-gap)); } }
@media (min-width: 960px) { .l-intro { margin-inline: calc(2 * (var(--l-col) + var(--l-gap))); } }

/* Two columns – the live "pair": stacked on phones, where (as on live) each half is given half the block's height */
.l-pair { display: flex; flex-direction: column; gap: var(--l-gap); }
.l-pair figure { margin: 0; }
.l-pair img { width: 100%; }
@media (max-width: 799px) {
  :has(> .l-pair) { display: grid; grid-template-columns: minmax(0, 1fr); }   /* gives the pair a definite height, as the live grid does */
  .l-pair > * { flex: 0 0 calc(50% - var(--l-gap) / 2); }
  .l-pair > .l-text { max-height: fit-content; }   /* text halves never grow past their content (live: max-h--content) */
  .l-pair__pad-phone { padding-top: var(--l-s); }        /* an image placed right on desktop gets space above it on phones */
  .l-pair > .l-pair__fit { max-height: fit-content; }    /* a picture half beside long text keeps its own height, with no gap below (added 19 Nov 2026) */
  .l-trio:has(.l-trio__caption) { padding-bottom: var(--l-s); }   /* room for the front photo's parallax drift, so its caption never touches the text below */
}
@media (min-width: 800px) {
  .l-pair { flex-direction: row; }
  .l-pair > * { flex: 0 0 calc(50% - var(--l-gap) / 2); min-width: 0; }
  .l-pair__second { order: 2; }
  .l-text--beside { padding-inline-end: calc(var(--l-gap) + var(--p-col)); }      /* text beside an image keeps one column clear (live measures it from the screen width) */
}

/* Three photos: two overlapping on the left half (six-column grid), one on the right */
.l-trio { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: var(--l-gap); align-items: start; }
.l-trio__back { grid-row: 1; grid-column: 1 / 4; }
.l-trio__front { grid-row: 1; grid-column: 3 / 7; position: relative; z-index: 2; margin-top: var(--l-s); }
figure.l-trio__back, figure.l-trio__front { margin: 0; }
figure.l-trio__front { margin-top: var(--l-s); }
/* Smaller overlap (Immersive "Who this is for", 19 Nov 2026): the back photo has people right to its edge, so the front one
   covers only its last ~9% instead of a quarter. Same sizes as the standard trio (back 45%, front 60% of the width). */
.l-trio--slim { grid-template-columns: 41fr 4fr 55fr; column-gap: 0; }
.l-trio--slim .l-trio__back { grid-column: 1 / 3; }
.l-trio--slim .l-trio__front { grid-column: 2 / 4; }
.l-trio__caption { font-size: calc(var(--t-body) * .9); font-weight: 600; line-height: 1.4; margin-top: .5em; }   /* "Cohort 1 – May 2026": 10% smaller than body text */

/* Immersive "The tools" (added 19 Nov 2026, made a two-by-two grid the same day): four captioned pictures, all the same size,
   two by two at every width. */
.l-tools__text { margin-bottom: calc(50px + var(--l-gap)); }
.l-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--l-gap); align-items: start; }
.l-tools__item { margin: 0; }
.l-tools__item img, .l-tools__item .l-placeholder { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.l-tools__item figcaption { font-size: var(--t-body); font-weight: 600; line-height: 1.4; margin-top: .5em; }

/* Immersive "The experience": video centred, text underneath */
.l-video { margin-block: 0; }
@media (max-width: 799px) { .l-video { margin-inline: 0; } }   /* phones: drop the browser's 40px figure indent so the video lines up with the text */
.l-video__text { margin-top: var(--l-gap); }

/* Placeholder for a picture or video still to come – shows clearly on the page until it is replaced */
.l-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 16 / 9;
  border: 2px dashed var(--c-text); border-radius: 5px; padding: 16px; font-size: var(--t-small); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; line-height: 1.4; }

/* Text */
.l-text { font-size: var(--t-body); line-height: 1.4; }
.l-text > * + *, .l-text > * + .l-list { margin-top: 1em; }
.l-h2, .l-h3, .l-h4 { margin: 0; }
.l-text > .l-h3 + *, .l-text > .l-h4 + * { margin-top: 1em; }
.l-h2 { font-size: var(--a-h2); font-weight: 400; line-height: 1; letter-spacing: -0.025em; color: var(--c-heading); }
.l-h3 { font-size: var(--a-h3); font-weight: 500; line-height: 1; color: var(--c-heading); }
.l-h4 { font-size: var(--l-h4); font-weight: 600; line-height: 1.1; color: var(--c-heading); }
.l-h2 strong, .l-h3 strong { font-weight: 600; }
.l-lead { font-family: var(--f-serif); font-size: var(--t-lead); font-weight: 500; line-height: 1.4; }
.l-text .l-lead + * { margin-top: 1em; }
.l-list { display: flex; flex-direction: column; gap: .5em; margin: 0; padding-left: 40px; }
.l-list li::marker { content: "+  "; font-size: 1.2em; }
.l-arrow { font-family: inherit; }

/* Client logos */
.l-logos { display: flex; flex-wrap: wrap; justify-content: center; }
.l-logos img { width: 500px; max-width: 100%; height: auto; }

/* Testimonials: round portrait floated left, quote in serif with hanging quote marks */
.l-quote > img { float: left; width: 130px; height: 130px; margin: 0 15px 15px 0; }
.l-quote blockquote { margin: 0; quotes: "“" "”"; display: flex; flex-direction: column; }   /* sits beside the floated portrait */
.l-quote blockquote > p { font-family: var(--f-serif); font-weight: 400; text-wrap: balance; margin-inline-start: -.375em; padding-inline-start: .375em; }
.l-quote blockquote > p::before { content: open-quote; display: inline-block; width: .375em; margin-left: -.375em; }
.l-quote blockquote > p::after { content: close-quote; }
.l-quote footer { font-weight: 600; margin-top: clamp(8px, 6px + .3333vw, 11px); }

/* Form placeholder (until the Kit forms are added) */
.l-form-intro { margin-bottom: calc(30px + var(--l-gap)); }
.l-form-intro > * + * { margin-top: 1em; }
.l-form-col { max-width: 760px; margin-inline: auto; }   /* form pages: widened from live's 530px on 11 Nov 2026 */
.l-form-placeholder { border: 2px dashed var(--c-text); border-radius: 5px; padding: 24px; font-size: var(--t-body); line-height: 1.4; }
.l-form-placeholder__title { font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: var(--t-small); margin-bottom: 8px; }

/* Change Journey Map page (site/change-journey-map/, draft – rebuilt from the Kit landing page).
   Landing-page blocks throughout; only these few pieces are its own. */
.cjm-sub { margin-top: var(--space-s); }
.l-hero .cjm-cta { margin-top: var(--space-m); }
.cjm-hero-img { margin: 0 auto; }
.cjm-hero-img img { width: 100%; height: auto; }
/* "Who can use": three columns from 800px, picture above heading and text */
.cjm-who { display: grid; grid-template-columns: 1fr; gap: var(--l-s) var(--l-gap); }
.cjm-who img { width: min(100%, 305px); height: auto; margin-bottom: var(--space-s); }
@media (min-width: 800px) { .cjm-who { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .cjm-story { align-self: center; } }
/* Gilmar's photo at three-quarters of its column's width, sitting next to the text */
.cjm-portrait img { width: 75%; margin-inline: auto; }
@media (min-width: 800px) { .cjm-portrait img { margin-inline: auto 0; } }

/* 404 page (site/404.html) – matched to the live 404 at 390, 900, 1100, 1440 and 1742px wide.
   Title held to columns 2–11 from 800px and 3–10 from 960px. Image + text pair: columns 1–10 (left) on phones,
   2–11 from 800px, 3–10 from 960px, back to 2–11 from 1180px. Text is serif at lead size (live "para--lg"). */
.hero--404 { padding-bottom: calc(2 * var(--t-lead) + var(--l-gap) + 23px); }
.l-404 { padding-bottom: var(--l-s); }
.l-404 video { display: block; width: 100%; height: auto; }
@media (max-width: 799px) {
  .l-404 .l-pair { max-width: calc(10 * var(--l-col) + 9 * var(--l-gap)); }
}
@media (min-width: 800px) {
  .hero--404 .hero__title { max-width: calc(10 * var(--l-col) + 9 * var(--l-gap)); }
}
@media (min-width: 960px) {
  .hero--404 .hero__title { max-width: calc(8 * var(--l-col) + 7 * var(--l-gap)); }
}
@media (min-width: 960px) and (max-width: 1179px) {
  .l-404 .l-narrow { margin-inline: calc(2 * (var(--l-col) + var(--l-gap))); }
}

/* ==========================================================================
   Credentials (site/credentials/<id>/) – built by not-deployed/tools/build-credentials.py
   Measured from the live credential page at 390 and 1318px wide. Uses the landing-page hero, lead and spacing.
   ========================================================================== */
.l-hero--left { text-align: left; }

/* Description and details side by side from 800px, stacked on phones */
.cred { display: flex; flex-direction: column; gap: var(--l-gap); }
@media (min-width: 800px) {
  .cred { flex-direction: row; margin-inline: calc(2 * (var(--l-col) + var(--l-gap))); }   /* columns 3–10 from 800px (the title above widens to 2–11 between 800 and 959px) */
  .cred > * { flex: 0 0 calc(50% - var(--l-gap) / 2); min-width: 0; }
}
/* Certificate (optional, per credential): above the centred eyebrow title, across columns 3–10 from 800px (full width
   on phones), lined up with the text below. White sheet lifted off the yellow page with the cookie banner's soft shadow. */
.cred__cert { display: block; width: 100%; height: auto; box-shadow: 0 2px 24px rgba(0, 0, 0, .12); }
/* The award title, under the certificate, midway between it and the text below. Each gap is half the usual space
   between the hero and the first section (M, the hero-to-section margin, + L, --l-s): 58px either side at 1440px,
   38px on phones. Above: the title's margin, less the hero's own gap between items. Below: the section's top padding
   is cut so that M + padding = (M + L) / 2. */
.cred-hero, .cred-hero + .l-sec--first { --cred-m: clamp(28px, calc(28px + 3 * (100vw - 600px) / 900), 31px); }
.cred__cert + .l-eyebrow { margin-top: calc((var(--cred-m) + var(--l-s)) / 2 - clamp(8px, 6px + .3333vw, 11px)); }
.cred-hero + .l-sec--first { padding-top: calc((var(--l-s) - var(--cred-m)) / 2); }
@media (min-width: 800px) {
  .cred__cert { width: calc(100% - 4 * (var(--l-col) + var(--l-gap))); margin-inline: auto; }
}

.cred__table { border-collapse: collapse; width: 98.1%; }
.cred__table th, .cred__table td { padding: 2px; text-align: left; vertical-align: top; }
.cred__table th { width: 41.9%; font-weight: 600; }

/* ==========================================================================
   Cookie banner (every page – added by site.js; reopened from the Privacy page's cookies section)
   White panel fixed to the bottom of the screen; Accept and Reject are the same size, as consent rules ask.
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--c-inverse); color: var(--c-text); box-shadow: 0 -2px 24px rgba(0, 0, 0, .12);
  padding-block: var(--space-s);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner:focus { outline: none; }
.cookie-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-s); }
.cookie-banner__text { flex: 1 1 32ch; max-width: 70ch; font-size: var(--t-body); line-height: 1.4; }
.cookie-banner__buttons { display: flex; gap: 12px; }
.cookie-banner__buttons .btn { min-width: 9em; }
@media (max-width: 599px) {
  .cookie-banner__buttons { width: 100%; }
  .cookie-banner__buttons .btn { flex: 1 1 0; min-width: 0; }
}
