.hero { --h: max(100svh, 700px); height: var(--h); overflow: hidden; background: #000; }
.hero__scene {
  --w: max(100vw, var(--h) * 1.8286); --mx: 72%; --my: 38%; --beam: 0;
  position: absolute; right: calc(var(--w) * -.065); width: var(--w); aspect-ratio: 3840 / 2100;
  bottom: calc(min(0px, var(--h) - 100vw / 1.8286) * .4);
}
.hero__scene picture, .hero__scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__base { animation: wake 2s .15s cubic-bezier(.3, 0, .2, 1) both; }
@keyframes wake { from { filter: brightness(.12); } to { filter: none; } }
.hero__lit {
  --spot: radial-gradient(circle calc(var(--w) * .17) at var(--mx) var(--my), #000 5%, #0009 45%, #0000);
  opacity: var(--beam); -webkit-mask-image: var(--spot); mask-image: var(--spot);
}
.hero__flare { position: absolute; left: 35.4%; top: 46.6%; width: 0; height: 0; mix-blend-mode: screen; animation: ignite 1.5s .25s both; }
.hero__flare::before, .hero__flare::after { content: ""; position: absolute; translate: -50% -50%; border-radius: 50%; }
.hero__flare::before { width: calc(var(--w) * .13); height: calc(var(--w) * .13); background: radial-gradient(closest-side, #eaf1ffb0, #b9cbe84d 18%, #7d92b51f 45%, #0000); }
.hero__flare::after { width: calc(var(--w) * .46); height: calc(var(--w) * .055); margin-left: calc(var(--w) * -.1); background: radial-gradient(closest-side, #cfdcf552, #8ba1c41a 50%, #0000); rotate: -3deg; }
@keyframes ignite { 0% { opacity: 0; } 12% { opacity: .9; } 18% { opacity: .15; } 30% { opacity: 1; } 100% { opacity: .78; } }

.hero__inner { position: relative; height: 100%; display: flex; flex-direction: column; padding-block: clamp(104px, 13.2vh, 200px) clamp(20px, 2.6vw, 56px); }
.hero__text { align-self: flex-start; }
.hero__text > * { animation: rise 1.1s var(--ease) both; }
.hero__text p { margin-top: clamp(16px, 1.6vw, 30px); font-size: clamp(16px, 1.25vw, 22px); color: #d8dadd; animation-delay: .12s; }
.hero__text .hero__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 2.4vw, 44px); animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* live spec bar */
.bar {
  position: relative; margin-top: auto; display: grid; grid-template-columns: 1.1fr 1.55fr 1.3fr 1fr 1fr 1fr 1.5fr; padding: 10px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(90deg, #5d6064a8, #8d9196a6 60%, #a5a9ae99);
  -webkit-backdrop-filter: blur(26px) saturate(1.2); backdrop-filter: blur(26px) saturate(1.2);
  box-shadow: inset 0 0 0 1px #ffffff2b, 0 40px 80px -30px #000; animation: rise 1.2s .35s var(--ease) both;
}
.bar__time { position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: #fff; transform-origin: 0 0; transform: scaleX(0); }
.bar.is-auto .bar__time { animation: time 6s linear; }
.bar:hover .bar__time, .bar:focus-within .bar__time { animation-play-state: paused; }
@keyframes time { to { transform: scaleX(1); } }
.bar__car { position: relative; display: grid; place-items: center; min-height: 112px; padding-right: 46px; }
.bar__car img { width: 100%; height: 100px; object-fit: contain; filter: drop-shadow(0 10px 8px #0007); }
.bar__sw { position: absolute; right: 8px; top: 50%; translate: 0 -50%; display: grid; gap: 4px; }
.bar__sw button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 2px; background: #ffffff2e; color: #fff; cursor: pointer; font-size: 15px; transition: background-color .2s, color .2s; }
.bar__sw button:hover { background: #fff; color: #000; }
.bar__cell { padding: 12px 12px 12px 22px; border-left: 1px solid #ffffff2e; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; overflow: hidden; }
.bar__cell span, .bar__cta > span:first-child { font-size: 13px; color: #fff; }
.bar__cell b, .bar__cta b { font: 500 clamp(17px, 1.42vw, 27px)/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bar__cell:not(.bar__cell--name) b { white-space: nowrap; }
.bar__cell--route b { display: flex; align-items: center; gap: 12px; }
.bar__cell--route i { position: relative; flex: 1; max-width: 70px; height: 1px; background: #ffffff8c; }
.bar__cell--route i::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; background: var(--red); animation: ride 3.4s ease-in-out infinite; }
@keyframes ride { from { left: 0; opacity: 0; } 15%, 80% { opacity: 1; } to { left: calc(100% - 7px); opacity: 0; } }
.bar.is-swap #b-img { animation: carin .7s var(--ease); }
.bar.is-swap .bar__cell b[id] { animation: valin .6s var(--ease); }
@keyframes carin { from { opacity: 0; transform: translateX(46px); } }
@keyframes valin { from { opacity: 0; transform: translateY(70%); } }
.bar__cta { position: relative; padding: 14px 20px; margin-left: 10px; background: var(--red); border-radius: 3px; display: flex; flex-direction: column; justify-content: space-between; transition: background-color .25s; }
.bar__cta:hover { background: var(--red-dark); }
.bar__cta .sq { position: absolute; right: 10px; top: 10px; background: #fff; color: #000; }

@media (max-width: 1180px) {
  .hero { --h: max(100svh, 980px); }
  .hero__scene { --w: max(100vw, (var(--h) - 200px) * 1.8286); right: auto; left: calc(5vw - (var(--h) - 200px) * .44); bottom: 200px; }
  .bar { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
  .bar__cell:nth-of-type(4) { border-left: 0; }
  .bar__cta { grid-column: 1 / -1; margin: 0; min-height: 92px; }
}
@media (max-width: 820px) {
  .hero { height: auto; }
  .hero__inner { height: auto; padding-block: 96px 16px; }
  .hero__scene { --w: 136vw; position: absolute; left: -14vw; top: 300px; bottom: auto; width: var(--w); aspect-ratio: 1400 / 1001; }
  .hero__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#000, #0000 12%, #0000 88%, #000); }
  .hero__lit { -webkit-mask-image: none; mask-image: none; }
  .hero__flare { left: 22.4%; top: 37.7%; }
  .hero__text { min-height: calc(204px + 136vw * .66); }
  .bar { grid-template-columns: 1fr 1fr; row-gap: 0; -webkit-backdrop-filter: none; backdrop-filter: none; background: #2f3134; }
  .bar__car { grid-column: 1 / -1; min-height: 124px; }
  .bar__car img { height: 116px; }
  .bar__cell { border: 0; padding: 10px; gap: 6px; }
  .bar__cell--name { grid-column: 1 / -1; }
  .bar__sw { right: 2px; }
  .bar__sw button { width: 44px; height: 44px; }
  .bar__cta { margin-top: 8px; }
}

/* red accents */
.bar__time { background: linear-gradient(90deg, #4a0609, #e01b16); height: 3px; }
.bar__cell--route i::after { background: #e01b16; box-shadow: 0 0 10px #e01b16; }
@media (min-width: 821px) {
  .hero__scene::after { content: ""; position: absolute; inset: 0 auto 0 -1px; width: 14%; background: linear-gradient(90deg, #000, #0000); }
}
@media (min-width: 1700px) {
  .hero__scene { right: calc(var(--w) * -.03); }
}
