/* Homepage. Builds on css/oos.css; only page-specific layout and the illustrated scenes live here. */

/* ---------- Hero ---------- */
.oos-home-hero{overflow-x:clip;padding-bottom:8px}
.oos-home-hero__wrap{position:relative}
.oos-home-mosaic{position:relative;z-index:2}
.oos-home-hero__palm{position:absolute;z-index:1;bottom:110px;width:clamp(180px,17vw,260px);pointer-events:none}
.oos-home-hero__palm img{width:100%;height:auto;display:block;filter:drop-shadow(0 24px 30px rgba(9,8,15,.5))}
.oos-home-hero__palm--l{left:calc(-1 * clamp(150px,13vw,210px))}
.oos-home-hero__palm--r{right:calc(-1 * clamp(120px,11vw,180px));bottom:180px;width:clamp(130px,12vw,190px);transform:scaleX(-1)}
.oos-home-hero__palm--r img{transform:scaleX(1)}
.oos-home-hero__heli{left:auto;right:-46px;top:2px;width:clamp(120px,11vw,164px);z-index:8}
.oos-home-hero__heli img{filter:drop-shadow(0 16px 18px rgba(9,8,15,.45))}

/* Illustrated mosaic tiles: a painted backdrop (photos/art/bg-*.webp) under one cut-out subject (character, animal or object).
   The gradient behind each tile is only what shows while its backdrop loads. */
.oos-home-scene{isolation:isolate;cursor:default}
.oos-home-scene > *{position:absolute;z-index:2;pointer-events:none}
/* A soft shade low in the tile grounds the subject and lifts it off the backdrop. */
.oos-home-scene::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(14,10,32,0) 62%,rgba(14,10,32,.18) 100%)}
.oos-home-scene > .oos-home-scene__bg{z-index:0}
.oos-home-scene__bg{inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--bg-at,50% 50%);transition:transform var(--dur-scene) var(--ease-out)}
.oos-mosaic__pan:hover .oos-home-scene__bg{transform:scale(1.04)}
.oos-home-scene__fig{left:50%;bottom:-18%;height:118%;width:auto;transform:translateX(-50%);filter:drop-shadow(0 20px 26px rgba(9,8,15,.55));transition:transform var(--dur-scene) var(--ease-out)}
.oos-mosaic__pan:hover .oos-home-scene__fig{transform:translate(-50%,-3%)}
/* Cars stand on the road: a tight shadow at the tyres, a softer one around them, and an ellipse on the asphalt (in ::before). */
.oos-home-scene{--car-shadow:drop-shadow(0 3px 2px rgba(20,12,40,.55)) drop-shadow(0 12px 12px rgba(20,12,40,.3))}
.oos-home-scene__car{left:50%;bottom:3%;width:96%;height:auto;transform:translateX(-50%);filter:var(--car-shadow)}

/* The dealer outside a roadside motel at dusk */
.oos-home-scene--neon{--bg-at:50% 30%;background:linear-gradient(180deg,#937CB7 0%,#9B8C9B 45%,#857097 75%,#74648D 100%)}
.oos-home-scene__fig--dealer{left:54%;bottom:-22%;height:122%}

/* Coast: the speedboat in the bay */
.oos-home-scene--coast{--bg-at:50% 58%;background:linear-gradient(180deg,#88BCD8 0%,#C0B4C8 45%,#73BAC5 75%,#7BBCC5 100%)}
.oos-home-scene__boat{right:-14%;bottom:2%;width:96%;height:auto;filter:drop-shadow(0 10px 12px rgba(9,8,15,.35));animation:oos-home-bob 5s ease-in-out infinite alternate}
@keyframes oos-home-bob{from{transform:translate3d(0,0,0) rotate(-1deg)}to{transform:translate3d(-6px,-5px,0) rotate(1.2deg)}}

/* The muscle car driving down the boulevard at sunset: on the centre line, the sun beside it, a shadow on the asphalt */
.oos-home-scene--road{--car-x:44%;--car-rx:27%}
/* Sized by the tile's height, so the car stays this size against the road on every tile shape. */
.oos-home-scene--road .oos-home-scene__car{width:auto;height:38%;left:var(--car-x);bottom:4%;filter:var(--car-shadow)}
.oos-home-scene--road::before{background:radial-gradient(var(--car-rx) 6% at var(--car-x) 94%,rgba(24,14,44,.6),rgba(24,14,44,0)),linear-gradient(180deg,rgba(14,10,32,0) 62%,rgba(14,10,32,.18) 100%)}
.oos-home-scene--road{--bg-at:58% 50%;background:linear-gradient(180deg,#B691C1 0%,#CD98A6 45%,#9E8BA6 75%,#836D94 100%)}

/* The robber outside the bank at golden hour */
.oos-home-scene--warm{background:linear-gradient(180deg,#D17F8E 0%,#B98188 45%,#CA8E94 75%,#966D88 100%)}
.oos-home-scene__fig--robber{left:52%;bottom:-6%;height:104%}

/* The officer on the beach promenade at dusk, her patrol car behind her */
.oos-home-scene--dusk{background:linear-gradient(180deg,#9A86B6 0%,#D7A7AE 45%,#A588A6 75%,#B091AA 100%)}
.oos-home-scene__fig--cop{left:60%;bottom:-24%;height:124%}

/* Sky: a flamingo over the lagoon */
.oos-home-scene--sky{background:linear-gradient(180deg,#A1B4CB 0%,#CEB2BB 45%,#8E94A7 75%,#72B0B9 100%)}
.oos-home-scene__bird{left:8%;top:10%;width:64%;height:auto;filter:drop-shadow(0 12px 14px rgba(9,8,15,.25));animation:oos-float 6s ease-in-out infinite alternate}

/* The rideshare driver pulled up at a hotel entrance at blue hour, the whole car in view */
.oos-home-scene--lilac::before{background:radial-gradient(42% 5.5% at 53% 93%,rgba(24,14,44,.55),rgba(24,14,44,0)),linear-gradient(180deg,rgba(14,10,32,0) 62%,rgba(14,10,32,.18) 100%)}
.oos-home-scene--lilac{--bg-at:50% 42%;background:linear-gradient(180deg,#7C72AC 0%,#BE9EB7 45%,#96879F 75%,#6F699F 100%)}
.oos-home-scene__car--ride{width:90%;bottom:6%;left:53%}

/* Swamp: the gator under the full moon */
.oos-home-scene--swamp{--bg-at:50% 40%;background:linear-gradient(180deg,#423971 0%,#685B8D 45%,#4F4C78 75%,#3B3D68 100%)}
.oos-home-scene__gator{left:-12%;bottom:-8%;width:122%;height:auto;filter:drop-shadow(0 12px 16px rgba(9,8,15,.5))}

/* ---------- Facts ---------- */
.oos-home-stats{margin-top:64px}
.oos-home-stats__icon{display:block;width:auto;height:58px;margin-bottom:16px;filter:drop-shadow(0 10px 12px rgba(9,8,15,.4))}
@media (max-width:760px){.oos-home-stats__icon{height:46px;margin-bottom:12px}}

/* ---------- Featured ---------- */
.oos-home-more{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:var(--space-6);margin-top:var(--space-6)}
.oos-home-more .oos-bundle{min-height:100%}
[data-oos-reveal][style*="--d"]{transition-delay:var(--d)}

/* ---------- OOS Ride story ---------- */
.oos-home-ride{position:relative}
.oos-home-ride::before{content:'';position:absolute;inset:40px 0 -40px;z-index:-1;background:radial-gradient(60% 50% at 20% 40%,rgba(160,124,203,.14),transparent 70%),radial-gradient(40% 40% at 90% 70%,rgba(248,198,166,.08),transparent 70%);pointer-events:none}
.oos-home-ride__head{position:relative}
.oos-home-ride__head .oos-sechd{max-width:720px}
.oos-home-ride__fig{right:3%;top:24px;width:clamp(150px,13vw,190px);z-index:3}
.oos-scene__shot--still img{object-position:30% 50%}
.oos-scene__shot .oos-media__tag{left:16px;bottom:16px}
.oos-scene__step b{display:block}
.oos-home-ride__cta{margin-top:26px;gap:18px}
.oos-home-ride__price{font-size:20px}
.oos-home-still .oos-media__img{object-position:30% 50%}

/* ---------- Trailer ---------- */
.oos-home-reel{position:relative}
.oos-home-reel__bird{right:17%;top:10px;width:clamp(120px,11vw,160px);z-index:1}
.oos-home-reel .oos-sechd{position:relative;z-index:2}

/* ---------- The standard ---------- */
.oos-home-tile{display:grid;place-items:center}
.oos-home-tile--light{background:radial-gradient(80% 70% at 50% 110%,rgba(248,198,166,.55),transparent 70%),linear-gradient(180deg,#2A2459 0%,#5B438A 55%,#C27EAB 100%)}
.oos-home-tile__sticker{position:relative;width:46%;height:auto;filter:drop-shadow(0 18px 22px rgba(9,8,15,.45));transition:transform var(--dur-base) var(--ease-out)}
.oos-home-tile--light .oos-home-tile__sticker{transform:translate(-14%,-4%) rotate(-6deg)}
.oos-home-tile__sticker--second{position:absolute;right:16%;bottom:12%;width:30%;transform:rotate(8deg)!important}
.oos-value:hover .oos-home-tile--light .oos-home-tile__sticker:not(.oos-home-tile__sticker--second){transform:translate(-14%,-8%) rotate(-2deg)}
.oos-home-tile--panel{background:radial-gradient(90% 80% at 0% 100%,rgba(169,232,207,.38),transparent 70%),linear-gradient(160deg,#2A2459 0%,#3B3576 55%,#4E6F8E 100%)}
.oos-home-tile__shot{position:absolute;left:12%;top:14%;width:118%;max-width:none;height:auto;border-radius:12px;box-shadow:0 24px 40px rgba(9,8,15,.55),0 0 0 1px rgba(201,194,241,.18);transition:transform var(--dur-base) var(--ease-out)}
.oos-value:hover .oos-home-tile__shot{transform:translate(-2%,-3%)}
.oos-home-tile__sticker--corner{position:absolute;right:4%;bottom:5%;width:24%;transform:rotate(7deg)}
.oos-home-tile__sticker--left{right:auto;left:5%;transform:rotate(-8deg)}
.oos-home-quotes{padding:24px 24px 24px 30%}
.oos-home-quotes .oos-quote{margin:0;font-size:14px}
.oos-home-quotes .oos-quote:nth-child(2){align-self:stretch}
.oos-home-textlink{color:var(--link);text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(198,190,240,.4);white-space:nowrap}
.oos-home-textlink:hover{text-decoration-color:var(--link)}

/* ---------- Install ---------- */
.oos-home-install{position:relative}
/* The CFX Portal box sticker sits on the "Download" card, half off its corner. */
.oos-home-install .oos-steps li:nth-child(2)::before{content:'';position:absolute;right:-16px;top:-30px;width:84px;height:78px;background:url(/photos/art/sticker-box.webp) center/contain no-repeat;filter:drop-shadow(0 12px 14px rgba(9,8,15,.45));transform:rotate(9deg);pointer-events:none}

/* ---------- FAQ ---------- */
.oos-home-faq .oos-sechd__lead{font-size:17px}
.oos-home-faq__links{margin-top:22px;gap:22px}
.oos-home-faq__gator{width:min(100%,340px);margin-top:40px;pointer-events:none}
.oos-home-faq__gator img{width:100%;height:auto;display:block;filter:drop-shadow(0 18px 24px rgba(9,8,15,.5))}
.oos-home-inline-code{height:26px;vertical-align:1px;cursor:text;padding:0 10px}

/* ---------- Closing panel ---------- */
.oos-home-end{padding-top:180px}
.oos-home-end__panel{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:420px;border-radius:var(--radius-xl);isolation:isolate}
.oos-home-end__bg{position:absolute;inset:0;z-index:-1;overflow:hidden;border-radius:inherit;background:linear-gradient(180deg,#221D4C 0%,#40306F 38%,#7A4F8F 70%,#B06F9C 100%);box-shadow:var(--shadow-float),inset 0 0 0 1px rgba(255,255,255,.06)}
/* Painted dusk promenade: calm violet sky on the left for the text, the sun and hotels behind the cast on the right. */
.oos-home-end__img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 62%}
.oos-home-end__copy{position:relative;z-index:3;align-self:center;padding:56px 0 56px 56px}
.oos-home-end__title{font:800 clamp(40px,4.6vw,64px)/.96 var(--font-sans);letter-spacing:-.03em;color:var(--ink);text-transform:uppercase}
.oos-home-end__title span{color:var(--pink)}
.oos-home-end__copy p{max-width:440px;margin-top:18px;font-size:18px;line-height:1.5;color:#E9E4F7}
.oos-home-end__keys{margin-top:28px;gap:14px}
.oos-home-end__cast{position:absolute;right:3%;bottom:0;z-index:2;display:flex;align-items:flex-end;justify-content:flex-end;height:min(calc(100% + 90px),33vw);width:54%;pointer-events:none}
.oos-home-end__fig{position:relative;height:100%;width:auto;flex:none;filter:drop-shadow(0 26px 30px rgba(9,8,15,.55))}
.oos-home-end__fig--owner{height:82%;margin-right:-7%;z-index:1}
.oos-home-end__fig--driver{height:94%;margin-right:-6%;z-index:3}
.oos-home-end__fig--staff{height:90%;z-index:2}
.oos-home-end__fig--passenger{height:93%;z-index:4}
.oos-home-community{margin-top:var(--space-12)}

/* ---------- Very wide screens: the hero gets more room ---------- */
@media (min-width:1700px){
  .oos-home-hero .oos-home-hero__wrap{width:min(1520px,100% - 160px)}
  .oos-home-hero .oos-mosaic{height:clamp(580px,34vw,700px)}
}

/* ---------- Motion ---------- */
html[data-motion="off"] .oos-home-scene__boat,html[data-motion="off"] .oos-home-scene__bird{animation:none}
html[data-motion="off"] .oos-home-scene__bg{transition:none}
@media (prefers-reduced-motion:reduce){
  .oos-home-scene__boat,.oos-home-scene__bird{animation:none}
  .oos-home-scene__bg{transition:none}
}

/* ---------- Responsive ---------- */
@media (max-width:1300px){
  .oos-home-hero__palm--r{display:none}
}
@media (max-width:1100px){
  .oos-home-hero__palm{display:none}
  .oos-home-scene--road{--car-rx:33%}
  /* The trip becomes a swipeable row of cards once the sticky stage is gone. */
  .oos-home-ride .oos-scene__steps{grid-auto-flow:column;grid-auto-columns:calc(50% - 8px);gap:16px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:24px;margin-inline:-24px;padding:4px 24px 18px;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
  .oos-home-ride .oos-scene__step{scroll-snap-align:start;justify-content:flex-start;padding:12px 12px 22px;border-radius:var(--radius-lg);background:var(--surface)}
  .oos-home-ride .oos-scene__step h3{font-size:24px;margin:10px 0 8px}
  .oos-home-ride .oos-scene__step p{font-size:15px}
  .oos-home-ride .oos-scene__step > b,.oos-home-ride .oos-scene__step > h3,.oos-home-ride .oos-scene__step > p,.oos-home-ride .oos-home-ride__cta{padding-inline:10px}
  .oos-home-ride .oos-scene__shot-m{aspect-ratio:4/5;margin-bottom:14px;border-radius:14px}
  .oos-home-ride__cta{flex-wrap:wrap}
  .oos-home-more{grid-template-columns:1fr}
  .oos-home-more .oos-card--compact{flex-direction:row}
  .oos-home-more .oos-card--compact .oos-card__media{flex:0 0 44%;aspect-ratio:auto;min-height:200px}
  .oos-home-ride__fig,.oos-home-reel__bird{display:none}
  .oos-home-faq__gator{display:none}
  .oos-home-end__panel{grid-template-columns:1fr;min-height:0}
  .oos-home-end__copy{padding:48px 40px 320px}
  .oos-home-end__cast{left:50%;right:auto;width:min(560px,92%);height:360px;transform:translateX(-50%);justify-content:center}
  .oos-home-end__img{object-position:58% 50%}
  .oos-home-end{padding-top:var(--space-28)}
}
@media (max-width:760px){
  .oos-home-hero__heli{display:none}
  /* The badge sits on the corner of this tile here, so the car moves out from under it. */
  .oos-home-scene--road{--car-x:57%;--car-rx:28%}
  .oos-home-mosaic .oos-mosaic__now{display:none}
  .oos-home-mosaic .oos-mosaic__label b{height:26px;padding:0 8px;font-size:12px;white-space:nowrap}
  .oos-home-ride .oos-scene__steps{grid-auto-columns:84%;scroll-padding-inline:16px;margin-inline:-16px;padding-inline:16px}
  .oos-home-stats{margin-top:44px}
  .oos-home-more .oos-card--compact{flex-direction:column}
  .oos-home-more .oos-card--compact .oos-card__media{flex:none;aspect-ratio:16/9;min-height:0}
  .oos-home-install .oos-steps li:nth-child(2)::before{right:-6px;top:-22px;width:64px;height:60px}
  .oos-home-quotes{padding:20px 20px 20px 26%}
  .oos-home-end__copy{padding:36px 22px 250px}
  .oos-home-end__cast{height:270px;width:96%}
  .oos-home-end__fig--driver{display:none}
  .oos-home-end__fig--owner{height:92%;margin-right:-8%}
  .oos-home-end__fig--staff{height:96%}
  .oos-home-end__keys .oos-key{flex:1 1 auto}
  .oos-home-community{margin-top:var(--space-10)}
}
@media (max-width:480px){
  .oos-home-mosaic .oos-mosaic__label{display:none}
}
