@font-face {
  font-family: Aeonik;
  src: url('./assets/fonts/aeonik-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Aeonik;
  src: url('./assets/fonts/aeonik-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Aeonik, Arial, sans-serif;
  background: #fff;
  color: #fff;
  --logo-width: clamp(52px, 17.976vw, 136.8px);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100svh;
  isolation: isolate;
}

canvas, .fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.fallback { fill: #000; }

canvas { touch-action: none; }
canvas[data-hover] { cursor: grab; }
canvas[data-dragging] { cursor: grabbing; }

h1 {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: #fff;
  width: var(--logo-width);
  line-height: 0;
  opacity: 0;
  animation: wordmark-reveal 0.8s ease-out 2s both;
  user-select: none;
  pointer-events: none;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  /* Account for the original image's transparent bottom margin. */
  transform: translateY(4.18%);
}

@keyframes wordmark-reveal {
  from { opacity: 0; }
  to { opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  h1 { animation-duration: 0.01ms; }
}
