.pr {
  --pr-top: #e5e5e5;
  --pr-from: #f0f0f0;
  --pr-under-a: #dfdfdf;
  --pr-under-b: #dbdbdb;
  --pr-fade: #f0f0f0;

  --pr-area: #000000;
  --pr-area-a: .044;
  --pr-area-b: 0;

  --pr-mid-a: #939393;
  --pr-mid-a-o: .075;
  --pr-mid-b: #ffffff;
  --pr-mid-b-o: .15;
  --pr-area-low: #fafafa;
  --pr-line: #c1c1c1;
  --pr-axis: #ffffff;

  --pr-hand: #2f3032;
  --pr-hand-shade: #232324;
  --pr-hand-accent: #232324;
  --pr-sleeve: #2f3032;
  --pr-cuff: #ffffff;

  --prs-track: #d9d9d9;
  position: relative;
  overflow-x: clip;
  color: var(--c-text);
  background: var(--pr-top);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pr {
    --pr-top: #0e111b;
    --pr-from: #131726;
    --pr-under-a: #0a0c14;
    --pr-under-b: #060a1b;
    --pr-fade: #131726;
    --pr-area: #ffffff;
    --pr-area-a: .07;
    --pr-area-b: 0;
    --pr-mid-a: #ffffff;
    --pr-mid-a-o: .015;
    --pr-mid-b: #ffffff;
    --pr-mid-b-o: .05;
    --pr-area-low: rgb(255 255 255 / .03);
    --pr-line: #4a4d66;
    --pr-axis: rgb(255 255 255 / .3);
    --pr-hand: #d6d6d6;
    --pr-hand-shade: #bebebe;
    --pr-hand-accent: #bebebe;
    --pr-sleeve: #a9a9a9;
    --prs-track: #262838;
  }
}
:root[data-theme="dark"] .pr {
  --pr-top: #0e111b;
  --pr-from: #131726;
  --pr-under-a: #0a0c14;
  --pr-under-b: #060a1b;
  --pr-fade: #131726;
  --pr-area: #ffffff;
  --pr-area-a: .07;
  --pr-area-b: 0;
  --pr-mid-a: #ffffff;
  --pr-mid-a-o: .015;
  --pr-mid-b: #ffffff;
  --pr-mid-b-o: .05;
  --pr-area-low: rgb(255 255 255 / .03);
  --pr-line: #4a4d66;
  --pr-axis: rgb(255 255 255 / .3);
  --pr-hand: #d6d6d6;
  --pr-hand-shade: #bebebe;
  --pr-hand-accent: #bebebe;
  --pr-sleeve: #a9a9a9;
  --prs-track: #262838;
}

.pr__inner {
  position: relative;
  isolation: isolate;
  max-width: 1728px;
  margin: 0 auto;
  container-type: inline-size;
}

.pr__inner::before,
.pr__inner::after {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
}
.pr__inner::before {
  background:
    linear-gradient(to bottom, transparent calc(451 / 837 * 100%), var(--pr-fade) calc((451 + .5865 * 386) / 837 * 100%)),
    linear-gradient(208.3deg, var(--pr-under-a), var(--pr-under-b) 82.2%);
}
.pr__inner::after {
  background: linear-gradient(to bottom, var(--pr-from), var(--pr-top) 140px);

  -webkit-mask-image: linear-gradient(163.4deg, #000 44.4%, transparent 63.4%), linear-gradient(to bottom, #000 calc(100% - 220px), transparent calc(100% - 60px));
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(163.4deg, #000 44.4%, transparent 63.4%), linear-gradient(to bottom, #000 calc(100% - 220px), transparent calc(100% - 60px));
  mask-composite: intersect;
}

.pr__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 64px 30px 8px;
  text-align: center;
}
.pr__title {
  margin: 0;
  color: var(--c-heading);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw + 19px, 56px);
  line-height: 1;
}
.pr__title .line { display: block; }
.pr__title .accent { color: var(--c-red); }
.pr__lead {
  margin: 0;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.35;
}

.pr__scene {
  --design-w: 402;
  --ox: 0;
  --oy: -448;
  position: relative;
  aspect-ratio: 402 / 426;
  container-type: inline-size;
  overflow: hidden;
}
.pr-el {
  position: absolute;
  left: calc((var(--x) + var(--ox)) * 100cqw / var(--design-w));
  top: calc((var(--y) + var(--oy)) * 100cqw / var(--design-w));
  width: calc(var(--w) * 100cqw / var(--design-w));
  height: calc(var(--h) * 100cqw / var(--design-w));
  max-width: none;
}
.pr-el > svg { display: block; width: 100%; height: 100%; overflow: visible; }

.pr-area-a { stop-color: var(--pr-area); stop-opacity: var(--pr-area-a); }
.pr-area-b { stop-color: var(--pr-area); stop-opacity: var(--pr-area-b); }
.pr-mid-a { stop-color: var(--pr-mid-a); stop-opacity: var(--pr-mid-a-o); }
.pr-mid-b { stop-color: var(--pr-mid-b); stop-opacity: var(--pr-mid-b-o); }
.pr-area-low { fill: var(--pr-area-low); }
.pr-axis path { fill: var(--pr-axis); }
.pr-axis__line { fill: none; stroke: var(--pr-axis); }
.pr-line { fill: none; stroke: var(--pr-line); stroke-width: 1; stroke-dasharray: 12 12; stroke-linecap: round; }

.pr__handlayer {
  --design-w: 402;
  --ox: 0;
  --oy: -448;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  aspect-ratio: 402 / 426;
  z-index: 2;
  container-type: inline-size;
  overflow: hidden;
  pointer-events: none;
}
.pr-glove { fill: var(--pr-hand); }
.pr-hand-shade { fill: var(--pr-hand-shade); }
.pr-hand-accent { fill: var(--pr-hand-accent); }
.pr-sleeve { fill: var(--pr-sleeve); }
.pr-cuff { fill: var(--pr-cuff); }

@media (min-width: 1024px) {
  .pr__inner { aspect-ratio: 1728 / 837; }
  .pr__scene {
    --design-w: 1728;
    --ox: 0;
    --oy: 0;
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    overflow: visible;
  }
  .pr__handlayer {
    --design-w: 1728;
    --ox: 0;
    --oy: 0;
    top: 0;
    max-width: 1728px;
    margin: 0 auto;
    aspect-ratio: auto;
    overflow: visible;
  }

  .pr__copy {
    position: absolute;
    left: calc(150 * 100cqw / 1728);
    top: calc(134 * 100cqw / 1728);
    width: calc(634 * 100cqw / 1728);
    padding: 0;
    align-items: flex-start;
    text-align: left;
  }
  .pr__title { font-size: max(calc(80 * 100cqw / 1728), 40px); }
  .pr__lead { max-width: none; font-size: max(calc(20 * 100cqw / 1728), 16px); line-height: 1.2; }
  .pr__copy .btn--cta {
    margin-top: 15px;
    height: max(calc(60 * 100cqw / 1728), 46px);
    font-size: max(calc(18 * 100cqw / 1728), 15px);
  }
}

.pr-reveal { --reveal-x: 0px; --reveal-y: 24px; }
@media (min-width: 1024px) { .pr-reveal { --reveal-x: -48px; --reveal-y: 0px; } }
.has-motion .pr .pr-reveal { opacity: 0; transform: translate(var(--reveal-x), var(--reveal-y)); }
.pr.is-text-in .pr-reveal {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease var(--d), transform .8s cubic-bezier(.2, .7, .3, 1) var(--d);
}

.prs-chart { --x: 811; --y: 18.98; --w: 935.5; --h: 535.02;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.prs-car { --x: 1057; --y: 415; --w: 441.02; --h: 186.25; z-index: 2; }
.prs-track { --x: 1216; --y: 689; --w: 170; --h: 26; z-index: 3; }
.prs-coin { --x: 1221; --y: 689; --w: 26.11; --h: 26.11; z-index: 3;
  translate: calc(var(--dx, 0) * 100cqw / var(--design-w)) 0; }
.prs-hand { --x: 1225.79; --y: -223.16; --w: 1200; --h: 917.73; z-index: 4; }
.prs-hand > svg { display: block; width: 100%; height: 100%; overflow: visible; }
@media (max-width: 1023px) { .prs-hand > svg { overflow: hidden; } }

.prs-track { border-radius: 100px; background: var(--prs-track); }

.prs-coin > svg { display: block; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 0 3px rgb(238 28 37 / .55)) drop-shadow(0 0 9px rgb(238 28 37 / .3)); transition: filter .3s ease; }
.prs-coin.is-held > svg { filter: drop-shadow(0 0 4px rgb(238 28 37 / .75)) drop-shadow(0 0 14px rgb(238 28 37 / .45)); }
.prs-chart > svg, .prs-car > svg { display: block; width: 100%; height: 100%; overflow: visible; }

.prs-tyre { transform-box: view-box; }
.has-motion .pr .prs-car { transform: translateX(calc(820 * 100cqw / var(--design-w))); }
.has-motion .pr .prs-tyre { transform: rotate(1003deg); }
.pr.is-slide .prs-car, .pr.is-slide .prs-tyre {
  transform: none; transition: transform 1.6s cubic-bezier(.2, .7, .3, 1); }
.has-motion .pr .prs-track, .has-motion .pr .prs-coin {
  opacity: 0; transform: translateY(calc(20 * 100cqw / var(--design-w))); }
.pr.is-slide .prs-track, .pr.is-slide .prs-coin {
  opacity: 1; transform: none; transition: opacity .6s ease .5s, transform .6s cubic-bezier(.2, .7, .3, 1) .5s; }

@media (max-width: 1023px) {
  .pr .prs-chart { --x: -5; --y: 383.74; --w: 407; --h: 232.77; }
  .pr .prs-car { --x: 87; --y: 558.38; --w: 230.15; --h: 97.2; }
  .pr .prs-track { --x: 116; --y: 727.87; --w: 170; --h: 25; }
  .pr .prs-coin { --x: 116.2; --y: 728.08; --w: 24.57; --h: 24.57; }
  .pr .prs-hand { --x: 122.2; --y: 249.3; --w: 626.2; --h: 478.89; }
  .has-motion .pr .prs-car { transform: translateX(calc(420 * 100cqw / var(--design-w))); }
  .has-motion .pr .prs-tyre { transform: rotate(985deg); }
  .pr.is-slide .prs-car, .pr.is-slide .prs-tyre { transform: none; }
}
