@charset "utf-8";

/* =====================================================================
   ERGOSPHERE - THE TROPHY ROOM (trophy-room.html)   namespaced .trm_
   Head page for the tool spotlights (ergodesign.html, ergobow.html and
   whatever follows). The spotlight pages share css/ergosphere-trophy.css;
   this file is the room they hang in.

   The page is a room you walk into. The lights come up, a beam falls on
   one exhibit in a glass case, a docent card says three true things
   about it, and the case glides to the next. Covered plinths at either
   end are the spotlights not yet written.

   Palette
     #070e1b  the room, darkest navy      #0a1628 the floor and the page
     #0d1a2d  raised sections
     #00d4ff  site cyan: engraving on the plaques, the lamp, the dwell bar
     beam     rgba(205,240,255,…) cool white with a cyan cast. It is light,
              not an accent, so no audience colour is borrowed.
   Display Poppins, body Mulish, plaques and labels IBM Plex Mono.

   Motion lives in js/ergosphere-trophy-room.js: the track translate,
   the dwell timer, the docent reveal, the dust in the beam. Everything
   here is the state those scripts toggle. Reduced motion: no auto
   advance, no dust, instant transitions.
   Link AFTER ergosphere-mobile.css. Rev 20261109.
   ===================================================================== */

.trm_page {
  --trm-room: #070e1b;
  --trm-floor: #0a1628;
  --trm-raised: #0d1a2d;
  --trm-cyan: #00d4ff;
  --trm-tint: #b3efff;
  --trm-ink: rgba(255,255,255,.82);
  --trm-mute: rgba(255,255,255,.55);
  --trm-faint: rgba(255,255,255,.36);
  --trm-line: rgba(255,255,255,.10);
  --trm-line-2: rgba(255,255,255,.16);
  --trm-beam: 205,240,255;
  --trm-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --trm-display: 'Poppins', sans-serif;
  --trm-body: 'Mulish', sans-serif;
  --trm-dwell: 9s;
}

.trm_section { position: relative; overflow: hidden; width: 100%; clear: both; float: left; }
.trm_wrap { max-width: 760px; margin: 0 auto; position: relative; z-index: 2; clear: both; }
.trm_wrap_wide { max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; clear: both; }
.trm_page .grax_tm_topbar .logo img { max-height: 100px; }
.trm_page .grax_tm_mobile_menu .logo img { max-height: 80px; }

.trm_kicker { display: block; font-family: var(--trm-display); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--trm-cyan); font-weight: 500; margin-bottom: 14px; }
.trm_page .trm_h2 { font-family: var(--trm-display); font-size: 32px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 2px; line-height: 1.2; margin: 0 0 24px; }
.trm_page .trm_h2 span { color: var(--trm-cyan); }
.trm_essay p { font-family: var(--trm-body); font-size: 17px; line-height: 1.9; color: var(--trm-ink); margin: 0 0 22px; }
.trm_essay p:last-child { margin-bottom: 0; }
.trm_essay a { color: var(--trm-cyan); text-decoration: none; border-bottom: 1px solid rgba(0,212,255,.4); }
.trm_section a:focus-visible, .trm_section button:focus-visible, .footer_section a:focus-visible { outline: 2px solid var(--trm-cyan); outline-offset: 3px; border-radius: 2px; }

/* =====================================================================
   THE ROOM
   ===================================================================== */
.trm_room {
  background: var(--trm-room); padding: 118px 0 0; min-height: 100vh;
  display: flex; flex-direction: column;
}
.trm_room_head { text-align: center; padding: 42px 0 10px; position: relative; z-index: 4; }
.trm_page .trm_title { font-family: var(--trm-display); font-size: 44px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 8px; line-height: 1.1; margin: 0; }
.trm_page .trm_title span { color: var(--trm-cyan); }
.trm_room_lead { font-family: var(--trm-display); font-weight: 300; font-style: italic; font-size: 19px; line-height: 1.5; color: rgba(255,255,255,.72); max-width: 640px; margin: 16px auto 0; }

/* the lights are off until the script says otherwise */
.trm_room_head, .trm_case, .trm_docent, .trm_controls { opacity: 0; transition: opacity 1.2s ease; }
.trm_room.is-lit .trm_room_head, .trm_room.is-lit .trm_case, .trm_room.is-lit .trm_docent, .trm_room.is-lit .trm_controls { opacity: 1; }
.trm_room.is-lit .trm_docent { transition-delay: .6s; }
.trm_room.is-lit .trm_controls { transition-delay: .9s; }

/* ---------- the case: beam, track, floor ---------- */
.trm_case { position: relative; flex: 1 0 auto; min-height: 680px; perspective: 1400px; perspective-origin: 50% 40%; overflow: hidden; }
.trm_lamp {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 5;
  width: 120px; height: 14px; border-radius: 0 0 8px 8px; background: #0f1b30; border: 1px solid var(--trm-line-2); border-top: 0;
}
.trm_lamp::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 26px; height: 6px; transform: translateX(-50%); border-radius: 50%; background: rgba(var(--trm-beam),.95); box-shadow: 0 0 18px 6px rgba(var(--trm-beam),.55); opacity: 0; transition: opacity .8s ease .4s; }
.trm_room.is-lit .trm_lamp::after { opacity: 1; }
.trm_beam {
  position: absolute; left: 50%; top: 8px; width: 980px; height: 100%; transform: translateX(-50%); z-index: 1; pointer-events: none;
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(var(--trm-beam),.22) 0%, rgba(var(--trm-beam),.09) 45%, rgba(var(--trm-beam),.025) 80%, transparent 100%);
  opacity: 0; transition: opacity 1.4s ease .3s;
}
.trm_room.is-lit .trm_beam { opacity: 1; }
.trm_dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.trm_floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.025));
}
.trm_floor::before {
  content: ""; position: absolute; left: 50%; bottom: 40px; width: 760px; height: 120px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(ellipse at center, rgba(var(--trm-beam),.16), rgba(var(--trm-beam),.04) 55%, transparent 72%);
}
.trm_floor::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 92px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12) 30%, rgba(255,255,255,.22) 50%, rgba(255,255,255,.12) 70%, transparent);
}

/* the backlight (12 Nov 2026): the overhead beam spilling round the back
   of the lit exhibit. A soft glow plus faint, uneven rays that drift very
   slowly; the frame hides the centre, so only the edges show. The script
   puts it behind the lit screen (top) and sets --settle (1 at rest, low
   while the ring turns). Sits under the track, so side exhibits cover it. */
.trm_halo {
  position: absolute; left: 50%; top: 55%; width: 1500px; height: 1500px; z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity 1.2s ease .5s;
}
.trm_room.is-lit .trm_halo { opacity: 1; }
.trm_halo::before, .trm_halo::after { content: ""; position: absolute; inset: 0; opacity: var(--settle, 1); }
.trm_halo::before {
  background:
    repeating-conic-gradient(from 0deg, rgba(var(--trm-beam),.22) 0deg 1.6deg, transparent 1.6deg 7deg),
    repeating-conic-gradient(from 3deg, rgba(var(--trm-beam),.15) 0deg 2.4deg, transparent 2.4deg 11deg);
  -webkit-mask-image: radial-gradient(ellipse 44% 16% at 50% 50%, #000 40%, rgba(0,0,0,.45) 68%, transparent 100%);
          mask-image: radial-gradient(ellipse 44% 16% at 50% 50%, #000 40%, rgba(0,0,0,.45) 68%, transparent 100%);
  filter: blur(1.5px);
  animation: trm_rays 160s linear infinite;
}
.trm_halo::after {
  background: radial-gradient(ellipse 27% 14% at 50% 50%, rgba(var(--trm-beam),.24), rgba(var(--trm-beam),.08) 55%, transparent 100%);
}
@keyframes trm_rays { to { transform: rotate(360deg); } }

/* the ring: a zero-size anchor at the foot of the beam. Every exhibit
   stands on it, bottom-centred, and the script places each one by its
   angle (translateX, translateZ, a turn and a dim) every frame while the
   ring turns. Nothing here transitions transform or filter, or the
   script's frames would be smoothed twice. */
.trm_track {
  position: absolute; left: 50%; bottom: 92px; width: 0; height: 0; z-index: 3; transform-style: preserve-3d;
}

/* ---------- an exhibit ---------- */
.trm_exhibit {
  position: absolute; left: 0; bottom: 0; width: 560px; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 100%; transform: translateX(-50%); will-change: transform, filter;
  filter: brightness(.32) saturate(.6); cursor: pointer; text-decoration: none; color: inherit;
}
.trm_exhibit.is-active { filter: none; }
/* covered plinths are not on the ring; uncommented, they stay out of sight */
.trm_track .trm_exhibit.is-reserved { display: none; }

.trm_frame {
  position: relative; width: 100%; border-radius: 8px; background: #0b1526;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.04);
  -webkit-box-reflect: below 10px linear-gradient(transparent 62%, rgba(255,255,255,.14));
}
/* no overflow:hidden on the frame, so the edge glint can show outside it;
   the screen and the sheen round their own corners instead */
.trm_frame img { display: block; width: 100%; height: auto; border-radius: 7px; }
.trm_frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 7px;
  background: linear-gradient(118deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 72%, rgba(255,255,255,.06) 100%);
}
.trm_exhibit.is-active .trm_frame { box-shadow: 0 50px 110px rgba(0,0,0,.65), 0 0 60px rgba(var(--trm-beam),.14), inset 0 0 0 1px rgba(255,255,255,.06); }
/* the light catching the edge (12 Nov 2026): a glint that travels round
   the rim of the lit screen. Two layers share one turning angle,
   --trm-glint, animated on the frame: ::before is the sharp line laid
   over the bezel, .trm_glint (added by the script) is a blurred copy
   BEHIND the frame (z-index -1), so its light only spills outward onto
   the dark room. The captures are near white, so light inside the
   edge would not show. A
   second, fainter glint runs opposite so the frame never looks lopsided.
   Only the active exhibit runs it; the others hold it at zero opacity. */
@property --trm-glint { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.trm_frame::before, .trm_glint {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--trm-glint),
    transparent 0deg, rgba(var(--trm-beam),.0) 34deg, rgba(var(--trm-beam),.85) 66deg, #fff 74deg, rgba(var(--trm-beam),.7) 82deg, transparent 118deg,
    transparent 214deg, rgba(var(--trm-beam),.45) 246deg, transparent 280deg, transparent 360deg);
  opacity: 0; transition: opacity .9s ease;
}
.trm_frame::before {
  inset: -1px; padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.trm_glint { display: block; inset: -5px; z-index: -1; filter: blur(9px); }
.trm_exhibit.is-active .trm_frame { animation: trm_glint 9s linear infinite; }
.trm_exhibit.is-active .trm_frame::before { opacity: 1; }
.trm_exhibit.is-active .trm_glint { opacity: .9; }
@keyframes trm_glint { to { --trm-glint: 360deg; } }

/* plinth with an engraved glass plaque */
.trm_plinth {
  margin-top: 22px; width: 72%; padding: 14px 18px 16px; text-align: center; position: relative;
  background: linear-gradient(180deg, #101d33, #0b1526); border: 1px solid var(--trm-line-2); border-radius: 6px 6px 3px 3px;
}
.trm_plinth::before { content: ""; position: absolute; left: 8%; right: 8%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--trm-beam),.6), transparent); }
.trm_plinth_no { display: block; font-family: var(--trm-mono); font-size: 10.5px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--trm-faint); margin-bottom: 6px; }
.trm_plinth_name { display: block; font-family: var(--trm-display); font-size: 22px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #fff; line-height: 1.1; }
.trm_plinth_name span { color: var(--trm-cyan); }
.trm_plinth_scope { display: block; font-family: var(--trm-mono); font-size: 11.5px; letter-spacing: .4px; color: var(--trm-mute); margin-top: 7px; }

/* a covered plinth: the next spotlight, not yet written */
.trm_exhibit.is-reserved { cursor: default; }
.trm_exhibit.is-reserved .trm_frame { background: #0b1526; aspect-ratio: 16 / 9; border-style: dashed; border-color: rgba(255,255,255,.14); -webkit-box-reflect: none; }
.trm_exhibit.is-reserved .trm_frame::after { background: none; }
.trm_sheet {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 50%, rgba(255,255,255,.05)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
}
.trm_sheet b { font-family: var(--trm-mono); font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--trm-faint); }
.trm_sheet span { font-family: var(--trm-display); font-size: 15px; color: rgba(255,255,255,.5); }

/* ---------- the docent card ---------- */
.trm_docent {
  position: relative; z-index: 4; max-width: 860px; margin: -8px auto 0; padding: 26px 30px 24px;
  background: rgba(10,22,40,.82); border: 1px solid var(--trm-line-2); border-radius: 12px; backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.trm_docent_bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 12px 12px 0 0; overflow: hidden; background: rgba(255,255,255,.06); }
.trm_docent_bar i { display: block; height: 100%; width: 0; background: var(--trm-cyan); }
.trm_docent.is-counting .trm_docent_bar i { animation: trm_dwell var(--trm-dwell) linear forwards; }
.trm_docent.is-paused .trm_docent_bar i { animation-play-state: paused; }
@keyframes trm_dwell { from { width: 0; } to { width: 100%; } }
.trm_docent_head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trm_docent_k { font-family: var(--trm-mono); font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--trm-cyan); }
.trm_docent_k i { font-style: normal; color: var(--trm-faint); margin-left: 8px; }
.trm_page .trm_docent_title { font-family: var(--trm-display); font-size: 26px; font-weight: 700; color: #fff; letter-spacing: 1px; text-transform: uppercase; margin: 8px 0 0; line-height: 1.15; }
.trm_docent_line { font-family: var(--trm-display); font-style: italic; font-weight: 300; font-size: 17px; color: rgba(255,255,255,.8); margin: 8px 0 0; line-height: 1.5; }
.trm_docent_facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trm_docent_facts li {
  position: relative; padding: 12px 14px 12px 16px; border-left: 2px solid rgba(0,212,255,.45); background: rgba(255,255,255,.025); border-radius: 0 6px 6px 0;
  font-family: var(--trm-body); font-size: 14px; line-height: 1.6; color: var(--trm-ink);
  opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease;
}
.trm_docent_facts li.is-in { opacity: 1; transform: none; }
.trm_docent_foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.trm_docent_cta {
  display: inline-block; font-family: var(--trm-display); font-weight: 600; font-size: 13.5px; letter-spacing: .5px; text-decoration: none;
  padding: 12px 22px; border-radius: 6px; background: var(--trm-cyan); color: #0a1628; border: 1px solid var(--trm-cyan);
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease, background .15s;
}
.trm_docent_cta.is-in { opacity: 1; transform: none; }
.trm_docent_cta:hover { background: #33ddff; color: #0a1628; }
.trm_docent_cta[hidden] { display: none; }
.trm_docent_hint { font-family: var(--trm-mono); font-size: 11.5px; color: var(--trm-faint); letter-spacing: .3px; }
.trm_docent_hint b { color: var(--trm-mute); font-weight: 500; }

/* ---------- controls ---------- */
.trm_controls { position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 22px 0 56px; background: var(--trm-room); }
.trm_btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--trm-line-2); background: rgba(255,255,255,.03); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s;
}
.trm_btn svg { width: 16px; height: 16px; }
.trm_btn:hover { border-color: var(--trm-cyan); background: rgba(0,212,255,.1); }
.trm_dots { display: flex; gap: 10px; align-items: center; }
.trm_dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.22); cursor: pointer; transition: transform .2s, background .2s; }
.trm_dot[aria-current="true"] { background: var(--trm-cyan); transform: scale(1.4); box-shadow: 0 0 10px rgba(0,212,255,.6); }
.trm_btn_text { font-family: var(--trm-mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--trm-mute); background: none; border: 0; cursor: pointer; padding: 8px 10px; }
.trm_btn_text:hover { color: #fff; }

/* =====================================================================
   THE GUIDE - every spotlight, as a card
   ===================================================================== */
.trm_guide { background: var(--trm-floor); padding: 92px 0; }
.trm_cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.trm_card {
  display: block; text-decoration: none; color: inherit; border: 1px solid var(--trm-line-2); border-radius: 12px; overflow: hidden; background: #0b1526;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.trm_card:hover { border-color: var(--trm-cyan); transform: translateY(-3px); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.trm_card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--trm-line); }
.trm_card_body { padding: 20px 22px 24px; }
.trm_card_k { display: block; font-family: var(--trm-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--trm-cyan); margin-bottom: 8px; }
.trm_page .trm_card h3 { font-family: var(--trm-display); font-size: 20px; font-weight: 700; color: #fff; letter-spacing: .5px; margin: 0 0 8px; }
.trm_card p { font-family: var(--trm-body); font-size: 14.5px; line-height: 1.65; color: var(--trm-mute); margin: 0; }
.trm_card_go { display: inline-block; margin-top: 14px; font-family: var(--trm-mono); font-size: 12px; letter-spacing: .5px; color: var(--trm-tint); }
.trm_card.is-reserved { border-style: dashed; }
.trm_card.is-reserved .trm_card_sheet { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px); border-bottom: 1px solid var(--trm-line); font-family: var(--trm-mono); font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--trm-faint); }

.trm_how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.trm_how div { border: 1px solid var(--trm-line); border-radius: 10px; padding: 20px; background: rgba(255,255,255,.025); }
.trm_how b { display: block; font-family: var(--trm-display); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.trm_how p { font-family: var(--trm-body); font-size: 14px; line-height: 1.65; color: var(--trm-mute); margin: 0; }
.trm_how p a, .trm_lead a, .trm_guide p a { color: var(--trm-cyan); text-decoration: none; border-bottom: 1px solid rgba(0,212,255,.4); }
.trm_how p a:hover, .trm_lead a:hover, .trm_guide p a:hover { border-color: var(--trm-cyan); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .trm_cards { grid-template-columns: 1fr 1fr; }
  .trm_cards .trm_card:nth-child(3):last-child { grid-column: 1 / -1; }
  .trm_exhibit { width: 440px; }
  .trm_case { min-height: 580px; }
}
@media (max-width: 767px) {
  .trm_room { padding-top: 96px; }
  .trm_page .trm_title { font-size: 28px; letter-spacing: 5px; }
  .trm_room_lead { font-size: 16px; }
  .trm_exhibit { width: 78vw; }
  .trm_track { bottom: 70px; }
  .trm_halo { width: 170vw; height: 170vw; }
  .trm_case { min-height: 440px; }
  .trm_docent_hint { display: none; }
  .trm_beam { width: 160vw; }
  .trm_floor::before { width: 90vw; }
  .trm_plinth { width: 86%; padding: 10px 12px 12px; }
  .trm_plinth_name { font-size: 17px; letter-spacing: 2px; }
  .trm_frame { -webkit-box-reflect: none; }
  .trm_docent { margin: 0 16px; padding: 20px 18px 18px; }
  .trm_page .trm_docent_title { font-size: 20px; }
  .trm_docent_facts { grid-template-columns: 1fr; gap: 8px; }
  .trm_cards, .trm_how { grid-template-columns: 1fr; }
  .trm_guide { padding: 64px 0; }
  .trm_page .trm_h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .trm_room_head, .trm_case, .trm_docent, .trm_controls, .trm_beam, .trm_lamp::after, .trm_halo, .trm_docent_facts li, .trm_docent_cta, .trm_card { transition: none; }
  .trm_docent.is-counting .trm_docent_bar i { animation: none; width: 100%; }
  .trm_halo::before { animation: none; }
  .trm_exhibit.is-active .trm_frame { animation: none; --trm-glint: -60deg; }
}
