*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #1a1a1a;
  color: #e5e7eb;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

body {
  overflow: hidden;
}

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

img {
  -webkit-user-drag: none;
  user-select: none;
}

:root {
  --control-bar-width: 81px;
}

.shell {
  height: 100dvh;
  min-height: 100%;
}

.nav-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 50;
}

.control-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: var(--control-bar-width);
  height: 100dvh;
  padding: 72px 0 16px;
  overflow: visible;
  border-right: 1px solid #333;
  background: #1a1a1a;
  transform: translateX(-100%);
  transition: transform 260ms ease;
  will-change: transform;
}

body.is-nav-open .control-bar {
  transform: translateX(0);
}

.control-bar__tip-wrap {
  position: relative;
  display: flex;
  flex: none;
}

.control-bar__tooltip {
  position: absolute;
  top: 50%;
  left: calc(100% - 2px);
  z-index: 40;
  display: flex;
  width: max-content;
  align-items: center;
  padding: 1px 5px;
  border-radius: 8px;
  color: #fff;
  background: #1e3a5f;
  box-shadow: 0 2px 8px rgb(0 0 0 / 35%);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(-50% + 8px));
  white-space: nowrap;
}

.control-bar__tip-wrap:hover .control-bar__tooltip,
.control-bar__tip-wrap:focus-within .control-bar__tooltip {
  opacity: 1;
  visibility: visible;
  transition-delay: 5s;
}

.ui-button--chrome {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #333;
  border-radius: 9px;
  color: #9ca3af;
  background: #242424;
  cursor: pointer;
}

.ui-button--chrome:hover,
.ui-button--chrome:focus-visible {
  border-color: #555;
  color: #f3f4f6;
  background: #303030;
}

.ui-button--chrome:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.ui-button--chrome.is-active {
  border-color: #3b82f6;
  color: #60a5fa;
  background: #1e3a5f;
}

.ui-glyph {
  display: block;
  flex: none;
}

.stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100%;
  overflow: hidden;
  background: #1a1a1a;
}

.stage__layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #1a1a1a;
}

.stage__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2400ms ease;
}

.stage__media.is-visible {
  opacity: 1;
}

.stage__brand {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  pointer-events: none;
}

.stage__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.44em;
  font-size: clamp(24px, 4.4vw, 45px);
  background: rgba(30, 30, 30, 0.5);
  border-radius: 12px;
  padding: 0.18em 0.5em;
}

.stage__mark-icon {
  position: relative;
  top: calc(-0.13em - 2px);
  width: 1em;
  height: 1em;
}

.stage__mark span {
  padding-right: 0.24em;
  font-size: inherit;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.24em;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.7), 0 0 28px rgba(255, 255, 255, 0.35);
}

.stage__brand p {
  margin: 18px 0 0;
  color: #9ca3af;
  font-size: clamp(13px, 1.8vw, 18px);
  font-style: italic;
  font-weight: 300;
}

@media (prefers-reduced-motion: reduce) {
  .stage__media {
    transition-duration: 1ms;
  }

  .control-bar {
    transition-duration: 1ms;
  }
}
