/* Motion Study 01. Embedded A/B and responsive Canvas boards; see docs. */
.motion-study {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 8.4722%;
}
.study-composition {
  position: relative;
  container-type: inline-size;
  height: auto;
  aspect-ratio: 1196 / 560;
  --study-travel: 1;
}
#make-title {
  position: absolute;
  inset: 0;
  font-size: 6.27cqw;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}
#make-title > span {
  position: absolute;
  white-space: nowrap;
}
.study-intro {
  top: 5.35cqw;
  left: 0;
}
.study-crafting {
  display: block;
  margin-top: 2.26cqw;
  font-size: 6.438cqw;
}
.study-websites {
  top: 15.13cqw;
  left: 45.65cqw;
  font-size: 6.438cqw;
}
.study-software {
  top: 25cqw;
  left: 17.06cqw;
}
.study-apps {
  top: 25cqw;
  left: 79.77cqw;
}
.study-art {
  position: absolute;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
  transform: rotate(-3deg);
}
.study-browser {
  top: 14.46cqw;
  left: 27.76cqw;
  width: 16.22cqw;
  animation-name: study-browser;
  animation-duration: 6.8s;
}
.study-tool {
  top: 25cqw;
  left: 0;
  width: 15.385cqw;
  transform: rotate(2deg);
  animation-name: study-tool;
  animation-duration: 7.4s;
  animation-delay: 0.55s;
}
.study-phones {
  /* Reserve upward travel beneath the website headline's descenders. */
  top: calc(22.57cqw + 12px);
  left: 63.13cqw;
  width: 13.127cqw;
  animation-name: study-phones;
  animation-duration: 8.2s;
  animation-delay: 1.05s;
}
.study-hover {
  --study-pointer-x: 0px;
  --study-pointer-y: 0px;
  --study-pointer-rotate: 0deg;
  transform: translate3d(var(--study-pointer-x), var(--study-pointer-y), 0)
    rotate(var(--study-pointer-rotate));
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
}
.study-vector {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform-origin: center center;
  animation: study-surface-breathe 3.7s ease-in-out infinite;
  animation-play-state: paused;
}
.study-tool .study-vector {
  animation-duration: 4.3s;
  animation-delay: -1.4s;
}
.study-phones .study-vector {
  animation-duration: 4.9s;
  animation-delay: -2.5s;
}
/* The independent badge animation wraps an exported SVG group in JS.
   The source vector and its original transforms remain unchanged. */
.study-badge-drift {
  animation: study-badge-float 3.1s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.study-tool .study-badge-drift { animation-duration: 3.9s; animation-delay: -1.2s; }
.study-phones .study-badge-drift { animation-duration: 4.4s; animation-delay: -2.1s; }
.study-running .study-art,
.study-running .study-vector,
.study-running .study-badge-drift {
  animation-play-state: running;
}
.study-description {
  position: absolute;
  top: 38.37cqw;
  left: 0;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.76cqw, 21px);
  line-height: 1.5;
}
/* Asymmetric paths preserve both approved A/B positions while removing
   the metronomic feel of a straight two-keyframe interpolation. */
@keyframes study-browser {
  0% { transform: translate(0, 0) rotate(-3deg); }
  37% { transform: translate(calc(6px * var(--study-travel)), calc(-4px * var(--study-travel))) rotate(-1.7deg); }
  75% { transform: translate(calc(9px * var(--study-travel)), calc(-8px * var(--study-travel))) rotate(-0.4deg); }
  100% { transform: translate(calc(10px * var(--study-travel)), calc(-9px * var(--study-travel))) rotate(0deg); }
}
@keyframes study-tool {
  0% { transform: translate(0, 0) rotate(2deg); }
  32% { transform: translate(calc(-4px * var(--study-travel)), calc(3px * var(--study-travel))) rotate(0.8deg); }
  70% { transform: translate(calc(-7px * var(--study-travel)), calc(6px * var(--study-travel))) rotate(-0.5deg); }
  100% { transform: translate(calc(-8px * var(--study-travel)), calc(8px * var(--study-travel))) rotate(-1deg); }
}
@keyframes study-phones {
  0% { transform: translate(0, 0) rotate(-3deg); }
  40% { transform: translate(calc(5px * var(--study-travel)), calc(-6px * var(--study-travel))) rotate(-1.9deg); }
  76% { transform: translate(calc(7px * var(--study-travel)), calc(-9px * var(--study-travel))) rotate(-0.5deg); }
  100% { transform: translate(calc(8px * var(--study-travel)), calc(-10px * var(--study-travel))) rotate(0deg); }
}
@keyframes study-surface-breathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -2px, 0) scale(1.016); }
}
@keyframes study-badge-float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(2px, -3px); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .study-art:hover { animation-play-state: paused; }
   .study-art:hover .study-hover {
    transform: translate3d(
      var(--study-pointer-x),
      calc(var(--study-pointer-y) - 4px),
      0
    ) rotate(var(--study-pointer-rotate)) scale(1.035);
  }
}
@media (min-width: 1441px) {
  .motion-study { padding-inline: 122px; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .motion-study { padding-inline: 7.674%; }
  .study-composition { aspect-ratio: 706 / 760; --study-travel: 0.5; }
  #make-title { font-size: 8.36cqw; line-height: 1.29; }
  .study-intro { top: 9.07cqw; }
  .study-opening { display: block; }
  .study-crafting { display: inline; margin: 0; font-size: inherit; }
  .study-websites { top: 33.85cqw; left: 0; font-size: 9.915cqw; }
  .study-software { top: 52.41cqw; left: 0; font-size: 9.77cqw; }
  .study-apps { top: 71.53cqw; left: 0; font-size: 10.198cqw; }
  .study-browser { top: 33.85cqw; left: 58.5cqw; width: 27.48cqw; }
  .study-tool { top: 53.4cqw; left: 79.04cqw; width: 26.06cqw; }
  .study-phones { top: 68.27cqw; left: 41.78cqw; width: 22.24cqw; }
  .study-description { top: 96.31cqw; max-width: 65cqw; font-size: 2.69cqw; }
}
@media (max-width: 600px) {
  .motion-study { padding-inline: 24px; }
  .study-composition { aspect-ratio: 342 / 800; --study-travel: 0.5; }
  #make-title { font-size: 10.234cqw; line-height: 1.69; }
  .study-intro { top: 14.04cqw; }
  .study-independent { display: block; font-size: 11.696cqw; line-height: 1.475; }
  .study-crafting { display: inline; margin: 0; font-size: inherit; }
  .study-websites { top: 55.26cqw; left: 0; font-size: 16.08cqw; line-height: 1.2; }
  .study-software { top: 76.61cqw; left: 0; font-size: 13.45cqw; line-height: 1.2; }
  .study-apps { top: 95.62cqw; left: 0; font-size: 16.96cqw; line-height: 1.2; }
  .study-browser { top: 126.02cqw; left: -1.17cqw; width: 56.725cqw; }
  .study-phones { top: 119.88cqw; left: 56.14cqw; width: 45.9cqw; animation: none; }
  .study-tool { top: 164.04cqw; left: 22.8cqw; width: 53.8cqw; animation: none; }
  /* Preserve calm phone behavior: one ambient object, two static companions. */
  .study-phones .study-vector,
  .study-tool .study-vector,
  .study-phones .study-badge-drift,
  .study-tool .study-badge-drift { animation: none; }
  .study-description { top: 203.51cqw; max-width: 66cqw; font-size: 16px; }
  .study-description-end { display: none; }
}
@media (max-width: 360px) {
  .study-description { font-size: 14px; max-width: 75cqw; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-study .study-art,
  .motion-study .study-vector,
  .motion-study .study-badge-drift { animation: none; }
  .motion-study .study-hover {
    transform: none;
    transition: none;
  }
}
