/* FORMA launch cover (19 Nov 2026). The cover sits over the Home page until the visitor enters through the Halo.
   It only shows when the small script in the <head> of index.html adds "cover-on" to <html>; without it (cover
   switched off in site.config.js, a visit from another page of the site, scripts off) none of this is seen.
   Wide screens use the full picture (img/cover/plate.webp); tall screens place the three dancers on their own. */
.cover { display: none; }
html.cover-on { overflow: hidden; }
html.cover-on .cover {
  --sw: max(100vw, 177.58vh);                 /* the picture's width when it covers the screen (1671 x 941) */
  --hd: max(124px, calc(var(--sw) * .174));   /* the Halo's diameter */
  --hy: calc(50% + var(--sw) * .0985);        /* the Halo's centre, down the screen */
  display: block; position: fixed; inset: 0; z-index: 9000; overflow: hidden; color: #fff;
  font-family: var(--display, "Jost", "Avenir Next", "Century Gothic", sans-serif);
  -webkit-user-select: none; user-select: none;
}
.cover-back { position: absolute; inset: 0; background: #000; overflow: hidden; }
.cover-zoom { position: absolute; inset: 0; transform-origin: 50% var(--hy); will-change: transform, opacity; }
.cover-stage { position: absolute; left: 50%; top: 50%; width: var(--sw); height: calc(var(--sw) * .5631); transform: translate(-50%, -50%); }
.cover-plate { position: absolute; inset: 0; width: 100%; height: 100%; display: block; animation: cover-in 1.2s ease both; }
.cover-dancer { display: none; position: absolute; mix-blend-mode: screen; animation: cover-in 1.4s ease both; }
.cover-brand { position: absolute; left: 0; right: 0; top: calc(50% - var(--sw) * .157); display: grid; justify-items: center; gap: calc(var(--sw) * .034); transform: translateY(-50%); animation: cover-rise 1s .15s cubic-bezier(.2,.7,.2,1) both; }
.cover-logo { display: block; width: min(calc(var(--sw) * .368), 86vw); height: auto; filter: drop-shadow(0 0 18px rgba(79,125,243,.35)); }
.cover-line { margin: 0; padding-left: .32em; max-width: none; font-weight: 400; font-size: max(13px, calc(var(--sw) * .0205)); line-height: 1; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: 0 0 22px rgba(79,125,243,.45); }

/* The Halo: a real button. The ring is drawn in FORMA's purple, blue and teal. */
.cover-halo {
  position: absolute; left: 50%; top: var(--hy); width: var(--hd); height: var(--hd); margin: 0; padding: 0;
  transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.5) 62%, rgba(0,0,0,0) 100%);
  box-shadow: 0 0 calc(var(--hd) * .22) rgba(79,125,243,.3), inset 0 0 calc(var(--hd) * .16) rgba(79,125,243,.22);
  color: #fff; font: 400 max(11px, calc(var(--hd) * .064))/1 var(--display, "Jost", sans-serif); letter-spacing: .3em; text-transform: uppercase;
  cursor: pointer; -webkit-tap-highlight-color: transparent; will-change: transform; animation: cover-rise 1s .35s cubic-bezier(.2,.7,.2,1) both;
}
.cover-halo::before, .cover-halo::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: max(3px, calc(var(--hd) * .016)); pointer-events: none;
  background: conic-gradient(from 180deg, #2BD9E4 0%, #4F7DF3 22%, #8B5CF6 44%, #7B61FF 56%, #4F7DF3 78%, #2BD9E4 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.cover-halo::after { inset: -1.5%; padding: calc(var(--hd) * .034); filter: blur(calc(var(--hd) * .04)); opacity: .8; animation: cover-breathe 3.8s ease-in-out infinite; transition: opacity .3s; }
.cover-halo:hover::after { opacity: 1; animation: none; }
.cover-halo:focus { outline: none; }
.cover-halo:focus-visible { outline: 2px solid #fff; outline-offset: max(8px, calc(var(--hd) * .06)); }
.cover-enter { position: relative; display: block; padding-left: .3em; text-shadow: 0 0 16px rgba(43,217,228,.6); transition: letter-spacing .3s; }
.cover-halo:hover .cover-enter { letter-spacing: .36em; }
.cover-floor { display: none; position: absolute; left: 50%; top: calc(var(--hy) + var(--hd) * .56); width: calc(var(--hd) * 1.5); height: calc(var(--hd) * .1); transform: translateX(-50%); border-radius: 50%; background: linear-gradient(90deg, rgba(139,92,246,0), #8B5CF6 25%, #2BD9E4 55%, #4F7DF3 78%, rgba(79,125,243,0)); filter: blur(calc(var(--hd) * .05)); opacity: .7; }

/* The tunnel: rings of light that travel past the visitor, and the light at its end. */
.cover-tunnel { position: absolute; inset: 0; pointer-events: none; }
.cover-ring { position: absolute; border-radius: 50%; opacity: 0; will-change: transform, opacity; border: 2px solid #4F7DF3; box-shadow: 0 0 22px 2px rgba(79,125,243,.55), inset 0 0 22px 2px rgba(79,125,243,.35); }
.cover-ring:nth-child(3n+1) { border-color: #8B5CF6; box-shadow: 0 0 22px 2px rgba(139,92,246,.55), inset 0 0 22px 2px rgba(139,92,246,.35); }
.cover-ring:nth-child(3n+2) { border-color: #2BD9E4; box-shadow: 0 0 22px 2px rgba(43,217,228,.5), inset 0 0 22px 2px rgba(43,217,228,.3); }
.cover-light { position: absolute; border-radius: 50%; opacity: 0; will-change: transform, opacity; background: radial-gradient(closest-side, rgba(226,247,255,.9), rgba(43,217,228,.42) 34%, rgba(79,125,243,.2) 58%, rgba(139,92,246,0) 100%); }
html.cover-going .cover-halo { cursor: default; animation: none; }
html.cover-going .cover-halo::after { animation: none; opacity: 1; }
html.cover-going .cover-plate, html.cover-going .cover-dancer, html.cover-going .cover-brand { animation: none; }

@keyframes cover-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cover-rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes cover-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Tall screens (phones, a tablet held upright): the dancers are placed one by one around the logo and the Halo. */
@media (max-aspect-ratio: 5/4) {
  html.cover-on .cover { --hd: clamp(150px, 46vw, 300px); --hy: 63%; }
  .cover-stage { background: radial-gradient(60% 34% at 12% 30%, rgba(123,97,255,.2), rgba(0,0,0,0) 70%), radial-gradient(60% 30% at 92% 66%, rgba(43,217,228,.15), rgba(0,0,0,0) 70%), radial-gradient(90% 12% at 50% 96%, rgba(79,125,243,.2), rgba(0,0,0,0) 70%), #000; }
  .cover-stage { left: 0; top: 0; width: 100%; height: 100%; transform: none; isolation: isolate; }
  .cover-plate { display: none; }
  .cover-dancer { display: block; height: auto; opacity: .8; }
  .cover-dancer.is-contemporary { left: -7vw; top: max(1.5vh, env(safe-area-inset-top, 0px)); width: min(50vw, 26vh); }
  .cover-dancer.is-breaking { left: -7vw; bottom: 1.5vh; width: min(52vw, 26vh); }
  .cover-dancer.is-ballet { right: -8vw; bottom: 1vh; width: min(40vw, 21vh); }
  .cover-brand { top: 31%; gap: 5.4vw; }
  .cover-logo { width: min(72vw, 520px); }
  .cover-line { font-size: clamp(12px, 3.5vw, 22px); letter-spacing: .26em; padding-left: .26em; }
  .cover-floor { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .cover-plate, .cover-dancer, .cover-brand, .cover-halo, .cover-halo::after { animation: none; }
  .cover-enter { transition: none; }
}
main:focus { outline: none; }
