/* All moving parts are vectors, with OS reduced-motion support. */
.cloud {
  fill: #fffcf3;
  opacity: 0.95;
  animation: cloud-drift 20s ease-in-out infinite alternate;
  transition:
    fill 0.8s,
    opacity 0.8s;
}
.cloud-two {
  animation-delay: -11s;
  animation-duration: 26s;
}
.cloud-three {
  animation-delay: -8s;
  animation-duration: 32s;
}
.sky-blue,
.sky-horizon,
.harbor-top,
.harbor-bottom {
  transition: stop-color 0.8s;
}
.day-sun,
.night-moon,
.night-stars {
  transition: opacity 0.8s;
}
.night-moon,
.night-stars {
  opacity: 0;
}
[data-scene-time='night'] .sky-blue {
  stop-color: #687e95;
}
[data-scene-time='night'] .sky-horizon {
  stop-color: #243e57;
}
[data-scene-time='night'] .harbor-top {
  stop-color: #486a7a;
}
[data-scene-time='night'] .harbor-bottom {
  stop-color: #91a89f;
}
[data-scene-time='night'] .cloud {
  fill: #d3dce3;
  opacity: 0.32;
}
[data-scene-time='night'] .day-sun {
  opacity: 0;
}
[data-scene-time='night'] .night-moon,
[data-scene-time='night'] .night-stars {
  opacity: 1;
}
[data-scene-time='night'] .portland-scene {
  --gull-color: #f0e4c8;
}
[data-scene-time='night'] #window path[fill='#365951'] {
  fill: #d9bb7a;
}
.water-line {
  animation: ripple 6s ease-in-out infinite alternate;
}
.boat {
  animation: bob 5s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.boat-two {
  animation-delay: -2s;
}
.tree-crown {
  animation: sway 7s ease-in-out infinite alternate;
  transform-origin: 50% 95%;
  transform-box: fill-box;
}
.tree-two .tree-crown {
  animation-delay: -3s;
}
.tree-three .tree-crown {
  animation-delay: -5s;
}
.walker-one {
  animation: stroll-one 40s linear infinite;
}
.walker-two {
  animation: stroll-two 48s linear infinite;
}
.person-body {
  animation: step-bob 0.9s ease-in-out infinite;
}
.leg-a {
  animation: stride 0.9s ease-in-out infinite alternate;
  transform-origin: 0 0;
}
.leg-b {
  animation: stride 0.9s ease-in-out infinite alternate-reverse;
  transform-origin: 0 0;
}
.arm {
  animation: arm-swing 1.8s ease-in-out infinite;
  transform-origin: 0 0;
}
.scarf-end {
  animation: scarf 2.6s ease-in-out infinite alternate;
  transform-origin: 0 0;
}
.bird-one {
  animation: bird-hop 8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: bottom;
}
.bird-two {
  animation: bird-hop 11s -4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: bottom;
}
.bird-three {
  animation: bird-peck 6s -2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: bottom;
}
.falling-leaf {
  animation: fall-leaf 12s linear infinite;
  opacity: 0;
}
.leaf-two {
  animation-delay: -4s;
  animation-duration: 15s;
}
.leaf-three {
  animation-delay: -8s;
  animation-duration: 13s;
}
.leaf-four {
  animation-delay: -6s;
  animation-duration: 17s;
}
.leaf-five {
  animation-delay: -10s;
  animation-duration: 14s;
}
.steam {
  animation: steam 4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: bottom;
}
.steam-two {
  animation-delay: -2s;
}
.flying-gull {
  fill: none;
  stroke: var(--gull-color);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.flying-gull ellipse {
  fill: var(--gull-color);
  stroke: none;
}
.gull-flight-one {
  animation: gull-crossing 36s -9s linear infinite;
}
.gull-flight-two {
  animation: gull-return 43s -26s linear infinite;
}
.gull-wing-left,
.gull-wing-right {
  transform-origin: 0 0;
  animation: gull-wingbeat 2.2s ease-in-out infinite;
}
.gull-flight-two .gull-wing-left,
.gull-flight-two .gull-wing-right {
  animation-delay: -0.9s;
}
.tree-flight {
  animation: tree-flight var(--flight-time) var(--flight-delay) ease-in-out infinite;
}
.chickadee-flight {
  --flight-time: 24s;
  --flight-delay: -6s;
  --perch-left-x: 210px;
  --perch-left-y: 300px;
  --perch-right-x: 1220px;
  --perch-right-y: 230px;
  --flight-height: 158px;
}
.hummingbird-flight {
  --flight-time: 19s;
  --flight-delay: -11s;
  --perch-left-x: 325px;
  --perch-left-y: 365px;
  --perch-right-x: 1110px;
  --perch-right-y: 300px;
  --flight-height: 240px;
}
.bird-facing {
  animation: bird-facing var(--flight-time) var(--flight-delay) steps(1, end) infinite;
}
.chickadee-wing {
  transform-origin: 0 -2px;
  animation: small-wingbeat 0.18s ease-in-out infinite alternate;
}
.hummingbird-wing {
  transform-origin: 0 -2px;
  animation: small-wingbeat 0.085s ease-in-out infinite alternate;
}
.dog-tail {
  animation: tail 0.8s ease-in-out infinite alternate;
  transform-origin: 0 0;
}
.sitting-leg {
  animation: arm-swing 3s ease-in-out infinite;
  transform-origin: 0 0;
}
.festoon-glow {
  animation: lantern-glow 5s ease-in-out infinite alternate;
}
.festoon-glow:nth-child(2n) {
  animation-delay: -2.5s;
}
@keyframes lantern-glow {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.8;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cloud-drift {
  to {
    transform: translateX(30px);
  }
}
@keyframes ripple {
  to {
    transform: translateX(12px);
    opacity: 0.5;
  }
}
@keyframes bob {
  50% {
    transform: translateY(3px) rotate(1deg);
  }
}
@keyframes sway {
  to {
    transform: rotate(2deg);
  }
}
@keyframes stroll-one {
  0% {
    transform: translateX(-240px);
  }
  100% {
    transform: translateX(1690px);
  }
}
@keyframes stroll-two {
  0% {
    transform: translateX(1600px);
  }
  100% {
    transform: translateX(-200px);
  }
}
@keyframes step-bob {
  50% {
    transform: translateY(-2px);
  }
}
@keyframes stride {
  from {
    transform: rotate(-23deg);
  }
  to {
    transform: rotate(23deg);
  }
}
@keyframes arm-swing {
  50% {
    transform: rotate(12deg);
  }
}
@keyframes scarf {
  to {
    transform: rotate(-14deg);
  }
}
@keyframes bird-hop {
  0%,
  35%,
  45%,
  58%,
  100% {
    transform: translateY(0) rotate(0);
  }
  39%,
  52% {
    transform: translateY(-9px) rotate(-4deg);
  }
  65%,
  70% {
    transform: rotate(12deg);
  }
}
@keyframes bird-peck {
  0%,
  40%,
  55%,
  70%,
  100% {
    transform: rotate(0);
  }
  45%,
  60% {
    transform: rotate(15deg);
  }
}
@keyframes fall-leaf {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 0;
  }
  8%,
  80% {
    opacity: 1;
  }
  100% {
    transform: translate(120px, 230px) rotate(240deg);
    opacity: 0;
  }
}
@keyframes steam {
  0% {
    opacity: 0;
    transform: translateY(3px);
  }
  30% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}
@keyframes gull-crossing {
  0% {
    transform: translate(-80px, 180px);
  }
  45% {
    transform: translate(650px, 123px);
  }
  100% {
    transform: translate(1520px, 185px);
  }
}
@keyframes gull-return {
  0% {
    transform: translate(1520px, 158px);
  }
  55% {
    transform: translate(640px, 205px);
  }
  100% {
    transform: translate(-80px, 132px);
  }
}
@keyframes gull-wingbeat {
  0%,
  100% {
    transform: scaleY(1);
  }
  42% {
    transform: scaleY(-0.65);
  }
  70% {
    transform: scaleY(0.4);
  }
}
@keyframes tree-flight {
  0%,
  8%,
  100% {
    transform: translate(var(--perch-left-x), var(--perch-left-y));
  }
  28% {
    transform: translate(670px, var(--flight-height));
  }
  46%,
  56% {
    transform: translate(var(--perch-right-x), var(--perch-right-y));
  }
  78% {
    transform: translate(760px, var(--flight-height));
  }
}
@keyframes bird-facing {
  0%,
  55% {
    transform: scaleX(1);
  }
  56%,
  99% {
    transform: scaleX(-1);
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes small-wingbeat {
  from {
    transform: scaleY(1) rotate(-12deg);
  }
  to {
    transform: scaleY(-0.5) rotate(18deg);
  }
}
@keyframes tail {
  to {
    transform: rotate(20deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portland-scene *,
  .portland-scene *::before,
  .portland-scene *::after {
    animation: none !important;
    transition: none !important;
  }
  .walker-one {
    transform: translateX(560px);
  }
  .walker-two {
    transform: translateX(850px);
  }
  .falling-leaf {
    opacity: 0.75;
  }
  .gull-flight-one {
    transform: translate(510px, 160px);
  }
  .gull-flight-two {
    transform: translate(915px, 180px);
  }
  .tree-flight {
    transform: translate(var(--perch-left-x), var(--perch-left-y));
  }
}
[data-scene-motion="playing"] .portland-scene > svg,
[data-scene-motion="playing"] .portland-scene > svg * { animation-play-state: running; }
body:not([data-scene-motion="playing"]) .portland-scene > svg,
body:not([data-scene-motion="playing"]) .portland-scene > svg * { animation-play-state: paused; }
