/* ── LawCommand cinematic intro loader ─────────────────────────────
   Theme tokens (hard-coded copies from index.html):
   bg #0b0e14 · gold #c9a24b · gold-soft #ddbd72 · text #ece6d6 · dim #948b77
   Fonts: 'Playfair Display' (headings), 'Inter' (body) — loaded by the page.
   ─────────────────────────────────────────────────────────────────── */

html.lc-lock,
body.lc-lock { overflow: hidden !important; }

#lc-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #0b0e14;
  font-family: 'Inter', system-ui, sans-serif;
  color: #ece6d6;
  opacity: 0;
  transition: opacity 0.6s ease;
  overflow: hidden;
}
#lc-loader.lc-in { opacity: 1; }
#lc-loader.lc-out { opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
#lc-loader.lc-out-fast { opacity: 0; transition: opacity 0.22s ease; pointer-events: none; }

/* ── Skip button (first in tab order, visually top-right) ── */
#lc-loader .lc-skip {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 5;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #948b77;
  background: transparent;
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
#lc-loader .lc-skip:hover {
  color: #ddbd72;
  border-color: #c9a24b;
  background: rgba(201, 162, 75, 0.08);
}
#lc-loader .lc-skip:focus-visible {
  outline: 2px solid #ddbd72;
  outline-offset: 3px;
  color: #ddbd72;
}

/* ── Brand header ── */
#lc-loader .lc-brand {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 22px;
  color: #c9a24b;
  white-space: nowrap;
  user-select: none;
}
#lc-loader .lc-brand .lc-brand-mark { font-size: 20px; }

/* ── Globe stage: fills the entire viewport, canvas blends into the
      overlay background (renderer clear color is transparent) ── */
#lc-loader .lc-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}
#lc-loader .lc-stage canvas { display: block; }

/* ── Vignette: feathers the scene into the page black, no visible edge ── */
#lc-loader .lc-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 130% 100% at 50% 46%,
      rgba(11, 14, 20, 0) 50%,
      rgba(11, 14, 20, 0.5) 74%,
      #0b0e14 96%);
}

/* ── Caption / tagline ── */
#lc-loader .lc-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8vh;
  z-index: 4;
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #948b77;
  min-height: 1.4em;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
#lc-loader .lc-caption.lc-cap-out { opacity: 0; }
#lc-loader .lc-caption.lc-tagline {
  top: 13vh; /* above the globe dome — centered it was lost in the city lights */
  bottom: auto;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 5vmin, 46px);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #ddbd72;
  text-shadow: 0 2px 18px rgba(11, 14, 20, 0.9), 0 0 34px rgba(201, 162, 75, 0.45);
}

/* small screens */
@media (max-width: 640px) {
  #lc-loader .lc-brand { font-size: 19px; left: 22px; transform: none; }
  #lc-loader .lc-caption { bottom: 6vh; }
  #lc-loader .lc-caption.lc-tagline { top: 10vh; bottom: auto; }
}

/* ── Persistent docked globe layer (post-intro) ────────────────────
   Created at runtime by loader.js. Sits behind the hero content
   (.hero > * is z-index 1, header 50) and above the page background;
   loader.js fades/dims it out as the hero scrolls away. */
#lc-globe-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* the reparented globe wrapper (canvas + label overlay) fills the layer */
#lc-globe-layer .lc-globe-wrap { position: absolute; inset: 0; z-index: 1; }
#lc-globe-layer .lc-globe-wrap canvas { display: block; }

/* static no-WebGL fallback: captured still of the docked globe (glows +
   scrim baked into the image) fills the layer the same way */
#lc-globe-layer .lc-globe-static {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* gold glows behind the docked globe (brand gold only — no blue) */
#lc-globe-layer .lc-globe-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
/* large blurred gold disc behind the right side of the hero */
#lc-globe-layer .lc-glow-main {
  right: -16vw;
  top: 50%;
  width: 56vw;
  height: 56vw;
  min-width: 480px;
  min-height: 480px;
  transform: translateY(-50%);
  background: radial-gradient(circle,
    rgba(201, 162, 75, 0.16) 0%,
    rgba(201, 162, 75, 0.06) 42%,
    rgba(201, 162, 75, 0) 68%);
  filter: blur(38px);
}
/* fainter warm halo bleeding from the top */
#lc-globe-layer .lc-glow-top {
  right: 0;
  top: -24vh;
  width: 46vw;
  height: 46vw;
  min-width: 380px;
  min-height: 380px;
  background: radial-gradient(circle,
    rgba(221, 189, 114, 0.09) 0%,
    rgba(221, 189, 114, 0) 64%);
  filter: blur(56px);
}

/* readability scrim: darkens the left/center where hero copy sits,
   leaves the right-bleeding globe bright */
#lc-globe-layer .lc-globe-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(11, 14, 20, 0.68) 0%,
    rgba(11, 14, 20, 0.30) 42%,
    rgba(11, 14, 20, 0) 66%);
}

/* city label pills (rendered by the globe engine's label overlay;
   fallback styling — the engine may layer its own inline styles) */
#lc-globe-layer .lc-globe-label {
  position: absolute;
  z-index: 3;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #ddbd72;
  background: rgba(11, 14, 20, 0.62);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Hero content stagger once the loader hands off ────────────────
   loader.js adds .lc-hero-in on <body> the moment the overlay starts
   fading; each hero block rises + fades in with a soft stagger. */
@keyframes lc-hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.lc-hero-in .hero .pill {
  animation: lc-hero-rise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) 0.05s both;
}
body.lc-hero-in .hero h1 {
  animation: lc-hero-rise 0.8s cubic-bezier(0.22, 0.8, 0.3, 1) 0.16s both;
}
body.lc-hero-in .hero .sub {
  animation: lc-hero-rise 0.8s cubic-bezier(0.22, 0.8, 0.3, 1) 0.30s both;
}
body.lc-hero-in .hero .cta-row {
  animation: lc-hero-rise 0.8s cubic-bezier(0.22, 0.8, 0.3, 1) 0.42s both;
}
body.lc-hero-in .hero .showcase {
  animation: lc-hero-rise 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) 0.56s both;
}
@media (prefers-reduced-motion: reduce) {
  body.lc-hero-in .hero .pill,
  body.lc-hero-in .hero h1,
  body.lc-hero-in .hero .sub,
  body.lc-hero-in .hero .cta-row,
  body.lc-hero-in .hero .showcase { animation: none; }
}

/* small screens: globe parks top-right behind the eyebrow/headline —
   dim the mid band where the copy runs, let the globe peek at top */
@media (max-width: 640px) {
  #lc-globe-layer .lc-globe-scrim {
    background: linear-gradient(180deg,
      rgba(11, 14, 20, 0.30) 0%,
      rgba(11, 14, 20, 0.52) 42%,
      rgba(11, 14, 20, 0.18) 78%,
      rgba(11, 14, 20, 0) 100%);
  }
  #lc-globe-layer .lc-glow-main { right: -48vw; width: 116vw; height: 116vw; }
  #lc-globe-layer .lc-glow-top { right: -20vw; }
}
