/* ============================================================
   IMAJIN LABS · V7 "PLATFORM"
   Shared stylesheet for all v7 pages.
   Hex / Cloudflare / Spade structural language on the
   existing v4.2 brand tokens. Colors + logo unchanged.
   ============================================================ */

:root {
	--paper: oklch(0.995 0.003 70);
	--paper-tile: oklch(0.982 0.005 60);
	--paper-deep: oklch(0.965 0.008 50);
	--ink: oklch(0.155 0.012 280);
	--ink-soft: oklch(0.155 0.012 280 / 0.62);
	--ink-faint: oklch(0.155 0.012 280 / 0.38);
	--ink-trace: oklch(0.155 0.012 280 / 0.08);
	--ink-line: oklch(0.155 0.012 280 / 0.12);
	--ink-line-strong: oklch(0.155 0.012 280 / 0.22);
	--ink-dark: oklch(0.13 0.015 280);

	--mint: oklch(0.82 0.18 158);
	--mint-deep: oklch(0.56 0.15 158);
	--mint-glow: oklch(0.82 0.18 158 / 0.5);
	--mint-soft: oklch(0.82 0.18 158 / 0.12);

	--pink: oklch(0.66 0.27 350);
	--pink-soft: oklch(0.66 0.27 350 / 0.13);
	--pink-glow: oklch(0.66 0.27 350 / 0.45);
	--pink-bright: oklch(0.72 0.27 348);
	--pink-deep: oklch(0.54 0.25 350);

	--display: "Outfit", -apple-system, system-ui, sans-serif;
	--serif: "Instrument Serif", "Times New Roman", serif;
	--mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-fast: cubic-bezier(0.4, 0, 0.2, 1);

	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 22px;
	--wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	font-family: var(--display);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.55;
	letter-spacing: -0.006em;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- shared type ---------- */
.eyebrow {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}
.eyebrow::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--mint);
	box-shadow: 0 0 0 3px var(--mint-soft);
}
.eyebrow.pink::before { background: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }

.h2 {
	font-weight: 500;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.06;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
.h2 em, .h1 em, .h3 em {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 400;
	font-size: 1.1em;
	letter-spacing: -0.01em;
}
.h2 em { background: linear-gradient(120deg, oklch(0.82 0.18 158 / 0.16), oklch(0.66 0.27 350 / 0.14)) no-repeat 0 90% / 100% 0.32em; padding-inline: 0.05em; }
.h3 { font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }

.lede { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--ink-soft); max-width: 62ch; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: -0.005em;
	padding: 0.8em 1.4em;
	border-radius: var(--r-sm);
	transition: background 180ms var(--ease-fast), color 180ms var(--ease-fast), border-color 180ms var(--ease-fast), transform 180ms var(--ease-fast);
	cursor: pointer;
	border: 1px solid transparent;
}
.btn svg { transition: transform 180ms var(--ease-fast); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--mint); }
.btn-outline { border-color: var(--ink-line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--paper-deep); }
.link-fwd { font-weight: 600; font-size: 15px; color: var(--ink); display: inline-flex; align-items: center; gap: 0.4rem; }
.link-fwd::after { content: "→"; color: var(--mint-deep); transition: transform 180ms var(--ease-fast); }
.link-fwd:hover::after { transform: translateX(3px); }

/* ---------- announcement bar ---------- */
.announce {
	background: linear-gradient(90deg, oklch(0.82 0.18 158 / 0.14), oklch(0.66 0.27 350 / 0.08));
	color: var(--ink-soft);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.02em;
	text-align: center;
	padding: 0.55rem 1rem;
	position: relative;
	z-index: 60;
	border-bottom: 1px solid var(--ink-line);
}
.announce a { color: var(--mint-deep); font-weight: 600; }
.announce a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.announce .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin-right: 0.5rem; vertical-align: 1px; animation: pulse 2.4s infinite var(--ease); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--mint-glow); } 50% { box-shadow: 0 0 0 5px transparent; } }

/* ---------- nav ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: oklch(0.995 0.003 70 / 0.85);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 180ms var(--ease-fast);
}
.site-header.scrolled { border-bottom-color: var(--ink-line); }
.header-inner { display: flex; align-items: center; gap: 2.2rem; height: 74px; }
.brand-logo { height: 44px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 1.6rem; font-size: 14.5px; font-weight: 500; }
.primary-nav a { position: relative; padding: 0.35rem 0; color: var(--ink); }
.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 100%; height: 2px;
	background: var(--mint);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 180ms var(--ease-fast);
}
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a.active::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.header-actions .ghost { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.header-actions .ghost:hover { color: var(--ink); }
.header-actions .ghost.active { color: var(--ink); }
.header-actions .btn { padding: 0.55em 1.1em; font-size: 14px; }
@media (max-width: 1000px) {
	.primary-nav, .header-actions .ghost { display: none; }
}

/* ---------- home hero ---------- */
.hero { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0 0; text-align: center; }
.hero-wash {
	position: absolute;
	inset: -20% -10% auto;
	height: 130%;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(42rem 26rem at 18% 18%, var(--mint-soft), transparent 65%),
		radial-gradient(46rem 28rem at 85% 30%, var(--pink-soft), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow {
	font-family: var(--mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
}
.hero-eyebrow .sep { color: var(--ink-faint); }
.h1 {
	font-weight: 500;
	font-size: clamp(40px, 6.2vw, 76px);
	line-height: 1.02;
	letter-spacing: -0.04em;
	max-width: 19ch;
	margin: 1.4rem auto 0;
	text-wrap: balance;
}
.h1 em {
	background: linear-gradient(120deg, oklch(0.82 0.18 158 / 0.2), oklch(0.66 0.27 350 / 0.16)) no-repeat 0 88% / 100% 0.3em;
	padding-inline: 0.05em;
}
.hero-sub { margin: 1.5rem auto 0; max-width: 58ch; }
.hero-ctas { display: flex; justify-content: center; gap: 0.8rem; margin-top: 2.1rem; flex-wrap: wrap; }
.hero-meta {
	margin-top: 1.4rem;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--ink-soft);
	letter-spacing: 0.02em;
}
.hero-meta b { color: var(--ink-soft); font-weight: 500; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero .hero-wash { inset: -40% -10% auto; height: 170%; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .crumb {
	font-family: var(--mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
}
.page-hero .crumb .sep { color: var(--ink-faint); }
.page-hero .ph-title {
	font-weight: 500;
	font-size: clamp(34px, 4.8vw, 60px);
	line-height: 1.05;
	letter-spacing: -0.038em;
	max-width: 22ch;
	margin-top: 1.3rem;
	text-wrap: balance;
}
.page-hero .ph-title em {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 400;
	font-size: 1.1em;
	letter-spacing: -0.01em;
	background: linear-gradient(120deg, oklch(0.82 0.18 158 / 0.2), oklch(0.66 0.27 350 / 0.16)) no-repeat 0 88% / 100% 0.3em;
	padding-inline: 0.05em;
}
.page-hero .lede { margin-top: 1.3rem; }
.page-hero .hero-ctas { justify-content: flex-start; margin-top: 1.8rem; }
.jump-row { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-top: 2.2rem; }
.jump-label { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-right: 0.4rem; }
.jump-row a {
	font-family: var(--mono); font-size: 11.5px; font-weight: 500;
	border: 1px solid var(--ink-line); background: var(--paper);
	color: var(--ink-soft);
	padding: 0.35rem 0.75rem; border-radius: 99px;
	transition: border-color 160ms var(--ease-fast), color 160ms var(--ease-fast), background 160ms var(--ease-fast);
}
.jump-row a:hover { border-color: oklch(0.56 0.15 158 / 0.5); color: var(--mint-deep); background: oklch(0.82 0.18 158 / 0.06); }

/* reveal choreography */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 700ms var(--ease) forwards; }
.r1 { animation-delay: 60ms; } .r2 { animation-delay: 160ms; } .r3 { animation-delay: 280ms; }
.r4 { animation-delay: 400ms; } .r5 { animation-delay: 520ms; } .r6 { animation-delay: 660ms; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* Reveals are progressive enhancement: visible by default, hidden only once JS
   confirms it can run (site.js adds .js to <html>). No JS, no blank page. */
.io { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js .io { opacity: 0; transform: translateY(18px); }
html.js .io.in { opacity: 1; transform: translateY(0); }

/* ---------- hero console (the "product screenshot") ---------- */
.console-stage { position: relative; margin-top: clamp(2.6rem, 5vw, 4rem); padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.console-stage::before {
	content: "";
	position: absolute;
	inset: 18% 6% 0;
	background: linear-gradient(135deg, var(--mint-soft), var(--pink-soft));
	filter: blur(46px);
	z-index: 0;
}
.console {
	position: relative;
	z-index: 1;
	max-width: 980px;
	margin: 0 auto;
	background: var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-lg);
	box-shadow: 0 1px 2px oklch(0.155 0.012 280 / 0.05), 0 24px 60px -24px oklch(0.155 0.012 280 / 0.25);
	overflow: hidden;
	text-align: left;
}
.console-bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.7rem 1.1rem;
	border-bottom: 1px solid var(--ink-line);
	background: var(--paper-tile);
}
.console-dots { display: flex; gap: 6px; }
.console-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-trace); }
.console-title { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.console-title b { color: var(--ink); font-weight: 600; }
.console-tabs { margin-left: auto; display: flex; gap: 0.3rem; }
.console-tabs span {
	font-family: var(--mono); font-size: 11px; padding: 0.3rem 0.7rem;
	border-radius: 99px; color: var(--ink-faint);
}
.console-tabs .on { background: var(--mint-soft); color: var(--mint-deep); font-weight: 600; }
.console-body { display: grid; grid-template-columns: 1fr 248px; }
@media (max-width: 760px) { .console-body { grid-template-columns: 1fr; } }

.runlog { padding: 1.2rem 1.3rem 1.4rem; border-right: 1px solid var(--ink-line); }
@media (max-width: 760px) { .runlog { border-right: 0; border-bottom: 1px solid var(--ink-line); } }
.runlog-head { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 1rem; }
.runlog-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.runlog-head .run-id { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.runlog-head .run-state {
	margin-left: auto;
	font-family: var(--mono); font-size: 10.5px; font-weight: 600;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--mint-deep); background: var(--mint-soft);
	padding: 0.25rem 0.6rem; border-radius: 99px;
	display: inline-flex; align-items: center; gap: 0.4rem;
}
.runlog-head .run-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: pulse 2.4s infinite var(--ease); }
.step { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; align-items: baseline; padding: 0.55rem 0; border-top: 1px dashed var(--ink-trace); opacity: 0; animation: rise 500ms var(--ease) forwards; }
.step:nth-child(2) { animation-delay: 700ms; }
.step:nth-child(3) { animation-delay: 950ms; }
.step:nth-child(4) { animation-delay: 1200ms; }
.step:nth-child(5) { animation-delay: 1450ms; }
.step:nth-child(6) { animation-delay: 1700ms; }
.step-time { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.step-main { font-size: 13.5px; line-height: 1.45; }
.step-main b { font-weight: 600; }
.step-main .sys { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); background: var(--paper-deep); border: 1px solid var(--ink-trace); padding: 0.08rem 0.4rem; border-radius: 5px; white-space: nowrap; }
.step-stat { font-family: var(--mono); font-size: 11px; color: var(--mint-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.step-stat::before { content: "✓ "; }
.step.pending .step-stat { color: var(--ink-faint); }
.step.pending .step-stat::before { content: "· "; }

.console-rail { padding: 1.2rem 1.2rem 1.4rem; background: var(--paper-tile); }
.rail-label { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.8rem; }
.rail-stat { display: flex; align-items: baseline; justify-content: space-between; padding: 0.55rem 0; border-top: 1px dashed var(--ink-trace); }
.rail-stat dt { font-size: 13px; color: var(--ink-soft); }
.rail-stat dd { font-family: var(--mono); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rail-stat dd.mint { color: var(--mint-deep); }
.rail-note {
	margin-top: 1rem; padding: 0.8rem 0.9rem;
	background: var(--paper); border: 1px solid var(--ink-line);
	border-radius: var(--r-sm);
	font-size: 12.5px; line-height: 1.5; color: var(--ink-soft);
}
.rail-note b { color: var(--ink); font-weight: 600; }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head .lede { margin-top: 1rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.band { background: var(--paper-tile); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); position: relative; }
.band::before {
	content: "";
	position: absolute; top: -1px; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--mint-deep) 30%, var(--pink-bright) 70%, transparent);
	opacity: 0.4;
}

/* ---------- bento: five shapes ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tile {
	background: var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-md);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	position: relative;
	overflow: hidden;
	transition: border-color 180ms var(--ease-fast), transform 240ms var(--ease);
}
.tile:hover { border-color: var(--ink-line-strong); transform: translateY(-2px); }
.tile-lg { grid-column: span 3; min-height: 270px; }
.tile-sm { grid-column: span 2; }
@media (max-width: 900px) { .tile-lg, .tile-sm { grid-column: span 6; min-height: 0; } }
.tile-tag {
	font-family: var(--mono); font-size: 10.5px; font-weight: 600;
	letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--mint-deep);
	background: var(--mint-soft);
	align-self: flex-start;
	padding: 0.28rem 0.6rem; border-radius: 99px;
}
.tile:nth-child(even) .tile-tag, .tile-tag.pink { color: var(--pink-deep); background: var(--pink-soft); }
.tile h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.tile h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.08em; }
.tile p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; max-width: 44ch; }
.tile .link-fwd { margin-top: auto; font-size: 13.5px; padding-top: 0.8rem; }

/* mini visuals inside large tiles */
.mini-pipe { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: center; gap: 0; }
.mini-node {
	font-family: var(--mono); font-size: 10.5px; font-weight: 500;
	border: 1px solid var(--ink-line); background: var(--paper-tile);
	padding: 0.4rem 0.6rem; border-radius: 7px; white-space: nowrap;
	display: inline-flex; align-items: center; gap: 0.35rem;
}
.mini-node::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.mini-node.pink::before { background: var(--pink); }
.mini-edge { flex: 1 0 14px; height: 1px; background: var(--ink-line-strong); position: relative; }
.mini-edge::after { content: ""; position: absolute; right: -1px; top: -2.5px; border: 3px solid transparent; border-left-color: var(--ink-line-strong); }
.mini-chat { margin-top: auto; padding-top: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.mini-msg {
	font-family: var(--mono); font-size: 11px; line-height: 1.5;
	padding: 0.5rem 0.7rem; border-radius: 8px;
	border: 1px solid var(--ink-line); background: var(--paper-tile);
	color: var(--ink-soft); max-width: 86%;
}
.mini-msg.agent { align-self: flex-end; background: var(--mint-soft); border-color: oklch(0.82 0.18 158 / 0.3); color: var(--ink); }
.bento-foot { margin-top: 1.6rem; font-size: 14.5px; color: var(--ink-soft); }
.bento-foot a { font-weight: 600; color: var(--ink); }
.bento-foot a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 8vw, 6.5rem); }
.feature.flip > .feature-copy { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip > .feature-copy { order: 0; } }
.feature-copy .eyebrow { margin-bottom: 1rem; }
.feature-copy .lede { margin-top: 1.1rem; font-size: 16px; }
.feature-points { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.65rem; }
.feature-points li { display: flex; gap: 0.65rem; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.feature-points li::before {
	content: "✓";
	flex: 0 0 auto;
	width: 19px; height: 19px;
	border-radius: 50%;
	background: var(--mint-soft);
	color: var(--mint-deep);
	font-size: 11px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
	margin-top: 0.1em;
}
.feature-copy .link-fwd { margin-top: 1.5rem; }

/* memo artifact */
.artifact-stage { position: relative; }
.artifact-stage::before {
	content: "";
	position: absolute; inset: 12% 4%;
	background: linear-gradient(135deg, var(--pink-soft), var(--mint-soft));
	filter: blur(40px);
}
.memo {
	position: relative;
	background: var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-md);
	box-shadow: 0 1px 2px oklch(0.155 0.012 280 / 0.05), 0 20px 50px -20px oklch(0.155 0.012 280 / 0.22);
	padding: 1.7rem 1.8rem 1.8rem;
	max-width: 460px;
	margin: 0 auto;
	transform: rotate(-0.6deg);
}
.memo-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink-line); }
.memo-head .memo-kind { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.memo-stamp {
	font-family: var(--mono); font-size: 10px; font-weight: 600;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--mint-deep); border: 1px solid oklch(0.56 0.15 158 / 0.4);
	padding: 0.3rem 0.6rem; border-radius: 99px; transform: rotate(2deg);
	background: var(--mint-soft);
}
.memo-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); padding: 0.8rem 0 1rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.memo h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.memo h4 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.memo .memo-q { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.memo .memo-q em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.memo-lines { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.2rem; }
.memo-lines span { height: 8px; border-radius: 4px; background: var(--paper-deep); }
.memo-lines span:nth-child(1) { width: 96%; }
.memo-lines span:nth-child(2) { width: 88%; }
.memo-lines span:nth-child(3) { width: 64%; }
.memo-rec {
	background: var(--paper-tile);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-sm);
	padding: 0.95rem 1rem;
}
.memo-rec .rail-label { margin-bottom: 0.4rem; }
.memo-rec p { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.memo-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.1rem; }
.memo-spec div { border-top: 2px solid var(--ink); padding-top: 0.5rem; }
.memo-spec dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.memo-spec dd { font-size: 14.5px; font-weight: 600; margin-top: 0.15rem; }

/* pipeline canvas */
.canvas-stage { position: relative; }
.canvas-stage::before {
	content: "";
	position: absolute; inset: 12% 4%;
	background: linear-gradient(135deg, var(--mint-soft), var(--pink-soft));
	filter: blur(40px);
}
.canvas {
	position: relative;
	background:
		radial-gradient(var(--ink-trace) 1px, transparent 1.5px) 0 0 / 22px 22px,
		var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-md);
	box-shadow: 0 1px 2px oklch(0.155 0.012 280 / 0.05), 0 20px 50px -20px oklch(0.155 0.012 280 / 0.22);
	padding: 2rem 1.6rem;
	overflow: hidden;
}
.canvas-toolbar { display: flex; gap: 0.4rem; margin-bottom: 1.6rem; }
.canvas-toolbar span {
	font-family: var(--mono); font-size: 10.5px;
	border: 1px solid var(--ink-line); background: var(--paper);
	color: var(--ink-soft);
	padding: 0.3rem 0.65rem; border-radius: 99px;
}
.canvas-toolbar .on { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.node-row { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; row-gap: 1rem; }
.node {
	background: var(--paper);
	border: 1px solid var(--ink-line-strong);
	border-radius: 10px;
	padding: 0.55rem 0.75rem;
	box-shadow: 0 2px 8px -2px oklch(0.155 0.012 280 / 0.08);
	white-space: nowrap;
}
.node .n-sys { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); display: flex; align-items: center; gap: 0.35rem; }
.node .n-sys::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--ink-faint); }
.node .n-name { font-size: 12.5px; font-weight: 600; margin-top: 0.25rem; letter-spacing: -0.01em; }
.node.live { border-color: oklch(0.56 0.15 158 / 0.55); box-shadow: 0 0 0 3px var(--mint-soft), 0 2px 8px -2px oklch(0.155 0.012 280 / 0.08); }
.node.live .n-sys { color: var(--mint-deep); }
.node.live .n-sys::before { background: var(--mint); border-radius: 50%; animation: pulse 2.4s infinite var(--ease); }
.node.pink-acc .n-sys { color: var(--pink-deep); }
.node.pink-acc .n-sys::before { background: var(--pink); border-radius: 50%; }
.edge { flex: 1 1 18px; min-width: 12px; max-width: 90px; height: 1px; background: var(--ink-line-strong); position: relative; }
.edge::after { content: ""; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left-color: var(--ink-line-strong); }
.edge .packet { position: absolute; top: -2.5px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: travel 2.8s infinite var(--ease-fast); }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.canvas-branch { display: flex; justify-content: center; margin-top: 0.4rem; }
.branch-stem { width: 1px; height: 26px; background: var(--ink-line-strong); margin: 0 auto; }
.canvas-log {
	margin-top: 1.4rem;
	font-family: var(--mono); font-size: 11px; line-height: 1.7;
	color: var(--ink-soft);
	background: var(--paper-tile);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-sm);
	padding: 0.8rem 1rem;
}
.canvas-log .ok { color: var(--mint-deep); }
.canvas-log .t { color: var(--ink-faint); }

/* ---------- comparison ---------- */
.versus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .versus-grid { grid-template-columns: 1fr; } }
.versus-col {
	background: var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-md);
	padding: 1.7rem 1.7rem 1.9rem;
}
.versus-col h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.versus-col.bad h3 { color: var(--ink-soft); }
.versus-col li { display: flex; gap: 0.7rem; font-size: 14.5px; line-height: 1.5; padding: 0.65rem 0; border-top: 1px dashed var(--ink-trace); }
.versus-col li::before {
	flex: 0 0 auto;
	width: 19px; height: 19px; border-radius: 50%;
	font-size: 11px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
	margin-top: 0.1em;
}
.versus-col.bad li { color: var(--ink-soft); }
.versus-col.bad li::before { content: "✕"; background: var(--pink-soft); color: var(--pink-deep); }
.versus-col.good { border-color: oklch(0.56 0.15 158 / 0.35); }
.versus-col.good li::before { content: "✓"; background: var(--mint-soft); color: var(--mint-deep); }
.versus-close { margin-top: 1.6rem; text-align: center; font-size: 16.5px; }
.versus-close em { font-family: var(--serif); font-style: italic; font-size: 1.1em; }

/* ---------- diagnosis ---------- */
.quiz-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) {
	.quiz-grid { grid-template-columns: 1fr; }
	/* show the result above the questions on mobile so checking a box is visibly answered */
	.quiz-result { order: -1; min-height: 0; position: static; top: auto; }
	.qr-empty { min-height: 0; }
}
.quiz-list { display: flex; flex-direction: column; gap: 0.6rem; }
.quiz-item label {
	display: flex; align-items: flex-start; gap: 0.85rem;
	background: var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-sm);
	padding: 0.9rem 1rem;
	cursor: pointer;
	transition: border-color 160ms var(--ease-fast), background 160ms var(--ease-fast);
	font-size: 14.5px; line-height: 1.5;
}
.quiz-item label:hover { border-color: var(--ink-line-strong); }
.quiz-item input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-num { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); padding-top: 0.2em; font-variant-numeric: tabular-nums; }
.quiz-check {
	margin-left: auto; flex: 0 0 auto;
	width: 20px; height: 20px; border-radius: 6px;
	border: 1.5px solid var(--ink-line-strong);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700; color: transparent;
	transition: all 160ms var(--ease-fast);
	margin-top: 0.1em;
}
.quiz-item.checked label { border-color: oklch(0.56 0.15 158 / 0.5); background: oklch(0.82 0.18 158 / 0.05); }
.quiz-item.checked .quiz-check { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.quiz-item.checked .quiz-check::after { content: "✓"; }

.quiz-result {
	position: sticky; top: 84px;
	background: var(--paper-tile);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-md);
	box-shadow: 0 1px 2px oklch(0.155 0.012 280 / 0.04), 0 16px 40px -22px oklch(0.155 0.012 280 / 0.18);
	padding: 1.5rem 1.5rem 1.6rem;
	min-height: 320px;
	overflow: hidden;
}
.quiz-result .glow {
	position: absolute; inset: auto -30% -50% auto; width: 26rem; height: 26rem;
	background: radial-gradient(circle, var(--mint-soft), transparent 65%);
	filter: blur(36px); pointer-events: none;
}
.qr-empty { display: flex; flex-direction: column; gap: 0.7rem; justify-content: center; min-height: 280px; position: relative; z-index: 1; }
.qr-empty .arrow { font-size: 26px; color: var(--mint-deep); }
.qr-empty p { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); max-width: 38ch; }
.qr-empty p b { color: var(--ink); font-weight: 600; }
.qr-active { display: none; position: relative; z-index: 1; }
.quiz-result.on .qr-empty { display: none; }
.quiz-result.on .qr-active { display: block; }
.qr-cta { width: 100%; justify-content: center; margin-top: 1.2rem; }

/* Results ledger (work.html + homepage strip) */
.results-group { margin-top: clamp(1.6rem, 3.5vw, 2.6rem); }
.results-group .rail-label { margin-bottom: 0.55rem; }
.result-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-line-strong); }
.result-row { display: grid; grid-template-columns: 0.82fr 1.7fr 0.92fr; gap: 1.6rem; align-items: baseline; padding: 1.05rem 0; border-bottom: 1px solid var(--ink-line); }
.rr-who { font-weight: 600; font-size: 15px; color: var(--ink); }
.rr-who span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.18rem; }
.rr-what { font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }
.rr-metric { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--ink-faint); }
.rr-metric b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.rr-metric b.hot { color: var(--mint-deep); }
.rr-metric span { display: block; font-size: 10.5px; letter-spacing: 0.03em; color: var(--ink-faint); margin-top: 0.25rem; }
@media (max-width: 760px) {
	.result-row { grid-template-columns: 1fr; gap: 0.3rem; padding: 0.95rem 0; }
	.rr-metric { text-align: left; margin-top: 0.15rem; }
}
.qr-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--ink-line); }
.qr-top .rail-label { margin: 0; }
.qr-count { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--mint-deep); font-weight: 600; }
.qr-count em { font-style: normal; font-weight: 400; color: var(--ink-faint); }
.qr-name { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 0.45rem; }
.qr-desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 1rem; }
.qr-examples { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.qr-examples li {
	font-family: var(--mono); font-size: 10.5px;
	border: 1px solid var(--ink-line);
	background: var(--paper);
	color: var(--ink-soft);
	padding: 0.3rem 0.6rem; border-radius: 99px;
}
.qr-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.1rem; }
.qr-spec div { border-top: 2px solid var(--ink); padding-top: 0.5rem; }
.qr-spec dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.qr-spec dd { font-size: 14.5px; font-weight: 600; margin-top: 0.15rem; color: var(--mint-deep); }
.qr-looks { font-size: 13px; line-height: 1.55; color: var(--ink-soft); border-top: 1px solid var(--ink-line); padding-top: 0.9rem; }
/* result changed cue (desktop) */
.quiz-result.pulse { animation: qr-pulse 420ms var(--ease-fast); }
@keyframes qr-pulse { 0% { border-color: var(--mint); } 100% { border-color: var(--ink-line); } }
/* "also worth a look" queue beneath the rich top result */
.qr-stack { display: flex; flex-direction: column; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--ink-line); }
.qr-stack-label { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.6rem; }
.qr-row { border-top: 1px dashed var(--ink-line); padding: 0.85rem 0; }
.qr-row:first-child { border-top: 0; padding-top: 0; }
.qr-row:last-child { padding-bottom: 0; }
.qr-row-head { display: flex; align-items: baseline; gap: 0.6rem; }
.qr-row-name { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.qr-row-tag { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint-deep); background: var(--mint-soft); padding: 0.18rem 0.5rem; border-radius: 99px; white-space: nowrap; margin-left: auto; }
.qr-row-looks { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin-top: 0.4rem; }
.qr-row-spec { display: flex; gap: 1rem; margin-top: 0.5rem; }
.qr-row-spec span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); }
.qr-row-spec b { color: var(--mint-deep); font-weight: 600; }

/* ---------- timeline ---------- */
.timeline { border-top: 1px solid var(--ink-line); }
.tl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
@media (max-width: 800px) { .tl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tl-grid { grid-template-columns: 1fr; } }
.tl-step { position: relative; padding-top: 1.3rem; }
.tl-step::before {
	content: "";
	position: absolute; top: 0; left: 0; right: -1.4rem; height: 1px;
	background: var(--ink-line-strong);
}
.tl-step:last-child::before { right: 0; }
.tl-step::after {
	content: "";
	position: absolute; top: -4px; left: 0;
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--mint);
	box-shadow: 0 0 0 3px var(--mint-soft);
}
.tl-step:nth-child(even)::after { background: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.tl-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.tl-text { margin-top: 0.5rem; font-size: 14.5px; line-height: 1.55; color: var(--ink); max-width: 30ch; }
.tl-text em { font-family: var(--serif); font-style: italic; font-size: 1.06em; }

/* ---------- lab notes cards ---------- */
.notes-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.notes-count { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.notes-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .notes-grid, .notes-grid.two { grid-template-columns: 1fr; } }
.note-card {
	background: var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-md);
	padding: 1.5rem;
	display: flex; flex-direction: column; gap: 0.7rem;
	transition: border-color 180ms var(--ease-fast), transform 240ms var(--ease);
}
.note-card:hover { border-color: var(--ink-line-strong); transform: translateY(-2px); }
.note-card h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.note-card h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.08em; }
.note-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.note-meta { margin-top: auto; padding-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; }
.note-status { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-deep); background: var(--pink-soft); padding: 0.25rem 0.6rem; border-radius: 99px; }
.note-status.live { color: var(--mint-deep); background: var(--mint-soft); }
/* Risk severity ramp (Option C — pink intensity; mint reserved for resolved/low). */
.sev { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 99px; white-space: nowrap; border: 1px solid transparent; }
.sev-high { color: oklch(0.43 0.21 350); background: oklch(0.66 0.27 350 / 0.24); }
.sev-med { color: oklch(0.50 0.20 350); background: oklch(0.66 0.27 350 / 0.13); }
.sev-unknown { color: var(--ink-soft); background: transparent; border-color: var(--ink-line); }
.sev-low { color: var(--mint-deep); background: var(--mint-soft); }
.note-date { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

/* ---------- service explorer (services page tabs) ---------- */
.svc-explorer { max-width: 980px; margin: 0 auto; scroll-margin-top: 100px; }
.svc-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.1rem; }
.svc-tab {
	font-family: var(--display);
	font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.55rem 1.05rem;
	border: 1px solid var(--ink-line);
	border-radius: 99px;
	background: var(--paper);
	color: var(--ink-soft);
	cursor: pointer;
	transition: border-color 160ms var(--ease-fast), background 160ms var(--ease-fast), color 160ms var(--ease-fast);
}
.svc-tab .num { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.svc-tab:hover { border-color: var(--ink-line-strong); color: var(--ink); }
.svc-tab.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.svc-tab.on .num { color: var(--mint); }
.svc-stage { position: relative; }
.svc-card {
	position: relative;
	background: var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-lg);
	box-shadow: 0 1px 2px oklch(0.155 0.012 280 / 0.05), 0 24px 60px -24px oklch(0.155 0.012 280 / 0.22);
	padding: clamp(1.6rem, 3.5vw, 2.6rem);
	overflow: hidden;
	min-height: 340px;
}
.svc-pane { display: none; }
.svc-pane.on { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 3.5vw, 2.8rem); animation: rise 420ms var(--ease); }
@media (max-width: 820px) { .svc-pane.on { grid-template-columns: 1fr; } }
.svc-pane .tile-tag { margin-bottom: 1rem; }
.svc-pane .h3 { margin-bottom: 0.9rem; }
.svc-pane .h3 em {
	background: linear-gradient(120deg, oklch(0.82 0.18 158 / 0.16), oklch(0.66 0.27 350 / 0.14)) no-repeat 0 90% / 100% 0.32em;
	padding-inline: 0.05em;
}
.svc-pane .lede { font-size: 15.5px; }
.svc-pane .svc-list { margin-top: 1.3rem; max-width: none; }
.svc-pane .svc-list li { padding: 0.5rem 0; font-size: 14px; }
.svc-rail {
	background: var(--paper-tile);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-md);
	padding: 1.4rem 1.4rem 1.5rem;
	align-self: start;
}
.svc-rail .svc-spec { grid-template-columns: 1fr; gap: 0.9rem; margin-top: 0; }
.svc-rail .btn { margin-top: 1.4rem; width: 100%; justify-content: center; }

/* ---------- service blocks (services page) ---------- */
.svc-block { display: grid; grid-template-columns: 200px 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--ink-line); scroll-margin-top: 90px; }
@media (max-width: 800px) { .svc-block { grid-template-columns: 1fr; } }
.svc-meta { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.svc-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.svc-body .h2 { margin-bottom: 1rem; }
.svc-body .lede { font-size: 16px; }
.svc-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; max-width: 540px; }
@media (max-width: 560px) { .svc-spec { grid-template-columns: 1fr; } }
.svc-spec div { border-top: 2px solid var(--ink); padding-top: 0.55rem; }
.svc-spec dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.svc-spec dd { font-size: 14.5px; line-height: 1.45; margin-top: 0.2rem; }
.svc-spec dd b { font-weight: 600; }
.svc-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.2rem; max-width: 60ch; }
.svc-list li { display: flex; gap: 0.65rem; padding: 0.6rem 0; border-top: 1px dashed var(--ink-trace); font-size: 14.5px; line-height: 1.5; }
.svc-list li::before {
	content: "✓";
	flex: 0 0 auto;
	width: 19px; height: 19px; border-radius: 50%;
	background: var(--mint-soft); color: var(--mint-deep);
	font-size: 11px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
	margin-top: 0.1em;
}
.svc-list li span { display: block; }
.svc-list li .sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 0.1rem; }
.svc-body .link-fwd { margin-top: 1.6rem; }

/* ---------- numbered principles (about + work) ---------- */
.num-list { display: flex; flex-direction: column; }
.num-item { display: grid; grid-template-columns: 88px 1fr; gap: 1.5rem; padding: 1.8rem 0; border-top: 1px solid var(--ink-line); }
@media (max-width: 640px) { .num-item { grid-template-columns: 48px 1fr; gap: 1rem; } }
.num-mark {
	font-family: var(--mono); font-size: 13px; font-weight: 600;
	color: var(--mint-deep); font-variant-numeric: tabular-nums;
	padding-top: 0.35rem;
}
.num-item:nth-child(even) .num-mark { color: var(--pink-deep); }
.num-item h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 0.5rem; }
.num-item h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.08em; }
.num-item p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; max-width: 64ch; }

/* ---------- prose / origin ---------- */
.prose-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 800px) { .prose-grid { grid-template-columns: 1fr; } }
.prose p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 65ch; }
.prose p + p { margin-top: 1.1rem; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-family: var(--serif); font-style: italic; font-size: 1.07em; color: var(--ink); }

/* ---------- founder card ---------- */
.founder { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 800px) { .founder { grid-template-columns: 1fr; } }
.founder-card {
	background: var(--paper-tile);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-md);
	padding: 2rem 1.8rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.founder-card::after {
	content: "";
	position: absolute; inset: auto -40% -60% auto; width: 20rem; height: 20rem;
	background: radial-gradient(circle, var(--mint-soft), transparent 65%);
	filter: blur(30px); pointer-events: none;
}
.founder-glyph {
	width: 84px; height: 84px; border-radius: 50%;
	margin: 0 auto 1.2rem;
	background: var(--paper);
	border: 1px solid var(--ink-line-strong);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--serif); font-style: italic; font-size: 40px;
	position: relative;
}
.founder-glyph::after {
	content: "";
	position: absolute; top: 10px; right: 14px;
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--mint);
	box-shadow: 0 0 0 3px var(--mint-soft);
}
.founder-photo {
	width: 84px; height: 84px; border-radius: 50%;
	margin: 0 auto 1.2rem;
	object-fit: cover; display: block;
	border: 1px solid var(--ink-line-strong);
}
.founder-link {
	display: inline-block; margin-top: 1rem;
	font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
	color: var(--mint-deep); text-decoration: none;
	border-bottom: 1px solid transparent;
}
.founder-link:hover { border-bottom-color: var(--mint-deep); }
.founder-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.founder-card .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.35rem; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card {
	background: var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-md);
	box-shadow: 0 1px 2px oklch(0.155 0.012 280 / 0.04), 0 16px 40px -22px oklch(0.155 0.012 280 / 0.16);
	padding: clamp(1.5rem, 3vw, 2.2rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.45rem; }
.field label .req { color: var(--pink-deep); }
.field label .opt { color: var(--ink-faint); text-transform: none; letter-spacing: 0.02em; }
.field input[type="text"], .field input[type="email"], .field textarea {
	width: 100%;
	font-family: var(--display);
	font-size: 15px;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--ink-line-strong);
	border-radius: var(--r-sm);
	padding: 0.7rem 0.85rem;
	transition: border-color 160ms var(--ease-fast), box-shadow 160ms var(--ease-fast);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus {
	outline: none;
	border-color: var(--mint-deep);
	box-shadow: 0 0 0 3px oklch(0.82 0.18 158 / 0.25);
}
.field .hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 0.4rem; }
.field .hint b { color: var(--ink-soft); font-weight: 600; }
.pill-group { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill-group input { position: absolute; opacity: 0; pointer-events: none; }
.pill-group label {
	font-family: var(--mono); font-size: 11.5px; font-weight: 500;
	border: 1px solid var(--ink-line); background: var(--paper);
	color: var(--ink-soft);
	padding: 0.4rem 0.8rem; border-radius: 99px;
	cursor: pointer; margin-bottom: 0;
	letter-spacing: 0.02em; text-transform: none;
	transition: border-color 160ms var(--ease-fast), color 160ms var(--ease-fast), background 160ms var(--ease-fast);
}
.pill-group label:hover { border-color: var(--ink-line-strong); color: var(--ink); }
.pill-group input:checked + label { border-color: oklch(0.56 0.15 158 / 0.55); background: oklch(0.82 0.18 158 / 0.08); color: var(--mint-deep); font-weight: 600; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--ink-line); }
.form-foot .micro { font-size: 12.5px; color: var(--ink-faint); max-width: 34ch; line-height: 1.5; }
.form-foot .micro b { color: var(--ink-soft); font-weight: 600; }
.honeypot { position: absolute; left: -9999px; }

/* booking page (Calendly embed) */
.cal-stage { position: relative; }
.cal-stage::before {
	content: "";
	position: absolute; inset: 8% 3%;
	background: linear-gradient(135deg, var(--mint-soft), var(--pink-soft));
	filter: blur(46px);
}
.cal-card {
	position: relative;
	background: var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-lg);
	box-shadow: 0 1px 2px oklch(0.155 0.012 280 / 0.05), 0 24px 60px -24px oklch(0.155 0.012 280 / 0.22);
	overflow: hidden;
}
.calendly-inline-widget { background: var(--paper); }
.cal-fallback { margin-top: 1rem; text-align: center; font-size: 13px; color: var(--ink-faint); line-height: 1.5; }
.cal-fallback a { color: var(--mint-deep); font-weight: 600; }
.cal-fallback a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* contact side rail */
.side-card {
	background: var(--paper-tile);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-md);
	padding: 1.5rem;
}
.side-card + .side-card { margin-top: 1.2rem; }
.side-card .rail-label { margin-bottom: 1rem; }
.side-steps { display: flex; flex-direction: column; }
.side-step { display: grid; grid-template-columns: 92px 1fr; gap: 0.9rem; padding: 0.7rem 0; border-top: 1px dashed var(--ink-trace); font-size: 13.5px; line-height: 1.5; }
.side-step .tl-label { padding-top: 0.1rem; }
.side-step p { color: var(--ink-soft); }
.side-step p em { font-family: var(--serif); font-style: italic; font-size: 1.07em; color: var(--ink); }
.mini-faq dt { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; padding-top: 0.9rem; border-top: 1px dashed var(--ink-trace); }
.mini-faq dd { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0.35rem 0 0.9rem; }

/* ---------- FAQ grid ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.5rem); }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item { border-top: 1px solid var(--ink-line); padding-top: 1.1rem; }
.faq-item h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 0.5rem; }
.faq-item h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.08em; }
.faq-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- final CTA ---------- */
.finale {
	background: var(--paper);
	position: relative;
	overflow: hidden;
	padding: clamp(4.5rem, 9vw, 7rem) 0;
	border-top: 1px solid var(--ink-line);
}
.finale::before {
	content: "";
	position: absolute; top: -1px; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--mint-deep) 30%, var(--pink-bright) 70%, transparent);
	opacity: 0.4;
}
.finale::after {
	content: "";
	position: absolute; inset: 0;
	background:
		radial-gradient(40rem 24rem at 12% 110%, var(--mint-soft), transparent 65%),
		radial-gradient(44rem 26rem at 88% -10%, var(--pink-soft), transparent 65%);
	pointer-events: none;
}
.finale .wrap { position: relative; z-index: 1; text-align: center; }
.finale .h2 { margin-top: 1rem; }
.finale .lede { margin: 1.2rem auto 0; }
.finale .btn { margin-top: 2rem; }
.finale-micro { margin-top: 1.2rem; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-tile); border-top: 1px solid var(--ink-line); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 38px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 13.5px; color: var(--ink-soft); max-width: 30ch; line-height: 1.55; }
.footer-brand p em { font-family: var(--serif); font-style: italic; font-size: 1.07em; }
.footer-col h4 { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.9rem; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); }
.footer-bar {
	margin-top: 3rem; padding-top: 1.4rem;
	border-top: 1px solid var(--ink-line);
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	font-size: 13px; color: var(--ink-faint);
}
.footer-bar .mono { font-family: var(--mono); font-size: 11.5px; }

/* ---------- sales landing page ---------- */
.lp-hero { position: relative; padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.lp-hero .hero-wash { inset: -30% -10% auto; height: 160%; }
.lp-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .lp-hero-grid { grid-template-columns: 1fr; } }
.lp-hero .ph-title { max-width: 17ch; }
.lp-token {
	background: oklch(0.66 0.27 350 / 0.1);
	border-bottom: 2px dashed oklch(0.66 0.27 350 / 0.45);
	padding: 0 0.15em;
	border-radius: 4px;
}
.cta-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 70;
	background: oklch(0.995 0.003 70 / 0.88);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	border-top: 1px solid var(--ink-line);
	padding: 0.65rem 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.2rem;
	transform: translateY(105%);
	transition: transform 320ms var(--ease);
}
.cta-bar.show { transform: translateY(0); }
.cta-bar .cta-bar-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); }
.cta-bar .cta-bar-note b { color: var(--pink-deep); font-weight: 600; }
@media (max-width: 560px) { .cta-bar .cta-bar-note { display: none; } }
.lp-offer-card {
	background: var(--paper);
	border: 1px solid oklch(0.56 0.15 158 / 0.35);
	border-radius: var(--r-lg);
	box-shadow: 0 1px 2px oklch(0.155 0.012 280 / 0.05), 0 24px 60px -24px oklch(0.155 0.012 280 / 0.22);
	padding: clamp(1.6rem, 3vw, 2.4rem);
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: clamp(1.5rem, 3vw, 2.8rem);
	position: relative;
	overflow: hidden;
}
@media (max-width: 820px) { .lp-offer-card { grid-template-columns: 1fr; } }
.lp-offer-card::after {
	content: "";
	position: absolute; inset: auto -25% -45% auto; width: 22rem; height: 22rem;
	background: radial-gradient(circle, var(--mint-soft), transparent 65%);
	filter: blur(36px); pointer-events: none;
}
.lp-foot {
	border-top: 1px solid var(--ink-line);
	padding: 1.6rem 0 5.5rem;
	background: var(--paper-tile);
}
.lp-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); }
.lp-foot .mono { font-family: var(--mono); font-size: 11.5px; }
.lp-foot img { height: 26px; width: auto; }

/* ============================================================
   v7.1 design pass — hero artifacts + finale variants
   ============================================================ */

/* page hero with a right-hand artifact */
.page-hero.split .ph-grid {
	display: grid;
	grid-template-columns: 1.04fr 0.96fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.page-hero.split .ph-copy .lede { margin-top: 1.2rem; }
@media (max-width: 920px) {
	.page-hero.split .ph-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* generic framed artifact card (hero + finale visuals) */
.art-stage { position: relative; }
.art-stage::before {
	content: "";
	position: absolute; inset: 10% 4%;
	background: linear-gradient(135deg, var(--mint-soft), var(--pink-soft));
	filter: blur(46px);
}
.art-card {
	position: relative;
	background: var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-lg);
	box-shadow: 0 1px 2px oklch(0.155 0.012 280 / 0.05), 0 22px 55px -26px oklch(0.155 0.012 280 / 0.22);
	overflow: hidden;
}
.art-head {
	display: flex; align-items: center; gap: 0.55rem;
	padding: 0.7rem 1.1rem;
	border-bottom: 1px solid var(--ink-line);
	background: var(--paper-tile);
	font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft);
}
.art-head .dots { display: flex; gap: 6px; margin-right: 0.4rem; }
.art-head .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-trace); }
.art-head b { color: var(--ink); font-weight: 600; }
.art-body { padding: 1.3rem 1.3rem 1.45rem; }

/* services hero — scoping router */
.router-prompt {
	font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
	text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.7rem;
}
.router-situations { display: grid; gap: 0.4rem; }
.rsit {
	font-family: var(--display); font-size: 13px; font-weight: 500; text-align: left;
	border: 1px solid var(--ink-line); background: var(--paper); color: var(--ink-soft);
	padding: 0.55rem 0.7rem 0.55rem 1.65rem; border-radius: var(--r-sm);
	cursor: pointer; position: relative;
	transition: border-color 160ms var(--ease-fast), background 160ms var(--ease-fast), color 160ms var(--ease-fast);
}
.rsit::before {
	content: ""; position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%);
	width: 7px; height: 7px; border-radius: 50%;
	border: 1px solid var(--ink-line-strong); background: transparent;
	transition: background 160ms var(--ease-fast), border-color 160ms var(--ease-fast);
}
.rsit:hover { border-color: var(--ink-line-strong); color: var(--ink); }
.rsit:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.rsit.on { border-color: var(--ink); color: var(--ink); background: var(--paper-tile); }
.rsit.on::before { background: var(--mint); border-color: var(--mint); }
.router-stem { width: 1px; height: 18px; background: var(--ink-line-strong); margin: 0.5rem auto; }
.router-out { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); text-align: center; margin-bottom: 0.55rem; }
.router-result {
	display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
	text-decoration: none; border: 1px solid var(--mint); border-radius: var(--r-sm);
	padding: 0.65rem 0.85rem; background: oklch(0.82 0.18 158 / 0.08);
	transition: border-color 160ms var(--ease-fast), background 160ms var(--ease-fast);
}
.router-result:hover { border-color: var(--mint-deep); background: oklch(0.82 0.18 158 / 0.14); }
.router-result:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.router-shape { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.router-go { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em; color: var(--mint-deep); display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }

/* about hero — "shape of the problem" cluster */
.shape-cluster { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.shape-chip {
	border: 1px solid var(--ink-line-strong);
	border-radius: var(--r-sm);
	background: var(--paper);
	padding: 0.7rem 0.9rem;
	box-shadow: 0 2px 10px -4px oklch(0.155 0.012 280 / 0.1);
}
.shape-chip .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 0.25rem; }
.shape-chip .v { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.shape-chip.lg { padding: 0.9rem 1.1rem; }
.shape-chip.lg .v { font-size: 16.5px; }
.shape-chip.mint { border-color: oklch(0.56 0.15 158 / 0.5); }
.shape-chip.mint .k { color: var(--mint-deep); }
.shape-chip.pink { border-color: oklch(0.54 0.25 350 / 0.4); }
.shape-chip.pink .k { color: var(--pink-deep); }

/* lab notes hero — index card */
.idx-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0.85rem; align-items: center; padding: 0.65rem 0; border-top: 1px dashed var(--ink-trace); }
.idx-row:first-child { border-top: 0; padding-top: 0; }
.idx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.idx-dot.q { background: var(--ink-faint); box-shadow: none; }
.idx-title { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.idx-meta { font-family: var(--mono); font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; }

/* ---------- finale variants ---------- */
.finale-row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .finale-row { grid-template-columns: 1fr; gap: 2.2rem; } }

/* split + aside share left-aligned copy */
.finale--split .wrap, .finale--aside .wrap { text-align: left; }
.finale--split .lede, .finale--aside .lede { margin: 1.2rem 0 0; max-width: 54ch; }
.finale--split .btn, .finale--aside .btn { margin-top: 1.6rem; }

/* aside: copy left + quick-links panel (Services) */
.finale-panel { background: var(--paper); border: 1px solid var(--ink-line); border-radius: var(--r-md); padding: 1.4rem 1.5rem; }
.finale-panel .rail-label { margin-bottom: 1rem; }
.finale-links a { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0; border-top: 1px dashed var(--ink-trace); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.finale-links a:first-child { border-top: 0; padding-top: 0; }
.finale-links a .n { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.finale-links a::after { content: "→"; color: var(--mint-deep); margin-left: auto; transition: transform 160ms var(--ease-fast); }
.finale-links a:hover::after { transform: translateX(3px); }

/* banner: full-width horizontal card (Lab Notes) */
.finale--banner::after { display: none; }
.finale-banner-card {
	position: relative;
	background: linear-gradient(120deg, oklch(0.82 0.18 158 / 0.1), oklch(0.66 0.27 350 / 0.08)), var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-lg);
	padding: clamp(1.8rem, 4vw, 2.8rem);
	display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
	text-align: left;
}
@media (max-width: 760px) { .finale-banner-card { grid-template-columns: 1fr; gap: 1.4rem; } }
.finale-banner-card .lede { margin: 0.7rem 0 0; }
.finale-banner-card .btn { flex: 0 0 auto; }

/* quiet: minimal left-aligned strip (About) */
.finale--quiet { padding: clamp(3rem, 5vw, 4rem) 0; background: var(--paper-tile); }
.finale--quiet::after { display: none; }
.finale--quiet .wrap { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.finale--quiet .fq-lead { max-width: 56ch; }
.finale--quiet .h2 { margin-top: 0.6rem; font-size: clamp(24px, 3vw, 34px); }
.finale--quiet .lede { margin: 0.8rem 0 0; }
.finale--quiet .btn { margin-top: 0; flex: 0 0 auto; }

/* ---------- skip link (keyboard a11y) ---------- */
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--ink); color: var(--paper);
	padding: 0.7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
	font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* Global keyboard focus ring for every interactive element (ink reads on paper and on the mint CTA). */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* ---------- ECI ladder (Educate / Audit / Build) ---------- */
.eci { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 820px) { .eci { grid-template-columns: 1fr; } }
.eci-step {
	background: var(--paper);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-md);
	padding: 1.6rem;
	display: flex; flex-direction: column;
	transition: border-color 180ms var(--ease-fast), transform 240ms var(--ease);
}
.eci-step:hover { border-color: var(--ink-line-strong); transform: translateY(-2px); }
.eci-step .sn { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint-deep); display: inline-flex; align-items: center; gap: 0.5rem; }
.eci-step:nth-child(2) .sn { color: var(--pink-deep); }
.eci-step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0.6rem 0; }
.eci-step h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.06em; }
.eci-step > p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.eci-step .out { margin-top: auto; padding-top: 1rem; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.eci-step .out span { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 0.3rem; }
.eci-step .out b { color: var(--ink); font-weight: 600; }
.eci-step .guar { margin-top: 0.85rem; font-size: 12px; color: var(--mint-deep); font-weight: 600; display: flex; gap: 0.4rem; align-items: baseline; }
.eci-step .guar::before { content: "✓"; }

/* "what we build inside it" tag strip */
.build-strip { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; }
.build-strip .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-right: 0.4rem; }
.build-strip .t { font-family: var(--mono); font-size: 12px; border: 1px solid var(--ink-line); background: var(--paper); color: var(--ink-soft); padding: 0.4rem 0.75rem; border-radius: 99px; }

/* ---------- specialized practices (homepage) ---------- */
.practices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .practices { grid-template-columns: 1fr; } }
.practice {
	background: var(--paper-tile);
	border: 1px solid var(--ink-line);
	border-radius: var(--r-md);
	padding: 1.6rem 1.7rem 1.7rem;
	display: flex; flex-direction: column; gap: 0.5rem;
	position: relative; overflow: hidden;
	transition: border-color 180ms var(--ease-fast), transform 240ms var(--ease);
}
.practice:hover { border-color: var(--ink-line-strong); transform: translateY(-2px); }
.practice::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 18rem; height: 18rem; background: radial-gradient(circle, var(--mint-soft), transparent 65%); pointer-events: none; }
.practice:nth-child(2)::after { background: radial-gradient(circle, var(--pink-soft), transparent 65%); }
.practice > * { position: relative; }
.practice .pt { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint-deep); }
.practice:nth-child(2) .pt { color: var(--pink-deep); }
.practice h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.practice h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.06em; }
.practice p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.practice .who { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 0.2rem; }
.practice .link-fwd { margin-top: auto; padding-top: 0.9rem; font-size: 14px; }

/* ---------- mobile nav ---------- */
.nav-toggle { display: none; }
.mobile-nav { display: none; }
@media (max-width: 1000px) {
	.nav-toggle {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 42px; height: 38px; flex: 0 0 auto;
		background: transparent; border: 1px solid var(--ink-line-strong); border-radius: var(--r-sm);
		padding: 0 9px; cursor: pointer;
	}
	.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 200ms var(--ease), opacity 160ms var(--ease-fast); }
	.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.site-header.nav-open .mobile-nav { display: block; }
	.mobile-nav {
		border-top: 1px solid var(--ink-line);
		background: oklch(0.995 0.003 70 / 0.98);
		backdrop-filter: saturate(140%) blur(14px);
		-webkit-backdrop-filter: saturate(140%) blur(14px);
	}
	.mobile-nav-inner { display: flex; flex-direction: column; padding: 0.4rem clamp(1.25rem, 4vw, 2.5rem) 1.3rem; }
	.mobile-nav-inner a { padding: 0.95rem 0; font-size: 16px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--ink-line); }
	.mobile-nav-inner a.active { color: var(--mint-deep); }
	.mobile-nav-inner a.btn { margin-top: 1rem; justify-content: center; border-bottom: 0; font-size: 15px; }
}

/* ---------- mobile refinements ---------- */
@media (max-width: 640px) {
	.hero-eyebrow { flex-wrap: wrap; justify-content: center; row-gap: 0.25rem; }
	.hero-eyebrow span { white-space: nowrap; }
	.console-bar { flex-wrap: nowrap; }
	.console-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
	.console-title .ct-extra { display: none; }
	.console-tabs { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
	.reveal, .step, .io, html.js .io { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}
