/* Riverside quiet motion (Nov 2026). Small, calm touches that match the home page.
   Everything here is opacity and transform only, so nothing changes the layout or pushes content.
   All of it switches off for visitors who ask their device for reduced motion, and in print.
   motion.js adds the data-mo* marks; a page that never runs it simply shows everything as before. */
@media (prefers-reduced-motion: no-preference) {

  /* 1. The page title settles in when a page opens (the home page has its own version). */
  html:not(.mo-done) #dc-root section:first-of-type:not(:has([data-r="herocard"])) h1 { animation: moRise .7s cubic-bezier(.2,.7,.3,1) backwards; }
  html:not(.mo-done) #dc-root section:first-of-type:not(:has([data-r="herocard"])) h1 ~ * { animation: moRise .7s cubic-bezier(.2,.7,.3,1) .09s backwards; }
  html:not(.mo-done) #dc-root section:first-of-type [data-r="heroimg"] { animation: moFade .9s ease-out .12s backwards; }
  @keyframes moRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes moFade { from { opacity: 0; } to { opacity: 1; } }

  /* 2. Sections further down the page ease in once as they are scrolled to (same feel as the home page). */
  html.mo-armed [data-mo=""] { opacity: 0; transform: translateY(16px); }
  [data-mo="in"] { transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }

  /* 3. Photos and paintings fade in when they finish loading instead of popping in. */
  img[data-mo-img=""] { opacity: 0; }
  img[data-mo-img="in"] { transition: opacity .6s ease-out; }

  /* 4. "Accepting new clients" dot: a soft ring, the same one as the Staff Hub status dot. */
  html body .rv-avail[data-st="open"] .rv-avail-dot { position: relative; }
  html body .rv-avail[data-st="open"] .rv-avail-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; pointer-events: none; animation: moRing 3.2s ease-out infinite; }
  @keyframes moRing { 0%, 12% { transform: scale(.6); opacity: 0; } 30% { opacity: .7; } 78%, 100% { transform: scale(1.5); opacity: 0; } }

  /* 5. Buttons and cards answer a tap or the mouse. */
  #dc-root a[style*="border-radius: 100px"], #dc-root button[style*="border-radius: 100px"], #dc-root .mo-card {
    transition: background .25s, color .25s, border-color .25s, box-shadow .3s, transform .2s cubic-bezier(.2,.7,.3,1) !important; }
  #dc-root a[style*="border-radius: 100px"]:active, #dc-root button[style*="border-radius: 100px"]:active { transform: scale(.97); }
  #dc-root .mo-card:active { transform: scale(.985); }
  .mo-arr { display: inline-block; transition: transform .25s cubic-bezier(.2,.7,.3,1); }
  @media (hover: hover) and (pointer: fine) {
    #dc-root .mo-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23,56,79,.10) !important; }
    #dc-root .mo-card:hover:active { transform: translateY(0) scale(.99); }
    a:hover .mo-arr, button:hover .mo-arr { transform: translateX(3px); }
    a:hover .mo-arr[data-mo-dir="down"], button:hover .mo-arr[data-mo-dir="down"] { transform: translateY(3px); }
  }
  /* the top bar gains a soft shadow once the page has moved under it */
  #dc-root header { transition: box-shadow .3s ease; }
  html.mo-scrolled #dc-root header { box-shadow: 0 10px 24px -14px rgba(23,56,79,.28); }

  /* 6. Home, "Getting started": the three steps light up in order, once. */
  [data-mo-step] { position: relative; }
  [data-mo-step]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--mo-c, currentColor); opacity: 0; pointer-events: none; }
  html.mo-armed [data-mo-step]:not([data-mo-go]) { opacity: .35; transform: scale(.9); }
  [data-mo-step][data-mo-go] { animation: moStep .6s cubic-bezier(.2,.7,.3,1) backwards; }
  [data-mo-step][data-mo-go]::after { animation: moStepRing 1.5s ease-out .15s 1 backwards; }
  [data-mo-step="2"][data-mo-go], [data-mo-step="2"][data-mo-go]::after { animation-delay: .32s; }
  [data-mo-step="3"][data-mo-go], [data-mo-step="3"][data-mo-go]::after { animation-delay: .64s; }
  [data-mo-step="2"][data-mo-go]::after { animation-delay: .47s; }
  [data-mo-step="3"][data-mo-go]::after { animation-delay: .79s; }
  @keyframes moStep { from { opacity: .35; transform: scale(.9); } to { opacity: 1; transform: none; } }
  @keyframes moStepRing { 0% { transform: scale(.8); opacity: 0; } 25% { opacity: .75; } 100% { transform: scale(1.45); opacity: 0; } }
  /* 7. Winter only (the footer painting's snow scene, from Dec 1): a little snow drifts down over the painting.
     Two quiet layers, kept inside the painting's soft edge, and paused whenever the painting is off screen. */
  .mo-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 45% 50% at 50% 46%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 45% 50% at 50% 46%, #000 40%, transparent 100%); }
  .mo-snow i { position: absolute; left: -15%; right: -15%; top: -280px; bottom: -30px; background-repeat: repeat; animation: moSnowA 15s linear infinite paused; }
  .mo-snow[data-on] i { animation-play-state: running; }
  .mo-snow i:first-child { background-size: 170px 170px; background-image: radial-gradient(circle at 90px 46px, rgba(255,255,255,0.92) 0, rgba(255,255,255,0.92) 1.2px, rgba(255,255,255,0) 2.3px), radial-gradient(circle at 20px 26px, rgba(255,255,255,0.92) 0, rgba(255,255,255,0.92) 1.5px, rgba(255,255,255,0) 2.8px), radial-gradient(circle at 32px 101px, rgba(255,255,255,0.92) 0, rgba(255,255,255,0.92) 1.3px, rgba(255,255,255,0) 2.5px), radial-gradient(circle at 137px 62px, rgba(255,255,255,0.92) 0, rgba(255,255,255,0.92) 1.0px, rgba(255,255,255,0) 1.9px), radial-gradient(circle at 119px 115px, rgba(255,255,255,0.92) 0, rgba(255,255,255,0.92) 1.0px, rgba(255,255,255,0) 1.9px), radial-gradient(circle at 31px 149px, rgba(255,255,255,0.92) 0, rgba(255,255,255,0.92) 1.3px, rgba(255,255,255,0) 2.5px); }
  .mo-snow i:last-child { background-size: 250px 250px; animation-name: moSnowB; animation-duration: 27s; opacity: .8; background-image: radial-gradient(circle at 219px 152px, rgba(255,255,255,0.85) 0, rgba(255,255,255,0.85) 1.9px, rgba(255,255,255,0) 3.6px), radial-gradient(circle at 65px 169px, rgba(255,255,255,0.85) 0, rgba(255,255,255,0.85) 2.3px, rgba(255,255,255,0) 4.4px), radial-gradient(circle at 23px 155px, rgba(255,255,255,0.85) 0, rgba(255,255,255,0.85) 2.3px, rgba(255,255,255,0) 4.4px), radial-gradient(circle at 20px 64px, rgba(255,255,255,0.85) 0, rgba(255,255,255,0.85) 1.8px, rgba(255,255,255,0) 3.4px), radial-gradient(circle at 227px 42px, rgba(255,255,255,0.85) 0, rgba(255,255,255,0.85) 2.0px, rgba(255,255,255,0) 3.8px); }
  @keyframes moSnowA { from { transform: rotate(8deg) translateY(0); } to { transform: rotate(8deg) translateY(170px); } }
  @keyframes moSnowB { from { transform: rotate(5deg) translateY(0); } to { transform: rotate(5deg) translateY(250px); } }
}
@media print { .mo-snow { display: none; } }
@media print { [data-mo], img[data-mo-img], [data-mo-step] { opacity: 1 !important; transform: none !important; } }
