/* Zensible — shared styles. Tokens mirror zensible-design-system.html. */

:root {
  --ink: #101217;
  --night: #050505;
  --navy: #000812;
  --navy-2: #071a2e;
  --paper: #f5f4f0;
  --paper-2: #e9e9e6;
  --white: #fff;

  --blue: #009dff;
  --blue-mid: #0095d1;
  --teal: #009776;
  --blue-light: #6fd0ff;
  --lime: #d9ff83;
  --gradient-brand: linear-gradient(100deg, #009dff 0%, #0095d1 48%, #009776 100%);

  --line: rgba(16, 18, 23, .15);
  --line-dark: rgba(255, 255, 255, .18);
  --muted: #5b5e66;
  --muted-dark: rgba(255, 255, 255, .7);

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 12px 30px rgba(8, 10, 16, .10);
  --shadow-lg: 0 28px 70px rgba(8, 10, 16, .18);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --font-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 64px);
  --page: min(1480px, calc(100% - 2 * var(--gutter)));
  --section-y: clamp(88px, 11vw, 168px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

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

/* Page loader (first page of a visit): spinning mark beside the wordmark, as on zensible.com */
.page-loader { display: none; }
.show-loader .page-loader {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  background: var(--navy); transition: opacity .6s ease, visibility 0s linear .6s;
}
.page-loader.is-done { opacity: 0; visibility: hidden; }
.loader-logo { display: flex; align-items: center; gap: 14px; }
.loader-mark { width: 64px; height: 64px; animation: loader-spin 6s linear infinite; }
.loader-word { width: auto; height: 64px; }
@keyframes loader-spin { to { transform: rotate(1turn); } }

.skip-link {
  position: fixed; z-index: 200; left: 16px; top: -60px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font-weight: 650;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

.container { width: var(--page); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  margin-bottom: 24px;
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-size: clamp(42px, 6vw, 100px);
  /* ≥1.1 so one line's descenders (y, g, p) clear the next line's ascenders (l, t, h) */
  line-height: 1.1;
  letter-spacing: -.06em;
  font-weight: 560;
  text-wrap: balance;
}
.lede { max-width: 620px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--muted); }
.on-dark .eyebrow { color: var(--blue-light); }
.on-dark .lede { color: var(--muted-dark); }
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 650; letter-spacing: -.01em;
  transition: transform .2s var(--ease-out), background .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }

/* "Talk to us" — iridescent orb CTA (from prototype) */
.cta-orb {
  --iris: conic-gradient(from 0deg, #009dff, #00d5a0, #d9ff83, #ffb36e, #ff7bc5, #9b8cff, #4fb8ff, #009dff);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 5px 18px 5px 5px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-pill);
  background: #1e1e1e; color: var(--white);
  font-size: 14px; font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 26px rgba(0, 0, 0, .45);
  transition: background .25s, border-color .25s, transform .25s var(--ease-out);
}
.cta-orb:hover { background: #262626; border-color: rgba(255, 255, 255, .26); transform: translateY(-1px); }
.cta-orb-ring { position: relative; flex: none; width: 32px; height: 32px; display: grid; place-items: center; }
.cta-orb-ring::before, .cta-orb-ring::after {
  content: ""; position: absolute; border-radius: 50%;
  background: var(--iris); animation: orb-spin 4.2s linear infinite;
}
.cta-orb-ring::before { inset: -5px; filter: blur(6px); opacity: .72; }
.cta-orb-ring::after { inset: 0; }
.cta-orb-ring svg {
  position: relative; z-index: 1; width: 25px; height: 25px; padding: 6px;
  border-radius: 50%; background: #141414; color: var(--white);
}
.cta-orb.is-large { min-height: 56px; padding-right: 24px; font-size: 16px; }
.cta-orb.is-large .cta-orb-ring { width: 42px; height: 42px; }
.cta-orb.is-large .cta-orb-ring svg { width: 33px; height: 33px; padding: 8px; }
@keyframes orb-spin { to { transform: rotate(1turn); } }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; z-index: 100; top: 20px; left: 50%;
  width: min(1528px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px; padding: 0 14px 0 20px;
  border: 1px solid var(--line-dark); border-radius: 18px;
  background: rgba(8, 12, 20, .52);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
  color: var(--white);
}
.brand img { width: 148px; height: auto; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill);
  font-size: 14px; color: rgba(255, 255, 255, .78);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 6px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--blue-light); transform: translateX(-50%);
}
.menu-toggle {
  display: none; width: 44px; height: 44px; place-items: center;
  border: 1px solid var(--line-dark); border-radius: 12px; background: transparent;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.site-nav.is-open .menu-toggle .icon-open { display: none; }
.site-nav.is-open .menu-toggle .icon-close { display: block; }

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - 24px); margin: 12px;
  display: flex; flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--navy); color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 8, 18, .94) 0%, rgba(0, 8, 18, .78) 38%, rgba(0, 8, 18, .28) 62%, rgba(0, 8, 18, 0) 82%);
}
.hero-inner {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start;
  padding: calc(72px + clamp(64px, 12vh, 140px)) clamp(20px, 4vw, 64px) 28px;
}
.hero h1 {
  max-width: 980px;
  font-size: clamp(52px, 8vw, 136px);
  line-height: 1.08; letter-spacing: -.065em; font-weight: 600; /* no descender/ascender collisions */
}
.hero-sub { max-width: 580px; margin: 28px 0 32px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, .8); }
.scroll-cue {
  margin-top: auto; align-self: flex-end;
  display: flex; align-items: center; gap: 12px;
  font: 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.scroll-cue svg { width: 16px; height: 16px; }

/* ---------- 2 · The gap (mobile first; wider screens enhance below) ---------- */
.gap { overflow: hidden; }
.gap .container { position: relative; }
.gap .display { max-width: 900px; }
.gap-flow { display: none; }

.gap-diagram { position: relative; z-index: 1; margin: clamp(40px, 6vw, 72px) 0 0; }
.panel-tag {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px;
  font: 12px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

.sys-intel {
  position: relative; padding: 20px; border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, .07), transparent 55%), linear-gradient(150deg, #242c38 0%, #171c24 60%, #12161c 100%);
  color: var(--white); border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 32px 70px rgba(15, 25, 45, .28), 0 2px 0 rgba(255, 255, 255, .04) inset;
}
.sys-intel .panel-tag { justify-content: flex-start; gap: 6px 12px; color: rgba(255, 255, 255, .7); }
.sys-intel .panel-tag strong { font-weight: 500; color: var(--blue-light); }
.sys-intel { display: grid; gap: 24px; }
.intel-copy .panel-tag { margin-bottom: 10px; }
.intel-copy h3 { margin-bottom: 8px; font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -.045em; font-weight: 620; }
.intel-copy p { max-width: 420px; font-size: 15.5px; line-height: 1.55; color: var(--muted-dark); }
.agent-net { position: relative; }
.agent-net svg { display: block; width: 100%; height: auto; overflow: visible; }
.net-links path { fill: none; stroke: rgba(111, 208, 255, .55); stroke-width: 1.6; stroke-dasharray: 4 6; animation: net-flow 1.6s linear infinite; }
@keyframes net-flow { to { stroke-dashoffset: -20; } }
.hub-ring { fill: rgba(0, 157, 255, .10); stroke: rgba(111, 208, 255, .35); }
.hub-icon { color: #062033; }
.net-agents rect { fill: url(#glass); stroke: rgba(255, 255, 255, .16); }
.net-agents rect.is-hi { fill: url(#glass-hi); stroke: rgba(120, 190, 255, .55); }
.net-agents .accent-b, .net-agents .accent-t { fill: none; stroke-width: 3; stroke-linecap: round; }
.net-agents .accent-b { stroke: var(--blue-light); }
.net-agents .accent-t { stroke: #3fd1a8; }
.net-agents use { color: var(--blue-light); }
.net-agents use.alt { color: #3fd1a8; }
.net-captions span { font: 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.net-captions span:first-child { position: absolute; top: 18%; left: calc(50% + 9%); }
.net-captions span:last-child { display: block; margin-top: 12px; text-align: center; }

.sys-links { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: 72px; margin: 0 8%; }
.sys-links span { justify-self: center; position: relative; width: 0; height: 100%; border-left: 1.5px dashed rgba(0, 149, 209, .55); }
.sys-links span::after { content: ""; position: absolute; left: -4.5px; top: 22%; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-mid); box-shadow: 0 0 0 3px rgba(0, 149, 209, .15); }
.sys-links span:nth-of-type(even)::after { top: 52%; }
.sys-links span:nth-of-type(2), .sys-links span:nth-of-type(4) { display: none; }
.sys-links em {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 12px 26px; border: 1px solid rgba(20, 50, 90, .1); border-radius: var(--radius-pill); background: var(--white);
  box-shadow: 0 8px 22px rgba(20, 50, 90, .07);
  font: normal 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

.sys-record { padding: 20px; border: 1px solid rgba(120, 170, 220, .28); border-radius: 24px; background: linear-gradient(180deg, rgba(236, 244, 251, .92), rgba(248, 251, 254, .92)); box-shadow: 0 18px 50px rgba(20, 50, 90, .06); }
.record-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.record-tiles li { display: flex; flex-direction: column; gap: 2px; padding: 18px; border: 1px solid rgba(16, 24, 40, .06); border-radius: 16px; background: var(--white); box-shadow: 0 10px 28px rgba(20, 50, 90, .07); }
.tile-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 14px; border-radius: 14px; background: linear-gradient(160deg, #eef6fe, #e0edfb); border: 1px solid rgba(0, 149, 209, .16); color: var(--blue-mid); }
.tile-icon svg { width: 22px; height: 22px; }
.record-tiles b { font-size: 17px; line-height: 1.25; font-weight: 640; letter-spacing: -.025em; }
.record-tiles span:not(.tile-icon) { font-size: 13.5px; color: var(--muted); }

.gap-values { display: grid; margin: 40px 0 0; padding: 0; list-style: none; }
.gap-values li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.gap-values li:last-child { border-bottom: 1px solid var(--line); }
.value-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff 0%, #dcecff 55%, #c6dffb 100%); box-shadow: 0 10px 28px rgba(0, 149, 209, .22); color: var(--blue-mid); }
.value-icon.is-teal { background: radial-gradient(circle at 35% 30%, #ffffff 0%, #d9f6ef 55%, #bfeedf 100%); box-shadow: 0 10px 28px rgba(0, 151, 118, .22); color: var(--teal); }
.value-icon svg { width: 26px; height: 26px; }
.gap-values b { font-size: 20px; line-height: 1.2; font-weight: 560; letter-spacing: -.03em; }

/* Phone ribbon + flow lines (mirrors the wide-screen ribbon; hidden from 700px) */
.gap-flow-m, .m-ribbon { display: none; }
@media (max-width: 699px) {
  .gap .display { position: relative; z-index: 1; }
  .gap-flow-m { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-right: 56px; }
  .flow-label-m { position: relative; z-index: 1; flex: none; font: 12px/1.9 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .flow-tick-m { position: relative; z-index: 1; flex: 1; border-top: 1.5px solid rgba(0, 149, 209, .6); }
  .flow-tick-m::after { content: ""; position: absolute; right: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(0, 151, 118, .5); }
  .m-ribbon { display: block; position: absolute; max-width: none; overflow: visible; pointer-events: none; }
  .m-ribbon-top { right: -60px; bottom: -134px; z-index: 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
  .gap-diagram { margin-top: 64px; }
  .m-stroke { stroke: var(--blue-mid); stroke-opacity: .6; stroke-width: 1.5; }
  .m-dot { fill: var(--blue-mid); }

  .sys-links { grid-template-columns: 1fr; height: 96px; }
  .sys-links span:nth-of-type(1), .sys-links span:nth-of-type(5) { display: none; }
  .sys-links span::before { content: ""; position: absolute; left: -4.5px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-mid); box-shadow: 0 0 0 3px rgba(0, 149, 209, .15); }
  .sys-links span::after, .sys-links span:nth-of-type(even)::after { top: auto; bottom: 12px; }
  .m-link-r { z-index: -1; top: -204px; right: calc(50% - 50vw); -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 90%); mask-image: linear-gradient(to top, #000 40%, transparent 90%); }
  .m-link-l { z-index: -1; top: 0; left: calc(50% - 50vw); -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 90%); mask-image: linear-gradient(to bottom, #000 40%, transparent 90%); }
  .sys-record { position: relative; }
  .m-tail { top: calc(100% - 10px); left: calc(50% - 60px); -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 88%); mask-image: linear-gradient(to right, #000 50%, transparent 88%); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
  .gap-values { margin-top: 84px; }

  .record-tiles li { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: center; gap: 2px 9px; padding: 12px 9px; }
  .record-tiles .tile-icon { grid-row: span 2; align-self: center; width: 32px; height: 32px; margin: 0; border-radius: 10px; }
  .tile-icon svg { width: 17px; height: 17px; }
  .record-tiles b { align-self: end; font-size: 14px; }
  .record-tiles span:not(.tile-icon) { align-self: start; font-size: 12.5px; line-height: 1.35; }
  .sys-record { padding: 16px 10px 10px; }
  .record-tiles { gap: 8px; }
  .sys-record .panel-tag { padding: 0 4px; }
}

@media (min-width: 700px) {
  .record-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sys-intel, .sys-record { padding: 28px; }
  .sys-links { grid-template-columns: repeat(5, 1fr); }
  .sys-links span:nth-of-type(2), .sys-links span:nth-of-type(4) { display: block; }
  .gap-values { grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
  .gap-values li, .gap-values li:last-child { flex-direction: column; justify-content: flex-start; gap: 14px; padding: 8px 20px; border-top: 0; border-bottom: 0; text-align: center; }
  .gap-values li + li { border-left: 1px solid var(--line); }
  .gap-values li::after { content: ""; width: 36px; height: 3px; margin-top: 4px; border-radius: 2px; background: var(--gradient-brand); }
  .gap-values b { font-size: 22px; }
  .value-icon { width: 72px; height: 72px; }
}

@media (min-width: 1100px) {
  .gap-head { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
  .gap-flow { display: block; position: relative; z-index: 0; height: 100%; min-height: 260px; }
  .flow-label { position: absolute; z-index: 1; left: 0; top: 104px; font: 12px/1.9 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  /* Anchored to the panel: the panel starts 100px below this column, and y=520 in the artwork is the panel's top,
     so the ribbon's curve always lands just above the panel at every width. */
  .flow-line { position: absolute; left: 0; top: calc(100% - 420px); width: 1000px; height: 640px; max-width: none; overflow: visible; pointer-events: none; }
  .flow-tick { position: absolute; z-index: 1; left: 0; top: 170px; width: 300px; border-top: 1.5px solid rgba(0, 149, 209, .6); }
  .flow-tick::after { content: ""; position: absolute; right: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(0, 151, 118, .5); }
  .flow-stroke { stroke: var(--blue-mid); stroke-opacity: .6; stroke-width: 1.5; }
  .sys-intel { grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); align-items: center; gap: 56px; padding: 40px 44px; }
}

/* ---------- 3 · Co-worker team (arc wheel) ---------- */
.team { background: var(--navy); color: var(--white); padding-bottom: clamp(48px, 6vw, 96px); }
.team-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.team-head .display { max-width: 900px; }
.team-hint { font: 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.team-hint .hint-touch { display: none; }
@media (max-width: 699px) {
  .team-hint .hint-wide { display: none; }
  .team-hint .hint-touch { display: inline; }
}

.arc-wheel {
  position: relative; height: 690px;
  margin: clamp(32px, 4vw, 56px) auto 0; width: calc(100% - 2 * clamp(16px, 3vw, 42px));
  overflow: hidden; background: var(--navy); color: var(--white);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.arc-wheel.dragging { cursor: grabbing; }
.arc-wheel::before { content: ""; position: absolute; z-index: 1200; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--navy) 0%, transparent 8%, transparent 92%, var(--navy) 100%); }
.arc-wheel::after {
  content: ""; position: absolute; z-index: 0; width: 1300px; height: 1300px; left: 50%; bottom: -1000px;
  transform: translateX(-50%); border: 1px solid rgba(111, 208, 255, .2); border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(111, 208, 255, .03), 0 0 0 140px rgba(111, 208, 255, .02); pointer-events: none;
}
.arc-wheel:focus-visible { outline-offset: -3px; }
.arc-card { position: absolute; left: 0; top: 0; z-index: 1; width: 250px; transform-origin: center center; will-change: transform; }
.arc-cover {
  position: relative; height: 365px; padding: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.arc-cover:hover { box-shadow: 0 34px 62px rgba(0, 0, 0, .5); }
.arc-cover::before, .arc-cover::after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 50%; opacity: .22; }
.arc-cover::before { width: 300px; height: 300px; right: -130px; bottom: -135px; }
.arc-cover::after { width: 178px; height: 178px; right: -70px; bottom: -75px; }
.arc-kind { position: relative; z-index: 1; font: 12px var(--font-mono); letter-spacing: .13em; text-transform: uppercase; }
.arc-number { position: absolute; right: 16px; top: 15px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid currentColor; font: 12px var(--font-mono); opacity: .8; }
.arc-cover b { position: absolute; z-index: 1; left: 18px; right: 15px; bottom: 21px; font-size: 40px; line-height: 1.1; letter-spacing: -.07em; font-weight: 640; }
.arc-copy { padding: 18px 2px 0; }
.arc-copy h3 { margin-bottom: 8px; font-size: 15px; line-height: 1.1; letter-spacing: -.025em; font-weight: 640; }
.arc-copy p { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .7); }

/* Brand-tonal card palette (blue → teal family) */
.tone-1 { background: #009dff; color: var(--ink); }
.tone-2 { background: #0b2a4a; color: var(--white); }
.tone-3 { background: #8fd3ff; color: var(--ink); }
.tone-4 { background: #009776; color: var(--ink); }
.tone-5 { background: #dbeefc; color: var(--ink); }
.tone-6 { background: #0d3b3a; color: var(--white); }
.tone-7 { background: #b8eedd; color: var(--ink); }
.tone-8 { background: var(--gradient-brand); color: var(--ink); }
.tone-9 { background: #14466e; color: var(--white); }

/* ---------- 6a · Balance ---------- */
.balance { background: var(--ink); color: var(--white); }
.balance .display { max-width: 1100px; }
.balance .lede { margin-top: 28px; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-dark); }
.mode { padding: 32px 32px 32px 0; }
.mode + .mode { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.mode-mark { width: 40px; height: 40px; margin-bottom: 28px; }
.mode h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.05em; font-weight: 600; margin-bottom: 12px; }
.mode p { max-width: 380px; font-size: 15px; color: var(--muted-dark); }
.mark-agentic { color: var(--blue-light); }
.mark-deterministic { color: #3fd1a8; }
.mark-human { color: #f2c1ff; }

.flow-example { margin-top: clamp(40px, 5vw, 64px); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .03); }
.flow-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.flow-head h3 { font-size: 20px; letter-spacing: -.035em; font-weight: 620; }
.flow-head .eyebrow { margin: 0 0 6px; color: var(--blue-light); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted-dark); align-self: end; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend svg { width: 14px; height: 14px; }
.flow-sub { margin-top: 4px; font-size: 14px; color: var(--muted-dark); }
/* Each step: what happened, then why it runs in that mode. 3 columns on desktop, 2 on tablet, a list on phones. */
.flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.flow-step { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line-dark); border-radius: 18px; background: rgba(255, 255, 255, .03); }
.flow-step .step-mark { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); border: 1px solid var(--line-dark); }
.flow-step .step-mark svg { width: 18px; height: 18px; }
.flow-step > div { display: flex; flex-direction: column; gap: 6px; }
.flow-step .step-stage { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--blue-light); }
.flow-step b { font-size: 15px; line-height: 1.45; letter-spacing: -.01em; font-weight: 520; color: var(--white); }
.flow-step .step-why { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line-dark); font-size: 13.5px; line-height: 1.45; color: var(--muted-dark); }
.flow-step .step-why > span { font-weight: 600; color: var(--white); }
.flow-total { margin-top: 20px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--white); }

/* ---------- 6b · Operating model ---------- */
.model { background: var(--paper-2); }
.model .display { max-width: 980px; }
.model .lede { margin-top: 28px; }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.model-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.model-card .tag { align-self: flex-start; margin-bottom: 24px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--paper); font: 12px var(--font-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.model-card svg.org { width: 100%; height: auto; margin-bottom: 28px; color: var(--ink); }
.model-card h3 { font-size: 26px; line-height: 1.05; letter-spacing: -.05em; font-weight: 620; margin-bottom: 10px; }
.model-card p { font-size: 15px; color: var(--muted); }
.model-card.is-zensible {
  color: var(--white); border: 2px solid transparent; box-shadow: var(--shadow-lg);
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--gradient-brand) border-box;
}
.model-card.is-zensible .tag { background: var(--gradient-brand); color: var(--ink); font-weight: 600; }
.model-card.is-zensible svg.org { color: var(--white); }
.model-card.is-zensible p { color: var(--muted-dark); }
.org .agent { color: var(--blue); }
.is-zensible .org .agent { color: var(--blue-light); }
.org .faded { opacity: .3; }
.org .x { color: #e5484d; }
.org .wire { stroke: currentColor; stroke-opacity: .3; }

/* ---------- 7 · Outcomes ---------- */
.proof .display { max-width: 960px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.stat { display: flex; flex-direction: column; gap: 14px; padding: 32px 32px 8px 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat-value { font-size: clamp(64px, 8vw, 128px); line-height: .85; letter-spacing: -.07em; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .42em; letter-spacing: -.04em; vertical-align: top; margin-right: 4px; }
.stat h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.03em; font-weight: 620; }
.stat p { max-width: 360px; font-size: 15px; color: var(--muted); }
.stats-note { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* ---------- Closing CTA ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  --pad: clamp(110px, 12vw, 180px);
  margin: 0 12px 12px; padding: var(--pad) 24px;
  border-radius: var(--radius-lg); background: var(--navy); color: var(--white); text-align: center;
}
.contact::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(0, 157, 255, .45), rgba(0, 151, 118, .12) 45%, transparent 68%); }
/* Three-ring motif (as in the original prototype): a ring wrapped around the headline plus two soft halo bands.
   The ring sits 48px outside the headline; the label above and the button/paragraph below sit 64px away,
   so no small text ever crosses the ring line (the halo bands have soft edges, no line). */
.contact .display::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; height: calc(100% + 96px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .035), 0 0 0 140px rgba(255, 255, 255, .02); pointer-events: none;
}
.contact .display { position: relative; max-width: 1000px; margin: 0 auto 64px; }
.contact .eyebrow { margin-bottom: 64px; }

/* ---------- Legal pages (privacy policy) ---------- */
.legal-hero {
  margin: 12px; padding: calc(72px + clamp(56px, 9vw, 110px)) 0 clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg); color: var(--white);
  background: radial-gradient(ellipse at 80% 0%, rgba(0, 157, 255, .3), transparent 55%), linear-gradient(180deg, #03101f 0%, var(--navy) 100%);
}
.legal-hero h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.06em; font-weight: 600; }
.legal-hero p { margin-top: 14px; font-size: 15px; color: var(--muted-dark); }
.legal { max-width: 760px; padding-block: clamp(48px, 7vw, 96px); font-size: 17px; line-height: 1.7; color: #3d4048; }
.legal p + p, .legal ul + p { margin-top: 1em; }
.legal-intro { font-size: 19px; line-height: 1.6; color: var(--ink); }
.legal h2 { margin: 2.2em 0 .6em; scroll-margin-top: 110px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.035em; font-weight: 620; color: var(--ink); }
.legal h3 { margin: 1.4em 0 .4em; font-size: 18px; letter-spacing: -.02em; font-weight: 620; color: var(--ink); }
.legal ul { margin: .6em 0 0; padding-left: 1.3em; }
.legal li + li { margin-top: .4em; }
.legal a { color: var(--blue-mid); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); }
.legal-toc { margin-top: 36px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.legal-toc h2 { margin: 0 0 10px; font-size: 15px; letter-spacing: 0; }
.legal-toc ol { display: grid; gap: 2px 32px; margin: 0; padding-left: 1.3em; font-size: 15px; }
.legal-toc a { display: inline-block; padding: 4px 0; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-contact { display: grid; gap: 16px; margin-top: 16px; }
.legal-contact > div { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.legal-contact h3 { margin: 0 0 6px; font-size: 14px; color: var(--blue-mid); }
.legal-contact address { font-style: normal; }
@media (min-width: 700px) {
  .legal-toc ol { grid-template-columns: 1fr 1fr; }
  .legal-contact { grid-template-columns: 1fr 1.4fr; }
}

/* ---------- Blog (index + article; mobile first) ---------- */
.blog-hero, .post-hero {
  margin: 12px; padding: calc(72px + clamp(56px, 9vw, 110px)) 0 clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg); color: var(--white);
  background: radial-gradient(ellipse at 80% 0%, rgba(0, 157, 255, .3), transparent 55%), linear-gradient(180deg, #03101f 0%, var(--navy) 100%);
}
.blog-hero h1 { max-width: 16ch; font-size: clamp(40px, 6vw, 88px); line-height: 1.04; letter-spacing: -.06em; font-weight: 600; text-wrap: balance; }
.blog-hero p { max-width: 58ch; margin-top: 20px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--muted-dark); }

.post-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.post-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 0 2px; border-radius: 50%; background: currentColor; vertical-align: middle; opacity: .6; }
.on-dark .post-meta { color: var(--muted-dark); }
.post-cover { display: block; width: 100%; height: 100%; }

.blog-list { display: grid; gap: clamp(32px, 4vw, 48px); padding-block: clamp(48px, 7vw, 96px); }
.post-card-link { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .25s var(--ease-out); }
.post-card-link:hover { border-color: rgba(0, 149, 209, .45); box-shadow: var(--shadow-sm); }
.post-card-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.post-card-art { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3.4vw, 48px); }
.post-card-body h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.045em; font-weight: 620; text-wrap: balance; }
.post-card-body > p:not(.post-meta) { max-width: 52ch; font-size: 17px; line-height: 1.6; color: #3d4048; }
.post-card-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--blue-mid); }
.post-card-cta svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.post-card-link:hover .post-card-cta svg { transform: translate(2px, -2px); }

.blog-follow { display: grid; gap: 12px; justify-items: start; padding: clamp(24px, 3.4vw, 40px); border: 1px dashed rgba(16, 18, 23, .25); border-radius: var(--radius-lg); }
.blog-follow h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.035em; font-weight: 620; }
.blog-follow p { max-width: 56ch; font-size: 16px; line-height: 1.6; color: var(--muted); }
.btn-outline { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 6px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: var(--radius-pill); font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.btn-outline svg { width: 18px; height: 18px; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; color: var(--muted-dark); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px 0 4px; opacity: .5; }
.breadcrumb a { display: inline-block; padding: 4px 0; color: var(--white); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-hero { padding-bottom: clamp(120px, 16vw, 220px); }
.post-hero h1 { max-width: 20ch; margin-bottom: 20px; font-size: clamp(36px, 5.4vw, 76px); line-height: 1.06; letter-spacing: -.055em; font-weight: 600; text-wrap: balance; }
.post-art { position: relative; z-index: 1; margin-top: calc(-1 * clamp(96px, 13vw, 180px)); }
.post-art .post-cover { aspect-ratio: 16 / 7; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.post-body { max-width: 720px; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 112px); font-size: 18px; line-height: 1.75; color: #3d4048; }
.post-lead { font-size: clamp(20px, 1.8vw, 23px); line-height: 1.55; letter-spacing: -.015em; color: var(--ink); }
.post-body h2 { margin: 2em 0 .5em; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.035em; font-weight: 620; color: var(--ink); }
.post-cta { margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius-lg); background: var(--ink); color: var(--white); }
.post-cta h2 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 30px); color: var(--white); }
.post-cta p { font-size: 16px; line-height: 1.6; color: var(--muted-dark); }
.post-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 24px; }
.text-link { display: inline-block; padding: 8px 0; font-size: 16px; font-weight: 600; color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); }
.text-link:hover { text-decoration-color: currentColor; }
.post-back { margin-top: 40px; font-size: 16px; }
.post-back a { display: inline-block; padding: 8px 0; font-weight: 600; color: var(--blue-mid); text-underline-offset: 4px; }
@media (min-width: 860px) {
  .post-card-link { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .post-card-art { aspect-ratio: auto; min-height: 420px; }
  .post-card-body { justify-content: center; }
}
@media (max-width: 599px) {
  .post-art .post-cover { aspect-ratio: 16 / 10; }
}

/* ---------- FAQ (native details/summary accordion; mobile first) ---------- */
.faq-hero h1 { max-width: 14ch; }
.faq { display: grid; gap: clamp(40px, 5vw, 64px); padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 128px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 20px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.faq-item summary h2 { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.3; letter-spacing: -.03em; font-weight: 600; color: var(--ink); }
.faq-item summary:hover h2 { color: var(--blue-mid); }
.faq-icon { position: relative; flex: none; width: 36px; height: 36px; border: 1.5px solid var(--line); border-radius: 50%; transition: background .2s, border-color .2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { border-color: transparent; background: var(--gradient-brand); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--white); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { max-width: 68ch; padding: 0 0 26px; font-size: 17px; line-height: 1.7; color: #3d4048; }
.faq-answer p + p { margin-top: .8em; }
.faq-answer a { color: var(--blue-mid); text-decoration: underline; text-underline-offset: 3px; }
.faq-item[open] .faq-answer { animation: faq-in .3s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

.faq-aside { display: grid; gap: 14px; justify-items: start; align-self: start; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--ink); color: var(--white); }
.faq-aside h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.035em; font-weight: 620; }
.faq-aside p { font-size: 16px; line-height: 1.6; color: var(--muted-dark); }
.faq-aside .btn-gradient { margin-top: 8px; }
.faq-mail a { display: inline-block; padding: 4px 0; color: var(--white); text-underline-offset: 3px; }
@media (min-width: 960px) {
  .faq { grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(48px, 6vw, 96px); }
  .faq-answer { padding-right: 56px; }
  .faq-aside { position: sticky; top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-answer { animation: none; }
}

/* ---------- Footer (mobile first: stacked; 2 columns on tablet; 4 on desktop) ---------- */
.site-footer { padding-top: 56px; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
.site-footer .brand img { width: 160px; }
.footer-brand p { margin: 16px 0 20px; font-size: 15px; color: var(--muted-dark); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social-links a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: rgba(255, 255, 255, .8); transition: background .2s, color .2s, border-color .2s; }
.social-links a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.social-links svg { width: 18px; height: 18px; }
.footer-col h2 { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--blue-light); }
.footer-col ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.footer-col a, .footer-col button { display: inline-flex; align-items: center; min-height: 28px; padding: 0; border: 0; background: none; font-size: 15px; color: rgba(255, 255, 255, .8); text-align: left; transition: color .2s; }
.footer-col a:hover, .footer-col button:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-col address { font-style: normal; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .8); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px; border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(255, 255, 255, .6); }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .8); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--white); }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .site-footer { padding-top: 72px; }
  .footer-grid { grid-template-columns: 1.4fr .8fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
}

/* ---------- Talk to us popup ---------- */
body:has(.contact-dialog[open]) { overflow: hidden; }
.contact-dialog {
  width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg);
  overflow-y: auto; overscroll-behavior: contain;
}
.contact-dialog::backdrop { background: rgba(0, 8, 18, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.contact-dialog[open] { animation: dialog-in .32s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dialog-body { position: relative; padding: clamp(28px, 5vw, 56px) clamp(20px, 6vw, 72px) clamp(28px, 4vw, 48px); }
.dialog-title { width: fit-content; max-width: calc(100% - 64px); margin-bottom: 12px; text-wrap: balance; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -.045em; font-weight: 600; }

/* Gradient-outline controls (close + submit) */
.dialog-close, .btn-gradient {
  border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-brand) border-box;
  color: var(--ink);
  transition: background .2s, color .2s, transform .25s var(--ease-out);
}
.dialog-close { position: absolute; right: clamp(16px, 3vw, 40px); top: clamp(16px, 3vw, 40px); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; }
.dialog-close svg { width: 20px; height: 20px; }
.dialog-close:hover { transform: rotate(90deg); }
.btn-gradient { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 30px; border-radius: var(--radius-pill); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.btn-gradient svg { width: 20px; height: 20px; }
.btn-gradient:hover, .dialog-close:focus-visible, .btn-gradient:focus-visible { background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--gradient-brand) border-box; color: var(--white); }
.btn-gradient[aria-busy="true"] { cursor: progress; opacity: .7; }

/* Fields: underline inputs with floating labels */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px clamp(24px, 4vw, 48px); margin-top: 12px; }
.field { position: relative; padding-top: 26px; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0 9px;
  border: 0; border-bottom: 1px solid rgba(16, 18, 23, .3); border-radius: 0;
  background: transparent; color: var(--ink);
  font: 400 17px/1.5 var(--font-sans);
  transition: border-color .2s;
}
.field textarea { display: block; resize: none; overflow: hidden; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid; border-image: var(--gradient-brand) 1; padding-bottom: 8px; }
.field > label, .field-static-label {
  position: absolute; left: 0; top: 36px;
  font-size: 17px; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform .2s var(--ease-out), color .2s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-30px) scale(.8); }
.field input:focus + label, .field textarea:focus + label { color: var(--blue-mid); }
.field-static-label { top: 6px; font-size: 13.6px; }
.field-phone:focus-within .field-static-label { color: var(--blue-mid); }
.req { color: #b42318; }

.phone-row { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid rgba(16, 18, 23, .3); }
.phone-row:focus-within { border-bottom: 2px solid; border-image: var(--gradient-brand) 1; }
.phone-row input { flex: 1; min-width: 0; border: 0 !important; padding: 10px 0 9px; }
.phone-row select {
  flex: none; min-height: 40px; padding: 0 30px 0 12px;
  border: 1px solid transparent; border-radius: var(--radius-xs);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101217' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 8px center / 16px;
  font: 500 15px var(--font-sans); color: var(--ink); cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.phone-row select:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.field-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.field-error { margin-top: 6px; font-size: 13px; font-weight: 500; color: #b42318; }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error .phone-row { border-bottom-color: #b42318; }
.field.has-error > label, .field.has-error .field-static-label { color: #b42318; }

.consent { display: grid; grid-template-columns: 24px 1fr; gap: 6px 14px; margin-top: 32px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue-mid); cursor: pointer; }
.consent label { font-size: 14px; line-height: 1.6; color: #40434a; cursor: pointer; }
.consent a { color: var(--blue-mid); text-decoration: underline; text-underline-offset: 2px; }
.consent .field-error { grid-column: 2; margin: 0; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.form-note { font-size: 13px; color: var(--muted); }

.form-error-summary { margin-bottom: 8px; padding: 14px 18px; border-left: 3px solid #b42318; border-radius: 10px; background: #fdeeec; color: #7a1a12; font-size: 14px; }
.form-error-summary:focus { outline: none; }
.form-error-summary ul { margin: 6px 0 0; padding-left: 18px; }
.form-error-summary a { text-decoration: underline; text-underline-offset: 2px; }

.form-success { padding: 24px 0 8px; }
.form-success:focus { outline: none; }
.success-mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; background: var(--gradient-brand); color: var(--ink); }
.success-mark svg { width: 30px; height: 30px; }
.form-success h3 { font-size: 26px; letter-spacing: -.04em; font-weight: 620; margin-bottom: 8px; }
.form-success p { max-width: 520px; margin-bottom: 28px; color: var(--muted); }

@media (max-width: 700px) {
  .contact-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .dialog-title { max-width: calc(100% - 56px); }
  .dialog-close { width: 48px; height: 48px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Product page
   ===================================================================== */
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero { min-height: min(86svh, 820px); }
.page-hero::before {
  background:
    radial-gradient(ellipse at 78% 18%, rgba(0, 157, 255, .34), transparent 50%),
    radial-gradient(ellipse at 92% 92%, rgba(0, 151, 118, .26), transparent 46%),
    linear-gradient(180deg, #03101f 0%, var(--navy) 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
}
.page-hero .hero-inner { justify-content: center; padding-bottom: clamp(48px, 8vh, 96px); }
.page-hero .eyebrow { color: var(--blue-light); }
.page-hero h1 { max-width: 1100px; font-size: clamp(48px, 7.4vw, 120px); }

/* 2 · Six layers */
.layers .lede { margin-top: 28px; }
.layer-map { margin-top: clamp(48px, 6vw, 72px); }
.layer-rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.layer-row {
  display: grid; grid-template-columns: 44px minmax(190px, 240px) 1fr; gap: 20px; align-items: center;
  min-height: 72px; padding: 12px 24px 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white);
}
.layer-num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 650; font-variant-numeric: tabular-nums; }
.layer-row:nth-child(1) .layer-num { background: #0b2a4a; }
.layer-row:nth-child(2) .layer-num { background: #0a3d66; }
.layer-row:nth-child(3) .layer-num { background: #0a5a86; }
.layer-row:nth-child(4) .layer-num { background: #08708f; }
.layer-row:nth-child(5) .layer-num { background: #087a78; }
.layer-row:nth-child(6) .layer-num { background: #0d3b3a; }
.layer-name { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 640; letter-spacing: -.03em; }
.layer-name svg { width: 22px; height: 22px; flex: none; color: var(--blue-mid); }
.layer-parts { padding-left: 20px; border-left: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.rail-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--blue-mid); }
.rail-link svg { width: 16px; height: 16px; }

/* 3 · Cross-cutting layer */
.crosscut { background: var(--ink); color: var(--white); }
.crosscut .lede { margin-top: 28px; }
.xc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.xc-card { padding: 28px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .03); }
.xc-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; background: var(--gradient-brand); color: var(--ink); }
.xc-icon svg { width: 24px; height: 24px; }
.xc-card h3 { font-size: 24px; letter-spacing: -.04em; font-weight: 620; margin-bottom: 16px; }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; font-size: 15px; color: var(--muted-dark); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(111, 208, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd0ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.assurance { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.assurance li { padding: 9px 16px; border: 1px solid rgba(111, 208, 255, .35); border-radius: var(--radius-pill); font: 12px var(--font-mono); letter-spacing: .06em; color: var(--blue-light); }

/* 4 · Agent-month pricing */
.pricing .lede { margin-top: 28px; }
/* Mobile first: one column. Tablet: steps 1 and 2 side by side, step 3 full width below. Desktop: step 3 lays out horizontally. */
.price-steps { display: grid; grid-template-columns: 1fr; gap: 14px; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.price-step { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.step-index { display: block; font: 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 8px; }
.price-step h3 { font-size: 21px; line-height: 1.15; letter-spacing: -.04em; font-weight: 620; margin-bottom: 8px; }
.step-intro { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.process-chips { gap: 6px; margin-bottom: 16px; }
.process-chips li { padding: 4px 10px; font-size: 12.5px; background: var(--paper); }
.process-chips li.more { border-style: dashed; color: var(--muted); background: transparent; }
.split-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.fig { padding: 12px 14px; border-radius: var(--radius-sm); }
.fig b { display: block; font-size: 28px; line-height: 1; letter-spacing: -.05em; font-weight: 640; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.fig span { display: block; font-size: 12.5px; line-height: 1.35; }
.is-agent.fig { background: #e3f2ff; color: #062b4a; }
.is-human.fig { background: #f1ecf6; color: #3a1d4f; }
.effort-bar { display: flex; height: 32px; margin-bottom: 12px; border-radius: 8px; overflow: hidden; font: 600 13px var(--font-sans); }
.effort-bar span { display: flex; align-items: center; padding: 0 12px; }
.seg-agent { background: var(--gradient-brand); color: var(--ink); }
.seg-human { background: #6b3f8f; color: var(--white); justify-content: center; }

.price-result { background: var(--ink); color: var(--white); border-color: var(--ink); }
.price-result .step-index { color: var(--blue-light); }
.volume { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; margin: 4px 0 16px; }
.volume label { font-size: 14px; color: var(--muted-dark); }
.volume output { font-size: 26px; font-weight: 640; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.volume input { grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.month { padding: 14px; border-radius: var(--radius-sm); }
.month b { display: block; font-size: 36px; line-height: 1; letter-spacing: -.05em; font-weight: 640; font-variant-numeric: tabular-nums; }
.month span { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; }
.month small { display: block; margin-top: 4px; font: 12px var(--font-mono); opacity: .8; }
.month.is-agent { background: #0b3a63; }
.month.is-human { background: #5b2f7c; }
.icon-tally { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 4px; min-height: 22px; }
.icon-tally svg { width: 18px; height: 18px; }
.icon-tally .t-agent { color: var(--blue-light); }
.icon-tally .t-human { color: #e2b8ff; }
.icon-tally .t-more { font: 12px/18px var(--font-mono); color: var(--muted-dark); padding-left: 4px; }
.result-line { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 15px; color: var(--muted-dark); }
.result-line strong { color: var(--white); }
.fine-print { margin-top: 16px; font-size: 13px; color: var(--muted); }

@media (min-width: 700px) {
  .price-steps { grid-template-columns: 1fr 1fr; }
  .price-result { grid-column: 1 / -1; }
  .price-step:first-child::after {
    content: ""; position: absolute; z-index: 1; right: -12px; top: 50%; width: 10px; height: 10px;
    border-top: 2px solid var(--blue-mid); border-right: 2px solid var(--blue-mid); transform: translateY(-50%) rotate(45deg);
  }
}
@media (min-width: 1000px) {
  .price-result {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 32px; align-items: start;
    grid-template-areas: "head months tally" "volume months result";
  }
  .pr-head { grid-area: head; }
  .price-result .volume { grid-area: volume; margin: 6px 0 0; }
  .price-result .months { grid-area: months; align-self: stretch; }
  .price-result .month { display: flex; flex-direction: column; justify-content: center; }
  .price-result .icon-tally { grid-area: tally; margin: 0; }
  .price-result .result-line { grid-area: result; margin: 12px 0 0; }
}

/* 5 · Trace one request */
.trace { background: var(--paper-2); }
.trace .lede { margin-top: 28px; }
.trace .lede q { color: var(--ink); font-weight: 600; }
.tracer { margin-top: clamp(40px, 5vw, 64px); padding: clamp(18px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.trace-steps { position: relative; display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.trace-steps::before { content: ""; position: absolute; left: 5.5%; right: 5.5%; top: 22px; height: 2px; background: var(--line); }
.trace-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 2px 8px; border: 0; background: none; text-align: center; color: var(--muted); }
.trace-tab .n {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--line); background: var(--white); color: var(--ink);
  font-weight: 650; font-variant-numeric: tabular-nums;
  transition: background .2s, border-color .2s, color .2s, transform .25s var(--ease-out);
}
.trace-tab .t { font-size: 13px; line-height: 1.25; font-weight: 560; letter-spacing: -.01em; }
.trace-tab:hover .n { border-color: var(--blue-mid); transform: translateY(-2px); }
.trace-tab.is-done .n { border-color: var(--blue-mid); color: var(--blue-mid); }
.trace-tab[aria-selected="true"] { color: var(--ink); }
.trace-tab[aria-selected="true"] .n { border-color: transparent; background: var(--gradient-brand); color: var(--ink); box-shadow: 0 8px 20px rgba(0, 149, 209, .3); }
.trace-tab[aria-selected="true"] .t { font-weight: 650; }

/* All panels share one grid cell, so the box is always as tall as the longest step and autoplay never shifts the page */
.trace-panels { display: grid; margin-top: 24px; }
.trace-panel { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 56px); min-height: 230px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-md); background: var(--paper); }
.trace-panel[hidden] { display: grid; visibility: hidden; }
.trace-panel:focus-visible { outline-offset: 2px; }
.tp-step, .tp-label { display: block; margin-bottom: 10px; font: 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-mid); }
.tp-main h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.05em; font-weight: 620; margin-bottom: 12px; }
.tp-main p { max-width: 460px; font-size: 17px; color: var(--muted); }
.tp-side { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.tp-side > b { display: block; margin-bottom: 14px; font-size: 20px; letter-spacing: -.03em; font-weight: 620; }
.tp-quote { font-size: 24px; line-height: 1.3; letter-spacing: -.03em; font-weight: 560; color: var(--blue-mid); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white); font-size: 14px; }
.chips.is-sequence { counter-reset: seq; }
.chips.is-sequence li { counter-increment: seq; }
.chips.is-sequence li::before { content: counter(seq) " · "; color: var(--blue-mid); font-weight: 600; }
.chips.is-done li { display: inline-flex; align-items: center; gap: 6px; border-color: rgba(0, 151, 118, .35); background: #e9f7f2; }
.chips.is-done li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.trace-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.round-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); transition: background .2s, color .2s, border-color .2s; }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover:not(:disabled) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.round-btn:disabled { opacity: .4; cursor: not-allowed; }
.round-btn .icon-play { display: none; }
.round-btn[aria-pressed="true"] .icon-play { display: block; }
.round-btn[aria-pressed="true"] .icon-pause { display: none; }
.round-btn svg[class^="icon-"] { width: 16px; height: 16px; }
/* Autoplay timer: fills over one step's dwell time */
.trace-progress { height: 3px; margin-top: 14px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.trace-progress i { display: block; width: 100%; height: 100%; background: var(--gradient-brand); transform: scaleX(0); transform-origin: left; }
.trace-progress i.is-running { transform: scaleX(1); transition: transform var(--dwell, 3s) linear; }


@media (max-width: 1100px) {
  .trace-steps { grid-template-columns: repeat(9, 1fr); }
  .trace-tab .t { font-size: 12px; }
}
@media (max-width: 860px) {
  /* Each layer row stacks its name over its parts */
  .layer-row { grid-template-columns: 36px 1fr; gap: 4px 12px; padding: 14px; }
  .layer-num { width: 36px; height: 36px; grid-row: span 2; font-size: 14px; }
  .layer-name { grid-column: 2; font-size: 16px; }
  .layer-name svg { display: none; }
  .layer-parts { grid-column: 2; padding-left: 0; border-left: 0; font-size: 13.5px; }
  .xc-cards { grid-template-columns: 1fr; }
  .trace-tab .t { display: none; }
  .trace-steps::before { top: 20px; }
  .trace-tab .n { width: 40px; height: 40px; font-size: 14px; }
  .trace-panel { grid-template-columns: 1fr; }
  .tp-side { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .trace-steps { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; }
  .trace-tab .n { width: 32px; height: 32px; font-size: 13px; }
  .trace-steps::before { top: 16px; }
}

/* =====================================================================
   About page
   ===================================================================== */
.about-hero { min-height: min(78svh, 760px); }
.about-hero h1 { max-width: none; }
/* Three deliberate lines; "left out." never splits. Long lines still wrap on small screens. */
.about-hero .hl-line { display: block; }
.about-hero .hl-line.gradient-text { width: fit-content; white-space: nowrap; }

/* 2 · Thesis: sticky heading beside a readable column of prose */
.thesis .thesis-title { max-width: 22ch; font-size: clamp(40px, 6.4vw, 96px); text-wrap: balance; }
.thesis-title .hl-line { display: block; }
.thesis-body { display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.thesis-label { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.thesis-body p { max-width: 60ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; color: #3d4048; }
.thesis-body .thesis-statement { position: relative; margin-top: 20px; padding-left: 22px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -.035em; font-weight: 600; color: var(--ink); }
.thesis-statement::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #009dff, #0095d1 48%, #009776); }
.thesis-bridge a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.thesis-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 14px; padding: 0; list-style: none; }
.thesis-parts li { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .55); font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--ink); }
.thesis-parts li span { font-size: 12px; font-weight: 600; letter-spacing: .06em; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.thesis-body .thesis-close { margin-top: 20px; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.03em; font-weight: 600; color: var(--ink); }
.thesis-close em { font-style: normal; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 2b · Approaches matrix (mobile first: one card per approach; a table from 960px) */
.approaches { padding-top: 0; }
.approaches-title { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.05em; font-weight: 600; }
.approaches-head { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: clamp(36px, 4vw, 56px); }
.approaches .lede { margin-top: 16px; text-wrap: pretty; }
.wins-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.wins-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.wins-list svg { grid-row: span 2; width: 24px; height: 24px; margin-top: 1px; color: var(--teal); }
.wins-list strong { font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.wins-list span { font-size: 16px; line-height: 1.5; color: var(--muted); }
.matrix-wrap { margin-top: clamp(32px, 4vw, 56px); }

.matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; width: 100%; }
.matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.matrix tbody tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); overflow: hidden; }
.matrix tbody th { padding: 20px 20px 12px; text-align: left; font-weight: 400; }
.matrix tbody th b { display: block; margin-bottom: 6px; font-size: 20px; letter-spacing: -.03em; font-weight: 640; }
.matrix tbody th span { display: block; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
/* Fixed-width verdict column with icons left-aligned inside it, so icons stack in a straight line
   regardless of word length (Yes / No / Partly) and the column scans top to bottom. */
.matrix tbody td { display: grid; grid-template-columns: minmax(0, 1fr) 78px; align-items: center; column-gap: 12px; padding: 12px 18px 12px 20px; border-top: 1px solid var(--line); }
.matrix tbody td .verdict { justify-self: start; }
.matrix tbody td::before { content: attr(data-label); font-size: 14.5px; color: #3d4048; }

.verdict { display: inline-flex; flex: none; align-items: center; gap: 8px; font-size: 15px; font-weight: 640; }
.verdict svg { width: 26px; height: 26px; }
.verdict.yes { color: #00785e; }
.verdict.partly { color: #8a6100; }
.verdict.no { color: #6b6e76; }

/* The one loud moment on the page: Zensible's row */
.matrix tbody tr.is-us { border: 2px solid transparent; background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--gradient-brand) border-box; color: var(--white); }
.matrix tbody tr.is-us th b { font-size: 21px; }
.matrix tbody tr.is-us th em { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--gradient-brand); color: var(--ink); font-style: normal; font-size: 12px; font-weight: 650; letter-spacing: 0; vertical-align: 3px; }
.matrix tbody tr.is-us th span { color: var(--muted-dark); }
.matrix tbody tr.is-us td { border-top-color: var(--line-dark); }
.matrix tbody tr.is-us td::before { color: var(--muted-dark); }
.matrix tbody tr.is-us .verdict.yes { color: #5fe0bd; }

@media (min-width: 960px) {
  .matrix { display: table; border-collapse: separate; border-spacing: 0 12px; table-layout: fixed; }
  .matrix thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .matrix tbody { display: table-row-group; }
  .matrix tr, .matrix tbody tr { display: table-row; margin: 0; border: 0; background: none; }
  .matrix th, .matrix td, .matrix tbody th, .matrix tbody td { display: table-cell; width: auto; }
  .matrix thead th { padding: 0 12px 6px; vertical-align: bottom; text-align: center; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--muted); }
  .matrix thead th:first-child { width: 34%; text-align: left; padding-left: 24px; }
  .matrix tbody th, .matrix tbody td { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .matrix tbody th { padding: 24px 28px; vertical-align: top; border-left: 1px solid var(--line); border-radius: var(--radius-md) 0 0 var(--radius-md); }
  .matrix tbody td { padding: 14px 10px; text-align: center; vertical-align: middle; }
  .matrix tbody td:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
  .matrix tbody td::before { content: none; }
  .verdict { flex-direction: column; gap: 8px; font-size: 16px; }
  .verdict svg { width: 36px; height: 36px; }
  .matrix tbody tr.is-us th, .matrix tbody tr.is-us td { background: var(--ink); color: var(--white); border-color: var(--blue-mid); border-top-width: 2px; border-bottom-width: 2px; }
  .matrix tbody tr.is-us th { border-left-width: 2px; }
  .matrix tbody tr.is-us td:last-child { border-right-width: 2px; }
}

/* Closing CTA copy */
.contact-kicker { margin-bottom: 64px; font-size: 17px; font-weight: 560; color: var(--blue-light); }
.contact-sub { max-width: 560px; margin: 0 auto 36px; font-size: 17px; color: var(--muted-dark); }

@media (max-width: 859px) {
  .thesis-title .hl-line { display: inline; }
}
@media (min-width: 860px) {
  .thesis-body, .approaches-head { grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr); gap: clamp(48px, 5.5vw, 96px); }
  .approaches-head { align-items: start; }
  .approaches-head .approaches-title { white-space: nowrap; }
  .thesis-body { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(32px, 4vw, 56px); }
  .thesis-label { margin-bottom: 18px; }
  .thesis-body .thesis-statement, .thesis-body .thesis-close { margin-top: 28px; }
  .thesis-parts { gap: 10px; margin: 24px 0 18px; }
  .thesis-parts li { gap: 10px; padding: 16px 16px 18px; font-size: 16px; }
}
@media (min-width: 1100px) {
  .thesis-parts { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-grid { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 860px) {
  .site-nav { top: 12px; width: calc(100% - 24px); height: 64px; padding: 0 10px 0 16px; }
  .brand img { width: 124px; }
  .menu-toggle { display: grid; }
  .nav-menu {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 12px; padding: 12px;
    border: 1px solid var(--line-dark); border-radius: 18px;
    /* Solid: a blur can't apply inside the already-blurred header, so a translucent panel let page text show through */
    background: #0a0f17; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease-out), visibility 0s .2s;
  }
  .site-nav.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease-out); }
  .nav-links { flex-direction: column; }
  /* Full-width rows so the current-page dot sits at the row's right edge, vertically centred */
  .nav-links a { display: flex; width: 100%; min-height: 48px; font-size: 17px; }
  .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .06); }
  .nav-links a[aria-current="page"]::after { left: auto; right: 18px; top: 50%; bottom: auto; transform: translateY(-50%); width: 7px; height: 7px; }
  .nav-menu .cta-orb { justify-content: center; }

  .hero { margin: 8px; min-height: calc(100svh - 16px); }
  .hero-media { object-position: 72% center; }
  .hero::before { background: linear-gradient(180deg, rgba(0, 8, 18, .55) 0%, rgba(0, 8, 18, .88) 55%, rgba(0, 8, 18, .95) 100%); }
  .hero-inner { padding-top: 140px; }
  .scroll-cue { align-self: flex-start; margin-top: 48px; }

  .team-head { grid-template-columns: 1fr; }
  .arc-wheel { height: 560px; width: 100%; }
  .arc-card { width: 190px; }
  .arc-cover { height: 280px; }
  .arc-cover b { font-size: 30px; }

  .modes { grid-template-columns: 1fr; }
  .mode, .mode + .mode { padding: 28px 0; border-left: 0; }
  .mode + .mode { border-top: 1px solid var(--line-dark); }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .contact { margin: 0 8px 8px; }
}

@media (max-width: 600px) {
  .flow-steps { grid-template-columns: 1fr; gap: 0; }
  .flow-step { flex-direction: row; align-items: flex-start; gap: 16px; padding: 0 0 22px; border: 0; border-radius: 0; background: none; }
  .flow-step:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 4px; width: 1px; background: var(--line-dark); }
  .flow-step > div { padding-top: 2px; }
  .model-card { padding: 22px; }
}

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