/*
 * Site-specific styles.
 *
 * Reach for this only when theme.json cannot express something. Design tokens
 * -- colours, type, spacing, radii -- belong in theme.json, where the client
 * can also reach them through Global Styles.
 *
 * Always reference the --icons-* contract rather than literal values, so this
 * file survives a rebrand.
 */

/* Example:
.site-notice {
	background: var(--icons-color-surface);
	padding: var(--icons-space-sm) var(--icons-space-md);
	border-radius: var(--icons-radius-md);
	font-size: var(--icons-text-sm);
}
*/

/* ===========================================================================
 * The concept's stylesheet, mapped onto the builder.
 *
 * Lifted from Clients/SGF/concept-a-cream.html rather than reproduced token by
 * token. Porting it one setting at a time — palette, then fonts, then radius,
 * then buttons — found the next mismatch on every round, because a design is a
 * set of relationships and moving one value at a time never lands them all.
 *
 * These are the relationships. Every page on this site inherits them, including
 * the ones nobody has designed yet, and the builder still owns the structure —
 * so the client can still edit the words and the modules still work.
 * =========================================================================== */

:root {
	--sgf-cream: #fdf7f0;
	--sgf-cream-2: #f7e7d7;
	--sgf-ink: #14141c;
	--sgf-ink-deep: #0c0c16;
	--sgf-ink-2: #5f584f;
	--sgf-ink-3: #8c8378;
	--sgf-line: #e7d9c9;
	--sgf-line-2: #d8c6b1;
	--sgf-red: #c8102e;
	--sgf-red-2: #9e0c22;

	/* On the dark band the brand red does not carry — it reads brown against
	 * near-black. The concept lightens it there, and that one substitution is
	 * most of why the dark section looks like the same design rather than an
	 * inverted copy of it. */
	--sgf-red-on-dark: #f0364f;

	--sgf-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
	--sgf-gut: clamp(20px, 4vw, 60px);
	--sgf-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------------------------------------------------------------- Measure */

/* The concept runs to 1400px including its gutter, which is wider than the
 * framework's 1216 and narrower than its 1472. Set once, here, rather than per
 * row: the header and footer parts have to land on the same line as the rows or
 * every band looks a few pixels out of true. */
.ib-row {
	padding-inline: var(--sgf-gut);
}

.ib-row.is-width-normal .ib-row__inner {
	--ib-row-width: 1280px;
}

/* ------------------------------------------------------------- Typography */

.ib-heading {
	letter-spacing: -0.032em;
	line-height: 1.02;
}

/* The small tracked label above a heading. Monospace, because that is the one
 * place this design uses a second typeface, and it is what stops the page
 * reading as a single-font template. The rule before it is the concept's, and
 * it is doing more work than it looks: without it the label floats. */
.ib-heading.is-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-family: var(--sgf-mono);
	font-size: 11px !important;
	letter-spacing: 0.18em !important;
	font-weight: 400;
	line-height: 1.4;
}

.ib-heading.is-eyebrow::before {
	content: "";
	inline-size: 22px;
	block-size: 1px;
	flex: none;
	background: currentColor;
}

/* The lede: measured, not full-width. Running to the edge of a twelve-column
 * row is the single most common way a considered layout starts looking like a
 * document. */
.ib-text {
	line-height: 1.55;
	max-inline-size: 46ch;
	color: var(--sgf-ink-2);
}

/* A row that sets its own text colour — the dark band, the hero over its video
 * — has already decided this, and a colour written here would win over it and
 * put grey-brown body copy on near-black. */
.ib-row[style*="color:"] .ib-text {
	color: inherit;
	opacity: 0.78;
}

/* --------------------------------------------------------------- Buttons */

.ib-button {
	--sgf-fill: var(--sgf-ink);

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -0.012em;
	border: 1px solid var(--sgf-ink);
	border-radius: 999px;
	white-space: nowrap;

	/* The fill runs left to right on hover rather than switching in one step,
	 * which reads calmer than a pill changing colour. Painted as a background
	 * image so the border and the text can transition independently. */
	background-image: linear-gradient(var(--sgf-fill), var(--sgf-fill));
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 0% 102%;
	transition: background-size 0.5s var(--sgf-ease), color 0.34s ease,
		border-color 0.34s ease, box-shadow 0.34s ease;
}

.ib-button:hover {
	background-size: 100% 102%;
	color: var(--sgf-cream);
}

.ib-button.is-solid {
	background-color: var(--sgf-red);
	border-color: var(--sgf-red);
	color: #fff;
	--sgf-fill: var(--sgf-red-2);
}

.ib-button.is-solid:hover {
	border-color: var(--sgf-red-2);
	color: #fff;
	box-shadow: 0 10px 30px -12px rgba(200, 16, 46, 0.55);
}

.ib-button.is-outline {
	background-color: transparent;
	border-color: var(--sgf-line-2);
	color: var(--sgf-ink);
}

.ib-button.is-outline:hover {
	border-color: var(--sgf-ink);
}

/* On a photograph or the dark band an outline button has to hold its own
 * against whatever is behind it, so it borrows white rather than the line
 * colour and inverts on hover. */
.ib-row[style*="color:"] .ib-button.is-outline {
	border-color: rgba(255, 255, 255, 0.34);
	color: #fff;
	--sgf-fill: #fff;
}

.ib-row[style*="color:"] .ib-button.is-outline:hover {
	color: var(--sgf-ink-deep);
	border-color: #fff;
}

/* Two buttons under a paragraph are one control group, not two stacked
 * paragraphs. Scoped to the hero, which is the only place the concept pairs
 * them: applied everywhere it also shrinks a lone button to its own width, and
 * the closing band's right-aligned call to action then had nothing to align
 * against and sat in the middle of its column. */
#hero .ib-el--button {
	display: inline-block;
	vertical-align: top;
	margin-inline-end: 12px;
}

/* Both buttons keep the same top margin. Zeroing it on the second one is the
 * obvious move and the wrong one: they sit side by side as inline blocks, so a
 * different top margin drops one of them half a line below the other. */
#hero .ib-el--button + .ib-el--button {
	margin-block-start: clamp(26px, 2.6vw, 36px);
}

#hero .ib-button-wrap {
	display: inline-flex;
}

/* ------------------------------------------------------------------ Hero */

/* Same shorthand trap as the page header, and it was hidden here: the hero's
 * <video> sits over the background, so nothing looked wrong until the poster
 * had to stand on its own — which is what happens under prefers-reduced-motion,
 * where the video is dropped deliberately. */
#hero {
	background-color: var(--sgf-ink-deep);
}

/*
 * Enough to clear the header, and no more.
 *
 * The concept pushes its hero content down with 190px of top padding, because
 * there the padding *is* what positions it. Here the row is bottom-aligned
 * already, so the padding only ever adds height — and at 190 the whole hero came
 * to 907px against a 900px screen, which put the modes strip and the scroll cue
 * below the fold. The point of a full-height hero is that everything in it is on
 * the first screen.
 *
 * It still earns its place: if the copy grows, this is what stops the headline
 * running up under the header.
 */
#hero .ib-row__inner {
	padding-block-start: clamp(96px, 8vw, 112px);
}

/*
 * The scroll cue.
 *
 * A line with a lit segment travelling down it, and the word beside it. Drawn
 * as two background layers on a pseudo-element rather than as an element in the
 * layout: it is decoration that belongs to a full-height hero, it says nothing
 * a client would want to edit, and putting it in the builder would only invite
 * someone to delete it and wonder why the hero looks unfinished.
 */
#hero::after {
	content: "Scroll";
	position: absolute;
	inset-inline-end: var(--sgf-gut);
	inset-block-end: clamp(28px, 3.4vw, 48px);
	z-index: 3;
	padding-inline-start: 33px;
	font-family: var(--sgf-mono);
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	line-height: 34px;
	pointer-events: none;

	background-image:
		linear-gradient(#fff, #fff),
		linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4));
	background-repeat: no-repeat;
	background-size: 1px 34px, 1px 34px;
	background-position: left -34px, left top;
	animation: sgf-scrollcue 2.4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes sgf-scrollcue {
	0% {
		background-position: left -34px, left top;
	}

	60%,
	100% {
		background-position: left 34px, left top;
	}
}

@media (prefers-reduced-motion: reduce) {
	#hero::after {
		animation: none;
		background-position: left top, left top;
	}
}

@media (max-width: 47.999rem) {
	#hero::after {
		display: none;
	}
}

/*
 * The scrim.
 *
 * The row's own overlay is a flat wash, and a flat wash over a photograph
 * either greys the picture out or leaves the text illegible — there is no value
 * that does both. The concept stacks three gradients instead: an even veil to
 * take the whole frame down, a heavy foot so the headline and the modes strip
 * sit on something solid, and a lean from the left so the first words are the
 * darkest part of the image.
 */
#hero .ib-row__overlay {
	background-color: transparent !important;
	opacity: 1 !important;
	background-image:
		linear-gradient(rgba(12, 12, 22, 0.3), rgba(12, 12, 22, 0.3)),
		linear-gradient(
			to top,
			rgba(12, 12, 22, 0.82) 0%,
			rgba(12, 12, 22, 0.44) 34%,
			rgba(12, 12, 22, 0) 66%,
			rgba(12, 12, 22, 0.1) 100%
		),
		linear-gradient(
			to right,
			rgba(12, 12, 22, 0.5) 0%,
			rgba(12, 12, 22, 0.08) 58%,
			rgba(12, 12, 22, 0) 88%
		);
}

#hero .ib-heading.is-eyebrow {
	color: #fff;
}

#hero .ib-heading.is-eyebrow::before {
	background: var(--sgf-red-on-dark);
}

#hero h1 {
	max-inline-size: 16ch;
	margin-block-start: 26px;
}

#hero .ib-text {
	margin-block-start: 26px;
	max-inline-size: 44ch;
	color: rgba(255, 255, 255, 0.82);
	opacity: 1;
}

#hero .ib-el--button {
	margin-block-start: clamp(26px, 2.6vw, 36px);
}

/* The modes strip along the foot of the hero: four labelled links across the
 * full width, divided by hairlines. A number element, turned on its head —
 * the label belongs above the title here, which is the one thing the element
 * does not do on its own. */
#hero .ib-stat {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin-block-start: clamp(34px, 4vw, 58px);
	border-block-start: 1px solid rgba(255, 255, 255, 0.2);
}

#hero .ib-stat__item {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 8px;
	padding: 20px clamp(12px, 1.6vw, 22px) 4px;
	border-inline-start: 1px solid rgba(255, 255, 255, 0.2);
}

#hero .ib-stat__item:first-child {
	border-inline-start: 0;
	padding-inline-start: 0;
}

#hero .ib-stat__value {
	font-size: clamp(15px, 1.3vw, 18px) !important;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #fff;
}

#hero .ib-stat__label {
	font-family: var(--sgf-mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sgf-red-on-dark);
}

/* ------------------------------------------------------------ Page header */

/*
 * The top of every page that is not the home page.
 *
 * The video hero fills a screen, which is right once and in the way everywhere
 * else. This is the same construction at a third of the height, and it stays
 * dark for a structural reason rather than a decorative one: the header is
 * transparent and white, so a light page header would mean the header changing
 * colour per page and two sets of rules to keep in step.
 */
/*
 * `background-color`, not `background`.
 *
 * The shorthand resets background-image, and `--ib-row-image` — the row's own
 * photograph — is exactly that. The band came out flat near-black with the
 * picture still sitting in a custom property nothing read.
 */
#phead {
	background-color: var(--sgf-ink-deep);
}

/* Enough to clear the fixed header, which overlays this band the same way it
 * overlays the hero. Without it the eyebrow sits behind the navigation. */
#phead .ib-row__inner {
	padding-block-start: clamp(104px, 9vw, 136px);
}

/* The same three-gradient scrim as the hero: an even veil over the whole
 * frame, a heavy foot under the words, and a lean from the left. A flat wash
 * either greys the photograph out or leaves the lede unreadable. */
#phead .ib-row__overlay {
	background-color: transparent !important;
	opacity: 1 !important;
	background-image:
		linear-gradient(rgba(12, 12, 22, 0.42), rgba(12, 12, 22, 0.42)),
		linear-gradient(
			to top,
			rgba(12, 12, 22, 0.86) 0%,
			rgba(12, 12, 22, 0.45) 46%,
			rgba(12, 12, 22, 0.12) 100%
		),
		linear-gradient(
			to right,
			rgba(12, 12, 22, 0.55) 0%,
			rgba(12, 12, 22, 0.06) 62%,
			rgba(12, 12, 22, 0) 90%
		);
}

#phead .ib-heading.is-eyebrow {
	color: #fff;
}

#phead .ib-heading.is-eyebrow::before {
	background: var(--sgf-red-on-dark);
}

#phead h1 {
	margin-block-start: 22px;
	max-inline-size: 17ch;
}

#phead .ib-text {
	margin-block-start: 22px;
	max-inline-size: 52ch;
	color: rgba(255, 255, 255, 0.82);
	opacity: 1;
}

/* ------------------------------------------------------------ Facts strip */

#about .ib-col {
	border-block-start: 1px solid var(--sgf-line-2);
	padding-block-start: 22px;
}

#about .ib-icon {
	margin-block-end: 22px;
}

#about .icons-icon {
	inline-size: 34px !important;
	block-size: 34px !important;
	stroke-width: 1.3;
}

#about h3:not(.is-eyebrow) {
	font-size: clamp(21px, 2.1vw, 28px) !important;
	letter-spacing: -0.03em;
	line-height: 1.12;
	font-weight: 600;
}

#about .ib-text {
	margin-block-start: 10px;
	font-size: 14.5px;
	line-height: 1.5;
	max-inline-size: 30ch;
}

/* --------------------------------------------------------- Section heads */

/* The heading and the paragraph beside it sit on the same baseline, which is
 * what makes a two-column head read as one line of thought rather than two
 * stacked blocks. */
/* Every one of these is `h<n>:not(.is-eyebrow)`: an eyebrow is a heading too,
 * and an id-scoped type selector outranks the eyebrow's own class rule — which
 * is how "06 · Get in touch" came out at section-heading size. */
#services h2:not(.is-eyebrow),
#process h2:not(.is-eyebrow),
#lanes h2:not(.is-eyebrow),
#contact h2:not(.is-eyebrow),
#express h2:not(.is-eyebrow),
#family h2:not(.is-eyebrow) {
	margin-block-start: 20px;

}

/* --------------------------------------------------------- Service cards */

/*
 * The number rides at the top of the picture and the title sits at the bottom,
 * which is what gives the row its rhythm. The tile stacks its words in one
 * block at the bottom by default, so the block is dissolved — `display:
 * contents` makes the eyebrow, title and body direct children of the tile — and
 * the eyebrow then pushes everything else down with an auto margin.
 */
#services-grid .ib-tile {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
	padding: clamp(24px, 2.6vw, 38px);
}

#services-grid .ib-tile__body {
	display: contents;
}

/*
 * The scrim has to hold up a beach in full sun as well as an evening shot, and
 * a flat wash cannot: the value that makes the words legible on the bright
 * container photograph greys the dark ones out. Heavy at the foot where the
 * text is, a light veil over the whole frame, and a touch at the top so the
 * number reads too.
 */
#services-grid .ib-tile__overlay {
	background-color: transparent !important;
	opacity: 1 !important;
	background-image:
		linear-gradient(
			to top,
			rgba(10, 10, 18, 0.94) 0%,
			rgba(10, 10, 18, 0.76) 30%,
			rgba(10, 10, 18, 0.3) 64%,
			rgba(10, 10, 18, 0.06) 100%
		),
		linear-gradient(to bottom, rgba(10, 10, 18, 0.34) 0%, rgba(10, 10, 18, 0) 32%);
}

#services-grid .ib-tile__img {
	filter: saturate(0.92) brightness(0.92);
}

#services-grid .ib-tile__eyebrow {
	margin-block-end: auto;
	font-family: var(--sgf-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: none;
	opacity: 0.8;
}

#services-grid .ib-tile__title {
	font-size: clamp(21px, 2.2vw, 32px);
	letter-spacing: -0.028em;
	line-height: 1.05;
	margin-block-end: 12px;
	text-shadow: 0 1px 24px rgba(10, 10, 18, 0.5);
}

#services-grid .ib-tile__text {
	margin-block-start: 0;
	font-size: 15.5px;
	line-height: 1.55;
	max-inline-size: 40ch;
	opacity: 0.86;
}

/* ------------------------------------------------------------- Dark band */

#family {
	--sgf-red: var(--sgf-red-on-dark);
}

#family .ib-heading.is-eyebrow {
	color: var(--sgf-red-on-dark);
}

#family .ib-quote {
	margin-block: 22px 24px;
	border-inline-start-width: 2px;
	padding-inline-start: 20px;
}

#family .ib-quote blockquote {
	font-size: clamp(19px, 1.9vw, 26px) !important;
	line-height: 1.32;
	letter-spacing: -0.024em;
	font-weight: 400;
	font-style: normal;
	max-inline-size: none;
	color: #fff;
}

#family .ib-text {
	max-inline-size: 46ch;
}

/* The three promises, as a ruled list rather than three cards. The number sits
 * beside the line instead of above it, which is the whole difference between a
 * list of points and a grid of tiles. */
#family .ib-cards.is-grid {
	margin-block-start: 32px;
}

#family .ib-cards.is-grid .ib-cards__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 18px;
	align-items: baseline;
	padding-block: 18px;
	border-block-start: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0;
}

#family .ib-cards.is-grid .ib-cards__item:last-child {
	border-block-end: 1px solid rgba(255, 255, 255, 0.14);
}

#family .ib-cards.is-grid .ib-cards__body {
	display: contents;
}

#family .ib-cards.is-grid .ib-cards__eyebrow {
	order: -1;
	margin: 0;
	font-family: var(--sgf-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	color: var(--sgf-red-on-dark);
	opacity: 1;
}

#family .ib-cards.is-grid .ib-cards__title {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-block-end: 6px;
}

#family .ib-cards.is-grid .ib-cards__text {
	grid-column: 2;
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	opacity: 0.66;
}

/* The team carousel. */
#family .ib-cards.is-carousel {
	--ib-cards-gap: 14px;
	--ib-cards-radius: 22px;

	/*
	 * Two and a bit rather than two. The part-visible third card is the only
	 * thing on a static screenshot that says the row scrolls — with exactly two
	 * in view it reads as a pair of cards and nobody touches the arrows. The
	 * element counts in whole cards, which is the right contract for a panel;
	 * the fraction is a decision about this design.
	 */
	/* !important because the element writes its own column count inline, and
	 * an inline custom property beats a stylesheet one however specific. */
	--ib-cards-cols-desktop: 2.4 !important;
	--ib-cards-cols-tablet: 2.2 !important;
	--ib-cards-cols-mobile: 1.25 !important;
}

#family .ib-cards.is-carousel .ib-cards__eyebrow {
	margin-block-start: 5px;
	font-family: var(--sgf-mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	color: var(--sgf-red-on-dark);
	opacity: 1;
}

#family .ib-cards.is-carousel .ib-cards__title {
	font-size: 16px;
}

#family .ib-cards.is-carousel .ib-cards__body {
	padding: 18px 18px 20px;
}

#family .ib-cards.is-carousel .ib-cards__text {
	margin-block-start: 13px;
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.66;
}

#family .ib-cards.is-carousel .ib-cards__media {
	filter: saturate(0.9);
}

/* The caption under the carousel is a note about the office, not body copy.
 * The size needs !important because the element writes its own font-size
 * inline, and an inline style outranks any stylesheet. */
#family > .ib-row__inner > .ib-col:last-child .ib-text:last-child {
	margin-block-start: 16px;
	font-family: var(--sgf-mono);
	font-size: 10.5px !important;
	line-height: 1.6;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.45;
}

/* --------------------------------------------------------------- Express */

#express .ib-image__img {
	block-size: clamp(300px, 38vw, 480px);
	object-fit: cover;
}

/*
 * The chips.
 *
 * A number element, because that is the shape: a bold lead-in and a plain
 * gloss — "AOG, aircraft on ground". An icon list was the first attempt and it
 * was wrong twice over: it forces a decorative icon the concept does not have,
 * and it has nowhere to put the emphasis, so every chip flattened into one
 * weight.
 */
#express .ib-stat {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-block-start: 28px;
}

#express .ib-stat__item {
	flex: 0 0 auto;
	flex-direction: row;
	align-items: baseline;
	gap: 0.3em;
	background: var(--sgf-cream);
	border: 1px solid var(--sgf-line-2);
	border-radius: 999px;
	padding: 9px 16px;
}

#express .ib-stat__value {
	font-size: 14px !important;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--sgf-ink);
}

/* The comma belongs to the chip, not to either half of it, so it is drawn
 * between them rather than typed into a field the client would have to
 * remember to include. */
#express .ib-stat__value::after {
	content: ",";
}

#express .ib-stat__label {
	font-family: inherit;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sgf-ink-2);
}

#express .ib-el--button {
	margin-block-start: 30px;
}

/* --------------------------------------------------------------- Process */

#steps .ib-col {
	border-block-start: 2px solid var(--sgf-ink);
	padding-block-start: 22px;
}

/* A step number is a number, not a section label — no rule in front of it.
 * The rule belongs to the eyebrow that opens a section, and repeating it four
 * times across a row of steps turns a quiet mark into a pattern. */
#steps .ib-heading.is-eyebrow {
	margin-block-end: 16px;
	letter-spacing: 0.16em !important;
}

#steps .ib-heading.is-eyebrow::before,
#family .ib-cards .ib-cards__eyebrow::before {
	content: none;
}

#steps h4:not(.is-eyebrow) {
	font-size: clamp(18px, 1.7vw, 23px) !important;
	margin-block-end: 12px;
}

#steps .ib-text {
	font-size: 15px;
	line-height: 1.6;
}

/* ----------------------------------------------------------- Trade lanes */

/* Monospace headers and transit times, because a column of figures that does
 * not line up is the tell that a table was an afterthought. */
#lanes-table .ib-table table {
	border-collapse: collapse;
	inline-size: 100%;
	border-block-start: 1px solid var(--sgf-ink);
}

#lanes-table .ib-table th {
	text-align: start;
	font-family: var(--sgf-mono);
	font-size: 10.5px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--sgf-ink-3);
	font-weight: 400;
	padding: 14px 14px 14px 0;
	opacity: 1;
	border-block-end: 1px solid var(--sgf-line);
}

#lanes-table .ib-table td {
	padding: 17px 14px 17px 0;
	font-size: 15.5px;
	vertical-align: middle;
	border-block-end: 1px solid var(--sgf-line);
}

#lanes-table .ib-table tbody tr {
	transition: background 0.3s;
}

#lanes-table .ib-table tbody tr:hover {
	background: var(--sgf-cream-2);
}

#lanes-table .ib-table td:first-child {
	font-weight: 600;
	letter-spacing: -0.015em;
}

#lanes-table .ib-table td:nth-child(2) {
	font-family: var(--sgf-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sgf-ink-2);
}

/* The transit column is gone at the client's request, so this rule — which
 * dressed it as a figure — would now land on Departures and set the one word
 * in the row that should read as words in a monospace face. Kept, and told to
 * skip the last column, so restoring transit later needs no CSS change. */
#lanes-table .ib-table td:nth-child(3):not(:last-child) {
	font-family: var(--sgf-mono);
	font-size: 15px;
	white-space: nowrap;
}

#lanes-table .ib-table th:last-child,
#lanes-table .ib-table td:last-child {
	text-align: end;
	color: var(--sgf-ink-2);
	font-size: 14.5px;
	white-space: nowrap;
}

#lanes-table .ib-table th:last-child {
	font-size: 10.5px;
}

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

/*
 * The details panel: a label column and a value column, ruled between rows.
 *
 * Cards rather than a table, because the address is three lines and a table
 * cell is one. The card's body is a real paragraph, so the line breaks the
 * client types are the line breaks that show.
 */
#contact .ib-cards__track {
	gap: 0;
}

#contact .ib-cards__item {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	padding-block: 14px;
	border-block-start: 1px solid var(--sgf-line-2);
	border-radius: 0;
}

#contact .ib-cards__item:first-child {
	border-block-start: 0;
	padding-block-start: 0;
}

#contact .ib-cards__body {
	display: contents;
}

#contact .ib-cards__eyebrow {
	margin: 0;
	padding-block-start: 4px;
	font-family: var(--sgf-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	color: var(--sgf-ink-3);
	opacity: 1;
}

#contact .ib-cards__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--sgf-ink);
	opacity: 1;

	/* The address is typed on three lines and has to arrive on three lines. */
	white-space: pre-line;
}

#contact h3:not(.is-eyebrow) {
	margin-block-end: 22px;
	font-size: clamp(21px, 2.2vw, 32px) !important;
	letter-spacing: -0.028em;
}

#contact .ib-el--button {
	margin-block-start: 28px;
}

/* --------------------------------------------------------- Closing band */

#closing .ib-text {
	margin-block-start: 16px;
	max-inline-size: 46ch;
}

/* --------------------------------------------------------------- Numbers */

.ib-stat__value {
	letter-spacing: -0.03em;
	line-height: 1;
}

.ib-stat__label {
	font-family: var(--sgf-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sgf-ink-3);
}

/* ----------------------------------------------------------- Icon lists */

.ib-iconlist__item {
	align-items: baseline;
	gap: 0.7em;
	padding-block: 0.35em;
}

/* -------------------------------------------------------------- Narrow */

@media (max-width: 63.999rem) {
	#hero .ib-stat {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#hero .ib-stat__item:nth-child(3) {
		border-inline-start: 0;
		padding-inline-start: 0;
	}

	#hero .ib-stat__item:nth-child(n + 3) {
		border-block-start: 1px solid rgba(255, 255, 255, 0.2);
	}
}

@media (max-width: 47.999rem) {
	#hero .ib-stat {
		display: none;
	}

	#lanes-table .ib-table th:last-child,
	#lanes-table .ib-table td:last-child {
		display: none;
	}
}

/* ---------------------------------------------------------------- Header */

/*
 * Two states: transparent over the video hero, and solid cream once it is
 * past. Both come from the framework — `header.sticky` and `header.transparent`
 * in the ICONS panel, which add `.icons-header--sticky`, `.icons-header--
 * transparent` and toggle `.is-pinned` on scroll. This is only what those
 * states look like on this site.
 *
 * Deliberately almost no bar of its own over the hero. The contrast comes from
 * the even veil across the whole video, not from a dark strip along the top:
 * as a strip it read as a separate object sitting on the picture. And no
 * backdrop blur, which smears the video into a flat grey and makes the bar look
 * solid however low the opacity is.
 */
.sgf-header {
	background: rgba(12, 12, 22, 0.14);
	transition: background 0.4s var(--sgf-ease), box-shadow 0.4s;
}

/*
 * The framework's own header button, off.
 *
 * ICONS → Header can put a button in the header, and this header already has
 * one in the template part — so the site showed two, the framework's stacked
 * below the bar on its own line. Hidden rather than unhooked: the slot it sits
 * in is how modules attach to the header, and that has to keep working.
 *
 * Clearing "Header button text" in the panel is the tidier fix and does the
 * same thing.
 */
.sgf-header .icons-slot--header-end .icons-header-cta {
	display: none;
}

/*
 * The flex is declared here rather than left to the block's layout attribute.
 * WordPress compiles that into a generated `wp-container-core-group-is-layout-
 * <hash>` class, and a header that only holds its shape while that hash exists
 * is a header that collapses into a vertical list the first time the markup is
 * touched.
 */
/*
 * The bar is 80px, and 80px is the whole header. The framework adds its own
 * vertical padding from ICONS → Header on top of that, which made it 120 and
 * pushed the logo and the nav off the line the concept puts them on.
 */
/* Matching the framework's own selector, `header.wp-block-template-part >
 * .wp-block-group`. A bare class loses to it — one element name is enough — so
 * this has to carry the tag too and win on order instead. */
header.wp-block-template-part > .sgf-header {
	padding-block: 0;
}

.sgf-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	min-block-size: 80px;
	gap: clamp(18px, 3vw, 46px);
}

.sgf-header {
	position: relative;
}

.sgf-header > .wp-block-group,
.sgf-footer > .wp-block-columns,
.sgf-footer > .wp-block-group {
	margin-inline: auto;
	inline-size: 100%;
	max-inline-size: 1280px;
}

.sgf-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.2vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A hairline that fades out at both ends, so the header has an edge without
 * drawing a full-width rule across the photograph. */
.sgf-header::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	block-size: 1px;
	pointer-events: none;
	transition: opacity 0.4s;
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 0.06) 0%,
		rgba(255, 255, 255, 0.26) 22%,
		rgba(255, 255, 255, 0.26) 78%,
		rgba(255, 255, 255, 0.06) 100%
	);
}

/*
 * Anchored on `header.wp-block-template-part`, the same way the framework
 * anchors its own rule. Written as a plain class chain this lost: the
 * framework's `header.wp-block-template-part :where(.wp-block-navigation)
 * a:not(.wp-element-button)` carries two element names, and two element names
 * beat none however many classes are stacked up. The nav came out near-black
 * over the video.
 */
header.wp-block-template-part.icons-header--transparent .sgf-brand,
header.wp-block-template-part.icons-header--transparent .sgf-nav a,
header.wp-block-template-part.icons-header--transparent .sgf-header__tel a {
	color: #fff;
	text-shadow: 0 1px 12px rgba(12, 12, 22, 0.35);
}

.sgf-brand {
	display: flex;
	align-items: center;
	flex: none;
	color: #fff;
}

.sgf-logo {
	block-size: clamp(38px, 3.2vw, 48px);
	inline-size: auto;
}

.sgf-nav a {
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: -0.012em;
	text-decoration: none;
	padding-block: 6px;
	position: relative;
}

/* The underline grows from the left rather than appearing whole. */
.sgf-nav a::after {
	content: "";
	position: absolute;
	inset-inline: 0 100%;
	inset-block-end: 0;
	block-size: 1px;
	background: var(--sgf-red);
	transition: inset-inline-end 0.4s var(--sgf-ease);
}

.sgf-nav a:hover::after {
	inset-inline-end: 0;
}

.sgf-header__tel {
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -0.012em;
	white-space: nowrap;
}

.sgf-header__tel a {
	text-decoration: none;
}

.sgf-header__end {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 10px;
	margin-inline-start: auto;
}

.sgf-header__cta {
	display: flex;
	flex: none;
}

.sgf-header__cta .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
	background: transparent;
	font-size: 13.5px;
	padding: 10px 18px;
}

.sgf-header__cta .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
	color: var(--sgf-ink);
}

/* ── solid ─────────────────────────────────────────────────────────────── */

.sgf-header.is-pinned,
.icons-header--sticky.is-pinned .sgf-header {
	background: rgba(253, 247, 240, 0.9);
	backdrop-filter: blur(16px) saturate(1.3);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	box-shadow: 0 1px 0 rgba(12, 12, 22, 0.03);
}

.is-pinned .sgf-header::after,
.sgf-header.is-pinned::after {
	opacity: 0;
}

header.wp-block-template-part.is-pinned .sgf-brand,
header.wp-block-template-part.is-pinned .sgf-nav a,
header.wp-block-template-part.is-pinned .sgf-header__tel a {
	color: var(--sgf-ink);
	text-shadow: none;
}

header.wp-block-template-part.is-pinned .sgf-nav a:hover {
	color: var(--sgf-red);
}

.is-pinned .sgf-header__cta .wp-block-button__link {
	border-color: var(--sgf-ink);
	color: var(--sgf-ink);
	backdrop-filter: none;
}

.is-pinned .sgf-header__cta .wp-block-button__link:hover {
	background: var(--sgf-ink);
	border-color: var(--sgf-ink);
	color: var(--sgf-cream);
}

/*
 * The nav folds into the overlay at 1080px, not at WordPress's 600px default.
 * Five links plus a phone number and a pill do not fit a tablet, and between
 * those two widths the header was cramming them onto two lines.
 *
 * Written against the navigation block's own class names rather than by
 * replacing it: the overlay, the focus trap and the escape key are core's, and
 * a hand-rolled burger would have to reimplement all three.
 *
 * Not reproducible in the local render — the harness fakes the navigation block
 * — so this one needs eyes on the real page.
 */
@media (max-width: 67.5rem) {
	.sgf-header__tel {
		display: none;
	}

	.sgf-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.sgf-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

@media (min-width: 67.5625rem) {
	.sgf-nav .wp-block-navigation__responsive-container-open {
		display: none;
	}
}

@media (max-width: 47.999rem) {
	.sgf-header__cta {
		display: none;
	}

	.sgf-logo {
		block-size: 30px;
	}
}

/* ---------------------------------------------------------------- Footer */

/*
 * The footer butts against the band above it. WordPress puts its global block
 * gap between the top-level blocks of the page, so a 30px strip of cream sat
 * between the near-black closing band and the near-black footer and read as a
 * rendering fault.
 */
.wp-site-blocks > footer,
.wp-site-blocks > main {
	margin-block-start: 0;
}

/* The colour is set here rather than as a `textColor` on the block. WordPress
 * emits its preset colour classes with `!important`, so `has-base-color` on the
 * group could not be overridden at all — the footer's body text was locked to
 * near-white where the concept has it a warm grey. */
.sgf-footer {
	--icons-footer-background: var(--sgf-ink-deep);

	color: #b3ada5;
	border-block-start: 1px solid rgba(255, 255, 255, 0.1);
}

/* Anchored on the tag for the same reason as the header. The concept's footer
 * text is #b3ada5 and its links go white on hover; both were losing to the
 * framework's own footer link rule. */
/* One more `:not()` than the framework's rule, which carries two of them and so
 * outranks a plain descendant chain. */
footer.wp-block-template-part .sgf-footer a:not(.wp-element-button) {
	color: #b3ada5;
	opacity: 1;
	text-decoration: none;
	transition: color 0.3s;
}

footer.wp-block-template-part .sgf-footer a:not(.wp-element-button):hover {
	color: #fff;
	opacity: 1;
}

.sgf-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	padding-block: clamp(40px, 5vw, 72px);
	gap: clamp(24px, 3.2vw, 54px);
}

.sgf-footer__grid > .wp-block-column {
	flex-basis: auto !important;
	min-inline-size: 0;
}

.sgf-footer__bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.sgf-footer__mark {
	margin-block: 0 24px;
	color: #fff;
}

.sgf-footer__mark .sgf-logo {
	block-size: 46px;
}

/*
 * The column headings are labels, not headings: mono, tracked and small, so
 * they name a list without competing with it.
 *
 * Scoped through `.sgf-footer` rather than left as a single class. The
 * framework styles footer headings as `footer.wp-block-template-part
 * :where(h2…h6)`, and that one element in the selector is enough to outrank a
 * lone class — so the tracking and the colour set here were both being ignored.
 */
.sgf-footer .sgf-footer__head {
	font-family: var(--sgf-mono);
	font-size: 10.5px !important;
	letter-spacing: 0.17em;
	text-transform: uppercase;
	color: #7a746c;
	margin-block-end: 18px;
	font-weight: 400;
}

.sgf-footer__address {
	font-size: 15px;
	line-height: 1.75;
}

.sgf-footer__links {
	font-size: 15px;
	line-height: 2.1;
}

.sgf-footer__bottom {
	border-block-start: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: 22px;
	font-size: 13px;
	color: #7a746c;
	gap: 18px;
}

.sgf-footer__bottom p {
	margin: 0;
}

.sgf-footer__legal {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

/*
 * The framework's own footer strip, off — same reasoning as the header button.
 * It prints a second copyright line ("© 2026 SGF") below the one the template
 * part already draws, outside the footer's own measure, so it sat alone at the
 * bottom left of the page.
 */
.sgf-footer .icons-footer-meta,
.wp-site-blocks > footer > .icons-footer-meta {
	display: none;
}

/* ===========================================================================
 * The quote form
 *
 * The framework already gives every field a border, a radius and border-box
 * sizing, which is the part that is the same on every site. What is site
 * specific is everything around them: the label style, the two-up rows, and a
 * submit button that has to look like the pill buttons on the rest of the page
 * rather than like whatever the form plugin ships.
 *
 * Scoped under .ib-form, so this applies to any form placed through the
 * builder's Form element and to nothing else. A form plugin's own preview
 * screen in wp-admin is left alone.
 * ------------------------------------------------------------------------ */

/*
 * Field labels.
 *
 * These were the eyebrow treatment -- 10.5px monospace, uppercase, 0.17em
 * tracking. That is right above a heading, where it is one or two words the eye
 * skims. On a form it is the thing a person reads to know what to type, and at
 * that size and tracking it is genuinely hard to read.
 *
 * It had a second effect that was worse. The control sits *inside* its label in
 * CF7's markup, and the framework gives inputs `font: inherit` -- so every
 * field and every placeholder inherited the monospace stack from this rule.
 * Hence the explicit family on the controls below rather than leaving them to
 * inherit: a label is free to have a voice of its own without the input
 * borrowing it.
 */
.ib-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--sgf-ink);
	margin-block-end: 8px;
}

.ib-form p {
	margin-block: 0 18px;
}

/*
 * Two fields to a line from tablet up, one on a phone.
 *
 * A grid rather than flex, so the two halves are equal whatever is in them —
 * with flex, a long placeholder in one field made it the wider of the pair and
 * the form stopped lining up down the page.
 */
.sgf-form__row {
	display: grid;
	gap: 0 20px;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.sgf-form__row {
		grid-template-columns: 1fr 1fr;
	}
}

.ib-form input:not([type="submit"]):not([type="checkbox"]),
.ib-form select,
.ib-form textarea {
	/* Stated, not inherited. See the label rule above. */
	font-family: var(--wp--preset--font-family--body);
	border-color: var(--sgf-line-2);
	border-radius: 10px;
	background: var(--sgf-cream);
	font-size: 16px;
	line-height: 1.4;
	padding: 13px 15px;
}

.ib-form input:focus, .ib-form select:focus, .ib-form textarea:focus {
	outline-color: var(--sgf-red);
}

.ib-form ::placeholder {
	color: var(--sgf-ink-3);
	opacity: 0.62;
}

/* The consent line is a sentence with a checkbox in it, not a labelled field,
 * so it opts out of the label treatment above — small caps on a run of prose
 * is unreadable. */
/* The consent line is a sentence with a checkbox in it, not a labelled field.
 * CF7 wraps it in a <label> of its own, so it has to opt out of the rule above
 * explicitly or it comes out bold. */
.sgf-form__consent label {
	display: inline;
	font-size: inherit;
	font-weight: 400;
	letter-spacing: 0;
	color: inherit;
	margin: 0;
}

.sgf-form__consent {
	font-size: 14px;
	line-height: 1.6;
	color: var(--sgf-ink-2);
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-block-start: 6px;
}

.sgf-form__consent .wpcf7-list-item {
	margin: 0;
}

.sgf-form__consent input[type="checkbox"] {
	/* accent-color paints the tick in the brand red instead of the browser's
	 * own blue, which is the one bit of UI chrome a form cannot otherwise
	 * reach. The nudge puts the box on the first line's baseline rather than
	 * its top edge. */
	accent-color: var(--sgf-red);
	margin-inline-end: 9px;
	transform: translateY(1px);
}

.sgf-form__consent a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/*
 * The submit button.
 *
 * Every declaration here is also in .ib-button. It is repeated rather than
 * shared because the two cannot be given one selector: .ib-button is a class
 * the builder writes, and this is an <input type="submit"> a plugin writes,
 * and the plugin's markup is not ours to change. The alternative — telling the
 * client to add a class in the CF7 editor — is a step that survives exactly
 * until the next person edits the form.
 */
.ib-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -0.012em;
	color: #fff;
	background: var(--sgf-red);
	border: 1px solid var(--sgf-red);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.34s ease, box-shadow 0.34s ease;
}

.ib-form input[type="submit"]:hover {
	background: var(--sgf-red-2);
	border-color: var(--sgf-red-2);
	box-shadow: 0 10px 30px -12px rgba(200, 16, 46, 0.55);
}

/* CF7 disables the button and shows a spinner while it posts. Without this the
 * button looks live throughout, and an impatient visitor sends the same
 * enquiry three times. */
.ib-form input[type="submit"]:disabled {
	opacity: 0.55;
	cursor: wait;
}

.ib-form .wpcf7-spinner {
	margin-inline-start: 12px;
}

/*
 * What the plugin says back.
 *
 * CF7's default is a coloured 1px frame that belongs to no design system in
 * particular. These are the same messages in this site's voice: a rule on the
 * leading edge, the palette's own red for a failure, and the ink for a
 * success, because a green tick after a quote request is not the register this
 * site speaks in.
 */
.ib-form .wpcf7-response-output {
	margin: 22px 0 0;
	padding: 14px 18px;
	border: 0;
	border-inline-start: 3px solid var(--sgf-ink);
	background: var(--sgf-cream-2);
	border-radius: 0 10px 10px 0;
	font-size: 14.5px;
}

.ib-form .wpcf7-form.invalid .wpcf7-response-output,
.ib-form .wpcf7-form.unaccepted .wpcf7-response-output,
.ib-form .wpcf7-form.failed .wpcf7-response-output {
	border-inline-start-color: var(--sgf-red);
}

/* Per-field errors, under the field they belong to. */
.ib-form .wpcf7-not-valid-tip {
	display: block;
	margin-block-start: 6px;
	font-size: 12.5px;
	color: var(--sgf-red);
}

.ib-form .wpcf7-not-valid {
	border-color: var(--sgf-red);
}

/*
 * Long words in a narrow panel.
 *
 * The contact panel is a fifth of the grid, and
 * sales@sneedglobalforwarding.com is 31 characters with nowhere to break. The
 * default is to let it overhang the panel; `anywhere` breaks it instead, and
 * only when it genuinely does not fit — a wider panel is left alone.
 */
.ib-cards__body {
	overflow-wrap: anywhere;
}

/*
 * A narrow row is already the measure.
 *
 * `.ib-text` is capped at 46ch site-wide, which is right where body copy sits
 * beside something else in a two-column row. On the legal pages the row is
 * `narrow` as well, so the paragraphs were measured twice: a 704px column with
 * 46ch (~470px) of text centred in it, while the icon-lists in the same column
 * ran the full width because nothing caps them. The result read as two columns
 * of different widths stacked on each other.
 *
 * The row's own width is the deliberate measure. Releasing the cap inside it
 * makes the whole column agree, and 820px is a better measure for a page of
 * continuous text than 704 was.
 */
.ib-row.is-width-narrow {
	--ib-row-width: 820px;
}

.ib-row.is-width-narrow .ib-text {
	max-inline-size: none;
}

/* ===========================================================================
 * The details panel beside the quote form
 *
 * It was eight cards in a single column, each with its label on its own line
 * above its value and a full line of air under it. Six short facts, laid out
 * like a form, next to an actual form, and running close to twice its height —
 * so the page ended on a long empty column.
 *
 * This is the same construction as the promises on the home page: the label
 * holds a fixed column on the left and the value sits beside it, hairlines
 * instead of gaps. The eye runs down one edge rather than zig-zagging, and the
 * panel comes out around half as tall.
 * ------------------------------------------------------------------------ */

#quote .ib-cards.is-grid {
	--ib-cards-gap: 0;

	margin-block-start: 26px;
}

#quote .ib-cards__item {
	padding-block: 13px;
	border-block-start: 1px solid var(--sgf-line);
	border-radius: 0;
	background: none;
}

/* The heading above the panel is already the top edge. */
#quote .ib-cards__item:first-child {
	border-block-start: 0;
	padding-block-start: 0;
}

#quote .ib-cards__body {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 4px 16px;
	align-items: baseline;
	padding: 0;
}

#quote .ib-cards__eyebrow {
	margin: 0;
	font-family: var(--sgf-mono);
	font-size: 10px;
	letter-spacing: 0.15em;
	color: var(--sgf-ink-3);
	opacity: 1;
}

#quote .ib-cards__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--sgf-ink);
	opacity: 1;
}

#quote .ib-el--button {
	margin-block-start: 26px;
}

/*
 * Below this the label column costs more than it buys: at 104px plus a gap
 * there is not enough left for an address line, and the addresses are the whole
 * point of the panel. Stacked, the hairlines still carry the grouping.
 */
@media (max-width: 30rem) {
	#quote .ib-cards__body {
		grid-template-columns: 1fr;
		gap: 3px;
	}
}
