/* ==========================================================================
   Agentry — design system
   Editorial, warm-paper palette. One accent. Mono labels. Serif italics.
   ========================================================================== */

:root {
  --paper: #fbfaf7;
  --paper-2: #f3f2ed;
  --paper-3: #e7e5dd;
  --ink: #131312;
  --ink-2: #3b3b36;
  --muted: #70706a;
  --line: rgba(19, 19, 18, 0.12);
  --line-strong: rgba(19, 19, 18, 0.21);

  --accent-rgb: 77, 74, 227;
  --ink-rgb: 19, 19, 18;
  --paper-rgb: 251, 250, 247;
  --amber-rgb: 201, 118, 31;

  --accent: #4d4ae3;
  --accent-2: #3a37c4;
  --accent-soft: rgba(77, 74, 227, 0.09);
  --live: #16914a;
  --amber: #c9761f;
  --rose: #c74848;

  --dark: #131312;
  --dark-2: #1c1c1a;
  --dark-3: #262623;
  --dark-line: rgba(251, 250, 247, 0.13);
  --dark-muted: rgba(251, 250, 247, 0.62);

  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: calc(var(--r) - 4px);
  --r: 12px;
  --r-lg: calc(var(--r) + 6px);
  --r-xl: calc(var(--r) + 14px);

  --container: 1200px;
  --gutter: clamp(1.25rem, 0.7857rem + 1.9048vw, 2.5rem);
  --section: clamp(4.5rem, 3.0143rem + 6.0952vw, 8.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* shadows are tinted with ink, never black */
  --shadow-sm: 0 1px 2px rgba(19,19,18,.05), 0 2px 6px -2px rgba(19,19,18,.07);
  --shadow-md: 0 4px 10px -4px rgba(19,19,18,.10), 0 12px 28px -6px rgba(19,19,18,.12);
  --shadow-lg: 0 12px 28px -6px rgba(19,19,18,.14), 0 32px 64px -28px rgba(19,19,18,.28);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
[hidden] { display: none !important; }

/* ---------- utilities ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: clamp(3rem, 2.0714rem + 3.8095vw, 5.5rem); }
.serif {
  font-family: inherit; font-style: normal; font-weight: inherit;
  letter-spacing: inherit;
}
.muted { color: var(--muted); }
.hide-mobile { display: initial; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.eyebrow.plain::before { display: none; }

.h1 { font-size: clamp(2.75rem, 1.6357rem + 4.5714vw, 5.75rem); line-height: 0.95; letter-spacing: -0.035em; font-weight: 500; }
.h2 { font-size: clamp(2.125rem, 1.5214rem + 2.4762vw, 3.75rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; }
.h3 { font-size: clamp(1.375rem, 1.2357rem + 0.5714vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.lead { font-size: clamp(1.125rem, 1.0554rem + 0.2857vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.serif { font-size: inherit; }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(2.5rem, 1.7571rem + 3.0476vw, 4.5rem); }
.section-head .lead { max-width: 56ch; }
.section-head.split { grid-template-columns: 1.2fr 1fr; align-items: end; }
.section-head.split .lead { justify-self: end; }
.section-head.center { text-align: center; justify-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(var(--paper-rgb), 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; color: var(--paper); }
.brand-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(var(--ink-rgb), .06); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); place-items: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
.nav-mobile { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: calc(76px + clamp(3rem, 1.5607rem + 5.9048vw, 6.875rem)); padding-bottom: clamp(3.5rem, 2.4786rem + 4.1905vw, 6.25rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(var(--accent-rgb), .10), transparent 60%),
    radial-gradient(40% 40% at 10% 90%, rgba(var(--amber-rgb), .07), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 1.0714rem + 3.8095vw, 4.5rem); align-items: center; position: relative; }
.hero-copy { display: grid; gap: 28px; }
.hero-copy .h1 {
  font-size: clamp(2.25rem, 1.6786rem + 2.3452vw, 3.75rem);
  max-width: none; text-wrap: initial;
}
/* the explicit <br> carries the sentence break, so don't let balance fight it */
.hero-copy .h1 br { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 20px 28px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 8px; }
.proof { display: grid; gap: 2px; }
.proof strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.03em; font-weight: 600; }
.proof span { font-size: 13px; color: var(--muted); }

/* console mock */
.console-wrap { position: relative; }
.console {
  background: var(--dark); color: var(--paper); border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -30px rgba(var(--ink-rgb), .45), 0 0 0 1px rgba(255,255,255,.06) inset;
  overflow: hidden; font-size: 14px; position: relative;
}
.console::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.console-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--dark-line); font-family: var(--font-mono); font-size: 12px; color: var(--dark-muted); }
.console-bar .dots { display: flex; gap: 6px; } .console-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.console-bar .title { display: flex; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #8ef0b2; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55);} 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0);} 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0);} }
.console-body { padding: 18px 18px 8px; min-height: 300px; display: grid; align-content: start; gap: 10px; }
.log { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); opacity: 0; transform: translateY(6px); animation: logIn .5s var(--ease) forwards; }
@keyframes logIn { to { opacity: 1; transform: none; } }
.log .ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.log .ic svg { width: 12px; height: 12px; }
.log .ic.ok { background: rgba(22,163,74,.18); color: #8ef0b2; }
.log .ic.wait { background: rgba(var(--amber-rgb), .18); color: #ffc48a; }
.log .ic.run { background: rgba(var(--accent-rgb), .25); color: #b7c4ff; }
.log .txt { line-height: 1.4; }
.log .txt small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--dark-muted); margin-top: 3px; }
.log .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--dark-muted); white-space: nowrap; }
.log .tag.hitl { background: rgba(var(--amber-rgb), .18); color: #ffc48a; }
.hide-sm { display: inline; }
@media (max-width: 1180px) { .hide-sm { display: none; } }
.console-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px 16px; border-top: 1px solid var(--dark-line); font-family: var(--font-mono); font-size: 11.5px; color: var(--dark-muted); }
.console-foot b { color: var(--paper); font-weight: 500; }
.chip-float { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 20px 40px -20px rgba(var(--ink-rgb), .4), 0 0 0 1px var(--line); display: grid; gap: 2px; min-width: 150px; }
.chip-float span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chip-float strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.03em; }
.chip-float em { font-style: normal; font-size: 12px; color: var(--live); font-weight: 600; }
.chip-a { top: -18px; right: -14px; animation: floatA 6s ease-in-out infinite; }
.chip-b { bottom: -22px; left: -18px; animation: floatB 7s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translateY(-8px); } }
@keyframes floatB { 50% { transform: translateY(8px); } }

/* ---------- tools / integrations ----------
   Icons are a self-authored monochrome set so the strip stays inside the
   editorial palette; full-colour brand SVGs can drop straight into the sprite. */
.tools { border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; overflow: hidden; }
.tools-row { display: grid; grid-template-columns: 190px 1fr; gap: clamp(14px, 2vw, 30px); padding: 20px clamp(18px, 2.2vw, 28px); align-items: start; }
.tools-row + .tools-row { border-top: 1px solid var(--line); }
/* the last light row butts onto the dark stack, a much harder edge than the
   hairlines above it, so it needs more room underneath than the 20px rhythm */
.tools-row:has(+ .tools-stack) { padding-bottom: 30px; }
.tools-row h4 { margin: 0; padding-top: 9px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tool-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tool {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 8px 14px 8px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2);
  transition: transform .3s var(--ease), border-color .25s, color .25s, box-shadow .25s;
}
.tool svg {
  width: 17px; height: 17px; flex: none; color: var(--brand, var(--ink));
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.tool:hover { transform: translateY(-2px); border-color: var(--line-strong); color: var(--ink); box-shadow: var(--shadow-sm); }
.tools-note { margin: 14px 0 0; max-width: 64ch; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* the stack wall: two tracks running against each other on a dark inset */
.tools-stack { background: var(--dark); padding: 30px 0 26px; }
.tools-stack > h4,
.tools-stack > .tools-note { padding-inline: clamp(18px, 2.2vw, 28px); }
.tools-stack > h4 { margin: 0 0 16px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-muted); }
.tools-stack > .tools-note { margin-top: 18px; color: var(--dark-muted); }
.tools-stack .marquee-track { gap: 10px; padding-right: 10px; animation-duration: 64s; }
.tools-stack .marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 78s; }
.tools-stack .marquee + .marquee { margin-top: 10px; }
.tool-dark { background: rgba(251, 250, 247, .05); border-color: var(--dark-line); color: var(--dark-muted); }
.tool-dark svg { color: var(--brand, var(--paper)); }
.tool-dark:hover { background: rgba(251, 250, 247, .1); border-color: rgba(251, 250, 247, .3); color: var(--paper); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .tool { transition: none; }
  .tool:hover { transform: none; }
  /* stop every marquee and drop the duplicated track, leaving a swipeable strip */
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee-track { animation: none; }
  .marquee .marquee-track + .marquee-track { display: none; }
}

/* ---------- marquee ---------- */
.marquee-section { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--paper-2); }
.marquee-label { display: flex; justify-content: center; text-align: center; margin-bottom: 18px; padding: 0 var(--gutter); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; padding-right: 56px; animation: marquee 38s linear infinite; flex-shrink: 0; align-items: center; }
.marquee:hover .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee-item { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; opacity: .8; }
.marquee-item small { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.2214rem + 1.1429vw, 2.25rem); display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(var(--ink-rgb), .4); border-color: var(--line-strong); }
.card .h3 { max-width: 20ch; }
.card p { color: var(--ink-2); font-size: 16px; max-width: 48ch; }
.card .card-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.card-vis { margin-top: auto; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); padding: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.card.dark { background: var(--dark); color: var(--paper); border-color: transparent; }
.card.dark p { color: var(--dark-muted); }
.card.dark .card-num { color: var(--dark-muted); }
.card.dark .card-vis { background: var(--dark-2); border-color: var(--dark-line); color: var(--dark-muted); }
.card.accent { background: var(--accent); color: #fff; border-color: transparent; }
.card.accent p { color: rgba(255,255,255,.8); }
.card.accent .card-num { color: rgba(255,255,255,.7); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-family: var(--font-mono); font-size: 11.5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); }
.card.dark .pill { background: rgba(255,255,255,.06); border-color: var(--dark-line); color: var(--dark-muted); }

/* mini visuals inside cards */
.vis-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vis-flow .node { padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.vis-flow .arrow { color: var(--muted); }
.card.dark .vis-flow .node { background: var(--dark-3); border-color: var(--dark-line); color: var(--paper); }
.vis-rows { display: grid; gap: 8px; }
.vis-rows .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.card.dark .vis-rows .row { background: var(--dark-3); border-color: var(--dark-line); }
.ok { color: var(--live); } .warn { color: var(--amber); } .bad { color: var(--rose); }
.bar { height: 8px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 1.4s var(--ease); }
.card.dark .bar { background: rgba(255,255,255,.1); }
.in-view .bar i { width: var(--w, 60%); }

/* ---------- problem / system ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 0.8857rem + 4.5714vw, 5rem); align-items: center; }
.split .h2 { max-width: 14ch; }
.checklist { display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.checklist .ic svg { width: 14px; height: 14px; }
.checklist strong { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; margin-bottom: 4px; }
.checklist p { color: var(--ink-2); font-size: 15.5px; }

.system-vis { background: var(--dark); color: var(--paper); border-radius: var(--r-xl); padding: clamp(1.5rem, 1.2214rem + 1.1429vw, 2.25rem); position: relative; overflow: hidden; }
.system-vis::before { content: ""; position: absolute; inset: -40% -20% auto; height: 80%; background: radial-gradient(50% 50% at 50% 50%, rgba(var(--accent-rgb), .20), transparent 70%); pointer-events: none; }
.sys-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; position: relative; }
.sys-col { display: grid; gap: 10px; }
.sys-col .node { padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.sys-col .node i { width: 8px; height: 8px; border-radius: 50%; background: var(--dark-muted); }
.sys-col .node i.on { background: var(--live); }
.sys-core { width: 132px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--accent); font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 15px; line-height: 1.15; position: relative; }
.sys-core::before, .sys-core::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); animation: ring 3.5s ease-out infinite; }
.sys-core::after { animation-delay: 1.75s; }
@keyframes ring { 0% { transform: scale(.85); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.sys-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 4px; }
.sys-feed { margin-top: 22px; border-top: 1px solid var(--dark-line); padding-top: 16px; display: grid; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--dark-muted); }
.sys-feed div { display: flex; justify-content: space-between; gap: 10px; }
.sys-feed b { color: var(--paper); font-weight: 500; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 0.8857rem + 4.5714vw, 5rem); align-items: start; }
.process-sticky { position: sticky; top: 110px; display: grid; gap: 20px; }
.process-steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.step:hover { border-color: var(--line-strong); transform: translateX(6px); }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.step .num b { display: block; font-family: var(--font-display); font-size: 30px; color: var(--ink); letter-spacing: -0.03em; font-weight: 600; margin-top: 2px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.step .when { margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.timeline { display: grid; gap: 8px; }
.timeline .tl { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.timeline .tl i { display: block; height: 10px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.timeline .tl i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--ink); border-radius: 999px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.in-view .timeline .tl i::after { transform: scaleX(1); }
.timeline .tl:nth-child(2) i::after { background: var(--accent); }

/* ---------- use cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 16px; align-content: start; min-height: 300px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; position: relative; }
.case:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(var(--ink-rgb), .4); border-color: var(--line-strong); }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.case-top .idx { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.case h3 { font-size: 22px; line-height: 1.15; }
.case p { color: var(--ink-2); font-size: 15.5px; }
.case .outcome { margin-top: auto; padding-top: 16px; padding-right: 52px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.case .outcome strong { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.03em; font-weight: 600; }
.case .outcome span { font-size: 13px; color: var(--muted); }
.case .arrow { position: absolute; right: 22px; bottom: 22px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .25s, color .25s, transform .25s var(--ease); }
.case .arrow svg { width: 14px; height: 14px; }
.case:hover .arrow { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 0.8857rem + 4.5714vw, 5rem); align-items: center; }
.portrait { border-radius: var(--r-xl); aspect-ratio: 4 / 4.6; background: var(--dark); position: relative; overflow: hidden; display: grid; align-content: end; padding: 28px; color: var(--paper); }
.portrait::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 30% 20%, rgba(var(--accent-rgb), .38), transparent 60%), radial-gradient(60% 60% at 90% 90%, rgba(var(--amber-rgb), .35), transparent 60%); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait.has-photo::before { z-index: 1; background: linear-gradient(to top, rgba(15,16,19,.88) 0%, rgba(15,16,19,.35) 32%, rgba(15,16,19,0) 58%); }
.portrait.has-photo .initials { display: none; }
.portrait.has-photo .cap { z-index: 2; }
.portrait .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: clamp(7.5rem, 5.1786rem + 9.5238vw, 13.75rem); font-weight: 700; letter-spacing: -0.06em; color: rgba(var(--paper-rgb), .10); }
.portrait .cap { position: relative; display: grid; gap: 4px; }
.portrait .cap strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.portrait .cap span { font-size: 13.5px; color: var(--dark-muted); }
.founder-copy { display: grid; gap: 22px; }
.founder-copy .h2 { max-width: 16ch; }
.founder-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.stat { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: grid; gap: 4px; }
.stat strong { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.04em; font-weight: 600; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.exp-list { display: grid; gap: 0; }
.exp-list li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.exp-list li:last-child { border-bottom: 1px solid var(--line); }
.exp-list b { font-weight: 600; }
.exp-list span { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }

/* ---------- stack ---------- */
.stack-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack-group { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.stack-group h4 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stack-group .pill-row .pill { background: var(--paper); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s var(--ease), background .3s; }
.faq summary .plus svg { width: 12px; height: 12px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.faq .answer { padding: 0 0 26px; color: var(--ink-2); max-width: 66ch; font-size: 16px; }

/* ---------- CTA ---------- */
.cta { background: var(--dark); color: var(--paper); border-radius: var(--r-xl); padding: clamp(2.5rem, 1.3857rem + 4.5714vw, 5.5rem); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 90% 20%, rgba(var(--accent-rgb), .26), transparent 60%); pointer-events: none; }
.cta > * { position: relative; }
.cta .h2 { max-width: 14ch; }
.cta p { color: var(--dark-muted); max-width: 46ch; font-size: 17px; }
.cta-side { display: grid; gap: 14px; justify-items: start; }
.cta-side .btn { width: auto; }
.cta-side small { font-family: var(--font-mono); font-size: 12px; color: var(--dark-muted); }

/* ---------- footer ---------- */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.footer ul { display: grid; gap: 10px; font-size: 15px; }
.footer ul a:hover { color: var(--accent); }
.footer .about { max-width: 34ch; color: var(--ink-2); font-size: 15px; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-top: calc(76px + clamp(3rem, 1.8857rem + 4.5714vw, 6rem)); padding-bottom: clamp(2.5rem, 1.7571rem + 3.0476vw, 4.5rem); }
.page-hero .h1 { font-size: clamp(2.5rem, 1.6643rem + 3.4286vw, 4.75rem); max-width: 16ch; }
.page-hero .lead { margin-top: 20px; }

/* services page */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 0.9143rem + 3.4286vw, 4rem); align-items: start; padding: clamp(2.5rem, 1.7571rem + 3.0476vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .h2 { font-size: clamp(1.875rem, 1.55rem + 1.3333vw, 2.75rem); max-width: 14ch; }
.service-row .idx { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; margin-bottom: 14px; display: block; }
.service-body { display: grid; gap: 22px; }
.service-body .lead { font-size: 18px; }
.bullets { display: grid; gap: 10px; }
.bullets li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; font-size: 15.5px; color: var(--ink-2); }
.bullets li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); margin-top: 3px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232445ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 10px; background-repeat: no-repeat; background-position: center; }
.engagements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.engagement { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 14px; align-content: start; }
.engagement.featured { background: var(--dark); color: var(--paper); border-color: transparent; }
.engagement .name { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.engagement.featured .name { color: var(--dark-muted); }
.engagement .h3 { font-size: 26px; }
.engagement .price { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; color: var(--ink-2); }
.engagement.featured .price { color: var(--dark-muted); }
.engagement p { color: var(--ink-2); font-size: 15.5px; }
.engagement.featured p { color: var(--dark-muted); }
.engagement .bullets li { color: inherit; }
.engagement .btn { margin-top: 8px; justify-self: start; }

/* use-cases page */
.uc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.uc-filter button { font-family: var(--font-mono); font-size: 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); transition: background .2s, color .2s; }
.uc-filter button:hover, .uc-filter button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.uc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 0.9143rem + 3.4286vw, 4rem); padding: clamp(2.5rem, 1.7571rem + 3.0476vw, 4.5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.uc:last-of-type { border-bottom: 1px solid var(--line); }
.uc.hidden { display: none; }
.uc-head { display: grid; gap: 16px; align-content: start; position: sticky; top: 110px; }
.uc-head .h2 { font-size: clamp(1.75rem, 1.425rem + 1.3333vw, 2.625rem); max-width: 16ch; }
.uc-head .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.uc-body { display: grid; gap: 24px; }
.uc-block h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.uc-block p { color: var(--ink-2); font-size: 16px; max-width: 60ch; }
.uc-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.uc-results .stat strong { font-size: 28px; }
.uc-shipped { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: var(--paper-2); display: inline-flex; gap: 8px; align-items: center; }

/* about page */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.principle { padding: 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.principle .idx { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.principle h3 { font-size: 22px; }
.principle p { color: var(--ink-2); font-size: 15.5px; }
.exp-timeline { display: grid; gap: 0; }
.exp-timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.exp-timeline li:last-child { border-bottom: 1px solid var(--line); }
.exp-timeline .when { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; padding-top: 4px; }
.exp-timeline h3 { font-size: 20px; margin-bottom: 4px; }
.exp-timeline .role { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.exp-timeline p { color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 0.8857rem + 4.5714vw, 5rem); align-items: start; }
.contact-info { display: grid; gap: 28px; position: sticky; top: 110px; }
.contact-info .h2 { max-width: 14ch; }
.next-steps { display: grid; gap: 0; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.next-steps li:last-child { border-bottom: 1px solid var(--line); }
.next-steps .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding-top: 4px; }
.next-steps strong { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; margin-bottom: 2px; }
.next-steps p { color: var(--ink-2); font-size: 15px; }
.direct { display: grid; gap: 10px; font-size: 15px; }
.direct a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.direct a:hover { color: var(--accent); }
.direct svg { width: 16px; height: 16px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 1.1286rem + 1.5238vw, 2.5rem); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form .fine { font-size: 12.5px; color: var(--muted); }
.form-success { display: none; padding: 24px; border-radius: 14px; background: rgba(22,163,74,.08); border: 1px solid rgba(22,163,74,.3); color: #0f5a2c; }
.form.sent .form-success { display: block; }
.form.sent > :not(.form-success) { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
.reveal[data-delay="4"] { transition-delay: .18s; }

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

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 6; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .stack-groups { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hide-mobile { display: none; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav-mobile { display: none; position: fixed; inset: 76px 0 0 0; background: var(--paper); padding: 24px var(--gutter); z-index: 49; flex-direction: column; gap: 6px; }
  .nav.open .nav-mobile { display: flex; }
  .nav-mobile a { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-mobile .btn { margin-top: 20px; font-size: 16px; padding: 18px; border-bottom: 0; font-family: var(--font-sans); }
  .nav.open { background: var(--paper); }
  .hero-grid, .split, .process, .founder, .cta, .service-row, .uc, .contact-grid { grid-template-columns: 1fr; }
  .section-head.split { grid-template-columns: 1fr; }
  .section-head.split .lead { justify-self: start; }
  
  .console-wrap { margin-top: 24px; }
  .chip-a { right: 6px; top: -14px; } .chip-b { left: 6px; bottom: -14px; }
  .process-sticky, .uc-head, .contact-info { position: static; }
  .founder-stats { grid-template-columns: repeat(3, 1fr); }
  .tools-row { grid-template-columns: 1fr; gap: 13px; }
  .tools-row h4 { padding-top: 0; }
  .engagements { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .exp-timeline li { grid-template-columns: 1fr; gap: 8px; }
  .cta .h2 { max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .cases { grid-template-columns: 1fr; }
  .stack-groups { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .founder-stats { grid-template-columns: 1fr 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .uc-results { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .chip-float { display: none; }
  .log { grid-template-columns: 22px 1fr; }
  .log .tag { grid-column: 2; justify-self: start; }
  .console-foot span:last-child { display: none; }
  .console-body { min-height: 260px; }
}

/* ==========================================================================
   Catalog — fixed-scope service boxes, detail drawer, scope matcher
   ========================================================================== */

/* ---------- lane switcher ---------- */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.lane {
  display: grid; gap: 10px; align-content: start;
  padding: 26px 28px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
  position: relative;
}
.lane:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 24px 44px -32px rgba(var(--ink-rgb), .5); }
.lane .kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lane h2 { font-size: clamp(1.5rem, 1.3607rem + 0.5714vw, 1.875rem); letter-spacing: -0.03em; }
.lane p { color: var(--ink-2); font-size: 15.5px; max-width: 40ch; }
.lane .go { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent); }
.lane .go svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.lane:hover .go svg { transform: translateX(3px); }
.lane.dark { background: var(--dark); border-color: transparent; color: var(--paper); }
.lane.dark .kicker { color: var(--dark-muted); }
.lane.dark p { color: var(--dark-muted); }
.lane.dark .go { color: #b7c4ff; }

/* ---------- catalog grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 16px;
  position: relative; scroll-margin-top: 100px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.svc:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 30px 56px -40px rgba(var(--ink-rgb), .55); }
.svc.hidden { display: none; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.svc-top .idx { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.svc-badge { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.svc-badge.warm { background: rgba(var(--amber-rgb), .12); color: #a75609; }
.svc-badge.calm { background: var(--paper-2); color: var(--ink-2); }
.svc h3 { font-size: 23px; line-height: 1.13; max-width: 18ch; }
.svc .sum { color: var(--ink-2); font-size: 15.5px; }
.svc-points { display: grid; gap: 8px; }
.svc-points li { display: grid; grid-template-columns: 15px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--ink-2); }
.svc-points li::before { content: ""; width: 15px; height: 15px; margin-top: 4px; border-radius: 50%; background: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232445ff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 9px; background-repeat: no-repeat; background-position: center; }
.svc-meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.svc-meta div { display: grid; gap: 2px; }
.svc-meta dt, .svc-meta .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.svc-meta dd, .svc-meta .v { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.svc-price { display: grid; gap: 1px; }
.svc-price span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.svc-price strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.svc-open { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.svc-open:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.svc-open svg { width: 14px; height: 14px; }

/* ---------- service detail (inline fallback + drawer body) ---------- */
.js .svc-full { display: none; }
.svc-full { display: grid; gap: 26px; margin-top: 8px; }
.full-sec { display: grid; gap: 14px; }
.full-sec > h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.full-sec p { color: var(--ink-2); font-size: 15.5px; }
.tiers { display: grid; gap: 12px; }
.tier { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; background: var(--paper); }
.tier.rec { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.tier-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.tier-flag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tier-fit { font-size: 14px; color: var(--muted); }
.tier .bullets li, .tier-list li { font-size: 14.5px; }
.tier-list { display: grid; gap: 8px; }
.tier-list li { display: grid; grid-template-columns: 15px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.tier-list li::before { content: ""; width: 15px; height: 15px; margin-top: 4px; border-radius: 50%; background: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232445ff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 9px; background-repeat: no-repeat; background-position: center; }
.tier-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.tier-meta b { color: var(--ink); font-weight: 500; }
.noinc { display: grid; gap: 8px; }
.noinc li { display: grid; grid-template-columns: 15px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--muted); }
.noinc li::before { content: ""; width: 15px; height: 15px; margin-top: 4px; border-radius: 50%; background: var(--paper-3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23676b75' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); background-size: 9px; background-repeat: no-repeat; background-position: center; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(var(--ink-rgb), .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 81; top: 0; right: 0; height: 100dvh;
  width: min(660px, 100%); background: var(--paper);
  border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(102%); transition: transform .42s var(--ease);
  box-shadow: -40px 0 80px -50px rgba(var(--ink-rgb), .6);
}
.drawer.open { transform: none; }
.drawer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(1.25rem, 0.925rem + 1.3333vw, 2.125rem); border-bottom: 1px solid var(--line); background: var(--paper); }
.drawer-bar .who { display: grid; gap: 3px; }
.drawer-bar .who span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawer-bar .who strong { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; }
.drawer-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; transition: background .2s, color .2s; }
.drawer-close:hover { background: var(--ink); color: var(--paper); }
.drawer-close svg { width: 15px; height: 15px; }
.drawer-body { overflow-y: auto; padding: clamp(1.5rem, 1.2214rem + 1.1429vw, 2.25rem) clamp(1.25rem, 0.925rem + 1.3333vw, 2.125rem); display: grid; gap: 26px; align-content: start; }
.drawer-body .svc-full { display: grid; }
.drawer-head { display: grid; gap: 14px; }
.drawer-head h3 { font-size: clamp(1.75rem, 1.5179rem + 0.9524vw, 2.375rem); letter-spacing: -0.035em; }
.drawer-head .sum { color: var(--ink-2); font-size: 17px; }
.drawer-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px clamp(1.25rem, 0.925rem + 1.3333vw, 2.125rem); border-top: 1px solid var(--line); background: #fff; }
.drawer-foot .fine { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
body.locked { overflow: hidden; }

/* ---------- scope matcher ---------- */
.matcher { background: var(--dark); color: var(--paper); border-radius: var(--r-xl); padding: clamp(1.625rem, 1.2071rem + 1.7143vw, 2.75rem); display: grid; gap: 24px; position: relative; overflow: hidden; }
.matcher::after { content: ""; position: absolute; width: 460px; height: 460px; right: -180px; top: -200px; background: radial-gradient(circle, rgba(var(--accent-rgb), .18), transparent 65%); pointer-events: none; }
.matcher > * { position: relative; }
.mx-head { display: grid; gap: 12px; }
.mx-head .eyebrow { color: var(--dark-muted); }
.mx-head h2 { font-size: clamp(1.625rem, 1.3rem + 1.3333vw, 2.5rem); letter-spacing: -0.035em; max-width: 20ch; }
.mx-head p { color: var(--dark-muted); font-size: 16px; max-width: 54ch; }
.mx-progress { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-muted); }
.mx-progress i { flex: 1; height: 3px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.mx-progress i::after { content: ""; display: block; height: 100%; width: var(--p, 0%); background: var(--accent); border-radius: 999px; transition: width .45s var(--ease); }
.mx-panel { background: rgba(255,255,255,.045); border: 1px solid var(--dark-line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1.0179rem + 0.9524vw, 1.875rem); display: grid; gap: 20px; }
.mx-q { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1107rem + 0.5714vw, 1.625rem); font-weight: 600; letter-spacing: -0.025em; }
.mx-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mx-opt { text-align: left; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--dark-line); display: grid; gap: 4px; transition: background .22s, border-color .22s, transform .22s var(--ease); }
.mx-opt:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.mx-opt.sel { background: var(--accent); border-color: var(--accent); }
.mx-opt b { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.mx-opt span { font-size: 13px; color: var(--dark-muted); }
.mx-opt.sel span { color: rgba(255,255,255,.82); }
.mx-free { display: grid; gap: 8px; }
.mx-free label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-muted); }
.mx-free textarea { font: inherit; font-size: 15px; min-height: 92px; resize: vertical; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--dark-line); color: var(--paper); }
.mx-free textarea::placeholder { color: rgba(var(--paper-rgb), .42); }
.mx-free textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .22); }
.mx-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mx-back { font-family: var(--font-mono); font-size: 12px; color: var(--dark-muted); padding: 10px 0; }
.mx-back:hover { color: var(--paper); }
.mx-result { display: grid; gap: 18px; }
.mx-pick { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.375rem, 1.1893rem + 0.7619vw, 1.875rem); display: grid; gap: 16px; }
.mx-pick .why { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.mx-pick h3 { font-size: clamp(1.5rem, 1.3143rem + 0.7619vw, 2rem); }
.mx-pick p { color: var(--ink-2); font-size: 15.5px; }
.mx-plan { display: grid; gap: 10px; }
.mx-plan li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; font-size: 15px; color: var(--ink-2); padding: 10px 0; border-top: 1px solid var(--line); }
.mx-plan li b { white-space: nowrap; }
.mx-plan li b { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.mx-actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mx-alt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--dark-muted); }
.mx-alt a { color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.3); }
.mx-alt a:hover { border-color: var(--paper); }

/* ---------- consultancy page ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.capability { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 16px; align-content: start; }
.capability .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.capability h3 { font-size: 21px; }
.capability p { color: var(--ink-2); font-size: 15px; }
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.model { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 14px; align-content: start; position: relative; }
.model.dark { background: var(--dark); border-color: transparent; color: var(--paper); }
.model.dark p, .model.dark .tier-meta { color: var(--dark-muted); }
.model.dark .tier-meta { border-color: var(--dark-line); }
.model.dark .tier-meta b { color: var(--paper); }
.model.dark .tier-list li { color: var(--dark-muted); }
.model .name { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.model.dark .name { color: var(--dark-muted); }
.model h3 { font-size: 25px; }
.model p { color: var(--ink-2); font-size: 15.5px; }
.model .btn { justify-self: start; margin-top: 4px; }
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promise div { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); display: grid; gap: 6px; align-content: start; }
.promise strong { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; }
.promise span { font-size: 14px; color: var(--ink-2); }

/* ---------- catalog responsive ---------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .lanes { grid-template-columns: 1fr; }
  .cap-grid, .models { grid-template-columns: 1fr; }
  .mx-opts { grid-template-columns: 1fr; }
  .drawer { width: 100%; border-left: 0; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; }
  .svc-meta { grid-template-columns: 1fr 1fr; }
  .svc-foot .svc-open { width: 100%; justify-content: center; }
}

/* ---------- catalog card art (animated package thumbnails) ----------
   Each .svc card carries a decorative, aria-hidden .svc-art panel: a tiny
   "product moment" for that package, animated with CSS only. Loops run only
   while the card is on screen (catalog.js toggles .is-visible) and are turned
   off under prefers-reduced-motion, where the static finished state shows.
   Timing: slot classes .s1–.s4 appear at ~5 / 25 / 45 / 65 % of --cyc and
   fade together at the end of the cycle; .sdots is a typing indicator shown
   just before .s2. --------------------------------------------------- */
.svc-art {
  position: relative; height: 152px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper);
  background-image: radial-gradient(rgba(var(--ink-rgb), .11) 1px, transparent 1.3px);
  background-size: 14px 14px;
  font-family: var(--font-mono); font-size: 10.5px; line-height: 1.35; color: var(--ink-2);
  -webkit-user-select: none; user-select: none;
}
.svc-art.dark { background: var(--dark); background-image: radial-gradient(rgba(var(--paper-rgb), .12) 1px, transparent 1.3px); background-size: 14px 14px; border-color: transparent; color: var(--dark-muted); }
.art-stage { position: absolute; inset: 12px 14px; display: grid; align-content: start; gap: 6px; transition: transform .5s var(--ease); }
.svc:hover .art-stage { transform: scale(1.015); }

/* primitives */
.a-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-height: 18px; }
.a-head > :first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-art.dark .a-head { color: var(--dark-muted); }
.a-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.a-tag.ok { background: rgba(22,163,74,.13); color: #15803d; }
.a-tag.warn { background: rgba(var(--amber-rgb), .15); color: #a75609; }
.a-tag.acc { background: var(--accent-soft); color: var(--accent); }
.a-tag.bad { background: rgba(214,69,69,.12); color: #b91c1c; }
.svc-art.dark .a-tag { background: rgba(255,255,255,.08); color: var(--dark-muted); }
.svc-art.dark .a-tag.ok { background: rgba(22,163,74,.22); color: #8ef0b2; }
.svc-art.dark .a-tag.bad { background: rgba(214,69,69,.24); color: #ffb4b4; }
.a-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 7px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.a-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-bar { display: block; height: 5px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.a-bar i { display: block; height: 100%; width: var(--w, 60%); border-radius: 999px; background: var(--accent); }
.a-dots { display: inline-flex; gap: 3px; align-items: center; height: 12px; }
.a-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: artBounce 1s ease-in-out infinite; }
.a-dots i:nth-child(2) { animation-delay: .15s; } .a-dots i:nth-child(3) { animation-delay: .3s; }
.a-live { display: inline-flex; align-items: center; gap: 6px; }
.a-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.8s infinite; }
.a-msg { max-width: 84%; padding: 5px 9px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.a-msg.me { justify-self: end; background: var(--ink); color: var(--paper); border-color: var(--ink); border-bottom-right-radius: 3px; }
.a-msg.bot { justify-self: start; border-bottom-left-radius: 3px; }
.a-msg em { display: block; font-style: normal; font-size: 9px; color: var(--accent); margin-top: 2px; }
.a-slot { position: relative; }
.a-slot .sdots { position: absolute; left: 0; top: 0; }
.a-st { position: relative; display: inline-grid; }
.a-st i { grid-area: 1 / 1; font-style: normal; }
.a-st .run { opacity: 0; }
.a-st .run::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: artSpin .8s linear infinite; }
.a-input { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: 7px; padding: 5px 9px; color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.a-input > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-input > b { color: var(--muted); font-weight: 500; }

/* grid children must be allowed to shrink below their nowrap content */
.svc-art .art-stage * { min-width: 0; }

/* timing slots */
.svc-art .s1, .svc-art .s2, .svc-art .s3, .svc-art .s4 { animation: artS1 var(--cyc, 8s) var(--ease) infinite; }
.svc-art .s2 { animation-name: artS2; } .svc-art .s3 { animation-name: artS3; } .svc-art .s4 { animation-name: artS4; }
.svc-art .sdots { opacity: 0; animation: artDots var(--cyc, 8s) linear infinite; }
@keyframes artS1 { 0%, 3%  { opacity: 0; transform: translateY(5px); } 9%,  92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes artS2 { 0%, 22% { opacity: 0; transform: translateY(5px); } 28%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes artS3 { 0%, 42% { opacity: 0; transform: translateY(5px); } 48%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes artS4 { 0%, 62% { opacity: 0; transform: translateY(5px); } 68%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes artDots { 0%, 4% { opacity: 0; } 8%, 20% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes artBounce { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes artSpin { to { transform: rotate(360deg); } }
@keyframes artBlink { 50% { opacity: 0; } }

/* 01 · audit — scored shortlist */
.a-score { display: grid; grid-template-columns: minmax(0, 88px) 1fr 30px; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 7px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.a-score > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-score b { font-weight: 600; text-align: right; }
.a-score.skip { color: var(--muted); } .a-score.skip b { font-weight: 500; } .a-score.skip .a-bar i { background: var(--line-strong); }
.art-audit .s1 .a-bar i { animation: auditG1 var(--cyc) var(--ease) infinite; }
.art-audit .s2 .a-bar i { animation: auditG2 var(--cyc) var(--ease) infinite; }
.art-audit .s3 .a-bar i { animation: auditG3 var(--cyc) var(--ease) infinite; }
@keyframes auditG1 { 0%, 9%  { width: 0; } 24%, 92% { width: var(--w); } 97%, 100% { width: 0; } }
@keyframes auditG2 { 0%, 28% { width: 0; } 43%, 92% { width: var(--w); } 97%, 100% { width: 0; } }
@keyframes auditG3 { 0%, 48% { width: 0; } 63%, 92% { width: var(--w); } 97%, 100% { width: 0; } }

/* 02 · session — live diff */
.a-faces { display: inline-flex; }
.a-faces i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 7px; font-weight: 600; letter-spacing: 0; text-transform: none; background: var(--accent); color: #fff; border: 1.5px solid var(--dark); margin-left: -5px; }
.a-faces i:first-child { margin-left: 0; background: var(--paper); color: var(--ink); }
.a-code { display: grid; gap: 4px; }
.a-code .ln { display: flex; gap: 8px; align-items: center; padding: 3px 8px; border-radius: 5px; color: var(--dark-muted); white-space: nowrap; overflow: hidden; }
.a-code .ln b { font-weight: 500; width: 8px; flex: none; }
.a-code .ln span { overflow: hidden; text-overflow: ellipsis; }
.a-code .del { background: rgba(214,69,69,.16); color: #ffb4b4; }
.a-code .del span { text-decoration: line-through; text-decoration-color: rgba(255,180,180,.55); }
.a-code .add { background: rgba(22,163,74,.16); color: #8ef0b2; }
.a-code .out { color: var(--paper); }
.a-caret { display: inline-block; width: 6px; height: 11px; background: var(--paper); margin-left: 2px; flex: none; animation: artBlink 1s steps(1) infinite; }

/* 03 · in-product — assistant inside an app */
.art-stage.app { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.a-side { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 8px 6px; display: grid; gap: 7px; align-content: start; }
.a-side i { height: 4px; border-radius: 999px; background: var(--paper-3); }
.a-side i:first-child { background: var(--accent); width: 60%; }
.a-main { display: grid; gap: 6px; align-content: start; min-width: 0; }
.a-tool { display: flex; gap: 6px; flex-wrap: wrap; }
.a-stream { position: relative; display: grid; gap: 4px; align-content: start; min-height: 30px; }
.a-stream .a-dots { position: absolute; left: 2px; top: 2px; color: var(--ink-2); }
.a-stream p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.a-stream .a-tag { justify-self: start; }

/* 04 · support — chat that cites docs */
.a-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 9.5px; }

/* 05 · voice — waveform + booking */
.a-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 42px; }
.a-wave i { width: 4px; height: 100%; border-radius: 999px; background: var(--accent); transform: scaleY(var(--a, .4)); animation: artWave 1.1s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes artWave { from { transform: scaleY(.12); } to { transform: scaleY(var(--a, .4)); } }

/* 06 · automation — queue with a human in the loop */
:is(.art-ops, .ops) .s1 .run { animation: opsRun1 var(--cyc) linear infinite; } :is(.art-ops, .ops) .s1 .done { animation: opsDone1 var(--cyc) linear infinite; }
:is(.art-ops, .ops) .s2 .run { animation: opsRun2 var(--cyc) linear infinite; } :is(.art-ops, .ops) .s2 .done { animation: opsDone2 var(--cyc) linear infinite; }
:is(.art-ops, .ops) .s3 .run { animation: opsRun3 var(--cyc) linear infinite; } :is(.art-ops, .ops) .s3 .done { animation: opsDone3 var(--cyc) linear infinite; }
.ops .s4 .run { animation: opsRun4 var(--cyc) linear infinite; } .ops .s4 .done { animation: opsDone4 var(--cyc) linear infinite; }
.ops .a-head .run, .ops .a-pbar .run { animation: opsRunH var(--cyc) linear infinite; } .ops .a-head .done, .ops .a-pbar .done { animation: opsDoneH var(--cyc) linear infinite; }
@keyframes opsRun1  { 0%, 19% { opacity: 1; } 21%, 100% { opacity: 0; } }
@keyframes opsDone1 { 0%, 19% { opacity: 0; } 21%, 100% { opacity: 1; } }
@keyframes opsRun2  { 0%, 39% { opacity: 1; } 41%, 100% { opacity: 0; } }
@keyframes opsDone2 { 0%, 39% { opacity: 0; } 41%, 100% { opacity: 1; } }
@keyframes opsRun3  { 0%, 59% { opacity: 1; } 61%, 100% { opacity: 0; } }
@keyframes opsDone3 { 0%, 59% { opacity: 0; } 61%, 100% { opacity: 1; } }
@keyframes opsRun4  { 0%, 79% { opacity: 1; } 81%, 100% { opacity: 0; } }
@keyframes opsDone4 { 0%, 79% { opacity: 0; } 81%, 100% { opacity: 1; } }
@keyframes opsRunH  { 0%, 84% { opacity: 1; } 86%, 100% { opacity: 0; } }
@keyframes opsDoneH { 0%, 84% { opacity: 0; } 86%, 100% { opacity: 1; } }

/* 07 · documents — page highlight + cited answer */
.art-stage.doc { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
.a-page { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 9px 7px; display: grid; gap: 5px; align-content: start; box-shadow: 0 8px 16px -12px rgba(var(--ink-rgb), .5); }
.a-page i { height: 3px; border-radius: 2px; background: var(--paper-3); }
.a-page i:nth-child(2n) { width: 78%; }
.a-page i.hl { position: relative; }
.a-page i.hl::after { content: ""; position: absolute; inset: -3px -2px; border-radius: 3px; background: rgba(var(--accent-rgb), .25); transform-origin: left; animation: docHl var(--cyc) var(--ease) infinite; }
.a-page > span { position: absolute; bottom: 3px; right: 5px; font-size: 7px; color: var(--muted); }
.a-qa { display: grid; gap: 6px; align-content: start; min-width: 0; }
.a-qa .a-msg { max-width: 100%; }
@keyframes docHl { 0%, 10% { transform: scaleX(0); } 24%, 92% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0); } }

/* 08 · analytics — question → chart */
.a-q .q2 { position: absolute; left: 9px; top: 5px; right: 60px; opacity: 0; animation: chartQ2 var(--cyc) linear infinite; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-q .q1 { animation: chartQ1 var(--cyc) linear infinite; }
.a-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 52px; padding: 0 4px; }
.a-chart i { display: block; height: 100%; border-radius: 3px 3px 1px 1px; background: var(--accent); transform-origin: bottom; transform: scaleY(var(--h1, .5)); animation: chartMorph var(--cyc) var(--ease) infinite; animation-delay: var(--d, 0s); }
.a-chart i:nth-child(2n) { background: var(--ink); }
.a-axis { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 4px; text-align: center; font-size: 7px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
@keyframes chartMorph { 0% { transform: scaleY(0); } 10%, 46% { transform: scaleY(var(--h1, .5)); } 56%, 90% { transform: scaleY(var(--h2, .5)); } 100% { transform: scaleY(0); } }
@keyframes chartQ1 { 0%, 46% { opacity: 1; } 50%, 90% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes chartQ2 { 0%, 48% { opacity: 0; } 52%, 90% { opacity: 1; } 94%, 100% { opacity: 0; } }

/* 09 · product — a browser window building itself */
.art-build .art-stage { display: block; }
.a-browser { position: absolute; left: 0; right: 0; top: 0; bottom: -12px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; overflow: hidden; }
.a-bbar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--paper); }
.a-bbar i { width: 6px; height: 6px; border-radius: 50%; background: var(--paper-3); }
.a-bbar span { margin-left: 6px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; font-size: 8px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.a-bbar span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.a-bbody { padding: 8px 10px; display: grid; gap: 8px; }
.a-bnav { display: flex; justify-content: space-between; align-items: center; }
.a-bnav > i { height: 6px; width: var(--w, 22%); background: var(--ink); border-radius: 2px; }
.a-bnav b { display: flex; gap: 5px; }
.a-bnav b i { width: 16px; height: 4px; background: var(--paper-3); border-radius: 2px; }
.a-bhero { display: grid; gap: 5px; }
.a-bhero i { height: 5px; width: var(--w, 50%); background: var(--paper-3); border-radius: 2px; }
.a-bhero i:first-child { background: var(--ink-2); height: 7px; }
.a-bhero em { font-style: normal; font-size: 7.5px; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 3px; justify-self: start; margin-top: 1px; }
.a-bcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.a-bcards i { height: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.a-deploy { position: absolute; right: 8px; bottom: 8px; box-shadow: 0 8px 16px -8px rgba(var(--ink-rgb), .5); z-index: 2; }

/* 10 · hardening — guardrail lane */
.a-lane { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; height: 56px; }
.a-node { font-size: 9px; padding: 4px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line); white-space: nowrap; color: var(--ink); }
.a-track { position: relative; height: 100%; overflow: hidden; }
.a-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line-strong); }
.a-shield { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; z-index: 2; box-shadow: 0 0 0 4px var(--paper); }
.a-shield svg { width: 14px; height: 14px; }
.a-pkt { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); font-style: normal; font-size: 8.5px; padding: 2px 7px; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; color: var(--ink); opacity: 0; animation: pktOk var(--cyc) linear infinite; animation-delay: var(--d, 0s); z-index: 1; }
.a-pkt.bad { background: rgba(214,69,69,.12); color: #b91c1c; border-color: rgba(214,69,69,.35); animation-name: pktBad; }
@keyframes pktOk  { 0% { left: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes pktBad { 0% { left: 0%; opacity: 0; } 8% { opacity: 1; } 40% { left: 38%; opacity: 1; } 44% { left: 40%; } 47% { left: 38%; } 50% { left: 40%; } 56% { left: 40%; opacity: 0; } 100% { left: 40%; opacity: 0; } }

/* 11 · rescue — incident log */
.a-logs { display: grid; gap: 4px; }
.a-ln { display: grid; grid-template-columns: 30px 34px 1fr; gap: 6px; align-items: center; padding: 3px 8px; border-radius: 5px; font-size: 10px; color: var(--dark-muted); background: rgba(255,255,255,.04); white-space: nowrap; overflow: hidden; }
.a-ln > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.a-ln b { font-weight: 600; letter-spacing: .06em; }
.a-ln.err b { color: #ff8a8a; } .a-ln.warn b { color: #ffc48a; }
.a-ln.ok { background: rgba(22,163,74,.16); color: #8ef0b2; } .a-ln.ok b { color: #8ef0b2; }
.art-log .run { animation: logRun var(--cyc) linear infinite; } .art-log .done { animation: logDone var(--cyc) linear infinite; }
@keyframes logRun  { 0%, 65% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes logDone { 0%, 65% { opacity: 0; } 67%, 100% { opacity: 1; } }

/* run loops only while the card is on screen; no JS → always run */
.js :is(.svc, .uc):not(.is-visible) .svc-art * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .svc-art * { animation: none !important; }
  .svc-art .sdots, .svc-art .a-pkt { display: none !important; }
}

/* ---------- use-case covers (.uc-art) ----------------------------------
   Same system as the catalog thumbnails (the panel also carries .svc-art so
   it inherits the primitives, timing slots, pause-off-screen and reduced-
   motion rules), scaled up to a 16:9 cover at the top of each case study.
   .a-aside marks the secondary column that is dropped on phones. -------- */
.uc-art { height: auto; aspect-ratio: 16 / 9; min-height: 280px; max-height: 340px; font-size: 12.5px; border-radius: var(--r-lg); }
.uc-art .art-stage { inset: 18px 20px; gap: 8px; }
.uc-art .a-head { font-size: 10.5px; min-height: 22px; }
.uc-art .a-tag { font-size: 10px; padding: 3px 9px; }
.uc-art .a-row, .uc-art .a-score { padding: 8px 12px; border-radius: 9px; }
.uc-art .a-msg { padding: 7px 11px; border-radius: 12px; max-width: 90%; }
.uc-art .a-msg em { font-size: 10.5px; margin-top: 3px; }
.uc-art .a-msg em.abst { color: #a75609; }
.uc-art .a-input { padding: 8px 12px; border-radius: 9px; }
.uc-art .a-q .q2 { left: 12px; top: 8px; right: 76px; }
.uc-art .a-bar { height: 6px; }
.uc-art .a-foot { font-size: 11px; }
.uc-art .a-node { font-size: 11px; padding: 6px 10px; }
.uc-art .a-pkt { font-size: 10.5px; padding: 3px 9px; }
.uc-art .a-shield { width: 34px; height: 34px; } .uc-art .a-shield svg { width: 18px; height: 18px; }
.uc-art .a-lane { height: 70px; }
.uc-art .a-chart { height: 86px; gap: 8px; } .uc-art .a-axis { font-size: 9px; gap: 8px; }
.uc-art .a-code .ln { padding: 5px 10px; font-size: 11.5px; }
.uc-art .a-page { padding: 16px 14px; gap: 8px; } .uc-art .a-page i { height: 4px; } .uc-art .a-page > span { font-size: 9.5px; bottom: 6px; right: 8px; }
.uc-art .a-page.big { height: 100%; align-content: start; }
.uc-art .a-dots i { width: 5px; height: 5px; }

/* layout helpers */
.uc-art .two { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 14px; align-content: stretch; }
.uc-art .two.field { grid-template-columns: 176px minmax(0, 1fr); }
.art-uc-docs .two { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); }
.uc-art .col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.a-lbl { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.a-win { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; align-content: start; min-width: 0; }
.a-wbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 10px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.a-wbar > :first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-wbody { padding: 10px; display: grid; gap: 8px; }
.a-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.a-kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.a-kpi { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; display: grid; gap: 2px; min-width: 0; align-content: start; }
.a-kpi span { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-kpi b { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-kpi em { font-style: normal; font-size: 10px; color: #15803d; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-kpi.tall b { font-size: 44px; letter-spacing: -0.04em; line-height: 1; padding: 4px 0; }

/* dark cover variants */
.svc-art.dark .a-row, .svc-art.dark .a-node { background: rgba(255,255,255,.05); border-color: var(--dark-line); color: var(--paper); }
.svc-art.dark .a-foot, .svc-art.dark .a-lbl { color: var(--dark-muted); }
.svc-art.dark .a-tag.acc { background: rgba(var(--accent-rgb), .32); color: #b7c4ff; }
.svc-art.dark .a-tag.warn { background: rgba(var(--amber-rgb), .24); color: #ffc48a; }
.svc-art.dark .a-win { background: var(--dark-2); border-color: var(--dark-line); }
.svc-art.dark .a-wbar { background: rgba(255,255,255,.04); border-color: var(--dark-line); color: var(--dark-muted); }
.svc-art.dark .a-track::before { border-color: rgba(var(--paper-rgb), .25); }
.svc-art.dark .a-shield { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 4px var(--dark); }
.svc-art.dark .a-pkt { background: var(--dark-3); border-color: var(--dark-line); color: var(--paper); }
.svc-art.dark .a-pkt.bad { background: rgba(214,69,69,.24); color: #ffb4b4; border-color: rgba(214,69,69,.4); }
.svc-art.dark .a-code .forbid { background: rgba(214,69,69,.16); color: #ffb4b4; }
.svc-art.dark .a-code .kw { color: #b7c4ff; }

/* 01 analytics · 05 cost · 09 pipeline · 10 metrics — bar charts */
.a-cost, .a-spark { position: relative; display: grid; gap: 8px; align-items: end; padding: 0 4px; }
.a-cost { grid-template-columns: repeat(8, minmax(0, 1fr)); height: 168px; }
.a-spark { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 88px; }
.a-spark.tall { grid-template-columns: repeat(14, minmax(0, 1fr)); height: 96px; }
.a-cost i, .a-spark i { display: block; height: 100%; border-radius: 4px 4px 2px 2px; background: var(--ink-2); transform-origin: bottom; transform: scaleY(var(--h, .5)); animation: costGrow var(--cyc) var(--ease) infinite; animation-delay: var(--d, 0s); }
.a-cost i.post, .a-spark.tall i { background: var(--accent); }
.a-spark i { background: var(--paper-3); }
.a-spark i.spike { background: var(--rose); animation: costGrow var(--cyc) var(--ease) infinite, spikePulse 1.4s ease-in-out infinite; }
.a-cost .mark { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--line-strong); font-size: 9.5px; color: var(--muted); padding-left: 7px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.a-axis.eight { grid-template-columns: repeat(8, 1fr); }
@keyframes costGrow { 0% { transform: scaleY(0); } 12%, 90% { transform: scaleY(var(--h, .5)); } 100% { transform: scaleY(0); } }
@keyframes spikePulse { 50% { opacity: .5; } }

/* 04 clinical — ranked papers */
.a-row.paper { display: grid; grid-template-columns: minmax(0, 1fr) 84px auto; }
.a-row.paper b { font-weight: 600; }
.a-row.warn-row { border-color: rgba(var(--amber-rgb), .45); background: rgba(var(--amber-rgb), .08); }

/* 07 api → mcp — gateway map */
.a-map { display: grid; grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr); gap: 12px; align-items: center; }
.a-map .col { gap: 6px; }
.a-map .a-node { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.a-node.tool { display: flex; justify-content: space-between; gap: 8px; border-color: rgba(22,163,74,.4); }
.a-node.tool b { color: #15803d; font-weight: 600; }
.a-gw { position: relative; height: 100%; display: grid; place-items: center; }
.a-gw::before { content: ""; position: absolute; left: -12px; right: -12px; top: 50%; border-top: 1px dashed var(--line-strong); }
.a-core { position: relative; width: 88px; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; text-align: center; font-size: 10.5px; line-height: 1.25; letter-spacing: .02em; box-shadow: 0 0 0 6px var(--paper); }
.a-core::before, .a-core::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(var(--ink-rgb), .22); animation: ring 3.5s ease-out infinite; }
.a-core::after { animation-delay: 1.75s; }

/* 09 pipeline — stepper with a travelling batch */
.a-steps { position: relative; display: flex; align-items: center; gap: 8px; }
.a-steps i { flex: 1; border-top: 1px dashed var(--line-strong); height: 0; }
.a-steps .a-node { position: relative; z-index: 1; }
.a-steps .a-node.on { border-color: var(--ink); }
.a-steps > b { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--paper); animation: pktOk var(--cyc) linear infinite; opacity: 0; }

/* 11 field — phone */
.a-phone { width: 156px; justify-self: center; align-self: center; background: #fff; border: 1px solid var(--line-strong); border-radius: 24px; padding: 8px; box-shadow: 0 24px 44px -26px rgba(var(--ink-rgb), .55); display: grid; gap: 6px; }
.a-pbar { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; padding: 4px 6px 2px; color: var(--muted); }
.a-pbody { display: grid; gap: 6px; padding: 0 4px 6px; }
.a-field { display: grid; gap: 1px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); min-width: 0; }
.a-field span { font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.a-field b { font-size: 10.5px; color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-btn { background: var(--ink); color: var(--paper); border-radius: 9px; padding: 7px; text-align: center; font-size: 10.5px; }

@media (max-width: 640px) {
  .uc-art { min-height: 310px; }
  .uc-art .art-stage { inset: 14px 14px; }
  .uc-art .a-aside { display: none; }
  .uc-art .two, .uc-art .two.field { grid-template-columns: minmax(0, 1fr); }
  .uc-art .a-kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-art .a-map { grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); }
  .uc-art .a-core { width: 72px; font-size: 9.5px; }
  .uc-art .a-cost { height: 140px; }
}

/* ==========================================================================
   Craft layer — focus, skip link, polish
   ========================================================================== */

/* ---------- keyboard focus ---------- */
:root { --focus: var(--accent); --focus-halo: rgba(77, 74, 227, 0.20); }

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible, .nav-links a:focus-visible, .nav-cta .btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.card:focus-visible, .case:focus-visible, .lane:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }
.faq summary:focus-visible { outline-offset: -2px; border-radius: 8px; }

/* on dark surfaces the blue ring disappears — flip to paper */
.card.dark, .card.accent, .cta, .console, .system-vis, .portrait,
.engagement.featured, .footer-dark, .svc.dark {
  --focus: var(--paper);
  --focus-halo: rgba(var(--paper-rgb), 0.28);
}

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-halo);
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: 100; padding: 12px 22px; border-radius: 0 0 14px 14px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600;
  transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); outline-offset: -4px; }

/* ---------- hero console: integrated stat strip ---------- */
/* replaces the old floating chips, which overlapped the console bar and foot */
.console-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--dark-line);
}
.cstat {
  display: grid; gap: 3px; padding: 15px 18px; position: relative;
  align-content: center;
}
.cstat + .cstat::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 1px; background: var(--dark-line);
}
.cstat span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dark-muted);
}
.cstat strong {
  font-family: var(--font-display); font-weight: 600;
  font-size: 28px; letter-spacing: -0.035em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cstat strong i {
  font-style: normal; font-size: 15px; font-weight: 500;
  color: var(--dark-muted); letter-spacing: -0.01em;
}
.cstat em { font-style: normal; font-size: 11.5px; color: var(--dark-muted); }
.cstat em.up { color: #8ef0b2; display: inline-flex; align-items: center; gap: 5px; }
.cstat em.up::before {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
}

/* a more physically-plausible shadow ramp + a hint of accent bounce */
.console {
  box-shadow:
    0 1px 2px rgba(var(--ink-rgb), .07),
    0 8px 18px -10px rgba(var(--ink-rgb), .22),
    0 30px 60px -26px rgba(var(--ink-rgb), .42),
    0 64px 104px -56px rgba(var(--accent-rgb), .22),
    0 0 0 1px rgba(255, 255, 255, .06) inset;
}

/* ---------- hero proof: 2x2 instead of a ragged 3 + 1 wrap ---------- */
.hero-proof {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}
@media (min-width: 1180px) {
  .hero-proof { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px; }
  .proof strong { font-size: 20px; }
}

/* ==========================================================================
   Motion & surface — progressive enhancement only
   ========================================================================== */

/* ---------- cross-document view transitions ----------
   Chrome 126+ / Safari 18.2+. Removes the white flash between pages, which is
   the clearest tell that a site is a pile of static HTML. Firefox ignores it. */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 260ms;
  animation-timing-function: var(--ease);
}
/* the shell shouldn't cross-fade with the content */
.nav    { view-transition-name: site-nav; }
.footer { view-transition-name: site-footer; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- scroll-driven reveals ----------
   Runs off the main thread where supported; the IntersectionObserver in main.js
   stays as the fallback path (Firefox still ships this behind a flag). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .reveal {
      opacity: 0; translate: 0 20px;
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
      transition: none;
    }
    @keyframes reveal-in { to { opacity: 1; translate: none; } }

    /* NOTE: do NOT put .marquee-track on a view() timeline. A scroll timeline
       replaces the clock, so the marquee advances only while the user is
       actively scrolling past it and freezes the moment they stop. The
       off-screen pause is done in main.js with an IntersectionObserver, which
       keeps the animation time-based. */
  }
}

/* ---------- grain ----------
   A touch of tooth over flat vector fills. Cheap, and it kills the
   "rendered by a machine" flatness of large solid areas. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
/* The grain sits at z-index 1 with pointer-events:none, and every piece of
   chrome (nav 50, scrim 80, drawer 81) already stacks above it — so nothing
   needs lifting here. Forcing a z-index put the drawer behind its own scrim. */

/* ---------- typographic polish ---------- */
p, li, .lead, .answer { text-wrap: pretty; }
.h1, .h2, .h3, .section-head p { text-wrap: balance; }
.proof strong, .stat strong, .cstat strong, .case .outcome strong,
.step .num b, .engagement .price { font-variant-numeric: tabular-nums; }

/* ---------- secondary CTA ----------
   One button above the fold; the alternate path reads as a link, not a rival. */
.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 14px 4px; position: relative;
}
.btn-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn-link::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 10px;
  height: 1px; background: var(--line-strong);
  transform-origin: right; transition: transform .35s var(--ease), background .25s;
}
.btn-link:hover svg { transform: translateX(4px); }
.btn-link:hover::after { background: var(--ink); transform: scaleX(1); }
@media (hover: hover) {
  .btn-link::after { transform: scaleX(1); }
  .btn-link:hover::after { transform-origin: left; }
}
.hero-actions { gap: 12px 22px; }

/* ---------- overflow fixes ----------
   Grid/flex children default to min-width:auto and refuse to shrink below their
   content, which pushed the system diagram's right column past the dark panel. */
.sys-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.sys-col { min-width: 0; }
.sys-col .node { min-width: 0; overflow-wrap: break-word; }

@media (max-width: 1080px) {
  .sys-grid { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .sys-core { justify-self: center; }
}

.faq summary { font-weight: 500; min-width: 0; }
.faq summary > :not(.plus) { min-width: 0; }
.faq details { overflow-wrap: break-word; }

/* the brand and nav sit at 600, not 700 */
.brand { font-weight: 600; }

/* ---------- system diagram core ----------
   A large saturated fill reads as generic "AI startup"; a paper disc on the dark
   panel is higher contrast and carries the focal point without the cliche. */
.sys-core {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(var(--paper-rgb), .18), 0 18px 40px -18px rgba(var(--ink-rgb), .9);
}
.sys-core::before, .sys-core::after { border-color: rgba(var(--accent-rgb), .55); }
