/* ARCHR site stylesheet. Single file, no build step. Fonts: /assets/fonts/fonts.css */

:root {
  --navy: #19265b;
  --ink: #131a38;
  --blue: #2456c8;
  --blue-deep: #1c46a6;
  --azure: #55bbe4;
  --tint: #f4f8fc;
  --line: #e5eaf2;
  --muted: #4a5578;
  --white: #fff;
  --grad: linear-gradient(95deg, #2456c8, #55bbe4);
  --grad-btn: linear-gradient(95deg, #1c46a6, #2456c8);
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(19, 26, 56, 0.05), 0 6px 18px rgba(19, 26, 56, 0.05);
  --shadow-md: 0 2px 4px rgba(19, 26, 56, 0.06), 0 16px 40px rgba(19, 26, 56, 0.1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(36px, 4.6vw, 48px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.18; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: 17px; line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(85, 187, 228, 0.35); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.container-narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; }
.section.alt { background: var(--tint); }
.section.dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(36, 86, 200, 0.45), transparent 60%), var(--navy); color: #e6ecf8; }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section.dark .lede { color: #c3cee9; }
.section.dark .eyebrow { color: var(--azure); }
.section.dark a:not(.btn) { color: #9fd8f0; }
.section:not(.alt):not(.dark) + .section:not(.alt):not(.dark), .section.alt + .section.alt { padding-top: 0; }
.stack > * + * { margin-top: 20px; }
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 60px 0; }
}

/* ---------- Text ---------- */
.eyebrow {
  display: inline-block; margin: 0 0 16px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4;
  color: var(--blue);
}
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--muted); max-width: 680px; margin: 0 0 1.2em; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head .lede { margin-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.meta > * + *::before { content: "\00b7"; margin-right: 18px; color: #9aa6c4; }
.callout {
  background: var(--tint); border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: 10px; padding: 18px 22px; margin: 28px 0; font-size: 16px; line-height: 1.6; color: var(--ink);
}
.callout > :last-child { margin-bottom: 0; }
.callout strong:first-child { color: var(--blue-deep); }
.section.dark .callout { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); border-left-color: var(--azure); color: #e6ecf8; }
.kicker-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.kicker-list li { position: relative; padding: 5px 0 5px 32px; line-height: 1.55; }
.kicker-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232456C8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
}
.section.dark .kicker-list li::before { background-color: rgba(255, 255, 255, 0.1); box-shadow: none; }

/* ---------- Prose ---------- */
.container.prose, .container-narrow.prose { max-width: 800px; }
.prose h2 { margin: 2.1em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: #232b4d; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--blue); }
.prose a { font-weight: 500; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--azure); color: var(--navy); font-size: 1.08em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--tint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--tint); color: var(--navy); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: -0.005em;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 18px rgba(28, 70, 166, 0.28); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(28, 70, 166, 0.36); }
.btn-ghost { background: transparent; color: var(--navy); border-color: #c4cee3; }
.btn-ghost:hover { color: var(--navy); border-color: var(--blue); background: rgba(36, 86, 200, 0.05); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.65; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.dark .btn-primary, .cta-band .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.dark .btn-primary:hover, .cta-band .btn-primary:hover { background: #eaf3fb; color: var(--navy); }
.dark .btn-ghost, .cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.dark .btn-ghost:hover, .cta-band .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, 0.86); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: 119px; height: 34px; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a.nav-link, .nav-list .sub-toggle {
  display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 8px;
  font-size: 15.5px; font-weight: 500; color: var(--ink); text-decoration: none; line-height: 1.2;
}
.nav-list a.nav-link:hover { color: var(--blue); background: var(--tint); }
.nav-list a.nav-link[aria-current] { color: var(--blue); font-weight: 600; }
.has-sub { display: flex; align-items: center; }
.has-sub > a.nav-link { padding-right: 4px; }
.sub-toggle { background: none; border: 0; cursor: pointer; padding: 10px 8px 10px 2px !important; color: var(--ink); }
.sub-toggle svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub-menu {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 290px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.sub-menu a:hover { background: var(--tint); color: var(--blue); }
.sub-menu a[aria-current] { color: var(--blue); }
.sub-menu .sub-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.nav-cta { margin-left: 10px; padding: 12px 22px; font-size: 15px; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .no-js .menu-toggle { display: none; }
  .sub-menu::before { display: none; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 8px 24px 24px; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .js .primary-nav { display: none; }
  .js .primary-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a.nav-link { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; width: 100%; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a.nav-link { flex: 1; padding-right: 4px; }
  .sub-toggle { padding: 14px 8px !important; border-bottom: 1px solid var(--line); border-radius: 0 !important; }
  .sub-menu { position: static; flex-basis: 100%; min-width: 0; box-shadow: none; border: 0; padding: 0 0 6px 14px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: none; }
  .has-sub.open .sub-menu { display: block; }
  .no-js .sub-menu, .no-js .has-sub:hover .sub-menu { display: block; }
  .no-js .sub-toggle { display: none; }
  .sub-menu a { padding: 11px 4px; font-size: 16px; color: var(--muted); }
  .nav-cta { margin: 18px 0 0; width: 100%; padding: 16px; }
}

/* ---------- Breadcrumbs ---------- */
.crumb-wrap { background: var(--tint); }
.breadcrumbs { padding: 18px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: #9aa6c4; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Page hero ---------- */
.hero-page { position: relative; padding: 44px 0 72px; background: var(--tint); overflow: hidden; isolation: isolate; }
.hero-page::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 86, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 86, 200, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(36, 86, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 86, 200, 0.045) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 120% at 85% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 120% at 85% 0%, #000 0%, transparent 72%);
}
.hero-page::after {
  content: ""; position: absolute; z-index: -1; right: -140px; top: -180px; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(85, 187, 228, 0.22), transparent 68%);
}
.hero-page h1 { max-width: 880px; }
.hero-page .lede { max-width: 700px; margin-bottom: 0; }
.hero-page .actions { margin-top: 32px; }
.hero-page:first-child { padding-top: 72px; }

/* Inner-page hero with generated art (builder adds .has-art, .hero-copy and .hero-art) */
.hero-page.has-art > .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-page .hero-art { position: relative; width: 100%; max-width: 440px; justify-self: end; }
.hero-page .hero-art::before {
  content: ""; position: absolute; inset: -12% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(85, 187, 228, 0.28), transparent 72%);
}
.hero-page .hero-art .art { box-shadow: 0 30px 60px -30px rgba(25, 38, 91, 0.35); border-radius: 28px; }
@media (max-width: 920px) {
  .hero-page.has-art > .container { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero-page .hero-art { order: -1; max-width: 230px; justify-self: start; }
  .hero-page:first-child { padding-top: 40px; }
}

/* ---------- Home hero (dark) ---------- */
.hero-page.hero-home {
  padding: 92px 0 104px; color: #e6ecf8;
  background:
    radial-gradient(900px 520px at 82% -6%, rgba(36, 86, 200, 0.62), transparent 62%),
    radial-gradient(760px 520px at -4% 104%, rgba(85, 187, 228, 0.24), transparent 60%),
    radial-gradient(520px 420px at 46% 58%, rgba(96, 72, 214, 0.16), transparent 70%),
    linear-gradient(160deg, #0a1131 0%, #131f55 56%, #0e1948 100%);
}
.hero-home::before {
  z-index: -4;
  background-image:
    linear-gradient(rgba(159, 216, 240, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 216, 240, 0.09) 1px, transparent 1px),
    radial-gradient(rgba(159, 216, 240, 0.24) 1px, transparent 1.4px);
  background-size: 96px 96px, 96px 96px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 70% 20%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 100% at 70% 20%, #000 0%, transparent 78%);
}
.hero-home::after {
  z-index: -3; inset: 0; right: auto; top: auto; width: auto; height: auto; border-radius: 0; opacity: 0.07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-orb { position: absolute; z-index: -2; border-radius: 50%; pointer-events: none; animation: drift 22s ease-in-out infinite alternate; }
.hero-orb.o1 { width: 560px; height: 560px; right: -120px; top: -160px; background: radial-gradient(closest-side, rgba(85, 187, 228, 0.32), transparent); }
.hero-orb.o2 { width: 480px; height: 480px; left: -140px; bottom: -200px; background: radial-gradient(closest-side, rgba(36, 86, 200, 0.5), transparent); animation-duration: 28s; animation-delay: -9s; }
.hero-home .field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, #000 52%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, #000 52%); }
.hero-home .container { position: relative; }
.hero-home h1 { color: #fff; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.06; letter-spacing: -0.03em; max-width: 14.5em; }
.hero-home .eyebrow { color: var(--azure); }
.hero-home .lede { color: #c9d4ee; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 40px; align-items: center; }
.hero-note { margin: 30px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: #c9d4ee; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); }
.hero-note span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 10px var(--azure); }
.hero-home .actions { margin-top: 34px; }
.hero-home .btn-primary { box-shadow: 0 10px 34px rgba(85, 187, 228, 0.35); }
.edge-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(85, 187, 228, 0.7), transparent); }

.grad-text { color: #7fd0ef; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text { background: linear-gradient(95deg, #8fb8ff 0%, #6fd0f2 55%, #b4ecfb 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
  .grad-text.on-light { background-image: linear-gradient(95deg, #1c46a6 0%, #2a7fd0 60%, #2fa6d8 100%); }
}

/* Glass dashboard panels (abstract, decorative: no figures) */
.hero-stage { position: relative; height: 470px; width: 100%; max-width: 520px; margin-left: auto; }
.gp {
  position: absolute; padding: 16px; border-radius: var(--radius); color: #dbe5fa;
  background: rgba(10, 17, 48, 0.55); border: 1px solid rgba(159, 216, 240, 0.28);
}
.gp-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #9fd8f0; }
.gp-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.gp-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.gp-bar i:first-child { background: var(--azure); }
.gp-bar .gp-label { margin-left: auto; }
.gp-main { left: 0; top: 56px; width: 322px; --dl: 0s; }
.gp-donut { right: 0; top: 0; width: 160px; --dl: -3s; }
.gp-agents { right: 4px; top: 232px; width: 236px; --dl: -5s; }
.gp-chip { left: 22px; top: 350px; width: 226px; display: flex; align-items: center; gap: 12px; padding: 14px; --dl: -2s; }
.gp-chip .gp-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, #2456c8, #55bbe4); color: #fff; }
.gp-chip .gp-ico svg { width: 20px; height: 20px; }
.gp-chip .gp-lines { flex: 1; min-width: 0; }
.gp-chip .gp-lines b { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #cfe9f6; margin-bottom: 7px; }
.gp-sk { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); }
.gp-sk + .gp-sk { margin-top: 6px; width: 60%; }
.gp-toggle { flex: none; width: 34px; height: 20px; border-radius: 999px; background: rgba(85, 187, 228, 0.45); position: relative; }
.gp-toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.gp svg { width: 100%; height: auto; overflow: visible; }
.gp-grid { fill: none; stroke: #fff; stroke-opacity: 0.1; stroke-dasharray: 3 5; }
.gp-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; animation: draw 2.4s ease-out 0.3s both; }
.gp-s0 { stop-color: #55bbe4; stop-opacity: 0.4; } .gp-s1 { stop-color: #55bbe4; stop-opacity: 0; }
.gp-l0 { stop-color: #7fb2ff; } .gp-l1 { stop-color: #8be0f7; }
.gp-pt { fill: #fff; stroke: #55bbe4; stroke-width: 2; }
.gp-halo { fill: #55bbe4; opacity: 0.35; transform-box: fill-box; transform-origin: center; animation: halo 3.6s ease-in-out infinite; }
.gp-col { fill: rgba(255, 255, 255, 0.16); transform-box: fill-box; transform-origin: 50% 100%; animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 0.4s); }
.gp-col.hi { fill: #55bbe4; fill-opacity: 0.85; }
.gp-track { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 12; }
.gp-seg { fill: none; stroke-width: 12; stroke-linecap: butt; }
.gp-seg.s1 { stroke: #55bbe4; } .gp-seg.s2 { stroke: #2456c8; } .gp-seg.s3 { stroke: #b4ecfb; }
.gp-donut .ring { transform-origin: 60px 60px; animation: spin 60s linear infinite; }
.gp-legend { display: grid; gap: 7px; margin-top: 8px; }
.gp-legend span { display: flex; align-items: center; gap: 8px; }
.gp-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #55bbe4; flex: none; }
.gp-legend span:nth-child(2)::before { background: #2456c8; } .gp-legend span:nth-child(3)::before { background: #b4ecfb; }
.gp-legend .gp-sk { flex: 1; }
.gp-ln { stroke: rgba(159, 216, 240, 0.45); stroke-width: 1.4; fill: none; }
.gp-n { fill: #131f55; stroke: #55bbe4; stroke-width: 1.8; }
.gp-h0 { stop-color: #2456c8; } .gp-h1 { stop-color: #55bbe4; }
.gp-pk { fill: #b4ecfb; opacity: 0; }

@keyframes floaty { from { transform: translateY(-6px); } to { transform: translateY(7px); } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes halo { 0%, 100% { opacity: 0.12; transform: scale(0.8); } 50% { opacity: 0.55; transform: scale(1.5); } }
@keyframes dash { to { stroke-dashoffset: -28; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes packet { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

@media (max-width: 1000px) { .hero-stage { transform: scale(0.9); transform-origin: right center; } }
@media (max-width: 920px) {
  .hero-page.hero-home { padding: 60px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-stage { transform: none; height: auto; max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gp { position: relative; inset: auto; width: auto; left: auto; right: auto; top: auto; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.08); animation: none; }
  .gp-main { grid-column: 1 / -1; }
  .gp-chip { grid-column: 1 / -1; }
  .hero-home .field { opacity: 0.55; -webkit-mask-image: none; mask-image: none; }
  .hero-orb.o1 { width: 360px; height: 360px; }
}
@media (max-width: 520px) { .gp-donut, .gp-chip { display: none; } .gp-agents { grid-column: 1 / -1; } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; margin-bottom: 0; }
.card p + p { margin-top: 0.8em; }
.card .eyebrow { margin-bottom: 12px; font-size: 11.5px; }
.card.link:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c9d6ee; }
.card.link:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 12px; background: linear-gradient(145deg, #eef4fd, #e1edf9); color: var(--blue); box-shadow: inset 0 0 0 1px #dbe6f6;
}
.card-icon svg { width: 24px; height: 24px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--blue); }
.card-link::after { content: "\2192"; transition: transform 0.2s ease; }
.card.link:hover .card-link::after { transform: translateX(4px); }
.card.link .card-link { display: flex; }
.section.dark .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; color: #e6ecf8; }
.section.dark .card p { color: #c3cee9; }
.section.dark .card-icon { background: rgba(255, 255, 255, 0.1); color: var(--azure); box-shadow: none; }
.section.dark .card.link:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.section.dark .card-link { color: var(--azure); }

/* Steps */
.step { position: relative; padding: 28px 24px 26px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-num { display: block; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }

/* Related */
.related .grid { margin-top: 0; }
.related .card h3 { font-size: 18px; }
.related .card p { font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--tint) center/12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232456C8' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px #d4def0; transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232456C8' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}
.faq summary:hover { color: var(--blue); }
.faq .faq-a { padding: 0 44px 24px 4px; color: #2b3354; }
.faq .faq-a p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 84px 0;
  background:
    radial-gradient(760px 380px at 8% 130%, rgba(85, 187, 228, 0.42), transparent 62%),
    radial-gradient(640px 380px at 96% -20%, rgba(124, 92, 255, 0.28), transparent 62%),
    linear-gradient(115deg, #19265b 0%, #1c3a8f 55%, #2456c8 100%);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 100%); mask-image: linear-gradient(100deg, transparent 20%, #000 100%);
}
.cta-band .field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.7; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 80%); mask-image: linear-gradient(90deg, transparent 15%, #000 80%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 12px; font-size: clamp(26px, 3vw, 38px); max-width: 640px; }
.cta-band p { color: #d3dcf3; margin: 0; max-width: 620px; font-size: 18px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-band .cta-mail { font-size: 16px; color: #d3dcf3; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.cta-band .cta-mail a { color: #fff; font-weight: 600; text-decoration-color: rgba(255, 255, 255, 0.5); }
.cta-band .cta-mail a:hover { color: #fff; text-decoration-color: #fff; }
.cta-band .btn-primary { padding: 17px 30px; }
.copy-btn {
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; border-radius: 999px; padding: 7px 12px;
  color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); transition: background-color 0.2s ease, border-color 0.2s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.22); border-color: #fff; }
.side-card .copy-btn { color: var(--navy); background: #fff; border-color: #c4cee3; margin-left: 10px; vertical-align: middle; }
.side-card .copy-btn:hover { border-color: var(--blue); background: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden; color: #c3cee9; font-size: 15.5px; padding: 72px 0 96px;
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(36, 86, 200, 0.4), transparent 62%),
    radial-gradient(600px 320px at 0% 110%, rgba(85, 187, 228, 0.16), transparent 62%),
    #0b1233;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(159, 216, 240, 0.16) 1px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(85, 187, 228, 0.8), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1fr; gap: 40px; }
.footer-brand img { display: block; width: 119px; height: 34px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand p { color: #b4c0de; max-width: 320px; margin-bottom: 14px; }
.footer-brand a { font-weight: 600; color: #fff; }
.site-footer h2 { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #9fd8f0; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer li a { color: #d3dcf3; text-decoration: none; transition: color 0.15s ease; }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: #aab7d8; font-size: 14px; }
.footer-bottom p { margin: 0; max-width: 640px; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home specifics ---------- */
.industry-core { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.industry-core .card h3 { font-size: 19px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; align-items: center; }
.pill-row .pill-label { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; color: var(--navy); }
@media (max-width: 920px) { .industry-core { grid-template-columns: minmax(0, 1fr); } }
.more-link { margin-top: 36px; }
.more-link a { font-weight: 600; text-decoration: none; }
.more-link a::after { content: " \2192"; }
.disclaimer { font-size: 14px; color: var(--muted); margin-top: 28px; }
.section.dark .disclaimer { color: #aab7d8; }
.badge { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep); background: #e9f1fc; border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 26px; margin-bottom: 8px; }
.form-card > p { color: var(--muted); }
.field { margin: 0 0 20px; }
.field label, .field .label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid #c9d3e6; border-radius: 10px; padding: 13px 14px; line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fb1d6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 86, 200, 0.16); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { min-height: 20px; margin: 6px 0 0; font-size: 14px; color: #b3261e; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field-hint { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 4px; font-size: 15px; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.consent label { font-weight: 400; margin: 0; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 28px; margin: 14px 0 0; font-size: 16px; }
.form-status.is-success { color: #14633a; background: #e8f6ee; border: 1px solid #bfe3cd; border-radius: 10px; padding: 14px 16px; }
.form-status.is-error { color: #8e1b14; background: #fdeeed; border: 1px solid #f2c4c0; border-radius: 10px; padding: 14px 16px; }
.form-submit { margin-top: 18px; }
.form-submit .btn { min-width: 180px; }
.side-card { background: var(--tint); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.side-card + .side-card { margin-top: 20px; }
.side-card h2, .side-card h3 { font-size: 19px; margin-bottom: 10px; }
.side-card p { color: var(--muted); font-size: 15.5px; }
.side-card .big-mail { font-size: 19px; font-weight: 600; word-break: break-word; }
.next-steps { list-style: none; counter-reset: ns; padding: 0; margin: 0; }
.next-steps li { counter-increment: ns; position: relative; padding: 0 0 14px 40px; font-size: 15.5px; color: #2b3354; }
.next-steps li::before {
  content: counter(ns); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad-btn); color: #fff; font-family: var(--mono); font-size: 13px; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 560px) { .form-card { padding: 24px 20px; } .field-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Legal ---------- */
.page-legal .hero-page { padding-bottom: 48px; }
.page-legal .prose h2 { font-size: 24px; margin-top: 1.8em; }

/* ---------- 404 ---------- */
.notfound { text-align: left; }
.notfound .big { font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; color: var(--blue); }

/* =====================================================================
   Visual upgrade layer: generated art, motion, mosaic, architecture,
   timeline, capability map, reveal. Documented in docs/COMPONENTS.md.
   Motion rule: transform and opacity only (plus dash/offset on tiny SVG
   parts); every animation is switched off under prefers-reduced-motion.
   ===================================================================== */

/* ---------- Generated art (tools/art.py): classes are styled here, colours come from brand variables ---------- */
.art { display: block; width: 100%; height: auto; max-width: none; }
.art .a-plate { fill: rgba(255, 255, 255, 0.7); stroke: #d9e3f3; stroke-width: 1.2; }
.art .a-dot { fill: var(--blue); fill-opacity: 0.2; }
.art .a-tick { fill: none; stroke: var(--blue); stroke-opacity: 0.35; stroke-width: 2; stroke-linecap: round; }
.art .a-line { fill: none; stroke: var(--blue); stroke-opacity: 0.32; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art .a-dash { fill: none; stroke: var(--azure); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 10; animation: dash 2s linear infinite; }
.art .a-ring { fill: none; stroke: var(--blue); stroke-opacity: 0.22; stroke-width: 1.4; }
.art .a-arc { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.art .a-arc2 { stroke: var(--azure); }
.art .a-spin { animation: spin var(--d, 40s) linear infinite; animation-direction: var(--dir, normal); }
.art .a-node { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.art .a-halo { fill: var(--azure); opacity: 0.3; transform-box: fill-box; transform-origin: center; animation: halo 4.6s ease-in-out infinite; animation-delay: var(--dl, 0s); }
.art .a-card { fill: #fff; stroke: #d5deef; stroke-width: 1.2; }
.art .a-skel { fill: #c9d6ee; }
.art .a-navy { fill: var(--navy); }
.art .a-glyph { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-opacity: 0.9; }
.art .a-check { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art .a-check-lg { stroke-width: 9; }
.art .a-grid { fill: none; stroke: var(--blue); stroke-opacity: 0.16; stroke-dasharray: 3 6; }
.art .a-axis { fill: none; stroke: var(--blue); stroke-opacity: 0.35; stroke-width: 1.6; }
.art .a-trend { fill: none; stroke: var(--azure); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: draw 1.8s ease-out both; }
.art .a-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.art .a-pk, .field .f-pk, .gp-pk { opacity: 0; offset-rotate: 0deg; }
.art .a-pk { fill: var(--azure); stroke: var(--azure); stroke-opacity: 0.35; stroke-width: 6; }
@supports (offset-path: path("M0 0L1 1")) {
  .art .a-pk, .field .f-pk, .gp-pk { animation: packet var(--d, 3s) linear infinite; animation-delay: var(--dl, 0s); }
}

/* Animations pause while their section is off-screen (site.js toggles .is-idle) */
.is-idle, .is-idle *, .is-idle::before, .is-idle::after { animation-play-state: paused !important; }
@media (max-width: 920px) { .field .f-pk, .gp-pk { display: none; } .hero-home::after { display: none; } }

/* Dark data-network field (home hero, CTA band) */
.field { display: block; pointer-events: none; }
.field .f-link { fill: none; stroke: #55bbe4; stroke-opacity: 0.2; stroke-width: 1.2; }
.field .f-lit { stroke-opacity: 0.5; stroke-dasharray: 3 7; }
.field .f-node { fill: #0f1a4a; stroke: #55bbe4; stroke-opacity: 0.7; stroke-width: 1.4; }
.field .f-core { fill: #cdf0fc; }
.field .f-halo { fill: #55bbe4; opacity: 0.25; transform-box: fill-box; transform-origin: center; animation: halo 5s ease-in-out infinite; animation-delay: var(--dl, 0s); }
.field .f-pk { fill: #d5f2fc; stroke: #55bbe4; stroke-opacity: 0.35; stroke-width: 7; }

/* Industry glyph headers (tools/art.py glyph) */
.glyph { position: relative; display: block; overflow: hidden; background: var(--navy); }
.glyph-svg { display: block; width: 100%; height: 100%; max-width: none; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card.link:hover .glyph-svg { transform: scale(1.05); }
.glyph-svg .g-grid { fill: none; stroke: #fff; stroke-opacity: 0.08; }
.glyph-svg .g-s { fill: none; stroke: #fff; stroke-opacity: 0.62; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.glyph-svg .g-f { fill: var(--azure); }
.glyph-svg .g-f2 { fill: #fff; fill-opacity: 0.55; }
.glyph-svg .g-trend { fill: none; stroke: var(--azure); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.glyph-svg .g-dot { fill: #fff; }
.glyph-svg .g-dot2 { fill: #fff; fill-opacity: 0.72; }
.glyph-svg .g-tile { fill: #fff; }
.glyph-svg .g-bar { fill: #fff; fill-opacity: 0.7; }
.glyph-svg .g-gear { fill: #fff; fill-opacity: 0.2; stroke: #fff; stroke-opacity: 0.7; stroke-width: 1.4; stroke-linejoin: round; }
.glyph-svg .g-hole { fill: var(--navy); fill-opacity: 0.7; }
.glyph-svg .g-bolt { fill: var(--azure); }
.glyph-svg .g-check { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.glyph-svg .a-plate, .glyph-svg .a-tick { display: none; }
.glyph-svg .a-line { stroke: #fff; stroke-opacity: 0.35; }
.glyph-svg .a-ring { stroke: #fff; }
.glyph-svg .a-node { fill: var(--navy); stroke: var(--azure); }
.glyph-svg .a-card { fill: rgba(255, 255, 255, 0.12); stroke: rgba(255, 255, 255, 0.3); }
.glyph-svg .a-skel { fill: rgba(255, 255, 255, 0.35); }
.glyph-svg .a-axis, .glyph-svg .a-grid { stroke: #fff; }
.glyph-svg .a-navy { fill: #fff; }
.glyph-svg .a-pk { display: none; }
.glyph-svg .a-dash, .glyph-svg .a-spin, .glyph-svg .a-halo, .glyph-svg .a-trend, .glyph-svg .a-bar { animation: none; }
.card-media { display: block; height: 104px; margin: -28px -28px 22px; }

/* ---------- Textures and utilities ---------- */
.tex-dots { position: relative; isolation: isolate; }
.tex-dots::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(36, 86, 200, 0.2) 1px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 100% 0%, #000, transparent 70%);
}
.section.alt.tex-dots::before { background-image: radial-gradient(rgba(36, 86, 200, 0.16) 1px, transparent 1.4px); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 0% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 0% 0%, #000, transparent 70%); }
.tex-mesh { position: relative; isolation: isolate; }
.tex-mesh::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 320px at 8% 0%, rgba(85, 187, 228, 0.12), transparent 70%), radial-gradient(520px 320px at 100% 100%, rgba(36, 86, 200, 0.1), transparent 70%);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* ---------- Scroll reveal (class added by site.js only, so no-JS shows everything) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 50ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Cards: lift, icon fill, corner glow, animated gradient border ---------- */
.card.link { overflow: hidden; }
.card.link:not(.featured)::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(85, 187, 228, 0.3), transparent); opacity: 0; transition: opacity 0.3s ease;
}
.card.link:not(.featured):hover::after { opacity: 1; }
.card.link:hover .card-icon { background: var(--grad-btn); color: #fff; box-shadow: none; }
.card-icon { transition: background-color 0.25s ease, color 0.25s ease; }
.featured { position: relative; z-index: 0; overflow: hidden; border-color: transparent !important; }
.featured::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; margin: -110% 0 0 -110%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(85, 187, 228, 0) 0deg, #55bbe4 70deg, #2456c8 140deg, rgba(36, 86, 200, 0) 200deg, rgba(85, 187, 228, 0) 360deg);
  animation: spin 7s linear infinite;
}
.featured::after { content: ""; position: absolute; z-index: -1; inset: 2px; border-radius: calc(var(--radius) - 2px); background: #fff; pointer-events: none; }
.section.dark .featured::after { background: #172368; }

/* ---------- Services (home): gradient tint cards ---------- */
.svc-grid .card { background: linear-gradient(180deg, #fff, #fbfdff); }

/* ---------- Industries mosaic ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ind-card { display: flex; flex-direction: column; padding: 0; }
.ind-card .glyph { flex: 1 0 128px; }
.ind-card.wide { grid-column: span 2; }
.ind-card.wide .glyph { flex: none; height: 236px; }
.ind-body { flex: none; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.ind-body .badge { align-self: flex-start; margin-bottom: 12px; }
.ind-body h3 { margin-bottom: 8px; font-size: 19px; }
.ind-body .card-link { margin-top: auto; padding-top: 16px; }
.ind-card.wide .ind-body h3 { font-size: 24px; }
@media (max-width: 1000px) { .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .ind-grid { grid-template-columns: minmax(0, 1fr); } .ind-card.wide { grid-column: auto; } .ind-card .glyph, .ind-card.wide .glyph { flex: none; height: 128px; } }

/* ---------- Architecture diagram (HTML/CSS so the text stays real, selectable and responsive) ---------- */
.arch-shell { position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; padding: 26px 26px 26px; box-shadow: var(--shadow-md); }
.arch-shell::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: 180%; aspect-ratio: 1; margin: -90% 0 0 -90%; pointer-events: none;
  background: conic-gradient(from 0deg, #55bbe4, #2456c8, #19265b, #2456c8, #55bbe4);
  animation: spin 14s linear infinite;
}
.arch-shell::after { content: ""; position: absolute; z-index: -1; inset: 2px; border-radius: 24px; pointer-events: none; background: linear-gradient(180deg, #fff, #f6faff); }
.arch-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px 8px 12px; border-radius: 999px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: linear-gradient(95deg, #19265b, #1c46a6); }
.arch-tag svg { width: 18px; height: 18px; color: var(--azure); flex: none; }
.arch-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; counter-reset: layer; }
.arch-layer { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px 22px; box-shadow: var(--shadow-sm); counter-increment: layer; }
.arch-layer::before { content: "0" counter(layer); position: absolute; right: 16px; top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: #8e9bbd; }
.arch-layer .card-icon { margin-bottom: 16px; }
.arch-layer:nth-child(2) .card-icon { background: linear-gradient(145deg, #dbe8fb, #c9dcf6); }
.arch-layer:nth-child(3) .card-icon { background: linear-gradient(145deg, #c9dcf6, #b2cdf2); }
.arch-layer:nth-child(4) .card-icon { background: var(--grad-btn); color: #fff; box-shadow: none; }
.arch-layer h3 { font-size: 18px; margin-bottom: 8px; }
.arch-layer p { font-size: 15px; color: var(--muted); margin: 0; }
.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--navy); background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.arch-pipe { position: absolute; left: -44px; top: 46px; width: 44px; height: 2px; pointer-events: none; }
.arch-pipe::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--blue) 0 5px, transparent 5px 10px); opacity: 0.55; }
.arch-pipe::after { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 10px var(--azure); animation: pipe-x 2.4s ease-in-out infinite; animation-delay: var(--dl, 0s); }
.arch-pipe i { position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg); }
@keyframes pipe-x { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(36px); opacity: 0; } }
@keyframes pipe-y { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(36px); opacity: 0; } }
.arch-base { position: relative; overflow: hidden; margin-top: 24px; border-radius: 14px; padding: 16px 20px; color: #fff; background: linear-gradient(95deg, #19265b, #1c46a6 60%, #2456c8); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.arch-base::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%); animation: sheen 6s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.arch-base strong { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #9fd8f0; }
.arch-base ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.arch-base li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.arch-base li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 8px var(--azure); }
.arch-note { margin: 18px 0 0; font-size: 15px; color: var(--muted); max-width: 760px; }
@media (max-width: 1000px) {
  .arch-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 44px; }
  .arch-layer:nth-child(3) .arch-pipe { left: 50%; top: -44px; width: 2px; height: 44px; }
}
@media (max-width: 680px) {
  .arch-shell { padding: 18px 16px 18px; }
  .arch-flow { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .arch-pipe, .arch-layer:nth-child(3) .arch-pipe { left: 50%; top: -44px; width: 2px; height: 44px; }
  .arch-pipe::before { background: repeating-linear-gradient(180deg, var(--blue) 0 5px, transparent 5px 10px); }
  .arch-pipe::after { left: -3px; top: 0; animation-name: pipe-y; }
  .arch-pipe i { right: -4px; top: auto; bottom: -1px; transform: rotate(135deg); }
}

/* ---------- Method timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.tl-track { position: absolute; z-index: 0; top: 23px; left: 24px; right: 0; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.tl-progress { position: absolute; inset: 0; background: var(--grad); transform-origin: left center; transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s; }
.tl-streak { position: absolute; inset: 0; animation: streak 3.8s linear infinite; }
.tl-streak::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 110px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95)); }
@keyframes streak { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.js .timeline:not(.in) .tl-progress { transform: scaleX(0); }
.tl-step { position: relative; z-index: 1; padding-top: 70px; }
.tl-dot {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--blue-deep); background: #fff; border: 2px solid #cfdcf0;
  box-shadow: 0 0 0 6px #fff; isolation: isolate;
}
.alt .tl-dot { box-shadow: 0 0 0 6px var(--tint); }
.tl-dot::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--grad-btn); opacity: 1; z-index: -1; transition: opacity 0.5s ease; transition-delay: calc(var(--i, 0) * 0.28s + 0.1s); }
.tl-dot span { position: relative; color: #fff; transition: color 0.4s ease; transition-delay: calc(var(--i, 0) * 0.28s + 0.1s); }
.js .timeline:not(.in) .tl-dot::before { opacity: 0; }
.js .timeline:not(.in) .tl-dot span { color: var(--blue-deep); }
.tl-step h3 { margin-bottom: 8px; }
.tl-step p { color: var(--muted); font-size: 16px; margin: 0; }
@media (max-width: 920px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; } .tl-track { display: none; } .tl-step::after { content: ""; position: absolute; left: 70px; right: 0; top: 23px; height: 2px; background: linear-gradient(90deg, #cfdcf0, transparent); } }
@media (max-width: 640px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tl-track { display: block; top: 24px; bottom: 56px; left: 23px; right: auto; width: 2px; height: auto; }
  .tl-progress { transform-origin: center top; }
  .js .timeline:not(.in) .tl-progress { transform: scaleY(0); }
  .tl-streak { animation-name: streak-y; }
  .tl-streak::after { right: 0; left: 0; top: auto; bottom: 0; width: auto; height: 90px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95)); }
  .tl-step { padding: 0 0 36px 72px; min-height: 48px; }
  .tl-step::after { display: none; }
}
@keyframes streak-y { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Capability map ---------- */
.section.cap { background: radial-gradient(900px 420px at 90% 0%, rgba(36, 86, 200, 0.5), transparent 62%), radial-gradient(700px 400px at 0% 100%, rgba(85, 187, 228, 0.16), transparent 62%), #0e1745; position: relative; isolation: isolate; overflow: hidden; }
.section.cap::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(159, 216, 240, 0.2) 1px, transparent 1.4px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 10%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 80% 10%, #000, transparent 75%); }
.cap-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cap-row { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; padding: 20px 22px 22px; background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); transition: border-color 0.25s ease, transform 0.25s ease; }
.cap-row:hover { border-color: rgba(85, 187, 228, 0.55); transform: translateY(-2px); }
.cap-row.full { grid-column: 1 / -1; }
.cap-label { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 17px; }
.cap-label svg { flex: none; width: 22px; height: 22px; color: var(--azure); }
.cap-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cap-pill { font-size: 14.5px; font-weight: 500; line-height: 1.2; color: #e6ecf8; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.cap-pill:hover { transform: translateY(-2px); border-color: var(--azure); box-shadow: 0 6px 20px rgba(85, 187, 228, 0.25); }
.cap-pill.strong { color: #fff; font-weight: 600; background: linear-gradient(95deg, rgba(36, 86, 200, 0.75), rgba(85, 187, 228, 0.45)); border-color: rgba(159, 216, 240, 0.6); }
.cap-note { margin: 22px 0 0; font-size: 15px; color: #b4c0de; }
@media (max-width: 800px) { .cap-map { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Misc ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.prose figure > svg, .diagram > svg { width: 100%; height: auto; }

/* ---------- Header scroll state ---------- */
.site-header { transition: box-shadow 0.25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(19, 26, 56, 0.08); }

/* ---------- Print ---------- */
@media print {
  .site-header, .cta-band, .menu-toggle, .skip-link { display: none !important; }
  .site-footer { background: none; border: 0; padding: 24px 0; }
  .section { padding: 24px 0; }
  .hero-page { background: none; padding: 16px 0; }
  .hero-page::before, .hero-page::after, .hero-orb, .field { display: none; }
  .hero-home { color: var(--ink); background: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tl-streak, .arch-base::after { display: none; }
  .featured::before { background: var(--grad); inset: 0; width: auto; margin: 0; aspect-ratio: auto; }
}

/* wide tables scroll inside the article instead of being clipped on small screens */
.prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }


/* =====================================================================
   Technology, diagrams, reference architecture, blocks (tools/tech.py, diagram.py, blocks.py)
   ===================================================================== */
.sub-menu .sub-all + .sub-all { border-top: 0; margin-top: 0; padding-top: 0; }

/* ---------- Technology chips (<!--tech:...-->) ---------- */
.tech-group + .tech-group { margin-top: 44px; }
.tech-cat { margin: 0 0 6px; font-size: 22px; }
.tech-blurb { margin: 0 0 18px; color: var(--muted); font-size: 16px; max-width: 640px; }
.tech-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tech-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: border-color 0.2s ease, transform 0.2s ease; }
.tech-item:hover { border-color: #b9ccec; transform: translateY(-2px); }
.tech-name { font-weight: 650; font-size: 15.5px; color: var(--navy); line-height: 1.3; }
.tech-desc { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.tech-note { margin: 26px 0 0; font-size: 14px; color: var(--muted); max-width: 760px; }
.section.dark .tech-item { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.section.dark .tech-item:hover { border-color: rgba(85, 187, 228, 0.6); }
.section.dark .tech-name { color: #fff; }
.section.dark .tech-desc, .section.dark .tech-blurb, .section.dark .tech-note { color: #c3cee9; }
/* tabs (site.js turns .tech-tabs .tech into a tablist; without JS every group stays stacked) */
.tech-tablist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.tech-tab { font: inherit; font-size: 15px; font-weight: 600; line-height: 1; padding: 11px 18px; border-radius: 999px; cursor: pointer; color: var(--navy); background: #fff; border: 1.5px solid #c4cee3; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.tech-tab:hover { border-color: var(--blue); }
.tech-tab[aria-selected="true"] { color: #fff; background: var(--grad-btn); border-color: transparent; }
.section.dark .tech-tab { color: #e6ecf8; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.24); }
.section.dark .tech-tab[aria-selected="true"] { color: #fff; background: var(--grad-btn); border-color: rgba(159, 216, 240, 0.5); }
.tech.is-tabs .tech-group + .tech-group { margin-top: 0; }
.tech.is-tabs .tech-cat { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.tech-group[role="tabpanel"]:focus-visible { outline-offset: 6px; }
/* compact strip (home) */
.tech-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.tech-strip-label { margin: 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tech-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-chip { font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.tech-strip .more-link { margin: 0; }

/* ---------- Templated diagrams (tools/diagram.py) ---------- */
.diagram-section { padding: 40px 0 16px; }
.section.diagram-section + .section { padding-top: 44px !important; }
.diagram-section .diagram { margin: 0; padding: 22px 22px 16px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.dg { display: block; width: 100%; height: auto; color: var(--blue-deep); overflow: visible; }
.dg text { font-family: var(--font); }
.dg-narrow { display: none; }
@media (max-width: 760px) {
  .dg-wide { display: none; }
  .dg-narrow { display: block; max-width: 420px; margin-inline: auto; }
  .diagram-section .diagram { padding: 14px 8px 12px; border-radius: 18px; }
}
.dg .dg-node { fill: #fff; stroke: #d7e1f1; stroke-width: 1; }
.dg .dg-lane { stroke: #d7e1f1; stroke-width: 1; }
.dg .dg-icobg { stroke: #dbe6f6; stroke-width: 1; }
.dg .dg-label { fill: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.dg .dg-sub { fill: var(--muted); font-weight: 450; }
.dg .dg-badge-t { fill: #fff; font-family: var(--mono); font-weight: 600; }
.dg .dg-lane-t { fill: #fff; font-weight: 700; letter-spacing: -0.01em; }
.dg .dg-lane-n { fill: var(--azure); font-family: var(--mono); font-weight: 500; letter-spacing: 0.06em; }
.dg .dg-onDark { color: var(--azure); }
.dg .dg-chip { fill: #fff; stroke: #cfdcf0; stroke-width: 1; }
.dg .dg-chip-t { fill: var(--navy); font-weight: 550; }
.dg .dg-arrow { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; opacity: 0.85; }
.dg .dg-arrow.fb { stroke: var(--azure); stroke-dasharray: 6 7; animation: dg-dash 1.6s linear infinite; opacity: 1; }
.dg .dg-head { fill: var(--blue); }
.dg .dg-head.fb { fill: var(--azure); }
.dg .dg-ring { fill: none; stroke: #cfdcf0; stroke-width: 1.5; stroke-dasharray: 3 8; }
.dg .dg-center { color: var(--blue); opacity: 0.8; }
@keyframes dg-dash { to { stroke-dashoffset: -26; } }

/* ---------- Reference architecture (<!--block:refarch-->): labels only, details on hover/focus ---------- */
.ra-figure { margin: 0; }
.ra-figure > figcaption, .diagram figcaption { margin: 18px 0 0; text-align: left; font-size: 14.5px; color: var(--muted); max-width: 640px; }
.fig-n { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--blue-deep); margin-right: 8px; }
.ra { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.ra-stack, .ra-inner { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.ra-layer { position: relative; min-width: 0; }
.ra-hit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 17px 20px; background: #fff; border: 1px solid #d3dcec; border-radius: var(--radius); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.ra-num { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: #58658a; min-width: 22px; }
.ra-title { flex: 1; min-width: 0; padding-right: 24px; margin: 0; font-size: 17.5px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.ra-title button { all: unset; cursor: pointer; display: inline; color: inherit; font: inherit; letter-spacing: inherit; }
.ra-title button:focus-visible { outline: 3px solid var(--azure); outline-offset: 6px; border-radius: 4px; }
.js .ra-hit { cursor: pointer; }
.ra-hit { position: relative; }
.js .ra-hit::after { content: ""; position: absolute; right: 20px; top: 23px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #9bb0d8; transition: background-color 0.2s ease, border-color 0.2s ease; }
.ra-layer.is-active > .ra-hit { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 86, 200, 0.12); }
.ra-layer.is-active > .ra-hit::after { background: var(--blue); border-color: var(--blue); }
.ra-layer.is-active > .ra-hit .ra-num { color: var(--blue); }
/* connectors */
.ra-flow::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 1.5px; height: 26px; margin-left: -1px; pointer-events: none; background: repeating-linear-gradient(180deg, #7f9bd2 0 4px, transparent 4px 8px); }
.ra-flow::before { content: ""; position: absolute; z-index: 1; left: 50%; bottom: -26px; width: 6px; height: 6px; margin-left: -3.5px; border-radius: 50%; pointer-events: none; background: var(--blue); animation: ra-drop 2.6s ease-in infinite; }
@keyframes ra-drop { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.ra-gov > .ra-inner > .ra-flow:nth-child(2)::before { animation-delay: 0.9s; }
/* governance frame wraps the data layers */
.ra-gov { padding: 14px 16px 18px; border: 1.5px dashed #9bb7e6; border-radius: 22px; background: #f7faff; }
.ra-gov > .ra-hit { background: var(--navy); border-color: var(--navy); color: #fff; }
.ra-gov > .ra-hit .ra-title, .ra-gov > .ra-hit .ra-title button { color: #fff; }
.ra-gov > .ra-hit .ra-num { color: #9fd8f0; }
.ra-gov > .ra-hit::after { border-color: #9fd8f0; }
.ra-gov.is-active > .ra-hit { border-color: var(--azure); box-shadow: 0 0 0 3px rgba(85, 187, 228, 0.35); }
.ra-gov.is-active > .ra-hit::after { background: var(--azure); border-color: var(--azure); }
.ra-gov > .ra-inner { margin-top: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
.ra-wide { grid-column: 1 / -1; }
.ra-zones { flex: 1 0 100%; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ra-zones li { padding: 7px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; text-align: center; color: var(--navy); background: #e3edfb; }
.ra-zones li.z2 { background: #c6dbf7; }
.ra-zones li.z3 { background: var(--blue-deep); color: #fff; }
/* details: inline accordion on small screens and without JS; sticky legend panel on wide screens with JS */
.ra-detail { margin: 12px 0 0 6px; padding: 4px 0 4px 16px; border-left: 2px solid var(--azure); }
.js .ra-detail { display: none; }
.js .ra-layer.is-active > .ra-detail { display: block; }
.ra-what { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.ra-cap + .ra-cap { margin-top: 12px; }
.ra-cap-name { margin: 0 0 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep); }
.ra-cap ul { list-style: none; margin: 0; padding: 0; }
.ra-cap li { display: flex; gap: 12px; padding: 3px 0; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.ra-cap li b { flex: none; width: 104px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding-top: 1px; }
.ra-cap li.all b { color: var(--blue-deep); }
.ra-legend { display: none; }
@media (min-width: 961px) {
  .js .ra-legend { display: block; position: sticky; top: calc(var(--header-h) + 24px); padding: 28px 28px 30px; border-radius: var(--radius); color: #e6ecf8; background: var(--navy); min-height: 340px; }
  .js .ra-layer.is-active > .ra-detail { display: none; }
  .ra-legend-eyebrow { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--azure); }
  .ra-legend-title { margin: 0 0 8px; font-size: 22px; color: #fff; }
  .ra-legend .ra-detail { display: block; margin: 0; padding: 0; border: 0; }
  .ra-legend .ra-what { color: #c3cee9; }
  .ra-legend .ra-cap-name { color: var(--azure); }
  .ra-legend .ra-cap li { color: #fff; font-size: 15px; }
  .ra-legend .ra-cap li b { color: #9fd8f0; }
  .ra-legend-body { animation: ra-in 0.25s ease both; }
  .ra-legend-empty { color: #c3cee9; font-size: 15px; margin: 0; }
}
@keyframes ra-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 960px) {
  .ra { grid-template-columns: minmax(0, 1fr); }
  .ra-gov > .ra-inner { grid-template-columns: minmax(0, 1fr); }
  .ra-half { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ra-gov { padding: 10px 10px 14px; border-radius: 18px; }
  .ra-hit { padding: 14px; gap: 4px 12px; }
  .ra-cap li b { width: 92px; }
}

/* ---------- Cloud map table (<!--block:cloudmap-->) ---------- */
.cloudmap-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); background: #fff; -webkit-overflow-scrolling: touch; }
.cloudmap { width: 100%; min-width: 840px; border-collapse: collapse; font-size: 15px; }
.cloudmap thead th { position: sticky; top: 0; padding: 14px 16px; text-align: left; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--mono); font-weight: 500; color: #fff; background: linear-gradient(95deg, #19265b, #1c46a6); }
.cloudmap td, .cloudmap tbody th { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.cloudmap tr.cm-start > * { border-top: 2px solid #cfdcf0; }
.cloudmap tbody tr:first-child > * { border-top: 0; }
.cloudmap .cm-layer { width: 190px; font-size: 16px; color: var(--navy); background: var(--tint); font-weight: 700; }
.cloudmap .cm-cap { width: 170px; font-weight: 600; color: var(--muted); font-size: 14px; }
.cloudmap .cm-all { color: var(--muted); font-style: italic; background: #fbfdff; }
.cloudmap tbody tr:hover td, .cloudmap tbody tr:hover .cm-cap { background: #f7faff; }

/* ---------- Maturity path (<!--block:maturity-->) ---------- */
.mat-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: end; }
.mat-step { position: relative; display: flex; flex-direction: column; padding: 20px 18px 22px; min-height: calc(200px + var(--n) * 40px); border: 1px solid var(--line); border-top: 4px solid hsl(206deg 70% calc(62% - var(--n) * 8%)); border-radius: 16px 16px 6px 6px;
  background: linear-gradient(180deg, rgba(36, 86, 200, calc(0.03 + var(--n) * 0.025)), #fff 80%); box-shadow: var(--shadow-sm); }
.mat-ico { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 14px; color: var(--blue); background: #fff; box-shadow: inset 0 0 0 1px #dbe6f6; }
.mat-ico svg { width: 22px; height: 22px; }
.mat-num { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 6px; }
.mat-step h3 { margin: 0 0 8px; font-size: 18px; }
.mat-step p { margin: 0; font-size: 15px; color: var(--muted); }
.mat-step:last-child { border-top-color: var(--blue); }
@media (max-width: 960px) {
  .mat-path { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mat-step { min-height: 0; margin-left: calc(var(--n) * 14px); border-radius: 14px; }
}

/* ---------- Engagement models (<!--block:engagement-->) ---------- */
.eng-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: eng; }
.eng-card { position: relative; padding: 24px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); counter-increment: eng; }
.eng-card:not(:last-child)::after { content: ""; position: absolute; z-index: 1; right: -17px; top: 44px; width: 12px; height: 12px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg); opacity: 0.6; }
.eng-ico { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 16px; color: #fff; background: var(--grad-btn); }
.eng-ico svg { width: 24px; height: 24px; }
.eng-card h3 { margin: 0 0 8px; font-size: 19px; }
.eng-card p { margin: 0; font-size: 15.5px; color: var(--muted); }
.eng-card .eng-best { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--navy); font-weight: 500; }
@media (max-width: 1000px) { .eng-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .eng-card::after { display: none; } }
@media (max-width: 600px) { .eng-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Premium editorial layer (home and shared chrome) ---------- */
.site-header { transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease; background: rgba(255, 255, 255, 0.7); }
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.97); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav-list a.nav-link { font-size: 15px; }
.nav-cta { white-space: nowrap; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; padding-bottom: 44px; margin-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-statement { margin: 0; max-width: 16em; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; color: #fff; }
.footer-contact { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-contact a { color: #fff; font-weight: 600; text-underline-offset: 4px; }
.footer-contact .footer-cta { text-decoration: none; border-bottom: 1px solid var(--azure); padding-bottom: 2px; }
.site-footer .footer-grid { gap: 40px; }

.home-sec { padding: clamp(72px, 10vw, 144px) 0; position: relative; }
.home-sec.tint { background: #f6f8fc; }
.home-sec .eyebrow { margin-bottom: 20px; }
.home-sec h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.035em; line-height: 1.06; font-weight: 600; max-width: 14em; margin-bottom: 0; }
.home-sec h2.eyebrow { font-size: 12.5px; line-height: 1.4; letter-spacing: 0.1em; font-weight: 500; max-width: none; margin-bottom: 20px; }
.home-head { margin: 0 0 clamp(36px, 5vw, 64px); }
.rule-top { border-top: 1px solid #d9e0ee; padding-top: 28px; }

/* hero: cleaner, line-art on flat navy */
.hero-page.hero-home { padding: clamp(80px, 11vw, 160px) 0 clamp(72px, 9vw, 128px); background: linear-gradient(180deg, #0a1130 0%, #0d1642 100%); }
.hero-home::after { display: none; }
.hero-home h1 { font-size: clamp(42px, 6.6vw, 90px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; max-width: 9.5em; margin-bottom: 26px; }
.hero-home .lede { font-size: clamp(18px, 1.7vw, 21px); max-width: 27em; margin-bottom: 0; color: #c0cbe8; }
.hero-home .grad-text { background: none; -webkit-text-fill-color: currentColor; color: #8fd3f0; }
.hero-home .actions { align-items: center; gap: 18px 32px; margin-top: 40px; }
.text-link { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.45); padding-bottom: 3px; transition: border-color 0.2s ease; }
.text-link:hover { color: #fff; border-color: var(--azure); }
.hero-home .field { opacity: 0.7; }
.hero-stage { height: 440px; }
.gp-main { top: 40px; }
.gp-agents { top: 220px; }

/* positioning statement */
.pos-grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px 48px; border-top: 1px solid #d9e0ee; padding-top: 28px; }
.pos-grid .eyebrow { margin: 4px 0 0; }
.pos-text { margin: 0; max-width: 22em; font-size: clamp(26px, 3.5vw, 46px); line-height: 1.16; letter-spacing: -0.03em; font-weight: 500; color: var(--ink); }
.pos-text strong { font-weight: 600; color: var(--blue-deep); }

/* numbered editorial rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d9e0ee; }
.rows li { border-bottom: 1px solid #d9e0ee; }
.row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr) 40px; gap: 16px 32px; align-items: baseline; padding: clamp(28px, 3.4vw, 44px) 0; color: var(--ink); text-decoration: none; transition: padding-left 0.25s ease; }
.row-n { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: #58658a; }
.row-t { margin: 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; transition: color 0.2s ease; }
.row-d { margin: 0; max-width: 28em; font-size: 17px; color: var(--muted); }
.row-go { justify-self: end; font-size: 24px; color: var(--blue); transition: transform 0.25s ease; }
.row:hover { color: var(--ink); padding-left: 10px; }
.row:hover .row-t { color: var(--blue-deep); }
.row:hover .row-go { transform: translateX(4px); }
.row:focus-visible { outline-offset: -3px; border-radius: 6px; }

/* technology and industries */
.tech-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.stance { margin: 22px 0 0; max-width: 24em; font-size: 18px; color: var(--muted); }
.wordmarks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.wordmarks li { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.02em; color: #55618a; }
.tech-split .more-link { margin-top: 28px; }
.ind-line { margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid #d9e0ee; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px 48px; }
.ind-line .eyebrow { margin: 4px 0 0; }
.ind-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 0; font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; letter-spacing: -0.015em; }
.ind-tags a { color: var(--ink); text-decoration: none; }
.ind-tags a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.ind-tags a + a::before { content: "/"; color: #aab4cf; margin: 0 14px; font-weight: 400; }
.ind-tags a.lead { color: var(--blue-deep); font-weight: 650; }
.ind-line .more-link { grid-column: 2; margin: 8px 0 0; }

/* how we work: quiet line diagram */
.home-sec .timeline { margin-top: 8px; }
.home-sec .tl-step h3 { font-size: 21px; letter-spacing: -0.02em; }
.home-sec .tl-streak { display: none; }
.home-work .more-link { margin-top: 44px; }

@media (max-width: 920px) {
  .pos-grid, .ind-line { grid-template-columns: minmax(0, 1fr); }
  .ind-line .more-link { grid-column: 1; }
  .row { grid-template-columns: 48px minmax(0, 1fr) 32px; }
  .row-d { grid-column: 2 / 3; grid-row: 2; }
  .row-go { grid-row: 1; grid-column: 3; }
  .tech-split { grid-template-columns: minmax(0, 1fr); }
}

.rows.static .row:hover { padding-left: 0; }
.rows.static .row:hover .row-t { color: inherit; }
.sec-list { columns: 2; column-gap: 56px; max-width: 980px; }
.sec-list li { break-inside: avoid; padding-bottom: 14px; }
.cloudmap.choose { min-width: 760px; }
.cloudmap.choose td { color: var(--ink); }
.cloudmap.choose td:nth-child(2) { color: var(--muted); }
.faq-a .cloudmap-wrap { margin-top: 6px; }
@media (max-width: 760px) { .sec-list { columns: 1; } }

/* illustrations in the hero art slot (hero_illustration frontmatter or default pages/service-*.svg, pages/industry-*.svg) */
.hero-page .hero-art.has-illo { max-width: 560px; }
.hero-art.has-illo svg { width: 100%; height: auto; }
.hero-page .hero-art.has-illo::before { display: none; }
.hero-illo { width: 100%; max-width: 580px; margin-left: auto; }
.hero-illo svg { width: 100%; height: auto; }

/* 3D tilt micro-interaction: site.js sets --rx/--ry (max 4deg) from the pointer; mouse only, off for reduced motion */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-art, .diagram-section .diagram, .hero-illo { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.2s ease-out; will-change: transform; }
}

@media (prefers-reduced-motion: reduce) {
  .ra-flow::before, .dg .dg-arrow.fb, .ra-legend-body { animation: none !important; }
}

/* larger home hero illustration: extends toward the right edge on desktop */
.hero-page.hero-home { overflow-x: clip; }
@media (min-width: 1001px) {
  .hero-illo { max-width: none; width: 132%; margin-right: -30%; margin-left: -2%; }
  .hero-home .hero-grid { align-items: center; }
}
@media (max-width: 1000px) { .hero-illo { max-width: 560px; width: 100%; margin: 0 auto; } }
