/* StayOne cinematic entrance — Claude, 2026-10-15.
   Reusable overlay: hidden unless the inline guard adds html.intro-pending, so no-JS,
   reduced-motion and repeat visits see the homepage immediately. */
.stayone-intro { display: none; }
.intro-pending .stayone-intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #fff;
  opacity: 1;
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1);
}
.intro-pending, .intro-pending body { overflow: hidden; }
.stayone-intro.is-leaving { opacity: 0; pointer-events: none; }

.stayone-intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.stayone-intro-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(132px, 44vmin, 300px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
}
/* Soft halo that brightens as the spin speeds up. It sits behind the O and never changes the O itself. */
.stayone-intro-glow {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 162, 27, .32), rgba(242, 106, 27, .14) 55%, rgba(242, 106, 27, 0) 100%);
  opacity: 0;
}
.stayone-intro-o {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* never stretched: uniform scale and rotation only */
  opacity: 0;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-drag: none;
}

.stayone-intro-skip {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #e4ddd0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #3a3845;
  font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}
.stayone-intro-skip:hover { color: #1d1c26; border-color: #cbbfa9; }
.stayone-intro-skip:focus-visible { outline: 3px solid #b0410a; outline-offset: 3px; }

/* Preview-only replay control (the production root would not include this button). */
.stayone-intro-replay {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #1d1c26;
  color: #fff;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 10px 24px -12px rgba(29, 28, 38, .7);
  cursor: pointer;
}
.js .stayone-intro-replay { display: inline-flex; }
.stayone-intro-replay:focus-visible { outline: 3px solid #f7a21b; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .stayone-intro { display: none !important; }
  .js .stayone-intro-replay { display: none; }
}
