/* ==========================================================================
   Cyrus Wahome — main stylesheet
   Monochrome editorial system. Dark by default, Light via [data-theme].
   ========================================================================== */

:root {
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--black: #050505;
	--silver: #A1A1AA;
	--silver-light: #E4E4E7;
	--white: #FAFAFA;
	--radius: 3px;
	--header-h: 56px;
	--container: 1200px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

:root,
[data-theme="dark"] {
	color-scheme: dark;
	--bg: #050505;
	--fg: #FAFAFA;
	--fg-soft: #E4E4E7;
	--muted: #A1A1AA;
	--line: rgba(255, 255, 255, .10);
	--line-strong: rgba(255, 255, 255, .24);
	--surface: rgba(255, 255, 255, .03);
	--glass: rgba(5, 5, 5, .72);
	--scrim: rgba(0, 0, 0, .66);
	--spot: rgba(250, 250, 250, .09);
	--spot-btn: rgba(5, 5, 5, .16);
	--inv-bg: #FAFAFA;
	--inv-fg: #050505;
	--focus: #FAFAFA;
}

[data-theme="light"] {
	color-scheme: light;
	--bg: #FAFAFA;
	--fg: #050505;
	--fg-soft: #27272A;
	--muted: #52525B;
	--line: rgba(0, 0, 0, .10);
	--line-strong: rgba(0, 0, 0, .28);
	--surface: rgba(0, 0, 0, .025);
	--glass: rgba(250, 250, 250, .78);
	--scrim: rgba(0, 0, 0, .35);
	--spot: rgba(5, 5, 5, .07);
	--spot-btn: rgba(250, 250, 250, .18);
	--inv-bg: #050505;
	--inv-fg: #FAFAFA;
	--focus: #050505;
}

/* Base ------------------------------------------------------------------ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

html.is-locked,
html.is-locked body { overflow: hidden; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--fg-soft);
	font: 400 14px/1.65 var(--font-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.site-main { flex: 1 0 auto; }

img, svg, video, canvas { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-underline-offset: .22em; }
h1, h2, h3, h4 { color: var(--fg); margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

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

.mono { font-family: var(--font-mono); }

.label {
	margin: 0 0 14px;
	font: 500 11px/1.4 var(--font-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.screen-reader-text:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto;
	margin: 0; padding: 10px 14px;
	clip: auto; clip-path: none;
	background: var(--inv-bg); color: var(--inv-fg);
	font: 500 12px/1 var(--font-mono);
	z-index: 200;
}

/* Reading progress ------------------------------------------------------ */

.progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 1px;
	z-index: 130;
	pointer-events: none;
}
.progress span {
	display: block;
	height: 100%;
	background: var(--fg);
	transform: scaleX(0);
	transform-origin: 0 50%;
	will-change: transform;
}

/* Header ---------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--glass);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--header-h);
}
.brand {
	display: flex;
	align-items: baseline;
	gap: 12px;
	text-decoration: none;
	color: var(--fg);
	white-space: nowrap;
	margin-right: auto;
}
.brand__logo { height: 22px; width: auto; align-self: center; }
.brand__name { font: 600 13px/1 var(--font-sans); letter-spacing: .14em; }
.brand__tag { font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }

.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 10px;
	font: 500 12px/1 var(--font-mono);
	letter-spacing: .04em;
	color: var(--muted);
	text-decoration: none;
	border-radius: var(--radius);
	transition: color .2s;
}
.nav__link:hover { color: var(--fg); }

.hdr-actions { display: flex; align-items: center; gap: 8px; }
.hdr-btn,
.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 32px;
	padding: 0 12px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font: 500 11px/1 var(--font-mono);
	letter-spacing: .08em;
	color: var(--fg-soft);
	cursor: pointer;
	transition: border-color .2s, color .2s;
}
.hdr-btn:hover,
.theme-toggle:hover { border-color: var(--line-strong); color: var(--fg); }
.theme-toggle { width: 32px; padding: 0; }
[data-theme="dark"] .icon--moon,
:root:not([data-theme]) .icon--moon { display: none; }
[data-theme="light"] .icon--sun { display: none; }
.menu-toggle { display: none; }

/* Buttons + spotlight --------------------------------------------------- */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font: 500 12px/1.3 var(--font-mono);
	letter-spacing: .04em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}
.btn--primary { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); }

.spot { position: relative; isolation: isolate; overflow: hidden; }
.spot::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0;
	transition: opacity .3s var(--ease);
	background: radial-gradient(var(--spot-size, 340px) circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--spot-color, var(--spot)), transparent 70%);
}
.spot:hover::before { opacity: 1; }
.btn.spot { --spot-size: 150px; --spot-color: var(--spot-btn); }
.btn--ghost.spot { --spot-color: var(--spot); }
.tier--solid { --spot-color: var(--spot-btn); }

/* Search overlay -------------------------------------------------------- */

.search { position: fixed; inset: 0; z-index: 140; }
.search[hidden] { display: none; }
.search__backdrop {
	position: absolute; inset: 0;
	background: var(--scrim);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.search__panel {
	position: relative;
	width: min(640px, calc(100% - 24px));
	max-height: min(70vh, 560px);
	margin: 10vh auto 0;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	border: 1px solid var(--line-strong);
	border-radius: 4px;
	overflow: hidden;
}
.search__bar { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); }
.search__slash { color: var(--muted); font-size: 13px; }
.search__input {
	flex: 1;
	min-width: 0;
	height: 52px;
	background: transparent;
	border: 0;
	color: var(--fg);
	font: 400 15px/1 var(--font-sans);
}
.search__input:focus-visible { outline: none; }
.search__bar:focus-within { box-shadow: inset 0 -1px 0 var(--fg); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__close {
	height: 24px; padding: 0 8px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 10px; letter-spacing: .08em; color: var(--muted);
	cursor: pointer;
}
.search__status { margin: 0; padding: 10px 16px; font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.search__results { list-style: none; overflow-y: auto; border-top: 1px solid var(--line); }
.search__results:empty { display: none; }
.search__item { border-bottom: 1px solid var(--line); }
.search__item:last-child { border-bottom: 0; }
.search__item a { display: block; padding: 12px 16px; text-decoration: none; }
.search__item.is-active a,
.search__item a:hover { background: var(--surface); box-shadow: inset 2px 0 0 var(--fg); }
.search__meta { display: block; margin-bottom: 4px; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search__title { display: block; color: var(--fg); font-weight: 500; font-size: 14px; }
.search__excerpt { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.search__foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }

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

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .7;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 15%, #000 0%, transparent 72%);
	mask-image: radial-gradient(ellipse 70% 80% at 25% 15%, #000 0%, transparent 72%);
}
.hero__inner { position: relative; padding-block: clamp(64px, 11vw, 144px) clamp(40px, 6vw, 72px); }
.hero__title { max-width: 24ch; font-size: clamp(30px, 4.8vw, 60px); letter-spacing: -.035em; line-height: 1.06; }
/* Hero: eyebrow slide-in, rotating headline, CTA reveal */
.hero__static { display: block; }
.hero__rotator { display: grid; }
.hero__phrase {
	grid-area: 1 / 1; /* all phrases share one cell, so the block is as tall as the longest and never shifts the layout */
	opacity: 0;
	transform: translateY(.45em);
	transition: opacity .6s var(--ease), transform .6s var(--ease);
	pointer-events: none;
}
.hero__phrase.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero__phrase.is-leaving { opacity: 0; transform: translateY(-.45em); }

@keyframes hero-eyebrow-in {
	from { opacity: 0; transform: translateX(-32px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
	.hero__eyebrow { animation: hero-eyebrow-in .9s var(--ease) .1s both; }
}

.js .hero__cta [data-reveal] {
	transform: translateY(32px);
	transition-property: opacity, transform, border-color, background-color;
	transition-duration: .8s, .8s, .2s, .2s;
	transition-timing-function: var(--ease), var(--ease), ease, ease;
	transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0s, 0s;
}

.hero__lead { max-width: 58ch; margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__meta {
	display: flex; flex-wrap: wrap; gap: 8px 0;
	list-style: none;
	margin: clamp(48px, 8vw, 88px) 0 0;
	font-size: 11px; letter-spacing: .1em; color: var(--muted);
}
.hero__meta li { padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--line); }
.hero__meta li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

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

.section { padding-block: clamp(56px, 9vw, 112px); border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section-tight { padding-block: 0 clamp(56px, 8vw, 96px); }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section__title { font-size: clamp(22px, 3vw, 34px); }
.section__intro { max-width: 62ch; margin: 14px 0 0; color: var(--muted); }
.text-link { font-size: 12px; letter-spacing: .04em; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.text-link:hover { border-color: var(--fg); }
.empty { padding: 28px 0; color: var(--muted); }
.admin-hint { margin-top: 20px; font-size: 11px; color: var(--muted); }

/* Protocol -------------------------------------------------------------- */

.protocol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.protocol__item { background: var(--bg); padding: clamp(22px, 3vw, 32px); }
.protocol__num { display: block; margin-bottom: 28px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.protocol__title { margin-bottom: 12px; font-size: 13px; letter-spacing: .08em; font-weight: 500; }
.protocol__item p { margin: 0; color: var(--muted); }

/* Masthead + screenshots ------------------------------------------------ */

.masthead { margin-bottom: clamp(28px, 4vw, 48px); padding-block: 20px; border-block: 1px solid var(--line); }
.masthead__label { margin: 0 0 14px; font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.masthead__list { display: flex; flex-wrap: wrap; gap: 10px 0; list-style: none; }
.masthead__list li { padding-inline: 20px; border-left: 1px solid var(--line); color: var(--fg); font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.masthead__list li:first-child { padding-left: 0; border-left: 0; }
.masthead__note { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); }

/* Publication marquee (right-to-left auto-scroll) ------------------------ */

.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee-rtl 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex-shrink: 0; list-style: none; margin: 0; padding: 0; }
.marquee__list li { list-style: none; padding-inline: clamp(24px, 4vw, 44px); color: var(--muted); font-weight: 600; font-size: clamp(16px, 2vw, 20px); letter-spacing: -.02em; white-space: nowrap; transition: color .2s; }
.marquee__list li:hover { color: var(--fg); }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.marquee { -webkit-mask-image: none; mask-image: none; }
	.marquee__track { animation: none !important; width: auto; flex-wrap: wrap; }
	.marquee__list[aria-hidden="true"] { display: none; }
	.marquee__list { flex-wrap: wrap; row-gap: 10px; }
}

/* Timeline -------------------------------------------------------------- */

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; list-style: none; margin: 0; padding: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.timeline__item { position: relative; list-style: none; background: var(--bg); padding: clamp(22px, 3vw, 32px); }
.timeline__item::after { content: ""; position: absolute; top: clamp(22px, 3vw, 32px); right: 0; width: 24px; height: 1px; background: var(--line-strong); }
.timeline__item:last-child::after { display: none; }
.timeline__num { display: block; margin-bottom: 28px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.timeline__title { margin-bottom: 12px; font-size: 13px; letter-spacing: .08em; font-weight: 500; }
.timeline__item p { margin: 0; color: var(--muted); }
.tier__sub { margin: -8px 0 20px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.tier--solid .tier__sub { color: var(--inv-fg); opacity: .72; }
@media (max-width: 859.98px) {
	.timeline { grid-template-columns: 1fr; }
	.timeline__item::after { display: none; }
}

/* Wire release vs. editorial feature ------------------------------------- */

.contrast { --dur: .7s; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.contrast__toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); width: min(100%, 520px); }
.contrast__thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 2px; background: var(--inv-bg); transition: transform var(--dur) var(--ease); }
.contrast[data-state="editorial"] .contrast__thumb { transform: translateX(100%); }
.contrast__btn { position: relative; z-index: 1; min-height: 44px; padding: 8px 10px; background: none; border: 0; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: color .3s; }
.contrast__btn[aria-pressed="true"] { color: var(--inv-fg); }
.contrast__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.contrast__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; width: 100%; align-items: stretch; }

/* Stacked state swap: both states share a grid cell and crossfade */
.cswap { display: grid; }
.cswap > .cswap__w, .cswap > .cswap__e,
.cswap > span > .cswap__w, .cswap > span > .cswap__e { grid-area: 1 / 1; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.cswap .cswap__e { opacity: 0; transform: translateY(6px); }
.cswap .cswap__w { opacity: 1; transform: none; }
.contrast[data-state="editorial"] .cswap .cswap__w { opacity: 0; transform: translateY(-6px); }
.contrast[data-state="editorial"] .cswap .cswap__e { opacity: 1; transform: none; }
.contrast .cswap .cswap__w, .contrast .cswap .cswap__e { pointer-events: none; }

.ccard { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 30px); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); transition: border-color var(--dur), background-color var(--dur); }
.contrast[data-state="editorial"] .ccard { border: 1px solid var(--fg); border-style: solid; background: var(--bg); }
.contrast[data-state="wire"] .ccard { opacity: .92; }
.ccard__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ccard__outlet { font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.ccard__badge { font-size: 10px; letter-spacing: .08em; }
.ccard__badge > span { padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); white-space: nowrap; }
.ccard__badge .cswap__w { color: var(--muted); border-style: dashed; }
.ccard__badge .cswap__e { color: var(--inv-fg); background: var(--inv-bg); border-color: var(--inv-bg); }
.ccard__title { font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -.03em; line-height: 1.2; min-height: 3.6em; align-content: start; }
.ccard__by { font-size: 10.5px; letter-spacing: .04em; color: var(--muted); }
.ccard__body > span { display: flex; flex-direction: column; gap: 8px; align-self: start; }
.ccard__body .line { display: block; height: 7px; border-radius: 2px; background: var(--line-strong); }
.ccard__body .line--short { width: 55%; }
.ccard__boiler { margin-top: 6px; font-style: normal; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.ccard__note { padding-top: 14px; border-top: 1px solid var(--line); font-size: 10.5px; line-height: 1.5; letter-spacing: .03em; color: var(--muted); }

.metrics { display: grid; gap: 14px; margin: auto 0 0; padding-top: 4px; }
.metric { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.metric dt { font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }
.metric dd { margin: 0; font-size: 10.5px; letter-spacing: .08em; color: var(--fg); text-align: right; }
.metric dd .cswap__w, .metric dd .cswap__e { text-align: right; }
.metric__bar { grid-column: 1 / -1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.metric__bar i { display: block; height: 100%; background: var(--fg); transform-origin: left center; transform: scaleX(var(--s, 1)); transition: transform 2.4s var(--ease); }
.contrast[data-state="wire"] .metric { --s: var(--w); }
.contrast[data-state="editorial"] .metric { --s: var(--e); }
.contrast.is-idle .metric { --s: 1; }
.contrast.is-idle .metric__bar i { transition: none; }

.cchart { display: flex; flex-direction: column; margin: 0; padding: clamp(16px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cchart__cap { margin-bottom: 14px; font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }
.cchart__svg { display: block; width: 100%; height: auto; margin-block: auto; overflow: visible; color: var(--muted); }
.cchart__grid line { opacity: .25; }
.cchart__grid .cchart__axis { opacity: .6; }
.cchart__ticks text { font-size: 9.5px; letter-spacing: .06em; }
.cchart__ticks .cchart__scale { opacity: .7; }
.cchart__mark { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.cchart__line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; }
.cchart__line--wire { stroke: var(--muted); stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease), opacity var(--dur), stroke var(--dur); }
.cchart__line--ed { stroke: var(--fg); stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.cchart__area { fill: var(--fg); opacity: 0; transition: opacity 1.8s var(--ease); }
.cchart__dot { opacity: 0; transition: opacity .5s var(--ease); }
.cchart__dot--wire { fill: var(--muted); }
.cchart__dot--ed { fill: var(--fg); }
.cchart__label { font-size: 9.5px; letter-spacing: .08em; fill: var(--muted); opacity: 0; transition: opacity .6s var(--ease); }
.cchart__label--ed { fill: var(--fg); }
.contrast__note { margin: 0; font-size: 11.5px; color: var(--muted); text-align: center; }

.contrast[data-state="wire"] .cchart__dot--wire,
.contrast[data-state="wire"] .cchart__label--wire { opacity: 1; transition-delay: 1s; }
.contrast.is-idle .cchart__line--wire { stroke-dashoffset: 1; transition: none; }
.contrast.is-idle .cchart__dot--wire, .contrast.is-idle .cchart__label--wire { opacity: 0; transition: none; }
.contrast[data-state="editorial"] .cchart__line--wire { opacity: .35; stroke-dasharray: 3 5; }
.contrast[data-state="editorial"] .cchart__line--ed { stroke-dashoffset: 0; }
.contrast[data-state="editorial"] .cchart__area { opacity: .07; }
.contrast[data-state="editorial"] .cchart__dot--ed,
.contrast[data-state="editorial"] .cchart__label--ed { opacity: 1; transition-delay: 1.5s; }

@media (max-width: 859.98px) {
	.contrast__stage { grid-template-columns: minmax(0, 1fr); }
	.ccard__title { min-height: 0; }
}
@media (max-width: 479.98px) {
	.contrast__btn { font-size: 10px; letter-spacing: .03em; }
}

/* Bento ----------------------------------------------------------------- */

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento__lead,
.bento__tile { padding: clamp(20px, 2.6vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.bento__lead:hover,
.bento__tile:hover { border-color: var(--line-strong); }
.bento__lead { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; align-items: flex-start; }
.bento__lead h3 { max-width: 20ch; margin-bottom: 14px; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.03em; }
.bento__lead p { max-width: 52ch; color: var(--muted); }
.bento__lead .btn { margin-top: auto; }
.bento__tile--wide { grid-column: span 2; }
.bento__tile h3 { margin-bottom: 10px; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.bento__tile p { margin: 0; color: var(--muted); }

/* Tiers ----------------------------------------------------------------- */

.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tier { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); }
.tier__label { margin: 0 0 28px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.tier__price { margin: 0 0 20px; color: var(--fg); font: 600 clamp(26px, 3.4vw, 40px)/1.05 var(--font-sans); letter-spacing: -.035em; }
.tier__desc { max-width: 52ch; color: var(--muted); }
.tier__cap { margin: 4px 0 24px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 10.5px; letter-spacing: .08em; color: var(--fg); }
.tier .btn { margin-top: auto; }
.tier__desc + .btn { margin-top: 28px; }
.tier--solid { background: var(--inv-bg); border-color: var(--inv-bg); }
.tier--solid .tier__label,
.tier--solid .tier__desc { color: var(--inv-fg); opacity: .72; }
.tier--solid .tier__price { color: var(--inv-fg); }
.tier--solid .btn--primary { background: var(--inv-fg); border-color: var(--inv-fg); color: var(--inv-bg); }
.tier--solid .btn--primary { --spot-color: var(--spot); }

/* Editorial index rows -------------------------------------------------- */

.index { border-top: 1px solid var(--line); }
.row {
	display: grid;
	grid-template-columns: 104px 150px minmax(0, 1fr) 100px 72px;
	grid-template-areas: "date cat main time link";
	align-items: center;
	gap: 16px;
	padding: 18px 12px;
	border-bottom: 1px solid var(--line);
}
.row__date { grid-area: date; font-size: 12px; color: var(--muted); }
.row__cat { grid-area: cat; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row__main { grid-area: main; display: flex; align-items: center; gap: 16px; min-width: 0; }
.row__thumb { flex: none; width: 72px; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.row__title { font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.row__title a { text-decoration: none; }
.row__title a::after { content: ""; position: absolute; inset: 0; }
.row__time { grid-area: time; font-size: 10.5px; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.row__link { grid-area: link; justify-self: end; font-size: 12px; color: var(--fg); text-decoration: none; position: relative; z-index: 1; }
.row:hover .row__link { text-decoration: underline; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 36px; height: 36px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: var(--radius);
	font: 500 12px/1 var(--font-mono);
	color: var(--fg-soft); text-decoration: none;
}
.pagination a.page-numbers:hover { border-color: var(--line-strong); color: var(--fg); }
.pagination .page-numbers.current { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-fg); }
.pagination .dots { border-color: transparent; }

/* Page heads, forms, 404 ------------------------------------------------ */

.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 44px); }
.page-title { max-width: 22ch; font-size: clamp(28px, 4.2vw, 48px); letter-spacing: -.035em; }
.page-desc { margin: 14px 0 0; color: var(--muted); font-size: 12px; }

.search-form { display: flex; gap: 8px; max-width: 480px; margin-top: 24px; }
.search-form__input {
	flex: 1; min-width: 0; height: 44px; padding: 0 14px;
	background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
	color: var(--fg); font: 400 14px/1 var(--font-sans);
}

.notfound { padding-block: clamp(80px, 14vw, 180px); }
.notfound__code { margin: 0 0 20px; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.notfound__title { max-width: 18ch; font-size: clamp(32px, 5.4vw, 64px); letter-spacing: -.04em; }
.notfound__text { max-width: 52ch; margin: 20px 0 32px; color: var(--muted); font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

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

.article__head { padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 40px); }
.badge {
	display: inline-block; margin-bottom: 20px; padding: 5px 10px;
	border: 1px solid var(--line-strong); border-radius: var(--radius);
	font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--fg); text-decoration: none;
}
.badge:hover { background: var(--surface); }
.article__title { max-width: 22ch; font-size: clamp(28px, 4.6vw, 54px); letter-spacing: -.035em; line-height: 1.08; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 24px; font-size: 11px; letter-spacing: .08em; color: var(--fg-soft); }
.article__meta .k { color: var(--muted); }
.author { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 420px; }
.author__mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 11px; font-weight: 600; color: var(--fg); }
.author__text { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.author__text strong { color: var(--fg); font-weight: 600; }

.article__hero { margin-bottom: clamp(24px, 4vw, 40px); }
.article__hero-img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }

.article__layout {
	display: grid;
	grid-template-columns: minmax(0, 65ch) 260px;
	justify-content: center;
	gap: clamp(40px, 7vw, 112px);
	padding-bottom: clamp(56px, 9vw, 112px);
}
.article__body { min-width: 0; }

.prose { font-size: 15px; line-height: 1.75; color: var(--fg-soft); overflow-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose figure, .prose blockquote, .prose pre, .prose table { margin: 0 0 1.4em; }
.prose h2 { margin: 2.4em 0 .7em; font-size: 24px; letter-spacing: -.03em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin: 2em 0 .6em; font-size: 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h4 { margin: 1.8em 0 .5em; font: 600 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prose a { color: var(--fg); text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--muted); }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 1px solid var(--fg); color: var(--fg); font-size: 17px; line-height: 1.6; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose cite { display: block; margin-top: 8px; font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--muted); font-style: normal; }
.prose img { border-radius: var(--radius); }
.prose figcaption, .prose .wp-element-caption { margin-top: 8px; font: 400 11px/1.5 var(--font-mono); color: var(--muted); }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.prose code { padding: 2px 5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font: 400 .88em var(--font-mono); }
.prose pre { padding: 16px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font: 400 12.5px/1.6 var(--font-mono); }
.prose pre code { padding: 0; background: none; border: 0; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 13px; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { color: var(--fg); font-weight: 600; }
.prose iframe, .prose video, .prose embed { max-width: 100%; border: 0; }
.prose .wp-block-embed__wrapper, .prose .wp-has-aspect-ratio { position: relative; }
.prose .wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.prose .wp-embed-aspect-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose .alignwide, .prose .alignfull { max-width: 100%; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.prose .aligncenter { margin-inline: auto; }
.prose--page { max-width: 68ch; }
.page-links, .edit-link { margin-top: 24px; font-size: 11px; letter-spacing: .08em; }

.advisory-cta { margin-top: clamp(40px, 6vw, 72px); padding: clamp(22px, 3.4vw, 36px); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.advisory-cta h2 { max-width: 24ch; margin-bottom: 14px; font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -.03em; }
.advisory-cta p { color: var(--muted); }
.advisory-cta .cta-row { margin-top: 24px; }

/* Table of contents ----------------------------------------------------- */

.toc { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-left: 20px; border-left: 1px solid var(--line); }
.toc[hidden] { display: none; }
.toc__title { margin-bottom: 16px; }
.toc__list, .toc__sub { list-style: none; }
.toc__sub { margin: 2px 0 6px 12px; }
.toc a, .drawer a { display: block; padding: 5px 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .2s; }
.toc a:hover, .drawer a:hover { color: var(--fg); }
.toc a.is-active, .drawer a.is-active { color: var(--fg); font-weight: 500; }
.toc a.is-active { box-shadow: -21px 0 0 -20px var(--fg); margin-left: 0; position: relative; }
.toc a.is-active::before { content: ""; position: absolute; left: -21px; top: 4px; bottom: 4px; width: 1px; background: var(--fg); }

/* Mobile index pill + drawer ------------------------------------------- */

.index-pill {
	position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70;
	height: 40px; padding: 0 16px;
	background: var(--inv-bg); color: var(--inv-fg);
	border: 1px solid var(--inv-bg); border-radius: 999px;
	font-size: 11px; font-weight: 500; letter-spacing: .1em; cursor: pointer;
}
.index-pill[hidden] { display: none; }

.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .25s var(--ease); }
.drawer__panel {
	position: absolute; left: 0; right: 0; bottom: 0;
	max-height: 72vh; overflow-y: auto;
	padding: 20px clamp(16px, 4vw, 32px) calc(24px + env(safe-area-inset-bottom, 0px));
	background: var(--bg); border-top: 1px solid var(--line-strong); border-radius: 4px 4px 0 0;
	transform: translateY(100%); transition: transform .3s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateY(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer__head .label { margin: 0; }
.drawer__close { height: 28px; padding: 0 10px; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 10.5px; letter-spacing: .08em; cursor: pointer; }
.drawer a { padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.drawer .toc__sub { margin: 0 0 0 16px; }
.drawer .toc__list > li:last-child > a:only-child { border-bottom: 0; }

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

.site-footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 28px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 11px; letter-spacing: .06em; }
.footer__nav a { color: var(--muted); text-decoration: none; }
.footer__nav a:hover { color: var(--fg); }
.footer__copy { margin: 0; font-size: 11px; letter-spacing: .04em; color: var(--muted); }

/* Reveal ---------------------------------------------------------------- */

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-fallback [data-reveal] { opacity: 1 !important; transform: none !important; }

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

@media (max-width: 1023.98px) {
	.article__layout { grid-template-columns: minmax(0, 65ch); }
	.toc { display: none; }
	.bento { grid-template-columns: repeat(2, 1fr); }
	.bento__lead { grid-column: span 2; grid-row: auto; }
	.bento__tile--wide { grid-column: span 1; }
	.bento__tile--wide:last-child { grid-column: span 2; }
}
@media (min-width: 1024px) {
	.index-pill, .drawer { display: none !important; }
}

@media (max-width: 859.98px) {
	.site-header__inner { gap: 12px; }
	.brand__tag { display: none; }
	.menu-toggle { display: inline-flex; }
	.nav {
		position: absolute; top: 100%; left: 0; right: 0;
		display: none;
		padding: 8px clamp(16px, 4vw, 32px) 16px;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
	}
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__link { height: 44px; padding: 0; font-size: 13px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.protocol { grid-template-columns: 1fr; }
	.tiers { grid-template-columns: 1fr; }
}

@media (max-width: 719.98px) {
	.row {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "date time" "main main" "cat link";
		row-gap: 10px;
		padding-block: 16px;
	}
	.row__link { justify-self: end; }
}

@media (max-width: 599.98px) {
	.bento { grid-template-columns: 1fr; }
	.bento__lead, .bento__tile--wide, .bento__tile--wide:last-child { grid-column: auto; }
	.hero__cta .btn, .cta-row .btn { width: 100%; }
	.masthead__list li { padding-inline: 14px; font-size: 14px; }
	.hero__meta li { padding-right: 14px; margin-right: 14px; }
}

@media (hover: none) {
	.spot::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.spot::before { display: none; }
}
