/* OSAMC Trinity — the research stage.
   One atmosphere, one turntable, one focal object. Load after both legacy sheets.
   World geometry: 1100 × 760; orbit (550, 550), radii (452, 152). */

/* Composition and typography */
body,
.embedded body {
  background: #071421;
  color: #dcebf1;
}
main,
.embedded main {
  background: radial-gradient(ellipse at 50% 52%, #15354a28, transparent 63%), #071421;
}
.heading h1 {
  font-weight: 500;
  letter-spacing: .035em;
  color: #d8e9ef;
}
.heading p { color: #95aebc; letter-spacing: .045em; }
.heading > span { color: #7b98a9; letter-spacing: .34em; }
.motion {
  background: #112938;
  border-color: #587d8b7a;
  color: #c6e1e8;
  box-shadow: inset 0 1px 0 #d1f3ff0b;
}
.arena {
  overflow: clip;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.arena.dragging,
.arena.dragging .satellite { cursor: grabbing; }
.universe { --spot-tone: 151, 190, 224; }
.beam, .coordinate, .vertical-ring, .scanline,
.stage-plinth, .arc-controls, .controls { display: none; }

/* A quiet room around the performance: no moving lamps or intersecting beams. */
.floor {
  inset: auto;
  left: -90px;
  top: 553px;
  width: 1280px;
  height: 255px;
  transform: none;
  mask: none;
  background: radial-gradient(ellipse, #010a13b8 12%, #04101b57 49%, transparent 72%);
  opacity: 1;
  z-index: -2;
}
.particles { opacity: .13; }
.particles i { box-shadow: none; }
.stage-lights { z-index: 1; }
.spot,
.spot-left {
  left: 246px;
  top: -95px;
  right: auto;
  width: 608px;
  height: 650px;
  clip-path: none;
  mask: none;
  transform: none;
  animation: none;
  opacity: 1;
  filter: blur(22px);
  background: radial-gradient(ellipse at 50% 54%, rgba(var(--spot-tone), .17), rgba(var(--spot-tone), .05) 46%, transparent 72%);
}
.spot-right, .spot::after, .uplight { display: none; }
.uplights {
  inset: auto;
  left: 252px;
  top: 182px;
  width: 596px;
  height: 366px;
  z-index: 1;
  filter: blur(20px);
  background: radial-gradient(ellipse at 50% 95%, rgba(var(--spot-tone), .21), rgba(var(--spot-tone), .065) 34%, transparent 70%);
  pointer-events: none;
}
.spot-pool {
  left: 261px;
  top: 425px;
  width: 578px;
  height: 172px;
  opacity: .86;
  filter: blur(14px);
  background: radial-gradient(ellipse at 50% 44%, rgba(var(--spot-tone), .21), rgba(var(--spot-tone), .075) 39%, transparent 71%);
}

/* A shallow, solid turntable. The front edge carries the weight. */
.orbit {
  left: 98px;
  top: 398px;
  width: 904px;
  height: 304px;
  z-index: 0;
  opacity: 1;
  filter: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 23%, #46677852 0, #29495826 34%, transparent 66%),
    linear-gradient(180deg, #132d3c, #102534 62%, #112b3a);
  box-shadow:
    0 9px 0 #0d2332,
    0 11px 0 #4e78874d,
    0 20px 0 #091b28,
    0 22px 0 #29495980,
    0 37px 32px -17px #000a;
}
.ring-a {
  inset: 0;
  transform: none;
  border: 1.5px solid #7699a944;
  box-shadow: inset 0 -12px 21px #93bec30a;
}
.ring-a::after {
  content: '';
  inset: -1px;
  border: 2px solid #a8d0db8f;
  border-radius: 50%;
  clip-path: inset(52% 0 0);
  box-shadow: none;
  opacity: .78;
}
.ring-b, .ring-c { display: none; }
.orbit-ticks {
  display: block;
  inset: 12px 22px;
  border: 0;
  box-shadow: none;
  opacity: .19;
  background: repeating-conic-gradient(from var(--turn, 0deg), #bad9e1 0deg .22deg, transparent .22deg 7.5deg);
  mask-image: radial-gradient(ellipse, transparent 67%, #000 68% 69%, transparent 70%);
  clip-path: inset(51% 0 0);
}
.orbit::after {
  content: '';
  inset: -1px;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent 12deg, #c5e5eb9c 58deg, transparent 108deg 257deg, #8bbccb68 282deg, transparent 319deg);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: none;
  opacity: .64;
  pointer-events: none;
}

/* The actual animated feature remains the brightest, largest object. */
.exhibit {
  left: 120px;
  top: 19px;
  width: 860px;
  height: 491px;
  transform: none;
  isolation: isolate;
  filter: none;
}
.exhibit::before {
  content: '';
  position: absolute;
  inset: 8% 2% 2%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 58%, #071421f5 8%, #071421e8 32%, #07142180 57%, transparent 78%);
  filter: blur(22px);
}
.exhibit > .holo-scene {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.holo-object { overflow: visible; }
.holo-object > .holo-base,
.holo-object > .holo-dust,
.molecule-halos,
.molecule-sweep { display: none; }
.holo-scene canvas,
.molecules.holo-scene canvas {
  left: 22px;
  top: 41px;
  width: 816px;
  height: 417px;
  filter: none;
}
.scene.scene-in { animation: stage-enter .58s ease both; }
.scene.scene-out { animation: stage-leave .3s ease both; }
.paused .scene.scene-in {
  animation: none !important;
  opacity: 1;
  transform: none;
  translate: none;
  filter: none;
}
.paused .scene.scene-out { visibility: hidden; }

/* Opaque individual icon plates; their original artwork remains intact. */
.satellite,
.satellite[data-feature="molecules"] {
  width: 168px;
  height: 150px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid #7893a160;
  border-radius: 17px;
  background: linear-gradient(146deg, #213748, #112330 72%);
  box-shadow: 0 10px 17px -4px #0009, inset 0 1px 0 #e5f7ff16;
  touch-action: pan-y;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.satellite.selected,
.satellite.selected[data-feature="molecules"] {
  border-color: rgba(var(--card-tone), .72);
  background: linear-gradient(146deg, #344f60, #1b3344 72%);
  box-shadow: 0 13px 22px -5px #000a, inset 0 1px 0 #edfaff40, 0 0 18px rgba(var(--card-tone), .06);
}
.satellite::before,
.satellite::after,
.satellite .node-label,
.satellite .node-subtitle,
.satellite .art-brackets,
.precision-svg > .precision-frame { display: none; }
.satellite .card-art,
.satellite .precision-art {
  width: 150px;
  height: 132px;
  margin: 0;
  overflow: hidden;
  border-radius: 11px;
  filter: none;
}
.satellite .precision-svg {
  transform: scale(1.14);
  transform-origin: 50% 53%;
}
.satellite[data-feature="projects"] .workflow-svg { transform: scale(1.13); }
.satellite[data-feature="experiments"] .workflow-svg { transform: scale(1.06); }
.satellite[data-feature="knowledge"] .workflow-svg { transform: scale(1.08); }
.satellite[data-feature="costs"] .workflow-svg { transform: scale(1.08); }
.satellite .workflow-svg { transform-origin: 50% 50%; }
@media (hover: hover) {
  .satellite:hover { border-color: rgba(var(--card-tone), .84); }
}

/* The caption sits outside the physical stage, with a quiet reading rhythm. */
.focus-caption {
  z-index: 25;
  width: min(620px, 88%);
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.focus-caption .feature-number {
  font: 10px/1.6 "Consolas", monospace;
  letter-spacing: .3em;
  color: #789eaf;
}
.focus-caption h2 {
  margin: 10px 0 11px;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: .055em;
  color: #dceef3;
}
.focus-caption p {
  max-width: 510px;
  margin: 0 auto;
  color: #a4bdca;
  font-size: 14px;
  line-height: 1.85;
  text-wrap: pretty;
}

@media (min-width: 651px) {
  main, .embedded main { height: 850px; min-height: 850px; }
  .arena { flex: none; height: 620px; min-height: 0; margin: 0; overflow: visible; }
}

@media (max-width: 650px) {
  .embedded main { padding-bottom: 18px; }
  .arena { height: calc(94px + 73vw); min-height: 0; margin: 0; }
  .universe { top: calc(108px + 32.2vw); }
  .exhibit { left: 50px; top: 3px; width: 1000px; height: 571px; }
  .holo-scene canvas,
  .molecules.holo-scene canvas { left: 25px; top: 48px; width: 950px; height: 486px; }
  .focus-caption {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: calc(100% - 44px);
    margin: 13px auto 28px;
    transform: none;
  }
  .focus-caption h2 { font-size: 26px; margin: 10px 0 12px; }
  .focus-caption p { font-size: 13px; line-height: 1.85; }
  .focus-caption .feature-number { font-size: 9px; }
  .embedded .focus-caption { margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.motion-enabled) .scene.scene-in { opacity: 1; translate: none; filter: none; }
}
