html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #ffffff;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Only the home page (with the OptionWheel) needs a locked, non-scrolling viewport */
body.home {
  overflow: hidden;
}

/* Fade the menu out before leaving the home page */
.menu-wheel-wrap {
  transition: opacity 0.4s ease;
}
.menu-wheel-wrap.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Fade every other page in as it loads, so navigation feels like a cross-fade */
body:not(.home) {
  animation: page-fade-in 0.5s ease both;
}
@keyframes page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Classic header used on every page except home ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 32px;
  box-sizing: border-box;
  background: #fff;
  z-index: 10;
}

.site-header__home {
  display: inline-flex;
  align-items: center;
  color: #000;
  text-decoration: none;
}
.site-header__home svg {
  width: 22px;
  height: 22px;
  display: block;
}
.site-header__home:hover {
  opacity: 0.6;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__link {
  color: #000;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.3px;
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}
.site-header__link:hover {
  opacity: 0.55;
}
.site-header__link--active {
  font-weight: 600;
}

.page-body {
  padding: 80px 32px;
  box-sizing: border-box;
  text-align: center;
}

.page-body h1 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    min-height: 64px;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .site-header__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
  .site-header__link {
    font-size: 13px;
  }
  .page-body {
    padding: 40px 20px;
  }
}

/* ---------- OptionWheel menu (vanilla port of the Reactbits component) ---------- */
.menu-wheel-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: max(720px, 25vw);
  height: 100%;
  z-index: 1;
}

.option-wheel {
  --ow-text-color: #b0b0b0;
  --ow-active-color: #000000;
  --ow-font-size: 3rem;
  --ow-inset: 80px;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  outline: none;
}
.option-wheel--dragging {
  cursor: grabbing;
}

.option-wheel__item {
  position: absolute;
  top: 50%;
  left: var(--ow-inset);
  white-space: nowrap;
  font-size: var(--ow-font-size);
  line-height: 1;
  font-weight: 200;
  transform-origin: left center;
  cursor: pointer;
  will-change: transform, opacity, filter;
  color: color-mix(in srgb, var(--ow-active-color) calc(var(--ow-p, 0) * 100%), var(--ow-text-color));
}
.option-wheel--right .option-wheel__item {
  left: auto;
  right: var(--ow-inset);
  transform-origin: right center;
}
.option-wheel__item--selected {
  font-weight: 500;
}

@media (max-width: 768px) {
  .menu-wheel-wrap {
    width: 100vw;
    height: 60vh;
    height: 60dvh;
    top: 0;
    left: 0;
    z-index: 2;
  }
  /* Raise the wheel's vertical anchor so the active item sits higher on
     screen; items above can still be reached by dragging/scrolling. */
  .option-wheel__item {
    top: 20%;
  }
}

/* ---------- Home visual, placed to the right of the menu ---------- */
.home-visual {
  position: fixed;
  top: 0;
  left: max(720px, 25vw);
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  box-sizing: border-box;
  z-index: 0;
  transition: opacity 0.4s ease;
}
.home-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.home-visual__frame {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}
.home-visual__frame video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}
/* Invisible layer that absorbs all mouse events so the browser never
   detects a hover on the <video> itself and never shows its built-in
   overlay controls (PiP, cast, skip, etc.) */
.home-visual__shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}
.home-visual.fade-out {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .home-visual {
    left: 0;
    top: 60vh;
    top: 60dvh;
    height: 40vh;
    height: 40dvh;
    padding: 12px;
    z-index: 1;
  }
  .home-visual__frame {
    width: 100%;
    height: 100%;
  }
  .home-visual__frame video {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}
