/* ==========================================================================
   screen3d.css — the monitor DESIGN is baked into the 3-D screen.
   --------------------------------------------------------------------------
   WHY
   The workstation design (editor / terminal / agent panels) used to exist only
   as pixels painted onto a `<canvas>` texture that was mapped onto the monitor
   mesh. Two consequences made it read as "flat, not really 3-D":
     1. at the default camera distance the texture was resampled small, so the
        type inside the screen was soft;
     2. nothing about the panel respected the scene's own perspective, so it
        never sat in the same space as the monitor geometry around it.
   This layer fixes both:
     - the DESIGN is hosted as real, finally-rasterised DOM (the hero copy) and
       the MESH is what carries it, so it stays crisp at any zoom / any DPR and
       survives tiers where WebGL never mounts at all;
     - the panel is RECESSED into the monitor with a rigid-bracket ring whose
       inner slot is sized to the screen plane and lit by the same accent as the
       scene, with a real perspective transform taken from the hero camera
       (fov 42, monitor at z 0, camera at z 7.6 -> p = 1 / (1 - d / 7.6)) so the
       slot's edges converge exactly like the geometry behind it.
   The ring is pure hardware (bezel, corner screws, recess shadow, glass sheen);
   all copy stays in the hero DOM where screen readers and the contract tests
   expect it.
   ========================================================================== */

#hero.cine-hero {
  /* --- rig geometry, derived from MonitorModel's own numbers -------------
     screen plane 3.36 x 2.10 world units on a 1024 x 640 texture; monitor sits
     at y 1.55 world units above the hero centre. */
  --bu-mon-tex: 1.6;            /* 1024 / 640 */
  --bu-mon-y: 1.55;             /* monitor centre (world units) */
  --bu-cam-z: 7.6;              /* camera start position.z */
  --bu-slot-w: clamp(440px, 46vw, 700px);
  --bu-slot-h: calc(var(--bu-slot-w) / var(--bu-mon-tex));
  --bu-slot-y: clamp(-208px, -6.2vw, -96px);
  --bu-p: 0.78;                 /* recess factor; refined in @supports below */
  --bu-depth: 46px;             /* how far the screen sits back of the glass */
}

/* NOTE: the DOM overlay that used to paint a 2D "bezel" over the WebGL hero
   monitor (`.bu-screen-rig` > `.bu-screen-slot`, a 6px rgba(148,180,214,.55)
   border + 1px outline + cyan box-shadow ring, plus ::before glass and ::after
   corner hardware) has been REMOVED — "remove this border or frame". The
   monitor is rendered entirely by MonitorModel; do NOT reintroduce a bordered
   wrapper element or overlay here.
   The --bu-slot-* / --bu-depth custom properties above are inert leftovers kept
   only so unrelated rules that read them do not break; they paint nothing. */

@media (max-width: 560px) {
  #hero.cine-hero {
    --bu-slot-w: 86vw;
    --bu-slot-y: -46px;
    --bu-depth: 18px;
  }
}
