/* Studio site shell (11 Nov 2026): loader layer, hotspots over the room, the light panel. (The screen overlay was removed 12 Nov: the Colours screen became the paint shelf view, css/paint.css.)
   Glass = Tier 1 CSS (studio-liquid-glass): blur + saturate, a light rim, near-opaque fallback. Labels in JetBrains Mono
   (the loader's face, so no extra font). Positions come from js/site.js through the CSSOM (no style attributes). */
:root {
  --ink: #eaf6ff;                      /* Alice Blue */
  --ink-2: #2a2a72;                    /* Imperial Blue */
  --grey: #232528;                     /* Shadow Grey */
  --orange: #ffa400;
  --blue: #009ffd;
  --chip: rgba(35, 37, 40, .8);        /* label ground: 4.5:1+ for --ink even over the bright window */
  --glass: rgba(234, 246, 255, .2);
  --rim: rgba(234, 246, 255, .55);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --focus: 0 0 0 6px rgba(35, 37, 40, .9);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
button { font: inherit; }

/* loader layer: the concept page's .host, as a fixed layer over everything (cq units need the container) */
.ldr-host { position: fixed; inset: 0; z-index: 20; overflow: hidden; container-type: size; }
.ldr-host[hidden], .no-js .ldr-host { display: none; }

/* ---- hotspots. The nav covers the room but lets pointer events through to the canvas (parallax, drag). */
.spots { position: absolute; inset: 0; pointer-events: none; font-family: var(--mono); }
.spots ul { list-style: none; margin: 0; padding: 0; }
.spot {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: 0; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  cursor: pointer; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  text-decoration: none; box-sizing: border-box;   /* four of the six are links (they work without JS) */
  visibility: hidden;                  /* until js/site.js has placed it (spots--placed) */
}
.spots--placed .spot { visibility: visible; }
.spot[hidden] { display: none; }
.spot__dot {
  position: relative; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(234, 246, 255, .9); border: 1px solid var(--rim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 1px rgba(35, 37, 40, .25), 0 2px 10px rgba(0, 0, 0, .35);
  transition: transform .2s cubic-bezier(.3, .7, .3, 1);
}
.spot__dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 6px rgba(234, 246, 255, .9); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .spot__dot { background: var(--glass); -webkit-backdrop-filter: blur(6px) saturate(160%) brightness(1.1); backdrop-filter: blur(6px) saturate(160%) brightness(1.1); }
}
.spot:hover .spot__dot, .spot:focus-visible .spot__dot { transform: scale(1.15); }
.spot:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; box-shadow: var(--focus); }
.spot[aria-pressed="true"] .spot__dot::after { background: var(--orange); box-shadow: 0 0 8px rgba(255, 164, 0, .9); }

/* label: hidden until hover or focus; always shown on touch screens */
.spot__label {
  position: absolute; top: 50%; left: calc(100% - 4px); translate: 0 -50%;
  padding: 7px 10px; border-radius: 6px; background: var(--chip); color: var(--ink);
  font: 600 13px/1 var(--mono); letter-spacing: .02em; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .18s ease-out;
}
.spot--left .spot__label { left: auto; right: calc(100% - 4px); }
.spot:hover .spot__label, .spot:focus-visible .spot__label { opacity: 1; }
@media (hover: none) { .spot__label { opacity: 1; } }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .spot__label { background: rgba(35, 37, 40, .72); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); }
}

/* gentle idle pulse, only when motion is allowed and the room is up */
@media (prefers-reduced-motion: no-preference) {
  .spots--live .spot__dot::before {
    content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--rim);
    animation: spot-pulse 2.8s cubic-bezier(.3, .7, .3, 1) var(--pd, 0s) infinite;   /* --pd: a stagger per spot (site.js) */
  }
}
@keyframes spot-pulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(2.2); opacity: 0; } }

/* ---- object cues (13 Nov, js/site.js + js/cues.js): with a mouse the room has no dots or labels. Each button lies
   clear over its object's box (placed every drawn frame); the object itself lights up on hover. The label shows beside
   the object while it is hovered (.spot--hot) or keyboard-focused; the focus ring goes round the object (orange on a
   dark band: 3:1 or more on any part of the room). Touch screens keep the dots, labels and dock below. */
.spots--live.spots--cues .spot { border-radius: 14px; pointer-events: none; }
.spots--live.spots--cues .spot__dot { display: none; }
.spots--live.spots--cues .spot__label { left: calc(100% + 8px); opacity: 0; }
.spots--live.spots--cues .spot--left .spot__label { left: auto; right: calc(100% + 8px); }
.spots--live.spots--cues .spot--hot .spot__label, .spots--live.spots--cues .spot:focus-visible .spot__label { opacity: 1; }
.spots--live.spots--cues.spots--nolabel .spot__label { opacity: 0; }
.spots--live.spots--cues .spot:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; box-shadow: 0 0 0 7px rgba(35, 37, 40, .85); }
.room__canvas--hot { cursor: pointer; }

/* no live room (no WebGL, or no JS): a plain row of buttons over the still. Without JS only the four links show
   (Lights and Music need JS). */
.no-js .spots li:has(> [data-action]) { display: none; }
.spots--list, .no-js .spots { inset: auto 0 0 0; padding: 16px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.spots--list ul, .no-js .spots ul { display: flex; flex-wrap: wrap; gap: 8px; }
.spots--list .spot, .no-js .spot {
  position: static; visibility: visible; width: auto; height: auto; min-height: 44px; padding: 0 14px 0 10px; gap: 8px;
  grid-auto-flow: column; border-radius: 8px; background: var(--chip); transform: none !important;
}
.spots--list .spot__dot, .no-js .spot__dot { width: 14px; height: 14px; }
.spots--list .spot__label, .no-js .spot__label { position: static; translate: none; opacity: 1; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.spots--list .spot:focus-visible, .no-js .spot:focus-visible { border-radius: 8px; }

/* ---- phone portrait: the seven in a dock along the bottom, 4 + 3 glass buttons (same order); the room keeps only the
   dots (.marks, decorative), placed on their objects by js/site.js. Same query as dockMQ in js/site.js. */
.marks { position: absolute; inset: 0; pointer-events: none; }
.marks[hidden] { display: none; }
.mark {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%;
  background: rgba(234, 246, 255, .9); border: 1px solid var(--rim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 8px rgba(0, 0, 0, .35);
}
.mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 5px rgba(234, 246, 255, .9); }
.mark[hidden] { display: none; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mark { background: var(--glass); -webkit-backdrop-filter: blur(5px) saturate(160%) brightness(1.1); backdrop-filter: blur(5px) saturate(160%) brightness(1.1); }
}
@media (max-width: 599.98px) and (orientation: portrait) {
  .js .spots:not(.spots--list):not(.spots--pan) {
    inset: auto 0 0 0; padding: 10px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .js .spots:not(.spots--list):not(.spots--pan) ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .js .spots:not(.spots--list):not(.spots--pan) .spot {
    position: relative; width: 100%; height: auto; min-height: 48px; padding: 0 6px; gap: 7px;
    display: flex; align-items: center; justify-content: center; border-radius: 12px; transform: none !important;
    background: rgba(35, 37, 40, .82); border: 1px solid rgba(234, 246, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 20px rgba(0, 0, 0, .3);
  }
  .js .spots:not(.spots--list):not(.spots--pan) .spot__dot { flex: none; width: 10px; height: 10px; }
  .js .spots:not(.spots--list):not(.spots--pan) .spot__dot::after { inset: 2px; }
  .js .spots:not(.spots--list):not(.spots--pan) .spot__dot::before { display: none; }
  .js .spots:not(.spots--list):not(.spots--pan) .spot__label {
    position: static; translate: none; opacity: 1; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    font-size: 12px; white-space: normal; text-align: center; line-height: 1.15;
  }
  .js .spots:not(.spots--list):not(.spots--pan) .spot:hover .spot__dot, .js .spots:not(.spots--list):not(.spots--pan) .spot:focus-visible .spot__dot { transform: none; }
  .js .spots:not(.spots--list):not(.spots--pan) .spot:focus-visible { border-radius: 12px; }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .js .spots:not(.spots--list):not(.spots--pan) .spot { background: rgba(35, 37, 40, .62); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); }
  }
}

/* ---- camera views (js/views.js): in a view the spots and dots are away; one glass back arrow, top left; the window
   view's remote keys are real buttons laid over the 3D keys (js/window-view.js places and turns them each frame), clear
   except for the focus ring, which is drawn on the key */
.spots--away { visibility: hidden; }
.spots--away .spot { visibility: hidden; }
.viewback {
  position: fixed; z-index: 5; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left));
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rim); border-radius: 50%;
  background: rgba(35, 37, 40, .82); color: var(--ink); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 20px rgba(0, 0, 0, .3);
}
.viewback[hidden] { display: none; }
.viewback svg { width: 22px; height: 22px; }
.viewback:hover { background: rgba(35, 37, 40, .9); }
.viewback:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .viewback { background: rgba(35, 37, 40, .55); -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); }
}
.winkeys { position: absolute; inset: 0; pointer-events: none; }
.winkeys[hidden] { display: none; }
.winkey {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 6px;
  background: transparent; cursor: pointer; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transform-origin: 50% 50%;
}
.winkeys[inert] .winkey { pointer-events: none; }
.winkey[aria-disabled="true"] { cursor: default; }
.winkey:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
/* the light panel's tiles (js/panel-view.js): clear buttons over the drawn tiles; the panel draws their focus ring */
.panelkeys { position: absolute; inset: 0; pointer-events: none; }
.panelkeys[hidden] { display: none; }
.panelkey {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: transparent; font-size: 1px; overflow: hidden; cursor: pointer; pointer-events: auto;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.panelkeys[inert] .panelkey { pointer-events: none; }
.panelkey:focus-visible { outline: none; }
/* the TV (js/tv-view.js): a clear box over the TV screen (placed each drawn frame; a click or tap pauses and resumes the
   showreel); at the end the two live buttons sit in the band the film leaves empty (y 59.7-70.3 %). Sizes follow the
   screen's width (container units), never under 44 px tall. The <video> is in the box for its label only. */
.tvscreen { position: absolute; left: 0; top: 0; width: 0; height: 0; container-type: inline-size; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tvscreen[hidden] { display: none; }
.tvscreen[inert] { pointer-events: none; }
.tvscreen__video { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.tvend { position: absolute; left: 0; right: 0; top: var(--band-top, 59.72%); height: var(--band-h, 10.56%);
  display: flex; align-items: center; justify-content: center; gap: max(8px, 2.2cqi); }
.tvend[hidden] { display: none; }
.tvbtn { --bb-size: max(14px, 1.5cqi); }   /* the pill keeps its own 44 px height and padding (css/brief-button.css) */

/* the easel (js/easel-view.js), round 2 (easel2, 11 Nov evening): nothing covers the window; the room keeps drawing.
   --u = screen px per art unit (r11's 1000 x 1270 canvas); --cx/--cy/--cw/--ch (on .room) = the brief's painted area on
   the canvas face (5 % in from its edges); all set by the module from the camera's own maths. The box itself lets clicks through. */
.easel { position: fixed; inset: 0; z-index: 4; overflow: hidden; overflow: clip; pointer-events: none; color: #232528; --u: 1; }
.room { --cx: 0px; --cy: 0px; --cw: 0px; --ch: 0px; }
.easel[hidden] { display: none; }
.easel__art { position: absolute; left: 0; top: 0; width: 1000px; height: 1270px; transform-origin: 0 0; }
.easel__rest { position: absolute; inset: 0; transition: opacity .25s ease, visibility 0s linear 0s; }
.easel__rest--away { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.easel__block { position: absolute; left: calc(var(--u) * 96px); top: calc(var(--u) * 205px); }
/* the headline is baked on the canvas: here it only keeps its place (the pill sits under it) and its words for screen readers */
.easel__head { margin: 0; font: 400 calc(var(--u) * 136px)/0.93 'Young Serif', Georgia, serif; letter-spacing: -.02em; color: transparent; user-select: none; }
/* the live "Start", on the baked pill: r11's size and Ali's 9 Nov colours; the motion is css/brief-button.css .bb--imperial */
.easel__start.bb {
  margin-top: calc(var(--u) * 95.6px); pointer-events: auto;   /* measured on the baked pill (easel2 session 2: 2 px high, 2 px wide at 118 / 84) */
  height: max(44px, calc(var(--u) * 115px)); min-height: 0; padding: 0 calc(var(--u) * 82px);
  font: 600 calc(var(--u) * 56px)/1 'Familjen Grotesk', 'Archivo', 'Atkinson Hyperlegible Next', system-ui, sans-serif; letter-spacing: .005em;
  touch-action: manipulation;
}
/* the brief: the brief page in a clear frame on the canvas face, multiplied into the fabric (white = the fabric, inks take
   the weave and the light). It is a child of .room itself, NOT of .easel: a blend only reaches what is painted before it
   in the same stacking context, and .easel (fixed) is one of its own, so the room's canvas would not be under it. */
.easel__frame { position: fixed; z-index: 4; left: var(--cx); top: var(--cy); width: var(--cw); height: var(--ch); border: 0; padding: 0;
  background: transparent; color-scheme: light; mix-blend-mode: multiply;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.easel__frame[hidden] { display: none; }
.easel__frame--in { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s linear 0s; }
@media (prefers-reduced-motion: reduce) { .easel__rest, .easel__rest--away, .easel__frame, .easel__frame--in { transition: none; } }
/* desk computer (js/computer-view.js), comp2: the circuit board runs INSIDE the monitor's screen. The box is placed
   exactly over the screen after each drawn frame (size and translate from the real camera); the monitor, its stand and
   the room stay in view around it. The frame stays clear until the board says it is ready, then fades in over the
   still on the monitor. The screen's corners are square, so the box's own edges are the clip. */
.computer { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 4; overflow: hidden; overflow: clip; contain: strict; }
.computer[hidden] { display: none; }
.computer__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; color-scheme: light;
  opacity: 0; transition: opacity .3s ease; }
.computer--live .computer__frame { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .computer__frame { transition: none; } }

@media (prefers-reduced-transparency: reduce) {
  .spot__dot, .mark { background: rgba(234, 246, 255, .9); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .spots:not(.spots--list):not(.spots--pan) .spot { background: var(--grey); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .spot__label { background: var(--grey); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .viewback { background: var(--grey); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .spot__dot, .spot__label, .mark, .viewback { border: 1px solid CanvasText; }
  .spots--live.spots--cues .spot:focus-visible { outline-color: Highlight; }
  .winkey:focus-visible { outline-color: Highlight; }
  .panelkey:focus-visible { outline: 3px solid Highlight; }
}
