/* Pinnacle hair-flow preloader */
:root {
  --ph-brown: #633b2c;
  --ph-ivory: #f8f5f0;
}

.ph-preloader-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  background: var(--ph-ivory);
  display: grid;
  place-items: center;
  transform: translateZ(0);
  color: var(--ph-brown);
  pointer-events: all;
}

.ph-preloader-root.is-leaving {
  pointer-events: none;
}

.ph-flow {
  position: absolute;
  inset: -4% -18%;
}

.ph-flow svg {
  display: block;
  width: 136%;
  height: 108%;
  margin-left: -18%;
}

.ph-flow path {
  fill: none;
  stroke: var(--ph-brown);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  opacity: 0.92;
  stroke-dasharray: 2300;
  stroke-dashoffset: 2300;
}

.ph-flow path:nth-child(3n) {
  stroke-width: 0.8;
  opacity: 0.62;
}

.ph-flow path:nth-child(4n) {
  stroke-width: 1.8;
  opacity: 0.8;
}

.ph-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(76vw, 760px);
  transform: translate(-50%, -50%) translateY(18px);
  opacity: 0;
  z-index: 1;
  mix-blend-mode: multiply;
}

.ph-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.ph-caption {
  position: absolute;
  bottom: 7%;
  left: 0;
  right: 0;
  text-align: center;
  font: 9px Arial, Helvetica, sans-serif;
  letter-spacing: 0.34em;
  color: var(--ph-brown);
  opacity: 0.68;
  text-transform: uppercase;
}

.ph-preloader-root.is-playing .ph-flow path {
  animation: phDraw 2.65s cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}
.ph-preloader-root.is-playing .ph-flow path:nth-child(2) { animation-delay: 0.08s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(3) { animation-delay: 0.16s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(4) { animation-delay: 0.24s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(5) { animation-delay: 0.32s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(6) { animation-delay: 0.40s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(7) { animation-delay: 0.48s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(8) { animation-delay: 0.56s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(9) { animation-delay: 0.64s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(10) { animation-delay: 0.72s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(11) { animation-delay: 0.80s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(12) { animation-delay: 0.88s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(13) { animation-delay: 0.96s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(14) { animation-delay: 1.04s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(15) { animation-delay: 1.12s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(16) { animation-delay: 1.20s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(17) { animation-delay: 1.28s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(18) { animation-delay: 1.36s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(19) { animation-delay: 1.44s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(20) { animation-delay: 1.52s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(21) { animation-delay: 1.60s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(22) { animation-delay: 1.68s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(23) { animation-delay: 1.76s; }
.ph-preloader-root.is-playing .ph-flow path:nth-child(24) { animation-delay: 1.84s; }

.ph-preloader-root.is-playing .ph-flow {
  animation: phFlowAcross 3.35s 1.25s cubic-bezier(0.3, 0.1, 0.2, 1) forwards;
}

.ph-preloader-root.is-playing .ph-logo {
  animation: phLogoIn 0.85s 2.25s ease forwards;
}

.ph-preloader-root.is-playing .ph-caption {
  animation: phCaptionOut 0.5s 3.35s ease forwards;
}

.ph-preloader-root.is-playing {
  animation: phCurtainOut 1.15s 3.65s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

@keyframes phDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes phFlowAcross {
  0% { transform: translateX(-3%) translateY(0); }
  45% { transform: translateX(3%) translateY(-0.5%); }
  100% { transform: translateX(27%) translateY(1%); }
}

@keyframes phLogoIn {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

@keyframes phCaptionOut {
  to { opacity: 0; }
}

@keyframes phCurtainOut {
  to {
    opacity: 0;
    visibility: hidden;
    transform: translateX(8%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-preloader-root.is-playing .ph-flow path,
  .ph-preloader-root.is-playing .ph-flow,
  .ph-preloader-root.is-playing .ph-logo,
  .ph-preloader-root.is-playing .ph-caption,
  .ph-preloader-root.is-playing {
    animation: none !important;
  }

  .ph-flow path { stroke-dashoffset: 0; }
  .ph-logo {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  .ph-preloader-root.is-playing {
    opacity: 0;
    visibility: hidden;
  }
}
