/* =======================================================================
   Ride through the tunnel -- a pinned, scroll-driven scene.
   Without JS (or with reduced motion) it is a dark band with the SVG car and the stages as a plain list. .is-live
   (added by carwash.js) pins it and swaps the SVG for a canvas: a real 3D SUV, gantries, floor and spray rendered in
   perspective, so every layer's parallax comes from its actual depth. The camera orbits from front three-quarter
   to rear three-quarter over the ride and pushes in on entry.
   ======================================================================= */
.pl-tun {
  --tun-bg: #040B1A; --tun-line: rgba(127, 227, 245, .22); --tun-ink: #E9F6FF; --tun-dim: rgba(213, 222, 234, .62);
  position: relative; background: var(--tun-bg); color: var(--tun-ink); isolation: isolate;
}
.pl-tun__pin { position: relative; overflow: hidden; padding-bottom: 40px; }
.pl-tun__scene { position: relative; height: 300px; overflow: hidden; pointer-events: none; }
.pl-tun__scene > * { position: absolute; }

/* --- backdrop --- */
.pl-tun__sky { inset: 0; background:
  radial-gradient(60% 55% at 50% 62%, rgba(31, 95, 255, .28), transparent 70%),
  radial-gradient(40% 30% at 50% 78%, rgba(60, 203, 234, .18), transparent 70%),
  linear-gradient(180deg, #030814 0%, #06142E 55%, #040B1A 100%); }
.pl-tun__sweep { inset: 0; background: linear-gradient(180deg, transparent 0 46%, rgba(127, 227, 245, .07) 49%, rgba(127, 227, 245, .16) 50%, transparent 54%);
  background-size: 100% 220%; animation: pl-tun-sweep 7s linear infinite; mix-blend-mode: screen; }
@keyframes pl-tun-sweep { from { background-position: 0 100%; } to { background-position: 0 -120%; } }
/* --- the 3D canvas (live) and the static SVG car (no JS / reduced motion) --- */
.pl-tun__cv { display: none; inset: 0; width: 100%; height: 100%; }
.pl-tun__car { left: 50%; bottom: 22%; width: min(620px, 86%); transform: translateX(-50%); --beam: var(--pl-cyan); will-change: transform; }
.pl-tun__svg { display: block; width: 100%; height: auto; overflow: visible;
  -webkit-box-reflect: below -8px linear-gradient(transparent 62%, rgba(255, 255, 255, .16)); }
.pl-tun__svg #pl-tun-beam stop { stop-color: var(--beam); }
.pl-tun__body { stroke: none; }
.pl-tun__mesh { fill: none; stroke: #9BEBFA; stroke-width: .6; stroke-opacity: .34; }
.pl-tun__rings { stroke-opacity: .7; }
.pl-tun__glass { fill: rgba(4, 11, 26, .62); stroke: #BFF3FF; stroke-width: 1.2; stroke-opacity: .85; }
.pl-tun__refl { fill: none; stroke: #7FE3F5; stroke-width: .8; stroke-opacity: .35; }
.pl-tun__clad { fill: rgba(4, 11, 26, .7); stroke: #7FE3F5; stroke-width: 1; stroke-opacity: .6; }
.pl-tun__mirror { fill: rgba(4, 11, 26, .9); stroke: #BFF3FF; stroke-width: 1.2; }
.pl-tun__flare { stroke-opacity: .9; stroke-width: 1.4; }
.pl-tun__lines { fill: none; stroke: #7FE3F5; stroke-width: 1; stroke-opacity: .55; }
.pl-tun__outline { fill: none; stroke: #BFF3FF; stroke-width: 2; stroke-linejoin: round; }
.pl-tun__head { fill: #EAFBFF; filter: drop-shadow(0 0 6px #7FE3F5); }
.pl-tun__tail { fill: #FF4D6A; filter: drop-shadow(0 0 6px #FF4D6A); }
.pl-tun__nodes { fill: #EAFBFF; }
.pl-tun__tire { fill: rgba(4, 11, 26, .85); stroke: #7FE3F5; stroke-width: 1.6; }
.pl-tun__tread { stroke: #7FE3F5; stroke-width: 1.4; stroke-opacity: .55; }
.pl-tun__rim { fill: none; stroke: #BFF3FF; stroke-width: 1.3; }
.pl-tun__rim--wall { stroke-opacity: .55; }
.pl-tun__rim--disc { stroke-dasharray: 2 3; stroke-opacity: .5; }
.pl-tun__spoke { stroke: #BFF3FF; stroke-width: 1.2; stroke-opacity: .85; }
.pl-tun__hub { fill: #EAFBFF; }

/* --- reticle, leader, frame corners --- */
.pl-tun__reticle { display: none; position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  border: 1.5px solid var(--c, var(--pl-cyan)); box-shadow: 0 0 16px color-mix(in srgb, var(--c, #3CCBEA) 60%, transparent);
  left: 0; top: 0; transition: border-color .3s; will-change: transform; }
.pl-tun__reticle::before, .pl-tun__reticle::after { content: ""; position: absolute; inset: -9px; border: 1px dashed var(--c, var(--pl-cyan)); border-radius: 50%; opacity: .55; animation: pl-tun-spin 6s linear infinite; }
.pl-tun__reticle::after { inset: 21px; border: 0; border-radius: 50%; background: var(--c, var(--pl-cyan)); box-shadow: 0 0 10px var(--c, var(--pl-cyan)); animation: none; opacity: 1; }
.pl-tun__reticle > span { position: absolute; inset: -16px; background:
  linear-gradient(var(--c, #3CCBEA), var(--c, #3CCBEA)) 50% 0 / 1px 10px no-repeat, linear-gradient(var(--c, #3CCBEA), var(--c, #3CCBEA)) 50% 100% / 1px 10px no-repeat,
  linear-gradient(var(--c, #3CCBEA), var(--c, #3CCBEA)) 0 50% / 10px 1px no-repeat, linear-gradient(var(--c, #3CCBEA), var(--c, #3CCBEA)) 100% 50% / 10px 1px no-repeat; }
@keyframes pl-tun-spin { to { transform: rotate(360deg); } }
.pl-tun__leader { display: none; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pl-tun__leader line { stroke: var(--c, var(--pl-cyan)); stroke-width: 1; stroke-dasharray: 4 4; opacity: .8; }
.pl-tun__leader circle { fill: var(--c, var(--pl-cyan)); }
.pl-tun__corner { width: 22px; height: 22px; border: 0 solid rgba(127, 227, 245, .55); }
.pl-tun__corner--tl { top: 14px; left: 14px; border-width: 1.5px 0 0 1.5px; }
.pl-tun__corner--tr { top: 14px; right: 14px; border-width: 1.5px 1.5px 0 0; }
.pl-tun__corner--bl { bottom: 14px; left: 14px; border-width: 0 0 1.5px 1.5px; }
.pl-tun__corner--br { bottom: 14px; right: 14px; border-width: 0 1.5px 1.5px 0; }

/* --- top bar --- */
.pl-tun__top { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; padding-top: 40px; }
.pl-tun__kicker { margin: 0; font: 600 12px/1 var(--pl-mono); letter-spacing: .14em; color: var(--pl-cyan-ink); }
.pl-tun__kicker::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--pl-cyan); box-shadow: 0 0 10px var(--pl-cyan); vertical-align: 1px; animation: pl-tun-blink 1.6s steps(2) infinite; }
@keyframes pl-tun-blink { 50% { opacity: .2; } }
.pl-tun__title { margin: 12px 0 0; color: #fff; font-size: clamp(30px, 4vw, 56px); line-height: .95; font-weight: 700; letter-spacing: -0.05em; }
.pl-tun__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pl-tun__tiers { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; border: 1px solid rgba(127, 227, 245, .28); background: rgba(6, 20, 46, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pl-tun__tiers button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--tun-dim); font: 600 14px/1 var(--pl-font); cursor: pointer; transition: background .2s, color .2s; }
.pl-tun__tiers button:hover { color: #fff; }
.pl-tun__tiers button[aria-pressed="true"] { background: var(--pl-cyan); color: var(--pl-navy-deep); box-shadow: 0 0 18px rgba(60, 203, 234, .45); }
.pl-tun__tiers button:focus-visible, .pl-tun__skip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pl-tun__skip { font: 500 13px/1 var(--pl-mono); letter-spacing: .06em; color: var(--tun-dim); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.pl-tun__skip:hover { color: #fff; }

/* --- callouts (static: a grid of cards) --- */
.pl-tun__calls { list-style: none; margin: 0 auto; padding: 24px var(--pl-gutter) 0; max-width: 1320px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.pl-tun__call { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid rgba(127, 227, 245, .2); border-radius: 4px;
  background: linear-gradient(180deg, rgba(10, 31, 68, .72), rgba(6, 20, 46, .78)); }
.pl-tun__call::before, .pl-tun__call::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid var(--c); }
.pl-tun__call::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.pl-tun__call::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.pl-tun__call-k { display: flex; align-items: center; gap: 10px; font: 600 11px/1 var(--pl-mono); letter-spacing: .14em; color: var(--tun-dim); }
.pl-tun__swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.pl-tun__swatch.is-tri { background: linear-gradient(90deg, #FF3B4E 0 33%, #FFC93C 33% 67%, #2F7BFF 67%); }
.pl-tun__call-name { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; color: #fff; }
.pl-tun__call-desc { font-size: 15px; line-height: 1.5; color: var(--pl-on-dark, #D5DEEA); }
.pl-tun__call-badge { align-self: flex-start; margin-top: 4px; padding: 6px 10px; border-radius: 999px; font: 600 12px/1 var(--pl-mono); letter-spacing: .02em;
  color: var(--pl-navy-deep); background: var(--c); }
.pl-tun__call.is-off { border-color: rgba(213, 222, 234, .12); }
.pl-tun__call.is-off::before, .pl-tun__call.is-off::after { border-color: rgba(213, 222, 234, .3); }
.pl-tun__call.is-off .pl-tun__call-name { color: var(--tun-dim); }
.pl-tun__call.is-off .pl-tun__swatch { filter: grayscale(1); box-shadow: none; opacity: .5; }
.pl-tun__call.is-off .pl-tun__call-badge { background: transparent; color: var(--tun-dim); border: 1px solid rgba(213, 222, 234, .3); }

.pl-tun__hud { display: none; }
.pl-tun-after { height: 0; }

/* =================================== live: pinned and scroll-driven =================================== */
.pl-tun.is-live { height: calc(100svh + var(--n, 9) * 46svh); }
.pl-tun.is-live .pl-tun__pin { position: sticky; top: var(--pl-header-h); height: calc(100svh - var(--pl-header-h)); padding: 0; }
.pl-tun.is-live .pl-tun__scene { position: absolute; inset: 0; height: auto; }
.pl-tun.is-live .pl-tun__cv, .pl-tun.is-live .pl-tun__reticle, .pl-tun.is-live .pl-tun__leader { display: block; }
.pl-tun.is-live .pl-tun__car { display: none; }
.pl-tun.is-live .pl-tun__calls { position: absolute; z-index: 3; top: clamp(150px, 24%, 230px); right: var(--pl-gutter); width: min(340px, 34vw); padding: 0; display: grid; }
.pl-tun.is-live .pl-tun__call { grid-area: 1 / 1; opacity: 0; visibility: hidden; padding: 20px 22px; background: rgba(6, 20, 46, .58);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); will-change: opacity, filter, transform; }
.pl-tun.is-live .pl-tun__call-name { font-size: clamp(26px, 2.4vw, 34px); }
.pl-tun.is-live .pl-tun__hud { position: absolute; z-index: 3; left: 0; right: 0; bottom: 26px; display: flex; align-items: center; gap: 14px; }
.pl-tun__ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.pl-tun__ring circle { fill: none; stroke: rgba(127, 227, 245, .18); stroke-width: 2; }
.pl-tun__ring circle + circle { stroke: var(--pl-cyan); stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 4px var(--pl-cyan)); }
.pl-tun__count { font: 600 13px/1 var(--pl-mono); letter-spacing: .12em; color: #fff; min-width: 7ch; }
.pl-tun__segs { display: flex; gap: 4px; }
.pl-tun__segs > span { width: 22px; height: 3px; border-radius: 2px; background: rgba(127, 227, 245, .18); transition: background .25s, box-shadow .25s; }
.pl-tun__segs > span.is-done { background: rgba(127, 227, 245, .55); }
.pl-tun__segs > span.is-now { background: var(--pl-cyan); box-shadow: 0 0 8px var(--pl-cyan); }
.pl-tun__segs > span.is-off { background: rgba(213, 222, 234, .08); }

@media (max-width: 759.98px) {
  .pl-tun.is-live { height: calc(100svh + var(--n, 9) * 38svh); }
  .pl-tun__top { padding-top: 22px; gap: 12px; }
  .pl-tun__ctrl { width: 100%; justify-content: space-between; }
  .pl-tun__tiers button { padding: 0 12px; font-size: 13px; }
  .pl-tun__kicker > span { display: none; }
  .pl-tun.is-live .pl-tun__calls { top: auto; right: var(--pl-gutter); left: var(--pl-gutter); width: auto; bottom: calc(env(safe-area-inset-bottom) + 154px); }
  .pl-tun.is-live .pl-tun__call { padding: 16px 18px; }
  .pl-tun.is-live .pl-tun__call-desc { font-size: 14px; }
  .pl-tun.is-live .pl-tun__hud { bottom: calc(env(safe-area-inset-bottom) + 96px); }   /* just clear of the bottom bar (~82px) */
  .pl-tun__segs > span { width: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-tun__sweep, .pl-tun__reticle::before, .pl-tun__kicker::before { animation: none; }
}
.pl-tun.is-live .pl-tun__scene::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34%; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 11, 26, .92) 15%, rgba(4, 11, 26, 0)); }

/* =================================== home teaser: a fixed-height band, no pinning, copy over the scene =================================== */
.pl-tun--teaser, .pl-tun--teaser.is-live { height: auto; }
.pl-tun--teaser .pl-tun__pin, .pl-tun--teaser.is-live .pl-tun__pin { position: relative; top: auto; height: clamp(460px, 64vh, 660px); padding: 0; }
.pl-tun--teaser .pl-tun__scene, .pl-tun--teaser.is-live .pl-tun__scene { position: absolute; inset: 0; height: auto; }
.pl-tun--teaser .pl-tun__calls { display: none !important; }
.pl-tun__teaser { position: relative; z-index: 3; padding-top: clamp(36px, 6vw, 80px); }
.pl-tun__teaser .pl-tun__title { max-width: 13ch; font-size: clamp(32px, 4.4vw, 60px); }
.pl-tun__teaser-lede { margin: 16px 0 0; max-width: 36ch; font-size: 16px; line-height: 1.55; color: var(--pl-on-dark, #D5DEEA); }
.pl-tun__chip { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(127, 227, 245, .3); background: rgba(6, 20, 46, .6); font: 600 12px/1 var(--pl-mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--pl-cyan-ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pl-tun__chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pl-cyan); box-shadow: 0 0 8px var(--pl-cyan); }
.pl-tun__teaser-cta { display: flex; width: max-content; align-items: center; gap: 8px; margin-top: 22px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; background: var(--pl-cyan); color: var(--pl-navy-deep); font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(60, 203, 234, .6); transition: background .15s; }
.pl-tun__teaser-cta:hover { background: var(--pl-cyan-ink); color: var(--pl-navy-deep); text-decoration: none; }
.pl-tun__teaser-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 759.98px) {
  .pl-tun--teaser .pl-tun__pin, .pl-tun--teaser.is-live .pl-tun__pin { height: 640px; }
  .pl-tun__teaser { padding-top: 32px; }
  .pl-tun__teaser-lede { font-size: 15px; }
  .pl-tun__chip { margin-top: 14px; }
}
@media (min-width: 760px) {
  .pl-tun--teaser .pl-tun__scene::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(4, 11, 26, .78) 0%, rgba(4, 11, 26, .45) 30%, rgba(4, 11, 26, 0) 50%); }
}
