/*
 * Global Link Logistics — stylesheet.
 *
 * Mobile-first. Layouts start as one column and gain structure at 640px, 900px
 * and 1100px.
 *
 * THE SYSTEM
 *
 * Near-monochrome. White is the ground, a barely-there warm grey is the
 * alternating band, near-black carries the closing CTA and the footer, and text
 * runs on a green-grey neutral ramp rather than a pure grey one — the slight
 * cast is where the brand's teal survives once the colour blocks are gone.
 *
 * Orange is the only accent, and it is rationed: section labels, the primary
 * button, the odd link hover. Nothing else is coloured. The identity has to come
 * from the mark, the wordmark, the photography and the spacing — a site that
 * needs six fills to look like itself does not have an identity yet.
 *
 * The rules that keep it coherent:
 *
 *   - Structure is drawn in SOLID 1px hairlines. No gradient or fading rules:
 *     a line that dissolves at both ends reads as a rendering artefact, not as
 *     a decision.
 *   - One grid component. Services, why-us and values all render as
 *     .feature-grid; three near-identical grids under different class names is
 *     how a design system rots.
 *   - Motion is small: a 1px lift, a 2px arrow nudge, a tint on hover.
 *   - Radius belongs to interactive things and media. Bands and sections are
 *     square.
 *   - Section titles are weight 500, not 700. The restraint is the point; every
 *     heading at maximum weight is what makes a page look generated.
 *   - Contrast ratios in the comments are measured, not estimated.
 *
 * Typography is Montserrat throughout — see assets/css/fonts.css.
 */

/* -------------------------------------------------------------------------
 * 1. Tokens
 * ---------------------------------------------------------------------- */

:root {
	/*
	 * The neutral ramp. Very slightly green-grey rather than neutral grey, so
	 * the page still relates to the teal in the mark without spending any colour
	 * on it.
	 */
	--ink: #171c1b;
	--ink-soft: #565f5c;
	--ink-faint: #9aa29f;

	--line: #e7ebe9;
	--line-strong: #d4dad7;
	--line-light: rgba(255, 255, 255, 0.14);

	--surface: #ffffff;
	--surface-soft: #f7f9f8;
	--surface-sink: #eef1f0;

	/* The two dark grounds: the closing CTA and the footer. */
	--dark: #14191a;
	--dark-2: #1f2627;

	/*
	 * Orange, in three measured members. These are not interchangeable:
	 *
	 * --accent      solid button fill. White on it is 4.55:1; on the brighter
	 *               brand orange (#e2672a) white is 3.38:1 and fails.
	 * --accent-ink  small orange text on a light ground — labels, links.
	 * --accent-lift orange on the dark grounds, where the darker two go muddy.
	 */
	--accent: #c94f1a;
	--accent-hover: #a53f12;
	--accent-ink: #ad4213;
	--accent-lift: #ef8b52;

	/*
	 * The three brand fills. They are used in exactly two places: the hero scrim
	 * and the about band's panels. Everywhere else on the site is neutral, which
	 * is what lets these two carry real weight — spread across six grids they
	 * read as a palette demo rather than as an identity.
	 */
	--teal-900: #0c333c;
	--teal-800: #123f4a;
	--orange-600: #e2672a;
	--ink-block: #252525;

	/*
	 * Type. Close to the reference's fixed Tailwind steps rather than a heavily
	 * fluid scale — the reference's proportions are part of what makes it look
	 * considered, and a clamp on every size smooths them away.
	 */
	--fs-xs: 0.8125rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.125rem;
	--fs-sub: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
	--fs-title: clamp(1.75rem, 1.3rem + 1.9vw, 3rem);
	--fs-display: clamp(2rem, 1.25rem + 3.5vw, 3.75rem);

	--space-section: clamp(3.75rem, 2.25rem + 5vw, 6.5rem);
	--gutter: clamp(1.25rem, 0.5rem + 3vw, 2rem);

	/*
	 * The header and footer run edge to edge with wide responsive gutters —
	 * the reference's px-6 → xl:px-32. Content sits in a narrower centred
	 * measure inside them.
	 */
	--gutter-wide: clamp(1.5rem, -1rem + 8vw, 8rem);
	--max-width: 1080px;
	--max-width-narrow: 620px;

	--radius-xs: 4px;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 18px;
	--radius-img: 16px;
	--radius-pill: 999px;

	--shadow-soft: 0 1px 2px rgba(23, 28, 27, 0.06);
	--shadow-pop: 0 14px 30px -20px rgba(23, 28, 27, 0.4);

	--header-height: 74px;
}

/* -------------------------------------------------------------------------
 * 2. Reset and base
 * ---------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	/* Anchor targets clear the sticky header instead of hiding beneath it. */
	scroll-padding-top: calc(var(--header-height) + 1.5rem);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	font-weight: 400;
	line-height: 1.6;
	color: var(--ink);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
picture,
video,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

/*
 * <picture> is an inline wrapper by default, which adds a descender gap under
 * the image and breaks the height rules the logo and panel images rely on.
 * display:contents lets the <img> be laid out by the parent as if the wrapper
 * were not there.
 */
picture {
	display: contents;
}

/*
 * Montserrat ships as a variable font covering 100–900, so every weight below is
 * a real instance rather than a synthesised fake. The system uses four: 400
 * body, 500 headings and subheads, 600 UI and labels, 700 the hero only.
 *
 * Its letterforms are wide and evenly spaced — airy at reading sizes, sprawling
 * at display sizes. The negative tracking is what keeps a 60px headline looking
 * set rather than stretched; it is not decoration.
 */
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.025em;
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h3, h4 {
	font-weight: 600;
	font-size: var(--fs-base);
	letter-spacing: -0.005em;
	line-height: 1.35;
}

p {
	margin: 0 0 1.1em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--accent-ink);
}

ul, ol {
	margin: 0 0 1.1em;
	padding-left: 1.25em;
}

blockquote {
	margin: 0;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 200;
	padding: 0.75rem 1.25rem;
	background: var(--accent);
	color: #fff;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	text-decoration: none;
	font-weight: 600;
}

.skip-link:focus {
	top: 0;
	color: #fff;
}

/* -------------------------------------------------------------------------
 * 3. Layout primitives
 * ---------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: var(--max-width-narrow);
}

.section {
	padding-block: var(--space-section);
}

/* The only alternating ground. Barely there on purpose. */
.section--soft {
	background: var(--surface-soft);
	border-block: 1px solid var(--line);
}

.section--flush-bottom {
	padding-bottom: 0;
}

/* ---- section headers ----------------------------------------------------
 *
 * Every band opens through gll_section_header(): a label, a title at weight 500
 * and an optional intro. One helper, nine call sites, no drift.
 */

/*
 * The header itself is unconstrained; the title and the intro carry their own
 * measures. Capping the whole block forced a seven-word title into three lines
 * on a desktop with room for two, which reads as a stack of fragments rather
 * than a sentence.
 */
.section-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0;
	margin: 0 auto clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.section-header--left {
	align-items: flex-start;
	text-align: left;
	margin-inline: 0;
}

/*
 * The label. A quiet chip on the soft ground, an outlined chip where a fill
 * would vanish, or plain orange text where a chip would be one pill too many.
 */
.section-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 1rem;
	margin-bottom: 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	background: var(--surface-sink);
	font-size: var(--fs-sm);
	font-weight: 500;
	line-height: 1.4;
	color: var(--ink);
}

.section--soft .section-badge {
	background: var(--surface);
	border-color: var(--line);
}

.section-badge--outline {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--ink-soft);
}

.section-label {
	display: block;
	margin-bottom: 0.9rem;
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-ink);
}

/*
 * A pixel measure, not a ch one. At display sizes `ch` tracks the font size, so
 * a cap that looked right at 28px clamped the same heading to half the column at
 * 48px — which is how a two-line title ended up stacked into three.
 */
.section-title {
	font-size: var(--fs-title);
	font-weight: 500;
	max-width: 780px;
	margin: 0;
}

.section-header--left .section-title {
	max-width: 620px;
}

/* 530px, as the reference sets it — narrower than the title above it. */
.section-intro {
	max-width: 530px;
	margin: 1rem 0 0;
	color: var(--ink-soft);
	font-size: var(--fs-sm);
}

@media (min-width: 640px) {
	.section-intro {
		font-size: var(--fs-base);
	}
}

.section-action {
	margin-top: clamp(2.5rem, 1.5rem + 2.5vw, 3.5rem);
	text-align: center;
}

/* ---- prose ---- */

.prose > :first-child {
	margin-top: 0;
}

.prose h2 {
	font-size: var(--fs-sub);
	margin-top: 2em;
}

.prose h3 {
	font-size: var(--fs-lg);
	margin-top: 1.8em;
}

.prose img,
.prose figure {
	border-radius: var(--radius-img);
	margin-block: 2rem;
}

.prose figcaption {
	font-size: var(--fs-sm);
	color: var(--ink-soft);
	margin-top: 0.6rem;
}

.prose blockquote {
	border-left: 2px solid var(--accent);
	padding-left: 1.25rem;
	margin-block: 2rem;
	font-size: var(--fs-lg);
	color: var(--ink-soft);
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li {
	margin-bottom: 0.5em;
}

.prose a {
	color: var(--accent-ink);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	margin-block: 2rem;
}

.prose th,
.prose td {
	border-bottom: 1px solid var(--line);
	padding: 0.7rem 0.6rem;
	text-align: left;
}

/* Wide content inside prose must not push the page sideways. */
.prose pre,
.prose .wp-block-table {
	overflow-x: auto;
	max-width: 100%;
}

/* -------------------------------------------------------------------------
 * 4. Buttons and links
 * ---------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	border: 1px solid transparent;
	/*
	 * A 4px corner, not a pill. The reference's primary button is `rounded`, and
	 * the difference is most of why it reads as a considered UI rather than a
	 * template — pills everywhere is the house style of every starter kit.
	 */
	border-radius: var(--radius-xs);
	font: inherit;
	font-size: var(--fs-sm);
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease,
		border-color 0.2s ease, transform 0.2s ease;
}

.btn--solid {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.btn--solid:hover,
.btn--solid:focus-visible {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	color: #fff;
}

.btn--outline {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--ink);
}

.btn--outline:hover,
.btn--outline:focus-visible {
	border-color: var(--ink);
	color: var(--ink);
}

/* A bare text action with a sliding arrow — the reference's "Learn more". */
.btn--bare {
	padding-inline: 0.5rem;
	background: transparent;
	color: inherit;
}

.btn--bare svg {
	width: 12px;
	height: 9px;
	transition: transform 0.2s ease;
}

.btn--bare:hover {
	color: inherit;
}

.btn--bare:hover svg {
	transform: translateX(3px);
}

/* The pill chip used on article cards and the "see more" action. */
.btn--chip {
	padding: 0.4rem 1.25rem;
	border-radius: var(--radius-pill);
	border-color: var(--line-strong);
	background: transparent;
	color: var(--ink-soft);
}

.btn--chip:hover,
.btn--chip:focus-visible {
	background: var(--surface-sink);
	color: var(--ink);
}

.btn--lg {
	padding: 0.6rem 1.5rem;
}

/*
 * The header action: a brand-orange pill with a white chip carrying the arrow.
 * It is the only saturated element in the header, which is what makes it read as
 * *the* action rather than one button among several.
 *
 * --accent, not the brighter brand orange: white on #e2672a is 3.38:1 and fails,
 * white on this is 4.55:1.
 */
.btn--pill {
	gap: 0.65rem;
	padding: 0.35rem 0.35rem 0.35rem 1.15rem;
	border-radius: var(--radius-pill);
	background: var(--accent);
	border-color: transparent;
	color: #fff;
}

.btn--pill:hover,
.btn--pill:focus-visible {
	background: var(--accent-hover);
	color: #fff;
}

.btn__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	color: var(--accent);
	transition: transform 0.2s ease;
}

.btn--pill:hover .btn__chip {
	transform: translateX(2px);
}

.btn__chip svg {
	width: 12px;
	height: 10px;
}

/* The arrow link used at the foot of feature cells and in section actions. */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--ink-soft);
	text-decoration: none;
}

.link-arrow svg {
	width: 15px;
	height: 15px;
	transition: transform 0.2s ease;
}

.link-arrow:hover {
	color: var(--ink);
}

.link-arrow:hover svg {
	transform: translateX(2px);
}

/* -------------------------------------------------------------------------
 * 5. Header and navigation
 * ---------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

/*
 * Edge to edge with wide responsive gutters rather than a centred measure —
 * the reference's px-6 md:px-16 lg:px-24 xl:px-32. Pinning the navigation to
 * the viewport rather than to the content column is a large part of why it does
 * not look like a bootstrapped page.
 */
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.5rem;
	/*
	 * Tighter than the page gutter on phones. --gutter-wide bottoms out at 1.5rem,
	 * which is right for a band of body copy but wasteful on a bar holding only a
	 * logo and a hamburger — it pushed both away from the edges they should be
	 * anchored to. The mobile panel below matches it so the two line up.
	 */
	padding-inline: 1rem;
	min-height: var(--header-height);
}

@media (min-width: 640px) {
	.site-header__inner {
		padding-inline: var(--gutter-wide);
	}
}

.site-brand__link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	line-height: 0;
	text-decoration: none;
}

.site-brand__logo {
	height: 46px;
	width: auto;
	object-fit: contain;
	border-radius: var(--radius-xs);
}

.site-brand__name {
	display: block;
	line-height: 1.1;
}

.site-brand__name-top {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ink);
}

/*
 * A little air under the name. The two lines are set at very different sizes, so
 * at a shared line-height the small tracked-out word sat tight against the
 * descenders above it and the lockup read as one crowded block.
 */
.site-brand__name-bottom {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.56rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--accent-ink);
}

/*
 * The name stays at every width. The mark on its own is a globe and a trolley —
 * it does not say who the company is, and the lettering baked into the image is
 * illegible at this size. Mark plus name plus hamburger measures about 240px, so
 * it still fits a 320px screen.
 */

.site-nav__toggle {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.site-nav__toggle-bars,
.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ink);
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after {
	content: "";
	position: relative;
}

.site-nav__toggle-bars::before {
	top: -7px;
}

.site-nav__toggle-bars::after {
	top: 5px;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars {
	background: transparent;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars::before {
	transform: translateY(7px) rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars::after {
	transform: translateY(-5px) rotate(-45deg);
}

/* Mobile: the nav is a panel below the header, hidden until toggled. */
.site-nav {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: none;
	flex-direction: column;
	gap: 0.25rem;
	padding-block: 1.25rem 1.75rem;
	padding-inline: 1rem;
	background: var(--surface);
	border-top: 1px solid var(--line);
	box-shadow: 0 20px 30px -26px rgba(23, 28, 27, 0.6);
	max-height: calc(100svh - var(--header-height));
	overflow-y: auto;
}

.site-nav.is-open {
	display: flex;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

/*
 * Near-black at weight 500, not the soft grey the reference uses. Against this
 * site's very light header the grey sat at the edge of legibility and made the
 * navigation read as disabled — these are the primary way around a one-page
 * site, so they need to look clickable.
 */
.site-nav__link {
	display: block;
	padding: 0.6rem 1rem;
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
}

.site-nav__link:hover,
.site-nav__item.is-current > .site-nav__link {
	background: var(--surface-soft);
	color: var(--ink);
}

/*
 * The mobile disclosure button, inserted beside a parent link by site.js. On
 * desktop it is hidden and the panel opens on hover and focus instead; with
 * scripting off it never exists, and the parent link still goes somewhere.
 */
.site-nav__item.has-children {
	position: relative;
}

.site-nav__disclosure {
	position: absolute;
	top: 0;
	right: 0;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.site-nav__disclosure::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.45rem;
	height: 0.45rem;
	margin: -0.35rem 0 0 -0.25rem;
	border-right: 1.5px solid var(--ink-soft);
	border-bottom: 1.5px solid var(--ink-soft);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.site-nav__disclosure[aria-expanded="true"]::after {
	transform: translateY(0.2rem) rotate(225deg);
}

.site-nav__submenu {
	list-style: none;
	margin: 0;
	padding-left: 1rem;
	display: none;
}

.site-nav__item.is-expanded > .site-nav__submenu {
	display: block;
}

.site-nav__actions {
	display: flex;
	align-items: center;
	margin-top: 0.75rem;
}

@media (min-width: 1100px) {
	.site-nav__toggle {
		display: none;
	}

	.site-nav {
		position: static;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 2rem;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
		max-height: none;
		overflow: visible;
		flex: 1;
	}

	.site-nav__list {
		flex-direction: row;
		align-items: center;
		gap: 0.25rem;
		margin-left: 3rem;
	}

	.site-nav__item {
		position: relative;
	}

	/* The chevron on a parent item, rotating when its panel opens. */
	.site-nav__item.has-children > .site-nav__link::after {
		content: "";
		display: inline-block;
		width: 0.4em;
		height: 0.4em;
		margin-left: 0.55em;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-0.18em) rotate(45deg);
		transition: transform 0.2s ease;
	}

	.site-nav__item.has-children:hover > .site-nav__link::after,
	.site-nav__item.has-children:focus-within > .site-nav__link::after {
		transform: translateY(0.05em) rotate(225deg);
	}

	.site-nav__disclosure {
		display: none;
	}

	.site-nav__submenu {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 200px;
		margin-top: 0.25rem;
		padding: 0.5rem;
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: var(--radius-md);
		box-shadow: 0 16px 34px -22px rgba(23, 28, 27, 0.55);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.15s ease, visibility 0.15s;
	}

	.site-nav__item:hover > .site-nav__submenu,
	.site-nav__item:focus-within > .site-nav__submenu {
		opacity: 1;
		visibility: visible;
	}

	.site-nav__actions {
		margin-top: 0;
	}
}

/* -------------------------------------------------------------------------
 * 6. Hero
 *
 * Full-bleed photograph behind a scrim, content centred. The scrim is a gradient
 * rather than a flat tint: the port photograph is busiest at the top-left and
 * almost empty water at the lower right, so a flat overlay either washed out the
 * water or left the headline sitting on cranes.
 * ---------------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	isolation: isolate;
	/*
	 * A full screen, less the header above it — so the hero and the sticky header
	 * together are exactly one viewport and nothing of the next section shows.
	 * svh rather than vh: on mobile browsers vh is the height with the URL bar
	 * retracted, which pushes the contact strip below the fold on first paint.
	 */
	min-height: calc(100svh - var(--header-height));
	background: var(--teal-900);
	color: #fff;
	overflow: hidden;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(
			180deg,
			rgba(8, 26, 31, 0.78) 0%,
			rgba(8, 26, 31, 0.64) 45%,
			rgba(8, 26, 31, 0.88) 100%
		),
		linear-gradient(115deg, rgba(8, 26, 31, 0.5), rgba(20, 25, 26, 0.2));
}

.hero__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: clamp(3.5rem, 2rem + 6vw, 5.5rem) var(--gutter);
}

/*
 * The notice pill with its inset chip — the reference's bordered rounded-full
 * badge, reversed out for the photograph behind it.
 *
 * Hidden on narrow screens. The line and its chip need about 420px to sit on one
 * row; below that the chip drops to a second line and the pill turns into a
 * lozenge with a button stranded underneath it. Nothing is lost by dropping it —
 * the "Explore" chip and the "See what we do" button below both go to #services,
 * and the offices line repeats in the strip at the foot of the hero.
 */
.hero__notice {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	margin: 0 0 1.5rem;
	padding: 0.25rem 0.25rem 0.25rem 1rem;
	max-width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(4px);
	font-size: var(--fs-sm);
	line-height: 1.5;
	color: #fff;
}

@media (min-width: 620px) {
	.hero__notice {
		display: inline-flex;
	}
}

.hero__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.2rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: var(--radius-md);
	background: #fff;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}

.hero__chip svg {
	width: 12px;
	height: 9px;
	transition: transform 0.2s ease;
}

.hero__chip:hover {
	color: var(--ink);
}

.hero__chip:hover svg {
	transform: translateX(2px);
}

/* The one place on the site that uses weight 700. */
.hero__title {
	font-size: var(--fs-display);
	font-weight: 700;
	letter-spacing: -0.035em;
	color: #fff;
	max-width: 17ch;
	margin: 0 0 1.5rem;
	text-shadow: 0 2px 26px rgba(4, 18, 22, 0.5);
}

.hero__text {
	max-width: 52ch;
	font-size: var(--fs-base);
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 2rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.hero__actions .btn--bare {
	color: #fff;
}

/*
 * The contact strip, pinned along the bottom of the photograph.
 *
 * No fill of its own — it sits directly on the image. The scrim above it already
 * closes at 88% opacity along the bottom edge, so the white type keeps its
 * contrast without a second panel darkening the same pixels twice. A hairline is
 * all that separates it from the hero.
 */
.hero__meta {
	list-style: none;
	margin: 0;
	padding: 0.9rem var(--gutter-wide);
	background: transparent;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	/*
	 * Tight, but not zero. At gap: 0 the three items butt straight against each
	 * other and the line reads as one run-on string — "…Kampalataifaandrew@…".
	 * This is the smallest gap that still separates them as three facts.
	 */
	gap: 0.2rem 0.9rem;
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.82);
}

.hero__meta a {
	color: inherit;
	text-decoration: none;
}

.hero__meta a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* -------------------------------------------------------------------------
 * 7. Feature grid — the site's one grid component
 *
 * Services, why-us reasons and company values all render through this. They are
 * the same thing structurally (a titled paragraph, sometimes with an icon and a
 * link), so they share a component rather than each getting a lookalike.
 *
 * The lines: the container draws the top and left edge, each cell draws its own
 * right and bottom. That produces a complete outer box and exactly one line
 * between any two neighbours, at any column count, with no nth-child arithmetic.
 * ---------------------------------------------------------------------- */

.feature-grid {
	display: grid;
	grid-template-columns: 1fr;
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.feature {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	transition: background-color 0.2s ease;
}

.feature:hover {
	background: var(--surface-soft);
}

.section--soft .feature:hover {
	background: var(--surface);
}

/*
 * The icon box, then a deliberately large gap before the title — the reference's
 * size-13 box with mb-11. That gap is doing real work: it is what stops the cell
 * reading as a cramped list item.
 */
.feature__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 52px;
	height: 52px;
	margin-bottom: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	color: var(--ink-soft);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.feature:hover .feature__icon {
	border-color: var(--ink-soft);
	color: var(--ink);
}

.feature__icon svg {
	width: 24px;
	height: 24px;
}

.feature__title {
	font-size: var(--fs-base);
	font-weight: 600;
	margin: 0;
}

.feature__text {
	margin: 0.625rem 0 0;
	color: var(--ink-soft);
	font-size: var(--fs-sm);
}

.feature__body {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: var(--fs-sm);
}

.feature__link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: auto;
	padding-top: 2rem;
	font-size: var(--fs-sm);
	color: var(--ink-soft);
	text-decoration: none;
}

.feature__link svg {
	width: 15px;
	height: 15px;
	transition: transform 0.2s ease;
}

.feature__link:hover {
	color: var(--ink);
}

.feature__link:hover svg {
	transform: translateX(2px);
}

@media (min-width: 640px) {
	.feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.feature-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.feature-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* -------------------------------------------------------------------------
 * 8. Pillars, stats
 * ---------------------------------------------------------------------- */

/*
 * Three colour cards, spaced apart inside the page measure. They were previously
 * butted edge to edge as one full-bleed band; as separated cards they need the
 * radius the rest of the site's cards use, or the gaps read as a rendering fault
 * rather than as spacing.
 */
.pillars {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.pillars__item {
	padding: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
	border-radius: var(--radius-lg);
	color: rgba(255, 255, 255, 0.92);
}

.pillars__item--about {
	background: var(--ink-block);
}

.pillars__item--mission {
	background: var(--teal-800);
}

/*
 * The vision panel takes DARK text, not white. White on #e2672a is 3.38:1 and
 * fails for body copy; the near-black ink on the same orange is 5.19:1. Do not
 * "fix" this back to white.
 */
.pillars__item--vision {
	background: var(--orange-600);
	color: var(--ink);
}

.pillars__label {
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 1.1rem;
}

/* Full ink, not a softened one: at 72% opacity the label drops to 3.48:1. */
.pillars__item--vision .pillars__label {
	color: var(--ink);
}

.pillars__item p:not(.pillars__label) {
	max-width: 52ch;
	font-size: var(--fs-sm);
	color: inherit;
}

/*
 * The stats ribbon. Light, spanning the full width beneath the cards — four
 * figures on a fourth colour would have turned a composed group into a paint
 * chart, and the quiet strip gives the eye somewhere to land after them.
 *
 * No heading of its own: each figure is already captioned, so a label above them
 * only announced what the reader could see.
 */
.pillars__ribbon {
	/*
	 * Spans every column of the group above. Without this it is simply the next
	 * grid item and lands inside the first column, squeezing four figures into
	 * the width of the about card.
	 */
	grid-column: 1 / -1;
	padding: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
	background: var(--surface-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

@media (min-width: 900px) {
	/*
	 * The about card runs twice the width of the other two: it carries two
	 * paragraphs where they carry one sentence each, and at equal widths its copy
	 * ran to twice their depth and left both of them three-quarters empty.
	 */
	.pillars {
		grid-template-columns: 2fr 1fr 1fr;
	}
}

/* ---- the stats themselves ---- */

.stats {
	margin: 0;
	display: grid;
	gap: 0;
}

.stats__item {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--line);
}

.stats__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.stats__value {
	font-family: var(--font-display);
	font-size: var(--fs-sub);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0;
	color: var(--ink);
}

.stats__label {
	font-size: var(--fs-xs);
	margin: 0;
	color: var(--ink-soft);
}

/* In the ribbon they run across rather than down. */
@media (min-width: 560px) {
	.pillars__ribbon .stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(1.5rem, 1rem + 3vw, 3rem);
	}
}

@media (min-width: 900px) {
	/* The four figures take the ribbon's whole width, divided by hairlines. */
	.pillars__ribbon .stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.pillars__ribbon .stats__item {
		padding: 0 clamp(0.75rem, 0.4rem + 1.2vw, 1.5rem);
		border-bottom: 0;
		border-left: 1px solid var(--line-strong);
	}

	.pillars__ribbon .stats__item:first-child {
		padding-left: 0;
		border-left: 0;
	}
}

/* -------------------------------------------------------------------------
 * 9. Sourcing
 * ---------------------------------------------------------------------- */

.sourcing {
	display: grid;
	gap: clamp(2.5rem, 1.5rem + 3vw, 3.5rem);
}

@media (min-width: 900px) {
	.sourcing {
		grid-template-columns: 1.5fr 1fr;
		align-items: start;
	}
}

.sourcing__subtitle {
	font-size: var(--fs-sub);
	font-weight: 500;
	letter-spacing: -0.02em;
	margin: 0 0 0.75rem;
}

.sourcing__lede {
	margin: 0 0 2rem;
	color: var(--ink-soft);
	font-size: var(--fs-sm);
	max-width: 56ch;
}

.sourcing__aside {
	display: grid;
	gap: 1.5rem;
}

.sourcing__panel {
	padding: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-soft);
}

.section--soft .sourcing__panel {
	background: var(--surface);
}

.sourcing__panel .sourcing__lede {
	margin-bottom: 1.25rem;
}

/* The numbered sequence. */
.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	border-top: 1px solid var(--line);
}

/*
 * Grid areas rather than plain flow: the numeral has to sit beside BOTH the
 * title and the paragraph, and a two-column grid in source order would drop it
 * into the first cell and push the paragraph underneath it.
 */
.steps__item {
	display: grid;
	grid-template-columns: 2.75rem 1fr;
	grid-template-areas:
		"num title"
		"num text";
	column-gap: 1rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--line);
}

.steps__number {
	grid-area: num;
	font-size: var(--fs-xs);
	font-weight: 700;
	color: var(--accent-ink);
	padding-top: 0.3em;
}

.steps__title {
	grid-area: title;
	font-size: var(--fs-base);
	font-weight: 600;
	margin: 0 0 0.25rem;
}

.steps__text {
	grid-area: text;
	margin: 0;
	color: var(--ink-soft);
	font-size: var(--fs-sm);
	max-width: 56ch;
}

.tag-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

.tag-list li {
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	background: var(--surface);
	font-size: var(--fs-xs);
	color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
 * 10. The figure band — image beside copy
 * ---------------------------------------------------------------------- */

/*
 * The freight band runs on the brand black — the same #252525 as the About panel
 * next to it, so the page's two graphite moments read as one colour rather than
 * two near-misses. It also gives the ocean photograph beside it something to cut
 * against; on white the image floated.
 */
.section--figure {
	display: grid;
	gap: 0;
	padding-block: 0;
	background: var(--ink-block);
	color: rgba(255, 255, 255, 0.78);
}

.section--figure .section-title {
	color: #fff;
}

.section--figure .section-intro {
	color: rgba(255, 255, 255, 0.72);
}

.section--figure .section-badge {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.section--figure .timeline__title {
	color: #fff;
}

.section--figure .timeline__text {
	color: rgba(255, 255, 255, 0.72);
}

.section--figure .timeline__marker {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.9);
}

.section--figure .timeline__step:not(:last-child)::before {
	background: rgba(255, 255, 255, 0.2);
}

.section--figure .section__figure {
	height: clamp(260px, 50vw, 420px);
}

.section--figure .section__figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.section--figure .section__figure-copy {
	padding: var(--space-section) var(--gutter);
}

@media (min-width: 900px) {
	.section--figure {
		grid-template-columns: 0.9fr 1.1fr;
		align-items: stretch;
	}

	.section--figure .section__figure {
		height: 100%;
		min-height: 560px;
	}

	.section--figure .section__figure-copy {
		padding-inline: clamp(2.5rem, 1rem + 5vw, 5rem);
		max-width: 680px;
	}
}

/* The freight timeline. */
.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

/*
 * The spine is drawn per step rather than once down the whole list, so it stops
 * after the second-to-last marker instead of trailing past the final step — no
 * arithmetic against the list's height required.
 */
.timeline__step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 17px;
	top: 38px;
	bottom: 0;
	width: 1px;
	background: var(--line-strong);
}

.timeline__step {
	position: relative;
	display: grid;
	grid-template-columns: 36px 1fr;
	column-gap: 1.25rem;
	padding-bottom: 1.75rem;
}

.timeline__step:last-child {
	padding-bottom: 0;
}

.timeline__marker {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink-soft);
	font-size: var(--fs-xs);
	font-weight: 600;
}

.timeline__title {
	font-size: var(--fs-base);
	font-weight: 600;
	margin: 0 0 0.25rem;
	padding-top: 0.4rem;
}

.timeline__text {
	margin: 0;
	color: var(--ink-soft);
	font-size: var(--fs-sm);
	max-width: 56ch;
}

/* -------------------------------------------------------------------------
 * 11. Values band, audience, pull-quote
 * ---------------------------------------------------------------------- */

.audience-band {
	display: grid;
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	margin-top: clamp(3rem, 2rem + 2.5vw, 4rem);
	padding-top: clamp(2.5rem, 1.5rem + 2.5vw, 3.5rem);
	border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
	.audience-band {
		grid-template-columns: 1fr 1.2fr;
		align-items: start;
	}
}

.audience-band__title {
	font-size: var(--fs-sub);
	font-weight: 500;
	letter-spacing: -0.02em;
	margin: 0 0 0.75rem;
}

.audience-band__copy p {
	color: var(--ink-soft);
	font-size: var(--fs-sm);
	max-width: 46ch;
}

/*
 * Who we serve: a ruled list, not a row of pills. Pills made five plain phrases
 * look like interactive filters they are not.
 */
/*
 * Bottom rules only. The container used to carry a border-top as well, which
 * put a line above the first item and none under the last — the list read as
 * though it were continuing from something above it.
 */
.audience {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
	counter-reset: audience;
}

/*
 * A step up from the surrounding body copy. These five phrases are the answer to
 * the heading beside them, not supporting detail, and at --fs-sm they read as a
 * footnote to the paragraph rather than as the content of the section.
 */
.audience__item {
	counter-increment: audience;
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--line);
	font-size: var(--fs-lg);
}

/*
 * Tabular figures and a fixed minimum width. Montserrat's default numerals are
 * proportional, so "04" measured a couple of pixels narrower than "01" and every
 * label in the list started at a slightly different x.
 */
.audience__item::before {
	content: counter(audience, decimal-leading-zero);
	font-size: var(--fs-xs);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	min-width: 1.75em;
	color: var(--accent-ink);
	flex: none;
}

.pull-quote {
	margin: 0 auto;
	max-width: 34ch;
	text-align: center;
}

.pull-quote p {
	font-family: var(--font-display);
	font-size: var(--fs-sub);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.025em;
	margin-bottom: 1rem;
}

.pull-quote cite {
	font-size: var(--fs-xs);
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-ink);
}

/* -------------------------------------------------------------------------
 * 12. FAQ
 *
 * A narrow centred column of ruled rows — the reference's max-w-xl accordion.
 * Built on <details>/<summary>, so it opens, closes and takes keyboard focus
 * with no JavaScript at all; site.js only adds close-the-others.
 * ---------------------------------------------------------------------- */

.faq-block {
	max-width: 640px;
	margin-inline: auto;
	text-align: center;
}

.faq-block__label {
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--accent-ink);
	margin-bottom: 0.5rem;
}

.faq-block__title {
	font-size: clamp(1.6rem, 1.35rem + 1.1vw, 2.15rem);
	font-weight: 600;
	margin: 0;
}

.faq-block__intro {
	font-size: var(--fs-sm);
	color: var(--ink-soft);
	margin: 0.5rem 0 0;
	padding-bottom: 1.25rem;
}

.faq {
	display: grid;
	gap: 0;
	width: 100%;
	text-align: left;
}

.faq__item {
	border-bottom: 1px solid var(--line-strong);
}

.faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1rem 0;
	font-size: var(--fs-base);
	font-weight: 500;
	line-height: 1.45;
	cursor: pointer;
	list-style: none;
}

/* Hide the default disclosure triangle in both engines. */
.faq__question::-webkit-details-marker {
	display: none;
}

.faq__item[open] .faq__question {
	color: var(--ink);
}

/* A chevron drawn from two borders, rotating 180° when the row opens. */
.faq__marker {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
	transition: transform 0.5s ease-in-out;
}

.faq__marker::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 9px;
	height: 9px;
	border-right: 1.5px solid var(--ink);
	border-bottom: 1.5px solid var(--ink);
	transform: rotate(45deg);
}

.faq__item[open] .faq__marker {
	transform: rotate(180deg);
}

/*
 * The answer fades and slides in on open. <details> removes the content from the
 * box tree when closed, so a transition cannot run on the way out — an entry
 * animation is the honest version of the reference's max-height transition, and
 * it costs nothing when scripting is off.
 */
.faq__answer {
	padding: 0 0 1.25rem;
	color: var(--ink-soft);
	font-size: var(--fs-sm);
	max-width: 60ch;
	animation: faq-in 0.35s ease;
}

@keyframes faq-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* -------------------------------------------------------------------------
 * 13. Callouts and CTA band
 * ---------------------------------------------------------------------- */

.callout {
	padding: clamp(1.4rem, 1rem + 1.5vw, 1.9rem);
	background: var(--surface-soft);
	border: 1px solid var(--line);
	border-left: 2px solid var(--accent);
	border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.section--soft .callout {
	background: var(--surface);
}

.callout--compact {
	margin-top: 2rem;
}

.callout__title {
	font-size: var(--fs-base);
	font-weight: 600;
	margin: 0 0 0.6rem;
}

.callout p,
.callout ul {
	margin: 0;
	color: var(--ink-soft);
	font-size: var(--fs-sm);
}

.callout ul {
	padding-left: 1.2em;
}

.callout li {
	margin-bottom: 0.4em;
}

.cta-band {
	background: var(--dark);
	color: #fff;
	padding-block: clamp(3.5rem, 2.25rem + 4vw, 5rem);
}

.cta-band__inner {
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
	display: grid;
	gap: 2rem;
	align-items: center;
}

.cta-band__title {
	font-size: var(--fs-title);
	font-weight: 500;
	color: #fff;
	margin-bottom: 0.75rem;
	max-width: 18ch;
}

.cta-band__text {
	color: rgba(255, 255, 255, 0.75);
	font-size: var(--fs-sm);
	max-width: 54ch;
	margin: 0;
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.cta-band .btn--outline {
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.cta-band .btn--outline:hover,
.cta-band .btn--outline:focus-visible {
	background: #fff;
	border-color: #fff;
	color: var(--dark);
}

@media (min-width: 900px) {
	.cta-band__inner {
		grid-template-columns: 1.4fr auto;
	}
}

/* -------------------------------------------------------------------------
 * 14. Page hero — the opening band on Blog and Contact
 * ---------------------------------------------------------------------- */

.page-hero {
	background: var(--surface-soft);
	border-bottom: 1px solid var(--line);
	padding-block: clamp(2.75rem, 1.5rem + 5vw, 4.5rem);
}

.page-hero__title {
	font-size: var(--fs-title);
	font-weight: 500;
	max-width: 22ch;
	margin: 0 0 1rem;
}

.page-hero__text {
	max-width: 60ch;
	font-size: var(--fs-base);
	color: var(--ink-soft);
	margin: 0;
}

/*
 * Centred variant. The measures still apply — they are what stop a title running
 * the full 1080px — so they need auto side margins to stay centred within it.
 */
.page-hero--center {
	text-align: center;
}

.page-hero--center .page-hero__title,
.page-hero--center .page-hero__text {
	margin-inline: auto;
}

.page-hero--center .editorial-tools {
	justify-content: center;
}

/* -------------------------------------------------------------------------
 * 15. Editorial: cards, grids, pagination, article
 * ---------------------------------------------------------------------- */

.editorial-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-top: 2rem;
}

.editorial-tools__back {
	margin: 0;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	flex: 1 1 300px;
	max-width: 420px;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 0.6rem 1.1rem;
	font: inherit;
	font-size: var(--fs-sm);
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
}

.search-form__input:focus {
	border-color: var(--ink-soft);
	outline: none;
}

/* A pill, to match the input it sits beside — .btn's 4px corner clashed with it. */
.search-form__submit {
	border-radius: var(--radius-pill);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.chip {
	display: inline-block;
	padding: 0.35rem 0.95rem;
	border-radius: var(--radius-pill);
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: var(--ink-soft);
	text-decoration: none;
	font-size: var(--fs-sm);
}

.chip:hover,
.chip.is-current {
	background: var(--dark);
	border-color: var(--dark);
	color: #fff;
}

/*
 * The article card. A soft-filled bordered panel with a generous radius and an
 * inset rounded image — the reference's rounded-[18px] card holding a
 * rounded-2xl thumbnail. One definition, two shapes.
 */
.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--surface-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	transition: transform 0.25s ease, box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.section--soft .post-card {
	background: var(--surface);
}

.post-card:hover {
	transform: translateY(-4px);
	border-color: var(--line-strong);
	box-shadow: var(--shadow-soft);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	max-width: 100%;
	overflow: hidden;
	border-radius: var(--radius-img);
	background: var(--surface-sink);
	flex: none;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * The fallback for a post with no featured image.
 *
 * Light, not dark. A near-black panel was legible but it made three of them in
 * the bento the heaviest thing on an otherwise airy page — and a saturated one
 * would spend the page's whole colour budget inside a thumbnail. This reads as a
 * deliberate empty cover, and disappears the moment a real image is set.
 */
.post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		repeating-linear-gradient(
			135deg,
			transparent,
			transparent 14px,
			rgba(23, 28, 27, 0.028) 14px,
			rgba(23, 28, 27, 0.028) 28px
		),
		linear-gradient(135deg, var(--surface-sink), #e2e7e5);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.5rem;
}

.post-card__meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
	font-size: var(--fs-sm);
	color: var(--ink-soft);
}

/* The hairline pip between date and reading time. */
.post-card__pip {
	width: 1px;
	height: 0.75rem;
	background: var(--ink-faint);
	flex: none;
}

.post-card__time {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.post-card__time svg {
	width: 16px;
	height: 16px;
}

.post-card__title {
	font-size: var(--fs-lg);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.015em;
	margin: 0 0 0.75rem;
	max-width: 24ch;
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--accent-ink);
}

.post-card__excerpt {
	margin: 0 0 1.25rem;
	color: var(--ink-soft);
	font-weight: 300;
	font-size: var(--fs-sm);
	max-width: 42ch;
}

.post-card__more {
	margin: auto 0 0;
}

/* Image left, words right, from 560px up. */
@media (min-width: 560px) {
	.post-card--compact {
		flex-direction: row;
		gap: 1.25rem;
	}

	.post-card--compact .post-card__media {
		width: clamp(180px, 36%, 260px);
		aspect-ratio: auto;
		align-self: stretch;
	}

	.post-card--compact .post-card__body {
		padding-left: 0;
	}
}

/*
 * The home page bento: one tall card spanning both rows beside two stacked
 * horizontal cards. Below 900px it degrades to a single column, which is the
 * right shape on a phone anyway.
 */
.post-bento {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.post-bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-bento > :first-child {
		grid-row: span 2;
	}

	.post-bento > :first-child .post-card__media {
		aspect-ratio: 16 / 10;
	}
}

.post-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/*
 * The related-articles row: two across on a phone, four on a desktop.
 *
 * Doubled specificity so it does not depend on sitting after every .post-grid
 * media query in the file — at equal specificity those would win at whichever
 * breakpoint happened to be declared last.
 */
.post-grid.post-grid--mini {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.65rem, 0.4rem + 1vw, 1.25rem);
}

@media (min-width: 900px) {
	.post-grid.post-grid--mini {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.post-card--mini .post-card__media {
	aspect-ratio: 3 / 2;
}

.post-card--mini .post-card__body {
	padding: clamp(0.75rem, 0.55rem + 0.8vw, 1.1rem);
}

.post-card--mini .post-card__meta {
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	font-size: var(--fs-xs);
}

.post-card--mini .post-card__time svg {
	width: 13px;
	height: 13px;
}

.post-card--mini .post-card__title {
	font-size: var(--fs-sm);
	line-height: 1.4;
	letter-spacing: 0;
	margin: 0;
	max-width: none;
}

/*
 * Two of these tiles on a phone leaves about 150px of card width, which is not
 * enough for "September 15 · 1 min read" — it broke over two lines and stranded
 * the pip at the end of the first. The date alone is the more useful half.
 */
@media (max-width: 559px) {
	.post-card--mini .post-card__pip,
	.post-card--mini .post-card__time {
		display: none;
	}
}

.pagination {
	margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	background: var(--surface);
	text-decoration: none;
	color: var(--ink);
	font-size: var(--fs-sm);
}

.pagination .page-numbers:hover {
	border-color: var(--ink);
}

.pagination .page-numbers.current {
	background: var(--dark);
	border-color: var(--dark);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

.empty-state {
	max-width: var(--max-width-narrow);
	margin-inline: auto;
	text-align: center;
}

.empty-state__title {
	font-size: var(--fs-sub);
}

.empty-state__text {
	color: var(--ink-soft);
	font-size: var(--fs-sm);
	margin-bottom: 2rem;
}

.empty-state .search-form {
	margin-inline: auto;
}

.empty-state__suggestions {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

.empty-state__subtitle {
	font-size: var(--fs-base);
}

.empty-state__suggestions ul {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0.5rem;
	font-size: var(--fs-sm);
}

.article__header {
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem) clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

.article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.9rem;
	margin: 0 0 1rem;
	font-size: var(--fs-sm);
	color: var(--ink-soft);
}

.article__category {
	font-weight: 600;
	color: var(--accent-ink);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: var(--fs-xs);
}

.article__title {
	font-size: var(--fs-title);
	font-weight: 500;
	margin: 0 0 1rem;
}

.article__standfirst {
	font-size: var(--fs-lg);
	color: var(--ink-soft);
	margin: 0;
}

.article__media {
	margin: 0 0 clamp(2rem, 1rem + 3vw, 3rem);
}

.article__media img {
	width: 100%;
	max-height: 540px;
	object-fit: cover;
}

.article__media figcaption {
	max-width: var(--max-width-narrow);
	margin: 0.75rem auto 0;
	padding-inline: var(--gutter);
	font-size: var(--fs-sm);
	color: var(--ink-soft);
}

.article__body {
	padding-bottom: 2rem;
}

.article__tags {
	margin-block: 2rem;
}

.article-nav {
	display: grid;
	gap: 1rem;
	margin-block: 2rem 4rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
	.article-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.article-nav__link--next {
		text-align: right;
	}
}

.article-nav__link {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface-soft);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease;
}

.article-nav__link:hover {
	border-color: var(--line-strong);
	color: inherit;
}

.article-nav__link:hover .article-nav__title {
	color: var(--accent-ink);
}

.article-nav__label {
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.article-nav__title {
	font-weight: 500;
	font-size: var(--fs-sm);
}

.page-links {
	display: flex;
	gap: 0.5rem;
	margin-block: 2rem;
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * 16. Contact page and form
 * ---------------------------------------------------------------------- */

.contact-layout {
	display: grid;
	gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
}

@media (min-width: 1000px) {
	.contact-layout {
		grid-template-columns: 1.3fr 1fr;
		align-items: start;
	}
}

/*
 * The form sits in a bordered panel. It is the one place on the site where a box
 * is doing real work: it groups eight controls that would otherwise float loose.
 */
.contact-layout__form {
	padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
	background: var(--surface-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.contact-layout__heading {
	font-size: var(--fs-sub);
	font-weight: 500;
	letter-spacing: -0.02em;
	margin-bottom: 1.5rem;
}

.contact-direct {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-bottom: 1rem;
	font-size: var(--fs-sm);
}

.contact-direct__label {
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.offices {
	display: grid;
	gap: 0;
	margin-top: 1.5rem;
}

.offices__card {
	padding: 1.4rem 0;
	border-top: 1px solid var(--line);
}

.offices__label {
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-ink);
}

.offices__city {
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	font-weight: 500;
	margin: 0.3rem 0 0.6rem;
}

.offices__address {
	font-style: normal;
	color: var(--ink-soft);
	font-size: var(--fs-sm);
	margin-bottom: 0.6rem;
}

.offices__phone {
	display: block;
	font-size: var(--fs-sm);
	font-weight: 500;
	text-decoration: none;
}

.form {
	display: grid;
	gap: 1.1rem;
}

.form__row {
	display: grid;
	gap: 1.1rem;
}

@media (min-width: 640px) {
	.form__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.form__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
}

.form__label {
	font-weight: 500;
	font-size: var(--fs-sm);
}

.form__required {
	color: var(--accent-ink);
}

.form__input {
	width: 100%;
	padding: 0.65rem 0.9rem;
	font: inherit;
	font-size: var(--fs-sm);
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	transition: border-color 0.15s ease;
}

.form__input:focus {
	border-color: var(--ink-soft);
	outline: none;
}

.form__input.has-error {
	border-color: var(--accent);
}

.form__textarea {
	resize: vertical;
	min-height: 140px;
}

.form__error {
	font-size: var(--fs-xs);
	color: var(--accent-ink);
	font-weight: 600;
}

/*
 * The honeypot must be invisible without being display:none — some bots skip
 * fields that are display:none, which would defeat the trap.
 */
.form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 0.5rem;
}

.form__note {
	margin: 0;
	font-size: var(--fs-xs);
	color: var(--ink-soft);
	max-width: 34ch;
}

.notice {
	padding: 1rem 1.25rem;
	border-radius: var(--radius-md);
	margin-bottom: 1.5rem;
	border: 1px solid var(--line);
	border-left: 2px solid;
	font-size: var(--fs-sm);
}

.notice--success {
	background: var(--surface-sink);
	border-left-color: var(--ink);
	color: var(--ink);
}

.notice--error {
	background: #fdf1ea;
	border-left-color: var(--accent);
	color: #7a2f0d;
}

/* -------------------------------------------------------------------------
 * 17. 404
 * ---------------------------------------------------------------------- */

.error-links {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--line);
}

.error-links__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1.25rem 2rem 1.25rem 0;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
	color: inherit;
	transition: padding-left 0.2s ease;
}

.error-links__item::after {
	content: "→";
	position: absolute;
	right: 0;
	top: 1.25rem;
	color: var(--ink-faint);
	transition: transform 0.2s ease, color 0.2s ease;
}

.error-links__item:hover {
	padding-left: 0.5rem;
}

.error-links__item:hover::after {
	transform: translateX(3px);
	color: var(--accent-ink);
}

.error-links__title {
	font-weight: 600;
	font-size: var(--fs-base);
}

.error-links__text {
	color: var(--ink-soft);
	font-size: var(--fs-sm);
}

.error-search {
	margin-top: 3rem;
}

.error-search__title {
	font-size: var(--fs-base);
}

/* -------------------------------------------------------------------------
 * 18. Footer
 *
 * Two groups on one wrapping flex row — the brand and its link columns at the
 * left, the blurb, socials and copyright pushed right. Near-black, small grey
 * type, generous column gaps.
 * ---------------------------------------------------------------------- */

.site-footer {
	background: var(--dark);
	color: #9aa3a1;
	font-size: var(--fs-xs);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem;
	padding: clamp(3rem, 2rem + 3vw, 4rem) var(--gutter-wide);
}

@media (min-width: 1100px) {
	.site-footer__inner {
		justify-content: space-between;
		gap: 5rem;
	}
}

.site-footer__main {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 2.5rem;
}

@media (min-width: 768px) {
	.site-footer__main {
		gap: clamp(3rem, 1rem + 6vw, 8rem);
	}
}

/*
 * A typeset wordmark, not the logo image. assets/img/logo.jpeg is a square JPEG
 * on a WHITE ground, so on this near-black it renders as a white tile with the
 * mark floating inside it. The header still uses the image, where its white
 * ground matches the header's own.
 */
.site-footer__wordmark {
	display: inline-block;
	text-decoration: none;
	line-height: 1.15;
}

.site-footer__wordmark-top {
	display: block;
	font-size: var(--fs-lg);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--accent-lift);
}

.site-footer__wordmark-bottom {
	display: block;
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #fff;
}

.site-footer__heading {
	font-weight: 600;
	color: #f1f5f4;
	margin: 0;
}

.site-footer__list {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.site-footer__list a {
	color: inherit;
	text-decoration: none;
}

.site-footer__list a:hover {
	color: var(--accent-lift);
}

.site-footer__side {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
}

@media (min-width: 768px) {
	.site-footer__side {
		align-items: flex-end;
		text-align: right;
	}
}

.site-footer__blurb {
	max-width: 15rem;
	margin: 0;
}

.site-footer__social {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 0.75rem;
}

.site-footer__social a {
	display: inline-flex;
	color: #9aa3a1;
	transition: color 0.2s ease;
}

.site-footer__social a:hover {
	color: var(--accent-lift);
}

.site-footer__social svg {
	width: 20px;
	height: 20px;
}

.site-footer__copy {
	margin: 0.75rem 0 0;
}

/* -------------------------------------------------------------------------
 * 19. Print
 * ---------------------------------------------------------------------- */

@media print {
	.site-header,
	.site-footer,
	.cta-band,
	.hero__actions,
	.site-nav,
	.skip-link,
	.pagination,
	.article-nav {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 11pt;
	}

	.hero,
	.page-hero {
		background: #fff !important;
		color: #000 !important;
	}

	.hero__title,
	.page-hero__title {
		color: #000 !important;
	}

	.hero__media,
	.hero__scrim {
		display: none !important;
	}

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		word-break: break-all;
	}
}
