/* The page is the default. JavaScript only mounts this brief arrival when ready. */
:root {
  --dw-arrival-enabled: 1;
}

.dw-arrival {
  position: fixed;
  z-index: 200;
  inset: 0;
  overflow: hidden;
  color: #2b3229;
  isolation: isolate;
  font-family: var(--text, var(--body, Arial, sans-serif));
  font-weight: 400;
  /* A second, independent way out if another script interrupts the intro. */
  animation: dw-arrival-failsafe 1ms 3150ms forwards;
}

.dw-arrival__screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: none;
  stroke-width: 0;
}

.dw-arrival__aperture {
  transform: scale(0);
  transform-box: view-box;
}

.dw-arrival__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dw-arrival__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 91.4286px;
  margin: -45.7143px 0 0 -32px;
  overflow: visible;
  fill: none;
  stroke: none;
}

/* The fixed frame and moving sash share the supplied mark's exact silhouette. */
.dw-arrival__frame,
.dw-arrival__pane,
.dw-arrival__pane svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dw-arrival__frame { opacity: 0; }
.dw-arrival__glass { fill: #f2dbd0; stroke: none; }
.dw-arrival__fixed-arch {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.dw-arrival__pane {
  transform-origin: 2.655% 50%;
  backface-visibility: hidden;
}

.dw-arrival__mark-finish {
  fill: currentColor;
  stroke: none;
  opacity: 0;
  animation: dw-arrival-finish 100ms 1490ms ease-out forwards;
}

.dw-arrival__pen {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: dw-arrival-draw var(--draw-duration) var(--draw-delay) cubic-bezier(.34, .2, .38, .86) both;
}

.dw-arrival__pen--arch {
  --draw-delay: 40ms;
  --draw-duration: 700ms;
}

.dw-arrival__pen--circle {
  --draw-delay: 560ms;
  --draw-duration: 430ms;
}

.dw-arrival__pen--crescent {
  --draw-delay: 820ms;
  --draw-duration: 410ms;
}

.dw-arrival__pen--diagonal-left {
  --draw-delay: 1110ms;
  --draw-duration: 240ms;
}

.dw-arrival__pen--diagonal-right {
  --draw-delay: 1250ms;
  --draw-duration: 240ms;
}

.dw-arrival__skip {
  position: absolute;
  top: max(25px, env(safe-area-inset-top));
  right: clamp(24px, 4.6vw, 88px);
  border: 1px solid rgba(43, 50, 41, .35);
  border-radius: 100px;
  padding: 10px 15px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

/* The page header shows through as the intro dissolves; the pill would sit on the logo. */
.dw-arrival[data-state="revealing"] .dw-arrival__skip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.dw-arrival__skip:hover {
  border-color: currentColor;
  background: rgba(255, 249, 232, .5);
}

.dw-arrival__skip:focus-visible {
  outline: 3px solid #254cb4;
  outline-offset: 5px;
}

.dw-arrival__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes dw-arrival-draw {
  from { stroke-dashoffset: 1; opacity: 0; }
  1% { opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes dw-arrival-finish {
  to { opacity: 1; }
}

@keyframes dw-arrival-failsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (max-width: 540px) {
  .dw-arrival__mark {
    width: 56px;
    height: 80px;
    margin-left: -28px;
    margin-top: -40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dw-arrival {
    display: none;
  }

  .dw-arrival *,
  .dw-arrival *::before,
  .dw-arrival *::after {
    animation: none !important;
    transition: none !important;
  }
}
