/* ==========================================================================
   Rudra Portfolio — "Return on Attention": the site is a funnel.

   Every section is built from core blocks. Classes on those blocks (set by
   the patterns, the Styles panel or the Motion panel) carry the design;
   main.js adds the moving parts. States that wait for an animation are
   scoped to html.rs-js, so the page (and the editor) reads fine without it.
   ========================================================================== */

:root {
	--bone: #eeeae2;
	--bone-2: #e4dfd5;
	--bone-3: #d5cfc2;
	--ink: #111110;
	--ink-2: #1b1b19;
	--ink-3: #2b2b28;
	--signal: #ff5a1f;
	--lilac: #c9b8f3;

	--bg: var(--bone);
	--fg: var(--ink);
	--muted: color-mix(in srgb, var(--fg) 58%, transparent);
	--line: color-mix(in srgb, var(--fg) 16%, transparent);

	--f-display: Archivo, "Helvetica Neue", Arial, sans-serif;
	--f-serif: "Instrument Serif", Georgia, serif;
	--f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-io: cubic-bezier(0.76, 0, 0.24, 1);

	--gutter: clamp(16px, 2.2vw, 36px);
	--header-h: 72px;
	--admin-h: 0px;
	--radius: 14px;
}

.admin-bar {
	--admin-h: 32px;
}

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

.is-dark,
.is-style-dark {
	--bg: var(--ink);
	--fg: var(--bone);
}

.is-signal,
.is-style-signal {
	--bg: var(--signal);
	--fg: var(--ink);
}

.is-lilac,
.is-style-lilac {
	--bg: var(--lilac);
	--fg: var(--ink);
}

/* Derived tokens must be re-declared wherever --fg changes. */
.is-dark,
.is-signal,
.is-lilac,
.is-style-dark,
.is-style-signal,
.is-style-lilac {
	--muted: color-mix(in srgb, var(--fg) 58%, transparent);
	--line: color-mix(in srgb, var(--fg) 16%, transparent);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

body {
	margin: 0;
	background: var(--bone);
	color: var(--ink);
	font-family: var(--f-display);
	font-size: 17px;
	line-height: 1.5;
	font-variation-settings: "wdth" 100;
	overflow-x: clip;
}

body.is-loading {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
dl,
dd {
	margin: 0;
}

em {
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
	font-variation-settings: normal;
}

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

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

/* --------------------------------------------------------------------------
   WordPress block wrappers — keep core layout out of the way
   -------------------------------------------------------------------------- */

.wp-site-blocks > *,
.wp-block-post-content > *,
.wp-block-template-part {
	margin-block: 0;
}

/* The editor adds a 24px gap between blocks; spacing here comes from the
   classes below instead. Same weight as the core rule, declared later. */
:root :where(.is-layout-flow) > *,
:root :where(.is-layout-constrained) > * {
	margin-block: 0;
}

.wp-site-blocks {
	padding: 0;
}

/* Ink behind every portfolio section, so rounded corners and reveals open onto dark. */
.rs-main {
	display: block;
	background: var(--ink);
}

.rs-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

figure.wp-block-image {
	margin: 0;
}

.wp-block-image :where(figcaption) {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Shared atoms
   -------------------------------------------------------------------------- */

.rs-eyebrow {
	font-family: var(--f-mono);
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--muted);
}

.rs-section {
	position: relative;
	background: var(--bg);
	color: var(--fg);
	padding: clamp(96px, 12vw, 200px) var(--gutter);
}

.rs-section-head {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 14px;
	margin-bottom: clamp(40px, 6vw, 96px);
	border-bottom: 1px solid var(--line);
}

.rs-h2 {
	font-size: clamp(52px, 7.6vw, 136px);
	line-height: 0.9;
	letter-spacing: -0.035em;
	font-weight: 750;
	font-variation-settings: "wdth" 88;
}

.rs-h2 em {
	letter-spacing: -0.02em;
	font-size: 1.04em;
}

/* Buttons: core Button blocks and the theme's own .rs-btn share one look. */
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wp-block-button .wp-block-button__link,
.rs-btn {
	--x: 50%;
	--y: 50%;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--fg);
	color: var(--bg);
	font-family: var(--f-display);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	white-space: nowrap;
	transition: color 0.4s var(--ease), background 0.4s;
}

.wp-block-button .wp-block-button__link::before,
.rs-btn::before {
	content: "";
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 260%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--signal);
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.6s var(--ease);
	z-index: -1;
}

.wp-block-button .wp-block-button__link:hover::before,
.rs-btn:hover::before {
	transform: translate(-50%, -50%) scale(1);
}

.wp-block-button .wp-block-button__link:hover,
.rs-btn:hover {
	color: var(--ink);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	padding: 0 22px;
	border: 0;
	background: transparent;
	color: var(--fg);
	box-shadow: inset 0 0 0 1px var(--fg);
}

.rs-btn__arrow {
	display: inline-block;
	transition: transform 0.5s var(--ease);
}

.wp-block-button__link:hover .rs-btn__arrow {
	transform: rotate(-45deg);
}

/* Pipe roll: every letter is a little cylinder with the same glyph on its
   front and bottom faces. On hover the cylinders turn 90° one after another,
   like a pipe rolling under the text. main.js builds the markup. */
.rs-pipe {
	--pipe-r: 0.55em;
	display: inline-flex;
	line-height: 1.1;
	vertical-align: top;
	/* The line acts as the pipe's visible slot: faces turn out of sight over its edges. */
	clip-path: inset(-0.03em -0.08em);
}

.rs-pipe__row {
	display: inline-flex;
	perspective: 6em;
	white-space: pre;
}

.rs-pipe__char {
	position: relative;
	display: inline-block;
	transform-style: preserve-3d;
	transform: translateZ(calc(var(--pipe-r) * -1)) rotateX(0deg);
	transition: transform 0.75s cubic-bezier(0.19, 1, 0.22, 1);
	transition-delay: calc(var(--i) * 24ms);
}

.rs-pipe__face {
	display: block;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform: translateZ(var(--pipe-r));
}

.rs-pipe__face--next {
	position: absolute;
	inset: 0;
	color: var(--pipe-next, currentColor);
	transform: rotateX(-90deg) translateZ(var(--pipe-r));
}

.rs-pipe-host:hover .rs-pipe__char,
.rs-pipe-host:focus-visible .rs-pipe__char {
	transform: translateZ(calc(var(--pipe-r) * -1)) rotateX(90deg);
}

.rs-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rs-tags li {
	font-family: var(--f-mono);
	font-size: 11px;
	line-height: 1.5;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 5px 10px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px var(--line);
}

.rs-fx-lines {
	font-kerning: normal;
}

/* --------------------------------------------------------------------------
   Grain + cursor (added by main.js)
   -------------------------------------------------------------------------- */

.rs-grain {
	position: fixed;
	inset: 0;
	z-index: 9000;
	pointer-events: none;
	opacity: 0.09;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: rs-grain 0.9s steps(5) infinite;
}

@keyframes rs-grain {
	0% { background-position: 0 0; }
	20% { background-position: -60px 40px; }
	40% { background-position: 80px -30px; }
	60% { background-position: -30px -90px; }
	80% { background-position: 110px 60px; }
	100% { background-position: 0 0; }
}

.rs-cursor,
.rs-cursor-label {
	display: none;
}

@media (pointer: fine) {
	html.has-cursor,
	html.has-cursor * {
		cursor: none !important;
	}

	.rs-cursor {
		display: block;
		position: fixed;
		left: 0;
		top: 0;
		z-index: 9999;
		pointer-events: none;
		mix-blend-mode: difference;
		opacity: 0;
		transition: opacity 0.3s;
	}

	html.cursor-ready .rs-cursor {
		opacity: 1;
	}

	/* Difference blending turns blue on orange, so go solid ink there. */
	html.cursor-ink .rs-cursor {
		mix-blend-mode: normal;
	}

	html.cursor-ink .rs-cursor__dot {
		background: var(--ink);
	}

	html.cursor-ink .rs-cursor__ring {
		box-shadow: inset 0 0 0 1px var(--ink);
	}

	html.cursor-ink .rs-cursor-label {
		background: var(--ink);
		color: var(--signal);
	}

	.rs-cursor__dot {
		position: absolute;
		width: 8px;
		height: 8px;
		margin: -4px 0 0 -4px;
		border-radius: 50%;
		background: #fff;
		transition: transform 0.3s var(--ease);
	}

	.rs-cursor__ring {
		position: absolute;
		width: 40px;
		height: 40px;
		margin: -20px 0 0 -20px;
		border-radius: 50%;
		box-shadow: inset 0 0 0 1px #fff;
		transition: transform 0.45s var(--ease), opacity 0.3s;
	}

	html.cursor-hover .rs-cursor__ring {
		transform: scale(1.7);
	}

	html.cursor-hover .rs-cursor__dot {
		transform: scale(0);
	}

	html.cursor-ready.cursor-label .rs-cursor {
		opacity: 0;
	}

	.rs-cursor-label {
		display: grid;
		place-items: center;
		position: fixed;
		left: 0;
		top: 0;
		z-index: 9999;
		width: 96px;
		height: 96px;
		margin: -48px 0 0 -48px;
		border-radius: 50%;
		background: var(--signal);
		color: var(--ink);
		font-family: var(--f-mono);
		font-size: 12px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		pointer-events: none;
		transform: scale(0);
		transition: transform 0.5s var(--ease);
	}

	html.cursor-label .rs-cursor-label {
		transform: scale(1);
	}
}

/* --------------------------------------------------------------------------
   Loader — a flat signal sheet, a monogram that writes itself, then the
   sheet lifts away with a curved edge (shape driven from main.js).
   -------------------------------------------------------------------------- */

.rs-loader {
	position: fixed;
	inset: 0;
	z-index: 9500;
	display: grid;
	place-items: center;
	background: var(--signal);
	color: var(--ink);
}

.rs-loader__mark {
	width: clamp(68px, 7vw, 104px);
	height: auto;
	overflow: visible;
}

.rs-loader__stroke {
	stroke: currentColor;
	stroke-width: 9;
	stroke-linecap: butt;
	stroke-linejoin: miter;
	stroke-dasharray: 1 1;
	stroke-dashoffset: 1;
}

.rs-loader__label {
	position: absolute;
	left: 50%;
	bottom: clamp(20px, 3.6vh, 36px);
	translate: -50% 0;
	padding: 7px 14px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1.5px currentColor;
	font-family: var(--f-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Header, menu, HUD
   -------------------------------------------------------------------------- */

.rs-header {
	--hfg: var(--ink);
	--hbg: var(--bone);
	position: fixed;
	inset: var(--admin-h) 0 auto;
	z-index: 800;
	height: var(--header-h);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	padding: 0 var(--gutter);
	color: var(--hfg);
	transition: color 0.4s var(--ease), transform 0.6s var(--ease);
}

.rs-header.on-dark,
html.menu-open .rs-header {
	--hfg: var(--bone);
	--hbg: var(--ink);
}

.rs-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--hbg) 82%, transparent);
	backdrop-filter: blur(14px) saturate(1.2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	border-bottom: 1px solid color-mix(in srgb, var(--hfg) 8%, transparent);
	opacity: 0;
	transition: opacity 0.4s, background 0.4s;
}

.rs-header.is-scrolled::before {
	opacity: 1;
}

html.menu-open .rs-header::before {
	opacity: 0;
}

.rs-header.is-hidden {
	transform: translateY(-110%);
}

html.menu-open .rs-header.is-hidden {
	transform: none;
}

.rs-logo {
	justify-self: start;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
}

.rs-logo a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.rs-logo__mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--hfg);
	color: var(--hbg);
	font-size: 12px;
	letter-spacing: -0.02em;
	font-variation-settings: "wdth" 80;
	transition: background 0.4s, color 0.4s;
}

.rs-logo__name {
	white-space: nowrap;
}

.rs-logo sup {
	font-size: 9px;
	margin-left: 1px;
}

nav.rs-nav {
	justify-self: center;
	padding: 5px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--hfg) 7%, transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-size: 14px;
}

/* WordPress repeats the block class on the inner list; only the outer nav is the pill. */
.rs-nav .wp-block-navigation__container {
	gap: 4px;
	padding: 0;
	border-radius: 0;
	background: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.rs-nav .wp-block-navigation-item,
.rs-menu__links .wp-block-navigation-item {
	background: none;
}

.rs-nav .wp-block-navigation-item .wp-block-navigation-item__content {
	--pipe-next: var(--signal);
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	font-weight: 500;
	line-height: 1.1;
	transition: background 0.3s, color 0.3s;
}

.rs-nav .wp-block-navigation-item .wp-block-navigation-item__content.is-active {
	background: var(--hfg);
	color: var(--hbg);
}

.rs-header__right {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 12px;
}

.rs-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: 8px;
	font-family: var(--f-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.rs-status::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2fd36b;
	animation: rs-ping 1.8s var(--ease) infinite;
}

@keyframes rs-ping {
	0% { box-shadow: 0 0 0 0 rgba(47, 211, 107, 0.7); }
	100% { box-shadow: 0 0 0 9px rgba(47, 211, 107, 0); }
}

.rs-header .wp-block-button .wp-block-button__link {
	height: 44px;
	padding: 0 18px;
	font-size: 14px;
	background: var(--hfg);
	color: var(--hbg);
}

.rs-header .wp-block-button .wp-block-button__link:hover {
	color: var(--ink);
}

/* Square toggle: two uneven bars that cross into an × */
.rs-menu-toggle {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--signal);
	color: var(--ink);
	transition: transform 0.5s var(--ease);
}

.rs-menu-toggle:hover {
	transform: scale(1.06);
}

.rs-menu-toggle i {
	position: relative;
	width: 18px;
	height: 10px;
}

.rs-menu-toggle i::before,
.rs-menu-toggle i::after {
	content: "";
	position: absolute;
	right: 0;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: top 0.5s var(--ease), width 0.5s var(--ease), transform 0.5s var(--ease);
}

.rs-menu-toggle i::before {
	top: 0;
	width: 100%;
}

.rs-menu-toggle i::after {
	top: 8px;
	width: 55%;
}

.rs-menu-toggle:hover i::after {
	width: 100%;
}

html.menu-open .rs-menu-toggle i::before {
	top: 4px;
	transform: rotate(45deg);
}

html.menu-open .rs-menu-toggle i::after {
	top: 4px;
	width: 100%;
	transform: rotate(-45deg);
}

.rs-menu {
	position: fixed;
	inset: var(--admin-h) 0 0;
	z-index: 790;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(22px, 3.4vh, 40px);
	padding: calc(var(--header-h) + 20px) var(--gutter) calc(var(--gutter) + 56px);
	background: var(--ink);
	color: var(--bone);
	visibility: hidden;
}

/* Faint contour rings rising from below the fold. */
.rs-menu::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-radial-gradient(ellipse 120% 90% at 50% 118%, transparent 0 62px, color-mix(in srgb, var(--bone) 7%, transparent) 62px 63px);
}

.rs-menu__links.wp-block-navigation {
	position: relative;
}

.rs-menu__links .wp-block-navigation__container {
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.rs-menu__links .wp-block-navigation-item .wp-block-navigation-item__content {
	--pipe-next: var(--signal);
	position: relative;
	display: block;
	font-size: clamp(40px, min(8vw, 8.6vh), 108px);
	line-height: 1;
	font-weight: 760;
	font-variation-settings: "wdth" 88;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	transition: color 0.4s var(--ease);
}

.rs-menu__links .rs-pipe {
	--pipe-r: 0.48em;
	line-height: 0.96;
}

.rs-menu__links .wp-block-navigation-item .wp-block-navigation-item__content.is-current {
	color: color-mix(in srgb, var(--bone) 52%, transparent);
}

.rs-menu__squiggle {
	position: absolute;
	left: -5%;
	top: 50%;
	width: 110%;
	height: 0.3em;
	translate: 0 -50%;
	overflow: visible;
	pointer-events: none;
}

.rs-menu__squiggle path {
	fill: none;
	stroke: var(--signal);
	stroke-width: 3.2;
	stroke-linecap: round;
	stroke-dasharray: 1 1;
	stroke-dashoffset: 1;
}

.rs-menu__tag {
	position: relative;
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--bone) 55%, transparent);
}

.rs-menu__foot {
	position: absolute;
	left: 0;
	right: 0;
	bottom: clamp(22px, 4vh, 40px);
	display: flex;
	justify-content: center;
	gap: 30px;
	font-family: var(--f-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.rs-menu__foot a {
	--pipe-next: var(--signal);
}

.rs-hud {
	position: fixed;
	inset: auto var(--gutter) 18px;
	z-index: 700;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	pointer-events: none;
	color: var(--ink);
	opacity: 0;
	translate: 0 12px;
	transition: color 0.4s var(--ease), opacity 0.5s, translate 0.6s var(--ease);
	font-family: var(--f-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.rs-hud.on-dark {
	color: var(--bone);
}

.rs-hud.is-visible {
	opacity: 1;
	translate: 0 0;
}

.rs-hud__label {
	display: block;
	opacity: 0.55;
	margin-bottom: 4px;
}

.rs-hud__current {
	display: flex;
	gap: 8px;
	height: 1.4em;
	overflow: hidden;
}

.rs-hud__current b {
	font-weight: 600;
	color: var(--signal);
}

.rs-hud__name {
	display: inline-block;
}

.rs-hud__steps {
	display: flex;
	gap: 4px;
	margin-top: 8px;
}

.rs-hud__steps i {
	width: 18px;
	height: 3px;
	background: currentColor;
	opacity: 0.2;
	transition: opacity 0.4s, background 0.4s, width 0.5s var(--ease);
}

.rs-hud__steps i.is-done {
	opacity: 0.7;
}

.rs-hud__steps i.is-on {
	opacity: 1;
	width: 36px;
	background: var(--signal);
}

.rs-hud__depth {
	text-align: right;
}

.rs-hud__pct {
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

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

.rs-hero {
	--portrait-w: min(28vw, 50svh);
	position: relative;
	min-height: 100svh;
	display: grid;
	grid-template-rows: auto 1fr auto;
	padding: calc(var(--header-h) + 18px) var(--gutter) clamp(12px, 1.4vw, 22px);
	background: var(--bone);
	color: var(--ink);
	isolation: isolate;
	overflow: hidden;
}

.rs-hero__meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

.rs-hero__meta > :nth-child(2) {
	text-align: center;
}

.rs-hero__meta > :nth-child(3) {
	text-align: right;
}

.rs-clock time {
	font-variant-numeric: tabular-nums;
}

.rs-hero .rs-clock time {
	color: var(--ink);
}

.rs-hero__body {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--portrait-w);
	grid-template-rows: auto 1fr;
	column-gap: clamp(32px, 5vw, 96px);
	padding-top: clamp(20px, 3vh, 48px);
}

.rs-hero__lede {
	grid-column: 1;
	grid-row: 1;
	align-self: start;
	max-width: 17ch;
	font-size: clamp(30px, min(4.6vw, 7svh), 86px);
	line-height: 0.98;
	letter-spacing: -0.035em;
	font-weight: 650;
	font-variation-settings: "wdth" 90;
}

.rs-hero__lede em {
	color: var(--signal);
	font-size: 1.06em;
	letter-spacing: -0.02em;
}

.rs-hero__aside {
	grid-column: 1;
	grid-row: 2;
	align-self: end;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px 40px;
	flex-wrap: wrap;
	padding: 24px 0 clamp(16px, 2.6vh, 32px);
	font-size: 16px;
	line-height: 1.45;
	color: var(--muted);
}

.rs-hero__aside p {
	max-width: 36ch;
}

.rs-hero__aside strong {
	color: var(--ink);
	font-weight: 600;
}

.rs-hero__visual {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: end;
	position: relative;
	z-index: 1;
	margin-bottom: calc(var(--name-size, 14vw) * -0.6);
}

.rs-hero__portrait.wp-block-image {
	width: 100%;
	aspect-ratio: 3 / 4;
}

.rs-hero__portrait figcaption {
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	margin: 0;
	font-family: var(--f-mono);
	font-size: 11px;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}

/* Badge: the link text runs around a circle once main.js has built it. */
.rs-badge {
	position: absolute;
	left: clamp(-70px, -4.6vw, -48px);
	top: clamp(-70px, -4.6vw, -48px);
	z-index: 3;
	width: clamp(104px, 9.2vw, 144px);
	aspect-ratio: 1;
	color: var(--ink);
	transition: scale 0.5s var(--ease);
}

.rs-badge:hover {
	scale: 1.08;
}

.rs-badge a {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 16px;
	border-radius: 50%;
	background: var(--signal);
	font-family: var(--f-mono);
	font-size: 10px;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
}

.rs-badge.is-built a {
	padding: 0;
	background: none;
}

.rs-badge svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.rs-badge__ring {
	transform-origin: 50% 50%;
}

.rs-badge text {
	font-family: var(--f-mono);
	font-size: 9.4px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	fill: currentColor;
}

.rs-badge__core {
	fill: var(--signal);
}

.rs-badge__arrow {
	stroke: var(--ink);
	stroke-width: 1.6;
	fill: none;
}

.rs-hero__name {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	font-size: var(--name-size, 14vw);
	line-height: 0.8;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--bone);
	mix-blend-mode: difference;
	white-space: nowrap;
	user-select: none;
	padding-top: 0.04em;
}

.rs-k-word {
	display: inline-flex;
}

.rs-k-char {
	--wght: 760;
	--wdth: 100;
	display: inline-block;
	font-variation-settings: "wght" var(--wght), "wdth" var(--wdth);
	will-change: transform;
}

/* --------------------------------------------------------------------------
   Decode + pixel canvases
   -------------------------------------------------------------------------- */

.rs-decode,
.rs-pixel {
	position: relative;
	background: var(--bone-2);
	border-radius: 4px;
}

.rs-pixel {
	overflow: hidden;
}

.rs-decode img,
.rs-pixel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.rs-decode canvas,
.rs-pixel canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: inherit;
}

.rs-decode.is-ready img,
.rs-pixel.is-ready img {
	opacity: 0;
}

/* --------------------------------------------------------------------------
   Marquee — the list becomes an endless track in main.js
   -------------------------------------------------------------------------- */

.rs-marquee {
	position: relative;
	z-index: 3;
	background: var(--ink);
	color: var(--bone);
	padding: clamp(14px, 1.6vw, 24px) 0;
	overflow: hidden;
	white-space: nowrap;
}

.rs-marquee__list {
	display: flex;
	align-items: center;
}

.rs-marquee__list li + li::before {
	content: "✺";
	margin-right: 0.32em;
	color: var(--signal);
}

.rs-marquee__track {
	display: inline-flex;
	will-change: transform;
}

.rs-marquee__set {
	display: inline-flex;
	align-items: center;
}

.rs-marquee__item,
.rs-marquee__list li {
	font-size: clamp(30px, 4.2vw, 72px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	font-variation-settings: "wdth" 82;
	padding: 0 0.32em;
}

.rs-marquee__item em,
.rs-marquee__list em {
	color: var(--signal);
}

.rs-marquee__sep {
	display: inline-block;
	width: clamp(22px, 2.4vw, 40px);
	height: clamp(22px, 2.4vw, 40px);
	color: var(--signal);
	flex: none;
}

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

.rs-about__statement {
	font-size: clamp(32px, 4.3vw, 76px);
	line-height: 1.04;
	letter-spacing: -0.03em;
	font-weight: 600;
	font-variation-settings: "wdth" 90;
}

.rs-about__statement em {
	color: var(--signal);
}

/* An inline image in the statement becomes a little pill-shaped photo. */
.rs-about__statement img {
	display: inline-block;
	width: 1.7em !important;
	height: 0.82em;
	margin: 0 0.06em;
	border-radius: 999px;
	object-fit: cover;
	object-position: 46% 39%;
	vertical-align: -0.04em;
}

.rs-chip-img {
	display: inline-block;
	width: 1.7em;
	height: 0.82em;
	margin: 0 0.06em;
	border-radius: 999px;
	overflow: hidden;
	vertical-align: -0.04em;
	background: var(--bone-3);
}

.rs-about__statement .rs-chip-img img {
	width: 100% !important;
	height: 100%;
	margin: 0;
	border-radius: 0;
	vertical-align: top;
	transform: scale(2.4);
	transform-origin: 46% 41%;
}

.rs-chip-text {
	display: inline-block;
	padding: 0.02em 0.32em 0.06em;
	border-radius: 999px;
	background: var(--lilac);
	color: var(--ink);
	font-size: 0.82em;
	vertical-align: 0.05em;
	letter-spacing: -0.02em;
}

.rs-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
	gap: clamp(24px, 3vw, 56px);
	margin-top: clamp(64px, 9vw, 150px);
	align-items: start;
}

.rs-about__photo.wp-block-image {
	aspect-ratio: 4 / 5;
}

.rs-about__photo figcaption {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 2;
	margin: 0;
	font-family: var(--f-mono);
	font-size: 11px;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--bone);
	color: var(--ink);
}

.rs-facts {
	border-top: 1px solid var(--line);
}

.rs-facts li {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
}

.rs-facts li strong {
	font-family: var(--f-mono);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--muted);
	padding-top: 3px;
}

.rs-about__note {
	font-family: var(--f-serif);
	font-size: clamp(26px, 2.3vw, 38px);
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.rs-about__note strong {
	display: block;
	margin-bottom: 14px;
	font-family: var(--f-mono);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--signal);
}

/* --------------------------------------------------------------------------
   Bridge (dot transition)
   -------------------------------------------------------------------------- */

.rs-bridge {
	position: relative;
	background: var(--bone);
	color: var(--ink);
}

.rs-bridge__pin {
	position: relative;
	height: 100svh;
	display: grid;
	place-items: center;
	overflow: hidden;
	padding: 0 var(--gutter);
}

.rs-bridge__text {
	font-size: clamp(48px, 9vw, 168px);
	line-height: 0.9;
	font-weight: 800;
	letter-spacing: -0.045em;
	font-variation-settings: "wdth" 78;
	text-align: center;
}

.rs-bridge__text em {
	font-weight: 400;
}

.rs-bridge__dot {
	position: relative;
	z-index: 5;
	display: inline-block;
	width: 0.2em;
	height: 0.2em;
	margin-left: 0.04em;
	border-radius: 50%;
	background: var(--ink);
	will-change: transform;
}

/* --------------------------------------------------------------------------
   Proof
   -------------------------------------------------------------------------- */

.rs-proof.rs-section {
	padding-top: clamp(48px, 6vw, 96px);
}

.rs-proof__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 40px;
	align-items: end;
	margin-bottom: clamp(40px, 5vw, 80px);
}

.rs-proof__intro p {
	font-size: 18px;
	color: var(--muted);
	max-width: 42ch;
}

.rs-proof__intro p strong {
	color: var(--fg);
	font-weight: 600;
}

.rs-chart {
	position: relative;
	padding: 28px 0 0;
	border-top: 1px solid var(--line);
}

.rs-chart__head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

/* The milestones list: shown as cards until main.js draws the chart from it. */
.rs-chart__points {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.rs-chart__points li {
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--bone);
	color: var(--ink);
	font-family: var(--f-mono);
	font-size: 11px;
	text-transform: uppercase;
}

.rs-chart__points li:last-child {
	background: var(--signal);
}

.rs-chart__points strong {
	display: block;
	margin-bottom: 6px;
	font-family: var(--f-display);
	font-size: clamp(26px, 2.6vw, 44px);
	line-height: 1;
	letter-spacing: -0.03em;
	text-transform: none;
	font-variation-settings: "wdth" 85;
}

.rs-chart__points small {
	display: block;
	margin-top: 4px;
	opacity: 0.6;
}

.rs-chart.is-built .rs-chart__points {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.rs-chart__plot {
	position: relative;
	height: clamp(280px, 38vw, 520px);
	margin-left: 64px;
}

.rs-chart__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.rs-chart__grid line {
	stroke: var(--line);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.rs-chart__line {
	fill: none;
	stroke: var(--signal);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.rs-chart__area {
	opacity: 0;
}

.rs-chart__ylabels {
	position: absolute;
	left: -64px;
	top: 0;
	bottom: 0;
	width: 52px;
}

.rs-chart__ylabels span {
	position: absolute;
	right: 0;
	transform: translateY(-50%);
	font-family: var(--f-mono);
	font-size: 11px;
	color: var(--muted);
}

.rs-chart__xlabels {
	position: relative;
	height: 16px;
	margin: 14px 0 0 64px;
	font-family: var(--f-mono);
	font-size: 11px;
	color: var(--muted);
}

.rs-chart__xlabels span {
	position: absolute;
	transform: translateX(-50%);
	white-space: nowrap;
}

.rs-chart__xlabels span:last-child {
	transform: translateX(-100%);
}

.rs-chart__pt {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 0;
	height: 0;
}

.rs-chart__pt::before {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: var(--ink);
	box-shadow: 0 0 0 3px var(--signal);
	transform: scale(var(--s, 0));
	transition: transform 0.6s var(--ease);
}

.rs-chart__pt.is-on {
	--s: 1;
}

.rs-chart__card {
	position: absolute;
	bottom: 22px;
	left: -12px;
	width: max-content;
	max-width: 260px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--bone);
	color: var(--ink);
	opacity: 0;
	transform: translateY(12px) rotate(-2deg);
	transition: opacity 0.5s, transform 0.7s var(--ease);
}

.rs-chart__pt--right .rs-chart__card {
	left: auto;
	right: -12px;
}

.rs-chart__pt--below .rs-chart__card {
	bottom: auto;
	top: 22px;
}

.rs-chart__pt.is-on .rs-chart__card {
	opacity: 1;
	transform: translateY(0) rotate(-2deg);
}

.rs-chart__card b {
	display: block;
	font-size: clamp(26px, 2.6vw, 44px);
	line-height: 1;
	letter-spacing: -0.03em;
	font-variation-settings: "wdth" 85;
}

.rs-chart__card span {
	display: block;
	margin-top: 6px;
	font-family: var(--f-mono);
	font-size: 11px;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--ink) 60%, transparent);
}

.rs-chart__pt--now .rs-chart__card {
	background: var(--signal);
}

.rs-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: clamp(80px, 10vw, 160px);
	border-top: 1px solid var(--line);
}

.rs-kpi {
	position: relative;
	padding: 28px 24px 8px 0;
	border-right: 1px solid var(--line);
}

.rs-kpi + .rs-kpi {
	padding-left: 24px;
}

.rs-kpi:last-child {
	border-right: 0;
}

.rs-kpi__num {
	display: flex;
	font-size: clamp(64px, 7.4vw, 136px);
	line-height: 0.9;
	font-weight: 800;
	letter-spacing: -0.04em;
	font-variation-settings: "wdth" 78;
	margin-bottom: 28px;
}

.rs-kpi:nth-child(odd) .rs-kpi__num {
	color: var(--signal);
}

.rs-kpi p:not(.rs-kpi__num) {
	max-width: 28ch;
	font-size: 16px;
	color: var(--muted);
}

.rs-kpi p strong {
	display: block;
	margin-bottom: 4px;
	color: var(--fg);
	font-weight: 600;
}

.rs-kpi sup {
	font-family: var(--f-mono);
	font-size: 10px;
	color: var(--signal);
}

/* Rolling counters (Motion → Rolling counter, or the class rs-fx-count) */
.rs-odometer {
	display: flex;
	line-height: 0.9;
	font-variant-numeric: tabular-nums;
}

.rs-odometer > span:not(.rs-odo) {
	display: inline-block;
	height: 0.9em;
	line-height: 0.9;
}

.rs-odo {
	display: inline-block;
	height: 0.9em;
	overflow: hidden;
}

.rs-odo__strip {
	display: flex;
	flex-direction: column;
}

.rs-odo__strip span {
	display: block;
	height: 0.9em;
	line-height: 0.9;
}

.rs-footnotes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 40px;
	font-family: var(--f-mono);
	font-size: 11px;
	line-height: 1.5;
	color: var(--muted);
	counter-reset: fn;
}

.rs-footnotes li::before {
	counter-increment: fn;
	content: counter(fn) " — ";
	color: var(--signal);
}

/* --------------------------------------------------------------------------
   Work — horizontal campaigns
   -------------------------------------------------------------------------- */

.rs-work.rs-section {
	padding: 0;
}

.rs-work__pin {
	position: relative;
	height: 100svh;
	display: flex;
	flex-direction: column;
	padding: calc(var(--header-h) + 12px) 0 clamp(64px, 7vh, 84px);
	overflow: hidden;
}

.rs-work__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	padding: 0 var(--gutter) clamp(20px, 2.4vw, 36px);
}

.rs-work__head .rs-h2 {
	font-size: clamp(44px, 5.6vw, 100px);
}

.rs-work__count {
	font-family: var(--f-mono);
	font-size: 13px;
	color: var(--muted);
	white-space: nowrap;
}

.rs-work__count b {
	display: inline-block;
	font-size: 48px;
	line-height: 1;
	font-family: var(--f-display);
	font-weight: 800;
	color: var(--signal);
	font-variation-settings: "wdth" 80;
	font-variant-numeric: tabular-nums;
}

.rs-work__track {
	flex: 1;
	display: flex;
	gap: clamp(16px, 1.6vw, 28px);
	padding: 0 var(--gutter);
	min-height: 0;
	will-change: transform;
}

.rs-work__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.rs-work__progress {
	width: clamp(120px, 12vw, 200px);
	height: 2px;
	background: var(--line);
}

.rs-work__progress span {
	display: block;
	height: 100%;
	background: var(--signal);
	transform-origin: left;
	transform: scaleX(0);
}

.rs-case {
	--case-bg: var(--bone);
	--case-fg: var(--ink);
	position: relative;
	flex: none;
	width: min(78vw, 1180px);
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: clamp(20px, 2vw, 32px);
	border-radius: var(--radius);
	background: var(--case-bg);
	color: var(--case-fg);
	overflow: hidden;
	transform-style: preserve-3d;
}

.rs-case.is-style-lilac {
	--case-bg: var(--lilac);
}

.rs-case.is-style-signal {
	--case-bg: var(--signal);
}

.rs-case.is-style-dark {
	--case-bg: var(--ink-3);
	--case-fg: var(--bone);
}

.rs-case__top {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid color-mix(in srgb, var(--case-fg) 20%, transparent);
	font-family: var(--f-mono);
	font-size: 12px;
	text-transform: uppercase;
}

.rs-case__top > :nth-child(2) {
	opacity: 0.6;
}

.rs-case__main {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 56px);
	padding-top: clamp(18px, 2vw, 32px);
	min-height: 0;
}

.rs-case__copy {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.rs-case__kicker {
	font-family: var(--f-mono);
	font-size: 12px;
	text-transform: uppercase;
	opacity: 0.6;
	margin-bottom: 14px;
}

.rs-case__title {
	font-size: clamp(34px, 3.7vw, 66px);
	line-height: 0.95;
	letter-spacing: -0.035em;
	font-weight: 750;
	font-variation-settings: "wdth" 86;
}

.rs-case__body {
	margin-top: 18px;
	max-width: 44ch;
	font-size: clamp(15px, 1.1vw, 17px);
	line-height: 1.5;
	opacity: 0.78;
}

.rs-case__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid color-mix(in srgb, var(--case-fg) 20%, transparent);
}

.rs-case__stats li {
	font-size: 13px;
	line-height: 1.3;
	opacity: 0.85;
}

.rs-case__stats strong {
	display: block;
	font-size: clamp(26px, 2.4vw, 42px);
	line-height: 1;
	letter-spacing: -0.03em;
	font-variation-settings: "wdth" 82;
	margin-bottom: 4px;
}

.rs-case .rs-tags {
	margin-top: 16px;
}

.rs-case .rs-tags li {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--case-fg) 30%, transparent);
}

.rs-case__visual {
	position: relative;
	border-radius: 10px;
	background: color-mix(in srgb, var(--case-fg) 7%, transparent);
	overflow: hidden;
	min-height: 0;
}

.rs-viz-caption {
	position: absolute;
	right: 12px;
	bottom: 10px;
	font-family: var(--f-mono);
	font-size: 10px;
	text-transform: uppercase;
	opacity: 0.45;
}

/* Visual: spend vs revenue bars. Heights come from the numbers (main.js). */
.rs-viz-bars {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 12%;
	padding: 28px 12% 0;
}

.rs-viz-bars__bar {
	--h: 30%;
	position: relative;
	width: 34%;
	height: var(--h);
	border-radius: 8px 8px 0 0;
	background: var(--case-fg);
	transform-origin: bottom;
	transition: transform 1.4s var(--ease);
}

.rs-viz-bars__bar:last-child {
	--h: 86%;
	background: var(--signal);
	transition-delay: 0.25s;
}

.rs-js .rs-viz-bars__bar {
	transform: scaleY(var(--grow, 0));
}

.rs-viz-bars__bar > :first-child {
	position: absolute;
	left: 0;
	bottom: calc(100% + 8px);
	font-family: var(--f-mono);
	font-size: 11px;
	text-transform: uppercase;
	opacity: 0.6;
	white-space: nowrap;
}

.rs-viz-bars__bar > :last-child {
	position: absolute;
	left: 12px;
	bottom: 10px;
	color: var(--case-bg);
	font-size: clamp(22px, 2.2vw, 38px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-variation-settings: "wdth" 80;
}

.rs-viz-bars__bar:last-child > :last-child {
	color: var(--ink);
}

.rs-viz-bars__mult {
	position: absolute;
	top: 18px;
	left: 22px;
	font-family: var(--f-serif);
	font-style: italic;
	font-size: clamp(60px, 7vw, 120px);
	line-height: 0.8;
}

.rs-case.is-in .rs-viz-bars__bar {
	--grow: 1;
}

/* Visual: lead mix + units */
.rs-viz-units {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	padding: 22px;
}

.rs-viz-units__mix .rs-eyebrow {
	color: inherit;
	opacity: 0.6;
}

.rs-viz-units__bar {
	display: flex;
	height: 64px;
	margin-top: 10px;
	border-radius: 8px;
	overflow: hidden;
}

.rs-viz-units__bar li {
	display: flex;
	align-items: center;
	padding: 0 14px;
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
	transform-origin: left;
	transition: transform 1.2s var(--ease);
}

.rs-viz-units__bar li:first-child {
	flex: 0 0 36%;
	background: var(--ink);
	color: var(--bone);
}

.rs-viz-units__bar li:last-child {
	flex: 1;
	background: var(--signal);
	color: var(--ink);
	transition-delay: 0.2s;
}

.rs-js .rs-viz-units__bar li {
	transform: scaleX(var(--grow, 0));
}

.rs-case.is-in .rs-viz-units__bar li {
	--grow: 1;
}

.rs-viz-units__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

.rs-viz-units__list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--bone);
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
	transition: opacity 0.5s, transform 0.7s var(--ease);
	transition-delay: calc(var(--i, 0) * 70ms + 0.3s);
}

.rs-viz-units__list li:last-child {
	background: var(--ink);
	color: var(--bone);
}

.rs-viz-units__list li small {
	font-family: var(--f-mono);
	font-size: 10px;
	opacity: 0.5;
}

.rs-js .rs-viz-units__list li {
	opacity: 0;
	transform: translateY(14px);
}

.rs-js .rs-case.is-in .rs-viz-units__list li {
	opacity: 1;
	transform: none;
}

/* Visual: brand reel */
.rs-viz-reel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 24px;
	mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
	-webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}

.rs-viz-reel__list {
	animation: rs-reel 12s linear infinite;
}

.rs-viz-reel__list li {
	font-family: var(--f-serif);
	font-style: italic;
	font-size: clamp(36px, 3.8vw, 66px);
	line-height: 1.1;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.rs-viz-reel__list li:nth-child(odd) {
	font-family: var(--f-display);
	font-style: normal;
	font-weight: 750;
	font-variation-settings: "wdth" 80;
	letter-spacing: -0.035em;
}

@keyframes rs-reel {
	to { transform: translateY(-50%); }
}

.rs-viz-reel__stamp {
	position: absolute;
	right: 18px;
	bottom: 18px;
	display: grid;
	place-content: center;
	width: clamp(110px, 9vw, 150px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--ink);
	color: var(--signal);
	text-align: center;
	font-weight: 800;
	font-size: clamp(30px, 2.8vw, 46px);
	line-height: 0.9;
	letter-spacing: -0.04em;
	font-variation-settings: "wdth" 80;
	transform: rotate(-12deg);
}

.rs-viz-reel__stamp small {
	display: block;
	font-family: var(--f-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--bone);
}

/* Visual: automation node graph. The bold item is the hub. */
.rs-viz-nodes__list {
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	gap: 8px;
	height: 100%;
	padding: 22px;
}

.rs-viz-nodes__list li {
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--bone);
	color: var(--ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.rs-viz-nodes__list li:has(strong) {
	background: var(--signal);
}

.rs-viz-nodes svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.rs-viz-nodes .wire {
	fill: none;
	stroke: color-mix(in srgb, var(--case-fg) 35%, transparent);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}

.rs-viz-nodes .pulse {
	fill: none;
	stroke: var(--signal);
	stroke-width: 3;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 10 300;
	animation: rs-pulse 2.4s linear infinite;
}

@keyframes rs-pulse {
	from { stroke-dashoffset: 310; }
	to { stroke-dashoffset: 0; }
}

.rs-viz-nodes.is-built .rs-viz-nodes__list {
	padding: 0;
}

.rs-viz-nodes.is-built .rs-viz-nodes__list li {
	position: absolute;
	left: var(--x);
	top: var(--y);
	transform: translate(-50%, -50%);
}

.rs-viz-nodes__list li.is-core {
	padding: 18px 22px;
	border-radius: 14px;
	background: var(--signal);
	font-size: 16px;
	font-weight: 750;
	box-shadow: 0 0 0 8px color-mix(in srgb, var(--signal) 25%, transparent);
	animation: rs-breathe 2.4s var(--ease) infinite;
}

.rs-viz-nodes__list li.is-out {
	background: var(--lilac);
}

@keyframes rs-breathe {
	50% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--signal) 0%, transparent); }
}

/* Visual: SERP climb */
.rs-viz-serp {
	--rh: clamp(34px, 5.4vh, 54px);
	--gap: 8px;
	display: grid;
	grid-template-columns: 30px 1fr;
	gap: 10px;
	align-content: center;
	padding: 22px;
}

.rs-viz-serp__ai {
	grid-column: 1 / -1;
	padding: 12px 14px;
	border-radius: 8px;
	background: var(--lilac);
	color: var(--ink);
	font-family: var(--f-mono);
	font-size: 10px;
	text-transform: uppercase;
	line-height: 1.2;
}

.rs-viz-serp__ai strong {
	display: block;
	font-family: var(--f-display);
	font-size: 14px;
	text-transform: none;
}

.rs-viz-serp__ranks,
.rs-viz-serp__rows {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
}

.rs-viz-serp__ranks li {
	display: flex;
	align-items: center;
	height: var(--rh);
	font-family: var(--f-mono);
	font-size: 12px;
	opacity: 0.55;
}

.rs-viz-serp__row {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	height: var(--rh);
	padding: 0 14px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--case-fg) 8%, transparent);
	transform: translateY(calc(var(--d, 0) * (var(--rh) + var(--gap))));
	transition: transform 1.3s var(--ease) 0.35s, background 0.4s;
}

.rs-viz-serp__row i {
	display: block;
	height: 7px;
	width: var(--w);
	border-radius: 4px;
	background: color-mix(in srgb, var(--case-fg) 25%, transparent);
}

.rs-viz-serp__row i + i {
	height: 5px;
	width: calc(var(--w) * 0.65);
	opacity: 0.6;
}

.rs-viz-serp__row.is-you {
	z-index: 2;
	background: var(--signal);
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
}

.rs-viz-serp__row.is-you i {
	background: var(--ink);
}

.rs-viz-serp__row.is-ai {
	background: var(--lilac);
	color: var(--ink);
}

.rs-viz-serp__row .rs-viz-serp__ai {
	padding: 0;
	background: none;
}

.rs-case.is-in .rs-viz-serp__row {
	--d: 1;
}

.rs-case.is-in .rs-viz-serp__row.is-ai {
	--d: 0;
}

.rs-case.is-in .rs-viz-serp__row.is-you {
	--d: -4;
}

/* Visual: organic line */
.rs-viz-line svg {
	position: absolute;
	inset: 18% 0 0;
	width: 100%;
	height: 82%;
	clip-path: inset(0 100% 0 0);
	transition: clip-path 2s var(--ease-io);
}

.rs-case.is-in .rs-viz-line svg {
	clip-path: inset(0 0 0 0);
}

.rs-viz-line path.l {
	fill: none;
	stroke: var(--ink);
	stroke-width: 3;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.rs-viz-line path.a {
	fill: var(--ink);
	opacity: 0;
	transition: opacity 1s 1.2s;
}

.rs-case.is-in .rs-viz-line path.a {
	opacity: 0.08;
}

.rs-viz-line__big {
	position: absolute;
	left: 22px;
	top: 18px;
	font-weight: 800;
	font-size: clamp(64px, 7vw, 120px);
	line-height: 0.85;
	letter-spacing: -0.05em;
	font-variation-settings: "wdth" 76;
}

.rs-viz-line__big small {
	display: block;
	font-family: var(--f-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: uppercase;
	opacity: 0.6;
	margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Stacked sheets — each section slides over the last on a rounded edge
   -------------------------------------------------------------------------- */

.rs-sheet,
.wp-block-post-content > .rs-sheet {
	position: relative;
	z-index: 2;
	margin-top: -28px;
	border-radius: 28px 28px 0 0;
}

/* --------------------------------------------------------------------------
   Freelance — built & grown
   -------------------------------------------------------------------------- */

.rs-freelance__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 40px;
	align-items: end;
	margin-bottom: clamp(48px, 6vw, 96px);
}

.rs-freelance__lead > p {
	max-width: 46ch;
	font-size: 18px;
	color: var(--muted);
}

.rs-freelance__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 28px;
	border-top: 1px solid var(--line);
}

.rs-freelance__stats li {
	padding: 18px 16px 0 0;
	font-size: 14px;
	line-height: 1.35;
	color: var(--muted);
}

.rs-freelance__stats li + li {
	padding-left: 16px;
	border-left: 1px solid var(--line);
}

.rs-freelance__stats strong {
	display: flex;
	margin-bottom: 10px;
	font-size: clamp(44px, 4.6vw, 82px);
	line-height: 0.9;
	font-weight: 800;
	letter-spacing: -0.04em;
	font-variation-settings: "wdth" 78;
	color: var(--signal);
}

.rs-sites {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(28px, 3vw, 48px) clamp(14px, 1.6vw, 24px);
}

.rs-site {
	display: flex;
	flex-direction: column;
	gap: 18px;
	will-change: transform;
}

.rs-site.is-built {
	cursor: pointer;
}

.rs-site__frame {
	border-radius: 14px;
	overflow: hidden;
	background: var(--ink);
	box-shadow: 0 30px 60px -32px rgba(17, 17, 16, 0.45);
	transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.rs-site:hover .rs-site__frame {
	box-shadow: 0 40px 80px -30px rgba(17, 17, 16, 0.55);
}

.rs-site__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px;
	background: var(--ink);
}

.rs-site__bar i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--bone) 25%, transparent);
}

.rs-site__bar i:first-child {
	background: var(--signal);
}

.rs-site__bar span {
	flex: 1;
	display: flex;
	align-items: center;
	height: 20px;
	margin-left: 10px;
	padding: 0 10px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--bone) 10%, transparent);
	color: color-mix(in srgb, var(--bone) 70%, transparent);
	font-family: var(--f-mono);
	font-size: 11px;
	overflow: hidden;
	white-space: nowrap;
}

.rs-site__shot.wp-block-image {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 14px;
	background: var(--bone-2);
}

.rs-site__frame .rs-site__shot.wp-block-image {
	border-radius: 0;
}

.rs-site__shot a {
	display: block;
	height: 100%;
}

/* Hovering scrolls the real page inside the window. */
.rs-site__shot.wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0%;
	transition: object-position 1.2s var(--ease);
}

.rs-site:hover .rs-site__shot img,
.rs-site:focus-within .rs-site__shot img {
	object-position: 50% 100%;
	transition: object-position 6s cubic-bezier(0.45, 0, 0.25, 1);
}

.rs-site__meta > * + * {
	margin-top: 6px;
}

.rs-site.is-built .rs-site__meta {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 14px;
	row-gap: 6px;
	align-items: baseline;
}

.rs-site.is-built .rs-site__meta > * {
	grid-column: 2;
	margin: 0;
}

.rs-site.is-built .rs-site__meta > .rs-site__idx {
	grid-column: 1;
	grid-row: 1 / span 3;
}

.rs-site__idx {
	font-family: var(--f-mono);
	font-size: 12px;
	color: var(--signal);
}

.rs-site__name {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: clamp(24px, 2.1vw, 36px);
	line-height: 1;
	font-weight: 750;
	letter-spacing: -0.03em;
	font-variation-settings: "wdth" 86;
}

.rs-site__name::after {
	content: "↗";
	font-size: 0.6em;
	transition: transform 0.5s var(--ease), color 0.3s;
}

.rs-site:hover .rs-site__name::after {
	transform: translate(4px, -4px);
	color: var(--signal);
}

.rs-site__what {
	font-size: 15px;
	color: var(--muted);
}

.rs-site .rs-tags {
	margin-top: 6px;
}

/* The recovery engine */
.rs-recover {
	display: grid;
	gap: clamp(20px, 3vw, 40px);
	margin-top: clamp(72px, 9vw, 140px);
	padding: clamp(24px, 3vw, 48px);
	border-radius: 22px;
	background: var(--ink);
	color: var(--bone);
}

.rs-recover__copy {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: clamp(24px, 4vw, 64px);
	align-items: end;
}

.rs-recover__copy .rs-eyebrow {
	grid-column: 1 / -1;
}

.rs-recover__title {
	margin: 14px 0 0;
	font-size: clamp(36px, 3.6vw, 64px);
	line-height: 0.95;
	font-weight: 750;
	letter-spacing: -0.035em;
	font-variation-settings: "wdth" 86;
}

.rs-recover__title em {
	color: var(--signal);
}

.rs-recover__copy p:not(.rs-eyebrow) {
	max-width: 46ch;
	font-size: 16px;
	color: var(--muted);
}

/* Flow: a checklist by default (phones, the editor); a wired diagram on desktop. */
.rs-flow {
	position: relative;
	margin-top: 8px;
	padding-bottom: 28px;
}

.rs-flow__steps {
	position: relative;
	display: grid;
	gap: 10px;
	padding-left: 22px;
}

.rs-flow__steps::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 14px;
	bottom: 14px;
	border-left: 1.5px dashed color-mix(in srgb, var(--bone) 30%, transparent);
}

.rs-flow__steps li {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 9px 13px;
	border-radius: 12px;
	background: var(--ink-3);
	color: var(--bone);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bone) 12%, transparent);
	font-size: clamp(12px, 1vw, 14px);
	font-weight: 650;
	line-height: 1.15;
	white-space: nowrap;
	transition: opacity 0.5s, transform 0.8s var(--ease);
}

.rs-flow__steps li strong {
	font-family: var(--f-mono);
	font-size: 10px;
	font-weight: 500;
	color: var(--signal);
}

.rs-flow__steps li small {
	margin-left: auto;
	font-family: var(--f-mono);
	font-size: 10px;
	font-weight: 400;
	text-transform: uppercase;
	opacity: 0.6;
}

.rs-flow__steps li:nth-child(4) {
	background: var(--ink);
	color: var(--signal);
	box-shadow: inset 0 0 0 1.5px var(--signal);
}

.rs-flow__steps li:nth-child(5) {
	background: var(--lilac);
	color: var(--ink);
}

.rs-flow__steps li:nth-child(6) {
	background: #25d366;
	color: var(--ink);
}

.rs-flow__steps li:nth-child(7) {
	background: var(--signal);
	color: var(--ink);
}

.rs-flow__steps li:nth-child(n + 5) strong {
	color: var(--ink);
}

.rs-js .rs-flow__steps li {
	opacity: 0;
	transform: translateX(-12px);
}

.rs-js .rs-flow.is-in .rs-flow__steps li {
	opacity: 1;
	transform: none;
}

.rs-flow__steps li:nth-child(2) { transition-delay: 0.15s; }
.rs-flow__steps li:nth-child(3) { transition-delay: 0.3s; }
.rs-flow__steps li:nth-child(4) { transition-delay: 0.5s; }
.rs-flow__steps li:nth-child(5) { transition-delay: 0.8s; }
.rs-flow__steps li:nth-child(6) { transition-delay: 0.9s; }
.rs-flow__steps li:nth-child(7) { transition-delay: 1.2s; }

.rs-flow.is-in .rs-flow__steps li:nth-child(7) {
	animation: rs-breathe 2.4s var(--ease) 1.6s infinite;
}

.rs-flow__wires {
	display: none;
}

.rs-flow__wires .wire {
	fill: none;
	stroke: color-mix(in srgb, var(--bone) 30%, transparent);
	stroke-width: 1.5;
	stroke-dasharray: 4 6;
	vector-effect: non-scaling-stroke;
}

.rs-flow__wires .wire.is-drop {
	stroke: color-mix(in srgb, var(--signal) 70%, transparent);
}

.rs-flow__wires .pulse {
	fill: none;
	stroke: var(--signal);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 8 300;
	vector-effect: non-scaling-stroke;
	animation: rs-pulse 3.4s linear infinite;
}

.rs-flow__wires .pulse + .pulse {
	animation-delay: -1.7s;
}

/* A WhatsApp message that types itself in */
.rs-flow__chat {
	position: relative;
	width: 100%;
	margin-top: 16px;
	padding: 10px 12px 8px;
	border-radius: 14px 14px 14px 4px;
	background: #e7fbd8;
	color: var(--ink);
	font-size: 13px;
	line-height: 1.35;
	transition: opacity 0.5s 1.4s, transform 0.7s var(--ease) 1.4s;
}

.rs-flow__chat p {
	transition: opacity 0.5s 2.9s;
}

.rs-flow__chat .rs-flow__status {
	margin-top: 4px;
	font-family: var(--f-mono);
	font-size: 10px;
	text-align: right;
	color: #34a853;
}

.rs-js .rs-flow__chat {
	opacity: 0;
	transform: translateY(14px);
}

.rs-js .rs-flow__chat p {
	opacity: 0;
}

.rs-js .rs-flow.is-in .rs-flow__chat,
.rs-js .rs-flow.is-in .rs-flow__chat p {
	opacity: 1;
	transform: none;
}

.rs-flow__typing {
	position: absolute;
	left: 12px;
	top: 12px;
	display: flex;
	gap: 4px;
	transition: opacity 0.3s 2.8s;
}

.rs-flow.is-in .rs-flow__typing {
	opacity: 0;
}

.rs-flow__typing i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--ink) 45%, transparent);
	animation: rs-typing 1s ease-in-out infinite;
}

.rs-flow__typing i:nth-child(2) { animation-delay: 0.15s; }
.rs-flow__typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes rs-typing {
	0%, 100% { transform: translateY(0); opacity: 0.5; }
	50% { transform: translateY(-4px); opacity: 1; }
}

@media (min-width: 901px) {
	.rs-flow.is-built {
		height: clamp(300px, 25vw, 380px);
		padding-bottom: 0;
	}

	.rs-flow.is-built .rs-flow__wires {
		display: block;
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		overflow: visible;
		clip-path: inset(0 100% 0 0);
		transition: clip-path 1.8s var(--ease-io);
	}

	.rs-flow.is-built.is-in .rs-flow__wires {
		clip-path: inset(0 0 0 0);
	}

	.rs-flow.is-built .rs-flow__steps {
		position: absolute;
		inset: 0;
		display: block;
		padding: 0;
	}

	.rs-flow.is-built .rs-flow__steps::before {
		display: none;
	}

	.rs-flow.is-built .rs-flow__steps li {
		position: absolute;
		left: var(--x);
		top: var(--y);
		flex-direction: column;
		align-items: center;
		gap: 3px;
		text-align: center;
		transform: translate(-50%, -50%);
	}

	.rs-flow.is-built .rs-flow__steps li small {
		margin-left: 0;
	}

	.rs-js .rs-flow.is-built .rs-flow__steps li {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.7);
	}

	.rs-js .rs-flow.is-built.is-in .rs-flow__steps li {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}

	.rs-flow.is-built .rs-flow__steps li:nth-child(7) {
		padding: 14px 18px;
		font-size: 16px;
		box-shadow: 0 0 0 8px color-mix(in srgb, var(--signal) 22%, transparent);
	}

	.rs-flow.is-built .rs-flow__chat {
		position: absolute;
		left: 22%;
		bottom: 0;
		width: min(250px, 42%);
		margin: 0;
	}
}

/* --------------------------------------------------------------------------
   Playbook — stacking cards
   -------------------------------------------------------------------------- */

.rs-playbook.rs-section {
	padding-bottom: clamp(60px, 8vw, 120px);
}

.rs-playbook__intro,
.rs-edu__intro,
.rs-stackpit__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 40px;
	align-items: end;
	margin-bottom: clamp(48px, 6vw, 96px);
}

.rs-playbook__intro p,
.rs-edu__intro p,
.rs-stackpit__intro p {
	font-size: 18px;
	color: var(--muted);
	max-width: 40ch;
}

.rs-stack {
	position: relative;
}

.rs-stack__card {
	--dim: 0;
	--card-bg: var(--bone-2);
	--card-fg: var(--ink);
	position: sticky;
	top: calc(var(--admin-h) + var(--header-h) + 16px + var(--i, 0) * 18px);
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(24px, 4vw, 80px);
	min-height: min(72svh, 640px);
	margin-bottom: 4vh;
	padding: clamp(24px, 3vw, 48px);
	border-radius: 20px;
	background: var(--card-bg);
	color: var(--card-fg);
	transform-origin: 50% 0;
	overflow: hidden;
}

.rs-stack__card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ink);
	opacity: var(--dim);
	pointer-events: none;
}

.rs-stack__card:nth-child(4n + 1) { --card-bg: var(--bone); }
.rs-stack__card:nth-child(4n + 2) { --card-bg: var(--lilac); }
.rs-stack__card:nth-child(4n + 3) { --card-bg: var(--signal); }
.rs-stack__card:nth-child(4n + 4) { --card-bg: var(--ink-3); --card-fg: var(--bone); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bone) 14%, transparent); }

.rs-stack__left {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.rs-stack__num {
	font-family: var(--f-mono);
	font-size: 13px;
	text-transform: uppercase;
}

.rs-stack__title {
	font-size: clamp(72px, 11vw, 200px);
	line-height: 0.82;
	font-weight: 800;
	letter-spacing: -0.055em;
	font-variation-settings: "wdth" 76;
}

.rs-stack__right {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
}

.rs-stack__quote {
	font-family: var(--f-serif);
	font-style: italic;
	font-size: clamp(34px, 3.6vw, 64px);
	line-height: 1;
	letter-spacing: -0.015em;
}

.rs-stack__list li {
	display: flex;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
	font-size: clamp(16px, 1.25vw, 19px);
	font-weight: 500;
}

.rs-stack__list li::before {
	content: "→";
	font-family: var(--f-mono);
}

.rs-stack__proof {
	display: inline-flex;
	align-self: flex-start;
	gap: 10px;
	padding: 8px 14px;
	border-radius: 999px;
	background: color-mix(in srgb, currentColor 10%, transparent);
	font-family: var(--f-mono);
	font-size: 12px;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Experience — accordion rows (core Details blocks)
   -------------------------------------------------------------------------- */

.rs-exp .rs-h2 {
	margin-bottom: clamp(40px, 5vw, 80px);
}

.rs-exp__list {
	border-top: 1px solid var(--line);
}

.rs-exp__row {
	position: relative;
	border-bottom: 1px solid var(--line);
}

.rs-exp__row summary {
	position: relative;
	display: grid;
	grid-template-columns: 150px minmax(0, 1.4fr) minmax(0, 1fr) 140px 40px;
	align-items: center;
	gap: 24px;
	padding: clamp(20px, 2.4vw, 36px) 0;
	list-style: none;
	cursor: pointer;
	isolation: isolate;
	transition: color 0.45s var(--ease), padding 0.5s var(--ease);
}

.rs-exp__row summary::-webkit-details-marker,
.rs-exp__row summary::marker {
	display: none;
	content: "";
}

.rs-exp__row summary::before {
	content: "";
	position: absolute;
	inset: 0 calc(var(--gutter) * -1);
	z-index: -1;
	background: var(--ink);
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.55s var(--ease);
}

@media (hover: hover) {
	.rs-exp__row summary:hover {
		color: var(--bone);
		padding-left: 18px;
	}

	.rs-exp__row summary:hover::before {
		transform: scaleY(1);
	}
}

/* Before main.js splits the "Years | Company | Role | Place" title. */
.rs-exp__row summary:not(:has(span)) {
	display: block;
	font-size: clamp(20px, 2vw, 30px);
	font-weight: 650;
	letter-spacing: -0.02em;
}

.rs-exp__years {
	font-family: var(--f-mono);
	font-size: 13px;
}

.rs-exp__co {
	font-size: clamp(30px, 3.6vw, 64px);
	line-height: 0.95;
	font-weight: 750;
	letter-spacing: -0.035em;
	font-variation-settings: "wdth" 84;
}

.rs-exp__role {
	font-size: 17px;
	font-weight: 500;
}

.rs-exp__loc {
	font-family: var(--f-mono);
	font-size: 12px;
	text-transform: uppercase;
	opacity: 0.6;
}

.rs-exp__icon {
	position: relative;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px currentColor;
	justify-self: end;
}

.rs-exp__icon::before,
.rs-exp__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 1.5px;
	margin: -0.75px 0 0 -6px;
	background: currentColor;
	transition: transform 0.5s var(--ease);
}

.rs-exp__icon::after {
	transform: rotate(90deg);
}

.rs-exp__row[open] .rs-exp__icon::after {
	transform: rotate(0deg);
}

/* The bold-number paragraph feeds the floating card; hide it once that exists. */
.rs-exp__hover {
	margin: 0 0 16px;
	font-family: var(--f-mono);
	font-size: 12px;
	text-transform: uppercase;
	color: var(--signal);
}

.rs-js .rs-exp__hover {
	display: none;
}

.rs-exp__detail {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 24px;
	padding: 0 0 32px;
	overflow: hidden;
}

.rs-exp__detail > * {
	grid-column: 2;
}

.rs-exp__row ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 40px;
	max-width: 1100px;
}

.rs-exp__row li {
	padding: 12px 0;
	border-top: 1px solid var(--line);
	font-size: 16px;
	color: var(--muted);
}

.rs-exp__row li strong {
	color: var(--fg);
	font-weight: 600;
}

.rs-preview {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 600;
	width: 280px;
	padding: 18px;
	border-radius: 14px;
	background: var(--signal);
	color: var(--ink);
	pointer-events: none;
	transform: scale(0) rotate(-6deg);
	transition: transform 0.5s var(--ease);
	display: none;
}

@media (hover: hover) and (pointer: fine) {
	.rs-preview {
		display: block;
	}
}

.rs-preview.is-on {
	transform: scale(1) rotate(-4deg);
}

.rs-preview__metric {
	font-size: 56px;
	line-height: 0.85;
	font-weight: 800;
	letter-spacing: -0.045em;
	font-variation-settings: "wdth" 76;
}

.rs-preview__label {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.rs-preview__tag {
	display: block;
	margin-bottom: 18px;
	font-family: var(--f-mono);
	font-size: 11px;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Education — degree tickets on lilac
   -------------------------------------------------------------------------- */

.rs-edu__intro {
	margin-bottom: clamp(40px, 5vw, 80px);
}

.rs-degrees {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
}

.rs-degree {
	--stub: clamp(132px, 12vw, 190px);
	--notch: 15px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--stub);
	min-height: clamp(240px, 21vw, 300px);
	border-radius: 18px;
	background: var(--bone);
	color: var(--ink);
	transition: transform 0.6s var(--ease);
	/* Ticket notches where the stub tears off */
	-webkit-mask:
		radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
		radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
	mask:
		radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
		radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}

.rs-degree:hover {
	transform: translateY(-6px) rotate(-0.8deg);
}

.rs-degree__main {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(22px, 2.4vw, 36px);
}

.rs-degree__top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: auto;
	font-family: var(--f-mono);
	font-size: 12px;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--ink) 55%, transparent);
}

.rs-degree__type {
	padding-top: 28px;
	font-family: var(--f-mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--signal);
}

.rs-degree__school {
	font-size: clamp(30px, 3vw, 54px);
	line-height: 0.95;
	font-weight: 750;
	letter-spacing: -0.035em;
	font-variation-settings: "wdth" 84;
}

.rs-degree__school small {
	display: block;
	margin-top: 8px;
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 400;
	font-size: 0.56em;
	letter-spacing: -0.01em;
	font-variation-settings: normal;
}

.rs-degree__stub {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 12px;
	border-left: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent);
}

.rs-degree__score {
	display: flex;
	font-size: clamp(40px, 4vw, 70px);
	line-height: 0.9;
	font-weight: 800;
	letter-spacing: -0.04em;
	font-variation-settings: "wdth" 78;
	color: var(--ink);
}

.rs-degree__label {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--lilac);
	font-family: var(--f-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rs-certs {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 24px;
	margin-top: clamp(48px, 6vw, 96px);
}

.rs-certs ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.rs-certs li {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 22px;
	min-height: 150px;
	padding: 18px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--bone) 55%, transparent);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	transition: transform 0.5s var(--ease), background 0.3s;
}

.rs-certs li:hover {
	transform: translateY(-6px) rotate(-1.5deg);
	background: var(--bone);
}

.rs-certs li small {
	font-family: var(--f-mono);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--muted);
}

/* --------------------------------------------------------------------------
   Stack pit (physics). Each list in the pit is one chip style; main.js
   pours all the chips into one physics world.
   -------------------------------------------------------------------------- */

.rs-stackpit.rs-section {
	padding-bottom: 0;
}

.rs-stackpit__intro {
	margin-bottom: 0;
}

.rs-pit {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 40px 0 0;
	padding-bottom: 64px;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.rs-pit > .wp-block-list {
	display: contents;
}

.rs-pit.is-live,
.rs-pit.is-physics {
	display: block;
	height: clamp(420px, 58vh, 680px);
	margin: clamp(32px, 4vw, 64px) calc(var(--gutter) * -1) 0;
	padding: 0;
	overflow: hidden;
}

.rs-pit__items {
	position: absolute;
	inset: 0;
}

.rs-pit li {
	padding: 0.5em 1.05em 0.56em;
	border-radius: 999px;
	font-size: clamp(17px, 1.9vw, 32px);
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: -0.02em;
	white-space: nowrap;
	user-select: none;
	background: var(--bone);
	color: var(--ink);
}

.rs-pit__items li {
	position: absolute;
	left: 0;
	top: 0;
	will-change: transform;
}

.rs-js .rs-pit.is-physics:not(.is-live) .rs-pit__items li {
	visibility: hidden;
}

.rs-pit .is-style-chip-signal li,
.rs-pit li[data-v="signal"] {
	background: var(--signal);
}

.rs-pit .is-style-chip-lilac li,
.rs-pit li[data-v="lilac"] {
	background: var(--lilac);
}

.rs-pit .is-style-chip-outline li,
.rs-pit li[data-v="outline"] {
	background: transparent;
	color: var(--bone);
	box-shadow: inset 0 0 0 1.5px var(--bone);
}

.rs-pit .is-style-chip-big li,
.rs-pit li[data-v="big"] {
	font-size: clamp(28px, 3.8vw, 66px);
	font-weight: 800;
	letter-spacing: -0.04em;
	font-variation-settings: "wdth" 80;
	background: var(--signal);
}

.rs-pit .is-style-chip-round li,
.rs-pit li[data-v="round"] {
	display: grid;
	place-items: center;
	width: clamp(96px, 10vw, 160px);
	height: clamp(96px, 10vw, 160px);
	padding: 0;
	border-radius: 50%;
	background: var(--lilac);
	font-family: var(--f-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(24px, 2.4vw, 38px);
}

.rs-pit__hint {
	flex-basis: 100%;
	font-family: var(--f-mono);
	font-size: 12px;
	text-transform: uppercase;
	color: var(--muted);
	pointer-events: none;
}

.rs-pit.is-physics .rs-pit__hint {
	position: absolute;
	left: 50%;
	top: 24px;
	transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   Contact + footer
   -------------------------------------------------------------------------- */

.rs-contact.rs-section {
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-top: calc(var(--header-h) + 40px);
	padding-bottom: var(--gutter);
	clip-path: inset(0 0 0 0 round 0);
}

.rs-contact .rs-section-head {
	margin-bottom: 0;
	border-color: color-mix(in srgb, var(--ink) 25%, transparent);
}

.rs-contact .rs-eyebrow {
	color: color-mix(in srgb, var(--ink) 65%, transparent);
}

.rs-contact__title {
	font-size: clamp(64px, 12.5vw, 240px);
	line-height: 0.82;
	font-weight: 800;
	letter-spacing: -0.055em;
	font-variation-settings: "wdth" 76;
	margin-top: clamp(24px, 4vw, 64px);
}

.rs-contact__title em {
	font-weight: 400;
	letter-spacing: -0.03em;
}

.rs-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 40px;
	align-items: end;
	margin-top: clamp(40px, 5vw, 80px);
}

.rs-contact__lead {
	max-width: 46ch;
	font-size: clamp(18px, 1.5vw, 22px);
	line-height: 1.4;
	font-weight: 500;
}

.rs-contact__links {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: start;
	gap: 8px;
	margin-top: 28px;
}

.rs-contact__links a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 18px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1.5px var(--ink);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.3s, color 0.3s;
}

.rs-contact__links a:hover {
	background: var(--ink);
	color: var(--signal);
}

.rs-copy small {
	font-family: var(--f-mono);
	font-size: 11px;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--signal);
}

.rs-copy.is-copied small {
	background: #2fd36b;
	color: var(--ink);
}

.rs-cta-circle a {
	position: relative;
	display: grid;
	place-content: center;
	width: clamp(160px, 15vw, 240px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--ink);
	color: var(--bone);
	font-weight: 700;
	font-size: clamp(18px, 1.5vw, 22px);
	text-align: center;
	line-height: 1.1;
	overflow: hidden;
	isolation: isolate;
	transition: color 0.4s var(--ease);
}

.rs-cta-circle a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--bone);
	transform: scale(0);
	transition: transform 0.6s var(--ease);
	z-index: -1;
}

.rs-cta-circle a:hover::before {
	transform: scale(1);
}

.rs-cta-circle a:hover {
	color: var(--ink);
}

.rs-cta-circle small {
	display: block;
	margin-top: 6px;
	font-family: var(--f-mono);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	opacity: 0.6;
}

.rs-footer {
	position: relative;
	background: var(--ink);
	color: var(--bone);
	padding: clamp(40px, 6vw, 96px) var(--gutter) 22px;
	overflow: hidden;
}

.rs-footer__mark {
	display: flex;
	justify-content: space-between;
	font-size: var(--mark-size, 15vw);
	line-height: 0.78;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variation-settings: "wdth" 100;
	white-space: nowrap;
	user-select: none;
	color: transparent;
	-webkit-text-stroke: 1.5px color-mix(in srgb, var(--bone) 55%, transparent);
}

.rs-footer__mark .rs-k-char {
	transition: color 0.4s var(--ease), -webkit-text-stroke-color 0.4s;
}

.rs-footer__mark .rs-k-char:hover,
.rs-footer__mark .rs-k-char.is-lit {
	color: var(--signal);
	-webkit-text-stroke-color: var(--signal);
}

.rs-footer__row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: clamp(28px, 3vw, 48px);
	padding-top: 18px;
	border-top: 1px solid color-mix(in srgb, var(--bone) 16%, transparent);
	font-family: var(--f-mono);
	font-size: 12px;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--bone) 60%, transparent);
}

.rs-footer__row > :last-child {
	text-align: right;
}

.rs-footer__row a:hover {
	color: var(--signal);
}

/* --------------------------------------------------------------------------
   Regular pages, posts, blog list, 404
   -------------------------------------------------------------------------- */

.rs-page {
	min-height: 70vh;
	padding-bottom: clamp(80px, 10vw, 160px);
	background: var(--bone);
	color: var(--ink);
}

.rs-page__head {
	max-width: 1320px;
	margin: 0 auto;
	padding: calc(var(--admin-h) + var(--header-h) + clamp(48px, 8vw, 120px)) var(--gutter) clamp(32px, 4vw, 64px);
}

.rs-page__head .rs-h2 {
	max-width: 16ch;
}

.rs-page__head:has(.wp-block-query-title) .rs-page__fallback-title {
	display: none;
}

.rs-page__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-bottom: 24px;
}

.rs-page__meta a:hover {
	color: var(--signal);
}

.rs-page__image {
	max-width: 1320px;
	margin: 0 auto clamp(40px, 5vw, 72px);
	padding: 0 var(--gutter);
}

.rs-page__image img {
	width: 100%;
	border-radius: var(--radius);
}

.rs-prose {
	padding: 0 var(--gutter);
	font-size: 19px;
	line-height: 1.65;
}

.rs-prose > * + * {
	margin-block-start: 1.2em;
}

.rs-prose h2,
.rs-prose h3,
.rs-prose h4 {
	margin-block-start: 1.8em;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.rs-prose h2 {
	font-size: clamp(30px, 3vw, 44px);
}

.rs-prose h3 {
	font-size: clamp(24px, 2.2vw, 32px);
}

.rs-prose a {
	text-decoration: underline;
	text-decoration-color: var(--signal);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

.rs-prose ul,
.rs-prose ol {
	padding-left: 1.3em;
}

.rs-prose ul {
	list-style: disc;
}

.rs-prose ol {
	list-style: decimal;
}

.rs-prose li + li {
	margin-top: 0.4em;
}

.rs-prose blockquote {
	margin-inline: 0;
	padding-left: 24px;
	border-left: 3px solid var(--signal);
	font-family: var(--f-serif);
	font-size: 1.4em;
	line-height: 1.25;
}

.rs-prose figure img {
	border-radius: 10px;
}

.rs-prose .wp-element-caption {
	margin-top: 8px;
	color: var(--muted);
}

.rs-page__nav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	max-width: 760px;
	margin: clamp(56px, 7vw, 96px) auto 0;
	padding: 24px var(--gutter) 0;
	border-top: 1px solid var(--line);
	font-weight: 600;
}

.rs-page__nav a:hover {
	color: var(--signal);
}

.rs-posts {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.rs-posts__list {
	border-top: 1px solid var(--line);
}

.rs-posts__item {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: 8px 24px;
	padding: 28px 0;
	border-bottom: 1px solid var(--line);
}

.rs-posts__item > :not(.rs-eyebrow) {
	grid-column: 2;
}

.rs-posts__title {
	font-size: clamp(26px, 2.6vw, 44px);
	line-height: 1;
	letter-spacing: -0.03em;
}

.rs-posts__title a:hover {
	color: var(--signal);
}

.rs-posts__excerpt {
	max-width: 62ch;
	color: var(--muted);
}

.rs-posts__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

.rs-posts__pages {
	display: flex;
	gap: 16px;
	margin-top: 32px;
	font-family: var(--f-mono);
	font-size: 13px;
	text-transform: uppercase;
}

.rs-posts__empty {
	padding: 40px 0;
	color: var(--muted);
}

.rs-404 .rs-page__head {
	min-height: 80vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
}

.rs-404__title {
	font-size: clamp(56px, 10vw, 180px);
	line-height: 0.85;
	letter-spacing: -0.05em;
	font-weight: 800;
	font-variation-settings: "wdth" 78;
}

.rs-404__title em {
	color: var(--signal);
	font-weight: 400;
}

.rs-404__text {
	max-width: 44ch;
	font-size: 18px;
	color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
	.rs-status {
		display: none;
	}
}

@media (max-width: 1100px) {
	.rs-nav.wp-block-navigation {
		display: none;
	}

	.rs-header {
		grid-template-columns: 1fr auto;
	}

	.rs-kpis {
		grid-template-columns: 1fr 1fr;
	}

	.rs-kpi:nth-child(2) {
		border-right: 0;
	}

	.rs-kpi:nth-child(3) {
		padding-left: 0;
	}

	.rs-kpi:nth-child(n + 3) {
		border-top: 1px solid var(--line);
	}

	.rs-footnotes {
		grid-template-columns: 1fr 1fr;
	}

	.rs-exp__row summary {
		grid-template-columns: 120px minmax(0, 1fr) 40px;
	}

	.rs-exp__role,
	.rs-exp__loc {
		display: none;
	}

	.rs-exp__detail,
	.rs-certs {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.rs-certs ul {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	:root {
		--header-h: 64px;
	}

	.rs-hud {
		display: none;
	}

	.rs-hero {
		--portrait-w: 100%;
		grid-template-rows: auto auto auto;
		padding-bottom: 40px;
	}

	.rs-hero__meta {
		grid-template-columns: 1fr 1fr;
	}

	.rs-hero__meta > :nth-child(2) {
		display: none;
	}

	.rs-hero__name {
		order: 2;
		flex-direction: column;
		align-items: stretch;
		margin-top: 28px;
		line-height: 0.82;
	}

	.rs-hero__name .rs-k-word {
		justify-content: space-between;
	}

	.rs-hero__body {
		order: 3;
		display: flex;
		flex-direction: column;
		gap: 0;
		padding-top: 28px;
	}

	.rs-hero__lede {
		max-width: none;
		font-size: clamp(30px, 8.6vw, 54px);
	}

	.rs-hero__visual {
		order: 2;
		width: 100%;
		max-width: 520px;
		margin: 56px 0 0;
	}

	.rs-hero__portrait.wp-block-image {
		aspect-ratio: 4 / 5;
	}

	.rs-hero__portrait figcaption {
		right: auto;
		left: 0;
		bottom: auto;
		top: calc(100% + 8px);
	}

	.rs-hero__aside {
		order: 3;
		flex-direction: column;
		align-items: flex-start;
		padding: 48px 0 0;
	}

	.rs-badge {
		left: auto;
		right: -6px;
		top: -48px;
		width: 104px;
	}

	.rs-about__grid,
	.rs-proof__intro,
	.rs-playbook__intro,
	.rs-stackpit__intro,
	.rs-freelance__intro,
	.rs-edu__intro,
	.rs-recover__copy {
		grid-template-columns: 1fr;
	}

	.rs-recover__copy p:not(.rs-eyebrow) {
		margin-top: 16px;
	}

	.rs-about__photo.wp-block-image {
		max-width: 420px;
	}

	.rs-chart__plot {
		margin-left: 44px;
		height: 300px;
	}

	.rs-chart__ylabels {
		left: -44px;
		width: 38px;
	}

	.rs-chart__xlabels {
		margin-left: 44px;
	}

	.rs-chart__card b {
		font-size: 24px;
	}

	.rs-chart__card {
		padding: 8px 10px;
	}

	.rs-chart__pt--now .rs-chart__card {
		left: auto;
		right: -12px;
	}

	.rs-work__pin {
		height: auto;
		padding-top: clamp(80px, 12vw, 120px);
		padding-bottom: 56px;
	}

	.rs-work__track {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		padding-bottom: 8px;
	}

	.rs-work__track::-webkit-scrollbar {
		display: none;
	}

	.rs-work__meta {
		display: none;
	}

	.rs-case {
		width: 86vw;
		height: auto;
		scroll-snap-align: center;
	}

	.rs-case__main {
		grid-template-columns: 1fr;
	}

	.rs-case__visual {
		height: 260px;
		order: -1;
	}

	.rs-case__stats {
		margin-top: 24px;
	}

	.rs-sites,
	.rs-degrees {
		grid-template-columns: 1fr;
	}

	.rs-stack__card {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.rs-stack__title {
		font-size: min(15vw, 120px);
	}

	.rs-stack__left {
		gap: 24px;
	}

	.rs-exp__row summary {
		grid-template-columns: 1fr 36px;
		gap: 6px 16px;
	}

	.rs-exp__years {
		grid-column: 1;
		grid-row: 1;
	}

	.rs-exp__co {
		grid-column: 1;
		grid-row: 2;
	}

	.rs-exp__icon {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.rs-exp__detail,
	.rs-certs {
		grid-template-columns: 1fr;
	}

	.rs-exp__detail > * {
		grid-column: 1;
	}

	.rs-exp__row ul {
		grid-template-columns: 1fr;
	}

	.rs-contact__grid {
		grid-template-columns: 1fr;
	}

	.rs-contact__links {
		grid-template-columns: 1fr;
	}

	.rs-contact__links a {
		display: flex;
		justify-content: space-between;
	}

	.rs-footer__row {
		grid-template-columns: 1fr 1fr;
	}

	.rs-footer__row > :nth-child(3) {
		text-align: left;
	}

	.rs-posts__item {
		grid-template-columns: 1fr;
	}

	.rs-posts__item > :not(.rs-eyebrow) {
		grid-column: 1;
	}
}

@media (max-width: 600px) {
	.rs-kpis,
	.rs-footnotes {
		grid-template-columns: 1fr;
	}

	.rs-kpi,
	.rs-kpi + .rs-kpi {
		padding-left: 0;
		border-right: 0;
		border-top: 1px solid var(--line);
	}

	.rs-facts li {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.rs-certs ul {
		grid-template-columns: 1fr;
	}

	.rs-certs li {
		min-height: 0;
	}

	.rs-case__stats {
		grid-template-columns: 1fr 1fr;
	}

	.rs-section-head > :last-child {
		display: none;
	}

	.rs-freelance__stats li + li {
		padding-left: 10px;
	}

	.rs-degree {
		--stub: 108px;
	}
}

@media (max-width: 480px) {
	.rs-header .wp-block-buttons {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.rs-grain {
		display: none;
	}
}
