/* The original Celerity palette, composed by one scroll-driven motion system. */
html:has(.agent-flow-site),
body.spatial-site.agent-flow-site {
  background: #070a10;
  color-scheme: dark;
}

/* Retire decorative clocks and expensive filters from the earlier style layers. */
.agent-flow-site *,
.agent-flow-site *::before,
.agent-flow-site *::after {
  animation: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
@view-transition { navigation: none; }
::view-transition-old(root),
::view-transition-new(root) { animation: none !important; }
.agent-flow-site :is(.living-intro,.living-cursor,.living-field,.cursor-signal,.motion-intro,.context-packet,.atelier-packet,.atelier-packet-halo) {
  display: none !important;
}

.agent-flow-site .site-header {
  z-index: 50;
  background: #101722;
  border-bottom-color: #b6c4e01a;
  box-shadow: none;
}
.agent-flow-site .header-inner { height: 84px; }
.agent-flow-site .brand { gap: 13px; }
.agent-flow-site .brand-mark {
  width: 39px;
  height: 39px;
  background: none;
  border: 0;
  box-shadow: none;
  transform: none !important;
}
.agent-flow-site :is(.brand-mark,.signature-mark)::before,
.agent-flow-site :is(.brand-mark,.signature-mark)::after { display: none; }
.agent-flow-site :is(.brand-mark,.signature-mark) svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: none !important;
}
.agent-flow-site .celerity-mark path {
  stroke: none !important;
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}
.agent-flow-site .atelier-reading-progress {
  height: 1px;
  background: transparent;
}
.agent-flow-site .atelier-reading-progress i {
  background: #b5b8ff;
  transform-origin: left center;
}
.agent-flow-site :is(.button,.nav-cta) {
  box-shadow: none;
  transform: none !important;
}
.agent-flow-site .button {
  background: #e7e9ff;
  color: #10182b;
  min-height: 52px;
  transition: background-color 160ms ease;
}
.agent-flow-site .button:hover { background: #fff; }
.agent-flow-site .text-link { transition: color 160ms ease; }
.agent-flow-site .nav-cta { background: #1b263a !important; }

.agent-flow-site .agent-hero {
  padding-block: clamp(64px, 6vw, 108px) 84px;
}
.agent-flow-site .agent-hero-grid {
  grid-template-columns: 1.02fr 1fr;
  gap: 68px;
}
.agent-flow-site .agent-hero-copy { min-width: 0; }
.agent-flow-site .agent-hero h1 {
  font-size: clamp(3.2rem, 5.1vw, 5.2rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.agent-flow-site .agent-lede { margin-top: 27px; }
.agent-flow-site .agent-personal { margin-top: 27px; }
.agent-flow-site .agent-section {
  padding-block: clamp(72px, 7vw, 112px);
  border-top-color: #bac7dc1c;
}

.agent-flow-site .agent-section-heading { margin-bottom: 46px; }
.agent-flow-site .agent-section-heading > p { max-width: 39ch; }
.agent-flow-site .agent-page-intro { padding-block: 78px 62px; }
.agent-flow-site .agent-page-intro + .agent-section { padding-top: 76px; }
.agent-flow-site .agent-method-section { background: #0b1320; }
.agent-flow-site .agent-questions { background: #0c1522; }
.agent-flow-site .agent-cta { padding-block: 84px; background: #101a29; }

/* Every scene stays attached to its own layout box. */
.agent-flow-site .agent-sculpture-figure {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.agent-flow-site .agent-sculpture-figure::before { display: none; }
.agent-flow-site .agent-sculpture-stage {
  height: 420px;
  margin: 0;
}
.agent-flow-site canvas[data-agent-sculpture] {
  display: block;
  opacity: 0 !important;
  pointer-events: none;
}
.agent-shared-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  display: block;
}
.agent-flow-site .agent-mode-tabs {
  position: relative;
  z-index: 4;
  max-width: 470px;
  margin-inline: auto;
  background: #121c2d;
  border-color: #b5b8ff29;
}
.agent-flow-site .agent-mode-tabs button {
  min-height: 44px;
  transition: background-color 160ms ease, color 160ms ease;
}
.agent-flow-site .agent-example {
  position: relative;
  z-index: 4;
  padding: 22px 8px 8px;
  min-height: 112px;
  max-width: 470px;
  margin-inline: auto;
}
.agent-flow-site .agent-example .agent-example-heading { font-size: 15px; }
.agent-flow-site .agent-example .agent-example-steps { font-size: 13px; }
.agent-flow-site .agent-sculpture-figure > figcaption {
  padding-inline: 8px;
  max-width: 470px;
  margin-inline: auto;
  color: #aebed6;
  font-size: 12px;
}
.agent-flow-site .agent-usecase { padding-block: 30px; }
.agent-flow-site .agent-usecase::after { display: none; }
.agent-flow-site .agent-usecase h3 { transition: color 160ms ease; }
.agent-flow-site .agent-usecase h4 { max-width: 35ch; }
.agent-flow-site .agent-usecase p { max-width: 53ch; }
.agent-flow-site .agent-usecase:hover .usecase-arrow { transform: translateX(3px); }
.agent-flow-site .agent-usecase-scene { align-self: center; }
.agent-flow-site .agent-process > li { padding-bottom: 30px; margin-bottom: 30px; }
.agent-flow-site .agent-process > li:last-child { padding-bottom: 0; margin-bottom: 0; }
.agent-flow-site .agent-process h2 { font-size: 20px; line-height: 1.4; margin: 0; }

/* The supplied portrait and sculpted footer remain; flow.js owns their motion. */
.agent-flow-site .portrait-window { overflow: hidden; }
.agent-flow-site .portrait-window img { transform-origin: center 45%; }
.agent-flow-site .portrait-credit small { font-size: 12px; line-height: 1.6; letter-spacing: .02em; }
.agent-flow-site .signature-mark { transform: none !important; }
.agent-flow-site .signature-name { font-size: 11px; line-height: 1.6; letter-spacing: .12em; }
.agent-flow-site .studio-signature { background: #09101a; }
.agent-flow-site .footer { background: #070b14; }
.agent-flow-site .footer-meta { margin-top: 12px; font-size: 12px; }
.agent-flow-site .contact-form-wrap { background: #101a2b; }
.agent-flow-site :is(input,textarea) { font-size: 16px; }
.agent-flow-site .submit-spinner { animation: agent-flow-submit .8s linear infinite !important; }
@keyframes agent-flow-submit { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .agent-flow-site .agent-hero-grid { gap: 36px; }
  .agent-flow-site .agent-sculpture-stage { height: 350px; }
  .agent-flow-site .agent-page-intro { padding-block: 64px 52px; }
}
@media (max-width: 980px) {
  .agent-flow-site .header-inner { height: 76px; }
  .agent-flow-site .nav { background: #111b2c; }
}
@media (max-width: 800px) {
  .agent-flow-site .agent-hero { padding-block: 56px 62px; }
  .agent-flow-site .agent-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .agent-flow-site .agent-hero h1 { font-size: clamp(3.1rem, 8.8vw, 4.7rem); }
  .agent-flow-site .agent-sculpture-figure { width: min(560px, 100%); justify-self: center; }
  .agent-flow-site .agent-sculpture-stage { height: 360px; }
  .agent-flow-site .agent-section { padding-block: 66px; }
  .agent-flow-site .agent-section-heading { margin-bottom: 34px; }
  .agent-flow-site .agent-page-intro { padding-block: 54px 32px; }
  .agent-flow-site .agent-page-intro + .agent-section { padding-top: 58px; }
  .agent-flow-site .agent-cta { padding-block: 64px; }
  .agent-flow-site .agent-usecase { padding-block: 28px; }
}
@media (max-width: 520px) {
  .agent-flow-site .brand-mark { width: 35px; height: 35px; }
  .agent-flow-site .agent-hero h1 { font-size: clamp(2.8rem, 10.2vw, 3.7rem); }
  .agent-flow-site .agent-hero-grid { gap: 28px; }
  .agent-flow-site .agent-sculpture-stage { height: 290px; }
  .agent-flow-site .agent-mode-tabs { padding: 4px; gap: 3px; }
  .agent-flow-site .agent-mode-tabs button { font-size: 11px; padding-inline: 4px; }
  .agent-flow-site .agent-example { padding-inline: 2px; min-height: 116px; }
  .agent-flow-site .agent-sculpture-figure > figcaption { padding-inline: 2px; font-size: 12px; }
  .agent-flow-site .agent-page-intro { padding-top: 46px; }
  .agent-flow-site .agent-usecase > figure { height: 195px; }
  .agent-flow-site .agent-usecase-scene .agent-scene-stage { height: 195px; }
}
@media (prefers-reduced-motion: reduce) {

  .agent-flow-site .submit-spinner { animation: none !important; }
}
