@property --glass-alpha {
  syntax: "<number>";
  inherits: false;
  initial-value: .16;
}
:root {
  --glass-tint: 255 255 255;
  --glass-strength: 1;
  --glass-bright: 1.06;
  --glass-edge: inset 1.5px 1.5px 1px -1px #fffffff2,
    inset -1.5px -1.5px 1px -1px #ffffff8c, inset 0 0 0 .5px #ffffff4d,
    0 0 0 .5px #172a4015, 0 6px 24px #172a4014;
  --glass-sheen: radial-gradient(ellipse at 0 0, #ffffff4d, transparent 58%),
    linear-gradient(155deg, transparent 65%, #10254206);
  --glass-blur: blur(2px) saturate(180%) brightness(var(--glass-bright));
  --glass-text: #213c51;
  --glass-secondary: #365268;
  --glass-solid: #f3f7fa;
}
[data-theme="dark"] {
  color-scheme: dark;
  --glass-tint: 20 20 24;
  --glass-bright: .8;
  --glass-edge: inset 1.5px 1.5px 1px -1px #ffffff54,
    inset -1.5px -1.5px 1px -1px #ffffff22, 0 0 0 .5px #0009, 0 6px 24px #0005;
  --glass-sheen: radial-gradient(ellipse at 0 0, #ffffff1a, transparent 58%);
  --glass-blur: blur(2px) saturate(160%) brightness(var(--glass-bright));
  --glass-text: #f3f6fb;
  --glass-secondary: #dde7f3;
  --glass-solid: #212b36;
}
.liquid, .cap-list .api-card, .highlight, .news-card, .cat-cta, .start-step, .catalog-card, .client-window, dialog {
  --glass-alpha: .18;
  background: var(--glass-sheen), rgb(var(--glass-tint) / calc(var(--glass-alpha) * var(--glass-strength)));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  border-color: transparent;
  color: var(--glass-text);
  transition: --glass-alpha .22s ease;
}
:root .capability-section.liquid { --glass-alpha: .22; backdrop-filter: var(--glass-blur) var(--glass-lens, ); }
:root .agent .agent-label { --glass-alpha: .22; }
.news-card:hover, .pill.liquid:hover, .agent:hover .agent-label {
  --glass-alpha: .32;
  background: var(--glass-sheen), rgb(var(--glass-tint) / calc(var(--glass-alpha) * var(--glass-strength)));
  box-shadow: var(--glass-edge);
  transform: none;
}
.workspace-tab:hover { background: rgb(255 255 255 / .42); }
.workspace-tab[aria-selected="true"] { background: rgb(255 255 255 / .76); }
[data-theme="dark"] body {
  background-image: linear-gradient(#132131b8, #101b2ada), var(--scene);
  color: var(--glass-text);
}
[data-theme="dark"] :is(.liquid, .highlight, .news-card, .cap-list .api-card, .cat-cta, .start-step, .catalog-card, .client-window, dialog) {
  --glass-alpha: .34;
}
[data-theme="dark"] :is(.workspace-tab:hover,.workspace-tab[aria-selected="true"]) {
  background: #131d2dbb;
  box-shadow: inset 0 0 0 1px #ffffff45;
}
.hero h1, .agent .agent-label, .user-entry, .workspace-tab,
.workspace-desc, .api-card p, .cat-foot, .ex-meta b, .cat-cta span,
.api-card button, .news-card .news-copy h3, .news-meta, .news-source,
.news-art, .kicker, .panel-count, .end, .brand span,
.form-story p, .form-story ol, .form-story .small, .form-story .small a,
#trial-form label, .form-note, .reading .summary, .reading .source-line,
dialog p, .dialog-close { color: var(--glass-secondary); }
.hero h1, .agent .agent-label, .workspace-title { color: var(--glass-text); }
[data-theme="dark"] :is(.badge, .insight, dialog pre, #trial-form input, #trial-form textarea) {
  background: #1b2739f5;
  color: var(--glass-text);
}
[data-theme="dark"] :is(input,textarea)::placeholder { color: #adc0d5; }
.brand img { filter: var(--logo-filter, none); }
[data-theme="dark"] { --logo-filter: brightness(0) invert(1); }
.agent .agent-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 1px;
}
.agent:focus-visible { outline: none; }
.agent:focus-visible .agent-label { outline: 2px solid #307fe2; outline-offset: 4px; }
.start-guide { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; list-style: none; padding: 0; margin: 24px 0; }
.start-step { border: 1px solid transparent; border-radius: 17px; padding: 18px 20px; }
.start-step h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.start-step p, .connect-note { color: var(--glass-secondary); font-size: 13px; }
.get-started-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media(max-width:760px) {
  .top .access-nav { gap: 9px; white-space: nowrap; }
  .agent .agent-label { min-height: 40px; margin-top: 2px; }
  .start-guide { grid-template-columns: 1fr; gap: 9px; margin: 16px 0; }
  .start-step { padding: 12px 15px; }
}

:root:not([data-theme="dark"]) :is(.liquid,.news-card,.cap-list .api-card,.start-step,.client-window,.cat-cta,dialog) {
  --glass-blur: blur(2px) saturate(var(--scene-saturation, 1.8)) brightness(var(--glass-bright));
}
:root:not([data-theme="dark"]) :is(.top.liquid,.workspace-switch,.capability-section.liquid,.news-card) {
  --glass-alpha: calc(.10 + var(--scene-density, .65) * .18);
}
:root:not([data-theme="dark"]) .news-card:hover { --glass-alpha: .34; }
@media(min-width:1100px) {
  .client-mark { min-width: 175px; }
}
@media(max-width:360px) {
  .top .brand img { width: 76px; }
  .top { padding-inline: 10px; }
  .top .access-nav { gap: 6px; }
}

@media(forced-colors:active) {
  .client-mark, .start-step, .agent .agent-label { border: 1px solid CanvasText; }
}

/* One surface joins the tab rail and its active content. */
.capability-section.liquid {
  border: 1px solid transparent;
  border-radius: 26px;
  scroll-margin-top: 16px;
}
.capability-section > .workspace-switch {
  width: 100%;
  margin: 0;
  justify-content: center;
  padding: 10px 20px;
  border: 0;
  border-bottom: 1px solid rgb(96 130 157 / .19);
  border-radius: 25px 25px 0 0;
  background: rgb(244 249 255 / .73);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
}
.capability-section > .features {
  padding-top: 22px;
  background: none;
  border: 0;
  border-radius: 0 0 25px 25px;
  box-shadow: none;
}
[data-theme="dark"] .capability-section > .workspace-switch {
  background: rgb(23 35 51 / .86);
  border-bottom-color: rgb(212 228 248 / .20);
}
@media(max-width:760px) {
  .capability-section.liquid { border-radius: 21px; }
  .capability-section > .workspace-switch {
    padding: 5px 4px 4px;
    border-radius: 20px 20px 0 0;
  }
  .capability-section > .features { padding-top: 17px; }
}

.api-catalog {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.catalog-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, max-content) auto;
  align-items: center;
  gap: 16px 24px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 15px;
}
.catalog-detail h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.catalog-detail p, .catalog-price span { color: var(--glass-secondary); font-size: 12px; }
.catalog-note { margin-top: 2px; }
.catalog-price { text-align: right; }
.catalog-price strong, .catalog-price span { display: block; }
.catalog-price strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.catalog-prompt { white-space: nowrap; }
@media(max-width:600px) {
  .catalog-card {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 9px 12px;
    padding: 12px 13px;
  }
  .catalog-detail { grid-column: 1/-1; }
  .catalog-price { text-align: left; }
  .catalog-prompt { justify-self: end; }
}
@media(forced-colors:active) { .catalog-card { border-color: CanvasText; } }

/* A selected tile opens into its panel through an unbroken bottom edge. */
.capability-section {
  --rail-seam: rgb(73 112 145 / .25);
  --tab-face: rgb(241 249 255 / .80);
  --rail-tint: rgb(113 153 189 / .11);
  --surface-edge: inset 0 1px 1px rgb(255 255 255 / .99),
    inset 1px 0 1px rgb(255 255 255 / .84),
    inset -1px -1px 2px rgb(54 100 142 / .24),
    0 0 0 1px rgb(50 92 136 / .14), 0 10px 32px rgb(17 71 122 / .13);
}
[data-theme="dark"] .capability-section {
  --rail-seam: rgb(186 220 249 / .28);
  --tab-face: #33485f;
  --rail-tint: rgb(11 20 33 / .40);
  --surface-edge: inset 0 1px 1px #ffffff50, inset -1px -1px 2px #0008,
    0 0 0 1px #0004, 0 10px 32px #0005;
}
:root .capability-section.liquid {
  background: radial-gradient(ellipse at 8% 0%, rgb(255 255 255 / .42), transparent 56%),
    linear-gradient(150deg, transparent 62%, rgb(99 163 219 / .16)),
    rgb(var(--glass-tint) / calc(var(--glass-alpha) * var(--glass-strength)));
  box-shadow: var(--surface-edge);
}
[data-theme="dark"] .capability-section.liquid {
  background: radial-gradient(ellipse at 8% 0%, #ffffff17, transparent 56%),
    rgb(var(--glass-tint) / calc(var(--glass-alpha) * var(--glass-strength)));
}
.capability-section > .workspace-switch,
[data-theme="dark"] .capability-section > .workspace-switch {
  padding: 8px 18px 0;
  gap: 10px;
  border-bottom: 1px solid var(--rail-seam);
  background: var(--rail-tint);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.capability-section .switch-group { align-items: end; gap: 5px; }
.capability-section .categories-group { flex: 1; }
.capability-section .actions-group { margin: 0; padding: 0; border: 0; }
.capability-section .workspace-tab {
  position: relative;
  min-height: 54px;
  margin-bottom: 1px;
  padding-inline: 13px;
  border: 1px solid transparent;
  border-radius: 12px 12px 0 0;
}
.capability-section .categories-group .workspace-tab { flex: 1; }
.capability-section .workspace-tab[aria-selected="true"] {
  z-index: 1;
  margin-bottom: -1px;
  min-height: 56px;
  padding-bottom: 7px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent 55%), var(--tab-face);
  border-color: var(--rail-seam);
  border-bottom-color: var(--tab-face);
  box-shadow: inset 0 1px 0 #ffffffdc, 0 -4px 12px #3572a211;
  color: var(--glass-text);
}
.capability-section .workspace-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--tab-face);
}
.capability-section > .features {
  background: linear-gradient(180deg, var(--tab-face), transparent 120px);
}
.catalog-card {
  background: linear-gradient(150deg, #ffffff63, #e6f5ff25 66%, #7eb8e51d),
    rgb(var(--glass-tint) / calc(var(--glass-alpha) * var(--glass-strength)));
  box-shadow: inset 0 1px 0 #ffffffec, inset -1px -1px 1px #5084ac25, 0 0 0 1px #6d97b521;
}
[data-theme="dark"] .catalog-card {
  background: linear-gradient(150deg, #c4dfff15, #3d62861c), #182d43a8;
}
@media(max-width:760px) {
  .capability-section > .workspace-switch,
  [data-theme="dark"] .capability-section > .workspace-switch { padding: 5px 5px 0; gap: 3px; }
  .capability-section .switch-group { gap: 1px; }
  .capability-section .workspace-tab { min-height: 46px; padding-inline: 2px; }
  .capability-section .workspace-tab[aria-selected="true"] { min-height: 48px; }
  .capability-section .workspace-tab.text-tab { min-height: 35px; }
  .capability-section .workspace-tab.text-tab[aria-selected="true"] { min-height: 37px; }
  .capability-section .actions-group { grid-row: 1; }
  .capability-section .categories-group { grid-row: 2; }
}
@media(prefers-reduced-transparency:reduce) {
  :root :is(.liquid,.start-step,.catalog-card,.news-card,.client-window,dialog),
  :root .capability-section.liquid {
    background: var(--glass-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media(forced-colors:active) {
  :root .capability-section.liquid,
  :root :is(.liquid,.start-step,.catalog-card,.news-card,.client-window,dialog) {
    background: Canvas;
    border-color: CanvasText;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .capability-section .workspace-tab[aria-selected="true"] {
    border-color: Highlight;
    color: Highlight;
  }
}

/* Keep the fold readable once it sits over the scrolled content. */
.capability-section > .workspace-switch[data-stuck] {
  background: #edf5fbeF;
}
[data-theme="dark"] .capability-section > .workspace-switch[data-stuck] {
  background: #182639f5;
}
.capability-section .workspace-tab[aria-selected="true"] {
  box-shadow: inset 0 1px 0 #ffffffdc, 0 1px 0 var(--tab-face), 0 -4px 12px #3572a211;
}
.capability-section .workspace-tab[aria-selected="true"]::before,
.capability-section .workspace-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: auto auto -1px -9px;
  width: 9px;
  height: 9px;
  background: radial-gradient(circle at 0 0, transparent 8px, var(--tab-face) 8.5px);
}
.capability-section .workspace-tab[aria-selected="true"]::after {
  inset: auto -9px -1px auto;
  background: radial-gradient(circle at 100% 0, transparent 8px, var(--tab-face) 8.5px);
}
@media(max-width:760px) {
  .capability-section .workspace-tab[aria-selected="true"]::before,
  .capability-section .workspace-tab[aria-selected="true"]::after { display: none; }
  .capability-section .workspace-tab:not([aria-selected="true"]) { min-height: 48px; }
  .capability-section .workspace-tab.text-tab:not([aria-selected="true"]) { min-height: 37px; }
}
@media(forced-colors:active) {
  .capability-section > .workspace-switch[data-stuck] { background: Canvas; }
  .capability-section .workspace-tab[aria-selected="true"]::before,
  .capability-section .workspace-tab[aria-selected="true"]::after { display: none; }
}

/* Edge Glow from the motion playground, clipped to the hero capsule rim. */
@property --agent-glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.agent .agent-label { position: relative; }
@supports (mask-composite: exclude) {
  .agent .agent-label::after {
    content: "";
    position: absolute;
    inset: -1px;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from var(--agent-glow-angle),
      transparent 0% 64%, #78b9ed66 74%, #307fe2 84%, #bcf0ff 90%,
      #6faee6 95%, transparent 100%);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: .78;
    animation: agent-edge-glow 6s linear infinite;
  }
  .agent:is(:hover,:focus-visible) .agent-label::after { opacity: 1; }
}
@keyframes agent-edge-glow { to { --agent-glow-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .agent .agent-label::after { animation: none; --agent-glow-angle: 132deg; }
}
@media (forced-colors: active) {
  .agent .agent-label::after { display: none; }
}

.capability-section > .features { position: relative; }
.capability-section .panel-head:has(.kicker[hidden]) {
  position: absolute;
  top: 28px;
  right: 34px;
  margin: 0;
}
.capability-section .panel-head:has(.kicker[hidden]) + #workspace-content h2 { padding-right: 60px; }
@media(max-width:760px) {
  .capability-section .actions-group { grid-row: 2; }
  .capability-section .categories-group { grid-row: 1; }
  .capability-section .panel-head:has(.kicker[hidden]) { top: 32px; right: 20px; }
}


/* Two soft color pools circulate independently beneath the hero. */
body { isolation: isolate; }
body::before, body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  top: 29svh;
  height: 77svh;
  width: max(75vw, 520px);
}
body::before {
  left: -14vw;
  background:
    radial-gradient(ellipse at 47% 56%, #73bbf784 0%, #83c7f74a 36%, #91caf61c 57%, transparent 73%),
    radial-gradient(ellipse at 24% 70%, #c5ecf550, transparent 57%);
  animation: growth-blue-current 12s cubic-bezier(.45,0,.55,1) infinite;
}
body::after {
  right: -12vw;
  background:
    radial-gradient(ellipse at 48% 55%, #a7a3eb66 0%, #bfc1f44f 31%, #c8bbf225 55%, transparent 71%),
    radial-gradient(ellipse at 75% 63%, #accef760, transparent 59%);
  animation: growth-violet-current 16s cubic-bezier(.45,0,.55,1) infinite;
}
[data-theme="dark"] body::before,
[data-theme="dark"] body::after { opacity: .35; }
@keyframes growth-blue-current {
  0%, 100% { transform: translate3d(-7vw, 2svh, 0) rotate(-13deg) scale(.92,.98); }
  45% { transform: translate3d(21vw, -11svh, 0) rotate(10deg) scale(1.16,.84); }
  72% { transform: translate3d(10vw, -2svh, 0) rotate(3deg) scale(1.02,1.12); }
}
@keyframes growth-violet-current {
  0%, 100% { transform: translate3d(7vw, -8svh, 0) rotate(11deg) scale(.96,1.03); }
  39% { transform: translate3d(-18vw, 4svh, 0) rotate(-10deg) scale(1.12,.85); }
  74% { transform: translate3d(-8vw, -10svh, 0) rotate(-2deg) scale(.93,1.1); }
}
@media(max-width:760px) {
  body::before, body::after { top: 32svh; width: max(82vw, 350px); height: 68svh; }
}
.hero h1 > span {
  animation: growth-headline-reveal .9s cubic-bezier(.22,.65,.28,1) both;
}
.hero h1 > span + span { animation-delay: .32s; }
@keyframes growth-headline-reveal {
  from { opacity: 0; filter: blur(9px); clip-path: inset(-16px 100% -16px -16px); }
  to { opacity: 1; filter: blur(0); clip-path: inset(-16px -16px -16px -16px); }
}
@media(prefers-reduced-motion:reduce) {
  body::before, body::after, .hero h1 > span { animation: none; }
}
@media(forced-colors:active) {
  body::before, body::after { display: none; }
}

.capability-section .panel-head > [hidden] { display: none; }

/* The rail becomes a compact, independent glass capsule after it docks. */
.capability-section > .workspace-switch[data-stuck] {
  width: min(850px, calc(100% - 20px));
  margin-inline: auto;
  padding: 4px 8px;
  gap: 8px;
  border: 1px solid #ffffffd9;
  border-radius: 999px;
  background: #eef6fcf5;
  box-shadow: inset 0 1px 0 #fff, 0 4px 18px #214d752b;
}
.capability-section > .workspace-switch[data-stuck] .workspace-tab {
  flex-direction: row;
  padding: 4px 7px;
  min-height: 35px;
  min-width: 0;
  gap: 5px;
}
.capability-section > .workspace-switch[data-stuck] .workspace-tab svg { width: 14px; height: 14px; }
[data-theme="dark"] .capability-section > .workspace-switch[data-stuck] {
  border-color: #6885a3;
  background: #1a2c41f7;
  box-shadow: 0 4px 18px #0005;
}
@media(max-width:760px) {
  .capability-section > .workspace-switch[data-stuck] { width: calc(100% - 12px); border-radius: 23px; gap: 2px; padding: 4px; }
  .capability-section > .workspace-switch[data-stuck] .workspace-tab { min-height: 32px; padding-inline: 2px; }
  .capability-section > .workspace-switch[data-stuck] .workspace-tab svg { display: none; }
}
@media(forced-colors:active) {
  .capability-section > .workspace-switch[data-stuck] { background: Canvas; border-color: CanvasText; }
}

/* Inspiration uses the same blue-gray ink as the workspace. */
.carousel-heading h2 { color: var(--glass-secondary); font-weight: 500; }
.news-card .news-art { justify-content: flex-start; gap: 12px; color: var(--glass-secondary); }
.news-art svg { flex: 0 0 22px; }
.news-art span { color: inherit; font-size: 12px; letter-spacing: .13em; line-height: 1.35; }
.carousel-track { position: relative; scroll-snap-type: none; }
@media(prefers-reduced-motion:reduce) {
  .carousel-track { scroll-snap-type: x mandatory; }
  .news-card[data-loop-copy], #carousel-pause { display: none; }
}

.connect-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.connect-summary .workspace-desc { margin-bottom: 0; }
.connect-clients { margin: 22px 0 8px; }
.connect-clients h3 { font-size: 13px; font-weight: 500; color: var(--glass-secondary); margin: 0 0 8px; }
.connect-logo-list { display: flex; flex-wrap: wrap; list-style: none; gap: 8px; margin: 0; padding: 0; }
.connect-logo-list .client-mark { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 12px; border: 1px solid #fff9; border-radius: 12px; background: #ffffffa8; color: #29485f; font-size: 13px; }
.connect-logo-list img { width: 22px; height: 22px; object-fit: contain; }
.capability-section:has(.connect-summary) > .features { min-height: 0; }

/* The compact rail uses a quieter selected state when detached from the panel. */
.capability-section > .workspace-switch[data-stuck] .workspace-tab[aria-selected="true"] {
  margin-bottom: 1px;
  border-radius: 10px;
  border-color: transparent;
  background: var(--tab-face);
  box-shadow: none;
}
.capability-section > .workspace-switch[data-stuck] .workspace-tab[aria-selected="true"]::before,
.capability-section > .workspace-switch[data-stuck] .workspace-tab[aria-selected="true"]::after { display: none; }

.workspace-highlight {
  position: absolute;
  inset: 0 auto auto 0;
  pointer-events: none;
  border: 1px solid var(--rail-seam);
  border-bottom-color: var(--tab-face);
  border-radius: 12px 12px 0 0;
  background: linear-gradient(to bottom, #ffffff4d, transparent 55%), var(--tab-face);
  box-shadow: inset 0 1px 0 #ffffffdc, 0 -4px 12px #3572a211;
}
.workspace-switch[data-stuck] .workspace-highlight {
  border-color: transparent;
  border-radius: 10px;
  background: var(--tab-face);
  box-shadow: none;
}
.workspace-switch[data-tab-sliding] .workspace-tab { transition: color .16s ease; }
.capability-section > .workspace-switch[data-tab-sliding] .workspace-tab[aria-selected="true"] {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.workspace-switch[data-tab-sliding] .workspace-tab[aria-selected="true"]::before,
.workspace-switch[data-tab-sliding] .workspace-tab[aria-selected="true"]::after { display: none; }
.features[data-view-resizing] {
  min-height: 0;
  overflow: clip;
}
@media (prefers-reduced-motion: no-preference) {
  .capability-section > .workspace-switch {
    transition: width .24s ease-out, border-radius .24s ease-out, background-color .2s ease, box-shadow .2s ease;
  }
}

/* An opaque paper-like CTA remains distinct over the moving background. */
:root .trial-action {
  color: #0f4c81;
  border: 1px solid #b9cee3;
  background: #fffaf3;
  box-shadow: 0 3px 12px #173d651a;
  font-weight: 600;
}
:root .trial-action:hover {
  color: #fff;
  background: #0f4c81;
  border-color: #0f4c81;
  transform: none;
}
[data-theme="dark"] .trial-action {
  color: #d9ebff;
  border-color: #718aa3;
  background: #253b53;
  box-shadow: 0 3px 12px #0004;
}
[data-theme="dark"] .trial-action:hover { color: #152f49; background: #deeefe; }

.top .access-nav { gap: 8px; white-space: nowrap; }
.top .access-nav :is(.user-entry, .trial-action) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 7px;
  padding: 0 clamp(8px, 1.25vw, 16px);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: box-shadow .18s ease, filter .18s ease;
}
.top .user-entry {
  color: #232830;
  border-color: #29344326;
  background: linear-gradient(#fff, #eff0f2);
  box-shadow: inset 0 1px #fff, 0 2px 4px #18253420;
}
.top .user-entry svg { flex: none; width: 16px; height: 16px; opacity: .64; }
.top .access-nav .trial-action {
  border-color: #12151a;
  background: linear-gradient(#373a41, #1b1d22 47%, #25282e);
  box-shadow: inset 0 0 0 1px #ffffff25, 0 2px 4px #10151c45;
  color: #f9fafb;
}
.top .access-nav .user-entry:hover { filter: brightness(.97); }
.top .access-nav .trial-action:hover { filter: brightness(1.22); }
.top .access-nav :is(.user-entry, .trial-action):focus-visible {
  outline: 2px solid #407bb7;
  outline-offset: 3px;
}
[data-theme="dark"] .top .access-nav .trial-action {
  border-color: #ffffff54;
}
@media(forced-colors:active) {
  .top .access-nav :is(.user-entry, .trial-action) { border-color: ButtonText; }
}
.trial-departments { margin-top: 14px; }
#trial-form .trial-departments label { margin: 0 0 6px; }
.connect-logo-list .other-client { border-style: dashed; background: #ffffff50; }
.connect-logo-list .other-client svg { width: 22px; height: 22px; }

/* Background studies scoped to their review URLs. */
:root[data-scene-study] body {
  --scene: none !important;
  background: #f6f8fb;
}
:root[data-scene-study] body::before,
:root[data-scene-study] body::after {
  inset: 0;
  width: auto;
  height: auto;
  animation: none;
  transform: none;
}
:root[data-scene-study] body::after { background: none; }
:root[data-scene-study] .capability-section {
  --rail-tint: #d6e2ed51;
  --tab-face: #f9fbfef2;
}
:root[data-scene-study][data-theme="dark"] .capability-section {
  --rail-tint: #263c527d;
  --tab-face: #304358;
}
/* Precision: empty white center, architectural shadows at the perimeter. */
:root[data-scene-study="precision"] body::before {
  background:
    linear-gradient(124deg, transparent 78.2%, #a4b8cd 78.35%, transparent 78.5%),
    linear-gradient(124deg, transparent 79%, #dfe7ef 79%, #ebeff4 91%, #d1dce7 91%, #edf2f6 100%),
    linear-gradient(131deg, #e0e7ef 0%, #f9fbfc 14%, #fbfcfd 64%, #e8edf4 100%);
}
:root[data-scene-study="precision"] body::after {
  clip-path: polygon(0 0, 23% 0, 0 49%, 0 100%);
  background: repeating-linear-gradient(0deg,#15457215 0 1px,transparent 1px 30px),
              repeating-linear-gradient(90deg,#15457215 0 1px,transparent 1px 30px);
}
/* Ink cut: concentrate the deep contrast below the headline. */
:root[data-scene-study="ink-cut"] body::before {
  background: linear-gradient(144deg,#f8fafc 22%,#e8eff5 68%,#f3f6fa);
}
:root[data-scene-study="ink-cut"] body::after {
  clip-path: polygon(0 83%, 100% 46%, 100% 100%, 0 100%);
  background: linear-gradient(150deg,#4f6880,#283f58 51%,#142638);
}
:root[data-scene-study="ink-cut"][data-theme="light"] .capability-section.liquid {
  background: linear-gradient(142deg,#f9fcfee8,#edf4faf0);
}
/* Blue seam: a single VI accent against quiet white ceramic. */
:root[data-scene-study="blue-seam"] body::before {
  background:
    linear-gradient(117deg, transparent 76.4%, #0f4c81 76.45%, #307fe2 76.65%, transparent 76.7%),
    linear-gradient(117deg,#f4f7fb 0 77%,#e7eef7 77% 88%,#f9fbff 88% 100%);
}
:root[data-scene-study="blue-seam"] body::after {
  clip-path: polygon(0 79%, 100% 65%, 100% 100%, 0 100%);
  background: linear-gradient(180deg,#ffffff48,#d5e2ee6b);
}
:root[data-scene-study][data-theme="dark"] body { background: #172638; }
:root[data-scene-study][data-theme="dark"] body::before { opacity: .12; }
:root[data-scene-study][data-theme="dark"] body::after { opacity: .27; }
@media(max-width:760px) {
  :root[data-scene-study="ink-cut"] body::after { clip-path: polygon(0 82%,100% 57%,100% 100%,0 100%); }
}
@media(forced-colors:active) {
  :root[data-scene-study] body::before, :root[data-scene-study] body::after { display: none; }
}
:root[data-scene-study="ink-cut"][data-theme="light"] .inspiration {
  padding-inline: 16px;
  border-radius: 20px;
  background: #f4f8fbed;
}

/* Light drifts across the fixed space texture. */
:root[data-scene-study="orbit"] body {
  --scene: url("./hero-space-orbit.jpg") !important;
}
:root[data-scene-study="observatory"] body {
  --scene: url("./hero-space-observatory.jpg") !important;
}
:root:is([data-scene-study="orbit"],[data-scene-study="observatory"]) body {
  background: #edf2f8 var(--scene) center 46% / cover fixed no-repeat;
}
:root:is([data-scene-study="orbit"],[data-scene-study="observatory"])[data-theme="dark"] body {
  background: linear-gradient(#121c29b8,#15253ceb), var(--scene) center 46% / cover fixed no-repeat;
}
:root[data-scene-study="orbit"] body {
  background-image: radial-gradient(ellipse 73% 73% at 95% 0%, #1d263af2, #465064a6 39%, transparent 100%),
    var(--scene);
}
:root[data-scene-study="orbit"][data-theme="dark"] body {
  background-image: radial-gradient(ellipse 92% 85% at 92% 0%, #0f1727, #19233685 65%, transparent),
    linear-gradient(#121c29b8,#15253ceb), var(--scene);
}
:root[data-scene-study="orbit"] body::before,
:root[data-scene-study="orbit"] body::after { display: none; }
:root[data-scene-study="orbit"] .top.liquid {
  position: relative;
  z-index: 2;
  background: var(--glass-solid);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:root:is([data-scene-study="orbit"],[data-scene-study="observatory"]) {
  --orbit-light: #e4ebf39e;
  --orbit-halo: #c4cfdf66;
  --orbit-shadow: #43526c76;
}
:root:is([data-scene-study="orbit"],[data-scene-study="observatory"])[data-theme="dark"] {
  --orbit-light: #b0bfd091;
  --orbit-halo: #8593ab61;
  --orbit-shadow: #06122099;
}
:root:is([data-scene-study="orbit"],[data-scene-study="observatory"]) body::before {
  inset: -30svh -30vw;
  background:
    radial-gradient(ellipse at 51% 47%,var(--orbit-light),var(--orbit-halo) 30%,transparent 69%) center / 73% 46% no-repeat;
  animation: orbital-light-breathe 8s ease-in-out infinite alternate;
}
:root:is([data-scene-study="orbit"],[data-scene-study="observatory"]) body::after {
  inset: -15svh -20vw;
  background: radial-gradient(ellipse at 64% 42%,var(--orbit-shadow),transparent 62%);
  animation: orbital-shadow-breathe 8s ease-in-out infinite alternate;
}
:root:is([data-scene-study="orbit"],[data-scene-study="observatory"])[data-theme="light"] .capability-section.liquid {
  background: radial-gradient(ellipse at 10% 0%, #fff9, transparent 57%),
    linear-gradient(151deg,#f7fbffe6,#eef4fbd9);
}
:root:is([data-scene-study="orbit"],[data-scene-study="observatory"])[data-theme="light"] .inspiration {
  border-radius: 20px;
  padding-inline: 14px;
  background: #f2f7fbdc;
}
@keyframes orbital-light-breathe {
  from { opacity: .53; transform: translate3d(-28vw, -24svh, 0) rotate(-16deg) scale(.92); }
  to { opacity: 1; transform: translate3d(26vw, 6svh, 0) rotate(-16deg) scale(1.22); }
}
@keyframes orbital-shadow-breathe {
  from { opacity: .66; transform: translate3d(15vw, -8svh, 0); }
  to { opacity: .36; transform: translate3d(-25vw, -9svh, 0) scale(1.18); }
}

/* Keep the animated scene inside the hero's own paint area. */
.hero-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(transparent, #000 16%, #000 75%, transparent);
}
.hero-stars {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: 0;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 100% 97% at 70% 7%, #000 25%, #000c 55%, #0006 78%, transparent 100%);
}
.hero-stars svg {
  position: absolute;
  inset: -10% -8%;
  width: 116%;
  height: 120%;
  fill: #dde6f2;
  opacity: .58;
}
.hero-stars svg:nth-child(2) {
  --star-drift-x: -28px;
  --star-drift-y: 3px;
  opacity: .66;
}
.hero-stars svg:nth-child(3) {
  --star-drift-x: -56px;
  --star-drift-y: 6px;
  opacity: .82;
}
@keyframes hero-star-drift {
  to { transform: translate3d(var(--star-drift-x, -12px), var(--star-drift-y, 1px), 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-stars svg { animation: hero-star-drift 26s linear infinite alternate; }
  .hero-stars svg:nth-child(2) { animation-duration: 18s; animation-delay: -5s; }
  .hero-stars svg:nth-child(3) { animation-duration: 12s; animation-delay: -7s; }
}
:root[data-scene-study="orbit"] .hero {
  --hero-shadow: #4d5b71a8;
  --hero-shadow-edge: #5a677b54;
  --hero-drift: #4757736b;
  --hero-drift-edge: #63738e47;
}
:root[data-scene-study="orbit"][data-theme="dark"] .hero {
  --hero-shadow: #0d182cb8;
  --hero-shadow-edge: #1a294235;
  --hero-drift: #101b32b0;
  --hero-drift-edge: #2a3b544d;
}
:root[data-scene-study="orbit"][data-theme="light"] .hero h1 { color: #172b3d; }
.hero-atmosphere::before,
.hero-atmosphere::after {
  content: "";
  position: absolute;
}
.hero-atmosphere::before {
  inset: 0;
  background: radial-gradient(ellipse 48% 73% at 56% 22%, var(--hero-shadow), var(--hero-shadow-edge) 52%, transparent 91%);
}
.hero-atmosphere::after {
  inset: 1% 16% 2%;
  background: linear-gradient(112deg, transparent 14%, var(--hero-drift-edge) 33%, var(--hero-drift) 49%,
    var(--hero-drift-edge) 64%, transparent 85%);
  mask: linear-gradient(transparent, #000 19%, #000 74%, transparent) intersect,
    radial-gradient(ellipse 58% 67% at 50% 41%, #000 25%, #000b 53%, transparent 96%);
  opacity: .63;
}
@keyframes hero-shadow-drift {
  from { transform: translateX(-55%); opacity: 0; }
  28% { opacity: .62; }
  62% { opacity: .86; }
  to { transform: translateX(55%); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-atmosphere::after {
    animation: hero-shadow-drift 9s linear -2.5s infinite;
  }
}
@media (forced-colors: active) {
  .hero-atmosphere { display: none; }
}
@media(max-width:760px) {
  :root:is([data-scene-study="orbit"],[data-scene-study="observatory"]) body {
    background-position: 57% center;
  }
}
@media(prefers-reduced-motion:reduce) {
  :root:is([data-scene-study="orbit"],[data-scene-study="observatory"]) body::before,
  :root:is([data-scene-study="orbit"],[data-scene-study="observatory"]) body::after {
    animation: none;
    opacity: .45;
  }
}
@media(prefers-reduced-transparency:reduce) {
  :root:is([data-scene-study="orbit"],[data-scene-study="observatory"]) .capability-section.liquid {
    background: var(--glass-solid);
  }
}
@media(forced-colors:active) {
  :root:is([data-scene-study="orbit"],[data-scene-study="observatory"]) body,
  :root:is([data-scene-study="orbit"],[data-scene-study="observatory"])[data-theme="light"] :is(.capability-section.liquid,.inspiration) {
    background: Canvas;
    color: CanvasText;
  }
}

/* Separate the workspace and inspiration surfaces with visible scene space. */
.capability-section + .inspiration {
  margin-block-start: clamp(28px, 4.5vw, 60px);
  margin-block-end: clamp(24px, 3vw, 40px);
}

/* Directional motion on the homepage, with an optional afterimage preview. */
.hero { --robot-fade-color: #aab3c4; }
[data-theme="dark"] .hero { --robot-fade-color: #3e4d65; }
.hero .agent {
  --robot-edge-mask: url("./robot-edge-mask.svg") center / contain no-repeat;
  --robot-width: 348px;
  width: var(--robot-width);
}
.hero .agent img {
  width: var(--robot-width);
  height: max(320px, var(--robot-width));
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
@media (min-width: 1001px) {
  .hero { min-height: 452px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .hero .agent { --robot-width: 280px; }
}
@media (max-width: 760px) {
  .hero { min-height: 462px; }
  .hero .agent { --robot-width: 268px; }
  .hero .agent img { height: var(--robot-width); }
}
.hero[data-motion-demo] {
  --robot-dash: clamp(48px, 9vw, 125px);
  --echo-spacing: clamp(13px, 2.8vw, 38px);
  --motion-duration: 940ms;
}
.hero[data-motion-demo] .motion-subject { position: relative; z-index: 1; }
.hero[data-motion-demo] .motion-echo {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 0;
  opacity: 0;
  mask: var(--robot-edge-mask);
}
.hero .motion-filter { position: absolute; }
.hero.motion-demo-playing .motion-subject {
  animation: hero-dash var(--motion-duration) both;
}
.hero[data-motion-demo="trail"] .motion-echo {
  filter: blur(calc(var(--echo-index) * 1.05px));
  --echo-opacity: calc(.36 - var(--echo-index) * .065);
  opacity: calc(.8 * var(--echo-opacity));
  transform: translateX(calc(-.85 * var(--echo-index) * var(--echo-spacing)));
}
.hero[data-motion-demo="trail"].motion-demo-playing .motion-echo {
  animation: hero-afterimage var(--motion-duration) both;
}
.hero[data-motion-demo="blur"] .motion-echo {
  filter: url(#hero-horizontal-smear);
  mask: linear-gradient(90deg,transparent 1%,#000b 33%,#000 71%,transparent 98%) intersect,
    var(--robot-edge-mask);
  transform-origin: right center;
  opacity: .26;
  transform: translateX(calc(-.18 * var(--robot-dash))) scaleX(1.4);
}
.hero[data-motion-demo="blur"].motion-demo-playing .motion-echo {
  animation: hero-directional-smear var(--motion-duration) both;
}
@keyframes hero-dash {
  0% { transform: translateX(calc(-1 * var(--robot-dash))); }
  18% { transform: translateX(calc(-.94 * var(--robot-dash))); }
  59% { transform: translateX(13px); }
  78% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}
@keyframes hero-afterimage {
  0%, 12% { opacity: 0; transform: translateX(calc(-1 * var(--robot-dash))); }
  37% { opacity: var(--echo-opacity); transform: translateX(calc(-.62 * var(--robot-dash) - var(--echo-index) * var(--echo-spacing))); }
  60% { opacity: var(--echo-opacity); transform: translateX(calc(11px - var(--echo-index) * var(--echo-spacing))); }
}
@keyframes hero-directional-smear {
  0%, 12% { opacity: 0; transform: translateX(calc(-1 * var(--robot-dash))) scaleX(1); }
  39% { opacity: .45; transform: translateX(calc(-.66 * var(--robot-dash))) scaleX(1.8); }
  58% { opacity: .48; transform: translateX(calc(-.28 * var(--robot-dash))) scaleX(1.65); }
}
@media(prefers-reduced-motion:reduce) {
  .hero.motion-demo-playing :is(.motion-subject,.motion-echo) { animation: none !important; }
}

/* Hero flow: seamless one-way drift, wide soft shade, everything clipped to the hero. */
.hero-atmosphere, .hero-stars { overflow: clip; contain: paint; clip-path: inset(0); }
.hero-atmosphere { isolation: isolate; }
.hero-atmosphere::after { display: none; }
:root[data-scene-study] body::before,
:root[data-scene-study] body::after { content: none; animation: none; }
.top.liquid { position: relative; z-index: 3; isolation: isolate; background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero { --sh-a: 66 80 104; --sh-b: 92 108 132; }
[data-theme="dark"] .hero { --sh-a: 8 16 32; --sh-b: 30 44 66; }
.hero-shade {
  position: absolute;
  inset: 0 auto 0 0;
  width: 200%;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 50% 100%;
  will-change: transform;
}
.hero-shade.a {
  background-image:
    radial-gradient(ellipse 34% 62% at 30% 38%, rgb(var(--sh-a) / .30), transparent 72%),
    radial-gradient(ellipse 22% 48% at 78% 60%, rgb(var(--sh-a) / .18), transparent 72%);
}
.hero-shade.b {
  opacity: .7;
  background-image: radial-gradient(ellipse 28% 55% at 62% 30%, rgb(var(--sh-b) / .20), transparent 74%);
}
.hero-stars svg { inset: -10% auto -10% 0; width: 200%; height: 120%; will-change: transform; }
.hero-stars svg:nth-child(1) { --flow: 160s; }
.hero-stars svg:nth-child(2) { --flow: 110s; }
.hero-stars svg:nth-child(3) { --flow: 70s; }
@keyframes hero-flow { to { transform: translate3d(-50%, 0, 0); } }
@keyframes hero-breathe { 50% { opacity: .72; } }
@keyframes hero-twinkle { 50% { opacity: .42; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-stars svg, .hero-stars svg:nth-child(2), .hero-stars svg:nth-child(3) {
    animation: hero-flow var(--flow) linear infinite; animation-delay: 0s;
  }
  .hero-shade.a { animation: hero-flow 150s linear infinite reverse, hero-breathe 29s ease-in-out infinite; }
  .hero-shade.b { animation: hero-flow 210s linear infinite, hero-breathe 37s ease-in-out -11s infinite; }
  .hero-stars svg:nth-child(3) circle:nth-child(5n) { animation: hero-twinkle 6s ease-in-out -2s infinite; }
  .hero-stars svg:nth-child(3) circle:nth-child(7n) { animation: hero-twinkle 9s ease-in-out -5s infinite; }
}

/* Hero flow v2: bleed the scene to the viewport edges (no side seams), keep it behind the robot, centre the stars on it. */
body { overflow-x: clip; }
.hero-atmosphere {
  inset: 0 auto 0 calc(50% - 50vw);
  width: 100vw;
  z-index: -1;
}
.hero-stars {
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 95% at 50% 52%, #000 30%, #000a 62%, #0005 85%, #0003 100%);
}
.hero .agent { z-index: 2; }
