/* Roadway performance layer (v16). Same look, far cheaper to draw. Loaded after the main stylesheet. */

/* ---------- every device ---------- */
/* film grain: was a screen-sized x4 layer redrawn 5 times a second; now still, and a quarter of the area */
.grain:after{animation:none!important;inset:0!important}
/* reveal animations left a do-nothing blur on ~40 elements, which kept each on its own graphics layer */
[style*="blur(0px)"]{filter:none!important}
/* don't lay out or paint sections that are far off screen (scroll-pinned sections are left alone) */
main>section:not([class*="vh]"]){content-visibility:auto;contain-intrinsic-size:auto 800px}
footer{content-visibility:auto;contain-intrinsic-size:auto 720px}
img,video{max-width:100%}

/* ---------- phones: zoomed out so more fits on screen ---------- */
@media (max-width:640px){
  html{font-size:13.6px}
  input,select,textarea{font-size:16px!important}               /* keeps iPhones from zooming in when a field is tapped */
  h1[class*="12.5vw"]{font-size:10.4vw!important}
}
@media (max-width:380px){html{font-size:13px}}

/* ---------- light mode (switched on automatically for older / slower / data-saving devices) ---------- */
html[data-perf=lite] .grain:after{display:none!important}
html[data-perf=lite] .glass,html[data-perf=lite] [class*="backdrop-blur"]{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background-color:rgba(8,12,28,.74)!important}
html[data-perf=lite] svg [filter]{filter:none!important}
html[data-perf=lite] [style*="blur("]{filter:none!important}
html[data-perf=lite] [class*="blur-"]{filter:none!important}
html[data-perf=lite] [class*="blur-"][class*="rounded-full"]{-webkit-mask-image:radial-gradient(closest-side,#000,transparent);mask-image:radial-gradient(closest-side,#000,transparent)}
html[data-perf=lite] .route-dash,html[data-perf=lite] .animate-ping{animation:none!important}
html[data-perf=lite]{scroll-behavior:auto!important}
@media (prefers-reduced-motion:reduce){.marquee{animation:none!important}}

/* ---------- phone polish ---------- */
/* phones: promo bar slides away while reading, comes back on scroll up (toggled by /site-ui.v1.js) */
@media (max-width:760px){
  #rlg-ban{transition:transform .35s cubic-bezier(.2,.7,.2,1);will-change:transform}
  html.rb-hide #rlg-ban{transform:translateY(calc(100% + var(--rb-off,0px) + 4px))}
}

/* ---------- v17.5: video hero (replaces the 3D scenes) ---------- */
/* The poster is the instant first paint; the clip fades in over it once downloaded. Two players share one
   downloaded clip and cross-fade at the loop point so the loop never "jumps". Plays only while on screen. */
.rw-hero-frame{background:#050816;will-change:clip-path}
.rw-hero-media{transform-origin:50% 60%;will-change:transform}
.rw-hero-poster,.rw-hero-vid{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 55%}
.rw-hero-vid{opacity:0;transition:opacity 1.2s ease}
.rw-hero-vid.is-on{opacity:1}
/* brand colour grade: navy at the top (under the menu), a cool blue edge on the left behind the headline */
.rw-hero-grade{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(13,26,58,.5) 0%,rgba(5,8,22,0) 28%),
             linear-gradient(90deg,rgba(0,102,255,.14) 0%,rgba(0,102,255,0) 55%)}
/* soft gold light behind the headline that picks up the sunrise in the clip */
.rw-hero-glow{position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(55% 45% at 72% 38%,rgba(226,182,90,.16),rgba(226,182,90,0) 70%)}
/* scroll progress rail (large screens): 01 intro, 02 how we choose, 03 pricing */
.rw-hero-rail{display:none}
@media (min-width:1024px){
  .rw-hero-rail{display:block;position:absolute;right:clamp(1.25rem,3vw,3rem);top:50%;height:36vh;width:2.75rem;transform:translateY(-50%);pointer-events:none}
  .rw-hero-rail-track{position:absolute;left:50%;top:0;bottom:0;width:2px;margin-left:-1px;border-radius:2px;background:rgba(255,255,255,.12);overflow:hidden}
  .rw-hero-rail-fill{position:absolute;left:0;top:0;width:100%;background:linear-gradient(180deg,#3b8bff,#e2b65a)}
  .rw-hero-rail-stop{position:absolute;left:50%;transform:translate(-50%,-50%);font:600 10px/1 "Oswald","Arial Narrow",sans-serif;letter-spacing:.18em;
    color:#fff;padding:.45rem .5rem .45rem .62rem;border-radius:999px;background:rgba(5,8,22,.78);border:1px solid rgba(226,182,90,.45)}
}
/* phones: lift the scene so the truck sits above the headline, and a lighter top-to-bottom fade */
.rw-hero-mfade{background:linear-gradient(180deg,rgba(5,8,22,.6) 0%,rgba(5,8,22,.08) 22%,rgba(5,8,22,.12) 45%,rgba(5,8,22,.82) 70%,#050816 100%)}
@media (max-width:767px){.rw-hero-media{top:-16%}.rw-hero-poster,.rw-hero-vid{object-position:47% 50%}}
@media (prefers-reduced-motion:reduce){.rw-hero-vid{transition:none}}
