/* =====================================================================================
   NETSHEIPAS — "Living Lab" design system (v3)
   Paper · Ink · Signal Crimson. One accent, no gradients-for-decoration, hairline science grids,
   bold display grotesk with serif-italic emphasis, mono for data. Motion has meaning.
   ===================================================================================== */

:root {
	/* Colour — three, plus neutrals */
	--paper: #F4F2ED;
	--paper-2: #EBE8E1;
	--white: #FFFFFF;
	--ink: #0D0D0F;
	--ink-2: #2B2B30;
	--mute: #6A6A72;
	--faint: #A2A2A9;
	--line: #D9D5CC;
	--line-2: #E6E3DB;
	--acc: #1338BE;
	--acc-2: #0D2A94;
	--acc-ink: #0F2EA3;
	--acc-soft: #E6ECFC;
	--ok: #127A3A; --ok-soft: #E3F2E8;
	--warn: #8F5600; --warn-soft: #FBF0DD;
	--bad: #B4001F; --bad-soft: #FBE4E8;
	--heat-red: #D90429; --heat-orange: #EE9A1C; --heat-green: #1E9E57;
	/* legacy aliases used by older templates */
	--bg: var(--paper); --bg-2: var(--paper-2); --surface: var(--white); --muted: var(--mute);
	--accent: var(--acc); --accent-ink: var(--acc-ink); --accent-soft: var(--acc-soft);

	/* Type */
	--display: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--serif: "Montserrat", ui-sans-serif, system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--h1: clamp(38px, 6.2vw, 96px);
	--h2: clamp(30px, 4.3vw, 62px);
	--h3: clamp(21px, 1.9vw, 26px);

	/* Space & shape */
	--wrap: 1320px;
	--gut: clamp(15px, 3.44vw, 41px);
	--sec: clamp(62px, 8.6vw, 131px);
	--r1: 8px; --r2: 12px; --r3: 18px; --r4: 28px;
	--sh1: 0 1px 0 rgba(13, 13, 15, .04);
	--sh2: 0 18px 40px -22px rgba(13, 13, 15, .28);
	--sh3: 0 40px 90px -40px rgba(13, 13, 15, .45);
	--hdr: 72px;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);

	/* legacy spacing */
	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
	--fs-xs: 12px; --fs-sm: 13.5px; --fs-base: 16px; --fs-md: 18px; --h4: 18px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.68 var(--sans); font-feature-settings: "kern", "liga"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--acc); color: #fff; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.015em; line-height: 1.02; }
h1 { font-size: var(--h1); letter-spacing: -.02em; line-height: 1; font-weight: 800; }
h2 { font-size: var(--h2); letter-spacing: -.02em; line-height: 1.04; }
h3 { font-size: var(--h3); letter-spacing: -.01em; line-height: 1.12; }
h4 { font-size: 18px; letter-spacing: -.005em; line-height: 1.2; }
h1 em, h2 em, h3 em, .serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.015em; }
h1 em, h2 em { color: var(--acc); }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 999px; }
.skip:focus { top: 8px; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: 0; }
.muted { color: var(--mute); }
.nowrap { white-space: nowrap; }
.red { color: var(--acc); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: calc(860px + 2 * var(--gut)); }
.sec { padding: var(--sec) 0; position: relative; }
.sec--tight { padding: calc(var(--sec) * .55) 0; }
.sec--white { background: var(--white); }
.sec--ink, .ink { background: var(--ink); color: #EDEBE6; }
.sec--acc { background: var(--acc); color: #fff; }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; margin-bottom: clamp(31px, 4.3vw, 62px); }
.sec__head h2 { max-width: 21ch; text-wrap: balance; }
.sec__head p { text-wrap: pretty; }
.sec__head p { max-width: 520px; color: var(--mute); margin: 18px 0 0; font-size: 18px; line-height: 1.55; }
.ink .sec__head p, .sec--ink .sec__head p { color: #A3A3AA; }
@media (max-width: 760px) { .sec__head { grid-template-columns: minmax(0, 1fr); } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); animation: blip 2.4s var(--ease-io) infinite; }
.ink .eyebrow, .sec--ink .eyebrow { color: #C9C7C1; }
.ink .eyebrow::before, .sec--ink .eyebrow::before { box-shadow: 0 0 0 4px rgba(19, 56, 190, .25); }
@keyframes blip { 50% { box-shadow: 0 0 0 7px rgba(19, 56, 190, 0); } }
.lead { font-size: clamp(18px, 1.55vw, 21px); color: var(--ink-2); line-height: 1.5; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5.16vw, 83px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 16px; }
.labgrid { position: relative; isolation: isolate; }
.labgrid::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(13, 13, 15, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 13, 15, .055) 1px, transparent 1px); background-size: 56px 56px; background-position: -1px -1px; mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 30%, transparent 85%); }
.ink.labgrid::before { background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); }

/* ---------- Buttons ---------- */
.btn { --b: var(--ink); --c: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--b); background: var(--b); color: var(--c); font: 600 15.5px/1 var(--sans); letter-spacing: -0em; text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .3s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--acc); transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease); }
.btn:hover::after { transform: none; }
.btn:hover { border-color: var(--acc); color: #fff; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--acc, .btn--accent { --b: var(--acc); --c: #fff; box-shadow: 0 14px 30px -14px rgba(19, 56, 190, .7); }
.btn--acc::after, .btn--accent::after { background: var(--ink); }
.btn--acc:hover, .btn--accent:hover { border-color: var(--ink); }
.btn--ghost { --b: transparent; --c: var(--ink); border-color: var(--line); }
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: #fff; }
.btn--white { --b: #fff; --c: var(--ink); }
.btn--soft { --b: var(--paper-2); --c: var(--ink); }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 16.5px; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn.is-busy::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ink .btn--ghost, .sec--ink .btn--ghost { --c: #fff; border-color: rgba(255, 255, 255, .22); }
.ink .btn--ghost::after, .sec--ink .btn--ghost::after { background: #fff; }
.ink .btn--ghost:hover, .sec--ink .btn--ghost:hover { color: var(--ink); border-color: #fff; }
.ink .btn:not(.btn--ghost):not(.btn--acc):not(.btn--accent), .sec--ink .btn:not(.btn--ghost):not(.btn--acc):not(.btn--accent) { --b: #fff; --c: var(--ink); }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--acc); }
.arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.arrow::after { content: "→"; transition: transform .35s var(--ease); }
.arrow:hover::after { transform: translateX(5px); }
.iconbtn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--ink); transition: background .2s, border-color .2s; }
.iconbtn:hover { background: var(--paper-2); }
.iconbtn svg { width: 20px; height: 20px; }

/* ---------- Forms, chips, segments, badges ---------- */
.field { display: grid; gap: 7px; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r2); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(19, 56, 190, .12); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s, color .15s, transform .2s var(--ease); user-select: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; padding: 4px; background: var(--paper-2); border-radius: 999px; gap: 2px; }
.seg button { border: 0; background: transparent; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--mute); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 11.5px/1 var(--sans); letter-spacing: .01em; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--accent, .badge--acc { background: var(--acc-soft); color: var(--acc-ink); }
.badge--plain::before { display: none; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 14px; height: 4px; border-radius: 2px; background: var(--line); }
.dots i.on { background: var(--ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14.5px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; font-weight: 600; }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r2); background: var(--warn-soft); color: var(--ink); font-size: 14px; line-height: 1.45; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert b { display: block; margin-bottom: 2px; }
.alert--info { background: var(--paper-2); }
.alert--bad { background: var(--bad-soft); }
.alert .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.alert .acts button { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.alert .acts button:hover { background: var(--ink); color: #fff; }

/* ---------- Cards & tables ---------- */
.card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r3); padding: 26px; position: relative; transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); }
a.card { text-decoration: none; display: block; }
a.card:hover, .card--hover:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: var(--sh2); }
.card h3, .card h4 { margin-bottom: 8px; }
.card p { color: var(--mute); font-size: 15px; margin-bottom: 0; }
.card__img { margin: -26px -26px 20px; border-radius: var(--r3) var(--r3) 0 0; overflow: hidden; background: var(--paper); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.card__img img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
a.card:hover .card__img img { transform: scale(1.06) rotate(-1.5deg); }
.ink .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); color: #EDEBE6; }
.ink .card p { color: #A3A3AA; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r3); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table thead th { font: 500 11.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); background: var(--paper); position: sticky; top: 0; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .tbd { color: var(--faint); font-style: italic; }
.table tbody th { font-weight: 600; color: var(--ink-2); }

/* ---------- Header ---------- */
.annc { background: var(--ink); color: #D7D5CF; font-size: 13px; }
.annc .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; text-align: center; }
.annc b { color: #fff; font-weight: 600; }
.annc a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 4px; }
.annc i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(19, 56, 190, .3); }
.hdr { position: sticky; top: 0; z-index: 60; transition: transform .45s var(--ease), background .3s, box-shadow .3s; }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 18px; }
.hdr.is-scrolled { background: rgba(244, 242, 237, .86); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.logo .lg { height: 38px; width: auto; color: var(--ink); overflow: visible; }
.logo .lg-sub { fill: var(--mute); }
.logo--inv .lg { color: #fff; }
.logo--inv .lg-sub { fill: #A9AFC2; }
.lg-top { transform-box: fill-box; transform-origin: left center; transition: transform .7s var(--ease), fill-opacity .7s; }
.logo:hover .lg-top, .logo:focus-visible .lg-top { transform: scaleX(1.556); fill-opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .hdr .lg-top { animation: lgprint 1.4s var(--ease) .4s backwards; } }
@keyframes lgprint { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wordmark { font: 800 22px/1 var(--display); letter-spacing: -.025em; display: inline-flex; align-items: center; gap: 8px; }
.wordmark i { width: 22px; height: 22px; border-radius: 6px; background: var(--acc); display: grid; place-items: center; }
.wordmark i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line-2); }
.nav > li { list-style: none; position: relative; }
.nav ul { margin: 0; padding: 0; }
.nav__a { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; background: none; border: 0; transition: background .2s, color .2s; }
.nav__a:hover, .nav > li:focus-within > .nav__a, .nav > li.is-open > .nav__a { background: var(--ink); color: #fff; }
.nav__a[aria-current="page"] { color: var(--acc); }
.nav__a svg { width: 14px; height: 14px; opacity: .7; }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; width: min(760px, 86vw); padding: 14px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r4); box-shadow: var(--sh3); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s, transform .4s var(--ease), visibility .25s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav > li:hover > .mega, .nav > li:focus-within > .mega, .nav > li.is-open > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 12px; border-radius: var(--r3); text-decoration: none; align-items: center; transition: background .2s; }
.mega a:hover { background: var(--paper); }
.mega b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.mega small { display: block; font-size: 13px; color: var(--mute); line-height: 1.4; }
.mega .tag { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); font: 600 12px/1 var(--mono); color: var(--ink); }
.mega a:hover .tag { background: var(--acc); color: #fff; }
.mega--sm { width: 360px; grid-template-columns: 1fr; }
.mega--sm a { grid-template-columns: 1fr; padding: 11px 14px; }
.mega--tech { width: min(900px, 90vw); grid-template-columns: repeat(4, 1fr); }
.mega--tech a.mt { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 10px 14px; }
.mega--tech .mt__img { aspect-ratio: 1; border-radius: 14px; background: var(--paper); display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; }
.mega--tech .mt__img img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.mega--tech a.mt:hover .mt__img img { transform: scale(1.08) rotate(-3deg); }
.mega--tech .tag { width: auto; height: auto; padding: 4px 8px; border-radius: 6px; justify-self: start; align-self: flex-start; font-size: 11px; }
.mega--mats { width: min(900px, 90vw); grid-template-columns: repeat(4, 1fr); }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 14px 12px 4px; border-top: 1px solid var(--line-2); font-size: 14px; }
.mega__group h6 { margin: 8px 12px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.mega__group a { grid-template-columns: 1fr; padding: 7px 12px; font-size: 14.5px; font-weight: 600; }
/* Wide panels hang from the nav pill (centred), not from their own item. */
.nav { position: relative; }
.hdr__in > nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.nav > li.nav__wide { position: static; }
.nav__wide > .mega { top: calc(100% + 12px); }
.mega .mega__foot a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; grid-template-columns: none; white-space: nowrap; font-weight: 600; }
.mega__foot .link { color: var(--mute); }
.mega__foot .link:hover { color: var(--acc); background: none; }
.mega--sm a { gap: 3px; padding: 12px 16px; }
.mega--sm a b { transition: color .2s; }
.mega--sm a:hover b { color: var(--acc); }
.mega__group { padding: 4px 0; }
.mega__group + .mega__group { border-left: 1px solid var(--line-2); }
.mega__group h6 { display: inline-block; margin: 8px 12px 10px; padding: 5px 8px; border-radius: 6px; background: var(--paper); color: var(--ink); }
.hdr__tools { display: flex; align-items: center; gap: 6px; }
.hdr__proj { position: relative; }
.hdr__proj .count, .tabbar .count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: #fff; font: 700 10.5px/18px var(--sans); text-align: center; }
.hdr__proj .count:empty, .tabbar .count:empty { display: none; }
.lang { position: relative; }
.lang > button { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font: 600 13px/1 var(--mono); letter-spacing: .04em; }
.lang > button:hover { border-color: var(--ink); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r3); box-shadow: var(--sh3); min-width: 170px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s var(--ease); z-index: 5; }
.lang.is-open ul { opacity: 1; visibility: visible; transform: none; }
.lang ul a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.lang ul a:hover, .lang ul a[aria-current] { background: var(--paper); }
.lang ul a span { font: 500 12px/1.6 var(--mono); color: var(--mute); }
.hdr__menu { display: none; }
/* Header steps down gracefully on laptop widths before the burger takes over (≤1080). */
@media (max-width: 1360px) { .hdr__in { gap: 12px; } .logo .lg { height: 34px; } .nav__a { padding: 0 12px; font-size: 14px; } .hdr__tools { gap: 4px; } .hdr__cta { padding-inline: 18px; } }
@media (max-width: 1240px) { .hdr__price { display: none; } }
@media (max-width: 1200px) { .logo .lg { height: 30px; } .hdr__tools [data-nst-search] { display: none; } .nav__a { padding: 0 10px; font-size: 13.5px; } }
@media (max-width: 1080px) {
	.nav, .hdr__cta { display: none; }
	.hdr__menu { display: inline-grid; }
	.hdr__tools { margin-left: auto; }
	:root { --hdr: 62px; }
	.lang > button { height: 38px; padding: 0 10px; }
}

/* Mobile menu */
.mnav { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff; display: flex; flex-direction: column; clip-path: circle(0 at calc(100% - 40px) 32px); visibility: hidden; transition: clip-path .7s var(--ease), visibility .7s; }
.mnav.is-open { clip-path: circle(150% at calc(100% - 40px) 32px); visibility: visible; }
.mnav__top { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gut); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mnav__top .iconbtn { color: #fff; }
.mnav__top .iconbtn:hover { background: rgba(255, 255, 255, .1); }
.mnav__body { flex: 1; overflow-y: auto; padding: 14px var(--gut) 130px; }
.mnav__body h6 { margin: 28px 0 8px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.mnav__body a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); text-decoration: none; font: 700 24px/1.1 var(--display); letter-spacing: -.01em; color: #fff; }
.mnav__body a small { color: #8F8F96; font: 500 12.5px/1 var(--mono); letter-spacing: 0; }
.mnav__langs { display: flex; gap: 8px; margin-top: 24px; }
.mnav__langs a { flex: 1; justify-content: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font: 600 14px/1 var(--mono); padding: 14px 0; }
.mnav__langs a[aria-current] { background: #fff; color: var(--ink); }

/* Mobile tab bar */
.tabbar { display: none; }
@media (max-width: 1080px) {
	.tabbar { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 6px; border-radius: 22px; background: rgba(13, 13, 15, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); }
	.tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 7px 0 5px; font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, .55); text-decoration: none; background: none; border: 0; position: relative; border-radius: 16px; }
	.tabbar svg { width: 21px; height: 21px; }
	.tabbar [aria-current="page"] { color: #fff; }
	.tabbar .tab-up { color: #fff; }
	.tabbar .tab-up span.ic { width: 50px; height: 42px; border-radius: 14px; background: var(--acc); color: #fff; display: grid; place-items: center; }
	.tabbar .tab-up span.ic svg { width: 22px; height: 22px; }
	.tabbar .count { top: 2px; right: auto; left: 56%; }
	body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
	html.app-open .tabbar { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px/1.4 var(--mono); letter-spacing: .02em; color: var(--mute); margin: 0 0 28px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--acc); }

/* ---------- Upload drop zone (same everywhere) ---------- */
.drop { position: relative; display: grid; place-items: center; text-align: center; gap: 14px; padding: clamp(24px, 3.44vw, 41px) 26px; border-radius: var(--r4); background: var(--white); border: 1.5px dashed var(--line); cursor: pointer; transition: border-color .25s, background .25s, box-shadow .35s, transform .35s var(--ease); isolation: isolate; overflow: hidden; }
.drop::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(19, 56, 190, .08), transparent 60%); opacity: 0; transition: opacity .3s; }
.drop:hover::before { opacity: 1; }
.drop:hover { border-color: var(--ink); }
.drop.is-over { border-color: var(--acc); border-style: solid; box-shadow: 0 0 0 8px rgba(19, 56, 190, .1); transform: scale(1.01); }
.drop__ic { width: 60px; height: 60px; border-radius: 50%; background: var(--acc); display: grid; place-items: center; color: #fff; transition: transform .45s var(--ease); }
.drop:hover .drop__ic, .drop.is-over .drop__ic { transform: translateY(-4px) scale(1.06); }
.drop__ic svg { width: 26px; height: 26px; }
.drop__t { font: 700 clamp(20px, 2vw, 24px)/1.1 var(--display); letter-spacing: -.01em; }
.drop__f { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; color: var(--mute); }
.drop__or { font-size: 14px; color: var(--mute); }
.drop__fine { display: flex; gap: 6px 16px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--mute); }
.drop__fine span { display: inline-flex; align-items: center; gap: 6px; }
.drop__fine svg { width: 15px; height: 15px; color: var(--ok); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop--compact { padding: 18px 20px; grid-template-columns: auto 1fr auto; text-align: left; place-items: center start; gap: 16px; }
.drop--compact .drop__ic { width: 48px; height: 48px; }
.drop--compact .drop__fine { grid-column: 1 / -1; justify-content: flex-start; }
@media (max-width: 640px) { .drop--compact { grid-template-columns: 1fr; text-align: center; place-items: center; } .drop--compact .drop__fine { justify-content: center; } .drop__desk { display: none; } }
@media (min-width: 641px) { .drop__mob { display: none; } }
.priv { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.priv svg { width: 16px; height: 16px; color: var(--ok); }
.ink .drop, .sec--ink .drop { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .2); color: #fff; }
.ink .drop:hover, .sec--ink .drop:hover { border-color: #fff; }
.ink .drop__f, .ink .drop__or, .ink .drop__fine, .sec--ink .drop__f, .sec--ink .drop__or, .sec--ink .drop__fine { color: #A3A3AA; }
.ink .drop .btn, .sec--ink .drop .btn { --b: #fff; --c: var(--ink); }
.welcome { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-2); margin-bottom: 24px; font-size: 14.5px; width: fit-content; }

/* ---------- Steps / flow (inner pages) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: st; }
.steps > div { padding: 28px 24px; border-radius: var(--r3); background: var(--white); border: 1px solid var(--line-2); position: relative; }
.steps > div::before { counter-increment: st; content: "0" counter(st); display: block; font: 600 12px/1 var(--mono); color: var(--acc); margin-bottom: 22px; letter-spacing: .06em; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--mute); font-size: 15px; margin: 0; }
.steps svg { width: 28px; height: 28px; margin-bottom: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.flow { display: flex; align-items: center; overflow-x: auto; padding: 6px 0 2px; scrollbar-width: none; }
.flow span { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.flow i { flex: none; width: 28px; height: 1px; background: var(--line); }
.flow span.is-on { border-color: var(--acc); color: var(--acc); }

/* ---------- Tech & material cards ---------- */
.tcard { display: flex; flex-direction: column; }
.tcard__abbr { font: 600 13px/1 var(--mono); letter-spacing: .08em; color: var(--acc); margin-bottom: 12px; }
.tcard dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.tcard dt { color: var(--mute); }
.tcard dd { margin: 0; text-align: right; font-weight: 600; }
.tcard .arrow { margin-top: auto; padding-top: 20px; font-size: 14.5px; }
.mcard { display: flex; flex-direction: column; gap: 8px; }
.mcard__top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.mcard__name { font: 700 20px/1.1 var(--display); letter-spacing: -.01em; }
.mcard__tech { font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--acc); }
.mcard__tag { font-size: 14px; color: var(--mute); margin: 0 0 10px; }
.mcard__rows { display: grid; gap: 7px; font-size: 13px; }
.mcard__rows div { display: grid; grid-template-columns: 92px 1fr; align-items: center; }
.mcard__rows span { color: var(--mute); }
.price-marks { font: 600 13px/1 var(--mono); color: var(--ink); letter-spacing: .04em; }
.price-marks i { color: var(--line); font-style: normal; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.gallery figure { margin: 0; background: var(--white); border-radius: var(--r3); overflow: hidden; aspect-ratio: 1; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .9s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; padding: 6px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Finder ---------- */
.finder { background: var(--white); border-radius: var(--r4); padding: clamp(19px, 2.58vw, 38px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(19px, 3.44vw, 48px); border: 1px solid var(--line-2); }
.finder__q h3 { margin-bottom: 8px; font-size: clamp(26px, 2.6vw, 36px); }
.finder__q p { color: var(--mute); }
.finder__step { margin-top: 20px; }
.finder__step .label { display: block; margin-bottom: 10px; }
.finder__out { background: var(--paper); border-radius: var(--r3); padding: 20px; min-height: 280px; display: flex; flex-direction: column; gap: 10px; }
.rec { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r3); padding: 16px 18px; display: grid; gap: 5px; animation: rise .5s var(--ease) both; }
.rec:nth-child(2) { animation-delay: .06s; } .rec:nth-child(3) { animation-delay: .12s; }
.rec b { font-size: 16px; }
.rec small { color: var(--mute); font-size: 13.5px; line-height: 1.45; }
.rec .badge { justify-self: start; }
.rec__note { font-size: 12.5px; color: var(--mute); margin-top: auto; }
@media (max-width: 900px) { .finder { grid-template-columns: minmax(0, 1fr); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 56px 24px 0; position: relative; font: 600 clamp(17px, 1.5vw, 20px)/1.3 var(--display); letter-spacing: -.01em; transition: color .2s; }
.faq summary:hover { color: var(--acc); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 400 22px/1 var(--sans); transition: transform .4s var(--ease), background .2s, color .2s, border-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq .ans { padding: 0 0 26px; color: var(--ink-2); max-width: 760px; }
.faq .ans p:last-child { margin: 0; }

/* ---------- Final CTA (used across pages) ---------- */
.fcta { position: relative; overflow: hidden; padding: clamp(69px, 9.46vw, 146px) 0; text-align: center; }
.fcta h2 { font-size: clamp(38px, 6.02vw, 93px); margin: 0 auto 22px; max-width: 13ch; color: #fff; }
.fcta p.sub { max-width: 560px; margin: 0 auto 36px; font-size: 18px; color: #B9B8B2; }
.fcta .drop { max-width: 660px; margin: 0 auto; }
.fcta .priv { justify-content: center; margin-top: 18px; display: flex; color: #8F8F96; }
.final { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }

/* ---------- Inner page header ---------- */
.phead { position: relative; padding: clamp(34px, 5.16vw, 83px) 0 clamp(34px, 5.16vw, 76px); overflow: hidden; isolation: isolate; }
.phead::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(13, 13, 15, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 13, 15, .055) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); }
.phead__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4.3vw, 69px); align-items: center; }
.phead h1 { font-size: clamp(36px, 5.33vw, 79px); margin-bottom: 24px; }
.phead .lead { margin: 0 0 28px; max-width: 640px; }
.phead__media { background: var(--white); border-radius: var(--r4); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; position: relative; }
.phead__media::after { content: ""; position: absolute; inset: 14px; border: 1px dashed var(--line); border-radius: calc(var(--r4) - 10px); pointer-events: none; }
.phead__media img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.phead__cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .phead__grid { grid-template-columns: minmax(0, 1fr); } .phead__media { aspect-ratio: 16 / 10; } }
.answer { border-left: 3px solid var(--acc); padding: 4px 0 4px 20px; margin: 0 0 28px; font-size: 18px; color: var(--ink-2); max-width: 700px; line-height: 1.55; }
.answer b { color: var(--ink); }
.specbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--ink); color: #fff; border-radius: var(--r4); overflow: hidden; }
.specbar div { padding: 24px 22px; border-right: 1px solid rgba(255, 255, 255, .1); }
.specbar div:last-child { border-right: 0; }
.specbar span { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8F8F96; margin-bottom: 10px; }
.specbar b { font: 700 19px/1.15 var(--display); letter-spacing: -.01em; }
@media (max-width: 900px) { .specbar { grid-template-columns: 1fr 1fr; } .specbar div { border-bottom: 1px solid rgba(255, 255, 255, .1); } }

/* ---------- Prose ---------- */
.prose { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); max-width: 760px; }
.prose h2 { font-size: clamp(24px, 2.58vw, 34px); color: var(--ink); margin: 2em 0 .55em; line-height: 1.05; }
.prose h3 { font-size: 22px; color: var(--ink); margin: 1.7em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--acc); }
.prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--acc); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.6em 0; background: var(--white); border-radius: var(--r2); overflow: hidden; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); text-align: left; }
.prose th { font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); background: var(--paper-2); }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: var(--r3); background: var(--white); font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink); }
.prose .note { padding: 16px 20px; border-radius: var(--r3); background: var(--acc-soft); color: var(--ink); font-size: 15.5px; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4.3vw, 69px); align-items: start; }
.aside { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 14px; }
.aside .card p { font-size: 14.5px; }
.toc { font-size: 14px; }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -16px; color: var(--mute); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover, .toc a.is-on { color: var(--ink); border-left-color: var(--acc); }
@media (max-width: 1024px) { .with-aside { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

/* Material page */
.vtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat { padding: 18px; background: var(--white); border-radius: var(--r3); border: 1px solid var(--line-2); }
.stat span { display: block; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.stat b { font: 700 24px/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat b.tbd { font-size: 15px; color: var(--faint); font-weight: 500; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 13.5px; font-weight: 600; }
.sw i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); flex: none; }
.cmp { overflow-x: auto; }
.cmp table { min-width: 680px; }
.cmp th:first-child { width: 190px; }
.matrix th, .matrix td { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix .yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; text-decoration: none; transition: background .2s, transform .3s var(--ease); }
.matrix .yes:hover { background: var(--acc); transform: scale(1.12); }
.matrix .no { color: var(--line); }
.matrix tr.is-dim td { opacity: .25; }
.cmpbar { position: fixed; left: 50%; bottom: 20px; z-index: 75; transform: translate(-50%, 160%); display: flex; gap: 12px; align-items: center; padding: 8px 8px 8px 20px; background: var(--ink); color: #fff; border-radius: 999px; box-shadow: var(--sh3); transition: transform .5s var(--ease); font-size: 14.5px; }
.cmpbar.is-on { transform: translate(-50%, 0); }
@media (max-width: 1080px) { .cmpbar { bottom: 100px; } }
.ba { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r3); overflow: hidden; background: var(--white); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ba__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); background: var(--white); }
.ba__bar { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; background: var(--acc); }
.ba__bar::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 15px; }
.ba__lbl { position: absolute; top: 12px; font: 600 11px/1 var(--mono); letter-spacing: .07em; padding: 6px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.ba input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: #A3A3AA; padding: clamp(55px, 6.88vw, 96px) 0 0; font-size: 14.5px; overflow: hidden; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ftr__top h2 { color: #fff; font-size: clamp(34px, 4.82vw, 72px); max-width: 11ch; }
.ftr__cta { display: grid; gap: 14px; align-content: end; justify-items: start; }
.ftr__cta p { color: #A3A3AA; max-width: 420px; margin: 0; font-size: 16.5px; }
.ftr__cta .row { display: flex; flex-wrap: wrap; gap: 10px; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px; padding: 56px 0; }
.ftr h6 { margin: 0 0 18px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #6E6E76; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a { text-decoration: none; color: #D2D0CA; transition: color .2s; }
.ftr a:hover { color: #fff; }
.ftr__brand p { color: #8F8F96; max-width: 300px; margin: 18px 0; }
.ftr__contact a.big { display: block; font: 700 26px/1.1 var(--display); letter-spacing: -.01em; color: #fff; margin-bottom: 6px; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); color: #6E6E76; font-size: 13px; }
.ftr__legal a { color: #8F8F96; }
.ftr__word { font: 800 clamp(55px, 15.05vw, 249px)/.86 var(--display); letter-spacing: -.03em; color: #fff; white-space: nowrap; margin: 10px 0 -.06em; text-align: center; user-select: none; }
.ftr__word span { display: inline-block; }
.ftr__word em { font-family: var(--serif); font-weight: 300; color: var(--acc); }
@media (max-width: 960px) { .ftr__top { grid-template-columns: minmax(0, 1fr); } .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }

/* ---------- Overlays: search, assistant, consent, toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(13, 13, 15, .45); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.overlay.is-open { opacity: 1; visibility: visible; }
html.app-open .overlay { z-index: 125; }
.search { position: fixed; z-index: 101; left: 50%; top: 10vh; width: min(760px, calc(100% - 24px)); transform: translate(-50%, -14px); background: var(--white); border-radius: var(--r4); box-shadow: var(--sh3); opacity: 0; visibility: hidden; transition: opacity .25s, transform .4s var(--ease), visibility .25s; overflow: hidden; }
.search.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.search__bar { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.search__bar svg { width: 22px; height: 22px; color: var(--acc); flex: none; }
.search__bar input { flex: 1; border: 0; outline: 0; font: 600 20px/1.2 var(--display); letter-spacing: -.01em; background: transparent; min-width: 0; }
.search__res { max-height: 60vh; overflow-y: auto; padding: 10px; }
.search__res h6 { margin: 14px 12px 6px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.search__res a { display: block; padding: 11px 14px; border-radius: var(--r2); text-decoration: none; }
.search__res a:hover { background: var(--paper); }
.search__res a b { display: block; font-weight: 700; font-size: 15px; }
.search__res a small { color: var(--mute); font-size: 13px; }
.search__hint { padding: 16px 20px; color: var(--mute); font-size: 14px; }
.search__hint .chips { margin-top: 12px; }
.drawer { position: fixed; z-index: 101; top: 10px; right: 10px; bottom: 10px; width: min(460px, calc(100% - 20px)); background: var(--white); border-radius: var(--r4); box-shadow: var(--sh3); transform: translateX(calc(100% + 20px)); transition: transform .55s var(--ease); display: flex; flex-direction: column; overflow: hidden; }
.drawer.is-open { transform: none; }
.drawer:not(.is-open) { box-shadow: none; visibility: hidden; transition: transform .55s var(--ease), visibility 0s .55s, box-shadow 0s .55s; }
html.app-open .drawer { z-index: 126; }
.drawer__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 20px; border-bottom: 1px solid var(--line-2); }
.drawer__head h3 { font-size: 18px; flex: 1; display: flex; align-items: center; gap: 12px; }
.drawer__head small { display: block; font: 500 11.5px/1.4 var(--mono); color: var(--mute); letter-spacing: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.drawer__foot { padding: 12px; border-top: 1px solid var(--line-2); }
.msg { max-width: 92%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.55; animation: rise .4s var(--ease) both; }
.msg p { margin: 0 0 .6em; } .msg p:last-child { margin: 0; }
.msg ul { margin: .3em 0 .6em; padding-left: 1.1em; }
.msg--me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg--bot { align-self: flex-start; background: var(--white); border-bottom-left-radius: 6px; }
.msg--bot a { color: var(--acc-ink); font-weight: 600; }
.msg--bot .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.msg--bot .links a { font-size: 13px; padding: 7px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; color: var(--ink); }
.msg--bot .links a:hover { border-color: var(--ink); }
.msg--typing { display: inline-flex; gap: 5px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: blink 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.mrec { display: grid; gap: 6px; margin-top: 10px; }
.mrec a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--paper); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.mrec a small { color: var(--acc); font: 600 11px/1 var(--mono); }
.ai-ctx { font: 500 12px/1.4 var(--mono); color: var(--mute); padding: 8px 20px 0; }
.ask { display: flex; gap: 8px; }
.ask input { flex: 1; min-width: 0; border-radius: 999px; }
.ask .btn { min-height: 48px; padding: 0 18px; }
.aifab { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 8px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; box-shadow: 0 20px 44px -16px rgba(13, 13, 15, .6); transition: transform .4s var(--ease); }
.aifab:hover { transform: translateY(-3px); }
.aifab i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); font-style: normal; position: relative; }
.aifab i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--acc); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.aifab i svg { width: 20px; height: 20px; }
@media (max-width: 1080px) { .aifab { bottom: calc(96px + env(safe-area-inset-bottom)); right: 14px; height: 50px; padding: 0 5px; } .aifab span { display: none; } .aifab i { width: 40px; height: 40px; } }
html.app-open .aifab { display: none; }
.consent { position: fixed; z-index: 95; left: 20px; bottom: 20px; max-width: 440px; padding: 20px 22px; background: var(--white); border-radius: var(--r4); box-shadow: var(--sh3); font-size: 14px; display: none; }
.consent.is-on { display: block; animation: rise .5s var(--ease); }
.consent p { margin: 0 0 14px; color: var(--ink-2); }
.consent .row { display: flex; gap: 8px; }
@media (max-width: 1080px) { .consent { left: 10px; right: 10px; bottom: 100px; max-width: none; } }
.toast { position: fixed; z-index: 140; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; padding: 14px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: var(--sh3); transition: opacity .25s, transform .45s var(--ease); pointer-events: none; max-width: calc(100% - 24px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1080px) { .toast { bottom: 110px; } }

/* ---------- Empty, 404, notices ---------- */
.empty { text-align: center; padding: clamp(41px, 6.88vw, 103px) 0; display: grid; justify-items: center; gap: 14px; }
.empty__ic { width: 72px; height: 72px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; }
.empty__ic svg { width: 30px; height: 30px; }
.empty p { color: var(--mute); max-width: 480px; }
.nf { text-align: center; padding: clamp(52px, 8.6vw, 138px) 0; }
.nf__code { font: 800 clamp(103px, 20.64vw, 292px)/.88 var(--display); letter-spacing: -.03em; color: var(--ink); }
.nf__code em { font-family: var(--serif); font-weight: 300; color: var(--acc); }
.prelim { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--warn); line-height: 1.45; }
.prelim svg { flex: none; margin-top: 1px; }

/* ---------- Motion primitives (driven by motion.js) ---------- */
html.js [data-rv] { opacity: 0; transform: translateY(32px); }
html.js [data-rv].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; will-change: transform; }
html.js .splt:not(.is-in) .split-line > span { transform: translateY(110%); }
.splt.is-in .split-line > span { transform: none; transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * .08s + var(--d, 0s)); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	html.js [data-rv], html.js .splt .split-line > span { opacity: 1 !important; transform: none !important; }
}
.welcome[hidden] { display: none; }
@media (max-width: 640px) { .annc { font-size: 12px; } .annc .wrap { min-height: 34px; gap: 8px; } .annc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.nav__a { white-space: nowrap; }

/* Accent on dark surfaces: lighter sapphire for contrast */
:root { --acc-on-ink: #8FA8FF; }
.ink h1 em, .ink h2 em, .sec--ink h2 em, .ftr h2 em, .ftr__word em, .fcta h2 em, .mk h2 em, .studio-show h2 em, .ai h2 em, .nf__code em { color: var(--acc-on-ink); }
.ink .eyebrow::before, .sec--ink .eyebrow::before, .mnav__body h6 { color: var(--acc-on-ink); }
.marq { background: var(--acc); }

/* Journal (blog) */
.blog__head .lead { max-width: 620px; }
.blog__cats { margin-top: 24px; }
.blog__cats small { font: 500 11px/1 var(--mono); opacity: .6; }
.blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-c { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r3); background: var(--white); border: 1px solid var(--line-2); overflow: hidden; text-decoration: none; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.post-c:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--sh2); }
.post-c__img { aspect-ratio: 16 / 10; background: radial-gradient(80% 80% at 50% 45%, #fff, var(--paper-2)); display: grid; place-items: center; overflow: hidden; }
.post-c__img img { width: 62%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: transform .9s var(--ease); }
.post-c:hover .post-c__img img { transform: scale(1.08) rotate(-3deg); }
.post-c__b { display: grid; gap: 8px; padding: 20px; align-content: start; }
.post-c__m { font: 500 11.5px/1.3 var(--mono); color: var(--acc); letter-spacing: .02em; }
.post-c b { font: 700 21px/1.15 var(--display); letter-spacing: -.01em; }
.post-c small { color: var(--mute); font-size: 14.5px; line-height: 1.5; }
.post-c .arrow { font-size: 14px; margin-top: 4px; }
.post-c--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: none; background: var(--ink); border-color: var(--ink); color: #fff; }
.post-c--lead .post-c__img { aspect-ratio: auto; min-height: 320px; background: radial-gradient(70% 70% at 50% 50%, #2A2C33, #121317); }
.post-c--lead .post-c__img img { mix-blend-mode: normal; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.post-c--lead .post-c__b { padding: clamp(21px, 3.44vw, 41px); align-content: center; }
.post-c--lead b { font-size: clamp(24px, 2.75vw, 38px); color: #fff; }
.post-c--lead small { color: #B9B8B2; font-size: 16px; }
.post-c--lead .post-c__m { color: var(--acc-on-ink); }
.post-c--lead .arrow { color: #fff; }
.blog__pg { margin-top: 28px; justify-content: center; }
@media (max-width: 1000px) { .blog__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .blog__grid { grid-template-columns: 1fr; gap: 10px; } .post-c { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: none; } .post-c__img { aspect-ratio: auto; } .post-c__b { padding: 12px 14px; gap: 4px; } .post-c b { font-size: 16px; } .post-c small { display: none; } .post-c--lead { grid-template-columns: 1fr; } .post-c--lead .post-c__img { min-height: 180px; } .post-c--lead small { display: block; font-size: 14px; } .blog__cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 18px calc(var(--gut) * -1) 0; padding: 0 var(--gut); } .blog__cats .chip { flex: none; } }
.blog__head { padding-bottom: 8px; }
.blog__head + .sec.blog { padding-top: clamp(17px, 2.58vw, 34px); }
/* Nothing decorative (tilted marquee, giant footer word) may widen the page on phones. */
main, .ftr { overflow-x: clip; }
