/* Ambient routes and grids share the site's ink, paper and copper palette. */
.qf-hero,
.qf-services,
#channels {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.qf-hero > .alignwide,
.qf-services > .alignwide,
#channels > .alignwide {
  position: relative;
  z-index: 1;
}
.qf-hero { padding-bottom: 66px; }
.qf-hero::before {
  position: absolute;
  inset: -72px;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(20, 37, 46, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 37, 46, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 38%, #000 95%);
  animation: qf-grid-drift 32s linear infinite paused;
}
.qf-hero .qf-hero-mark {
  position: absolute;
  top: -16px;
  right: max(-20px, calc((100vw - 1540px) / 2));
  z-index: 0;
  width: clamp(440px, 45vw, 680px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 !important;
  opacity: .88;
  pointer-events: none;
}
.qf-hero .qf-hero-mark::before,
.qf-hero .qf-hero-mark::after { display: none; }
.qf-hero-mark canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.qf-motion-toggle {
  position: absolute;
  right: var(--qf-gutter);
  bottom: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(20, 37, 46, .2);
  border-radius: 24px;
  background: var(--qf-paper);
  color: var(--qf-muted);
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
}
.qf-motion-toggle::before { content: ""; width: 5px; height: 8px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; box-sizing: content-box; }
:root[data-qf-motion="paused"] .qf-motion-toggle::before { width: 0; height: 0; border: 4px solid transparent; border-left: 6px solid currentColor; border-right: 0; }
.qf-motion-toggle:hover { border-color: var(--qf-orange); color: var(--qf-ink); }
.qf-services::before,
.qf-services::after {
  position: absolute;
  inset: -72px;
  z-index: 0;
  pointer-events: none;
  content: "";
}
.qf-services::before {
  background-image: linear-gradient(rgba(248, 247, 244, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(248, 247, 244, .065) 1px, transparent 1px), radial-gradient(circle, rgba(227, 164, 142, .44) 1px, transparent 2px);
  background-size: 72px 72px, 72px 72px, 216px 216px;
  animation: qf-grid-drift 36s linear infinite paused;
}
.qf-services::after {
  background: linear-gradient(112deg, transparent 38%, rgba(216, 95, 58, .09) 50%, transparent 62%);
  animation: qf-light-sweep 20s ease-in-out infinite alternate paused;
}
#channels::before,
#channels::after {
  position: absolute;
  top: 28px;
  right: -245px;
  z-index: 0;
  width: 640px;
  height: 640px;
  border: 1px solid rgba(20, 37, 46, .08);
  border-radius: 50%;
  pointer-events: none;
  content: "";
}
#channels::after {
  top: 108px;
  right: -165px;
  width: 480px;
  height: 480px;
  border: 1px dashed rgba(216, 95, 58, .19);
  background: radial-gradient(circle at 50% 0, rgba(216, 95, 58, .75) 0 3px, transparent 4px);
  animation: qf-orbit 48s linear infinite paused;
}
:root[data-qf-motion="running"] .qf-hero::before,
:root[data-qf-motion="running"] .qf-services::before,
:root[data-qf-motion="running"] .qf-services::after,
:root[data-qf-motion="running"] #channels::after { animation-play-state: running; }
@keyframes qf-grid-drift { to { transform: translateY(72px); } }
@keyframes qf-light-sweep { from { transform: translateX(-24%); } to { transform: translateX(24%); } }
@keyframes qf-orbit { to { transform: rotate(360deg); } }
@media (max-width: 1000px) {
  .qf-hero .qf-hero-mark { width: 470px; right: -85px; top: 12px; opacity: .67; }
}
@media (max-width: 781px) {
  .qf-hero { padding-bottom: 76px; }
  .qf-hero .qf-hero-mark { width: 340px; right: -130px; top: -28px; opacity: .55; }
  .qf-hero::before { background-size: 54px 54px; opacity: .5; mask-image: linear-gradient(90deg, transparent 50%, #000); }
  .qf-motion-toggle { bottom: 20px; }
  .qf-services::before { opacity: .65; }
  #channels::before { right: -440px; opacity: .6; }
  #channels::after { right: -360px; opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  .qf-hero::before, .qf-services::before, .qf-services::after, #channels::after { animation: none !important; }
}
