/* ==========================================================================
   CENTER CROSS — site.css
   Layout concept: one precise column grid on midnight; hairline rules,
   registration crosses and the blue double slash carry the brand.
   Single committed dark look (brand ground is #090D13).
   ========================================================================== */

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

  /* Brand colors (locked) */
  --midnight: #090D13;
  --white: #F1F4F8;
  --steel: #8C9CAA;
  --blue: #26A9EB;

  /* Derived */
  --midnight-2: #0D131B;            /* raised surface */
  --midnight-3: #121A24;            /* hover surface */
  --text: #C3CDD6;                  /* long-form body copy */
  --blue-hover: #5BC0F2;
  --ink-on-blue: #04121C;
  --line: rgba(140, 156, 170, .16);
  --line-strong: rgba(140, 156, 170, .34);
  --error: #FF9B8A;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-micro: .6875rem;             /* 11px tracked labels */
  --fs-small: .875rem;
  --fs-body: 1rem;
  --fs-lede: clamp(1.0625rem, .98rem + .4vw, 1.25rem);
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem);
  --fs-h2: clamp(2.25rem, 1.3rem + 4.2vw, 4.25rem);
  --fs-display: clamp(2.375rem, 1.1rem + 5.6vw, 5.25rem);
  --fs-h1: clamp(2.5rem, 1.2rem + 5.4vw, 5.125rem);

  /* Space + layout */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --wrap: 77.5rem;
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 4.5rem;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .2s;
  --t-slow: .7s;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--white); font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue-hover); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue); color: var(--ink-on-blue); }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--blue); color: var(--ink-on-blue); padding: .75rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* Preview-only content is hidden unless js/config.js turns preview mode on. */
html:not([data-preview="true"]) [data-preview-only] { display: none !important; }

/* ---------- 3. Shared pieces ---------- */
.slashes { color: var(--blue); font-family: var(--font-display); font-weight: 700; font-style: italic; letter-spacing: -.08em; padding-inline: .1em .25em; }
.eyebrow, .kicker {
  font: 600 var(--fs-micro)/1.4 var(--font-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
}
.kicker { letter-spacing: .18em; }
.section-eyebrow { display: flex; align-items: center; gap: .6em; color: var(--steel); }
.section-eyebrow span:first-child { color: var(--blue); }
.lede { font-size: var(--fs-lede); line-height: 1.6; max-width: 36em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3rem; padding: .8rem 1.4rem;
  border: 1px solid transparent; border-radius: 2px;
  font: 600 .9375rem/1 var(--font-body); letter-spacing: .01em;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn-primary { background: var(--blue); color: var(--ink-on-blue); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-hover); }
.btn-small { min-height: 2.5rem; padding: .5rem 1rem; font-size: var(--fs-small); }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.text-link { color: var(--blue); font-weight: 600; font-size: var(--fs-small); border-bottom: 1px solid transparent; transition: border-color var(--t-fast), color var(--t-fast); }
.text-link:hover { color: var(--blue-hover); border-color: currentColor; }

.chip {
  position: absolute; left: .75rem; bottom: .75rem;
  padding: .4rem .6rem;
  background: var(--blue); color: var(--ink-on-blue);
  font: 700 .625rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
}
.chip-muted { background: var(--midnight); color: var(--steel); border: 1px dashed var(--line-strong); }

/* ---------- 4. Preview bar + header ---------- */
.preview-bar {
  padding: .5rem var(--gutter);
  text-align: center; font-size: .75rem; letter-spacing: .04em;
  color: var(--steel); background: var(--midnight-2); border-bottom: 1px solid var(--line);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(9, 13, 19, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--midnight); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 2.25rem; width: auto; }
.primary-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); font-size: var(--fs-small); font-weight: 500; }
.primary-nav a:not(.btn) { position: relative; padding-block: .5rem; color: var(--text); transition: color var(--t-fast); }
.primary-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.primary-nav a:not(.btn):hover, .primary-nav a[aria-current="true"] { color: var(--white); }
.primary-nav a:not(.btn):hover::after, .primary-nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { min-height: 2.625rem; padding: .6rem 1.1rem; font-size: var(--fs-small); }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; margin-right: -.5rem; background: none; border: 0; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 1.375rem; height: 2px; background: var(--white); transition: transform .25s var(--ease); }
.nav-toggle-bars { transform: translateY(-4px); position: relative; }
.nav-toggle-bars::before { content: ""; position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-8px) rotate(-90deg); }

@media (max-width: 47.5rem) {
  :root { --header-h: 4rem; }
  .brand img { height: 1.625rem; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--midnight); border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }
  .js .primary-nav { visibility: hidden; opacity: 0; transform: translateY(-.5rem); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease), visibility 0s var(--t-fast); }
  .js .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  html:not(.js) .primary-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 1rem; padding: 0; border: 0; font-size: var(--fs-small); }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .75rem; }
  .js .primary-nav a:not(.btn) { padding-block: 1rem; border-bottom: 1px solid var(--line); }
  .js .primary-nav a:not(.btn)::after { display: none; }
  .js .nav-cta { margin-top: 1.25rem; min-height: 3rem; }
}

/* ---------- 6. Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section + .section > .wrap::before {
  /* hairline with a registration cross: the "center cross" in miniature */
  content: ""; display: block; height: 11px; margin-top: calc(-1 * var(--section-y) - 5px); margin-bottom: calc(var(--section-y) - 6px);
  background:
    linear-gradient(var(--steel), var(--steel)) 5px 0 / 1px 11px no-repeat,
    linear-gradient(var(--steel), var(--steel)) 0 5px / 11px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 5px / 100% 1px no-repeat;
}
.section h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.045em; }
.section h2.display { font-size: var(--fs-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.055em; line-height: 1; margin-block: 1.5rem clamp(2.5rem, 5vw, 4rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: end; margin-top: 1.5rem; }
.subhead {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 1rem 3rem; align-items: end;
  margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: 2rem; margin-bottom: 2rem; border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}
.subhead h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -.04em; margin-top: .75rem; }
.subhead h3 span { color: var(--steel); }
@media (max-width: 50rem) {
  .split, .subhead { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* ---------- 8. Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1rem; }
.person { min-width: 0; background: var(--midnight-2); border: 1px solid var(--line); transition: border-color .3s; }
.person:hover { border-color: var(--line-strong); }
.person-photo { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--midnight-3); display: grid; place-items: center; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: saturate(.8) contrast(1.02); transition: filter .4s, transform .8s var(--ease); }
.person:hover .person-photo img { filter: none; transform: scale(1.02); }
.person-photo .initials { font: 500 4.5rem var(--font-display); letter-spacing: -.05em; color: var(--steel); }
.person-body { padding: 1.25rem 1.25rem 1.5rem; display: grid; gap: .4rem; }
.person-body h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.03em; }
.person-body .role { color: var(--blue); font-size: .8125rem; font-weight: 600; }
.person-body p:last-child { font-size: var(--fs-small); line-height: 1.6; margin-top: .5rem; }
.is-placeholder { border-style: dashed; background: transparent; }
.is-placeholder .person-photo {
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) center / 1px 2.5rem no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) center / 2.5rem 1px no-repeat;
}
.is-placeholder h4 { color: var(--steel); }
.is-placeholder .role { color: var(--steel); }

/* ---------- 9. Work + media ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.project { min-width: 0; border: 1px dashed var(--line-strong); }
.project-visual { aspect-ratio: 16 / 10; display: grid; place-items: center; border-bottom: 1px dashed var(--line); background: var(--midnight-2); }
.project-visual svg { width: 100%; height: 100%; }
.project-body { padding: 1.5rem; display: grid; gap: .6rem; }
.project-body h4 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.03em; }
.project-body p { font-size: var(--fs-small); }
.slot-note { margin-top: .5rem; color: var(--steel); font: 600 var(--fs-micro) var(--font-body) !important; letter-spacing: .14em; text-transform: uppercase; }

.press-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.press-grid li { min-width: 0; border-bottom: 1px solid var(--line-strong); }
.press-grid li:nth-child(odd) { border-right: 1px solid var(--line-strong); }
.press { display: grid; gap: 1rem; align-content: space-between; height: 100%; min-height: 11.5rem; padding: 1.75rem 1.5rem; transition: background-color .3s; }
.press:hover { background: var(--midnight-2); }
.press h4 { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); line-height: 1.25; letter-spacing: -.025em; max-width: 24em; }
.press .more { font-size: var(--fs-small); font-weight: 600; color: var(--steel); transition: color var(--t-fast); }
.press:hover .more { color: var(--blue-hover); }
@media (max-width: 40rem) {
  .press-grid { grid-template-columns: minmax(0, 1fr); }
  .press-grid li:nth-child(odd) { border-right: 0; }
  .press { min-height: 0; padding-inline: .25rem; }
}

/* ---------- 10. Contact ---------- */
.contact { background: var(--midnight-2); }
.section.contact > .wrap::before { display: none; }
.contact-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-copy { display: grid; gap: 1.5rem; }
.locale { font: 500 var(--fs-micro) var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-top: 1rem; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.field { display: grid; gap: .5rem; min-width: 0; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font: 600 var(--fs-micro) var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.optional { letter-spacing: .08em; opacity: .7; text-transform: none; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .75rem .875rem;
  background: var(--midnight); color: var(--white);
  border: 1px solid var(--line-strong); border-radius: 2px;
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color var(--t-fast);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .8125rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { font-size: var(--fs-small); flex: 1 1 14rem; min-width: 0; color: var(--white); }
.form-status.is-error { color: var(--error); }
.form-result { display: grid; gap: .75rem; justify-items: start; padding: 1.25rem; border: 1px dashed var(--line-strong); }
.form-result pre { margin: 0; width: 100%; max-height: 14rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .8125rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text); }
@media (max-width: 56rem) { .contact-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 30rem) { .contact-form { grid-template-columns: minmax(0, 1fr); } .form-foot .btn { width: 100%; } }

/* ---------- 11. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-small); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.footer-logo { height: 2.375rem; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; justify-content: flex-end; }
.footer-nav a { padding-block: .35rem; color: var(--text); transition: color var(--t-fast); }
.footer-nav a:hover { color: var(--blue-hover); }
.fineprint { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--steel); font-size: .8125rem; }
@media (max-width: 50rem) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; }
  .footer-logo { height: 2rem; }
}

/* ---------- 12. Reveal (only with JS, only when motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(1rem); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   V2 — interactive layer (panels, hero field, capability console, model)
   ========================================================================== */
:root {
  --radius: 14px;
  --radius-sm: 8px;
  --panel: linear-gradient(180deg, rgba(241, 244, 248, .04), rgba(241, 244, 248, .012));
  --blue-soft: rgba(38, 169, 235, .14);
  --blue-line: rgba(38, 169, 235, .5);
}
.btn { border-radius: 999px; padding-inline: 1.5rem; }
.field input, .field select, .field textarea { border-radius: var(--radius-sm); }
.caption { font-size: .75rem; color: var(--steel); letter-spacing: .02em; }

/* Panel with a pointer-following glow (set --mx/--my in JS) */
.panel { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel), var(--midnight-2); overflow: hidden; isolation: isolate; }
.glow::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), rgba(38, 169, 235, .13), transparent 60%); }
.glow:hover::after { opacity: 1; }

/* Motion toggle */
.motion-toggle { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 0; background: none; border: 0; color: var(--steel); font: 500 .75rem var(--font-body); letter-spacing: .04em; cursor: pointer; white-space: nowrap; }
.motion-toggle:hover { color: var(--white); }
.motion-toggle i { width: 1.75rem; height: 1rem; border-radius: 1rem; border: 1px solid var(--line-strong); position: relative; transition: background-color var(--t-fast), border-color var(--t-fast); }
.motion-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: .625rem; height: .625rem; border-radius: 50%; background: var(--steel); transition: transform var(--t-fast) var(--ease), background-color var(--t-fast); }
.motion-toggle[aria-pressed="true"] i { background: var(--blue-soft); border-color: var(--blue-line); }
.motion-toggle[aria-pressed="true"] i::after { transform: translateX(.75rem); background: var(--blue); }
html:not(.js) .motion-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60rem 36rem at 78% 42%, rgba(38, 169, 235, .10), transparent 65%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); align-items: center; gap: 1rem; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero-copy { display: grid; gap: 1.75rem; justify-items: start; min-width: 0; position: relative; z-index: 1; }
h1 { font-size: var(--fs-h1); line-height: .98; letter-spacing: -.05em; }
h1 em { display: block; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hero-figure { position: relative; aspect-ratio: 1; width: 100%; max-width: 100%; margin-right: -3rem; }
.hero-figure canvas { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; }
.hero-figure svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fig-labels text { font: 600 10px var(--font-body); letter-spacing: .24em; fill: var(--steel); }
.fig-core { transform-origin: 280px 280px; transition: transform .6s var(--ease); }

@media (max-width: 60rem) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { position: absolute; right: -11rem; top: 0; width: 30rem; margin: 0; opacity: .5; pointer-events: none; }
  .fig-labels { display: none; }
}
@media (max-width: 30rem) {
  .hero-figure { right: -14rem; top: -2rem; width: 28rem; opacity: .4; }

  .cta-row { width: 100%; } .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- Capability console ---------- */
.console { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); grid-template-rows: repeat(3, auto) 1fr; gap: .75rem 1.5rem; }
.cap-tab { grid-column: 1; text-align: left; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .35rem .5rem; padding: 1.5rem 1.5rem 1.6rem; cursor: pointer;
  color: var(--text); font: inherit; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; position: relative; overflow: hidden;
  transition: background-color .3s, border-color .3s; }
.cap-tab:hover { border-color: var(--line-strong); }
.cap-tab[aria-selected="true"] { background: var(--panel), var(--midnight-2); border-color: var(--blue-line); }
.cap-tab .cap-index { font: 500 var(--fs-small) var(--font-display); color: var(--steel); padding-top: .4rem; font-variant-numeric: tabular-nums; }
.cap-tab[aria-selected="true"] .cap-index { color: var(--blue); }
.cap-tab h3 { font-size: clamp(1.375rem, 1rem + 1.3vw, 1.875rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; color: var(--steel); transition: color .3s; }
.cap-tab:hover h3, .cap-tab[aria-selected="true"] h3 { color: var(--white); }
.cap-tab p { grid-column: 2; font-size: .9375rem; line-height: 1.55; }
.cap-tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.cap-tab[aria-selected="true"] .bar { transform: scaleX(1); }
.console.is-auto .cap-tab[aria-selected="true"] .bar { animation: bar 8s linear forwards; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cap-panel { grid-column: 2; grid-row: 1 / -1; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.cap-panel[hidden] { display: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel-head .kicker { color: var(--white); }
.panel-body { padding: 1.25rem; display: grid; gap: 1rem; align-content: center; min-width: 0; }
.panel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { padding: .3rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .75rem; color: var(--text); }
@media (prefers-reduced-motion: no-preference) { .js .cap-panel:not([hidden]) .panel-body { animation: panel-in .5s var(--ease); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(.75rem); } }
@media (max-width: 56rem) {
  .console { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .cap-tab, .cap-panel { grid-column: 1; grid-row: auto; }
  .cap-panel { margin-bottom: .75rem; }
}
html:not(.js) .console { display: block; } html:not(.js) .cap-tab, html:not(.js) .cap-panel { margin-bottom: .75rem; width: 100%; }

/* Demo 1: before / after */
.compare { position: relative; aspect-ratio: 400 / 250; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--midnight); --pos: 50%; }
.compare svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); background: var(--midnight-2); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--blue); z-index: 2; pointer-events: none; }

.compare .tag { position: absolute; top: .6rem; z-index: 1; padding: .25rem .5rem; border-radius: 4px; background: rgba(9, 13, 19, .8); font: 600 .625rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.compare .tag-b { left: .6rem; } .compare .tag-a { right: .6rem; color: var(--blue); }

/* Demo 2: workflow */
.flow { display: grid; gap: .5rem; }
.flow li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--fs-small); color: var(--steel); transition: border-color .3s, color .3s, background-color .3s; }
.flow li b { font-weight: 500; }
.flow li small { font-size: .75rem; color: var(--steel); }
.flow .dot { width: 1.125rem; height: 1.125rem; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; }
.flow li.is-active { border-color: var(--blue-line); color: var(--white); background: var(--blue-soft); }
.flow li.is-active .dot { border-color: var(--blue); border-top-color: transparent; animation: spin .8s linear infinite; }
.flow li.is-wait .dot { animation: none; border-color: var(--blue); }
.flow li.is-wait .dot::after { content: ""; position: absolute; inset: 3px 5px; border-inline: 2px solid var(--blue); }
.flow li.is-done { color: var(--white); }
.flow li.is-done .dot { background: var(--blue); border-color: var(--blue); }
.flow li.is-done .dot::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--ink-on-blue); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* Demo 3: model */
.model-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.25rem; align-items: center; }
.sliders { display: grid; gap: 1rem; }
.slider label { display: flex; justify-content: space-between; gap: .5rem; font-size: .8125rem; color: var(--text); margin-bottom: .35rem; }
.slider output { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"].rng { -webkit-appearance: none; appearance: none; width: 100%; height: 1.5rem; background: transparent; cursor: pointer; margin: 0; }
.rng::-webkit-slider-runnable-track { height: 2px; background: var(--line-strong); }
.rng::-moz-range-track { height: 2px; background: var(--line-strong); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 1rem; height: 1rem; margin-top: -7px; border-radius: 50%; background: var(--blue); border: 0; box-shadow: 0 0 0 5px rgba(38, 169, 235, .16); }
.rng::-moz-range-thumb { width: 1rem; height: 1rem; border-radius: 50%; background: var(--blue); border: 0; box-shadow: 0 0 0 5px rgba(38, 169, 235, .16); }
.chart { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--midnight); padding: .75rem; display: grid; gap: .5rem; min-width: 0; }
.chart svg { width: 100%; height: auto; }
.chart text { font: 500 9px var(--font-body); fill: var(--steel); letter-spacing: .08em; }
.readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.readout div { padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 6px; }
.readout dt { font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.readout dd { margin: .15rem 0 0; font: 600 1.125rem var(--font-display); color: var(--white); font-variant-numeric: tabular-nums; }
dl { margin: 0; }
@media (max-width: 34rem) { .model-demo { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rounded treatment for v1 pieces ---------- */
.person, .project { border-radius: var(--radius); overflow: hidden; }
.person { position: relative; isolation: isolate; }
.chip { border-radius: 4px; }
.press-grid { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-top: 1px solid var(--line); }
.press-grid li { border-color: var(--line); }
.press-grid li:nth-last-child(-n+2) { border-bottom: 0; }
.press { position: relative; isolation: isolate; }
@media (max-width: 40rem) { .press-grid li:nth-last-child(2) { border-bottom: 1px solid var(--line); } .press { padding-inline: 1.25rem; } }
.contact-form { padding: clamp(1.25rem, 3vw, 2rem); }
.form-result { border-radius: var(--radius-sm); }
.cta-band { text-align: left; }

/* ---------- Motion off (user toggle) ---------- */
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition-duration: .01ms !important; }
html[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; }
html[data-motion="off"] .flow li.is-active .dot { border-top-color: var(--blue); }

/* ==========================================================================
   V3 — particle field, scroll story, progress rail, blur-in type
   ========================================================================== */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.preview-bar, .site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { position: sticky; z-index: 50; }
.site-footer { background: var(--midnight); }
.contact, .finale { background: transparent; }

/* Progress rail (wide screens) */
.rail { position: fixed; left: max(1.1rem, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); z-index: 40; display: none; gap: .9rem; }
.rail a { display: flex; align-items: center; gap: .6rem; font: 600 .625rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: transparent; transition: color .3s; }
.rail a::before { content: ""; width: 2px; height: 1.6rem; background: var(--line-strong); transition: background-color .3s, height .3s var(--ease); }
.rail a:hover, .rail a:focus-visible { color: var(--steel); }
.rail a.is-current::before { background: var(--blue); height: 2.4rem; }
.rail a.is-current { color: var(--blue); }
@media (min-width: 90rem) { .rail { display: grid; } }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--midnight); transition: opacity .6s var(--ease), visibility 0s .6s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader span { font: 400 clamp(3rem, 10vw, 7rem) var(--font-display); letter-spacing: -.05em; color: var(--white); font-variant-numeric: tabular-nums; }
.loader span i { font-style: italic; color: var(--blue); font-weight: 700; letter-spacing: -.08em; margin-left: .1em; }

/* Blur-in words */
.js [data-split] .w { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(.25em); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.js [data-split].is-in .w { opacity: 1; filter: none; transform: none; }
html[data-motion="off"] [data-split] .w { opacity: 1 !important; filter: none !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .js [data-split] .w { opacity: 1; filter: none; transform: none; } }

.section h2.mega { font-size: clamp(2.75rem, 1.2rem + 7vw, 7rem); line-height: .98; letter-spacing: -.055em; margin-block: 1.5rem 2rem; }
.section h2.giant { font-size: clamp(3rem, 1rem + 9.5vw, 9.5rem); line-height: .92; letter-spacing: -.06em; margin-block: 1.5rem 2rem; }
h2.giant em { display: block; }

/* Scroll story */
.story { padding-bottom: 0; }
.story-intro { padding-bottom: clamp(3rem, 8vw, 6rem); }
.chapter { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; border-top: 1px solid var(--line); position: relative; }
.chapter::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--line), transparent 70%); }
.chapter-copy { max-width: 30rem; display: grid; gap: 1.1rem; padding-block: 4rem; }
.chapter-num { font: 500 var(--fs-small) var(--font-display); color: var(--steel); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.chapter h3 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); line-height: 1; letter-spacing: -.05em; }
.chapter-copy > p:not([class]) { font-size: var(--fs-lede); line-height: 1.55; }
.chapter .slot-note { justify-self: start; padding: .4rem .65rem; border: 1px dashed var(--line-strong); border-radius: 4px; margin: 0; }
@media (max-width: 56rem) { .chapter { align-items: end; } .chapter::before { display: none; } .chapter-copy { padding-block: 3rem; } }

/* Media list */
.media .lede { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.press-list { border-top: 1px solid var(--line-strong); }
.press-list li { border-bottom: 1px solid var(--line-strong); }
.press-list a { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto; gap: .5rem 2rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.25rem) .5rem; transition: padding .4s var(--ease), background-color .3s; }
.press-list h3 { font-size: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); line-height: 1.15; letter-spacing: -.035em; color: var(--steel); transition: color .3s; }
.press-list .go { font-size: 1.75rem; color: var(--blue); transition: transform .4s var(--ease); }
.press-list a:hover, .press-list a:focus-visible { padding-left: 1.5rem; background: rgba(9, 13, 19, .6); }
.press-list a:hover h3, .press-list a:focus-visible h3 { color: var(--white); }
.press-list a:hover .go { transform: translate(6px, -6px); }
@media (max-width: 50rem) { .press-list a { grid-template-columns: minmax(0, 1fr) auto; } .press-list .kicker { grid-column: 1 / -1; } .press-list h3 { color: var(--white); } }

/* Finale */
.finale { padding-top: 0; }
.section.finale > .wrap::before, .section.media > .wrap::before, .section.story > .wrap::before { display: none; }
.finale-hero { min-height: 92vh; min-height: 92svh; display: grid; align-items: center; border-top: 1px solid var(--line); }
.finale-hero .locale { margin-top: 2rem; }
.finale .contact-form { max-width: 52rem; background: var(--panel), rgba(13, 19, 27, .92); }

/* ==========================================================================
   V3.1 — new brand art, drawn double slash, motion refinements
   ========================================================================== */
/* The double slash is drawn, not typed: same geometry as the logo, exactly
   cap-height tall and sitting on the baseline, so it centers on any text line. */
:root { --slash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.2 20'%3E%3Cpath d='M0 20h9L16.5 0h-9zM10.7 20h9L27.2 0h-9z'/%3E%3C/svg%3E"); }
.slashes, .proof li::before, .compare .handle::after {
  -webkit-mask: var(--slash) center / contain no-repeat; mask: var(--slash) center / contain no-repeat;
}
.slashes { display: inline-block; flex: none; width: .96em; height: .7em; padding: 0; margin-inline: .2em .35em; background: var(--blue); vertical-align: baseline; letter-spacing: 0; }
.section-eyebrow { align-items: baseline; gap: .35em; }
.section-eyebrow .slashes:first-child { margin-left: 0; }
.compare .handle::after { content: ""; width: 1rem; height: .72rem; border-radius: 0; background: var(--ink-on-blue); box-shadow: none; }
.compare .handle::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(38, 169, 235, .18); }
.compare input:focus-visible + .handle::before { outline: 2px solid var(--white); outline-offset: 3px; }
.compare input:focus-visible + .handle::after { outline: 0; }
.chapter-num .slashes { margin-inline: .3em; }
.loader .slashes { width: .7em; height: .52em; margin: 0 0 0 .12em; }

/* Brand: supplied emblem + wordmark art */
.brand, .footer-brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand .brand-mark { height: 2.6rem; width: auto; margin-block: -.2rem; }
.brand .brand-word { height: .95rem; width: auto; }
.footer-brand .brand-mark { height: 3.25rem; width: auto; }
.footer-brand .brand-word { height: 1.75rem; width: auto; }
@media (max-width: 47.5rem) { .brand { gap: .5rem; } .brand .brand-mark { height: 2.1rem; } .brand .brand-word { height: .72rem; } }
@media (max-width: 22rem) { .brand .brand-word { height: .62rem; } }

/* Header: slides away on the way down, returns on the way up; progress line */
.site-header { transition: transform .45s var(--ease), border-color var(--t-fast); }
.site-header.is-hidden:not(:focus-within) { transform: translateY(-110%); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }
.header-inner { position: static; }

/* Hero entrance, timed to follow the intro counter */
@media (prefers-reduced-motion: no-preference) {
  .has-loader .hero-copy > :not(h1), .has-loader .hero-figure, .has-loader .proof li, .has-loader .proof-label { animation: rise .9s var(--ease) both; }
  .has-loader .hero-copy > .eyebrow { animation-delay: .95s; }
  .has-loader .hero h1 .w { transition-delay: calc(1.05s + var(--i) * 90ms); }
  .has-loader .hero-copy > .lede { animation-delay: 1.5s; }
  .has-loader .hero-copy > .cta-row { animation-delay: 1.65s; }
  .has-loader .hero-figure { animation-name: bloom; animation-duration: 1.6s; animation-delay: 1s; }
  .has-loader .proof-label { animation-delay: 1.75s; }
  .has-loader .proof li { animation-delay: calc(1.8s + var(--n, 0) * 90ms); }
  .proof li:nth-child(2) { --n: 1; } .proof li:nth-child(3) { --n: 2; } .proof li:nth-child(4) { --n: 3; } .proof li:nth-child(5) { --n: 4; }
  .loader img { animation: bloom 1s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } }
@keyframes bloom { from { opacity: 0; transform: scale(.94); filter: blur(10px); } }
@keyframes flow { to { stroke-dashoffset: -15; } }
@media (max-width: 60rem) { .has-loader .hero-figure { animation-name: fade-half; } }
@keyframes fade-half { from { opacity: 0; } }

/* Loader with the emblem */
.loader { align-content: center; justify-items: center; gap: 1.5rem; }
.loader img { width: clamp(5rem, 14vw, 8rem); height: auto; }
.loader span { font-size: clamp(1.5rem, 4vw, 2.25rem); display: inline-flex; align-items: baseline; color: var(--steel); }

/* Chapter copy is scroll-linked (set in js/field.js): it sharpens at mid-screen */
.chapter-copy { opacity: var(--o, 1); filter: blur(var(--b, 0px)); transform: translate3d(0, var(--y, 0px), 0); will-change: opacity, transform; }
html[data-motion="off"] .chapter-copy { opacity: 1; filter: none; transform: none; }
html[data-motion="off"] .site-header.is-hidden { transform: none; }
@media (max-width: 30rem) { .footer-brand .brand-mark { height: 2.5rem; } .footer-brand .brand-word { height: 1.3rem; } }
@media (max-width: 60rem) { .hero-figure .fig-core { opacity: .3; } }

/* V3.2 — vector emblem, shared header/footer lockup */
.brand .brand-mark { height: 2.5rem; margin-block: 0; }
.brand .brand-word { height: 1.6rem; }
.footer-brand .brand-mark { height: 2.75rem; }
.fineprint .sep { margin-inline: .9em; color: var(--line-strong); }
.hero-figure .fig-core image { filter: drop-shadow(0 0 22px rgba(38, 169, 235, .28)); }
@media (max-width: 47.5rem) { .brand .brand-mark { height: 1.9rem; } .brand .brand-word { height: 1.15rem; } }
@media (max-width: 22rem) { .brand .brand-word { height: 1rem; } }
@media (max-width: 30rem) { .footer-brand .brand-mark { height: 2.1rem; } .fineprint .sep { margin-inline: .5em; } }

/* V3.3 — 04 Glide logo kit: single-image lockups in header and footer */
.brand .brand-logo { display: block; height: 2.4rem; width: auto; }
.footer-brand .brand-logo { display: block; height: 2.9rem; width: auto; }
@media (max-width: 47.5rem) { .brand .brand-logo { height: 1.85rem; } }
@media (max-width: 24rem) { .brand .brand-logo { height: 1.55rem; } }
@media (max-width: 30rem) { .footer-brand .brand-logo { height: 2.3rem; } }

/* ==========================================================================
   V3.4 — operator story: proof strip, problem, how it works, retainers,
   founder-led About with "As seen in", start-with form choices
   ========================================================================== */
h3 em, h4 em { font-style: normal; color: var(--blue); }

/* Hero proof strip */
.proof { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem 2.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); position: relative; }
.proof-label { font: 600 var(--fs-micro)/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--steel); }
.proof-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.proof li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .6em; align-items: baseline; }
.proof li::before { content: ""; grid-row: 1 / 3; width: .8em; height: .58em; background: var(--blue); align-self: center; }
.proof b { font: 600 1.0625rem/1.1 var(--font-display); letter-spacing: -.01em; color: var(--white); }
.proof span { grid-column: 2; font-size: .75rem; color: var(--steel); }
@media (max-width: 60rem) { .proof { grid-template-columns: minmax(0, 1fr); } .proof-list { justify-content: flex-start; gap: 1rem 2rem; } }
@media (max-width: 30rem) { .proof-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; } }

/* Problem */
.symptoms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding: 0; list-style: none; }
.symptom { display: grid; align-content: start; gap: .75rem; padding: 1.25rem 1.5rem 1.75rem; }
.symptom-art { width: 100%; height: auto; margin-bottom: .5rem; border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.symptom-art text { font: 600 9px var(--font-body); letter-spacing: .14em; fill: var(--error); }
.symptom-art .sym-badge { fill: var(--midnight); letter-spacing: 0; font-size: 9px; }
.symptom-num { font: 500 var(--fs-small) var(--font-display); color: var(--blue); font-variant-numeric: tabular-nums; }
.symptom h3 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); line-height: 1.12; letter-spacing: -.035em; }
.symptom p { font-size: .9375rem; }
.bridge { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.bridge p { font: 500 var(--fs-lede)/1.4 var(--font-display); color: var(--text); letter-spacing: -.01em; }
.bridge strong { color: var(--white); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .js .symptom .sym-line { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.4s var(--ease) .3s; }
  .js .symptom.is-in .sym-line { stroke-dashoffset: 0; }
  .symptom.is-in .sym-dot { animation: ping 2.4s var(--ease) infinite; transform-origin: 186px 80px; transform-box: view-box; }
}
@keyframes ping { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.25); } }
@media (max-width: 56rem) { .symptoms { grid-template-columns: minmax(0, 1fr); } .symptom { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); column-gap: 1.25rem; } .symptom-art { grid-row: 1 / 4; border: 0; padding: 0; margin: 0; align-self: center; } }
@media (max-width: 30rem) { .symptom { grid-template-columns: minmax(0, 1fr); } .symptom-art { grid-row: auto; max-width: 14rem; } }

/* How it works: 4-step track */
.steps { --fill: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding: 0; list-style: none; }
.steps::before, .steps::after { content: ""; position: absolute; left: .55rem; right: 0; top: .55rem; height: 1px; background: var(--line-strong); }
.steps::after { background: linear-gradient(90deg, var(--blue), var(--blue-hover)); height: 2px; top: calc(.55rem - .5px); transform: scaleX(var(--fill)); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.steps.is-in, html:not(.js) .steps, html[data-motion="off"] .steps { --fill: 1; }
.step { position: relative; display: grid; align-content: start; gap: .6rem; padding-top: 2.25rem; padding-right: 1rem; min-width: 0; }
.step-node { position: absolute; top: 0; left: 0; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--midnight); border: 1.5px solid var(--blue); z-index: 1; transition: background-color .4s, box-shadow .4s; }
.steps.is-in .step-node { background: var(--blue); box-shadow: 0 0 0 6px rgba(38, 169, 235, .16); }
.step:nth-child(2) .step-node { transition-delay: .5s; } .step:nth-child(3) .step-node { transition-delay: .9s; } .step:nth-child(4) .step-node { transition-delay: 1.3s; }
.step-meta { display: flex; align-items: center; gap: .6rem; }
.step-num { font: 400 clamp(2rem, 1.6rem + 1.4vw, 2.75rem)/1 var(--font-display); color: var(--blue); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.step-pill { padding: .25rem .55rem; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 .625rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.step-key .step-pill { border-color: var(--blue-line); color: var(--blue); background: var(--blue-soft); }
.step h3 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); letter-spacing: -.035em; line-height: 1.1; }
.step p:not(.step-meta) { font-size: .9375rem; }
.step strong { color: var(--white); font-weight: 600; }
@media (max-width: 56rem) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before, .steps::after { left: .55rem; right: auto; top: .5rem; bottom: 1rem; width: 1px; height: auto; }
  .steps::after { width: 2px; left: calc(.55rem - .5px); transform: scaleY(var(--fill)); transform-origin: top; }
  .step { padding: 0 0 2rem 2.25rem; }
}

/* Inside the Jumpstart Audit */
.jumpstart { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.5rem, 3vw, 2.5rem); border-color: var(--blue-line); }
.js-intro { display: grid; align-content: start; justify-items: start; gap: 1.25rem; }
.js-intro h3 { font-size: var(--fs-h3); line-height: 1.08; letter-spacing: -.04em; }
.js-intro h3 span { color: var(--steel); }
.days { display: grid; gap: 0; width: 100%; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.days li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding-block: .75rem; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.days b { font: 600 .75rem/1.9 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.deliverables { display: grid; gap: .75rem; }
.deliverables li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(9, 13, 19, .5); transition: border-color .3s; }
.deliverables li:hover { border-color: var(--blue-line); }
.dl-letter { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius-sm); background: var(--blue-soft); border: 1px solid var(--blue-line); font: 600 1.375rem var(--font-display); color: var(--blue); }
.deliverables h4 { font-size: 1.25rem; letter-spacing: -.03em; margin-bottom: .25rem; }
.deliverables p { font-size: .9375rem; }
.score { display: flex; align-items: flex-end; gap: 4px; height: 1.25rem; margin-top: .6rem; }
.score i { width: 1.5rem; border-radius: 2px; background: var(--blue); opacity: .85; }
.score .s1 { height: 20%; background: var(--error); } .score .s2 { height: 40%; background: var(--error); opacity: .7; } .score .s3 { height: 60%; background: var(--steel); } .score .s4 { height: 80%; } .score .s5 { height: 100%; }
@media (max-width: 56rem) { .jumpstart { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 30rem) { .days li { grid-template-columns: minmax(0, 1fr); gap: .1rem; } .deliverables li { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .85rem; padding: 1rem; } .dl-letter { width: 2.5rem; height: 2.5rem; font-size: 1.125rem; } .js-intro .btn { width: 100%; } }

/* Retainer tiers (no prices) */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tier { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: .75rem; padding: 1.5rem; justify-items: start; }
.tier-level { display: flex; gap: 4px; }
.tier-level i { width: 1.75rem; height: 4px; border-radius: 2px; background: var(--line-strong); }
.tier-level i.on { background: var(--blue); }
.tier h4 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); letter-spacing: -.045em; }
.tier-line { color: var(--white); font-size: .9375rem; }
.tier-list { display: grid; gap: .5rem; width: 100%; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .9375rem; }
.tier-list li { display: flex; gap: .6rem; align-items: baseline; }
.tier-list li::before { content: ""; flex: none; width: .5rem; height: .5rem; border: 1.5px solid var(--blue); border-radius: 50%; transform: translateY(-.05rem); }
.tier .btn { margin-top: .75rem; }
@media (max-width: 56rem) { .tiers { grid-template-columns: minmax(0, 1fr); } .tier { grid-template-rows: none; } }

/* About: founder + record + network */
.founder { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.founder-card { margin: 0; }
.founder-copy { display: grid; gap: 2rem; }
.founder-copy > p { font-size: var(--fs-lede); line-height: 1.6; max-width: 38em; }
.record { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.record li { display: grid; gap: .2rem; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.record b { font: 600 1.25rem/1.2 var(--font-display); color: var(--white); letter-spacing: -.02em; }
.record span { font-size: var(--fs-small); color: var(--steel); }
.network { display: grid; gap: .75rem; padding: 1.25rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.network .tags { margin-top: .25rem; }
.seen .subhead h3 span { color: var(--steel); }
.press-list h4 { font-size: clamp(1.125rem, 1rem + 1vw, 1.75rem); line-height: 1.2; letter-spacing: -.03em; color: var(--steel); transition: color .3s; }
.press-list a:hover h4, .press-list a:focus-visible h4 { color: var(--white); }
@media (max-width: 50rem) { .press-list h4 { color: var(--white); } }
@media (max-width: 56rem) { .founder { grid-template-columns: minmax(0, 1fr); } .founder-card { max-width: 22rem; } }
@media (max-width: 30rem) { .record { grid-template-columns: minmax(0, 1fr); } }

/* Contact: start-with choices */
.choice { border: 0; padding: 0; margin: 0; }
.choice legend { padding: 0; margin-bottom: .75rem; font: 600 var(--fs-micro) var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: grid; gap: .25rem; height: 100%; padding: .85rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--midnight); transition: border-color var(--t-fast), background-color var(--t-fast); }
.choices b { color: var(--white); font-weight: 600; font-size: .9375rem; }
.choices small { color: var(--steel); font-size: .75rem; line-height: 1.4; }
.choices label:hover span { border-color: var(--steel); }
.choices input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.choices input:focus-visible + span { outline: 2px solid var(--blue-hover); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: var(--steel); opacity: .6; }
@media (max-width: 56rem) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field .choices label { font: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.proof li { align-content: start; }
.choices span { align-content: start; }

/* V3.5 — Work grid (cards + tag filter, rendered by js/work.js) */
.section.work > .wrap::before { display: block; }
.work-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.work-chip { padding: .45rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--text); font: 500 .8125rem var(--font-body); cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast); }
.work-chip:hover { border-color: var(--steel); color: var(--white); }
.work-chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--white); }
.work-count { margin: .9rem 0 1.25rem; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.work-card { display: grid; grid-template-rows: auto 1fr; height: 100%; transition: border-color .3s, transform .4s var(--ease); }
.work-card:hover, .work-card:focus-visible { border-color: var(--blue-line); transform: translateY(-3px); }
.work-art { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.work-art svg { width: 100%; height: auto; transition: transform .8s var(--ease); }
.work-card:hover .work-art svg { transform: scale(1.03); }
.work-flag { position: absolute; left: .75rem; top: .75rem; padding: .3rem .55rem; border-radius: 999px; background: var(--white); color: var(--midnight); font: 700 .5625rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.work-label { position: absolute; right: .75rem; bottom: .7rem; font: 600 .625rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.work-body { display: grid; gap: .65rem; align-content: start; padding: 1.25rem 1.4rem 1.5rem; }
.work-body h3 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); letter-spacing: -.035em; line-height: 1.12; }
.work-body > p:not(.kicker) { font-size: .9375rem; }
.work-body .tags { margin-top: .25rem; }
.work-body .text-link { justify-self: start; margin-top: .4rem; }
.work-card:hover .text-link { color: var(--blue-hover); border-color: currentColor; }
.work-slots { margin-top: 1rem; }
.work-slot { display: grid; gap: .5rem; align-content: center; justify-items: start; min-height: 9rem; padding: 1.25rem 1.4rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: var(--fs-small); color: var(--steel); }
.work-slot .slot-note { margin: 0; }
@media (prefers-reduced-motion: no-preference) { .js .work-card .ring { transition: stroke-dashoffset 1.2s var(--ease); } }
@media (max-width: 40rem) {
  .work-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .4rem; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 2rem), transparent); mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 2rem), transparent); }
  .work-filter::-webkit-scrollbar { display: none; }
  .work-chip { flex: none; }
}

/* ==========================================================================
   V3.6 — new logo kit, richer service demos, illustrations, OG image
   ========================================================================== */
/* Logo: v5 wordmark PNG (8.4 : 1) */
.brand .brand-logo { height: 1.7rem; }
.footer-brand .brand-logo { height: 2.1rem; }
@media (max-width: 47.5rem) { .brand .brand-logo { height: 1.4rem; } }
@media (max-width: 24rem) { .brand .brand-logo { height: 1.2rem; } }
@media (max-width: 30rem) { .footer-brand .brand-logo { height: 1.7rem; } }
.hero-figure .fig-core image { filter: drop-shadow(0 0 26px rgba(38, 169, 235, .45)); }
.loader img { width: clamp(3.5rem, 9vw, 5.5rem); }

/* ---------- Demo 1: before / after websites ---------- */
.compare { aspect-ratio: 16 / 10.5; container-type: inline-size; background: #f4f1ea; }
.compare .site { position: absolute; inset: 0; overflow: hidden; }
.compare .site-after { clip-path: inset(0 0 0 var(--pos)); }
/* before: circa 2009 */
.site-before { background: #f4f1ea; color: #222; font-family: "Times New Roman", Times, serif; font-size: 2.3cqw; }
.sb-top { display: flex; justify-content: space-between; align-items: baseline; padding: 2.2cqw 3cqw 1.4cqw; background: linear-gradient(#dfe7f1, #b9c9dc); border-bottom: .4cqw solid #6f86a3; }
.sb-top b { font-size: 3.6cqw; color: #1f3a7a; text-decoration: underline; letter-spacing: .02em; }
.sb-top span { color: #1a0dab; text-decoration: underline; font-size: 1.9cqw; }
.sb-marquee { padding: .8cqw 3cqw; background: #ffef9a; color: #b00; font: 700 1.9cqw "Comic Sans MS", "Comic Relief", cursive; white-space: nowrap; overflow: hidden; }
.sb-body { display: grid; grid-template-columns: 38% 1fr; gap: 3cqw; padding: 3cqw; }
.sb-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, #ccc 0 1cqw, #d8d8d8 1cqw 2cqw); border: .3cqw inset #999; color: #666; font-size: 2.2cqw; }
.sb-text { display: grid; gap: 1.4cqw; align-content: start; line-height: 1.35; }
.sb-h { font: 700 4.4cqw "Comic Sans MS", "Comic Relief", cursive; color: #c0392b; }
.sb-text u { color: #1a0dab; }
.sb-btn { justify-self: start; padding: .5cqw 2cqw; background: linear-gradient(#fafafa, #ccc); border: .25cqw outset #aaa; font: 1.9cqw Arial, sans-serif; color: #111; }
.sb-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4cqw 3cqw; background: #333; color: #ddd; font: 1.6cqw Verdana, sans-serif; text-align: center; }
.sb-foot span { padding: 0 .6cqw; background: #000; color: #39ff14; font-family: "Courier New", monospace; letter-spacing: .2em; }
/* after: built to sell */
.site-after { background: radial-gradient(90cqw 60cqw at 78% 30%, #0f3550 0%, #0a1724 40%, #05080c 75%); color: #fff; font-family: var(--font-body); }
.sa-glow { position: absolute; width: 60cqw; height: 60cqw; right: -12cqw; top: -18cqw; border-radius: 50%; background: radial-gradient(circle, rgba(38,169,235,.38), transparent 62%); filter: blur(2cqw); }
.sa-nav { position: relative; display: flex; align-items: center; gap: 3cqw; padding: 3cqw 4cqw 0; font-size: 1.9cqw; }
.sa-logo { display: inline-flex; align-items: center; gap: 1.2cqw; font: 700 2.3cqw var(--font-display); letter-spacing: .32em; }
.sa-logo i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: conic-gradient(from 200deg, #26A9EB, #9BDCFF, #26A9EB, #0a3a57, #26A9EB); box-shadow: 0 0 2cqw rgba(38,169,235,.7); }
.sa-links { display: flex; gap: 3cqw; margin-left: auto; color: rgba(255,255,255,.66); }
.sa-cta { padding: 1.1cqw 2.4cqw; border-radius: 9cqw; background: #fff; color: #05080c; font-weight: 600; }
.sa-hero { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 2cqw; align-items: center; padding: 4.5cqw 4cqw 0; }
.sa-copy { display: grid; gap: 1.8cqw; justify-items: start; }
.sa-eyebrow { padding: .8cqw 1.8cqw; border: 1px solid rgba(91,192,242,.45); border-radius: 9cqw; background: rgba(38,169,235,.12); color: #9BDCFF; font-size: 1.5cqw; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.sa-h { display: block; font: 600 6.1cqw/1 var(--font-display); letter-spacing: -.045em; }
.sa-h em { display: block; font-style: normal; background: linear-gradient(90deg, #fff 0%, #9BDCFF 40%, #26A9EB 75%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sa-sheen 6s linear infinite; }
@keyframes sa-sheen { to { background-position: -200% 0; } }
.sa-sub { max-width: 34cqw; font-size: 1.9cqw; line-height: 1.45; color: rgba(255,255,255,.7); }
.sa-btns { display: flex; gap: 1.4cqw; }
.sa-btn { padding: 1.5cqw 2.8cqw; border-radius: 9cqw; background: linear-gradient(135deg, #5BC0F2, #26A9EB 50%, #1b7fc0); color: #04121C; font-size: 1.9cqw; font-weight: 700; box-shadow: 0 1.2cqw 3cqw rgba(38,169,235,.45); }
.sa-btn.ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.22); box-shadow: none; }
.sa-trust { display: flex; gap: 2.4cqw; font-size: 1.55cqw; color: rgba(255,255,255,.6); }
.sa-trust span::before { content: "✓ "; color: #26A9EB; }
.sa-car { position: relative; }
.sa-car svg { width: 100%; height: auto; filter: drop-shadow(0 2cqw 3cqw rgba(0,0,0,.6)); }
.car-shine { animation: car-shine 4.5s var(--ease) infinite; }
@keyframes car-shine { 0% { transform: skewX(-20deg) translateX(0); } 60%, 100% { transform: skewX(-20deg) translateX(620px); } }
.sa-card { position: absolute; display: grid; grid-template-columns: auto 1fr; column-gap: 1cqw; align-items: center; padding: 1.2cqw 1.8cqw; border-radius: 1.8cqw; background: rgba(13,19,27,.62); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 2cqw 4cqw rgba(0,0,0,.4); font-size: 1.6cqw; animation: bob 5s ease-in-out infinite; }
.sa-card i { grid-row: 1 / 3; display: grid; place-items: center; width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: #3FD46B; color: #04121C; font-style: normal; font-weight: 700; }
.sa-card b { font-weight: 600; } .sa-card small { color: rgba(255,255,255,.6); font-size: 1.35cqw; grid-column: -2; }
.sa-card.c1 { left: 2cqw; top: -2cqw; }
.sa-card.c2 { right: 0; bottom: -1cqw; grid-template-columns: 1fr; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-1cqw); } }
.sa-stats { position: absolute; left: 4cqw; right: 4cqw; bottom: 3.2cqw; display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 2cqw; border-top: 1px solid rgba(255,255,255,.12); }
.sa-stats span { display: grid; gap: .3cqw; }
.sa-stats b { font: 600 3.2cqw var(--font-display); letter-spacing: -.03em; }
.sa-stats small { font-size: 1.4cqw; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .16em; }
.compare .tag { top: auto; bottom: .6rem; z-index: 4; }
.compare .tag-b { background: rgba(0,0,0,.72); color: #fff; }
.compare .tag-a { background: rgba(38,169,235,.92); color: var(--ink-on-blue); }
.compare .handle { z-index: 3; box-shadow: 0 0 14px rgba(38,169,235,.8); }
.compare input { z-index: 5; }

/* ---------- Demo 2: agent workflow ---------- */
.agent { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.agent-graph { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: radial-gradient(22rem 14rem at 47% 50%, rgba(38,169,235,.12), transparent 70%), linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 100%, var(--midnight); }
.agent-graph .wires path { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 5; transition: stroke .4s; }
.agent-graph .wires path.hot { stroke: var(--blue); stroke-dasharray: none; }
.agent-graph .node rect { fill: var(--midnight-2); stroke: var(--line-strong); transition: stroke .35s, fill .35s; }
.agent-graph .node text, .agent-graph .gate-label { font: 500 11.5px var(--font-body); fill: var(--text); text-anchor: middle; transition: fill .35s; }
.agent-graph .gate-label { font-size: 8.5px; letter-spacing: .2em; fill: var(--steel); font-weight: 600; }
.agent-graph .node.on rect { stroke: var(--blue); fill: rgba(38,169,235,.16); }
.agent-graph .node.on text { fill: var(--white); }
.agent-graph .node.done rect { stroke: #3FD46B; fill: rgba(63,212,107,.12); }
.agent-graph .node.done text { fill: var(--white); }
.agent-graph .tool rect { rx: 18; }
.agent-graph .gate path { stroke: var(--steel); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, opacity .3s; }
.agent-graph .gate .gate-ok { opacity: 0; stroke: #04121C; stroke-width: 3; }
.agent-graph .gate.wait rect { stroke: #FFC53D; fill: rgba(255,197,61,.14); animation: gate-pulse 1.2s ease-in-out infinite; }
.agent-graph .gate.wait path { stroke: #FFC53D; }
.agent-graph .gate.ok rect { fill: #3FD46B; stroke: #3FD46B; }
.agent-graph .gate.ok .gate-lock { opacity: 0; } .agent-graph .gate.ok .gate-ok { opacity: 1; }
@keyframes gate-pulse { 50% { filter: drop-shadow(0 0 8px rgba(255,197,61,.8)); } }
.agent-core .halo { fill: rgba(38,169,235,.08); stroke: rgba(38,169,235,.25); }
.agent-core .ring { fill: none; stroke: var(--blue); stroke-opacity: .55; stroke-dasharray: 4 7; transform-origin: 300px 165px; animation: spin 14s linear infinite; }
.agent-core .r2 { stroke-dasharray: 18 10; stroke-opacity: .35; animation-direction: reverse; animation-duration: 9s; }
.agent.is-thinking .agent-core .ring { animation-duration: 1.6s; stroke-opacity: .95; }
.agent.is-thinking .agent-core .halo { animation: halo 1.2s ease-in-out infinite; }
@keyframes halo { 50% { fill: rgba(38,169,235,.2); } }
.agent-label { font: 700 13px var(--font-display); fill: #04121C; text-anchor: middle; letter-spacing: .06em; }
.packets circle { fill: #9BDCFF; filter: drop-shadow(0 0 5px #26A9EB); }
.packets circle.ok { fill: #3FD46B; filter: drop-shadow(0 0 5px #3FD46B); }
.agent-log { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(9,13,19,.75); padding: .75rem .9rem; min-height: 8.6rem; font: 400 .78rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.log-head { display: flex; justify-content: space-between; margin-bottom: .35rem; color: var(--steel); font: 600 .625rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; }
.log-clock { color: var(--blue); font-variant-numeric: tabular-nums; }
.agent-log ol { display: grid; gap: .1rem; }
.agent-log li { color: var(--text); animation: log-in .35s var(--ease); }
.agent-log li b { color: var(--blue); font-weight: 500; margin-right: .5em; }
.agent-log li.ok b { color: #3FD46B; } .agent-log li.wait b { color: #FFC53D; }
.agent-log li.muted { color: var(--steel); }
@keyframes log-in { from { opacity: 0; transform: translateX(-.4rem); } }
.approve-btn:not([hidden]) { border-color: #FFC53D; color: #FFC53D; animation: gate-pulse 1.2s ease-in-out infinite; }
@media (min-width: 72rem) { .cap-panel .agent { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; } }

/* ---------- Demo 3: finance model ---------- */
.fin { display: grid; gap: 1rem; }
.fin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.fin-kpis div { padding: .65rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(9,13,19,.6); min-width: 0; }
.fin-kpis dt { font-size: .5625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-kpis dd { margin: .2rem 0 0; font: 600 clamp(1.05rem, .8rem + 1vw, 1.5rem)/1.1 var(--font-display); color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: -.02em; transition: color .3s; }
.fin-kpis dd.neg { color: var(--error); } .fin-kpis dd.pos { color: #7ED4FF; }
.fin-chart { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); background: radial-gradient(30rem 12rem at 60% 0%, rgba(38,169,235,.08), transparent 70%), var(--midnight); padding: .5rem .25rem .25rem; }
.fin-chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.fin-grid line { stroke: var(--line); }
.fin-grid text, .fin-x text { font: 500 9.5px var(--font-body); fill: var(--steel); letter-spacing: .06em; }
.fin-zero { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.fin-line { stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fin-cum { stroke: var(--white); stroke-opacity: .7; stroke-width: 1.4; stroke-dasharray: 5 5; }
.fin-be line { stroke: #3FD46B; stroke-opacity: .6; stroke-dasharray: 2 4; }
.fin-be #be-dot { fill: #3FD46B; filter: drop-shadow(0 0 6px #3FD46B); }
.fin-be #be-ring { fill: none; stroke: #3FD46B; stroke-opacity: .5; animation: be-ping 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes be-ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.fin-be text { font: 700 9px var(--font-body); letter-spacing: .18em; fill: #3FD46B; text-anchor: middle; }
.fin-hover line { stroke: var(--white); stroke-opacity: .35; }
.fin-hover circle { fill: var(--white); }
.fin-tip { position: absolute; top: .6rem; padding: .5rem .65rem; border-radius: 8px; background: rgba(13,19,27,.94); border: 1px solid var(--line-strong); font-size: .75rem; line-height: 1.5; pointer-events: none; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.fin-tip b { color: var(--white); }
.fin-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding: .35rem .75rem .4rem; font-size: .6875rem; color: var(--steel); }
.fin-legend li { display: flex; align-items: center; gap: .4rem; }
.fin-legend li::before { content: ""; width: .9rem; height: .5rem; border-radius: 2px; }
.l-rev::before { background: linear-gradient(#8C9CAA, transparent); }
.l-pro::before { height: 3px !important; background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.l-cum::before { height: 0 !important; border-top: 1.5px dashed rgba(241,244,248,.7); }
.fin .sliders { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.fin-insight { font-size: .875rem; color: var(--text); min-height: 2.6em; }
.fin-insight b { color: var(--white); font-weight: 600; }
@media (max-width: 40rem) { .fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fin .sliders { grid-template-columns: minmax(0, 1fr); } }

/* Motion off: freeze the decorative loops */
html[data-motion="off"] .car-shine, html[data-motion="off"] .sa-card, html[data-motion="off"] .sa-h em, html[data-motion="off"] .agent-core .ring { animation: none !important; }
.compare .sa-car svg { position: relative; inset: auto; height: auto; }

/* Problem illustrations */
.symptom-art { overflow: visible; }
.symptom-art text { font: 600 8px var(--font-body); letter-spacing: .14em; fill: var(--steel); }
.symptom-art .sy-k { font-size: 7.5px; letter-spacing: .2em; fill: var(--steel); }
.symptom-art .sy-l { font: 500 9px var(--font-body); letter-spacing: 0; fill: var(--text); }
.symptom-art .sy-l.dim { fill: var(--steel); font-size: 8px; }
.symptom-art .sy-v { font: 600 10px var(--font-display); letter-spacing: 0; fill: var(--white); text-anchor: end; }
.symptom-art .sy-v.c { fill: #FF9B8A; }
.symptom-art .sy-chip { font: 700 7.5px var(--font-body); letter-spacing: .12em; fill: #FF9B8A; text-anchor: middle; }
.symptom-art .sy-chip.b { fill: #7ED4FF; font-size: 6.5px; }
.symptom-art .sy-badge text { font: 700 10px var(--font-display); fill: #1a0a06; letter-spacing: 0; }
.symptom-art .sy-badge { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .symptom-art .sy-flow { animation: sy-dash 1.4s linear infinite; }
  .symptom-art .sy-caret { animation: sy-blink 1s steps(2) infinite; }
  .symptom.is-in .sy-badge { animation: sy-pop 3s var(--ease) infinite; }
}
@keyframes sy-dash { to { stroke-dashoffset: -18; } }
@keyframes sy-blink { 50% { opacity: 0; } }
@keyframes sy-pop { 0%, 80%, 100% { transform: scale(1); } 86% { transform: scale(1.18); } }
.symptom { transition: border-color .4s, transform .5s var(--ease); }
.symptom:hover { border-color: var(--line-strong); transform: translateY(-3px); }
@media (max-width: 56rem) { .symptom { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); } }
@media (max-width: 30rem) { .symptom-art { max-width: none; } }

/* Audit / Blueprint / Proof icons */
.deliverables li { grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; position: relative; overflow: hidden; }
.deliverables li::before { content: ""; position: absolute; inset: 0; background: radial-gradient(14rem 6rem at 0% 50%, rgba(38,169,235,.12), transparent 70%); opacity: .6; transition: opacity .4s; pointer-events: none; }
.deliverables li:hover::before { opacity: 1; }
.dl-icon { position: relative; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 16px; background: radial-gradient(circle at 30% 20%, rgba(38,169,235,.28), rgba(9,13,19,.9) 70%); border: 1px solid var(--blue-line); box-shadow: inset 0 0 18px rgba(38,169,235,.18), 0 10px 26px rgba(0,0,0,.35); }
.dl-icon svg { width: 3.6rem; height: 3.6rem; }
.dl-audit .sweep { transform-origin: 32px 32px; animation: spin 3.2s linear infinite; }
.dl-audit .blip { animation: blip 3.2s ease-out infinite; opacity: .15; }
.dl-audit .b2 { animation-delay: 1.9s; } .dl-audit .b3 { animation-delay: 1.1s; }
@keyframes blip { 0%, 8% { opacity: 1; r: 3.6; } 40% { opacity: .5; } 100% { opacity: .15; } }
.dl-blue .draw { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 4s var(--ease) infinite; }
.dl-blue .pin { opacity: 0; animation: pin 4s var(--ease) infinite; }
.dl-blue .p2 { animation-delay: .5s; } .dl-blue .p3 { animation-delay: 1s; }
@keyframes draw { 0% { stroke-dashoffset: 90; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -90; } }
@keyframes pin { 0%, 15% { opacity: 0; } 30%, 85% { opacity: 1; } 100% { opacity: 0; } }
.dl-proof .bar { transform-box: fill-box; transform-origin: left; animation: fill 3.6s var(--ease) infinite; }
.dl-proof .check { transform-box: fill-box; transform-origin: center; animation: check 3.6s var(--ease) infinite; }
@keyframes fill { 0% { transform: scaleX(0); } 50%, 100% { transform: scaleX(1); } }
@keyframes check { 0%, 50% { transform: scale(0); opacity: 0; } 62% { transform: scale(1.2); opacity: 1; } 70%, 92% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
html[data-motion="off"] .dl-blue .draw { stroke-dashoffset: 0; } html[data-motion="off"] .dl-blue .pin, html[data-motion="off"] .dl-proof .check, html[data-motion="off"] .dl-audit .blip { opacity: 1; transform: none; }
html[data-motion="off"] .dl-proof .bar { transform: none; }
@media (max-width: 30rem) { .deliverables li { grid-template-columns: 3.5rem minmax(0, 1fr); } .dl-icon { width: 3.5rem; height: 3.5rem; border-radius: 12px; } .dl-icon svg { width: 2.8rem; height: 2.8rem; } }

/* About (team copy) */
.about-title { margin-top: 1.5rem; }
.about-copy { margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 46rem; font: 400 clamp(1.125rem, 1rem + .6vw, 1.5rem)/1.55 var(--font-body); color: var(--text); }
.work-art img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .9s var(--ease); }
.work-card:hover .work-art img { transform: scale(1.04); }
.work-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(9,13,19,.65)); pointer-events: none; }
.work-label { z-index: 1; }
/* v3.6 fixes */
.agent-log ol { list-style: none; margin: 0; padding: 0; }
@media (min-width: 72rem) { .cap-panel .agent { grid-template-columns: minmax(0, 1fr); } }
.agent-log { min-height: 0; height: 9.5rem; overflow: hidden; }
.agent-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 40rem) { .agent-log { height: 11rem; } .agent-log li { white-space: normal; } }
.work-flag { left: auto; right: .75rem; z-index: 1; }
@media (min-width: 56rem) {
  .work-grid > .work-card-wrap:only-child { grid-column: 1 / -1; }
  .work-grid > .work-card-wrap:only-child .work-card { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: none; }
  .work-grid > .work-card-wrap:only-child .work-art { border-bottom: 0; border-right: 1px solid var(--line); }
  .work-grid > .work-card-wrap:only-child .work-art img { height: 100%; }
  .work-grid > .work-card-wrap:only-child .work-body { align-content: center; padding: 2rem 2.25rem; }
  .work-grid > .work-card-wrap:only-child .work-body h3 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); }
  /* v3.7: exactly two case studies split the row evenly instead of leaving an empty third column */
  .work-grid:has(> .work-card-wrap:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* After on the left, before on the right: the before layer sits on top and is clipped */
.compare .site-after { clip-path: none; z-index: 0; }
.compare .site-before { z-index: 1; clip-path: inset(0 0 0 var(--pos)); }
.compare .tag-a { left: .6rem; right: auto; } .compare .tag-b { right: .6rem; left: auto; }
.sa-hero { padding-top: 5cqw; }
.sa-hero { grid-template-columns: 1.2fr 1fr; padding-top: 4.5cqw; }
.sa-h { font-size: 5.4cqw; }
.sa-sub { max-width: 40cqw; }
.compare .tag { padding: .2rem .45rem; font-size: .5625rem; }
@media (max-width: 40rem) { .symptom { grid-template-columns: minmax(0, 1fr); } .symptom-art { grid-row: auto; max-width: none; border-bottom: 1px solid var(--line); padding-bottom: .75rem; margin-bottom: .5rem; } }
@media (max-width: 40rem) { .agent-graph .in text, .agent-graph .tool text { font-size: 14px; } .agent-graph .out text { font-size: 12.5px; } .agent-graph .gate-label { font-size: 11px; } }
