/* Impetus site styles: Navy & Vermilion */

:root {
	--ink: #0E1A2B;
	--ink-2: #172840;
	--accent: #E8481C;
	--action: #C23A12;
	--action-hover: #A3300E;
	--surface: #F1F3F5;
	--muted: #56606E;
	--line: #D9DDE3;
	--white: #FFFFFF;
	--on-ink-muted: #B7C0CC;

	--font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1160px;
	--gutter: 24px;
	--radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
}

img, svg { display: block; max-width: 100%; }

[id] { scroll-margin-top: 88px; }

a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-hover); }

h1, h2, h3 {
	margin: 0;
	line-height: 1.12;
	letter-spacing: -0.015em;
	font-weight: 700;
}
h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 21px; letter-spacing: -0.005em; }
p { margin: 0; }

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

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--white);
	color: var(--ink);
}
.skip:focus { left: 8px; }

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--action); color: var(--white); }
.btn-primary:hover { background: var(--action-hover); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.on-ink .btn-outline { color: var(--white); }
.on-ink .btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.chev {
	width: 9px;
	height: 12px;
	flex: none;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}
.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
	color: var(--ink);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--action); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .btn { color: var(--white); min-height: 44px; }
.nav .btn:hover { color: var(--white); }

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
}

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--gutter) 24px;
		background: var(--white);
		border-bottom: 1px solid var(--line);
	}
	.nav.open { display: flex; }
	.nav a { padding: 14px 0; border-bottom: 1px solid var(--surface); }
	.nav a[aria-current="page"] { text-decoration: none; }
	.nav .btn { margin-top: 16px; border-bottom: 0; }
}

/* Sections */

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.bg-surface { background: var(--surface); }
.on-ink { background: var(--ink); color: var(--white); }
.on-ink a:not(.btn) { color: var(--white); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--action);
}
.on-ink .eyebrow { color: var(--on-ink-muted); }
.eyebrow::before {
	content: "";
	width: 18px;
	height: 3px;
	background: var(--accent);
}

.lead { font-size: 20px; line-height: 1.55; color: var(--muted); }
.on-ink .lead { color: var(--on-ink-muted); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .lead { margin-top: 18px; }

/* Hero */

.hero { padding: 96px 0 104px; }
.hero .wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 64px;
	align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero .lead { margin: 24px 0 36px; max-width: 34em; }
.page-hero { padding: 88px 0 80px; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 22px; max-width: 40em; }
.page-hero .actions { margin-top: 32px; }

.handoff {
	padding: 32px;
	border: 1px solid #2A3A52;
	border-radius: var(--radius);
	background: var(--ink-2);
}
.handoff p.label {
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--on-ink-muted);
}
.handoff ul { margin: 0; padding: 0; list-style: none; }
.handoff li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 0;
	border-top: 1px solid #2A3A52;
	font-weight: 500;
}
.handoff li:first-child { border-top: 0; }
.handoff li svg { flex: none; }

@media (max-width: 900px) {
	.hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}

/* Grids and cards */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
	display: flex;
	flex-direction: column;
	padding: 36px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.card h3 { margin-bottom: 12px; }
.card > p { color: var(--muted); }
.card .more { margin-top: auto; padding-top: 24px; font-weight: 700; }

.service-card { padding: 40px; border-top: 4px solid var(--accent); }
.service-card h3 { font-size: 26px; }
.service-card .tag {
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.checks { margin: 24px 0 0; padding: 0; list-style: none; }
.checks li {
	position: relative;
	padding: 7px 0 7px 26px;
}
.checks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 15px;
	width: 7px;
	height: 7px;
	border-top: 2.5px solid var(--accent);
	border-right: 2.5px solid var(--accent);
	transform: rotate(45deg);
}

.quote-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
	padding: 24px;
	background: var(--white);
	border-left: 3px solid var(--ink);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
}

.principle { padding-top: 24px; border-top: 2px solid var(--ink); }
.principle h3 { margin-bottom: 10px; }
.principle p { color: var(--muted); }
.on-ink .principle { border-top-color: var(--accent); }
.on-ink .principle p { color: var(--on-ink-muted); }

/* Ownership band */

.ownership .wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 64px;
	align-items: center;
}
.ownership blockquote {
	margin: 0;
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.015em;
}
.ownership blockquote span { color: var(--accent); }
.ownership p + p { margin-top: 16px; }
@media (max-width: 860px) { .ownership .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* Path (how a relationship grows) */

.path {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.path li {
	position: relative;
	padding: 20px 20px 20px 0;
	border-top: 3px solid var(--line);
	counter-increment: step;
	font-weight: 700;
}
.path li::before {
	content: "0" counter(step);
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	color: var(--muted);
}
.path li:last-child { border-top-color: var(--accent); }
.path li span { display: block; margin-top: 4px; font-weight: 400; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; } }
@media (max-width: 520px) { .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Steps (numbered process) */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
	content: counter(step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--white);
	font-weight: 700;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Systems built */

.system { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.system .for {
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--action);
}
.system h3 { font-size: 26px; margin-bottom: 12px; }
.system > p { color: var(--muted); }
.system .checks li { font-size: 16px; }
.system a { display: inline-block; margin-top: 20px; font-weight: 700; }

/* Two-column text blocks */

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 64px;
	align-items: start;
}
.split .prose p + p { margin-top: 18px; }
.split .prose p { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.boundary { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.boundary li { padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; color: var(--muted); }
@media (max-width: 520px) { .boundary { columns: 1; } }

/* Timeline (about) */

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 24px;
	padding: 24px 0;
	border-top: 1px solid var(--line);
}
.timeline .when { font-weight: 700; color: var(--action); }
.timeline h3 { font-size: 19px; margin-bottom: 6px; }
.timeline p { color: var(--muted); }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* Contact */

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card .label { margin-bottom: 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card a, .contact-card strong { font-size: 22px; font-weight: 700; }
.contact-card a { color: var(--ink); text-decoration-color: var(--accent); }
.contact-card a:hover { color: var(--action); }
.contact-card p.note { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* CTA band */

.cta .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}
.cta h2 { max-width: 20ch; }
.cta p { margin-top: 12px; color: var(--on-ink-muted); max-width: 36em; }

/* Footer */

.site-footer { padding: 72px 0 40px; background: var(--ink); border-top: 1px solid #2A3A52; color: var(--on-ink-muted); font-size: 15px; }
.site-footer .top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
}
.site-footer .brand img { height: 28px; }
.site-footer .tagline { margin-top: 18px; max-width: 26em; }
.site-footer h2 { margin-bottom: 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid #2A3A52;
}
@media (max-width: 860px) { .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .top > :first-child { grid-column: 1 / -1; } }

@media (max-width: 640px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; }
	.section { padding: 72px 0; }
	.hero, .page-hero { padding: 64px 0 72px; }
	.lead { font-size: 18px; }
	.card, .service-card, .system { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
