/* Dream N More Cars — cinematic homepage layer (hero orbit, spotlight, four-ways scroller, reveals). */

/* ======================================================= HERO STAGE */
#hero.cine {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 2vw;
  padding: 96px 5vw 48px;
  overflow: hidden;
  isolation: isolate;
}
#hero.cine > .cine-bg:not(#particle-canvas) { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#hero.cine > .scroll-cue:not(#particle-canvas) { position: absolute; z-index: 6; }
#hero.cine > #particle-canvas { z-index: 1; }
#hero.cine > .cine-copy:not(#particle-canvas), #hero.cine > .orbit-stage:not(#particle-canvas) { position: relative; z-index: 3; }

.cine-glow {
  position: absolute; right: -18%; top: -8%; width: 95vmax; height: 95vmax;
  background: radial-gradient(circle at 58% 45%, rgba(58,109,240, 0.34), rgba(58,109,240, 0.09) 34%, transparent 62%);
}
.cine-beam {
  position: absolute; top: -25%; width: 20vw; height: 150%;
  background: linear-gradient(180deg, rgba(143,176,255, 0.26), rgba(143,176,255, 0.05) 55%, transparent 80%);
  filter: blur(28px); transform-origin: 50% 0; mix-blend-mode: screen;
  animation: cineBeam 10s ease-in-out infinite alternate;
}
.cine-beam.b1 { right: 32%; --r0: 12deg; --r1: 24deg; }
.cine-beam.b2 { right: 6%; --r0: -18deg; --r1: -8deg; animation-duration: 13s; animation-delay: -5s; }
@keyframes cineBeam { from { opacity: .35; transform: rotate(var(--r0)); } to { opacity: .85; transform: rotate(var(--r1)); } }
.cine-floor {
  position: absolute; left: -25%; right: -25%; bottom: -12%; height: 58%;
  background:
    linear-gradient(rgba(58,109,240, 0.24) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(58,109,240, 0.24) 1px, transparent 1px) 0 0 / 64px 64px;
  transform: perspective(620px) rotateX(70deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 82%); mask-image: linear-gradient(to top, #000 8%, transparent 82%);
  animation: cineFloor 5s linear infinite;
}
@keyframes cineFloor { to { background-position: 0 64px, 0 0; } }
.cine-word {
  position: absolute; left: -1vw; bottom: 5vh; white-space: nowrap; letter-spacing: -0.02em;
  font: 900 clamp(80px, 16vw, 250px)/.85 'Unbounded', sans-serif;
  color: transparent; -webkit-text-stroke: 1px rgba(233,236,241, 0.07);
  will-change: transform;
}

/* ---------------- copy */
.cine-copy { max-width: 640px; gap: 20px !important; }
#hero.cine h1.hero-title { font-size: clamp(28px, 3.4vw, 54px); line-height: 1.04; }
.cine-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.cine-ctas .btn { padding: 15px 26px; font-size: 14px; }
.cine-cta-main { box-shadow: 0 0 0 1px rgba(143,176,255, .4), 0 12px 40px rgba(58,109,240, .45); }
.cine-hint { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--volt-soft); margin-top: 6px; }
.cine-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: #8fb0ff; box-shadow: 0 0 0 0 rgba(143,176,255, .7); animation: cineDot 2s infinite; }
@keyframes cineDot { 70% { box-shadow: 0 0 0 10px rgba(143,176,255, 0); } 100% { box-shadow: 0 0 0 0 rgba(143,176,255, 0); } }

/* ---------------- orbit stage */
.orbit-stage { height: min(86svh, 860px); min-height: 540px; width: 100%; }
.orbit-platform {
  position: absolute; left: 50%; bottom: 5%; width: 66%; height: 13%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(58,109,240, .55), rgba(58,109,240, .14) 62%, transparent);
  pointer-events: none;
}
.orbit-platform i {
  position: absolute; inset: 20% 14%; border-radius: 50%;
  border: 1px solid rgba(143,176,255, .7);
  box-shadow: 0 0 34px rgba(58,109,240, .7), inset 0 0 26px rgba(58,109,240, .55);
  animation: cinePlate 3.6s ease-in-out infinite;
}
@keyframes cinePlate { 50% { box-shadow: 0 0 60px rgba(58,109,240, .95), inset 0 0 40px rgba(58,109,240, .7); } }
.orbit-ring {
  position: absolute; left: 50%; top: var(--cy, 50%); width: var(--rw, 60%); height: var(--rh, 12%);
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  border: 1px dashed rgba(143,176,255, .26);
  box-shadow: 0 0 40px rgba(58,109,240, .08) inset;
}
.orbit-ceo-wrap {
  position: absolute; left: 50%; bottom: 6%; height: 88%; z-index: 50; pointer-events: none;
  transform: translateX(-50%); will-change: transform;
}
.orbit-ceo-wrap picture, .orbit-ceo { display: block; height: 100%; width: auto; }
.orbit-ceo {
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, .65)) drop-shadow(-7px 0 16px rgba(58,109,240, .35)) drop-shadow(7px 0 18px rgba(143,176,255, .22));
}
.orbit-layer { position: absolute; inset: 0; }

.orb {
  --s: 86px;
  position: absolute; left: 0; top: 0; width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  padding: 3px; border: 0; border-radius: 50%; cursor: pointer;
  background: conic-gradient(from var(--a, 0deg), #3a6df0, #8fb0ff 18%, #8fb0ff 28%, #3a6df0 45%, rgba(10,10,11, .9) 62%, #3a6df0);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55), 0 0 22px rgba(58,109,240, .45);
  will-change: transform, opacity; opacity: 0;
  transition: box-shadow .3s ease, filter .3s ease;
  animation: orbSpin 6s linear infinite;
}
.orb.r0 { --s: 74px; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes orbSpin { to { --a: 360deg; } }
.orb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 55%; display: block; background: #141518; border: 2px solid #0a0a0b; pointer-events: none; }
.orb.back { filter: saturate(.75) brightness(.8); }
.orb.hot, .orb:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 40px rgba(143,176,255, .95), 0 18px 40px rgba(0, 0, 0, .6); filter: none; }
.orb:focus-visible { outline: 3px solid #8fb0ff; outline-offset: 4px; }
.orb.pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #8fb0ff; animation: orbPulse .7s ease-out forwards; }
@keyframes orbPulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

.orbit-tip {
  position: absolute; left: 0; top: 0; z-index: 80; pointer-events: none;
  min-width: 190px; max-width: 250px; padding: 12px 14px; border-radius: 12px;
  background: rgba(13, 16, 22, .94); border: 1px solid rgba(143,176,255, .5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 24px rgba(58,109,240, .25);
  backdrop-filter: blur(8px); transition: opacity .2s; font-size: 13px; line-height: 1.35;
}
.orbit-tip b { display: block; color: #fff; font-size: 13.5px; margin-bottom: 4px; }
.orbit-tip .p { color: var(--volt-soft); font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.orbit-tip .go { display: block; margin-top: 8px; color: #8fb0ff; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.orbit-name { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 55; text-align: center; pointer-events: none; white-space: nowrap; }
.orbit-name b { display: block; font-family: 'Unbounded', sans-serif; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.orbit-name span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--volt-soft); }
.orbit-pause {
  position: absolute; right: 6px; bottom: 6px; z-index: 70; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(143,176,255, .45); background: rgba(10,10,11, .8); color: #fff; font-size: 12px; cursor: pointer;
}
.orbit-pause:hover { background: rgba(58,109,240, .3); }
.orbit-pause[aria-pressed="true"] { color: #8fb0ff; border-color: #8fb0ff; }

/* intro: the CEO rises out of the light */
.cine-ready .orbit-ceo-wrap picture { animation: ceoIn 1.4s cubic-bezier(.2, .8, .2, 1) both .15s; }
.cine-ready .orbit-platform { animation: plateIn 1.2s ease-out both; }
@keyframes ceoIn { from { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(10px) brightness(1.8); } to { opacity: 1; transform: none; filter: none; } }
@keyframes plateIn { from { opacity: 0; transform: translateX(-50%) scaleX(.3); } to { opacity: 1; transform: translateX(-50%) scaleX(1); } }

.scroll-cue { left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ash); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--volt-soft), transparent); animation: cueLine 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cueLine { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(20px); opacity: 0; } }

@media (max-width: 999px) {
  #hero.cine { grid-template-columns: 1fr; padding: 92px 5vw 80px; gap: 10px; }
  .cine-copy { max-width: none; }
  #hero.cine h1.hero-title { font-size: clamp(28px, 7.4vw, 50px); }
  .orbit-stage { height: min(70svh, 620px); min-height: 440px; order: -1; margin-top: -10px; }
  .cine-hint { display: none; }
  .orb { --s: 64px; } .orb.r0 { --s: 54px; }
  .cine-word { bottom: auto; top: 44%; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .orb { --s: 54px; } .orb.r0 { --s: 46px; }
  .orbit-tip { display: none; }
  .cine-ctas .btn { flex: 1 1 auto; justify-content: center; }
}

/* ======================================================= SPOTLIGHT */
#spotlight { padding-top: 90px; }
#spotlight .spot-title { font-size: clamp(24px, 4vw, 44px); text-transform: uppercase; margin-bottom: 26px; }
#spotlight .hero-car-stage { margin-bottom: 18px; }
#heroShowcaseImg { transition: opacity .55s ease, transform 1.2s ease; }
#heroShowcaseImg.swap-out { opacity: 0; transform: scale(1.03); }
.hero-car-details.swap-in > * { animation: spotIn .6s ease both; }
.hero-car-details.swap-in > *:nth-child(2) { animation-delay: .08s; }
.hero-car-details.swap-in > *:nth-child(3) { animation-delay: .16s; }
@keyframes spotIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-pause { display: none !important; }

/* ======================================================= FOUR WAYS */
.ways { padding: 90px 0 50px; overflow: hidden; }
.ways-head { padding: 0 6vw; }
.ways-head h2 { font-size: clamp(24px, 4vw, 44px); text-transform: uppercase; max-width: 760px; }
.ways-viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ways.pinned .ways-viewport { overflow: hidden; }
.ways-track { display: flex; gap: 28px; padding: 36px 6vw 24px; width: max-content; will-change: transform; }
.way-card {
  width: min(80vw, 1000px); min-height: min(62vh, 560px); scroll-snap-align: center;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: linear-gradient(140deg, rgba(58,109,240, .12), var(--steel) 45%); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.way-media { position: relative; overflow: hidden; background: #0d0e10; }
.way-media img { position: absolute; inset: 0; width: 118%; height: 100%; max-width: none; object-fit: cover; transform: translateX(var(--px, -6%)); }
.way-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(20,21,24, .95)); }
.way-body { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.way-num { font: 800 clamp(48px, 7vw, 110px)/1 'Unbounded', sans-serif; color: transparent; -webkit-text-stroke: 1px rgba(143,176,255, .7); }
.way-body h3 { font-size: clamp(28px, 4vw, 54px); text-transform: uppercase; color: #fff; }
.way-body p { color: var(--ash); font-size: 15.5px; line-height: 1.6; max-width: 420px; }
.way-body .btn { align-self: flex-start; }
.ways-progress { height: 2px; margin: 18px 6vw 0; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.ways-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--volt), #8fb0ff); }
@media (max-width: 899px) {
  .way-card { width: 86vw; grid-template-columns: 1fr; min-height: 0; }
  .way-media { height: 220px; }
  .way-media img { width: 100%; transform: none; }
  .way-media::after { background: linear-gradient(180deg, transparent 50%, rgba(20,21,24, .95)); }
  .ways-progress { display: none; }
}

/* ======================================================= SCROLL REVEALS */
.fleet-card.pre { opacity: 0; transform: translateY(46px) scale(.97); }
.fleet-card.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.fleet-card.flash { animation: cardFlash 2.4s ease-out; }
@keyframes cardFlash { 0%, 30% { box-shadow: 0 0 0 2px #8fb0ff, 0 0 50px rgba(143,176,255, .45); } 100% { box-shadow: none; } }
.clip-pre { clip-path: inset(0 0 100% 0); }
.clip-in { clip-path: inset(0 0 0 0); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  .cine-beam, .cine-floor, .orbit-platform i, .orb, .cine-hint .dot, .scroll-cue i { animation: none !important; }
  .cine-ready .orbit-ceo-wrap picture, .cine-ready .orbit-platform { animation: none !important; }
  .fleet-card.pre { opacity: 1; transform: none; }
  .clip-pre { clip-path: none; }
}

/* Admin: orbit switched off */
.orbit-stage.orbit-off #orbitLayer, .orbit-stage.orbit-off .orbit-ring, .orbit-stage.orbit-off #orbitTip { display: none !important; }

