/* The entrance: the glass Watch logo falls in and hovers over a dark aurora; a glass prompt invites
   the visitor in; the logo then transforms into the intro video, which fades into the page.
   The atmosphere fades to pure black before the video grows, so its black frame never shows. */
.site-intro { --violet: #bfb1f6; --mint: #a6edd6; --coral: #ff9a86; --ease: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.3, 1.35, .5, 1);
  position: fixed; inset: 0; bottom: auto; z-index: 10000; overflow: visible; background: #000; opacity: 1; transition: opacity .6s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
@supports (transition-timing-function: linear(0, 1)) {
  .site-intro { --spring: linear(0, .25 6%, .58 13%, .86 22%, 1.02 32%, 1.045 40%, 1.03 50%, 1.005 64%, .998 78%, 1); }
}
.site-intro video { position: absolute; top: 50%; left: 50%; height: 100dvh; width: auto; max-width: none; max-height: none; transform: translate(-50%, -50%); opacity: 0; will-change: transform, opacity; }
.site-intro[data-state="entrance"] video { visibility: hidden; }

/* Dark aurora: a blue core that matches the glass logo, violet and mint curtains drifting slowly
   around it, all pre-blurred gradients moved only by transforms. */
.intro-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; transition: opacity .12s ease;
  background: radial-gradient(34% 30% at 50% 50%, rgba(19, 122, 181, .26), transparent 70%), radial-gradient(70% 55% at 50% 58%, rgba(42, 31, 107, .5), transparent 72%); }
.intro-glow::before, .intro-glow::after { content: ""; position: absolute; left: 50%; top: 50%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; border-radius: 50%; will-change: transform; }
.intro-glow::before { background: radial-gradient(22% 16% at 34% 40%, rgba(191, 177, 246, .2), transparent 70%), radial-gradient(18% 14% at 68% 62%, rgba(166, 237, 214, .12), transparent 70%), radial-gradient(14% 10% at 60% 30%, rgba(255, 154, 134, .07), transparent 70%); animation: intro-drift 26s linear infinite; }
.intro-glow::after { background: radial-gradient(20% 14% at 62% 44%, rgba(118, 167, 255, .16), transparent 70%), radial-gradient(16% 12% at 40% 64%, rgba(191, 177, 246, .12), transparent 70%); animation: intro-drift 34s linear infinite reverse; }
@keyframes intro-drift { to { transform: rotate(360deg); } }
/* The atmosphere breathes in once the logo has settled. */
.intro-glow { opacity: .55; }
.site-intro.is-ready .intro-glow { opacity: 1; transition: opacity 1.6s var(--ease); }

.intro-halo { position: absolute; left: 50%; top: calc(50% + clamp(70px, 11vw, 120px) + 4px); width: clamp(170px, 26vw, 290px); height: 34px; border-radius: 50%; pointer-events: none; opacity: 0; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(60, 150, 255, .5), rgba(118, 167, 255, .22) 40%, rgba(191, 177, 246, .08) 70%, transparent); }
.site-intro[data-state="transformation"] .intro-halo, .site-intro[data-state="video"] .intro-halo { opacity: 0 !important; transition: opacity .12s ease; }
.site-intro .intro-logo { position: absolute; top: 50%; left: 50%; width: clamp(140px, 22vw, 240px); height: auto; border-radius: 50%; transform: translate(-50%, -150vh); will-change: transform; pointer-events: none; }
.site-intro button { font: inherit; cursor: pointer; color: #f4f3ff; }
.site-intro button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.site-intro .intro-enter { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }

/* The prompt: a glass pill with a live equaliser and shimmering gradient type, like the site's controls. */
.intro-prompt { position: absolute; top: calc(50% + clamp(70px, 11vw, 120px) + 52px); left: 50%; display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px 13px 18px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(rgba(16, 14, 40, .62), rgba(16, 14, 40, .62)) padding-box, linear-gradient(110deg, rgba(191, 177, 246, .7), rgba(166, 237, 214, .55) 50%, rgba(255, 154, 134, .5)) border-box; border: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 18px 50px rgba(4, 3, 20, .55), 0 0 40px rgba(118, 167, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .12);
  opacity: 0; transform: translate(-50%, 14px) scale(.94); filter: blur(6px); transition: opacity .9s var(--ease), transform 1.1s var(--spring), filter .9s var(--ease); }
.is-ready .intro-prompt { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); }
.intro-eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 16px; }
.intro-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--mint); transform-origin: bottom; transform: scaleY(.3); animation: intro-eq 1.1s ease-in-out infinite; }
.intro-eq i:nth-child(2) { animation-delay: -.4s; background: var(--violet); }
.intro-eq i:nth-child(3) { animation-delay: -.75s; }
.intro-eq i:nth-child(4) { animation-delay: -.2s; background: var(--coral); }
@keyframes intro-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.intro-label { font: 600 clamp(19px, 1.7vw, 22px)/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif; letter-spacing: -.02em;
  background: linear-gradient(100deg, #f4f3ff 0%, #f4f3ff 30%, #d9cfff 40%, var(--mint) 50%, #ffd2c4 58%, #f4f3ff 70%, #f4f3ff 100%); background-size: 250% 100%; background-position: 100% 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: intro-shimmer 3.8s ease-in-out 1.6s infinite; }
@keyframes intro-shimmer { 0% { background-position: 100% 50%; } 55%, 100% { background-position: 0% 50%; } }
.site-intro[data-state="transformation"] .intro-prompt, .site-intro[data-state="video"] .intro-prompt { opacity: 0; transform: translate(-50%, 0) scale(.96); filter: blur(4px); transition-duration: .12s; }
.site-intro .intro-enter:disabled { pointer-events: none; }
.site-intro .intro-enter:focus-visible { outline: none; }
.keyboard-navigation .intro-enter:focus-visible .intro-prompt { box-shadow: 0 0 0 2px var(--mint), 0 18px 50px rgba(4, 3, 20, .55); }

/* Controls: glass pills, like the site's navigation. The speaker shows whether sound is on. */
.site-intro .intro-skip, .site-intro .intro-sound { position: absolute; right: 24px; bottom: max(var(--intro-controls-bottom, 24px), env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: #e6e4f5; background: rgba(14, 12, 36, .58); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); transition: background .2s, color .2s, opacity .6s var(--ease); }
.site-intro .intro-skip:hover, .site-intro .intro-sound:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.site-intro .intro-sound { left: 24px; right: auto; padding-left: 14px; }
.site-intro .intro-sound::before { content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8v4h3l4 3.5v-11L6 8z' fill='black'/%3E%3Cpath d='M13 7.5a3.5 3.5 0 0 1 0 5M15.3 5.2a6.7 6.7 0 0 1 0 9.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8v4h3l4 3.5v-11L6 8z' fill='black'/%3E%3Cpath d='M13 7.5a3.5 3.5 0 0 1 0 5M15.3 5.2a6.7 6.7 0 0 1 0 9.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.site-intro .intro-sound[data-muted="true"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8v4h3l4 3.5v-11L6 8z' fill='black'/%3E%3Cpath d='m13.5 8 4 4m0-4-4 4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8v4h3l4 3.5v-11L6 8z' fill='black'/%3E%3Cpath d='m13.5 8 4 4m0-4-4 4'/%3E%3C/svg%3E"); }
.site-intro [hidden] { display: none; }
.site-intro[data-state="transformation"] .intro-glow, .site-intro[data-state="video"] .intro-glow { opacity: 0; transition-duration: .12s; }
.site-intro.is-finished { opacity: 0; pointer-events: none; }
html.intro-playing { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .site-intro { display: none; transition: none; } }
@media (max-width: 480px) { .intro-prompt { padding: 12px 20px 12px 16px; } .site-intro .intro-skip, .site-intro .intro-sound { right: 16px; } .site-intro .intro-sound { left: 16px; right: auto; } }

.intro-viewport-measure { position: absolute; width: 0; height: 100vh; height: 100lvh; visibility: hidden; pointer-events: none; }

/* Cover Safari's obscured areas independently of the visible, centered stage. */
.site-intro::before { content: ""; position: fixed; inset: -100vh 0; background: #000; z-index: -1; pointer-events: none; }
html.intro-playing, html.intro-playing body { background: #000 !important; overscroll-behavior: none; }
html.intro-playing body > :not(.site-intro) { visibility: hidden !important; }
