/* Recursive Human Systems Model ring — 2026-11-25 refresh.
   Loaded after styles.css on science.html only. */

.ring-stage { max-width: 560px; }
.ring-stage::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 143, 179, 0.16) 0%, rgba(201, 169, 106, 0.07) 48%, rgba(250, 247, 242, 0) 72%);
  pointer-events: none;
}

/* the loop */
.ring-svg .ring-halo { fill: none; stroke: rgba(44, 74, 110, 0.07); stroke-width: 22; }
.ring-svg .ring-track { fill: none; stroke-width: 2.25; }
.ring-svg .ring-flow {
  fill: none;
  stroke: #2c4a6e;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 1.5 24;
  opacity: 0.45;
  animation: rhsm-flow 22s linear infinite;
}
@keyframes rhsm-flow { to { stroke-dashoffset: -1118; } }

.ring-svg .ring-arc__line { fill: none; stroke: transparent; stroke-width: 3; transition: stroke 0.45s ease; }
.ring-svg .ring-arc__head { fill: #8796a6; stroke: none; transition: fill 0.45s ease; }
.ring-svg .ring-arc.is-active .ring-arc__line { stroke: #2c4a6e; }
.ring-svg .ring-arc.is-active .ring-arc__head { fill: #2c4a6e; }

.ring-svg .ring-comet { fill: #2c4a6e; }
.ring-svg .ring-comet--1 { opacity: 0.55; }
.ring-svg .ring-comet--2 { opacity: 0.25; }

/* the six stages */
.ring-node { outline: none; }
.ring-node .ring-node__disc {
  fill: #ffffff;
  stroke: rgb(207, 195, 172);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 0.4s ease, stroke 0.4s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ring-node .ring-node__pulse {
  fill: none;
  stroke: #2c4a6e;
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.ring-node text { pointer-events: none; text-anchor: middle; }
.ring-node .ring-node__label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--silver);
  transition: fill 0.4s ease;
}
.ring-node .ring-node__label--long { font-size: 10.5px; letter-spacing: 0.03em; }
.ring-node .ring-node__num {
  font-family: var(--subhead);
  font-size: 13px;
  letter-spacing: 0.04em;
  fill: #b08d4f;
  transition: fill 0.4s ease;
}

.ring-node:hover .ring-node__disc,
.ring-node:focus-visible .ring-node__disc { stroke: #2c4a6e; transform: scale(1.07); }
.ring-node:focus-visible .ring-node__disc { stroke-width: 2.5; }

.ring-node.is-active .ring-node__disc { fill: #2c4a6e; stroke: #2c4a6e; transform: scale(1.1); }
.ring-node.is-active .ring-node__label { fill: #ffffff; }
.ring-node.is-active .ring-node__num { fill: #e3c98f; }
.ring-node.is-active .ring-node__pulse { animation: rhsm-pulse 2.6s ease-out infinite; }
.ring-node.is-active .ring-node__pulse--late { animation-delay: 1.3s; }
@keyframes rhsm-pulse {
  0% { transform: scale(1.05); opacity: 0.5; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* the reading in the middle */
.ring-center { width: 48%; }
.ring-center__count {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b08d4f;
  margin: 0 0 8px;
}
.ring-center__title { font-size: 26px; color: #2c4a6e; margin-bottom: 10px; }
.ring-center__body { font-size: 13px; line-height: 19px; }
.ring-center { transition: opacity 0.28s ease, transform 0.28s ease; }
.ring-center.is-swapping { opacity: 0; transform: translate(-50%, calc(-50% + 6px)); }

@media (max-width: 720px) {
  .ring-node .ring-node__label { font-size: 13.5px; letter-spacing: 0.02em; }
  .ring-node .ring-node__num { font-size: 15px; }
  .ring-node .ring-node__label--long { font-size: 11.5px; letter-spacing: 0; }
  .ring-center { width: 54%; }
  .ring-center__count { font-size: 9px; margin-bottom: 4px; }
  .ring-center__title { font-size: 17px; margin-bottom: 6px; }
  .ring-center__body { font-size: 11px; line-height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring-svg .ring-flow,
  .ring-node.is-active .ring-node__pulse { animation: none; }
  .ring-node .ring-node__disc { transition: none; }
}
