:root {
  color-scheme: light;
  --dark: #07121d;
  --paper: #f6f7f9;
  --blue: #5da7ff;
  --blue-hi: #a6d1ff;
  --orange: #ff4b1f;
  --ease-out: cubic-bezier(.2, .88, .22, 1);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--dark);
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { font: inherit; }

.experience {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--dark);
}

.scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scene iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}

.scene-video {
  z-index: 4;
  display: grid;
  place-items: center;
  background: #07121d;
  transition: opacity .68s cubic-bezier(.35, 0, .25, 1);
}

.video-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100vw, 177.7778vh);
  height: min(100vh, 56.25vw);
  display: grid;
  place-items: center;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.video-shell::before {
  content: none;
}

.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #07121d;
}

.start-screen {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  background: transparent;
  transition: opacity .55s ease, visibility .55s ease;
}

.start-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-button {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
  min-width: 150px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  padding: 0 28px;
  color: #07121d;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .2);
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.start-button:hover { transform: translateY(-2px); background: white; }
.start-button:focus-visible,
.skip-video:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-video {
  position: absolute;
  z-index: 6;
  top: max(20px, env(safe-area-inset-top));
  right: max(22px, env(safe-area-inset-right));
  border: 0;
  padding: 9px 11px;
  color: rgba(255, 255, 255, .76);
  background: rgba(4, 10, 18, .54);
  backdrop-filter: blur(12px);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, color .2s ease;
}

.experience.is-playing .skip-video,
.experience.is-replay .skip-video { opacity: 1; visibility: visible; }
.skip-video:hover { color: white; }

.scene-console {
  z-index: 3;
  background: #f5f7f5;
  transform: scale(1);
  transition: opacity .68s cubic-bezier(.35, 0, .25, 1), transform .72s var(--ease-out);
  will-change: opacity, transform;
}
.scene-carousel { z-index: 2; background: #f7f7f5; transition: opacity .32s ease; }
.scene-profile { z-index: 3; background: var(--paper); transition: opacity .32s ease; }
.scene-console.is-dissolve-enter {
  opacity: 0;
  transform: scale(1.018);
}
.scene-video.is-dissolve-exit {
  opacity: 0;
  pointer-events: none;
}
.scene-carousel.is-crossfade-enter,
.scene-profile.is-crossfade-enter { opacity: 0; }
.scene-console.is-crossfade-exit,
.scene-carousel.is-crossfade-exit { opacity: 0; }

.sr-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: white;
  background: var(--dark);
}

@media (max-width: 620px) {
  .start-button {
    top: max(16px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    min-width: 132px;
    min-height: 48px;
  }
  .skip-video { top: max(12px, env(safe-area-inset-top)); right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .16s !important;
    transition-delay: 0s !important;
  }
}
