:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #010118;
  background: #e6e6e6;
  font-synthesis: none;
  --blue: #258bff;
  --pad: clamp(20px, 1.8vw, 32px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: inherit;
}
#app {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 320px;
  overflow: hidden;
}
#world {
  position: absolute;
  inset: 0;
}
#world canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: default;
}
#world canvas.is-over-object {
  cursor: grab;
}
#world canvas.is-scrubbing {
  cursor: grabbing;
}
.masthead {
  position: absolute;
  top: 2.88%;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 2;
  font-size: clamp(12px, 1.12vw, 20px);
  line-height: 1.2;
}
.wordmark {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  display: block;
  line-height: 0;
}
.wordmark img {
  display: block;
  width: clamp(240px, 40vw, 760px);
  height: auto;
}
.contact-label {
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}
.contact-label::before {
  content: "";
  position: absolute;
  inset: -16px -8px;
  min-height: 44px;
}
.wordmark::before {
  content: "";
  position: absolute;
  inset: -12px 0;
  min-height: 44px;
}
.contact-label:hover {
  text-decoration: underline;
}
.motion-toggle {
  position: absolute;
  right: var(--pad);
  bottom: calc(8.78% + clamp(60px, 5.556vw, 104px) + 12px);
  min-height: 24px;
  font-size: 10px;
  z-index: 2;
}
.motion-toggle:hover {
  text-decoration: underline;
}
.no-script {
  position: absolute;
  top: 40%;
  left: var(--pad);
  right: var(--pad);
  text-align: center;
}
body:has(.no-script) .loading {
  display: none;
}
body:has(.no-script) .motion-toggle,
body:has(.no-script) .object-picker {
  display: none;
}
.loading.has-error {
  flex-direction: column;
  white-space: normal;
  text-align: center;
  max-width: min(340px, calc(100% - 40px));
  width: 100%;
}
.loading.has-error button {
  margin-top: 12px;
  text-decoration: underline;
}
.statement {
  position: absolute;
  left: var(--pad);
  bottom: 2.92%;
  pointer-events: none;
}
.statement h1 {
  font-size: clamp(32px, 2.78vw, 54px);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}
.object-picker {
  position: absolute;
  right: var(--pad);
  bottom: 8.78%;
  display: flex;
  z-index: 2;
}
.object-choice {
  position: relative;
  display: block;
  width: clamp(60px, 5.556vw, 104px);
  height: clamp(60px, 5.556vw, 104px);
  overflow: hidden;
  background: #2e2f3d;
  transition: filter 0.25s;
}
.object-choice:nth-child(2) {
  background: #464754;
}
.object-choice:nth-child(3) {
  background: #66677d;
}
.object-choice img {
  position: absolute;
  top: 12.5%;
  left: 12.5%;
  width: 75%;
  height: 75%;
  object-fit: contain;
}
.object-choice span {
  position: absolute;
  right: 8%;
  bottom: 6%;
  font-size: clamp(14px, 1.25vw, 20px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #e6e6e6;
}
.object-choice:hover {
  filter: brightness(1.18);
}
.object-choice.is-active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}
footer {
  position: absolute;
  right: var(--pad);
  bottom: 2.24%;
  font-size: clamp(9px, 0.834vw, 15px);
  line-height: 1.2;
  white-space: nowrap;
}
.loading {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.5s;
  font: 9px monospace;
  letter-spacing: 0.055em;
  line-height: 1.7;
  white-space: nowrap;
}
.loading.is-loaded {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.loading-ring {
  width: 15px;
  height: 15px;
  border: 1px solid #acc2dc;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 900px) {
  .statement h1 {
    font-size: clamp(28px, 3.833vw, 35px);
  }
  .object-choice {
    width: 60px;
    height: 60px;
  }
  .object-choice span {
    font-size: 14px;
  }
}
@media (max-width: 650px) {
  .masthead {
    top: 24px;
    font-size: 10px;
  }
  .wordmark img {
    width: clamp(120px, 38vw, 200px);
  }
  .statement {
    bottom: 153px;
  }
  .statement h1 {
    font-size: clamp(26px, 7.6vw, 43px);
    line-height: 0.94;
    letter-spacing: -0.035em;
  }
  .object-picker {
    bottom: 61px;
  }
  .motion-toggle {
    bottom: 126px;
  }
  .object-choice {
    width: 58px;
    height: 58px;
  }
  .object-choice span {
    font-size: 14px;
  }
  footer {
    bottom: 23px;
    font-size: 8px;
  }
  .loading {
    top: 39%;
    font-size: 7px;
  }
}
/* Keep short portrait and landscape views within the visible browser area. */
@media (max-height: 650px) and (max-width: 650px) {
  .masthead {
    top: max(20px, env(safe-area-inset-top));
  }
  .statement {
    bottom: 142px;
  }
  .statement h1 {
    font-size: clamp(24px, 7vw, 36px);
  }
  .object-picker {
    bottom: max(46px, calc(12px + env(safe-area-inset-bottom)));
  }
  .motion-toggle {
    bottom: 108px;
  }
  footer {
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}
@media (max-height: 480px) and (min-width: 651px) {
  .wordmark img {
    width: clamp(180px, 32vw, 320px);
  }
  .statement h1 {
    font-size: clamp(24px, 3.5vw, 32px);
  }
  .object-choice {
    width: 48px;
    height: 48px;
  }
  .object-picker {
    bottom: 44px;
  }
  .motion-toggle {
    bottom: 96px;
  }
  footer {
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}
@supports (padding: max(0px)) {
  .masthead {
    left: max(var(--pad), env(safe-area-inset-left));
    right: max(var(--pad), env(safe-area-inset-right));
  }
  .statement {
    left: max(var(--pad), env(safe-area-inset-left));
  }
  .object-picker,
  .motion-toggle,
  footer {
    right: max(var(--pad), env(safe-area-inset-right));
  }
}
#debug {
  position: absolute;
  top: 75px;
  left: 24px;
  font: 10px monospace;
  white-space: pre;
  z-index: 8;
  background: #e6e6e6dd;
  padding: 8px;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
