/* PaiQube public website: approved P02 Deep Navy.
   PK's prospect tokens (assets/brand/prospects/<id>/tokens.css, loaded verbatim before this file)
   are mapped below onto the site's colour roles.

   One system runs through every page: numbered chapters with the same header, one panel style, one
   light, and a thread (drawn by site.js on wide screens) that passes through every chapter's node.
   Motion runs only under html[data-motion="full"]; everything is complete and readable without it. */

/* ——— Fonts (SIL OFL 1.1, self-hosted; licences in assets/fonts/) ——— */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-v20.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-greek-v20.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-latin-v20.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ——— Shared tokens (PK's base tokens as starting points) ——— */
:root {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --heading: 'Manrope', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Segoe UI Mono', Menlo, Consolas, monospace;

  --container: 1240px;
  --container-stage: 1400px;
  --gutter: clamp(22px, 4.6vw, 56px);
  --section: clamp(80px, 10vw, 140px);
  --header-h: 68px;
  --rail: 0px; /* how far a chapter node sits left of the text; set per breakpoint */
  --r-control: 0.75rem;
  --r-card: 1.5rem;
  --r-stage: clamp(1.75rem, 3vw, 2.75rem);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1.08, 0.64, 1);
  --t-hover: 180ms;
  --t-control: 320ms;

  /* Spriwa keeps its own identity in every prospect: its stage is Spriwa's deep green, its accent
     the app's mint. These never change with the PaiQube prospect. */
  --sp-bg: #04241c;
  --sp-bg-2: #08362b;
  --sp-text: #effcf6;
  --sp-text-2: #bcd9cc;
  --sp-text-3: #9fc6b5;
  --sp-line: rgba(190, 240, 215, 0.14);
  --sp-line-strong: rgba(190, 240, 215, 0.42);
  --sp-mint: #47e6ad;
  --sp-lime: #bcee3f;
  --sp-ink: #03241b;
}

/* ——— Prospect P02: pale surfaces, navy text and actions, steel highlights ——— */
[data-brand-prospect='p02'] {
  color-scheme: light;
  --bg: var(--pq-color-canvas);
  --bg-inverse: var(--pq-color-inverse-surface);
  --bg-raised: var(--pq-color-surface);
  --text: var(--pq-color-text-primary);
  --text-2: var(--pq-color-text-secondary);
  --text-3: var(--pq-color-text-muted);
  --line: rgba(23, 43, 77, 0.11);
  --line-strong: var(--pq-color-border-strong);
  --accent: var(--pq-color-brand-secondary);
  --accent-2: var(--pq-color-brand-primary);
  --accent-grad: var(--pq-gradient-accent);
  --display-grad: linear-gradient(100deg, #172b4d 0%, #3d5274 55%, #5d6b82 100%);
  --focus: var(--pq-color-focus);
  --underline: rgba(23, 43, 77, 0.35);
  --btn-bg: var(--pq-color-action-background);
  --btn-fg: var(--pq-color-action-text);
  --btn-hover: var(--pq-color-action-hover);
  --btn-shadow: 0 14px 30px -16px rgba(23, 43, 77, 0.7);
  --btn2-line: rgba(23, 43, 77, 0.28);
  --btn2-hover: rgba(23, 43, 77, 0.05);
  --tint: rgba(23, 43, 77, 0.06);
  --ok: var(--pq-color-status-success);
  --ok-line: rgba(23, 99, 61, 0.35);
  --ok-tint: rgba(23, 99, 61, 0.07);
  --panel: #ffffff;
  --panel-line: rgba(23, 43, 77, 0.08);
  --panel-shadow: 0 1px 2px rgba(23, 43, 77, 0.04), 0 24px 48px -32px rgba(23, 43, 77, 0.28);
  --glow-1: rgba(166, 174, 186, 0.34);
  --glow-2: rgba(93, 107, 130, 0.08);
  --header-bg: rgba(244, 246, 250, 0.82);
  --thread-a: #172b4d;
  --thread-b: #6f7f99;
  --thread-c: #d2d8e2;
  --thread-track: rgba(23, 43, 77, 0.09);
  --mw-dim: #77839a;
  --bad: var(--pq-color-status-error);
  --bad-tint: rgba(180, 35, 24, 0.09);
  --bad-line: rgba(180, 35, 24, 0.4);
  --panel-solid: #ffffff;
  --good-tint: rgba(23, 43, 77, 0.035);
  --good-line: rgba(23, 43, 77, 0.3);
  --good-fill: rgba(23, 43, 77, 0.13);
  --node-lit: #172b4d;
  --d1-fill: rgba(23, 43, 77, 0.05);
  --d1-line: rgba(23, 43, 77, 0.55);
  --d2-fill: rgba(93, 107, 130, 0.1);
  --d2-line: rgba(93, 107, 130, 0.75);
  --d3-fill: rgba(23, 43, 77, 0.12);
  --d3-line: rgba(23, 43, 77, 0.65);
  --d-hi: rgba(23, 43, 77, 0.2);
  --d-ring: rgba(23, 43, 77, 0.16);
  --d-faint: rgba(23, 43, 77, 0.07);
  --digits: rgba(23, 43, 77, 0.3);
  --grad-a: #172b4d;
  --grad-b: #a6aeba;
  --logo: url('/assets/brand/prospects/p02-deep-navy/logo-horizontal-light.svg');
  --symbol: url('/assets/brand/prospects/p02-deep-navy/symbol-color.svg');
  --symbol-shadow: drop-shadow(0 30px 50px rgba(23, 43, 77, 0.2));
  --sheen: rgba(255, 255, 255, 0.75);
  --select: rgba(23, 43, 77, 0.18);
}
[data-brand-prospect='p02'] .tone-inverse {
  color-scheme: dark;
  --bg: var(--pq-color-inverse-surface);
  --bg-raised: #1a2e50;
  --text: var(--pq-color-inverse-text);
  --text-2: var(--pq-color-inverse-secondary);
  --text-3: #b3c0d4;
  --line: rgba(202, 213, 229, 0.16);
  --line-strong: rgba(202, 213, 229, 0.55);
  --accent: var(--pq-color-inverse-link);
  --accent-2: var(--pq-color-brand-highlight);
  --accent-grad: linear-gradient(115deg, #a6aeba 0%, #ffffff 100%);
  --display-grad: linear-gradient(100deg, #ffffff 0%, #d2d8e2 100%);
  --focus: var(--pq-color-inverse-focus);
  --underline: rgba(210, 216, 226, 0.45);
  --btn-bg: #ffffff;
  --btn-fg: var(--pq-color-brand-primary);
  --btn-hover: var(--pq-color-surface-raised);
  --btn-shadow: none;
  --btn2-line: rgba(202, 213, 229, 0.55);
  --btn2-hover: rgba(255, 255, 255, 0.06);
  --tint: rgba(255, 255, 255, 0.06);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-line: rgba(202, 213, 229, 0.14);
  --panel-shadow: none;
  --glow-1: rgba(166, 174, 186, 0.2);
  --glow-2: rgba(93, 107, 130, 0.16);
  --node-lit: #ffffff;
  --d-ring: rgba(202, 213, 229, 0.22);
  --grad-a: #a6aeba;
  --grad-b: #ffffff;
  --logo: url('/assets/brand/prospects/p02-deep-navy/logo-horizontal-dark.svg');
  --symbol: url('/assets/brand/prospects/p02-deep-navy/symbol-white.svg');
  --symbol-shadow: none;
  --select: rgba(210, 216, 226, 0.3);
}
.tone-inverse { background: var(--bg); color: var(--text); }

/* ——— Base ——— */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
}
html[data-motion='full'] { scroll-behavior: smooth; }
/* The page colour lives on <html>; body stays clear so the ambient light behind it shows. */
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--select); }
main { position: relative; isolation: isolate; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.wrap--stage { max-width: var(--container-stage); padding-inline: max(clamp(10px, 2.2vw, 36px), env(safe-area-inset-left)) max(clamp(10px, 2.2vw, 36px), env(safe-area-inset-right)); }
.section { padding-block: var(--section); position: relative; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-control); background: var(--text); color: var(--bg);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* The approved logo artwork, drawn from the prospect's own SVG files (never live text). */
.logo { display: block; width: 148px; aspect-ratio: 1600 / 600; background: var(--logo) center / contain no-repeat; }
.symbol { display: block; aspect-ratio: 836 / 1090; background: var(--symbol) center / contain no-repeat; }

/* One light for the whole page: two soft pools that drift as the page scrolls, so sections never
   sit on separate coloured bands. */
.ambient {
  position: fixed; inset: -20vh -10vw; z-index: -1; pointer-events: none; will-change: transform;
  background:
    radial-gradient(38vw 38vw at 84% 18%, var(--glow-1), transparent 70%),
    radial-gradient(34vw 34vw at 8% 72%, var(--glow-2), transparent 70%);
}

/* ——— Type ——— */
.display, .chapter__title, .manifesto__text, .test__name, .belief__title, .intent__text, .wordmark-split, .name__part dt, .contact-aside__title, .menu__links a, .email-link, .legal__item h2 {
  font-family: var(--heading);
}
.display {
  font-size: clamp(3rem, 1.2rem + 6.4vw, 7.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.display .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.display .line__in { display: inline-block; text-wrap: balance; }
.display .line--accent .line__in {
  background: var(--display-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.04em;
}
.display--page { font-size: clamp(2.75rem, 1.4rem + 4.4vw, 5.25rem); }
.display--hero { font-size: clamp(2.5rem, 1.1rem + 4.2vw, 5rem); line-height: 1.02; letter-spacing: -0.04em; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.55; color: var(--text-2); max-width: 34em; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.75rem; line-height: 1.3; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 26px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--accent-grad); flex: none; }
.fine { font-size: 0.875rem; line-height: 1.55; color: var(--text-3); max-width: 44em; }

/* The chapter header: the same on every section of every page. */
.chapter { position: relative; max-width: 46rem; }
.chapter__index {
  position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; letter-spacing: 0.02em; color: var(--text-2);
}
.chapter__num { color: var(--accent); font-variant-numeric: tabular-nums; }
.chapter__rule { width: 36px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); flex: none; }
.chapter__label { text-transform: uppercase; letter-spacing: 0.16em; font-family: var(--font); font-size: 0.75rem; font-weight: 600; }
.chapter__title {
  font-size: clamp(2.375rem, 1.3rem + 3.6vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance;
}
.chapter__lead { margin-top: 26px; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.55; color: var(--text-2); max-width: 34em; }
.chapter--center { margin-inline: auto; text-align: center; }
.chapter--center .chapter__index { justify-content: center; }
.chapter--hero .chapter__title { font-size: clamp(2.75rem, 1.4rem + 4.4vw, 5.25rem); }

/* The node the thread passes through. It sits in the margin left of the chapter number. */
.node {
  position: absolute; left: calc(var(--rail) * -1); top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--bg);
  transition: border-color 500ms var(--ease), box-shadow 700ms var(--ease);
}
.node::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--node-lit);
  transform: scale(0); transition: transform 600ms var(--ease-soft);
}
.node.is-lit { border-color: var(--node-lit); box-shadow: 0 0 0 6px var(--tint); }
.node.is-lit::after { transform: scale(1); }
.no-js .node, .node:not([data-placed]) { display: none; }

/* ——— The thread ——— */
.thread { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; overflow: visible; }
.thread__track { fill: none; stroke: var(--thread-track); stroke-width: 1.5; }
.thread__line { fill: none; stroke: url(#thread-g); stroke-width: 2; stroke-linecap: round; }
.thread__glow { fill: none; stroke: url(#thread-g); stroke-width: 10; stroke-linecap: round; opacity: 0.12; }
.thread-stop-a { stop-color: var(--thread-a); }
.thread-stop-b { stop-color: var(--thread-b); }
.thread-stop-c { stop-color: var(--thread-c); }
.comet {
  position: absolute; left: 0; top: 0; z-index: -1; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--thread-b); pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--thread-b) 22%, transparent), 0 0 24px 6px color-mix(in srgb, var(--thread-b) 45%, transparent);
  transition: opacity 400ms var(--ease);
}
.comet.is-on { opacity: 1; }

/* Ports: where the thread plugs into a Spriwa stage. */
.port {
  position: absolute; left: 0; top: 0; z-index: 1; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; pointer-events: none;
  background: var(--sp-bg); border: 1.5px solid var(--sp-line-strong); transition: border-color 500ms var(--ease), box-shadow 700ms var(--ease);
}
.port.is-lit { border-color: var(--sp-mint); background: var(--sp-mint); box-shadow: 0 0 0 5px rgba(71, 230, 173, 0.16), 0 0 22px 4px rgba(71, 230, 173, 0.45); }

/* ——— Buttons and links ——— */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--t-hover), border-color var(--t-hover), color var(--t-hover), box-shadow var(--t-hover), transform var(--t-control) var(--ease);
}
.btn .icon { width: 18px; height: 18px; flex: none; transition: transform var(--t-control) var(--ease); }
[data-motion='full'] .btn:hover { transform: translateY(-1px); }
[data-motion='full'] .btn:hover .icon { transform: translateX(3px); }
[data-motion='full'] .btn[href^='http']:hover .icon { transform: translate(2px, -2px); }
[data-motion='full'] .btn[href^='#']:hover .icon { transform: translateY(2px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: var(--btn2-line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); background: var(--btn2-hover); }
.btn-spriwa { background: var(--sp-mint); color: var(--sp-ink); box-shadow: 0 16px 36px -18px rgba(71, 230, 173, 0.9); }
.btn-spriwa:hover { background: #7af0c5; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--underline); text-underline-offset: 7px;
  transition: text-decoration-color var(--t-hover), color var(--t-hover);
}
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--t-control) var(--ease); }
[data-motion='full'] .link-arrow:hover .icon { transform: translateX(3px); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.2; white-space: nowrap; letter-spacing: 0.01em;
  border: 1px solid var(--ok-line); color: var(--ok); background: var(--ok-tint);
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ——— Panels: the one card surface used across the site ——— */
.panel, .contact-aside, .intent__item, .legal__item, .contact-card {
  border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow);
}
/* A soft light follows a mouse pointer across panels and rows. */
.intent__item, .contact-card, .contact-aside, .legal__item { position: relative; isolation: isolate; }
.intent__item::after, .contact-card::after, .contact-aside::after, .legal__item::after, .insight::after, .industry::after, .tile::after, .flow__col::after, .twoways__side::after, .pain::after, .example::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--tint), transparent 70%);
  transition: opacity 400ms var(--ease);
}
[data-motion='full'] :is(.intent__item, .contact-card, .contact-aside, .legal__item, .insight, .industry, .tile, .flow__col, .twoways__side, .pain, .example):hover::after { opacity: 1; }

/* ——— Header ——— */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  transition: background-color var(--t-control), box-shadow var(--t-control);
}
.site-header.is-scrolled, .is-short .site-header {
  background: var(--header-bg); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; border-radius: 8px; margin-left: -6px; flex: none; }
.site-header__chapter {
  display: none; align-items: center; gap: 10px; min-width: 0;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--text-3);
  white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.site-header__chapter.is-on { opacity: 1; transform: none; }
.site-header__chapter::before { content: ''; width: 1px; height: 18px; background: var(--line-strong); margin-right: 6px; }
.site-header__num { color: var(--accent); }
.site-header__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--thread-a), var(--thread-b));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}
.site-nav { display: none; margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--text-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  transition: color var(--t-hover), background-color var(--t-hover);
}
.site-nav a:hover { color: var(--text); background: var(--tint); }
.site-nav a[aria-current] { color: var(--text); }
.site-nav a[aria-current]::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.site-header__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header__cta { display: none; }
.menu-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--btn2-line); background: transparent; cursor: pointer;
  font-size: 0.9375rem; font-weight: 600; color: var(--text);
}
.menu-button .icon { width: 18px; height: 18px; }
.menu-button:hover { border-color: var(--text); }
/* Without script the dialog cannot open, so the control becomes a link to the footer's page list. */
.menu-button--fallback { text-decoration: none; }
.js .menu-button--fallback, .no-js [data-menu-open], .no-js [data-motion-toggle] { display: none; }

@media (min-width: 900px) {
  .site-nav { display: block; }
  .site-header__end { margin-left: 8px; }
  .site-header__cta { display: inline-flex; }
  .menu-button:not(.menu-button--close), .no-js .menu-button--fallback { display: none; }
}
@media (min-width: 1320px) { .site-header__chapter { display: flex; } }

/* Mobile menu: a native modal dialog (focus containment, Escape and an inert page come built in). */
.menu {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--text);
}
.menu::backdrop { background: rgba(3, 9, 20, 0.6); }
.menu__inner {
  display: flex; flex-direction: column; min-height: 100%;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
}
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.menu__links { display: grid; margin-top: 32px; }
.menu__links a {
  display: flex; align-items: center; min-height: 64px; font-size: 2rem; font-weight: 600; letter-spacing: -0.035em;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.menu__links a[aria-current] { color: var(--accent); }
.menu__end { margin-top: auto; padding-top: 40px; display: grid; gap: 18px; justify-items: start; }
[data-motion='full'] .menu[open] .menu__links li { animation: rise-in 600ms var(--ease-out) both; }
[data-motion='full'] .menu[open] .menu__links li:nth-child(2) { animation-delay: 50ms; }
[data-motion='full'] .menu[open] .menu__links li:nth-child(3) { animation-delay: 100ms; }
[data-motion='full'] .menu[open] .menu__links li:nth-child(4) { animation-delay: 150ms; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }

/* ——— Motion: entrances and reveals (only with script and full motion; text is never lost) ——— */
[data-motion='full'].js [data-intro] { animation: intro 1100ms var(--ease-out) both; }
[data-motion='full'].js [data-intro='1'] { animation-delay: 60ms; }
[data-motion='full'].js [data-intro='2'] { animation-delay: 140ms; }
[data-motion='full'].js [data-intro='3'] { animation-delay: 260ms; }
[data-motion='full'].js [data-intro='4'] { animation-delay: 520ms; }
[data-motion='full'].js [data-intro='5'] { animation-delay: 660ms; }
[data-motion='full'].js [data-intro='6'] { animation-delay: 860ms; }
@keyframes intro { from { opacity: 0; transform: translateY(26px); } }
[data-motion='full'].js .display .line__in[data-intro] { animation-name: line-rise; animation-duration: 1300ms; }
@keyframes line-rise { from { transform: translateY(108%) rotate(2deg); } }

.reveal-ready[data-motion='full'] [data-reveal] { transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out); }
.reveal-ready[data-motion='full'] [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(32px); }
.reveal-ready[data-motion='full'] svg[data-reveal]:not(.is-in) { transform: none; }

/* Chapter titles rise word by word. */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.sw__in { display: inline-block; }
.reveal-ready[data-motion='full'] [data-split] .sw__in { transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--w) * 55ms); }
.reveal-ready[data-motion='full'] [data-split]:not(.is-in) .sw__in { transform: translateY(112%); }

/* ——— Hero ——— */
.hero { position: relative; padding-top: clamp(32px, 6vw, 72px); }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__copy { position: relative; z-index: 1; }
.hero__lead { margin-top: 34px; max-width: 31em; }

/* The hero symbol is the prospect's own artwork. It is revealed from the cube down and a band of
   light occasionally crosses it; its shape and proportions never change. */
@property --reveal { syntax: '<percentage>'; inherits: false; initial-value: 125%; }
.hero__visual { position: relative; width: min(84%, 360px); margin-inline: auto; }
.hero-mark { position: relative; aspect-ratio: 1000 / 1150; }
[data-motion='full'] .hero__visual { transform: translate3d(0, calc(var(--hp, 0) * 90px), 0) scale(calc(1 - var(--hp, 0) * 0.08)); opacity: calc(1 - var(--hp, 0) * 0.6); }
[data-motion='full'] .hero__copy { transform: translate3d(0, calc(var(--hp, 0) * 40px), 0); }
.hero-mark::before {
  content: ''; position: absolute; inset: 8% 4% 18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow-1), transparent);
}
.hero-mark__orbit, .hero-mark__digits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: translate 900ms var(--ease); translate: calc(var(--px, 0) * -12px) calc(var(--py, 0) * -10px); }
/* The digits turn as their own layer, so the ring never repaints while it moves. */
.hero-mark__digits { transform-origin: 50% 51.304%; will-change: transform; }
.hero-mark__lift {
  position: absolute; left: 50%; top: 47%; width: 62%;
  transform: translate(calc(-50% + var(--px, 0) * 8px), calc(-50% + var(--py, 0) * 8px));
  transition: transform 900ms var(--ease);
  filter: var(--symbol-shadow);
}
.hero-mark__symbol {
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--reveal) - 20%), transparent var(--reveal));
  mask-image: linear-gradient(to bottom, #000 calc(var(--reveal) - 20%), transparent var(--reveal));
}
.hero-mark__symbol::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 38%, var(--sheen) 50%, transparent 62%) 0 0 / 300% 100% no-repeat;
  -webkit-mask: var(--symbol) center / contain no-repeat;
  mask: var(--symbol) center / contain no-repeat;
}
.hero-mark__tail { position: absolute; left: 50%; top: 84%; width: 1px; height: 1px; }
[data-motion='full'] .hero-mark__symbol { animation: reveal 1900ms 200ms var(--ease) both; }
@keyframes reveal { from { --reveal: 0%; } to { --reveal: 125%; } }
[data-motion='full'] .hero-mark__orbit { animation: intro 1600ms 120ms var(--ease-out) both; }
[data-motion='full'] .hero-mark__digits { animation: intro 1600ms 120ms var(--ease-out) both, spin 240s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
@media (pointer: fine) {
  [data-motion='full'] .hero-mark__symbol::after { animation: sheen 9s 2.6s linear infinite; }
}
.hero-mark.is-paused *, .hero-mark.is-paused *::after, .hero-mark.is-off *, .hero-mark.is-off *::after { animation-play-state: paused !important; }
@keyframes sheen {
  0% { opacity: 1; background-position: 150% 0; }
  28% { opacity: 1; background-position: -50% 0; }
  29%, 100% { opacity: 0; background-position: -50% 0; }
}
.orbit-ring { fill: none; stroke: var(--d-ring); stroke-width: 1.5; }
.orbit-digits { font-family: var(--mono); font-size: 15px; letter-spacing: 3.2px; fill: var(--digits); }
.orbit-plane { stroke: var(--d-ring); stroke-width: 1.5; }
.orbit-grid { fill: none; stroke: var(--d-faint); stroke-width: 1.2; }
.stop-a { stop-color: var(--grad-a); }
.stop-b { stop-color: var(--grad-b); }
.hero-pause {
  position: absolute; right: 0; bottom: -4px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 0.8125rem; font-weight: 500;
}
.hero-pause[hidden] { display: none; }
.hero-pause:hover { color: var(--text); border-color: var(--line-strong); }
.hero-pause .icon { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .hero { min-height: min(920px, calc(100svh - var(--header-h))); display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; }
  .hero__visual { width: min(100%, 520px); margin-right: -2%; }
}

/* ——— 01 Manifesto: the words light up as you read ——— */
.manifesto__text {
  font-size: clamp(2rem, 0.9rem + 4vw, 4.5rem); line-height: 1.16; letter-spacing: -0.03em; font-weight: 600;
  max-width: 21em; text-wrap: pretty;
}
/* Unlit words keep at least 3:1 (large-text AA); they reach full contrast as they are read. */
.mw { color: var(--text); transition: color 300ms linear; }
.mw--em { color: var(--accent); }
.manifesto-live .mw { --t: clamp(0, calc(var(--p, 1) * (var(--n) + 6) - var(--i)), 1); color: color-mix(in srgb, var(--text) calc(var(--t) * 100%), var(--mw-dim)); }
.manifesto-live .mw--em { color: color-mix(in srgb, var(--accent) calc(var(--t) * 100%), var(--mw-dim)); }

/* ——— 05 Our first product: Spriwa in its own stage, one line and a way out to spriwa.com ——— */
.products > .wrap:first-child { padding-bottom: clamp(32px, 4vw, 56px); }
.stage {
  --text: var(--sp-text); --text-2: var(--sp-text-2); --text-3: var(--sp-text-3);
  --line: var(--sp-line); --line-strong: var(--sp-line-strong); --focus: var(--sp-mint);
  --btn2-line: var(--sp-line-strong); --btn2-hover: rgba(71, 230, 173, 0.1); --underline: rgba(71, 230, 173, 0.5);
  --ok: var(--sp-mint); --ok-line: rgba(71, 230, 173, 0.4); --ok-tint: rgba(71, 230, 173, 0.1);
  --tint: rgba(71, 230, 173, 0.1);
  color-scheme: dark;
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(28px, 5vw, 80px) clamp(20px, 5vw, 88px) 0;
  border-radius: var(--r-stage); color: var(--text);
  background:
    radial-gradient(70% 60% at 80% 10%, rgba(188, 238, 63, 0.13), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(71, 230, 173, 0.1), transparent 70%),
    linear-gradient(170deg, var(--sp-bg-2), var(--sp-bg) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 50px 120px -60px rgba(0, 0, 0, 0.65);
}
.stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6;
  background-image: radial-gradient(rgba(190, 240, 215, 0.09) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 50%); mask-image: linear-gradient(to bottom, #000, transparent 50%);
}
.app-icon { border-radius: 23%; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7); flex: none; }
.product-id { display: flex; align-items: center; gap: 16px; }
.product-id .app-icon { width: 60px; height: 60px; }
.product-id__name { font-family: var(--heading); font-size: 1.75rem; font-weight: 650; letter-spacing: -0.03em; }
.stage__body { margin-top: 24px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.6; color: var(--text-2); max-width: 32em; }
.stage__sub { margin-top: 28px; font-family: var(--heading); font-size: clamp(1.625rem, 1.1rem + 1.8vw, 2.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; max-width: 14em; text-wrap: balance; }
.stage__sample { position: absolute; right: clamp(20px, 3vw, 36px); bottom: 18px; z-index: 2; font-size: 0.75rem; color: var(--text-3); }

.product-card { display: grid; gap: 40px; align-items: end; }
.product-card__copy { padding-bottom: clamp(32px, 5vw, 80px); align-self: center; }
.product-card__copy .stage__sub { margin-top: 24px; font-size: clamp(1.375rem, 1.05rem + 1.1vw, 2rem); max-width: 18em; }
.product-card__copy .fine { margin-top: 18px; color: var(--text-3); }
.product-card__visual { position: relative; display: flex; justify-content: center; height: clamp(360px, 46vw, 520px); }
/* The phone rises out of the stage's lower edge; the stage clips it. */
.phone--product { --w: min(300px, 66vw); align-self: flex-start; }
.product-card__leafy { position: absolute; z-index: 2; left: calc(50% - min(300px, 66vw) / 2 - clamp(40px, 7vw, 92px)); bottom: clamp(28px, 6vw, 80px); width: clamp(84px, 11vw, 132px); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.35)); }
[data-motion='full'] .product-card__leafy { animation: bob 5s 1.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.reveal-ready[data-motion='full'] .product-card__visual:not(.is-in) { transform: translateY(80px); }
.reveal-ready[data-motion='full'] .product-card__visual { transition-duration: 1400ms; }
@media (min-width: 900px) {
  .product-card { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* The phone: the screenshot carries its own status bar and island; the frame only holds it. */
.phone {
  --w: 280px;
  position: relative; width: var(--w); flex: none; padding: calc(var(--w) * 0.026);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(150deg, #4a5262, #12171f 22%, #1b212c 64%, #4d5566);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 calc(var(--w) * 0.012) #090c11,
    0 calc(var(--w) * 0.2) calc(var(--w) * 0.3) calc(var(--w) * -0.12) rgba(0, 0, 0, 0.55);
}
.phone__screen {
  position: relative; aspect-ratio: 660 / 1434; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--w) * 0.14); background: #04241c;
}
.phone__screen::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, 0.09), transparent 30%); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }

/* ——— The P · A · I cube (About) ——— */
.pai { overflow: visible; }
.pai__circle { fill: none; stroke: var(--d-ring); stroke-width: 1.5; stroke-dasharray: 2 7; }
.pai__orbit { fill: none; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1400ms var(--ease-out), opacity 400ms; transform: rotate(-90deg); transform-origin: 260px 280px; }
.pai.is-in .pai__orbit, .no-js .pai__orbit { stroke-dashoffset: 0.75; opacity: 1; }
.pai.is-pi .pai__orbit { stroke-dashoffset: 0; }
.pai__pi { font-family: var(--mono); font-size: 15px; letter-spacing: 1px; fill: var(--text-3); transition: fill 300ms; }
.pai__face { stroke-width: 1.5; stroke-linejoin: round; transition: fill 400ms, opacity 600ms var(--ease), transform 900ms var(--ease-out); }
.pai__face--top { fill: var(--d1-fill); stroke: var(--d1-line); }
.pai__face--left { fill: var(--d2-fill); stroke: var(--d2-line); }
.pai__face--right { fill: var(--d3-fill); stroke: var(--d3-line); }
.pai__letter { transition: opacity 600ms var(--ease); }
.pai__letter text { font-family: var(--heading); font-size: 64px; font-weight: 700; fill: var(--text); opacity: 0.92; transition: opacity 300ms; }
.pai.is-three .pai__face { fill: var(--d-hi); }
.pai.is-pi .pai__pi { fill: var(--accent); }
.pai.is-ai .pai__face--left, .pai.is-ai .pai__face--right { fill: var(--d-hi); }
.pai.is-ai .pai__letter--top text { opacity: 0.25; }
[data-motion='full'] .pai:not(.is-in) .pai__face, [data-motion='full'] .pai:not(.is-in) .pai__letter { opacity: 0; }
[data-motion='full'] .pai:not(.is-in) .pai__face--top { transform: translateY(-32px); }
[data-motion='full'] .pai:not(.is-in) .pai__face--left { transform: translate(-28px, 16px); }
[data-motion='full'] .pai:not(.is-in) .pai__face--right { transform: translate(28px, 16px); }
.pai.is-in .pai__face--left { transition-delay: 0ms, 140ms, 140ms; }
.pai.is-in .pai__face--right { transition-delay: 0ms, 280ms, 280ms; }
.pai.is-in .pai__letter--top { transition-delay: 460ms; }
.pai.is-in .pai__letter--left { transition-delay: 560ms; }
.pai.is-in .pai__letter--right { transition-delay: 660ms; }
/* ——— Closing: the page fades into the inverse surface and the thread ends at the symbol ——— */
.dusk {
  height: clamp(240px, 38vh, 440px); margin-top: calc(var(--section) * -0.5);
  background: linear-gradient(to bottom, transparent, var(--bg-inverse));
  /* Eased (smoothstep) stops: the fade starts and ends with no slope, so no band or edge shows. */
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg-inverse) 0.0%, transparent) 0.0%, color-mix(in srgb, var(--bg-inverse) 2.0%, transparent) 8.3%, color-mix(in srgb, var(--bg-inverse) 7.4%, transparent) 16.7%, color-mix(in srgb, var(--bg-inverse) 15.6%, transparent) 25.0%, color-mix(in srgb, var(--bg-inverse) 25.9%, transparent) 33.3%, color-mix(in srgb, var(--bg-inverse) 37.6%, transparent) 41.7%, color-mix(in srgb, var(--bg-inverse) 50.0%, transparent) 50.0%, color-mix(in srgb, var(--bg-inverse) 62.4%, transparent) 58.3%, color-mix(in srgb, var(--bg-inverse) 74.1%, transparent) 66.7%, color-mix(in srgb, var(--bg-inverse) 84.4%, transparent) 75.0%, color-mix(in srgb, var(--bg-inverse) 92.6%, transparent) 83.3%, color-mix(in srgb, var(--bg-inverse) 98.0%, transparent) 91.7%, color-mix(in srgb, var(--bg-inverse) 100.0%, transparent) 100.0%);
}
.closing { padding-top: calc(var(--section) * 0.4); text-align: center; overflow: hidden; }
.closing__inner { display: grid; justify-items: center; }
.closing__mark { position: relative; width: 84px; margin-bottom: 44px; }
.closing__halo {
  position: absolute; left: 50%; top: 50%; width: 360px; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0.6); pointer-events: none;
  border-radius: 50%; background: radial-gradient(closest-side, var(--glow-1), transparent); opacity: 0.4;
  transition: transform 1600ms var(--ease-out), opacity 1600ms var(--ease-out);
}
.closing__mark.is-lit .closing__halo, .no-js .closing__halo { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.closing__symbol { position: relative; }
[data-motion='full'].js .closing__mark:not(.is-lit) .closing__symbol { opacity: 0.35; transform: scale(0.92); }
.closing__symbol { transition: opacity 1000ms var(--ease), transform 1200ms var(--ease-soft); }
.closing .chapter__title { font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.5rem); }
.closing__lead { margin-top: 22px; color: var(--text-2); font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); max-width: 30em; }
.email-link {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 40px;
  font-size: clamp(1.5rem, 0.9rem + 2.8vw, 3.25rem); font-weight: 600; letter-spacing: -0.035em;
  text-decoration: none; overflow-wrap: anywhere;
}
.email-link span { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; padding-bottom: 6px; transition: background-size var(--t-control) var(--ease); }
.email-link .icon { width: 0.7em; height: 0.7em; flex: none; transition: transform var(--t-control) var(--ease); }
.email-link:hover span { background-size: 100% 4px; }
[data-motion='full'] .email-link:hover .icon { transform: translateX(6px); }
.closing__more { margin-top: 24px; }

/* ——— Footer ——— */
.site-footer { padding-block: 64px max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; gap: 36px; }
.site-footer__tag { margin-top: 16px; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.site-footer__desc { margin-top: 8px; color: var(--text-3); }
.site-footer__nav ul { display: grid; gap: 2px; }
.site-footer__nav a, .site-footer__email { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.site-footer__nav a:hover, .site-footer__email:hover { color: var(--text); }
.site-footer__label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.site-footer__email { color: var(--text); font-weight: 600; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--text-3); }
.motion-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; color: var(--text-2); font-size: 0.875rem; }
.motion-toggle[hidden] { display: none; }
.motion-toggle__track { position: relative; width: 36px; height: 20px; border-radius: 20px; background: var(--line-strong); transition: background-color var(--t-hover); }
.motion-toggle__track span { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); transition: transform var(--t-control) var(--ease); }
.motion-toggle[aria-pressed='true'] .motion-toggle__track { background: var(--accent); }
.motion-toggle[aria-pressed='true'] .motion-toggle__track span { transform: translateX(16px); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ——— Inner pages ——— */
.page-hero { padding-block: clamp(48px, 8vw, 112px) clamp(48px, 7vw, 96px); position: relative; }
.page-hero__grid { display: grid; gap: 48px; align-items: center; }
.page-hero__visual { width: min(100%, 360px); margin-inline: auto; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 7fr 5fr; } .page-hero__visual { width: min(100%, 440px); } }
.intent { padding-top: 0; }
.intent__grid { display: grid; gap: 18px; }
.intent__item { padding: clamp(28px, 4vw, 48px); }
.intent__label { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent); }
.intent__text { margin-top: 16px; font-size: clamp(1.25rem, 1.05rem + 0.75vw, 1.75rem); line-height: 1.22; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
@media (min-width: 900px) { .intent__grid { grid-template-columns: 1fr 1fr; } }

/* ——— Contact, legal and 404 ——— */
.contact__grid { display: grid; gap: 48px; align-items: start; }
.contact-card { margin-top: 44px; padding: clamp(24px, 4vw, 40px); }
.contact-card .email-link { margin-top: 0; font-size: clamp(1.375rem, 0.9rem + 2.2vw, 2.5rem); }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-card__actions [hidden] { display: none; }
.copy-status { min-height: 1.6em; margin-top: 12px; color: var(--ok); font-size: 0.9375rem; }
.copy-status.is-error { color: var(--bad); }
/* Spam trap: off screen and out of the tab order; people never see or fill it. */
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { padding: 32px; }
.contact-aside .app-icon { width: 56px; height: 56px; }
.contact-aside__title { margin-top: 20px; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.contact-aside p { margin-top: 8px; color: var(--text-2); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 7fr 4fr; gap: 64px; } .contact-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.legal { padding-top: 0; }
.legal__list { display: grid; gap: 14px; max-width: 52rem; }
.legal__item { padding: 28px 30px; }
.legal__item h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.legal__item p { margin-top: 10px; color: var(--text-2); max-width: 40em; }
.legal__item a { text-decoration-color: var(--underline); text-underline-offset: 4px; }
.nf { display: grid; justify-items: start; padding-block: clamp(24px, 6vw, 80px); }
.nf__mark { width: 72px; margin-bottom: 32px; }


/* ——— Infographics and components (10 October 2026) ——— */

/* The vision band: a short motto that lights, then one line. */
.manifesto__text--motto { font-size: clamp(2.75rem, 1.2rem + 6vw, 6.5rem); line-height: 1; letter-spacing: -0.045em; }
.manifesto__body { margin-top: 32px; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.55; color: var(--text-2); max-width: 34em; }

/* Shared panel recipe for the components below. */
.insight, .industry, .tile, .flow__col, .twoways__side, .faq .qa {
  border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow);
}
.reveal-ready[data-motion='full'] :is(.tiles, .industries, .insights) > :nth-child(2) { transition-delay: 90ms; }
.reveal-ready[data-motion='full'] :is(.tiles, .industries, .insights) > :nth-child(3) { transition-delay: 180ms; }
.reveal-ready[data-motion='full'] :is(.tiles, .industries, .insights) > :nth-child(4) { transition-delay: 270ms; }
.reveal-ready[data-motion='full'] :is(.tiles, .industries, .insights) > :nth-child(5) { transition-delay: 360ms; }
.reveal-ready[data-motion='full'] :is(.tiles, .industries, .insights) > :nth-child(6) { transition-delay: 450ms; }

/* 01 The challenge: four problems, drawn so the problem is what you see first.
   --bad marks what goes wrong (pilots that stall, the gap, work left undone, missing links). */
.insights { display: grid; gap: 18px; margin-top: 56px; }
@media (min-width: 900px) { .insights { grid-template-columns: 1fr 1fr; } }
.insight { position: relative; isolation: isolate; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: clamp(22px, 2.8vw, 34px); }
.insight__title { font-family: var(--heading); font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.insight__viz { position: relative; margin: 10px 0 6px; }
.insight__text { color: var(--text-2); font-size: 1rem; max-width: 30em; }
.insight__stat { font-family: var(--heading); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--bad); }
.insight__source { margin-top: 4px; font-size: 0.75rem; color: var(--text-3); }

/* Pilots: 100 squares, 95 stall. */
.waffle { display: grid; grid-template-columns: repeat(20, 1fr); gap: clamp(3px, 0.5vw, 5px); max-width: 460px; }
.waffle__cell { aspect-ratio: 1; border-radius: 3px; background: var(--bad-tint); box-shadow: inset 0 0 0 1px var(--bad-line); }
.waffle__cell.is-good { background: var(--accent-2); box-shadow: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 0.8125rem; font-weight: 600; }
.legend__item { display: inline-flex; align-items: center; gap: 8px; }
.legend__item::before { content: ''; width: 12px; height: 12px; border-radius: 3px; }
.legend__item--bad { color: var(--bad); }
.legend__item--bad::before { background: var(--bad-tint); box-shadow: inset 0 0 0 1px var(--bad-line); }
.legend__item--good { color: var(--text); }
.legend__item--good::before { background: var(--accent-2); }
/* With motion: every pilot starts lit, then all but five stall. */
.reveal-ready[data-motion='full'] .waffle__cell { transition: background-color 500ms var(--ease), box-shadow 500ms var(--ease); transition-delay: calc(500ms + var(--i) * 9ms); }
.reveal-ready[data-motion='full'] .insight:not(.is-in) .waffle__cell { background: var(--accent-2); box-shadow: none; }

/* The gap: one bar for all small-business owners. */
.gapbar { --track: 100%; padding-top: 4px; }
.gapbar__bracket { position: relative; width: var(--users); height: 30px; margin-bottom: 8px; border: 2px solid var(--line-strong); border-bottom: 0; border-radius: 8px 8px 0 0; }
.gapbar__bracket span { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); padding: 0 10px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; color: var(--text); background: var(--panel-solid); }
.gapbar__bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; background: var(--line); }
.seg { display: block; height: 100%; transform-origin: 0 50%; }
.seg--built { width: var(--built); background: var(--accent-2); }
.seg--gap { width: var(--gap); background: repeating-linear-gradient(-45deg, var(--bad-tint) 0 7px, var(--bad-line) 7px 9px); box-shadow: inset 0 0 0 2px var(--bad); }
.seg--none { width: var(--none); background: transparent; }
.seg--gap { position: relative; display: grid; place-items: center; }
.seg__tag { padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; color: var(--bad); background: var(--panel-solid); }
.legend__item--gap { color: var(--bad); }
.legend__item--gap::before { background: repeating-linear-gradient(-45deg, var(--bad-tint) 0 3px, var(--bad-line) 3px 4px); box-shadow: inset 0 0 0 1.5px var(--bad); }
.legend__item--none { color: var(--text-3); }
.legend__item--work { color: var(--bad); }
.legend__item--work::before, .legend__item--team::before { width: 18px; height: 3px; border-radius: 2px; }
.legend__item--work::before { background: var(--bad); }
.legend__item--team { color: var(--text); }
.legend__item--team::before { background: var(--accent-2); }
.legend__item--none::before { background: var(--line); }
.reveal-ready[data-motion='full'] .gapbar .seg { transition: transform 900ms var(--ease-out); }
.reveal-ready[data-motion='full'] .gapbar .seg--gap { transition-delay: 600ms; }
.reveal-ready[data-motion='full'] .insight:not(.is-in) .gapbar .seg { transform: scaleX(0); }
.reveal-ready[data-motion='full'] .seg__tag { transition: opacity 600ms 1400ms var(--ease); }
.reveal-ready[data-motion='full'] .insight:not(.is-in) .seg__tag { opacity: 0; }

/* Work that does not scale, and decisions in the dark: each drawn today and with PaiQube. */
.insight--wide { grid-column: 1 / -1; }
.insight__panels { display: grid; gap: 14px; align-items: stretch; margin: 12px 0 6px; }
@media (min-width: 900px) { .insight__panels { grid-template-columns: 1fr 44px 1fr; gap: 12px; } }
.panel-viz { display: grid; align-content: start; gap: 10px; padding: clamp(16px, 2vw, 22px); border-radius: 18px; border: 1px solid var(--line); background: var(--bg); }
.panel-viz--after { border-color: var(--good-line); background: var(--good-tint); }
.panel-viz__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.panel-viz__tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.panel-viz--today .panel-viz__tag { color: var(--bad); }
.panel-viz--today .panel-viz__tag::before { background: var(--bad); }
.panel-viz--after .panel-viz__tag { color: var(--accent-2); }
.panel-viz--after .panel-viz__tag::before { background: var(--accent-2); }
.panel-viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.panels__arrow { align-self: center; justify-self: center; width: 44px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
@media (min-width: 900px) { .panels__arrow { transform: none; } }

.chart__axis { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.chart__line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart__line--work { stroke: var(--bad); }
.chart__line--work.is-met { stroke: var(--text-2); stroke-width: 2.5; }
.chart__line--team { stroke: var(--accent-2); stroke-width: 3; }
.chart__line--cost-bad { stroke: var(--bad); }
.chart__line--cost-ai { stroke: var(--accent-2); }
.chart__line--ghost { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 5 5; }
.chart__gap { fill: url(#hatch-bad); }
.chart__ai { fill: url(#ai-fill); opacity: 0.85; }
.chart__saved { fill: var(--good-fill); }
.hatch__bg { fill: var(--bad-tint); }
.hatch__line { stroke: var(--bad-line); stroke-width: 2.5; }
.chart__label { font-family: var(--font); font-size: 13px; font-weight: 600; fill: var(--text); }
.chart__label--bad { fill: var(--bad); }
.chart__label--good { fill: var(--accent-2); }
.chart__note { font-family: var(--mono); font-size: 11px; fill: var(--text-3); }
.silo__box { fill: var(--panel-solid); stroke: var(--line-strong); stroke-width: 1.2; }
.silo__name { font-family: var(--font); font-size: 12px; font-weight: 600; fill: var(--text-2); }
.silo__dot { fill: var(--text-3); }
.silo__line { stroke: var(--line-strong); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.silo__break { fill: none; stroke: var(--bad); stroke-width: 2.4; stroke-linecap: round; }
.silos__node { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 5 5; }
.silos__q { font-family: var(--heading); font-size: 30px; font-weight: 700; fill: var(--bad); }
.link__line { stroke: var(--accent-2); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.signal__pill { fill: var(--panel-solid); stroke: var(--accent-2); stroke-width: 1.6; }
.signal__text { font-family: var(--font); font-size: 12.5px; font-weight: 700; fill: var(--text); }
.cause__arrow, .decide__arrow { stroke: var(--accent-2); stroke-width: 2; }
#cause-head path { fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chain__brace { fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; }
.decide__node { fill: var(--accent-2); }
.decide__check { fill: none; stroke: var(--btn-fg); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

/* Legends for the drawings. */
.legend__item--ai::before { background: linear-gradient(135deg, var(--thread-a), var(--thread-b)); }
.legend__item--ai, .legend__item--cost-ai { color: var(--text); }
.legend__item--cost-bad { color: var(--bad); }
.legend__item--cost-bad::before, .legend__item--cost-ai::before { width: 18px; height: 3px; border-radius: 2px; }
.legend__item--cost-bad::before { background: var(--bad); }
.legend__item--cost-ai::before { background: var(--accent-2); }
.legend__item--saved { color: var(--accent-2); }
.legend__item--saved::before { background: var(--good-fill); box-shadow: inset 0 0 0 1px var(--good-line); }

/* Motion: today draws first, then the answer arrives. */
.reveal-ready[data-motion='full'] .insight :is(.chart__line, .silo__line, .link__line) { transition: stroke-dashoffset 1400ms var(--ease-out); transition-delay: calc(300ms + var(--d, 0) * 120ms); }
.reveal-ready[data-motion='full'] .insight .panel-viz--after :is(.chart__line, .link__line) { transition-delay: calc(1300ms + var(--d, 0) * 120ms); }
.reveal-ready[data-motion='full'] .insight:not(.is-in) :is(.chart__line, .silo__line, .link__line) { stroke-dashoffset: 1; }
.reveal-ready[data-motion='full'] .insight :is(.chart__gap, .silo__break, .silos__q) { transition: opacity 700ms var(--ease); transition-delay: 1000ms; }
.reveal-ready[data-motion='full'] .insight :is(.chart__ai, .chart__saved, .signal__pill, .signal__text, .cause__arrow, .chain__brace, .decide__arrow, .decide__node, .decide__check, .chart__label--good) { transition: opacity 800ms var(--ease); transition-delay: 1700ms; }
.reveal-ready[data-motion='full'] .insight:not(.is-in) :is(.chart__gap, .silo__break, .silos__q, .chart__ai, .chart__saved, .signal__pill, .signal__text, .cause__arrow, .chain__brace, .decide__arrow, .decide__node, .decide__check, .chart__label--good) { opacity: 0; }
.reveal-ready[data-motion='full'] .insight:not(.is-in) .chart__ai { opacity: 0; }
.reveal-ready[data-motion='full'] .insight .panel-viz--after { transition: border-color 800ms 1300ms var(--ease), background-color 800ms 1300ms var(--ease); }
.reveal-ready[data-motion='full'] .insight:not(.is-in) .panel-viz--after { border-color: var(--line); background: var(--bg); }

/* Phones draw the panels smaller, so their labels are set larger to stay readable. */
@media (max-width: 599.98px) {
  .insight svg .chart__label { font-size: 19px; }
  .insight svg .chart__note { font-size: 17px; }
  .insight svg .silo__name { font-size: 17px; }
  .insight svg .signal__text { font-size: 18px; }
  .insight svg .silo__dot { display: none; }
}

/* 02 What we do: the five capabilities around one shared engine. */
.engine { position: relative; width: min(100%, 660px); aspect-ratio: 1; margin: 48px auto 0; }
.engine__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.engine__ring { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 2 8; opacity: 0.7; }
.engine__ring--inner { stroke-dasharray: none; stroke: var(--line); opacity: 1; }
.engine__spoke { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.engine__core {
  position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 1;
  display: grid; place-content: center; justify-items: center; gap: 10px; border-radius: 50%; text-align: center;
  background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow), 0 0 0 12px var(--tint);
}
.engine__symbol { width: clamp(34px, 7vw, 54px); }
.engine__label { font-family: var(--heading); font-size: clamp(0.8125rem, 0.75rem + 0.35vw, 1.0625rem); font-weight: 600; line-height: 1.2; max-width: 8.5em; }
.engine__node { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: 30%; transform: translate(-50%, -28px); text-align: center; }
/* Upper nodes read upward (name, line, then the icon on the ring), so every label sits outside it. */
@media (min-width: 720px) {
  .engine__node--up { transform: translate(-50%, calc(-100% + 28px)); }
  .engine__node--up .engine__link { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .engine__node--up .engine__name { order: 1; margin-top: 0; }
  .engine__node--up .engine__short { order: 2; }
  .engine__node--up .engine__icon { order: 3; margin-top: 10px; }
}
.engine__link { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--text); border-radius: 16px; }
.engine__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--accent-2);
  background: var(--bg-raised); border: 1.5px solid var(--node-lit); box-shadow: 0 0 0 8px var(--bg);
  transition: background-color var(--t-hover), color var(--t-hover), transform var(--t-control) var(--ease);
}
.engine__icon .icon { width: 24px; height: 24px; }
.engine__link:hover .engine__icon { background: var(--btn-bg); color: var(--btn-fg); }
[data-motion='full'] .engine__link:hover .engine__icon { transform: scale(1.06); }
.engine__name { margin-top: 6px; font-family: var(--heading); font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.engine__short { font-size: 0.8125rem; line-height: 1.35; color: var(--text-2); max-width: 15em; }
.reveal-ready[data-motion='full'] .engine .engine__spoke { transition: stroke-dashoffset 900ms var(--ease-out); }
.reveal-ready[data-motion='full'] .engine:not(.is-in) .engine__spoke { stroke-dashoffset: 1; }
.reveal-ready[data-motion='full'] .engine .engine__node { transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-soft); transition-delay: calc(350ms + var(--d) * 110ms); }
.reveal-ready[data-motion='full'] .engine:not(.is-in) .engine__node { opacity: 0; }
.reveal-ready[data-motion='full'] .engine .engine__core { transition: transform 900ms var(--ease-soft), opacity 600ms var(--ease); }
.reveal-ready[data-motion='full'] .engine:not(.is-in) .engine__core { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
.what__more { margin-top: 36px; text-align: center; }
/* Mini: icons only, for the Services hero. */
.engine--mini { margin: 0 auto; width: min(100%, 420px); }
.engine--mini .engine__node { width: auto; transform: translate(-50%, -50%); }
.reveal-ready[data-motion='full'] .engine--mini:not(.is-in) .engine__node { transform: translate(-50%, -50%) scale(0.8); }
.engine--mini .engine__icon { width: 64px; height: 64px; }
.engine--mini .engine__icon .icon { width: 28px; height: 28px; }
/* Phones: the same engine, read as a list. */
@media (max-width: 719.98px) {
  .engine:not(.engine--mini) { aspect-ratio: auto; width: 100%; }
  .engine:not(.engine--mini) .engine__lines { display: none; }
  .engine:not(.engine--mini) .engine__core { position: relative; left: auto; top: auto; width: 168px; margin: 0 auto 28px; transform: none; }
  .reveal-ready[data-motion='full'] .engine:not(.engine--mini):not(.is-in) .engine__core { transform: scale(0.85); }
  .engine:not(.engine--mini) .engine__nodes { display: grid; gap: 12px; }
  .engine:not(.engine--mini) .engine__node { position: relative; left: auto; top: auto; width: auto; transform: none; text-align: left; }
  .reveal-ready[data-motion='full'] .engine:not(.engine--mini):not(.is-in) .engine__node { transform: translateY(12px); }
  .engine:not(.engine--mini) .engine__link { grid-template-columns: 56px 1fr; justify-items: start; align-items: center; column-gap: 16px; row-gap: 2px; padding: 16px; border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--panel-line); }
  .engine:not(.engine--mini) .engine__icon { grid-row: span 2; box-shadow: none; }
  .engine:not(.engine--mini) .engine__name { margin-top: 0; }
}

/* 03 How we deliver, ways to work, roadmap: numbered steps on a line that draws in. */
.steps { position: relative; isolation: isolate; display: grid; gap: 28px; margin-top: 56px; padding-left: 52px; }
/* The line sits behind the numbered nodes (z-index -1 inside the isolated list), so it never crosses a number. */
.steps::before, .steps::after { content: ''; position: absolute; z-index: -1; left: 17px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--line); }
.steps::after { background: linear-gradient(var(--thread-a), var(--thread-b)); transform-origin: 50% 0; }
.reveal-ready[data-motion='full'] .steps::after { transition: transform 1800ms 200ms var(--ease-out); }
.reveal-ready[data-motion='full'] .steps:not(.is-in)::after { transform: scaleY(0); }
.steps__item { position: relative; }
.steps__node {
  position: absolute; left: -52px; top: -2px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-family: var(--mono); font-size: 0.75rem; color: var(--btn-fg); background: var(--btn-bg); box-shadow: 0 0 0 6px var(--bg);
}
.steps__name { font-family: var(--heading); font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.steps__term { justify-self: start; display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); background: var(--tint); border: 1px solid var(--line); }
.steps__item p:last-child { margin-top: 8px; color: var(--text-2); }
.reveal-ready[data-motion='full'] .steps .steps__item { transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.reveal-ready[data-motion='full'] .steps:not(.is-in) .steps__item { opacity: 0; transform: translateY(16px); }
.steps.is-in .steps__item:nth-child(2) { transition-delay: 150ms; }
.steps.is-in .steps__item:nth-child(3) { transition-delay: 300ms; }
.steps.is-in .steps__item:nth-child(4) { transition-delay: 450ms; }
.steps.is-in .steps__item:nth-child(5) { transition-delay: 600ms; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 28px; padding-left: 0; padding-top: 64px; }
  .steps--three { grid-template-columns: repeat(3, 1fr); }
  .steps::before, .steps::after { left: 18px; right: calc((100% - 112px) / 5 - 18px); top: 17px; bottom: auto; width: auto; height: 2px; }
  .steps--three::before, .steps--three::after { right: calc((100% - 56px) / 3 - 18px); }
  .steps::after { transform-origin: 0 50%; }
  .reveal-ready[data-motion='full'] .steps:not(.is-in)::after { transform: scaleX(0); }
  .steps__node { left: 0; top: -64px; }
}

/* 04 Industries: six cards, each a way into that industry's page. */
.industries { display: grid; gap: 14px; margin-top: 56px; }
.industries > li { display: grid; }
.industry { position: relative; isolation: isolate; display: grid; align-content: start; gap: 6px; padding: clamp(22px, 2.6vw, 30px); color: var(--text); text-decoration: none; transition: border-color var(--t-hover), transform var(--t-control) var(--ease), box-shadow var(--t-control); }
.industry:hover { border-color: var(--line-strong); }
[data-motion='full'] .industry:hover { transform: translateY(-3px); }
.industry__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px; background: var(--tint); color: var(--accent-2); }
.industry__icon .icon { width: 24px; height: 24px; }
.industry__name { font-family: var(--heading); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.industry__text { color: var(--text-2); font-size: 0.9375rem; }
.industry__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.industry__go .icon { width: 16px; height: 16px; transition: transform var(--t-control) var(--ease); }
.industry:hover .industry__go { color: var(--text); }
[data-motion='full'] .industry:hover .industry__go .icon { transform: translateX(3px); }
@media (min-width: 560px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .industries { grid-template-columns: repeat(3, 1fr); } }
.industries--compact .industry__go { display: none; }

/* 05 Products: Spriwa's stage with its features as chips, then what comes next. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip-i { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--text); background: rgba(190, 240, 215, 0.08); border: 1px solid var(--line); }
.chip-i .icon { width: 16px; height: 16px; color: var(--sp-mint); }
.more-card { display: flex; gap: 20px; align-items: flex-start; margin-top: 18px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-card); border: 1.5px dashed var(--line-strong); }
.more-card__mark { flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; border: 1.5px dashed var(--line-strong); }
.more-card__title { font-family: var(--heading); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.more-card p { margin-top: 4px; color: var(--text-2); }
.product-card__visual--fan { align-items: flex-start; }
.phone--fan { --w: min(210px, 40vw); position: absolute; top: 12%; opacity: 0.94; }
.phone--fan-l { left: 50%; transform: translateX(-118%) rotate(-7deg); }
.phone--fan-r { left: 50%; transform: translateX(18%) rotate(7deg); }
.product-card__visual--fan .phone--product { position: relative; z-index: 1; }
@media (max-width: 639.98px) { .phone--fan { display: none; } }

/* 06 What to expect, objectives, values: icon tiles. */
.tiles { display: grid; gap: 14px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 1080px) { .tiles--5 { grid-template-columns: repeat(5, 1fr); } }
.tile { position: relative; isolation: isolate; display: grid; align-content: start; gap: 6px; padding: 26px 22px 28px; }
.tile__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 16px; background: var(--btn-bg); color: var(--btn-fg); }
.tile__icon .icon { width: 24px; height: 24px; }
.tile__title { font-family: var(--heading); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.tile__text { color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }
.tiles--quiet .tile { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--line-strong); }
.tiles--quiet .tile__icon { background: var(--tint); color: var(--accent-2); }

/* Services: what we deliver flows into what changes. */
.svc-detail__grid { display: grid; gap: 36px; }
.chapter--wide { max-width: 52rem; }
.svc-detail .chapter__title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); }

.flow { display: grid; gap: 14px; align-items: center; justify-items: stretch; }
.flow__col { position: relative; isolation: isolate; padding: clamp(20px, 2.6vw, 28px); }
.flow__col--out { background: var(--tint); box-shadow: none; }
.flow__label { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.flow__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-fg); }
.flow__icon .icon { width: 18px; height: 18px; }
.flow__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.flow__chips li { padding: 7px 12px; border-radius: 999px; font-size: 0.875rem; line-height: 1.3; background: var(--bg); border: 1px solid var(--line); }
.flow__arrow { justify-self: center; width: 48px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
.outcomes { display: grid; gap: 12px; margin-top: 16px; }
.outcome { display: flex; gap: 12px; align-items: center; font-weight: 600; line-height: 1.3; }
.outcome__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); }
.outcome__icon .icon { width: 18px; height: 18px; }
@media (min-width: 720px) { .flow { grid-template-columns: 1fr 48px 1fr; } .flow__arrow { transform: none; } }
.reveal-ready[data-motion='full'] .flow .outcome { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal-ready[data-motion='full'] .flow:not(.is-in) .outcome { opacity: 0; transform: translateX(-10px); }
.flow.is-in .outcome:nth-child(1) { transition-delay: 400ms; }
.flow.is-in .outcome:nth-child(2) { transition-delay: 550ms; }
.flow.is-in .outcome:nth-child(3) { transition-delay: 700ms; }

.faq__grid { display: grid; gap: 40px; }
.faq__list { display: grid; gap: 12px; }
.qa { padding: 0 24px; }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0;
  cursor: pointer; list-style: none; font-family: var(--heading); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform var(--t-control) var(--ease), background-color var(--t-hover); }
.qa__icon::before, .qa__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -0.8px 0 0 -5.5px; background: currentColor; border-radius: 2px; }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--tint); }
.qa p { padding-bottom: 20px; color: var(--text-2); max-width: 40em; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }

/* Products: how we build, as a loop. */
.how__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .how__grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.cycle { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; }
.cycle__orbit { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 2 8; }
.cycle__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle__arc { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
#cycle-head path { fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cycle__core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; transform: translate(-50%, -50%); color: var(--accent-2); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow), 0 0 0 10px var(--tint); }
.cycle__core .icon { width: 34px; height: 34px; }
.cycle__node { position: absolute; left: var(--x); top: var(--y); width: 34%; display: flex; flex-direction: column; gap: 4px; }
/* Labels sit outside the loop: above the top stage, below and outward for the other two. */
.cycle__node--0 { transform: translate(-50%, calc(-100% + 20px)); flex-direction: column-reverse; align-items: center; text-align: center; }
.cycle__node--0 .cycle__title { margin-top: 0; }
.cycle__node--0 p { order: 1; }
.cycle__node--0 .cycle__title { order: 2; }
.cycle__node--1 { transform: translate(-20px, -20px); align-items: flex-start; text-align: left; }
.cycle__node--2 { transform: translate(calc(-100% + 20px), -20px); align-items: flex-end; text-align: right; }
.cycle__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-family: var(--mono); font-size: 0.8125rem; color: var(--btn-fg); background: var(--btn-bg); box-shadow: 0 0 0 8px var(--bg); }
.cycle__title { margin-top: 6px; font-family: var(--heading); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.cycle__node p { font-size: 0.875rem; color: var(--text-2); }
.reveal-ready[data-motion='full'] .cycle .cycle__arc { transition: stroke-dashoffset 1100ms var(--ease-out); }
.reveal-ready[data-motion='full'] .cycle .cycle__arc:nth-of-type(2) { transition-delay: 350ms; }
.reveal-ready[data-motion='full'] .cycle .cycle__arc:nth-of-type(3) { transition-delay: 700ms; }
.reveal-ready[data-motion='full'] .cycle:not(.is-in) .cycle__arc { stroke-dashoffset: 1; }
.reveal-ready[data-motion='full'] .cycle .cycle__core .icon { transition: transform 1600ms var(--ease-out); }
.reveal-ready[data-motion='full'] .cycle:not(.is-in) .cycle__core .icon { transform: rotate(-180deg); }

@media (max-width: 599.98px) {
  .cycle { aspect-ratio: auto; width: 100%; }
  .cycle__ring, .cycle__core { display: none; }
  .cycle__nodes { display: grid; gap: 14px; }
  .cycle__node, .cycle__node--0, .cycle__node--1, .cycle__node--2 { position: relative; left: auto; top: auto; width: auto; transform: none; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; text-align: left; }
  .cycle__node .cycle__num { grid-row: span 2; }
  .cycle__node--0 .cycle__title, .cycle__node--0 p { order: 0; }
}

/* About: two ways from one engine, and the name annotated. */
.twoways { display: grid; gap: 20px; margin-top: 48px; align-items: center; }
.twoways__side { position: relative; isolation: isolate; padding: clamp(22px, 2.6vw, 30px); }
.twoways__label { font-family: var(--heading); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.twoways__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.twoways__list li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; background: var(--tint); border: 1px solid var(--line); }
.twoways__app { width: 22px; height: 22px; border-radius: 6px; box-shadow: none; }
.twoways__core { position: relative; display: grid; justify-items: center; gap: 10px; padding: 8px 12px; text-align: center; font-family: var(--heading); font-weight: 600; font-size: 0.9375rem; }
.twoways__symbol { width: 60px; }
@media (min-width: 860px) {
  .twoways { grid-template-columns: 1fr auto 1fr; gap: 28px; }
  .twoways__core::before, .twoways__core::after { content: ''; position: absolute; top: 38px; width: 28px; height: 2px; background: linear-gradient(90deg, var(--thread-a), var(--thread-b)); }
  .twoways__core::before { right: 100%; }
  .twoways__core::after { left: 100%; }
}
.intent__label { display: flex; align-items: center; gap: 8px; }
.intent__label .icon { width: 18px; height: 18px; }

.page-hero .actions { margin-top: 32px; }
.page-hero__grid--solo { grid-template-columns: 1fr; }

/* Closing: one button, the address beneath it. */
.closing__actions { justify-content: center; margin-top: 32px; }

/* Contact form: labels above fields, one panel, consent written out. */
.contact-form { display: grid; gap: 18px; margin-top: 44px; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow); }
.contact-form__grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .contact-form__grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field__opt, .field__req { font-weight: 400; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-control); font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); transition: border-color var(--t-hover), box-shadow var(--t-hover);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--tint); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--text-2); }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-2); }
.contact-form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.contact-form__note { font-size: 0.8125rem; color: var(--text-3); }
.next-steps { position: relative; display: grid; gap: 20px; margin-top: 22px; }
.next-steps::before { content: ''; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: linear-gradient(var(--thread-a), var(--thread-b)); }
.next-steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.next-steps__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-family: var(--mono); font-size: 0.8125rem; color: var(--btn-fg); background: var(--btn-bg); box-shadow: 0 0 0 5px var(--panel-line); }
.next-steps__badge { display: inline-block; margin-top: 3px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; background: var(--tint); border: 1px solid var(--line); }
.next-steps p + p { margin-top: 6px; color: var(--text-2); }
.contact-aside__title { margin-top: 0; }
.site-footer__contact { display: grid; gap: 2px; align-content: start; }
.site-footer__contact .site-footer__label + a + .site-footer__label { margin-top: 14px; }

/* ——— 11 October 2026: services in depth, industry pages, the Spriwa page, the story, the name ——— */

/* Live drawings: `.is-live` is set by site.js while a drawing is on screen (and, in the explorer,
   selected) with motion on. Without it every drawing shows its complete, still state. */

/* What we do: an explorer of the five capabilities, each drawn at work on one shared engine. */
.explorer { display: grid; gap: 22px; margin-top: 56px; }
.explorer > * { min-width: 0; }
@media (min-width: 960px) { .explorer { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; } }
.explorer__engine { display: flex; align-items: center; gap: 14px; margin: 0 0 12px 22px; font-family: var(--heading); font-size: 0.9375rem; font-weight: 600; color: var(--text-2); }
.explorer__symbol { width: 32px; }
.explorer__tabs { position: relative; isolation: isolate; display: grid; gap: 6px; }
.explorer__tabs::before { content: ''; position: absolute; z-index: -1; left: 37px; top: -10px; bottom: 34px; width: 2px; background: linear-gradient(var(--thread-a), var(--thread-b)); opacity: 0.35; }
.explorer:not(.is-tabs) .explorer__tabs, .explorer:not(.is-tabs) .explorer__engine { display: none; }
.xtab {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center; width: 100%;
  padding: 13px 16px 15px 13px; border: 1px solid transparent; border-radius: 20px; background: transparent; color: var(--text);
  text-align: left; cursor: pointer; transition: background-color var(--t-hover), border-color var(--t-hover), box-shadow var(--t-hover);
}
.xtab:hover { background: var(--tint); }
.xtab[aria-selected='true'] { background: var(--panel); border-color: var(--panel-line); box-shadow: var(--panel-shadow); }
.xtab__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--accent-2);
  background: var(--bg-raised); border: 1.5px solid var(--line-strong); transition: background-color var(--t-hover), color var(--t-hover), border-color var(--t-hover);
}
.xtab__icon .icon { width: 22px; height: 22px; }
.xtab[aria-selected='true'] .xtab__icon { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
.xtab__text { display: grid; gap: 2px; }
.xtab__name { font-family: var(--heading); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.xtab__short { font-size: 0.875rem; line-height: 1.4; color: var(--text-2); }
.xtab__bar { position: absolute; left: 77px; right: 20px; bottom: 7px; height: 2px; border-radius: 2px; overflow: hidden; }
.xtab[aria-selected='true'] .xtab__bar { background: var(--line); }
.xtab__bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--thread-a), var(--thread-b)); transform-origin: 0 50%; transform: scaleX(0); }
.explorer.is-playing .xtab[aria-selected='true'] .xtab__bar::after { animation: xbar 7s linear forwards; }
.explorer.is-paused .xtab__bar::after { animation-play-state: paused !important; }
@keyframes xbar { to { transform: scaleX(1); } }
.xpanel { display: grid; gap: 18px; padding: clamp(18px, 2.6vw, 32px); border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow); }
.xpanel[hidden] { display: none; }
.explorer:not(.is-tabs) .xpanel + .xpanel { margin-top: 18px; }
.xpanel__name { font-family: var(--heading); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.explorer.is-tabs .xpanel__name { display: none; }
.xpanel__caption { color: var(--text-2); max-width: 36em; }
.xpanel__more { margin-top: -6px; }
[data-motion='full'] .xpanel.is-entering { animation: xpanel-in 600ms var(--ease-out); }
@keyframes xpanel-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 959.98px) {
  .explorer__engine { margin-left: 0; }
  .explorer__tabs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; }
  .explorer__tabs::-webkit-scrollbar { display: none; }
  .explorer__tabs::before { display: none; }
  .xtab { flex: none; width: auto; grid-template-columns: 36px auto; gap: 10px; padding: 7px 16px 9px 7px; border-color: var(--line); border-radius: 999px; scroll-snap-align: start; }
  .xtab__icon { width: 36px; height: 36px; }
  .xtab__icon .icon { width: 18px; height: 18px; }
  .xtab__short { display: none; }
  .xtab__name { font-size: 0.9375rem; white-space: nowrap; }
  .xtab__bar { left: 18px; right: 18px; bottom: 3px; }
}

/* The service scenes. */
.scene { position: relative; }
.scene__svg { display: block; width: 100%; height: auto; overflow: visible; }
.scene__core { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.scene__symbol { width: 100%; }
.scene__core--app .scene__symbol { width: 100%; }
.sc-card { fill: var(--panel-solid); stroke: var(--line-strong); stroke-width: 1.2; }
.sc-card--gate { stroke: var(--accent-2); }
.sc-card--panel { fill: var(--bg); stroke: var(--line); }
.sc-pill { fill: var(--panel-solid); stroke: var(--line-strong); stroke-width: 1.2; }
.sc-t { font-family: var(--font); font-size: 13.5px; font-weight: 600; fill: var(--text); }
.sc-t--pill { font-size: 12.5px; }
.sc-t--good { fill: var(--accent-2); font-weight: 700; }
.sc-n { font-family: var(--mono); font-size: 11.5px; fill: var(--text-3); }
.sc-n--bad { fill: var(--bad); font-weight: 600; }
.sc-n--good, .sc-n--gate { fill: var(--accent-2); font-weight: 600; }
.sc-n--on { fill: var(--btn-fg); font-weight: 700; }
.sc-icon { color: var(--accent-2); }
.sc-icon--on { color: var(--btn-fg); }
.sc-icon--gate { color: var(--accent-2); }
.sc-node { fill: var(--panel-solid); stroke: var(--line-strong); stroke-width: 1.2; }
.sc-path { fill: none; stroke: var(--line-strong); stroke-width: 1.6; stroke-dasharray: 3 6; }
.sc-path--solid { stroke-dasharray: none; }
.sc-core { fill: var(--panel-solid); stroke: var(--accent-2); stroke-width: 2; }
.sc-halo { fill: var(--tint); transform-box: fill-box; transform-origin: center; }
.sc-packet { fill: var(--accent-2); }
.sc-packet--msg { fill: var(--panel-solid); stroke: var(--accent-2); stroke-width: 1.6; }
.sc-ok { fill: var(--accent-2); }
.sc-ok__check { fill: none; stroke: var(--btn-fg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sc-tick { transform-box: fill-box; transform-origin: center; }
.sc-axis { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.sc-line { fill: none; stroke: var(--accent-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sc-line--next { stroke-dasharray: 6 6; stroke-width: 2.5; }
.sc-band { fill: var(--good-fill); }
.sc-dip { fill: var(--bad); transform-box: fill-box; transform-origin: center; }
.sc-leader { fill: none; stroke: var(--bad); stroke-width: 1.2; stroke-dasharray: 2 3; }
.sp-frame { fill: var(--panel-solid); stroke: var(--line-strong); stroke-width: 1.5; }
.sp-screen { fill: var(--bg); }
.sp-appicon { fill: var(--panel-solid); stroke: var(--line); }
.sp-wire { fill: var(--line); }
.sp-wire--box { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 3 3; }
.sp-fill { fill: var(--d3-fill); stroke: var(--accent-2); stroke-width: 1.2; }
.sp-bubble { fill: var(--accent-2); }
.sp-wave { fill: var(--btn-fg); transform-box: fill-box; transform-origin: center; }
.sp-dot { fill: var(--accent-2); }
.sp-tag--live .sp-dot { fill: var(--ok); }
.sp-track { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.sp-progress { fill: none; stroke: var(--accent-2); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sp-stop { fill: var(--panel-solid); stroke: var(--accent-2); stroke-width: 2; }
.sp-marker { fill: var(--accent-2); stroke: var(--panel-solid); stroke-width: 3; opacity: 0; }
.st-quad { fill: var(--good-fill); stroke: var(--good-line); stroke-width: 1.2; }
.st-mid { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 4 5; }
.st-dot { fill: var(--panel-solid); stroke: var(--line-strong); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; }
.st-dot--good { fill: var(--accent-2); stroke: none; }
.st-route { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-dasharray: 5 5; }
.st-arrow { stroke: var(--accent-2); stroke-width: 2; }
#st-head path { fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 599.98px) {
  .scene .sc-t { font-size: 16px; }
  .scene .sc-t--pill { font-size: 15px; }
  .scene .sc-n { font-size: 14px; }
}
/* Scenes at work. */
.is-live :is(.sc-path, .st-route) { animation: sc-flow 1.2s linear infinite; }
@keyframes sc-flow { to { stroke-dashoffset: -9; } }
.is-live .sc-halo { animation: sc-halo 2.4s var(--ease-out) infinite; }
@keyframes sc-halo { from { transform: scale(1); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.is-live .sc-tick { animation: sc-tick 5.6s var(--ease-soft) infinite; animation-delay: calc(1.6s + var(--d) * 0.6s); }
@keyframes sc-tick { 0%, 16%, 100% { transform: scale(1); } 8% { transform: scale(1.4); } }
.is-live .sc-line:not(.sc-line--next) { animation: sc-draw 6s var(--ease-out) infinite; }
@keyframes sc-draw { 0% { stroke-dashoffset: 1; } 45%, 100% { stroke-dashoffset: 0; } }
.is-live .sc-dip { animation: sc-pulse 2s ease-in-out infinite; }
@keyframes sc-pulse { 50% { transform: scale(1.5); } }
.is-live .sp-marker { animation: sp-move 10s var(--ease) infinite; }
@keyframes sp-move {
  0%, 12% { opacity: 1; transform: translateX(0); } 20%, 32% { transform: translateX(96px); } 40%, 52% { transform: translateX(192px); }
  60%, 72% { transform: translateX(288px); } 80%, 95% { opacity: 1; transform: translateX(384px); } 100% { opacity: 0; transform: translateX(384px); }
}
.is-live .sp-progress { animation: sp-progress 10s var(--ease) infinite; }
@keyframes sp-progress { 0%, 12% { stroke-dashoffset: 1; } 20%, 32% { stroke-dashoffset: 0.75; } 40%, 52% { stroke-dashoffset: 0.5; } 60%, 72% { stroke-dashoffset: 0.25; } 80%, 96% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.is-live .sp-fill { animation: sp-fill 10s var(--ease) infinite; animation-delay: calc(var(--d) * 80ms); }
@keyframes sp-fill { 0%, 36% { opacity: 0; } 44%, 96% { opacity: 1; } 100% { opacity: 0; } }
.is-live :is(.sp-ai, .sp-tag--ai) { animation: sp-ai 10s var(--ease) infinite; }
@keyframes sp-ai { 0%, 56% { opacity: 0.2; } 62%, 96% { opacity: 1; } 100% { opacity: 0.2; } }
.is-live .sp-tag--live { animation: sp-live 10s var(--ease) infinite; }
@keyframes sp-live { 0%, 66% { opacity: 0.2; } 72%, 96% { opacity: 1; } 100% { opacity: 0.2; } }
.is-live .sp-wave { animation: sp-wave 1s ease-in-out infinite; animation-delay: calc(var(--d) * 0.12s); }
@keyframes sp-wave { 50% { transform: scaleY(0.4); } }
.is-live .st-dot { animation: st-pop 6s var(--ease-soft) infinite; animation-delay: calc(var(--d) * 0.15s); }
@keyframes st-pop { 0% { transform: scale(0); } 10%, 100% { transform: scale(1); } }
.is-live .st-quad { animation: st-glow 3s ease-in-out infinite; }
@keyframes st-glow { 50% { fill: var(--d-hi); } }

/* Services: each capability drawn at work, what we deliver, examples and what changes. */
.svc-main { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 1000px) { .svc-main { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; } }
.svc-scene { display: grid; align-content: center; gap: 16px; margin: 0; padding: clamp(18px, 2.6vw, 30px); border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow); }
.svc-scene__cap { color: var(--text-2); font-size: 0.9375rem; }
.svc-deliver { padding: clamp(20px, 2.6vw, 30px); border-radius: var(--r-card); background: var(--tint); }
.deliver { display: grid; gap: 16px; margin-top: 18px; }
.deliver__item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.deliver__mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); }
.deliver__mark .icon { width: 15px; height: 15px; }
.deliver__name { display: block; font-weight: 650; line-height: 1.3; }
.deliver__text { display: block; margin-top: 2px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.45; }
.svc-foot { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 1000px) { .svc-foot { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.svc-ex__list { display: grid; gap: 8px; margin-top: 14px; }
.svc-ex__item {
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; align-items: center; padding: 12px 16px 12px 12px;
  border-radius: 16px; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--panel-line);
  transition: border-color var(--t-hover), transform var(--t-control) var(--ease);
}
.svc-ex__item:hover { border-color: var(--line-strong); }
[data-motion='full'] .svc-ex__item:hover { transform: translateX(3px); }
.svc-ex__icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--accent-2); }
.svc-ex__icon .icon { width: 20px; height: 20px; }
.svc-ex__text { font-weight: 600; line-height: 1.35; }
.svc-ex__go { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--text-3); }
.svc-ex__go .icon { width: 14px; height: 14px; }
.svc-changes .outcomes { margin-top: 14px; }
.svc-changes { padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-card); border: 1.5px dashed var(--line-strong); }

/* Industry pages. */
.crumbs { margin-bottom: 18px; font-size: 0.875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--text-3); }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs a[aria-current] { color: var(--text); font-weight: 600; }
.orbit-viz { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; }
.orbit-viz__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; overflow: visible; }
.orbit-viz__ring circle { stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 2 8; }
.orbit-viz__ring circle + circle { stroke: var(--line); stroke-dasharray: none; }
.orbit-viz__core {
  position: absolute; left: 50%; top: 50%; width: 32%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center;
  border-radius: 50%; color: var(--accent-2); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow), 0 0 0 14px var(--tint);
}
.orbit-viz__core > .icon { width: 42%; height: 42%; stroke-width: 1.1; }
.orbit-viz__engine { position: absolute; right: -4%; bottom: -4%; display: grid; place-items: center; width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--panel-solid); border: 1.5px solid var(--accent-2); transition: opacity 700ms var(--ease), transform 900ms var(--ease-soft); }
.orbit-viz__engine .symbol { width: 52%; }
.otag { position: absolute; display: grid; max-width: 50%; }
.otag--0 { left: 50%; top: 2%; transform: translateX(-50%); justify-items: center; text-align: center; max-width: 64%; }
.otag--1 { right: 0; bottom: 15%; justify-items: end; }
.otag--2 { left: 0; bottom: 3%; }
.otag__bad, .otag__good {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 18px;
  font-size: 0.8125rem; font-weight: 650; line-height: 1.25;
}
.otag .icon { flex: none; width: 15px; height: 15px; }
.otag__bad { color: var(--bad); background: var(--panel-solid); box-shadow: inset 0 0 0 1.5px var(--bad-line), var(--panel-shadow); opacity: 0; }
.otag__good { color: var(--btn-fg); background: var(--btn-bg); box-shadow: var(--btn-shadow); }
.otag--1 { --i: 1; }
.otag--2 { --i: 2; }
.reveal-ready[data-motion='full'] .orbit-viz .otag__bad { opacity: 1; }
.reveal-ready[data-motion='full'] .orbit-viz .otag__good { opacity: 0; }
.reveal-ready[data-motion='full'] .orbit-viz:not(.is-in) .orbit-viz__engine { opacity: 0; transform: scale(0.6); }
.reveal-ready[data-motion='full'] .orbit-viz.is-in .orbit-viz__engine { transition-delay: 1200ms; }
.reveal-ready[data-motion='full'] .orbit-viz.is-in .otag__bad { animation: otag-out 900ms var(--ease) both; animation-delay: calc(1700ms + var(--i, 0) * 350ms); }
.reveal-ready[data-motion='full'] .orbit-viz.is-in .otag__good { animation: otag-in 900ms var(--ease-soft) both; animation-delay: calc(1700ms + var(--i, 0) * 350ms); }
@keyframes otag-out { to { opacity: 0; transform: scale(0.92); } }
@keyframes otag-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }

.pains { display: grid; gap: 18px; margin-top: 56px; }
@media (min-width: 900px) { .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pain { position: relative; isolation: isolate; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow); }
.pain__viz { margin-bottom: 8px; padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.pain__title { font-family: var(--heading); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.pain__text { color: var(--text-2); font-size: 0.9375rem; }
.pain__fix { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; line-height: 1.35; }
.pain__mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); }
.pain__mark .icon { width: 15px; height: 15px; }
.pain__fix-label { display: block; margin-bottom: 2px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.note { margin-top: 18px; font-size: 0.75rem; color: var(--text-3); }
.cviz { display: block; width: 100%; height: auto; overflow: visible; }
.cv-dot { fill: var(--line-strong); }
.cv-dot--bad { fill: var(--bad-tint); stroke: var(--bad); stroke-width: 1.5; }
.cv-dot--good { fill: var(--accent-2); }
.cv-desk { fill: var(--panel-solid); stroke: var(--accent-2); stroke-width: 2; }
.cv-icon { color: var(--accent-2); }
.cv-x { fill: none; stroke: var(--bad); stroke-width: 2; stroke-linecap: round; }
.cv-slot { fill: var(--accent-2); opacity: 0.82; }
.cv-slot--bad { opacity: 1; }
.cv-slot--bad rect { fill: var(--bad-tint); stroke: var(--bad); stroke-width: 1.5; }
.cv-ring { fill: none; stroke: var(--line); stroke-width: 18; }
.cv-arc { fill: none; stroke-width: 18; transition: stroke-dasharray 1200ms var(--ease-out); }
.cv-arc--bad { stroke: var(--bad); }
.cv-arc--good { stroke: var(--accent-2); }
.cv-sw--bad { fill: var(--bad); }
.cv-sw--good { fill: var(--accent-2); }
.cv-t { font-family: var(--font); font-size: 15px; font-weight: 600; fill: var(--text); }
.cv-t--bad { fill: var(--bad); }
.cv-funnel { fill: none; stroke: var(--line-strong); stroke-width: 1.6; stroke-linejoin: round; }
.cv-drop { fill: var(--bad); }
.cv-doc rect { fill: var(--panel-solid); stroke: var(--line-strong); stroke-width: 1.3; }
.cv-doc path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.cv-badge { fill: var(--bad); }
.cv-badge__plus { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.cv-bar { fill: var(--line); }
.cv-over { fill: var(--bad-tint); stroke: var(--bad); stroke-width: 1.4; }
.cv-short { fill: none; stroke: var(--bad); stroke-width: 1.6; stroke-dasharray: 4 3; }
.cv-demand { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.is-live .cv-dot:not(.cv-gone .cv-dot) { animation: cv-march 2.4s linear infinite; }
@keyframes cv-march { from { transform: translateX(-23px); } }
.is-live .cv-gone { animation: cv-fall 3s var(--ease) infinite; animation-delay: calc(var(--d) * 0.5s); }
@keyframes cv-fall { 0% { transform: translateY(-34px); opacity: 0; } 25%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px); } }
.is-live .cv-slot--bad { animation: cv-blink 2.4s ease-in-out infinite; animation-delay: calc(var(--d) * 0.08s); }
@keyframes cv-blink { 50% { opacity: 0.35; } }
.is-live .cv-drop { animation: cv-leak 2.2s var(--ease) infinite; animation-delay: calc(var(--d) * 0.3s); }
@keyframes cv-leak { 0% { transform: translateY(-14px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }
.is-live .cv-doc:nth-child(5), .is-live .cv-doc:nth-child(8) { animation: cv-drop 3.2s var(--ease-soft) infinite; }
@keyframes cv-drop { 0% { transform: translateY(-28px); opacity: 0; } 30%, 100% { transform: none; opacity: 1; } }
.reveal-ready[data-motion='full'] .pain:not(.is-in) .cv-arc--bad { stroke-dasharray: 0 100; }
.reveal-ready[data-motion='full'] .pain .cv-arc--bad { transition-delay: 400ms; }
.cv-bar, .cv-over, .cv-short { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 900ms var(--ease-out); }
.reveal-ready[data-motion='full'] .pain:not(.is-in) :is(.cv-bar, .cv-over, .cv-short) { transform: scaleY(0); }

/* The journey, today and with PaiQube, stage by stage. */
.journey { position: relative; isolation: isolate; margin-top: 56px; }
.journey__key { display: none; }
.journey__stages { display: grid; gap: 14px; }
.jstage { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow); }
.jstage__name { display: flex; align-items: center; gap: 12px; font-family: var(--heading); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.jstage__num { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--accent); }
.jstage__cell { position: relative; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: center; font-size: 0.9375rem; line-height: 1.4; }
.jstage__mark { grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.jstage__mark .icon { width: 15px; height: 15px; }
.jstage__tag { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.jstage__cell--today { color: var(--text-2); }
.jstage__cell--today .jstage__mark { color: var(--bad); background: var(--panel-solid); box-shadow: inset 0 0 0 1.5px var(--bad); }
.jstage__cell--today .jstage__tag { color: var(--bad); }
.jstage__cell--after { font-weight: 600; }
.jstage__cell--after .jstage__mark { color: var(--btn-fg); background: var(--btn-bg); }
.jstage__cell--after .jstage__tag { color: var(--text-3); }
@media (min-width: 1000px) {
  .journey { display: grid; grid-template-columns: 150px repeat(var(--n), minmax(0, 1fr)); grid-template-rows: auto auto auto; }
  .journey::before, .journey::after { content: ''; grid-column: 1 / -1; z-index: -1; border-radius: 22px; }
  .journey::before { grid-row: 2; background: var(--bad-tint); box-shadow: inset 0 0 0 1px var(--bad-line); opacity: 0.55; }
  .journey::after { grid-row: 3; margin-top: 12px; background: var(--good-tint); box-shadow: inset 0 0 0 1px var(--good-line); }
  .journey__key { display: block; grid-column: 1; padding: 22px 0 0 22px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
  .journey__key--today { grid-row: 2; color: var(--bad); }
  .journey__key--after { grid-row: 3; margin-top: 12px; color: var(--accent-2); }
  .journey__stages { grid-column: 2 / -1; grid-row: 1 / 4; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; gap: 0; }
  .jstage { grid-row: 1 / 4; display: grid; grid-template-rows: subgrid; gap: 0; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .jstage__name { padding: 0 18px 20px 0; }
  .jstage__cell { grid-template-columns: 1fr; row-gap: 12px; align-content: start; align-items: start; padding: 16px 20px 26px 0; }
  .jstage__cell--after { margin-top: 12px; }
  .jstage__mark { grid-row: auto; }
  .jstage__tag { display: none; }
  .jstage__cell::before { content: ''; position: absolute; left: 0; right: 0; top: 30px; height: 2px; }
  .jstage__cell--today::before { background: repeating-linear-gradient(90deg, var(--bad-line) 0 6px, transparent 6px 13px); }
  .jstage__cell--after::before { background: linear-gradient(90deg, var(--thread-a), var(--thread-b)); }
  .jstage:last-child .jstage__cell::before { display: none; }
}
.reveal-ready[data-motion='full'] .journey .jstage__cell { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(250ms + var(--i) * 140ms); }
.reveal-ready[data-motion='full'] .journey .jstage__cell--after { transition-delay: calc(1200ms + var(--i) * 170ms); }
.reveal-ready[data-motion='full'] .journey:not(.is-in) .jstage__cell { opacity: 0; transform: translateY(10px); }

/* Example systems: a trigger, the steps intelligence takes (and where a person decides), a result. */
.examples { display: grid; gap: 18px; margin-top: 56px; }
@media (min-width: 900px) { .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.example { position: relative; isolation: isolate; display: grid; align-content: start; gap: 14px; padding: clamp(22px, 2.8vw, 34px); border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow); }
.example__tag { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.example__title { font-family: var(--heading); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.eflow { position: relative; display: grid; gap: 14px; margin: 8px 0 4px; }
.eflow::before { content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.eflow::after { content: ''; position: absolute; left: 17px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px var(--tint); opacity: 0; }
.is-live .eflow::after { animation: eflow-run 4.2s var(--ease) infinite; }
@keyframes eflow-run { 0% { top: 22px; opacity: 0; } 8% { opacity: 1; } 86% { opacity: 1; top: calc(100% - 32px); } 100% { opacity: 0; top: calc(100% - 32px); } }
.eflow__step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.eflow__mark { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text-2); background: var(--bg-raised); border: 1.5px solid var(--line-strong); }
.eflow__mark .icon { width: 20px; height: 20px; }
.eflow__mark--ai { background: var(--panel-solid); border-color: var(--accent-2); }
.eflow__symbol { width: 19px; }
.eflow__mark--person { border-style: dashed; color: var(--accent-2); }
.eflow__mark--result { color: var(--btn-fg); background: var(--btn-bg); border-color: transparent; }
.eflow__body { display: grid; gap: 1px; }
.eflow__kind { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.eflow__step--ai .eflow__kind { color: var(--accent); }
.eflow__text { font-weight: 600; line-height: 1.35; }
.reveal-ready[data-motion='full'] .example .eflow__step { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(250ms + var(--d) * 140ms); }
.reveal-ready[data-motion='full'] .example:not(.is-in) .eflow__step { opacity: 0; transform: translateX(-10px); }
.outcomes--row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.outcomes--row .outcome { font-size: 0.9375rem; }
.outcomes--row .outcome__icon { width: 32px; height: 32px; }
.outcomes--row .outcome__icon .icon { width: 16px; height: 16px; }

/* The story: why we are building PaiQube, beat by beat beside one day's clock. */
.why { overflow: clip; }
.story { position: relative; display: grid; margin-top: 32px; }
.story__visual { position: sticky; top: var(--header-h); z-index: 2; height: min(50svh, 440px); padding-block: 8px; background: var(--bg); }
.story__visual::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 32px; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
.story__sticky { display: grid; height: 100%; place-items: center; align-content: center; gap: 8px; }
.story__sticky .day { width: min(100%, calc(min(50svh, 440px) - 56px)); }
.story__sticky .day__legend { margin-top: 0; font-size: 0.75rem; }
.story__beats { display: grid; }
.beat { display: grid; align-content: center; gap: 12px; min-height: 66svh; padding-block: 6svh; max-width: 34rem; }
.beat__num { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent); }
.beat__title { font-family: var(--heading); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.beat__text { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--text-2); }
.beat__signoff { margin-top: 10px; font-family: var(--heading); font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; background: var(--display-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.story.is-stepping .beat { opacity: 0.25; transition: opacity 500ms var(--ease); }
.story.is-stepping .beat.is-active { opacity: 1; }
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 8px; }
  .story__visual { order: 2; position: relative; top: auto; height: auto; padding: 0; background: none; }
  .story__visual::after { display: none; }
  .story__sticky { position: sticky; top: calc(var(--header-h) + max(24px, (100svh - var(--header-h) - 600px) / 2)); height: auto; }
  .story__sticky .day { width: min(100%, 540px); }
  .story__sticky .day__legend { font-size: 0.8125rem; }
  .beat { min-height: 82svh; }
}

/* One day's clock: 48 half-hours. Busywork (warning colour) takes the waking hours; intelligence
   takes the busywork, and the hours come back as time for living. */
.day { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.day__svg { position: absolute; inset: 11%; width: 78%; height: 78%; overflow: visible; }
.day__hour { font-family: var(--mono); font-size: 13px; fill: var(--text-3); }
@media (max-width: 599.98px) { .day__hour { font-size: 17px; } }
.day__core { fill: var(--panel-solid); stroke: var(--line); stroke-width: 1.2; transition: stroke 600ms var(--ease); }
.tick { fill: var(--line-strong); opacity: 0.5; transform-box: fill-box; transform-origin: center; transition: fill 600ms var(--ease), opacity 600ms var(--ease); transition-delay: calc(var(--i) * 12ms); }
.tick--night { fill: var(--line-strong); opacity: 0.22; }
.day:is([data-state='1'], [data-state='2']) .tick--busy { fill: var(--bad); opacity: 0.85; }
.day:not([data-state='0']) .tick--free { fill: var(--accent-2); opacity: 1; }
.day[data-state='2'] .tick--busy { animation: tick-nag 1.4s ease-in-out infinite; animation-delay: calc(var(--k) * -61ms); }
@keyframes tick-nag { 50% { transform: scaleY(1.22); } }
.day[data-state='3'] .tick--busy { fill: var(--accent-2); opacity: 1; animation: tick-absorb 1.4s var(--ease-out) both; animation-delay: calc(var(--k) * 34ms); }
@keyframes tick-absorb {
  0% { fill: var(--bad); opacity: 0.85; transform: none; }
  45% { fill: var(--bad); opacity: 0; transform: translateY(96px) scaleY(0.3); }
  55% { fill: var(--accent-2); opacity: 0; transform: none; }
  100% { fill: var(--accent-2); opacity: 1; transform: none; }
}
.day:is([data-state='4'], [data-state='5']) .tick--busy { fill: var(--accent-2); opacity: 1; }
.day[data-state='3'] .day__core { stroke: var(--accent-2); stroke-width: 2.5; }
.day__centre { position: absolute; left: 50%; top: 50%; width: 36%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; text-align: center; }
.day__symbol { width: 30%; }
.day__label { max-width: 82%; text-wrap: balance; font-family: var(--heading); font-size: clamp(0.8125rem, 4cqi, 1.25rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; transition: opacity 250ms var(--ease), color 400ms var(--ease); }
.day__label.is-swapping { opacity: 0; }
.day:is([data-state='1'], [data-state='2']) .day__label { color: var(--bad); }
.day__chip {
  position: absolute; z-index: 1; transform: translate(-50%, -50%); padding: 0.45em 0.95em; border-radius: 999px; white-space: nowrap;
  font-size: clamp(0.6875rem, 2.7cqi, 0.875rem); font-weight: 650; line-height: 1.2;
  transition: opacity 600ms var(--ease), transform 900ms var(--ease-out), background-color 600ms var(--ease), color 600ms var(--ease), box-shadow 600ms var(--ease);
  transition-delay: calc(var(--d) * 70ms);
}
.day__chip--wish { color: var(--btn-fg); background: var(--btn-bg); }
.day[data-state='0'] .day__chip--wish { color: var(--text); background: var(--panel-solid); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.day:is([data-state='1'], [data-state='2'], [data-state='3']) .day__chip--wish { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
.day__chip--task { color: var(--bad); background: var(--panel-solid); box-shadow: inset 0 0 0 1.5px var(--bad-line); }
.day[data-state='0'] .day__chip--task { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
.day:is([data-state='3'], [data-state='4'], [data-state='5']) .day__chip--task { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.2); }
.day__legend { justify-content: center; margin-top: 10px; }
.legend__item--busy { color: var(--bad); }
.legend__item--busy::before { background: var(--bad); }

/* Home vision: the motto beside the day. */
.manifesto__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .manifesto__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; } }
.manifesto__more { margin-top: 20px; }
.manifesto__visual .day { width: min(100%, 470px); }

/* The name: Pai is infinity, Qube is a cube. */
.namegrid { display: grid; gap: 14px; margin-top: 48px; }
@media (min-width: 860px) { .namegrid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; } }
.namegrid__plus { align-self: center; justify-self: center; font-family: var(--heading); font-size: 2.5rem; font-weight: 300; line-height: 1; color: var(--text-3); }
.namecard { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow); overflow: hidden; }
.namecard__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-family: var(--heading); }
.namecard__word { font-size: clamp(3.5rem, 2rem + 5vw, 6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; padding-right: 0.04em; background: var(--display-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.namecard__eq { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 300; color: var(--text-3); }
.namecard__means { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; }
.namecard__art { display: grid; place-items: center; min-height: 220px; }
.namecard__text { color: var(--text-2); font-size: 1.0625rem; }
.inf { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.inf__track { fill: none; stroke: var(--line); stroke-width: 24; stroke-linejoin: round; }
.inf__line { fill: none; stroke-width: 2; stroke-linejoin: round; opacity: 0.8; }
.inf__digits { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; fill: var(--text-2); dominant-baseline: central; }
.cube3d { --s: clamp(112px, 15vw, 150px); display: grid; place-items: center; width: calc(var(--s) * 1.9); height: calc(var(--s) * 1.8); perspective: 1600px; }
.cube3d__body { position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(-32deg) rotateY(45deg); }
.cube3d__face { position: absolute; inset: 0; border: 1.5px solid var(--d1-line); background: color-mix(in srgb, var(--accent-2) 6%, transparent); transition: transform 1300ms var(--ease-out); }
.cube3d__face--front { transform: translateZ(calc(var(--s) / 2)); border-color: var(--d2-line); background: linear-gradient(160deg, color-mix(in srgb, var(--accent-2) 26%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent)); }
.cube3d__face--back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube3d__face--right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); border-color: var(--d3-line); background: linear-gradient(160deg, color-mix(in srgb, var(--accent-2) 42%, transparent), color-mix(in srgb, var(--accent-2) 24%, transparent)); }
.cube3d__face--left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube3d__face--top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: color-mix(in srgb, var(--accent-2) 12%, transparent); }
.cube3d__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.reveal-ready[data-motion='full'] .namecard:not(.is-in) .cube3d__face--front { transform: translateZ(calc(var(--s) * 1.3)); }
.reveal-ready[data-motion='full'] .namecard:not(.is-in) .cube3d__face--right { transform: rotateY(90deg) translateZ(calc(var(--s) * 1.3)); }
.reveal-ready[data-motion='full'] .namecard:not(.is-in) .cube3d__face--top { transform: rotateX(90deg) translateZ(calc(var(--s) * 1.3)); }
.is-live .cube3d__body { animation: cube-rock 7s ease-in-out infinite alternate; }
@keyframes cube-rock { from { transform: rotateX(-32deg) rotateY(22deg); } to { transform: rotateX(-26deg) rotateY(68deg); } }

/* The Spriwa page. */
.product-hero { position: relative; padding-top: 12px; }
.stage--hero { padding-top: clamp(16px, 2vw, 28px); padding-bottom: clamp(40px, 5vw, 64px); }
.stage .crumbs a { color: var(--text-2); }
.stage .crumbs a[aria-current] { color: var(--text); }
.product-hero__grid { display: grid; gap: 40px; align-items: center; padding-top: clamp(8px, 2vw, 24px); }
.product-id__by { font-size: 0.875rem; color: var(--text-3); }
.display--product { margin-top: 28px; font-size: clamp(2.75rem, 1.3rem + 4.6vw, 5.25rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600; text-wrap: balance; }
.product-hero .stage__body { margin-top: 22px; }
.shipaton { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 14px 8px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 650; color: var(--sp-lime); background: rgba(188, 238, 63, 0.08); border: 1px solid rgba(188, 238, 63, 0.35); }
.shipaton .icon { width: 16px; height: 16px; }
.product-hero__phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }
.phone--hero { position: relative; }
.phone--hero-c { --w: min(250px, 52vw); z-index: 2; }
.phone--hero-l, .phone--hero-r { --w: min(200px, 38vw); position: absolute; top: 50%; opacity: 0.92; }
.phone--hero-l { left: 50%; transform: translate(-112%, -46%) rotate(-7deg); }
.phone--hero-r { left: 50%; transform: translate(12%, -46%) rotate(7deg); }
.product-hero__leafy { position: absolute; z-index: 3; left: 2%; bottom: 0; width: clamp(78px, 12vw, 128px); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.35)); }
[data-motion='full'] .product-hero__leafy { animation: bob 5s 1.4s var(--ease) infinite; }
.product-hero__start { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; }
@media (min-width: 1024px) {
  .product-hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .product-hero__phones { min-height: 620px; }
  .phone--hero-c { --w: 284px; }
  .phone--hero-l, .phone--hero-r { --w: 230px; }
}
.player { margin: 48px 0 0; }
.player__frame {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-stage); background: var(--sp-bg);
  color: #fff; text-decoration: none; box-shadow: 0 50px 100px -60px rgba(0, 0, 0, 0.6);
}
.player__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
[data-motion='full'] .player__frame:hover img { transform: scale(1.02); }
.player__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 18, 13, 0.55), transparent 45%); pointer-events: none; }
.player__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: clamp(64px, 9vw, 96px); aspect-ratio: 1;
  border-radius: 50%; transform: translate(-50%, -50%); color: var(--sp-ink); background: var(--sp-mint);
  box-shadow: 0 0 0 10px rgba(71, 230, 173, 0.22), 0 20px 40px -10px rgba(0, 0, 0, 0.5); transition: transform var(--t-control) var(--ease);
}
.player__play .icon { width: 42%; height: 42%; transform: translateX(6%); fill: currentColor; }
[data-motion='full'] .player__frame:hover .player__play { transform: translate(-50%, -50%) scale(1.07); }
.player__label { position: absolute; z-index: 1; left: clamp(16px, 3vw, 32px); bottom: clamp(14px, 2.4vw, 28px); font-weight: 650; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.is-playing .player__frame::after { display: none; }
.player__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; }
.player__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; color: var(--btn-fg); background: var(--btn-bg); }
.player__badge .icon { width: 15px; height: 15px; }
.player__cat { padding: 6px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; background: var(--tint); border: 1px solid var(--line); }
.player__yt { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 44px; font-size: 0.875rem; font-weight: 600; color: var(--text-2); text-underline-offset: 4px; text-decoration-color: var(--underline); }
.player__yt .icon { width: 14px; height: 14px; }

/* Spriwa: the everyday questions it answers. */
.qa-viz { margin-top: 48px; padding: clamp(18px, 3vw, 36px); border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow); }
.qa-viz__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 18px; }
.qa-viz__tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.qa-viz__tag--today { color: var(--bad); }
.qa-viz__tag--after { color: var(--accent-2); text-align: right; }
.qa-viz__icon { width: 44px; height: 44px; border-radius: 12px; }
.qa-viz__rows { display: grid; gap: 10px; }
.qa-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; gap: 8px; }
.qa-row__q { justify-self: start; padding: 10px 16px; border-radius: 18px 18px 18px 6px; font-size: 0.9375rem; color: var(--bad); background: var(--bad-tint); box-shadow: inset 0 0 0 1px var(--bad-line); }
.qa-row__line { position: relative; height: 2px; background: linear-gradient(90deg, var(--bad-line), var(--accent-2)); }
.qa-row__line::after { content: ''; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--accent-2); border-right: 2px solid var(--accent-2); transform: rotate(45deg); }
.qa-row__a { display: flex; align-items: center; gap: 10px; font-weight: 650; line-height: 1.3; }
.qa-row__mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--btn-fg); background: var(--btn-bg); }
.qa-row__mark .icon { width: 15px; height: 15px; }
.reveal-ready[data-motion='full'] .qa-viz .qa-row > * { transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal-ready[data-motion='full'] .qa-viz .qa-row__q { transition-delay: calc(150ms + var(--d) * 110ms); }
.reveal-ready[data-motion='full'] .qa-viz .qa-row__line { transition-delay: calc(800ms + var(--d) * 110ms); transform-origin: 0 50%; }
.reveal-ready[data-motion='full'] .qa-viz .qa-row__a { transition-delay: calc(1000ms + var(--d) * 110ms); }
.reveal-ready[data-motion='full'] .qa-viz:not(.is-in) .qa-row__q { opacity: 0; transform: translateX(-12px); }
.reveal-ready[data-motion='full'] .qa-viz:not(.is-in) .qa-row__line { transform: scaleX(0); }
.reveal-ready[data-motion='full'] .qa-viz:not(.is-in) .qa-row__a { opacity: 0; transform: translateX(12px); }
@media (max-width: 719.98px) {
  .qa-viz__head { grid-template-columns: auto 1fr; }
  .qa-viz__hub { order: -1; }
  .qa-viz__tag--after { display: none; }
  .qa-row { grid-template-columns: 1fr; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .qa-row:last-child { border-bottom: 0; padding-bottom: 0; }
  .qa-row__line { display: none; }
}
.tiles--3 { margin-top: 18px; }
@media (min-width: 900px) { .tiles--3 { grid-template-columns: repeat(3, 1fr); } }

.feature { padding-block: clamp(64px, 8vw, 120px); }
.feature__grid { display: grid; gap: 48px; align-items: center; }
.feature__grid > * { min-width: 0; }
.feature .chapter__title { font-size: clamp(2.125rem, 1.3rem + 2.4vw, 3.5rem); }
.ticks { margin-top: 26px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; font-weight: 500; }
.ticks li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--tint); transform: translateY(-2px); }
.feature__copy .fine { margin-top: 22px; }
.feature__media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.feature__media .phone { --w: min(230px, 50vw); position: relative; top: auto; left: auto; opacity: 1; }
.feature__media--2 .phone--fan-1 { transform: translateX(14%) rotate(-4deg); z-index: 1; }
.feature__media--2 .phone--fan-2 { transform: translate(-14%, 8%) rotate(4deg); z-index: 2; }
.feature__media--3 .phone { --w: min(200px, 30vw); }
.feature__media--3 .phone--fan-1 { transform: translate(28%, 6%) rotate(-7deg); }
.feature__media--3 .phone--fan-2 { z-index: 2; }
.feature__media--3 .phone--fan-3 { transform: translate(-28%, 6%) rotate(7deg); }
@media (max-width: 639.98px) { .feature__media .phone--fan { display: block; } }
@media (min-width: 1024px) {
  .feature__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
    .feature__media { min-height: 600px; }
  .feature__media .phone { --w: 270px; }
  .feature__media--3 .phone { --w: 232px; }
  [data-motion='full'] .feature__media .phone { transition: transform 900ms var(--ease-out); }
  [data-motion='full'] .feature__media--3:not(.is-in) .phone--fan-1 { transform: translate(60%, 10%) rotate(0); }
  [data-motion='full'] .feature__media--3:not(.is-in) .phone--fan-3 { transform: translate(-60%, 10%) rotate(0); }
  [data-motion='full'] .feature__media--2:not(.is-in) .phone--fan-1 { transform: translateX(40%) rotate(0); }
  [data-motion='full'] .feature__media--2:not(.is-in) .phone--fan-2 { transform: translate(-40%, 8%) rotate(0); }
}
.buds__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; margin-top: 56px; }
.bud { --tint-bud: rgba(188, 217, 88, 0.4); position: relative; display: grid; align-content: start; padding: 0 26px 28px; overflow: hidden; border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--panel-line); box-shadow: var(--panel-shadow); }
.bud--leafy { --tint-bud: rgba(187, 217, 88, 0.42); }
.bud--flint { --tint-bud: rgba(244, 141, 61, 0.42); }
.bud--bloom { --tint-bud: rgba(249, 180, 196, 0.5); }
.bud--ripple { --tint-bud: rgba(126, 206, 235, 0.45); }
.bud--solace { --tint-bud: rgba(145, 172, 101, 0.45); }
.bud--orbit { --tint-bud: rgba(198, 166, 250, 0.48); }
.bud__art { display: grid; place-items: end center; height: 200px; margin: 0 -26px 18px; background: radial-gradient(60% 70% at 50% 85%, var(--tint-bud), transparent 72%); }
.bud__art img { width: auto; height: 168px; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.22)); transform-origin: 50% 100%; transition: transform 700ms var(--ease-soft); }
[data-motion='full'] .bud:hover .bud__art img { transform: translateY(-8px) rotate(-3deg); }
.bud__name { font-family: var(--heading); font-size: 1.5rem; font-weight: 650; letter-spacing: -0.03em; }
.bud__traits { margin-top: 4px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.bud__personality { margin-top: 12px; color: var(--text-2); }
.bud__sample { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-style: italic; }
.bud__sample p::before { content: '\201C'; }
.bud__sample p::after { content: '\201D'; }
.get__note { margin-top: 22px; }

/* Phones lay out a long page only as it nears the screen; there is no thread to measure there. */
@media (max-width: 759.98px) {
  main > .section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
}

/* A waypoint keeps the thread in the rail until it reaches empty space. */
.thread-way { display: block; width: 0; height: 0; margin-left: calc(var(--rail) * -1); }

/* The thread needs the margin it runs in. Below this width the page reads without it. */
@media (min-width: 760px) { :root { --rail: calc(var(--gutter) * 0.56); } }
@media (min-width: 1360px) { :root { --rail: 52px; } }

/* ——— Reduced motion: immediate state changes, nothing travels ——— */
[data-motion='reduce'] .is-live * { animation: none !important; }
[data-motion='reduce'] *, [data-motion='reduce'] *::before, [data-motion='reduce'] *::after {
  animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important;
  transition-duration: 0.01ms !important; transition-delay: 0ms !important;
}

@media (forced-colors: active) {
  .btn, .menu-button, .motion-toggle__track, .node { border: 1px solid CanvasText; }
  .eyebrow::before, .chapter__rule, .site-header__progress { background: CanvasText; }
  .display .line--accent .line__in, .namecard__word, .beat__signoff { color: CanvasText; background: none; }
}

@media print {
  .site-header, .menu, .thread, .comet, .motion-toggle, .ambient, body::after { display: none !important; }
  .stage { background: none; color: #000; }
}
