/* Scroll choreography is a progressive enhancement of the application center. */
.hero-story,
.hero-sticky {
  position: relative;
}
.scene-backdrop,
.scene-caption,
.scroll-cue,
.scene-timeline,
.scan-sweep {
  display: none;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #607986;
}
.motion-toggle:hover,
.motion-toggle[aria-pressed="true"] {
  border-color: #79aaa9;
  color: var(--teal);
  background: #edf7f5;
}
.motion-toggle .icon {
  width: 16px;
  height: 16px;
}
.motion-enabled .hero-copy > * {
  animation: hero-arrive 850ms cubic-bezier(.16, 1, .3, 1) both;
}
.motion-enabled .hero-copy h1 { animation-delay: 90ms; }
.motion-enabled .hero-description { animation-delay: 170ms; }
.motion-enabled .hero-actions { animation-delay: 240ms; }
.motion-enabled .hero-platforms { animation-delay: 300ms; }
.motion-enabled .imaging-stage {
  transform: perspective(1200px) rotateX(var(--pointer-y, 0deg)) rotateY(var(--pointer-x, 0deg));
  transition: box-shadow 400ms ease;
}
.motion-enabled .imaging-stage:hover {
  box-shadow: 0 35px 60px -22px #12364466;
}
.motion-enabled .scan-sweep {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, #7cfff003 46%, #7cfff019 49.8%, #96ffe66b 50%, transparent 50.3%);
  transform: translateY(var(--scan-y, -40%));
  mix-blend-mode: screen;
}

/* A finite sticky scene, driven directly by ordinary document scrolling. */
.cinematic-active .hero-story {
  height: calc(var(--scene-height, 760px) + var(--scene-distance, 700px));
  isolation: isolate;
}
.cinematic-active .hero-sticky {
  position: sticky;
  top: var(--header-height, 92px);
  height: var(--scene-height, 760px);
  overflow: clip;
  isolation: isolate;
}
.cinematic-active .hero {
  height: 100%;
  position: relative;
  padding-block: 50px 95px;
  z-index: 2;
}
.cinematic-active .hero-copy {
  position: relative;
  z-index: 3;
  opacity: var(--copy-opacity, 1);
  transform: translate3d(var(--copy-x, 0px), var(--copy-y, 0px), 0);
  pointer-events: var(--copy-events, auto);
}
.cinematic-active .hero-copy:focus-within {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  padding: 24px;
  margin: -24px;
  background: #f6f8faf5;
  border-radius: 16px;
  box-shadow: 0 15px 50px #0a263a25;
}
.cinematic-active .hero-copy:focus-within > * {
  animation: none;
}
.cinematic-active .imaging-stage {
  position: relative;
  z-index: 1;
  transform-origin: center;
  transform: translate3d(var(--stage-x, 0px), var(--stage-y, 0px), 0)
    perspective(1400px)
    rotateX(var(--stage-rotate-x, 3deg))
    rotateY(var(--stage-rotate-y, -7deg))
    scale(var(--stage-scale, 1));
  border-radius: var(--stage-radius, 18px);
  box-shadow: 0 30px 80px -30px #061e3766;
}
.cinematic-active .stage-visual img {
  animation: none;
  /* Render the SVG at higher resolution before the compositor zooms it. */
  width: 400%;
  max-width: none;
  height: 400%;
  left: -150%;
  top: -150%;
  transform: scale(calc(var(--art-scale, 1) / 4)) rotate(var(--art-rotation, 0deg));
}
.cinematic-active .stage-top,
.cinematic-active .stage-bottom,
.cinematic-active .stage-coordinate {
  opacity: var(--stage-chrome, 1);
}
.cinematic-active .scene-backdrop {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0d2633;
  opacity: var(--backdrop-opacity, 0);
}
.cinematic-active .scene-caption {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9%;
  padding: 85px 24px 0;
  z-index: 4;
  text-align: center;
  color: #f4fffc;
  opacity: var(--caption-opacity, 0);
  transform: translate3d(0, var(--caption-y, 40px), 0);
  pointer-events: none;
  background: linear-gradient(transparent, #0d2633b5 66%, #0d2633e6);
}
.scene-kicker {
  display: block;
  font-size: 9px;
  letter-spacing: 2.4px;
  color: #85cdc7;
  margin-bottom: 14px;
}
.scene-caption p {
  font-size: clamp(34px, 4.8vw, 65px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -2.3px;
}
.scene-caption p span {
  color: #8de9d8;
}
.scene-caption-note {
  display: block;
  margin-top: 17px;
  font-size: 12px;
  color: #b5cdd2;
}
.cinematic-active .scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  bottom: 40px;
  left: max(48px, calc((100% - 1280px) / 2));
  z-index: 4;
  font-size: 10px;
  color: #657d89;
  opacity: var(--cue-opacity, 1);
  transform: translateY(var(--cue-y, 0px));
  pointer-events: none;
}
.scroll-mouse {
  width: 17px;
  height: 26px;
  border: 1px solid #8fa7ad;
  border-radius: 8px;
  padding-top: 5px;
  display: flex;
  justify-content: center;
}
.scroll-mouse i {
  width: 2px;
  height: 5px;
  background: #078889;
  border-radius: 2px;
  animation: scroll-tick 1.7s ease-in-out infinite;
}
.scroll-cue-line {
  width: 65px;
  height: 1px;
  background: #c6d6dc;
}
.cinematic-active .scene-timeline {
  display: flex;
  align-items: center;
  gap: 15px;
  position: absolute;
  bottom: 40px;
  right: max(48px, calc((100% - 1280px) / 2));
  z-index: 4;
  color: var(--timeline-color, #657d89);
  font: 8px Consolas, monospace;
  letter-spacing: 1.5px;
  pointer-events: none;
}
.scene-progress-track {
  width: 75px;
  height: 1px;
  background: #7a9aab44;
  position: relative;
}
.scene-progress-track i {
  display: block;
  height: 100%;
  width: 100%;
  background: #2aaca3;
  transform-origin: left;
  transform: scaleX(var(--scene-progress, 0));
}
.hero-story.is-in-scene .imaging-stage {
  will-change: transform;
}
.hero-story.is-in-scene .stage-visual img {
  will-change: transform;
}
.motion-enabled .workspace-section {
  position: relative;
  z-index: 5;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px #061e3612;
}

/* Reveal visibility is enabled only after an observer has been installed. */
.motion-enabled .reveal-pending {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(.975);
}
.motion-enabled .reveal-target {
  transition: opacity 750ms cubic-bezier(.16, 1, .3, 1),
    transform 750ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 250ms ease, border-color 250ms ease;
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms;
}
.motion-enabled .reveal-target:focus-within {
  opacity: 1;
  transform: none;
  transition: none;
}
.motion-enabled .component-card:hover {
  transform: translate3d(0, -7px, 0);
  border-color: #80b5b5;
  box-shadow: 0 20px 35px #18394d12;
}
.motion-enabled .desktop-card:hover {
  border-color: #a4c4c5;
  box-shadow: 0 16px 30px #123c4910;
}
.motion-enabled .button:active {
  transform: translateY(0) scale(.97);
}
.motion-disabled .stage-visual img,
.motion-disabled .hero-copy > *,
.motion-disabled .scroll-mouse i {
  animation: none;
}
@keyframes hero-arrive {
  from { opacity: 0; transform: translate3d(0, 23px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes scroll-tick {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(5px); opacity: 1; }
}
@media (max-width: 720px) {
  .main-nav { flex-wrap: wrap; gap: 8px; }
  .motion-enabled .imaging-stage { transform: none; }
  .motion-enabled .reveal-pending { transform: translate3d(0, 22px, 0); }
  .motion-enabled .reveal-target { transition-duration: 550ms; }
  .motion-toggle { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-enabled .hero-copy > *,
  .motion-enabled .stage-visual img,
  .scroll-mouse i { animation: none !important; }
  .reveal-pending { opacity: 1 !important; transform: none !important; }
  .reveal-target { transition: none !important; }
}
