/*
 * SERP Corporation — institutional preview layer
 * Designed to override the legacy Piclo presentation inside the unpublished draft.
 */

:root {
	--serp-ink: #05070b;
	--serp-charcoal: #10131a;
	--serp-sapphire: #062a66;
	--serp-sapphire-bright: #154b9b;
	--serp-paper: #f5f3ee;
	--serp-white: #ffffff;
	--serp-mist: #d9dde5;
	--serp-steel: #8e97a7;
	--serp-gold: #d8b979;
	--serp-line: #dcd8cf;
	--serp-error: #8f2537;
	--serp-success: #245c45;
	--serp-space-1: 0.5rem;
	--serp-space-2: 0.75rem;
	--serp-space-3: 1rem;
	--serp-space-4: 1.5rem;
	--serp-space-5: 2rem;
	--serp-space-6: 3rem;
	--serp-space-7: 4.5rem;
	--serp-space-8: 7rem;
	--serp-control-height: 52px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	background: var(--serp-ink);
}

body {
	margin: 0;
	background: var(--serp-paper) !important;
	color: var(--serp-ink);
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
}

::selection {
	background: var(--serp-sapphire);
	color: var(--serp-white);
}

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

.serp-shell {
	width: min(100% - 40px, 1240px);
	margin-inline: auto;
}

.serp-kicker {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	color: var(--serp-sapphire-bright);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.serp-kicker::before {
	width: 38px;
	height: 1px;
	background: currentColor;
	content: "";
}

.serp-kicker--light {
	color: #8ab4ec;
}

.serp-section-title {
	max-width: 780px;
	margin: 0;
	color: inherit;
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(2.7rem, 6vw, 5.3rem);
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 0.95;
}

.serp-section-title__link {
	color: inherit;
	text-decoration-color: rgba(6, 42, 102, 0.28);
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.1em;
	transition: color 160ms ease, text-decoration-color 160ms ease;
}

.serp-section-title__link:hover,
.serp-section-title__link:focus-visible {
	color: var(--serp-sapphire);
	text-decoration-color: currentColor;
}

.serp-section-lead {
	max-width: 650px;
	margin: 28px 0 0;
	color: #4d5563;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.75;
}

.serp-button {
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 0;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.serp-button:hover,
.serp-button:focus {
	color: inherit;
	text-decoration: none;
	transform: translateY(-2px);
}

.serp-button--primary {
	background: var(--serp-sapphire);
	color: var(--serp-white);
}

.serp-button--primary:hover {
	background: var(--serp-sapphire-bright);
	color: var(--serp-white);
}

.serp-button--ghost {
	border-color: rgba(255, 255, 255, 0.28);
	color: var(--serp-white);
}

.serp-button--ghost:hover {
	border-color: var(--serp-gold);
	color: var(--serp-white);
}

.serp-button svg {
	width: 18px;
	height: 18px;
}

/* Header */
.serp-header {
	position: sticky;
	z-index: 999;
	top: 0;
	border-bottom: 1px solid rgba(5, 7, 11, 0.1);
	background: rgba(245, 243, 238, 0.94);
	backdrop-filter: blur(18px);
}

.serp-header__inner {
	display: grid;
	min-height: 82px;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 36px;
}

.serp-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.serp-brand:hover {
	text-decoration: none;
}

.serp-brand img {
	width: 43px;
	height: 43px;
	object-fit: contain;
}

.serp-brand__name {
	display: grid;
	color: var(--serp-ink);
	font-family: "Cormorant Garamond", serif;
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 0.9;
	text-transform: uppercase;
}

.serp-brand__name small {
	margin-top: 7px;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 0.55rem;
	font-weight: 500;
	letter-spacing: 0.25em;
}

.serp-nav {
	display: flex;
	justify-content: center;
}

.serp-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.6vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.serp-nav a {
	position: relative;
	color: #303640;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.serp-nav a::after {
	position: absolute;
	right: 0;
	bottom: -9px;
	left: 0;
	height: 1px;
	background: var(--serp-sapphire);
	content: "";
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 180ms ease;
}

.serp-nav a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.serp-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--serp-ink);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.serp-header__cta::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--serp-sapphire);
	box-shadow: 0 0 0 5px rgba(6, 42, 102, 0.1);
	content: "";
}

.serp-mobile-menu {
	display: none;
}

.serp-mobile-menu summary {
	width: 44px;
	height: 44px;
	border: 1px solid var(--serp-line);
	cursor: pointer;
	list-style: none;
}

.serp-mobile-menu summary::-webkit-details-marker {
	display: none;
}

.serp-mobile-menu summary::before,
.serp-mobile-menu summary::after {
	position: absolute;
	width: 20px;
	height: 1px;
	background: var(--serp-ink);
	content: "";
	transition: transform 180ms ease;
}

.serp-mobile-menu summary {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.serp-mobile-menu summary::before {
	transform: translateY(-4px);
}

.serp-mobile-menu summary::after {
	transform: translateY(4px);
}

.serp-mobile-menu[open] summary::before {
	transform: rotate(45deg);
}

.serp-mobile-menu[open] summary::after {
	transform: rotate(-45deg);
}

.serp-mobile-menu__panel {
	position: absolute;
	top: 82px;
	right: 0;
	left: 0;
	padding: 8px 20px 24px;
	border-top: 1px solid var(--serp-line);
	border-bottom: 1px solid var(--serp-line);
	background: var(--serp-paper);
}

.serp-mobile-menu__panel a {
	display: block;
	padding: 14px 0;
	border-bottom: 1px solid var(--serp-line);
	font-family: "Cormorant Garamond", serif;
	font-size: 1.35rem;
	text-decoration: none;
}

/* Hero */
.serp-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 76% 32%, rgba(21, 75, 155, 0.25), transparent 26rem),
		linear-gradient(135deg, #05070b 0%, #0a101c 58%, #071a38 100%);
	color: var(--serp-white);
}

.serp-hero::before {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 64px 64px;
	content: "";
	mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.serp-hero::after {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1px;
	background: linear-gradient(to bottom, transparent, rgba(216, 185, 121, 0.5), transparent);
	content: "";
}

.serp-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	min-height: calc(100vh - 82px);
	grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.7fr);
	align-items: center;
	gap: clamp(56px, 8vw, 120px);
	padding-block: 100px;
}

.serp-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
	color: #96a9c8;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.serp-hero__eyebrow span {
	width: 44px;
	height: 1px;
	background: var(--serp-gold);
}

.serp-hero h1 {
	max-width: 830px;
	margin: 0;
	color: var(--serp-white);
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(4rem, 8.1vw, 8rem);
	font-weight: 500;
	letter-spacing: -0.055em;
	line-height: 0.82;
}

.serp-hero h1 em {
	display: block;
	color: #a9c8f2;
	font-weight: 500;
}

.serp-hero__lead {
	max-width: 690px;
	margin: 38px 0 0;
	color: #c4cad4;
	font-size: clamp(1.05rem, 1.7vw, 1.3rem);
	line-height: 1.75;
}

.serp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 42px;
}

.serp-system-card {
	position: relative;
	padding: 38px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(4, 10, 20, 0.68);
	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
	backdrop-filter: blur(16px);
}

.serp-system-card::before {
	position: absolute;
	top: -1px;
	left: 38px;
	width: 74px;
	height: 2px;
	background: var(--serp-gold);
	content: "";
}

.serp-system-card__label {
	margin: 0 0 34px;
	color: #8fa0ba;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.serp-system-node {
	display: grid;
	grid-template-columns: 38px 1fr;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.serp-system-node:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.serp-system-node__number {
	color: var(--serp-gold);
	font-family: "Cormorant Garamond", serif;
	font-size: 1.45rem;
}

.serp-system-node strong {
	display: block;
	color: var(--serp-white);
	font-family: "Cormorant Garamond", serif;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.1;
}

.serp-system-node small {
	display: block;
	margin-top: 5px;
	color: #8fa0ba;
	font-size: 0.74rem;
	line-height: 1.5;
}

.serp-hero__foot {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.serp-hero-stat {
	padding: 26px 24px 0 0;
}

.serp-hero-stat strong {
	display: block;
	color: var(--serp-white);
	font-family: "Cormorant Garamond", serif;
	font-size: 1.55rem;
	font-weight: 500;
}

.serp-hero-stat span {
	display: block;
	margin-top: 4px;
	color: #8290a5;
	font-size: 0.75rem;
}

/* Corporation */
.serp-intro {
	padding: clamp(100px, 12vw, 170px) 0;
	background: var(--serp-paper);
}

.serp-intro__grid {
	display: grid;
	grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
	gap: clamp(48px, 10vw, 150px);
	align-items: start;
}

.serp-intro__aside {
	position: sticky;
	top: 126px;
	padding-top: 12px;
}

.serp-intro__aside p {
	margin: 0;
	color: #606875;
	font-size: 0.82rem;
	line-height: 1.8;
}

.serp-intro__aside strong {
	display: block;
	margin-bottom: 18px;
	color: var(--serp-sapphire);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.serp-principles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin-top: 70px;
	background: var(--serp-line);
	border: 1px solid var(--serp-line);
}

.serp-principle {
	min-height: 235px;
	padding: 30px;
	background: var(--serp-paper);
}

.serp-principle span {
	color: var(--serp-sapphire);
	font-family: "Cormorant Garamond", serif;
	font-size: 1.3rem;
}

.serp-principle h3 {
	margin: 40px 0 12px;
	color: var(--serp-ink);
	font-family: "Cormorant Garamond", serif;
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.05;
}

.serp-principle p {
	margin: 0;
	color: #59616e;
	font-size: 0.88rem;
	line-height: 1.7;
}

/* Platform */
.serp-platform {
	padding: clamp(100px, 11vw, 160px) 0;
	background: var(--serp-white);
}

.serp-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 50px;
	margin-bottom: 66px;
}

.serp-section-head__note {
	max-width: 310px;
	padding-left: 24px;
	border-left: 1px solid var(--serp-gold);
	color: #5d6571;
	font-size: 0.82rem;
	line-height: 1.7;
}

.serp-capability-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--serp-line);
	border-left: 1px solid var(--serp-line);
}

.serp-capability {
	position: relative;
	min-height: 270px;
	padding: 34px;
	overflow: hidden;
	border-right: 1px solid var(--serp-line);
	border-bottom: 1px solid var(--serp-line);
	background: var(--serp-white);
	transition: background-color 220ms ease, color 220ms ease;
}

.serp-capability::after {
	position: absolute;
	right: -52px;
	bottom: -52px;
	width: 110px;
	height: 110px;
	border: 1px solid rgba(6, 42, 102, 0.16);
	border-radius: 50%;
	content: "";
	transition: transform 260ms ease;
}

.serp-capability:hover {
	background: var(--serp-ink);
	color: var(--serp-white);
}

.serp-capability:hover::after {
	border-color: rgba(216, 185, 121, 0.5);
	transform: scale(1.5);
}

.serp-capability__index {
	color: var(--serp-sapphire);
	font-size: 0.67rem;
	font-weight: 600;
	letter-spacing: 0.16em;
}

.serp-capability:hover .serp-capability__index {
	color: var(--serp-gold);
}

.serp-capability h3 {
	margin: 62px 0 14px;
	color: inherit;
	font-family: "Cormorant Garamond", serif;
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1;
}

.serp-capability p {
	max-width: 320px;
	margin: 0;
	color: #626b78;
	font-size: 0.88rem;
	line-height: 1.7;
}

.serp-capability:hover p {
	color: #aab2bf;
}

/* Operating model */
.serp-model {
	padding: clamp(110px, 12vw, 180px) 0;
	background: var(--serp-ink);
	color: var(--serp-white);
}

.serp-model__top {
	display: grid;
	grid-template-columns: 1fr 0.9fr;
	gap: clamp(60px, 10vw, 150px);
}

.serp-model__statement {
	margin: 24px 0 0;
	color: #a7afbc;
	font-size: 1.05rem;
	line-height: 1.8;
}

.serp-model__steps {
	counter-reset: serp-step;
}

.serp-model-step {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 20px;
	padding: 28px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	counter-increment: serp-step;
}

.serp-model-step:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.serp-model-step::before {
	color: var(--serp-gold);
	content: "0" counter(serp-step);
	font-family: "Cormorant Garamond", serif;
	font-size: 1.25rem;
}

.serp-model-step h3 {
	margin: 0 0 8px;
	color: var(--serp-white);
	font-family: "Cormorant Garamond", serif;
	font-size: 1.55rem;
	font-weight: 500;
}

.serp-model-step p {
	margin: 0;
	color: #919baa;
	font-size: 0.85rem;
	line-height: 1.65;
}

/* Partners and contact */
.serp-partners {
	padding: clamp(100px, 11vw, 160px) 0;
	background: var(--serp-paper);
}

.serp-partner-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 70px;
}

.serp-partner {
	padding: 32px 0 0;
	border-top: 2px solid var(--serp-ink);
}

.serp-partner span {
	color: var(--serp-sapphire);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.serp-partner h3 {
	margin: 30px 0 16px;
	color: var(--serp-ink);
	font-family: "Cormorant Garamond", serif;
	font-size: 2rem;
	font-weight: 600;
	line-height: 1;
}

.serp-partner p {
	margin: 0;
	color: #5d6570;
	font-size: 0.9rem;
	line-height: 1.75;
}

.serp-contact {
	padding-bottom: 110px;
	background: var(--serp-paper);
}

.serp-contact__panel {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr auto;
	align-items: end;
	gap: 40px;
	padding: clamp(42px, 7vw, 88px);
	overflow: hidden;
	background: var(--serp-sapphire);
	color: var(--serp-white);
}

.serp-contact__panel::after {
	position: absolute;
	top: -190px;
	right: -160px;
	width: 440px;
	height: 440px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025), 0 0 0 110px rgba(255, 255, 255, 0.018);
	content: "";
}

.serp-contact h2 {
	position: relative;
	z-index: 1;
	max-width: 790px;
	margin: 0;
	color: var(--serp-white);
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(3rem, 6.5vw, 5.8rem);
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 0.92;
}

.serp-contact p {
	position: relative;
	z-index: 1;
	max-width: 580px;
	margin: 26px 0 0;
	color: #c7d5e9;
}

.serp-contact .serp-button {
	position: relative;
	z-index: 1;
	background: var(--serp-white);
	color: var(--serp-sapphire);
}

/* Footer */
.serp-footer {
	background: var(--serp-ink);
	color: var(--serp-white);
}

.serp-footer__top {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 60px;
	align-items: end;
	padding-block: 70px;
}

.serp-footer__brand {
	display: flex;
	align-items: center;
	gap: 18px;
}

.serp-footer__brand img {
	width: 58px;
	height: 58px;
	object-fit: contain;
	filter: invert(1);
}

.serp-footer__brand strong {
	display: block;
	color: var(--serp-white);
	font-family: "Cormorant Garamond", serif;
	font-size: 1.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.serp-footer__brand span {
	display: block;
	margin-top: 4px;
	color: #7e8999;
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.serp-footer__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: end;
	gap: 16px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.serp-footer__nav a {
	color: #b8c0cb;
	font-size: 0.78rem;
	text-decoration: none;
}

.serp-footer__nav a:hover {
	color: var(--serp-white);
}

.serp-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #747f8e;
	font-size: 0.72rem;
}

.serp-footer__bottom a {
	color: #9ca6b4;
	text-decoration: none;
}

/* Reusable accessibility and form system */
.serp-skip-link {
	position: fixed;
	z-index: 1200;
	top: 12px;
	left: 12px;
	padding: 12px 18px;
	background: var(--serp-white);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	color: var(--serp-ink);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-160%);
	transition: transform 160ms ease;
}

.serp-skip-link:focus {
	color: var(--serp-ink);
	transform: translateY(0);
}

#serp-main:focus {
	outline: none;
}

.serp-surface {
	padding: clamp(28px, 4vw, 48px);
	border: 1px solid var(--serp-line);
	background: var(--serp-white);
}

.serp-form {
	display: grid;
	gap: var(--serp-space-4);
}

.serp-contact-form {
	display: grid;
	gap: var(--serp-space-4);
}

.serp-contact-form > label {
	display: grid;
	gap: 9px;
	color: var(--serp-ink);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.serp-contact-form input:not([type="checkbox"]),
.serp-contact-form select,
.serp-contact-form textarea {
	width: 100%;
	min-height: var(--serp-control-height);
	padding: 13px 15px;
	border: 1px solid #aeb5c0;
	border-radius: 0;
	background: var(--serp-white);
	color: var(--serp-ink);
	font: inherit;
	font-size: 18px;
	line-height: 1.45;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.serp-contact-form textarea {
	min-height: 180px;
	resize: vertical;
}

.serp-contact-form input:focus,
.serp-contact-form select:focus,
.serp-contact-form textarea:focus {
	border-color: var(--serp-sapphire);
	box-shadow: 0 0 0 3px rgba(6, 42, 102, 0.12);
	outline: none;
}

.serp-contact-form .wpcf7-acceptance label {
	display: grid;
	grid-template-columns: 20px 1fr;
	align-items: start;
	gap: 11px;
	color: #4d5563;
	font-size: 0.9rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.6;
	text-transform: none;
}

.serp-contact-form .wpcf7-acceptance input {
	width: 18px;
	height: 18px;
	margin: 4px 0 0;
	accent-color: var(--serp-sapphire);
}

.serp-contact-form .wpcf7-submit {
	width: fit-content;
	min-height: var(--serp-control-height);
	padding: 12px 22px;
	border: 1px solid var(--serp-sapphire);
	background: var(--serp-sapphire);
	color: var(--serp-white);
	font-weight: 700;
	cursor: pointer;
}

.serp-contact-form .wpcf7-not-valid-tip,
.serp-contact-form .wpcf7-response-output {
	font-size: 0.86rem;
	line-height: 1.5;
}

.serp-contact-form .wpcf7-not-valid-tip {
	color: var(--serp-error);
}

.serp-contact-form .serp-form-note {
	margin: 0;
	color: #5d6571;
	font-size: 0.82rem;
	line-height: 1.55;
}

@media (max-width: 720px) {
	.serp-contact-form input:not([type="checkbox"]),
	.serp-contact-form select,
	.serp-contact-form textarea {
		font-size: 16px;
	}
}

.serp-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--serp-space-4);
}

.serp-field {
	display: grid;
	gap: 9px;
}

.serp-field--full {
	grid-column: 1 / -1;
}

.serp-field label,
.serp-field legend {
	color: var(--serp-ink);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.serp-field input,
.serp-field select,
.serp-field textarea {
	width: 100%;
	min-height: var(--serp-control-height);
	padding: 13px 15px;
	border: 1px solid #aeb5c0;
	border-radius: 0;
	background: var(--serp-white);
	color: var(--serp-ink);
	font: inherit;
	line-height: 1.45;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.serp-field textarea {
	min-height: 150px;
	resize: vertical;
}

.serp-field input:focus,
.serp-field select:focus,
.serp-field textarea:focus {
	border-color: var(--serp-sapphire);
	box-shadow: 0 0 0 3px rgba(6, 42, 102, 0.12);
	outline: none;
}

.serp-field input[aria-invalid="true"],
.serp-field select[aria-invalid="true"],
.serp-field textarea[aria-invalid="true"] {
	border-color: var(--serp-error);
}

.serp-field__hint,
.serp-field__error {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.5;
}

.serp-field__hint {
	color: #5d6571;
}

.serp-field__error {
	color: var(--serp-error);
	font-weight: 500;
}

.serp-choice {
	display: grid;
	grid-template-columns: 20px 1fr;
	align-items: start;
	gap: 11px;
	color: #4d5563;
	font-size: 0.86rem;
}

.serp-choice input {
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	accent-color: var(--serp-sapphire);
}

.serp-button:disabled,
.serp-button[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.48;
	transform: none;
}

.serp-status {
	padding: 15px 18px;
	border-left: 3px solid var(--serp-sapphire);
	background: #edf2f8;
	color: #28323f;
	font-size: 0.86rem;
}

.serp-status--success {
	border-left-color: var(--serp-success);
	background: #edf5f1;
}

.serp-status--error {
	border-left-color: var(--serp-error);
	background: #f8edef;
}

/* Phase 3 page system and larger reading scale */
body {
	font-size: 18px;
}

.serp-page {
	background: var(--serp-paper);
}

.serp-page-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(100px, 13vw, 180px) 0 clamp(80px, 10vw, 130px);
	background: linear-gradient(135deg, var(--serp-ink), #071a38);
	color: var(--serp-white);
}

.serp-page-hero::after {
	position: absolute;
	top: -260px;
	right: -180px;
	width: 620px;
	height: 620px;
	border: 1px solid rgba(216, 185, 121, 0.24);
	border-radius: 50%;
	box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.018), 0 0 0 140px rgba(255, 255, 255, 0.012);
	content: "";
}

.serp-page-hero .serp-shell {
	position: relative;
	z-index: 1;
}

.serp-page-hero h1 {
	max-width: 1000px;
	margin: 0;
	color: var(--serp-white);
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(4rem, 8vw, 7.4rem);
	font-weight: 500;
	letter-spacing: -0.055em;
	line-height: 0.88;
}

.serp-page-hero__lead {
	max-width: 760px;
	margin: 38px 0 0;
	color: #c4cad4;
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	line-height: 1.75;
}

.serp-page-section {
	padding: clamp(90px, 11vw, 150px) 0;
	background: var(--serp-paper);
}

.serp-page-section--white {
	background: var(--serp-white);
}

.serp-page-section--dark {
	background: var(--serp-ink);
	color: var(--serp-white);
}

.serp-page-section--dark .serp-section-title {
	color: var(--serp-white);
}

.serp-page-split {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
	align-items: start;
	gap: clamp(54px, 10vw, 150px);
}

.serp-prose {
	color: #48515e;
	font-size: 1.12rem;
	line-height: 1.85;
}

.serp-prose p {
	margin: 0 0 1.4em;
}

.serp-prose--light {
	color: #abb4c1;
}

.serp-detail-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 64px;
	border-top: 1px solid var(--serp-line);
	border-left: 1px solid var(--serp-line);
}

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

.serp-detail-grid--six {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.serp-detail-grid article {
	min-height: 255px;
	padding: 34px;
	border-right: 1px solid var(--serp-line);
	border-bottom: 1px solid var(--serp-line);
	background: inherit;
}

.serp-page-section--dark .serp-detail-grid,
.serp-page-section--dark .serp-detail-grid article {
	border-color: rgba(255, 255, 255, 0.14);
}

.serp-detail-grid span,
.serp-process span {
	color: var(--serp-gold);
	font-family: "Cormorant Garamond", serif;
	font-size: 1.25rem;
}

.serp-detail-grid h3,
.serp-process h3,
.serp-statement-list h3 {
	margin: 48px 0 14px;
	color: inherit;
	font-family: "Cormorant Garamond", serif;
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.05;
}

.serp-detail-grid p,
.serp-process p,
.serp-statement-list p {
	margin: 0;
	color: #5c6572;
	font-size: 0.96rem;
	line-height: 1.75;
}

.serp-page-section--dark .serp-detail-grid p,
.serp-page-section--dark .serp-process p,
.serp-page-section--dark .serp-statement-list p {
	color: #9ca6b4;
}

.serp-statement-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	background: rgba(255, 255, 255, 0.13);
}

.serp-statement-list article {
	padding: clamp(32px, 5vw, 58px);
	background: var(--serp-ink);
}

.serp-statement-list h3 {
	margin-top: 0;
	font-size: 2.35rem;
}

.serp-process {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 60px;
}

.serp-process article {
	padding: 0 28px 34px;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.serp-process h3 {
	margin-top: 40px;
}

.serp-callout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 60px;
}

.serp-callout h2 {
	max-width: 850px;
	margin: 0;
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(2.6rem, 5vw, 4.8rem);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 0.98;
}

.serp-callout p:not(.serp-kicker) {
	max-width: 700px;
	margin: 26px 0 0;
	color: #525b67;
	line-height: 1.8;
}

.serp-article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: 56px;
	border: 1px solid var(--serp-line);
	background: var(--serp-line);
}

.serp-article-grid article {
	min-height: 380px;
	padding: clamp(30px, 4vw, 48px);
	background: var(--serp-paper);
}

.serp-article-grid__meta {
	color: var(--serp-sapphire);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.serp-article-grid h2 {
	margin: 100px 0 24px;
	font-family: "Cormorant Garamond", serif;
	font-size: 2.45rem;
	font-weight: 600;
	line-height: 1;
}

.serp-article-grid article > p:last-child {
	color: #59616e;
	font-size: 0.96rem;
	line-height: 1.75;
}

@media (max-width: 980px) {
	.serp-page-split,
	.serp-callout {
		grid-template-columns: 1fr;
	}

	.serp-detail-grid,
	.serp-detail-grid--four,
	.serp-detail-grid--six,
	.serp-article-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.serp-process {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 48px;
	}

	.serp-callout {
		align-items: start;
	}

	body.admin-bar .serp-header {
		top: 46px;
	}

	.serp-header__inner {
		grid-template-columns: 1fr auto;
	}

	.serp-nav,
	.serp-header__cta {
		display: none;
	}

	.serp-mobile-menu {
		display: block;
	}

	.serp-hero__inner {
		min-height: auto;
		grid-template-columns: 1fr;
		padding-block: 100px 76px;
	}

	.serp-hero::after {
		display: none;
	}

	.serp-system-card {
		max-width: 640px;
	}

	.serp-intro__grid,
	.serp-model__top {
		grid-template-columns: 1fr;
	}

	.serp-intro__aside {
		position: static;
	}

	.serp-principles,
	.serp-capability-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.serp-section-head {
		display: block;
	}

	.serp-section-head__note {
		margin-top: 30px;
	}

	.serp-partner-list {
		grid-template-columns: 1fr;
		gap: 52px;
	}

	.serp-contact__panel {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.serp-footer__top {
		grid-template-columns: 1fr;
	}

	.serp-footer__nav {
		justify-content: start;
	}
}

@media (max-width: 640px) {
	.serp-shell {
		width: min(100% - 28px, 1240px);
	}

	.serp-header__inner {
		min-height: 72px;
	}

	.serp-mobile-menu__panel {
		top: 72px;
	}

	.serp-brand__name {
		font-size: 1.08rem;
	}

	.serp-brand__name small {
		font-size: 0.48rem;
	}

	.serp-hero__inner {
		padding-block: 78px 60px;
	}

	.serp-hero h1 {
		font-size: clamp(3.5rem, 19vw, 5.5rem);
	}

	.serp-hero__actions {
		display: grid;
	}

	.serp-button {
		width: 100%;
	}

	.serp-system-card {
		padding: 28px 22px;
	}

	.serp-hero__foot {
		grid-template-columns: 1fr;
	}

	.serp-hero-stat {
		padding: 18px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.serp-principles,
	.serp-capability-grid {
		grid-template-columns: 1fr;
	}

	.serp-principle,
	.serp-capability {
		min-height: auto;
	}

	.serp-capability h3 {
		margin-top: 42px;
	}

	.serp-contact {
		padding-bottom: 30px;
	}

	.serp-contact__panel {
		padding: 42px 26px;
	}

	.serp-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.serp-form__grid {
		grid-template-columns: 1fr;
	}
}

/* Final readable type hierarchy and legacy-theme override. */
.serp-hero__lead,
.serp-section-lead,
.serp-intro p,
.serp-platform p,
.serp-model p,
.serp-partners p,
.serp-contact p,
.serp-page p:not(.serp-kicker):not(.serp-article-grid__meta):not(.serp-field__hint):not(.serp-field__error),
.serp-prose,
.serp-field input,
.serp-field select,
.serp-field textarea,
.serp-choice,
.serp-status {
	font-size: 18px !important;
	line-height: 1.75;
}

.serp-nav a,
.serp-section-head__note,
.serp-system-node small,
.serp-hero-stat span,
.serp-footer__nav a {
	font-size: 16px;
}

.serp-header__cta,
.serp-hero__eyebrow,
.serp-kicker,
.serp-system-card__label,
.serp-intro__aside strong,
.serp-capability__index,
.serp-partner span,
.serp-footer__brand span,
.serp-footer__bottom,
.serp-field label,
.serp-field legend,
.serp-field__hint,
.serp-field__error,
.serp-article-grid__meta {
	font-size: 14px;
}

@media (max-width: 640px) {
	.serp-hero__lead,
	.serp-section-lead,
	.serp-intro p,
	.serp-platform p,
	.serp-model p,
	.serp-partners p,
	.serp-contact p,
	.serp-page p:not(.serp-kicker):not(.serp-article-grid__meta):not(.serp-field__hint):not(.serp-field__error),
	.serp-prose,
	.serp-field input,
	.serp-field select,
	.serp-field textarea,
	.serp-choice,
	.serp-status {
		font-size: 16px !important;
	}

	.serp-nav a,
	.serp-system-node small,
	.serp-section-head__note,
	.serp-footer__nav a {
		font-size: 15px;
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
