:root {
  --otto-ink: #050505;
  --otto-paper: #f5f3ee;
  --otto-metal: #bfc0bd;
  --otto-line: rgba(245, 243, 238, 0.22);
}

#otto-loading-shell {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: grid;
  overflow: hidden;
  color: var(--otto-paper);
  background: var(--otto-ink);
  isolation: isolate;
  touch-action: none;
  animation: otto-loader-failsafe 1ms linear 6s forwards;
}

#otto-loading-shell::before,
#otto-loading-shell::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

#otto-loading-shell::before {
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.28) 42%, rgba(0,0,0,.55) 70%, #050505 100%),
    url("/otto-loader/chicago-skyline.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#otto-loading-shell::after {
  width: 72vmax;
  height: 72vmax;
  left: var(--otto-x, 50%);
  top: var(--otto-y, 50%);
  background: radial-gradient(circle, rgba(245,243,238,.055), transparent 65%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: left 950ms cubic-bezier(.2,.7,.1,1), top 950ms cubic-bezier(.2,.7,.1,1);
}

#otto-loading-shell.otto-loader-leaving {
  animation: otto-loader-out 700ms ease-in forwards;
  pointer-events: none;
}

#otto-loading-shell.otto-loader-skipping {
  animation: otto-loader-out 120ms linear forwards;
}

.otto-loader-leaving .otto-loader__car-wrap {
  animation: otto-car-depart 700ms cubic-bezier(.55,0,.9,.45) forwards;
}

.otto-loader-skipping .otto-loader__car-wrap {
  animation: none;
}

.otto-loader__frame {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  padding: clamp(20px, 4vw, 52px);
}

.otto-loader__topline,
.otto-loader__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.otto-loader__topline { color: rgba(245,243,238,.58); }
.otto-loader__footer { color: rgba(245,243,238,.44); }

.otto-loader__skip {
  appearance: none;
  padding: 8px 0 8px 14px;
  border: 0;
  color: var(--otto-paper);
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.otto-loader__skip::after {
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-left: 8px;
  vertical-align: middle;
  content: "";
  background: currentColor;
  transition: width 180ms ease;
}

.otto-loader__skip:hover::after,
.otto-loader__skip:focus-visible::after { width: 30px; }
.otto-loader__skip:focus-visible { outline: 1px solid var(--otto-paper); outline-offset: 5px; }

.otto-loader__stage {
  display: grid;
  place-items: center;
  min-height: 0;
}

.otto-loader__brand {
  display: grid;
  justify-items: center;
  width: min(84vw, 740px);
  gap: clamp(19px, 3vw, 32px);
}

.otto-loader__logo {
  width: min(190px, 50vw);
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(3);
}

.otto-loader__car-wrap {
  position: relative;
  width: 100%;
  padding: clamp(10px, 2vw, 22px);
  animation: otto-car-arrive 950ms both;
  will-change: transform;
}

.otto-loader__car-wrap::before {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 13%;
  height: 10%;
  border-radius: 50%;
  content: "";
  background: rgba(0,0,0,.74);
  filter: blur(16px);
  transform: scaleX(.85);
}

.otto-loader__car {
  position: relative;
  display: block;
  width: 100%;
  max-height: min(44vh, 340px);
  object-fit: contain;
  filter: grayscale(1) contrast(1.1) brightness(1.15);
  transform: translate3d(var(--otto-car-x, 0px), 0, 0);
  transition: transform 800ms cubic-bezier(.16,1,.3,1);
}

.otto-loader__rule {
  width: min(100%, 440px);
  height: 1px;
  overflow: hidden;
  background: rgba(245,243,238,.17);
}
.otto-loader__rule span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--otto-paper);
  animation: otto-loader-line 1.8s cubic-bezier(.65,0,.35,1) infinite;
}

.otto-loader__caption {
  margin: 0;
  color: rgba(245,243,238,.76);
  font: 500 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .23em;
  text-align: center;
  text-transform: uppercase;
}

.otto-loader__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes otto-loader-line { from { transform: translateX(-110%); } to { transform: translateX(280%); } }
@keyframes otto-car-arrive {
  0% { transform: translate3d(-110vw, 0, 0); opacity: 0; animation-timing-function: cubic-bezier(.16,1,.3,1); }
  70% { transform: translate3d(10px, 0, 0); opacity: 1; animation-timing-function: ease-out; }
  85% { transform: translate3d(-3px, 0, 0); }
  100% { transform: translate3d(0, 0, 0); opacity: 1; }
}
@keyframes otto-car-depart {
  0% { transform: translate3d(0, 0, 0); opacity: 1; }
  100% { transform: translate3d(110vw, 0, 0); opacity: 1; }
}
@keyframes otto-loader-out {
  0%, 25% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes otto-loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

@media (max-width: 540px) {
  .otto-loader__frame { padding: 19px; }
  .otto-loader__footer span:last-child { display: none; }
  .otto-loader__brand { width: min(100%, 480px); }
  .otto-loader__car { max-height: 36vh; }
}

@media (prefers-reduced-motion: reduce) {
  #otto-loading-shell.otto-loader-leaving { animation-duration: 1ms; }
  #otto-loading-shell::after, .otto-loader__brand, .otto-loader__car { transition: none; }
  .otto-loader__car-wrap, .otto-loader-leaving .otto-loader__car-wrap { animation: none; }
  .otto-loader__rule span { animation: none; transform: translateX(75%); }
}