/* ==========================================================================
   Charles Oreve theme — v1.1 "answer engine"
   Night navy chrome, cobalt actions, sky highlights on ice-white content.
   Geist for everything; Geist Mono only inside the search prompt.
   ========================================================================== */

@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geist.woff2") format("woff2");
}
@font-face {
	font-family: "Geist Mono";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geist-mono.woff2") format("woff2");
}

:root {
	--night: #071833;
	--night-2: #0B2147;
	--night-line: rgba(169, 196, 245, 0.18);
	--cobalt: #1F4FE0;
	--cobalt-deep: #183FB5;
	--sky: #8CB4FF;
	--mist: #A9C4F5;
	--ice: #F3F6FB;
	--white: #FFFFFF;
	--ink: #0E1B33;
	--slate: #4A5A78;
	--line: #D9E2F0;
	--field: #7F8CA4;
	--tint: #E8EEFB;

	--sans: "Geist", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--wrap: 76rem;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--space: clamp(4rem, 8vw, 7rem);
	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 20px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 4.5rem;
	--sticky-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--header-h) + 1.5rem);
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

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

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.co-dark :focus-visible, .co-header :focus-visible, .co-hero :focus-visible, .co-footer :focus-visible, .co-cta :focus-visible { outline-color: var(--sky); }

::selection { background: #CADAFF; color: var(--ink); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.co-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); color: var(--ink); padding: 0.75rem 1rem; border-radius: var(--r-sm); }
.co-skip:focus { top: 1rem; }
.co-main:focus { outline: none; }

.co-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.co-narrow { max-width: 52rem; }
.co-bleed { width: 100%; }

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

.co-h1 {
	font-size: clamp(2.5rem, 5.6vw, 4.5rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
	font-weight: 640;
	max-width: 16ch;
	text-wrap: balance;
}
.co-h1--article { max-width: 22ch; font-size: clamp(2.125rem, 4.4vw, 3.5rem); }
.co-h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.co-h3 { font-size: 1.25rem; line-height: 1.3; }
.co-lede { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 34em; margin-top: 1.25rem; }
.co-intro { color: var(--slate); margin: 0.85rem 0 0; max-width: 34em; font-size: 1.125rem; }
.co-kicker { margin: 0 0 1rem; font-weight: 600; font-size: 0.95rem; }
.co-kicker a { color: var(--sky); text-decoration: none; }

/* ---------- Header (always night) ---------- */

.co-header {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50;
	background: rgba(7, 24, 51, 0.88); color: var(--white);
	-webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .co-header { background: var(--night); } }
.co-header.is-scrolled { background: rgba(7, 24, 51, 0.9); border-bottom-color: var(--night-line); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.7); }
.co-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); transition: min-height 0.3s var(--ease); }
.co-header.is-scrolled .co-header__inner { min-height: 3.75rem; }
@media (max-width: 599px) { .co-header { top: 0; } }

/* Reading progress (articles): a hairline under the header, driven by scroll. */
.co-progress { display: none; }
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.co-progress {
			display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
			background: linear-gradient(90deg, var(--cobalt), var(--sky)); transform-origin: 0 50%;
			animation: co-progress linear both; animation-timeline: scroll(root);
		}
	}
}
@keyframes co-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.co-wordmark { color: var(--white); text-decoration: none; font-weight: 650; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.6rem; }
.co-wordmark::before {
	content: ""; width: 0.7rem; height: 0.7rem; border-radius: 3px;
	background: var(--cobalt); box-shadow: 0 0 0 3px rgba(31, 79, 224, 0.35);
}
.co-wordmark:hover { color: var(--white); }

.co-nav { display: flex; align-items: center; gap: 1.5rem; }
.co-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.co-nav__list a {
	display: block; color: var(--mist); text-decoration: none; font-weight: 500; font-size: 0.95rem;
	padding: 0.5rem 0.8rem; border-radius: var(--r-sm); transition: color 0.15s, background-color 0.15s;
}
.co-nav__list a:hover { color: var(--white); background: rgba(169, 196, 245, 0.1); }
.co-nav__list .current-menu-item > a,
.co-nav__list .current_page_parent > a { color: var(--white); background: rgba(169, 196, 245, 0.14); }

.co-nav-toggle {
	display: none; align-items: center; gap: 0.6rem; background: transparent; color: var(--white);
	border: 1px solid var(--night-line); border-radius: var(--r-sm); padding: 0.5rem 0.8rem; font: inherit; font-weight: 500; cursor: pointer;
}
.co-nav-toggle__bars, .co-nav-toggle__bars::before, .co-nav-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}
.co-nav-toggle__bars::before { position: absolute; top: -6px; }
.co-nav-toggle__bars::after { position: absolute; top: 6px; }
[aria-expanded="true"] .co-nav-toggle__bars { background: transparent; }
[aria-expanded="true"] .co-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
[aria-expanded="true"] .co-nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 899px) {
	.co-nav-toggle { display: inline-flex; }
	.co-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 1rem;
		background: var(--night); border-bottom: 1px solid var(--night-line); padding: 0.75rem var(--gutter) 1.5rem;
		max-height: calc(100svh - var(--header-h)); overflow-y: auto;
	}
	.co-nav-open .co-nav { display: flex; }
	.co-nav__list { flex-direction: column; }
	.co-nav__list a { padding: 0.85rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--night-line); }
	.co-nav .co-button { align-self: flex-start; }
}

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

.co-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	background: var(--cobalt); color: var(--white);
	font: 600 1rem/1.2 var(--sans); letter-spacing: -0.01em;
	padding: 0.9rem 1.35rem; border-radius: var(--r-md); border: 1px solid var(--cobalt);
	text-decoration: none; cursor: pointer;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 20px -10px rgba(31, 79, 224, 0.8);
	transition: background-color 0.15s, transform 0.15s var(--ease);
}
.co-button:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: var(--white); }
.co-button:active { transform: translateY(1px); }
.co-button--small { padding: 0.6rem 1rem; font-size: 0.925rem; border-radius: var(--r-sm); }
.co-button--quiet { background: transparent; border-color: var(--night-line); color: var(--white); box-shadow: none; }
.co-button--quiet:hover { background: rgba(169, 196, 245, 0.1); border-color: var(--mist); color: var(--white); }
.co-button--light { background: var(--white); border-color: var(--white); color: var(--cobalt-deep); box-shadow: none; }
.co-button--light:hover { background: var(--tint); border-color: var(--tint); color: var(--cobalt-deep); }
.co-textlink { font-weight: 600; }
.co-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Breadcrumbs ---------- */

.co-crumbs ol { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.875rem; color: var(--slate); }
.co-crumbs li + li::before { content: "/"; margin-right: 0.35rem; opacity: 0.6; }
.co-crumbs a { color: inherit; }
.co-hero .co-crumbs ol, .co-pagehead .co-crumbs ol { color: var(--mist); }

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

.co-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--night); color: var(--white);
	padding-block: clamp(1.75rem, 4vw, 3.25rem) clamp(2.75rem, 5vw, 4.25rem);
	/* Fills the screen under the sticky header; content stays above the fold. */
	min-height: min(calc(100svh - var(--header-h) - var(--wp-admin--admin-bar--height, 0px)), 62rem);
	display: flex; flex-direction: column; justify-content: center;
}
.co-hero > .co-wrap { width: 100%; }
/* Fine film grain, blended into the picture rather than laid on top of it */
.co-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: var(--grain); mix-blend-mode: soft-light; opacity: 0.32;
}

/* Full-screen media behind the text */
.co-hero__bg { position: absolute; inset: 0; z-index: -3; background: var(--night-2); overflow: hidden; }
.co-hero__bg img, .co-hero__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.co-hero__bg.has-video .co-hero__poster { z-index: -1; }
.co-hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 24, 51, 0.94) 0%, rgba(7, 24, 51, 0.82) 38%, rgba(7, 24, 51, 0.45) 72%, rgba(7, 24, 51, 0.3) 100%),
		linear-gradient(0deg, rgba(7, 24, 51, 0.95) 0%, rgba(7, 24, 51, 0) 35%),
		radial-gradient(ellipse 120% 100% at 60% 45%, transparent 50%, rgba(3, 10, 24, 0.6) 100%);
}
@media (max-width: 1099px) {
	.co-hero__bg::after { background: linear-gradient(0deg, rgba(7, 24, 51, 0.96) 15%, rgba(7, 24, 51, 0.8) 60%, rgba(7, 24, 51, 0.6) 100%); }
}
.co-hero--cinema::before { opacity: 0.45; }

/* No media: slow-moving cobalt light behind the index grid */
.co-hero__ambient { position: absolute; inset: -20%; z-index: -3; pointer-events: none; }
.co-hero:not(.co-hero--cinema) { background: radial-gradient(ellipse 110% 100% at 50% 40%, var(--night) 55%, #040F22 100%); }
.co-hero__ambient::before, .co-hero__ambient::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); }
.co-hero__ambient::before { width: 55vw; height: 55vw; left: 45%; top: 5%; background: radial-gradient(circle, rgba(31, 79, 224, 0.55), transparent 65%); }
.co-hero__ambient::after { width: 40vw; height: 40vw; left: 10%; top: 45%; background: radial-gradient(circle, rgba(140, 180, 255, 0.22), transparent 65%); }
@media (prefers-reduced-motion: no-preference) {
	.co-hero__bg img { animation: co-pushin 22s var(--ease) both; }
	.co-hero__ambient::before { animation: co-drift-a 38s ease-in-out infinite alternate; }
	.co-hero__ambient::after { animation: co-drift-b 46s ease-in-out infinite alternate; }
}
@keyframes co-pushin { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes co-drift-a { to { transform: translate(-12vw, 8vh) scale(1.15); } }
@keyframes co-drift-b { to { transform: translate(14vw, -10vh) scale(0.9); } }

/* Scroll cue */
.co-hero__cue {
	position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
	display: grid; justify-items: center; gap: 0.4rem;
	font-size: 0.75rem; letter-spacing: 0.08em; color: var(--mist); opacity: 0.8;
}
.co-hero__cue::after { content: ""; width: 1px; height: 1.75rem; background: linear-gradient(var(--mist), transparent); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) { .co-hero__cue::after { animation: co-cue 2.4s var(--ease) infinite; } }
@keyframes co-cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-height: 760px), (max-width: 599px) { .co-hero__cue { display: none; } }
.co-hero .co-crumbs ol { margin-bottom: 1.25rem; }
.co-hero .co-h1 { font-size: clamp(2.125rem, 4vw, 3.5rem); max-width: 20ch; }
.co-hero .co-lede { font-size: clamp(1.02rem, 1.25vw, 1.15rem); margin-top: 0.9rem; max-width: 38em; }
.co-hero .co-actions { margin-top: 1.5rem; }
/* Faint index grid: the "search index" the page is answering from. */
.co-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(140, 180, 255, 0.07) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(140, 180, 255, 0.07) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 20%, transparent 75%);
}
.co-hero .co-lede { color: var(--mist); }
.co-hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1100px) {
	/* With a photo or video: text left, media right, media no taller than the text. */
	.co-hero--media .co-hero__grid { grid-template-columns: minmax(0, 1fr) clamp(17rem, 22vw, 21rem); gap: 3.5rem; align-items: stretch; }
	.co-hero--media .co-hero__media { aspect-ratio: auto; height: 100%; min-height: 22rem; max-height: calc(100svh - 4.5rem - 6rem); align-self: center; }
	/* Without media: the answer engine sits beside the headline. */
	.co-hero:not(.co-hero--media) .co-hero__main {
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 4rem;
		grid-template-areas: "title engine" "lede engine" "actions engine"; grid-template-rows: auto auto 1fr; align-items: start;
	}
	.co-hero:not(.co-hero--media) .co-h1 { grid-area: title; }
	.co-hero:not(.co-hero--media) .co-lede { grid-area: lede; }
	.co-hero:not(.co-hero--media) .co-actions { grid-area: actions; }
	.co-hero:not(.co-hero--media) .co-engine { grid-area: engine; margin-top: 0; align-self: center; }
}
.co-hero__media {
	margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
	background: var(--night-2); border: 1px solid var(--night-line);
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.co-hero__media img, .co-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.co-hero__media.has-video .co-hero__poster { position: absolute; inset: 0; z-index: -1; }
@media (max-width: 1099px) { .co-hero__media { max-width: 22rem; max-height: 60svh; } }

/* The answer engine: signature element */
.co-engine {
	margin-top: 1.5rem; max-width: 46rem;
	background: linear-gradient(180deg, rgba(20, 45, 95, 0.75), rgba(11, 33, 71, 0.75));
	border: 1px solid var(--night-line); border-radius: var(--r-lg);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 24px 60px -24px rgba(0, 0, 0, 0.55);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.co-engine__prompt {
	display: flex; align-items: center; gap: 0.75rem;
	padding: 0.8rem 1.15rem; border-bottom: 1px solid var(--night-line);
	font-family: var(--mono); font-size: 0.925rem; color: var(--white);
}
.co-engine__icon { width: 1.1rem; height: 1.1rem; flex: none; color: var(--sky); }
.co-engine__q { display: inline-block; }
.co-engine__body { padding: 1rem 1.15rem 1.15rem 3rem; }
.co-engine__answer { font-size: clamp(1.02rem, 1.3vw, 1.175rem); line-height: 1.55; margin: 0; color: var(--white); font-weight: 420; letter-spacing: -0.005em; }
.co-engine__sources { list-style: none; counter-reset: src; margin: 0.85rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.co-engine__sources li { counter-increment: src; }
.co-engine__sources a {
	display: inline-flex; align-items: center; gap: 0.45rem;
	padding: 0.3rem 0.7rem 0.3rem 0.35rem; border-radius: 999px;
	background: rgba(140, 180, 255, 0.1); border: 1px solid var(--night-line);
	color: var(--mist); text-decoration: none; font-size: 0.85rem; font-weight: 500;
}
.co-engine__sources a::before {
	content: counter(src); display: inline-grid; place-items: center;
	width: 1.3rem; height: 1.3rem; border-radius: 999px; background: var(--cobalt); color: var(--white);
	font-family: var(--mono); font-size: 0.72rem;
}
.co-engine__sources a:hover { color: var(--white); border-color: var(--mist); }

@media (max-width: 599px) {
	.co-engine__prompt { padding: 0.7rem 1rem; font-size: 0.85rem; }
	.co-engine__body { padding: 0.85rem 1rem 1rem; }
	.co-engine__answer { font-size: 1rem; line-height: 1.5; }
	.co-engine__sources { margin-top: 0.7rem; gap: 0.35rem; }
	.co-engine__sources a { font-size: 0.8rem; padding: 0.2rem 0.6rem 0.2rem 0.25rem; }
	.co-hero .co-lede { font-size: 1rem; line-height: 1.45; }
	.co-hero .co-h1 { font-size: 2rem; }
	.co-hero .co-actions { margin-top: 1.25rem; }
	.co-hero .co-actions .co-button { padding: 0.8rem 1.1rem; }
}

/* One orchestrated moment: the question types, then the answer arrives.
   Text is visible by default; the animation only starts from hidden, so if
   it cannot run, nothing stays hidden. */
@media (prefers-reduced-motion: no-preference) and (min-width: 600px) {
	.co-hero .co-engine__q {
		white-space: nowrap; overflow: hidden; border-right: 2px solid transparent;
		animation:
			co-type calc(var(--chars, 24) * 38ms) steps(var(--chars, 24), end) 0.35s both,
			co-caret 0.9s step-end 0s 4;
	}
	.co-hero .co-engine__body {
		animation: co-arrive 0.6s var(--ease) both;
		animation-delay: calc(var(--chars, 24) * 38ms + 0.55s);
	}
}
@keyframes co-type { from { width: 0; } to { width: calc(var(--chars, 24) * 1ch + 0.25ch); } }
@keyframes co-caret { 0%, 49% { border-right-color: var(--sky); } 50%, 100% { border-right-color: transparent; } }
@keyframes co-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Light variant (article short answer) */
.co-engine--light {
	margin: 0 0 2.5rem; background: var(--white); border-color: var(--line);
	box-shadow: 0 1px 2px rgba(14, 27, 51, 0.04), 0 12px 32px -18px rgba(14, 27, 51, 0.25);
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.co-engine--light .co-engine__prompt { color: var(--ink); border-color: var(--line); background: var(--ice); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.co-engine--light .co-engine__icon { color: var(--cobalt); }
.co-engine--light .co-engine__answer { color: var(--ink); }

/* ---------- Sections ---------- */

.co-section { padding-block: var(--space) 0; }
.co-main > .co-section:last-child { padding-bottom: var(--space); }
.co-section--rule > .co-wrap { border-top: 1px solid var(--line); padding-top: var(--space); }
.co-hero + .co-section--rule > .co-wrap { border-top: 0; padding-top: 0; }
.co-cta + .co-section--rule > .co-wrap { border-top: 0; }
.co-section__head { margin-bottom: 2.5rem; }

.co-pagehead { background: var(--night); color: var(--white); padding-block: clamp(3rem, 7vw, 5rem); }
.co-pagehead .co-lede, .co-pagehead .co-lede p { color: var(--mist); }

.co-split { display: grid; gap: 2rem 4rem; }
@media (min-width: 960px) {
	.co-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
	.co-split__head { position: sticky; top: var(--sticky-top); align-self: start; }
	.co-split__wide { grid-column: 1 / -1; }
}

/* Facts: a spec sheet */
.co-facts {
	margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.co-facts > div { padding: 1.1rem 1.35rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.co-facts dt { font-size: 0.85rem; color: var(--slate); margin-bottom: 0.3rem; }
.co-facts dd { margin: 0; font-size: 1.125rem; font-weight: 560; line-height: 1.35; letter-spacing: -0.01em; }
.co-facts--inline { margin-top: 1.5rem; max-width: 48rem; }
.co-pagehead .co-facts { background: var(--night-2); border-color: var(--night-line); }
.co-pagehead .co-facts > div { border-color: var(--night-line); }
.co-pagehead .co-facts dt { color: var(--mist); }

/* Prose */
.co-prose { max-width: 40rem; }
.co-prose > :first-child { margin-top: 0; }
.co-prose h2 { font-size: 1.6rem; line-height: 1.2; margin: 2.75rem 0 0.75rem; }
.co-prose h3 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.co-prose ul, .co-prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.co-prose li { margin-bottom: 0.45em; }
.co-prose li::marker { color: var(--cobalt); }
.co-prose code { font-family: var(--mono); background: var(--tint); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.88em; }
.co-prose blockquote { margin: 1.75rem 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--cobalt); font-size: 1.2rem; }

.has-aside { display: grid; gap: 2rem; }
@media (min-width: 1150px) { .has-aside { grid-template-columns: minmax(0, 1fr) 15rem; } }
.co-aside {
	margin: 0; align-self: start; font-weight: 520; font-size: 1.05rem; line-height: 1.5;
	padding: 1.1rem 1.25rem; background: var(--tint); border-radius: var(--r-md); color: var(--ink);
}

.co-figure { margin: 0; }
.co-figure img, .co-figure video { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--tint); }
.co-figure figcaption { color: var(--slate); font-size: 0.9rem; margin-top: 0.6rem; }
.co-section--media.is-full .co-figure img, .co-section--media.is-full .co-figure video { border-radius: 0; border: 0; }
.co-section--media.is-full figcaption { padding-inline: var(--gutter); }

/* Items */
.co-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 700px) { .co-items { grid-template-columns: 1fr 1fr; } }
.co-item { background: var(--white); padding: 1.5rem 1.5rem 1.6rem; position: relative; transition: background-color 0.15s; }
.co-item__title { font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.45rem; letter-spacing: -0.015em; }
.co-item__title a { color: var(--ink); text-decoration: none; }
.co-item__title a::after { content: ""; position: absolute; inset: 0; }
.co-item:has(a):hover { background: var(--tint); }
.co-item:has(a:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: -2px; }
.co-item__title a:focus-visible { outline: none; }
.co-item p { margin: 0; color: var(--slate); }

/* Services: tabs on wide screens, stacked without JS or on small screens */
.co-tabs__list { display: none; }
.co-offer {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.25rem 3rem;
}
.co-offer + .co-offer { margin-top: 1rem; }
@media (min-width: 960px) { .co-offer { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.co-offer__name { font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.025em; }
.co-offer__for { color: var(--slate); margin: 0.6rem 0 0; }
.co-offer__desc { font-size: 1.125rem; }
.co-checklist { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 0.55rem; }
.co-checklist li { position: relative; padding-left: 1.75rem; }
.co-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.3em; width: 1.1rem; height: 1.1rem; border-radius: 999px;
	background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231F4FE0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.co-offer__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.co-offer__price { margin: 0; font-weight: 600; }

@media (min-width: 960px) {
	.co-tabs.is-enhanced { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
	.co-tabs.is-enhanced .co-tabs__list { display: flex; flex-direction: column; gap: 0.4rem; position: sticky; top: var(--sticky-top); }
	.co-tabs.is-enhanced .co-offer { grid-template-columns: 1fr; margin-top: 0; min-height: 100%; }
	.co-tabs.is-enhanced .co-offer__head { display: none; }
	.co-tabs.is-enhanced .co-offer[hidden] { display: none; }
	.co-tabs__list [role="tab"] {
		text-align: left; font: inherit; cursor: pointer; color: var(--ink);
		background: transparent; border: 1px solid transparent; border-radius: var(--r-md);
		padding: 0.9rem 1.1rem; display: grid; gap: 0.2rem; transition: background-color 0.15s, border-color 0.15s;
	}
	.co-tabs__list [role="tab"]:hover { background: var(--white); border-color: var(--line); }
	.co-tabs__list [aria-selected="true"] { background: var(--white); border-color: var(--line); box-shadow: inset 3px 0 0 var(--cobalt); }
	.co-tabs__name { font-weight: 600; letter-spacing: -0.015em; }
	.co-tabs__for { font-size: 0.875rem; color: var(--slate); line-height: 1.4; }
}
@media (max-width: 959px) {
	.co-tabs.is-enhanced .co-offer[hidden] { display: grid; } /* keep everything visible on small screens */
}

/* Steps: a real sequence, drawn as a pipeline */
.co-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.co-step { counter-increment: step; position: relative; padding: 0 0 2rem 3.5rem; }
.co-step::before {
	content: counter(step); position: absolute; left: 0; top: 0;
	width: 2.25rem; height: 2.25rem; border-radius: 999px; display: grid; place-items: center;
	background: var(--white); border: 1px solid var(--line); color: var(--cobalt); font-family: var(--mono); font-weight: 600; font-size: 0.9rem;
}
.co-step::after { content: ""; position: absolute; left: calc(1.125rem - 0.5px); top: 2.5rem; bottom: 0.25rem; width: 1px; background: var(--line); }
.co-step:last-child { padding-bottom: 0; }
.co-step:last-child::after { display: none; }
.co-step__title { font-size: 1.15rem; line-height: 1.3; margin: 0.35rem 0 0.35rem; }
.co-step p { margin: 0; color: var(--slate); }

/* FAQ */
.co-faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.co-faq__item + .co-faq__item { margin-top: 0.5rem; }
.co-faq__item summary {
	list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 1.75rem; gap: 1rem; align-items: center;
	padding: 1.1rem 1.25rem; border-radius: var(--r-md);
}
.co-faq__item summary::-webkit-details-marker { display: none; }
.co-faq__item summary::after {
	content: ""; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--tint)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%231F4FE0' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
	transition: transform 0.2s var(--ease);
}
.co-faq__item[open] summary::after { transform: rotate(45deg); }
.co-faq__q { font-size: 1.075rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.co-faq__a { padding: 0 3.75rem 1.25rem 1.25rem; max-width: 44rem; color: var(--slate); }
.co-faq__a p { margin: 0; }
.co-faq--article { margin-top: 3.5rem; }
.co-faq--article .co-h2 { margin-bottom: 1rem; font-size: 1.6rem; }

/* Quotes */
.co-quotes { display: grid; gap: 1rem; }
.co-quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.co-quote blockquote { margin: 0 0 1rem; font-size: 1.2rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }
.co-quote figcaption { font-weight: 600; }
.co-quote figcaption span { display: block; font-weight: 400; color: var(--slate); }

/* Post lists */
.co-postlist { list-style: none; margin: 0; padding: 0; }
.co-postrow { display: grid; gap: 0.35rem 2rem; border-top: 1px solid var(--line); padding: 1.4rem 0; position: relative; }
.co-postrow:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 700px) {
	.co-postrow { grid-template-columns: 7rem minmax(0, 1fr); }
	.co-postrow.has-thumb { grid-template-columns: 7rem minmax(0, 1fr) 13rem; }
}
.co-postrow__date { color: var(--slate); font-size: 0.875rem; padding-top: 0.3rem; font-variant-numeric: tabular-nums; }
.co-postrow__title { font-size: 1.2rem; line-height: 1.3; margin-bottom: 0.35rem; letter-spacing: -0.015em; }
.co-postrow__title a { color: var(--ink); text-decoration: none; }
.co-postrow__title a::after { content: ""; position: absolute; inset: 0; }
.co-postrow:hover .co-postrow__title a { color: var(--cobalt); }
.co-postrow__excerpt { margin: 0; color: var(--slate); }
.co-postrow__thumb img { border-radius: var(--r-md); aspect-ratio: 16 / 9; object-fit: cover; }
.co-postlist--large .co-postrow__title { font-size: 1.45rem; }
.co-empty { color: var(--slate); font-size: 1.125rem; background: var(--white); border: 1px dashed var(--field); border-radius: var(--r-md); padding: 1.25rem 1.5rem; margin: 0; }

.co-topics ul { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.co-topics a { display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--night-line); border-radius: 999px; color: var(--mist); text-decoration: none; font-size: 0.925rem; }
.co-topics a:hover, .co-topics a[aria-current] { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }

.nav-links { display: flex; gap: 0.5rem; margin-top: 2rem; }
.nav-links .page-numbers { padding: 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; background: var(--white); }
.nav-links .current { background: var(--cobalt); color: var(--white); border-color: var(--cobalt); }

/* ---------- Article ---------- */

.co-article__head .co-h1 { color: var(--white); }
.co-byline { color: var(--mist); margin: 1.25rem 0 0; }
.co-byline a { color: var(--white); }
.co-article__body { padding-block: 3rem var(--space); }
@media (min-width: 1100px) {
	.co-article__body.has-toc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
	.co-article__aside { position: sticky; top: var(--sticky-top); align-self: start; }
}
@media (max-width: 1099px) { .co-article__aside { display: none; } }
.co-article__main { max-width: 44rem; }
.co-toc__title { font-weight: 600; margin-bottom: 0.6rem; font-size: 0.925rem; }
.co-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.co-toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; color: var(--slate); text-decoration: none; font-size: 0.9rem; line-height: 1.4; margin-left: -1px; border-left: 2px solid transparent; }
.co-toc a:hover { color: var(--cobalt); border-left-color: var(--cobalt); }

.co-takeaways { margin: 0 0 2.75rem; padding: 1.5rem 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.co-takeaways .co-h3 { margin-bottom: 0.85rem; }
.co-takeaways ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.co-takeaways li::marker { color: var(--cobalt); }
.co-sources { margin-top: 3rem; }
.co-sources .co-h3 { margin-bottom: 0.75rem; }
.co-sources ul { padding-left: 1.25rem; margin: 0; }

.co-author { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: 3.5rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.co-author__photo { width: 4rem; height: 4rem; border-radius: 999px; object-fit: cover; }
.co-author__name { font-weight: 650; font-size: 1.1rem; margin: 0 0 0.3rem; }
.co-author__name a { color: var(--ink); text-decoration: none; }
.co-author__bio { color: var(--slate); margin-bottom: 0.6rem; }
.co-author__links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; font-weight: 600; }

.co-updated { color: var(--slate); font-size: 0.9rem; margin-top: 3rem; }
.co-page .co-prose { padding-block: var(--space); }

/* ---------- CTA band ---------- */

.co-cta {
	margin-top: var(--space); color: var(--white); position: relative; overflow: hidden; isolation: isolate;
	background:
		radial-gradient(70% 140% at 88% 50%, rgba(31, 79, 224, 0.75), transparent 70%),
		radial-gradient(40% 90% at 10% 110%, rgba(140, 180, 255, 0.18), transparent 70%),
		var(--night);
}
.co-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); mix-blend-mode: soft-light; opacity: 0.3; pointer-events: none; }
.co-cta .co-button--light { box-shadow: 0 10px 40px -10px rgba(140, 180, 255, 0.6); }
.co-cta::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
	mask-image: linear-gradient(to left, #000, transparent 70%);
}
.co-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem 3rem; padding-block: clamp(4rem, 9vw, 7rem); }
.co-cta__title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 20ch; }
.co-cta__text { margin: 0.85rem 0 0; color: var(--mist); max-width: 36em; font-size: 1.1rem; }
.co-cta + .co-section { padding-top: var(--space); }
.co-main > .co-cta:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */

.co-form { display: grid; gap: 0.25rem; max-width: 44rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.co-form__row { display: grid; gap: 0 1.25rem; }
@media (min-width: 700px) { .co-form__row { grid-template-columns: 1fr 1fr; } }
.co-field { margin: 0 0 1.1rem; display: grid; gap: 0.4rem; }
.co-field label, .co-search label { font-weight: 600; font-size: 0.95rem; }
.co-optional { font-weight: 400; color: var(--slate); }
.co-field input, .co-field select, .co-field textarea, .co-search input {
	width: 100%; font: inherit; color: var(--ink); background: var(--white);
	border: 1px solid var(--field); border-radius: var(--r-sm); padding: 0.75rem 0.85rem; min-height: 3rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.co-field textarea { resize: vertical; min-height: 9rem; }
.co-field input:focus-visible, .co-field select:focus-visible, .co-field textarea:focus-visible, .co-search input:focus-visible {
	outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(31, 79, 224, 0.25);
}
.co-form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.co-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 0.5rem 0 0; }
.co-form__fineprint { color: var(--slate); font-size: 0.875rem; }
.co-form-notice { border-radius: var(--r-md); padding: 1rem 1.25rem; margin-bottom: 1.25rem; max-width: 44rem; }
.co-form-notice p { margin: 0; }
.co-form-notice--ok { background: #E3F2EA; border: 1px solid #9CCFB0; }
.co-form-notice--error { background: #FBE9E7; border: 1px solid #E5A397; }
.co-form-notice:focus { outline: none; }
.co-contact-facts { margin: 1.75rem 0 0; display: grid; gap: 1.1rem; }
.co-contact-facts dt { font-size: 0.875rem; color: var(--slate); }
.co-contact-facts dd { margin: 0.15rem 0 0; font-weight: 500; }

.co-search { margin: 2rem 0; max-width: 32rem; }
.co-search__row { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.co-pagehead .co-search label { color: var(--white); }
.co-404-nav .co-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.co-404-nav a { color: var(--sky); }

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

.co-footer { background: var(--night); color: var(--mist); padding-top: clamp(3.5rem, 6vw, 5rem); font-size: 0.95rem; }
.co-footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.35); }
.co-footer a:hover { color: var(--sky); }
.co-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 900px) { .co-footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); } }
.co-footer__name { font-weight: 650; font-size: 1.25rem; color: var(--white); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.co-footer__about p:not(.co-footer__name) { max-width: 30em; }
.co-footer__note { color: var(--sky); font-weight: 600; }
.co-footer__label { font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.co-footer address { font-style: normal; line-height: 1.7; }
.co-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.co-footer__list a { text-decoration: none; color: var(--mist); }
.co-footer__list a:hover { color: var(--white); text-decoration: underline; }
.co-footer__base { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; border-top: 1px solid var(--night-line); padding-block: 1.5rem; font-size: 0.875rem; }
.co-footer__base p { margin: 0; }
.co-footer__profiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- Core blocks inside articles ---------- */

.co-prose .wp-block-image { margin: 2rem 0; }
.co-prose .wp-block-image img { border-radius: var(--r-md); }
.co-prose figcaption { color: var(--slate); font-size: 0.9rem; margin-top: 0.5rem; }
.co-prose .wp-block-table table { width: 100%; border-collapse: collapse; }
.co-prose .wp-block-table td, .co-prose .wp-block-table th { border-bottom: 1px solid var(--line); padding: 0.6rem 0.5rem; text-align: left; }

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.co-header, .co-footer, .co-cta, .co-nav-toggle, .co-article__aside, .co-form, .co-hero__media { display: none !important; }
	body, .co-hero, .co-pagehead { background: #fff !important; color: #000 !important; }
	.co-engine { background: none; border: 1px solid #999; }
	.co-engine__answer, .co-engine__prompt { color: #000; }
}


/* ---------- Cinematic scroll: images and videos settle into place as they enter ---------- */
.co-section--media.is-full .co-figure img, .co-section--media.is-full .co-figure video { aspect-ratio: 21 / 9; object-fit: cover; max-height: 80svh; }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.co-figure img, .co-figure video, .co-postrow__thumb img {
			animation: co-settle linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 35%;
		}
	}
}
@keyframes co-settle {
	from { transform: scale(1.06); clip-path: inset(7% 5% round var(--r-lg)); filter: brightness(0.7); }
	to { transform: scale(1); clip-path: inset(0 round var(--r-lg)); filter: none; }
}

/* ---------- Article cover: full-bleed image behind the title ---------- */
.co-article__head.has-cover { position: relative; isolation: isolate; overflow: hidden; min-height: min(72svh, 44rem); display: flex; align-items: flex-end; padding-top: 6rem; }
.co-article__head.has-cover > .co-wrap { width: 100%; }
.co-article__bg { position: absolute; inset: 0; z-index: -2; }
.co-article__bg img { width: 100%; height: 100%; object-fit: cover; }
.co-article__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 24, 51, 0.97) 8%, rgba(7, 24, 51, 0.6) 55%, rgba(7, 24, 51, 0.25) 100%); }
.co-article__head.has-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); mix-blend-mode: soft-light; opacity: 0.3; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .co-article__bg img { animation: co-pushin 22s var(--ease) both; } }

.co-section--media.is-full .co-figure img, .co-section--media.is-full .co-figure video { border-radius: 0; }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.co-section--media.is-full .co-figure img, .co-section--media.is-full .co-figure video { animation-name: co-settle-full; }
	}
}
@keyframes co-settle-full {
	from { transform: scale(1.06); clip-path: inset(6% 4%); filter: brightness(0.7); }
	to { transform: scale(1); clip-path: inset(0); filter: none; }
}
