:root {
  color-scheme: dark;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #050506;
  color: #f3f3f3;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { min-width: 300px; min-height: 100%; margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }

.entry {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 42% 46% at 50% 46%, rgba(76, 76, 82, .20), transparent 75%),
    radial-gradient(ellipse 105% 115% at 50% 110%, rgba(31, 32, 36, .17), transparent 68%),
    linear-gradient(145deg, #030303 0%, #0a0a0d 50%, #010102 100%);
}
.entry__grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: .09;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}
.entry__topline, .entry__footer {
  position: absolute;
  left: clamp(22px, 4vw, 58px);
  right: clamp(22px, 4vw, 58px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(242,242,242,.40);
  font-size: 10px;
  letter-spacing: .20em;
  font-weight: 600;
  white-space: nowrap;
}
.entry__topline { top: clamp(24px, 5vh, 48px); }
.entry__footer { bottom: clamp(25px, 5vh, 46px); }
.entry__centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.8vh, 27px);
  transform: translateY(-4px);
}
.entry__eyebrow, .entry__hint {
  text-align: center;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  color: rgba(245,245,245,.65);
}
.entry__hint { color: rgba(245,245,245,.35); font-size: 9px; letter-spacing: .18em; }
.entry__hint span { padding: 0 .5ch; }
.logo-button {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(182px, 22vw, 310px);
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: scale(1);
  opacity: 1;
  will-change: transform, opacity;
  outline-offset: 12px;
}
.logo-button:focus-visible { outline: 1px solid rgba(245,245,245,.65); border-radius: 50%; }
.logo-button__halo {
  pointer-events: none;
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle, rgba(233,235,241,.08), transparent 67%);
  filter: blur(22px);
  transform: scale(1.4);
  transition: opacity .4s ease;
}
.logo-button:is(:hover, :focus-visible) .logo-button__halo { opacity: 1.8; }
.logo-button__visual { position: absolute; display: block; inset: 0; }
.logo-button__poster, .logo-button__canvas {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  inset: 0;
  filter: drop-shadow(0 0 18px rgba(255,255,255,.10));
}
.logo-button__poster { opacity: 1; transition: opacity .2s ease; }
.logo-button__canvas { opacity: 0; transition: opacity .2s ease; }
.has-video .logo-button__poster { opacity: 0; }
.has-video .logo-button__canvas { opacity: 1; }
.logo-button__fallback {
  display: none;
  place-items: center;
  height: 100%;
  color: #e8e8ed;
  font-size: clamp(55px, 9vw, 96px);
  letter-spacing: -.12em;
  font-weight: 900;
  text-shadow: 0 0 28px rgba(255,255,255,.25);
}
.missing-media .logo-button__fallback { display: grid; }
.missing-media .logo-button__poster, .missing-media .logo-button__canvas { display: none; }
.missing-media:not(.is-entering) .logo-button__fallback { animation: logo-idle 16s linear infinite; }
.missing-media:not(.is-entering) .logo-button.is-bursting .logo-button__fallback { animation-duration: 2s; }
@keyframes logo-idle { to { transform: rotateY(360deg); } }

/* One continuous crossfade. The selected hand frame is moved to a
   fixed overlay in JS and animated on the compositor; the next screen
   is already underneath the fading entrance. No black interstitial. */
.entry { z-index: 2; }
.entry.is-entering { pointer-events: none; }
.entry.is-entering .logo-button { pointer-events: none; }
.portal-frame {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  transform-origin: center center;
  transform: translate3d(0,0,0) scale(1);
  will-change: transform, opacity;
  filter: none !important;
}
.site-preview {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 50px 22px;
  background: radial-gradient(ellipse 60% 50% at 50% 47%, #202024 0%, #09090a 45%, #030304 100%);
  text-align: center;
}
.site-preview__inner { width: min(800px, 100%); opacity: 1; transform: none; transition: none; }
.site-preview__eyebrow { font-size: 10px; letter-spacing: .28em; color: #aaa; font-weight: 700; }
.site-preview h1 { margin: 24px 0; font-weight: 800; font-size: clamp(46px, 10vw, 110px); line-height: .9; letter-spacing: -.07em; }
.site-preview__period { color: #aaa; }
.site-preview__tagline { font-size: 12px; letter-spacing: .26em; font-weight: 600; }
.site-preview__note { margin: 52px auto 30px; max-width: 380px; line-height: 1.6; font-size: 13px; color: #888; }
.site-preview__back { border: 1px solid #666; padding: 12px 18px; background: none; color: #eee; font-size: 10px; letter-spacing: .18em; cursor: pointer; }
.site-preview__back:hover, .site-preview__back:focus-visible { background: rgba(255,255,255,.1); }

@media (max-width: 500px) {
  .entry__topline, .entry__footer { font-size: 8px; letter-spacing: .12em; }
  .entry__topline span:nth-child(2), .entry__footer span:nth-child(2) { display: none; }
  .entry__eyebrow { letter-spacing: .17em; font-size: 9px; }
  .logo-button { width: clamp(180px, 54vw, 235px); }
}
@media (prefers-reduced-motion: reduce) {
  /* Never hide the hand or snap the explicit click-to-enter transition.
     Keep post-entry decorative text animation minimal. */
  .site-preview__inner { transition-duration: .01ms; }
}
/* The MP4 is decoded offscreen; only the colour-keyed canvas is visible. */
.logo-button__source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.logo-button__canvas { pointer-events: none; }

/* Version 3: the 240-frame transparent sprite animation. */
.logo-button__source {display:none!important;}
.entry.sprite-fallback .logo-button__poster {
  animation: vc-poster-turn 16s linear infinite;
}
.entry.sprite-fallback .logo-button.is-bursting .logo-button__poster {
  animation-duration: 2s;
}
@keyframes vc-poster-turn {to{transform:rotateY(360deg)}}
/* Remove all unused top/bottom captions. The hint is the only visible intro text. */
.entry__topline,.entry__footer,.entry__eyebrow {display:none!important;}
