/* Trovero's motion language: connected signals, precise type, quiet texture. */
.hero,
.subhero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.hero {
  padding: 66px 0 68px;
  background: #171c2a;
}
.hero::before,
.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 78% 40%, #5b4b8a24, transparent 51%);
}
.hero-grid {
  grid-template-columns: 1fr 1.08fr;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1.065;
  letter-spacing: -0.06em;
}
.hero-future {
  color: #c5b7e7;
}
.hero .lead {
  font-size: 17px;
  max-width: 530px;
}
.hero .fit {
  color: #bcb8c2;
}
.nodefield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.hero:not(.field-ready),
.subhero:not(.field-ready) {
  background-image: radial-gradient(#ccc4e317 0.9px, transparent 1px);
  background-size: 28px 28px;
}
.agent-stage {
  min-width: 0;
  position: relative;
}
.stage-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 0 14px;
}
.stage-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #cec5df;
}
.stage-caption {
  color: #aaa3ba;
  font-size: 10px;
  white-space: nowrap;
}
.agent-scene {
  position: relative;
  aspect-ratio: 4/3;
  margin: 0 -20px;
}
.agent-wires,
.agent-art {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
}
.agent-wires {
  color: #b8aadf40;
}
.agent-scene.art-ready .agent-wires {
  opacity: 0.24;
}
.agent-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 130px;
  pointer-events: none;
}
.agent-core svg {
  width: 66px;
  height: 66px;
  filter: drop-shadow(0 0 22px #c5b7e74d);
}
.agent-core span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #dbd5e8;
}
.signal {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 500;
  color: #c3bed0;
  white-space: nowrap;
}
.signal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c5b7e7;
  box-shadow: 0 0 14px #b8aadf77;
}
.signal-market {
  left: 9%;
  top: 16%;
}
.signal-knowledge {
  left: 3%;
  top: 54%;
}
.signal-relationships {
  left: 9%;
  top: 84%;
}
.agent-output {
  position: absolute;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.output-find {
  left: 85.94%;
  top: 22%;
}
.output-reach {
  left: 92.19%;
  top: 51.2%;
}
.output-connect {
  left: 85.94%;
  top: 80.4%;
}
.output-glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #e2d9f6;
  border: 1px solid #b8aadf6b;
  border-radius: 50%;
  background: #242336;
  box-shadow:
    0 0 25px #b8aadf13,
    inset 0 0 14px #b8aadf0c;
  transition:
    border-color 0.5s,
    box-shadow 0.5s;
}
.output-glyph svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 17px;
  height: 17px;
}
.agent-output.is-active .output-glyph {
  color: #fafaf7;
  border-color: #d2b1a8;
  box-shadow:
    0 0 26px #ce806929,
    inset 0 0 14px #ce80691c;
}
.agent-output.is-active {
  color: #edd3cb;
}
.agent-selector {
  display: flex;
  border-bottom: 1px solid #b8aadf33;
  gap: 20px;
  margin: 6px 14px 0;
}
.agent-selector[hidden] {
  display: none;
}
.agent-selector button {
  position: relative;
  background: none;
  color: #b6b0c4;
  padding: 13px 0 15px;
  border: 0;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
}
.agent-selector button::after {
  content: "";
  position: absolute;
  height: 2px;
  background: #c5b7e7;
  bottom: -1px;
  left: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.agent-selector button[aria-pressed="true"] {
  color: #fafaf7;
}
.agent-selector button[aria-pressed="true"]::after {
  transform: scaleX(1);
}
.agent-selector button:hover {
  color: #fafaf7;
}
.agent-description {
  margin: 18px 14px 0;
  min-height: 58px;
  font-size: 12px;
  color: #d5cfe0;
  line-height: 1.7;
  max-width: 470px;
}
.agent-judgment {
  margin: 14px 14px 0;
  color: #bcb5c9;
  font-size: 10px;
  line-height: 1.6;
}
.agent-judgment span {
  color: #ce8069;
  margin-right: 7px;
}
/* A dot-paper texture also connects the editorial sections to the brand mark. */
#how,
#company-brain,
.sub-statement {
  background-image: radial-gradient(#1a1f2e14 0.8px, transparent 0.9px);
  background-size: 22px 22px;
}
#services {
  position: relative;
  overflow: clip;
  isolation: isolate;
}
#services::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -260px;
  width: 800px;
  height: 800px;
  border: 1px solid #b8aadf24;
  border-radius: 50%;
  box-shadow:
    0 0 0 70px #b8aadf04,
    0 0 0 140px #b8aadf03,
    0 0 0 210px #b8aadf02;
  z-index: -1;
}
#services::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, #b8aadf80, transparent);
}
.section-head h2,
.subhero h1 {
  text-wrap: balance;
}
.lane,
.service-block,
.feature-row {
  position: relative;
}
.lane::before,
.service-block::before {
  content: "";
  position: absolute;
  top: -1px;
  height: 2px;
  left: 0;
  width: 100%;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.service-block::before {
  background: var(--agent);
}
.lane:hover::before,
.lane:focus-within::before,
.service-block:hover::before,
.service-block:focus-within::before {
  transform: scaleX(1);
}
.text-link span,
.btn-secondary span {
  display: inline-block;
  transition: transform 0.25s;
}
.text-link:hover span {
  transform: translate(3px, -3px);
}
.btn-secondary:hover span {
  transform: translateY(3px);
}
.btn,
.nav-cta {
  position: relative;
  overflow: hidden;
  transition:
    background 0.2s,
    box-shadow 0.25s;
}
.btn:hover,
.nav-cta:hover {
  box-shadow: 0 5px 24px #5b4b8a24;
}
.nav-menu a:not(.nav-cta) {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 85% / 0 1px
    no-repeat;
  transition: background-size 0.3s;
}
.nav-menu a:not(.nav-cta):hover,
.nav-menu a[aria-current="page"] {
  background-size: 100% 1px;
}
.brain-flow {
  position: relative;
  padding-block: 28px;
}
.brain-flow div {
  position: relative;
  background: var(--warm);
  border: 0;
  border-block: 1px solid #c7c0d5;
  min-height: 150px;
  padding: 35px 22px;
  align-content: center;
}
.brain-flow div::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  background: #7b7295;
  box-shadow:
    12px 0 0 #aaa2bb,
    24px 0 0 #c7c0d5;
  border-radius: 50%;
  margin-bottom: 18px;
}
.brain-flow .brain-agent {
  background: #232437;
  color: #e3daf6;
}
.brain-flow .brain-agent::before {
  background: #ce8069;
  box-shadow:
    12px 0 0 #b8aadf,
    24px 0 0 #b8aadf66;
}
.brain-flow > span {
  position: relative;
  color: var(--purple);
}
.brain-flow > span::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8f7db3;
  left: 0;
  top: 50%;
  opacity: 0;
}
html[data-motion="on"] .brain-flow.is-inview > span::after {
  animation: knowledge-transfer 3.5s ease-in-out infinite;
}
@keyframes knowledge-transfer {
  0%,
  15% {
    transform: translateX(-10px);
    opacity: 0;
  }
  40%,
  60% {
    opacity: 1;
  }
  85%,
  100% {
    transform: translateX(28px);
    opacity: 0;
  }
}
.reading-progress {
  position: fixed;
  z-index: 35;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #ce8069;
  transform: scaleX(0);
  transform-origin: left;
}
.motion-toggle {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid #75708366;
  background: #202333ed;
  color: #e1dce9;
  font-size: 10px;
  line-height: 1.2;
  box-shadow: 0 3px 14px #1113211c;
}
.motion-toggle[hidden] {
  display: none;
}
.motion-symbol {
  display: flex;
  gap: 2px;
  height: 12px;
  align-items: center;
}
.motion-symbol i {
  width: 2px;
  height: 5px;
  background: #b8aadf;
}
.motion-symbol i:nth-child(2) {
  height: 11px;
}
.motion-symbol i:nth-child(3) {
  height: 8px;
}
.motion-toggle[aria-pressed="true"] .motion-symbol i {
  height: 2px;
}
/* Elements are visible by default. JS only schedules entrances while in view. */
[data-reveal] {
  will-change: auto;
}
html[data-motion="off"] {
  scroll-behavior: auto;
}
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}
@media (min-width: 1600px) {
  .hero {
    padding-block: 90px;
  }
  .hero-grid {
    gap: 50px;
  }
}
@media (max-width: 1100px) and (min-width: 1001px) {
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 15px;
  }
  .hero h1 {
    font-size: 53px;
  }
  .stage-heading {
    display: block;
  }
  .stage-caption {
    display: none;
  }
  .agent-selector {
    gap: 14px;
  }
  .agent-selector button {
    font-size: 10px;
  }
}
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-grid > div:first-child {
    max-width: 720px;
  }
  .hero h1 {
    font-size: clamp(48px, 7.5vw, 72px);
  }
  .hero .lead {
    max-width: 650px;
  }
  .agent-stage {
    width: 100%;
    max-width: 710px;
    margin-inline: auto;
  }
  .agent-scene {
    margin-inline: 0;
  }
  .agent-description {
    max-width: none;
    min-height: 40px;
  }
  .stage-heading {
    padding-inline: 0;
  }
  .agent-selector,
  .agent-description,
  .agent-judgment {
    margin-inline: 0;
  }
  .signal,
  .agent-output {
    font-size: 12px;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 44px 0 44px;
  }
  .hero-grid {
    gap: 48px;
  }
  .hero h1 {
    font-size: clamp(40px, 9.6vw, 61px);
  }
  .hero .lead {
    font-size: 16px;
  }
  .stage-heading {
    gap: 10px;
  }
  .stage-heading .eyebrow {
    font-size: 8px;
  }
  .stage-caption {
    font-size: 9px;
  }
  .agent-scene {
    margin: 12px -6px 8px;
    aspect-ratio: 1.25;
  }
  .signal,
  .agent-output {
    font-size: 8px;
  }
  .signal {
    gap: 5px;
  }
  .signal-relationships {
    left: 4%;
  }
  .signal-knowledge {
    left: 1%;
  }
  .signal-market {
    left: 6%;
  }
  .agent-core {
    width: 90px;
    gap: 8px;
  }
  .agent-core svg {
    width: 44px;
    height: 44px;
  }
  .agent-core span {
    font-size: 6px;
    letter-spacing: 0.1em;
  }
  .output-glyph {
    width: 28px;
    height: 28px;
  }
  .output-glyph svg {
    width: 14px;
    height: 14px;
  }
  .agent-output {
    gap: 6px;
  }
  .output-reach {
    left: 90%;
  }
  .output-find,
  .output-connect {
    left: 84%;
  }
  .agent-selector {
    gap: 18px;
    justify-content: space-between;
  }
  .agent-selector button {
    font-size: 10px;
    padding-block: 12px;
  }
  .agent-description {
    font-size: 12px;
    min-height: 62px;
    margin-top: 16px;
  }
  .agent-judgment {
    font-size: 10px;
    margin-top: 10px;
  }
  .brain-flow {
    padding-block: 0;
  }
  .brain-flow div {
    min-height: 115px;
  }
  .brain-flow > span::after {
    display: none;
  }
  .motion-toggle {
    right: 10px;
    bottom: 10px;
    font-size: 9px;
    min-height: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress {
    display: none;
  }
}
.hero-grid {
  align-items: start;
}
.hero-grid > div:first-child {
  padding-top: 4px;
}
.agent-output,
.signal {
  font-size: 11px;
}
.agent-description {
  font-size: 13px;
}
.agent-selector button {
  font-size: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-group(root) {
    animation-duration: 0.28s;
  }
  .site-head {
    view-transition-name: site-navigation;
  }
  ::view-transition-group(site-navigation) {
    animation-duration: 0.28s;
  }
}
html[data-motion="off"]::view-transition-group(*),
html[data-motion="off"]::view-transition-old(*),
html[data-motion="off"]::view-transition-new(*) {
  animation: none;
}
@media (max-width: 640px) {
  .signal,
  .agent-output {
    font-size: 10px;
    white-space: normal;
    line-height: 1.35;
  }
  .signal {
    max-width: 80px;
  }
  .signal-dot {
    flex-shrink: 0;
  }
  .agent-output {
    max-width: 85px;
    text-align: center;
    width: 85px;
  }
  .output-reach {
    left: 89%;
  }
  .agent-selector button {
    font-size: 10px;
    min-height: 44px;
  }
  .agent-description {
    font-size: 12px;
  }
  .agent-core span {
    font-size: 7px;
  }
}

/* Keep the original flat mark as the no-canvas fallback. */
.agent-scene.art-ready .agent-core {
  visibility: hidden;
}
