/* =====================================================================
   Nerdcode — design system
   Monochrome with tuned shades. One accent (Xava cobalt), used sparingly.
   ===================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Whites */
  --paper: #ffffff;
  --paper-2: #f6f6f3;
  --paper-3: #ecece8;
  --line: #e4e4df;
  --line-2: #cfcfc9;

  /* Blacks */
  --ink: #0a0a0a;
  --ink-2: #262626;
  --ink-3: #5a5a57;
  --ink-4: #6f6f6b;
  --black: #0b0b0b;
  --black-2: #151515;
  --black-3: #222222;
  --line-dark: #2a2a2a;
  --line-dark-2: #3a3a3a;
  --ink-on-dark: #ffffff;
  --ink-on-dark-2: #a3a3a0;
  --ink-on-dark-3: #7c7c79;

  /* The one colour */
  --accent: #2b47e6;
  --accent-ink: #2440cc;
  --accent-soft: #e9ecfc;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(76px, 8.5vw, 124px);
  --radius: 8px;
  --radius-lg: 16px;
  --header-h: 68px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  /* clip (not hidden) so the ticker and floating cards can't cause a sideways
     scroll on very narrow screens, while position: sticky keeps working */
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  border-radius: 6px; font-size: 0.875rem; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ------------------------------------------------------------------ type */
.h-display, .h1, .h2, .h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
.h-display { font-size: clamp(2.75rem, 7vw, 5.75rem); letter-spacing: -0.04em; }
.h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.06; letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; letter-spacing: -0.02em; }
.h4 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-3);
  text-wrap: pretty;
  max-width: 34em;
}
.body { color: var(--ink-3); text-wrap: pretty; max-width: 38em; }
.small { font-size: 0.9375rem; }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-4);
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
  flex: none;
  margin-top: 0.5em;
}
.hide-sm { display: inline; }
@media (max-width: 620px) { .hide-sm { display: none; } }
.eyebrow .dot.accent { background: var(--accent); }

.link {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500;
  padding-bottom: 2px;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link .arrow { transition: transform 0.35s var(--ease-out); }
.link:hover .arrow { transform: translateX(3px); }
.link.ext .arrow { transform: rotate(-45deg); }
.link.ext:hover .arrow { transform: rotate(-45deg) translate(2px, -1px); }

.text-link { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.18em; transition: text-decoration-color 0.25s; }
.text-link:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------------ layout */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section.tight { padding-block: clamp(60px, 7vw, 96px); }
.section-head {
  display: grid; gap: 20px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.section-head .h2 { max-width: 16em; }
.section-head .lead { max-width: 30em; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1fr 1fr; align-items: end; }
  .section-head.split .lead { justify-self: end; margin-bottom: 4px; }
}
.index {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-4); font-weight: 500;
}
.index::before { content: ""; width: 28px; height: 1px; background: var(--ink-4); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.band { background: var(--paper-2); }
.band-dark { background: var(--black); color: var(--ink-on-dark); }
.band-dark .lead, .band-dark .body, .band-dark .muted { color: var(--ink-on-dark-2); }
.band-dark .eyebrow, .band-dark .index, .band-dark .faint { color: var(--ink-on-dark-3); }
.band-dark .index::before { background: var(--ink-on-dark-3); }
.band-dark .eyebrow .dot { background: var(--ink-on-dark); }
.band-dark ::selection { background: var(--paper); color: var(--ink); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  border: 1px solid transparent;
}
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.band-dark .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band-dark .btn-primary:hover { background: #e9e9e6; border-color: #e9e9e6; }
.band-dark .btn-secondary { color: var(--ink-on-dark); border-color: var(--line-dark-2); }
.band-dark .btn-secondary:hover { border-color: var(--ink-on-dark); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1.0625rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------------ header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; height: 40px; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 6px;
  font-size: 0.9375rem; color: var(--ink-3); font-weight: 450;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { height: 40px; padding: 0 16px; font-size: 0.9rem; }
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 6px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  margin-right: -8px;
}
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
body.nav-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 40;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: none; flex-direction: column; justify-content: space-between;
}
body.nav-open .mobile-nav { display: flex; }
body.nav-open { overflow: hidden; }
.mobile-nav ol { display: grid; gap: 4px; }
.mobile-nav ol a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.75rem, 7vw, 2.5rem); letter-spacing: -0.03em; font-weight: 500; line-height: 1.1;
}
.mobile-nav ol a .mono { color: var(--ink-4); font-size: 0.75rem; }
.mobile-nav-foot { display: grid; gap: 8px; color: var(--ink-3); font-size: 0.9375rem; }

@media (max-width: 900px) {
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ------------------------------------------------------------------ hero (home) */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 64px));
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero-scene {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
.hero-scene canvas { width: 100%; height: 100%; }
.hero-scene.is-fallback canvas { display: none; }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-logo-slot {
  width: min(100%, 1040px);
  aspect-ratio: 1770 / 385;
  margin: 0 auto clamp(36px, 5vw, 72px);
  position: relative;
}
/* Without JS (or without WebGL) the mark simply fades in on its own.
   When the particle field takes over it adds .is-ready and drives opacity inline. */
.hero-logo-slot img {
  width: 100%; height: auto;
  will-change: opacity, transform;
  animation: heroLogoIn 2.2s var(--ease-out) both;
}
.hero-scene.is-ready ~ .hero-inner .hero-logo-slot img { animation: none; }
@keyframes heroLogoIn { 0%, 35% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-logo-slot img { animation: none; } }
.hero .eyebrow { justify-content: center; margin-bottom: 22px; }
.hero .h-display { max-width: 11em; margin-inline: auto; }
.hero .lead { margin: 24px auto 0; max-width: 36em; }
.hero .actions { justify-content: center; margin-top: 36px; }
.hero-index {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 500;
}
.hero-index a { display: inline-flex; gap: 10px; transition: color 0.2s; }
.hero-index a:hover { color: var(--ink); }
.hero-index a b { font-weight: 500; color: var(--ink-3); }
@media (max-width: 640px) {
  .hero-index { justify-content: flex-start; gap: 10px 20px; }
}

/* ------------------------------------------------------------------ page hero (inner pages) */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(64px, 10vw, 132px));
  padding-bottom: clamp(48px, 6vw, 80px);
}
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero .h1 { max-width: 12em; }
.page-hero .lead { margin-top: 26px; }
.page-hero .actions { margin-top: 34px; }

/* ------------------------------------------------------------------ statement */
.statement {
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 450;
  max-width: 24em;
  text-wrap: pretty;
  color: var(--ink-2);
}
.statement em { font-style: normal; color: var(--ink-4); }

/* ------------------------------------------------------------------ service cards */
.grid-2 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--paper);
  padding: clamp(28px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
  transition: background-color 0.3s var(--ease);
}
.card:hover { background: var(--paper-2); }
.card .schematic { color: var(--ink-3); }
.card .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.card .h3 { margin-top: 4px; }
.card .body { margin-top: 10px; max-width: 30em; }
.card ul.outcomes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.card ul.outcomes li {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-3);
}
.card .card-link { margin-top: auto; align-self: flex-start; }
.card .card-num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ink-4); font-weight: 500; }
.schematic { width: 100%; max-width: 360px; height: auto; }
.schematic text { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; fill: currentColor; text-transform: uppercase; }
.schematic .box { fill: var(--paper); stroke: currentColor; stroke-width: 1.2; }
.card:hover .schematic .box { fill: var(--paper-2); }
.schematic .wire { fill: none; stroke: currentColor; stroke-width: 1.2; }
.schematic .dash { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 3 3; }
.schematic .fill { fill: currentColor; }
.schematic .soft { fill: var(--paper-3); }
.schematic .accent { fill: var(--accent); }
.schematic .accent-stroke { stroke: var(--accent); }

/* ------------------------------------------------------------------ process */
.process { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .process { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .process .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
}
.process .sticky .lead { margin-top: 20px; }
.process .sticky .actions { margin-top: 32px; }
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.4s var(--ease);
  color: var(--ink-4);
}
.step .num { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; padding-top: 5px; font-weight: 500; }
.step .h3 { color: inherit; transition: color 0.4s var(--ease); }
.step p { margin-top: 8px; max-width: 32em; color: var(--ink-4); transition: color 0.4s var(--ease); }
.step.is-active { color: var(--ink); }
.step.is-active p { color: var(--ink-3); }
@media (hover: hover) { .step:hover { color: var(--ink); } .step:hover p { color: var(--ink-3); } }
@media (max-width: 959px) { .step, .step p { color: var(--ink); } .step p { color: var(--ink-3); } }

/* ------------------------------------------------------------------ product (Xava) */
.product { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .product { grid-template-columns: 1fr 1fr; gap: 72px; } }
.product .h2 { margin-top: 20px; }
.product .lead { margin-top: 22px; }
.product .steps-mini { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.product .steps-mini li {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
}
.product .steps-mini .num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-on-dark-3); padding-top: 4px; }
.product .steps-mini b { font-weight: 500; display: block; }
.product .steps-mini span { color: var(--ink-on-dark-2); font-size: 0.9375rem; }
.product .actions { margin-top: 36px; }
.product-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; padding-block: 34px; }
.product-visual .halo {
  position: absolute; inset: 8% 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.08), rgba(255,255,255,0));
}
.section.product-light .product .steps-mini { border-top-color: var(--line); }
.section.product-light .product .steps-mini li { border-bottom-color: var(--line); }
.section.product-light .product .steps-mini .num { color: var(--ink-4); }
.section.product-light .product .steps-mini span { color: var(--ink-3); }
.section.product-light .product-visual .halo { background: radial-gradient(closest-side, rgba(43,71,230,0.08), rgba(43,71,230,0)); }

/* phone mock */
.phone {
  position: relative; z-index: 1;
  width: 100%; border-radius: 40px;
  background: var(--black-2);
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
}
.product-light .phone { box-shadow: 0 30px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06); }
.phone-screen {
  background: var(--paper); color: var(--ink);
  border-radius: 32px; overflow: hidden;
  padding: 18px 18px 20px;
  font-size: 0.8125rem; line-height: 1.4;
}
.phone-notch { width: 96px; height: 24px; background: var(--black-2); border-radius: 999px; margin: 0 auto 16px; }
.xava-mark { display: inline-flex; align-items: baseline; font-weight: 700; letter-spacing: -0.03em; font-size: 1.1rem; color: var(--accent); }
.xava-mark i { font-style: normal; width: 6px; height: 6px; border-radius: 50%; background: #ff5a4e; margin-left: 2px; }
.phone-row { display: flex; justify-content: space-between; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: #1f9d55; }
.phone-person { margin-top: 18px; display: flex; gap: 12px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--paper-3); display: grid; place-items: center; font-weight: 500; color: var(--ink-3); font-size: 0.8rem; }
.phone-person b { display: block; font-weight: 500; font-size: 0.9rem; }
.phone-person span { color: var(--ink-3); font-size: 0.75rem; }
.phone-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin-top: 20px; }
.tip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.tip { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 0; text-align: center; font-weight: 500; font-size: 0.95rem; }
.tip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.phone-sum { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.78rem; color: var(--ink-3); }
.phone-sum div { display: flex; justify-content: space-between; }
.phone-sum .total { color: var(--ink); font-weight: 500; font-size: 0.9rem; padding-top: 6px; border-top: 1px solid var(--line); }
.phone-pay { margin-top: 14px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 0.9rem; }
.phone-foot { margin-top: 12px; text-align: center; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.phone-stage { position: relative; z-index: 1; width: 300px; max-width: 100%; }
.chip-float {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 10px 14px 10px 10px;
  font-size: 0.8125rem; font-weight: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.06);
}
.chip-float .ring { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; position: relative; }
.chip-float .ring::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chip-float .ring::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0.5; animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
.chip-float.tl { top: -28px; left: -92px; }
.chip-float.br { bottom: -28px; right: -96px; }
.chip-float small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.72rem; }
@media (max-width: 1100px) {
  .chip-float.tl { left: -56px; }
  .chip-float.br { right: -58px; }
}
@media (max-width: 560px) {
  .product-visual { min-height: 0; padding: 20px 0 8px; }
  .phone, .phone-stage { width: 272px; }
  .chip-float { font-size: 0.75rem; padding: 8px 12px 8px 8px; }
  .chip-float small { font-size: 0.66rem; }
  .chip-float.tl { top: -24px; left: -14px; }
  .chip-float.br { bottom: -24px; right: -14px; }
}

/* ------------------------------------------------------------------ why grid */
.grid-3 { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.cell {
  padding: clamp(26px, 3vw, 40px) clamp(22px, 2.6vw, 36px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 40px;
  min-height: 250px;
  transition: background-color 0.3s var(--ease);
}
.cell:hover { background: var(--paper-2); }
.cell .num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ink-4); font-weight: 500; }
.cell .h4 { font-size: 1.1875rem; }
.cell p { margin-top: 10px; color: var(--ink-3); font-size: 0.9875rem; }
.band .cell:hover { background: var(--paper); }

/* ------------------------------------------------------------------ timeline (how agentic AI works) */
.timeline { display: grid; gap: 24px; counter-reset: tl; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.tl-item { position: relative; padding: 28px 24px 0 0; border-top: 1px solid var(--line-2); }
.tl-item::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
}
.tl-item .num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ink-4); font-weight: 500; }
.tl-item .h4 { margin-top: 12px; font-size: 1.125rem; }
.tl-item p { margin-top: 8px; color: var(--ink-3); font-size: 0.9875rem; max-width: 22em; }

/* ------------------------------------------------------------------ feature (services page detail) */
.feature { display: grid; gap: 36px; padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
@media (min-width: 960px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .feature .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
}
.feature .num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--ink-4); font-weight: 500; }
.feature .h2 { margin-top: 18px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.feature .lead { margin-top: 18px; font-size: 1.125rem; }
.feature .schematic { margin-top: 30px; color: var(--ink-3); }
.feature-body { display: grid; gap: 36px; }
.feature-body h3 { font-size: 0.75rem; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); font-weight: 500; margin-bottom: 14px; }
.feature-body p { color: var(--ink-3); max-width: 36em; }
.list-check { display: grid; gap: 12px; }
.list-check li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--ink-2); }
.list-check li::before { content: ""; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; border: 1px solid var(--ink); background: radial-gradient(circle, var(--ink) 0 2.5px, transparent 3px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-3); }

/* ------------------------------------------------------------------ principles */
.principles { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 860px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { background: var(--paper); padding: clamp(28px, 3.4vw, 44px) clamp(22px, 2.6vw, 36px) clamp(28px, 3.4vw, 44px) 0; }
@media (min-width: 860px) { .principle { padding-inline: clamp(22px, 2.6vw, 36px); } .principle:first-child { padding-left: 0; } }
.principle .big { font-size: clamp(2.4rem, 4.5vw, 3.5rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--ink-4); font-family: var(--font-mono); }
.principle .h4 { margin-top: 28px; font-size: 1.1875rem; }
.principle p { margin-top: 10px; color: var(--ink-3); max-width: 26em; }

/* ------------------------------------------------------------------ CTA */
.cta { text-align: left; }
.cta-inner { display: grid; gap: 32px; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 7fr 5fr; align-items: end; gap: 64px; } }
.cta .h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); max-width: 12em; }
.cta .lead { margin-top: 22px; }
.cta .actions { margin-top: 32px; }
.contact-lines { display: grid; gap: 14px; }
.contact-lines > a, .contact-lines > span { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.0625rem; transition: color 0.2s; }
.contact-lines > a:hover { color: var(--ink); }
.contact-lines .mono { color: var(--ink-4); flex: none; }
.contact-lines > a:last-child, .contact-lines > span:last-child { border-bottom: 1px solid var(--line); }
.band-dark .contact-lines > a, .band-dark .contact-lines > span { border-color: var(--line-dark); }

/* ------------------------------------------------------------------ ticker */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--ink-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: inline-flex; gap: 0; animation: ticker 70s linear infinite; will-change: transform; }
.ticker-track span { padding-right: 3em; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ------------------------------------------------------------------ contact page */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 96px; align-items: start; } }
.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.field label small { font-weight: 400; color: var(--ink-4); }
.field input, .field textarea, .field select {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a0a0a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,10,10,0.08); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot .note { font-size: 0.875rem; color: var(--ink-4); max-width: 30em; }
.form-status { font-size: 0.9375rem; color: var(--ink-3); min-height: 1.5em; }
.form-status.ok { color: var(--ink); }
.form-status.err { color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ prose (legal) */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; margin: 48px 0 14px; }
.prose h3 { font-size: 1.0625rem; font-weight: 500; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-3); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose .updated { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 32px; background: var(--paper); position: relative; overflow: hidden; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; } }
.footer .brand img { width: 168px; }
.footer .tag { margin-top: 20px; color: var(--ink-3); max-width: 24em; font-size: 0.9875rem; }
.footer h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); font-weight: 500; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--ink-3); font-size: 0.9875rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 0.8125rem; color: var(--ink-4);
}
.footer-bottom .binary { font-family: var(--font-mono); letter-spacing: 0.08em; font-size: 0.72rem; }
.footer-bottom .binary abbr { text-decoration: none; cursor: help; }

/* ------------------------------------------------------------------ reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ------------------------------------------------------------------ misc */
.stack { display: grid; gap: 16px; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 80px; } }
.notfound { min-height: 70vh; display: flex; align-items: center; }
.big-num { font-family: var(--font-mono); font-size: clamp(4rem, 14vw, 9rem); line-height: 1; letter-spacing: -0.06em; color: var(--paper-3); font-weight: 300; }
