:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow: hidden;
}

.masthead {
  position: fixed;
  z-index: 2;
  top: max(26px, env(safe-area-inset-top));
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.brand {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 36px;
  padding: 6px 10px;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.brand__identity,
.brand__email {
  grid-area: 1 / 1;
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1), opacity 200ms, filter 280ms;
}

.brand__identity {
  display: flex;
  align-items: center;
}

.brand__email {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(10px);
}

.brand:hover .brand__identity,
.brand:focus-visible .brand__identity {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(-10px);
}

.brand:hover .brand__email,
.brand:focus-visible .brand__email {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.brand:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.stage {
  --stage-width: min(78vw, 1200px);
  --stage-height: 74vh;
  --stage-height: 74svh;
  position: fixed;
  inset: 0;
  width: var(--stage-width);
  height: var(--stage-height);
  margin: auto;
  pointer-events: none;
  user-select: none;
}

.is-loading .stage {
  visibility: hidden;
}

.axis-loader {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 96px;
  height: 96px;
  margin: auto;
  pointer-events: none;
}

.axis-loader[hidden] {
  display: none;
}

.frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--frame-scale, 1));
  transform-origin: center;
  opacity: 0;
}

.frame.is-active {
  opacity: 1;
}

.stage.smear-active .frame {
  visibility: hidden;
}

.smear-canvas {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.smear-canvas[hidden] {
  display: none;
}

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

@media (max-width: 600px) {
  .masthead {
    top: max(18px, env(safe-area-inset-top));
  }

  .stage {
    --stage-width: 94vw;
    --stage-height: 68vh;
    --stage-height: 68svh;
  }
}

@media (max-width: 600px), (hover: none) and (pointer: coarse) {
  .frame[data-mobile-rotate] {
    --frame-rotated: 1;
    inset: auto;
    top: 50%;
    left: 50%;
    width: var(--stage-height);
    height: var(--stage-width);
    transform: translate(-50%, -50%) rotate(-90deg) scale(var(--frame-scale, 1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand__identity,
  .brand__email {
    transition: none;
    filter: none;
    transform: none;
  }
}
