/* ==========================================================================
   FEMFIX theme — light-blue blueprint styling
   ========================================================================== */

:root {
	--navy-900: #0a2238;
	--ink: #12304d;
	--ink-soft: #4b6580;
	--blue-800: #0c4c85;
	--blue-700: #1463a8;
	--blue-600: #1e77c4;
	--blue-500: #3b8fd9;
	--blue-300: #a3cdf0;
	--blue-200: #cbe4f8;
	--blue-100: #e3f0fb;
	--blue-50: #f2f8fe;
	--white: #fff;
	--line: #d5e5f3;
	--grid-minor: rgba(59, 143, 217, 0.08);
	--grid-major: rgba(59, 143, 217, 0.15);

	--font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

	--container: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	--radius: 8px;
	--shadow: 0 1px 2px rgba(12, 76, 133, 0.06), 0 10px 28px rgba(12, 76, 133, 0.08);
	--section-pad: clamp(64px, 9vw, 112px);
}

/* Base ------------------------------------------------------------------- */

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

html {
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

img {
	height: auto;
}

a {
	color: var(--blue-700);
}

h1,
h2,
h3 {
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ink);
}

:focus-visible {
	outline: 3px solid var(--blue-500);
	outline-offset: 2px;
}

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

.sr-only {
	position: absolute;
	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: -60px;
	left: 12px;
	z-index: 100;
	padding: 0.6rem 1rem;
	border-radius: 4px;
	background: var(--blue-800);
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

/* Shared backgrounds ------------------------------------------------------ */

.blueprint {
	background-color: var(--blue-50);
	background-image:
		linear-gradient(var(--grid-major) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
		linear-gradient(var(--grid-minor) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	background-position: -1px -1px;
}

.tint {
	background: var(--blue-50);
	border-block: 1px solid var(--line);
}

/* Type helpers ------------------------------------------------------------ */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 1rem;
	color: var(--blue-700);
	font-family: var(--font-mono);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	width: 24px;
	height: 2px;
	background: var(--blue-500);
}

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

.section-head {
	max-width: 720px;
	margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head-center {
	margin-inline: auto;
	text-align: center;
}

.section-title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 700;
}

.section-text {
	margin: 0 0 1rem;
	color: var(--ink-soft);
	font-size: 1.125rem;
}

.section-text:last-child {
	margin-bottom: 0;
}

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

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.8rem 1.35rem;
	border: 1.5px solid transparent;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s;
}

.btn:hover .icon {
	transform: translateX(3px);
}

.btn-primary {
	background: var(--blue-700);
	color: var(--white);
	box-shadow: 0 6px 16px -6px rgba(20, 99, 168, 0.55);
}

.btn-primary:hover {
	background: var(--blue-800);
	color: var(--white);
}

.btn-ghost {
	border-color: var(--blue-300);
	background: var(--white);
	color: var(--blue-800);
}

.btn-ghost:hover {
	border-color: var(--blue-700);
	background: var(--blue-50);
}

.btn-sm {
	padding: 0.55rem 1rem;
	font-size: 0.95rem;
}

.btn-block {
	width: 100%;
	justify-content: center;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-bar .site-header {
	top: 32px;
}

.site-header.is-scrolled {
	border-color: var(--line);
	box-shadow: 0 6px 20px -12px rgba(12, 76, 133, 0.25);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	text-decoration: none;
}

.brand-mark {
	flex: none;
	width: 36px;
	height: 36px;
}

.brand-mark path {
	fill: var(--blue-700);
}

.brand-mark circle {
	fill: none;
	stroke: var(--white);
	stroke-width: 2.5;
}

.brand-text {
	display: grid;
	line-height: 1;
}

.brand-name {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.16em;
}

.brand-sub {
	margin-top: 4px;
	color: var(--ink-soft);
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.brand-light {
	color: var(--white);
}

.brand-light .brand-mark path {
	fill: var(--blue-500);
}

.brand-light .brand-mark circle {
	stroke: var(--navy-900);
}

.brand-light .brand-sub {
	color: var(--blue-300);
}

.custom-logo-link img {
	display: block;
	max-height: 48px;
	width: auto;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 20px;
}

.site-nav .nav-list {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .nav-list a {
	display: block;
	padding: 0.5rem 0.8rem;
	border-radius: 4px;
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.site-nav .nav-list a:hover,
.site-nav .nav-list .current-menu-item > a {
	background: var(--blue-50);
	color: var(--blue-700);
}

.nav-toggle {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--white);
	cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform 0.2s, background-color 0.2s;
}

.nav-toggle-bars {
	position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle-bars::before {
	top: -6px;
}

.nav-toggle-bars::after {
	top: 6px;
}

.nav-open .nav-toggle-bars {
	background: transparent;
}

.nav-open .nav-toggle-bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 880px) {
	.nav-toggle {
		display: grid;
	}

	.site-nav {
		position: fixed;
		top: var(--header-h);
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px var(--gutter) 24px;
		border-bottom: 1px solid var(--line);
		background: var(--white);
		box-shadow: 0 18px 30px -18px rgba(12, 76, 133, 0.35);
	}

	.admin-bar .site-nav {
		top: calc(var(--header-h) + 32px);
	}

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

	.site-nav .nav-list {
		flex-direction: column;
	}

	.site-nav .nav-list a {
		padding: 0.8rem 0.5rem;
		border-bottom: 1px solid var(--blue-100);
		border-radius: 0;
	}

	.site-nav .btn {
		justify-content: center;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.admin-bar .site-nav {
		top: calc(var(--header-h) + 46px);
	}
}

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

.hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
	background-color: var(--blue-50);
	background-image:
		radial-gradient(70% 80% at 12% 35%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
		linear-gradient(var(--grid-major) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
		linear-gradient(var(--grid-minor) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
	background-size: auto, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	background-position: 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	padding-block: clamp(48px, 8vw, 104px);
}

.hero-title {
	margin: 0 0 1.25rem;
	font-size: clamp(2.1rem, 4vw, 3.3rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.hero-lead {
	max-width: 56ch;
	margin: 0 0 2rem;
	color: var(--ink-soft);
	font-size: clamp(1.075rem, 1.4vw, 1.2rem);
}

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

@media (max-width: 960px) {
	.hero-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero-visual {
		max-width: 600px;
	}
}

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

.drawing-card {
	margin: 0;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--white);
	box-shadow: 0 34px 60px -34px rgba(12, 76, 133, 0.45), var(--shadow);
}

.drawing {
	display: block;
	width: 100%;
	height: auto;
	font-family: var(--font-mono);
}

.drawing text {
	font-family: var(--font-mono);
}

.d-grid { fill: none; stroke: #e6f1fb; stroke-width: 1; }
.d-frame { fill: none; stroke: var(--blue-700); stroke-width: 1.5; }
.d-frame-inner { fill: none; stroke: var(--blue-300); stroke-width: 1; }
.d-zone path { stroke: var(--blue-300); }
.d-zone text { fill: var(--blue-500); font-size: 8px; text-anchor: middle; }

.d-stamp rect { fill: rgba(59, 143, 217, 0.06); stroke: var(--blue-500); stroke-width: 1.5; stroke-dasharray: 4 3; }
.d-stamp text { fill: var(--blue-600); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-anchor: middle; }

.d-part path,
.d-part rect,
.d-part circle { fill: var(--white); stroke: var(--blue-800); stroke-width: 1.75; stroke-linejoin: round; }
.d-part .d-thin { fill: none; stroke: var(--blue-500); stroke-width: 1; }
.d-part .d-handle { stroke-width: 3; stroke-linecap: round; }
.d-part .d-needle { stroke: var(--blue-500); stroke-width: 1.5; stroke-linecap: round; }

.d-pipe-outer { fill: none; stroke: var(--blue-800); stroke-width: 16; stroke-linejoin: round; }
.d-pipe-inner { fill: none; stroke: var(--blue-100); stroke-width: 12.5; stroke-linejoin: round; }
.d-center { fill: none; stroke: var(--blue-500); stroke-width: 0.8; stroke-dasharray: 14 4 2 4; }
.d-weld { fill: none; stroke: var(--blue-600); stroke-width: 2.5; }

.d-dim path { fill: none; stroke: var(--blue-500); stroke-width: 1; }
.d-arrow { fill: var(--blue-500); }
.d-label { fill: var(--blue-800); font-size: 11px; letter-spacing: 0.04em; text-anchor: middle; }
.d-label-start { text-anchor: start; }

.d-balloon path { fill: none; stroke: var(--blue-500); stroke-width: 1; }
.d-balloon circle { fill: var(--white); stroke: var(--blue-700); stroke-width: 1.25; }
.d-balloon text { fill: var(--blue-800); font-size: 11px; font-weight: 500; text-anchor: middle; }

.d-notes text { fill: var(--ink-soft); font-size: 9px; letter-spacing: 0.04em; }
.d-notes text:first-child { fill: var(--blue-700); font-weight: 500; }

.d-title rect { fill: var(--white); stroke: var(--blue-700); stroke-width: 1.25; }
.d-title path { fill: none; stroke: var(--blue-300); }
.d-title-name { fill: var(--blue-800); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; }
.d-title-key { fill: var(--blue-500); font-size: 7px; letter-spacing: 0.1em; }
.d-title-val { fill: var(--ink); font-size: 10px; }

@media (prefers-reduced-motion: no-preference) {
	.d-pipe-outer,
	.d-pipe-inner {
		stroke-dasharray: 1;
		stroke-dashoffset: 1;
		animation: ff-draw 1.5s 0.3s cubic-bezier(0.6, 0, 0.2, 1) forwards;
	}

	.d-fill-white,
	.d-weld,
	.d-center {
		animation: ff-fade 0.5s 1.2s both;
	}

	.d-dim,
	.d-balloon,
	.d-stamp {
		animation: ff-fade 0.6s 1.6s both;
	}
}

@keyframes ff-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes ff-fade {
	from {
		opacity: 0;
	}
}

/* Services ---------------------------------------------------------------- */

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.service-card {
	position: relative;
	overflow: hidden;
	padding: 28px 26px 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--blue-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s;
}

.service-card:hover {
	transform: translateY(-3px);
	border-color: var(--blue-200);
	box-shadow: var(--shadow);
}

.service-card:hover::before {
	transform: scaleX(1);
}

.service-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 28px;
}

.service-num {
	padding: 0.2rem 0.5rem;
	border: 1px solid var(--blue-200);
	border-radius: 3px;
	background: var(--blue-50);
	color: var(--blue-700);
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.service-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--blue-100);
	border-radius: var(--radius);
	background: var(--blue-50);
	color: var(--blue-700);
}

.service-icon .icon {
	width: 28px;
	height: 28px;
}

.service-title {
	margin: 0 0 0.5rem;
	font-size: 1.3rem;
	font-weight: 600;
}

.service-text {
	margin: 0;
	color: var(--ink-soft);
}

@media (max-width: 960px) {
	.service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.service-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Lifecycle --------------------------------------------------------------- */

.section-lifecycle {
	border-block: 1px solid var(--line);
}

.lifecycle {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The pipe the stages sit on. */
.lifecycle::before {
	content: "";
	position: absolute;
	top: 22px;
	right: calc(50% / var(--steps, 5));
	left: calc(50% / var(--steps, 5));
	height: 12px;
	border-block: 2px solid var(--blue-700);
	background: var(--blue-100);
}

.lifecycle-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}

.lifecycle-node {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 2px solid var(--blue-700);
	border-radius: 50%;
	background: var(--white);
	box-shadow: 0 0 0 6px var(--blue-50);
	color: var(--blue-800);
	font-family: var(--font-mono);
	font-size: 0.85rem;
	font-weight: 500;
}

.lifecycle-step:last-child .lifecycle-node {
	background: var(--blue-700);
	color: var(--white);
}

.lifecycle-label {
	font-size: 1.05rem;
	font-weight: 600;
}

@media (max-width: 720px) {
	.lifecycle {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		max-width: 360px;
		margin-inline: auto;
	}

	.lifecycle::before {
		top: 28px;
		bottom: 28px;
		left: 22px;
		right: auto;
		width: 12px;
		height: auto;
		border-block: 0;
		border-inline: 2px solid var(--blue-700);
	}

	.lifecycle-step {
		flex-direction: row;
		gap: 18px;
		text-align: left;
	}
}

/* Split layouts (sectors, about, contact) -------------------------------- */

.split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: start;
	gap: clamp(32px, 6vw, 88px);
}

.split > .section-head {
	margin-bottom: 0;
}

@media (max-width: 960px) {
	.split {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Sectors ----------------------------------------------------------------- */

.sector-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 32px;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.sector {
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.sector-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
}

.sector-title::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	background: var(--blue-500);
	transform: rotate(45deg);
}

.sector-text {
	margin: 0.35rem 0 0 20px;
	color: var(--ink-soft);
	font-size: 0.975rem;
}

@media (max-width: 600px) {
	.sector-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* About ------------------------------------------------------------------- */

.principles {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.principle {
	display: flex;
	gap: 18px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}

.principle-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--blue-700);
	color: var(--white);
}

.principle-icon .icon {
	width: 20px;
	height: 20px;
}

.principle-title {
	margin: 0 0 0.25rem;
	font-size: 1.15rem;
	font-weight: 600;
}

.principle-text {
	margin: 0;
	color: var(--ink-soft);
}

/* Engagement -------------------------------------------------------------- */

.section-engagement,
.cta-band {
	background-color: #dcecfa;
	border-block: 1px solid var(--blue-200);
}

.model-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.model {
	padding: 24px;
	border: 1px solid var(--blue-200);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.9);
}

.model-tag {
	color: var(--blue-700);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.1em;
}

.model-title {
	margin: 0.6rem 0 0.4rem;
	font-size: 1.15rem;
	font-weight: 600;
}

.model-text {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.975rem;
}

.engagement-cta {
	margin: 36px 0 0;
}

@media (max-width: 1024px) {
	.model-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.model-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

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

.contact-list {
	display: grid;
	gap: 18px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	align-items: center;
	gap: 14px;
}

.contact-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--blue-100);
	border-radius: var(--radius);
	background: var(--blue-50);
	color: var(--blue-700);
}

.contact-icon .icon {
	width: 22px;
	height: 22px;
}

.contact-label {
	display: block;
	color: var(--ink-soft);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.contact-list a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.contact-list a:hover {
	color: var(--blue-700);
}

.contact-form {
	display: grid;
	gap: 16px;
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid var(--line);
	border-top: 3px solid var(--blue-500);
	border-radius: 10px;
	background: var(--white);
	box-shadow: var(--shadow);
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.field {
	display: grid;
	gap: 6px;
}

.field-label {
	font-size: 0.925rem;
	font-weight: 600;
}

.field-label abbr {
	color: var(--blue-700);
	text-decoration: none;
}

.field input,
.field textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid #c3d7ea;
	border-radius: 6px;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
	resize: vertical;
}

.field input:focus,
.field textarea:focus {
	border-color: var(--blue-600);
	outline: none;
	box-shadow: 0 0 0 3px rgba(59, 143, 217, 0.25);
}

.hp {
	position: absolute;
	left: -9999px;
}

.form-status {
	margin: 0;
	padding: 0.8rem 1rem;
	border: 1px solid;
	border-radius: 6px;
	font-weight: 500;
}

.form-status-success {
	border-color: #bfe5cf;
	background: #e7f6ee;
	color: #135c36;
}

.form-status-error {
	border-color: #f5c2c2;
	background: #fdecec;
	color: #8a1c1c;
}

@media (max-width: 600px) {
	.form-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

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

.site-footer {
	padding-top: clamp(56px, 7vw, 80px);
	background: var(--navy-900);
	color: #c9dcee;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.25fr);
	gap: 40px;
}

.footer-brand p {
	max-width: 34ch;
	margin: 18px 0 0;
	color: #a9c3dc;
}

.footer-heading {
	margin: 0 0 16px;
	color: var(--blue-300);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.footer-list,
.site-footer .nav-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: #dce9f6;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--white);
	text-decoration: underline;
}

.footer-contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	overflow-wrap: anywhere;
}

.footer-contact .icon {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--blue-300);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 48px;
	padding-block: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #94b0cb;
	font-size: 0.875rem;
}

.footer-bottom p {
	margin: 0;
}

.footer-mono {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
}

@media (max-width: 960px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Inner pages and posts --------------------------------------------------- */

.page-hero {
	padding-block: clamp(48px, 7vw, 88px);
	border-bottom: 1px solid var(--line);
}

.page-title {
	max-width: 22ch;
	margin: 0;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
}

.page-meta {
	margin: 0.75rem 0 0;
	color: var(--ink-soft);
	font-family: var(--font-mono);
	font-size: 0.85rem;
}

.page-hero-404 .section-text {
	margin-top: 1rem;
}

.entry-wrap {
	padding-block: clamp(40px, 6vw, 80px);
}

.entry {
	max-width: 760px;
	margin-inline: auto;
}

.entry-media {
	margin-bottom: 2rem;
}

.entry-media img {
	display: block;
	border-radius: var(--radius);
}

.entry-content > * {
	margin-block: 0 1.25rem;
}

.entry-content h2 {
	margin-top: 2.5rem;
	font-size: 1.75rem;
}

.entry-content h3 {
	margin-top: 2rem;
	font-size: 1.35rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4rem;
}

.entry-content li + li {
	margin-top: 0.35rem;
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--blue-500);
	background: var(--blue-50);
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content .alignwide {
	width: min(1100px, 100vw - var(--gutter) * 2);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.post-list {
	display: grid;
	gap: 20px;
	max-width: 860px;
	margin-inline: auto;
}

.post-card {
	padding: 26px 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.post-card-date {
	margin: 0 0 0.4rem;
	color: var(--blue-700);
	font-family: var(--font-mono);
	font-size: 0.8rem;
}

.post-card-title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
}

.post-card-title a {
	color: var(--ink);
	text-decoration: none;
}

.post-card-title a:hover {
	color: var(--blue-700);
}

.post-card-text {
	margin: 0;
	color: var(--ink-soft);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.page-numbers {
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: 4px;
	text-decoration: none;
}

.page-numbers.current {
	border-color: var(--blue-700);
	background: var(--blue-700);
	color: var(--white);
}

.cta-band {
	padding-block: clamp(40px, 5vw, 56px);
}

.cta-band-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
}

.cta-band-title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.cta-band-text {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0;
	color: var(--ink-soft);
}

.cta-band-text a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

/* Scroll reveal (enabled by main.js) ------------------------------------- */

.js-reveal [data-reveal] {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}
