/* Louvacity Hero (the City → Building → Space cinematic): its styles, shared by city-to-building.html and the website
   prototype (../2026-11-27-Louvacity-website/). Moved out of city-to-building.html unchanged (22:31), so the website can
   show the Hero in its own page instead of an iframe. Page-level rules (html, body) stay in each page. */
  #world { position: fixed; inset: 0; }
  /* full-screen stages at every width (the Office's own narrow-screen rules turn a stage into a 62vh card in its HUD) */
  #world > .cc-stage, #world .portal .cc-stage { position: absolute; inset: 0; height: auto; min-height: 0; }
  #world > .cc-stage.off { visibility: hidden; }
  #world .cc-gate { pointer-events: none; }                      /* the gate is not a button here: no hover light that depends on where the mouse rests */
  /* inside the Building (building-work.js): nothing here is a button; people and AI wake and rest by their light */
  #world .cc-worker, #world .bd-mission { pointer-events: none; cursor: default; }
  #world .cc-worker { transition: opacity 1.4s ease; }
  #world .cc-worker.d-sleep { opacity: .5; }                     /* an AI that has not been called yet */
  #world .cc-worker.d-done { opacity: .72; }
  /* round 9, AI → AI in the Building: an AI wakes as the Work comes to it; at work its light is a little larger */
  #world .cc-worker.k-ai.d-near { opacity: .9; }
  #world .cc-worker.k-ai.d-near .cc-wglyph::after, #world .cc-worker.k-ai.w-working .cc-wglyph::after { left: -26px; right: -26px; top: -22px; bottom: -22px;
    background: radial-gradient(closest-side, rgba(127, 230, 255, .42), rgba(127, 230, 255, .1) 60%, transparent); }
  #world .cc-worker.k-ai .cc-wtext b { font-size: 13px; }                     /* has handed its part on */
  #world .dwork { position: absolute; left: 0; top: 0; transform-origin: 50% 19px; }         /* the Work: the Office's mission hologram, carried from place to place */
  #world .dwork .bd-beam { transition: opacity .5s ease; }
  #world .dwork.moving .bd-beam { opacity: 0; }                  /* in the air it is only its light */
  #world [class*="dtie-"] { transition: none; }
  .demo-hide-hub .bd-emblem small { display: none; }             /* the Building's "· AI HUB" line is not the demo's words */
  /* the moment of passing through the gate: a brief wash of the gate's own light (not a crossfade between scenes) */
  /* the arch's own light as it lies over the view at the handoff frame (its fill and inner glow, 24× — the weights are
     matched on screenshots of the City's last frame and the Building's first), so the Building's first frame carries the
     same light; it then clears in ~0.3 s as the camera moves on. Not a crossfade: neither scene's opacity changes. */
  #veil { position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 3;
    background: linear-gradient(0deg, color-mix(in srgb, var(--acc) 13%, transparent), color-mix(in srgb, var(--acc) 13%, transparent) 25%,
      color-mix(in srgb, var(--acc) 10.6%, transparent) 50%, color-mix(in srgb, var(--acc) 6.8%, transparent) 75%, color-mix(in srgb, var(--acc) 3.9%, transparent)); }
  #layer { position: fixed; left: 28px; top: 24px; z-index: 5; font: 600 12px ui-monospace, Menlo, monospace; letter-spacing: .14em; color: #b9c0e6; }
  #sound { position: fixed; right: 136px; bottom: 24px; z-index: 5; font: 600 12px ui-monospace, Menlo, monospace; color: #8d93b8; background: rgba(8,9,26,.7);
    border: 1px solid rgba(180,195,255,.18); border-radius: 999px; padding: 10px 14px; cursor: pointer; }
  #sound[aria-pressed="true"] { color: #e6e9ff; border-color: rgba(220,230,255,.5); }
  /* round 7: the Designer's doorway, her Space, the narration, the language switch */
  #world .ddoor { transition: none; }
  #world .bd-sigring.d-dim, #world .cc-worker.d-dim { opacity: .38; transition: opacity 1s ease; }   /* while we follow the Designer */
  #world .gsign b { text-transform: uppercase; }
  #apt .cc-space, #apt .apt-ov { pointer-events: none; }        /* no pointer parallax in the Space: the camera holds still */
  #apt .apt-push { position: absolute; inset: 0; transform-origin: 50% 55%; }
  #apt .apt-ov { position: absolute; inset: 0; }
  #apt .apt-ov > * { position: absolute; left: 0; top: 0; }
  #apt .apt-halo { width: 0; height: 0; }
  #apt .apt-halo::before { content: ""; position: absolute; left: -70px; top: -22px; width: 140px; height: 44px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(127, 230, 255, .55), rgba(127, 230, 255, .12) 60%, transparent); }   /* her light at work (as .w-working under a person) */
  #apt .apt-halo.a-ai::before { left: -78px; top: -78px; width: 156px; height: 156px; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 55%, transparent), color-mix(in srgb, var(--c) 14%, transparent) 55%, transparent); }
  #apt .apt-think { width: 0; height: 0; }                       /* the AI at work: its light gathers and turns */
  #apt .apt-think i { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--c) 65%, transparent);
    animation: apt-turn 6s linear infinite; }
  #apt .apt-think i:nth-child(2) { left: -62px; top: -62px; width: 124px; height: 124px; border-color: rgba(127, 230, 255, .35); animation-duration: 9s; animation-direction: reverse; }
  #apt .apt-think i:nth-child(3) { left: -32px; top: -32px; width: 64px; height: 64px; border-style: solid; border-color: rgba(230, 210, 255, .5); animation: apt-breathe 1.8s ease-in-out infinite; }
  @keyframes apt-turn { to { transform: rotate(360deg); } }
  @keyframes apt-breathe { 0%, 100% { transform: scale(.92); opacity: .5; } 50% { transform: scale(1.08); opacity: 1; } }
  #apt .apt-line { position: absolute; inset: 0; }
  #apt .apt-line .seg { transform-origin: 0 50%; }
  #apt .apt-work { width: 26px; height: 26px; }
  #apt .apt-work .bd-holo { margin: 0; }
  #apt .apt-name { transform-origin: 0 0; }
  #apt .apt-name b { display: block; transform: translateX(-50%); font: 600 12px var(--display); letter-spacing: .04em; color: rgba(236, 240, 250, .9);
    text-shadow: 0 1px 6px #000, 0 0 3px #000; white-space: nowrap; }
  #apt .apt-name.a-ai b { color: color-mix(in srgb, var(--c) 45%, #fff); }
  #veil2 { position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 3;   /* the doorway's own light, as you pass through it */
    background: radial-gradient(ellipse 70% 60% at 50% 58%, color-mix(in srgb, var(--dacc) 42%, #070618), color-mix(in srgb, var(--dacc) 12%, #070618) 60%, #070618 100%); }
  #narr { position: fixed; left: 50%; bottom: 84px; z-index: 4; transform: translateX(-50%); width: min(760px, calc(100vw - 48px)); margin: 0;
    text-align: center; white-space: pre-line; font: 400 18px/1.5 var(--display); letter-spacing: .01em; color: rgba(238, 241, 252, .94); opacity: 0; pointer-events: none;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .9), 0 0 3px rgba(0, 0, 0, .9); }
  :lang(zh-Hant) #narr { letter-spacing: .04em; }
  @media (max-width: 600px) { #narr { font-size: 15px; bottom: 80px; width: calc(100vw - 40px); } }
  html.embedded #lang { display: none; }                         /* inside the website prototype, the page's own switch is the one */
  #lang { position: fixed; right: 20px; top: 18px; z-index: 5; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(8,9,26,.6); border: 1px solid rgba(180,195,255,.16); }
  #lang button { font: 600 11px ui-monospace, Menlo, monospace; letter-spacing: .06em; color: #8d93b8; background: none; border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
  #lang button[aria-pressed="true"] { color: #eef0ff; background: rgba(180,195,255,.14); }
  #again { position: fixed; right: 24px; bottom: 24px; z-index: 5; font: 600 12px ui-monospace, Menlo, monospace; color: #b9c0e6; background: rgba(8,9,26,.7);
    border: 1px solid rgba(180,195,255,.25); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
