/* BMW-AZ driving masthead. Scoped addition to the existing October theme. */
header.masthead.bmw-motion-header { position:relative; }
.logo-bar.bmw-motion { isolation:isolate; }
.logo-bar.bmw-motion::before { inset:-4px auto -4px 0; width:auto; aspect-ratio:2170/458; background:url('../media/header-road-v2.webp') left center/100% 100% no-repeat; clip-path:inset(0 2px); -webkit-mask-image:linear-gradient(90deg,#000 60%,transparent 98%); mask-image:linear-gradient(90deg,#000 60%,transparent 98%); }
.bmw-road-light { position:absolute; z-index:1; left:19%; right:38%; top:71%; height:2px; pointer-events:none; background:linear-gradient(90deg,transparent,#73e9ff 8%,#25bdf3a6 24%,#1983b44d 55%,transparent 95%); box-shadow:0 0 9px #2dcaff66; }
.bmw-road-light::after { content:""; position:absolute; left:0; top:-1px; width:16%; height:3px; opacity:.7; background:linear-gradient(90deg,transparent,#adf5ff,transparent); filter:blur(.7px); }
.is-enhanced .bmw-road-light::after { animation:bmw-road-flow 6s ease-in-out infinite alternate; }
.bmw-motion-header.is-motion-paused .bmw-road-light::after { animation-play-state:paused; }
.bmw-motion .bmw-motion-car { position:absolute; z-index:0; inset:0 auto 0 0; width:27%; overflow:hidden; pointer-events:none; }
.bmw-motion-car img,.bmw-motion-car video { position:absolute; inset:0 auto 0 0; display:block; width:auto; height:100%; max-width:100%; object-fit:contain; object-position:left center; -webkit-mask-image:linear-gradient(90deg,#000 92%,transparent); mask-image:linear-gradient(90deg,#000 92%,transparent); }
.bmw-motion-car video { opacity:0; transition:opacity .35s ease; }
.bmw-motion-car.is-playing video { opacity:1; }
.bmw-motion .logo-word { position:relative; z-index:2; }
.bmw-motion .logo-deco { position:relative; z-index:2; }
.bmw-motion .logo-deco.d1-root .d1-hot { background:none; border-left-color:transparent; }
.bmw-motion .logo-deco.d1-root .d1-scan,.bmw-motion .logo-deco.d1-root .d1-glow { display:none; }
.bmw-motion .lw-alt { flex-wrap:nowrap; }
.bmw-motion .bmw-domain-label { display:inline-flex; color:#bdeeff; }
.bmw-motion .bmw-domain-letter { display:inline-block; color:#bdeeff; }
.bmw-motion-header.is-enhanced .bmw-domain-letter { animation:bmw-domain-wave 6s ease-in-out infinite both; animation-delay:calc(var(--letter) * 35ms); }
.bmw-motion-header.is-motion-paused .lw-domain,.bmw-motion-header.is-motion-paused .bmw-domain-letter { animation-play-state:paused !important; }
.bmw-headlines { position:relative; display:flex; align-items:center; justify-content:center; height:52px; width:100%; color:#f4faff; font-family:Arial,"Segoe UI",sans-serif; font-weight:800; line-height:1; text-align:center; }
.bmw-address-line { display:inline-flex; align-items:baseline; white-space:nowrap; font-size:46px; letter-spacing:-1.4px; text-shadow:0 2px 5px #00132c,0 0 22px #35c4f038; }
.bmw-address-brand { font-family:"Arial Black","Segoe UI",Arial,sans-serif; font-weight:900; }
.bmw-address-prefix,.bmw-address-dot,.bmw-address-suffixes { font-size:.72em; font-weight:750; letter-spacing:-.6px; }
.bmw-address-prefix { color:#d8efff; }
.bmw-address-dot,.bmw-address-suffixes { color:#4ad2ff; }
.bmw-address-suffixes { display:inline-grid; overflow:hidden; text-align:left; }
.bmw-suffix { grid-area:1 / 1; display:block; line-height:1.12; opacity:0; }
.bmw-suffix:first-child { opacity:1; }
.bmw-motion-header.is-enhanced .bmw-suffix { animation:bmw-suffix-cycle 16s cubic-bezier(.3,0,.2,1) infinite both; animation-delay:calc((var(--step) - 4) * 4s); }
.bmw-motion-header.is-motion-paused .bmw-suffix,.bmw-motion-header.is-motion-paused .d1-scroll,.bmw-motion-header.is-motion-paused .d1-cur { animation-play-state:paused !important; }
@keyframes bmw-suffix-cycle { 0%,21.5% { opacity:1; transform:translateY(0); } 25% { opacity:0; transform:translateY(-100%); } 25.01%,96.5% { opacity:0; transform:translateY(100%); } 100% { opacity:1; transform:translateY(0); } }
@keyframes bmw-road-flow { 0% { transform:translateX(0); opacity:.35; } 50% { opacity:.75; } 100% { transform:translateX(360%); opacity:.2; } }
@keyframes bmw-domain-wave { 0%,14%,100% { transform:translateY(0); color:#bdeeff; text-shadow:0 0 2px #3cbcff22; } 4% { transform:translateY(var(--wave-rise,-3px)); color:#ffffff; text-shadow:0 0 6px #42dfff; } 8% { transform:translateY(1px); color:#64e4ff; text-shadow:0 0 3px #42dfff88; } 11% { transform:translateY(0); color:#bdeeff; text-shadow:0 0 2px #3cbcff22; } }
@media(max-width:1100px) { .bmw-road-light { right:27%; } .bmw-motion .bmw-motion-car { width:29%; } .bmw-address-line { font-size:42px; } }
@media(max-width:900px) { .bmw-road-light { right:5%; } .bmw-motion .bmw-motion-car { width:34%; } }
@media(max-width:620px) {
  .bmw-motion .lw-alt { --wave-rise:-1.5px; gap:0; font-size:clamp(8.8px,2.8vw,11px); }
  .bmw-motion .lw-domain { padding:0; border:0; background:none; }
  .bmw-motion .lw-alt .sep { display:inline-block; margin-inline:4px; }
  .logo-bar.bmw-motion { min-height:324px; }
  .logo-bar.bmw-motion::before { inset:0 auto auto 50%; height:184px; transform:translateX(-50%); clip-path:inset(3px); -webkit-mask-image:linear-gradient(180deg,#000 75%,transparent 98%); mask-image:linear-gradient(180deg,#000 75%,transparent 98%); }
  .bmw-road-light { left:8%; right:8%; top:auto; bottom:48px; opacity:.45; }
  .bmw-motion .bmw-motion-car { top:0; left:0; width:100%; height:184px; -webkit-mask-image:linear-gradient(180deg,#000 86%,transparent); mask-image:linear-gradient(180deg,#000 86%,transparent); }
  .bmw-motion-car img,.bmw-motion-car video { left:50%; transform:translateX(-50%); object-position:center; -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); }
  .bmw-motion .logo-word { position:absolute; left:0; bottom:28px; width:100%; margin:0; padding-inline:10px; }
  .bmw-headlines { height:54px; }
  .bmw-address-line { font-size:clamp(26px,8.3vw,36px); letter-spacing:-.8px; }
}
@media(prefers-reduced-motion:reduce) {
 .bmw-motion-header .lw-domain,.bmw-motion-header .bmw-domain-label,.bmw-motion-header .bmw-domain-letter { animation:none !important; transform:none !important; filter:none !important; text-shadow:none !important; }
 .bmw-motion-header .bmw-domain-label { color:#bdeeff !important; -webkit-text-fill-color:currentColor !important; background:none !important; }
 .bmw-motion-header .bmw-road-light::after { animation:none !important; }
 .bmw-motion-header .bmw-suffix { animation:none !important; transform:none !important; opacity:0 !important; }
 .bmw-motion-header .bmw-suffix:first-child { opacity:1 !important; }
 .bmw-motion-car video { display:none; }
}
@media(forced-colors:active) {
 .bmw-motion-header .bmw-domain-label,.bmw-motion-header .bmw-domain-letter { color:LinkText !important; -webkit-text-fill-color:currentColor !important; background:none !important; animation:none !important; transform:none !important; text-shadow:none !important; }
 .bmw-motion-header .lw-domain { filter:none !important; }
}
