/* ==========================================================================
   Omega Networks — main stylesheet
   Dark-first, light theme via prefers-color-scheme or [data-theme].
   ========================================================================== */

:root {
	/* Brand palette */
	--brand-darkest: #102733;
	--brand-dark: #193140;
	--brand-offset: #73b2be;
	--brand-mid: #27658b;
	--brand-light: #3489bf;
	--brand-white: #ffffff;
	--brand-black: #000000;

	--bg: var(--brand-darkest);
	--bg-2: #0c1f29;
	--surface: var(--brand-dark);
	--surface-2: #1f3b4c;
	--line: rgba(255, 255, 255, 0.08);
	--line-2: rgba(255, 255, 255, 0.15);
	--text: var(--brand-white);
	--text-2: #c4d4dd;
	--muted: #8ca5b3;
	--accent: var(--brand-offset);
	--accent-2: var(--brand-light);
	--accent-ink: var(--brand-darkest);
	--accent-soft: rgba(115, 178, 190, 0.14);
	--warn: #f5b85a;
	--grad: linear-gradient(100deg, var(--brand-offset) 0%, var(--brand-light) 100%);
	--shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 60px -20px rgba(0, 0, 0, 0.55);
	--glow: radial-gradient(60% 60% at 50% 0%, rgba(52, 137, 191, 0.28), transparent 70%);

	--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--radius: 16px;
	--radius-sm: 10px;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 68px;

	color-scheme: dark;
}

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		--bg: #f4f8fa;
		--bg-2: #e9f0f4;
		--surface: var(--brand-white);
		--surface-2: #eef4f7;
		--line: rgba(16, 39, 51, 0.09);
		--line-2: rgba(16, 39, 51, 0.18);
		--text: var(--brand-darkest);
		--text-2: #33505f;
		--muted: #5b7482;
		--accent: var(--brand-mid);
		--accent-2: var(--brand-light);
		--accent-ink: var(--brand-white);
		--accent-soft: rgba(39, 101, 139, 0.1);
		--warn: #b8700e;
		--grad: linear-gradient(100deg, var(--brand-mid) 0%, var(--brand-light) 100%);
		--shadow: 0 1px 2px rgba(16, 39, 51, 0.05), 0 16px 40px -20px rgba(16, 39, 51, 0.22);
		--glow: radial-gradient(60% 60% at 50% 0%, rgba(115, 178, 190, 0.22), transparent 70%);
		color-scheme: light;
	}
}

:root[data-theme="light"] {
	--bg: #f4f8fa;
	--bg-2: #e9f0f4;
	--surface: var(--brand-white);
	--surface-2: #eef4f7;
	--line: rgba(16, 39, 51, 0.09);
	--line-2: rgba(16, 39, 51, 0.18);
	--text: var(--brand-darkest);
	--text-2: #33505f;
	--muted: #5b7482;
	--accent: var(--brand-mid);
	--accent-2: var(--brand-light);
	--accent-ink: var(--brand-white);
	--accent-soft: rgba(39, 101, 139, 0.1);
	--warn: #b8700e;
	--grad: linear-gradient(100deg, var(--brand-mid) 0%, var(--brand-light) 100%);
	--shadow: 0 1px 2px rgba(16, 39, 51, 0.05), 0 16px 40px -20px rgba(16, 39, 51, 0.22);
	--glow: radial-gradient(60% 60% at 50% 0%, rgba(115, 178, 190, 0.22), transparent 70%);
	color-scheme: light;
}

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

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }

.mono { font-family: var(--mono); letter-spacing: 0; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.center { text-align: center; justify-content: center; }
.spacer { height: clamp(40px, 8vw, 100px); }

/* ---------- Type scale ---------- */

.display { font-size: clamp(2.5rem, 6.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 650; }
.h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.h4 { font-size: 1.15rem; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--text-2); max-width: 44em; line-height: 1.55; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 24px; padding: 6px 14px 6px 10px; max-width: 100%;
	border: 1px solid var(--line-2); border-radius: 14px;
	background: color-mix(in srgb, var(--surface) 70%, transparent);
	font-family: var(--mono); font-size: 0.78rem; color: var(--text-2);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.kicker { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 14px; }
.tag {
	display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
	font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
	color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.num { font-size: 0.8rem; color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 28px; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; padding: 0 22px; border-radius: 999px;
	font-weight: 560; font-size: 0.98rem; white-space: nowrap;
	border: 1px solid transparent; cursor: pointer;
	transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, white); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 560; margin-top: 24px; }

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

.site-header {
	position: sticky; top: 0; z-index: 50; height: var(--header-h);
	background: color-mix(in srgb, var(--bg) 72%, transparent);
	backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
	border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-row { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.02em; }
.brand-mark {
	width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
	background: var(--surface); border: 1px solid var(--line-2); color: var(--accent);
}
.brand-logo, .cta-logo { display: inline-block; flex: none; }
.brand-logo img, .cta-logo img { width: 36px; height: 36px; }
.cta-logo { margin-bottom: 24px; }
.cta-logo img { width: 56px; height: 56px; }
.logo-on-light { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .logo-on-light { display: block; } :root:not([data-theme="dark"]) .logo-on-dark { display: none; } }
:root[data-theme="light"] .logo-on-light { display: block; }
:root[data-theme="light"] .logo-on-dark { display: none; }
.brand-logo + .brand-name { margin-left: 2px; }
.brand-name { font-size: 1.08rem; display: inline-flex; align-items: baseline; gap: 6px; }
.brand-sub { font-weight: 450; color: var(--muted); }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav a {
	display: block; padding: 8px 12px; border-radius: 8px;
	font-size: 0.93rem; color: var(--text-2); transition: color .15s, background .15s;
}
.primary-nav a:hover { color: var(--text); background: var(--surface); }
.primary-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
	width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
	border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--text); background: var(--surface); }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: block; } :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: none; } }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.nav-toggle span { display: block; flex: none; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.nav-open .nav-toggle span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

@media (max-width: 1040px) {
	.nav-toggle { display: flex; }
	.primary-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
		background: var(--bg); border-bottom: 1px solid var(--line);
		padding: 12px var(--gutter) 24px;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.nav-open .primary-nav { transform: none; opacity: 1; visibility: visible; }
	.primary-nav ul { flex-direction: column; }
	.primary-nav a { padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav-actions { margin-left: auto; }
}
@media (max-width: 520px) { .nav-cta { display: none; } .brand-name { font-size: 1rem; } }
@media (max-width: 340px) { .brand-sub { display: none; } }

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

.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 80%; background: var(--glow); pointer-events: none; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-color: var(--line-2);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='51.96' height='90.00' viewBox='0 0 51.96 90.00'%3E%3Cpath d='M25.98 0L51.96 15.00L51.96 45.00L25.98 60.00L0 45.00L0 15.00ZM25.98 60.00L25.98 90.00' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E"), radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='51.96' height='90.00' viewBox='0 0 51.96 90.00'%3E%3Cpath d='M25.98 0L51.96 15.00L51.96 45.00L25.98 60.00L0 45.00L0 15.00ZM25.98 60.00L25.98 90.00' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E"), radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
	-webkit-mask-size: 51.96px 90.00px, 100% 100%;
	mask-size: 51.96px 90.00px, 100% 100%;
	-webkit-mask-repeat: repeat, no-repeat;
	mask-repeat: repeat, no-repeat;
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
	opacity: .35;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .display { max-width: 12.5em; margin-bottom: 28px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Console mock */
.console, .dash {
	border-radius: var(--radius); border: 1px solid var(--line-2);
	background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
	box-shadow: var(--shadow); overflow: hidden;
}
.console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.console-title { font-size: 0.75rem; color: var(--muted); }
.console-body { padding: 18px; display: grid; gap: 14px; }

.topo, .span-diagram { width: 100%; height: auto; }
.topo .links path, .span-diagram .links path { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.topo .pulse-links path { stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0.01 200; stroke-dashoffset: 1; opacity: 0; animation: flow 4.8s linear infinite; }
.topo .pulse-links path:nth-child(2) { animation-delay: .8s; }
.topo .pulse-links path:nth-child(3) { animation-delay: 1.6s; }
.topo .pulse-links path:nth-child(4) { animation-delay: 2.4s; }
.topo .pulse-links path:nth-child(5) { animation-delay: 3.2s; }
.topo .pulse-links path:nth-child(6) { animation-delay: 4s; }
@keyframes flow {
	0% { stroke-dashoffset: 0; opacity: 0; }
	8% { opacity: 1; }
	70% { stroke-dashoffset: -100; opacity: 1; }
	78%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
.topo .nodes circle { fill: var(--surface-2); stroke: var(--accent); stroke-width: 1.5; }
.topo .nodes .core { fill: var(--accent); }
.topo .nodes .leaf { stroke: var(--muted); }
.topo .nodes .warn { stroke: var(--warn); }
.topo .labels text, .span-diagram .labels text { fill: var(--muted); font-size: 11px; }
.topo .labels text { fill: var(--text-2); font-size: 12px; }
.topo .labels .area { fill: var(--text); font-size: 12.5px; font-weight: 600; }
.topo .labels .owner { fill: var(--muted); font-size: 10.5px; }
.topo .labels .warn-text { fill: var(--warn); }
.topo .flag-ring { fill: none; stroke: var(--warn); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.hero-visual { margin: 0; }
.console-list li.flagged { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--text); }
.console-list li.flagged em { color: var(--warn); }

.console-list { display: grid; gap: 2px; font-size: 0.8rem; }
.console-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.console-list em { margin-left: auto; font-style: normal; color: var(--muted); }
.s { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.s.ok { background: var(--accent); }
.s.live { background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
.s.nz { background: var(--accent-2); }
.s.warn { background: var(--warn); }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Page hero ---------- */

.page-hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 90%; background: var(--glow); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero .display { max-width: 14em; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { font-family: var(--mono); font-size: 0.78rem; color: var(--text-2); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.chips li::before { content: "✓"; color: var(--accent); margin-right: 8px; }

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

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .h2 + p { margin-top: 16px; color: var(--text-2); }

.statement { padding: clamp(64px, 10vw, 140px) 0; }
.statement-text { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; letter-spacing: -0.025em; font-weight: 550; }

.pull { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -0.02em; line-height: 1.3; margin-top: 40px; max-width: 30em; }

/* ---------- Cards & grids ---------- */

.card {
	position: relative; display: block;
	padding: clamp(22px, 2.4vw, 32px);
	border-radius: var(--radius); border: 1px solid var(--line);
	background: var(--surface);
	transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
a.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.card .h3, .card .h4 { margin: 14px 0 10px; }
.card > .h3:first-child, .card > .h4:first-child { margin-top: 0; }
.card p { color: var(--text-2); }

.grid-2, .grid-3 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: flex; flex-direction: column; padding: 28px; overflow: hidden; }
.pillar::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
	background: radial-gradient(400px 200px at 20% 0%, var(--accent-soft), transparent 70%); transition: opacity .3s;
}
.pillar:hover::after { opacity: 1; }
.pillar-top { display: flex; align-items: center; }
.pillar-icon { width: 44px; height: 44px; margin: 0 0 6px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillar p { flex: 1; font-size: 0.97rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 560; color: var(--accent); font-size: 0.95rem; }
a.card:hover .card-link .arrow { transform: translateX(3px); }
.card-link .arrow { transition: transform .2s; }

/* Case study */
.case {
	display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center;
	padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--radius) + 8px);
	border: 1px solid var(--line-2);
	background: radial-gradient(500px 300px at 0% 50%, var(--accent-soft), transparent 70%), var(--surface);
}
.case-copy .h2 { margin-bottom: 18px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.case-copy p { color: var(--text-2); }
.case-stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
	font-family: var(--font-display); font-weight: 650; letter-spacing: -0.05em; line-height: .9;
	font-size: clamp(4.5rem, 12vw, 9rem);
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-num span { font-size: .5em; letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 800px) { .case { grid-template-columns: 1fr; } }

/* Strip */
.strip {
	display: flex; align-items: center; gap: 16px; padding: 18px 22px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
	transition: border-color .2s;
}
.strip:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.strip-text { flex: 1; color: var(--text-2); }
.strip .arrow { color: var(--accent); flex: none; }
@media (max-width: 640px) { .strip { border-radius: var(--radius); flex-wrap: wrap; } }

/* CTA */
.cta-section { padding: clamp(40px, 6vw, 80px) 0; }
.cta-card {
	position: relative; overflow: hidden; text-align: center;
	padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
	border-radius: calc(var(--radius) + 8px); border: 1px solid var(--line-2);
	background: radial-gradient(70% 90% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface);
}
.cta-grid {
	position: absolute; inset: 0; pointer-events: none; opacity: .4;
	background-color: var(--line-2);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38.11' height='66.00' viewBox='0 0 38.11 66.00'%3E%3Cpath d='M19.05 0L38.11 11.00L38.11 33.00L19.05 44.00L0 33.00L0 11.00ZM19.05 44.00L19.05 66.00' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E"), radial-gradient(60% 70% at 50% 0%, #000, transparent 80%);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38.11' height='66.00' viewBox='0 0 38.11 66.00'%3E%3Cpath d='M19.05 0L38.11 11.00L38.11 33.00L19.05 44.00L0 33.00L0 11.00ZM19.05 44.00L19.05 66.00' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E"), radial-gradient(60% 70% at 50% 0%, #000, transparent 80%);
	-webkit-mask-size: 38.11px 66.00px, 100% 100%;
	mask-size: 38.11px 66.00px, 100% 100%;
	-webkit-mask-repeat: repeat, no-repeat;
	mask-repeat: repeat, no-repeat;
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}
.cta-card > *:not(.cta-grid) { position: relative; }
.cta-card .h2 { max-width: 18em; margin: 0 auto 16px; }
.cta-card .lede { margin: 0 auto; max-width: 34em; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-copy .h2 { margin-bottom: 20px; }
.split-copy p { color: var(--text-2); }
.split-copy .note { border-left: 2px solid var(--accent); padding-left: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Governance layers */
.layers { display: grid; gap: 12px; }
.layer {
	width: var(--w); margin-left: auto; margin-right: auto;
	padding: 22px 24px; border-radius: var(--radius-sm); border: 1px solid var(--line);
	background: linear-gradient(90deg, var(--accent-soft), transparent 60%), var(--surface);
}
.layer:nth-child(1) { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.layer-num { font-size: .72rem; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.layer .h4 { margin: 6px 0 8px; }
.layer p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 640px) { .layer { width: 100%; } }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; } }
.phase-head { display: flex; align-items: center; gap: 12px; }
.phase-rail { flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.phase .h3 { margin-bottom: 4px; }
.phase-sub { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: .96rem; }
.ticks li::before {
	content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
	background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m4 7 2 2 4-4' fill='none' stroke='%2373b2be' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Feature list */
.feature-list { display: grid; gap: 10px; margin-top: 24px; }
.feature-list li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.feature-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.feature-list strong { font-weight: 560; }

/* Discovery diagram */
.diagram { padding: 24px; }
.span-diagram .taps path { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -8; } }
.span-diagram .sw { fill: var(--surface-2); stroke: var(--line-2); }
.span-diagram .node { fill: var(--accent); }
.span-diagram .leaf { fill: var(--surface-2); stroke: var(--muted); }
.span-diagram .sensor { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }

/* Pulse product shot */
.product-shot { margin: 0; }
.product-shot img { display: block; width: 100%; height: auto; }
.shot-caption { margin-top: 18px; text-align: center; color: var(--text-2); font-size: 1.05rem; }
.split-copy .h2 + p, .split-copy .h2 + ul { margin-top: 20px; }
.card-link { text-decoration: none; }

/* Pulse dashboard mock */
.dash-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.dash-panel { background: var(--surface); padding: 22px; min-height: 180px; display: flex; flex-direction: column; gap: 16px; }
.dash-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 8px; min-height: 100px; }
.bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent)); }
.spark { flex: 1; width: 100%; }
.spark path { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linejoin: round; }
.dash-rows { display: grid; gap: 8px; font-size: .82rem; }
.dash-rows li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
@media (max-width: 760px) { .dash-body { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat .stat-num { font-size: clamp(3rem, 6vw, 4.5rem); display: block; margin-bottom: 14px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr; } }

/* Q&A */
.qa .h4 { margin-top: 0; }
.qa .h4::before { content: "Q"; font-family: var(--mono); font-size: .75rem; color: var(--accent); margin-right: 10px; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); vertical-align: 2px; }
.feature .h4 { margin-top: 0; }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--mono); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.compare tbody th { font-weight: 560; width: 24%; }
.compare td { color: var(--text-2); }
.compare .us { background: var(--accent-soft); color: var(--text); }
.compare thead .us { color: var(--accent); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Trust */
.org .h4 { margin-top: 0; }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.4; letter-spacing: -0.015em; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.quote figcaption span { color: var(--muted); }

/* About */
.story { display: grid; gap: 0; border-left: 1px solid var(--line-2); }
.story li { position: relative; padding: 0 0 28px 28px; }
.story li:last-child { padding-bottom: 0; }
.story li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.year { display: block; font-size: .78rem; color: var(--accent); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .08em; }
.story p { color: var(--text-2); }
.person { display: flex; align-items: center; gap: 18px; }
.person .h4 { margin: 0 0 2px; }
.person-body { flex: 1; min-width: 0; }
.avatar.avatar-initials { display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 1.4rem; color: var(--accent-ink); background: var(--grad); border: 2px solid var(--line-2); }
.li-icon { flex: none; color: var(--muted); transition: color .2s; }
a.person:hover .li-icon { color: var(--accent); }
.person p { font-size: .85rem; }
.avatar { width: 96px; height: 96px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 2px solid var(--line-2); }

/* Contact */
.contact-grid { margin-top: 24px; }
.contact { display: flex; flex-direction: column; gap: 14px; }
.contact .tag { align-self: flex-start; }
.contact-val { font-size: 1.12rem; font-weight: 560; word-break: break-word; }

/* Prose */
.prose { color: var(--text-2); }
.prose h2 { color: var(--text); font-size: 1.35rem; margin: 2.2em 0 .7em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: .4em; }
.prose ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1em; display: grid; gap: .4em; }
.prose ul ul { list-style: circle; margin: .5em 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.optout { margin: 1.2em 0; }

.post-list { display: grid; gap: 16px; }

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

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(48px, 6vw, 72px) 0 28px; margin-top: clamp(24px, 4vw, 48px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-tagline { margin-top: 18px; max-width: 22em; color: var(--text-2); }
.footer-tagline span { color: var(--text); font-weight: 560; }
.footer-h { font-family: var(--mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 8px; font-size: .95rem; }
.footer-col a { color: var(--text-2); transition: color .15s; word-break: break-word; }
.footer-col a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-base .mono { font-size: .75rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

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