:root {
  --motion-ease: cubic-bezier(0.77, 0, 0.175, 1);
  --scene-line: #a5bdaa;
  --scene-surface: #d9e7db;
  --scene-shade: #829c88;
  --scene-shadow: #27473526;
  --ribbon-end: #92bba1;
  --scene-highlight: #f3fff8;
  --scene-edge: #5d8870;
  --scene-reflection: #ffffffb8;
}
[data-theme="dark"] {
  --scene-line: #527963;
  --scene-surface: #314b3b;
  --scene-shade: #192b20;
  --scene-shadow: #030b0766;
  --ribbon-end: #294d38;
  --scene-highlight: #c1f5d7;
  --scene-edge: #203e2b;
  --scene-reflection: #d3ffe54d;
}
.motion-scene {
  --motion-state: paused;
  position: relative;
  isolation: isolate;
}
.motion-scene[data-running="true"] {
  --motion-state: running;
}
.motion-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  margin-left: 18px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.motion-toggle .icon {
  width: 17px;
  height: 17px;
}
.motion-toggle:disabled {
  cursor: default;
  opacity: 0.55;
}
.theme-toggle {
  margin-left: 9px;
}
.motion-play {
  display: none;
}
[data-motion="paused"] .motion-play {
  display: block;
}
[data-motion="paused"] .motion-pause {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .motion-toggle:hover {
    background: var(--soft);
  }
}

/* The copy is still; only the art and its illumination float. */
.hero-copy,
.hero-art {
  animation: none;
}
.hero-art {
  width: 100%;
}
.hero-float {
  position: relative;
  animation: sculpture-float 5s ease-in-out 0.35s infinite;
}
.hero-light-field {
  position: absolute;
  inset: 8% 2% 13%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--accent) 17%, transparent),
    transparent 68%
  );
  animation: light-drift 19s var(--motion-ease) infinite alternate;
  pointer-events: none;
}
/* 4.65s of movement followed by a 0.35s hold on every loop. */
@keyframes sculpture-float {
  0%,
  93%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.3deg);
  }
  46.5% {
    transform: translate3d(0, -15px, 0) rotate(0.5deg);
  }
}
@keyframes light-drift {
  from {
    transform: translate3d(-5%, 4%, 0) scale(0.95);
    opacity: 0.45;
  }
  to {
    transform: translate3d(8%, -5%, 0) scale(1.08);
    opacity: 1;
  }
}

/* Fragmented operations find a shared structure. */
.perspective {
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}
.perspective-copy {
  padding-top: 28px;
}
.assembly-scene,
.build-scene {
  min-height: 440px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.scene-wash {
  position: absolute;
  inset: 5%;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--accent) 13%, transparent),
    transparent 65%
  );
  animation: light-drift 17s var(--motion-ease) infinite alternate;
  pointer-events: none;
}
.assembly-object {
  width: 216px;
  height: 216px;
  position: relative;
  transform: rotateX(53deg) rotateZ(-39deg);
  transform-style: preserve-3d;
}
.fragment {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 66px;
  height: 66px;
  border-radius: 4px;
  background:
    linear-gradient(
      125deg,
      var(--scene-reflection),
      transparent 32%,
      transparent 64%,
      #ffffff18 78%,
      transparent
    ),
    linear-gradient(
      150deg,
      var(--scene-surface) 10%,
      var(--scene-line) 58%,
      var(--scene-shade)
    );
  box-shadow:
    inset 0 1px 0 var(--scene-highlight),
    inset 1px 0 0 var(--scene-reflection),
    inset 0 -1px 0 var(--scene-edge),
    1px 2px 0 var(--scene-edge),
    2px 4px 0 var(--scene-shade),
    3px 6px 0 var(--scene-edge),
    5px 9px 8px var(--scene-shadow),
    14px 24px 26px var(--scene-shadow);
  animation: fragments-gather 16s var(--motion-ease) infinite;
  animation-delay: var(--delay);
}
.fragment:nth-child(5) {
  background: linear-gradient(
    135deg,
    var(--scene-highlight),
    var(--accent) 35%,
    var(--scene-edge)
  );
}
.fragment:nth-child(2),
.fragment:nth-child(8) {
  opacity: 0.8;
}
@keyframes fragments-gather {
  0%,
  100% {
    transform: translate3d(var(--dx), var(--dy), 28px);
  }
  35%,
  65% {
    transform: translate3d(0, 0, 0);
  }
}
.scene-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.01em;
}
.caption-line {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* Business node labels stay put while signals follow their actual routes. */
.system-lines .motion-loop {
  fill: var(--accent);
  stroke: none;
}
.signal-a {
  animation: route-a 12s linear infinite;
}
.signal-b {
  animation: route-b 14s linear infinite;
  animation-delay: -4s;
}
.signal-c {
  animation: route-c 15s linear infinite;
  animation-delay: -8s;
}
.signal-d {
  animation: route-d 13s linear infinite;
  animation-delay: -5s;
}
@keyframes route-a {
  0% {
    transform: translate(100px, 65px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  30% {
    transform: translate(190px, 65px);
  }
  60% {
    transform: translate(190px, 145px);
  }
  85%,
  100% {
    transform: translate(260px, 145px);
    opacity: 0;
  }
}
@keyframes route-b {
  0% {
    transform: translate(420px, 65px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  30% {
    transform: translate(330px, 65px);
  }
  60% {
    transform: translate(330px, 145px);
  }
  85%,
  100% {
    transform: translate(260px, 145px);
    opacity: 0;
  }
}
@keyframes route-c {
  0% {
    transform: translate(100px, 235px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  30% {
    transform: translate(190px, 235px);
  }
  60% {
    transform: translate(190px, 145px);
  }
  85%,
  100% {
    transform: translate(260px, 145px);
    opacity: 0;
  }
}
@keyframes route-d {
  0% {
    transform: translate(420px, 235px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  30% {
    transform: translate(330px, 235px);
  }
  60% {
    transform: translate(330px, 145px);
  }
  85%,
  100% {
    transform: translate(260px, 145px);
    opacity: 0;
  }
}
.system-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 82px;
  margin: -41px 0 0 -95px;
  border: 1px solid var(--scene-line);
  border-radius: 12px;
  animation: system-breathe 10s var(--motion-ease) infinite;
}
@keyframes system-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.7;
  }
}

/* An orbital field collects information around a stable center. */
.agent-example {
  overflow: hidden;
}
.orbit-scene {
  height: 208px;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 650px;
  margin-bottom: 20px;
}
.orbit-core {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 30% 22%,
      #ffffffed,
      #ffffff50 9%,
      transparent 28%
    ),
    radial-gradient(circle at 72% 78%, transparent 35%, #091d1255 80%),
    radial-gradient(
      circle at 35% 30%,
      var(--scene-highlight),
      var(--accent) 48%,
      var(--scene-edge) 80%
    );
  box-shadow:
    inset -3px -4px 7px #071e1455,
    inset 1px 1px 2px var(--scene-reflection),
    4px 8px 12px var(--scene-shadow),
    10px 18px 30px var(--scene-shadow);
  animation: core-breathe 12s var(--motion-ease) infinite;
}
.orbit-ring {
  position: absolute;
  width: 174px;
  height: 174px;
  border-radius: 50%;
  border: 1px solid var(--scene-line);
  background: linear-gradient(
    115deg,
    transparent 40%,
    color-mix(in srgb, var(--accent) 9%, transparent)
  );
}
.orbit-one {
  animation: orbit-one 20s linear infinite;
}
.orbit-two {
  width: 145px;
  height: 145px;
  animation: orbit-two 24s linear infinite;
}
.orbit-three {
  width: 195px;
  height: 195px;
  animation: orbit-three 28s linear infinite;
}
.orbit-satellite {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: satellite 18s linear infinite;
}
@keyframes core-breathe {
  0%,
  100% {
    transform: scale(0.94);
  }
  50% {
    transform: scale(1.08);
  }
}
@keyframes orbit-one {
  from {
    transform: rotateZ(-30deg) rotateY(58deg) rotateX(15deg);
  }
  to {
    transform: rotateZ(330deg) rotateY(58deg) rotateX(15deg);
  }
}
@keyframes orbit-two {
  from {
    transform: rotateZ(35deg) rotateY(-55deg) rotateX(25deg);
  }
  to {
    transform: rotateZ(-325deg) rotateY(-55deg) rotateX(25deg);
  }
}
@keyframes orbit-three {
  from {
    transform: rotateX(68deg) rotateZ(0);
  }
  to {
    transform: rotateX(68deg) rotateZ(360deg);
  }
}
@keyframes satellite {
  from {
    transform: rotate(0) translateX(92px);
  }
  to {
    transform: rotate(360deg) translateX(92px);
  }
}

/* Flow packets pause at the central approval gate; station labels don't move. */
.automation-example {
  min-height: 377px;
  padding-top: 242px;
  position: relative;
  overflow: hidden;
}
.automation-field {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  height: 198px;
  perspective: 700px;
}
.flow-rail {
  position: absolute;
  width: 90%;
  height: 55px;
  left: 5%;
  top: 84px;
  transform: rotateX(55deg) rotateZ(-15deg);
  border: 1px solid var(--scene-line);
  border-radius: 28px;
}
.flow-packet {
  position: absolute;
  left: 50%;
  top: 82px;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: linear-gradient(
    135deg,
    var(--scene-highlight),
    var(--scene-surface) 20%,
    var(--accent) 65%,
    var(--scene-edge)
  );
  box-shadow:
    inset 1px 1px 0 var(--scene-reflection),
    inset -1px -1px 0 var(--scene-edge),
    2px 3px 0 var(--scene-edge),
    4px 6px 0 var(--scene-shade),
    6px 10px 14px var(--scene-shadow);
  animation: packet-route 12s var(--motion-ease) infinite;
}
.packet-two {
  animation-delay: -4s;
  width: 24px;
  height: 24px;
}
.packet-three {
  animation-delay: -8s;
  width: 20px;
  height: 20px;
}
.flow-gate {
  position: absolute;
  left: calc(50% - 26px);
  top: 58px;
  width: 52px;
  height: 89px;
  border: 1px solid var(--accent);
  border-radius: 26px;
  transform: rotateY(35deg) rotateZ(-15deg);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
@keyframes packet-route {
  0% {
    transform: translate3d(-140px, 25px, 0) rotate(15deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  40%,
  57% {
    transform: translate3d(-15px, 0, 0) rotate(-15deg);
    opacity: 1;
  }
  85%,
  100% {
    transform: translate3d(118px, -30px, 0) rotate(15deg);
    opacity: 0;
  }
}

/* The marker is independent from the actual workflow's text and state. */
.workflow-steps .workflow-tracer {
  position: absolute;
  left: 22px;
  top: 36px;
  width: 7px;
  height: 7px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  background: #a6debb;
  z-index: 1;
  box-shadow: 0 2px 6px #10171280;
  animation: workflow-travel 14s var(--motion-ease) infinite;
  pointer-events: none;
}
@keyframes workflow-travel {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  27% {
    transform: translateY(81px);
  }
  49%,
  68% {
    transform: translateY(162px);
    opacity: 1;
  }
  88% {
    transform: translateY(243px);
    opacity: 1;
  }
  96% {
    transform: translateY(243px);
    opacity: 0;
  }
}

/* A separate sculptural assembly accompanies the still delivery steps. */
.approach-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
  align-items: center;
}
.approach-layout .approach-steps > li {
  grid-template-columns: 36px 1fr;
  gap: 0 20px;
  padding-block: 26px;
}
.approach-layout .approach-deliverable {
  grid-column: 2;
  text-align: left;
}
.approach-layout .approach-steps h3 {
  font-size: 23px;
}
.build-scene {
  min-height: 470px;
  background: var(--soft);
  border-radius: 8px;
}
.build-object {
  position: relative;
  width: 210px;
  height: 235px;
  perspective: 900px;
}
.build-layer {
  position: absolute;
  left: 15px;
  width: 180px;
  height: 95px;
  border: 1px solid var(--scene-line);
  border-radius: 5px;
  background:
    linear-gradient(
      125deg,
      var(--scene-reflection),
      transparent 32%,
      transparent 64%,
      #ffffff18 78%,
      transparent
    ),
    linear-gradient(
      150deg,
      var(--scene-surface) 10%,
      var(--scene-line) 58%,
      var(--scene-shade)
    );
  box-shadow:
    inset 0 1px 0 var(--scene-highlight),
    inset 1px 0 0 var(--scene-reflection),
    1px 2px 0 var(--scene-edge),
    2px 4px 0 var(--scene-shade),
    3px 6px 0 var(--scene-edge),
    4px 8px 0 var(--scene-shade),
    6px 12px 10px var(--scene-shadow),
    18px 28px 32px var(--scene-shadow);
  transform: rotateX(55deg) rotateZ(-28deg);
}
.build-base {
  top: 150px;
  animation: build-base 16s var(--motion-ease) infinite;
}
.build-middle {
  top: 86px;
  animation: build-middle 16s var(--motion-ease) infinite;
  background:
    linear-gradient(125deg, var(--scene-reflection), transparent 42%),
    linear-gradient(
      145deg,
      var(--scene-surface),
      var(--accent) 65%,
      var(--scene-edge)
    );
}
.build-top {
  top: 22px;
  animation: build-top 16s var(--motion-ease) infinite;
}

@keyframes build-base {
  0%,
  100% {
    transform: translateY(25px) rotateX(55deg) rotateZ(-28deg);
    opacity: 0.5;
  }
  25%,
  75% {
    transform: translateY(0) rotateX(55deg) rotateZ(-28deg);
    opacity: 1;
  }
}
@keyframes build-middle {
  0%,
  100% {
    transform: translate3d(35px, -20px, 0) rotateX(55deg) rotateZ(-28deg);
    opacity: 0.4;
  }
  38%,
  75% {
    transform: translate3d(0, 0, 0) rotateX(55deg) rotateZ(-28deg);
    opacity: 1;
  }
}
@keyframes build-top {
  0%,
  100% {
    transform: translate3d(-35px, -60px, 0) rotateX(55deg) rotateZ(-28deg);
    opacity: 0.3;
  }
  50%,
  75% {
    transform: translate3d(0, 0, 0) rotateX(55deg) rotateZ(-28deg);
    opacity: 1;
  }
}

/* Stable principles, interlocking frames, a still central anchor. */
.anchor-scene {
  height: 290px;
  display: grid;
  place-items: center;
  overflow: visible;
  margin-top: 20px;
}
.anchor-object {
  position: relative;
  width: 190px;
  height: 190px;
  perspective: 700px;
  display: grid;
  place-items: center;
}
.anchor-frame {
  position: absolute;
  width: 145px;
  height: 145px;
  border: 10px solid var(--scene-line);
  border-radius: 5px;
  transform-style: preserve-3d;
}
.frame-one {
  animation: frame-one 24s linear infinite;
}
.frame-two {
  width: 120px;
  height: 120px;
  border-color: var(--accent);
  animation: frame-two 30s linear infinite;
}
.frame-three {
  width: 180px;
  height: 180px;
  border-width: 1px;
  animation: frame-three 36s linear infinite;
}
.anchor-core {
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  background: var(--accent);
  transform: rotate(45deg);
}
@keyframes frame-one {
  from {
    transform: rotateX(60deg) rotateY(20deg) rotateZ(0);
  }
  to {
    transform: rotateX(60deg) rotateY(20deg) rotateZ(360deg);
  }
}
@keyframes frame-two {
  from {
    transform: rotateX(-25deg) rotateY(58deg) rotateZ(40deg);
  }
  to {
    transform: rotateX(-25deg) rotateY(58deg) rotateZ(400deg);
  }
}
@keyframes frame-three {
  from {
    transform: rotateX(30deg) rotateY(20deg) rotateZ(0);
  }
  to {
    transform: rotateX(30deg) rotateY(20deg) rotateZ(-360deg);
  }
}

/* A stack of translucent planes drifts beside, never over, the FAQ. */
.planes-scene {
  height: 285px;
  max-width: 360px;
  position: relative;
  margin-top: 35px;
  perspective: 800px;
  overflow: hidden;
}
.floating-plane {
  position: absolute;
  width: 172px;
  height: 116px;
  left: calc(50% - 86px);
  top: 70px;
  border: 1px solid var(--scene-line);
  border-radius: 5px;
  background: linear-gradient(
    130deg,
    color-mix(in srgb, var(--scene-surface) 80%, transparent),
    color-mix(in srgb, var(--accent) 9%, transparent)
  );
  box-shadow:
    inset 1px 1px 0 var(--scene-reflection),
    inset -1px -1px 0 var(--scene-line),
    1px 2px 0 var(--scene-edge),
    2px 4px 0 var(--scene-line),
    5px 9px 12px var(--scene-shadow),
    12px 22px 30px var(--scene-shadow);
}
.plane-one {
  animation: plane-one 18s var(--motion-ease) infinite;
}
.plane-two {
  animation: plane-two 18s var(--motion-ease) infinite;
}
.plane-three {
  animation: plane-three 18s var(--motion-ease) infinite;
}
.plane-orbit {
  position: absolute;
  width: 235px;
  height: 235px;
  left: calc(50% - 117px);
  top: 20px;
  border: 1px solid var(--scene-line);
  border-radius: 50%;
  opacity: 0.4;
  animation: plane-orbit 24s linear infinite;
}
@keyframes plane-one {
  0%,
  100% {
    transform: translate3d(-20px, -22px, -20px) rotateX(48deg) rotateZ(-28deg);
  }
  50% {
    transform: translate3d(-10px, -42px, -20px) rotateX(48deg) rotateZ(-20deg);
  }
}
@keyframes plane-two {
  0%,
  100% {
    transform: translate3d(0, 15px, 0) rotateX(48deg) rotateZ(-28deg);
  }
  50% {
    transform: translate3d(0, 3px, 0) rotateX(48deg) rotateZ(-24deg);
  }
}
@keyframes plane-three {
  0%,
  100% {
    transform: translate3d(20px, 50px, 20px) rotateX(48deg) rotateZ(-28deg);
  }
  50% {
    transform: translate3d(10px, 60px, 20px) rotateX(48deg) rotateZ(-32deg);
  }
}
@keyframes plane-orbit {
  from {
    transform: rotateY(55deg) rotateX(20deg) rotateZ(0);
  }
  to {
    transform: rotateY(55deg) rotateX(20deg) rotateZ(360deg);
  }
}

/* A continuous geometric ribbon ends the narrative beside the still form. */
.ribbon-scene {
  max-width: 440px;
  height: 235px;
  margin-top: 25px;
  overflow: hidden;
}
.ribbon-art {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ribbon-track {
  fill: none;
  stroke: var(--scene-line);
  stroke-width: 1;
}
.ribbon-loop {
  transform-origin: 220px 135px;
  animation: ribbon-suspend 18s var(--motion-ease) infinite;
}
.ribbon-loop path {
  fill: none;
  stroke: url(#ribbon-green);
  stroke-width: 16;
  stroke-linejoin: bevel;
  opacity: 0.85;
}
.ribbon-packet {
  fill: var(--accent);
  animation: ribbon-travel 20s linear infinite;
}
@keyframes ribbon-suspend {
  0%,
  100% {
    transform: translateY(0) skewY(-12deg) scale(0.9);
  }
  50% {
    transform: translateY(-16px) skewY(8deg) scale(0.96);
  }
}
@keyframes ribbon-travel {
  0% {
    transform: translate(55px, 195px);
  }
  15% {
    transform: translate(175px, 195px);
  }
  32% {
    transform: translate(175px, 65px);
  }
  55% {
    transform: translate(355px, 65px);
  }
  72% {
    transform: translate(355px, 195px);
  }
  85% {
    transform: translate(175px, 195px);
  }
  100% {
    transform: translate(55px, 195px);
  }
}

/* Resolution-independent surface detail rides with the existing objects. */
.fragment::after,
.build-layer::after,
.floating-plane::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--scene-reflection);
  border-right-color: var(--scene-line);
  border-bottom-color: var(--scene-line);
  border-radius: 2px;
  pointer-events: none;
}
.build-layer::before {
  content: "";
  position: absolute;
  inset: 17px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 23px,
      var(--scene-line) 23px 24px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 23px,
      var(--scene-line) 23px 24px
    );
  opacity: 0.35;
  pointer-events: none;
}
.orbit-ring {
  box-shadow:
    inset 0 1px 0 var(--scene-reflection),
    0 1px 0 var(--scene-edge);
  background: linear-gradient(
    115deg,
    transparent 28%,
    var(--scene-reflection) 49%,
    transparent 51%,
    color-mix(in srgb, var(--accent) 12%, transparent) 85%
  );
}
.orbit-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--scene-line);
  border-radius: inherit;
  opacity: 0.4;
}
.orbit-satellite {
  background: radial-gradient(
    circle at 30% 25%,
    var(--scene-highlight),
    var(--accent) 55%,
    var(--scene-edge)
  );
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}
.flow-rail {
  box-shadow:
    inset 0 1px 0 var(--scene-reflection),
    0 2px 0 var(--scene-edge),
    0 7px 14px var(--scene-shadow);
  background: linear-gradient(
    0deg,
    transparent,
    color-mix(in srgb, var(--scene-surface) 40%, transparent)
  );
}
.flow-gate {
  box-shadow:
    inset 2px 0 0 var(--scene-reflection),
    2px 0 0 var(--scene-edge),
    4px 0 0 var(--scene-line),
    8px 4px 14px var(--scene-shadow);
  background: linear-gradient(
    110deg,
    var(--scene-reflection),
    transparent 30%,
    transparent 65%,
    color-mix(in srgb, var(--accent) 20%, transparent)
  );
}
.flow-packet::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--scene-reflection);
  border-radius: 2px;
}
.anchor-frame {
  box-shadow:
    inset 1px 1px 0 var(--scene-highlight),
    inset -2px -2px 0 var(--scene-edge),
    1px 1px 0 var(--scene-reflection),
    3px 4px 0 var(--scene-edge),
    7px 10px 14px var(--scene-shadow);
}
.frame-three {
  box-shadow: 0 1px 0 var(--scene-reflection);
}
.anchor-core {
  background: linear-gradient(
    135deg,
    var(--scene-highlight),
    var(--accent) 45%,
    var(--scene-edge)
  );
  box-shadow:
    inset 1px 1px 0 var(--scene-reflection),
    3px 3px 0 var(--scene-edge),
    7px 8px 12px var(--scene-shadow);
}
.system-halo {
  box-shadow:
    inset 0 0 12px color-mix(in srgb, var(--accent) 8%, transparent),
    0 0 0 5px color-mix(in srgb, var(--accent) 4%, transparent);
}
.system-lines .signal-aura {
  opacity: 0.14;
}
.system-lines .signal-core {
  fill: var(--scene-highlight);
}
.workflow-steps .workflow-tracer {
  background: radial-gradient(circle at 35% 30%, #f1fff6, #a6debb 50%, #599d73);
  box-shadow:
    0 0 0 3px #a6debb14,
    0 0 10px #a6debb40;
}
.ribbon-loop .ribbon-depth {
  stroke: var(--scene-edge);
  stroke-width: 18;
  opacity: 1;
  transform: translate(3px, 5px);
}
.ribbon-loop .ribbon-highlight {
  stroke: var(--scene-highlight);
  stroke-width: 1;
  opacity: 0.75;
  transform: translate(-5px, -5px);
}
.ribbon-loop .ribbon-face {
  opacity: 1;
}

/* CSS owns the timeline; JS only decides whether a visible scene may run. */
.motion-scene .motion-loop {
  animation-play-state: var(--motion-state, paused);
}
@media (max-width: 1100px) {
  .approach-layout {
    gap: 30px;
    grid-template-columns: 1.2fr 1fr;
  }
  .assembly-scene {
    min-height: 390px;
  }
  .build-object {
    transform: scale(0.85);
  }
}
@media (max-width: 900px) {
  #primary-nav {
    gap: 17px;
  }
  .motion-toggle {
    margin-left: 12px;
  }
  .perspective {
    gap: 25px;
  }
  .assembly-object {
    transform: scale(0.8) rotateX(53deg) rotateZ(-39deg);
  }
  .approach-layout {
    gap: 25px;
  }
  .approach-layout .approach-steps h3 {
    font-size: 21px;
  }
  .build-scene {
    min-height: 410px;
  }
}
@media (max-width: 680px) {
  .header-inner .brand {
    font-size: 22px;
    gap: 7px;
  }
  .header-inner .brand svg {
    width: 24px;
    height: 24px;
  }
  .motion-toggle {
    order: 1;
    margin-left: auto;
    margin-right: 0;
  }
  .theme-toggle {
    order: 2;
    margin-left: 5px;
    margin-right: 5px;
  }
  .menu-toggle {
    order: 3;
  }
  #primary-nav {
    order: 4;
  }
  .assembly-scene {
    min-height: 340px;
    margin-top: 20px;
  }
  .assembly-object {
    transform: scale(0.9) rotateX(53deg) rotateZ(-39deg);
  }
  .perspective-copy {
    padding-top: 25px;
  }
  .scene-caption {
    bottom: 10px;
  }
  .orbit-scene {
    height: 190px;
  }
  .automation-example {
    min-height: 360px;
    padding-top: 232px;
  }
  .approach-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }
  .build-scene {
    min-height: 340px;
  }
  .build-object {
    transform: scale(0.8);
  }
  .build-scene .scene-caption {
    bottom: 20px;
  }
  .anchor-scene {
    height: 280px;
  }
  .anchor-object {
    transform: scale(0.9);
  }
  .planes-scene {
    height: 240px;
    margin-top: 18px;
  }
  .ribbon-scene {
    height: 200px;
    margin-top: 18px;
  }
  .workflow-steps .workflow-tracer {
    left: 18px;
  }
  @keyframes workflow-travel {
    0%,
    100% {
      transform: translateY(0);
      opacity: 0;
    }
    8% {
      opacity: 1;
    }
    27% {
      transform: translateY(76px);
    }
    49%,
    68% {
      transform: translateY(152px);
      opacity: 1;
    }
    88% {
      transform: translateY(228px);
      opacity: 1;
    }
    96% {
      transform: translateY(228px);
      opacity: 0;
    }
  }
}
@media (max-width: 360px) {
  .header-inner .brand {
    font-size: 19px;
    gap: 5px;
  }
  .header-inner .brand svg {
    width: 21px;
    height: 21px;
  }
  .motion-toggle,
  .theme-toggle,
  .enhanced .menu-toggle {
    width: 44px;
    flex-basis: 44px;
  }
  .theme-toggle {
    margin-inline: 3px;
  }
  .header-inner {
    padding-inline: 16px;
  }
  .flow-packet {
    animation-name: packet-route-small;
  }
  @keyframes packet-route-small {
    0% {
      transform: translate(-110px, 25px);
      opacity: 0;
    }
    12% {
      opacity: 1;
    }
    40%,
    57% {
      transform: translate(-15px, 0);
      opacity: 1;
    }
    85%,
    100% {
      transform: translate(85px, -25px);
      opacity: 0;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-scene .motion-loop {
    animation: none !important;
  }
  .orbit-one {
    transform: rotateZ(-30deg) rotateY(58deg);
  }
  .orbit-two {
    transform: rotateZ(35deg) rotateY(-55deg);
  }
  .orbit-three {
    transform: rotateX(68deg);
  }
  .frame-one {
    transform: rotateX(60deg) rotateY(20deg);
  }
  .frame-two {
    transform: rotateX(-25deg) rotateY(58deg) rotateZ(40deg);
  }
  .frame-three {
    transform: rotateX(30deg) rotateY(20deg);
  }
  .plane-one {
    transform: translateY(-22px) rotateX(48deg) rotateZ(-28deg);
  }
  .plane-two {
    transform: translateY(15px) rotateX(48deg) rotateZ(-28deg);
  }
  .plane-three {
    transform: translateY(50px) rotateX(48deg) rotateZ(-28deg);
  }
  .ribbon-loop {
    transform: skewY(-12deg) scale(0.9);
  }
  .ribbon-packet,
  .workflow-tracer,
  .system-lines .motion-loop {
    opacity: 0;
  }
  .flow-packet {
    transform: translateX(-60px);
  }
  .packet-two {
    transform: translateX(0);
  }
  .packet-three {
    transform: translateX(65px);
  }
}
