/* ==========================================================================
   Home page (index.html) — extras on top of world.css.

   The home page is the Circle page from the Dancers Inc. site, as is:
   world.css is a copy of that site's stylesheet (css/style.css) and
   world.js / dive.js / circle-rail.js of its scripts. This file only adds
   what's different here: the Circle's own lockup top-left instead of the
   Dancers Inc. pill, and this site's floating menu (the orb).
   ========================================================================== */

/* The orb's styles below use this site's tokens; world.css has its own
   meanings for some of the same names, so they're set on the orb alone. */
.orb, .orb-menu, .orb-hint {
  --ink: #1C3E55; --midnight: #12222D; --slate: #3A4E5C; --steel-text: #5F7182;
  --mist: #B9C4CB; --azure: #F3F4F5; --hairline: #E2E7EA;
  --font: 'Jost', 'Helvetica Neue', Arial, sans-serif; --track-label: .24em;
  --ease: cubic-bezier(.22, .61, .36, 1);
  font-family: var(--font);
}

/* Circle palette only. world.css is the Dancers Inc. stylesheet, whose
   accent is Curaçao (a light turquoise) and whose tint is Ice Blue; neither is
   the Circle's, so here they become Circle Ink and Light Azure. */
.circle-world { --curacao: #1C3E55; --ice-blue: #F3F4F5; --pool-blue: #F3F4F5; }

/* Top-left lockup: the mark and the name, in the same outline pill */
.cw-brand--circle { width: auto; display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 9px; color: var(--circle-ink); text-decoration: none; }
.cw-brand__mark { display: block; width: 28px; height: 28px; }
.cw-brand__mark svg { display: block; width: 100%; height: 100%; }
.cw-brand__word { display: flex; flex-direction: column; font-size: 13px; line-height: 1.05; letter-spacing: .3em; font-weight: 400; }
.cw-brand__word small { font-size: 7.5px; letter-spacing: .38em; text-transform: uppercase; margin-top: 3px; }
@media (max-width: 860px) {
  .cw-brand--circle { width: auto; padding: 6px 16px 6px 7px; gap: 10px; }
  .cw-brand__mark { width: 24px; height: 24px; }
  .cw-brand__word { font-size: 12px; }
  /* phones: the orb takes the bottom-right corner, so the progress pill moves left */
  .cw-rail { right: auto; left: 16px; }
  .cw-rail-list { right: auto !important; left: 0 !important; }
}

/* ==========================================================================
   The orb — the menu, as a circle (assets/js/nav.js)
   Floats over every page; drag it anywhere on desktop. Opens into a disc.
   ========================================================================== */
.orb {
  position: fixed; left: 0; top: 0; z-index: 80;
  width: 72px; height: 72px; padding: 0; border: 0; border-radius: 50%;
  background: var(--azure); cursor: pointer; touch-action: none; user-select: none;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(18, 34, 45, .14), 0 0 0 1px rgba(28, 62, 85, .06);
  opacity: 0; transition: opacity .6s var(--ease), box-shadow .4s var(--ease);
}
.orb.is-placed { opacity: 1; }
.orb__mark { width: 46px; height: 46px; pointer-events: none; transition: transform .6s var(--ease); }
.orb__ring {
  position: absolute; inset: -7px; border-radius: 50%; pointer-events: none;
  border: 1px dashed var(--mist); animation: ring-turn 40s linear infinite;
  transition: inset .45s var(--ease), border-color .3s;
}
@keyframes ring-turn { to { transform: rotate(360deg); } }
.orb__label {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 10px); white-space: nowrap; pointer-events: none;
  font-size: 9px; font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--steel-text);
}
.orb:hover .orb__mark, .orb:focus-visible .orb__mark { transform: rotate(-30deg) scale(1.06); }
.orb:hover .orb__ring, .orb:focus-visible .orb__ring { inset: -11px; border-color: var(--ink); }
.orb:focus-visible { outline: 0; box-shadow: 0 10px 30px rgba(18, 34, 45, .14), 0 0 0 2px var(--ink); }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .orb { cursor: grab; } }
.orb.is-dragging { cursor: grabbing; box-shadow: 0 18px 44px rgba(18, 34, 45, .22), 0 0 0 1px rgba(28, 62, 85, .08); }
.orb.is-dragging .orb__ring { inset: -13px; border-color: var(--ink); }
.orb.is-dragging .orb__label { opacity: 0; }
.orb-open .orb { opacity: 0; pointer-events: none; }

.orb-hint {
  position: absolute; right: calc(100% + 18px); top: 50%; transform: translate(8px, -50%); white-space: nowrap; pointer-events: none;
  font-size: 10px; font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--azure); background: var(--ink); padding: 8px 14px; border-radius: 999px;
  opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.orb-hint.is-on { opacity: 1; transform: translate(0, -50%); }

.orb-menu { position: fixed; inset: 0; z-index: 90; }
.orb-menu[hidden] { display: none; }
.orb-menu__veil {
  position: absolute; inset: 0; background: rgba(243, 244, 245, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .45s var(--ease);
}
.orb-open .orb-menu__veil { opacity: 1; }
.orb-disc {
  position: absolute; border-radius: 50%; background: var(--azure);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 11%;
  box-shadow: 0 30px 80px rgba(18, 34, 45, .18), 0 0 0 1px var(--hairline);
  transform: translate(var(--fx, 0), var(--fy, 0)) scale(var(--s0, .2));
  transition: transform .55s cubic-bezier(.65, 0, .35, 1);
}
.orb-open .orb-disc { transform: none; }
.orb-disc__orbit { position: absolute; inset: 10px; border-radius: 50%; border: 1px dashed var(--mist); pointer-events: none; animation: ring-turn 90s linear infinite; }
.orb-disc__mark { width: 30px; height: 30px; }
.orb-disc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.orb-disc__list a {
  display: inline-flex; align-items: baseline; gap: 12px; padding: 5px 4px;
  color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .3s, letter-spacing .45s var(--ease);
}
.orb-disc__n { font-size: 9px; font-weight: 400; letter-spacing: .2em; color: var(--steel-text); }
.orb-disc__t { font-size: clamp(17px, 2.2vw, 22px); font-weight: 200; letter-spacing: .14em; text-transform: uppercase; transition: letter-spacing .45s var(--ease); }
.orb-disc__list a:hover .orb-disc__t, .orb-disc__list a:focus-visible .orb-disc__t { letter-spacing: .2em; }
.orb-disc__list a[aria-current] { border-bottom-color: var(--ink); }
.orb-disc__list a:focus-visible, .orb-disc__foot a:focus-visible, .orb-disc__close:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.orb-disc__foot { display: flex; gap: 22px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.orb-disc__foot a, .orb-disc__close {
  font: 400 10px/1 var(--font); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--slate);
  padding: 6px 0; border-bottom: 1px solid var(--mist); background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer;
}
.orb-disc__foot a:hover, .orb-disc__close:hover { color: var(--ink); border-bottom-color: var(--ink); }
.orb-disc__close { border-bottom-color: transparent; color: var(--steel-text); }
/* items arrive as the disc opens */
.orb-disc > :not(.orb-disc__orbit) { opacity: 0; transition: opacity .35s var(--ease); }
.orb-open .orb-disc > :not(.orb-disc__orbit) { opacity: 1; transition: opacity .5s var(--ease) .25s; }

@media (max-width: 860px) {
  .orb { width: 60px; height: 60px; }
  .orb__mark { width: 38px; height: 38px; }
  .orb__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orb__ring, .orb-disc__orbit { animation: none; }
  .orb-disc { transition: none; }
}
.orb-disc__foot a { white-space: nowrap; }

/* The menu opening by itself at the foot of the home page (nav.js, data-orb-peek) */
.orb-disc__kicker { display: none; white-space: nowrap; font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--steel-text); text-align: center; }
.orb-auto .orb-disc__kicker { display: block; }
.orb-auto .orb-disc__mark { display: none; }
.orb-auto .orb-menu__veil { opacity: .55; }

/* Top-right, fixed: members go straight to their space. Same outline pill as the lockup. */
.cw-login {
  position: fixed; top: 26px; right: 30px; z-index: 6;
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; box-sizing: border-box;
  border: 1px solid var(--circle-ink); border-radius: 999px; color: var(--circle-ink); text-decoration: none;
  font-size: 10px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap;
  background: rgba(243,244,245,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .35s, box-shadow .35s, color .35s;
}
.cw-login__arr { font-size: 12px; letter-spacing: 0; transition: transform .35s var(--ease); }
.cw-login:hover, .cw-login:focus-visible { background: var(--circle-ink); color: #F3F4F5; box-shadow: 0 0 0 4px rgba(126,144,157,.18); outline: none; }
.cw-login:hover .cw-login__arr { transform: translateX(3px); }
@media (max-width: 860px) {
  .cw-login { top: 16px; right: 16px; height: 38px; padding: 0 14px; gap: 7px; font-size: 9px; letter-spacing: .2em; }
}
