/* ==========================================================================
   Real Demand
   Paper, ink and cobalt paint. Jost for the brand voice, Newsreader for reading.
   ========================================================================== */

@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	--paper: #e6e9ec;
	--paper-2: #dadfe3;
	--card: #f6f7f9;
	--ink: #0d1321;
	--ink-2: #434c60;
	--line: rgba(13, 19, 33, 0.16);
	--line-strong: rgba(13, 19, 33, 0.5);
	--cobalt: #5271ff;
	--cobalt-ink: #2f49d1;
	--deep: #16277a;
	--night: #0b1020;
	--btn-bg: var(--cobalt-ink);
	--btn-fg: #ffffff;
	--ok: #17603a;
	--err: #a8231c;

	--display: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
	--read: "Newsreader", "Iowan Old Style", Georgia, serif;

	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--head-h: 5.25rem;
	--ease: cubic-bezier(0.22, 0.7, 0.2, 1);
	--track: 0.16em;
}

html[data-theme="dark"] {
	--paper: #0b1020;
	--paper-2: #111831;
	--card: #151d38;
	--ink: #eef0f3;
	--ink-2: #b1b9cc;
	--line: rgba(238, 240, 243, 0.18);
	--line-strong: rgba(238, 240, 243, 0.55);
	--btn-fg: #0b1020;
	--ok: #7bdcA5;
	--err: #ffb0a8;
	color-scheme: dark;
}

html[data-contrast="high"] { --paper: #ffffff; --paper-2: #ffffff; --card: #ffffff; --ink: #000000; --ink-2: #1a1a1a; --line: #000000; --line-strong: #000000; --cobalt-ink: #1b2fa6; }
html[data-contrast="high"][data-theme="dark"] { --paper: #000000; --paper-2: #000000; --card: #000000; --ink: #ffffff; --ink-2: #ececec; --line: #ffffff; --line-strong: #ffffff; --cobalt-ink: #bcc8ff; }

html[data-text="s"] { font-size: 93.75%; }
html[data-text="l"] { font-size: 112.5%; }
html[data-text="xl"] { font-size: 125%; }

html[data-font="easy"] { --display: "Atkinson Hyperlegible", Verdana, sans-serif; --read: "Atkinson Hyperlegible", Verdana, sans-serif; --track: 0.06em; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 1rem); }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--display);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }

a { color: var(--cobalt-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
html[data-links="underline"] a:not(.btn) { text-decoration: underline; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--cobalt); color: #fff; }

:focus-visible { outline: 2px solid var(--cobalt-ink); outline-offset: 3px; }
.site-main:focus { outline: none; }

[hidden] { display: none !important; }

.sr-only, .hp {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed; top: 0.75rem; left: 0.75rem; z-index: 1000;
	padding: 0.75rem 1.1rem;
	background: var(--ink); color: var(--paper);
	text-decoration: none;
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--paper); }

.wrap { width: min(78rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--read { width: min(46rem, 100% - 2 * var(--gutter)); }

.icon { flex: none; }

/* ---------- Buttons and links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 3.25rem;
	padding: 0.9rem 2.1rem;
	border: 1px solid var(--btn-bg);
	border-radius: 0;
	background: var(--btn-bg); color: var(--btn-fg);
	font-family: var(--display); font-size: 0.8125rem; font-weight: 500;
	letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn--small { min-height: 2.75rem; padding: 0.6rem 1.25rem; font-size: 0.75rem; letter-spacing: 0.14em; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: #fff; border-color: #fff; color: var(--deep); }
.btn--light:hover { background: transparent; border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

.textlink {
	display: inline-block;
	color: var(--ink);
	font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
	padding-bottom: 0.35rem;
	background: linear-gradient(var(--cobalt), var(--cobalt)) left bottom / 100% 2px no-repeat;
	transition: background-size 0.35s var(--ease);
}
.textlink:hover { background-size: 35% 2px; color: var(--ink); }

.linklike { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.linklike:hover { color: var(--cobalt-ink); }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 2.75rem; height: 2.75rem;
	border: 0; border-radius: 50%;
	background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--line); }
.icon-btn--solid { background: var(--btn-bg); color: var(--btn-fg); }
.icon-btn--solid:hover { background: var(--ink); color: var(--paper); }

.meta-sep { display: inline-block; width: 1.1em; height: 1px; margin: 0 0.6em; background: currentColor; vertical-align: middle; opacity: 0.6; }

/* ---------- Header ---------- */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--head-h); }
.site-head::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	opacity: 0;
	transition: opacity 0.3s;
}
.site-head.is-stuck::before { opacity: 0.94; }
.site-head__in { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); height: 100%; }

.brand { display: flex; align-items: center; }
.brand a { display: block; }
.brand img, .brand .custom-logo { width: auto; height: 3.5rem; }
html[data-theme="dark"] .brand img { filter: invert(1) hue-rotate(180deg) brightness(1.35); }
.brand__word { color: var(--ink); font-size: 1.05rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; }

.site-nav .menu { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); list-style: none; }
.site-nav a {
	display: block; padding: 0.6rem 0;
	color: var(--ink);
	font-size: 0.8125rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; text-decoration: none;
	background: linear-gradient(var(--cobalt), var(--cobalt)) left calc(100% - 0.3rem) / 0 2px no-repeat;
	transition: background-size 0.35s var(--ease);
}
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current_page_parent > a { background-size: 100% 2px; color: var(--ink); }

.nav-toggle { display: none; align-items: center; gap: 0.75rem; min-height: 2.75rem; margin-left: auto; padding: 0 0.9rem; border: 0; background: var(--paper); color: var(--ink); }
.nav-toggle__label { font-size: 0.8125rem; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; }
.nav-toggle__bars { position: relative; width: 1.6rem; height: 0.6rem; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: calc(100% - 2px); }
.nav-open .nav-toggle__bars::before { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { top: calc(50% - 1px); transform: rotate(-45deg); }

@media (max-width: 68.74rem) {
	.nav-toggle { display: inline-flex; position: relative; z-index: 2; }
	.brand { position: relative; z-index: 2; }
	.site-nav {
		position: fixed; inset: 0; z-index: 1;
		display: flex; align-items: flex-end;
		padding: calc(var(--head-h) + 1rem) var(--gutter) 3rem;
		background: var(--paper);
		overflow-y: auto;
		visibility: hidden; opacity: 0;
		transition: opacity 0.3s, visibility 0s 0.3s;
	}
	.nav-open .site-nav { visibility: visible; opacity: 1; transition: opacity 0.3s; }
	.site-nav .menu { flex-direction: column; gap: 0; width: 100%; }
	.site-nav li { border-top: 1px solid var(--line); }
	.site-nav a { padding: 1.1rem 0; font-size: clamp(1.6rem, 8vw, 2.6rem); font-weight: 300; letter-spacing: 0.08em; background-position: left calc(100% - 0.9rem); }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate;
	display: flex; align-items: center;
	min-height: 100vh; min-height: 100svh;
	padding: calc(var(--head-h) + 2rem) 0 4rem;
	overflow: hidden;
}
.hero__paint {
	position: absolute; inset: 0; z-index: -1;
	-webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent);
	mask-image: linear-gradient(to bottom, #000 86%, transparent);
}
.hero__still, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__still { object-fit: cover; object-position: 78% center; transition: opacity 0.8s; }
.hero__canvas { opacity: 0; transition: opacity 0.6s; }
html.js .hero[data-live="1"]:not(.is-static) .hero__still { opacity: 0; }
.hero.is-live .hero__canvas { opacity: 1; }
.hero.is-live .hero__paint { -webkit-mask-image: none; mask-image: none; }
.hero.is-static .hero__canvas { display: none; }
.hero--bare .hero__paint { background: radial-gradient(120% 90% at 100% 0%, var(--deep), var(--cobalt) 38%, transparent 62%); }

/* Without the shader in the dark theme, flip the still image's lightness so the paper goes dark. */
html[data-theme="dark"] .hero.is-static .hero__still { filter: invert(1) hue-rotate(180deg); }

.hero__in { position: relative; }
.hero__title {
	font-size: clamp(3.1rem, 9.4vw, 9.25rem);
	font-weight: 400; line-height: 0.98;
	letter-spacing: 0.1em; text-transform: uppercase;
	margin-left: -0.04em;
}
.hero__word { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__word > span { display: block; }
.hero__tag {
	margin-top: clamp(1.25rem, 2.5vw, 2rem);
	font-size: clamp(1.05rem, 2.3vw, 1.9rem); font-weight: 300;
	letter-spacing: 0.3em; text-transform: uppercase;
}
.hero__text { max-width: 27rem; margin-top: 1.5rem; color: var(--ink-2); font-family: var(--read); font-size: 1.25rem; line-height: 1.5; }
.hero__btn { margin-top: 2.25rem; }

@media (prefers-reduced-motion: no-preference) {
	html.js:not([data-motion="reduce"]) .hero__word > span { transform: translateY(105%); animation: rd-rise 1.1s var(--ease) forwards; animation-delay: calc(0.15s + var(--i) * 0.14s); }
	html.js:not([data-motion="reduce"]) .hero__tag, html.js:not([data-motion="reduce"]) .hero__text, html.js:not([data-motion="reduce"]) .hero__btn { opacity: 0; animation: rd-fade 1s ease forwards; animation-delay: 0.75s; }
	html.js:not([data-motion="reduce"]) .hero__text { animation-delay: 0.9s; }
	html.js:not([data-motion="reduce"]) .hero__btn { animation-delay: 1.05s; }
}
@keyframes rd-rise { to { transform: none; } }
@keyframes rd-fade { to { opacity: 1; } }

@media (max-width: 47.99rem), (max-aspect-ratio: 1/1) {
	.hero { align-items: flex-start; padding-top: calc(var(--head-h) + 2.5rem); padding-bottom: 50vh; padding-bottom: 50svh; }
	.hero__paint {
		top: auto; height: 50%;
		-webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%, #000 90%, transparent);
		mask-image: linear-gradient(to bottom, transparent, #000 38%, #000 90%, transparent);
	}
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4.5rem, 10vw, 8rem); }
.section--rule { border-top: 1px solid var(--line); }
.section__title { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; line-height: 1.3; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.twocol { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
@media (max-width: 47.99rem) { .twocol { grid-template-columns: 1fr; } }

/* Services on the home page */
.services .section__title { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.svc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.svc__list { list-style: none; border-bottom: 1px solid var(--line); }
.svc__row {
	display: block;
	padding: clamp(1.5rem, 3vw, 2.5rem) 0;
	border-top: 1px solid var(--line);
	color: var(--ink-2); text-decoration: none;
	transition: color 0.3s;
}
.svc__name {
	display: block;
	font-size: clamp(2rem, 5.2vw, 4.5rem); font-weight: 300; line-height: 1.05;
	letter-spacing: 0.04em; text-transform: uppercase;
	transition: transform 0.5s var(--ease);
}
.svc__text { display: block; max-width: 34rem; margin-top: 0.9rem; font-family: var(--read); font-size: 1.1875rem; line-height: 1.5; }
.svc__row.is-active, .svc__row:hover, .svc__row:focus-visible { color: var(--ink); }
.svc__row.is-active .svc__name { transform: translateX(0.35em); }
.svc__inline { display: none; }
.svc__stage { position: sticky; top: calc(var(--head-h) + 2rem); aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.svc__stage img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.8s var(--ease);
}
.svc__stage img.is-active { clip-path: inset(0); z-index: 1; }
.svc__stage img.was-active { clip-path: inset(0); }

@media (max-width: 53.99rem) {
	.svc { grid-template-columns: 1fr; }
	.svc__stage { display: none; }
	.svc__row { color: var(--ink); }
	.svc__row.is-active .svc__name { transform: none; }
	.svc__inline { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 1.5rem; }
}

/* About statement */
.about { border-top: 1px solid var(--line); }
.about__in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.statement { font-family: var(--read); font-size: clamp(1.6rem, 3.3vw, 3rem); line-height: 1.24; letter-spacing: -0.01em; margin-bottom: 2.5rem; }
.statement .w { color: color-mix(in srgb, var(--ink) 52%, var(--paper)); transition: color 0.4s; }
.statement .w.is-on { color: var(--ink); }
@media (max-width: 47.99rem) { .about__in { grid-template-columns: 1fr; } }

/* ---------- Articles ---------- */
.latest { border-top: 1px solid var(--line); }
.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 61.99rem) { .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 37.99rem) { .agrid { grid-template-columns: 1fr; } }

.acard { position: relative; display: flex; flex-direction: column; }
.acard__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.acard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.acard:hover .acard__media img { transform: scale(1.04); }
.acard__blank { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--paper-2) 40%, var(--cobalt) 40% 41%, var(--deep) 41%); }
.acard__body { padding-top: 1.25rem; }
.acard__meta { color: var(--ink-2); font-size: 0.875rem; }
.acard__meta a { position: relative; z-index: 1; color: inherit; }
.acard__title { margin-top: 0.6rem; font-size: 1.5rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.005em; }
.acard__title a { color: var(--ink); text-decoration: none; }
.acard__title a::after { content: ""; position: absolute; inset: 0; }
.acard:hover .acard__title a { text-decoration: underline; text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; }
.acard__excerpt { margin-top: 0.6rem; color: var(--ink-2); font-family: var(--read); font-size: 1.125rem; line-height: 1.5; }

.acard--lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.acard--lead .acard__media { aspect-ratio: 16 / 10; }
.acard--lead .acard__body { padding-top: 0; }
.acard--lead .acard__title { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; }
.acard--lead .acard__excerpt { font-size: 1.25rem; }
@media (max-width: 47.99rem) { .acard--lead { grid-template-columns: 1fr; } }

.afilter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.afilter__list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.afilter__list a { display: block; padding: 0.5rem 1rem; border: 1px solid var(--line-strong); color: var(--ink); font-size: 0.875rem; text-decoration: none; }
.afilter__list a:hover { border-color: var(--ink); }
.afilter__list a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.search { display: flex; align-items: center; min-width: min(18rem, 100%); border-bottom: 1px solid var(--line-strong); }
.search input[type="search"] { flex: 1; min-width: 0; padding: 0.6rem 0; border: 0; background: transparent; outline-offset: 6px; }
.search input::placeholder { color: var(--ink-2); opacity: 1; }

.empty { max-width: 34rem; font-family: var(--read); font-size: 1.375rem; line-height: 1.45; }

.pagination { margin-top: clamp(3rem, 6vw, 5rem); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.9rem; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination a.page-numbers:hover { border-color: var(--ink); }

/* ---------- Page heads ---------- */
.phead { padding: calc(var(--head-h) + clamp(3.5rem, 9vw, 7rem)) 0 clamp(2rem, 5vw, 4rem); }
.phead__title { max-width: 18ch; font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 300; line-height: 1.02; letter-spacing: 0.06em; text-transform: uppercase; overflow-wrap: anywhere; }
.phead__lede { max-width: 44rem; margin-top: 1.75rem; color: var(--ink-2); font-family: var(--read); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; }
.phead__crumb { margin-bottom: 1.25rem; font-size: 0.875rem; }
.phead__crumb a { color: var(--ink-2); }
.phead__crumb a:hover { color: var(--ink); }
.phead--center { min-height: 80vh; display: grid; align-items: center; }

.band-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- Single article ---------- */
.read-progress { position: fixed; inset: 0 0 auto 0; z-index: 110; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--cobalt); transform: scaleX(0); transform-origin: left; }

.article__head { padding: calc(var(--head-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2rem, 4vw, 3rem); }
.article__title { font-size: clamp(2.25rem, 5.4vw, 4.25rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.article__lede { margin-top: 1.5rem; color: var(--ink-2); font-family: var(--read); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.45; }
.article__meta { margin-top: 1.75rem; color: var(--ink-2); font-size: 0.9375rem; }
.article__cover { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__cover figcaption { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.875rem; }

.article__layout { display: grid; grid-template-columns: minmax(0, 46rem); justify-content: center; padding-bottom: clamp(4rem, 8vw, 7rem); }
.article__layout.has-toc { grid-template-columns: minmax(12rem, 1fr) minmax(0, 46rem) minmax(0, 1fr); gap: 0; justify-content: stretch; }
.toc { position: sticky; top: calc(var(--head-h) + 1.5rem); align-self: start; max-width: 13rem; max-height: calc(100vh - var(--head-h) - 3rem); padding-right: 1.5rem; overflow-y: auto; }
.toc__title { margin-bottom: 0.9rem; font-size: 0.875rem; font-weight: 500; }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; margin-left: -1px; padding: 0.4rem 0 0.4rem 1rem; border-left: 2px solid transparent; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { border-left-color: var(--cobalt); color: var(--ink); }
@media (max-width: 74.99rem) {
	.article__layout.has-toc { grid-template-columns: minmax(0, 46rem); justify-content: center; }
	.toc { position: static; max-width: none; max-height: none; margin-bottom: 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); }
}

.prose { font-family: var(--read); font-size: 1.25rem; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.4em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); line-height: 1.2; letter-spacing: -0.01em; }
.prose h2 { margin-top: 2.2em; font-size: 1.75rem; font-weight: 500; }
.prose h3 { margin-top: 1.9em; font-size: 1.375rem; font-weight: 500; }
.prose h4 { margin-top: 1.6em; font-size: 1.125rem; font-weight: 600; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--cobalt-ink); }
.prose a { text-decoration: underline; }
.prose strong { font-weight: 650; }
.prose blockquote { padding-left: 1.5rem; border-left: 3px solid var(--cobalt); font-size: 1.5rem; font-style: italic; line-height: 1.4; }
.prose blockquote cite { display: block; margin-top: 0.75rem; color: var(--ink-2); font-family: var(--display); font-size: 0.9375rem; font-style: normal; }
.prose figure { margin-block: 2.2em; }
.prose figcaption { margin-top: 0.6rem; color: var(--ink-2); font-family: var(--display); font-size: 0.875rem; }
.prose img { width: 100%; }
.prose hr { margin-block: 2.5em; border: 0; border-top: 1px solid var(--line); }
.prose code { padding: 0.1em 0.35em; background: var(--paper-2); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85em; }
.prose pre { padding: 1.25rem; background: var(--night); color: #eef0f3; font-size: 0.95rem; line-height: 1.55; overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: 1rem; }
.prose th, .prose td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose .wp-block-table { overflow-x: auto; }
.prose .alignwide { width: min(62rem, 100vw - 2 * var(--gutter)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.has-toc .prose .alignwide { width: 100%; margin-left: 0; transform: none; }
.prose .wp-block-button__link { border-radius: 0; background: var(--btn-bg); color: var(--btn-fg); font-family: var(--display); text-decoration: none; }
.prose--page { font-size: 1.1875rem; }
.prose--large { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.55; }
.prose--story { font-size: 1.25rem; }

.article__foot { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 2rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.tags a { display: block; padding: 0.35rem 0.8rem; border: 1px solid var(--line-strong); color: var(--ink); font-size: 0.875rem; text-decoration: none; }
.tags a:hover { border-color: var(--ink); }
.share__label { margin-bottom: 0.6rem; font-weight: 500; }
.share ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; list-style: none; }
.share a, .share button { color: var(--ink); }
.byline { display: flex; gap: 1.25rem; align-items: flex-start; }
.byline__img { flex: none; border-radius: 50%; }
.byline__name { font-weight: 500; }
.byline p + p { margin-top: 0.25rem; color: var(--ink-2); }
.related { border-top: 1px solid var(--line); }
.page-links { margin-top: 2rem; display: flex; gap: 0.75rem; }

/* ---------- Services page ---------- */
.svc-full__item { padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.svc-full__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.svc-full__item.is-flipped .svc-full__media { order: 2; }
.svc-full__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.svc-full__title { margin-bottom: 1.5rem; font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 300; line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; }
.svc-full__body .btn { margin-top: 2.25rem; }
@media (max-width: 47.99rem) {
	.svc-full__in { grid-template-columns: 1fr; }
	.svc-full__item.is-flipped .svc-full__media { order: 0; }
	.svc-full__media img { aspect-ratio: 16 / 11; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.contact__details dt { margin-top: 1.75rem; color: var(--ink-2); font-size: 0.875rem; }
.contact__details dt:first-child { margin-top: 0; }
.contact__details dd { margin-top: 0.25rem; font-size: 1.25rem; line-height: 1.45; }
.contact__details a { color: var(--ink); }
@media (max-width: 47.99rem) { .contact { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.stack { display: grid; gap: 1.25rem; }
.stack .btn { justify-self: start; }
.field { display: grid; gap: 0.45rem; }
.field > span { font-size: 0.9375rem; font-weight: 500; }
.field input, .field textarea {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 1px solid var(--line-strong); border-radius: 0;
	background: var(--card); color: var(--ink);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--cobalt-ink); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-note { color: var(--ink-2); font-size: 0.9375rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.9375rem; line-height: 1.45; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--cobalt-ink); }
.form-msg { min-height: 1.5em; font-size: 0.9375rem; font-weight: 500; }
.form-msg:empty { min-height: 0; }
.form-msg.is-ok { color: var(--ok); }
.form-msg.is-err { color: var(--err); }

/* ---------- Talk to us band ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: #fff; }
.cta__paint { position: absolute; inset: 0; z-index: -1; background: center right / cover no-repeat; mix-blend-mode: multiply; opacity: 0.9; transform: scaleX(-1); }
.cta__in { padding-block: clamp(5rem, 12vw, 10rem); display: grid; justify-items: end; text-align: right; }
.cta__title { font-size: clamp(2.5rem, 8vw, 7rem); font-weight: 300; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.cta__text { max-width: 32rem; margin: 1.75rem 0 2.5rem; font-family: var(--read); font-size: 1.3125rem; line-height: 1.5; }
.cta :focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: #eef0f3; padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; }
html[data-contrast="high"] .site-foot { background: #000; border-top: 1px solid #fff; }
.site-foot a { color: #eef0f3; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot :focus-visible { outline-color: #fff; }
.site-foot__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: end; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid rgba(238, 240, 243, 0.2); }
.site-foot__word { font-size: clamp(2.75rem, 7.2vw, 6.75rem); font-weight: 300; line-height: 0.95; letter-spacing: 0.1em; text-transform: uppercase; }
.foot-news__title { margin-bottom: 1rem; font-size: 1.25rem; font-weight: 400; }
.foot-news__row { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.foot-news input[type="email"] { flex: 1; min-width: 0; padding: 0.9rem 1rem; border: 1px solid rgba(238, 240, 243, 0.55); border-radius: 0; background: transparent; color: #fff; }
.foot-news input::placeholder { color: #c2c9d8; opacity: 1; }
.foot-news .check { color: #d5dae5; }
.foot-news .check input { accent-color: #9db0ff; }
.foot-news .form-msg { margin-top: 0.75rem; }
.foot-news .form-msg.is-ok { color: #8fe0b2; }
.foot-news .form-msg.is-err { color: #ffb4ac; }
.site-foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: clamp(2rem, 4vw, 3rem); }
.foot-menu { list-style: none; display: grid; gap: 0.5rem; }
.site-foot__contact { display: grid; gap: 0.5rem; justify-items: start; font-style: normal; }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(238, 240, 243, 0.2); color: #c2c9d8; font-size: 0.875rem; }
.site-foot__base ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; }
.site-foot__base a, .site-foot__base .linklike { color: #c2c9d8; text-decoration: none; }
.site-foot__base a:hover, .site-foot__base .linklike:hover { color: #fff; text-decoration: underline; }
@media (max-width: 47.99rem) {
	.site-foot__top { grid-template-columns: 1fr; }
	.site-foot__cols { grid-template-columns: 1fr; }
	.foot-news__row { flex-direction: column; }
}

/* ---------- Dock: back to top and assistant ---------- */
.dock { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.dock__btn { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(11, 16, 32, 0.45); transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s; }
.dock__btn:hover { transform: translateY(-2px); }
.dock__btn--top { width: 2.75rem; height: 2.75rem; }
.dock__btn--chat { border-color: var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); }
.dock__btn--chat .icon { width: 1.5rem; height: 1.5rem; }

/* ---------- Assistant ---------- */
.chat {
	position: fixed; right: 1.25rem; bottom: 5.25rem; z-index: 130;
	display: flex; flex-direction: column;
	width: min(24rem, 100vw - 2.5rem); height: min(36rem, 100vh - 7rem); height: min(36rem, 100dvh - 7rem);
	background: var(--card); color: var(--ink);
	border: 1px solid var(--line-strong);
	box-shadow: 0 30px 80px -30px rgba(11, 16, 32, 0.6);
	animation: rd-pop 0.3s var(--ease);
}
@keyframes rd-pop { from { opacity: 0; transform: translateY(12px); } }
.chat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 0.75rem 0.9rem 1.25rem; border-bottom: 1px solid var(--line); }
.chat__title { font-size: 1.0625rem; font-weight: 500; }
.chat__note { color: var(--ink-2); font-size: 0.8125rem; }
.chat__log { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; overscroll-behavior: contain; }
.chat__msg { max-width: 88%; padding: 0.7rem 0.95rem; font-size: 0.9688rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat__msg--bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); }
.chat__msg--user { align-self: flex-end; background: var(--btn-bg); color: var(--btn-fg); }
.chat__msg--user a { color: inherit; }
.chat__msg--error { align-self: stretch; max-width: none; border: 1px solid var(--err); color: var(--err); background: transparent; }
.chat__typing { align-self: flex-start; display: flex; gap: 0.3rem; padding: 0.9rem 1rem; background: var(--paper); border: 1px solid var(--line); }
.chat__typing i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--ink-2); animation: rd-blink 1.2s infinite; }
.chat__typing i:nth-child(2) { animation-delay: 0.2s; }
.chat__typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes rd-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat__starters { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1.25rem 0.9rem; }
.chat__starters button { padding: 0.45rem 0.8rem; border: 1px solid var(--line-strong); background: transparent; font-size: 0.875rem; text-align: left; }
.chat__starters button:hover { border-color: var(--ink); background: var(--paper); }
.chat__form { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.75rem 0.75rem 0.75rem 1.25rem; border-top: 1px solid var(--line); }
.chat__form textarea { flex: 1; min-width: 0; max-height: 7.5rem; padding: 0.65rem 0; border: 0; background: transparent; resize: none; line-height: 1.45; }
.chat__form textarea:focus-visible { outline-offset: 6px; }
.chat__foot { padding: 0 1.25rem 0.9rem; color: var(--ink-2); font-size: 0.75rem; line-height: 1.45; }
.chat__foot a { color: inherit; }
@media (max-width: 37.99rem) {
	.chat { inset: 0; width: auto; height: auto; border: 0; }
}

/* ---------- Cookie choice ---------- */
.has-consent .dock { display: none; }
.consent { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 140; width: min(23rem, 100vw - 2.5rem); padding: 1.25rem 1.4rem 1.4rem; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px rgba(11, 16, 32, 0.6); animation: rd-pop 0.4s var(--ease); }
.consent__title { margin-bottom: 0.4rem; font-size: 1rem; font-weight: 500; }
.consent p { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1.1rem; }
@media (max-width: 37.99rem) {
	.consent { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; }
}

/* ---------- Newsletter invitation ---------- */
.invite { width: min(32rem, 100vw - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; background: var(--card); color: var(--ink); overflow: auto; box-shadow: 0 40px 120px -40px rgba(11, 16, 32, 0.8); }
.invite::backdrop { background: rgba(11, 16, 32, 0.6); }
.invite[open] { animation: rd-pop 0.4s var(--ease); }
.invite__close { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 1; }
.invite__close .icon-btn { background: var(--card); }
.invite__paint { height: 7.5rem; background: var(--deep) linear-gradient(115deg, var(--deep) 0 46%, var(--cobalt) 46% 47%, #dadfe3 47%); }
.invite__body { padding: clamp(1.5rem, 5vw, 2.5rem); }
.invite__title { margin-bottom: 0.6rem; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
.invite__body > p { margin-bottom: 1.5rem; color: var(--ink-2); font-family: var(--read); font-size: 1.1875rem; line-height: 1.5; }

/* ---------- Your view ----------
   Deliberately grey and plain. It is the one place a visitor adjusts the site
   itself, so it reads like a setting, not a feature.
   © Real Demand Global Marketers Incorporated. All rights reserved. */
.yv {
	--yv-bg: #f3f3f4; --yv-surface: #e4e4e7; --yv-hover: #d9d9dd; --yv-line: rgba(0, 0, 0, 0.14);
	--yv-text: #1d1d1f; --yv-muted: #55555b; --yv-on: #1d1d1f; --yv-on-text: #ffffff; --yv-track: #8a8a91;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[data-theme="dark"] .yv {
	--yv-bg: #1c1d1f; --yv-surface: #2a2b2e; --yv-hover: #36373b; --yv-line: rgba(255, 255, 255, 0.16);
	--yv-text: #ececee; --yv-muted: #b3b4ba; --yv-on: #ececee; --yv-on-text: #18191b; --yv-track: #77787f;
}
.yv__tab {
	position: fixed; left: 0; top: 50%; z-index: 125;
	display: flex; align-items: center; gap: 0.5rem;
	padding: 0.85rem 0.55rem;
	border: 1px solid var(--yv-line); border-left: 0; border-radius: 0 10px 10px 0;
	background: var(--yv-bg); color: var(--yv-text);
	font-size: 0.8125rem; font-weight: 600; line-height: 1;
	writing-mode: vertical-rl;
	transform: translateY(-50%);
	box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}
.yv__tab .icon { width: 1.15rem; height: 1.15rem; }
.yv__tab:hover { background: var(--yv-hover); }
.yv__tab:focus-visible, .yv__panel :focus-visible { outline: 2px solid var(--yv-text); outline-offset: 2px; }
.yv__panel {
	position: fixed; left: 3.1rem; top: 50%; z-index: 126;
	width: min(19rem, 100vw - 4rem); max-height: calc(100dvh - 2rem);
	overflow-y: auto;
	padding: 1rem;
	border: 1px solid var(--yv-line); border-radius: 14px;
	background: var(--yv-bg); color: var(--yv-text);
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
	font-size: 0.875rem; line-height: 1.4;
	transform: translateY(-50%);
}
.yv__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.85rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--yv-line); }
.yv__title { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.yv__sub { margin-top: 0.15rem; color: var(--yv-muted); font-size: 0.78rem; }
.yv__close { display: grid; place-items: center; width: 2rem; height: 2rem; margin: -0.25rem -0.25rem 0 0; border: 0; border-radius: 8px; background: transparent; color: var(--yv-text); }
.yv__close:hover { background: var(--yv-hover); }
.yv__group { margin-bottom: 0.9rem; }
.yv__label { margin-bottom: 0.4rem; color: var(--yv-muted); font-size: 0.75rem; font-weight: 500; }
.yv__seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: 10px; background: var(--yv-surface); }
.yv__seg button { min-height: 2.25rem; border: 0; border-radius: 8px; background: transparent; color: var(--yv-text); font-size: 0.875rem; font-weight: 500; }
.yv__seg button:hover { background: var(--yv-hover); }
.yv__seg button[aria-pressed="true"] { background: var(--yv-on); color: var(--yv-on-text); }
.yv__switches { display: grid; gap: 2px; margin-bottom: 0.85rem; }
.yv__switches button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 2.5rem; padding: 0.35rem 0.5rem; border: 0; border-radius: 8px; background: transparent; color: var(--yv-text); font-size: 0.875rem; text-align: left; }
.yv__switches button:hover { background: var(--yv-surface); }
.yv__switches i { position: relative; flex: none; width: 2.25rem; height: 1.3rem; border-radius: 1rem; background: var(--yv-track); transition: background-color 0.2s; }
.yv__switches i::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.3rem - 4px); height: calc(1.3rem - 4px); border-radius: 50%; background: #fff; transition: transform 0.2s; }
.yv__switches [aria-checked="true"] i { background: var(--yv-on); }
.yv__switches [aria-checked="true"] i::after { transform: translateX(0.95rem); background: var(--yv-on-text); }
.yv__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--yv-line); font-size: 0.78rem; }
.yv__foot a { color: var(--yv-muted); }
.yv__foot a:hover { color: var(--yv-text); }
.yv__reset { padding: 0.4rem 0.8rem; border: 1px solid var(--yv-line); border-radius: 8px; background: transparent; color: var(--yv-text); font-size: 0.78rem; font-weight: 500; }
.yv__reset:hover { background: var(--yv-hover); }
@media (max-width: 37.99rem) {
	.yv__tab { top: auto; bottom: 5.5rem; transform: none; padding: 0.7rem 0.5rem; }
	.yv__tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.yv__panel { left: 0.75rem; right: 0.75rem; top: auto; bottom: 0.75rem; width: auto; transform: none; }
}

/* ---------- Motion preferences ---------- */
html[data-motion="reduce"] { scroll-behavior: auto; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
	.site-head, .site-foot, .dock, .chat, .yv, .consent, .cta, .read-progress, .toc, .share { display: none !important; }
	body { background: #fff; color: #000; }
	.phead, .article__head { padding-top: 0; }
}

/* While the full-screen menu is open, keep the floating controls out of the way. */
.nav-open .dock, .nav-open .yv__tab, .nav-open .consent { display: none; }

/* ==========================================================================
   Version 3 additions
   ========================================================================== */

/* Page-to-page transitions, where the browser supports them. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: rd-vt-out 0.22s ease both; }
::view-transition-new(root) { animation: rd-vt-in 0.32s ease both; }
@keyframes rd-vt-out { to { opacity: 0; } }
@keyframes rd-vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
html[data-motion="reduce"]::view-transition-group(*), html[data-motion="reduce"]::view-transition-old(*), html[data-motion="reduce"]::view-transition-new(*) { animation: none !important; }

/* Quiet scroll bars that pick up the brand colour when used. */
html { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--paper); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--cobalt); }

/* Header button */
.site-head__cta { margin-left: auto; }
@media (max-width: 68.74rem) { .site-head__cta { display: none; } }

/* Painted covers */
.cover { width: 100%; height: 100%; }
.article__cover--painted { aspect-ratio: 21 / 8; overflow: hidden; }

/* Ticker */
.ticker { overflow: hidden; padding-block: 1.1rem; border-block: 1px solid var(--line); }
.ticker__track { display: flex; width: max-content; animation: rd-ticker 46s linear infinite; }
.ticker ul { display: flex; list-style: none; }
.ticker li { display: flex; align-items: center; padding-right: 3rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; }
.ticker li::after { content: ""; width: 0.5rem; height: 0.5rem; margin-left: 3rem; border-radius: 50%; background: var(--cobalt); }
@keyframes rd-ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* Process */
.process { border-top: 1px solid var(--line); }
.process .section__title { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; list-style: none; background: var(--line); border: 1px solid var(--line); }
.step { position: relative; overflow: hidden; padding: clamp(1.5rem, 2.6vw, 2.5rem); background: var(--paper); }
.step__n { display: block; margin-bottom: clamp(2.5rem, 6vw, 5rem); color: var(--cobalt-ink); font-size: clamp(2.5rem, 4vw, 3.75rem); font-weight: 300; line-height: 1; }
.step__title { margin-bottom: 0.6rem; font-size: 1.375rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.step p { color: var(--ink-2); font-family: var(--read); font-size: 1.125rem; line-height: 1.5; }
@media (max-width: 61.99rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 37.99rem) { .steps { grid-template-columns: 1fr; } .step__n { margin-bottom: 1.5rem; } }

/* A soft light that follows the pointer */
[data-glow]::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(22rem circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--cobalt) 20%, transparent), transparent 62%); transition: opacity 0.4s; }
[data-glow]:hover::before { opacity: 1; }
[data-glow] > * { position: relative; }

/* Numbers and client words */
.proof { border-top: 1px solid var(--line); }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 2rem; }
.numbers > div { display: flex; flex-direction: column-reverse; }
.numbers dd { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 300; line-height: 1; }
.numbers dt { margin-top: 0.6rem; color: var(--ink-2); }
.numbers + .voices { margin-top: clamp(3rem, 6vw, 5rem); }
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.voice blockquote { padding-left: 1.5rem; border-left: 3px solid var(--cobalt); font-family: var(--read); font-size: clamp(1.25rem, 2vw, 1.5rem); font-style: italic; line-height: 1.4; }
.voice figcaption { margin-top: 1rem; padding-left: 1.5rem; color: var(--ink-2); font-size: 0.9375rem; }

/* Portfolio */
.work { border-top: 1px solid var(--line); }
.wgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 47.99rem) { .wgrid { grid-template-columns: 1fr; } }
.wcard { position: relative; }
.wcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.wcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.wcard:hover .wcard__media img { transform: scale(1.04); }
.wcard__body { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; padding-top: 1.1rem; }
.wcard__title { font-size: 1.5rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
.wcard__title a { color: var(--ink); text-decoration: none; }
.wcard__title a::after { content: ""; position: absolute; inset: 0; }
.wcard__meta { color: var(--ink-2); font-size: 0.9375rem; }
.project__facts dt { margin-top: 1.5rem; color: var(--ink-2); font-size: 0.875rem; }
.project__facts dt:first-child { margin-top: 0; }
.project__facts dd { margin-top: 0.2rem; font-size: 1.125rem; }

/* Questions */
.faq { border-top: 1px solid var(--line); }
.faq__list { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 500; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex: none; width: 1.1rem; height: 1.1rem; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 0; top: calc(50% - 1px); width: 100%; height: 2px; background: var(--cobalt-ink); transition: transform 0.3s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0deg); }
.faq__item p { max-width: 40rem; padding: 0 0 1.6rem; color: var(--ink-2); font-family: var(--read); font-size: 1.1875rem; line-height: 1.55; }

/* Next page */
.nextpage { border-top: 1px solid var(--line); }
.nextpage__link { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding-block: clamp(2rem, 5vw, 3.5rem); color: var(--ink); text-decoration: none; }
.nextpage__label { color: var(--ink-2); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.nextpage__title { font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 300; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; background: linear-gradient(var(--cobalt), var(--cobalt)) right bottom / 0 3px no-repeat; transition: background-size 0.5s var(--ease); }
.nextpage__link:hover .nextpage__title, .nextpage__link:focus-visible .nextpage__title { background-size: 100% 3px; }

/* Article sign-up */
.endnote { padding: clamp(1.5rem, 4vw, 2.25rem); border: 1px solid var(--line-strong); }
.endnote__title { font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.endnote > p { margin: 0.4rem 0 1.25rem; color: var(--ink-2); font-family: var(--read); font-size: 1.125rem; }
.endnote__row { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.endnote input[type="email"] { flex: 1; min-width: 0; padding: 0.9rem 1rem; border: 1px solid var(--line-strong); border-radius: 0; background: var(--card); color: var(--ink); }
.endnote .form-msg { margin-top: 0.75rem; }
@media (max-width: 37.99rem) { .endnote__row { flex-direction: column; } }

/* Ticked lists */
.ticks { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.9rem; height: 0.45rem; border-left: 2px solid var(--cobalt-ink); border-bottom: 2px solid var(--cobalt-ink); transform: rotate(-45deg); }

.phead__search { max-width: 26rem; margin-top: 2rem; }

/* Project planner */
.planner__count { margin-bottom: 0.5rem; color: var(--ink-2); font-size: 0.875rem; }
.planner__count:empty { display: none; }
.planner__step + .planner__step { margin-top: 3rem; }
.planner.is-stepped .planner__step { margin-top: 0; }
.planner__title { margin-bottom: 1.5rem; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.planner__title:focus { outline: none; }
.chips { margin: 0 0 1.75rem; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips legend { width: 100%; margin-bottom: 0.7rem; padding: 0; font-size: 0.9375rem; font-weight: 500; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: block; padding: 0.7rem 1.1rem; border: 1px solid var(--line-strong); background: var(--card); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--cobalt-ink); outline-offset: 3px; }
.planner__nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.planner .form-msg { margin-top: 1rem; }

/* Assistant: leave a message */
.chat__handoff { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 0.9rem; padding: 1.25rem; }
.chat__handoff-title { font-size: 1.0625rem; font-weight: 500; }
.chat__handoff .field input, .chat__handoff .field textarea { padding: 0.65rem 0.8rem; background: var(--paper); }
.chat__handoff .field textarea { min-height: 4rem; }
.chat__handoff-note { color: var(--ink-2); font-size: 0.8125rem; }
.chat__handoff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.chat__foot .linklike { font-size: inherit; }
