/* Clear View - Tesla PPF section (staging). Scoped to #tesla-ppf; nav/after styles only apply to the standalone preview. */
@font-face{font-family:"Inter Tight";src:url(vendor/fonts/inter-tight-latin-500-normal.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Inter Tight";src:url(vendor/fonts/inter-tight-latin-700-normal.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Inter Tight";src:url(vendor/fonts/inter-tight-latin-800-normal.woff2) format("woff2");font-weight:800;font-display:swap}
@font-face{font-family:"JB Mono";src:url(vendor/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"JB Mono";src:url(vendor/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2");font-weight:500;font-display:swap}
#tesla-ppf{--cy:#3fe6f0;--ink:#050607;--mono:"JB Mono",ui-monospace,Menlo,monospace;--sans:"Inter Tight",system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.tp-standalone{margin:0;background:#050607;color:#fff;font-family:"Inter Tight",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
.tp-standalone a{color:inherit;text-decoration:none}
.tp-nav{position:fixed;inset:0 0 auto 0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:22px 40px;pointer-events:none;background:linear-gradient(#050607cc,#05060700)}
.tp-nav>*{pointer-events:auto}
.tp-brand{display:flex;align-items:center;gap:10px}
.tp-brand-mark{width:22px;height:22px;border-radius:5px;background:linear-gradient(135deg,#fff 0 46%,transparent 46% 54%,#3fe6f0 54%)}
.tp-brand-text{display:flex;flex-direction:column;line-height:1}
.tp-brand-text b{font-weight:800;font-size:17px;letter-spacing:-.02em}
.tp-brand-text small{font-family:"JB Mono",monospace;font-size:8.5px;letter-spacing:.18em;opacity:.65;margin-top:3px}
.tp-nav-links{display:flex;gap:28px;font-family:"JB Mono",monospace;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase}
.tp-nav-links a{opacity:.72}.tp-nav-links .tp-nav-call{opacity:1;color:#3fe6f0}
.tp-before,.tp-after{min-height:60vh;display:flex;flex-direction:column;justify-content:center;padding:0 8vw;font-family:"JB Mono",monospace;font-size:11px;letter-spacing:.18em;color:#3fe6f0;background:#050607}
.tp-after h2{font-family:"Inter Tight",sans-serif;color:#fff;letter-spacing:-.04em;font-size:48px;margin:.2em 0}

#tesla-ppf{position:relative;height:100vh;height:100svh;overflow:hidden;background:var(--ink);color:#fff;font-family:var(--sans)}
#tesla-ppf .tp-stage{position:absolute;left:0;top:0;width:100vw;height:56.25vw;will-change:transform}
#tesla-ppf .tp-stage>canvas,#tesla-ppf .tp-stage>img,#tesla-ppf .tp-stage>svg{position:absolute;inset:0;width:100%;height:100%;display:block}
#tesla-ppf .tp-stage>img{object-fit:fill}
#tp-still2,#tp-still3,#tp-still4,#tp-seq{opacity:0}
#tp-seq,#tp-still2{transform-origin:0 0}
#tesla-ppf .tp-fx{pointer-events:none;overflow:visible}
.portrait #tesla-ppf .tp-stage,#tesla-ppf.portrait .tp-stage{-webkit-mask-image:linear-gradient(transparent,#000 9%,#000 88%,transparent);mask-image:linear-gradient(transparent,#000 9%,#000 88%,transparent)}

/* T2 PPF pieces (Blackline reference): opaque dark satin cut-outs, thick bright cyan edge + glow, inner bevel highlight */
#tp-panels polygon.face{fill:url(#tp-satin);stroke:#62f4fc;stroke-width:3.4;vector-effect:non-scaling-stroke;stroke-linejoin:round}
#tp-panels polygon.glow{fill:none;stroke:#3fe6f0;stroke-width:9;filter:url(#tp-pglow);vector-effect:non-scaling-stroke;stroke-linejoin:round}
#tp-panels polygon.sheen{fill:url(#tp-sheen);stroke:none}
#tp-panels polygon.bev{fill:none;stroke:rgba(225,250,252,.30);stroke-width:1.2;vector-effect:non-scaling-stroke;stroke-linejoin:round}
#tp-guides line.guide{stroke:#8ff7ff;stroke-width:1.5;stroke-dasharray:5 5;filter:drop-shadow(0 0 3px rgba(95,240,248,.8));vector-effect:non-scaling-stroke}
#tp-guides polygon.seat{fill:rgba(95,240,248,.06);stroke:rgba(130,245,252,.85);stroke-width:1.3;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
#tp-guides line.drop{stroke:rgba(150,245,252,.8);stroke-width:1.3;stroke-dasharray:5 6;vector-effect:non-scaling-stroke}
#tp-panels line.drop{stroke:rgba(150,240,248,.38);stroke-width:1;stroke-dasharray:4 6;vector-effect:non-scaling-stroke}
#tp-guides ellipse.foot{fill:rgba(95,240,248,.3)}
#tp-panels ellipse.foot{fill:rgba(95,240,248,.18)}
#tp-sweep3,#tp-s4>g:first-child{mix-blend-mode:normal}
#tp-drl{mix-blend-mode:screen}

/* info box (matches the M3 box) */
#tesla-ppf .tp-ibox{position:absolute;z-index:7;left:40px;top:92px;display:flex;align-items:center;gap:14px;padding:11px 18px 11px 11px;border-radius:12px;background:rgba(14,17,20,.66);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 8px 30px rgba(0,0,0,.35)}
.tp-sw{position:relative;width:46px;height:52px;border-radius:7px;border:1.5px solid rgba(255,255,255,.55);background:linear-gradient(160deg,#f4f6f7,#c9cfd3);overflow:hidden}
.tp-sw i{position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,0) 20%,rgba(255,255,255,.9) 46%,rgba(95,240,248,.55) 52%,rgba(255,255,255,0) 72%);border:1.5px solid #5ff0f8;border-radius:5px;opacity:0}
.tp-sw::after{content:"";position:absolute;left:-30%;top:46%;width:160%;height:1.5px;background:rgba(20,30,34,.55);transform:rotate(-52deg)}
#tesla-ppf .tp-col{display:flex;flex-direction:column;line-height:1.02;min-width:0}
#tesla-ppf .tp-c1{min-width:150px}
#tesla-ppf .tp-ibox small{font-family:var(--mono);font-size:8.5px;letter-spacing:.17em;opacity:.62;white-space:nowrap}
#tesla-ppf .tp-ibox small.lab{color:var(--cy);opacity:.95;margin-top:4px}
#tesla-ppf .tp-ibox b{font-size:28px;font-weight:800;letter-spacing:-.035em;margin:3px 0 1px;white-space:nowrap;font-variant-numeric:tabular-nums}
#tesla-ppf .tp-ibox b.cy{color:var(--cy);font-size:24px;text-shadow:0 0 14px rgba(63,230,240,.35)}
.tp-vdiv{width:1px;align-self:stretch;background:rgba(255,255,255,.16);margin:2px 2px}
.tp-tiers ul{list-style:none;margin:5px 0 0;padding:0;display:grid;grid-template-columns:auto auto;gap:4px 14px}
.tp-tiers li{font-size:12.5px;font-weight:700;letter-spacing:-.01em;display:flex;align-items:center;gap:8px;opacity:.5;transition:none;white-space:nowrap}
.tp-tiers li::before{content:"";width:7px;height:7px;border-radius:50%;border:1.3px solid currentColor;box-sizing:border-box}
.tp-tiers li.on{opacity:1;color:var(--cy);text-shadow:0 0 12px rgba(63,230,240,.35)}
.tp-tiers li.on::before{background:var(--cy);box-shadow:0 0 8px var(--cy)}
.tp-tiers li.opt{opacity:.92;color:#fff}
#tesla-ppf .tp-ibox .tp-c2,#tesla-ppf .tp-ibox .tp-c3,#tesla-ppf .tp-ibox .tp-d3{display:none}
#tesla-ppf .tp-ibox.s4 .tp-tiers{display:none}#tesla-ppf .tp-ibox.s4 .tp-c2,#tesla-ppf .tp-ibox.s4 .tp-c3,#tesla-ppf .tp-ibox.s4 .tp-d3{display:flex}
.tp-ibox.s1 .tp-tiers li{opacity:.28}

#tesla-ppf .tp-copy{position:absolute;z-index:5;max-width:600px;opacity:0;text-shadow:0 2px 30px rgba(0,0,0,.6)}
#tesla-ppf .tp-copy .eyebrow{font-family:var(--mono);font-size:11px;letter-spacing:.2em;color:var(--cy);margin:0 0 12px}
#tesla-ppf .tp-copy h2{font-size:clamp(40px,5vw,88px);line-height:.95;font-weight:800;letter-spacing:-.045em;margin:0}
#tesla-ppf .tp-copy .sub{font-size:16px;line-height:1.45;opacity:.84;max-width:430px;margin:16px 0 0;font-weight:500}
#tesla-ppf .tp-k1{left:5vw;bottom:120px;opacity:1}
#tesla-ppf .tp-k2{right:3.6vw;top:53.5%;text-align:right;max-width:24vw}
#tesla-ppf .tp-k2 h2{font-size:clamp(34px,3.4vw,66px)}
#tesla-ppf .tp-k2 .sub{font-size:14.5px;margin:12px 0 0 auto;max-width:360px}
#tesla-ppf .tp-k3{left:29.5vw;top:9.5%;max-width:46vw}
#tesla-ppf .tp-k3 h2{font-size:clamp(34px,3.2vw,62px)}
#tesla-ppf .tp-k3 .sub{margin-top:10px;font-size:14.5px;max-width:none}
#tesla-ppf .tp-k4{left:5vw;bottom:110px}
.tp-call{display:inline-flex;align-items:center;gap:8px;margin-top:22px;background:var(--cy);color:#031113!important;font-weight:700;font-size:15px;padding:13px 20px;border-radius:999px;box-shadow:0 0 22px rgba(63,230,240,.45);text-shadow:none;white-space:nowrap}
.tp-call svg{width:16px;height:16px;fill:currentColor}
#tesla-ppf .tp-hint{position:absolute;z-index:5;left:50%;bottom:40px;transform:translateX(-50%);font-family:var(--mono);font-size:9.5px;letter-spacing:.24em;text-transform:uppercase;opacity:.55;display:flex;flex-direction:column;align-items:center;gap:8px}
#tesla-ppf .tp-hint span{width:1px;height:26px;background:linear-gradient(#fff0,#fff)}
@media (max-width:767px){
  #tesla-ppf .tp-ibox.s4 .tp-c2,#tesla-ppf .tp-ibox.s4 .tp-d3{display:none}
  .tp-nav{padding:14px 16px}.tp-nav-links a:not(.tp-nav-call){display:none}
  #tesla-ppf .tp-ibox{left:14px;top:64px;transform-origin:left top;transform:scale(.78)}
  #tesla-ppf .tp-copy{left:20px!important;right:20px;top:auto!important;bottom:84px!important;max-width:none}
  #tesla-ppf .tp-copy .sub{font-size:14px}
  #tesla-ppf .tp-k2{text-align:left;max-width:none}#tesla-ppf .tp-k2 .sub{margin-left:0}
  #tesla-ppf .tp-copy h2{font-size:40px}
  #tesla-ppf .tp-hint{display:none}
}
@media (prefers-reduced-motion:reduce){.tp-call{box-shadow:none}}

/* TESLA-SMOOTH (Nov 3), desktop only (html.cv-desk from freescroll.js): give the layers that change every scroll frame their
   own compositor layers, so a canvas redraw or a still's opacity/zoom never repaints the 3840px stills or the SVG, and an SVG
   repaint never repaints the canvas/stills. Mobile (html.cv-mob) is untouched. */
html.cv-desk #tesla-ppf{contain:layout paint}
html.cv-desk #tesla-ppf #tp-seq,html.cv-desk #tesla-ppf .tp-stage>img{will-change:transform,opacity}
html.cv-desk #tesla-ppf #tp-fx{will-change:transform}
html.cv-desk #tesla-ppf .tp-copy{will-change:opacity,transform}
