/* Movement follows the same connected DG curves used throughout the identity. */
.hero-art-depth {
  transform-origin: 1210px 400px;
  transform: translate(var(--art-x, 0px), var(--art-y, 0px))
    rotate(var(--art-turn, 0deg));
}
.hero-echo {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.42;
  transform: translate(var(--echo-x), var(--echo-y));
}
.hero-echo-one {
  --echo-x: 44px;
  --echo-y: -28px;
  opacity: 0.42;
}
.hero-echo-two {
  --echo-x: 88px;
  --echo-y: -54px;
  opacity: 0.3;
}
.hero-echo-three {
  --echo-x: 132px;
  --echo-y: -80px;
  opacity: 0.2;
}
.hero-d-piece,
.hero-g-piece {
  transform-box: fill-box;
  transform-origin: center;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--read-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
.site-header.is-scrolled {
  border-bottom-color: #23282026;
}
.footer-controls {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
  margin-left: auto;
}
.motion-toggle {
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.motion-toggle[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy .eyebrow {
    animation: settle-in 650ms 60ms both;
  }
  .hero-hook > span {
    animation: headline-in 850ms 130ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-brand > span {
    animation: headline-in 1.1s 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-description {
    animation: settle-in 700ms 390ms both;
  }
  .hero-actions {
    animation: settle-in 700ms 480ms both;
  }
  .hero-experience,
  .hero-footnote {
    animation: settle-in 700ms 560ms both;
  }
  .hero-d-piece {
    animation: connect-d 1.6s 120ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-g-piece {
    animation: connect-g 1.8s 230ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-echo {
    animation: open-echo 1.9s 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-echo-two {
    animation-delay: 380ms;
  }
  .hero-echo-three {
    animation-delay: 500ms;
  }
  .hero-route {
    stroke-dasharray: 1;
    animation: draw-route 1.8s 450ms cubic-bezier(0.3, 0.6, 0.3, 1) both;
  }
  .hero-route + .hero-route {
    animation-delay: 570ms;
  }
  .motion-enter {
    transition:
      opacity 750ms var(--enter-delay, 0ms),
      transform 750ms var(--enter-delay, 0ms) cubic-bezier(0.16, 1, 0.3, 1);
  }
  .motion-enter:not(.is-visible) {
    opacity: 0;
    transform: translateY(24px);
  }
  .motion-enter.is-visible {
    opacity: 1;
    transform: none;
  }
  .process li.motion-enter .process-track::after {
    content: "";
    position: absolute;
    height: 2px;
    top: 17px;
    left: 35px;
    width: calc(100% - 9px);
    background: #e68565;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s calc(var(--enter-delay, 0ms) + 180ms)
      cubic-bezier(0.3, 0.6, 0.3, 1);
  }
  .process li.is-visible .process-track::after {
    transform: scaleX(1);
  }
  .process li:last-child .process-track::after {
    display: none;
  }
  .process-track > span {
    transition:
      background 450ms var(--enter-delay, 0ms),
      border-color 450ms var(--enter-delay, 0ms),
      color 450ms var(--enter-delay, 0ms);
  }
  .process li.is-visible .process-track > span {
    background: #e68565;
    border-color: #e68565;
    color: #252e23;
  }
  .desktop-nav a:not(.nav-contact),
  .text-link {
    position: relative;
  }
  .desktop-nav a:not(.nav-contact)::after,
  .text-link::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms;
  }
  .desktop-nav a:hover::after,
  .text-link:hover::after,
  .desktop-nav a:focus-visible::after,
  .text-link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  .nav-contact,
  .button:not(:disabled) {
    transition:
      background 220ms,
      color 220ms,
      transform 220ms;
  }
  .desktop-nav .nav-contact:hover {
    background: var(--ink);
    color: var(--paper);
  }
  .button:not(:disabled):hover {
    transform: translateY(-2px);
  }
  .button:not(:disabled):active {
    transform: translateY(0);
  }
  .hero-scroll > span {
    transition: transform 200ms;
  }
  .hero-scroll:hover > span {
    transform: translateY(4px);
  }
  .faq-list details[open] > p {
    animation: settle-in 250ms ease-out;
  }
  .mobile-menu[open] nav {
    animation: settle-in 220ms ease-out;
  }
  @keyframes headline-in {
    from {
      transform: translateY(110%);
    }
    to {
      transform: translateY(0);
    }
  }
  @keyframes settle-in {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes connect-d {
    from {
      opacity: 0;
      transform: translate(-18px, -9px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes connect-g {
    from {
      opacity: 0;
      transform: translate(18px, 12px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes open-echo {
    from {
      transform: translate(0, 0);
      opacity: 0;
    }
    to {
      transform: translate(var(--echo-x), var(--echo-y));
    }
  }
  @keyframes draw-route {
    from {
      stroke-dashoffset: 1;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
}
@media (max-width: 900px) {
  .process li:nth-child(2) .process-track::after {
    display: none;
  }
  .process li.motion-enter .process-track::after {
    width: calc(100% - 5px);
  }
}
@media (max-width: 700px) {
  .motion-enter {
    --enter-delay: 0ms !important;
  }
  .process li.motion-enter .process-track::after {
    display: block;
    height: calc(100% - 35px);
    width: 2px;
    top: 35px;
    left: 17px;
    transform: scaleY(0);
    transform-origin: top;
  }
  .process li.is-visible .process-track::after {
    transform: scaleY(1);
  }
  .process li:last-child .process-track::after {
    display: none;
  }
}
@media (max-width: 700px) and (max-height: 740px) {
  .hero-scene {
    width: 460px;
    height: 230px;
    left: calc(50% - 355px);
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art-depth {
    transform: none;
  }
}
@media (max-width: 700px) and (max-height: 650px) {
  .hero-scene {
    width: 290px;
    height: 145px;
    left: calc(50% - 205px);
    bottom: 0;
  }
  .hero-layout {
    padding-bottom: 145px;
  }
  .hero-footnote {
    display: none;
  }
}
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;
}
html[data-motion="off"] .hero-art-depth {
  transform: none;
}
@media print {
  .motion-enter {
    opacity: 1 !important;
    transform: none !important;
  }
  .brand-graphic .trace {
    stroke-dashoffset: 0 !important;
  }
  .brand-graphic .color-plane {
    opacity: 1 !important;
    transform: none !important;
  }
  .motion-toggle {
    display: none;
  }
}
