:root {
  color-scheme: dark;
  --bg: #000000;
  --fg: #f8f8f8;
  --muted: rgba(255, 255, 255, 0.66);
  --soft: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(0, 0, 0, 0.52);
  --nav-border: rgba(255, 255, 255, 0.13);
  --glow: rgba(255, 255, 255, 0.34);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: #050505;
  color: var(--fg);
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scrub-stage {
  position: relative;
  min-height: 100vh;
  background: #000;
}

.video-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  background: #000;
  isolation: isolate;
}

.product-video {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  object-fit: contain;
  object-position: center center;
  background: #000;
  border: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;
  transform: translateZ(0);
  will-change: contents;
}

.scrub-hint {
  position: fixed;
  right: clamp(0.9rem, 3vw, 2rem);
  bottom: calc(4.55rem + var(--safe-bottom));
  z-index: 12;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.54);
  font-size: clamp(0.68rem, 1.4vw, 0.78rem);
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: opacity 300ms ease;
}

.scrub-hint.is-hidden {
  opacity: 0;
}

.hint-small {
  display: none;
}

.bottom-nav {
  position: fixed;
  right: 50%;
  bottom: calc(0.75rem + var(--safe-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1vw, 0.85rem);
  width: min(calc(100vw - 1.2rem), 48rem);
  min-height: 3.25rem;
  padding: 0.35rem;
  transform: translateX(50%);
  border: 0;
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.64);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.bottom-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.66rem clamp(0.7rem, 1.9vw, 1.18rem);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.76rem, 2.2vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, text-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.bottom-nav a::after {
  content: "";
  position: absolute;
  left: 0.78rem;
  right: 0.78rem;
  bottom: 0.42rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: currentColor;
  opacity: 0.85;
  transition: transform 180ms ease;
}

.bottom-nav a:hover,
.bottom-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 18px var(--glow);
  transform: translateY(-1px);
  outline: none;
}

.bottom-nav a:hover::after,
.bottom-nav a:focus-visible::after {
  transform: scaleX(1);
}

.noscript-message {
  position: fixed;
  inset: auto 1rem calc(5.4rem + var(--safe-bottom));
  z-index: 40;
  padding: 1rem;
  border: 1px solid var(--nav-border);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.9);
  color: var(--fg);
  text-align: center;
}

.coming-soon-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  margin: 0;
  background: rgba(95, 95, 95, 0.42);
  color: #ffffff;
  pointer-events: none;
}

.coming-soon-overlay span {
  color: #ffffff;
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

@media (max-width: 680px) {
  .video-shell {
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
  }

  .product-video {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    /* Mobile used to crop the 16:9 video with cover, making it look too zoomed-in.
       Contain keeps the whole frame visible on portrait phones. */
    object-fit: contain;
    object-position: center center;
  }

  .coming-soon-overlay {
    background: rgba(0, 0, 0, 0.18);
  }

  .coming-soon-overlay span {
    font-size: clamp(1.7rem, 11vw, 4.3rem);
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.78);
  }

  .scrub-hint {
    right: 50%;
    bottom: calc(4.25rem + var(--safe-bottom));
    transform: translateX(50%);
    white-space: nowrap;
  }

  .hint-wide {
    display: none;
  }

  .hint-small {
    display: inline;
  }

  .bottom-nav {
    width: min(calc(100vw - 0.7rem), 38rem);
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .bottom-nav a {
    flex: 0 0 auto;
    padding-inline: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
