.page-transition {
  position: fixed;
  z-index: 99999;
  inset: -14vh -24vw;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  background: #ed1230;
  box-shadow: 0 0 0 16px #101014, 0 0 0 29px #f6f4ed;
  transform: translate3d(-112%,0,0) skewX(-8deg);
  will-change: transform;
}
.page-transition::before,
.page-transition::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}
.page-transition::before {
  background: repeating-linear-gradient(133deg,transparent 0 7.8%,rgba(255,255,255,.13) 7.8% 8.2%,transparent 8.2% 14%),
    linear-gradient(162deg,#ff1736 0 34%,#df092a 34% 70%,#a90b25 100%);
}
.page-transition::after {
  background: linear-gradient(90deg,transparent 0 81%,#141417 81% 84%,#fff 84% 86%,transparent 86%);
  clip-path: polygon(0 0,100% 0,100% 100%,22% 100%,26% 91%,0 88%);
}
.page-transition__panel {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(12px 12px 0 rgba(0,0,0,.36));
}
.page-transition__panel--charcoal {
  inset: -6% -4% 0 38%;
  background: #111115;
  clip-path: polygon(34% 0,100% 0,100% 100%,0 91%,28% 71%,8% 44%);
}
.page-transition__panel--slate {
  inset: 0 7% 3% 30%;
  background: #55565b;
  clip-path: polygon(59% 0,100% 3%,49% 38%,80% 57%,17% 89%,0 78%,37% 40%);
  opacity: .93;
}
.page-transition__panel--paper {
  inset: 5% 24% 5% 3%;
  background: #f8f7f3;
  clip-path: polygon(0 23%,67% 0,100% 11%,76% 36%,100% 59%,34% 100%,0 91%,15% 67%);
  opacity: .94;
}
.page-transition__panel--ash {
  inset: 8% 3% 7% 38%;
  background: #b5b5b8;
  clip-path: polygon(6% 0,100% 15%,78% 47%,100% 78%,14% 100%,0 64%,28% 40%);
  mix-blend-mode: screen;
  opacity: .42;
}
.page-transition__slash {
  position: absolute;
  z-index: 3;
  width: 130%;
  height: 13px;
  left: -12%;
  top: 72%;
  background: #fff;
  border-top: 5px solid #111115;
  border-bottom: 4px solid #111115;
  transform: rotate(-15deg);
  box-shadow: 0 12px 0 #b6b6b9, 0 21px 0 #111115;
}
.page-transition__star {
  --star-tilt: 0deg;
  --star-delay: 0s;
  position: absolute;
  z-index: 4;
  display: block;
  width: clamp(42px,8vw,120px);
  aspect-ratio: 1;
  transform: rotate(var(--star-tilt));
  animation: page-star-drift 1.05s ease-in-out var(--star-delay) infinite alternate;
  filter: drop-shadow(7px 7px 0 #101014);
  will-change: transform;
}
.page-transition__star::before,
.page-transition__star::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0,60% 29%,88% 11%,72% 39%,100% 50%,71% 60%,89% 88%,60% 72%,50% 100%,40% 71%,11% 89%,28% 60%,0 50%,29% 40%,11% 11%,40% 28%);
}
.page-transition__star::before { background: #101014; }
.page-transition__star::after { inset: 9%; background: var(--star-fill,#fff); }
.page-transition__star--1 { top: 8%; left: 9%; width: clamp(75px,13vw,180px); --star-fill: #f5f5f5; --star-tilt: -12deg; --star-delay: -.1s; }
.page-transition__star--2 { top: 12%; right: 11%; width: clamp(55px,10vw,135px); --star-fill: #ed1230; --star-tilt: 8deg; --star-delay: -.7s; }
.page-transition__star--3 { top: 42%; left: 13%; width: clamp(34px,6vw,82px); --star-fill: #b5b5b8; --star-tilt: 11deg; --star-delay: -.4s; }
.page-transition__star--4 { top: 58%; right: 15%; width: clamp(90px,16vw,220px); --star-fill: #fff; --star-tilt: -6deg; --star-delay: -.85s; }
.page-transition__star--5 { bottom: 7%; left: 34%; width: clamp(50px,8vw,112px); --star-fill: #111115; --star-tilt: 9deg; --star-delay: -.25s; }
.page-transition__star--6 { bottom: 15%; right: 4%; width: clamp(32px,5vw,76px); --star-fill: #ed1230; --star-tilt: -10deg; --star-delay: -1s; }
.page-transition__caption {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  width: min(75vw,720px);
  padding: clamp(24px,5vw,60px) clamp(18px,4vw,54px);
  border: clamp(5px,.7vw,10px) solid #111115;
  color: #111115;
  background: #fdfdf9;
  box-shadow: 12px 12px 0 #ed1230, 22px 22px 0 #111115, -12px -12px 0 #fff;
  clip-path: polygon(0 5%,96% 0,100% 78%,94% 100%,3% 96%,0 84%);
  transform: translate(-50%,-50%) skewX(8deg) rotate(-3deg);
  text-align: center;
}
.page-transition__eyebrow {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: -2px auto 8px;
  padding: 4px 10px;
  color: #fff;
  background: #111115;
  font: 900 clamp(10px,1.3vw,16px)/1.05 Impact,"Arial Black",sans-serif;
  letter-spacing: .14em;
  transform: rotate(2deg);
}
.page-transition__title {
  display: block;
  color: #ed1230;
  font: italic 1000 clamp(36px,6.4vw,96px)/.86 Impact,"Arial Black",sans-serif;
  letter-spacing: -.065em;
  -webkit-text-stroke: clamp(1px,.28vw,4px) #111115;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 #fff, 7px 7px 0 #111115, 11px 11px 0 #b4b4b7;
}
.page-transition__corner {
  position: absolute;
  z-index: 9;
  right: 11%;
  bottom: 11%;
  padding: 4px 13px;
  color: #111115;
  background: #fff;
  border: 4px solid #111115;
  box-shadow: 7px 7px 0 #ed1230;
  font: 900 clamp(12px,2vw,20px)/1 Impact,"Arial Black",sans-serif;
  letter-spacing: .12em;
  transform: skewX(8deg) rotate(6deg);
}
html.page-entering .page-transition { animation: page-uncover .82s cubic-bezier(.76,0,.16,1) both; }
html.page-leaving .page-transition { animation: page-cover .68s cubic-bezier(.78,0,.22,1) both; }
@keyframes page-cover { from { transform: translate3d(-112%,0,0) skewX(-8deg); } to { transform: translate3d(0,0,0) skewX(-8deg); } }
@keyframes page-uncover { from { transform: translate3d(0,0,0) skewX(-8deg); } to { transform: translate3d(112%,0,0) skewX(-8deg); } }
@keyframes page-star-drift { from { transform: translate3d(0,0,0) scale(.93) rotate(calc(var(--star-tilt) - 3deg)); } to { transform: translate3d(5px,-9px,0) scale(1.06) rotate(calc(var(--star-tilt) + 3deg)); } }
@media (max-width: 640px) {
  .page-transition { inset: -7vh -38vw; }
  .page-transition__caption { width: min(76vw,420px); padding: 28px 14px; }
  .page-transition__title { font-size: clamp(25px,8.8vw,50px); }
  .page-transition__star--4 { right: 6%; top: 64%; }
  .page-transition__corner { right: 16%; bottom: 15%; }
}
@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none !important; }
  html.page-entering .page-transition,
  html.page-leaving .page-transition,
  .page-transition__star { animation: none !important; }
}
