/* ============================================================
   ROI Chief — Custom CSS v2 (full mockup port)
   Graphite-violet base. Restrained gradients. Cut-edge geometry.
   Source of truth: ui_kits/website/styles.css + colors_and_type.css
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
	/* Backgrounds — graphite luminance ladder (each rung visibly lighter) */
	--rc-bg:           #0B0D10;  /* page base */
	--rc-bg-deep:      #08090C;  /* footer / nav (darkest) */
	--rc-bg-rise:      #14161B;  /* raised / alternating band */
	--rc-card:         #1B1E26;  /* card surface */
	--rc-card-soft:    #232733;  /* elevated */
	--rc-line-bg:      #101216;

	/* Brand purple — de-defaulted jewel-violet, held to one job */
	--rc-purple:       #5B4FC4;  /* solid CTA / primary fill (white text) */
	--rc-purple-lt:    #9D90F8;  /* accent: links, eyebrows, the one hero noun */
	--rc-purple-dk:    #4A3FB0;  /* hover / pressed */
	--rc-purple-deep:  #2E2770;

	/* Status / accent — desaturated for dark, callouts only */
	--rc-yellow:       #D9A441;
	--rc-yellow-soft:  #E8CE84;
	--rc-green:        #46B17B;
	--rc-red:          #E5645A;

	/* Text — solid tokens; near-white base (no halation) */
	--rc-text:         #E6E8EC;  /* primary (~14:1 on card) */
	--rc-text-soft:    #A7AEBA;  /* secondary (~7:1) */
	--rc-text-mute:    #9FA6B3;  /* muted — AA on every surface incl. small mono labels */
	--rc-text-faint:   #6E7585;  /* index numerals — clears the 3:1 non-text floor on cards */
	--rc-text-ink:     #0B0D10;  /* on light surfaces */

	/* Lines — solid 1px low-chroma hairlines (no glow) */
	--rc-line:         #2A2E37;  /* default hairline */
	--rc-line-strong:  #3A3F4B;  /* dividers / hover */
	--rc-line-bright:  #525A68;  /* focus / active */
	--rc-glass:        rgba(11,13,16,0.82);

	/* Gradients — near-solid surfaces with a faint top-light (not glow) */
	--rc-grad-card:    linear-gradient(180deg, #1F232C 0%, #181B22 100%);
	--rc-grad-rise:    linear-gradient(180deg, #16181E 0%, #101216 100%);
	--rc-grad-purple:  linear-gradient(180deg, #5B4FC4 0%, #4A3FB0 100%);

	/* Type */
	--rc-font-sans:    'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--rc-font-display: 'Urbanist', 'Poppins', system-ui, sans-serif;
	--rc-font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Radius */
	--rc-r-sm:  6px;
	--rc-r-md:  10px;
	--rc-r-lg:  14px;
	--rc-r-xl:  18px;
	--rc-r-2xl: 22px;
	--rc-r-pill: 9999px;

	/* Cut-edge */
	--rc-cut:    14px;
	--rc-cut-sm: 8px;
	--rc-cut-lg: 20px;
	--rc-clip-cut:
		polygon(var(--rc-cut) 0,
		        100% 0,
		        100% calc(100% - var(--rc-cut)),
		        calc(100% - var(--rc-cut)) 100%,
		        0 100%,
		        0 var(--rc-cut));

	/* Shadows */
	--rc-shadow-sm:  0 1px 2px rgba(0,0,0,0.20), 0 1px 1px rgba(0,0,0,0.12);
	--rc-shadow-md:  0 8px 18px -10px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.18);
	--rc-shadow-lg:  0 18px 36px -18px rgba(0,0,0,0.55), 0 4px 10px rgba(0,0,0,0.22);
	--rc-shadow-btn: 0 6px 14px -6px rgba(0,0,0,0.40);

	/* Motion */
	--rc-ease:        cubic-bezier(.22,.61,.36,1);
	--rc-ease-out:    cubic-bezier(.16,1,.3,1);
	--rc-dur-instant: .12s;
	--rc-dur-fast:    .18s;
	--rc-dur-base:    .24s;
	--rc-dur-slow:    .42s;
	--rc-dur-drift:   12s;

	/* Reveal stagger step — consumed by the §5b staggered-reveal utility. */
	--rc-stagger:     .07s;

	/* Legacy aliases (so existing patterns continue to compile if any survive) */
	--rc-violet:      var(--rc-purple);
	--rc-violet-2:    var(--rc-purple-lt);
	--rc-violet-3:    var(--rc-purple-dk);
	--rc-amber:       var(--rc-yellow);
}

/* ============================================================
   2. RESETS + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html, body {
	background: var(--rc-bg);
	color: var(--rc-text);
	font-family: var(--rc-font-sans);
	font-size: 1rem;
	line-height: 1.6;
	min-height: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }

h1, h2, h3, h4, h5, h6, .wp-block-heading {
	font-family: var(--rc-font-display);
	color: #fff;
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.012em;
	margin: 0;
}
h1 {
	font-size: clamp(2.75rem, 5.2vw + 1rem, 4.75rem);
	line-height: 1.02;
	letter-spacing: -0.024em;
}
h2 { font-size: clamp(2rem, 3vw + 1rem, 2.85rem); letter-spacing: -0.018em; }
h3 { font-size: clamp(1.4rem, 1.8vw + 0.6rem, 1.85rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; font-weight: 700; }

p { color: var(--rc-text-soft); }
a {
	color: var(--rc-purple-lt);
	text-decoration: none;
	transition: color var(--rc-dur-fast) var(--rc-ease);
}
a:hover { color: #fff; }

code, pre {
	font-family: var(--rc-font-mono);
	background: rgba(181,164,232,0.06);
	border: 1px solid var(--rc-line);
	border-radius: var(--rc-r-sm);
	padding: 0.18rem 0.42rem;
	color: var(--rc-text-soft);
	font-size: 0.9em;
}
pre { padding: 1rem 1.25rem; overflow-x: auto; }

::selection { background: rgba(181,164,232,0.32); color: #fff; }

/* ============================================================
   3. WORDPRESS BLOCK DEFAULTS (dark-theme overrides)
   ============================================================ */
.wp-site-blocks { background: var(--rc-bg); }
main.wp-block-group { color: #fff; }
main.wp-block-group h1, main.wp-block-group h2,
main.wp-block-group h3, main.wp-block-group h4 { color: #fff; }
main.wp-block-group p { color: var(--rc-text-soft); }

/* Kill default WP gap between header template-part and first hero,
   AND make the template-part wrapper itself the sticky container so it
   stays pinned through page scroll. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent;
	line-height: 0;
	will-change: transform;
}
header.wp-block-template-part > * { line-height: 1.6; }
header.wp-block-template-part + .wp-block-cover,
header.wp-block-template-part + .wp-block-group,
header.wp-block-template-part + main { margin-top: 0 !important; }
main.wp-block-group > .wp-block-cover:first-child,
main.wp-block-group > .wp-block-group:first-child { margin-top: 0 !important; }

/* No overflow clipping on html, body or the page roots (.rc5, .rcn, main.rcb). Safari (WebKit) can only keep a
   `position: sticky` element (the header, the pinned scenes, the blog's "On this page") on its fast scrolling layer when
   no ancestor clips overflow; with a clipping ancestor it repositions the element from the page on every frame, which
   jitters on iPhone. Horizontal overflow is stopped where it starts instead: a section whose content can spill
   sideways clips itself (e.g. .rc5-mg), and no clipping section may contain a sticky element. */

/* Buttons — core button block in post content gets the cut-edge CTA look */
.wp-block-button .wp-block-button__link {
	background: var(--rc-purple) !important;
	color: #fff !important;
	border-radius: 0 !important;
	clip-path: var(--rc-clip-cut);
	--rc-cut: 8px;
	font-family: var(--rc-font-display);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.95rem 1.65rem !important;
	transition: background var(--rc-dur-fast) var(--rc-ease);
	box-shadow: var(--rc-shadow-btn);
}
.wp-block-button .wp-block-button__link:hover {
	background: var(--rc-purple-dk) !important;
	color: #fff !important;
}
/* Core's built-in Outline style: the !important fill above would otherwise win over it. */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: #fff !important;
	box-shadow: inset 0 0 0 1px var(--rc-line-bright);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	box-shadow: inset 0 0 0 1px var(--rc-purple-lt);
	background: rgba(181,164,232,0.04) !important;
}

/* Separators */
main .wp-block-separator { border-color: var(--rc-line); background-color: var(--rc-line); }
main .wp-block-query-pagination a,
main .wp-block-query-pagination .wp-block-query-pagination-numbers { color: #fff; }

/* ============================================================
   4. CONTAINERS + SECTIONS
   ============================================================ */
.rc__container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.rc__container--narrow { max-width: 880px; }

.rc-section { padding: 78px 0; position: relative; }
html { scroll-padding-top: 84px; }
.rc-section--rise { background: var(--rc-bg-rise); }

.rc-section__head { max-width: 760px; margin: 0 auto 42px; text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rc-section__head--left { text-align: left; align-items: flex-start; }
.rc-section__head h2 { margin: 0; max-width: 22ch; }
.rc-section__head p { color: #C2C8D2; font-size: 16.5px; line-height: 1.6; margin: 0; max-width: 52ch; }
.rc-section__head--left h2, .rc-section__head--left p { max-width: 34ch; }

/* ============================================================
   5. AMBIENT MOTION — grid drift, pulse
   ============================================================ */
/* Ambient tile layers (.rc-hero__grid::before, §11) drift via a compositor transform on an
   oversized ::before (masked by the non-moving parent) — not background-position, which
   repaints the whole masked layer every frame. One keyframe, per-layer --rc-tile. */
@keyframes rcGridShift {
	to { transform: translate3d(var(--rc-tile, 48px), var(--rc-tile, 48px), 0); }
}

.rc-amb-pulse {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--rc-green);
	position: relative;
	display: inline-block;
}
.rc-amb-pulse::after {
	content: ""; position: absolute; inset: -3px; border-radius: 50%;
	border: 1px solid var(--rc-green);
	animation: rcPulse 2.6s var(--rc-ease) infinite;
	opacity: 0;
}
@keyframes rcPulse {
	0%   { transform: scale(0.6); opacity: 0; }
	40%  { opacity: 0.5; }
	100% { transform: scale(2.0); opacity: 0; }
}

/* Section layering for .rc-section-lines (templates/404.html) */
.rc-section-lines { position: relative; overflow: hidden; }
.wp-block-group.rc-section-lines > *:not(.rc-bg-lines):not(.rc-bg-dots) { position: relative; z-index: 1; }
.wp-block-cover.rc-section-lines .wp-block-cover__inner-container > *:not(.rc-bg-lines):not(.rc-bg-dots) {
	position: relative; z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.rc-hero__grid::before, .rc-amb-pulse::after { animation: none !important; }
}

/* ============================================================
   5b. STAGGERED-REVEAL UTILITY
   A [data-reveal="stagger"] (or .rc-reveal) container reveals its
   non-decorative children in document order once initReveal() adds
   .is-in. Children are auto-numbered via --i (JS); step = --rc-stagger.
   :where() keeps specificity 0 so component styles always win.
   ============================================================ */
:where([data-reveal="stagger"], .rc-reveal) > :not([aria-hidden="true"]) {
	opacity: 0; translate: 0 12px;
}
:where([data-reveal="stagger"], .rc-reveal).is-in > :not([aria-hidden="true"]) {
	animation: rcRevealIn .55s var(--rc-ease-out) both;
	animation-delay: calc(var(--i, 0) * var(--rc-stagger, .07s));
}
@keyframes rcRevealIn { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
	:where([data-reveal="stagger"], .rc-reveal) > * { opacity: 1 !important; translate: none !important; animation: none !important; }
}

/* ============================================================
   6. EYEBROW + STATUS PIECES
   ============================================================ */
.rc-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--rc-purple-lt);
	font-family: var(--rc-font-mono);
	font-size: 11.5px; font-weight: 600;
	letter-spacing: 0.14em; text-transform: uppercase;
	padding: 5px 11px;
	background: rgba(157,144,248,0.06);
	border: 1px solid var(--rc-line);
	border-radius: 4px;
}
/* a numeric prefix ties the eyebrow to the technical voice; set --n in markup */
.rc-eyebrow[data-n]::before { content: counter(rc-eb, decimal-leading-zero) " /"; counter-reset: rc-eb var(--n); color: var(--rc-text-faint); margin-right: 2px; }
.rc-eyebrow--yellow { color: var(--rc-yellow); border-color: rgba(217,164,65,0.22); background: rgba(217,164,65,0.06); }
.rc-eyebrow--green  { color: var(--rc-green);  border-color: rgba(70,177,123,0.24); background: rgba(70,177,123,0.07); }

/* ============================================================
   7. BUTTONS (.rc-btn)
   ============================================================ */
.rc-btn {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--rc-font-sans);
	font-weight: 500;
	font-size: 14px; letter-spacing: 0.005em;
	padding: 12px 22px;
	cursor: pointer; text-decoration: none;
	border: 1px solid transparent;
	transition:
		background var(--rc-dur-fast) var(--rc-ease),
		color var(--rc-dur-fast) var(--rc-ease),
		border-color var(--rc-dur-fast) var(--rc-ease),
		transform var(--rc-dur-fast) var(--rc-ease);
}
.rc-btn--pill {
	border-radius: 9999px;
	background: var(--rc-purple);
	color: #fff;
	box-shadow: var(--rc-shadow-btn);
}
.rc-btn--pill:hover { background: var(--rc-purple-dk); color: #fff; }
.rc-btn--pill.is-ghost {
	background: transparent; color: #fff;
	border-color: var(--rc-line-bright);
	box-shadow: none;
}
.rc-btn--pill.is-ghost:hover {
	background: rgba(181,164,232,0.06);
	border-color: var(--rc-purple-lt);
}
.rc-btn--cut {
	position: relative;
	clip-path: var(--rc-clip-cut);
	--rc-cut: 10px;
	background: var(--rc-purple);
	color: #fff;
	padding: 13px 26px;
	font-weight: 600;
	font-family: var(--rc-font-display);
	font-size: 13.5px;
	letter-spacing: 0.04em; text-transform: uppercase;
	overflow: hidden;
}
.rc-btn--cut::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
	transform: translateX(-110%);
	transition: transform var(--rc-dur-slow) var(--rc-ease);
}
.rc-btn--cut:hover { background: var(--rc-purple-dk); color: #fff; }
.rc-btn--cut:hover::after { transform: translateX(110%); }
.rc-btn--sm { padding: 9px 16px; font-size: 12.5px; }
.rc-btn--lg { padding: 15px 30px; font-size: 15px; }

/* (§8 cards: removed, unused) */

/* ============================================================
   9. HEADER (.site-header, .rc-hdr__*) — sticky blur
   ============================================================ */
.site-header {
	/* template-part wrapper is the sticky container — keep inner static
	   so we don't get double-sticky weirdness. */
	position: relative;
	z-index: 50;
	/* Opaque: content scrolling underneath must never show through the nav. */
	background: var(--rc-bg);
	border-bottom: 1px solid var(--rc-line);
	margin: 0 !important;
	transition: background var(--rc-dur-base) var(--rc-ease),
		border-color var(--rc-dur-base) var(--rc-ease),
		box-shadow var(--rc-dur-base) var(--rc-ease);
}
/* Condense when the page has scrolled — body gets .is-scrolled from JS. */
body.is-scrolled .site-header {
	background: var(--rc-bg);
	border-bottom-color: var(--rc-line-strong);
	box-shadow: 0 10px 30px -22px rgba(0,0,0,0.65);
}
body.is-scrolled .rc-hdr__row { padding-top: 10px; padding-bottom: 10px; }
.rc-hdr__row {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 28px; max-width: 1280px; margin: 0 auto;
	transition: padding var(--rc-dur-base) var(--rc-ease);
}
.rc-hdr__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.rc-hdr__logo {
	display: block;
	height: 34px;
	width: auto;
	max-width: 200px;
	transition: height var(--rc-dur-base) var(--rc-ease), opacity var(--rc-dur-fast) var(--rc-ease);
}
.rc-hdr__brand:hover .rc-hdr__logo { opacity: 0.92; }
body.is-scrolled .rc-hdr__logo { height: 28px; }
.rc-hdr__nav { display: flex; align-items: center; gap: 2px; }
.rc-hdr__nav a {
	color: rgba(255,255,255,0.78);
	font-weight: 500; font-size: 13.5px;
	padding: 8px 14px; text-decoration: none;
	position: relative;
	transition: color var(--rc-dur-fast) var(--rc-ease);
}
.rc-hdr__nav a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
	height: 1px; background: var(--rc-purple-lt);
	transform: scaleX(0); transform-origin: left;
	transition: transform var(--rc-dur-base) var(--rc-ease-out);
}
.rc-hdr__nav a:hover { color: #fff; }
.rc-hdr__nav a:hover::after, .rc-hdr__nav a.is-active::after { transform: scaleX(1); }
.rc-hdr__nav .is-cta {
	margin-left: 10px;
	padding: 9px 18px;
	background: var(--rc-purple);
	color: #fff;
	clip-path: var(--rc-clip-cut);
	--rc-cut: 8px;
	font-family: var(--rc-font-display);
	font-size: 12.5px; font-weight: 600;
	letter-spacing: 0.06em; text-transform: uppercase;
	white-space: nowrap;
	line-height: 1;
	transition: background var(--rc-dur-fast) var(--rc-ease);
}
.rc-hdr__nav .is-cta::after { display: none; }
.rc-hdr__nav .is-cta:hover { background: var(--rc-purple-dk); }

/* Mobile menu — CSS-only (checkbox) so nav works with or without JS. */
.rc-nav-toggle { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rc-hdr__burger {
	display: none; width: 44px; height: 40px; cursor: pointer;
	flex-direction: column; justify-content: center; align-items: center; gap: 5px;
	border: 1px solid var(--rc-line-strong); border-radius: 8px; background: transparent;
	transition: border-color var(--rc-dur-fast) var(--rc-ease);
}
.rc-hdr__burger:hover { border-color: var(--rc-purple-lt); }
.rc-hdr__burger span { display: block; width: 18px; height: 2px; background: var(--rc-text); transition: transform var(--rc-dur-base) var(--rc-ease), opacity var(--rc-dur-fast) var(--rc-ease); }
.rc-nav-toggle:focus-visible ~ .rc-hdr__burger { outline: 2px solid var(--rc-purple-lt); outline-offset: 2px; }

@media (max-width: 860px) {
	.rc-hdr__burger { display: inline-flex; }
	.rc-hdr__nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 10px 18px 18px;
		background: rgba(8,9,12,0.97);
		backdrop-filter: blur(16px) saturate(140%);
		-webkit-backdrop-filter: blur(16px) saturate(140%);
		border-bottom: 1px solid var(--rc-line-strong);
		box-shadow: 0 24px 44px -26px rgba(0,0,0,0.85);
	}
	.rc-nav-toggle:checked ~ .rc-hdr__nav { display: flex; }
	.rc-hdr__nav a { padding: 14px 8px; font-size: 15.5px; color: var(--rc-text); border-bottom: 1px solid var(--rc-line); }
	.rc-hdr__nav a::after { display: none; }
	.rc-hdr__nav .is-cta { margin: 14px 0 2px; justify-content: center; text-align: center; padding: 14px 18px; font-size: 13px; }
	.rc-nav-toggle:checked ~ .rc-hdr__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.rc-nav-toggle:checked ~ .rc-hdr__burger span:nth-child(2) { opacity: 0; }
	.rc-nav-toggle:checked ~ .rc-hdr__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Brand mark */
.rc-brand {
	display: inline-flex; align-items: center; gap: 10px;
	text-decoration: none;
}

/* ============================================================
   10. FOOTER (.rc-ftr)
   ============================================================ */
.rc-ftr {
	background: var(--rc-bg-deep);
	color: #fff;
	border-top: 1px solid var(--rc-line);
	padding: 64px 0 28px;
}
.rc-ftr__grid {
	display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px;
	max-width: 1280px; margin: 0 auto; padding: 0 28px;
}
@media (max-width: 880px) { .rc-ftr__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .rc-ftr__grid { grid-template-columns: 1fr; } }

.rc-ftr__brand .rc-brand { margin-bottom: 14px; }
.rc-ftr__tag { color: var(--rc-text-soft); font-size: 13.5px; line-height: 1.65; margin: 0 0 16px; max-width: 36ch; }
.rc-ftr__fine { color: var(--rc-text-mute); font-size: 11.5px; line-height: 1.55; margin: 0; }
.rc-ftr__title {
	font-family: var(--rc-font-mono); color: var(--rc-text-mute);
	font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
	margin: 0 0 14px;
}
.rc-ftr__nav {
	list-style: none; display: flex; flex-direction: column; gap: 10px;
	padding: 0; margin: 0;
}
.rc-ftr__nav a {
	color: rgba(255,255,255,0.78); font-size: 13.5px;
	text-decoration: none; transition: color var(--rc-dur-fast);
}
.rc-ftr__nav a:hover { color: var(--rc-purple-lt); }

.rc-ftr__sep { border: 0; border-top: 1px solid var(--rc-line); margin: 40px 0 18px; }
.rc-ftr__legal {
	color: var(--rc-text-mute); font-size: 12px; text-align: center; margin: 0;
	padding: 0 28px;
	font-family: var(--rc-font-mono); letter-spacing: 0.02em;
}
.rc-ftr__legal a { color: var(--rc-purple-lt); }

/* ============================================================
   11. HERO (.rc-hero)
   ============================================================ */
.rc-hero { padding: 84px 0 80px; position: relative; overflow: hidden; }
.rc-hero__grid {
	position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
	mask-image: radial-gradient(ellipse at 30% 30%, #000 25%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 25%, transparent 78%);
}
.rc-hero__grid::before {
	content: ""; position: absolute; inset: calc(-1 * var(--rc-tile));
	--rc-tile: 64px;
	background-image:
		linear-gradient(rgba(157,144,248,0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(157,144,248,0.045) 1px, transparent 1px);
	background-size: 64px 64px;
	animation: rcGridShift 18s linear infinite;
}

/* (v3 hero composition removed in v4: the home hero lives in assets/css/v4/hero.css) */

/* (§12-§18 pipeline, pillars, process, stats, cases, about strip, testimonials: removed in v4, unused) */

/* ============================================================
   19. CTA BAND (.rc-ctaband)
   ============================================================ */
.rc-ctaband {
	position: relative; padding: 88px 24px;
	background: var(--rc-bg-deep);
	border-top: 1px solid var(--rc-line);
	border-bottom: 1px solid var(--rc-line);
	text-align: center;
	overflow: hidden;
}
.rc-ctaband__inner {
	max-width: 720px; margin: 0 auto;
	display: flex; flex-direction: column; align-items: center; gap: 20px;
	position: relative; z-index: 1;
}
.rc-ctaband__inner h2 { margin: 0; }
.rc-ctaband__inner p  { color: var(--rc-text-soft); margin: 0; font-size: 16px; }

/* ============================================================
   20. PAGE HERO (.rc-phero) — inner pages
   ============================================================ */
.rc-phero {
	padding: 110px 0 80px;
	position: relative; overflow: hidden;
	border-bottom: 1px solid var(--rc-line);
}
.rc-phero__inner {
	position: relative; z-index: 2;
	max-width: 780px; margin: 0 auto; text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.rc-phero h1 {
	font-size: clamp(2.5rem, 4.5vw + 1rem, 3.75rem);
	line-height: 1.05; letter-spacing: -0.022em;
	max-width: 18ch; margin: 0;
}
.rc-phero p { color: var(--rc-text-soft); font-size: 17px; max-width: 60ch; margin: 0; line-height: 1.6; }

/* (§21-§25 generic forms + Jetpack form skin, architecture diagram, process steps, about highlights,
   outcomes tile grid: removed, unused; the contact form is styled in §26) */

/* ============================================================
   26. CONTACT PAGE (.rc-contact)
   ============================================================ */
.rc-contact {
	display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px;
	max-width: 1180px; margin: 0 auto; align-items: start;
}
@media (max-width: 880px) { .rc-contact { grid-template-columns: 1fr; gap: 40px; } }
.rc-contact__card {
	background: var(--rc-grad-card);
	clip-path: var(--rc-clip-cut); --rc-cut: 20px;
	box-shadow: inset 0 0 0 1px var(--rc-line);
	padding: 36px 36px 32px;
}
.rc-contact__card h2 { font-size: clamp(1.75rem, 2.4vw + 0.6rem, 2.25rem); margin: 0 0 6px; }
.rc-contact__card p.sub { color: var(--rc-text-soft); margin: 0 0 24px; font-size: 15px; }
.rc-contact__aside { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
.rc-contact__block {
	background: var(--rc-grad-card);
	padding: 20px 22px;
	border-left: 2px solid var(--rc-purple-lt);
	border-top: 1px solid var(--rc-line);
	border-right: 1px solid var(--rc-line);
	border-bottom: 1px solid var(--rc-line);
	transition: border-color var(--rc-dur-base) var(--rc-ease);
}
.rc-contact__block:hover { border-color: var(--rc-purple-lt); }
.rc-contact__block-label {
	font-family: var(--rc-font-mono); font-size: 10.5px;
	color: var(--rc-text-mute); letter-spacing: 0.16em; text-transform: uppercase;
	margin: 0 0 6px;
}
.rc-contact__block-val {
	font-family: var(--rc-font-display); color: #fff; font-weight: 700;
	font-size: 16px; text-decoration: none;
	display: inline-flex; align-items: center; gap: 8px;
}
.rc-contact__block-val:hover { color: var(--rc-purple-lt); }
.rc-contact__block p { color: var(--rc-text-soft); font-size: 13.5px; line-height: 1.55; margin: 4px 0 0; }

/* Contact form — styled to match the cut-edge card. Scoped to .rc-contact__card; the markup is the
   theme's own form (patterns/contact-page.php, handled in functions.php), keeping Jetpack's .grunion-* class names. */
.rc-contact__card .rc-form-wrap { margin-top: 2px; }
.rc-contact__card form.contact-form { display: grid; gap: 18px; margin: 0; padding: 0; border: 0; }
.rc-contact__card .grunion-field-wrap { display: flex; flex-direction: column; gap: 7px; }
.rc-contact__card form.contact-form label {
	color: #fff; font-size: 13px; font-weight: 600;
	font-family: var(--rc-font-display); letter-spacing: 0.005em; margin: 0;
}
.rc-contact__card form.contact-form label span {
	color: var(--rc-text-mute); font-weight: 400; font-size: 11px;
	font-family: var(--rc-font-mono); letter-spacing: 0.04em; margin-left: 6px;
}
.rc-contact__card input[type="text"],
.rc-contact__card input[type="email"],
.rc-contact__card input[type="url"],
.rc-contact__card input[type="tel"],
.rc-contact__card textarea,
.rc-contact__card select {
	width: 100%; box-sizing: border-box;
	background: rgba(8,9,12,0.55);
	border: 1px solid var(--rc-line-strong);
	border-radius: var(--rc-r-md);
	color: #fff; font-family: var(--rc-font-sans); font-size: 14px;
	padding: 12px 14px; line-height: 1.4;
	transition: border-color var(--rc-dur-fast) var(--rc-ease), box-shadow var(--rc-dur-fast) var(--rc-ease);
}
.rc-contact__card textarea { min-height: 132px; resize: vertical; }
.rc-contact__card input::placeholder, .rc-contact__card textarea::placeholder { color: var(--rc-text-mute); }
.rc-contact__card input:focus, .rc-contact__card textarea:focus, .rc-contact__card select:focus {
	outline: none; border-color: var(--rc-purple-lt);
	box-shadow: 0 0 0 2px var(--rc-purple-lt);
}
.rc-contact__card select {
	appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B5A4E8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat; background-position: right 13px center; background-size: 15px;
}
.rc-contact__card .contact-submit,
.rc-contact__card p.contact-submit { margin: 6px 0 0; }
.rc-contact__card form.contact-form button[type="submit"] {
	clip-path: var(--rc-clip-cut); --rc-cut: 10px; border-radius: 0;
	background: var(--rc-purple); color: #fff; border: 0;
	font-family: var(--rc-font-display); font-weight: 600;
	font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase;
	padding: 14px 30px; cursor: pointer; box-shadow: var(--rc-shadow-btn);
	transition: background var(--rc-dur-fast) var(--rc-ease);
}
.rc-contact__card form.contact-form button[type="submit"]:hover { background: var(--rc-purple-dk); }

/* Honeypot — visually hidden, kept in the a11y/DOM flow for bots only. */
.rc-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Submission result banner */
.rc-form-notice { padding: 13px 18px; border-radius: var(--rc-r-md); margin: 0 0 20px; font-size: 14px; line-height: 1.5; }
.rc-form-notice--ok  { background: rgba(91,211,137,0.10);  border: 1px solid rgba(91,211,137,0.32);  color: #d6f5e3; }
.rc-form-notice--err { background: rgba(230,107,123,0.10); border: 1px solid rgba(230,107,123,0.32); color: #f6d6db; }
.rc-form-notice a { color: inherit; text-decoration: underline; }
/* HoneyBook contact form (iframe; its colours are set in HoneyBook to match this card). min-height holds the space while it loads. */
.rc-hb-form { min-height: 640px; margin-inline: -18px; } /* HoneyBook pads its fields 18px: line them up with the heading */
.rc-hb-form iframe { display: block; width: 100% !important; border: 0; }
.rc-hb-alt { margin: 14px 0 0; color: var(--rc-text-mute); font-size: 14px; }
.rc-hb-alt a { color: var(--rc-purple-lt); }

/* ============================================================
   27. BLOG — frame, /blog/ + archive index (main.rcb)
   templates/index.html, archive.html and single.html render inside
   main.rcb; every rule below is scoped to it. v5 blueprint language:
   graphite, 1px hairlines, mono labels, the cut corner only on each
   scene's hero object (the latest post; the featured image).
   PHP side (excerpts, reading time, chips, Keep reading): the "Blog"
   block at the end of functions.php. Reading aids: assets/js/blog/rcb.js.
   Nothing here hides content waiting for JS or a scroll reveal.
   ============================================================ */
.rcb {
	--rcb-hdr: 64px;
	--rcb-bg: #0B0D10; --rcb-raised: #14161B; --rcb-card: #1B1E26;
	--rcb-line: #2A2E37; --rcb-line2: #3A3F4B; --rcb-line3: #525A68;
	--rcb-text: #E6E8EC; --rcb-text2: #A7AEBA; --rcb-text3: #9FA6B3;
	--rcb-purple: #5B4FC4; --rcb-accent: #9D90F8; --rcb-yellow: #D9A441;
	--rcb-fd: var(--rc-font-display); --rcb-fb: var(--rc-font-sans); --rcb-fm: var(--rc-font-mono);
	--rcb-gut: clamp(16px, 4vw, 64px);
	--rcb-wrap: min(1280px, calc(100% - 2 * var(--rcb-gut)));
	--rcb-eo: cubic-bezier(.16, 1, .3, 1);
	--rcb-lbl: 12px;
	--rcb-grid:
		linear-gradient(90deg, rgba(157,144,248,.05) 1px, transparent 1px),
		linear-gradient(rgba(157,144,248,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(157,144,248,.022) 1px, transparent 1px),
		linear-gradient(rgba(157,144,248,.022) 1px, transparent 1px);
	--rcb-grid-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
	--rcb-grid-pos: calc(50% + 40px) 0, 0 0, calc(50% + 10px) 0, 0 0;
}
body.admin-bar .rcb { --rcb-hdr: 96px; }
@media (max-width: 782px) { body.admin-bar .rcb { --rcb-hdr: 110px; } }
@media (max-width: 719px) { .rcb { --rcb-lbl: 13px; } }

main.rcb {
	position: relative; isolation: isolate;
	color: var(--rcb-text); background-color: var(--rcb-bg);
}
/* The blocks' flow layout adds 1.5rem above every child; spacing here is set explicitly instead. */
main.rcb > *,
main.rcb :is(.rcb-hero, .rcb-hero__grid, .rcb-hero__main, .rcb-posts, .rcb-query, .rcb-post, .rcb-phead, .rcb-phead__in, .rcb-byline, .rcb-body, .rcb-more, .rcb-card, .rcb-card__body) > * { margin-block: 0; }
/* drafting sheet on the index; frame rails at the 1280 wrap on every blog view (as on How it works) */
main.rcb--index { background-image: var(--rcb-grid); background-size: var(--rcb-grid-size); background-position: var(--rcb-grid-pos); }
main.rcb::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: 50%; z-index: 0;
	width: var(--rcb-wrap); transform: translateX(-50%);
	border-left: 1px solid var(--rcb-line); border-right: 1px solid var(--rcb-line);
	opacity: .75; pointer-events: none;
}
/* scene seams: hairline + the drawing-frame crosses where it meets the rails */
main.rcb .rcb-s { position: relative; z-index: 1; border-top: 1px solid var(--rcb-line); }
main.rcb .rcb-s::after {
	content: ""; position: absolute; top: -7px; left: 50%; z-index: 2;
	width: calc(var(--rcb-wrap) + 13px); height: 13px; transform: translateX(-50%); pointer-events: none;
	background:
		linear-gradient(var(--rcb-line3), var(--rcb-line3)) 6px 0 / 1px 100% no-repeat,
		linear-gradient(var(--rcb-line3), var(--rcb-line3)) 0 6px / 13px 1px no-repeat,
		linear-gradient(var(--rcb-line3), var(--rcb-line3)) calc(100% - 6px) 0 / 1px 100% no-repeat,
		linear-gradient(var(--rcb-line3), var(--rcb-line3)) 100% 6px / 13px 1px no-repeat;
}
@media (max-width: 719px) { main.rcb::before, main.rcb .rcb-s::after { display: none; } }

/* --- 27a. atoms --- */
main.rcb .rcb-kicker {
	display: inline-flex; align-items: center; gap: 10px; margin: 0; max-width: none;
	font: 500 var(--rcb-lbl)/1 var(--rcb-fm); letter-spacing: .12em; text-transform: uppercase; color: var(--rcb-accent);
}
main.rcb .rcb-kicker::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--rcb-accent); }
main.rcb .rcb-kicker a { color: inherit; text-decoration: none; }
main.rcb .rcb-kicker a:hover { color: #fff; }
main.rcb .rcb-kicker span { color: var(--rcb-line3); }
main.rcb .rcb-h1 {
	margin: 0; max-width: none;
	font: 600 clamp(44px, 5.6vw, 84px)/.98 var(--rcb-fd); letter-spacing: -.034em;
	color: var(--rcb-text); text-wrap: balance;
}
main.rcb .rcb-hl { color: var(--rcb-accent); }
main.rcb .rcb-lead,
main.rcb .rcb-lead p {
	margin: 0; max-width: 34ch;
	font: 400 clamp(17px, 1.32vw, 19px)/1.55 var(--rcb-fb); color: var(--rcb-text2); text-wrap: pretty;
}
main.rcb .rcb-tlink {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
	border-bottom: 1px solid var(--rcb-line3);
	font: 500 15px/1 var(--rcb-fb); color: var(--rcb-text2); text-decoration: none;
	transition: color .2s, border-color .2s;
}
main.rcb .rcb-tlink::after { content: "\2192"; transition: transform .3s var(--rcb-eo); }
main.rcb .rcb-tlink:hover { color: var(--rcb-text); border-color: var(--rcb-accent); }
main.rcb .rcb-tlink:hover::after { transform: translateX(3px); }
/* category chip (functions.php drops "Uncategorized"; these two rules cover markup rendered without that filter) */
main.rcb .rcb-chip { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; font: 500 var(--rcb-lbl)/1.1 var(--rcb-fm); letter-spacing: .06em; text-transform: uppercase; }
main.rcb .rcb-chip a {
	position: relative; z-index: 2; display: inline-flex; align-items: center; padding: 4px 7px 3px;
	border: 1px solid var(--rcb-accent); color: var(--rcb-accent); text-decoration: none;
	transition: background-color .2s, color .2s;
}
main.rcb .rcb-chip a:hover { background: rgba(157,144,248,.12); color: #fff; }
main.rcb .rcb-chip .wp-block-post-terms__separator { display: none; }
main .wp-block-post-terms a[href*="/category/uncategorized/"] { display: none; }
main .wp-block-post-terms:not(:has(a:not([href*="/category/uncategorized/"]))) { display: none; }
/* date · reading time (the reading time span comes from functions.php) */
main.rcb .rcb-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0;
	font: 500 var(--rcb-lbl)/1.3 var(--rcb-fm); letter-spacing: .06em; text-transform: uppercase; color: var(--rcb-text3);
}
main.rcb .rcb-meta time { color: inherit; }
main.rcb .rcb-rt { display: inline-flex; align-items: center; gap: 10px; }
main.rcb .rcb-sep { color: var(--rcb-line3); }

/* --- 27b. index hero: kicker + H1 on the left, the lead on the right (v5 hero grid) --- */
main.rcb .rcb-hero {
	position: relative; z-index: 1; overflow: visible; border: 0;
	padding: clamp(56px, 9vh, 112px) 0 clamp(52px, 8vh, 96px);
}
main.rcb .rcb-hero__grid {
	width: var(--rcb-wrap); margin: 0 auto;
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end;
}
main.rcb .rcb-hero__main { grid-column: 1 / span 8; display: grid; gap: 24px; justify-items: start; }
main.rcb .rcb-hero__side { grid-column: 9 / span 4; padding-bottom: 10px; }
@media (max-width: 1099px) {
	main.rcb .rcb-hero__main, main.rcb .rcb-hero__side { grid-column: 1 / -1; }
	main.rcb .rcb-hero__side { padding-bottom: 0; }
}

/* --- 27c. post list: the latest post as a wide card (the scene's hero object), then a 3-up grid --- */
main.rcb .rcb-posts { padding: clamp(40px, 6vh, 64px) 0 clamp(80px, 11vh, 128px); }
main.rcb .rcb-posts > .rcb-query { width: var(--rcb-wrap); margin: 0 auto; }
main.rcb .rcb-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
main.rcb .rcb-cards > li { margin: 0; padding: 0; min-width: 0; container: rcbcard / inline-size; }
main.rcb .rcb-cards > li::marker { content: none; }
@media (min-width: 720px) {
	main.rcb .rcb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:first-child,
	body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:nth-child(2):last-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
	main.rcb .rcb-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
	main.rcb .rcb-cards > li { grid-column: span 2; }
	/* two or three posts in all: the rest share the row instead of leaving empty columns */
	body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:first-child,
	body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:nth-child(2):last-child { grid-column: 1 / -1; }
	body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:nth-child(2):nth-last-child(2),
	body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:nth-child(3):last-child { grid-column: span 3; }
}

/* card: the whole card is the title link (stretched), the chip stays clickable above it */
main.rcb .rcb-card {
	--rcb-edge: var(--rcb-line);
	position: relative; height: 100%; margin: 0;
	display: flex; flex-direction: column;
	background: var(--rcb-bg); border: 1px solid var(--rcb-edge);
	transition: border-color .25s;
}
main.rcb .rcb-card:hover { --rcb-edge: var(--rcb-line3); }
/* CAD selection grips on hover / focus, as on the v5 buttons */
main.rcb .rcb-card::after {
	content: ""; position: absolute; inset: -3px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s;
	background:
		linear-gradient(var(--rcb-accent), var(--rcb-accent)) 0 0 / 5px 5px no-repeat,
		linear-gradient(var(--rcb-accent), var(--rcb-accent)) 100% 0 / 5px 5px no-repeat,
		linear-gradient(var(--rcb-accent), var(--rcb-accent)) 0 100% / 5px 5px no-repeat,
		linear-gradient(var(--rcb-accent), var(--rcb-accent)) 100% 100% / 5px 5px no-repeat;
}
main.rcb .rcb-card:hover::after, main.rcb .rcb-card:focus-within::after { opacity: 1; }
main.rcb .rcb-card:has(.rcb-card__title a:focus-visible) { outline: 2px solid var(--rcb-accent); outline-offset: 5px; }
/* the clipped latest-post card would cut an outside ring: draw it inside */
body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:first-child > .rcb-card:has(.rcb-card__title a:focus-visible) { outline-offset: -2px; --rcb-edge: var(--rcb-accent); }
main.rcb .rcb-card__media {
	position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden;
	background: var(--rcb-raised); border-bottom: 1px solid var(--rcb-edge);
	transition: border-color .25s;
}
main.rcb .rcb-card__media a { display: block; height: 100%; }
main.rcb .rcb-card__media img {
	display: block; width: 100%; height: 100% !important; object-fit: cover;
	filter: saturate(.62) brightness(.9);
	transition: filter .5s, transform .9s var(--rcb-eo);
}
main.rcb .rcb-card:hover .rcb-card__media img { filter: none; transform: scale(1.025); }
/* a picture about 2:1 or wider (a slide, a banner, a diagram: rcb-wide from functions.php) sits whole on the graphite plate instead of being cropped */
main.rcb .rcb-card__media.rcb-wide img { box-sizing: border-box; padding: clamp(10px, 2.4cqi, 28px); object-fit: contain !important; }
main.rcb .rcb-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px 24px; }
main.rcb .rcb-card__title {
	margin: 0; max-width: 28ch;
	font: 600 22px/1.2 var(--rcb-fd); letter-spacing: -.016em; color: var(--rcb-text); text-wrap: balance;
}
main.rcb .rcb-card__title a { color: inherit; text-decoration: none; transition: color .2s; }
main.rcb .rcb-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
main.rcb .rcb-card:hover .rcb-card__title a { color: #fff; }
main.rcb .rcb-card__title a:focus-visible { outline: none; }
main.rcb .rcb-card__excerpt { margin: 0; }
main.rcb .rcb-card__excerpt p {
	margin: 0; font: 400 15px/1.6 var(--rcb-fb); color: var(--rcb-text2);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
main.rcb .rcb-card .rcb-meta { margin-top: auto; padding-top: 4px; }
/* any card given a full row turns sideways: picture left, words right (from 680px, so tablets in portrait get it too) */
@container rcbcard (min-width: 680px) {
	main.rcb .rcb-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
	/* stretch (an aspect-ratio box would otherwise stop short of a taller text column); the ratio still sets the row's minimum */
	main.rcb .rcb-card__media { align-self: stretch; justify-self: stretch; border-bottom: 0; border-right: 1px solid var(--rcb-edge); }
	main.rcb .rcb-card__body { justify-content: center; padding: clamp(24px, 3vw, 40px); gap: 14px; }
	main.rcb .rcb-card__title { font-size: clamp(22px, 2vw, 28px); max-width: 30ch; }
	main.rcb .rcb-card .rcb-meta { margin-top: 6px; }
}
/* the latest post: bigger, its picture takes 7/12, one cut corner, the scene's one yellow mark */
body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:first-child > .rcb-card {
	clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}
body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:first-child > .rcb-card::after {
	/* the cut edge, drawn (clip-path takes the border with it); no grips on the clipped card */
	inset: 0 auto auto 0; width: 16px; height: 16px; opacity: 1;
	background: linear-gradient(to bottom right, transparent calc(50% - .5px), var(--rcb-edge) calc(50% - .5px), var(--rcb-edge) calc(50% + 1px), transparent calc(50% + 1px));
	transition: none;
}
body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:first-child .rcb-card__body::before {
	content: "Latest"; display: inline-flex; padding: 4px 7px 3px; border: 1px solid var(--rcb-yellow);
	font: 500 var(--rcb-lbl)/1.1 var(--rcb-fm); letter-spacing: .08em; text-transform: uppercase; color: var(--rcb-yellow);
}
@container rcbcard (min-width: 680px) {
	body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:first-child > .rcb-card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:first-child .rcb-card__media { aspect-ratio: 16 / 9; }
	body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:first-child .rcb-card__body { padding: clamp(28px, 3.4vw, 52px); gap: 18px; }
	body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:first-child .rcb-card__title { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.06; letter-spacing: -.026em; max-width: 18ch; }
	body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:first-child .rcb-card__excerpt p { font-size: 17px; -webkit-line-clamp: 3; line-clamp: 3; }
}
@container rcbcard (max-width: 679px) {
	body:not(.paged):not(.search) main.rcb .rcb-cards--index > li:first-child .rcb-card__title { font-size: clamp(24px, 6.4vw, 30px); line-height: 1.1; }
}

/* pagination + empty state */
main.rcb .rcb-pager {
	margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rcb-line);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	font: 500 13px/1 var(--rcb-fm); letter-spacing: .06em; text-transform: uppercase;
}
main.rcb .rcb-pager .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
main.rcb .rcb-pager a,
main.rcb .rcb-pager .page-numbers {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 14px;
	border: 1px solid var(--rcb-line2); color: var(--rcb-text2); text-decoration: none;
	transition: border-color .2s, color .2s;
}
main.rcb .rcb-pager a:hover { border-color: var(--rcb-accent); color: var(--rcb-text); }
main.rcb .rcb-pager .page-numbers.current { border-color: var(--rcb-accent); color: var(--rcb-accent); }
main.rcb .rcb-pager .page-numbers.dots { border-color: transparent; }
main.rcb .rcb-empty { margin: 0; padding: 40px 0; font: 400 17px/1.6 var(--rcb-fb); color: var(--rcb-text2); }
/* search results (templates/search.html): the H1 carries the search term, so it is set smaller */
main.rcb--search .rcb-h1 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; overflow-wrap: anywhere; }

/* ============================================================
   28. BLOG — single post (main.rcb--single)
   Header on a drafting-sheet band, framed featured image, a
   68ch reading column with "On this page" beside it on wide
   screens (1360px+; above it, folded, below that), Keep reading, CTA band.
   ============================================================ */
main.rcb--single { background-color: var(--rcb-bg); }

/* --- 28a. header --- */
main.rcb .rcb-phead {
	position: relative; z-index: 1; isolation: isolate; overflow: visible; border: 0;
	padding: clamp(32px, 6vh, 72px) 0 clamp(40px, 6vh, 64px);
}
main.rcb .rcb-phead::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: var(--rcb-grid); background-size: var(--rcb-grid-size); background-position: var(--rcb-grid-pos);
	-webkit-mask-image: linear-gradient(#000 35%, transparent);
	        mask-image: linear-gradient(#000 35%, transparent);
}
main.rcb .rcb-phead__in {
	width: min(var(--rcb-wrap), 68ch); margin: 0 auto; font-size: 18px;
	display: flex; flex-direction: column; align-items: flex-start;
}
main.rcb .rcb-back { margin: 0 0 clamp(28px, 4.5vh, 48px); max-width: none; font: 500 var(--rcb-lbl)/1 var(--rcb-fm); letter-spacing: .1em; text-transform: uppercase; }
main.rcb .rcb-back a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--rcb-text3); text-decoration: none; transition: color .2s; }
main.rcb .rcb-back a::before { content: "\2190"; font-family: var(--rcb-fb); letter-spacing: 0; transition: transform .3s var(--rcb-eo); }
main.rcb .rcb-back a:hover { color: var(--rcb-text); }
main.rcb .rcb-back a:hover::before { transform: translateX(-3px); }
main.rcb .rcb-phead .rcb-chip { margin-bottom: 20px; }
main.rcb .rcb-ptitle {
	margin: 0; max-width: none;
	font: 600 clamp(36px, 4.4vw, 60px)/1.04 var(--rcb-fd); letter-spacing: -.03em;
	color: var(--rcb-text); text-wrap: balance;
}
main.rcb .rcb-byline {
	align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
	margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rcb-line);
}
main.rcb .rcb-author { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 500 var(--rcb-lbl)/1.3 var(--rcb-fm); letter-spacing: .06em; text-transform: uppercase; color: var(--rcb-text3); }
main.rcb .rcb-author::before { content: "\00B7"; color: var(--rcb-line3); }
main.rcb .rcb-author a { color: inherit; text-decoration: none; }

/* --- 28b. featured image: framed, never wider than its file (functions.php passes --rcb-iw), one cut corner --- */
main.rcb .rcb-figure {
	position: relative; z-index: 1; display: block; margin: 0 auto; font-size: 18px;
	/* as wide as the reading column (or the file, if larger), but never blown up more than 1.6x */
	width: min(var(--rcb-wrap), 1180px, max(var(--rcb-iw, 1180px), min(68ch, var(--rcb-iw, 1180px) * 1.6)));
	padding: 0; border: 1px solid var(--rcb-line2); background: var(--rcb-raised);
	clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
}
main.rcb .rcb-figure::before {
	content: ""; position: absolute; top: 0; left: 0; z-index: 2; width: 18px; height: 18px; pointer-events: none;
	background: linear-gradient(to bottom right, transparent calc(50% - .5px), var(--rcb-line2) calc(50% - .5px), var(--rcb-line2) calc(50% + 1px), transparent calc(50% + 1px));
}
main.rcb .rcb-figure img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: cover; border-radius: 0; filter: saturate(.62) brightness(.9); }

/* --- 28c. body: the reading column, "On this page" beside it from 1360px --- */
main.rcb .rcb-body {
	position: relative; z-index: 1; width: var(--rcb-wrap); margin: 0 auto; font-size: 18px;
	padding: clamp(44px, 7vh, 72px) 0 clamp(72px, 10vh, 112px);
	display: grid; grid-template-columns: minmax(0, 68ch); justify-content: center; align-items: start;
}
main.rcb .rcb-article, main.rcb .rcb-body > .rcb-toc { grid-column: 1; min-width: 0; }
/* no featured image (none set, or functions.php skipped it because the post opens on the same picture): the body follows the byline closely */
main.rcb .rcb-phead + .rcb-body { padding-top: clamp(8px, 2vh, 24px); }
@media (min-width: 1360px) {
	main.rcb .rcb-body { grid-template-columns: minmax(0, 1fr) minmax(0, 68ch) minmax(0, 1fr); column-gap: 48px; justify-content: stretch; }
	main.rcb .rcb-article { grid-column: 2; grid-row: 1; }
	main.rcb .rcb-body > .rcb-toc { grid-column: 3; grid-row: 1; max-width: 264px; }
}

/* "On this page" (rendered by functions.php for 3+ h2s): a rail with a square per section, as on Nerd Out; filled = where you are */
main.rcb .rcb-toc { margin: 0 0 36px; border: 1px solid var(--rcb-line2); background: var(--rcb-bg); }
main.rcb .rcb-toc__d > summary {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none;
	font: 500 var(--rcb-lbl)/1 var(--rcb-fm); letter-spacing: .1em; text-transform: uppercase; color: var(--rcb-text);
}
main.rcb .rcb-toc__d > summary::-webkit-details-marker { display: none; }
main.rcb .rcb-toc__d > summary::after {
	content: ""; width: 7px; height: 7px; margin-left: auto;
	border-right: 1.5px solid var(--rcb-text3); border-bottom: 1.5px solid var(--rcb-text3);
	transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
main.rcb .rcb-toc__d[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
main.rcb .rcb-toc__n { color: var(--rcb-text3); }
main.rcb .rcb-toc__body { position: relative; }
main.rcb .rcb-toc__list { list-style: none; margin: 0; padding: 2px 16px 14px 44px; display: grid; gap: 0; }
main.rcb .rcb-toc__rail,
main.rcb .rcb-toc__fill { position: absolute; left: 24px; top: 0; width: 1px; height: 0; pointer-events: none; }
main.rcb .rcb-toc__rail { background: var(--rcb-line2); }
main.rcb .rcb-toc__fill { background: var(--rcb-accent); transform-origin: top; transform: scaleY(0); }
main.rcb .rcb-toc__list > li { position: relative; margin: 0; padding: 0; }
main.rcb .rcb-toc__list > li::marker { content: none; }
main.rcb .rcb-toc__list > li::before {
	content: ""; position: absolute; left: -24px; top: 12px; z-index: 1; width: 9px; height: 9px;
	background: var(--rcb-bg); border: 1px solid var(--rcb-line3);
	transition: background-color .25s, border-color .25s;
}
main.rcb .rcb-toc__list > li.is-done::before { border-color: var(--rcb-accent); }
main.rcb .rcb-toc__list > li.is-on::before { border-color: var(--rcb-accent); background: var(--rcb-accent); }
main.rcb .rcb-toc__list a {
	display: block; padding: 6px 0; font: 400 15px/1.45 var(--rcb-fb); color: var(--rcb-text2); text-decoration: none;
	transition: color .2s;
}
main.rcb .rcb-toc__list a:hover, main.rcb .rcb-toc__list > li.is-on a { color: var(--rcb-text); }
@media (min-width: 1360px) {
	main.rcb .rcb-toc { position: sticky; top: calc(var(--rcb-hdr) + 40px); margin: 6px 0 0; border: 0; background: none; }
	main.rcb .rcb-toc__d > summary { padding: 0 0 14px; color: var(--rcb-text3); }
	/* with rcb.js the list stays open here, so its label stops being a toggle (without JS it still folds) */
	main.rcb .rcb-toc.is-live .rcb-toc__d > summary { cursor: default; pointer-events: none; }
	main.rcb .rcb-toc.is-live .rcb-toc__d > summary::after { display: none; }
	main.rcb .rcb-toc__list { padding: 0 0 0 28px; }
	main.rcb .rcb-toc__rail, main.rcb .rcb-toc__fill { left: 4px; }
	main.rcb .rcb-toc__list > li::before { left: -28px; }
}

/* reading progress: 2px under the sticky header, scaled by rcb.js (no transition, so it simply follows the scroll) */
.rcb-progress { position: fixed; top: var(--rcb-hdr, 64px); left: 0; right: 0; z-index: 99; height: 2px; pointer-events: none; }
.rcb-progress i { display: block; height: 100%; background: var(--rc-purple-lt); transform: scaleX(0); transform-origin: 0 50%; }

/* --- 28d. article typography --- */
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) {
	font-family: var(--rc-font-sans); font-size: 18px; line-height: 1.7; color: var(--rc-text-soft);
	overflow-wrap: break-word; counter-reset: rcbfig;
}
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) > * { margin-block: 0; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) > * + * { margin-top: 1.25em; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :where(p, li, dd, dt) { font-size: inherit; line-height: inherit; color: inherit; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) > p:first-child { font-size: 1.11em; line-height: 1.62; color: var(--rc-text); }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :where(strong, b) { color: var(--rc-text); font-weight: 600; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) a {
	color: var(--rc-purple-lt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
	text-decoration-color: rgba(157,144,248,.45); transition: color .2s, text-decoration-color .2s;
}
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) a:hover { color: #fff; text-decoration-color: currentColor; }
/* headings */
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :is(h2, h3, h4) { color: var(--rc-text); font-family: var(--rc-font-display); font-weight: 600; text-wrap: balance; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) h2 { margin-top: 2.3em; font-size: clamp(26px, 2.1vw, 32px); line-height: 1.15; letter-spacing: -.022em; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) h3 { margin-top: 1.9em; font-size: 22px; line-height: 1.25; letter-spacing: -.012em; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) h4 { margin-top: 1.7em; font-size: 18px; line-height: 1.35; letter-spacing: 0; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) > :is(h2, h3, h4) + * { margin-top: .7em; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) > :first-child { margin-top: 0; }
/* lists: hollow squares and 01-style numbers */
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :is(ul, ol) { margin-left: 0; padding: 0; list-style: none; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :is(ul, ol) > li { position: relative; margin: 0; padding-left: 1.75em; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :is(ul, ol) > li + li { margin-top: .6em; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) ul > li::before {
	content: ""; position: absolute; left: .3em; top: .74em; width: 7px; height: 7px; border: 1px solid var(--rc-purple-lt);
}
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) ol { counter-reset: rcbol; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) ol > li { counter-increment: rcbol; padding-left: 2.5em; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) ol > li::before {
	content: counter(rcbol, decimal-leading-zero); position: absolute; left: 0; top: .2em;
	font: 500 13px/1.75 var(--rc-font-mono); letter-spacing: .04em; color: var(--rc-purple-lt);
}
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) li > :is(ul, ol) { margin-top: .6em; }
/* quotes: hairlines above and below, no side bar */
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :is(blockquote, .wp-block-quote, .wp-block-pullquote) {
	margin-block: 2em; margin-inline: 0; padding: 24px 0; border: 0; border-top: 1px solid var(--rcb-line2, #3A3F4B); border-bottom: 1px solid var(--rcb-line2, #3A3F4B);
	font: 500 clamp(21px, 1.7vw, 24px)/1.45 var(--rc-font-display); letter-spacing: -.01em; color: var(--rc-text); text-align: left;
}
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :is(blockquote, .wp-block-pullquote) p { font: inherit; color: inherit; margin: 0; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :is(blockquote, .wp-block-pullquote) p + p { margin-top: .6em; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :is(blockquote, .wp-block-pullquote) cite {
	display: block; margin-top: 14px; font: 500 12px/1.4 var(--rc-font-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--rc-text-mute);
}
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
/* code */
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :is(code, kbd, samp) {
	padding: .12em .38em; border: 1px solid var(--rc-line); border-radius: 0; background: #14161B;
	font-family: var(--rc-font-mono); font-size: .84em; color: var(--rc-text);
}
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) pre {
	margin-block: 1.8em; padding: 20px 22px; overflow-x: auto; white-space: pre; tab-size: 2;
	border: 1px solid var(--rc-line); border-radius: 0; background: #14161B;
	font: 400 14px/1.7 var(--rc-font-mono); color: var(--rc-text);
}
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) pre code { padding: 0; border: 0; background: none; font-size: inherit; color: inherit; }
/* tables */
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) .wp-block-table { margin-block: 2em; overflow-x: auto; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :is(th, td) { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--rc-line); text-align: left; vertical-align: top; color: var(--rc-text-soft); }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) th,
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) thead td {
	background: #14161B; border-bottom-color: var(--rc-line-bright);
	font: 500 12px/1.35 var(--rc-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rc-text-mute);
}
/* figures: framed, numbered, mono captions */
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) figure { margin-block: 2em; margin-inline: 0; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) .wp-block-image { counter-increment: rcbfig; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) .wp-block-image img { display: block; height: auto; max-width: 100%; border: 1px solid var(--rc-line); background: #14161B; }
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) figcaption {
	margin: 10px 0 0; font: 500 12px/1.55 var(--rc-font-mono); letter-spacing: .04em; color: var(--rc-text-mute); text-align: left;
}
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) .wp-block-image figcaption::before { content: "Fig. " counter(rcbfig, decimal-leading-zero) "\2003"; color: var(--rc-purple-lt); }
/* figures wider than 2:1 (figure.rcb-wide > .rcb-pan, functions.php): on phones the picture keeps a legible height and pans sideways */
@media (max-width: 719px) {
	main.rcb .rcb-article .rcb-wide > .rcb-pan {
		overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--rcb-line3) transparent;
		border: 1px solid var(--rcb-line2); background: var(--rcb-raised);
	}
	main.rcb .rcb-article .rcb-wide > .rcb-pan img { width: auto; max-width: none; height: 300px; border: 0; }
	main.rcb .rcb-article .rcb-wide::after {
		content: "Swipe to see the whole figure \2192"; display: block; margin-top: 10px;
		font: 500 12px/1.4 var(--rcb-fm); letter-spacing: .06em; text-transform: uppercase; color: var(--rcb-text3);
	}
}
/* separator: a dimension line with end ticks */
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :is(hr, .wp-block-separator) {
	width: 100%; max-width: none; height: 9px; margin-block: 2.6em; margin-inline: 0; border: 0; opacity: 1;
	background:
		linear-gradient(var(--rc-line-bright), var(--rc-line-bright)) 0 50% / 1px 9px no-repeat,
		linear-gradient(var(--rc-line-bright), var(--rc-line-bright)) 100% 50% / 1px 9px no-repeat,
		linear-gradient(var(--rc-line-strong), var(--rc-line-strong)) 0 50% / 100% 1px no-repeat;
}
main :is(.rcb-article, .rc-post-body > .wp-block-post-content) :is(.wp-block-embed, .wp-block-video, .wp-block-gallery) { margin-block: 2em; }
/* end mark: the kicker's square closes the post */
main.rcb .rcb-article::after { content: ""; display: block; width: 7px; height: 7px; margin-top: 2.2em; background: var(--rcb-accent); }

/* --- 28e. Keep reading --- */
main.rcb .rcb-more { padding: clamp(56px, 8vh, 88px) 0 clamp(72px, 10vh, 112px); }
main.rcb .rcb-more:not(:has(.wp-block-post)) { display: none; }
main.rcb .rcb-more > * { width: var(--rcb-wrap); margin-inline: auto; }
main.rcb .rcb-more__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
main.rcb .rcb-more__h { margin: 0; font: 600 clamp(30px, 3.2vw, 44px)/1.04 var(--rcb-fd); letter-spacing: -.028em; color: var(--rcb-text); }
main.rcb .rcb-cards--more > li:not(:only-child) .rcb-card__title { font-size: 20px; }
@media (min-width: 720px) {
	main.rcb .rcb-cards--more > li:only-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
	main.rcb .rcb-cards--more > li:first-child:nth-last-child(2),
	main.rcb .rcb-cards--more > li:nth-child(2):last-child { grid-column: span 3; }
}

/* --- 28f. phones --- */
@media (max-width: 719px) {
	main.rcb .rcb-phead__in, main.rcb .rcb-body { font-size: 17px; }
	main.rcb .rcb-ptitle { font-size: clamp(32px, 9vw, 40px); line-height: 1.06; }
	main.rcb .rcb-byline { margin-top: 22px; }
	main.rcb .rcb-figure { clip-path: none; }
	main.rcb .rcb-figure::before { display: none; }
	main :is(.rcb-article, .rc-post-body > .wp-block-post-content) { font-size: 17px; }
	main :is(.rcb-article, .rc-post-body > .wp-block-post-content) pre { margin-inline: calc(-1 * var(--rcb-gut, 16px) + 1px); border-left: 0; border-right: 0; padding: 16px; }
	main.rcb .rcb-card__body { padding: 18px 18px 20px; }
}

/* --- 28g. reduced motion: no hover zoom, no eased state changes --- */
@media (prefers-reduced-motion: reduce) {
	main.rcb .rcb-card__media img, main.rcb .rcb-tlink::after, main.rcb .rcb-back a::before { transition: none; }
	main.rcb .rcb-card:hover .rcb-card__media img { transform: none; }
	main.rcb .rcb-toc__list > li::before, main.rcb .rcb-toc__list a, main.rcb .rcb-toc__d > summary::after { transition: none; }
}

/* Pages that render post content through templates/page.html / page-wide.html */
main .wp-block-post-content,
main .wp-block-post-content p,
main .wp-block-post-content li { color: var(--rc-text-soft); font-size: 17px; line-height: 1.75; }
main .wp-block-post-content a { color: var(--rc-purple-lt); }
main .wp-block-post-content a:hover { color: #fff; }
main .wp-block-post-content h2 { font-size: clamp(1.5rem, 2.2vw + 0.5rem, 2rem); margin: 40px 0 14px; color: #fff; }
main .wp-block-post-content h3 { font-size: 1.25rem; margin: 32px 0 12px; color: #fff; }
main .wp-block-post-content blockquote {
	border-left: 2px solid var(--rc-purple-lt);
	padding: 4px 0 4px 22px;
	margin: 28px 0;
	color: #fff;
	font-family: var(--rc-font-display); font-size: 19px; line-height: 1.5; font-weight: 500;
}
main .wp-block-post-content code,
main .wp-block-post-content pre {
	background: rgba(181,164,232,0.08);
	border: 1px solid var(--rc-line);
	border-radius: var(--rc-r-sm);
	padding: 0.2rem 0.45rem;
	color: var(--rc-text-soft);
}
main .wp-block-post-content pre { padding: 1rem 1.25rem; overflow-x: auto; }

/* (§29 page label: removed, unused) */

/* ============================================================
   31. v3 — SEGMENTATION · AMBIENT BLOCKS · HOVER BORDER-TRACE
   ============================================================ */

/* Animatable angle for the hover border-trace. */
@property --rc-trace-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* --- Section seams: a slick glowing hairline divides every section --- */
.rc-section { border-top: 1px solid transparent; }
.rc-section::before {
	content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent 6%, var(--rc-line-bright) 50%, transparent 94%);
	opacity: .85; z-index: 2; pointer-events: none;
}
/* Rise bands: a clean stepped surface (no glow) so adjacent sections separate by luminance. */
.rc-section--rise {
	background: linear-gradient(180deg, #17191F 0%, var(--rc-bg-rise) 45%, #101216 100%);
}

/* Accessible keyboard focus — crisp 2px accent ring, never a glow. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--rc-purple-lt);
	outline-offset: 2px;
	border-radius: 1px;
}
/* On filled purple CTAs the accent ring vanishes — use a light ring + dark gap (keeps ≥3:1). */
.rc-btn--cut:focus-visible,
.rc-hdr__nav .is-cta:focus-visible,
.rc-contact__card button[type="submit"]:focus-visible {
	outline: 2px solid #E6E8EC;
	outline-offset: 3px;
	box-shadow: 0 0 0 5px rgba(11,13,16,0.9);
}

/* --- Ambient drifting blocks: a faint grid that slowly pans (very subtle) --- */
.rc-section-lines::after,
.rc-ctaband::after {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(181,164,232,0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(181,164,232,0.05) 1px, transparent 1px);
	background-size: 52px 52px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 16%, transparent 74%);
	        mask-image: radial-gradient(ellipse at 50% 38%, #000 16%, transparent 74%);
	animation: rcBlockDrift 46s linear infinite;
}
@keyframes rcBlockDrift {
	from { background-position: 0 0, 0 0; }
	to   { background-position: 52px 52px, 52px 52px; }
}

/* --- Hover border-trace: two faint purple arcs travel the perimeter. No blur. --- */
.rc-contact__block::after {
	content: ""; position: absolute; inset: 0;
	padding: 1px; /* ring thickness */
	background: conic-gradient(from var(--rc-trace-ang),
		transparent 0deg 55deg,
		var(--rc-purple-lt) 90deg,
		transparent 125deg 235deg,
		var(--rc-purple-lt) 270deg,
		transparent 305deg 360deg);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	        mask-composite: exclude;
	opacity: 0;
	transition: opacity var(--rc-dur-base) var(--rc-ease);
	pointer-events: none; z-index: 3;
}
/* Shape-match the ring to each card's geometry. */
.rc-contact__block::after { border-radius: 2px; }
/* Activate on hover — slow, subtle. */
.rc-contact__block:hover::after {
	opacity: .9;
	animation: rcTraceSpin 6s linear infinite;
}
@keyframes rcTraceSpin { to { --rc-trace-ang: 360deg; } }

@media (prefers-reduced-motion: reduce) {
	.rc-section-lines::after, .rc-ctaband::after { animation: none !important; }
	.rc-contact__block:hover::after {
		animation: none !important; opacity: .7;
	}
}

/* (§33 before/after removed in v4) */

/* ============================================================
   33b. SCROLL REVEAL — section heads rise in when their section enters view.
   Safe: initReveal() adds .is-in with a no-IntersectionObserver / reduced-motion
   fallback that reveals immediately, so content is never permanently hidden.
   ============================================================ */
.rc-section__head > * {
	opacity: 0; transform: translateY(16px);
	transition: opacity .6s var(--rc-ease-out), transform .6s var(--rc-ease-out);
}
.is-in .rc-section__head > * { opacity: 1; transform: none; }
.is-in .rc-section__head > *:nth-child(2) { transition-delay: .08s; }
.is-in .rc-section__head > *:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
	.rc-section__head > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* (§34 dashboard mockup removed in v4) */

/* ============================================================
   35. STICKY HEADER + MOBILE RHYTHM / TAP TARGETS
   ============================================================ */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
@media (max-width: 860px) {
	.site-header { background: rgba(11,13,16,0.95); }
}
@media (max-width: 600px) {
	.rc-section { padding-top: 56px; padding-bottom: 56px; }
	.rc-ctaband { padding-top: 56px; padding-bottom: 56px; }
	.rc-hero { padding: 52px 0 48px; }
	.rc-section__head { margin-bottom: 36px; }
	/* tap targets */
	.rc-ftr__nav a { display: inline-block; padding: 5px 0; min-height: 24px; }
	.rc-hdr__nav a { min-height: 44px; display: flex; align-items: center; }
}

/* ============================================================
   36. BUTTON BORDER-TRACE — perimeter light on hover/focus
   Reuses the §31 --rc-trace-ang @property + rcTraceSpin keyframes.
   The ring lives in ::before so the .rc-btn--cut::after sheen and
   button text stay untouched; each shape clips its own ring
   (pills via border-radius, cut buttons via their own clip-path).
   ============================================================ */
.rc-btn--pill,
.wp-block-button .wp-block-button__link { position: relative; }
.rc-btn--cut::before,
.rc-btn--pill::before,
.rc-hdr__nav .is-cta::before,
.wp-block-button .wp-block-button__link::before {
	content: ""; position: absolute; inset: 0;
	padding: 1px; /* ring thickness */
	background: conic-gradient(from var(--rc-trace-ang),
		transparent 0deg 55deg,
		var(--rc-trace-c, var(--rc-purple-lt)) 90deg,
		transparent 125deg 235deg,
		var(--rc-trace-c, var(--rc-purple-lt)) 270deg,
		transparent 305deg 360deg);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	        mask-composite: exclude;
	opacity: 0;
	transition: opacity var(--rc-dur-base) var(--rc-ease);
	pointer-events: none; z-index: 3;
}
/* Shape-match the ring to the pill geometry. */
.rc-btn--pill::before { border-radius: var(--rc-r-pill); }
/* Activate on hover / keyboard focus — slow lap (~4s), subtle. */
.rc-btn--cut:hover::before,
.rc-btn--cut:focus-visible::before,
.rc-btn--pill:hover::before,
.rc-btn--pill:focus-visible::before,
.rc-hdr__nav .is-cta:hover::before,
.rc-hdr__nav .is-cta:focus-visible::before,
.wp-block-button .wp-block-button__link:hover::before,
.wp-block-button .wp-block-button__link:focus-visible::before {
	opacity: .85;
	animation: rcTraceSpin 4s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
	.rc-btn--cut:hover::before, .rc-btn--cut:focus-visible::before,
	.rc-btn--pill:hover::before, .rc-btn--pill:focus-visible::before,
	.rc-hdr__nav .is-cta:hover::before, .rc-hdr__nav .is-cta:focus-visible::before,
	.wp-block-button .wp-block-button__link:hover::before,
	.wp-block-button .wp-block-button__link:focus-visible::before {
		animation: none !important; opacity: .6;
	}
}

/* ============================================================
   37. SEAM SWEEP — section entrance choreography
   ============================================================ */

/* --- One-shot seam sweep: a brighter light runs the §31 top hairline
   left→right when the section gains .is-in, then the static gradient
   settles back (no fill-mode, so the base ::before styles return).
   .rc-ctaband gets its own hairline pseudo so it can sweep too. --- */
.rc-ctaband::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent 6%, var(--rc-line-bright) 50%, transparent 94%);
	opacity: .85; z-index: 2; pointer-events: none;
}
.rc-section.is-in::before,
.rc-ctaband.is-in::before {
	animation: rcSeamSweep 1.1s var(--rc-ease) .1s 1;
}
@keyframes rcSeamSweep {
	from {
		background-image:
			linear-gradient(90deg, transparent 0%, var(--rc-purple-lt) 50%, transparent 100%),
			linear-gradient(90deg, transparent 6%, var(--rc-line-bright) 50%, transparent 94%);
		background-size: 26% 100%, 100% 100%;
		background-repeat: no-repeat, no-repeat;
		background-position: -40% 0, 0 0;
	}
	to {
		background-image:
			linear-gradient(90deg, transparent 0%, var(--rc-purple-lt) 50%, transparent 100%),
			linear-gradient(90deg, transparent 6%, var(--rc-line-bright) 50%, transparent 94%);
		background-size: 26% 100%, 100% 100%;
		background-repeat: no-repeat, no-repeat;
		background-position: 140% 0, 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rc-section.is-in::before, .rc-ctaband.is-in::before { animation: none !important; }
}

/* (§38 ambient dots and §39 economics comparison removed in v4) */

/* ============================================================
   32. PRINT
   ============================================================ */
@media print {
	.rc-hero__grid { display: none !important; }
	.rc-section::before, .rc-ctaband::before, .rc-section-lines::after, .rc-ctaband::after { display: none !important; }
	html, body { background: #fff; color: #000; }
	* { color: #000 !important; background: transparent !important; }
}

/* ============================================================
   40. MOTION PASS — per-element entrance choreography
   Phases 2-14 of the motion audit. Reveals key off .is-in
   (added by initReveal to sections + [data-reveal] elements).
   Fade reveals are animate-only (backwards-fill hides during the
   delay, so they degrade visible with JS off); draw/grow reveals
   carry a base state. Every base state is reset in 40.R.
   ============================================================ */

/* --- 40.11 Contact: submit press feedback, notice entrance, focus-within --- */
.rc-contact__card form.contact-form button[type="submit"] {
	transition: background var(--rc-dur-fast) var(--rc-ease), transform var(--rc-dur-fast) var(--rc-ease), box-shadow var(--rc-dur-fast) var(--rc-ease);
}
.rc-contact__card form.contact-form button[type="submit"]:hover { transform: translateY(-1px); box-shadow: var(--rc-shadow-md); }
.rc-contact__card form.contact-form button[type="submit"]:active { transform: translateY(1px) scale(.985); transition-duration: var(--rc-dur-instant); }
.rc-contact__card .grunion-field-wrap:focus-within label { color: var(--rc-purple-lt); }
.rc-form-notice { animation: rcNoticeIn .4s var(--rc-ease-out) .05s both; }
@keyframes rcNoticeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* --- 40.R Reduced-motion: force every §40 base state to its end value --- */
@media (prefers-reduced-motion: reduce) {
	.rc-form-notice {
		opacity: 1 !important; translate: none !important; animation: none !important;
	}
}

/* ============================================================
   41. V3 — PHASE 0 FIXES (critique 2026-10-03)
   Header CTA swap, full-width two-line hero headline, highlight that
   survives wrapping, footer CTA, contact next steps, legal page,
   16px form inputs, legacy plugin chrome hidden.
   ============================================================ */

/* Leftover Header-Footer-Elementor reading bar: markup still prints, CSS is dequeued. */
[class*="hfe-reading-progress"] { display: none !important; }

/* Header: Client login is a quiet text link; Request a call is the one filled button. */
.rc-hdr__nav .is-quiet { color: var(--rc-text-mute); margin-left: 6px; }
.rc-hdr__nav .is-quiet::after { display: none; }
.rc-hdr__nav .is-quiet:hover { color: #fff; }
.rc-hdr__nav a.is-active { color: #fff; }
/* One line per link always; just above the burger breakpoint the links sit closer so the row still fits. */
.rc-hdr__nav a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 959px) {
	.rc-hdr__nav a { padding-left: 9px; padding-right: 9px; }
	.rc-hdr__nav a::after { left: 9px; right: 9px; }
	.rc-hdr__nav .is-cta { margin-left: 6px; padding-left: 14px; padding-right: 14px; }
}
/* Phone menu: every item on one left edge; the current page gets a purple bar at the panel's edge. */
@media (max-width: 860px) {
	.rc-hdr__nav .is-quiet { margin-left: 0; }
	.rc-hdr__nav a.is-active { color: var(--rc-purple-lt); }
	.rc-hdr__nav a.is-active::after {
		display: block; left: -18px; right: auto; top: 12px; bottom: 12px;
		width: 3px; height: auto; transform: none;
	}
}

/* Hero band rhythm (the v4 hero layout itself is in assets/css/v4/hero.css). */
.rc-hero { padding: 64px 0 72px; }

/* Footer: same logo as the header; CTA instead of the GET email form. */
.rc-ftr__logo { height: 30px; width: auto; display: block; }
.rc-ftr__title { font-family: var(--rc-font-mono); color: var(--rc-text-mute); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 14px; }
.rc-ftr__cta { margin: 2px 0 14px; }
.rc-ftr__fine { font-size: 12.5px; }
.rc-ftr__mail a { color: var(--rc-purple-lt); }

/* Contact: what happens next + optional scheduler block. */
.rc-next__steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: rcnext; }
.rc-next__steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; counter-increment: rcnext; }
.rc-next__steps li::before {
	content: counter(rcnext); grid-row: 1 / 3;
	display: grid; place-items: center; width: 30px; height: 30px;
	font: 700 14px/1 var(--rc-font-display); color: var(--rc-text-ink); background: var(--rc-yellow);
	clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.rc-next__steps b { color: #fff; font-weight: 600; font-size: 15px; }
.rc-next__steps span { color: var(--rc-text-soft); font-size: 14px; line-height: 1.5; }
.rc-contact__book { display: grid; gap: 12px; justify-items: start; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--rc-line); }
.rc-contact__or { color: var(--rc-text-mute); font-size: 14px; margin: 0; }

/* Inputs at 16px so iOS doesn't zoom on focus. */
.rc-contact input, .rc-contact select, .rc-contact textarea,
.contact-form input, .contact-form select, .contact-form textarea { font-size: 16px !important; }

/* Legal page. */
.rc-legal { display: grid; gap: 14px; }
.rc-legal h2 { font-size: clamp(1.5rem, 1.4vw + 0.9rem, 1.9rem); margin-top: 26px; }
.rc-legal h3 { font-size: 1.1rem; margin-top: 8px; }
.rc-legal p, .rc-legal li { color: var(--rc-text-soft); font-size: 16px; line-height: 1.7; max-width: 68ch; }
.rc-legal ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.rc-legal b { color: #fff; }

/* ============================================================
   42. V3 — HOME COMPONENTS (phase 1: complete at rest; motion in §43)
   ============================================================ */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Left heads share the content's left edge instead of floating centred. */
.rc-section__head--left { margin-left: 0; margin-right: auto; max-width: 820px; }
.rc-section__head--left h2 { max-width: 24ch; }
.rc-section__head--left p { max-width: 62ch; }

/* (42.1-42.9 v3 home components removed in v4: home sections now live in assets/css/v4/*.css) */

/* --- 42.10 Mobile sticky Request a call --- */
.rc-mcta { display: none; }
@media (max-width: 860px) {
	.rc-mcta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
		display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 18px;
		background: var(--rc-purple); color: #fff; text-decoration: none; clip-path: var(--rc-clip-cut); --rc-cut: 10px;
		font: 600 14px/1 var(--rc-font-display); letter-spacing: 0.05em; text-transform: uppercase;
		box-shadow: 0 10px 24px -10px rgba(0,0,0,0.7);
		transform: translateY(calc(100% + 24px)); visibility: hidden; transition: transform .3s var(--rc-ease-out), visibility 0s linear .3s; }
	body.rc-past-hero .rc-mcta { transform: none; visibility: visible; transition: transform .3s var(--rc-ease-out), visibility 0s; }
	body.rc-past-hero.rc-in-pin .rc-mcta { transform: translateY(calc(100% + 24px)); visibility: hidden; transition: transform .3s var(--rc-ease-out), visibility 0s linear .3s; }
	html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	body:has(.rc-contact) .rc-mcta { display: none; }
	.rc-ftr { padding-bottom: 84px !important; }
}

/* --- 42.11 Legibility floor (12px for labels) --- */
.rc-eyebrow { font-size: 12px; }

/* ============================================================
   43. V3 — PHASE 2: MOTION THAT CARRIES MEANING
   Ambient drift is retired; motion belongs to the components
   (v4 home: assets/js/rc4-core.js + assets/{css,js}/v4/*).
   ============================================================ */

/* Retired ambient loops (markup removed too; these guard any leftovers). */
.rc-section-lines::after, .rc-ctaband::after,
.rc-hero__grid::before { animation: none !important; }
/* Hover border-trace retired on the contact blocks: it implied the whole block was a link. */
.rc-contact__block::after { display: none; }

/* --- 43.5 Focus on clipped buttons: clip-path hides any outer outline/shadow,
   so cut-corner CTAs draw their ring inside the shape (white on #5B4FC4 ~6.2:1). --- */
.rc-btn--cut:focus-visible,
.rc-hdr__nav .is-cta:focus-visible,
.rc-mcta:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--rc-text-ink);
	background: var(--rc-purple-dk);
}

/* ============================================================
   44. V5 HOST — the home page is one scoped pattern (.rc5, assets/css/v5/rc5.css)
   ============================================================ */
/* Fixed 64px header (63px row + 1px border): the pinned v5 scenes stick at
   --rc5-hdr: 64px, so the header must not shrink on scroll or content would
   peek through the gap. */
.rc-hdr__row { height: 63px; padding-top: 0; padding-bottom: 0; }
body.is-scrolled .rc-hdr__row { padding-top: 0; padding-bottom: 0; }
body.is-scrolled .rc-hdr__logo { height: 34px; }
.rc5-host { padding: 0 !important; margin: 0 !important; max-width: none !important; }
/* Logged-in admin bar sits above the sticky header. */
.admin-bar header.wp-block-template-part { top: 32px; }
.admin-bar .rc5 { --rc5-hdr: 96px; }
@media (max-width: 782px) {
	.admin-bar header.wp-block-template-part { top: 46px; }
	.admin-bar .rc5 { --rc5-hdr: 110px; }
}

/* ============================================================
   45. NERD OUT HOST — /nerd-out/ is one scoped pattern (.rcn, assets/css/nerd/rcn.css)
   ============================================================ */
.rcn-host { padding: 0 !important; margin: 0 !important; max-width: none !important; }
/* Admin-bar offset (--rcn-hdr) lives in rcn.css. */
