/* 2026-11-09 Motion v2 (Doug: v1 too subtle, "anything really cool?").
   Works on every phone: motion.js marks what is below the first screen and reveals it as it scrolls in (no flash, the
   first screen paints exactly as before). Only transform / opacity / clip-path change, so nothing shifts or reflows.
   Everything is off for people whose phone is set to reduce motion. Off switch: option rt2_motion = 0, or ?motion=0. */

/* Header: tucks away scrolling down, slides back on any scroll up (motion.js). */
.rt2-motion .rt2-header{position:sticky;top:0}
.rt2-motion .rt2-header.rt2-header--up{transform:translateY(-100%)}

/* Thin red progress line on car pages (motion.js sets --p from 0 to 1). */
.rt2-progress{position:fixed;left:0;top:0;height:3px;width:100%;background:#AA1500;transform-origin:0 50%;transform:scaleX(var(--p,0));z-index:60;pointer-events:none}

@media (prefers-reduced-motion:no-preference){
 .rt2-motion .rt2-header{transition:transform .3s cubic-bezier(.2,.8,.2,1)}

 /* Hero: the building photo settles from a slight zoom, the words rise in one after another. */
 @keyframes rt2-settle{from{transform:scale(1.14)}to{transform:none}}
 @keyframes rt2-up{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
 .rt2-motion .rt2-hero>img{animation:rt2-settle 1.8s cubic-bezier(.2,.7,.2,1) both;transform-origin:72% 100%}
 .rt2-motion .rt2-hero-copy>*{animation:rt2-up .7s cubic-bezier(.2,.8,.2,1) both}
 .rt2-motion .rt2-hero-copy>:nth-child(1){animation-delay:.1s}
 .rt2-motion .rt2-hero-copy>:nth-child(2){animation-delay:.22s}
 .rt2-motion .rt2-hero-copy>:nth-child(3){animation-delay:.34s}
 .rt2-motion .rt2-hero-copy>:nth-child(4){animation-delay:.46s}
 .rt2-motion .rt2-hero-copy>:nth-child(n+5){animation-delay:.56s}

 /* Reveal on scroll. --d = stagger delay set by motion.js. */
 .rt2-pre{opacity:0;transform:translateY(56px) scale(.97)}
 .rt2-in{opacity:1;transform:none;transition:opacity .7s cubic-bezier(.2,.8,.2,1) var(--d,0s),transform .9s cubic-bezier(.2,.8,.2,1) var(--d,0s)}
 /* Car photos settle inside their frame as the tile arrives. */
 .rt-tile.rt2-pre img{transform:scale(1.18)}
 .rt-tile.rt2-in img{transform:none;transition:transform 1.3s cubic-bezier(.2,.8,.2,1) var(--d,0s)}
 /* Headings rise, then a short red line draws under them. */
 main h2.rt2-pre{transform:translateY(30px)}
 main h2.rt2-anim{position:relative}
 main h2.rt2-anim:after{content:'';display:block;height:3px;width:56px;margin-top:10px;background:#AA1500;border-radius:2px;transform:scaleX(0);transform-origin:0 50%}
 main h2.rt2-in:after{transform:none;transition:transform .7s cubic-bezier(.2,.8,.2,1) calc(var(--d,0s) + .35s)}
 /* Section photos wipe in from the left. */
 .rt2-wipe.rt2-pre{opacity:1;transform:none;clip-path:inset(0 100% 0 0)}
 .rt2-wipe.rt2-in{clip-path:inset(0 0 0 0);transition:clip-path 1.1s cubic-bezier(.65,0,.2,1) var(--d,0s)}

 /* Small touches: 360 / Video / Photos panels crossfade, filter drawer slides up, buttons press in. */
 @keyframes rt2-fade{from{opacity:0}to{opacity:1}}
 @keyframes rt2-sheet{from{opacity:.3;transform:translateY(40px)}to{opacity:1;transform:none}}
 .rt2-motion [role=tabpanel]:not([hidden]){animation:rt2-fade .3s ease-out}
 .rt2-motion .rt-srp-drawer.open{animation:rt2-sheet .28s cubic-bezier(.2,.8,.2,1)}
 .rt2-motion :is(.rt2-button,button,.rt-srp-c){transition:transform .14s ease}
 .rt2-motion :is(.rt2-button,button,.rt-srp-c):active{transform:scale(.94)}
}
@media (prefers-reduced-motion:reduce){.rt2-progress{display:none}}
@media (min-width:900px){.rt2-motion .rt2-hero>img{transform-origin:50% 78%}}

/* 2026-11-09 Page-to-page motion (Chrome, Edge, Safari 18.2+; other browsers just load the page as before, nothing is
   added to the download). Every page crossfades; the car photo you tapped flies into the car page's main picture.
   motion.js names the tapped tile photo 'rt-car' just before leaving; the car page names its first picture the same. */
@media (prefers-reduced-motion:no-preference){
 @view-transition{navigation:auto}
 ::view-transition-group(root){animation-duration:.28s}
 ::view-transition-group(rt-car){animation-duration:.42s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
 ::view-transition-old(rt-car),::view-transition-new(rt-car){height:100%;object-fit:cover}
 .single-product #rt2-panel-spin:not([hidden]) .rt2-spin-poster,
 .single-product #rt2-panel-photos:not([hidden]) .rt2-photo:first-child img{view-transition-name:rt-car}
}

/* 2026-11-09 Hero motion without cars (site.css .rt2-hero-fx): the fx layer settles and drifts exactly like the photo under it. */
@media (prefers-reduced-motion:no-preference){
 @keyframes rt2-drift{from{transform:none}to{transform:scale(1.06) translateX(-1.2%)}}
 @keyframes rt2-clouds{to{transform:translateX(-50%)}}
 .rt2-motion .rt2-hero>img,.rt2-motion .rt2-hero-fx{animation:rt2-settle 1.8s cubic-bezier(.2,.7,.2,1) both;transform-origin:72% 100%}
 .rt2-motion .rt2-hero-clouds{animation:rt2-clouds 150s linear infinite}
 /* Day to night, once (Doug 2026-11-09: stays dark at the end, lights end crisp, dusk is moonlit, never black). 16 s:
    day with clouds 0-6 s, sunset 6-9, moonlit dusk 10-13, lights flicker on at 14, crisp night from 15.5 s and it stays.
    motion.js adds .rt2-cycle after the page loads; a visit after dark jumps straight to the end (lit night). */
 @keyframes rt2-cy-sky{0%,37.5%{opacity:1}56%,100%{opacity:0}}
 @keyframes rt2-cy-sunset{0%,37.5%{opacity:0}56.25%,100%{opacity:1}}
 @keyframes rt2-cy-off{0%,62.5%{opacity:0}81.25%,100%{opacity:1}}
 @keyframes rt2-cy-on{0%,87.5%{opacity:0}89%{opacity:.85}90.5%{opacity:.1}92%{opacity:1}93.5%{opacity:.4}96%,100%{opacity:1}}
 @keyframes rt2-cy-glow{0%,88%{opacity:0}89.5%{opacity:.9}91%{opacity:.15}93%{opacity:1}100%{opacity:0}}
 .rt2-motion .rt2-cycle .rt2-hero-sky{animation:rt2-cy-sky 9s linear var(--rt2-t0,0s) 1 both}
 .rt2-motion .rt2-cycle .rt2-hero-sunset{animation:rt2-cy-sunset 9s ease-in-out var(--rt2-t0,0s) 1 both}
 .rt2-motion .rt2-cycle .rt2-hero-off{animation:rt2-cy-off 9s ease-in-out var(--rt2-t0,0s) 1 both}
 .rt2-motion .rt2-cycle .rt2-hero-on{animation:rt2-cy-on 9s linear var(--rt2-t0,0s) 1 both}
 .rt2-motion .rt2-cycle .rt2-hero-glow{animation:rt2-cy-glow 9s linear var(--rt2-t0,0s) 1 both}
 .rt2-justin-car{transition:transform .5s cubic-bezier(.2,.8,.2,1),opacity .5s}
 .rt2-justin-car.is-in{visibility:visible;transform:translateY(100%);opacity:0}
 .rt2-justin-car.is-out{visibility:visible;transform:translateY(-100%);opacity:0}
}
@media (min-width:900px){.rt2-motion .rt2-hero-fx{transform-origin:50% 78%}}

/* 2026-11-09 Buttons come alive (Doug: "bring all the buttons on the site alive"). Only transform / opacity / shadow change,
   so nothing reflows. Mouse: lift, light sweep, arrow nudge, outline buttons fill. Touch: a ripple from the finger (motion.js).
   Main calls to action shine once when they first scroll into view. */
:is(.rt2-button,.ridetime2 .btn,.rt-btn,.rt2-quick-chips a,.rt-srp-c){position:relative;overflow:hidden;isolation:isolate}
.rt2-ripple{position:absolute;border-radius:50%;pointer-events:none;background:currentColor;opacity:.28;transform:scale(0);z-index:-1}
@media (prefers-reduced-motion:no-preference){
 .rt2-motion :is(.rt2-button,.btn,.rt-btn){transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s,filter .2s,color .2s,background-size .35s cubic-bezier(.2,.8,.2,1)}
 .rt2-motion :is(.rt2-button,.btn,.rt-btn):before{content:'';position:absolute;top:0;bottom:0;left:-60%;width:45%;z-index:1;pointer-events:none;
   background:linear-gradient(100deg,transparent,rgba(255,255,255,.38),transparent);transform:skewX(-18deg) translateX(0);opacity:0}
 @keyframes rt2-sheen{0%{transform:skewX(-18deg) translateX(0);opacity:1}100%{transform:skewX(-18deg) translateX(420%);opacity:1}}
 .rt2-motion :is(.rt2-button,.btn,.rt-btn).rt2-shine:before{animation:rt2-sheen .9s cubic-bezier(.4,0,.2,1) 1}
 @keyframes rt2-rip{to{transform:scale(1);opacity:0}}
 .rt2-ripple{animation:rt2-rip .55s ease-out forwards}
 .rt2-motion :is(.rt2-button,.btn,.rt-btn) svg{transition:transform .25s cubic-bezier(.2,.8,.2,1)}
 /* focus ring that grows in (keyboard users) */
 .rt2-motion :is(.rt2-button,.btn,.rt-btn,.rt2-quick-chips a):focus-visible{outline:3px solid #aa1500;outline-offset:3px;transition:outline-offset .15s}
 @media (hover:hover){
  .rt2-motion :is(.rt2-button,.btn,.rt-btn):hover{transform:translateY(-2px);box-shadow:0 10px 22px -8px rgba(170,21,0,.55);filter:none}
  .rt2-motion .rt2-button.rt2-approval:hover,.rt2-motion .rt2-desktop-approval:hover{box-shadow:0 10px 22px -8px rgba(27,122,39,.6)}
  .rt2-motion :is(.rt2-button.rt2-light,.rt2-button.rt2-chat):hover{box-shadow:0 10px 22px -8px rgba(0,0,0,.45)}
  .rt2-motion :is(.rt2-button,.btn,.rt-btn):hover:before{animation:rt2-sheen .75s cubic-bezier(.4,0,.2,1) 1}
  .rt2-motion :is(.rt2-button,.btn,.rt-btn):hover svg{transform:translateX(3px)}
  /* outline buttons fill with red from the left */
  .rt2-motion .rt2-button.rt2-outline{background:linear-gradient(var(--rt-red),var(--rt-red)) 0 0/0% 100% no-repeat,#fff}
  .rt2-motion .rt2-button.rt2-outline:hover{background-size:100% 100%,auto;color:#fff}
  .rt2-motion .rt2-quick-chips a{transition:transform .2s cubic-bezier(.2,.8,.2,1),background-color .2s,border-color .2s}
  .rt2-motion .rt2-quick-chips a:hover{transform:translateY(-2px);background-color:rgba(255,255,255,.28);border-color:#fff}
  .rt2-motion .rt-tile{transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s}
  .rt2-motion .rt-tile:hover{transform:translateY(-4px);box-shadow:0 18px 36px -18px rgba(0,0,0,.35)}
  .rt2-motion .rt-tile:hover .rt-tile__photo img{transform:scale(1.04);transition:transform .6s cubic-bezier(.2,.8,.2,1)}
 }
 .rt2-motion :is(.rt2-button,.btn,.rt-btn,.rt2-quick-chips a):active{transform:scale(.95);box-shadow:none;transition-duration:.08s}
}
/* 2026-11-09 Doug: bring attention to "Chat with Blakely". Live ping on the green dot, a glide-in, a one-time typing bubble,
   and a light shine every so often (max 3). All off with reduced motion. */
.rt2-online{position:relative}
.rt2-motion .rt2-online:after{content:"";position:absolute;inset:0;border-radius:50%;background:#3ddc6f;animation:rt2-ping 2s cubic-bezier(0,0,.2,1) infinite}
@keyframes rt2-ping{0%{transform:scale(1);opacity:.75}80%,100%{transform:scale(2.8);opacity:0}}
@media (min-width:1000px){
 .rt2-motion .rt2-actions>.rt2-chat{animation:rt2-chat-in .9s cubic-bezier(.2,1.4,.3,1) 1.2s backwards}
 .rt2-motion .rt2-actions>.rt2-chat:hover{transform:translateY(-3px) scale(1.03)}
}
@keyframes rt2-chat-in{0%{opacity:0;transform:translateY(40px) scale(.8)}100%{opacity:1;transform:none}}
.rt2-chat-nudge{animation:rt2-nudge .7s cubic-bezier(.3,1.6,.4,1) 1!important}
@keyframes rt2-nudge{0%,100%{transform:none}30%{transform:translateY(-6px) rotate(-2deg)}55%{transform:translateY(0) rotate(1.5deg)}75%{transform:translateY(-2px)}}
.rt2-chat-tip{position:fixed;z-index:90001;right:24px;bottom:92px;max-width:260px;background:#fff;color:#141414;border-radius:16px 16px 4px 16px;padding:12px 34px 12px 14px;
 box-shadow:0 14px 40px -10px rgba(0,0,0,.35),0 0 0 1px rgba(0,0,0,.06);font-size:14px;line-height:1.4;cursor:pointer;opacity:0;transform:translateY(10px) scale(.96);transform-origin:100% 100%;transition:opacity .35s,transform .45s cubic-bezier(.2,1.3,.3,1)}
.rt2-chat-tip.on{opacity:1;transform:none}
.rt2-chat-tip b{display:block;font-size:12px;color:#5c5c5c;font-weight:700;margin-bottom:2px}
.rt2-chat-tip .x{position:absolute;right:6px;top:6px;width:24px;height:24px;border:0;background:none;color:#888;font-size:18px;line-height:1;cursor:pointer;min-height:0;padding:0}
.rt2-chat-dots{display:inline-flex;gap:4px;padding:4px 0}
.rt2-chat-dots i{width:7px;height:7px;border-radius:50%;background:#9a9a9a;animation:rt2-dot 1s infinite}
.rt2-chat-dots i:nth-child(2){animation-delay:.15s}.rt2-chat-dots i:nth-child(3){animation-delay:.3s}
@keyframes rt2-dot{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}
@media (max-width:999px){.rt2-chat-tip{right:12px;left:auto;bottom:calc(84px + env(safe-area-inset-bottom));max-width:240px}}
@media (prefers-reduced-motion:reduce){.rt2-motion .rt2-online:after,.rt2-motion .rt2-actions>.rt2-chat{animation:none}}
@media (max-width:999px){.rt2-chat-tip{left:12px;right:auto;border-radius:16px 16px 16px 4px;transform-origin:0 100%}}
