/* Skapto Consulting — site styles
   Fonts: Archivo and Source Serif 4, SIL Open Font License (see /fonts/) */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fonts/archivo-latin-wdth-normal.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: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/source-serif-4-latin-opsz-normal.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: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/source-serif-4-latin-ext-opsz-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(/fonts/source-serif-4-latin-opsz-italic.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: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(/fonts/source-serif-4-latin-ext-opsz-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

/* ---------------------------------------------------------------- tokens */
:root {
  --paper: #ffffff;
  --stone: #f1f2f0;        /* cool light grey, section backgrounds */
  --rule: #d6d9d5;
  --ink: #1e2529;          /* slate: headings, footer */
  --text: #384146;
  --muted: #6b7378;
  --red: #ad0000;          /* Skapto red, from the logo */
  --red-dark: #850000;
  /* legend colours (References) */
  --precious: #b8892e;
  --base: #3e7a72;
  --diamonds: #5b7390;

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 68ch;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.7 var(--serif);
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--sans); font-stretch: 87.5%; font-weight: 620; color: var(--ink);
  line-height: 1.15; letter-spacing: -0.005em; margin: 0;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
strong { font-weight: 650; color: var(--ink); }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .3em; }
sub, sup { line-height: 0; }
blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.25rem; border-left: 2px solid var(--rule); color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--paper); padding: 8px 12px; font-family: var(--sans); }
.small { font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px 32px; flex-wrap: wrap; min-height: 84px; }
.logo img { width: 230px; height: auto; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 28px; font-family: var(--sans); font-size: 1rem; font-weight: 520; }
.menu a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--red); }
.menu a[aria-current] { color: var(--red); border-bottom-color: var(--red); }

/* ---------------------------------------------------------------- home: hero as a map sheet */
.hero { position: relative; color: #fff; background: var(--ink) var(--focus, center) / cover no-repeat; }
.hero::before { /* darken top and bottom for the logo and headline */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,25,28,.42) 0%, rgba(20,25,28,0) 34%, rgba(20,25,28,0) 45%, rgba(20,25,28,.62) 100%);
}
.hero .wrap { position: relative; min-height: min(78vh, 680px); display: grid; align-content: end; padding-top: 48px; padding-bottom: 48px; }
/* neatline with graticule ticks on all four sides, as on the edge of a map sheet */
.neatline {
  position: absolute; inset: 18px; pointer-events: none; border: 1px solid rgba(255,255,255,.55);
  --tick: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 1px, transparent 1px 80px);
  --tick-v: repeating-linear-gradient(180deg, rgba(255,255,255,.75) 0 1px, transparent 1px 80px);
  background:
    var(--tick) left top / 100% 7px no-repeat,
    var(--tick) left bottom / 100% 7px no-repeat,
    var(--tick-v) left top / 7px 100% no-repeat,
    var(--tick-v) right top / 7px 100% no-repeat;
}
.hero .wrap { grid-template-rows: auto 1fr auto; align-content: stretch; }
.hero-logo { width: clamp(220px, 32vw, 420px); height: auto; margin-top: 8px; filter: drop-shadow(0 1px 6px rgba(0,0,0,.25)); }
.hero h1 { grid-row: 3; color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-stretch: 80%; font-weight: 640; max-width: 13em; text-wrap: balance; }
.photo-credit { position: absolute; right: calc(var(--gutter) + 4px); top: 30px; font: .78rem var(--sans); color: rgba(255,255,255,.8); }

/* ---------------------------------------------------------------- home: sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--stone); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head a { font-family: var(--sans); font-weight: 520; }

.lead { font-size: clamp(1.2rem, 1.9vw, 1.42rem); line-height: 1.5; color: var(--ink); }

.service-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--ink); }
.service-list li { margin: 0; border-bottom: 1px solid var(--rule); }
.service-list a { display: block; padding: 18px 0 20px; text-decoration: none; color: var(--text); }
.service-list h3 { margin-bottom: .35rem; transition: color .15s; }
.service-list p { margin: 0; font-size: .98rem; line-height: 1.55; }
.service-list a:hover h3 { color: var(--red); }

.map-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.map-grid h2 { margin-bottom: 1rem; }
.map-grid img { mix-blend-mode: multiply; }

.news-rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.news-rows li { margin: 0; border-bottom: 1px solid var(--rule); }
.news-rows a { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; text-decoration: none; color: var(--text); }
.news-rows time { font-family: var(--sans); color: var(--muted); font-size: .92rem; padding-top: 3px; }
.news-rows h3 { transition: color .15s; }
.news-rows a:hover h3 { color: var(--red); }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.page-head .parent { display: inline-block; font-family: var(--sans); font-size: .95rem; margin-bottom: .9rem; }
.page-head .lead { margin: 1.1rem 0 0; max-width: 34em; color: var(--text); }
.page-head time { display: block; margin-top: 1rem; font-family: var(--sans); color: var(--muted); }

.prose { padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(64px, 8vw, 104px); }
.prose > *:not(figure, .news-list, .wide, .table-wrap, .ref-group, .clients, .photo-row, .contact-grid, .split, .person, .gallery, .wp-block-gallery) { max-width: var(--measure); }
.prose h2 { margin: 2.6em 0 .7em; }
.prose h3 { margin: 2em 0 .6em; }
.prose > h2:first-child, .prose > section:first-child > h2:first-child { margin-top: 0; }
.prose figure { margin: 2rem 0; }
.prose figure.wide img { width: 100%; }
figcaption, .wp-element-caption { font-family: var(--sans); font-size: .86rem; line-height: 1.45; color: var(--muted); margin-top: .6rem; }
.prose .scheme { max-width: 720px; }
.back { margin-top: 2.5rem; font-family: var(--sans); }

/* long pages: contents list beside the text */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.toc { padding-top: clamp(36px, 5vw, 56px); font-family: var(--sans); font-size: .93rem; line-height: 1.4; }
.toc nav { position: sticky; top: 24px; }
.toc h2 { font-size: .93rem; font-stretch: 100%; font-weight: 600; color: var(--muted); margin: 0 0 .8rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--red); border-left-color: var(--red); }

/* text with a figure beside it (services) */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px clamp(28px, 4vw, 48px); padding: 44px 0; border-top: 1px solid var(--rule); }
.split h2 { grid-column: 1 / -1; margin: 0 0 .4rem !important; }
.split .split-text > :last-child { margin-bottom: 0; }
.split figure { margin: 6px 0 0 !important; }
.prose section[id]:not(.split, .ref-group) { padding-top: 8px; }
.prose section[id]:not(.split, .ref-group) + section[id] { border-top: 1px solid var(--rule); margin-top: 2.4rem; padding-top: 2.4rem; }
.prose section[id]:not(.split, .ref-group) h2 { margin-top: 0; }

/* people (company) */
.person { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px clamp(28px, 4vw, 56px); padding: 32px 0; border-top: 1px solid var(--rule); }
.person-photo { grid-row: span 2; width: 120px; height: 150px; object-fit: cover; border-radius: 2px; }
.person.has-photo { grid-template-columns: 120px 220px minmax(0, 1fr); }
.person.has-photo .person-photo { grid-row: auto; }
.person-head { font-family: var(--sans); line-height: 1.4; }
.person-head h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.quals { font-weight: 400; color: var(--muted); font-size: .95rem; }
.role { color: var(--ink); margin: 0 0 .6rem; }
.person-links { display: flex; flex-direction: column; gap: 2px; font-size: .95rem; margin: 0; }
.person-bio > :last-child { margin-bottom: 0; }
.prose h2 + .person, .prose p + .person { margin-top: 1.2rem; }

/* references */
.ref-group { margin: 2.2rem 0 0; }
.ref-group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 .8rem; }
.swatch { width: 14px; height: 14px; background: var(--c); border: 1px solid rgba(0,0,0,.25); flex: none; }
.precious { --c: var(--precious); } .base { --c: var(--base); } .diamonds { --c: var(--diamonds); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; line-height: 1.45; }
thead th { text-align: left; font-weight: 600; color: var(--ink); padding: 10px 14px 10px 0; border-bottom: 2px solid var(--c, var(--ink)); }
td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td:first-child { color: var(--ink); font-weight: 520; white-space: nowrap; width: 9em; }
td:nth-child(2) { white-space: nowrap; width: 12em; color: var(--muted); }
.ref-group + p { margin-top: 2rem; }

.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin: 1.5rem 0 2.5rem; }
.client { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 14px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: .85rem; line-height: 1.3; color: var(--muted); text-decoration: none; text-align: center; }
.client-logo { height: 76px; display: flex; align-items: center; }
.client-logo img { max-width: 120px; max-height: 70px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.client:hover { color: var(--ink); }
.client:hover img { filter: none; opacity: 1; }

.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photo-row figure { margin: 0 !important; }
.photo-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--ink); padding-top: 24px; }
.office h2 { font-size: 1.2rem; margin: 0 0 .7rem !important; }
.office p { font-family: var(--sans); line-height: 1.55; }
.map-offices { max-width: 560px; }

/* news */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { margin: 0; }
.news-item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--text); }
.news-list li:first-child .news-item { padding-top: 0; }
.news-thumb { aspect-ratio: 16 / 10; background: var(--stone); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fit-contain .news-thumb { background: var(--paper); outline: 1px solid var(--rule); outline-offset: -1px; }
.fit-contain .news-thumb img { object-fit: contain; padding: 10px; }
.news-item time { font-family: var(--sans); color: var(--muted); font-size: .92rem; }
.news-item h2 { font-size: 1.35rem; margin: .2rem 0 .5rem; transition: color .15s; }
.news-item p { margin: 0; font-size: 1rem; line-height: 1.6; }
.news-item:hover h2 { color: var(--red); }

.post .featured { margin: 0 0 2rem; max-width: 760px; }
.wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 2rem 0; }
.wp-block-gallery figure { margin: 0 !important; }
.wp-block-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.aligncenter { margin-left: auto; margin-right: auto; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 96px); }
.more-news { padding-top: clamp(36px, 5vw, 56px); font-family: var(--sans); font-size: .95rem; line-height: 1.4; }
.more-news h2 { font-size: .95rem; font-stretch: 100%; font-weight: 600; color: var(--muted); margin: 0 0 .6rem; }
.more-news ul { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--ink); }
.more-news li { margin: 0; border-bottom: 1px solid var(--rule); }
.more-news li a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 520; }
.more-news li a:hover { color: var(--red); }
.more-news time { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; margin-bottom: 2px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #c9cfd2; font-family: var(--sans); font-size: .95rem; line-height: 1.55; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h2 { color: #fff; font-size: 1rem; font-stretch: 100%; font-weight: 600; margin: 0 0 .7rem; }
.site-footer p { margin: 0 0 .6rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .3rem; }
.footer-logo { width: 190px; margin-bottom: 14px; opacity: .92; }
.footer-base { border-top: 1px solid #3a4348; }
.footer-base .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 18px; color: #8f989c; font-size: .85rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .doc, .post-layout { grid-template-columns: 1fr; gap: 0; }
  .more-news { padding-top: 0; padding-bottom: 56px; }
  .toc { padding-top: 28px; }
  .toc nav { position: static; }
  .toc ol { columns: 2; column-gap: 24px; }
  .person.has-photo { grid-template-columns: 120px minmax(0, 1fr); }
  .person.has-photo .person-bio { grid-column: 1 / -1; }
  .person { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .site-header .wrap { min-height: 0; padding-top: 14px; padding-bottom: 12px; }
  .logo img { width: 190px; }
  .menu { gap: 2px 20px; }
  .hero .wrap { min-height: 76vh; padding-bottom: 32px; }
  .neatline { inset: 10px; }
      .service-list { grid-template-columns: 1fr; }
  .news-rows a { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 14px; }
  .photo-row { grid-template-columns: 1fr 1fr; }
  .photo-row figure:last-child { grid-column: 1 / -1; }
  .photo-row figure:last-child img { aspect-ratio: 16 / 10; }
  .toc ol { columns: 1; }
  td:first-child, td:nth-child(2) { white-space: normal; width: auto; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .site-header, .site-footer, .toc, .hero::before, .neatline { display: none; }
  .doc { display: block; }
  a { color: inherit; }
}
.post .featured.narrow { max-width: min(100%, 560px); }
.photo-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.news-thumb.empty { display: grid; place-items: center; }
.news-thumb.empty img { width: 56px; height: 56px; object-fit: contain; opacity: .35; filter: grayscale(1); }
.prose .scheme { max-width: 560px; }
.person { align-items: start; }
@media (max-width: 760px) { .photo-row.two figure:last-child { grid-column: auto; } .photo-row.two figure:last-child img { aspect-ratio: 4 / 5; } }

.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px clamp(32px, 6vw, 88px); align-items: start; }
.intro .lead { margin: 0; }
.intro p:not(.lead) { margin: .35rem 0 0; }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; } }

/* home: three field photos under the intro */
.photo-strip { padding-bottom: clamp(56px, 8vw, 96px); }
.photo-strip .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; height: clamp(220px, 26vw, 340px); object-fit: cover; }
@media (max-width: 760px) { .photo-strip .wrap { grid-template-columns: 1fr 1fr; } .photo-strip figure:first-child { grid-column: 1 / -1; } .photo-strip img { height: 200px; } }
.split.no-figure .split-text { grid-column: 1 / -1; max-width: var(--measure); }
.prose p > img { max-height: 75vh; width: auto; margin: .5rem 0; }
.prose .small-figure { max-width: 640px; }

/* ---------------------------------------------------------------- single-column pages
   Text pages (Company, References, Contact, Privacy, News) use one centred reading column,
   so wide screens do not show an empty right half. Photos, tables and logo grids may run wider. */
:root { --column: 760px; --wide: 1120px; }
.layout-page .page-head .wrap,
.layout-news .page-head .wrap,
.layout-page .prose.wrap,
.layout-news .prose.wrap { max-width: calc(var(--column) + 2 * var(--gutter)); }
.layout-page .prose > * { max-width: none; }
.layout-page .prose figure.wide,
.layout-page .prose .ref-group,
.layout-page .prose .clients,
.layout-page .prose .photo-row {
  width: min(var(--wide), 100vw - 2 * var(--gutter));
  margin-left: 50%; transform: translateX(-50%);
}
.layout-page .prose .photo-row.two { max-width: none; }
.layout-page .prose .ref-group + p { margin-top: 2rem; }
/* client logos: equal cells, logo box and name aligned in every cell */
.clients { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.client { justify-content: flex-start; gap: 12px; padding: 22px 12px 16px; }
.client-logo { height: 80px; width: 100%; justify-content: center; }
.client-name { min-height: 2.6em; }
/* team members inside the reading column: photo and name on top, bio full width below */
.layout-page .person, .layout-page .person.has-photo { grid-template-columns: 120px minmax(0, 1fr); gap: 18px 28px; }
.layout-page .person:not(.has-photo) { grid-template-columns: 1fr; }
.layout-page .person .person-head { align-self: center; }
.layout-page .person .person-bio { grid-column: 1 / -1; }
/* client logos: 3 x 3 inside the reading column */
.layout-page .prose .clients { width: auto; margin-left: 0; transform: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .layout-page .prose .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* client logos v3: no grid lines, 6 per row at the width of the photo row, names in small grey text */
.layout-page .prose .clients {
  width: min(var(--wide), 100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%);
  grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 16px; border: 0; margin-top: 1.5rem; margin-bottom: 3rem;
}
.clients .client { border: 0; padding: 0; gap: 8px; color: var(--muted); text-decoration: none; }
.clients .client-logo { height: 70px; }
.clients .client-logo img { max-width: 130px; max-height: 60px; }
.clients .client-name { min-height: 0; font-size: .8rem; color: var(--muted); }
.clients a.client:hover .client-name { color: var(--ink); }
@media (max-width: 900px) { .layout-page .prose .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* captions under full-width figures are centred under the image */
.prose figure.wide figcaption { text-align: center; }
