/* Geist and Geist Mono (SIL Open Font License), self-hosted so pages never wait on Google Fonts. */
/* Geist · cyrillic-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Geist · cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Geist · latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist · latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-latin.woff2) format('woff2');
  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;
}
/* Geist · cyrillic-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/geist-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Geist · cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/geist-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Geist · latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/geist-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist · latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/geist-latin.woff2) format('woff2');
  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;
}
/* Geist · cyrillic-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/geist-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Geist · cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/geist-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Geist · latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/geist-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist · latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/geist-latin.woff2) format('woff2');
  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;
}
/* Geist Mono · cyrillic-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-mono-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Geist Mono · cyrillic */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Geist Mono · latin-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-mono-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist Mono · latin */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/geist-mono-latin.woff2) format('woff2');
  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;
}
/* Geist Mono · cyrillic-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/geist-mono-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Geist Mono · cyrillic */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/geist-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Geist Mono · latin-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/geist-mono-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist Mono · latin */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/geist-mono-latin.woff2) format('woff2');
  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;
}

/* UDEX — independent product studio
   Plain CSS, no build step. Tokens follow DESIGN.md — edit them here, not inline. */

:root {
  /* Dark is the default theme (matches udex.app). */
  --bg: #010101;
  --bg-elev: #030303;
  --bg-sunk: #121212;
  --bg-hover: #161616;
  --ink: #fafafa;
  --ink-2: #a3a3a3;
  --ink-3: #808080;
  --line: #ffffff14;
  --line-strong: #ffffff2e;
  --primary: #fafafa;
  --primary-ink: #0a0a0a;
  --destructive: #ff6568;
  --ok: #00d294;

  --aurora-1: #a084ff8c;
  --aurora-2: #00b3ff80;
  --aurora-3: #00d6bb66;
  --aurora-4: #da74f173;
  --aurora-blend: screen;
  --aurora-opacity: .55;
  --noise-opacity: .06;
  --grid-line: #ffffff0b;

  --accent: #c3c9ff;
  --grad: linear-gradient(90deg, #c3c9ff, #00eaf4);
  --gradient-text-end: #8f8f8f;
  --card-wash: radial-gradient(60% 80% at 50% 0%, #a7adff2e, transparent 65%), radial-gradient(60% 80% at 100% 100%, #00d1d924, transparent 65%);
  --card-top-line: linear-gradient(90deg, transparent 10%, #ffffff2e 50%, transparent 90%);
  --card-top-line-featured: linear-gradient(90deg, transparent 5%, #c2c8ffb3 50%, transparent 95%);
  --shadow: 0 40px 120px #0009, 0 0 0 1px #ffffff0d, inset 0 1px 0 #ffffff0f;
  --glass: color-mix(in srgb, var(--bg) 60%, transparent);

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fafcfe;
  --bg-elev: #ffffff;
  --bg-sunk: #eff2f5;
  --bg-hover: #e8ecf0;
  --ink: #0e1216;
  --ink-2: #525a63;
  --ink-3: #636363;
  --line: #0e12161a;
  --line-strong: #0e12162e;
  --primary: #171717;
  --primary-ink: #fafafa;
  --destructive: #e40014;
  --ok: #009767;

  --aurora-1: #b6a8ff66;
  --aurora-2: #00d3ff5c;
  --aurora-3: #42ebd14d;
  --aurora-4: #e98dfe52;
  --aurora-blend: multiply;
  --aurora-opacity: .4;
  --noise-opacity: .04;
  --grid-line: #0e121612;

  --accent: #6d65fe;
  --grad: linear-gradient(90deg, #6d65fe, #00939a);
  --gradient-text-end: #717171;
  --card-wash: radial-gradient(70% 80% at 50% 0%, #a7adff26, transparent 65%), radial-gradient(70% 80% at 100% 100%, #00d1d91f, transparent 65%);
  --card-top-line: linear-gradient(90deg, transparent 10%, #0e121633 50%, transparent 90%);
  --card-top-line-featured: linear-gradient(90deg, transparent 5%, #6d65feb3 50%, transparent 95%);
  --shadow: 0 1px 2px #1115240d, 0 12px 28px #11152414, 0 28px 64px #1115241a, 0 0 0 1px #12161f0d;
  color-scheme: light;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--primary-ink); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad);
}

.silver {
  background: linear-gradient(180deg, var(--ink) 30%, var(--gradient-text-end));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.muted { color: var(--ink-2); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease), opacity .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { background: var(--bg-hover); }
.btn-glass {
  position: relative; background: color-mix(in srgb, var(--bg-elev) 50%, transparent); color: var(--ink);
  border: 1px solid transparent;
  background-image: linear-gradient(var(--bg-elev), var(--bg-elev)), var(--grad);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.btn-glass:hover { opacity: .9; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); }
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(3px); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; font: 500 13px/1 var(--font-mono); letter-spacing: .3em; padding-left: .3em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); font-size: 15px; font-weight: 500;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-hover); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s ease;
}
.icon-btn:hover { background: var(--bg-hover); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }

.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: grid; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav a { padding: 14px 12px; font-size: 18px; border-radius: 10px; }
  .nav .btn { display: inline-flex; margin-top: 12px; }
  .nav a.btn-primary, .nav a.btn-primary:hover { color: var(--primary-ink); background: var(--primary); justify-content: center; }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .header-actions { margin-left: auto; }
}
@media (min-width: 901px) { .nav .btn { display: none; } }

/* "Company" dropdown in the header */
.nav-more { position: relative; }
.nav-more-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 14px; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--ink-2); font: 500 15px/1.4 var(--font-sans); transition: color .15s ease, background-color .15s ease; }
.nav-more-btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-more-btn:hover, .nav-more.is-open .nav-more-btn { color: var(--ink); }
.nav-more.is-current .nav-more-btn { color: var(--ink); background: var(--bg-hover); }
.nav-drop-label { display: none; }
@media (min-width: 901px) {
  .nav-drop {
    position: absolute; top: calc(100% + 10px); right: -8px; z-index: 30; width: 320px; display: grid; gap: 2px; padding: 8px;
    border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); background: var(--bg);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .nav-more.is-open .nav-drop, html.no-js .nav-more:hover .nav-drop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav-more.is-open .nav-more-btn svg { transform: rotate(180deg); }
  .nav .nav-drop a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
  .nav .nav-drop a:hover, .nav .nav-drop a[aria-current="page"] { background: var(--bg-hover); }
}
.nav-drop-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); color: var(--ink); background: var(--bg-elev); }
.nav-drop-ico svg { width: 19px; height: 19px; }
.nav-drop a span:last-child { display: grid; gap: 2px; }
.nav-drop b { font-size: 15px; font-weight: 600; color: var(--ink); }
.nav-drop small { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
@media (max-width: 900px) {
  .nav-more-btn { display: none; }
  .nav-drop { display: grid; gap: 2px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .nav-drop-label { display: block; padding: 4px 12px; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .nav .nav-drop a { display: flex; align-items: center; gap: 12px; }
  .nav-drop small { display: none; }
  .nav-drop-ico { width: 32px; height: 32px; }
}

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

main { display: block; }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 56px); }
.section-head p { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 620px; }
.section-head.split {
  max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
}
@media (max-width: 720px) { .section-head.split { grid-template-columns: 1fr; } }

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

.hero { position: relative; padding: clamp(72px, 12vw, 160px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 140%; pointer-events: none; z-index: 0;
  opacity: var(--aurora-opacity); mix-blend-mode: var(--aurora-blend); filter: blur(56px);
  background:
    radial-gradient(35% 45% at 30% 35%, var(--aurora-1), transparent 70%),
    radial-gradient(30% 40% at 62% 30%, var(--aurora-2), transparent 70%),
    radial-gradient(28% 36% at 78% 62%, var(--aurora-3), transparent 70%),
    radial-gradient(26% 34% at 18% 72%, var(--aurora-4), transparent 70%);
  animation: aurora 18s var(--ease) infinite alternate;
}
@keyframes aurora { to { transform: translate3d(3%, 4%, 0) scale(1.06); } }
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1; letter-spacing: -0.04em; margin: 22px 0 28px; max-width: 13ch; }
.hero .lead { font-size: clamp(17px, 1.9vw, 22px); color: var(--ink-2); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.page-hero { padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; line-height: 1.02; margin: 20px 0 24px; max-width: 16ch; }
.page-hero .lead { font-size: clamp(17px, 1.8vw, 21px); color: var(--ink-2); max-width: 640px; }

/* ---------- Marquee / logos ---------- */

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font: 500 15px/1 var(--font-mono); color: var(--ink-3); white-space: nowrap; letter-spacing: .02em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 16px; }
.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-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

.card, .project, .post, .step, .workspace {
  position: relative; isolation: isolate;
}
.card::before, .project::before, .post::before, .workspace::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2;
  background: var(--card-top-line); pointer-events: none;
}
.card.featured::before, .post.featured::before { background: var(--card-top-line-featured); }
.card {
  background: var(--card-wash), var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px);
  transition: border-color .2s ease, transform .2s ease;
}
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .num { font: 500 13px/1 var(--font-mono); color: var(--ink-3); margin-bottom: 28px; display: block; }

.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-sunk); border: 1px solid var(--line);
  margin-bottom: 24px;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag {
  font: 500 12px/1 var(--font-mono);
  padding: 7px 10px; border-radius: 999px;
  background: var(--bg-sunk); color: var(--ink-2);
  border: 1px solid var(--line);
}

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principle { padding: 32px 28px 8px 0; }
.principle + .principle { padding-left: 28px; border-left: 1px solid var(--line); }
.principle h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 12px; }
.principle p { color: var(--ink-2); }
@media (max-width: 800px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: var(--card-wash), var(--bg-elev); padding: 28px 24px 32px; }
.step .num { position: absolute; top: 28px; right: 24px; display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.step .num::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--step-hue, 280) 90% 72%); box-shadow: 0 0 10px hsl(var(--step-hue, 280) 90% 65%); }
.step .card-icon { margin-bottom: 0; }
.step h3 { font-size: 18px; letter-spacing: -0.015em; margin: 28px 0 10px; }
.step p { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 24px 0; border-top: 1px solid var(--line); }
.stat b { display: block; font: 500 clamp(36px, 4.6vw, 56px)/1 var(--font-display); letter-spacing: -0.03em; margin-bottom: 10px; }
.stat span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Project cards */
.project {
  display: flex; flex-direction: column;
  background: var(--card-wash), var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s var(--ease), transform .2s var(--ease);
}
.project:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.project-media {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
}
.project-media .mock {
  position: absolute; inset: 14% 10% -6% 10%;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow);
  padding: 14px; display: grid; gap: 8px; align-content: start;
}
.mock .bar { height: 8px; border-radius: 4px; background: var(--bg-sunk); }
.mock .bar.a { width: 40%; background: var(--grad); opacity: .7; }
.mock .bar.b { width: 72%; }
.mock .bar.c { width: 56%; }
.mock .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.mock .tiles i { height: 36px; border-radius: 6px; background: var(--bg-sunk); border: 1px solid var(--line); }
.project-media .hue {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 80% 0%, hsl(var(--h, 270) 80% 60% / .35), transparent 60%);
}
.project-body { padding: 24px 24px 28px; display: grid; gap: 10px; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project-meta .kpi { font: 500 12px/1 var(--font-mono); color: var(--ink); }
.project h3 { font-size: 20px; letter-spacing: -0.015em; }
.project p { color: var(--ink-2); font-size: 15px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { color: var(--ink); background: var(--bg-hover); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
[data-filter-item][hidden] { display: none !important; }
.chip-count { font: 500 11px/1 var(--font-mono); color: var(--ink-3); margin-left: 4px; }
.chip[aria-pressed="true"] .chip-count { color: inherit; opacity: .6; }
.load-more { display: grid; justify-items: center; gap: 4px; margin-top: 40px; }
.load-more .btn[hidden] { display: none; }

/* Avatars (blog bylines) */
.avatar {
  aspect-ratio: 1; border-radius: var(--radius);
  background: var(--card-wash), var(--bg-elev); border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; overflow: hidden;
  font: 500 clamp(36px, 5vw, 56px)/1 var(--font-display); color: var(--ink-3);
}
.avatar::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 30% 0%, hsl(var(--h, 270) 80% 60% / .28), transparent 70%);
}

@media (max-width: 800px) { .industry { grid-template-columns: 1fr; gap: 12px; } }

/* Service detail rows */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.service-row h3 { font-size: clamp(28px, 3.4vw, 44px); margin: 14px 0 16px; }
.service-row > div > p { color: var(--ink-2); font-size: 17px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checklist li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li span:last-child { color: var(--ink-3); font: 500 13px/1.6 var(--font-mono); white-space: nowrap; }
@media (max-width: 800px) { .service-row { grid-template-columns: 1fr; } }

/* Blog */
.post {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--card-wash), var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s var(--ease), transform .2s var(--ease);
}
.post:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.post-cover { aspect-ratio: 16 / 9; position: relative; background: var(--bg-sunk); border-bottom: 1px solid var(--line); overflow: hidden; }
.post-cover::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 90% at 20% 100%, hsl(var(--h, 260) 90% 70% / .4), transparent 70%),
    radial-gradient(50% 70% at 90% 10%, hsl(calc(var(--h, 260) - 70) 90% 55% / .35), transparent 70%);
}
.post-cover span { position: absolute; left: 20px; bottom: 16px; font: 500 12px/1 var(--font-mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.post-body { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; }
.post-meta { font: 500 12.5px/1 var(--font-mono); color: var(--ink-3); display: flex; gap: 12px; }
.post h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
.post p { color: var(--ink-2); font-size: 15px; }
.post.featured { grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; grid-template-rows: none; }
.post.featured .post-cover { aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--line); }
.post.featured h3 { font-size: clamp(26px, 3vw, 36px); }
.post.featured .post-body { padding: clamp(24px, 4vw, 48px); align-content: center; gap: 16px; }
@media (max-width: 800px) {
  .post.featured { grid-template-columns: 1fr; }
  .post.featured .post-cover { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
}

.newsletter { display: flex; gap: 8px; max-width: 460px; margin-top: 28px; }
.input {
  flex: 1; min-width: 0; height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink);
  font: inherit; font-size: 15px;
}
.input:focus { outline: none; border-color: var(--accent); }
@media (max-width: 480px) { .newsletter { flex-direction: column; } }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 10px; min-height: 1.4em; }

/* CTA */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  background: var(--bg-elev); color: var(--ink);
  border: 1px solid var(--line);
}
.cta::before {
  content: ""; position: absolute; inset: -30%; pointer-events: none;
  opacity: var(--aurora-opacity); mix-blend-mode: var(--aurora-blend); filter: blur(48px);
  background:
    radial-gradient(30% 50% at 75% 20%, var(--aurora-1), transparent 70%),
    radial-gradient(28% 45% at 90% 70%, var(--aurora-2), transparent 70%),
    radial-gradient(24% 40% at 60% 90%, var(--aurora-3), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(34px, 5vw, 64px); max-width: 14ch; letter-spacing: -0.04em; }
.cta p { color: var(--ink-2); font-size: 18px; margin: 20px 0 32px; max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Map / regions */

/* ---------- Legal / prose ---------- */

.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(64px, 10vw, 120px); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 4px; }
.toc b { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 10px; }
.toc a { color: var(--ink-2); font-size: 14px; padding: 6px 0; border-left: 2px solid transparent; padding-left: 12px; margin-left: -14px; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .toc { display: none; } }

.legal > * { min-width: 0; }
.prose { max-width: 720px; font-size: 16.5px; color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: 26px; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 19px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose code { font: 500 13px var(--font-mono); background: var(--bg-sunk); padding: 2px 6px; border-radius: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--bg-sunk); }
.updated { font: 500 13px/1 var(--font-mono); color: var(--ink-3); }

/* Cookie settings page */
.pref { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pref:first-of-type { border-top: 1px solid var(--line); }
.pref h3 { color: var(--ink); font-size: 18px; margin: 0 0 6px; }
.pref p { margin: 0; font-size: 15px; }
.pref-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background-color .2s ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-elev); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px;
  max-width: 440px; margin-left: auto;
  background: var(--glass); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 22px;
  transform: translateY(16px); opacity: 0; visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.cookie-banner.is-visible { transform: none; opacity: 1; visibility: visible; transition: opacity .3s ease, transform .3s ease; }
.cookie-banner h2 { font-size: 16px; letter-spacing: -0.01em; margin-bottom: 8px; }
.cookie-banner p { font-size: 14px; color: var(--ink-2); }
.cookie-banner p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-banner .btn { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--primary); color: var(--primary-ink); padding: 12px 20px; border-radius: 999px; font-size: 14px;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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

.site-footer { position: relative; border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 32px; margin-top: clamp(32px, 6vw, 80px); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-top p { color: var(--ink-2); font-size: 15px; margin-top: 16px; max-width: 320px; }
.footer-col h4 { font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col button { color: var(--ink-2); font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

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

/* only blocks below the first screen are hidden (main.js marks them .is-pending), so a page never paints empty and then fades in */
.reveal.is-pending { opacity: 0; transform: translateY(16px); }
.reveal.is-pending.is-in { opacity: 1; transform: none; transition: opacity .7s ease-out, transform .7s cubic-bezier(0, 0, .2, 1); }

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

/* ---------- Detail pages ---------- */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; font: 500 13px/1.4 var(--font-mono); color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }

.detail-hero h1 { max-width: 20ch; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.detail-grid .prose { max-width: none; }
.detail-aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--card-wash), var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .detail-aside { position: static; } }

.facts { margin: 0; display: grid; gap: 0; }
.facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts > div:first-child { padding-top: 0; }
.facts dt { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); font-size: 15px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.facts a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.facts a:hover { text-decoration-color: var(--ink); }

.kpi-big { display: grid; gap: 6px; margin-top: 32px; }
.kpi-big b { font: 500 clamp(32px, 4vw, 48px)/1 var(--font-sans); letter-spacing: -0.03em; }
.kpi-big span { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

.project-hero { aspect-ratio: 21 / 9; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.project-hero .mock { inset: 12% 14% -4% 14%; gap: 12px; padding: 22px; }
@media (max-width: 640px) { .project-hero { aspect-ratio: 4 / 3; } .project-hero .mock { inset: 10% 6% -4% 6%; } }

.post-hero { aspect-ratio: auto; height: clamp(160px, 24vw, 320px); border-block: 1px solid var(--line); }

.byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.byline b { display: block; font-weight: 500; }
.byline span { color: var(--ink-3); font-size: 14px; }
.avatar-sm { width: 44px; height: 44px; aspect-ratio: auto; border-radius: 50%; font-size: 18px; }

.tag-link:hover { color: var(--ink); border-color: var(--line-strong); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: 1fr; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 48px 0 24px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager-link {
  display: grid; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); transition: border-color .15s var(--ease);
}
.pager-link:hover { border-color: var(--line-strong); }
.pager-link b { font-weight: 500; font-size: 18px; letter-spacing: -0.015em; }
.pager-link.next { text-align: right; justify-items: end; }
.pager-link .eyebrow::before { display: none; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager-link.next { text-align: left; justify-items: start; } }

/* ---------- Generated cover images ---------- */

.project-media img, .post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.project-media img { transition: transform .5s var(--ease); }
.project:hover .project-media img { transform: scale(1.03); }
.post-cover img { transition: transform .5s var(--ease); }
.post:hover .post-cover img { transform: scale(1.03); }
.post-cover::before { display: none; }
.post-cover span {
  z-index: 1; padding: 6px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--ink); border: 1px solid var(--line);
}
.project-hero { aspect-ratio: 16 / 10; }
.post-hero { height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius-lg); max-height: none; }
@media (max-width: 640px) { .project-hero { aspect-ratio: 16 / 10; } }

/* ---------- Industries list ---------- */

.ind-list { display: grid; }
.ind-row {
  position: relative; display: grid; align-items: start;
  grid-template-columns: 88px minmax(0, 4fr) minmax(0, 6fr) 52px; gap: clamp(20px, 3vw, 44px);
  padding: 40px 28px; margin: 0 -28px; border-radius: var(--radius-lg);
  transition: background-color .25s var(--ease);
}
.ind-row::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 1px; background: var(--line); transition: opacity .25s var(--ease); }
.ind-row:hover { background: var(--card-wash), var(--bg-elev); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.ind-row:hover::after { opacity: 0; }

.ind-num {
  font: 300 clamp(36px, 4vw, 52px)/1 var(--font-sans); letter-spacing: -0.04em; color: var(--line-strong);
  font-variant-numeric: tabular-nums; transition: color .25s var(--ease);
}
.ind-row:hover .ind-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ind-head { padding-top: 6px; }
.ind-row:hover .ind-head h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; }
.ind-meta { display: block; margin-top: 8px; font: 500 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

.ind-body p { color: var(--ink-2); font-size: 16.5px; max-width: 60ch; }
.ind-caps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.ind-caps li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink); }
.ind-caps li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

.ind-work { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.ind-stack { display: flex; }
.ind-stack img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 2px var(--bg); outline: 1px solid var(--line-strong); outline-offset: -1px; transition: transform .25s var(--ease), margin .25s var(--ease); }
.ind-stack img + img { margin-left: -8px; }
.ind-row:hover .ind-stack img + img { margin-left: 4px; }
.ind-row:hover .ind-stack img { box-shadow: 0 0 0 2px var(--bg-elev); }
.ind-names { font: 500 12.5px/1.4 var(--font-mono); color: var(--ink-3); }

.ind-go {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 18px; color: var(--ink); margin-top: 4px;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.ind-row:hover .ind-go { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); transform: translateX(4px) rotate(-45deg); }

@media (max-width: 1000px) {
  .ind-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 20px; padding: 28px 16px; margin: 0 -16px; }
  .ind-row::after { left: 16px; right: 16px; }
  .ind-num { display: none; }
  .ind-body { grid-column: 1 / -1; grid-row: 2; }
  .ind-go { width: 48px; height: 48px; }
}
@media (max-width: 520px) { .ind-caps { grid-template-columns: 1fr; } }
.post-topic { color: var(--ink); }
.post-meta { flex-wrap: wrap; row-gap: 6px; }
.post-meta span { white-space: nowrap; }

/* ---------- Services page ---------- */

.svc-label { font: 500 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 3vw, 40px); border-radius: var(--radius-lg);
  background: var(--card-wash), var(--bg-elev); border: 1px solid var(--line);
}
.plan h3 { font-size: 26px; letter-spacing: -0.025em; }
.plan p { color: var(--ink-2); font-size: 15px; }
.plan ul { list-style: none; margin: 8px 0 12px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; flex: 1; }
.plan li { position: relative; padding-left: 28px; font-size: 15px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.plan li::after { content: ""; position: absolute; left: 5px; top: calc(.2em + 4px); width: 6px; height: 4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; }
.plan.featured { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); box-shadow: var(--shadow); }
.plan.featured p, .plan.featured .eyebrow { color: color-mix(in srgb, var(--primary-ink) 65%, transparent); }
.plan.featured ul { border-top-color: color-mix(in srgb, var(--primary-ink) 18%, transparent); }
.plan.featured li::after { border-color: var(--primary-ink); }
.plan-badge {
  position: absolute; top: 20px; right: 20px; padding: 6px 10px; border-radius: 999px;
  font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em;
  background: color-mix(in srgb, var(--primary-ink) 14%, transparent);
}
.btn-invert { background: var(--primary-ink); color: var(--primary); }
.btn-invert:hover { opacity: .9; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-weight: 400; font-size: 18px; color: var(--ink-2); transition: transform .2s var(--ease);
}
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { margin: -8px 0 24px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .section-head { position: static; } }

/* Services explorer */
.svx { display: grid; grid-template-columns: minmax(240px, 3fr) minmax(0, 8fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.svx-tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header-h) + 24px); }
.svx-tab {
  position: relative; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 4px;
  text-align: left; padding: 20px 20px 22px; border: 0; border-radius: var(--radius); background: transparent;
  cursor: pointer; overflow: hidden; transition: background-color .2s var(--ease);
}
.svx-tab:hover { background: var(--bg-sunk); }
.svx-tab[aria-selected="true"] { background: var(--bg-elev); box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0, 0, 0, .06); }
.svx-num { grid-row: 1 / 3; font: 500 12px/1.6 var(--font-mono); color: var(--ink-3); padding-top: 2px; }
.svx-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }
.svx-tab[aria-selected="true"] .svx-name { color: var(--ink); }

.svx-panels { position: relative; min-width: 0; }
.svx-panel {
  display: block;
  padding: clamp(28px, 4vw, 56px); border-radius: calc(var(--radius-lg) + 4px);
  background: var(--card-wash), var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.svx.is-ready .svx-panel:not(.is-active) { display: none; }
.svx.is-ready .svx-panel.is-active { animation: svx-in .45s var(--ease); }
@keyframes svx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.svx:not(.is-ready) .svx-panel + .svx-panel { margin-top: 16px; }
.svx-content { display: flex; flex-direction: column; gap: 28px; }
.svx-title h3 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.04em; }
.svx-title .ind-meta { margin-top: 10px; }
.svx-lead { color: var(--ink-2); font-size: 19px; max-width: 58ch; }
.svx-cols { display: grid; gap: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.svx-cols .ind-caps { gap: 12px 32px; }
.svx-cols .ind-caps { margin-top: 12px; }
.svx-cols .tags { margin-top: 12px; }
.svx-foot { margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.svx-foot .ind-stack img { box-shadow: 0 0 0 2px var(--bg-elev); }

@media (max-width: 1000px) {
  .svx { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .svx-tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 2px; min-width: 0; }
  .svx-tabs::-webkit-scrollbar { display: none; }
  .svx-tab { flex: none; grid-template-columns: auto auto; padding: 12px 14px 16px; }
  .svx-num { grid-row: auto; padding-top: 0; }
  .svx-panel { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { .svx.is-ready .svx-panel.is-active { animation: none; } }

.wrap-wide { max-width: 1360px; }

/* Services: goal */
.svx-outcome {
  position: relative; display: grid; gap: 8px; padding: 16px 20px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--ink); font-size: 16px; font-weight: 500; letter-spacing: -0.005em;
  max-width: 56ch;
}
.hero-outcome { margin-top: 28px; }

.goal { padding: clamp(40px, 6vw, 88px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.goal-text { margin: 22px 0 0; font-size: clamp(28px, 3.8vw, 52px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; max-width: 22ch; text-wrap: balance; }
.goal-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(32px, 4vw, 56px); }
.goal-points div { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.goal-points b { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.goal-points span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 800px) { .goal-points { grid-template-columns: 1fr; gap: 20px; } }



/* ---------- Home ---------- */

.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(48px, 6vw, 80px) 0 0; max-width: 880px; }
.hero-stats div { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.hero-stats dt { font: 500 clamp(30px, 3.4vw, 44px)/1 var(--font-sans); letter-spacing: -0.035em; }
.hero-stats dd { margin: 10px 0 0; color: var(--ink-3); font-size: 14px; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.logo-strip { padding: 8px 0 0; }
.logo-strip-label { display: block; margin-bottom: 14px; font: 500 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.logo-marquee { padding: 18px 0; }
.logo-marquee .marquee-track { gap: 44px; animation-duration: 60s; }
.logo-item { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-2); white-space: nowrap; filter: grayscale(1); opacity: .75; transition: opacity .2s var(--ease), filter .2s var(--ease); }
.logo-item img { width: 26px; height: 26px; border-radius: 7px; outline: 1px solid var(--line-strong); outline-offset: -1px; }
.logo-item:hover { filter: none; opacity: 1; }
.logo-marquee:hover .marquee-track { animation-play-state: paused; }

.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.journey li { position: relative; }
.journey a { display: grid; gap: 8px; padding-right: 16px; }
.journey i { width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); margin-bottom: 14px; position: relative; transition: border-color .2s var(--ease), background .2s var(--ease); }
.journey li:last-child i { background: var(--grad); border-color: transparent; }
.journey a:hover i { border-color: var(--ink); background: var(--ink); }
.jr-stage { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.journey b { font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.journey a:hover b { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 22px; padding-left: 28px; }
  .journey::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .journey i { position: absolute; left: -28px; top: 0; margin: 0; }
}

.ind-dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.ind-dir-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 24px; align-items: center; gap: 16px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.ind-dir-num { font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.ind-dir-row b { font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.ind-dir-row .ind-stack img { width: 26px; height: 26px; border-radius: 7px; }
.ind-dir-row .ind-stack img + img { margin-left: -7px; }
.ind-dir-row i { font-style: normal; color: var(--ink-3); transition: transform .2s var(--ease), color .2s var(--ease); }
.ind-dir-row:hover b { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.ind-dir-row:hover i { color: var(--ink); transform: translateX(4px); }
.ind-dir-row:hover .ind-stack img + img { margin-left: 3px; }
@media (max-width: 900px) { .ind-dir { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ind-dir-row { grid-template-columns: 32px minmax(0, 1fr) 20px; } .ind-dir-row .ind-stack { display: none; } }
.logo-marquee .marquee-track .logo-item { font: 600 18px/1 var(--font-sans); letter-spacing: -0.025em; color: var(--ink-2); }

/* ---------- Client map ---------- */

.reach { display: grid; grid-template-columns: minmax(240px, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.reach-total { display: flex; align-items: flex-end; gap: 14px; padding-bottom: 24px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.reach-total b { font: 500 clamp(56px, 6vw, 84px)/.85 var(--font-sans); letter-spacing: -0.05em; }
.reach-total span { font: 500 12px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

.map { position: relative; aspect-ratio: 99 / 50; }
.map-dots { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink-3); fill: currentColor; opacity: .32; }
.map-pin {
  position: absolute; width: 22px; height: 22px; transform: translate(-50%, -50%);
  border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; transition: opacity .2s var(--ease);
}
.map-pin:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.map-core, .map-ping { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.map-core { width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); transition: transform .25s var(--ease); }
.map-ping { width: 8px; height: 8px; border: 1px solid var(--accent); opacity: 0; }
.map-pin:hover .map-ping, .map-pin.is-active .map-ping { animation: map-ping 1.6s var(--ease) infinite; }
@keyframes map-ping { 0% { transform: translate(-50%, -50%) scale(1); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(4); opacity: 0; } }
.map-label {
  position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translate(-50%, 6px); white-space: nowrap;
  padding: 6px 10px; border-radius: 999px; background: var(--primary); color: var(--primary-ink);
  font: 500 12px/1 var(--font-sans); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.map-pin:hover .map-label, .map-pin:focus-visible .map-label, .map-pin.is-active .map-label { opacity: 1; transform: translate(-50%, 0); }
.map-pin:hover .map-core, .map-pin.is-active .map-core, .map-pin.in-region .map-core { transform: translate(-50%, -50%) scale(1.6); }
.map-pin:hover, .map-pin.is-active { z-index: 2; }
.map.has-region .map-pin:not(.in-region) { opacity: .3; }
@media (max-width: 900px) { .reach { grid-template-columns: 1fr; } .reach-side { order: 2; } }
@media (max-width: 640px) { .map-label { display: none; } .map-pin.is-active .map-label { display: block; } }
@media (prefers-reduced-motion: reduce) { .map-pin:hover .map-ping, .map-pin.is-active .map-ping { animation: none; } }

/* Services: product line */
.svx-product { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.svx-product b { font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svx-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 40px; }
.svx-cols .ind-caps { grid-template-columns: 1fr; }
@media (max-width: 640px) { .svx-cols { grid-template-columns: 1fr; } }

/* Services: simplified panel */
.svx-content { gap: 22px; }
.svx-promise { margin: 4px 0 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; color: var(--ink); max-width: 34ch; }
.svx-lead { font-size: 16px; }
.svx-get { padding-top: 22px; border-top: 1px solid var(--line); }
.svx-get ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.svx-get li { position: relative; padding-left: 26px; font-size: 15px; }
.svx-get li::before { content: ""; position: absolute; left: 0; top: .15em; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.svx-get li::after { content: ""; position: absolute; left: 5px; top: calc(.15em + 4px); width: 6px; height: 4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.svx-foot { border-top: 0; padding-top: 4px; }
@media (max-width: 640px) { .svx-get ul { grid-template-columns: 1fr; } }

/* ---------- Solutions ---------- */

.sol-lines { display: grid; gap: 4px; }
.sol-line {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 56px minmax(200px, 3fr) minmax(0, 8fr); gap: 24px; align-items: center;
  padding: 22px 24px; margin: 0 -24px; border-radius: var(--radius-lg); transition: background-color .35s var(--ease);
}
.sol-line::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -2px; height: 1px; background: var(--line); }
.sol-line::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 50%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--bg-elev);
}
.sol-line:hover::before { opacity: 1; }
.sol-line-num { font: 300 30px/1 var(--font-sans); letter-spacing: -0.04em; color: var(--line-strong); transition: color .35s var(--ease); }
.sol-line:hover .sol-line-num { color: var(--accent); }
.sol-line-head { display: grid; gap: 4px; }
.sol-line-head b { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.sol-line-head span { font-size: 14px; color: var(--ink-3); }
.sol-line-items { display: flex; flex-wrap: wrap; gap: 8px; }
.sol-line-items a {
  display: inline-flex; align-items: center; gap: 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), gap .3s var(--ease), padding .3s var(--ease);
}
.sol-line-items a i { font-style: normal; width: 0; overflow: hidden; opacity: 0; transition: width .3s var(--ease), opacity .3s var(--ease); color: var(--accent); }
.sol-line-items a:hover {
  transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); gap: 6px;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 55%, transparent);
}
.sol-line-items a:hover i { width: 1em; opacity: 1; }
@media (max-width: 900px) { .sol-line { grid-template-columns: 40px minmax(0, 1fr); } .sol-line-items { grid-column: 1 / -1; } }

.sol-section + .sol-section { margin-top: clamp(48px, 6vw, 80px); }
.sol-group-title { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; margin-bottom: 8px; }

/* Solutions: product layers */
.sol-stack { display: grid; gap: 28px; position: relative; }
/* connectors live on the layers themselves, so they fade in with them (no line showing through hidden cards) */
.sol-stack > .sol-layer + .sol-layer::before { content: ""; position: absolute; left: 50%; top: -29px; height: 28px; border-left: 1px dashed var(--line-strong); pointer-events: none; }
.sol-layer {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr); gap: clamp(20px, 3vw, 48px);
  padding: clamp(20px, 2.4vw, 32px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card-wash), var(--bg-elev);
}
.sol-layer-head { display: grid; align-content: start; gap: 8px; }
.sol-layer-num { font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.sol-layer-head h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.035em; margin-top: 6px; }
.sol-layer-head p { color: var(--ink-3); font-size: 14px; }
.sol-layer-body { display: grid; gap: 18px; }
.sol-layer-body:has(.sol-cluster + .sol-cluster) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sol-cluster { display: grid; gap: 10px; align-content: start; }
.sol-cluster-label { font: 500 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.sol-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.sol-tile {
  position: relative; display: grid; gap: 6px; padding: 16px 40px 16px 16px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.sol-tile b { font-weight: 500; font-size: 16px; letter-spacing: -0.015em; }
.sol-tile span { font: 500 11.5px/1.3 var(--font-mono); color: var(--ink-3); }
.sol-tile i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); transition: transform .2s var(--ease), color .2s var(--ease); }
.sol-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.sol-tile:hover i { color: var(--ink); transform: translate(3px, -50%); }
@media (max-width: 900px) {
  .sol-layer { grid-template-columns: 1fr; }
  .sol-layer-body:has(.sol-cluster + .sol-cluster) { grid-template-columns: 1fr; }
}

/* Solutions: upgrades */
.sol-layer-num { font: 300 clamp(36px, 3.6vw, 48px)/1 var(--font-sans); letter-spacing: -0.04em; color: var(--line-strong); }
.sol-layer:hover .sol-layer-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sol-layer-head h2 { margin-top: 10px; }
.sol-layer-count { margin-top: 8px; font: 500 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }


/* ---------- Solution hero scenes ---------- */

.sol-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sol-visual { position: relative; }
@media (max-width: 900px) { .sol-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.sol-hero { overflow-x: clip; }



/* Solutions tiles: refined look + soft spotlight hover */
.sol-tiles { gap: 10px; }
.sol-tile {
  isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 108px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.sol-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.sol-tile b { font-weight: 500; font-size: 17px; letter-spacing: -0.02em; }
.sol-tile span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 500 11.5px/1.3 var(--font-mono); color: var(--ink-3); transition: color .35s var(--ease); }
.sol-tile i {
  position: absolute; top: 16px; right: 16px; bottom: auto; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-size: 13px;
  background: var(--primary); color: var(--primary-ink);
  opacity: 0; transform: translate(-6px, 4px) scale(.8); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.sol-tile:hover, .sol-tile:focus-visible {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 45%, transparent), 0 2px 6px rgba(0, 0, 0, .04);
}
.sol-tile:hover::before, .sol-tile:focus-visible::before { opacity: 1; }
.sol-tile:hover span { color: var(--ink-2); }
.sol-tile:hover i, .sol-tile:focus-visible i { opacity: 1; transform: none; color: var(--primary-ink); }
@media (hover: none) { .sol-tile i { opacity: 1; transform: translateY(-50%); background: transparent; color: var(--ink-3); } }

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

.footer-cta {
  position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 48px); margin-bottom: clamp(48px, 6vw, 80px); border-radius: var(--radius-lg);
  background: var(--card-wash), var(--bg-elev); border: 1px solid var(--line);
}
.footer-cta::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); filter: blur(20px);
}
.footer-status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.footer-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: footer-ping 2s ease-out infinite; }
@keyframes footer-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.footer-cta-title { margin: 14px 0 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; }
.footer-cta-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-col a { position: relative; transition: color .2s var(--ease), padding-left .25s var(--ease); }
.footer-col a:hover { padding-left: 6px; }
.footer-bottom { align-items: center; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover, .footer-top-btn:hover { color: var(--ink); }
.footer-top-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); transition: border-color .2s var(--ease), color .2s var(--ease); }
.footer-top-btn:hover { border-color: var(--line-strong); }
@media (max-width: 640px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .footer-status i { animation: none; } }

/* Client map: upgraded region list */
.reach-group {
  position: relative; isolation: isolate; overflow: hidden; padding: 16px 16px 18px; margin: 0 -16px;
  border-bottom: 0; border-radius: var(--radius); transition: opacity .25s var(--ease);
}
.reach-group + .reach-group { margin-top: 2px; }
.reach-group::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 1px; background: var(--line); }
.reach-group::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(300px circle at var(--mx, 30%) var(--my, 50%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--bg-elev);
}
.reach-group:hover::before, .reach-group.is-active::before { opacity: 1; }
.reach-region { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.reach-region b { font-weight: 500; font-size: 17px; letter-spacing: -0.015em; }
.reach-count {
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  font: 500 12px/1 var(--font-mono); color: var(--ink-2); background: var(--bg-sunk); border: 1px solid var(--line);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.reach-group:hover .reach-count, .reach-group.is-active .reach-count { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.reach-countries { display: flex; flex-wrap: wrap; gap: 6px; }
.reach-countries button {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-size: 13.5px;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.reach-countries button i {
  font: 600 10px/1 var(--font-mono); font-style: normal; letter-spacing: .02em; width: 24px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; background: var(--bg-sunk); color: var(--ink-3); transition: background-color .2s var(--ease), color .2s var(--ease);
}
.reach-countries button:hover, .reach-countries button.is-active {
  color: var(--ink); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.reach-countries button:hover i, .reach-countries button.is-active i { background: var(--accent); color: var(--primary-ink); }
.reach.has-region .reach-group:not(.is-active) { opacity: .5; }

/* About */
.ab-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ab-story h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.035em; line-height: 1.08; margin-top: 16px; }
.ab-story-text { padding-top: 34px; }
.ab-story-text p { color: var(--ink-2); font-size: 18px; line-height: 1.65; }
.ab-story-text p + p { margin-top: 18px; }
.ab-num { display: block; font: 500 12px/1 var(--font-mono); color: var(--ink-3); letter-spacing: .08em; margin-bottom: 18px; }
.ab-diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ab-diff-item {
  position: relative; isolation: isolate; overflow: hidden; padding: 30px 30px 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.ab-diff-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.ab-diff-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.ab-diff-item:hover::before { opacity: 1; }
.ab-diff-item h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 10px; }
.ab-diff-item p { color: var(--ink-2); }
@media (max-width: 820px) {
  .ab-story { grid-template-columns: minmax(0, 1fr); }
  .ab-story-text { padding-top: 0; }
  .ab-diff { grid-template-columns: minmax(0, 1fr); }
}

/* Section dots (vertical page navigation) */
.dotnav {
  position: fixed; z-index: 40; right: 22px; top: 50%; transform: translate(12px, -50%);
  display: flex; flex-direction: column; gap: 4px; padding: 0; opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.dotnav.is-visible { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.dotnav-dot { position: relative; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.dotnav-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--ink-3); opacity: .45;
  transition: height .35s var(--ease), opacity .25s var(--ease), background-color .25s var(--ease);
}
.dotnav-dot:hover::before { opacity: 1; }
.dotnav-dot.is-active::before { height: 16px; opacity: 1; background: var(--ink); }
.dotnav-tip {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(6px, -50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: none;
  padding: 7px 12px 7px 9px; border-radius: 999px; background: var(--primary); color: var(--primary-ink);
  font: 500 13px/1 var(--font-sans); letter-spacing: -0.005em; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45);
  opacity: 0; transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.dotnav-tip::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; background: inherit; border-radius: 2px; transform: translateY(-50%) rotate(45deg); }
.dotnav-tip i { font: 500 10px/1 var(--font-mono); font-style: normal; padding: 3px 5px; border-radius: 999px; background: color-mix(in srgb, var(--primary-ink) 14%, transparent); opacity: .8; }
.dotnav-dot:hover .dotnav-tip, .dotnav-dot:focus-visible .dotnav-tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 900px) { .dotnav { display: none; } }
@media (prefers-reduced-motion: reduce) { .dotnav, .dotnav-dot::before, .dotnav-tip { transition: none; } }

/* ---------- Solution pages: offer blocks ---------- */
.micro { font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hero-cta .micro { align-self: center; }
.glance { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.glance-answer, .glance-facts, .who-seg, .who-no, .how-step, .call-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev);
}
.glance-answer { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(26px, 3.2vw, 40px); background: var(--card-wash), var(--bg-elev); }
.glance-answer p { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; letter-spacing: -.012em; color: var(--ink); }
.glance-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.glance-stat { display: grid; gap: 4px; align-content: start; padding: 22px 16px 0 0; }
.glance-stat + .glance-stat { padding-left: 18px; border-left: 1px solid var(--line); }
.glance-stat b { font: 500 clamp(28px, 3vw, 38px)/1 var(--font-sans); letter-spacing: -.04em; margin-bottom: 8px; }
.glance-stat span { font-size: 14px; font-weight: 600; }
.glance-stat small { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.glance-facts { margin: 0; padding: 6px clamp(22px, 2.6vw, 30px); }
.glance-facts > div { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.glance-facts > div:last-child { border-bottom: 0; }
.glance-facts dt { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.glance-facts dd { margin: 0; font-size: 15px; line-height: 1.5; }
.glance-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.glance-tags span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font: 500 12px/1 var(--font-mono); color: var(--ink-2); }
[data-spotlight].glance-answer::before, .who-seg::before, .call-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.glance-answer:hover::before, .who-seg:hover::before, .call-card:hover::before { opacity: 1; }

.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-step { display: grid; gap: 12px; padding: 16px 16px 24px; align-content: start; }
.how-step h3 { font-size: 19px; letter-spacing: -.02em; padding: 0 4px; }
.how-step p { color: var(--ink-2); font-size: 14.5px; padding: 0 4px; }
.how-meta { display: flex; justify-content: space-between; padding: 6px 4px 0; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.how-meta em { font-style: normal; }
.how-visual { position: relative; height: 150px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--bg-sunk) 60%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.how-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 20px 20px; opacity: .6; }
.how-visual > * { position: absolute; }
/* step 1: idea note -> outline */
.sv-note { left: 22px; top: 30px; width: 120px; padding: 14px 14px 16px; border-radius: 10px; background: var(--bg-elev); box-shadow: 0 10px 30px -10px rgba(0,0,0,.3), 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; transform: rotate(-3deg); }
.sv-note b { font: 500 9px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sv-note i { height: 5px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 22%, transparent); transform-origin: 0 50%; }
.sv-note i:nth-of-type(2) { width: 80%; } .sv-note i:nth-of-type(3) { width: 60%; }
.sv-arr { left: 152px; top: 68px; width: 34px; height: 10px; color: var(--ink-3); }
.sv-out { right: 24px; top: 18px; width: 92px; height: 114px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--ink) 32%, transparent); display: flex; flex-direction: column; gap: 6px; padding: 14px 9px 9px; }
.sv-out i { height: 10px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 32%, transparent); }
.sv-out i:nth-child(2) { height: 34px; background: color-mix(in srgb, #00d1d9 24%, transparent); }
.is-in .sv-note i { animation: sv-scx .6s var(--ease) var(--d) both; }
.is-in .sv-arr { animation: sv-up .6s var(--ease) .9s both; }
.is-in .sv-out { animation: sv-up .8s var(--ease) 1s both; }
.is-in .sv-out i { animation: sv-up .6s var(--ease) var(--d) both; }
/* step 2: AI lane + senior review */
.sv-lane { left: 18px; right: 18px; display: flex; align-items: center; gap: 10px; }
.sv-lane.a { top: 24px; } .sv-lane.b { top: 94px; }
.sv-chip { flex: none; width: 68px; font: 500 9px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sv-chip b { display: block; font: 500 12px/1.3 var(--font-sans); letter-spacing: -.01em; text-transform: none; color: var(--ink); margin-bottom: 3px; }
.sv-streams { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sv-streams i { height: 5px; border-radius: 9px; transform-origin: 0 50%; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, transparent), color-mix(in srgb, #00d1d9 50%, transparent)); }
.sv-streams i:nth-child(1) { width: 92%; } .sv-streams i:nth-child(2) { width: 70%; } .sv-streams i:nth-child(3) { width: 84%; } .sv-streams i:nth-child(4) { width: 56%; }
.is-in .sv-streams i { animation: sv-stream 3.2s var(--ease) var(--d) infinite; }
.sv-ok { flex: 1; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--bg-elev); box-shadow: 0 8px 22px -10px rgba(0,0,0,.3), 0 0 0 1px var(--line); font: 500 10px/1 var(--font-mono); letter-spacing: .04em; white-space: nowrap; }
.sv-ok svg { width: 14px; height: 14px; color: #00b8c4; flex: none; }
.is-in .sv-ok { animation: sv-up .7s var(--ease) 1s both; }
.sv-link { left: 51px; top: 62px; width: 1px; height: 26px; background: linear-gradient(var(--line-strong), transparent); }
/* step 3: ship */
.sv-ship { left: 18px; right: 18px; top: 28px; display: flex; flex-direction: column; gap: 14px; }
.sv-ship-l { display: flex; justify-content: space-between; font: 500 9px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sv-trk { height: 6px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.sv-trk i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #00d1d9); transform-origin: 0 50%; transform: scaleX(.03); }
.is-in .sv-trk i { animation: sv-fill 1.8s cubic-bezier(.45,0,.25,1) .2s both; }
.sv-live { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-elev); box-shadow: 0 8px 22px -10px rgba(0,0,0,.3), 0 0 0 1px var(--line); }
.sv-appi { width: 28px; height: 28px; border-radius: 8px; flex: none; background: linear-gradient(135deg, #764be5, #00b9e5); }
.sv-live b { display: block; font: 500 12px/1.2 var(--font-sans); }
.sv-live small { display: block; font: 400 10px/1.3 var(--font-mono); color: var(--ink-3); }
.sv-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 9px; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.is-in .sv-live { animation: sv-up .7s var(--ease) 1.9s both; }
.is-in .sv-dot { animation: sv-pulse 1.6s ease-in-out 2.6s infinite; }
@keyframes sv-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sv-scx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sv-stream { 0% { transform: scaleX(0); opacity: 1; } 35%, 85% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes sv-fill { from { transform: scaleX(.03); } to { transform: scaleX(1); } }
@keyframes sv-pulse { 50% { opacity: .3; } }
.sv-note { transform: rotate(-3deg); }

.who { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.who-fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.who-seg { display: grid; gap: 10px; align-content: start; padding: 22px; transition: border-color .35s var(--ease), transform .35s var(--ease); }
.who-seg:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.who-n { font: 500 11px/1 var(--font-mono); letter-spacing: .1em; color: var(--ink-3); }
.who-seg h3 { font-size: 17px; letter-spacing: -.02em; }
.who-seg p { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.who-no { padding: 24px; display: flex; flex-direction: column; gap: 14px; background: transparent; }
.who-no h3 { font-size: 17px; letter-spacing: -.02em; }
.who-no ul { list-style: none; margin: 0; padding: 0; }
.who-no li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.who-no li svg { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--ink-3); }

.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; margin-inline: auto; }
.plan-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 2px; }
.plan-price b { font: 500 clamp(36px, 4.4vw, 52px)/1 var(--font-sans); letter-spacing: -.04em; }
.plan-price span { font: 400 13px/1.3 var(--font-mono); color: var(--ink-3); }
.plan.featured .plan-price span { color: color-mix(in srgb, var(--primary-ink) 60%, transparent); }
.objection { margin: 22px auto 0; max-width: 960px; text-align: center; font-size: 15px; color: var(--ink-2); }
.objection b { color: var(--ink); font-weight: 600; }
.call-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: clamp(40px, 6vw, 72px) 24px; background: var(--card-wash), var(--bg-elev); }
.call-card h2 { max-width: 20ch; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.05; }
.call-card p { max-width: 34rem; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
@media (max-width: 900px) {
  .glance, .who, .how-steps, .plans-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .who-fit { grid-template-columns: minmax(0, 1fr); } .glance-stats { grid-template-columns: minmax(0, 1fr); } .glance-stat + .glance-stat { padding-left: 0; border-left: 0; } .glance-stat { padding: 16px 0; border-bottom: 1px solid var(--line); } .glance-stat:last-child { border-bottom: 0; } }

/* Solution tiles: compact, with technology marks */
.sol-tiles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.sol-tile { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; min-height: 0; padding: 14px 16px; }
.sol-tx { flex: 1; min-width: 0; display: grid; gap: 5px; padding-right: 18px; }
.sol-tile .sol-tx b { display: block; font-size: 15.5px; line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; padding: 0; text-wrap: balance; }
.sol-tile .sol-tx span { font-size: 11px; }
.sol-ico {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--bg-elev); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .04);
  transition: color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.sol-ico svg { width: 22px; height: 22px; }
.sol-tile:hover .sol-ico, .sol-tile:focus-visible .sol-ico {
  color: var(--brand, var(--accent)); transform: scale(1.06);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand, var(--accent)) 35%, var(--line)), 0 6px 16px -8px color-mix(in srgb, var(--brand, var(--accent)) 60%, transparent);
}
:root[data-theme="dark"] .sol-tile:hover .sol-ico, :root:not([data-theme]) .sol-tile:hover .sol-ico { color: color-mix(in srgb, var(--brand, var(--accent)) 70%, #fff); }
.sol-tile i { top: 50%; right: 14px; width: 26px; height: 26px; font-size: 12px; transform: translate(-6px, -50%) scale(.8); }
.sol-tile:hover i, .sol-tile:focus-visible i { transform: translate(0, -50%); }

/* Client map in a frame */
.map-frame {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(20px, 4%, 44px) clamp(16px, 4%, 48px);
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card-wash), var(--bg-elev);
}
.map-frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
}

/* Four-up principles (home: AI in every process) */
.principles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.principles-4 .principle h3 { font-size: clamp(20px, 2vw, 24px); }
@media (max-width: 1000px) { .principles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .principles-4 .principle:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 760px) { .principles-4 { grid-template-columns: minmax(0, 1fr); } }

.footer-address { font-style: normal; color: var(--ink-3); font-size: 14px; line-height: 1.6; }

/* Office countries on the client map */
.reach-countries button.is-office { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.reach-countries button em { font: 600 9.5px/1 var(--font-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); }
.footer-address b { display: block; font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 6px 0 8px; }

/* Map pins, refined: soft client dots, ringed office markers with a slow pulse */
.map-core { width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.map-pin.is-office { z-index: 1; }
.map-pin.is-office .map-core {
  width: 10px; height: 10px; background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-elev), 0 0 0 4.5px color-mix(in srgb, var(--accent) 55%, transparent), 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent);
}
.map-pin.is-office::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%);
  border: 1px solid var(--accent); opacity: 0; animation: map-office 3.2s var(--ease) infinite; pointer-events: none;
}
.map-pin.is-office:nth-of-type(3n)::after { animation-delay: -1.1s; } .map-pin.is-office:nth-of-type(3n+1)::after { animation-delay: -2.2s; }
@keyframes map-office { 0% { transform: translate(-50%, -50%) scale(1); opacity: .7; } 70%, 100% { transform: translate(-50%, -50%) scale(3.4); opacity: 0; } }
.map-pin:hover .map-core, .map-pin.is-active .map-core, .map-pin.in-region .map-core { transform: translate(-50%, -50%) scale(1.35); }
.map-legend { position: absolute; left: clamp(16px, 4%, 48px); bottom: clamp(14px, 3%, 28px); display: flex; gap: 18px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.map-legend i.lg-office { width: 9px; height: 9px; box-shadow: 0 0 0 2.5px var(--bg-elev), 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent); }
@media (prefers-reduced-motion: reduce) { .map-pin.is-office::after { animation: none; } }

/* Team: portrait cards with generative art */
.tm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tm-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: 10px 10px 18px;
  border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: var(--bg-elev);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.tm-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, hsl(var(--h, 270) 70% 60%) 40%, var(--line)); box-shadow: 0 24px 50px -28px hsl(var(--h, 270) 60% 40% / .55); }
.tm-art {
  --a: hsl(var(--h, 270) 90% 72%); --b: hsl(calc(var(--h, 270) + 45) 85% 70%); --c: hsl(calc(var(--h, 270) - 35) 80% 80%);
  position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--radius);
  background:
    radial-gradient(60% 70% at 22% 18%, var(--a), transparent 70%),
    radial-gradient(55% 60% at 85% 85%, var(--b), transparent 70%),
    radial-gradient(40% 45% at 75% 20%, var(--c), transparent 70%),
    linear-gradient(160deg, hsl(var(--h, 270) 45% 97%), hsl(var(--h, 270) 40% 90%));
  transition: background-position .8s var(--ease);
}
.tm-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.4px); background-size: 14px 14px; mask-image: linear-gradient(180deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); opacity: .7; }
.tm-art::after { content: ""; position: absolute; inset: -30%; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.35), transparent 30%); opacity: 0; transition: opacity .6s var(--ease), transform 1.6s var(--ease); }
.tm-card:hover .tm-art::after { opacity: 1; transform: rotate(60deg); }
.tm-initial {
  position: absolute; right: 8%; bottom: -12%; font: 300 clamp(110px, 11vw, 168px)/1 var(--font-sans); letter-spacing: -.06em;
  color: hsl(var(--h, 270) 45% 22% / .82); mix-blend-mode: multiply; transition: transform .6s var(--ease);
}
.tm-card:hover .tm-initial { transform: translateY(-6px); }
.tm-idx { position: absolute; left: 14px; top: 12px; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; color: hsl(var(--h, 270) 40% 20% / .7); text-transform: uppercase; }
.tm-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 8px 0; }
.tm-name { display: grid; gap: 5px; min-width: 0; }
.tm-name b { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.tm-name span { font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tm-card i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-style: normal; font-size: 13px; border: 1px solid var(--line); color: var(--ink-2); transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease); }
.tm-card:hover i { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); transform: rotate(-45deg); }
.tm-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px; }
.tm-tags span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.tm-ai .tm-art { background: radial-gradient(60% 70% at 30% 25%, #7c3aed, transparent 70%), radial-gradient(55% 60% at 80% 85%, #22d3ee, transparent 70%), linear-gradient(160deg, #15122b, #07070d); }
.tm-ai .tm-art::before { background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.4px); }
.tm-ai .tm-idx { color: rgba(255,255,255,.7); }
.tm-spark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(64px, 7vw, 96px); color: #fff; text-shadow: 0 0 40px rgba(167,139,250,.9); animation: tm-spark 4s ease-in-out infinite; }
@keyframes tm-spark { 50% { transform: translate(-50%, -50%) rotate(45deg) scale(1.08); } }
:root[data-theme="dark"] .tm-card:not(.tm-ai) .tm-art, :root:not([data-theme]) .tm-card:not(.tm-ai) .tm-art {
  --a: hsl(var(--h, 270) 75% 45%); --b: hsl(calc(var(--h, 270) + 45) 70% 40%); --c: hsl(calc(var(--h, 270) - 35) 65% 50%);
  background: radial-gradient(60% 70% at 22% 18%, var(--a), transparent 70%), radial-gradient(55% 60% at 85% 85%, var(--b), transparent 70%), radial-gradient(40% 45% at 75% 20%, var(--c), transparent 70%), linear-gradient(160deg, hsl(var(--h, 270) 30% 12%), hsl(var(--h, 270) 35% 7%));
}
:root[data-theme="dark"] .tm-initial, :root:not([data-theme]) .tm-initial { color: rgba(255,255,255,.88); mix-blend-mode: normal; }
:root[data-theme="dark"] .tm-idx, :root:not([data-theme]) .tm-idx { color: rgba(255,255,255,.65); }
:root[data-theme="dark"] .tm-art::before, :root:not([data-theme]) .tm-art::before { background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.4px); }
.member-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.member-art { aspect-ratio: 4 / 5; border-radius: calc(var(--radius-lg) + 8px); box-shadow: 0 40px 80px -40px hsl(var(--h, 270) 60% 40% / .6); }
.member-art .tm-initial { font-size: clamp(220px, 24vw, 340px); }
@media (max-width: 1000px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .member-hero { grid-template-columns: minmax(0, 1fr); } .member-art { order: -1; max-width: 260px; } }
@media (max-width: 520px) { .tm-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tm-spark { animation: none; } }
.byline b a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* AI agents page */
.ag-pipe { display: grid; grid-template-columns: auto auto auto auto minmax(0, 1fr) auto auto auto auto; align-items: stretch; gap: 10px; }
.ag-seniors { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius); border: 1px dashed var(--line-strong); color: var(--ink-2); font-size: 14.5px; }
.ag-col { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); min-width: 0; }
.ag-col-h { font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; white-space: nowrap; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-arrow { align-self: center; font-style: normal; color: var(--ink-3); }
.ag-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 500; white-space: nowrap; }
.ag-chip-ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 13px; background: linear-gradient(135deg, hsl(var(--h, 270) 80% 60%), hsl(calc(var(--h, 270) + 40) 80% 50%)); }
.ag-chip-ico svg { width: 15px; height: 15px; }
.ag-human { border-style: dashed; }
.ag-human .ag-chip-ico { background: var(--primary); color: var(--primary-ink); }
.ag-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ag-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px;
  border-radius: calc(var(--radius) + 4px); color: #f4f4f6;
  background: radial-gradient(90% 60% at 50% 0%, hsl(var(--h, 270) 80% 45% / .55), transparent 70%), linear-gradient(170deg, #15141f, #08080c);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 20px 40px -24px hsl(var(--h, 270) 70% 40% / .6);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.ag-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px); background-size: 14px 14px; mask-image: linear-gradient(180deg, #000, transparent 55%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); }
.ag-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px hsl(var(--h, 270) 80% 65% / .5), 0 30px 60px -26px hsl(var(--h, 270) 80% 45% / .8); }
.ag-top { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ag-stage { padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,.08); }
.ag-emblem {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 10px 0 6px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h, 270) 85% 62%), hsl(calc(var(--h, 270) + 40) 85% 48%));
  box-shadow: 0 0 0 4px hsl(var(--h, 270) 80% 60% / .18), 0 12px 30px -6px hsl(var(--h, 270) 85% 55% / .8), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .5s var(--ease);
}
.ag-emblem svg { width: 32px; height: 32px; }
.ag-card:hover .ag-emblem { transform: rotate(-6deg) scale(1.06); }
.ag-name { font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: #fff; }
.ag-role { font: 500 11px/1.35 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--h, 270) 85% 78%); }
.ag-power { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.72); }
.ag-checks { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 7px; }
.ag-checks li { position: relative; padding-left: 18px; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.62); }
.ag-checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 5px; border-left: 1.6px solid hsl(var(--h, 270) 85% 70%); border-bottom: 1.6px solid hsl(var(--h, 270) 85% 70%); transform: rotate(-45deg); }
a.ag-card { text-decoration: none; }
.ag-more { margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 500; color: #fff; display: inline-flex; gap: 6px; align-items: center; opacity: .75; transition: opacity .3s var(--ease); }
.ag-more svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.ag-card:hover .ag-more { opacity: 1; } .ag-card:hover .ag-more svg { transform: translateX(3px); }
a.ag-chip { color: inherit; text-decoration: none; transition: border-color .25s var(--ease), transform .25s var(--ease); }
a.ag-chip:hover { border-color: hsl(var(--h, 270) 80% 62%); transform: translateY(-1px); }
.ag-chip.is-current { border-color: hsl(var(--h, 270) 80% 62%); box-shadow: 0 0 0 3px hsl(var(--h, 270) 80% 62% / .2); }
.ag-col.is-here { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.ag-col.is-here .ag-col-h { color: var(--ink); }

/* agent page */
.ag-hero-role { margin: -4px 0 6px; font: 500 13px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ag-art {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius-lg) + 8px); color: #fff;
  background: radial-gradient(70% 55% at 50% 38%, hsl(var(--h, 270) 85% 50% / .65), transparent 70%), linear-gradient(165deg, #17161f, #07070b);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -40px hsl(var(--h, 270) 70% 40% / .7);
}
.ag-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px); background-size: 16px 16px; mask-image: radial-gradient(70% 60% at 50% 40%, transparent 30%, #000); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, transparent 30%, #000); }
.ag-art-idx, .ag-art-stage { position: absolute; top: 18px; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ag-art-idx { left: 20px; } .ag-art-stage { right: 20px; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.08); }
.ag-art-ring { position: absolute; top: 40%; left: 50%; width: 62%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; border: 1px solid hsl(var(--h, 270) 80% 70% / .35); animation: ag-pulse 4s var(--ease) infinite; }
.ag-art-ring.r2 { width: 84%; border-color: hsl(var(--h, 270) 80% 70% / .18); animation-delay: 1.3s; }
@keyframes ag-pulse { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.05; opacity: .55; } }
.ag-art-emblem {
  position: absolute; top: 40%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 34%; aspect-ratio: 1; border-radius: 30%;
  background: linear-gradient(135deg, hsl(var(--h, 270) 85% 62%), hsl(calc(var(--h, 270) + 40) 85% 48%));
  box-shadow: 0 0 0 8px hsl(var(--h, 270) 80% 60% / .16), 0 30px 60px -10px hsl(var(--h, 270) 85% 55% / .9), inset 0 1px 0 rgba(255,255,255,.35);
}
.ag-art-emblem svg { width: 52%; height: 52%; }
.ag-art-name { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -.04em; }
.ag-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ag-detail .section-head { margin-bottom: 22px; }
.ag-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.ag-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); }
.ag-steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font: 600 13px/1 var(--font-mono); color: #fff; background: linear-gradient(135deg, hsl(var(--h, 270) 85% 60%), hsl(calc(var(--h, 270) + 40) 85% 48%)); }
.ag-steps span { font-size: 16px; line-height: 1.45; }
@media (max-width: 900px) { .ag-detail { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ag-art-ring { animation: none; } }
@media (max-width: 1200px) { .ag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .ag-pipe { grid-template-columns: minmax(0, 1fr); } .ag-arrow { transform: rotate(90deg); justify-self: center; } }
@media (max-width: 760px) { .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ag-grid { grid-template-columns: minmax(0, 1fr); } }

/* Project estimator */
.est { position: relative; max-width: 980px; margin: 0 auto; padding: clamp(22px, 3.4vw, 44px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card-wash), var(--bg-elev); }
.est-progress { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: clamp(22px, 3vw, 36px); }
.est-progress i { display: block; height: 100%; border-radius: inherit; background: var(--grad, linear-gradient(90deg, var(--accent), #22d3ee)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease); }
.est-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.est-step legend { display: grid; gap: 12px; margin-bottom: 22px; padding: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.est-n { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; color: var(--ink-3); }
.est-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.est-opts-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.est-opt { position: relative; cursor: pointer; }
.est-opt input { position: absolute; opacity: 0; pointer-events: none; }
.est-opt-box { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease), background-color .25s var(--ease); }
.est-opt-box b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.est-opt-box small { font-size: 13px; color: var(--ink-3); }
.est-opt:hover .est-opt-box { transform: translateY(-1px); border-color: var(--line-strong); }
.est-opt input:checked + .est-opt-box { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); box-shadow: 0 0 0 1px var(--accent), 0 10px 24px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
.est-opt input:focus-visible + .est-opt-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.est-hint { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.est-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.est-nav [data-est-next] { margin-left: auto; }
.est-nav .btn[disabled] { opacity: .45; pointer-events: none; }
.est-result-head { display: grid; gap: 12px; margin-bottom: 24px; }
.est-result-head h2 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
.est-result-head p { color: var(--ink-2); }
.est-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.est-card { display: grid; align-content: start; gap: 12px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.est-sols { display: grid; gap: 8px; }
.est-sol { position: relative; display: grid; gap: 4px; padding: 12px 40px 12px 14px; border-radius: 12px; border: 1px solid var(--line); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.est-sol:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-1px); }
.est-sol b { font-weight: 500; }
.est-sol span { font: 500 11.5px/1.3 var(--font-mono); color: var(--ink-3); }
.est-sol i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); }
.est-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: est; }
.est-plan li { position: relative; display: grid; gap: 3px; padding: 10px 0 10px 34px; border-top: 1px solid var(--line); counter-increment: est; }
.est-plan li:first-child { border-top: 0; }
.est-plan li::before { content: counter(est); position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--font-mono); background: var(--primary); color: var(--primary-ink); }
.est-plan b { font-weight: 500; }
.est-plan span { font-size: 13.5px; color: var(--ink-3); }
.est-team { font-size: 14.5px; color: var(--ink-2); }
.est-team a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.est-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 24px; padding: 28px; border-radius: var(--radius); background: var(--primary); color: var(--primary-ink); }
.est-lead h3 { font-size: 20px; letter-spacing: -.02em; }
.est-lead p { margin-top: 6px; color: color-mix(in srgb, var(--primary-ink) 70%, transparent); font-size: 14.5px; }
.est-lead-fields { display: grid; gap: 8px; }
.est-lead .input { background: color-mix(in srgb, var(--primary-ink) 8%, transparent); border-color: color-mix(in srgb, var(--primary-ink) 18%, transparent); color: var(--primary-ink); }
.est-lead .input::placeholder { color: color-mix(in srgb, var(--primary-ink) 50%, transparent); }
.est-lead .btn-primary { background: var(--primary-ink); color: var(--primary); justify-content: center; }
.est-lead .link-arrow { color: color-mix(in srgb, var(--primary-ink) 75%, transparent); font-size: 14px; justify-self: center; }
.est-restart { margin-top: 16px; background: none; border: 0; color: var(--ink-3); font-size: 14px; cursor: pointer; }
.est-restart:hover { color: var(--ink); }
@media (max-width: 760px) { .est-opts, .est-grid, .est-lead { grid-template-columns: minmax(0, 1fr); } }
.est-nav [hidden], .est [hidden] { display: none !important; }
.est-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Estimator dialog */
.est-dialog {
  width: min(1020px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: calc(var(--radius-lg) + 4px);
  background: var(--bg); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0,0,0,.55), 0 0 0 1px var(--line); overflow: auto; overscroll-behavior: contain;
}
.est-dialog::backdrop { background: rgba(8, 9, 14, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.est-dialog[open] { animation: est-in .35s var(--ease) both; }
@keyframes est-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.est-dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(18px, 3vw, 28px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.est-dialog-head p { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.est-close { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-2); cursor: pointer; font-size: 14px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.est-close:hover { background: var(--primary); color: var(--primary-ink); }
.est-dialog .est { max-width: none; margin: 0; border: 0; border-radius: 0; background: transparent; }
.has-dialog { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .est-dialog[open] { animation: none; } }

/* Scrollbars: thin, quiet, themed (page and dialogs) */
:root { --sb-thumb: color-mix(in srgb, var(--ink) 22%, transparent); --sb-thumb-hover: color-mix(in srgb, var(--ink) 40%, transparent); }
html, .est-dialog { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
@supports not (scrollbar-color: auto) {
  html::-webkit-scrollbar, .est-dialog::-webkit-scrollbar { width: 10px; height: 10px; }
  html::-webkit-scrollbar-track, .est-dialog::-webkit-scrollbar-track { background: transparent; }
  html::-webkit-scrollbar-thumb, .est-dialog::-webkit-scrollbar-thumb { background: var(--sb-thumb); border: 3px solid transparent; border-radius: 99px; background-clip: content-box; }
  html::-webkit-scrollbar-thumb:hover, .est-dialog::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); background-clip: content-box; }
}
/* keep the dialog's rounded corners: the scroll happens inside, clipped by the radius */
.est-dialog { overflow: hidden; display: none; }
.est-dialog[open] { display: flex; flex-direction: column; }
.est-dialog-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }

/* AI assistant widget */
.ai-chat { position: fixed; z-index: 60; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px; }
.ai-launch {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--primary); color: var(--primary-ink); font: 500 15px/1 var(--font-sans);
  box-shadow: 0 18px 40px -16px rgba(10,10,30,.55), 0 0 0 1px color-mix(in srgb, var(--primary-ink) 10%, transparent);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ai-launch:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -16px rgba(124,58,237,.55); }
.ai-launch-ico, .ai-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 15px; background: conic-gradient(from 0deg, #7c3aed, #c084fc, #22d3ee, #7c3aed); box-shadow: 0 0 18px rgba(167,139,250,.55); }
.ai-launch-ico { animation: ai-spin 6s linear infinite; }
@keyframes ai-spin { to { filter: hue-rotate(360deg); } }
.ai-chat.is-open .ai-launch-tx { display: none; }
.ai-chat.is-open .ai-launch { padding: 0 7px; }
.ai-panel {
  display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 110px));
  border-radius: calc(var(--radius-lg) + 2px); overflow: hidden; background: var(--bg); color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.55), 0 0 0 1px var(--line); animation: est-in .3s var(--ease) both;
}
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); background: var(--card-wash), var(--bg-elev); }
.ai-head div { flex: 1; display: grid; gap: 3px; }
.ai-head b { font-size: 15px; font-weight: 600; }
.ai-head small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.ai-head small i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.ai-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); cursor: pointer; }
.ai-x:hover { background: var(--primary); color: var(--primary-ink); }
.ai-new { display: grid; place-items: center; }
.ai-new[hidden] { display: none; }
.ai-log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
.ai-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.ai-msg p + p, .ai-msg p + ul, .ai-msg ul + p { margin-top: 8px; }
.ai-msg ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ai-msg a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.ai-bot { align-self: flex-start; background: var(--bg-elev); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ai-me { align-self: flex-end; background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.ai-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: sc-blink 1.2s infinite both; }
.ai-typing i:nth-child(2) { animation-delay: .2s; } .ai-typing i:nth-child(3) { animation-delay: .4s; }
.ai-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ai-suggest[hidden] { display: none; }
.ai-suggest button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-size: 13px; cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.ai-suggest button:hover { border-color: var(--accent); color: var(--ink); }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ai-form textarea { flex: 1; resize: none; max-height: 140px; padding: 10px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); font: 14.5px/1.4 var(--font-sans); outline: none; }
.ai-form textarea:focus { border-color: var(--accent); }
.ai-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-ink); font-size: 16px; cursor: pointer; }
.ai-send:disabled { opacity: .45; }
.ai-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 0 16px 12px; font-size: 12.5px; }
.ai-foot a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ai-foot span { flex-basis: 100%; color: var(--ink-3); font-size: 11.5px; }
.has-dialog .ai-chat { display: none; }
@media (max-width: 520px) {
  .ai-chat { right: 12px; bottom: 12px; }
  .ai-chat.is-open { inset: 0; padding: 0; }
  .ai-chat.is-open .ai-launch { display: none; }
  .ai-chat.is-open .ai-panel { width: 100vw; height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .ai-launch-ico, .ai-panel { animation: none; } }

/* Lab (/lab/) */
.lab-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: clamp(28px, 4vw, 44px); }
.lab-index a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); text-decoration: none; color: inherit; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.lab-index a:hover { border-color: hsl(var(--h, 270) 75% 60%); transform: translateY(-2px); }
.lab-index span { display: grid; gap: 2px; min-width: 0; }
.lab-index b { font-size: 14.5px; font-weight: 600; }
.lab-index small { font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lab-index-ico, .lab-emblem { flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 270) 85% 62%), hsl(calc(var(--h, 270) + 40) 85% 46%)); }
.lab-index-ico { width: 38px; height: 38px; border-radius: 12px; }
.lab-index-ico svg { width: 20px; height: 20px; }
.lab-list { display: grid; gap: clamp(56px, 8vw, 120px); }
.lab-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; scroll-margin-top: 100px; }
.lab-row.flip .lab-copy { order: 2; }
.lab-copy { display: grid; gap: 14px; justify-items: start; }
.lab-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.lab-status i { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--h, 270) 80% 58%); box-shadow: 0 0 10px hsl(var(--h, 270) 80% 58%); }
.lab-copy h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.04em; line-height: 1.02; }
.lab-tagline { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.35; color: var(--ink); }
.lab-text { color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 52ch; }
.lab-points { list-style: none; margin: 8px 0 4px; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.lab-points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.lab-points b { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; color: hsl(var(--h, 270) 70% 55%); }
:root[data-theme="dark"] .lab-points b, :root:not([data-theme]) .lab-points b { color: hsl(var(--h, 270) 85% 72%); }
.lab-more { margin-top: 10px; }
a.lab-art { display: block; text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
a.lab-art:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px hsl(var(--h, 270) 80% 65% / .45), 0 50px 90px -40px hsl(var(--h, 270) 70% 45% / .85); }
a.lab-art:hover .lab-emblem { scale: 1.06; }
.lab-emblem { transition: scale .5s var(--ease); }
.lab-art {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 5 / 4; border-radius: calc(var(--radius-lg) + 8px);
  background: radial-gradient(60% 60% at 50% 48%, hsl(var(--h, 270) 85% 50% / .6), transparent 70%), linear-gradient(160deg, #16151e, #07070b);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -40px hsl(var(--h, 270) 70% 40% / .7);
}
.lab-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px); background-size: 16px 16px; mask-image: radial-gradient(70% 70% at 50% 50%, transparent 30%, #000); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, transparent 30%, #000); }
.lab-art-idx { position: absolute; top: 18px; left: 20px; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; color: rgba(255,255,255,.6); }
.lab-art-ring { position: absolute; top: 50%; left: 50%; width: 46%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; border: 1px solid hsl(var(--h, 270) 80% 72% / .35); animation: ag-pulse 4.5s var(--ease) infinite; }
.lab-art-ring.r2 { width: 72%; border-color: hsl(var(--h, 270) 80% 72% / .16); animation-delay: 1.5s; }
.lab-emblem { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 24%; aspect-ratio: 1; border-radius: 30%; box-shadow: 0 0 0 8px hsl(var(--h, 270) 80% 60% / .16), 0 30px 60px -10px hsl(var(--h, 270) 85% 55% / .9), inset 0 1px 0 rgba(255,255,255,.35); }
.lab-emblem svg { width: 50%; height: 50%; }
.lab-tag { position: absolute; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #fff; white-space: nowrap; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: lab-float 6s var(--ease) infinite; }
.lab-tag.t0 { top: 18%; left: 10%; } .lab-tag.t1 { top: 24%; right: 9%; animation-delay: -1.5s; }
.lab-tag.t2 { bottom: 20%; left: 8%; animation-delay: -3s; } .lab-tag.t3 { bottom: 15%; right: 11%; animation-delay: -4.5s; }
@keyframes lab-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 860px) { .lab-row { grid-template-columns: minmax(0, 1fr); } .lab-row.flip .lab-copy { order: 0; } .lab-art { order: -1; } }
@media (prefers-reduced-motion: reduce) { .lab-art-ring, .lab-tag { animation: none; } }

/* lab project page */
.lab-hero .lab-status { justify-self: start; margin-bottom: 4px; }
.lab-hero > div:first-child { display: grid; gap: 14px; justify-items: start; }
.lab-art-tall { aspect-ratio: 4 / 5; }
.lab-why { max-width: 900px; display: grid; gap: 16px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: radial-gradient(80% 120% at 0% 0%, hsl(var(--h, 270) 80% 60% / .1), transparent 60%), var(--bg-elev); }
.lab-why p { font-size: clamp(20px, 2.2vw, 27px); line-height: 1.45; letter-spacing: -.015em; color: var(--ink); }
.lab-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lab-feature { display: grid; gap: 22px; align-content: space-between; min-height: 170px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); }
.lab-feature b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font: 600 13px/1 var(--font-mono); color: #fff; background: linear-gradient(135deg, hsl(var(--h, 270) 85% 60%), hsl(calc(var(--h, 270) + 40) 85% 46%)); }
.lab-feature p { font-size: 18px; line-height: 1.4; letter-spacing: -.01em; }
.lab-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lab-detail-tags span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.lab-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lab-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 10px; align-content: start; padding: 20px; min-height: 250px;
  border-radius: calc(var(--radius) + 4px); color: #f4f4f6; text-decoration: none;
  background: radial-gradient(90% 60% at 50% 0%, hsl(var(--h, 270) 80% 45% / .55), transparent 70%), linear-gradient(170deg, #15141f, #08080c);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.lab-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px hsl(var(--h, 270) 80% 65% / .5), 0 30px 60px -26px hsl(var(--h, 270) 80% 45% / .8); }
.lab-card-top { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.lab-card-ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 12px 0 6px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 270) 85% 62%), hsl(calc(var(--h, 270) + 40) 85% 46%)); box-shadow: 0 12px 30px -6px hsl(var(--h, 270) 85% 55% / .8); }
.lab-card-ico svg { width: 28px; height: 28px; }
.lab-card b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.lab-card-tag { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.7); }
.lab-card-more { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.lab-card-more svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .lab-feature-grid, .lab-cards { grid-template-columns: minmax(0, 1fr); } }

/* agents pipeline: one compact timeline */
.agf { display: grid; gap: 14px; }
.agf-track { position: relative; display: grid; grid-template-columns: 1fr 1fr 2fr 1fr 1fr; gap: 10px; }
.agf-track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 17px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, transparent), color-mix(in srgb, #00b8c4 60%, transparent)); opacity: .5; }
.agf-stage { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 10px; }
.agf-node { display: grid; place-items: center; }
.agf-node i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 600 12px/1 var(--font-mono); font-style: normal; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); box-shadow: 0 0 0 5px var(--bg); transition: all .3s var(--ease); }
.agf-stage:hover .agf-node i, .agf-stage.is-here .agf-node i { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), #00a6b2); box-shadow: 0 0 0 5px var(--bg), 0 8px 22px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.agf-head { display: grid; gap: 2px; text-align: center; }
.agf-head b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.agf-head span { font-size: 12.5px; color: var(--ink-3); }
.agf-agents { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px; border-radius: calc(var(--radius) + 2px); border: 1px solid var(--line); background: var(--bg-elev); align-content: flex-start; }
.agf-agents.is-wide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agf-stage.is-here .agf-agents { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.agf-agent { position: relative; display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: inherit; text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.agf-agents:not(.is-wide) .agf-agent { width: 100%; }
.agf-agent:hover { border-color: hsl(var(--h, 270) 75% 60%); transform: translateY(-1px); }
.agf-agent.is-current { border-color: hsl(var(--h, 270) 75% 60%); box-shadow: 0 0 0 3px hsl(var(--h, 270) 75% 60% / .18); }
.agf-agent b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.agf-ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 270) 80% 60%), hsl(calc(var(--h, 270) + 40) 80% 48%)); }
.agf-ico svg { width: 13px; height: 13px; }
.agf-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5; translate: -50% 4px; padding: 6px 10px; border-radius: 8px; background: var(--primary); color: var(--primary-ink); font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s var(--ease), translate .2s var(--ease); }
.agf-agent:hover .agf-tip, .agf-agent:focus-visible .agf-tip { opacity: 1; translate: -50% 0; }
.agf-seniors { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px; border: 1px dashed var(--line-strong); }
.agf-human { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: 13px; font-weight: 700; }
.agf-seniors p { font-size: 14px; color: var(--ink-2); }
.agf-seniors b { color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) {
  .agf-track { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-left: 50px; }
  .agf-track::before { left: 17px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; }
  .agf-stage { grid-template-rows: auto; }
  .agf-node { position: absolute; left: -50px; top: 0; }
  .agf-head { text-align: left; grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; padding-top: 6px; }
  .agf-agents { justify-content: flex-start; }
  .agf-agents:not(.is-wide) .agf-agent { width: auto; }
  .agf-agents.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agf-seniors { border-radius: var(--radius); }
}

/* Transformations (/transformations/) */
.tr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tr-card { position: relative; display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); background: var(--card-wash), var(--bg-elev); color: inherit; text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.tr-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand, var(--accent)) 55%, var(--line)); box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--brand, var(--accent)) 60%, transparent); }
.tr-top { display: flex; justify-content: space-between; align-items: center; }
.tr-num { font: 500 11px/1 var(--font-mono); letter-spacing: .1em; color: var(--ink-3); }
.tr-move { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.tr-from { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 45%, transparent); text-decoration-thickness: 2px; }
.tr-move i { font-style: normal; color: var(--brand, var(--accent)); transition: transform .3s var(--ease); }
.tr-card:hover .tr-move i { transform: translateX(4px); }
.tr-to { color: var(--ink); }
.tr-card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.tr-more { margin-top: 4px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.tr-more svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.tr-card:hover .tr-more svg { transform: translateX(3px); }
.tr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.tr-steps li { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); }
.tr-steps b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font: 600 12px/1 var(--font-mono); color: var(--primary-ink); background: var(--primary); }
.tr-steps h3 { font-size: 19px; letter-spacing: -.02em; }
.tr-steps p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 1000px) { .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tr-grid, .tr-steps { grid-template-columns: minmax(0, 1fr); } }

/* the key menu entry: Transformations — a capsule with a slowly orbiting gradient border */
@property --nk-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.nav a.nav-key {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px 7px 12px; margin-right: 6px;
  color: var(--ink); font-weight: 600; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              conic-gradient(from var(--nk-a), color-mix(in srgb, var(--accent) 25%, transparent), var(--accent), #00b8c4, color-mix(in srgb, #00b8c4 25%, transparent) 60%, color-mix(in srgb, var(--accent) 25%, transparent)) border-box;
  animation: nk-orbit 4s linear infinite;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.nav a.nav-key::before { content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: inherit; background: radial-gradient(60% 80% at 50% 50%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%); opacity: .55; filter: blur(6px); transition: opacity .3s var(--ease); }
.nav a.nav-key:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.nav a.nav-key:hover::before, .nav a.nav-key[aria-current="page"]::before { opacity: 1; }
.nav a.nav-key[aria-current="page"] { background: linear-gradient(var(--bg-hover), var(--bg-hover)) padding-box, conic-gradient(from var(--nk-a), color-mix(in srgb, var(--accent) 25%, transparent), var(--accent), #00b8c4, color-mix(in srgb, #00b8c4 25%, transparent) 60%, color-mix(in srgb, var(--accent) 25%, transparent)) border-box; }
.nav-key-spark { width: 13px; height: 13px; fill: var(--accent); }
:root:not([data-theme="light"]) .nav-key-spark { fill: #c3c9ff; }
@keyframes nk-orbit { to { --nk-a: 360deg; } }
@media (max-width: 900px) { .nav a.nav-key { align-self: flex-start; margin: 4px 0 6px; padding: 10px 18px 10px 14px; } }
@media (prefers-reduced-motion: reduce) { .nav a.nav-key { animation: none; } }

/* ---------- Transformation story pages: villain → hero ---------- */
.ts-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(56px, 8vw, 100px); }
.ts-hero .wrap { position: relative; display: grid; gap: 18px; justify-items: start; }
.ts-duel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 160px) minmax(0, 1fr); align-items: center; gap: 14px; width: min(100%, 760px); margin: 10px 0 14px; }
.ts-side { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: var(--bg-elev); }
.ts-when { position: absolute; top: -9px; left: 16px; padding: 2px 8px; border-radius: 999px; font: 500 10px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; background: var(--bg); border: 1px solid var(--line); color: var(--ink-3); }
.ts-logo { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.ts-logo svg { width: 28px; height: 28px; }
.ts-side b { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.03em; }
.ts-old { opacity: .72; }
.ts-old b { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, #ef4444 70%, transparent); }
.ts-old .ts-logo { color: var(--ink-3); filter: grayscale(1); }
.ts-new { border-color: color-mix(in srgb, var(--brand, var(--accent)) 55%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand, var(--accent)) 14%, transparent), 0 24px 60px -24px color-mix(in srgb, var(--brand, var(--accent)) 70%, transparent); }
.ts-new .ts-logo { color: var(--logo, var(--brand, var(--accent))); }
.ts-new .ts-when { color: var(--ink); border-color: color-mix(in srgb, var(--brand, var(--accent)) 55%, var(--line)); }
.ts-beam { position: relative; height: 44px; display: grid; place-items: center; }
.ts-beam::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--ink-3) 40%, transparent), var(--brand, var(--accent))); }
.ts-beam i { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--brand, var(--accent)); box-shadow: 0 0 12px var(--brand, var(--accent)); animation: ts-flow 2.4s linear infinite; }
.ts-beam i:nth-child(2) { animation-delay: .8s; } .ts-beam i:nth-child(3) { animation-delay: 1.6s; }
.ts-beam span { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); font-size: 16px; }
@keyframes ts-flow { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.ts-title { font-size: clamp(42px, 6.4vw, 88px); line-height: .98; letter-spacing: -.05em; max-width: 14ch; }
.ts-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; }
.ts-chips li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font: 500 11.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ts-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #fecaca; background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .35); }
.ts-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: ts-blink 1.6s ease-in-out infinite; }
.ts-badge-hero { color: var(--ink); background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ts-badge-hero::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@keyframes ts-blink { 50% { opacity: .35; } }

/* the villain: always dark, red-tinted */
.ts-villain { position: relative; isolation: isolate; overflow: hidden; margin: 0 clamp(8px, 1.6vw, 24px); border-radius: clamp(20px, 3vw, 36px); border: 1px solid rgba(239, 68, 68, .18); color: #f4f4f6; background: radial-gradient(70% 60% at 85% 0%, rgba(239, 68, 68, .22), transparent 60%), radial-gradient(60% 50% at 0% 100%, rgba(249, 115, 22, .14), transparent 60%), #0b0a0d; }
.ts-villain::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px); background-size: 18px 18px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.ts-villain-head { display: grid; gap: 16px; justify-items: start; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.ts-villain-head h2 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1; letter-spacing: -.05em; background: linear-gradient(180deg, #fff, #fca5a5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ts-villain-head p { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: rgba(255, 255, 255, .72); }
.ts-syms { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.ts-sym { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.ts-sym:hover { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .06); }
.ts-sym-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fca5a5; background: rgba(239, 68, 68, .14); }
.ts-sym-ico svg { width: 18px; height: 18px; }
.ts-sym b { font-size: 16.5px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.ts-sym p { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .62); }
.ts-cost { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 14px; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .06); }
.ts-cost-k { font: 600 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #fca5a5; white-space: nowrap; }
.ts-cost p { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .85); }

/* the turning point */
.ts-turn { position: relative; padding: clamp(72px, 10vw, 136px) 0; text-align: center; }
.ts-turn::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: clamp(40px, 6vw, 80px); background: linear-gradient(180deg, rgba(239, 68, 68, .6), var(--accent)); }
.ts-turn .wrap { display: grid; gap: 18px; justify-items: center; }
.ts-quote { max-width: 22ch; font-size: clamp(30px, 4.4vw, 58px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; color: var(--ink); }
.ts-quote span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ts-turn-sub { font-size: 16px; color: var(--ink-2); }

/* the hero */
.ts-hero-sec { position: relative; background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--brand, var(--accent)) 12%, transparent), transparent 70%); }
.ts-hero-head { display: grid; gap: 16px; justify-items: start; max-width: 780px; margin-bottom: clamp(24px, 4vw, 40px); }
.ts-hero-head h2 { font-size: clamp(38px, 5.2vw, 70px); line-height: 1; letter-spacing: -.05em; }
.ts-hero-head p { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--ink-2); }
.ts-powers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(40px, 6vw, 72px); }
.ts-power { display: grid; gap: 8px; padding: 22px; border-radius: calc(var(--radius) + 2px); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--bg-elev)), var(--bg-elev)); }
.ts-power b { font-size: 20px; letter-spacing: -.02em; }
.ts-power p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.ts-plan-head { display: grid; gap: 12px; margin-bottom: 18px; }
.ts-plan-head h3 { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.03em; }
.ts-plan { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 12px; }
.ts-plan::before { content: ""; position: absolute; left: 22px; right: calc(100% / var(--n, 5) - 22px); top: 22px; height: 2px; background: linear-gradient(90deg, var(--accent), #00b8c4); opacity: .45; }
.ts-plan li { position: relative; display: grid; gap: 8px; align-content: start; padding: 0 6px; }
.ts-step-n { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 600 13px/1 var(--font-mono); color: #fff; background: linear-gradient(135deg, var(--accent), #00a6b2); box-shadow: 0 0 0 6px var(--bg), 0 10px 26px -8px color-mix(in srgb, var(--accent) 80%, transparent); margin-bottom: 6px; }
.ts-plan b { font-size: 18px; letter-spacing: -.02em; }
.ts-plan p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* what moves where + before/after */
.ts-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ts-two .section-head { margin-bottom: 22px; }
.ts-moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ts-moves li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev); font-size: 15px; }
.ts-moves s { color: var(--ink-3); text-decoration-color: color-mix(in srgb, #ef4444 60%, transparent); text-decoration-thickness: 1.5px; }
.ts-moves i { font-style: normal; color: var(--accent); }
.ts-moves span { font-weight: 500; }
.ts-ba { border-radius: calc(var(--radius) + 2px); border: 1px solid var(--line); background: var(--bg-elev); overflow: hidden; }
.ts-ba-h, .ts-ba li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 22px minmax(0, 1fr); gap: 10px; align-items: center; padding: 14px 18px; }
.ts-ba-h { font: 600 10.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.ts-ba ul { list-style: none; margin: 0; padding: 0; }
.ts-ba li + li { border-top: 1px solid var(--line); }
.ts-ba-m { font-weight: 500; }
.ts-ba-old { color: #dc2626; font-size: 14.5px; }
:root:not([data-theme="light"]) .ts-ba-old { color: #fca5a5; }
.ts-ba li i { font-style: normal; color: var(--ink-3); }
.ts-ba-new { color: #059669; font-weight: 600; font-size: 14.5px; }
:root:not([data-theme="light"]) .ts-ba-new { color: #6ee7b7; }
.ts-gs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ts-g { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); }
.ts-g b { font-size: 18px; letter-spacing: -.02em; }
.ts-g b::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; font-size: 12px; color: var(--primary-ink); background: var(--primary); }
.ts-g p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.ts-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ts-rel { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); color: inherit; text-decoration: none; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.ts-rel:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ts-rel-l { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.ts-rel-l svg { width: 20px; height: 20px; }
.ts-rel b { flex: 1; font-weight: 500; }
.ts-rel i { font-style: normal; color: var(--ink-3); }
.ts-final-card { display: grid; gap: 16px; justify-items: center; text-align: center; padding: clamp(36px, 6vw, 72px) 24px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--brand, var(--accent)) 35%, var(--line)); background: radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--brand, var(--accent)) 16%, transparent), transparent 70%), var(--bg-elev); }
.ts-final-card h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.05em; line-height: 1; }
.ts-final-card p { max-width: 560px; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
@media (max-width: 1000px) { .ts-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } .ts-plan::before { display: none; } .ts-gs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ts-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .ts-duel { grid-template-columns: minmax(0, 1fr); } .ts-beam { height: 34px; transform: rotate(90deg); width: 60px; justify-self: center; } .ts-powers, .ts-gs, .ts-plan { grid-template-columns: minmax(0, 1fr); } .ts-cost { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ts-beam i, .ts-badge::before { animation: none; } }
