/* Scene 7 — Tech Arsenal. Constellation of modules → contrast of flows →
   station routing → converge into one platform → the key message. */

.ar .scene-scrim {
  background: radial-gradient(85% 65% at 50% 8%, rgba(228, 193, 105, .10) 0%, transparent 60%),
              linear-gradient(180deg, #0E100C 0%, #0B0C0A 100%);
}

.ar-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.7vh, 26px);
  height: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------- head */
.ar-head {
  display: flex;
  flex-direction: column;
  gap: .3em;
  max-width: 76ch;
  transition: opacity .8s var(--t), filter .8s var(--t), transform .8s var(--t);
}
.ar-title { margin-top: .06em; }
.ar-sub { margin-top: .1em; }

/* --------------------------------------------------------------------- body */
.ar-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(18px, 3vw, 56px);
  align-items: stretch;
  flex: 1;
  min-height: 0;
  transition: opacity .8s var(--t), filter .8s var(--t), transform .8s var(--t);
}

/* ---------------------------------------------------------- modules zone */
.ar-modules-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.ar-modules {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(6px, .9vw, 14px);
  width: 100%;
}

.ar-mod {
  display: flex;
  flex-direction: column;
  gap: .4em;
  align-items: flex-start;
  padding: clamp(9px, 1vw, 18px) clamp(8px, .85vw, 15px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  min-height: clamp(52px, 6.4vh, 92px);
}
.ar-mod-idx {
  font-size: clamp(13px, .66vw, 17px);
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
}
.ar-mod-label {
  font-size: clamp(13px, .82vw, 15px);
  font-weight: 600;
  line-height: 1.22;
  color: var(--paper-dim);
}
.ar-mod-empty {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
  color: var(--paper-faint);
}

/* the converge animation — cards fly toward centre and dissolve */
.ar.is-converged .ar-mod[data-reveal].on {
  transition: transform 1.15s var(--t), opacity 1s var(--t), filter 1s var(--t);
  transform: translate(calc(var(--dx, 0) * -118%), calc(var(--dy, 0) * -150%)) scale(.12);
  opacity: 0;
  filter: blur(2px);
}

/* the orb the cards converge into */
.ar-orb-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.ar-orb {
  position: relative;
  width: clamp(118px, 11.5vw, 196px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.ar-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(228, 193, 105, .45);
  animation: arRipple 2.6s var(--t) infinite;
}
.ar-orb-ring.r2 { animation-delay: 1.3s; }
@keyframes arRipple {
  0%   { transform: scale(.68); opacity: 0; }
  35%  { opacity: .8; }
  100% { transform: scale(1.28); opacity: 0; }
}
.ar-orb-core {
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grad-gold);
  display: grid;
  place-items: center;
  box-shadow: 0 0 70px rgba(228, 193, 105, .5), 0 26px 60px rgba(0, 0, 0, .55);
}
.ar-orb-label {
  font-size: clamp(13px, .84vw, 15px);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: #1B1608;
  padding: 0 .7em;
  line-height: 1.15;
}

/* ---------------------------------------------------------------- detail */
.ar-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.9vh, 24px);
  transition: opacity .7s var(--t), transform .7s var(--t), filter .7s var(--t);
}
.ar.is-climax .ar-detail {
  opacity: .4;
  transform: scale(.965);
  filter: blur(.5px);
}

.ar-flows,
.ar-stations {
  padding: clamp(12px, 1.3vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .03);
}

/* sequential vs independent contrast */
.ar-flows {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(14px, 1.8vw, 30px);
  align-items: center;
}
.ar-flow-label {
  font-size: clamp(13px, .8vw, 14px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: .65em;
}
.ar-flow-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, var(--line-2), transparent);
}
.ar-chain-empty {
  font-size: clamp(13px, .85vw, 15px);
  color: var(--paper-faint);
  font-style: italic;
}

/* sequential = a line */
.ar-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4em .5em;
}
.ar-chain-node {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .4em .75em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  font-size: clamp(13px, .82vw, 14px);
  color: var(--paper);
}
.ar-chain-dot { width: .5em; height: .5em; border-radius: 50%; background: var(--gold); flex: none; }
.ar-chain-arrow { color: var(--gold); opacity: .75; font-size: clamp(13px, .85vw, 15px); }

/* independent = always available, no line */
.ar-orbit-band {
  display: flex;
  flex-wrap: wrap;
  gap: .6em;
}
.ar-orbit-pill {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .55em 1.05em;
  border-radius: 999px;
  border: 1px solid rgba(143, 168, 106, .5);
  background: rgba(143, 168, 106, .10);
  font-size: clamp(13px, .82vw, 14px);
  color: var(--green-hi);
}
.ar-orbit-dot {
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: var(--green-hi);
  flex: none;
  animation: arPulseDot 2.1s ease-out infinite;
}
@keyframes arPulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(143, 168, 106, .55); }
  70%  { box-shadow: 0 0 0 .7em rgba(143, 168, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 168, 106, 0); }
}

/* generic staggered entrance for children of a revealed block */
.ar-anim-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--t), transform .5s var(--t);
}
.ar-flows.on .ar-anim-item,
.ar-stations.on .ar-anim-item {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------- stations */
.ar-stations-cap {
  font-size: clamp(13px, .86vw, 15px);
  font-weight: 600;
  color: var(--gold-hi);
  margin-bottom: .75em;
}
.ar-station-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .35em clamp(10px, 1.4vw, 26px);
}
.ar-station-row {
  display: flex;
  align-items: baseline;
  gap: .5em;
  padding: .4em .1em;
  border-bottom: 1px dashed var(--line);
  font-size: clamp(13px, .8vw, 14px);
}
.ar-station-code {
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--paper);
  min-width: 11ch;
}
.ar-station-arrow { color: var(--gold); opacity: .7; }
.ar-station-action { color: var(--paper-dim); }

/* ---------------------------------------------------------------- callout */
.ar-callout-wrap {
  display: flex;
  justify-content: center;
  text-align: center;
  padding-top: clamp(4px, 1vh, 12px);
  transition: transform .8s var(--t);
}
.ar-callout {
  font-size: clamp(20px, 2.7vw, 48px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -.015em;
  max-width: 36ch;
}
.ar.is-final .ar-callout-wrap { transform: scale(1.05); }

/* the final beat: recede everything but the message */
.ar.is-final .ar-head,
.ar.is-final .ar-body {
  opacity: .26;
  filter: blur(1.5px) saturate(.75);
  transform: scale(.985);
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .ar-body { grid-template-columns: 1fr; }
  .ar-modules-zone { order: -1; }
  .ar-flows { grid-template-columns: 1fr; }
  .ar-flow-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
  .ar-station-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .ar-modules { grid-template-columns: repeat(3, 1fr); }
}
