/* ==========================================================================
   DESIGN CONTROLS. Change the look of the whole site from this block.
   (The accent colour is set in /admin under Settings.)
   ========================================================================== */
:root {
	/* From the logo */
	--grey-dark: #68696e;
	--grey: #b4b5b9;
	--orange-deep: #e87319;
	--letter: #3c3e40;       /* the logo's lettering, a touch darker so it reads well */
	--col: 20.3vw;           /* where the logo's left column ends: everything lines up to it */

	--paper: #ffffff;
	--concrete: #ededee;
	--line: #cfd0d3;
	--ink: #28292b;
	--muted: #5c5e62;
	--accent-text: #a84600;  /* the orange, dark enough for small text on white */
	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--heading-width: 86%;    /* 75% narrow to 100% normal */
	--heading-weight: 700;
	--text: 1.0625rem;
	--h1: clamp(2.5rem, 6.6vw, 6.4rem);
	--h2: clamp(1.4rem, 2vw, 1.9rem);
	--gutter: clamp(1.25rem, 4vw, 4rem);
	--space: clamp(3.25rem, 7vw, 7rem);
	--label-column: calc(var(--col) - var(--gutter));
	--logo: 230px;          /* width of the whole logo, which is 1040 by 608 */
	--logo-h: calc(var(--logo) * .5846);
	/* The logo's light grey middle lines up with the grey boxes below it. */
	--logo-left: max(.5rem, calc(var(--col) - var(--logo) * .2038));
	--menu-left: calc(var(--logo-left) + var(--logo));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text)/1.55 var(--font); }
h1, h2, h3, p, figure, dl, dd, ul, ol, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, .logo { font-weight: var(--heading-weight); font-stretch: var(--heading-width); text-wrap: balance; }
h1, .h1 { font-size: var(--h1); line-height: .95; letter-spacing: -.012em; text-transform: uppercase; color: var(--letter); overflow-wrap: break-word; }
h2 { font-size: var(--h2); line-height: 1.2; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.45; max-width: 38em; text-wrap: pretty; }
.lines { white-space: pre-line; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 9; }
.notice { background: #fff3c4; padding: .6rem var(--gutter); }

/* Header: the logo hangs from the top edge */
.top { position: relative; margin-bottom: -1px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; min-height: 76px; padding: 0 1.75rem 0 calc(var(--menu-left) + 2rem); background: var(--grey-dark); color: #fff; }
.logo { position: absolute; top: 0; left: var(--logo-left); width: var(--logo); }
.menu { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.6rem); }
.menu a:not(.button) { text-decoration: none; padding: .35rem 0; border-bottom: 3px solid transparent; font-weight: 500; white-space: nowrap; }
.menu a:not(.button):hover, .menu a[aria-current]:not(.button) { border-color: var(--accent); }
.top :focus-visible { outline-color: #fff; }

.button { display: inline-block; background: var(--accent); color: var(--ink); text-decoration: none; padding: .95rem 1.5rem; border: 0; font: 600 1rem/1.2 var(--font); cursor: pointer; transition: background .15s; }
.button:hover { background: var(--ink); color: #fff; }
.button.small { padding: .7rem 1.1rem; font-size: .95rem; }
.button.small:hover { background: #fff; color: var(--ink); }
.more { font-weight: 500; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.more:hover { color: var(--accent-text); }

/* Openings: grey above, orange below, the headline standing on the line between them */
.hero, .page-head { display: grid; grid-template-columns: var(--col) minmax(0, 1fr) var(--col); grid-template-rows: auto auto; }
.hero::before, .page-head::before, .hero::after, .page-head::after { content: ""; grid-row: 1 / 3; background: linear-gradient(var(--grey-dark), var(--grey-dark)) top / 100% 100% no-repeat; }
.hero-top, .head-top { grid-area: 1 / 2; background: var(--grey); display: flex; align-items: flex-end; overflow: hidden; padding-top: calc(var(--logo-h) + 1rem); }
.hero-top { min-height: min(52vh, 500px); }
.head-top { min-height: 250px; }
.hero-top h1, .head-top :is(h1, .h1) { margin-bottom: -.141em; width: 100%; }
.hero-base, .head-base { grid-area: 2 / 2; background: var(--accent); color: var(--ink); padding: 2rem 2rem 2.25rem 0; }
.hero-base { padding-bottom: 3.5rem; display: flex; flex-direction: column; gap: 1.75rem; }
.hero-base .lede, .head-base .lede { font-weight: 500; }
.head-base:empty { padding: 0; min-height: 56px; }
.hero::before, .page-head::before { grid-column: 1; }
.hero::after, .page-head::after { grid-column: 3; }
.hero, .page-head { position: relative; }
.hero > *, .page-head > * { min-width: 0; }
.hero-base, .head-base { position: relative; }
.hero-base::before, .head-base::before, .hero-base::after, .head-base::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--col); background: var(--orange-deep); }
.hero-base::before, .head-base::before { right: 100%; }
.hero-base::after, .head-base::after { left: 100%; }
.hero-base .button { background: var(--ink); color: #fff; }
.hero-base .button:hover { background: #fff; color: var(--ink); }
.hero-base .more { text-decoration-color: var(--ink); }
.hero-base .more:hover { color: var(--ink); text-decoration-thickness: 4px; }
.hero.has-photo { grid-template-columns: var(--col) minmax(0, 1fr) 34vw; }
.hero.has-photo .hero-top h1 { font-size: clamp(2.3rem, 5vw, 5rem); }
.hero-photo { grid-area: 1 / 3; position: relative; z-index: 1; }
.hero-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero.has-photo .hero-base::after { width: 34vw; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }

/* Heading on the left, content on the right */
.split { display: grid; grid-template-columns: var(--label-column) 1fr; gap: 0; padding: var(--space) var(--gutter); border-bottom: 1px solid var(--line); }
.split > h2 { padding-right: 1.5rem; }
.split-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.split-body figure { width: 100%; }
.thirds { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2.5rem; width: 100%; }
.thirds dt { font-weight: 500; font-size: 1.2rem; margin-bottom: .6rem; }
.thirds dd { color: var(--muted); }
.service-list { width: 100%; }
.service-list li { border-top: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list a { display: grid; grid-template-columns: 2fr 3fr; gap: 1.5rem; padding: 1.4rem 0; text-decoration: none; }
.service-list strong { font-weight: 500; font-size: 1.2rem; }
.service-list span { color: var(--muted); }
.service-list a:hover strong { color: var(--accent-text); }
.steps { counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; width: 100%; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.steps li::before { content: counter(s); color: var(--accent-text); font-weight: 500; grid-row: span 2; }
.steps strong { font-weight: 500; font-size: 1.15rem; }
.steps span { color: var(--muted); grid-column: 2; }
.facts, .case-facts { width: 100%; }
.facts div { display: grid; grid-template-columns: 2fr 3fr; gap: 1.5rem; border-top: 1px solid var(--line); padding: .9rem 0; }
.facts dt { color: var(--muted); }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem 2rem; width: 100%; }

/* Page openings */
.prose { max-width: 40em; }
.prose.solo { padding: var(--space) var(--gutter) 0 var(--col); box-sizing: content-box; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 2em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1.2em; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.about { padding: var(--space) var(--gutter) var(--space) var(--col); border-bottom: 1px solid var(--line); }
.about.has-photo, .contact.has-photo { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.wide-photo img { max-height: 82vh; object-fit: cover; }

/* Case studies */
.band { padding: var(--space) var(--gutter); border-bottom: 1px solid var(--line); }
.band > h2 { margin-bottom: 2rem; }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2.5rem); }
.case { text-decoration: none; display: flex; flex-direction: column; }
.case-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 1rem; }
.case-image.empty { background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 20% 100%, var(--concrete); }
.case-image img { height: 100%; object-fit: cover; }
.case-title { font-size: 1.3rem; font-weight: 500; line-height: 1.25; }
.case:hover .case-title { color: var(--accent-text); }
.case-meta { color: var(--muted); margin-top: .25rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; margin-bottom: 2.5rem; }
.filters button { font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; padding: .35rem 0; cursor: pointer; color: var(--muted); }
.filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); }
.case-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); border-bottom: 1px solid var(--line); padding: 0 var(--gutter); }
.case-facts div { padding: 1.4rem 1.2rem 1.4rem 0; }
.case-facts dt { color: var(--muted); font-size: .9rem; }
.next { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; padding: 3rem var(--gutter); }
.next-case { text-decoration: none; display: flex; flex-direction: column; text-align: right; }
.next-case span { color: var(--muted); }
.next-case strong { font-weight: 500; font-size: 1.4rem; }
.next-case:hover strong { color: var(--accent-text); }

/* Press clippings: framed scans in rows */
.clips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.5rem); grid-auto-flow: dense; }
.clips li { aspect-ratio: 3 / 4; border: 1px solid var(--grey-dark); background: #fff; padding: 5px; position: relative; }
.clips li.wide { grid-column: span 2; aspect-ratio: 1.54; }
.clips a { position: absolute; inset: 5px; overflow: hidden; }
.clips img { height: 100%; object-fit: cover; object-position: top; }
.clips li.fit img { object-fit: contain; }
.clips li:hover { border-color: var(--orange-deep); outline: 2px solid var(--orange-deep); }
.zoom { border: 0; padding: 0; background: none; max-width: 96vw; max-height: 96vh; overflow: auto; }
.zoom::backdrop { background: rgb(40 41 43 / .9); }
.zoom img { width: auto; max-width: 100%; background: #fff; }
.zoom button { position: sticky; top: 0; float: right; font: 600 1rem var(--font); background: var(--accent); color: var(--ink); border: 0; padding: .7rem 1.1rem; cursor: pointer; }

@media (min-width: 851px) {
	.clips.row { display: flex; align-items: stretch; } /* one row, all the same height */
	.clips.row li { flex: .75 1 0; max-width: 15rem; }
	.clips.row li.wide { flex-grow: 1.54; max-width: 30.8rem; aspect-ratio: auto; }
}

/* Plain lists in columns */
.columns { columns: 2; column-gap: 3rem; width: 100%; max-width: 60rem; }
.columns.three { columns: 3 11rem; }
.columns li { break-inside: avoid; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.prose.big { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.45; }

/* Press coverage */
.press { width: 100%; }
.press li { border-top: 1px solid var(--line); padding: 1.75rem 0; }
.press li:first-child { border-top: 0; padding-top: 0; }
.press li.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) 26vw; gap: 2rem; align-items: start; }
.press li > div { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; max-width: 42em; }
.press h3 { font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.2; }
.press h3 a { text-decoration: none; }
.press h3 a:hover { color: var(--accent-text); }
.press-source { color: var(--accent-text); font-weight: 600; }
.press-client { color: var(--muted); }

/* Testimonials */
.pull { padding: var(--space) var(--gutter) var(--space) var(--col); background: var(--concrete); display: flex; flex-direction: column; gap: 2.5rem; align-items: flex-start; }
.pull blockquote { font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1.3; letter-spacing: -.012em; max-width: 30em; text-wrap: pretty; }
.quotes { padding: 0 var(--gutter) 0 var(--col); }
.quotes > h2 { padding-top: var(--space); }
.quotes > .lede { padding: var(--space) 0; }
.quotes .quote { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 2rem 4rem; padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.quotes blockquote { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; max-width: 36em; }
.quote figcaption { display: flex; gap: 1rem; align-items: flex-start; }
.pull figcaption { margin-top: 1.75rem; }
.quote figcaption div { display: flex; flex-direction: column; align-items: flex-start; }
.quote figcaption strong { font-weight: 500; }
.quote figcaption span { color: var(--muted); }
.quote figcaption .more { margin-top: .6rem; }
.face { width: 56px; height: 56px; object-fit: cover; flex: none; }

/* Contact */
.contact { padding: 0 var(--gutter) var(--space) var(--col); }
.contact.has-photo { padding-top: var(--space); grid-template-columns: 1fr 1fr; }
.contact-list div { display: grid; grid-template-columns: 9rem 1fr; gap: 2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); }
.contact-list dd { font-size: clamp(1.15rem, 1.8vw, 1.6rem); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent-text); }

/* Closing section and footer: the footer is laid out like a drawing's title block */
.closing { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: center; background: linear-gradient(90deg, var(--grey-dark) var(--col), var(--grey) var(--col)); padding: var(--space) var(--gutter) var(--space) calc(var(--col) + 2rem); }
.closing h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; text-transform: uppercase; color: var(--letter); }
.closing p { margin-bottom: 1.25rem; max-width: 26em; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1.2fr; background: var(--ink); color: #fff; font-size: .95rem; border-top: 12px solid var(--accent); }
.foot > * { padding: 2.5rem var(--gutter) 2.5rem 1.75rem; border-left: 1px solid #4a4c4f; min-width: 0; }
.foot > :first-child { border: 0; padding-left: var(--gutter); }
.foot-name p { color: #b9c1c4; margin-top: .8rem; max-width: 24em; }
.foot-name strong { font-weight: 500; }
.foot-cell { display: flex; flex-direction: column; gap: .4rem; overflow-wrap: anywhere; }
.foot-cell a { text-decoration: none; }
.foot-cell a:hover { text-decoration: underline; }
.foot-last { justify-content: space-between; color: #b9c1c4; gap: 1.5rem; }

/* Photo pages */
.masonry { display: flex; gap: var(--gap); align-items: flex-start; }
.masonry .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.photo-rows { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.photo-rows.even img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Arranged photos on the home page */
.collage { overflow: hidden; padding: var(--space) 0; border-bottom: 1px solid var(--line); }
.collage-canvas { position: relative; width: 100%; height: calc((var(--h) + var(--top)) * 1vw); }
.collage-print { position: absolute; left: calc(var(--x) * 1%); top: calc((var(--y) + var(--top)) * 1vw); width: calc(var(--w) * 1%); z-index: var(--z); transform: rotate(calc(var(--r) * 1deg)); aspect-ratio: var(--ar); }
.collage-canvas { isolation: isolate; }
.collage-phone { display: none; }

.plain { padding: calc(var(--logo-h) + 3rem) var(--gutter) var(--space) var(--col); min-height: 50vh; display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.plain h1 { font-size: var(--h2); letter-spacing: 0; }
.plain form { display: grid; gap: .6rem; width: min(22rem, 100%); }
.plain input { font: inherit; padding: .8rem; border: 1px solid var(--muted); }

@media (max-width: 1120px) {
	.top { padding-left: calc(var(--menu-left) + 1.25rem); }
	.menu { gap: .2rem 1.1rem; }
	.menu .button { display: none; }
}
@media (max-width: 1000px) {
	.foot { grid-template-columns: 1fr 1fr; }
	.foot > * { padding: 2rem var(--gutter); border-left: 0; border-top: 1px solid #4a4c4f; }
}
@media (max-width: 850px) {
	:root { --col: var(--gutter); --label-column: 100%; --logo: 104px; }
	.top { min-height: 96px; padding: .5rem var(--gutter) .5rem calc(var(--menu-left) + 1rem); }
	.menu { flex-wrap: wrap; justify-content: flex-start; gap: 0 1.1rem; width: 100%; }
	.press li.has-photo { grid-template-columns: minmax(0, 1fr); }
	.split, .about.has-photo, .contact.has-photo, .quotes .quote, .closing { grid-template-columns: minmax(0, 1fr); }
	.split { gap: 1.75rem; }
	.hero.has-photo { grid-template-columns: var(--col) minmax(0, 1fr) var(--col); grid-template-rows: auto auto auto; }
	.hero.has-photo::before, .hero.has-photo::after { grid-row: 1 / 3; }
	.hero.has-photo .hero-base::after { width: var(--col); }
	.hero-photo { grid-area: 3 / 1 / 4 / 4; aspect-ratio: 4 / 3; }
	.hero-top { min-height: 340px; }
	.head-top { min-height: 210px; }
	h1 { --h1: clamp(2.1rem, 9.2vw, 4.5rem); }
	.hero.has-photo .hero-top h1 { font-size: var(--h1); }
	.hero-base, .head-base { padding-right: .5rem; }
	.closing { background: linear-gradient(90deg, var(--grey-dark) var(--col), var(--grey) var(--col)); padding-left: calc(var(--col) + 1rem); }
	.service-list a, .facts div, .contact-list div { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
	.photo-rows { grid-template-columns: 1fr 1fr; }
	.collage-desktop { display: none; }
	.collage-phone { display: block; }
}
@media (max-width: 850px) {
	.clips, .clips.row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.split > span:empty { display: none; }
}
@media (max-width: 560px) {
	.clips, .clips.row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.columns, .columns.three { columns: 2; column-gap: 1.25rem; font-size: .95rem; line-height: 1.35; }
	.cases { grid-template-columns: minmax(0, 1fr); }
	.foot { grid-template-columns: 1fr; }
	.masonry { flex-direction: column; align-items: stretch; }
}

/* One-scroll version: the header stays, and each page's opening is a slimmer band */
html { scroll-padding-top: 76px; }
.top { position: sticky; top: 0; z-index: 20; }
.logo { transition: width .2s; }
.scrolled .logo { width: 82px; }
.scroll .part + .part .head-top { min-height: 0; padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.scroll .part + .part .h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .95; }
.scroll .part + .part .head-base:empty { min-height: 34px; }
.scroll .part + .part .head-base { padding-top: 1.5rem; padding-bottom: 1.6rem; }
.scroll .part > :last-child { border-bottom: 0; }
.scroll .part.closing { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.scroll .closing .contact-list div { padding: .9rem 0; border-color: var(--grey-dark); grid-template-columns: 6rem 1fr; gap: 1rem; }
.scroll .closing .contact-list dt { color: var(--ink); }
.scroll .closing .contact-list dd { font-size: 1.1rem; }
@media (prefers-reduced-motion: no-preference) { html:has(body.scroll) { scroll-behavior: smooth; } }
@media (max-width: 850px) {
	html { scroll-padding-top: 96px; }
	.scrolled .logo { width: 96px; }
	.scroll .part.closing { grid-template-columns: minmax(0, 1fr); }
}

/* Contact form */
.message { display: grid; gap: 1rem; max-width: 34rem; margin-bottom: 1.5rem; justify-items: start; }
.contact .message { padding-top: var(--space); }
.message label { display: grid; gap: .35rem; width: 100%; font-weight: 500; }
.message input, .message textarea { font: 400 1rem/1.4 var(--font); color: var(--ink); background: #fff; padding: .7rem .8rem; border: 1px solid var(--grey-dark); border-radius: 0; width: 100%; }
.message textarea { resize: vertical; }
.message .extra { position: absolute; left: -9999px; width: 1px; overflow: hidden; }
.message [role="status"] { font-weight: 500; margin: 0; }
.message [role="status"]:empty { display: none; }
.closing .message .button { background: var(--accent); }
.closing .message .button:hover { background: var(--ink); color: #fff; }
.scroll .closing h2 + p { margin-top: 1.25rem; }

/* Phones: a slim bar with the logo and every page in one row, and an opening that fits on the screen */
@media (max-width: 600px) {
	:root { --logo: 64px; }
	html { scroll-padding-top: 54px; }
	.top { min-height: 54px; padding: 0 .6rem 0 calc(var(--menu-left) + .55rem); }
	.scrolled .logo { width: 54px; }
	.menu { flex-wrap: nowrap; justify-content: space-between; gap: 0; font-size: min(3.65vw, 16px); font-stretch: 86%; }
	.menu a:not(.button) { padding: .9rem 0 .7rem; border-bottom-width: 2px; }
	.hero-top { min-height: 0; padding-top: 3.75rem; }
	.head-top { min-height: 0; padding-top: 3.25rem; }
	.hero-base { padding: 1.25rem .5rem 1.75rem 0; gap: 1.25rem; }
	.head-base { padding-top: 1.25rem; padding-bottom: 1.5rem; }
	.hero-base .lede { font-size: 1.08rem; line-height: 1.4; }
	.actions { gap: 1.25rem; }
	.actions .button { padding: .85rem 1.1rem; }
	.prose.big { font-size: 1.1rem; }
}

/* Portrait to the left of the biography. On phones the first paragraph stays beside it, at the same height, and the rest follows below. */
.about.has-photo { grid-template-columns: 320px minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3.5rem); }
@media (max-width: 850px) {
	.about.has-photo { grid-template-columns: 260px minmax(0, 1fr); gap: 1.75rem; }
}
@media (max-width: 600px) {
	.about.has-photo { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 0 1rem; align-items: start; }
	.about.has-photo .prose { display: contents; font-size: 1rem; line-height: 1.45; }
	.about.has-photo .prose > * { grid-column: 1 / -1; }
	.about.has-photo .prose > :first-child { grid-column: 2; margin: -.3em 0; }
	.about.has-photo figure { position: relative; align-self: stretch; aspect-ratio: 3 / 4; min-height: 100%; width: 100%; }
	.about.has-photo figure img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 45% 50%; }
	.about.has-photo .prose > :nth-child(2) { margin-top: 1.4em; }
}

/* Custom pages built in the admin */
.columns.one { columns: 1; max-width: 40rem; }
.block-photo { max-width: 60rem; }
.block-photo figcaption, .wide-photo figcaption { margin-top: .7rem; color: var(--muted); font-size: .95rem; }
.wide-photo figcaption { padding: 0 var(--gutter); }

/* ==========================================================================
   Calmer opening, December 2026: the original logo, a smaller grey box and
   headline, and a thin orange line in place of the orange band.
   ========================================================================== */
.scrolled .logo { width: 130px; }
.hero::before, .hero::after { grid-row: 1 / 2; }
.hero-top { min-height: 0; padding-top: max(2.5rem, calc(var(--logo-h) - 76px + 2.75rem)); }
.hero-top h1 { font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1.04; max-width: 24em; }
/* Lighter grey beside the box, so the opening is quieter */
.hero::before, .hero::after { background: #8c8d91; }
.hero-base { background: var(--paper); border-top: 12px solid var(--accent); padding: 1.75rem 0 2.25rem; gap: 1.25rem; }
.hero-base::before, .hero-base::after { top: -12px; bottom: auto; height: 12px; }
.hero-base .lede { font-weight: 400; }

/* A strip of articles at the end of a section */
.strip { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.strip > h2 { margin-bottom: 1.5rem; }

/* Leadership: the photo runs from the top of the text to the bottom */
@media (min-width: 601px) {
	.about.has-photo { align-items: stretch; }
	.about.has-photo figure { position: relative; min-height: 100%; }
	.about.has-photo figure img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 25%; }
	.about.has-photo .prose > :first-child { margin-top: -.3em; }
	.about.has-photo .prose > :last-child { margin-bottom: -.3em; }
}

/* Contact details shown without a label */
.contact-list .no-label { display: block; }

@media (max-width: 850px) {
	:root { --logo: 170px; }
	.scrolled .logo { width: 150px; }
	.hero-top { padding-top: max(2.5rem, calc(var(--logo-h) - 96px + 2.5rem)); }
}
@media (max-width: 600px) {
	:root { --logo: 92px; }
	.scrolled .logo { width: 92px; }
	/* Six words in one row: tighter, and it slides sideways if a phone is very narrow */
	.menu { justify-content: flex-start; gap: 0 .6rem; font-size: min(3.4vw, 15px); overflow-x: auto; scrollbar-width: none; }
	.menu::-webkit-scrollbar { display: none; }
	.menu a:first-child { display: none; } /* Home: the logo leads there */
	/* The strip of articles is one row you can swipe */
	.strip .clips.row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
	.strip .clips.row li { flex: 0 0 42%; max-width: none; scroll-snap-align: start; }
	.strip .clips.row li.wide { flex-basis: 80%; }
	.hero-top { padding-top: calc(var(--logo-h) - 54px + 2rem); }
	.hero-top h1 { font-size: 1.65rem; }
	.hero-base { padding: 1.25rem 0 1.5rem; }
}

/* ==========================================================================
   The logo stands on its own on a white bar, and the bar shrinks with it.
   ========================================================================== */
:root { --logo: 190px; }
.top { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); min-height: 0; padding: .75rem 1.75rem .75rem var(--logo-left); justify-content: space-between; gap: 1.5rem; }
.logo { position: static; flex: none; }
.logo img { width: 100%; }
.top :focus-visible { outline-color: var(--orange-deep); }
.scrolled .logo { width: 120px; }
.measuring .logo { transition: none; }
.hero-top, .head-top { padding-top: 2.75rem; }
.hero-top { padding-top: 3rem; }
.list-top .split-body > h2 { margin-bottom: -1rem; }
@media (max-width: 850px) {
	:root { --logo: 150px; }
	.top { min-height: 0; padding: .6rem var(--gutter) .6rem var(--logo-left); }
	.scrolled .logo { width: 110px; }
	.hero-top { padding-top: 2.5rem; }
}
@media (max-width: 600px) {
	:root { --logo: 92px; }
	.top { min-height: 0; padding: .45rem .6rem .45rem var(--logo-left); gap: .6rem; }
	.scrolled .logo { width: 76px; }
	.hero-top { padding-top: 2rem; }
}
/* Tablets: the strip of articles stays one row you can swipe */
@media (max-width: 850px) and (min-width: 601px) {
	.strip .clips.row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
	.strip .clips.row li { flex: 0 0 26%; max-width: none; scroll-snap-align: start; }
	.strip .clips.row li.wide { flex-basis: 50%; }
}

/* ==========================================================================
   The logo starts where the grey box starts, and the opening fills the
   screen: a bigger headline, with the strip of articles at the bottom.
   ========================================================================== */
:root { --logo-left: var(--col); }
.scroll #home { display: flex; flex-direction: column; min-height: calc(100svh - var(--bar, 135px)); }
.scroll #home .hero { flex: 1; grid-template-rows: 1fr auto; }
/* Sized by the width and the height of the screen, so the opening fits on laptops too */
.hero-top h1 { font-size: clamp(2.2rem, min(5.2vw, 9vh), 5.6rem); line-height: .98; max-width: 16em; }
.scroll #home .strip .clips.row li { max-width: min(15rem, 22vh); }
.scroll #home .strip .clips.row li.wide { max-width: min(30.8rem, 44vh); }
.hero-top { padding-top: 2.25rem; }
/* With no buttons, only the thin orange line is left under the box */
.hero-base:not(:has(.lede, a)) { padding: 0; }
.scroll #home .strip { border-bottom: 0; padding-top: clamp(1.5rem, 2.5vw, 2.25rem); padding-bottom: clamp(1.75rem, 3vw, 2.75rem); }
@media (max-width: 850px) {
	:root { --logo-left: var(--gutter); }
	.hero-top h1 { font-size: clamp(2rem, 5.6vw, 2.8rem); }
}
@media (max-width: 600px) {
	.hero-top h1 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); }
}
/* The paragraph under the headline, on white, with the strip close beneath it */
.scroll #home .hero-base:has(.lede) { padding: clamp(1rem, 2.2vh, 1.6rem) 0 0; }
.scroll #home .strip { padding-top: clamp(1.25rem, 3vh, 2.25rem); }
.scroll #home .strip .clips.row li { max-width: min(15rem, 20vh); }
.scroll #home .strip .clips.row li.wide { max-width: min(30.8rem, 40vh); }
.hero-base .actions:not(:has(a)) { display: none; }
/* Balance: the grey box hugs the headline, and the extra height goes to the white
   space around the paragraph, which sits in the middle of it above the strip. */
.scroll #home .hero { grid-template-rows: auto 1fr; }
.scroll #home .hero-top { padding-top: clamp(2.5rem, 7vh, 5rem); }
.scroll #home .hero-base:has(.lede) { justify-content: center; padding: clamp(1.5rem, 3vh, 3rem) 0; }
.scroll #home .hero-base .lede { font-size: clamp(1.2rem, min(1.7vw, 3vh), 1.6rem); max-width: 34em; }
@media (max-width: 600px) {
	/* Phones: the extra height is shared, a little more of it on white */
	.scroll #home .hero { grid-template-rows: 2fr 3fr; }
	.hero-top h1 { font-size: clamp(1.8rem, 9.4vw, 2.6rem); }
}

/* A section's opening paragraph, on white under the heading */
.head-text { padding-bottom: 0; border-bottom: 0; }
.head-text + * { border-top: 0; }
/* The menu ends where the light grey box ends, as the logo starts where it starts */
@media (min-width: 601px) {
	.top { padding-right: var(--col); }
}
@media (max-width: 850px) and (min-width: 601px) {
	.menu { justify-content: flex-end; width: auto; flex-wrap: nowrap; }
}
@media (max-width: 600px) {
	.menu { gap: 0 .5rem; }
}
@media (max-width: 850px) and (min-width: 601px) {
	.scroll #home .hero { grid-template-rows: 2fr 3fr; }
}
/* Wider light grey boxes: everything that lines up with them (logo, menu, text) follows */
@media (min-width: 851px) {
	:root { --col: 15vw; }
}
/* Desktop: strips of articles sit in the middle of the page */
@media (min-width: 851px) {
	.strip .clips.row { justify-content: center; }
}
/* Desktop: text runs from the left edge of the light grey box to its right edge,
   where the menu ends too */
@media (min-width: 851px) {
	.split, .about, .quotes { padding-right: var(--col); }
	.split-body .prose, .split-body .lede, .about .prose, .hero-base .lede, .scroll #home .hero-base .lede, .columns, .prose.solo { max-width: none; }
	.prose.solo { padding-right: var(--col); box-sizing: border-box; }
}
/* Desktop: the Results scans are a little smaller, within the light grey box's edges like the text */
@media (min-width: 851px) {
	#results .band:not(.strip) { padding-left: var(--col); padding-right: var(--col); }
}
/* Link hovers at the bottom use the site's own orange: an orange underline on the grey
   Contact section (like the menu), and orange text in the dark footer */
.contact-list a:hover { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.foot-cell a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.contact-list a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Footer without its menu: three columns */
@media (min-width: 851px) { .foot:not(:has(nav)) { grid-template-columns: 2fr 1.3fr 1.2fr; } }
/* Footer: all three columns start on the same line */
.foot-name p:first-child { margin-top: 0; }
.foot > * { align-content: start; }

/* Scans that aren't clickable: no hover frame, no pointer */
.clips .clip { position: absolute; inset: 5px; overflow: hidden; }
.clips.still li:hover { border-color: var(--grey-dark); outline: 0; }

/* The article box: opens when a visitor clicks a scan (when that's switched on in the admin) */
.boxed { overflow: hidden; }
.article-box { border: 0; padding: 0; background: none; width: min(1100px, 92vw); max-width: none; max-height: none; overflow: visible; }
.article-box::backdrop { background: rgb(40 41 43 / .85); }
.ab-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--paper); border-top: 12px solid var(--accent); height: min(780px, 86vh); color: var(--ink); }
.ab-scan { overflow: auto; background: #f1f1f2; padding: clamp(1rem, 2.5vw, 2rem); display: flex; align-items: flex-start; justify-content: center; }
.ab-scan img { width: 100%; height: auto; max-width: 640px; box-shadow: 0 1px 6px rgb(0 0 0 / .15); background: #fff; }
.ab-text { overflow: auto; padding: clamp(1.5rem, 3.5vw, 3rem); display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.ab-source { margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.ab-text h2 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.12; }
.ab-body { margin: 0; color: var(--muted); line-height: 1.55; }
.ab-text .button { margin-top: .5rem; }
.ab-nav { margin-top: auto; padding-top: 1.5rem; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid #e3e3e5; }
.ab-step { font: 600 .95rem var(--font); background: none; border: 0; padding: .4rem 0; color: var(--ink); cursor: pointer; }
.ab-step:hover { color: var(--accent); }
.ab-count { font-size: .85rem; color: var(--muted); }
.ab-close { position: absolute; top: -12px; right: 0; transform: translateY(-100%); width: 2.6rem; height: 2.6rem; font: 600 1.15rem var(--font); background: var(--accent); color: var(--ink); border: 0; cursor: pointer; }
.ab-close:hover { background: #fff; }
.clips a[data-zoom] { cursor: zoom-in; }
@media (max-width: 700px) {
	.article-box { width: 100vw; height: 100%; max-height: 100%; margin: 0; }
	.ab-inner { grid-template-columns: 1fr; height: 100%; overflow: auto; display: block; border-top-width: 8px; }
	.ab-scan { overflow: visible; padding: 3.5rem 1rem 1rem; }
	.ab-text { overflow: visible; padding: 1.5rem 1.25rem 2rem; }
	.ab-close { top: .5rem; right: .5rem; transform: none; position: fixed; z-index: 2; }
}

/* Results scans on phones and tablets: a light grey box of two rows that glides sideways,
   instead of a grid that runs down the page. */
@media (max-width: 850px) {
	.clips:not(.row) {
		grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column dense; grid-auto-columns: 29%;
		overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem;
		background: #efeff0; padding: 1rem; gap: .75rem;
	}
	.clips:not(.row) li { scroll-snap-align: start; }
	.band:has(> .clips:not(.row))::after { content: "Swipe for more \2192"; display: block; margin-top: .6rem; text-align: right; font-size: .85rem; color: var(--muted); }
}
@media (max-width: 560px) {
	.clips:not(.row) { grid-auto-columns: 40%; }
}

/* "Read the article" button with its drawn arrow */
.ab-more { display: inline-flex; align-items: center; gap: .5em; }
.ab-more svg { flex: none; width: .8em; height: .8em; }

/* Phones: with Contact added the menu is six words, so it wraps onto two short lines beside the logo */
@media (max-width: 600px) {
	.menu { flex-wrap: wrap; justify-content: flex-end; overflow: visible; gap: .1rem .9rem; font-size: 14px; max-width: 13rem; margin-left: auto; } /* three and three */
	.menu a:not(.button) { padding: .25rem 0 .15rem; }
}
