/* =========================================================================
   nuclework.com — the stylesheet.

   ONE RULE ABOVE ALL: no component names a colour. Everything is a custom
   property, and a theme is one block that redefines those properties. That is
   what lets five grounds and four accents compose freely, each of them one
   attribute on <html>, with no rebuild and no second stylesheet.

   The palette says something, and it is worth writing down, because the
   diagrams on this site depend on it:

       brand    indigo    THE FRAMEWORK — kernel, and the product itself
       accent   cyan      NETWORKS, tenants, anything live
       amber    amber     the third card tone in the rotating set
       ok       emerald   a check that PASSES
       no       rose      a check that FAILS

   So a reader who has seen the layer diagram once can read every later
   diagram without a legend. Colour here is information, not decoration, which
   is also why the accent axis moves only the accent: the semantic four stay
   put in every theme, or the architecture pages would start lying.

   ORDER: tokens, themes, reset, typography, layout, chrome, components,
   pages, motion, responsive, print.
   ========================================================================= */

/* ------------------------------------------------------------------ fonts --
   Self-hosted, variable, latin + latin-ext. Three faces, three jobs:
   Space Grotesk sets anything a reader looks AT, Inter sets anything they read
   THROUGH, and JetBrains Mono sets anything that is literally code — including
   the small tracked labels, which is a deliberate borrowing from the tools
   this product's buyers spend their day in. */
@font-face {
	font-family: 'Space Grotesk';
	src: url('../fonts/spacegrotesk-latin.woff2') format('woff2');
	font-weight: 300 700; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Space Grotesk';
	src: url('../fonts/spacegrotesk-latin-ext.woff2') format('woff2');
	font-weight: 300 700; font-style: normal; font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-latin.woff2') format('woff2');
	font-weight: 100 900; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-latin-ext.woff2') format('woff2');
	font-weight: 100 900; font-style: normal; font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'JetBrains Mono';
	src: url('../fonts/jetbrainsmono-latin.woff2') format('woff2');
	font-weight: 100 800; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'JetBrains Mono';
	src: url('../fonts/jetbrainsmono-latin-ext.woff2') format('woff2');
	font-weight: 100 800; font-style: normal; font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ----------------------------------------------------------------- tokens --
   The values every theme redefines are grouped first; the ones that are the
   same in every theme (the semantic four, the type scale, the rhythm) are
   below and are NOT part of a theme block. */
:root {
	/* type */
	--font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
	--font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--font-mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;

	/* rhythm — a band's vertical padding, and the page's measure */
	--maxw: 1220px;
	--maxw-text: 68ch;
	--gutter: clamp(20px, 5vw, 56px);
	--band: clamp(64px, 9vw, 128px);
	--gap: clamp(16px, 2.2vw, 28px);

	--radius: 14px;
	--radius-sm: 9px;
	--radius-lg: 22px;
	--pill: 999px;

	/* THE SEMANTIC FOUR. Fixed across every theme on purpose: the diagrams
	   read them as meaning, not as decoration. */
	--brand: #6d5bf7;
	--brand-soft: #8f82ff;
	--amber: #f7ac11;
	--ok: #34d399;
	--no: #fb7185;

	--speed: 220ms;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ themes --
   Each is one attribute on <html>. `nucleus` is what the site opens on.
   Five grounds: three dark, two light. `petrol` is the parent company's
   trademark colour, kept so the product can be shown inside a Nucleo Software
   deck without changing its skin. */
[data-theme='nucleus'] {
	--ground: #0b1020;
	--ground-2: #0e1428;
	--panel: #131a33;
	--panel-2: #182046;
	--line: #232b4d;
	--line-soft: #1a2140;
	--ink: #eef1fb;
	--ink-2: #a7b0cf;
	--ink-3: #6d769a;
	--glow: 109, 91, 247;
	--shadow: 0 24px 60px -30px rgba(4, 6, 20, .95);
	color-scheme: dark;
}
[data-theme='carbon'] {
	--ground: #08090c;
	--ground-2: #0c0e12;
	--panel: #111318;
	--panel-2: #171a21;
	--line: #23262e;
	--line-soft: #1a1d24;
	--ink: #f2f3f5;
	--ink-2: #a3a8b3;
	--ink-3: #6c7280;
	--glow: 109, 91, 247;
	--shadow: 0 24px 60px -30px rgba(0, 0, 0, .95);
	color-scheme: dark;
}
[data-theme='petrol'] {
	--ground: #00232f;
	--ground-2: #012b39;
	--panel: #04364a;
	--panel-2: #05445c;
	--line: #0d5670;
	--line-soft: #093f54;
	--ink: #eaf6fb;
	--ink-2: #9fc2d1;
	--ink-3: #6a94a5;
	--glow: 34, 211, 238;
	--shadow: 0 24px 60px -30px rgba(0, 12, 18, .9);
	color-scheme: dark;
}
[data-theme='paper'] {
	--ground: #faf8f4;
	--ground-2: #f3efe8;
	--panel: #ffffff;
	--panel-2: #f6f2eb;
	--line: #e2dcd1;
	--line-soft: #ece7de;
	--ink: #15181f;
	--ink-2: #545a68;
	--ink-3: #8b8f9c;
	--glow: 109, 91, 247;
	--shadow: 0 20px 46px -28px rgba(30, 26, 20, .38);
	color-scheme: light;
}
[data-theme='frost'] {
	--ground: #f5f8fc;
	--ground-2: #eaf0f8;
	--panel: #ffffff;
	--panel-2: #f0f4fa;
	--line: #dbe3ef;
	--line-soft: #e7edf6;
	--ink: #0d1424;
	--ink-2: #4e5a71;
	--ink-3: #8791a5;
	--glow: 34, 211, 238;
	--shadow: 0 20px 46px -28px rgba(16, 30, 60, .3);
	color-scheme: light;
}

/* -------------------------------------------------------------- the accent --
   The one bright colour allowed to mean "live". `--accent-ink` is what text
   ON the accent has to be, and it is declared beside it rather than guessed:
   white on amber is unreadable and is the mistake this token exists to stop. */
[data-accent='cyan']   { --accent: #22d3ee; --accent-soft: #67e8f9; --accent-ink: #04222a; }
[data-accent='violet'] { --accent: #8f82ff; --accent-soft: #b3a9ff; --accent-ink: #100a35; }
[data-accent='amber']  { --accent: #f7ac11; --accent-soft: #ffc65c; --accent-ink: #291a00; }
[data-accent='lime']   { --accent: #a3e635; --accent-soft: #bef264; --accent-ink: #16240a; }

/* Light grounds need the accent darkened or it stops being legible as text. */
[data-theme='paper'][data-accent='cyan'],
[data-theme='frost'][data-accent='cyan']   { --accent: #0a91ad; --accent-soft: #0e7490; }
[data-theme='paper'][data-accent='lime'],
[data-theme='frost'][data-accent='lime']   { --accent: #4d7c0f; --accent-soft: #3f6212; }
[data-theme='paper'][data-accent='amber'],
[data-theme='frost'][data-accent='amber']  { --accent: #b45309; --accent-soft: #92400e; }
[data-theme='paper'][data-accent='violet'],
[data-theme='frost'][data-accent='violet'] { --accent: #5b46e5; --accent-soft: #4c35d6; }
[data-theme='paper'], [data-theme='frost'] { --brand: #5b46e5; --brand-soft: #4c35d6; }

/* ------------------------------------------------------------------- axes --
   Everything below is one attribute on <html> and composes with every other.
   Adding one is an entry in assets/config/appearance.json, a dictionary key
   for its label, and a rule here — never a line of JavaScript. */
[data-shape='soft']   { --radius: 14px; --radius-sm: 9px;  --radius-lg: 22px; --pill: 999px; }
[data-shape='square'] { --radius: 0;    --radius-sm: 0;    --radius-lg: 0;    --pill: 0; }
[data-shape='round']  { --radius: 22px; --radius-sm: 14px; --radius-lg: 32px; --pill: 999px; }

[data-density='tight'] { --band: clamp(44px, 6vw, 84px); }
[data-density='roomy'] { --band: clamp(64px, 9vw, 128px); }

[data-grid='off'] .page-grid { display: none; }


/* ------------------------------------------------------------------ reset --*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16.5px;
	line-height: 1.65;
	font-feature-settings: 'cv05' 1, 'ss03' 1;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

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

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

.skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 200;
	background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; }


/* ------------------------------------------------------------- typography --*/
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 4.05rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
	font-size: clamp(1.06rem, 1.5vw, 1.28rem);
	line-height: 1.6;
	color: var(--ink-2);
	max-width: var(--maxw-text);
}

/* The small tracked label above a heading. Mono on purpose — it is the
   typographic tell that this is a developer product, and it costs nothing. */
.eyebrow {
	font-family: var(--font-mono);
	font-size: .715rem;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 1rem;
	display: flex;
	align-items: center;
	gap: .6rem;
}
.eyebrow::before {
	content: '';
	width: 22px; height: 1px;
	background: currentColor;
	opacity: .6;
	flex: none;
}
.eyebrow.is-plain::before { display: none; }

.mono { font-family: var(--font-mono); font-size: .92em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
strong, b { font-weight: 600; color: var(--ink); }

.link {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.link:hover { text-decoration-color: currentColor; }

/* An inline code span inside prose. */
code {
	font-family: var(--font-mono);
	font-size: .875em;
	background: color-mix(in srgb, var(--ink) 7%, transparent);
	border: 1px solid var(--line-soft);
	border-radius: 5px;
	padding: .1em .38em;
	white-space: nowrap;
}


/* ---------------------------------------------------------------- layout --*/
.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 880px; }

.band { padding-block: var(--band); position: relative; }
/* #/platform?at=core lands here, and the sticky bar must not sit on top of
   the heading it just jumped to. */
.band[id], [id] > .band { scroll-margin-top: 88px; }
.band + .band { padding-top: 0; }
.band.has-line { border-top: 1px solid var(--line-soft); padding-top: var(--band); }
.band.is-panel { background: var(--ground-2); }
.band.is-panel + .band { padding-top: var(--band); }

.band-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
/* A band whose whole content IS the heading — a page's opening block — should
   not also carry the gap meant to separate it from what follows. */
.band-head:last-child { margin-bottom: 0; }
.band-head.is-wide { max-width: 980px; }
.band-head.is-center { margin-inline: auto; text-align: center; }
.band-head.is-center .eyebrow { justify-content: center; }
.band-head.is-center .lead { margin-inline: auto; }
.band-head h2 + .lead { margin-top: -.15em; }


.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.grid-side { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(28px, 5vw, 64px); }

.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.is-center { justify-content: center; }

/* The faint blueprint lattice behind everything. Fixed, so it does not move
   with the content — it is the surface the site is printed on, not an element
   of the page. */
.page-grid {
	position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(var(--line-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
	background-size: 74px 74px;
	opacity: .5;
	mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
	-webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
}
.nw-view, .site-header, .site-footer { position: relative; z-index: 1; }


/* --------------------------------------------------------------- buttons --*/
.btn {
	--btn-bg: transparent;
	--btn-fg: var(--ink);
	--btn-line: var(--line);
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: .965rem;
	letter-spacing: -.01em;
	line-height: 1;
	padding: .92em 1.4em;
	border-radius: var(--pill);
	border: 1px solid var(--btn-line);
	background: var(--btn-bg);
	color: var(--btn-fg);
	cursor: pointer;
	white-space: nowrap;
	transition: transform var(--speed) var(--ease), background var(--speed) var(--ease),
		border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), color var(--speed) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
	--btn-bg: var(--brand);
	--btn-fg: #fff;
	--btn-line: var(--brand);
	box-shadow: 0 10px 30px -12px rgba(var(--glow), .8);
}
.btn-primary:hover { --btn-bg: var(--brand-soft); --btn-line: var(--brand-soft); }

.btn-ghost { --btn-bg: transparent; --btn-line: var(--line); }
.btn-ghost:hover { --btn-line: var(--ink-3); background: color-mix(in srgb, var(--ink) 5%, transparent); }

.btn-sm { font-size: .875rem; padding: .7em 1.05em; }
.btn-lg { font-size: 1.03rem; padding: 1.02em 1.7em; }
.btn .ico { width: 1.05em; height: 1.05em; }

/* A link that reads as "keep going", with an arrow that leans on hover. */
.more {
	display: inline-flex; align-items: center; gap: .45em;
	font-family: var(--font-display); font-weight: 500;
	color: var(--accent);
	font-size: .95rem;
}
.more .ico { width: 1em; height: 1em; transition: transform var(--speed) var(--ease); }
.more:hover .ico { transform: translateX(3px); }


/* ----------------------------------------------------------------- chrome --*/
.site-header {
	position: sticky; top: 0; z-index: 60;
	background: color-mix(in srgb, var(--ground) 82%, transparent);
	backdrop-filter: blur(14px) saturate(1.3);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	border-bottom: 1px solid transparent;
	transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); }

.header-in {
	display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
	height: 68px;
}

/* the lockup */
.brand { display: inline-flex; align-items: center; gap: .62em; flex: none; }
.brand .logotype { height: 26px; width: auto; color: var(--ink); display: block; }
.brand .mark { height: 26px; width: 26px; color: var(--brand); flex: none; }
.brand-name {
	font-family: var(--font-display); font-weight: 600;
	font-size: 1.32rem; letter-spacing: -.035em; line-height: 1;
}
.brand:hover .mark { color: var(--accent); }
.brand .mark, .brand .logotype { transition: color var(--speed) var(--ease); }

.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav a {
	font-size: .935rem; font-weight: 450;
	color: var(--ink-2);
	padding: .55em .78em;
	border-radius: var(--radius-sm);
	position: relative;
	transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav a.is-on { color: var(--ink); }
.nav a.is-on::after {
	content: ''; position: absolute; left: .78em; right: .78em; bottom: .1em;
	height: 2px; border-radius: 2px; background: var(--accent);
}

.header-tools { display: flex; align-items: center; gap: 6px; flex: none; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	width: 38px; height: 38px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	background: transparent; color: var(--ink-2); cursor: pointer;
	transition: color var(--speed) var(--ease), background var(--speed) var(--ease),
		border-color var(--speed) var(--ease);
}
.icon-btn:hover, .icon-btn[aria-expanded='true'] {
	color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent);
	border-color: var(--line-soft);
}
.icon-btn.is-wide { width: auto; padding-inline: .7em; font-size: .85rem; font-family: var(--font-mono); }
.icon-btn .ico { width: 18px; height: 18px; }

.burger { display: none; }

/* the drop-downs (language, appearance) */
.menu {
	position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
	min-width: 220px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 8px;
	max-height: min(70vh, 560px); overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu-anchor { position: relative; }

.menu-group + .menu-group { margin-top: 10px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.menu-label {
	font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
	text-transform: uppercase; color: var(--ink-3);
	padding: 4px 8px 6px;
}
.menu-opt {
	display: flex; align-items: center; gap: .6em; width: 100%;
	padding: .5em .6em; border-radius: var(--radius-sm);
	border: 0; background: transparent; text-align: left;
	font-size: .9rem; color: var(--ink-2); cursor: pointer;
}
.menu-opt:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.menu-opt.is-on { color: var(--ink); }
.menu-opt.is-on .tick { opacity: 1; }
.menu-opt .tick { margin-left: auto; width: 15px; height: 15px; opacity: 0; color: var(--accent); }
.menu-opt .code { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }

.swatch {
	width: 15px; height: 15px; border-radius: 5px; flex: none;
	border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.swatch-nucleus { background: linear-gradient(135deg, #0b1020 50%, #6d5bf7 50%); }
.swatch-carbon  { background: linear-gradient(135deg, #08090c 50%, #6d5bf7 50%); }
.swatch-petrol  { background: linear-gradient(135deg, #00232f 50%, #22d3ee 50%); }
.swatch-paper   { background: linear-gradient(135deg, #faf8f4 50%, #5b46e5 50%); }
.swatch-frost   { background: linear-gradient(135deg, #f5f8fc 50%, #0a91ad 50%); }
.swatch-cyan    { background: #22d3ee; }
.swatch-violet  { background: #8f82ff; }
.swatch-amber   { background: #f7ac11; }
.swatch-lime    { background: #a3e635; }
.swatch-soft, .swatch-square, .swatch-round,
.swatch-tight, .swatch-roomy, .swatch-on, .swatch-off { display: none; }

/* the mobile sheet */
.sheet {
	position: fixed; inset: 68px 0 0; z-index: 55;
	background: var(--ground);
	padding: 24px var(--gutter) 48px;
	overflow-y: auto;
	display: none;
}
.sheet[data-open='1'] { display: block; }
.sheet a {
	display: block; padding: .85em 0;
	border-bottom: 1px solid var(--line-soft);
	font-family: var(--font-display); font-size: 1.32rem; font-weight: 500;
	letter-spacing: -.02em;
}
.sheet a.is-on { color: var(--accent); }
.sheet .btn { margin-top: 26px; width: 100%; }


/* ----------------------------------------------------------------- footer --*/
.site-footer {
	border-top: 1px solid var(--line-soft);
	background: var(--ground-2);
	padding-block: clamp(48px, 6vw, 80px) 28px;
	margin-top: var(--band);
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.footer-brand { max-width: 340px; }
.footer-brand .lead { font-size: .95rem; margin-top: 14px; }
.footer-col h4 {
	font-family: var(--font-mono); font-size: .7rem; letter-spacing: .15em;
	text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.1em; font-weight: 500;
}
.footer-col a { display: block; color: var(--ink-2); font-size: .93rem; padding: .3em 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
	display: flex; justify-content: space-between; align-items: center;
	gap: 18px; flex-wrap: wrap;
	margin-top: clamp(36px, 5vw, 64px); padding-top: 22px;
	border-top: 1px solid var(--line-soft);
	font-size: .855rem; color: var(--ink-3);
}
.footer-bottom a:hover { color: var(--accent); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }


/* ------------------------------------------------------------------ hero --*/
.hero {
	position: relative;
	padding-block: clamp(56px, 9vw, 118px) clamp(48px, 7vw, 96px);
	overflow: hidden;
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .38em; }
.hero .lead { font-size: clamp(1.1rem, 1.65vw, 1.36rem); }
.hero-cta { margin-top: 34px; }

/* the glow behind it — one radial, tinted by the theme */
.hero::before {
	content: ''; position: absolute; z-index: 0;
	top: -30%; left: 50%; transform: translateX(-50%);
	width: min(1400px, 150%); aspect-ratio: 2 / 1;
	background: radial-gradient(ellipse at center,
		rgba(var(--glow), .22) 0%, rgba(var(--glow), .07) 38%, transparent 68%);
	pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* the line of proof under the buttons */
.hero-proof {
	margin-top: 30px; padding-top: 22px;
	border-top: 1px solid var(--line-soft);
	display: flex; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap;
}
.hero-proof div { display: grid; gap: 2px; }
.hero-proof b {
	font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
	letter-spacing: -.03em; line-height: 1;
}
.hero-proof span { font-size: .78rem; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: .04em; }

/* THE LATTICE. Networks as nodes on the mark's own 45-degree grid: one
   installation in the middle, networks around it, organizations beyond. The
   coordinates are computed in app.js and handed to a view — nothing here
   knows how many there are. */
.lattice { width: 100%; height: auto; overflow: visible; }
.lattice .edge { stroke: var(--line); stroke-width: 1; fill: none; }
.lattice .edge-live { stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 1.4; }
.lattice .node { fill: var(--panel); stroke: var(--line); stroke-width: 1.2; }
.lattice .node-net { fill: color-mix(in srgb, var(--accent) 22%, var(--panel)); stroke: var(--accent); }
.lattice .node-core { fill: var(--brand); stroke: var(--brand); }
.lattice .node-org { fill: var(--panel-2); stroke: var(--line); }
.lattice .halo { fill: none; stroke: var(--brand); opacity: .28; }
.lattice .lbl {
	font-family: var(--font-mono); font-size: 7.4px; fill: var(--ink-3);
	letter-spacing: .06em; text-transform: uppercase;
}
.lattice .mark-core { fill: #fff; }

@keyframes pulse-ring {
	0%   { transform: scale(.72); opacity: .55; }
	70%  { transform: scale(1.5); opacity: 0; }
	100% { transform: scale(1.5); opacity: 0; }
}
.lattice .halo { transform-box: fill-box; transform-origin: center; animation: pulse-ring 4.2s var(--ease) infinite; }
.lattice .halo:nth-of-type(2) { animation-delay: 1.4s; }
.lattice .halo:nth-of-type(3) { animation-delay: 2.8s; }

@keyframes trace {
	to { stroke-dashoffset: 0; }
}
.lattice .edge-live {
	stroke-dasharray: 6 5;
	animation: trace 1.6s linear infinite;
}


/* ------------------------------------------------------------------ cards --*/
.card {
	background: var(--panel);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: clamp(20px, 2.4vw, 30px);
	position: relative;
	transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease),
		box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-2); font-size: .95rem; }
a.card:hover, .card.is-live:hover {
	border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.card-num {
	font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3);
	letter-spacing: .1em; position: absolute; top: 18px; right: 20px;
}

/* the icon chip at the top of a capability card */
.chip {
	width: 42px; height: 42px; border-radius: var(--radius-sm);
	display: grid; place-items: center;
	background: color-mix(in srgb, var(--brand) 16%, transparent);
	color: var(--brand-soft);
	border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
	margin-bottom: 18px;
}
.chip .ico { width: 21px; height: 21px; }
.chip.is-accent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.chip.is-amber { background: color-mix(in srgb, var(--amber) 15%, transparent); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }

/* a bullet list with ticks */
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: .55em; }
.ticks li { display: flex; gap: .65em; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.ticks .ico { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: .28em; }
.ticks.is-ok .ico { color: var(--ok); }
/* The verification list lost its neighbouring column and now runs the full
   width of the band; three across keeps the line length readable. */
.ticks.is-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 30px; margin-top: 26px; }

/* the little pill that labels a thing */
.tag {
	display: inline-flex; align-items: center; gap: .4em;
	font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em;
	padding: .3em .6em; border-radius: var(--pill);
	border: 1px solid var(--line);
	color: var(--ink-3);
	white-space: nowrap;
}


/* ------------------------------------------------------------------ stats --*/
.stats {
	/* FOUR columns, stated. `auto-fit` left a lone figure on a second row — a
	   band whose whole job is to look counted cannot look like a mistake.
	   The counts that do not divide by four are closed below: the last cell
	   stretches rather than leaving a hole in the panel. */
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--line-soft);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	overflow: hidden;
}
.stat { background: var(--panel); padding: clamp(20px, 2.4vw, 30px); }
/* Counts that do not divide by four would leave an empty cell, and the panel's
   1px seams make that read as a missing figure rather than as whitespace. The
   pairs below match ONLY when the band holds exactly that many. */
.stats > .stat:last-child:nth-child(7) { grid-column: span 2; }   /* #/home */
.stats > .stat:last-child:nth-child(3) { grid-column: span 2; }   /* #/platform */
.stat b {
	display: block;
	font-family: var(--font-display); font-weight: 600;
	font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.04em; line-height: 1;
	margin-bottom: .3em;
	font-variant-numeric: tabular-nums;
}
.stat span { font-size: .875rem; color: var(--ink-2); display: block; }
.stat small {
	display: block; font-family: var(--font-mono); font-size: .7rem;
	color: var(--ink-3); margin-top: .5em; letter-spacing: .04em;
	/* `docs/framework.json` is one long token and would otherwise be clipped */
	overflow-wrap: anywhere;
}
.stat:nth-child(4n+1) b { color: var(--brand-soft); }
.stat:nth-child(4n+2) b { color: var(--accent); }
.stat:nth-child(4n+3) b { color: var(--amber); }
.stat:nth-child(4n+4) b { color: var(--ink); }


/* ------------------------------------------------------------------- code --*/
.code-panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.code-head {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--ink) 4%, var(--panel));
}
.code-dots { display: flex; gap: 6px; flex: none; }
.code-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.code-file {
	font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3);
	margin-inline: auto; letter-spacing: .02em;
}
.code-copy { margin-left: auto; }

.code-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 4%, var(--panel)); overflow-x: auto; }
.code-tab {
	font-family: var(--font-mono); font-size: .78rem;
	padding: .55em .85em; border: 0; background: transparent; color: var(--ink-3);
	cursor: pointer; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.code-tab:hover { color: var(--ink-2); }
.code-tab.is-on { color: var(--ink); border-bottom-color: var(--accent); background: var(--panel); }

.code-body {
	margin: 0; padding: clamp(16px, 2vw, 22px);
	font-family: var(--font-mono); font-size: .815rem; line-height: 1.75;
	overflow-x: auto;
	color: var(--ink-2);
	tab-size: 4;
}
.code-body::-webkit-scrollbar { height: 8px; }
.code-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* Tokens. Named for what they ARE, so the same class serves php, bash and xml.
   Deliberately few: five colours is a highlighter, twelve is a fruit salad. */
.t-com { color: var(--ink-3); font-style: italic; }
.t-kw  { color: var(--brand-soft); }
.t-str { color: var(--ok); }
.t-num { color: var(--amber); }
.t-fn  { color: var(--accent); }
.t-var { color: var(--ink); }
.t-op  { color: var(--ink-3); }
.t-tag { color: var(--accent); }
.t-att { color: var(--amber); }
.t-bad { color: var(--no); }

.code-note {
	display: flex; gap: .7em; align-items: flex-start;
	padding: 12px 16px; border-top: 1px solid var(--line);
	font-size: .84rem; color: var(--ink-3);
	background: color-mix(in srgb, var(--ink) 3%, var(--panel));
}
.code-note .ico { width: 15px; height: 15px; margin-top: .25em; flex: none; color: var(--accent); }


/* ------------------------------------------------------------ the layers --
   The architecture, drawn. Four rows, each tinted by what it is, and an arrow
   column on the left that says the dependency only ever points one way. */
.layers { display: grid; gap: 10px; position: relative; }
.layer {
	display: grid; grid-template-columns: 128px minmax(0, 1fr);
	gap: clamp(14px, 2vw, 26px); align-items: center;
	border: 1px solid var(--line);
	border-left: 3px solid var(--layer-color, var(--line));
	border-radius: var(--radius-sm);
	background: var(--panel);
	padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2vw, 24px);
	transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.layer:hover { transform: translateX(3px); border-color: var(--layer-color, var(--line)); }
.layer-name {
	font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em;
	text-transform: uppercase; color: var(--layer-color, var(--ink));
	font-weight: 500;
}
.layer p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.layer-kernel { --layer-color: var(--brand); }
.layer-core   { --layer-color: var(--accent); }
.layer-pkg    { --layer-color: var(--amber); }
.layer-app    { --layer-color: var(--ink-3); }

.layer-rule {
	display: flex; align-items: center; gap: .7em;
	font-family: var(--font-mono); font-size: .8rem;
	padding: .8em 1em; border-radius: var(--radius-sm);
	border: 1px solid var(--line);
}
.layer-rule .ico { width: 16px; height: 16px; flex: none; }
.layer-rule.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 32%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.layer-rule.is-no { color: var(--no); border-color: color-mix(in srgb, var(--no) 32%, transparent); background: color-mix(in srgb, var(--no) 8%, transparent); }
.layer-rule b { color: inherit; font-weight: 500; }
.layer-rule span { color: var(--ink-2); font-family: var(--font-body); font-size: .88rem; }


/* --------------------------------------------------------------- tenancy --
   Two columns of schemas: what is shared, and what is one per network. The
   point of the picture is the wall down the middle. */
.dbs { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.db {
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--panel); padding: clamp(18px, 2.2vw, 26px);
}
.db-head { display: flex; align-items: center; gap: .6em; margin-bottom: 16px; }
.db-head .ico { width: 18px; height: 18px; color: var(--accent); }
.db-head h4 { margin: 0; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.db-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.db-list li {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	font-family: var(--font-mono); font-size: .82rem;
	padding: .55em .75em; border-radius: var(--radius-sm);
	background: color-mix(in srgb, var(--ink) 4%, transparent);
	border: 1px solid var(--line-soft);
}
.db-list li span { color: var(--ink-3); font-family: var(--font-body); font-size: .8rem; text-align: right; }
.db.is-tenant { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.db.is-tenant .db-list li { border-color: color-mix(in srgb, var(--accent) 22%, transparent); }


/* ---------------------------------------------------------------- process --*/
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--panel); padding: clamp(20px, 2.4vw, 30px); counter-increment: step; position: relative; }
.step::before {
	content: '0' counter(step);
	font-family: var(--font-mono); font-size: .74rem; color: var(--accent);
	letter-spacing: .1em; display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; }
.step p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.step .mono { display: block; margin-top: 12px; font-size: .78rem; color: var(--ink-3); overflow-wrap: anywhere; }


/* ---------------------------------------------------------------- sectors --*/
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.sector {
	border: 1px solid var(--line-soft); border-radius: var(--radius);
	background: var(--panel); overflow: hidden;
	display: grid; align-content: start;
	transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.sector:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); transform: translateY(-3px); }
.sector-top { padding: 24px 24px 0; display: flex; align-items: center; gap: 12px; }
.sector-top .ico { width: 22px; height: 22px; color: var(--accent); }
.sector-body { padding: 16px 24px 24px; }
.sector h3 { font-size: 1.1rem; margin-bottom: .3em; }
.sector p { font-size: .9rem; color: var(--ink-2); }

/* what a pack renames, shown as the rename it is */
.renames { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.renames li {
	display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
	align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: .76rem;
	padding: .45em .6em; border-radius: var(--radius-sm);
	background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.renames .from { color: var(--ink-3); }
.renames .to { color: var(--accent); }
.renames .ico { width: 12px; height: 12px; color: var(--ink-3); flex: none; }


/* ----------------------------------------------------------------- table --*/
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .92rem; }
table.cmp th, table.cmp td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.cmp thead th {
	font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
	text-transform: uppercase; color: var(--ink-3); font-weight: 500;
	background: color-mix(in srgb, var(--ink) 4%, transparent);
	/* NOT sticky. Ten rows fit on one screen, so a sticky head buys nothing —
	   and it costs: a sticky child inside this overflow container made Chrome
	   drop the paint of the entire band on a long page, heading included. A
	   decoration that can make a section invisible is not worth having. */
}
table.cmp tbody th { font-weight: 450; color: var(--ink-2); }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: 0; }
table.cmp .ico { width: 17px; height: 17px; }
table.cmp .yes { color: var(--ok); }
table.cmp .no { color: var(--ink-3); }
table.cmp td.is-hl { background: color-mix(in srgb, var(--brand) 7%, transparent); }
table.cmp th.is-hl { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-soft); }


/* --------------------------------------------------------------- editions --*/
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.plan {
	border: 1px solid var(--line); border-radius: var(--radius-lg);
	background: var(--panel); padding: clamp(24px, 2.8vw, 34px);
	display: grid; gap: 18px; align-content: start;
	position: relative;
}
.plan.is-featured {
	border-color: color-mix(in srgb, var(--brand) 55%, transparent);
	background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, var(--panel)), var(--panel) 40%);
	box-shadow: var(--shadow);
}
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan-for { font-size: .9rem; color: var(--ink-2); min-height: 2.8em; }
.plan-price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; }
.plan-price small { display: block; font-family: var(--font-body); font-size: .82rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-top: .35em; }
.plan .btn { width: 100%; }
.plan .ticks { margin-top: 0; border-top: 1px solid var(--line-soft); padding-top: 18px; }


/* -------------------------------------------------------------------- faq --*/
.faq { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.faq details { background: var(--panel); }
.faq summary {
	display: flex; align-items: center; gap: 14px; justify-content: space-between;
	padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
	cursor: pointer; list-style: none;
	font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .ico { width: 17px; height: 17px; flex: none; color: var(--ink-3); transition: transform var(--speed) var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); color: var(--accent); }
.faq .faq-body { padding: 0 clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 26px); color: var(--ink-2); font-size: .95rem; max-width: var(--maxw-text); }


/* --------------------------------------------------------------- quote/cta --*/
.pull {
	border-left: 3px solid var(--accent);
	padding-left: clamp(18px, 2.4vw, 30px);
	font-family: var(--font-display); font-weight: 400;
	font-size: clamp(1.2rem, 2.1vw, 1.7rem);
	line-height: 1.4; letter-spacing: -.02em;
	max-width: 900px;
}
.pull cite { display: block; margin-top: 1em; font-size: .82rem; font-family: var(--font-mono); font-style: normal; color: var(--ink-3); letter-spacing: .06em; }

.cta {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(var(--glow), .18), transparent 55%),
		var(--panel);
	padding: clamp(34px, 5vw, 66px);
	text-align: center;
	position: relative; overflow: hidden;
}
.cta h2 { margin-bottom: .35em; }
.cta .lead { margin-inline: auto; margin-bottom: 30px; }
.cta .row { justify-content: center; }
.cta-note { margin-top: 22px; font-size: .84rem; color: var(--ink-3); font-family: var(--font-mono); }


/* ------------------------------------------------------------------ forms --*/
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > label {
	font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
	text-transform: uppercase; color: var(--ink-3);
}
.field .req { color: var(--accent); }
.input {
	width: 100%;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: .85em 1em;
	color: var(--ink);
	font-size: .96rem;
	transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input::placeholder { color: var(--ink-3); }
textarea.input { min-height: 148px; resize: vertical; line-height: 1.6; }
select.input { appearance: none; background-image: none; cursor: pointer; }
.field-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* the honeypot: present, reachable by a bot, invisible and unreachable to a
   person — including to a screen reader, which is what aria-hidden adds */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .82rem; color: var(--ink-3); }
.notice {
	display: flex; gap: .8em; align-items: flex-start;
	padding: 14px 18px; border-radius: var(--radius-sm);
	border: 1px solid var(--line); font-size: .92rem;
}
.notice .ico { width: 18px; height: 18px; flex: none; margin-top: .2em; }
.notice.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.notice.is-bad { color: var(--no); border-color: color-mix(in srgb, var(--no) 35%, transparent); background: color-mix(in srgb, var(--no) 8%, transparent); }
.notice[hidden] { display: none; }

.contact-lines { display: grid; gap: 14px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line .ico { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: .3em; }
.contact-line b { display: block; font-size: .78rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.contact-line a, .contact-line span { color: var(--ink-2); font-size: .95rem; }
.contact-line a:hover { color: var(--accent); }


/* ------------------------------------------------------------------ misc --*/
.nw-loading { display: grid; place-items: center; min-height: 60vh; }
.spinner {
	width: 26px; height: 26px; border-radius: 50%;
	border: 2px solid var(--line); border-top-color: var(--accent);
	animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

.split-media {
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--panel); padding: clamp(18px, 2.4vw, 28px);
	box-shadow: var(--shadow);
}

.legal-body { max-width: var(--maxw-text); }
.legal-body h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { padding-left: 1.2em; color: var(--ink-2); }
.legal-body li { margin-bottom: .5em; }

/* Anything that arrives on scroll.
 *
 * NOTHING IS HIDDEN UNTIL SOMETHING IS CERTAIN TO SHOW IT AGAIN. `.rise` on
 * its own is visible; app.js stamps data-rise="on" on <html> at boot, and only
 * then does the hidden state apply. So a browser with no IntersectionObserver,
 * a blocked script, a crawler, or a bug in this file's neighbour shows the
 * content rather than a page of empty rectangles — which is exactly what an
 * `opacity: 0` default gives you the day the observer does not run.
 *
 * The attribute goes on before the first view renders, so there is no flash of
 * visible-then-hidden either. */
[data-rise='on'] .rise { opacity: 0; transform: translateY(14px); }
[data-rise='on'] .rise.is-in {
	opacity: 1; transform: none;
	transition: opacity .6s var(--ease), transform .6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
	[data-rise='on'] .rise, [data-rise='on'] .rise.is-in { opacity: 1; transform: none; transition: none; }
	.lattice .halo, .lattice .edge-live { animation: none; }
}
[data-anim='still'] .rise, [data-anim='still'] .rise.is-in,
[data-anim='still'][data-rise='on'] .rise { opacity: 1; transform: none; transition: none; }
[data-anim='still'] .lattice .halo, [data-anim='still'] .lattice .edge-live { animation: none; }


/* ------------------------------------------------------------- responsive --*/
@media (max-width: 1080px) {
	.hero-in { grid-template-columns: 1fr; }
	.hero-art { order: -1; max-width: 520px; }
	.grid-4, .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.plans { grid-template-columns: 1fr; }
	.plan.is-featured { order: -1; }
	.footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-brand { grid-column: 1 / -1; max-width: none; }
	.grid-side { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nav, .header-tools .is-desk { display: none; }
	.burger { display: inline-flex; }
	.header-in { justify-content: space-between; }
	.grid-3, .grid-2, .grid-split { grid-template-columns: 1fr; }
	.ticks.is-cols { grid-template-columns: 1fr; gap: .55em; }
	.dbs { grid-template-columns: 1fr; }
	.layer { grid-template-columns: 1fr; gap: 8px; }
	.hero-proof { gap: 24px; }
}

@media (max-width: 620px) {
	body { font-size: 16px; }
	.grid-4, .sectors { grid-template-columns: 1fr; }
	.field-2 { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; }
	.hero-proof b { font-size: 1.35rem; }
	.brand .logotype { height: 23px; }
}


/* ------------------------------------------------------------------ print --*/
@media print {
	.site-header, .site-footer, .page-grid, .hero::before, .btn { display: none !important; }
	body { background: #fff; color: #000; }
	.card, .panel, .code-panel { border-color: #ccc; box-shadow: none; }
}
