/* ==========================================================================
   Sandhu Express Inc. — shared layer: splash, motion, mobile
   Loaded after each page's own <style> blocks, so it can refine them.
   ========================================================================== */

:root {
  --navy: #102A5C;
  --navy-deep: #081733;
  --red: #C8102E;
  --ink: #111111;
  --ease-out: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gutter: 28px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; }
::selection { background: var(--red); color: #fff; }

/* `overflow: hidden` on the page wrapper breaks position: sticky. `clip`
   still stops horizontal overflow but lets the header stick. */
body > div:first-of-type { overflow: clip !important; }

/* --------------------------------------------------------------------------
   Pre-paint covers (set from the inline <head> script, before first paint)
   -------------------------------------------------------------------------- */
html.splash-on body { overflow: hidden; }
html.splash-on::before,
html.pt-in::before {
  content: ""; position: fixed; inset: 0; z-index: 9998;
  background: var(--navy-deep);
}
/* Keep the hero's entrance animations waiting until the site is revealed. */
html.splash-on .up, html.splash-on .wipe,
html.pt-in .up, html.pt-in .wipe { animation-play-state: paused !important; }

/* --------------------------------------------------------------------------
   SPLASH
   -------------------------------------------------------------------------- */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  perspective: 1600px; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; color: #fff;
  -webkit-tap-highlight-color: transparent;
}

/* Two reefer-trailer doors that swing open to reveal the site. */
.sp-door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    radial-gradient(120% 80% at 100% 50%, rgba(255,255,255,.06), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 34px),
    linear-gradient(180deg, #0C2149 0%, var(--navy-deep) 100%);
  transition: transform 1.05s var(--ease-io), filter 1.05s var(--ease-io);
  will-change: transform;
}
.sp-door::after { /* DOT reflective tape along the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 9vh; height: 10px;
  background: repeating-linear-gradient(90deg, var(--red) 0 40px, #fff 40px 80px);
  opacity: .9;
}
.sp-l { left: 0; transform-origin: left center; box-shadow: inset -1px 0 0 rgba(0,0,0,.5); }
.sp-r { right: 0; transform-origin: right center; box-shadow: inset 1px 0 0 rgba(255,255,255,.06); }
.sp-rod { /* the vertical lock rods on each door */
  position: absolute; top: 6vh; bottom: 6vh; width: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #6d7894, #c9d0de 45%, #5b6580);
  opacity: .32;
}
.sp-l .sp-rod:nth-child(1) { left: 12%; } .sp-l .sp-rod:nth-child(2) { left: 27%; }
.sp-r .sp-rod:nth-child(1) { right: 12%; } .sp-r .sp-rod:nth-child(2) { right: 27%; }
@media (max-width: 1100px) { .sp-rod { display: none; } }
.sp-rod::before, .sp-rod::after { /* handles */
  content: ""; position: absolute; left: -7px; width: 20px; height: 34px; border-radius: 4px;
  background: #8a93ab; top: 46%;
}
.sp-rod::after { top: auto; bottom: 14%; height: 14px; }

#splash.open .sp-l { transform: translateX(-102%) rotateY(14deg); filter: brightness(.6); }
#splash.open .sp-r { transform: translateX(102%) rotateY(-14deg); filter: brightness(.6); }

.sp-stage {
  position: relative; z-index: 2;
  width: min(560px, 82vw);
  display: flex; flex-direction: column; align-items: center; gap: 34px;
  transition: opacity .45s ease, transform .6s var(--ease-io), filter .45s ease;
}
#splash.leave .sp-stage { opacity: 0; transform: scale(.92); filter: blur(6px); }

/* Soft spotlight behind the mark */
.sp-stage::before {
  content: ""; position: absolute; left: 50%; top: 38%; width: 140%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(66,110,200,.28), transparent 70%);
  z-index: -1; animation: sp-glow 2.4s ease-in-out infinite alternate;
}
@keyframes sp-glow { from { opacity: .55 } to { opacity: 1 } }

/* The logo is one image, cut into three layers with clip-path. */
.sp-logo { position: relative; width: 100%; aspect-ratio: 720 / 317; }
.sp-logo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; user-select: none; pointer-events: none;
}
.sp-lion {
  clip-path: inset(0 65.5% 0 0);
  opacity: 0; transform: scale(1.18); filter: blur(12px) brightness(2);
  transform-origin: 18% 50%;
  animation: sp-lion 1s var(--ease-out) .15s forwards;
}
@keyframes sp-lion { to { opacity: 1; transform: none; filter: none; } }

.sp-truck {
  clip-path: inset(0 0 56% 34.5%);
  opacity: 0; transform: translateX(-38%);
  animation: sp-truck 1.05s cubic-bezier(.15,.85,.25,1) .45s forwards;
}
@keyframes sp-truck {
  0%   { opacity: 0; transform: translateX(-38%); }
  20%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

.sp-text {
  clip-path: inset(44% 100% 0 34.5%);
  animation: sp-text .85s var(--ease-io) .95s forwards;
}
@keyframes sp-text { to { clip-path: inset(44% 0 0 34.5%); } }

/* Speed streaks trailing the truck */
.sp-streaks { position: absolute; left: 30%; top: 12%; width: 30%; height: 26%; pointer-events: none; }
.sp-streaks i {
  position: absolute; left: 0; height: 2px; border-radius: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85));
  transform-origin: right; transform: scaleX(0); opacity: 0;
  animation: sp-streak .9s ease-out forwards;
}
.sp-streaks i:nth-child(1) { top: 20%; animation-delay: .55s; }
.sp-streaks i:nth-child(2) { top: 45%; width: 70%; left: 30%; animation-delay: .62s; }
.sp-streaks i:nth-child(3) { top: 70%; width: 85%; left: 15%; animation-delay: .5s; }
.sp-streaks i:nth-child(4) { top: 92%; width: 55%; left: 45%; animation-delay: .68s; background: linear-gradient(90deg, transparent, var(--red)); }
@keyframes sp-streak {
  0%   { transform: scaleX(0) translateX(0); opacity: 0; }
  35%  { transform: scaleX(1) translateX(0); opacity: 1; }
  100% { transform: scaleX(.2) translateX(-60%); opacity: 0; }
}

/* A light sweep across the finished mark (masked by the logo itself). */
.sp-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../images/logo-white.webp) center / 100% 100% no-repeat;
          mask: url(../images/logo-white.webp) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0;
  animation: sp-shine 1.1s ease-in-out 1.75s forwards;
}
@keyframes sp-shine { to { background-position: -30% 0; } }

/* Loader: a strip of reflective tape that fills up, plus a readout. */
.sp-meta {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #93A3C6;
  opacity: 0; animation: sp-fade .6s ease .5s forwards;
}
.sp-count { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .04em; color: #fff; min-width: 3.2em; text-align: right; }
.sp-bar { width: 100%; height: 6px; margin-top: -22px; background: rgba(255,255,255,.08); overflow: hidden; opacity: 0; animation: sp-fade .6s ease .5s forwards; }
.sp-bar i {
  display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0);
  background: repeating-linear-gradient(90deg, var(--red) 0 22px, #fff 22px 44px);
}
@keyframes sp-fade { to { opacity: 1; } }
.sp-skip {
  position: absolute; z-index: 3; right: 22px; bottom: 20px;
  font: 500 10px/1 'IBM Plex Mono', monospace; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.4); opacity: 0; animation: sp-fade .6s ease 1.2s forwards;
}
#splash.leave .sp-skip { opacity: 0 !important; transition: opacity .3s; }

/* --------------------------------------------------------------------------
   Page transition (internal links): doors close, next page opens them
   -------------------------------------------------------------------------- */
#pt { position: fixed; inset: 0; z-index: 9997; pointer-events: none; }
#pt .sp-door { transition-duration: .6s; }
#pt.closed { pointer-events: auto; }
#pt:not(.closed) .sp-l { transform: translateX(-101%); }
#pt:not(.closed) .sp-r { transform: translateX(101%); }
#pt .sp-door::after { bottom: 12vh; }

/* --------------------------------------------------------------------------
   Header: sticky, hides on scroll down, returns on scroll up
   -------------------------------------------------------------------------- */
.sx-head {
  position: sticky; top: 0; z-index: 900;
  transition: transform .45s var(--ease-out), box-shadow .3s ease;
}
.sx-head header { transition: background .3s ease; }
.sx-head.scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.sx-head.scrolled header { background: rgba(255,255,255,.94) !important; backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.sx-head.hidden { transform: translateY(-100%); }
html.nav-open .sx-head { transform: none; }

/* The full-screen menu lives inside the header. A blur (backdrop-filter),
   filter or transform on any ancestor turns that ancestor into the box a
   position:fixed child is sized against, so the menu would shrink to the
   header's height. On menu-sized screens the scrolled header is solid white
   instead, and while the menu is open nothing above it may carry those. */
@media (max-width: 900px) {
  .sx-head.scrolled header { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html.nav-open .sx-head, html.nav-open .sx-head header {
    transform: none !important; filter: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
}

/* Scroll progress line under the header */
.sx-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--red); transform-origin: left; transform: scaleX(0);
  pointer-events: none;
}

/* Underline that slides in on nav links (desktop) */
.navl { position: relative; }
.navl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.navl:hover::after { transform: scaleX(1); transform-origin: left; }

/* Hamburger button (injected by site.js; only shown on small screens) */
.sx-burger {
  display: none; position: relative; z-index: 1001;
  width: 48px; height: 48px; margin-right: -10px; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sx-burger span {
  position: absolute; left: 12px; right: 12px; height: 2.5px; background: var(--ink); border-radius: 2px;
  transition: transform .45s var(--ease-io), opacity .2s ease, background .3s ease, top .45s var(--ease-io);
}
.sx-burger span:nth-child(1) { top: 16px; }
.sx-burger span:nth-child(2) { top: 23px; right: 20px; background: var(--red); }
.sx-burger span:nth-child(3) { top: 30px; }
html.nav-open .sx-burger span { background: #fff; }
html.nav-open .sx-burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
html.nav-open .sx-burger span:nth-child(2) { opacity: 0; transform: translateX(10px); }
html.nav-open .sx-burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.sx-menu-foot { display: none; }

/* --------------------------------------------------------------------------
   Scroll reveals
   -------------------------------------------------------------------------- */
.rv {
  opacity: 0; transform: translate3d(0, 38px, 0);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.rv.in { opacity: 1; transform: none; }
.rv-line { transform: scaleX(0) !important; opacity: 1; transform-origin: left; transition: transform 1.2s var(--ease-io); transition-delay: var(--d, 0s); }
.rv-line.in { transform: scaleX(1) !important; }
.rv-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.15s var(--ease-io); transition-delay: var(--d, 0s); }
.rv-img img { transform: scale(1.18); transition: transform 1.6s var(--ease-out); transition-delay: var(--d, 0s); }
.rv-img.in { clip-path: inset(0 0 0 0); }
.rv-img.in img { transform: scale(1); }
.rv-img.in img.zimg:hover { transform: scale(1.04); transition-delay: 0s; }

/* Big display headings: each word rises out of a mask */
.sx-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.sx-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i) * 55ms); }
.sx-words.in .w > span { transform: none; }

/* Buttons: a fill that sweeps in from the left */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn span[aria-hidden="true"] { display: inline-block; transition: transform .35s var(--ease-out); }
.btn:hover span[aria-hidden="true"] { transform: translateX(5px); }
.btn:active { transform: translateY(0) scale(.98) !important; }

/* Service rows: arrow nudges on hover */
.row span[aria-hidden="true"] { transition: transform .4s var(--ease-out), color .25s; }
.row:hover span[aria-hidden="true"] { transform: translateX(8px); }

/* Partner cells: red bar grows on hover */
.cell { position: relative; }
.cell::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease-out); }
.cell:hover::before { transform: scaleY(1); }

/* --------------------------------------------------------------------------
   Tablet & below: off-canvas menu
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .sx-burger { display: block; }
  header > div { flex-wrap: nowrap !important; padding-top: 10px !important; padding-bottom: 10px !important; }
  header img { height: 54px !important; }

  header nav {
    position: fixed; inset: 0; z-index: 1000;
    display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important;
    align-items: flex-start !important; justify-content: flex-start;
    gap: 0 !important; padding: max(92px, 15vh) 28px 28px;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: var(--navy);
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 2px, transparent 2px 40px);
    font-size: clamp(30px, min(11vw, 8.5vh), 64px) !important; font-weight: 800 !important; letter-spacing: .01em !important;
    clip-path: circle(0% at calc(100% - 46px) 40px);
    visibility: hidden;
    transition: clip-path .75s var(--ease-io), visibility 0s linear .75s;
  }
  html.nav-open header nav {
    clip-path: circle(150% at calc(100% - 46px) 40px);
    visibility: visible;
    transition: clip-path .75s var(--ease-io), visibility 0s;
  }
  header nav > a {
    color: #fff !important; border: 0 !important; padding: 6px 0 !important; line-height: 1;
    opacity: 0; transform: translateY(30px);
    transition: opacity .5s ease, transform .6s var(--ease-out), color .2s;
  }
  header nav > a.navl[style*="#C8102E"] { color: #FF6B7D !important; }
  header nav > a.navl::after { display: none; }
  header nav > a.btn {
    margin-top: 28px; font-size: 20px; padding: 18px 26px !important;
    background: var(--red) !important; letter-spacing: .06em;
  }
  html.nav-open header nav > a { opacity: 1; transform: none; }
  html.nav-open header nav > a:nth-child(1) { transition-delay: .18s; }
  html.nav-open header nav > a:nth-child(2) { transition-delay: .24s; }
  html.nav-open header nav > a:nth-child(3) { transition-delay: .30s; }
  html.nav-open header nav > a:nth-child(4) { transition-delay: .36s; }
  html.nav-open header nav > a:nth-child(5) { transition-delay: .42s; }

  .sx-menu-foot {
    display: block; align-self: stretch; margin-top: auto; padding-top: 32px;
    font: 500 12px/1.9 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: #9FB0D3;
    opacity: 0; transition: opacity .5s ease;
  }
  .sx-menu-foot a { color: #fff !important; text-decoration: none; }
  .sx-menu-foot::before { content: ""; display: block; height: 6px; margin-bottom: 18px; background: repeating-linear-gradient(90deg, var(--red) 0 30px, #fff 30px 60px); }
  html.nav-open .sx-menu-foot { opacity: 1; transition-delay: .5s; }
  html.nav-open body { overflow: hidden; }
}

/* Phones held sideways: very little height, so tighten the menu */
@media (max-width: 900px) and (max-height: 500px) {
  header nav { padding-top: 70px; flex-direction: row !important; flex-wrap: wrap !important; align-content: flex-start; column-gap: 28px !important; }
  header nav > a { padding: 4px 0 !important; }
  header nav > a.btn { flex-basis: 100%; max-width: max-content; margin-top: 14px; font-size: 17px; padding: 14px 22px !important; }
  .sx-menu-foot { flex-basis: 100%; padding-top: 18px; }
}

/* --------------------------------------------------------------------------
   Tablets (iPad portrait & landscape)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  /* Fleet badge: keep it on the photo instead of hanging into the margin */
  [style*="left: -28px"] { left: 0 !important; }
  /* Four stats in one even row rather than 3 + an orphan */
  [style*="flex: 1 1 240px"][style*="border-left"] { flex: 1 1 25% !important; min-width: 0; box-sizing: border-box; }
}
@media (max-width: 900px) {
  /* Portrait tablets & phones: stats 2 x 2 */
  [style*="flex: 1 1 240px"][style*="border-left"] { flex: 1 1 50% !important; border-bottom: 1px solid #DADADA; }
  /* Solo / Team: stack with a top rule instead of an indented left rule */
  [style*="padding: 0 40px 40px 0"] { padding: 0 0 36px 0 !important; flex-basis: 100% !important; }
  [style*="padding: 0 0 40px 40px"] { padding: 36px 0 40px 0 !important; border-left: 0 !important; border-top: 1px solid #3B5486; flex-basis: 100% !important; }
}

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  :root { --gutter: 20px; }

  /* Side gutters 28px -> 20px wherever the inline style uses them */
  [style*="padding: 120px 28px"], [style*="padding: 110px 28px"], [style*="padding: 100px 28px"],
  [style*="padding: 80px 28px"], [style*="padding: 72px 28px"], [style*="padding: 64px 28px"],
  [style*="padding: 0 28px"], [style*="padding: 12px 28px"], [style*="padding: 9px 28px"] { padding-left: 20px !important; padding-right: 20px !important; }

  /* Vertical rhythm: desktop 110–120px section padding is far too tall */
  [style*="padding: 120px 28px"], [style*="padding: 110px 28px"] { padding-top: 72px !important; padding-bottom: 72px !important; }
  [style*="padding: 120px 28px 100px"] { padding-bottom: 64px !important; }
  [style*="padding: 0 28px 120px"] { padding-bottom: 72px !important; }
  [style*="padding: 80px 28px 120px"] { padding-top: 48px !important; padding-bottom: 72px !important; }
  [style*="padding: 100px 28px 90px"] { padding-top: 64px !important; padding-bottom: 48px !important; }
  [style*="padding: 72px 28px"] { padding-top: 44px !important; }
  [style*="padding: 64px 28px 0"] { padding-top: 36px !important; }
  [style*="margin-bottom: 48px"], [style*="margin-bottom: 56px"] { margin-bottom: 32px !important; }
  [style*="margin: 0 0 48px"] { margin-bottom: 32px !important; }

  /* Hero */
  h1 { margin: 20px 0 22px !important; }
  [style*="min-height: 520px"] { min-height: 380px !important; flex-basis: 100% !important; }
  [style*="left: -28px"] { left: 0 !important; bottom: 0 !important; padding: 18px 22px !important; }
  [style*="left: -28px"] [style*="font-size: 64px"] { font-size: 48px !important; }
  section [style*="font-size: 20px"][style*="line-height: 1.6"] { font-size: 18px !important; }
  .up[style*="display: flex; flex-wrap: wrap; gap: 14px"] > a { flex: 1 1 100%; justify-content: center; text-align: center; }

  /* Road + truck strip */
  [style*="height: 200px"][style*="#1A1A1A"] { height: 136px !important; margin-top: 40px !important; }
  [style*="height: 200px"][style*="#1A1A1A"] > div[style*="width: 600px"] { width: 380px !important; bottom: 22px !important; }
  [style*="height: 200px"][style*="#1A1A1A"] svg { width: 380px; height: auto; }
  [style*="height: 200px"][style*="#1A1A1A"] [style*="bottom: 26px"] { bottom: 18px !important; }

  /* Stat blocks: 2 x 2 instead of 4 stacked */
  [style*="flex: 1 1 240px"][style*="border-left"] { flex: 1 1 50% !important; box-sizing: border-box; padding: 24px 12px 28px 16px !important; border-bottom: 1px solid #DADADA; }
  [style*="font-size: 84px"] { font-size: 54px !important; }
  [style*="font-size: 72px"] { font-size: 52px !important; }
  [style*="flex: 1 1 50%"][style*="min-width: 200px"] { min-width: 0 !important; padding-right: 12px !important; }

  /* Partners: two columns */
  .cell { flex: 1 1 50% !important; min-width: 0 !important; padding: 20px 16px !important; }
  .cell [style*="font-size: 24px"] { font-size: 19px !important; }
  /* Larger content cards (services, contact details) stay full width */
  .cell[style*="min-width: 320px"], .cell[style*="min-width: 260px"] { flex-basis: 100% !important; padding: 28px 22px 32px !important; }
  .cell[style*="min-width: 260px"] [style*="font-size: 40px"] { font-size: 34px !important; margin-top: 10px !important; }

  /* Coverage table (services) */
  [style*="padding: 22px 24px; border-bottom: 1px solid #2E4677"],
  [style*="padding: 16px 24px; color: #9FB0D4"] { padding-left: 16px !important; padding-right: 16px !important; gap: 12px; }
  [style*="padding: 22px 24px; border-bottom: 1px solid #2E4677"] > span:first-child { font-size: 21px !important; }
  [style*="padding: 22px 24px; border-bottom: 1px solid #2E4677"] { font-size: 12px; }

  /* Service rows */
  .row { padding: 26px 4px !important; gap: 8px 16px !important; }
  .row > span:first-child { flex-basis: 100% !important; }

  /* Solo / Team split: stack with a top rule instead of a left rule */

  /* Equipment photos */
  [style*="overflow: hidden; height: 300px"] { height: 240px !important; }

  /* "Why" list */
  [style*="gap: 28px; align-items: baseline"] { gap: 16px !important; padding: 20px 0 !important; }
  [style*="gap: 28px; align-items: baseline"] > span:last-child { font-size: 24px !important; }

  /* Generic: big flex-basis values force overflow on narrow screens */
  [style*="flex: 4 1 640px"], [style*="flex: 2 1 560px"], [style*="flex: 7 1 560px"], [style*="flex: 1 1 520px"] { flex-basis: 100% !important; }

  /* Footer */
  footer img { height: 76px !important; }

  /* Form chips & inputs: comfortable tap targets, no iOS zoom */
  input, select, textarea { font-size: 16px !important; }
  .chip { flex: 1 1 calc(50% - 8px); text-align: center; }
}

@media (max-width: 380px) {
  h1 { font-size: 42px !important; }
  [style*="font-size: 84px"] { font-size: 46px !important; }
}

/* --------------------------------------------------------------------------
   Respect reduced-motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv, .rv-img, .rv-line, .sx-words .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* Splash choreography waits until the logo image is decoded (site.js adds .go) */
#splash:not(.go) *, #splash:not(.go) .sp-stage::before { animation-play-state: paused !important; }

/* --------------------------------------------------------------------------
   Lion cursor (desktop mice/trackpads only; touch screens are untouched)
   Hotspot is the centre of the lion's face.
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  html, body, body * {
    cursor: url(../images/cursor/lion-32.png) 16 16, auto;
    cursor: -webkit-image-set(url(../images/cursor/lion-32.png) 1x, url(../images/cursor/lion-64.png) 2x) 16 16, auto;
    cursor: image-set(url(../images/cursor/lion-32.png) 1x, url(../images/cursor/lion-64.png) 2x) 16 16, auto;
  }
  /* Anything clickable: the lion turns red */
  a, a *, button, button *, .btn, .btn *, .chip, .row, .row *, .cell[href], .cell[href] *,
  label, select, summary, [role="button"], input[type="submit"], input[type="button"],
  input[type="checkbox"], input[type="radio"], input[type="date"], .sx-burger, .sx-burger *, #splash, #splash * {
    cursor: url(../images/cursor/lion-hover-32.png) 16 16, pointer;
    cursor: -webkit-image-set(url(../images/cursor/lion-hover-32.png) 1x, url(../images/cursor/lion-hover-64.png) 2x) 16 16, pointer;
    cursor: image-set(url(../images/cursor/lion-hover-32.png) 1x, url(../images/cursor/lion-hover-64.png) 2x) 16 16, pointer;
  }
  /* Typing fields keep the normal text cursor so it's clear where you type */
  input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="date"]),
  textarea, [contenteditable="true"] { cursor: text; }
}

/* Click ripple (desktop) */
.sx-ripple {
  position: fixed; z-index: 10000; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border: 2px solid var(--red); border-radius: 50%; pointer-events: none;
  animation: sx-ripple .55s var(--ease-out) forwards;
}
@keyframes sx-ripple {
  from { transform: scale(.25); opacity: .9; }
  to   { transform: scale(1.35); opacity: 0; }
}
