/* Grounded motion correction: make arrival and interruption read as deliberate human actions. */

.runner-rope {
  position: absolute;
  z-index: 790;
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.14), rgba(8, 8, 8, 0.72));
  transform: translateX(-50%);
  transform-origin: top;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, height 220ms ease;
}

.runner-rope::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #080808;
  transform: translateX(-50%);
}

.runner-rope.is-visible {
  opacity: 0.72;
}

.idle-runner[data-rappelling="true"] .runner-shadow {
  opacity: 0;
}

.idle-runner[data-rappelling="true"] .runner-body {
  animation: rappel-body 360ms ease-in-out infinite alternate;
}

.idle-runner[data-rappelling="true"] .runner-shoulder-left {
  transform: rotate(112deg);
}

.idle-runner[data-rappelling="true"] .runner-elbow-left {
  transform: rotate(-34deg);
}

.idle-runner[data-rappelling="true"] .runner-shoulder-right {
  transform: rotate(-78deg);
}

.idle-runner[data-rappelling="true"] .runner-elbow-right {
  transform: rotate(42deg);
}

.idle-runner[data-rappelling="true"] .runner-hip-left {
  transform: rotate(-34deg);
}

.idle-runner[data-rappelling="true"] .runner-knee-left {
  transform: rotate(58deg);
}

.idle-runner[data-rappelling="true"] .runner-hip-right {
  transform: rotate(26deg);
}

.idle-runner[data-rappelling="true"] .runner-knee-right {
  transform: rotate(-42deg);
}

.idle-runner[data-interruption="retreat"].is-interrupted .runner-body {
  animation: retreat-body 170ms ease-in-out infinite alternate;
  transform-origin: 24px 71px;
}

.idle-runner[data-interruption="retreat"].is-interrupted .runner-shoulder-left {
  animation: retreat-arm-left 170ms ease-in-out infinite alternate;
}

.idle-runner[data-interruption="retreat"].is-interrupted .runner-shoulder-right {
  animation: retreat-arm-right 170ms ease-in-out infinite alternate;
}

.idle-runner[data-interruption="retreat"].is-interrupted .runner-hip-left {
  animation: retreat-leg-left 170ms ease-in-out infinite alternate;
}

.idle-runner[data-interruption="retreat"].is-interrupted .runner-hip-right {
  animation: retreat-leg-right 170ms ease-in-out infinite alternate;
}

.idle-runner[data-interruption="retreat"].is-interrupted .runner-knee-left {
  transform: rotate(48deg);
}

.idle-runner[data-interruption="retreat"].is-interrupted .runner-knee-right {
  transform: rotate(-46deg);
}

@keyframes rappel-body {
  from { transform: rotate(-2deg) translateY(0); }
  to { transform: rotate(2deg) translateY(2px); }
}

@keyframes retreat-body {
  from { transform: rotate(-5deg) translateY(0); }
  to { transform: rotate(-9deg) translateY(-2px); }
}

@keyframes retreat-arm-left {
  from { transform: rotate(40deg); }
  to { transform: rotate(-34deg); }
}

@keyframes retreat-arm-right {
  from { transform: rotate(-42deg); }
  to { transform: rotate(36deg); }
}

@keyframes retreat-leg-left {
  from { transform: rotate(-38deg); }
  to { transform: rotate(34deg); }
}

@keyframes retreat-leg-right {
  from { transform: rotate(40deg); }
  to { transform: rotate(-36deg); }
}

@media (prefers-reduced-motion: reduce) {
  .runner-rope {
    display: none !important;
  }
}

/* Lightweight, viewport-safe fly-by between the introduction and selected work. */
.love-flyover {
  position: relative;
  width: 100vw;
  height: clamp(92px, 10vw, 132px);
  margin: clamp(8px, 2vw, 22px) 0 clamp(12px, 2.8vw, 30px);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  contain: layout paint;
  pointer-events: none;
}

.love-flight {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  width: max-content;
  color: var(--ink);
  transform: translate3d(calc(-100% - 8vw), -50%, 0);
  animation: love-flyby 13s linear infinite;
  will-change: transform;
}

.love-banner {
  min-width: clamp(152px, 17vw, 220px);
  padding: clamp(7px, .7vw, 9px) clamp(10px, 1.2vw, 15px);
  border: 1px solid currentColor;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(10px, .86vw, 12px);
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.love-tow {
  position: relative;
  width: clamp(22px, 3.2vw, 46px);
  height: 1px;
  background: currentColor;
  opacity: .72;
}

.love-tow::before,
.love-tow::after {
  content: "";
  position: absolute;
  right: 0;
  width: 42%;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
}

.love-tow::before {
  top: -3px;
  transform: rotate(8deg);
}

.love-tow::after {
  top: 3px;
  transform: rotate(-8deg);
}

.love-plane {
  width: clamp(48px, 5.4vw, 72px);
  height: auto;
  flex: 0 0 auto;
  fill: currentColor;
}

@keyframes love-flyby {
  0% { transform: translate3d(calc(-100% - 8vw), -50%, 0); }
  32% { transform: translate3d(32vw, calc(-50% - 3px), 0); }
  68% { transform: translate3d(68vw, calc(-50% + 3px), 0); }
  100% { transform: translate3d(calc(100vw + 8vw), -50%, 0); }
}

@media (max-width: 640px) {
  .love-flyover {
    height: 86px;
    margin-top: 4px;
    margin-bottom: 16px;
  }

  .love-flight {
    animation-duration: 10.5s;
  }

  .love-banner {
    min-width: 148px;
    padding: 7px 9px;
    font-size: 10px;
  }

  .love-tow {
    width: 20px;
  }

  .love-plane {
    width: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .love-flight {
    left: 50%;
    animation: none !important;
    transform: translate3d(-50%, -50%, 0);
  }
}
