/* ==========================================================================
   Courthology theme
   1. Tokens          6. Homepage sections     11. Articles & resources
   2. Base            7. Signature visuals     12. Footer
   3. Motion system   8. Page hero             13. Utilities & states
   4. Header & nav    9. Content & prose       14. Reduced motion & print
   5. Buttons        10. Product UI (plugin)
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--c-ink: #101b32;
	--c-deep: #0a1224;
	--c-night: #070d1c;
	--c-electric: #4778f5;
	--c-accent: #3565e8;
	--c-accent-ink: #2f5fe0;
	--c-ivory: #f4f3ef;
	--c-silver: #b6c7dc;
	--c-slate: #64748b;
	--c-muted: #586a82;
	--c-text: #1d2840;
	--c-surface: #ffffff;
	--c-surface-2: #f1f0ea;
	--c-line: rgba(16, 27, 50, 0.11);
	--c-glow: rgba(71, 120, 245, 0.55);

	--f-sans: var(--wp--preset--font-family--sans, Geist, system-ui, sans-serif);
	--f-serif: var(--wp--preset--font-family--serif, "Instrument Serif", Georgia, serif);
	--f-mono: var(--wp--preset--font-family--mono, "Geist Mono", ui-monospace, monospace);

	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--gutter: clamp(1.1rem, 4vw, 2.5rem);
	--wide: 1240px;
	--narrow: 760px;
	--header-h: 76px;
	--sec: clamp(5rem, 11vw, 9.5rem);
	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 24px;
}

.is-dark, .page-hero, .site-footer, .mobile-menu, .site-header, .nf, .article-cta {
	--c-ink: #ffffff;
	--c-text: #d9e2ef;
	--c-muted: #9fb0c8;
	--c-surface: rgba(255, 255, 255, 0.045);
	--c-surface-2: rgba(255, 255, 255, 0.07);
	--c-line: rgba(182, 199, 220, 0.16);
	--c-accent-ink: #8eacff;
}

/* 2. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--c-ivory);
	color: var(--c-text);
	font-family: var(--f-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "ss01", "cv11";
	overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }
svg { overflow: visible; }
a { color: var(--c-accent-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color 0.2s; }
a:hover { color: var(--c-ink); }
h1, h2, h3, h4 { color: var(--c-ink); font-weight: 620; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; margin: 0 0 0.6em; }
p { text-wrap: pretty; }
::selection { background: var(--c-electric); color: #fff; }
:focus-visible { outline: 3px solid var(--c-electric); outline-offset: 3px; border-radius: 4px; }
.is-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: #9fbcff; }
code, kbd, samp { font-family: var(--f-mono); font-size: 0.88em; }
:not(pre) > code { padding: 0.12em 0.4em; border-radius: 6px; background: rgba(71, 120, 245, 0.09); color: var(--c-ink); }
.is-dark :not(pre) > code { background: rgba(255, 255, 255, 0.08); }
hr { border: 0; height: 1px; background: var(--c-line); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link {
	position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 0.8rem 1.1rem; border-radius: 12px;
	background: #fff; color: var(--c-ink); font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }
.site-main { display: block; min-height: 60vh; outline: none; }
.container { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; padding-block: clamp(3rem, 6vw, 5rem); }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--narrow)); }

/* View transitions between pages (progressive) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: var(--ease); }
.site-header { view-transition-name: site-header; }

/* 3. Motion system ---------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s var(--ease-expo), transform 1.1s var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes rise-blur { from { opacity: 0; transform: translate3d(0, 36px, 0); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 0.92; } 50% { opacity: 1; } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }

/* 4. Header & navigation ---------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
	color: #fff; transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.45s var(--ease-expo), height 0.3s var(--ease);
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: rgba(9, 16, 33, 0.72);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	backdrop-filter: blur(18px) saturate(150%);
	border-bottom-color: rgba(182, 199, 220, 0.12);
	--header-h: 66px;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand__img { display: block; width: clamp(150px, 15vw, 188px); height: auto; }
.site-header .brand__img { transition: width 0.3s var(--ease); }
.site-header.is-scrolled .brand__img { width: clamp(140px, 13vw, 168px); }

.site-nav { margin-left: auto; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; }
.site-nav__list a {
	position: relative; display: block; padding: 0.55rem 0.85rem; border-radius: 999px;
	color: #c3d0e4; font-size: 0.92rem; font-weight: 500; letter-spacing: -0.005em; text-decoration: none; transition: color 0.2s, background 0.2s;
}
.site-nav__list a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav__list .current-menu-item > a, .site-nav__list a[aria-current="page"] { color: #fff; }
.site-nav__list .current-menu-item > a::after, .site-nav__list a[aria-current="page"]::after {
	content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--c-electric); box-shadow: 0 0 10px var(--c-electric);
}
.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.site-header__account { color: #c3d0e4; font-size: 0.92rem; font-weight: 500; text-decoration: none; padding: 0.5rem 0.25rem; }
.site-header__account:hover { color: #fff; }
.site-header__cta { min-height: 42px; padding-inline: 1.15rem; font-size: 0.9rem; }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(182, 199, 220, 0.25); background: rgba(255, 255, 255, 0.04); color: #fff; cursor: pointer; place-items: center; }
.menu-toggle__box { position: relative; width: 18px; height: 10px; display: block; }
.menu-toggle__box i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.4s var(--ease-expo), top 0.4s var(--ease-expo); }
.menu-toggle__box i:first-child { top: 0; }
.menu-toggle__box i:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__box i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__box i:last-child { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
	.site-nav, .site-header__account { display: none; }
	.menu-toggle { display: grid; }
	.site-header__actions { margin-left: auto; }
}
@media (max-width: 520px) { .site-header .site-header__cta { min-height: 38px; padding-inline: 0.95rem; font-size: 0.85rem; } }
.site-header__cta { white-space: nowrap; }

.mobile-menu {
	position: fixed; inset: 0; z-index: 90; padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
	background: radial-gradient(120% 70% at 50% 120%, rgba(47, 95, 224, 0.5), transparent 60%), var(--c-deep);
	color: #fff; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { animation: fade 0.35s var(--ease) both; }
.mobile-menu__inner { position: relative; min-height: 100%; display: flex; flex-direction: column; gap: 2.5rem; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.mobile-menu__list a { display: block; padding: 0.45rem 0; color: #fff; font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 560; letter-spacing: -0.04em; text-decoration: none; }
.mobile-menu__list a:hover, .mobile-menu__list a[aria-current="page"] { color: #9fbcff; }
.mobile-menu.is-open .mobile-menu__list li { animation: rise 0.6s var(--ease-expo) both; animation-delay: calc(60ms * var(--i, 0) + 80ms); }
.mobile-menu__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.mobile-menu__tag { flex-basis: 100%; margin: 1rem 0 0; color: var(--c-muted); font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; }
.mobile-menu__arch { position: absolute; right: -10%; bottom: 0; width: 70%; max-width: 360px; color: rgba(182, 199, 220, 0.18); pointer-events: none; }

/* 5. Buttons ---------------------------------------------------------------- */
.btn, .wp-block-button__link {
	--tx: 0px; --ty: 0px;
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
	min-height: 50px; padding: 0.8em 1.5em; border-radius: 999px; border: 1px solid transparent;
	font-family: var(--f-sans); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em; line-height: 1.1;
	text-decoration: none; cursor: pointer; isolation: isolate;
	transform: translate3d(var(--tx), var(--ty), 0);
	transition: transform 0.35s var(--ease-expo), box-shadow 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn--glow, .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	color: #fff;
	background: linear-gradient(180deg, #4f7ff6 0%, #3565e8 52%, #2b55d4 100%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 0 0 1px rgba(71, 120, 245, 0.45), 0 14px 34px -14px var(--c-glow);
}
.btn--glow::before, .wp-block-button:not(.is-style-outline) .wp-block-button__link::before {
	content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0;
	background: radial-gradient(120% 140% at var(--gx, 50%) 0%, rgba(255, 255, 255, 0.45), transparent 55%);
	transition: opacity 0.35s;
}
.btn--glow:hover, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 0 0 1px rgba(127, 160, 255, 0.7), 0 18px 44px -12px var(--c-glow); }
.btn--glow:hover::before, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover::before { opacity: 1; }
.btn--ghost-light { color: #fff; border-color: rgba(182, 199, 220, 0.35); background: rgba(255, 255, 255, 0.04); }
.btn--ghost-light:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--c-ink); border: 1px solid color-mix(in srgb, var(--c-ink) 28%, transparent); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: color-mix(in srgb, var(--c-ink) 6%, transparent); color: var(--c-ink); }
.is-dark .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(182, 199, 220, 0.35); }
.is-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.08); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wp-block-buttons.cth-center, .cth-center { justify-content: center; text-align: center; }

/* 6. Homepage sections ------------------------------------------------------ */
.entry-canvas > * { margin: 0; }
.cth-sec { position: relative; padding: var(--sec) var(--gutter); }
.cth-sec > * { max-width: var(--wide); margin-inline: auto; }
.cth-sec > .cth-sec__head { max-width: var(--wide); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cth-sec__head > * { max-width: 880px; }
.cth-sec__head > * { margin-top: 0; }
.cth-sec.is-dark { background: var(--c-ink-bg, #101b32); color: var(--c-text); }

.cth-eyebrow {
	display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 1.4rem;
	font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-accent-ink);
}
.cth-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.cth-display { font-size: clamp(3rem, 7.4vw, 6.75rem); font-weight: 600; line-height: 0.95; letter-spacing: -0.055em; margin: 0 0 1.75rem; }
.cth-display--md { font-size: clamp(2.6rem, 6vw, 5.25rem); }
.cth-display em, .cth-h-xl em, .page-hero__title em {
	font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; padding-right: 0.06em;
	background: linear-gradient(100deg, #ffffff 0%, #c9d8f0 30%, #8eacff 62%, #4778f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
:not(.is-dark) > * > .cth-display em, .cth-sec:not(.is-dark) .cth-h-xl em { background: linear-gradient(100deg, #101b32 0%, #2f5fe0 70%, #4778f5 100%); -webkit-background-clip: text; background-clip: text; }
.cth-h-xl { font-size: clamp(2.2rem, 4.6vw, 4rem); letter-spacing: -0.045em; line-height: 1.02; margin: 0 0 1.5rem; }
.cth-lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--c-text); letter-spacing: -0.012em; max-width: 46ch; }
.cth-sublede { color: var(--c-muted); max-width: 48ch; }
.cth-kicker { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; color: var(--c-ink); letter-spacing: -0.01em; }
.cth-kicker strong { font-weight: 400; }
.cth-fineprint { font-size: 0.86rem; color: var(--c-muted); max-width: 70ch; }

/* --- Hero --- */
.cth-sec--hero {
	min-height: max(760px, 100svh);
	padding-top: calc(var(--header-h) + clamp(2rem, 6vh, 5rem));
	padding-bottom: clamp(6rem, 12vh, 9rem);
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); grid-template-areas: "content visual"; align-items: center; column-gap: clamp(1rem, 4vw, 4rem);
	background:
		radial-gradient(60% 55% at 72% 66%, rgba(47, 95, 224, 0.32), transparent 70%),
		radial-gradient(90% 60% at 50% 120%, rgba(71, 120, 245, 0.22), transparent 60%),
		linear-gradient(180deg, #070d1c 0%, #0b1428 38%, #101b32 100%);
	overflow: hidden; isolation: isolate;
}
.cth-sec--hero > * { max-width: none; margin: 0; }
.cth-sec--hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(180deg, transparent, rgba(16, 27, 50, 0.85)); pointer-events: none; z-index: 0; }
.cth-hero__content { grid-area: content; position: relative; z-index: 2; max-width: 640px; justify-self: end; width: 100%; padding-left: max(0px, calc((100vw - 1400px) / 2 - var(--gutter))); }
.cth-hero__content .cth-eyebrow { color: #9fbcff; }
.cth-hero__content .cth-display { color: #fff; }
.cth-hero__content .cth-lede { color: #dbe4f2; margin: 0 0 0.75rem; }
.cth-hero__content .cth-sublede { color: #94a7c3; margin: 0 0 2.25rem; }
.cth-hero__ctas { margin-top: 1.75rem; }
.cth-hero__learn { margin: 1.1rem 0 0; font-size: 0.92rem; }
.cth-hero__learn a { color: #9fbcff; }
.cth-hero__learn a:hover { color: #fff; }
@media (min-width: 1101px) { .cth-hero__learn { display: none; } }

.js .cth-sec--hero .cth-eyebrow { animation: rise 0.9s var(--ease-expo) 0.05s both; }
.js .cth-sec--hero .cth-display { animation: rise-blur 1.2s var(--ease-expo) 0.15s both; }
.js .cth-sec--hero .cth-lede { animation: rise 1s var(--ease-expo) 0.4s both; }
.js .cth-sec--hero .cth-sublede { animation: rise 1s var(--ease-expo) 0.5s both; }
.js .cth-sec--hero .cth-search-wrap { animation: rise 1s var(--ease-expo) 0.65s both; }
.js .cth-sec--hero .cth-hero__ctas, .js .cth-sec--hero .cth-hero__learn { animation: rise 1s var(--ease-expo) 0.8s both; }

@media (max-width: 1023px) {
	.cth-sec--hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "content"; min-height: auto; padding-top: calc(var(--header-h) + 0.5rem); row-gap: 0; }
	.cth-hero__content { justify-self: stretch; max-width: 680px; margin-inline: auto; padding-left: 0; }
}

/* --- Problem (split) --- */
.cth-sec--problem { background: var(--c-ivory); }
.cth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.cth-split > * { max-width: none; margin: 0; }
.cth-split__text { max-width: 560px; justify-self: end; }
.cth-split__text p { max-width: 52ch; }
@media (max-width: 960px) { .cth-split { grid-template-columns: 1fr; } .cth-split__text { justify-self: start; } }

/* --- Solution --- */
.cth-sec--solution { background: #fff; }
.cth-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.cth-grid > * { margin: 0 !important; }
.cth-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cth-card {
	--mx: 50%; --my: 0%;
	position: relative; padding: clamp(1.6rem, 3vw, 2.25rem); border-radius: var(--r-lg);
	background: var(--c-surface); border: 1px solid var(--c-line); overflow: hidden; isolation: isolate;
	transition: transform 0.5s var(--ease-expo), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.cth-card > * { position: relative; z-index: 1; }
.cth-card::before {
	content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 0.4s;
	background: radial-gradient(420px circle at var(--mx) var(--my), rgba(71, 120, 245, 0.12), transparent 60%);
}
.cth-card:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -40px rgba(16, 27, 50, 0.55); border-color: rgba(71, 120, 245, 0.28); }
.cth-card:hover::before { opacity: 1; }
.cth-card h3 { font-size: 1.35rem; margin: 0 0 0.7rem; }
.cth-card p { margin: 0; color: var(--c-muted); font-size: 0.98rem; }
.cth-card__index { font-family: var(--f-mono); font-size: 0.8rem !important; letter-spacing: 0.12em; color: var(--c-accent-ink) !important; margin-bottom: 4.5rem !important; }

.cth-card--pillar { background: var(--c-ivory); border-radius: 240px 240px var(--r-lg) var(--r-lg); padding: 3.25rem clamp(1.75rem, 3vw, 2.5rem) 2.25rem; text-align: center; min-height: 400px; display: flex; flex-direction: column; align-items: center; }
.cth-card--pillar .cth-card__index { font-family: var(--f-serif); font-style: italic; font-size: clamp(3.4rem, 5vw, 4.4rem) !important; letter-spacing: -0.02em; line-height: 1; margin-bottom: 0 !important; background: linear-gradient(180deg, #4778f5, #101b32); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.cth-card--pillar p:last-child { max-width: 34ch; }
.cth-card--pillar::after {
	content: ""; position: absolute; z-index: 0; inset: 14px 14px auto 14px; height: 70%; border-radius: 220px 220px 0 0;
	border: 1px solid rgba(71, 120, 245, 0.2); border-bottom: 0; transition: border-color 0.4s, inset 0.6s var(--ease-expo);
	-webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent);
}
.cth-card--pillar:hover::after { border-color: rgba(71, 120, 245, 0.55); inset: 8px 8px auto 8px; }
.cth-card--pillar .cth-card__title { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-top: auto; padding-top: 2rem; }

/* --- Search band --- */
.cth-sec--search { background: linear-gradient(180deg, #101b32 0%, #0b1530 60%, #0a1224 100%); overflow: hidden; isolation: isolate; }
.cth-search-section__inner { position: relative; z-index: 1; max-width: 920px; text-align: left; }
.cth-search-section__inner .cth-h-xl { color: #fff; }
.cth-search-section__inner .cth-fineprint { margin-top: 2rem; }

/* --- How it works --- */
.cth-sec--how { background: var(--c-ivory); }
.cth-steps-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); margin-bottom: 3rem !important; counter-reset: step; }
.cth-steps-track::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: var(--c-line); }
.cth-steps-track::after { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, var(--c-electric), #9fbcff); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-expo) 0.2s; }
.cth-steps-track.is-in::after, .no-js .cth-steps-track::after { transform: scaleX(1); }
.cth-step-card { position: relative; margin: 0 !important; }
.cth-step-card__n {
	position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 1.75rem !important; border-radius: 50%;
	background: #fff; border: 1px solid var(--c-line); font-family: var(--f-mono); font-size: 0.85rem; color: var(--c-accent-ink);
	box-shadow: 0 10px 24px -14px rgba(16, 27, 50, 0.4);
}
.cth-step-card:hover .cth-step-card__n { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.cth-step-card__title { font-size: 1.3rem; }
.cth-step-card p:last-child { color: var(--c-muted); font-size: 0.98rem; margin: 0; }
@media (max-width: 900px) {
	.cth-steps-track { grid-template-columns: 1fr; gap: 2rem; padding-left: 0; }
	.cth-steps-track::before, .cth-steps-track::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 1px; height: auto; }
	.cth-steps-track::after { transform: scaleY(0); transform-origin: top; }
	.cth-steps-track.is-in::after { transform: scaleY(1); }
	.cth-step-card { padding-left: 80px; }
	.cth-step-card__n { position: absolute; left: 0; top: 0; }
}

/* --- Audience --- */
.cth-sec--audience { background: #fff; }
.cth-card--audience { background: var(--c-ivory); min-height: 260px; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 5.5rem; }
.cth-card--audience::after {
	content: ""; position: absolute; top: 1.6rem; left: clamp(1.6rem, 3vw, 2.25rem); width: 38px; height: 46px; z-index: 1;
	border: 1.5px solid var(--c-electric); border-bottom: 0; border-radius: 40px 40px 0 0; transition: transform 0.6s var(--ease-expo), background 0.4s;
}
.cth-card--audience::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(71, 120, 245, 0.14), transparent 60%); }
.cth-card--audience:hover::after { transform: translateY(-4px); background: linear-gradient(180deg, rgba(71, 120, 245, 0.18), transparent); }
.cth-aud__title { font-size: 1.3rem !important; }

/* --- Resources teaser --- */
.cth-sec--beyond { background: var(--c-ivory); }
.cth-card--resource { background: #fff; }
.cth-res__k { font-family: var(--f-mono); font-size: 0.75rem !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent-ink) !important; margin-bottom: 1.75rem !important; }
.cth-res__title a { color: var(--c-ink); text-decoration: none; }
.cth-res__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.cth-card--resource .cth-res__title::after { content: "\2192"; display: inline-block; margin-left: 0.35em; color: var(--c-accent-ink); opacity: 0; transform: translateX(-6px); transition: all 0.35s var(--ease-expo); }
.cth-card--resource:hover .cth-res__title::after { opacity: 1; transform: none; }
.cth-card--resource:focus-within { outline: 3px solid var(--c-electric); outline-offset: 3px; }
.cth-grid--resources { margin-bottom: 3rem !important; }

/* --- Partner --- */
.cth-sec--partner { background: radial-gradient(80% 90% at 80% 50%, rgba(47, 95, 224, 0.28), transparent 60%), linear-gradient(180deg, #0a1224, #101b32); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 3rem; }
.cth-sec--partner > * { max-width: none; margin: 0; }
.cth-partner__inner { position: relative; z-index: 1; max-width: 620px; justify-self: end; width: 100%; }
.cth-partner__inner .cth-h-xl { color: #fff; }
.cth-partner__inner p:not(.cth-eyebrow):not(.cth-lede) { color: var(--c-muted); max-width: 56ch; }
.cth-partner__inner .wp-block-buttons { margin-top: 2rem; }
@media (max-width: 960px) { .cth-sec--partner { grid-template-columns: 1fr; } .cth-partner__inner { justify-self: start; } }

/* --- Closing --- */
.cth-sec--closing { background: var(--c-ivory); text-align: center; overflow: hidden; padding-bottom: calc(var(--sec) * 1.15); }
.cth-sec--closing > * { position: relative; z-index: 1; }
.cth-sec--closing .cth-display { color: var(--c-ink); max-width: 15ch; margin-inline: auto; }
.cth-closing__lines { margin-inline: auto; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important; color: var(--c-ink) !important; max-width: none !important; }
.cth-sec--closing p { margin-inline: auto; color: var(--c-muted); }
.cth-sec--closing .wp-block-buttons { margin-top: 2.25rem; }

/* 7. Signature visuals ------------------------------------------------------- */
.hero-visual { grid-area: visual; position: static; align-self: stretch; display: grid; place-items: center; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.6s var(--ease) 1.1s; pointer-events: none; }
.hero-net.is-ready { opacity: 1; }
.hero-portal {
	--px: 0; --py: 0;
	position: relative; z-index: 1; width: min(100%, 760px); aspect-ratio: 800 / 790;
	transform: translate3d(calc(var(--px) * 14px), calc(var(--py) * 10px), 0); transition: transform 1.2s var(--ease-expo);
}
.portal { width: 100%; height: 100%; display: block; }
.portal .pt-star { animation: twinkle 3.5s ease-in-out infinite; animation-delay: var(--d); }
.js .portal .pt-bg { animation: fade 1.6s var(--ease) both; }
.js .portal .pt-grid { animation: fade 2s var(--ease) 1.2s both; }
.js .portal .pt-gate { animation: gate-in 1.6s var(--ease-expo) 0.15s both; transform-origin: 400px 600px; }
.js .portal .pt-light { animation: light-on 1.8s var(--ease) 0.55s both, breathe 6s ease-in-out 2.4s infinite; }
.js .portal .pt-door { animation: door-open 1.8s var(--ease-expo) 0.5s both; transform-box: fill-box; transform-origin: left center; }
.js .portal .pt-seam { animation: fade 1s var(--ease) 1.1s both; }
.portal .pt-hz { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .portal .pt-hz { animation: draw 1.9s var(--ease-expo) 0.95s both; }
.js .portal .pt-road { animation: fade 1.4s var(--ease) 1.2s both; }
.js .portal .pt-flare { animation: flare 1.4s var(--ease-expo) 1.05s both; transform-box: fill-box; transform-origin: center; }
.portal .pt-flare circle { animation: breathe 3s ease-in-out infinite; }
@keyframes gate-in { from { opacity: 0; transform: translateY(26px) scale(0.97); filter: brightness(0.25) saturate(0.6); } 60% { filter: brightness(1.15); } to { opacity: 1; transform: none; filter: none; } }
@keyframes light-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes door-open { from { transform: scaleX(1.6) skewY(-4deg); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes flare { from { opacity: 0; transform: scale(0.2); } 60% { opacity: 1; transform: scale(1.25); } to { opacity: 1; transform: none; } }

.hero-chips { position: absolute; inset: 0; pointer-events: none; }
.addr-chip {
	position: absolute; left: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 0.75rem; border-radius: 999px;
	background: rgba(13, 24, 50, 0.6); border: 1px solid rgba(182, 199, 220, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	font-family: var(--f-mono); font-size: 0.74rem; color: #dbe4f2; white-space: nowrap; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
	animation: chip-in 1s var(--ease-expo) both, float 7s ease-in-out infinite; animation-delay: calc(1.9s + var(--i) * 0.28s), calc(3s + var(--i) * 0.9s);
}
.addr-chip b { color: #9fbcff; font-weight: 500; }
.addr-chip__dot { width: 6px; height: 6px; border-radius: 50%; background: #5fe3a5; box-shadow: 0 0 8px #5fe3a5; }
@keyframes chip-in { from { opacity: 0; transform: translateY(12px) scale(0.92); } to { opacity: 1; transform: none; } }
@media (max-width: 1023px) {
	.hero-portal { width: min(92%, 520px); margin-top: -0.5rem; }
	.addr-chip:nth-child(n+3) { display: none; }
}
@media (max-width: 560px) { .addr-chip { font-size: 0.66rem; } }

.tld-marquee {
	position: absolute; left: 0; right: 0; bottom: 1.4rem; z-index: 3; overflow: hidden; pointer-events: none;
	-webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.tld-marquee__track { display: flex; width: max-content; gap: 2.75rem; animation: marquee 48s linear infinite; }
.tld-marquee span { font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.06em; color: rgba(182, 199, 220, 0.42); }
body.no-marquee .tld-marquee { display: none; }

/* Address stack */
.addr-stack { position: relative; width: 100%; max-width: 560px; height: clamp(420px, 46vw, 560px); margin: 0 auto; perspective: 1400px; }
.addr-card {
	--n: 0;
	position: absolute; left: 0; top: 0; width: 78%; border-radius: 14px; background: #fff; overflow: hidden;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 30px 60px -30px rgba(16, 27, 50, 0.45), 0 0 0 1px rgba(16, 27, 50, 0.06);
	transform: translate3d(calc(var(--n) * 6.2%), calc(var(--n) * 21%), 0) rotate(calc((var(--n) - 2) * 1.6deg));
	transition: transform 1.1s var(--ease-expo), opacity 0.9s var(--ease-expo);
	z-index: calc(10 - var(--n));
}
.js .addr-stack:not(.is-in) .addr-card { opacity: 0; transform: translate3d(calc(var(--n) * 2%), calc(var(--n) * 8% + 60px), 0) rotate(0deg); }
.addr-stack.is-in .addr-card { transition-delay: calc(var(--n) * 110ms); }
.addr-stack:hover .addr-card { transform: translate3d(calc(var(--n) * 7.4%), calc(var(--n) * 23.5%), 0) rotate(calc((var(--n) - 2) * 2.4deg)); }
.addr-card__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.8rem; background: #f6f6f3; border-bottom: 1px solid rgba(16, 27, 50, 0.07); }
.addr-card__dots { display: flex; gap: 5px; }
.addr-card__dots i { width: 8px; height: 8px; border-radius: 50%; background: #d8dbe2; }
.addr-card__url { flex: 1; display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.65rem; border-radius: 999px; background: #fff; border: 1px solid rgba(16, 27, 50, 0.08); font-family: var(--f-mono); font-size: 0.74rem; color: #101b32; white-space: nowrap; overflow: hidden; }
.addr-card__url b { color: var(--c-accent-ink); font-weight: 500; }
.addr-card__lock { width: 8px; height: 9px; border: 1.5px solid #5d6f88; border-radius: 2px; position: relative; margin-top: 3px; }
.addr-card__lock::before { content: ""; position: absolute; left: 0.5px; top: -5px; width: 4px; height: 5px; border: 1.5px solid #5d6f88; border-bottom: 0; border-radius: 3px 3px 0 0; }
.addr-card__body { padding: 1rem; display: grid; gap: 0.6rem; min-height: 132px; }
.ab { display: block; height: 10px; border-radius: 5px; background: #e8ebf2; }
.ab--title { width: 46%; height: 14px; background: #101b32; opacity: 0.85; }
.ab--line { width: 82%; }
.ab--short { width: 54%; }
.ab--btn { width: 30%; height: 18px; border-radius: 999px; background: var(--c-accent); }
.ab--hero { height: 62px; border-radius: 8px; background: linear-gradient(120deg, #101b32, #2f5fe0 70%, #9fbcff); }
.ab-grid { display: grid; gap: 0.5rem; }
.ab-grid i { display: block; border-radius: 8px; background: linear-gradient(140deg, #e3e9f7, #c9d6f0); }
.ab-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ab-grid--3 i { height: 46px; }
.ab-grid--gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 48px 48px; }
.ab-grid--gallery i:first-child { grid-row: span 2; background: linear-gradient(160deg, #f3c9a9, #c95f5f 60%, #6a3a8c); }
.ab-grid--gallery i:nth-child(2) { background: linear-gradient(160deg, #b7e4d1, #3c8f7a); }
.ab-grid--gallery i:nth-child(5) { background: linear-gradient(160deg, #f6e3a6, #d49b2c); }
.ab-list { display: grid; gap: 0.5rem; }
.ab-list i { display: block; height: 22px; border-radius: 6px; background: #eef1f6; border-left: 3px solid var(--c-electric); }
.ab-code { padding: 0.85rem; border-radius: 8px; background: #0f1830; display: grid; gap: 0.45rem; }
.ab-code i { display: block; height: 7px; width: var(--w); border-radius: 4px; margin-left: calc(var(--o, 0) * 14px); background: linear-gradient(90deg, #7fa0ff, #b6c7dc); opacity: 0.85; }

/* Horizon (search band) */
.horizon-visual { position: absolute; inset: auto 0 0 0; height: 70%; z-index: 0; pointer-events: none; max-width: none !important; }
.horizon-visual svg { width: 100%; height: 100%; display: block; }
.js .horizon-visual .hzv-arc { stroke-dasharray: 2400; stroke-dashoffset: 2400; transition: stroke-dashoffset 2.6s var(--ease-expo); }
.js .horizon-visual.is-in .hzv-arc { stroke-dashoffset: 0; }

/* Network (partner band) */
.network-visual { position: relative; z-index: 0; width: 100%; max-width: 620px; justify-self: start; }
.network-visual svg { width: 100%; height: auto; display: block; }
.network-visual .orbit { transform-origin: 0 0; animation: spin 60s linear infinite; }
.network-visual .orbit--1 { animation-duration: 90s; animation-direction: reverse; }
.network-visual .orbit--2 { animation-duration: 140s; }
@media (max-width: 960px) { .network-visual { max-width: 420px; justify-self: center; order: -1; margin-bottom: -2rem; } }

/* Gateway (closing) */
.gateway-visual { position: absolute !important; inset: auto 0 0 0; max-width: none !important; height: 85%; z-index: 0 !important; pointer-events: none; }
.gateway-visual svg { width: 100%; height: 100%; }
.gateway-visual .gw-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .gateway-visual .gw-line { stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-expo); transition-delay: var(--d, 0s); }
.js .gateway-visual.is-in .gw-line { stroke-dashoffset: 0; }

/* 8. Page hero -------------------------------------------------------------- */
.page-hero {
	position: relative; overflow: hidden; isolation: isolate;
	padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) var(--gutter) clamp(3.5rem, 7vw, 6rem);
	background: radial-gradient(70% 90% at 85% 120%, rgba(47, 95, 224, 0.35), transparent 60%), linear-gradient(180deg, #070d1c 0%, #101b32 100%);
	color: var(--c-text);
}
.page-hero__art { position: absolute; right: 0; bottom: 0; width: min(56vw, 640px); z-index: -1; opacity: 0.9; }
.page-hero__art svg { display: block; width: 100%; height: auto; }
.page-hero__art .ph-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .page-hero__art .ph-line { animation: draw 2.2s var(--ease-expo) both; animation-delay: calc(0.3s + var(--d, 0s)); }
.page-hero__inner { width: min(100%, var(--wide)); margin-inline: auto; }
.page-hero__text { display: flex; flex-direction: column; max-width: 860px; }
.page-hero__text .cth-page-intro { display: contents; }
.page-hero__text .cth-eyebrow { order: -1; color: #9fbcff; }
.page-hero__title { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.05em; line-height: 0.98; color: #fff; margin: 0 0 1.25rem; }
.page-hero--compact .page-hero__title { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.page-hero--article .page-hero__title { font-size: clamp(2.2rem, 4.8vw, 4rem); max-width: 22ch; }
.cth-page-lede { color: #c9d5e6 !important; margin: 0; max-width: 58ch !important; }
.page-hero__meta { margin: 1.5rem 0 0; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--c-muted); }
.page-hero__meta a { color: #9fbcff; text-decoration: none; }
.js .page-hero__text > *, .js .page-hero__text .cth-page-intro > * { animation: rise 1s var(--ease-expo) both; }
.js .page-hero__title { animation-delay: 0.08s !important; }
.js .page-hero__text .cth-page-lede { animation-delay: 0.2s !important; }

.crumbs { margin-bottom: 2rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--c-muted); }
.crumbs li + li::before { content: "/"; opacity: 0.5; }
.crumbs a { color: #b6c7dc; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }

/* 9. Content & prose -------------------------------------------------------- */
.entry-content { padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(4rem, 9vw, 7rem); }
.entry-content > * { max-width: var(--narrow); margin-inline: auto; }
.entry-content > * + * { margin-top: clamp(2.5rem, 5vw, 4rem); }
.entry-content > .cth, .entry-content > .cth-grid, .entry-content > .cth-prose--wide, .entry-content > .alignwide, .entry-content > .cth-contact { max-width: var(--wide); }
.entry-content > .alignfull { max-width: none; margin-inline: calc(-1 * var(--gutter)); }
.entry-content--app > * { max-width: var(--wide); }
.entry-content--app > .cth-prose--narrow { max-width: var(--narrow); }

.cth-prose > * { margin-block: 0 1.1em; }
.cth-prose > *:last-child { margin-bottom: 0; }
.cth-prose h2, .entry-content--article h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); margin-top: 2.2em; letter-spacing: -0.035em; }
.cth-prose h2:first-child, .entry-content--article h2:first-child { margin-top: 0; }
.cth-prose h3, .entry-content--article h3 { font-size: 1.25rem; margin-top: 1.8em; }
.cth-prose p, .cth-prose li, .entry-content--article p, .entry-content--article li { color: var(--c-text); }
.cth-prose ul, .cth-prose ol, .entry-content--article ul, .entry-content--article ol { padding-left: 1.25rem; display: grid; gap: 0.55rem; }
.cth-prose ul li::marker, .entry-content--article ul li::marker { color: var(--c-electric); }
.cth-prose ol li::marker, .entry-content--article ol li::marker { font-family: var(--f-mono); color: var(--c-accent-ink); font-size: 0.9em; }
.cth-prose strong, .entry-content--article strong { color: var(--c-ink); font-weight: 620; }
.cth-prose--editorial > p:first-of-type::first-letter { float: left; font-family: var(--f-serif); font-size: 4.6em; line-height: 0.82; margin: 0.06em 0.12em 0 0; color: var(--c-accent-ink); }
.cth-prose--editorial h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.02em; }
.cth-prose--legal h2 { font-size: 1.35rem; letter-spacing: -0.02em; }
.cth-prose--legal p, .cth-prose--legal li { font-size: 1rem; }
.cth-callout { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); box-shadow: 0 30px 60px -50px rgba(16, 27, 50, 0.5); position: relative; overflow: hidden; }
.cth-callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--c-electric), #9fbcff); }

.cth-faq { display: grid; gap: 0.75rem; }
.cth-faq > * { margin: 0 !important; }
.wp-block-details { border-radius: var(--r-md); background: #fff; border: 1px solid var(--c-line); transition: border-color 0.3s, box-shadow 0.3s; }
.wp-block-details[open] { border-color: rgba(71, 120, 245, 0.35); box-shadow: 0 24px 50px -40px rgba(16, 27, 50, 0.5); }
.wp-block-details summary {
	position: relative; list-style: none; cursor: pointer; padding: 1.25rem 3.5rem 1.25rem 1.5rem; border-radius: var(--r-md);
	font-weight: 600; font-size: 1.08rem; color: var(--c-ink); letter-spacing: -0.015em;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: ""; position: absolute; right: 1.4rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
	background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat, rgba(71, 120, 245, 0.1);
	color: var(--c-accent-ink); transition: transform 0.45s var(--ease-expo);
}
.wp-block-details[open] summary::after { transform: rotate(135deg); }
.wp-block-details > :not(summary) { padding: 0 1.5rem 1.4rem; margin: 0; color: var(--c-muted); }
.wp-block-details[open] > :not(summary) { animation: rise 0.5s var(--ease-expo); }

.cth-contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.cth-contact > * { margin: 0 !important; }
.cth-contact__aside { padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--c-ink-bg, #101b32); color: #d9e2ef; --c-ink: #fff; --c-muted: #9fb0c8; --c-accent-ink: #8eacff; }
.cth-contact__aside h2 { font-size: 1.25rem; }
.cth-contact__aside h3 { font-size: 1.05rem; margin-top: 2rem; }
.cth-contact__aside ul { padding-left: 1.1rem; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.cth-contact__aside .cth { --cth-ink: #fff; --cth-muted: #9fb0c8; --cth-text: #d9e2ef; }
.cth-contact__aside a { color: #8eacff; }
@media (max-width: 900px) { .cth-contact { grid-template-columns: 1fr; } }

/* 10. Product UI (Courthology Core) ----------------------------------------- */
.cth { --cth-accent: #3565e8; --cth-accent-ink: #2f5fe0; --cth-mono: var(--f-mono); --cth-radius: 16px; }
.cth-search-wrap--hero, .cth-search-wrap--compact { max-width: 620px; }
.is-dark .cth, .nf .cth {
	--cth-ink: #fff; --cth-text: #d9e2ef; --cth-muted: #9fb0c8; --cth-accent-ink: #8eacff;
	--cth-surface: rgba(255, 255, 255, 0.045); --cth-surface-2: rgba(255, 255, 255, 0.07); --cth-line: rgba(182, 199, 220, 0.16);
	--cth-good: #6fe3b0; --cth-good-bg: rgba(52, 199, 133, 0.14); --cth-warn: #ffd27a; --cth-warn-bg: rgba(255, 196, 61, 0.12);
	--cth-bad: #ff9aa5; --cth-bad-bg: rgba(255, 99, 120, 0.12); --cth-info: #a9c1ff; --cth-info-bg: rgba(71, 120, 245, 0.16);
}
.is-dark .cth-search__label, .nf .cth-search__label { color: #8fa3c0; }
.is-dark .cth-search__bar, .nf .cth-search__bar {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
	border-color: rgba(182, 199, 220, 0.22);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}
.is-dark .cth-search__bar:focus-within { border-color: rgba(127, 160, 255, 0.7); box-shadow: 0 0 0 4px rgba(71, 120, 245, 0.25), 0 30px 80px -30px rgba(71, 120, 245, 0.6); }
.is-dark .cth-search__input::placeholder { color: #8396b3; }
.is-dark .cth-search__scheme { color: #7d90ad; }
.is-dark .cth-tld { background: rgba(255, 255, 255, 0.04); color: #cfdbec; }
.is-dark .cth-result { background: rgba(255, 255, 255, 0.04); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.is-dark .cth-result:hover { box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8); }
.is-dark .cth-notice--warn { color: #ffe3a8; }
.is-dark .cth-notice--info { color: #cfdcff; }
.is-dark .cth-notice--bad { color: #ffc6cd; }
.is-dark .cth-btn--ghost { color: #fff; }
.cth-search__submit { font-family: var(--f-sans); }
.cth-btn { font-family: var(--f-sans); }
.cth-panel { border-radius: var(--r-lg); }
.cth-aside { background: radial-gradient(90% 60% at 100% 100%, rgba(47, 95, 224, 0.35), transparent 60%), #101b32; }
.cth-dash__title, .cth-panel__title, .cth-step__title { font-family: var(--f-sans); }
.entry-content > .cth-interest-wrap { max-width: var(--narrow); }
.entry-content > .cth-ext-wrap { max-width: var(--wide); }
.cth-review-time { color: var(--c-muted); }

/* 11. Articles & resources -------------------------------------------------- */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--c-electric), #9fbcff); }
@supports (animation-timeline: scroll()) {
	.read-progress { animation: progress linear both; animation-timeline: scroll(root); }
	@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; padding-block: clamp(3rem, 7vw, 5rem); }
@media (min-width: 1080px) { .article-layout { grid-template-columns: 240px minmax(0, 720px); justify-content: center; } }
.article-toc { align-self: start; }
@media (min-width: 1080px) { .article-toc { position: sticky; top: calc(var(--header-h) + 32px); } }
.article-toc__h { font-family: var(--f-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 1rem; }
.article-toc ol { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 1px solid var(--c-line); display: grid; gap: 0.6rem; counter-reset: toc; }
.article-toc a { color: var(--c-muted); text-decoration: none; font-size: 0.92rem; line-height: 1.35; display: block; transition: color 0.2s, transform 0.3s var(--ease-expo); }
.article-toc a:hover, .article-toc a.is-active { color: var(--c-ink); transform: translateX(3px); }
.article-toc a.is-active { font-weight: 600; }
.entry-content--article { padding: 0; font-size: 1.1rem; line-height: 1.75; }
.entry-content--article > * { margin-block: 0 1.25em; }
.entry-content--article h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.article--solo { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; padding-block: clamp(3rem, 7vw, 5rem); }
.article__media { margin: 0 0 2.5rem; border-radius: var(--r-lg); overflow: hidden; }
.article-cta { position: relative; margin-top: 4rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--r-lg); background: radial-gradient(100% 80% at 100% 100%, rgba(47, 95, 224, 0.45), transparent 60%), #101b32; color: var(--c-text); overflow: hidden; }
.article-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.6rem; }
.article-cta p { color: var(--c-muted); max-width: 46ch; }
.article-cta__mark { position: absolute; right: -20px; bottom: -10px; width: 180px; color: rgba(182, 199, 220, 0.18); }

.res-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.res-card {
	position: relative; display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line);
	transition: transform 0.5s var(--ease-expo), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.res-card:hover { transform: translateY(-4px); box-shadow: 0 34px 60px -40px rgba(16, 27, 50, 0.55); border-color: rgba(71, 120, 245, 0.3); }
.res-card:focus-within { outline: 3px solid var(--c-electric); outline-offset: 3px; }
.res-card__topic { margin: 0 0 2.25rem; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent-ink); }
.res-card__title { font-size: 1.35rem; letter-spacing: -0.025em; margin: 0 0 0.75rem; }
.res-card__title a { color: var(--c-ink); text-decoration: none; }
.res-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.res-card__excerpt { color: var(--c-muted); font-size: 0.98rem; margin: 0 0 1.5rem; }
.res-card__meta { margin: auto 0 0; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 0.78rem; color: var(--c-muted); }
.res-card__arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--c-line); color: var(--c-ink); font-family: var(--f-sans); transition: all 0.35s var(--ease-expo); }
.res-card:hover .res-card__arrow { background: var(--c-accent); border-color: var(--c-accent); color: #fff; transform: translateX(3px); }
.res-grid--hub .res-card:first-child { grid-column: 1 / -1; background: radial-gradient(80% 120% at 100% 100%, rgba(47, 95, 224, 0.4), transparent 60%), #101b32; border-color: transparent; color: #d9e2ef; padding: clamp(2rem, 4vw, 3rem); }
.res-grid--hub .res-card:first-child .res-card__title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); max-width: 20ch; }
.res-grid--hub .res-card:first-child .res-card__title a { color: #fff; }
.res-grid--hub .res-card:first-child .res-card__excerpt { color: #b6c7dc; max-width: 60ch; font-size: 1.05rem; }
.res-grid--hub .res-card:first-child .res-card__topic { color: #9fbcff; }
.res-grid--hub .res-card:first-child .res-card__meta { color: #9fb0c8; }
.res-grid--hub .res-card:first-child .res-card__arrow { color: #fff; border-color: rgba(182, 199, 220, 0.3); }
.topic-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.topic-filter a { padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--c-line); background: #fff; color: var(--c-text); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: all 0.25s; }
.topic-filter a:hover { border-color: var(--c-accent); color: var(--c-accent-ink); }
.topic-filter a[aria-current] { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.related { padding-top: 0; }
.related__h { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.nav-links { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 0.75rem; border-radius: 999px; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); }
.nav-links .current { background: var(--c-ink); color: #fff; }

.site-search { display: flex; gap: 0.5rem; padding: 6px; border-radius: 18px; background: #fff; border: 1px solid var(--c-line); }
.site-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 1rem; font: inherit; color: var(--c-ink); outline: none; }
.site-search:focus-within { box-shadow: 0 0 0 4px rgba(71, 120, 245, 0.2); }
.search-domain-hint { color: var(--c-muted); font-size: 0.95rem; }
.search-results { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1rem; }
.search-result { padding: 1.5rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--c-line); }
.search-result__type { margin: 0 0 0.5rem; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent-ink); }
.search-result__title { font-size: 1.3rem; margin-bottom: 0.4rem; }
.search-result__title a { color: var(--c-ink); text-decoration: none; }
.search-result p:last-child { margin: 0; color: var(--c-muted); }
.empty-note { color: var(--c-muted); font-size: 1.1rem; }

/* 404 */
.nf {
	min-height: 100svh; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 4rem);
	padding: calc(var(--header-h) + 3rem) var(--gutter) 5rem; color: var(--c-text);
	background: radial-gradient(70% 70% at 30% 60%, rgba(47, 95, 224, 0.3), transparent 65%), linear-gradient(180deg, #070d1c, #101b32);
}
.nf__visual { max-width: 560px; justify-self: end; width: 100%; }
.nf__text { max-width: 600px; }
.nf .cth-display { color: #fff; }
.nf__links { margin-top: 2rem; color: var(--c-muted); }
.nf__links a { color: #9fbcff; }
.portal-small svg { width: 100%; height: auto; }
@media (max-width: 900px) { .nf { grid-template-columns: 1fr; } .nf__visual { max-width: 320px; justify-self: center; } }

.setup-notice { text-align: center; padding-top: calc(var(--header-h) + 6rem); }

/* 12. Footer ---------------------------------------------------------------- */
.site-footer {
	position: relative; overflow: hidden; isolation: isolate; color: var(--c-text);
	background: radial-gradient(60% 80% at 50% 120%, rgba(47, 95, 224, 0.28), transparent 60%), linear-gradient(180deg, #0a1224, #070d1c);
	padding: clamp(4.5rem, 9vw, 7rem) var(--gutter) 2rem;
}
.site-footer__arch { position: absolute; inset: auto 0 0 0; height: 260px; color: #b6c7dc; z-index: -1; pointer-events: none; opacity: 0.7; -webkit-mask: linear-gradient(180deg, transparent, #000 60%); mask: linear-gradient(180deg, transparent, #000 60%); }
.site-footer__arch svg { width: 100%; height: 100%; }
.site-footer__inner { width: min(100%, var(--wide)); margin-inline: auto; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
@media (max-width: 960px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer__logo .brand__img { width: 210px; }
.site-footer__tagline { margin: 1.5rem 0 0.25rem; color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.site-footer__statement { margin: 0 0 1.25rem; font-family: var(--f-serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; color: #dbe4f2; }
.site-footer__mission { max-width: 44ch; color: var(--c-muted); font-size: 0.95rem; }
.site-footer__h { font-family: var(--f-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #8fa3c0; margin: 0.4rem 0 1.25rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.site-footer__list a { color: #cdd8e8; text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.site-footer__list a:hover, .site-footer__list a[aria-current] { color: #fff; }
.site-footer__contact { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(182, 199, 220, 0.12); font-size: 0.95rem; }
.site-footer__contact a { color: #cdd8e8; }
.site-footer__contact address { font-style: normal; color: var(--c-muted); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(3.5rem, 8vw, 8rem); padding-top: 1.5rem; border-top: 1px solid rgba(182, 199, 220, 0.12); font-size: 0.85rem; color: var(--c-muted); }
.site-footer__bottom p { margin: 0; }
.site-footer__credit a { color: #b6c7dc; }
.site-footer__top-link { color: #cdd8e8; text-decoration: none; }
.site-footer__top-link:hover { color: #fff; }

/* 13. Utilities & block styles ---------------------------------------------- */
.is-style-eyebrow { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-accent-ink); }
.is-style-lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; }
.is-style-display { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.05em; line-height: 0.98; }
.wp-block-group.is-style-card { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); }
.wp-block-group.is-style-arch { padding: 4rem clamp(1.5rem, 3vw, 2.25rem) 2rem; border-radius: 240px 240px var(--r-lg) var(--r-lg); background: #fff; border: 1px solid var(--c-line); }
.wp-block-group.is-style-dark { padding: clamp(2rem, 5vw, 4rem); border-radius: var(--r-lg); background: #101b32; color: #d9e2ef; --c-ink: #fff; --c-muted: #9fb0c8; --c-accent-ink: #8eacff; }
.wp-block-list.is-style-checks { list-style: none; padding-left: 0; }
.wp-block-list.is-style-checks li { position: relative; padding-left: 1.9rem; }
.wp-block-list.is-style-checks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: rgba(71, 120, 245, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5fe0' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.wp-block-image img { border-radius: var(--r-md); }
.wp-block-quote { border-left: 2px solid var(--c-electric); padding-left: 1.5rem; margin-inline: 0; }
.wp-block-separator { border: 0; height: 1px; background: var(--c-line); }
.alignwide { max-width: var(--wide); }

/* Cursor-aware highlight for pointer devices */
@media (hover: hover) and (pointer: fine) {
	.btn--glow { --gx: 50%; }
}

/* 14. Reduced motion & print ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.tld-marquee__track { animation: none; }
	.hero-portal { transform: none !important; }
	.js .gateway-visual .gw-line, .js .horizon-visual .hzv-arc { stroke-dashoffset: 0; }
	.js .addr-stack:not(.is-in) .addr-card { opacity: 1; transform: translate3d(calc(var(--n) * 6.2%), calc(var(--n) * 21%), 0) rotate(calc((var(--n) - 2) * 1.6deg)); }
	::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media print {
	.site-header, .site-footer, .mobile-menu, .hero-visual, .tld-marquee, .read-progress, .cth-visual, .page-hero__art { display: none !important; }
	body { background: #fff; color: #000; }
	.page-hero, .cth-sec.is-dark { background: none !important; color: #000; padding-top: 1rem; }
	.page-hero__title, .cth-display, .cth-h-xl { color: #000 !important; }
	a { color: #000; }
}
