/* Codex Ingenium design system v1, 29 Oct 2026. Do not edit from page work: see docs/DESIGN-SYSTEM.md. */

/* 1. Tokens */
:root {
  color-scheme: dark;

  /* Neutral base */
  --ink-0: #07080a;
  --ink-1: #0b0c10;
  --ink-2: #111318;
  --ink-3: #171a20;
  --ink-4: #20242c;
  --ink-5: #2c313b;
  --paper: #edeef1;
  --grey-1: #a9aeb8;
  --grey-2: #868b95;
  --grey-3: #5a5f69;
  --white: #ffffff;

  --ember: #ff6b3d;      /* Codex Ingenium */
  --moon: #c7cdff;       /* NYX */
  --gold: #f2c14e;       /* AI Voice Agents */
  --aqua: #5ddfc4;       /* Digital Concierge */
  --volt: #cdee5b;       /* ZeroHuman platform */

  /* Night palette (NYX) */
  --night-0: #05061a;
  --night-1: #090b24;
  --night-2: #0f1230;
  --night-3: #171b42;
  --night-4: #232861;
  --moon-1: #eef0ff;
  --moon-2: #9aa4f0;
  --moon-3: #5d66b8;
  --star: #f4efe2;

  /* Status */
  --success: #7ee2a8;
  --danger: #ff7a7a;

  --bg: var(--ink-0);
  --bg-alt: var(--ink-1);
  --surface: var(--ink-2);
  --surface-2: var(--ink-3);
  --surface-3: var(--ink-4);
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.13);
  --line-max: rgba(255, 255, 255, 0.22);
  --text: var(--paper);
  --text-muted: var(--grey-1);
  --text-faint: var(--grey-2);
  --text-ghost: var(--grey-3);
  --accent: var(--ember);
  --accent-ink: var(--ink-0);

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-display: clamp(2.75rem, 1.2rem + 5.4vw, 6rem);
  --fs-h1: clamp(2.5rem, 1.45rem + 3.9vw, 4.75rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.5vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.4vw, 1.3125rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;
  --fs-micro: 0.6875rem;

  --lh-display: 0.96;
  --lh-heading: 1.06;
  --lh-snug: 1.35;
  --lh-body: 1.6;

  --tracking-display: -0.045em;
  --tracking-tight: -0.032em;
  --tracking-snug: -0.015em;
  --tracking-label: 0.08em;

  --measure: 38rem;

  /* Space (4 px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-y: clamp(5rem, 3rem + 6.5vw, 9.5rem);
  --section-y-sm: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --head-gap: clamp(2.75rem, 2rem + 2.6vw, 4.5rem);

  /* Layout */
  --container: 1240px;
  --container-wide: 1400px;
  --container-narrow: 780px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --grid-gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --header-h: 64px;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 16px 36px -16px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 48px 96px -32px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --inner-hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
  --dur-reveal: 800ms;

  /* Layers */
  --z-header: 50;
  --z-menu: 60;
  --z-skip: 100;
}

@media (max-width: 959px) {
  :root { --header-h: 58px; }
}

/* 2. Themes and accents */
[data-accent="brand"] { --accent: var(--ember); }
[data-accent="nyx"] { --accent: var(--moon); }
[data-accent="voice"] { --accent: var(--gold); }
[data-accent="concierge"] { --accent: var(--aqua); }
[data-accent="zerohuman"] { --accent: var(--volt); }

/* Night theme: put on <body> (NYX page) or on any section. Remaps the semantic tokens. */
.theme-night {
  --bg: var(--night-0);
  --bg-alt: var(--night-1);
  --surface: var(--night-2);
  --surface-2: var(--night-3);
  --surface-3: var(--night-4);
  --line: rgba(199, 205, 255, 0.085);
  --line-strong: rgba(199, 205, 255, 0.16);
  --line-max: rgba(199, 205, 255, 0.28);
  --text: var(--moon-1);
  --text-muted: #a9aed0;
  --text-faint: #8c92ba;
  --text-ghost: #555b8a;
  --accent: var(--moon);
  background-color: var(--bg);
  color: var(--text);
}

:root,
[data-accent],
.theme-night {
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 36%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 22%, transparent);
  --focus: color-mix(in srgb, var(--accent) 55%, var(--white));
}

/* 3. Base */
*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  text-wrap: balance;
}

p, figure, blockquote, dl, dd { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
strong, b { font-weight: 600; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
abbr[title] { text-decoration: none; }
address { font-style: normal; }
[hidden] { display: none !important; }

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

::selection { background: color-mix(in srgb, var(--accent) 34%, transparent); color: var(--white); }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--text);
  color: var(--bg);
  font-size: var(--fs-sm);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus { transform: none; }

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 32px; height: 32px; }
.icon .fill { fill: currentColor; stroke: none; }

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.icon-tile--neutral { border-color: var(--line-strong); background: var(--surface); color: var(--text); }

/* Arrows: <span class="arrow" aria-hidden="true"></span>, add arrow--out for external links. */
.arrow {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E");
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform var(--dur-base) var(--ease-out);
}
.arrow--out { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11 11 5M6 5h5v5'/%3E%3C/svg%3E"); }

/* 4. Typography */
.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  font-weight: 500;
}
.h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.042em; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.036em; }
.h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -0.022em; }
.h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.012em; }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.012em;
  line-height: 0.9;
}
.serif--accent { color: var(--accent); }
.serif--muted { color: var(--text-muted); }

@media (min-width: 768px) {
  .title-lines > .line { display: block; }
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--text-muted);
  max-width: var(--measure);
}
.body-lg { font-size: 1.0625rem; line-height: 1.6; }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-accent { color: var(--accent); }
.text-balance { text-wrap: balance; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

.mono { font-family: var(--font-mono); font-size: 0.875em; letter-spacing: 0; }

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-max);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--dur-base) var(--ease-out), color var(--dur-base);
}
.text-link:hover { text-decoration-color: var(--accent); }

/* 5. Layout */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: 1 / -1; }
.start-2 { grid-column-start: 2; }
.start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }

.cols-2, .cols-3, .cols-4 { display: grid; gap: var(--grid-gap); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 1rem + 4vw, 6rem);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--center { align-items: center; }
.split--aside { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

.stack { display: flex; flex-direction: column; gap: var(--stack, var(--space-4)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster, var(--space-3)); }

@media (max-width: 1023px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > [class*="col-"] { grid-column: 1 / -1; }
  .split, .split--even, .split--reverse, .split--aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
}

/* 6. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-slow) var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  transition: background-color var(--dur-slow) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { background: color-mix(in srgb, var(--bg) 84%, transparent); }
.site-header.is-open { border-bottom-color: var(--line); }
.site-header.is-open::before { background: var(--bg); }

.site-header__inner { height: 100%; display: flex; align-items: center; gap: var(--space-4); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1;
  white-space: nowrap;
}
.brand__mark { width: 26px; height: 26px; }
.brand__mark .tittle { fill: var(--ember); }

.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent);
}
.nav__tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--moon) 40%, transparent);
  color: var(--moon);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav__cta { margin-left: var(--space-2); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
}
.nav-toggle__bar {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-toggle__bar--top { top: 17.5px; }
.nav-toggle__bar--bottom { top: 24.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--top { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--bottom { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav { display: none; }
  .nav-toggle { display: inline-block; }
  .nav__cta { margin-left: 0; }
  html:not(.js) .nav-toggle { display: none; }
}

/* 7. Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { list-style: none; }
.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.mobile-menu__link .arrow { margin-left: auto; color: var(--text-faint); width: 18px; height: 18px; }
.mobile-menu__swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}
.mobile-menu__link[aria-current="page"] { color: var(--accent); }
.mobile-menu__link:not([data-accent]) .mobile-menu__swatch { background: var(--text-ghost); }
.mobile-menu__foot { margin-top: auto; padding-top: var(--space-7); display: grid; gap: var(--space-4); }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-faint);
  line-height: 1.6;
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) { animation: menu-in var(--dur-slow) var(--ease-out); }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@media (min-width: 960px) {
  .mobile-menu { display: none !important; }
}
html.menu-open { overflow: hidden; }

/* 8. Footer */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: clamp(4rem, 3rem + 4vw, 7rem);
  background: var(--bg);
  overflow: hidden;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-8) var(--grid-gap);
}
.site-footer__brand { display: grid; gap: var(--space-5); align-content: start; }
.site-footer__motto {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 16em;
}
.site-footer__motto .serif { display: block; color: var(--text-muted); white-space: nowrap; }
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-7) var(--grid-gap);
}
.footer-title {
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-links { list-style: none; display: grid; gap: 12px; font-size: var(--fs-sm); }
.footer-links a { color: var(--text-muted); transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--text); }
.footer-contact { display: grid; gap: 12px; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }
.footer-contact a { color: var(--text); }
.footer-contact a:hover { color: var(--accent); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  margin-top: clamp(3.5rem, 2rem + 4vw, 6rem);
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-faint);
  line-height: 1.6;
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; }
.site-footer__legal a:hover { color: var(--text); }

.site-footer__wordmark { container-type: inline-size; pointer-events: none; user-select: none; }
.site-footer__wordmark span {
  display: block;
  margin-bottom: -0.2em;
  font-size: 14.6cqi;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.01) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 1023px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}
/* Touch: every footer link, header control and arrow link gets a 44 px hit area without moving the layout */
@media (pointer: coarse), (max-width: 959px) {
  .brand { padding-block: 9px; margin-block: -9px; }
  .nav__cta { position: relative; }
  .nav__cta::after { content: ""; position: absolute; inset: -4px 0; }
  .footer-links { gap: 0; margin-block: -12.5px; }
  .footer-links a { display: inline-block; padding-block: 12.5px; }
  .footer-contact a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .site-footer__legal a { display: inline-block; padding-block: 14px; margin-block: -14px; }
  .link-arrow { padding-block: 10px; margin-block: -10px; }
  .choices .choice span { min-height: 44px; }
}
@media (max-width: 639px) {
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__nav > :last-child { grid-column: 1 / -1; }
  .site-footer__legal { flex-direction: column; }
}

/* 9. Buttons and links */
.btn {
  --btn-h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.btn .icon { width: 16px; height: 16px; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow--out { transform: translate(2px, -2px); }

.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }

.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover {
  background: color-mix(in srgb, var(--accent) 86%, var(--white));
  box-shadow: 0 0 0 4px var(--accent-soft), 0 10px 40px -10px var(--accent-glow);
}

.btn--secondary { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.015); }
.btn--secondary:hover { border-color: var(--line-max); background: rgba(255, 255, 255, 0.05); }

.btn--ghost { color: var(--text-muted); padding-inline: 12px; }
.btn--ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.btn--sm { --btn-h: 36px; padding: 0 15px; font-size: 14px; gap: 8px; }
.btn--lg { --btn-h: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--dur-base) var(--ease-out);
}
.link-arrow .arrow { color: var(--accent); }
.link-arrow:hover .arrow,
a:hover .link-arrow .arrow,
.product-card:hover .link-arrow .arrow,
.index-row:hover .link-arrow .arrow { transform: translateX(3px); }
.link-arrow:hover .arrow--out,
.index-row:hover .link-arrow .arrow--out { transform: translate(2px, -2px); }

/* 10. Labels and badges */
.label,
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  flex: none;
}
.eyebrow--plain::before { display: none; }
.eyebrow__index { color: var(--text); }
.eyebrow__sep { color: var(--text-ghost); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.badge--neutral { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--text-muted); }
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
.badge--beta {
  --accent: var(--moon);
  border-color: color-mix(in srgb, var(--moon) 36%, transparent);
  background: color-mix(in srgb, var(--moon) 9%, transparent);
  color: var(--moon);
}
@media (prefers-reduced-motion: no-preference) {
  .badge__dot--pulse { animation: dot-pulse 2.6s var(--ease-in-out) infinite; }
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 40%, transparent); }
  60% { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent); }
}

/* 11. Sections */
.section { position: relative; padding-block: var(--section-y); }
.section--sm { padding-block: var(--section-y-sm); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--alt { background-color: var(--bg-alt); }
.section--rule { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: var(--space-5); max-width: 50rem; margin-bottom: var(--head-gap); }
.section-head .eyebrow { margin-bottom: var(--space-1); }
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  column-gap: var(--grid-gap);
}
.section-head--split > :first-child { display: grid; gap: var(--space-5); }
.section-head--split .lead { justify-self: end; max-width: 30rem; }
@media (max-width: 1023px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .section-head--split .lead { justify-self: start; }
}

.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-6) var(--grid-gap);
  padding: clamp(2rem, 1rem + 4vw, 4.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  box-shadow: var(--inner-hi);
  overflow: hidden;
}
.cta-band__copy { display: grid; gap: var(--space-4); max-width: 40rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
@media (max-width: 767px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* 12. Page hero (inner pages) */
.page-hero {
  position: relative;
  padding-top: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  padding-bottom: clamp(4rem, 2.5rem + 5vw, 7.5rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__inner { display: grid; gap: var(--space-6); max-width: 58rem; }
.page-hero__inner > .eyebrow,
.page-hero__inner > .cluster:first-child { margin-bottom: var(--space-1); }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.page-hero--split .page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.page-hero__visual { position: relative; min-width: 0; }
.page-hero--split .h1 { font-size: clamp(2.5rem, 1.3rem + 3.2vw, 4.25rem); }
.page-hero__stats { margin-top: clamp(3.5rem, 2rem + 4vw, 6rem); }
@media (max-width: 1023px) {
  .page-hero--split .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .page-hero__actions { display: grid; }
  .page-hero__actions .btn { width: 100%; }
}

/* Breadcrumbs: <nav class="crumbs" aria-label="Breadcrumb"> first in a .page-hero--crumbs hero */
.page-hero--crumbs { padding-top: clamp(1.25rem, 0.75rem + 1.5vw, 2.25rem); }
.page-hero--crumbs .crumbs { margin-bottom: clamp(3rem, 2rem + 4vw, 6.5rem); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-faint);
}
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--text-ghost); }
.crumbs a { display: inline-block; padding-block: 14px; margin-block: -14px; transition: color var(--dur-fast); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text-muted); }

/* 13. Features (hairline grid) */
.features {
  display: grid;
  grid-template-columns: repeat(var(--features-cols, 3), minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  list-style: none;
}
.features--2 { --features-cols: 2; }
.features--3 { --features-cols: 3; }
.features--4 { --features-cols: 4; }
.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  background: var(--bg);
  min-width: 0;
}
.section--alt .feature { background: var(--bg-alt); }
.feature .icon-tile { margin-bottom: var(--space-3); }
.feature__title { font-size: var(--fs-h4); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.feature__text { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.feature__tag { margin-top: auto; padding-top: var(--space-3); }
@media (max-width: 1023px) {
  .features--3, .features--4 { --features-cols: 2; }
}
@media (max-width: 639px) {
  .features, .features--2, .features--3, .features--4 { --features-cols: 1; }
}

/* 14. Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--inner-hi);
  min-width: 0;
}
.card--flat { background: transparent; box-shadow: none; }
.card__title { font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.card__text { color: var(--text-muted); font-size: var(--fs-sm); }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--inner-hi);
  overflow: hidden;
  min-width: 0;
  transition: border-color var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}
.product-card:hover { border-color: var(--accent-line); }
.product-card:focus-within { border-color: var(--accent-line); }
.product-card__media {
  position: relative;
  height: 232px;
  padding: 28px 28px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
  padding: clamp(1.5rem, 1rem + 1.2vw, 2.25rem);
}
.product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 26px; }
.product-card__title { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); letter-spacing: -0.032em; line-height: 1.1; }
.product-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.product-card__link:focus-visible { outline: none; }
.product-card__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; }
.product-card__text { color: var(--text-muted); font-size: var(--fs-sm); max-width: 34rem; }
.product-card__facts {
  list-style: none;
  display: grid;
  gap: 10px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text);
}
.product-card__facts li { position: relative; padding-left: 17px; }
.product-card__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
}
.product-card__foot { margin-top: auto; padding-top: var(--space-3); }

/* 15. Index list (editorial rows: ventures, case studies, resources) */
.index-list { list-style: none; border-top: 1px solid var(--line); }
.index-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr) minmax(12rem, 2fr);
  align-items: center;
  gap: var(--space-5) var(--grid-gap);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.index-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * min(var(--space-5), var(--gutter) * 0.75));
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.index-row:hover::before { opacity: 1; }
.index-row__main { min-width: 0; }
.index-row__name { font-size: 1.25rem; letter-spacing: -0.022em; line-height: 1.2; }
.index-row__text { color: var(--text-muted); font-size: var(--fs-sm); max-width: 32rem; }
.index-row__tag { justify-self: start; }
.index-row__link { justify-self: end; position: static; white-space: nowrap; }
.index-row__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.index-row__link:focus-visible { outline: none; }
.index-row__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-md); }
@media (max-width: 1023px) {
  .index-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--space-3) var(--space-5); padding: 24px 0; }
  .index-row > .icon-tile { grid-row: 1; grid-column: 1; }
  .index-row__main { grid-row: 1; grid-column: 2 / 4; align-self: center; }
  .index-row__text { grid-column: 2 / 4; }
  .index-row__tag { grid-column: 2; align-self: center; margin-top: var(--space-2); }
  .index-row__link { grid-column: 3; align-self: center; margin-top: var(--space-2); }
}
@media (max-width: 479px) {
  .index-row { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: var(--space-4); }
  .index-row__text { grid-column: 1 / -1; }
  .index-row__tag { grid-column: 1 / 3; }
}

/* 16. Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(var(--stats-cols, 4), minmax(0, 1fr));
  gap: var(--space-7) var(--grid-gap);
  list-style: none;
}
.stats--3 { --stats-cols: 3; }
.stats--2 { --stats-cols: 2; }
.stat {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-strong);
  min-width: 0;
}
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(2.5rem, 1.8rem + 2.2vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat__unit { font-size: 0.42em; letter-spacing: -0.01em; color: var(--accent); }
.stat__label { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.5; max-width: 22rem; }
.stat__note { margin-top: var(--space-1); }
@media (max-width: 1023px) {
  .stats { --stats-cols: 2; }
  .stats--3 { --stats-cols: 3; }
}
@media (max-width: 639px) {
  .stats, .stats--3 { --stats-cols: 1; row-gap: var(--space-6); }
  .stats--compact { --stats-cols: 2; }
}

/* 17. Steps (numbered process) */
.steps {
  display: grid;
  grid-template-columns: repeat(var(--steps-cols, 4), minmax(0, 1fr));
  gap: var(--space-7) var(--grid-gap);
  list-style: none;
  counter-reset: step;
}
.steps--3 { --steps-cols: 3; }
.steps--5 { --steps-cols: 5; }
.steps--6 { --steps-cols: 6; }
.step {
  position: relative;
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding-top: var(--space-7);
  counter-increment: step;
  min-width: 0;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  border: 1px solid var(--accent-line);
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
}
.step::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 44px;
  right: calc(-1 * var(--grid-gap) + 12px);
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line));
}
.step:last-child::after { display: none; }
.step__title { font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.step__text { color: var(--text-muted); font-size: var(--fs-sm); }
@media (max-width: 1023px) {
  .steps, .steps--5, .steps--6 { --steps-cols: 2; }
  .steps--3 { --steps-cols: 3; }
  .step::after { display: none; }
}
@media (max-width: 639px) {
  .steps, .steps--3, .steps--5, .steps--6 { --steps-cols: 1; gap: var(--space-6); }
  .step { padding-top: 0; padding-left: 52px; }
}

/* 18. Comparison */
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
.versus__col {
  display: grid;
  gap: var(--space-5);
  align-content: start;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: transparent;
}
.versus__col--accent {
  border-color: var(--accent-line);
  background: radial-gradient(120% 80% at 0% 0%, var(--accent-soft), transparent 70%), var(--surface);
  box-shadow: var(--inner-hi);
}
.versus__title { font-size: var(--fs-h3); letter-spacing: -0.025em; }
.versus__list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.versus__list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.versus__col--accent .versus__list li { color: var(--text); }
.versus__list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--text-ghost); }
.versus__col--accent .versus__list .icon { color: var(--accent); }
@media (max-width: 767px) {
  .versus { grid-template-columns: minmax(0, 1fr); }
}

.compare {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}
.compare table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: var(--fs-sm); }
.compare caption { text-align: left; padding: var(--space-5) var(--space-5) 0; color: var(--text-faint); }
.compare th,
.compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-alt);
}
.compare tbody th { font-weight: 500; color: var(--text); width: 34%; }
.compare td { color: var(--text-muted); }
.compare tr:last-child > * { border-bottom: 0; }
.compare .is-highlight { background: var(--accent-soft); color: var(--text); }
.compare thead .is-highlight { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--bg-alt)); }
.compare .yes,
.compare .no { display: inline-flex; align-items: center; gap: 8px; }
.compare .yes .icon { width: 18px; height: 18px; color: var(--accent); }
.compare .no .icon { width: 18px; height: 18px; color: var(--text-ghost); }
.compare__hint { display: none; margin-bottom: var(--space-3); }
@media (max-width: 639px) {
  .compare__hint { display: block; }
  .compare th,
  .compare td { padding: 14px 16px; }
  .compare table { min-width: 540px; }
}

/* 19. FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 24px 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--white); }
.faq__icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex: none;
  transition: border-color var(--dur-base), background-color var(--dur-base);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  border-radius: 1px;
  background: var(--text);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { border-color: var(--accent-line); background: var(--accent-soft); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a {
  display: grid;
  gap: var(--space-4);
  max-width: 46rem;
  padding: 0 0 28px;
  color: var(--text-muted);
}
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__a { animation: faq-in var(--dur-slow) var(--ease-out); }
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* 20. Forms */
.form { position: relative; }
.form__body { display: grid; gap: var(--space-5); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 639px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
}
.field { display: grid; gap: 8px; min-width: 0; }
.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}
.field__optional {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
}
.field__hint { font-size: var(--fs-xs); color: var(--text-faint); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur-base), background-color var(--dur-base), box-shadow var(--dur-base);
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 136px; resize: vertical; }
.input::placeholder,
.textarea::placeholder { color: var(--text-ghost); }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--line-max); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.input:user-invalid,
.select:user-invalid,
.textarea:user-invalid { border-color: var(--danger); }
.select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23a9aeb8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.select:invalid { color: var(--text-ghost); }
.select option { color: var(--paper); background: var(--ink-2); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--text-muted);
  cursor: pointer;
}
.check input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--line-max);
  border-radius: 6px;
  background: var(--surface-2);
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.check input:checked {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%2307080a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.check input:user-invalid { border-color: var(--danger); }
.check a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-max); text-underline-offset: 0.2em; }
.check a:hover { text-decoration-color: var(--accent); }

.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast);
}
.choice input:hover + span { border-color: var(--line-max); color: var(--text); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.field--hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-5);
  padding-top: var(--space-2);
}
.form__note { font-size: var(--fs-xs); color: var(--text-faint); }
.form__note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 0.2em; }

.form__error {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  color: var(--text);
  font-size: var(--fs-sm);
}
.form__error[hidden] { display: none; }
.form__error .icon { width: 20px; height: 20px; color: var(--danger); margin-top: 1px; }
.form__error a { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }

.form__success {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0;
}
.form__success[hidden] { display: none; }
.form__success:focus { outline: none; }
.form__success-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-2);
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.form__success-title { font-size: var(--fs-h3); letter-spacing: -0.025em; }
.form__success p { color: var(--text-muted); max-width: 30rem; }
@media (prefers-reduced-motion: no-preference) {
  .form__success:not([hidden]) { animation: success-in 600ms var(--ease-out); }
}
@keyframes success-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.form-panel {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--inner-hi), var(--shadow-lg);
}

/* Contact aside next to a form: eyebrow, h2, lead, then dl.contact__details */
.contact__aside { display: grid; gap: var(--space-6); align-content: start; }
.contact__details { display: grid; margin-top: var(--space-3); border-top: 1px solid var(--line); }
.contact__details > div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: var(--space-4);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.contact__details dt { padding-top: 2px; }
.contact__details dd { color: var(--text); }
.contact__details a { transition: color var(--dur-fast); }
.contact__details a:hover { color: var(--accent); }
@media (max-width: 479px) {
  .contact__details > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* 21. Chips and notes */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.3;
}
.chip .icon { width: 16px; height: 16px; color: var(--accent); }

.note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--accent-soft);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.note strong { color: var(--text); }
.note .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }

.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; font-size: var(--fs-sm); color: var(--text-muted); }
.checklist li strong { font-weight: 500; }
.checklist .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }

/* 22. Mockup frame and UI kit (HTML/CSS product UI, always aria-hidden="true") */
.frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  box-shadow: var(--inner-hi), var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  user-select: none;
}
.frame__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.frame__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.frame__glyph { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.frame__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--text-faint);
  white-space: nowrap;
}
.frame__body { padding: 18px; }
.frame--float { box-shadow: var(--inner-hi), var(--shadow-lg), 0 0 120px -40px var(--accent-glow); }

.ui-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.3;
}
.ui-value {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ui-value small { font-size: 0.55em; color: var(--text-faint); letter-spacing: 0; margin-left: 2px; }
.ui-muted { color: var(--text-muted); }
.ui-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; }
.ui-up { color: var(--success); }
.ui-down { color: var(--danger); }

.ui-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}
.ui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ui-row:last-child { border-bottom: 0; }
.ui-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.ui-kv dt { color: var(--text-faint); }
.ui-kv dd { text-align: right; font-variant-numeric: tabular-nums; }

.ui-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  white-space: nowrap;
}
.ui-chip--accent { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }

.ui-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.ui-dot--ok { background: var(--success); }
.ui-dot--off { background: var(--text-ghost); }
@media (prefers-reduced-motion: no-preference) {
  .ui-dot--live { animation: live-dot 2.4s var(--ease-in-out) infinite; }
}
@keyframes live-dot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
  55% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* Bars: --h (0 to 100) per .ui-bar. Forecast range: .ui-bars--range with --lo, --hi, --h on plain spans. */
.ui-bars { display: flex; align-items: flex-end; gap: 4px; height: var(--bars-h, 88px); }
.ui-bar,
.ui-bars--range > span {
  position: relative;
  flex: 1;
  height: calc(var(--h, 50) * 1%);
  min-width: 3px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent));
}
.ui-bar--muted { background: color-mix(in srgb, var(--text) 14%, transparent); }
.ui-bar--range,
.ui-bars--range > span { height: 100%; border-radius: 3px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.ui-bar--range::before,
.ui-bars--range > span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--lo, 30) * 1%);
  height: calc((var(--hi, 70) - var(--lo, 30)) * 1%);
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.ui-bar--range::after,
.ui-bars--range > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--h, 50) * 1%);
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.ui-progress {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.ui-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p, 50) * 1%);
  border-radius: inherit;
  background: var(--accent);
}

/* Voice waveform: plain spans get varied heights from CSS; --h (10 to 100) overrides one bar. */
.ui-wave { display: flex; align-items: center; justify-content: space-between; gap: 2px; height: var(--wave-h, 40px); }
.ui-wave span {
  flex: 0 1 3px;
  min-width: 2px;
  height: calc(var(--h, 40) * 1%);
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.9;
}
.ui-wave span:nth-child(2n) { --h: 62; }
.ui-wave span:nth-child(3n) { --h: 30; }
.ui-wave span:nth-child(5n) { --h: 86; }
.ui-wave span:nth-child(7n) { --h: 50; }
.ui-wave span:nth-child(11n) { --h: 100; }
.ui-wave span:nth-child(13n + 4) { --h: 20; }
.ui-wave span:nth-child(17n + 9) { --h: 74; }
@media (prefers-reduced-motion: no-preference) {
  .ui-wave--live span { animation: wave 1.8s var(--ease-in-out) infinite; transform-origin: center; }
  .ui-wave--live span:nth-child(3n) { animation-delay: -0.4s; }
  .ui-wave--live span:nth-child(3n + 1) { animation-delay: -0.9s; }
  .ui-wave--live span:nth-child(4n) { animation-delay: -1.3s; }
}
@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.45); }
}

.ui-thread { display: grid; gap: 8px; }
.ui-bubble {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.45;
}
.ui-bubble--in { justify-self: start; background: var(--surface-3); color: var(--text); border-bottom-left-radius: 4px; }
.ui-bubble--out {
  justify-self: end;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--text);
  border-bottom-right-radius: 4px;
}
.ui-bubble__meta { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }

.ui-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ui-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.ui-step--done { border-color: var(--accent-line); color: var(--text); }
.ui-step--done::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.ui-step-sep { width: 14px; height: 1px; background: var(--line-max); }

/* 23. Backgrounds */
.bg-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(120% 75% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 75% at 50% 0%, #000 20%, transparent 75%);
}
.bg-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 55% at 50% -10%, var(--accent-glow), transparent 70%);
}
.bg-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-night {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(244, 239, 226, 0.8), transparent 60%),
    radial-gradient(1px 1px at 27% 62%, rgba(244, 239, 226, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 27%, rgba(244, 239, 226, 0.7), transparent 60%),
    radial-gradient(1px 1px at 58% 78%, rgba(244, 239, 226, 0.45), transparent 60%),
    radial-gradient(1px 1px at 66% 12%, rgba(244, 239, 226, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 79% 44%, rgba(244, 239, 226, 0.55), transparent 60%),
    radial-gradient(1px 1px at 88% 70%, rgba(244, 239, 226, 0.7), transparent 60%),
    radial-gradient(1px 1px at 94% 22%, rgba(244, 239, 226, 0.45), transparent 60%),
    radial-gradient(1px 1px at 6% 84%, rgba(244, 239, 226, 0.5), transparent 60%),
    radial-gradient(1px 1px at 35% 92%, rgba(244, 239, 226, 0.4), transparent 60%),
    radial-gradient(70% 60% at 85% 0%, rgba(154, 164, 240, 0.16), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(35, 40, 97, 0.5), transparent 70%);
}
.moon {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 38% 34%, #f6f7ff 0%, #c7cdff 38%, #7f89dc 72%, #3a4194 100%);
  box-shadow: 0 0 120px 10px rgba(199, 205, 255, 0.18);
  -webkit-mask-image: radial-gradient(circle at 74% 36%, transparent 47%, #000 47.6%);
  mask-image: radial-gradient(circle at 74% 36%, transparent 47%, #000 47.6%);
}
.hairline { height: 1px; background: var(--line); border: 0; }

/* 24. Prose (legal and long text) */
.prose { max-width: 44rem; color: var(--text-muted); font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.6em; font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.25; }
.prose h3 { margin-top: 2em; font-size: 1.125rem; letter-spacing: -0.015em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--text-faint); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-max); text-underline-offset: 0.2em; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose dl { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: 10px 24px; }
.prose dt { color: var(--text-faint); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.35em; }
.prose dd { color: var(--text); }
@media (max-width: 539px) {
  .prose dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .prose dd + dt { margin-top: 12px; }
}

/* 25. Reveal and motion */
@media (prefers-reduced-motion: no-preference) {
  .has-reveal .reveal {
    transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .has-reveal .reveal:not(.is-visible) { opacity: 0; transform: translate3d(0, 18px, 0); }
  .reveal-group > .reveal:nth-child(2) { --reveal-delay: 70ms; }
  .reveal-group > .reveal:nth-child(3) { --reveal-delay: 140ms; }
  .reveal-group > .reveal:nth-child(4) { --reveal-delay: 210ms; }
  .reveal-group > .reveal:nth-child(5) { --reveal-delay: 280ms; }
  .reveal-group > .reveal:nth-child(6) { --reveal-delay: 350ms; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 26. Utilities */
.relative { position: relative; }
.sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 1023px) {
  .sticky { position: static; }
}
.isolate { isolation: isolate; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.max-measure { max-width: var(--measure); }
@media (max-width: 639px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 640px) {
  .show-mobile { display: none !important; }
}
