/* Visual-review polish: role switcher, arrow buttons, legal pages.
   Loaded after company.css on every page (see scripts/apply_shell.py). */

/* ---------- radius family: panel 20 / segmented control 16 / segment 12 ---------- */
html body#nebula-site #roles .role-panel,
html body#nebula-site [data-scope] .role-panel { border-radius: 20px !important; }

html body#nebula-site .role-head { gap: 14px 28px; }
html body#nebula-site .role-tabs {
  position: relative; flex-wrap: nowrap; gap: 2px; padding: 4px; border-radius: 16px;
  background: #F4F1FA; border: 1px solid #E2DBF0; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
html body#nebula-site .role-tabs::-webkit-scrollbar { display: none; }
html body#nebula-site .role-tabs button {
  position: relative; z-index: 1; flex: none; border-radius: 12px; padding: 10px 20px;
  transition: color .25s ease, background-color .2s ease;
}
html body#nebula-site .role-tabs .role-ind {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 12px;
  background: var(--acct, #6D28D9); box-shadow: 0 4px 12px rgba(109, 40, 217, .28);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), width .32s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
/* with the sliding indicator the segments carry no fill of their own */
html body#nebula-site .role-tabs.has-ind button,
html body#nebula-site .role-tabs.has-ind button[aria-selected="true"] {
  background: transparent !important; border-color: transparent !important;
}
html body#nebula-site .role-tabs.has-ind button[aria-selected="false"]:hover {
  background: rgba(109, 40, 217, .08) !important; color: #5B21B6 !important;
}
/* autoplay progress: a thin bar along the bottom edge of the selected segment */
html body#nebula-site .role-tabs .rp {
  left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .6);
}
html body#nebula-site .role-tabs .rp { display: none !important; } /* autoplay still runs; the bar showed as a stray dash at load */

/* panel crossfade: opacity only, so the reserved height never jumps */
@keyframes role-fade { from { opacity: 0; } to { opacity: 1; } }
html body#nebula-site .role-panel { animation: role-fade .2s ease both !important; }

@media (max-width: 640px) {
  html body#nebula-site .role-tabs { width: 100%; }
  html body#nebula-site .role-tabs button { padding: 9px 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html body#nebula-site .role-tabs .role-ind,
  html body#nebula-site .role-tabs button { transition: none; }
  html body#nebula-site .role-panel { animation: none !important; }
  html body#nebula-site .role-tabs .rp { display: none !important; }
}

/* ---------- circular arrow buttons: violet fill + white arrow on hover/focus ---------- */
html body#nebula-site :is(a.cat, a.lr):is(:hover, :focus-visible) .ar {
  background: var(--acct, #6D28D9) !important; border-color: var(--acct, #6D28D9) !important;
  color: #fff !important; -webkit-text-fill-color: #fff !important;
}
html body#nebula-site :is(a.cat, a.lr) .ar { transition: background-color .25s ease, border-color .25s ease, color .25s ease; }

/* ---------- legal pages: tight hero, 720px measure, on-page contents ---------- */
/* the hero keeps the same 72px padding as every inner page; pull the body up so the gap to the text is ~40px */
html body#nebula-site main.co:has(.co-legal) { position: relative; z-index: 1; margin-top: -32px; padding-bottom: 24px; }
html body#nebula-site .co-sec:has(.co-legal) { padding: 8px 24px 48px; }
.co .wrap.co-legal {
  max-width: none; padding-bottom: 0; display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 260px); column-gap: 72px; row-gap: 0; align-items: start;
}
.co .co-legal > * { grid-column: 1; }
.co-legal .co-updated { margin: 0 0 4px; }
.co-legal h2 { margin: 40px 0 10px; font-size: 22px; line-height: 1.25; scroll-margin-top: 96px; }
.co-legal h2:first-of-type { margin-top: 28px; }
.co-legal p { margin: 0 0 14px; }
.co-legal ul { margin: 0 0 14px; }
.co-legal li { margin-bottom: 6px; }
.co .co-legal > .co-toc {
  grid-column: 2; grid-row: 1 / span 400; position: sticky; top: 96px; align-self: start;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2);
}
.co-toc p { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acct); }
.co-toc a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.co-toc a:hover { color: var(--acct); }
@media (max-width: 1040px) {
  .co .wrap.co-legal { grid-template-columns: minmax(0, 720px); }
  .co .co-legal > .co-toc { display: none; }
}

/* ---------- home "Ask the brain" role section ---------- */
html body#nebula-site #roles .ask-h2 { font-size: clamp(30px, 3.6vw, 46px) !important; letter-spacing: -.04em !important; margin: 0; }
html body#nebula-site #roles .role-head { align-items: center; }
html body#nebula-site #roles .ask-wrap { display: flex; flex-direction: column; gap: 28px; }
html body#nebula-site #roles .ask-top { display: flex; flex-direction: column; gap: 14px; }
html body#nebula-site #roles .ask-lede { max-width: 640px; margin: 0; }
.ask-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

html body#nebula-site .ask-bar {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 10px 10px 20px;
  background: #fff; border: 1px solid #DCD3EE; border-radius: 16px; position: relative;
  box-shadow: 0 1px 2px rgba(33, 18, 53, .04), 0 12px 32px rgba(109, 40, 217, .08);
}
.ask-bar .ask-ico { color: var(--acct, #6D28D9); flex: none; }
.ask-bar .ask-line { flex: 1; min-width: 0; display: block; line-height: 1.35; font-size: clamp(17px, 2vw, 21px); font-weight: 500; color: var(--ink, #17151F); letter-spacing: -.01em; }
.ask-bar .ask-text { display: inline; transition: opacity .18s ease; }
.ask-bar.is-clearing .ask-text { opacity: 0; }
.ask-bar .ask-caret { display: inline-block; vertical-align: text-bottom; width: 2px; height: 1.2em; margin-left: 2px; background: var(--acct, #6D28D9); border-radius: 1px; animation: ask-blink 1.05s steps(1) infinite; }
.ask-bar.is-typing .ask-caret { animation: none; }
.ask-bar .ask-go {
  flex: none; padding: 10px 22px; border-radius: 12px; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--acct, #6D28D9); box-shadow: 0 4px 12px rgba(109, 40, 217, .28); transition: transform .15s ease, box-shadow .15s ease;
}
html body#nebula-site .ask-bar .ask-go { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.ask-bar.is-sent .ask-go { transform: scale(.94); box-shadow: 0 1px 4px rgba(109, 40, 217, .3); }
@keyframes ask-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.ask-stage { position: relative; }
.ask-skel { position: absolute; inset: 0 0 auto 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px 48px;
  padding: clamp(24px, 3.4vw, 40px); background: #fff; border: 1px solid #DED5EE; border-radius: 20px; overflow: hidden;
  opacity: 0; transform: translateY(6px); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.ask-skel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--prism); opacity: .5; }
.ask-skel .sk-col { display: flex; flex-direction: column; gap: 14px; }
.ask-skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #F1ECF9 0%, #E6DDF5 40%, #F1ECF9 80%); background-size: 200% 100%; animation: ask-shimmer 1.2s linear infinite; }
.ask-skel i.sk-h { height: 26px; width: 85%; } .ask-skel i.sk-h2 { height: 26px; width: 60%; }
.ask-skel i.sk-box { height: 150px; border-radius: 12px; margin-top: 6px; }
.ask-skel i.sk-card { height: 120px; border-radius: 12px; }
.ask-skel i.sk-s { width: 40%; }
.ask-stage.is-pending .ask-skel { opacity: 1; transform: none; }
@keyframes ask-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (max-width: 860px) { .ask-skel { grid-template-columns: 1fr; } .ask-skel .sk-col + .sk-col { display: none; } }

html body#nebula-site .ask-panel {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px 48px; align-items: start;
  padding: clamp(24px, 3.4vw, 40px); background: #fff; border: 1px solid #DED5EE; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(33, 18, 53, .04), 0 14px 40px rgba(33, 18, 53, .06); position: relative; overflow: hidden;
}
html body#nebula-site .ask-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--prism); }
html body#nebula-site .ask-panel[hidden] { display: none; }
.ask-l, .ask-r { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ask-r { gap: 12px; align-self: stretch; }
.ask-tag { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.ask-lab { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acct, #6D28D9); }
.ask-lab .ask-ico { width: 16px; height: 16px; }
.ask-ex { font-size: 12px; color: var(--muted, #605C6D); background: #F4F1FA; border: 1px solid #E2DBF0; border-radius: 999px; padding: 3px 10px; }
html body#nebula-site .ask-head { margin: 0; font-family: var(--head); font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; line-height: 1.22; letter-spacing: -.03em; color: var(--ink, #17151F); text-wrap: balance; }
.ask-what { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #605C6D); }
.ask-what span { color: var(--ink, #17151F); }
.ask-ben { flex: 1; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; align-content: center; background: #FBFAFE; border: 1px solid #E7E1F2; border-radius: 14px; padding: 14px 16px; }
.ask-ben .apill { justify-self: start; }
.ask-ben-t { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.5; color: var(--muted, #605C6D); }
.ask-ben-t b { font-size: 16px; font-weight: 600; color: var(--ink, #17151F); }
.ask-src { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid #EEE9F6; font-size: 13px; color: var(--muted, #605C6D); }

/* illustrative data snippet, in the product-snapshot style */
.ask-snip { background: #fff; border: 1px solid #E5E0EB; border-radius: 12px; padding: 14px 16px 12px; font-size: 12px; color: #4A4557; box-shadow: 0 8px 24px rgba(33, 17, 54, .06); font-variant-numeric: tabular-nums; }
.ask-snip .snip-h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #F0ECF5; }
.ask-snip .snip-h b { font-size: 12px; color: var(--ink, #17151F); }
.ask-snip .snip-h span { color: #847C92; }
.ask-snip .snip-note { margin: 10px 0 0; font-size: 11px; color: #9A93A8; }
.snip-big { display: flex; align-items: baseline; gap: 8px; }
.snip-big b { font-family: var(--head); font-size: 32px; line-height: 1; font-weight: 750; letter-spacing: -.03em; color: var(--ink, #17151F); }
.snip-big span { font-size: 12px; color: #6F677E; }
.snip-two { display: flex; gap: 32px; margin-bottom: 10px; }
.snip-seg { display: flex; gap: 4px; margin: 12px 0 10px; }
.snip-seg i { flex: 1; height: 10px; border-radius: 3px; }
.snip-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.snip-leg span { display: inline-flex; align-items: center; gap: 6px; }
.snip-leg i { width: 8px; height: 8px; border-radius: 2px; }
.snip-seg .ok, .snip-leg .ok { background: #1F9D63; } .snip-seg .warn, .snip-leg .warn, .snip-track .warn { background: #E39A1B; }
.snip-seg .bad, .snip-leg .bad { background: #D6455D; }
.snip-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 36px; gap: 12px; align-items: center; padding: 6px 0; }
.snip-row b { text-align: right; color: var(--ink, #17151F); font-weight: 600; }
.snip-track { height: 8px; border-radius: 4px; background: #F0ECF5; overflow: hidden; }
.snip-track i { display: block; height: 100%; border-radius: 4px; background: #6D28D9; }
.snip-track .c2 { background: #CF0EA8; } .snip-track .c3 { background: #008AA8; } .snip-track .c4 { background: #C45513; }
.snip-cols { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; height: 68px; border-bottom: 1px solid #E7E5EF; }
.snip-col { display: flex; justify-content: center; }
.snip-col i { display: block; width: 38px; border-radius: 6px 6px 0 0; background: #6D28D9; opacity: .88; }
.snip-col i.bad { background: #D6455D; opacity: 1; }
.snip-lab { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin-top: 6px; }
.snip-lab span { display: flex; flex-direction: column; gap: 1px; color: #6F677E; }
.snip-lab b { font-size: 14px; color: var(--ink, #17151F); }
.snip-spark { display: block; width: 100%; height: 40px; }

/* motion: only once site.js has taken over (js-ask / js-pn), so the page is complete without it */
.js-ask .ask-panel { opacity: 0; transform: translateY(8px); }
.js-ask .ask-panel.is-in { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.js-ask .ask-panel.is-in.is-out { opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.js-ask .ask-i { opacity: 0; transform: translateY(10px); }
.js-ask .ask-panel.is-in .ask-i {
  opacity: 1; transform: none;
  transition: opacity .42s ease calc(var(--i) * 60ms), transform .42s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 60ms);
}

/* AIAssistants role switcher: same fade/slide for the plain panels */
.js-pn [data-panel] { opacity: 0; transform: translateY(8px); }
.js-pn [data-panel].pn-in { opacity: 1; transform: none; transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1); }
.js-pn [data-panel].pn-in.pn-out { opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.js-pn [data-panel] > * { opacity: 0; transform: translateY(8px); }
.js-pn [data-panel].pn-in > * { opacity: 1; transform: none; transition: opacity .38s ease, transform .38s cubic-bezier(.2, .7, .2, 1); }
.js-pn [data-panel].pn-in > *:nth-child(2) { transition-delay: 60ms; }
.js-pn [data-panel].pn-in > *:nth-child(3) { transition-delay: 120ms; }
.js-pn [data-panel].pn-in.pn-out > * { transition: none; }

@media (max-width: 900px) {
  html body#nebula-site .ask-panel { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ask-ben { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 640px) {
  html body#nebula-site #roles .ask-wrap { gap: 22px; }
  .ask-bar { min-height: 84px; padding: 8px 8px 8px 14px; gap: 10px; }
  .ask-bar .ask-line { font-size: 16px; }
  .ask-bar .ask-go { padding: 9px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ask-bar .ask-caret { animation: none; }
  .js-ask .ask-panel, .js-ask .ask-i, .js-pn [data-panel], .js-pn [data-panel] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- bottom CTA band: primary "Talk to an expert" button (replaces the inline email form) ---------- */
html body#nebula-site .edcta .edcta-btn {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; min-height: 48px; padding: 13px 26px;
  border-radius: 8px; font-size: 15px; font-weight: 650; text-decoration: none;
  background: var(--acct, #6D28D9) !important; border: 1px solid var(--acct, #6D28D9) !important; outline: 0; color: #fff !important; -webkit-text-fill-color: #fff !important;
  box-shadow: 0 8px 24px rgba(109, 40, 217, .35); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
html body#nebula-site .edcta .edcta-btn:hover { transform: translateY(-1px); background: #5720B5 !important; border-color: #5720B5 !important; box-shadow: 0 12px 30px rgba(109, 40, 217, .45); }
html body#nebula-site .edcta .edcta-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 560px) { html body#nebula-site .edcta .edcta-btn { width: 100%; max-width: 360px; } }
@media (prefers-reduced-motion: reduce) { html body#nebula-site .edcta .edcta-btn { transition: none; } }

/* ---------- footer newsletter: stack the field and button so the email field is never cut off ---------- */
html body#nebula-site footer form[data-lead="newsletter"] > div {
  flex-direction: column !important; align-items: stretch !important; gap: 10px !important;
  padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important;
}
html body#nebula-site footer form[data-lead="newsletter"] input[type="email"] {
  width: 100% !important; flex: none !important; min-height: 46px; padding: 11px 16px !important;
  border: 1px solid #DED5EE !important; border-radius: 8px !important; background: #fff !important;
  color: var(--ink, #17151F) !important; font-size: 15px !important;
}
html body#nebula-site footer form[data-lead="newsletter"] input[type="email"]:focus-visible { outline: 2px solid var(--acct, #6D28D9); outline-offset: 1px; border-color: var(--acct, #6D28D9) !important; }
html body#nebula-site footer form[data-lead="newsletter"] button { width: 100% !important; min-height: 46px; border-radius: 8px !important; }

/* ---------- home "The problem": heading column aligns to the top of the list beside it ---------- */
html body#nebula-site #problem > .wrap { align-items: start !important; }

/* ---------- side-by-side two-column sections: the kicker's rule sits level with the top edge of the column beside it ---------- */
/* .niq-split marks a two-column grid whose columns start together (set by scripts/migrations/split_layout.py).
   The kicker is 15px/1.45 tall, so half of it (10.875px) hangs above the column and its rule lands on the column's top line. */
@media (min-width: 980px) {
  html body#nebula-site .niq-split > :first-child > .kicker:first-child { margin-top: -10.875px !important; }
}

/* ---------- left columns scroll away with the page; only the home FAQ (#faq) keeps its sticky left column ---------- */
html body#nebula-site .wrap.split > .sticky { position: static !important; top: auto !important; }

/* ---------- section labels: ONE rule per section, from the label to the right edge of the content box ---------- */
/* .wrap is a size container, so 100cqw is the width of its content box.  A label sits at the content box's left edge,
   and its rule (the label's ::after) is stretched across the column gap and the column beside it by giving the label a
   negative right margin of (column width - content width).  The label ignores the pointer so it never covers a link. */
html body#nebula-site :is(.wrap, .ce-wrap) { container-type: inline-size; }
html body#nebula-site .kicker.kicker.kicker.kicker:not(:has(a)):not(:has(+ h1)) {
  width: auto !important; margin-right: calc(100% - 100cqw) !important; pointer-events: none;
}
/* generated sections (use cases, delivery) label their heading with .ce-eyebrow inside .ce-wrap */
html body#nebula-site .ce-eyebrow.ce-eyebrow.ce-eyebrow.ce-eyebrow { width: auto !important; margin-right: calc(100% - 100cqw) !important; pointer-events: none; }
html body#nebula-site .ce-eyebrow.ce-eyebrow.ce-eyebrow.ce-eyebrow::after { height: 1px; background: linear-gradient(90deg, rgba(109, 40, 217, .55), #E4DAF5) !important; }
html body#nebula-site .ce-use-cases { border-top: 0 !important; }
@media (min-width: 981px) {
  html body#nebula-site :is(.ce-section--use-cases, .ce-section--delivery) .ce-heading > .ce-eyebrow:first-child { margin-top: -10.875px !important; }
}
/* a label inside a card (not a section label) keeps its rule inside the card */
html body#nebula-site [style*="radius"] .kicker.kicker.kicker.kicker:not(:has(a)):not(:has(+ h1)) { margin-right: 0 !important; }
html body#nebula-site .kicker.kicker.kicker.kicker:not(:has(a)):not(:has(+ h1))::after {
  height: 1px; background: linear-gradient(90deg, rgba(109, 40, 217, .55), #E4DAF5) !important;
}
/* inside dark panels, the band and the footer the rule keeps its light-on-dark look */
html body#nebula-site :is(.ondark, .dark, .edcta, footer, [style*="#0A1433"], [style*="rgb(10, 20, 51)"]) .kicker.kicker.kicker.kicker:not(:has(a)):not(:has(+ h1))::after,
html body#nebula-site :is(.ondark, .dark, .edcta, footer).kicker.kicker.kicker.kicker::after {
  background: linear-gradient(90deg, rgba(159, 122, 234, .7), rgba(159, 122, 234, .25)) !important;
}

/* one line per section: the column beside a label starts without a top line of its own (the label's rule is that line);
   the list's inner dividers stay.  Cards (inline border-radius, .rk) keep their full border. */
html body#nebula-site .niq-split > :nth-child(2):not([style*="radius"]),
html body#nebula-site .niq-split > :nth-child(2) > :first-child:not([style*="radius"]):not(.rk),
html body#nebula-site .niq-split > :nth-child(2) > :first-child > :first-child:not([style*="radius"]):not(.rk),
html body#nebula-site .niq-split .sx-list > li:first-child { border-top: 0 !important; }
@media (min-width: 901px) { html body#nebula-site .niq-split .sx-list > li:nth-child(2) { border-top: 0 !important; } }

/* ---------- breathing room between sections: ~128px between content at >=1200px, ~80px at 390px ---------- */
/* Each content section pads its top and bottom by half the gap, so two neighbours (plain or banded) are 128px apart and a
   band's edge is 64px from its own content on both sides.  Heroes, the dark CTA band and the footer are not .sec and keep
   their own spacing. */
html body#nebula-site { --sec-pad: clamp(40px, calc(28.4px + 2.963vw), 64px); }
html body#nebula-site :is(section.sec, section.ce-section, section.co-sec, section#impact):not(.edcta-s) {
  padding-top: var(--sec-pad) !important; padding-bottom: var(--sec-pad) !important;
}

/* ======================================================================
   Stream A: home page
   ====================================================================== */
/* "How it works": the 6 steps cross-fade. Each li is 74vh tall inside a view timeline whose cover range is
   (74vh + viewport), so step N+1 sits 42.5% of the range behind step N. Fade-in 20-40% and fade-out 62.5-82.5%
   are complementary over that offset, so opacities always sum to 1 and the column is never empty. The first
   step holds from the start and the last holds to the end. */
@keyframes stepxfade { 0%, 20% { opacity: 0; } 40%, 62.5% { opacity: 1; } 82.5%, 100% { opacity: 0; } }
@keyframes stepxfade-first { 0%, 62.5% { opacity: 1; } 82.5%, 100% { opacity: 0; } }
@keyframes stepxfade-last { 0%, 20% { opacity: 0; } 40%, 100% { opacity: 1; } }
@media (min-width: 901px) {
  .st-steps .sw { animation-name: stepxfade; animation-range: cover 0% cover 100%; }
  .st-steps li:first-child .sw { animation-name: stepxfade-first; }
  .st-steps li:last-child .sw { animation-name: stepxfade-last; }
}
@media (prefers-reduced-motion: reduce) { .st-steps .sw { animation: none !important; opacity: 1 !important; position: static; height: auto; } .st-steps li { height: auto; min-height: 46vh; display: flex; flex-direction: column; justify-content: center; } }

/* Ask-the-brain panel headings (h3 inside each panel) */
html body#nebula-site h3.ask-sr { font-size: 18px; font-weight: 650; color: #17151F; }
/* #impact orbit dots: core.css cycles --glue blue through circle:nth-of-type(3n+1); keep them violet/magenta */
html body#nebula-site #impact circle:has(> animateMotion) { fill: #CF0EA8 !important; }
html body#nebula-site #impact circle:nth-of-type(3n+1):has(> animateMotion) { fill: #6D28D9 !important; }

/* ===== Stream B: one grey band per page, stray dots, off-theme colours -> violet family / magenta ===== */
/* Bands. `band-white` is a marker added by scripts/migrations/bands_dots_colours.py to the "signs/systems/delivery/levels/
   autonomy/apart" sections; it keeps the light-theme text rules of .sec.ondark and only drops the grey fill and the rules. */
html body#nebula-site .sec.ondark.band-white,
html body#nebula-site section.ce-section--delivery.band-white {
  background: #FFFFFF !important; background-image: none !important; border-top: 0 !important; border-bottom: 0 !important;
}
/* industry "systems" diagram: travelling dots and the mobile twin, on the light band */
html body#nebula-site .hubsvg circle:has(> animateMotion) { fill: #8B5CF6 !important; }
html body#nebula-site .hubsvg circle[r="4"]:has(> animateMotion) { fill: #CF0EA8 !important; }
html body#nebula-site .hubsvg #hcore stop[offset="0"] { stop-color: #8B5CF6 !important; }
html body#nebula-site .sec.ondark .hubd .chip {
  background: #EFE8FC !important; color: #17151F !important; -webkit-text-fill-color: #17151F !important; border-color: #DCCCF2 !important;
}
html body#nebula-site .hubd .core {
  background: radial-gradient(circle at 30% 25%, #8B5CF6, #6D28D9 60%, #5B21B6) !important; border-color: #6D28D9 !important;
}
html body#nebula-site .hubd .outs span {
  background: #FFFFFF !important; color: #5B21B6 !important; -webkit-text-fill-color: #5B21B6 !important; border-color: #8B5CF6 !important;
}
html body#nebula-site .hubd .core::before { background: linear-gradient(rgba(139, 92, 246, 0), #8B5CF6) !important; }
html body#nebula-site .hubd .core::after { background: linear-gradient(#CF0EA8, rgba(207, 14, 168, 0)) !important; }
/* gold gradient figures */
html body#nebula-site [data-sc-name="Connectors"] .big,
html body#nebula-site [data-sc-name="Observe"] .stat {
  background-image: linear-gradient(90deg, #6D28D9, #CF0EA8) !important; -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
}
html body#nebula-site [data-sc-name="Connectors"] span[style*="color: rgb(10, 20, 51)"] { color: #17151F !important; }
/* SwarmStudio #deliver map pins: violet, violet-light, magenta */
html body#nebula-site #deliver .pm { background: #6D28D9; box-shadow: 0 8px 18px rgba(109, 40, 217, .30); }
html body#nebula-site #deliver .p1 .pm { background: #8B5CF6; box-shadow: 0 8px 18px rgba(139, 92, 246, .32); }
html body#nebula-site #deliver .p3 .pm { background: linear-gradient(135deg, #8B5CF6, #CF0EA8); box-shadow: 0 8px 18px rgba(207, 14, 168, .30); }
html body#nebula-site #deliver .phl.p3 { color: #A30C85; border-color: rgba(207, 14, 168, .35); background: rgba(207, 14, 168, .08); }
html body#nebula-site #deliver .road-svg path[stroke="#C8922E"] { stroke: #CF0EA8; }
/* progress bars drawn with inline blue */
html body#nebula-site div[style*="background: rgb(35, 71, 197)"],
html body#nebula-site div[style*="background: rgb(76, 125, 255)"] { background: #6D28D9 !important; }
/* "Where to start" cards on function pages */
html body#nebula-site a.kx-post { background-image: none !important; }
html body#nebula-site .kx-dep + .kx-dep { border-top-color: #E7E5EF !important; }
html body#nebula-site .kx-dep .di, html body#nebula-site .rk-i {
  background: #EFE8FC !important; border-color: #DCCCF2 !important;
}
/* icon tiles: the 4th tile was peach-bordered */
html body#nebula-site .fact:nth-child(4n+4) .ic { border-color: #E7E5EF !important; }
/* blue-tinted pills take the violet .tagp look */
html body#nebula-site .qrow .tag, html body#nebula-site #quality .ag {
  background: #EFE8FC !important; color: #5B21B6 !important; -webkit-text-fill-color: currentColor !important; border-color: #DCCCF2 !important;
}
/* amber callouts that are not warnings */
html body#nebula-site .callout { background: #F7F4FD !important; border-color: #DCCCF2 !important; }

/* ======================================================================
   Stream C: component consistency (headings, arrow links, chips, buttons, cards)
   Reference values: section h2 = clamp(32px, 3.8vw, 48px) (the .h2 rule in pages-*.css; theme.css keeps its own
   29-40px clamp at <=760px, so the desktop rules below start at 761px); h3 card title 20px, sub-section head 22px;
   arrow link violet #6D28D9 / 600 / 16px; chips 12px/600, 4px 10px, 999px; button 14px/650 with 49.7px min height;
   card radius 14px, border #E7E5EF, 28-30px padding.
   ====================================================================== */

/* ---- 1. headings ---- */
@media (min-width: 761px) {
  html body#nebula-site :is(section.sec, section.ask-sec, section.ce-section) h2,
  html body#nebula-site #roles .ask-h2,
  html body#nebula-site #questions:has(.sx-faq) h2,
  html body#nebula-site .co-sec:not(:has(.co-legal)) h2,
  html body#nebula-site .co-success h2 {
    font-family: var(--head) !important;
    font-size: clamp(32px, 3.8vw, 48px) !important; line-height: 1.15 !important; letter-spacing: -.035em !important;
  }
  html body#nebula-site section.ce-section h2 { max-width: 16ch; text-wrap: balance; }
}
@media (max-width: 760px) {
  html body#nebula-site :is(#roles .ask-h2, section.ce-section h2, #questions:has(.sx-faq) h2, .co-sec:not(:has(.co-legal)) h2) {
    font-size: clamp(29px, 7.5vw, 40px) !important; line-height: 1.15 !important; letter-spacing: -.035em !important;
  }
}
/* blog article sub-headings (h2 inside the prose column, outside any section): h3-style sub-heading, 22px */
html body#nebula-site .prose h2 { font-size: 22px !important; line-height: 1.25 !important; letter-spacing: -.02em !important; margin-top: 40px; }
/* h3: card titles 20px, sub-section heads 22px */
html body#nebula-site .tbc-h h3 { font-size: 20px !important; }
html body#nebula-site .zz .txt > h3.h3 { font-size: 22px !important; line-height: 1.25 !important; letter-spacing: -.02em !important; }
/* About row labels: label style */
html body#nebula-site .co-row .co-rowh { font-size: 13px !important; font-weight: 700 !important; letter-spacing: .1em !important; color: #605C6D !important; -webkit-text-fill-color: currentColor !important; font-family: Inter, system-ui, sans-serif !important; }
/* CustomAIML mock-up section labels: 12px label, readable */
html body#nebula-site .ml-screen .ml-section-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; color: #605C6D !important; text-transform: uppercase; }

/* ---- 2. arrow links: violet, 600, 16px ---- */
html body#nebula-site :is(.kx-gh a, a.arlink, .kx-post .go, .kx-dep .go, .pc .more, .tile .go) {
  color: #6D28D9 !important; -webkit-text-fill-color: currentColor !important; font-size: 16px !important; font-weight: 600 !important;
}
html body#nebula-site :is(.lrow, .lr, .cat) > .ar { color: #6D28D9; font-weight: 600; }
html body#nebula-site .go-ar { color: #6D28D9; font-weight: 600; }
html body#nebula-site a.row > .arrow { font-weight: 600; }

/* ---- 3. chips: violet pill and neutral chip, same size ---- */
html body#nebula-site :is(.tag, .tagp, .tagl, .chipline, .chip:not(.hubd .chip)) {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%;
  font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.4; padding: 4px 10px;
  border: 1px solid; border-radius: 999px !important; text-decoration: none;
}
/* violet pill: .tag (industry question rows), .tagp, .tagl (step labels) */
html body#nebula-site :is(.tag, .tagp, .tagl):not(.tagp.n) {
  background: #EFE8FC !important; background-image: none !important; border-color: #DCCCF2 !important;
  color: #5B21B6 !important; -webkit-text-fill-color: currentColor !important;
}
html body#nebula-site .tagl .kn { font-style: normal; font-weight: 700; color: #5B21B6; }
/* neutral chip: .chipline (home), .chip (Governance), .tagp.n */
html body#nebula-site :is(.chipline, .chip:not(.hubd .chip), .tagp.n) {
  background: #F7F7FB !important; background-image: none !important; border-color: #E7E5EF !important;
  color: #34313F !important; -webkit-text-fill-color: currentColor !important;
}
html body#nebula-site .tag { letter-spacing: .04em; text-transform: uppercase; }
/* filter buttons (Connectors .pill, Blogs .pills): same colours and pill shape, the tap height stays */
html body#nebula-site :is(.pill, .pills button) { border-radius: 999px !important; font-weight: 600; }
html body#nebula-site :is(.pill, .pills button)[aria-pressed="true"] {
  background: #EFE8FC !important; color: #5B21B6 !important; border-color: #DCCCF2 !important;
}
html body#nebula-site :is(.pill, .pills button)[aria-pressed="true"] :is(span, b, strong) { color: #5B21B6 !important; -webkit-text-fill-color: currentColor !important; }
html body#nebula-site :is(.pill, .pills button)[aria-pressed="false"] { background: #F7F7FB !important; border-color: #E7E5EF !important; }

/* ---- 4. buttons: 14px / 650 / 49.7px high ---- */
html body#nebula-site :is(.btn, button.btn, .edcta .edcta-btn) {
  font-size: 14px; font-weight: 650; min-height: 49.7px; padding: 13px 23px; border-radius: 8px; line-height: 1.55;
}
html body#nebula-site .btn { box-sizing: border-box; }

/* ---- 5. cards: 14px radius, #E7E5EF border, 28-30px padding ---- */
html body#nebula-site .co-card { border-radius: 14px; padding: 28px; box-shadow: 0 2px 5px rgba(33, 18, 53, .01); }
html body#nebula-site a.tile:not(.s4, .s5, .s7) { padding: 30px; }
html body#nebula-site :is(.kx-dep, .kx-post, .stage) { border-radius: 14px !important; }

/* Brain "What the brain knows" cards fade in on scroll (view timeline). Finish the fade once ~70% of a card has entered the
   viewport, so a card centred on screen is fully visible; before this it only reached full opacity near the top edge. */
@supports (animation-timeline: view()) {
  html body#nebula-site .kc > * { animation-range: entry 5% entry 70%; }
}

/* QA follow-up: function-page .tbc cards use the shared 14px card radius */
html body#nebula-site .tbc{border-radius:14px}

/* QA follow-up: last visible gold accents -> violet/magenta (function-page timelines,
   chip arrows, tick bullets, ask-card checks, mini bar) */
html body#nebula-site .st.now::before{background:#6D28D9;box-shadow:0 0 0 5px rgba(109,40,217,.14)}
html body#nebula-site .st.was::after{background:linear-gradient(#C4B5FD,#6D28D9)}
html body#nebula-site .tbcs .tbc:last-child:nth-child(odd) .st.was::after{background:linear-gradient(90deg,#C4B5FD,#6D28D9)}
html body#nebula-site .tbc-k span.c::before{color:#6D28D9}
html body#nebula-site .tbc-n{color:#6D28D9}
html body#nebula-site .tbc:hover{border-color:#DCCCF2}
html body#nebula-site ul.ticks li::before{background:linear-gradient(90deg,#6D28D9,#CF0EA8)}
html body#nebula-site .askc .af span::before{color:#6D28D9}
html body#nebula-site .mini .bar i.g{background:#CF0EA8!important}

/* the column beside a section label starts below the label's rule, level with the heading under the label
   (rule -> heading top is ~41-45px everywhere), so the full-width rule never touches its content */
@media (min-width: 980px) {
  html body#nebula-site .niq-split { align-items: start !important; }
  html body#nebula-site .niq-split > :nth-child(2):not([style*="radius"], figure, .mock) { padding-top: 40px !important; }
  /* a card or product mock-up beside the label keeps its own padding and moves down as a whole */
  html body#nebula-site .niq-split > :nth-child(2):is([style*="radius"], figure, .mock) { margin-top: 40px !important; }
}

/* ======================================================================
   Desktop type scale (owner 2026-11-19: "looking quite big"). Desktop only; the phone sizes above are unchanged.
   Titles 56 (home 64, legal and blog posts 44), section headings 40, closing banners 44, card headings 18-19,
   body and intros 16, blog reading text 17, menu 14.
   ====================================================================== */
@media (min-width: 761px) {
  html body#nebula-site h1 { font-size: clamp(40px, 4.2vw, 56px) !important; }
  html body#nebula-site:has(.brand-hero-graphic) h1 { font-size: clamp(44px, 4.6vw, 64px) !important; }
  html body#nebula-site :is(.alay h1, .co-404 h1), html body#nebula-site:has(.co-legal) h1 { font-size: clamp(36px, 3.4vw, 44px) !important; }

  html body#nebula-site :is(section.sec, section.ask-sec, section.ce-section) h2,
  html body#nebula-site #roles .ask-h2,
  html body#nebula-site #questions:has(.sx-faq) h2,
  html body#nebula-site .co-sec:not(:has(.co-legal)) h2,
  html body#nebula-site .co-success h2,
  html body#nebula-site section.ondark h2 { font-size: clamp(30px, 3vw, 40px) !important; }
  html body#nebula-site .edcta h2 { font-size: clamp(32px, 3.2vw, 44px) !important; }

  html body#nebula-site .zz .txt h3.h3 { font-size: 19px !important; }
  html body#nebula-site :is(.tbc-h h3, .ce-use-case h3) { font-size: 18px !important; }

  html body#nebula-site :is(.lede, .co-lede) { font-size: 16px !important; }
  html body#nebula-site .sky h1 ~ :is(p, .lede, .co-lede) { font-size: 17px !important; }
  html body#nebula-site .edcta p { font-size: 16px !important; }
  html body#nebula-site .niq-split > div > p[style*="font-size: 18px"] { font-size: 16px !important; }
  html body#nebula-site .tbc .st p { font-size: 16px !important; }
  html body#nebula-site :is(.prose p, .prose li) { font-size: 17px !important; }

  html body#nebula-site .navlinks button { font-size: 14px !important; }
  html body#nebula-site .gl .gn { font-size: 38px !important; }
}
