@font-face {
	font-family: "Bahnschrift";
	src: url("../fonts/bahnschrift/bahnschrift.ttf") format("truetype");
	font-weight: 300 700;
	font-stretch: 75% 100%;
}

/* reset */

*,
*:before,
*:after {
	box-sizing: border-box;
}
* {
	margin: 0;
	padding: 0;
	font-size: 100%;
	font-family: inherit;
}

:root {
	--text-w: 1000px;
	--media-w: 1200px; /* photo rows break out of the text column */
	--white: #fff;
	--ink: #000;
	--concrete: #8a8782;
	--ph: #eeeeeb;
	--red: #c62b22;

	--gutter: clamp(16px, 4vw, 56px);
	--top-h: 96px;
	--space: clamp(72px, 11vw, 160px);
}

html,
body {
	font-family: "Bahnschrift", "DejaVu Sans", sans-serif;
	font-weight: 300;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--ink);
	background: var(--white);
}

img {
	display: block;
	width: 100%;
	height: auto;
}

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

a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

a:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 4px;
}

/* facts still to fill in */

.ph {
	background: var(--ph);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	padding: 0 0.2em;
}

/* header */

.top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--top-h);
	padding: 0 var(--gutter);
	background: var(--white);
}

.top__logo {
	width: 120px;
}

.top__mail {
	font-size: 0.95rem;
}

main {
	margin: 0 var(--gutter);
}

/* type */

/* logo styles: MNGR = semibold, tagline = semi-condensed regular */

h1,
h2 {
	font-weight: 600;
	line-height: 1;
}

h2 {
	font-size: clamp(1.75rem, 3vw, 2.6rem);
	margin-bottom: 0.5em;
}

figcaption {
	margin-top: 12px;
	font-size: 0.875rem;
	color: var(--concrete);
}

/* hero: full-width photo, title set on it */

.hero__frame {
	position: relative;
	height: calc(100svh - var(--top-h));
	min-height: 480px;
	max-height: 1100px;
	color: var(--white);
}

.hero__frame img {
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
}

.hero__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.25) 45%, rgb(0 0 0 / 0) 70%);
}

.hero h1 {
	position: absolute;
	z-index: 1;
	left: var(--gutter);
	right: var(--gutter);
	bottom: clamp(24px, 5vw, 64px);
}

.hero__a {
	display: block;
	font-size: clamp(2.1rem, 6.2vw, 7.5rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 0.95;
	text-wrap: balance;
}

.hero__b {
	display: block;
	margin-top: 0.6em;
	font-size: clamp(1.15rem, 2.2vw, 2rem);
	font-weight: 400;
	font-stretch: 87.5%;
}

.hero__caption {
	margin-top: 12px;
	padding: 0 var(--gutter);
	font-size: 0.875rem;
	color: var(--concrete);
}

.bleed--wide {
	max-width: var(--media-w);
	margin: var(--space) auto 0;
}

.bleed--wide img {
	aspect-ratio: 21 / 9;
	object-fit: cover;
	object-position: center 62%;
}

/* intro */

.intro {
	max-width: var(--text-w);
	margin: var(--space) auto 0;
	text-wrap: pretty;
	font-size: clamp(1.25rem, 2.1vw, 1.75rem);
	line-height: 1.38;
}

/* photo + text pairs */

.duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 4vw, 72px);
	align-items: center;
	max-width: var(--media-w);
	margin: var(--space) auto 0;
}

.duo img {
	aspect-ratio: 1;
	object-fit: cover;
}

.duo__tall img {
	object-position: center 60%;
}


.duo__text p + p {
	margin-top: 1em;
}

/* scope */

/* text sections below the photos: centred block, like the intro */

.scope,
.about {
	max-width: var(--text-w);
	margin: var(--space) auto 0;
}

.scope__lead {
	font-size: 1.125rem;
}

.scope ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(18em, 100%), 1fr));
	gap: 40px clamp(32px, 7vw, 112px);
	margin-top: clamp(48px, 6vw, 72px);
	list-style: none;
}

.scope h3 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 0.3em;
}

/* about */

.about p + p {
	margin-top: 1em;
}

.about p {
	font-size: 1.125rem;
}

/* call to action: full-width black strip */

.cta {
	margin-top: var(--space);
	padding: clamp(56px, 8vw, 112px) var(--gutter);
	background: var(--ink);
	color: var(--white);
}

.cta__inner {
	max-width: var(--text-w);
	margin: 0 auto;
}

.cta h2 {
	font-weight: 400;
	font-stretch: 87.5%;
	font-size: clamp(1.5rem, 3vw, 2.6rem);
	margin-bottom: 0.4em;
}

.cta__lead {
	margin-bottom: 28px;
	color: rgb(255 255 255 / 0.75);
}

.cta__link {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	font-weight: 600;
}

.cta__link,
.cta__link:hover {
	text-decoration: none;
}

.cta__link svg {
	width: 1em;
	height: 1em;
	flex: none;
	transition: transform 0.12s ease-out;
}

.cta__link:hover svg,
.cta__link:focus-visible svg {
	transform: translateX(6px);
}

/* the phone glyph is narrow; pull it in so both gaps look equal */
.cta__link[href^="tel:"] svg {
	margin-left: -0.15em;
}

@media (prefers-reduced-motion: reduce) {
	.cta__link svg {
		transition: none;
	}

	.cta__link:hover svg,
	.cta__link:focus-visible svg {
		transform: none;
	}
}

.cta__link:focus-visible {
	outline-color: var(--white);
}

.cta__links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.cta .ph {
	background: rgb(255 255 255 / 0.14);
}

/* footer */

.bottom {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	row-gap: 14px;
	padding: 32px var(--gutter) 24px;
	color: var(--concrete);
}

/* only the legal line shares its row with the icons */
.bottom > :not(.social, .bottom__legal) {
	grid-column: 1 / -1;
}

.bottom__legal {
	color: var(--ink);
}

/* wrap between items, not inside them */
.bottom__legal > span {
	white-space: nowrap;
}

.bottom__legal .sep {
	margin: 0 0.4em;
	color: var(--concrete);
}

.social {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	gap: 22px;
	list-style: none;
}

.social a {
	display: block;
	color: var(--ink);
}

.social a:hover {
	color: var(--concrete);
}

.social svg {
	display: block;
	width: 32px;
	height: 32px;
}

/* mobile */

@media (max-width: 720px) {
	:root {
		--top-h: 72px;
	}

	.top__logo {
		width: 96px;
	}

	.hero__frame {
		height: 78svh;
	}

	.duo,
	.duo--flip {
		grid-template-columns: 1fr;
	}

	.duo--flip .duo__text {
		order: 1;
	}

	.bleed--wide img {
		aspect-ratio: 4 / 3;
	}

	/* icons above the legal line */
	.bottom {
		grid-template-columns: 1fr;
	}

	.social {
		grid-column: 1;
		margin-bottom: 12px;
	}

	.bottom__legal {
		grid-row: 2;
	}
}
