/* ═══════════════════════════════════════════════════════════════════════════
   Platforms hero art: one Nexus gateway on three kinds of hardware.

   A scene for the .part window (product-art.css): three Daylight device cards,
   each with the same mini gateway status block. Namespace .pl-*. Keyframes are
   named part-pl-* so the shared tooling that pins part-* animations sees them.

   Honest by construction: only what /platforms/ and /specs/ already say
   (Windows Server 2019+ / 10/11, Linux x86-64, ARM64; Nexus 2026.20; 131 tags is
   the page's measured figure). No beam, no alarm colours.

   Loop (10 s, ease-in-out, only under .is-playing, toggled by main.js):
      2-32 %  the three cards fade in one after another
     14-38 %  each status dot goes grey -> green, in the same order
     42-50 %  the version and tag count appear on all three together
     56-76 %  a synced two-beat heartbeat on all three at once
     92-98 %  everything eases back, so the seam is not a jump
   The base styles are the finished still: all three running. That is what
   no-JS and reduced motion see.
   ═══════════════════════════════════════════════════════════════════════════ */

.part-platforms .part-body {
  min-height: 0;
  gap: 14px;
}

/* The shared .part.is-playing rule animates Nexus counters; none here. */
.part.part-platforms.is-playing {
  animation: none;
}

.pl-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pl-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 13px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}

.pl-glyph {
  display: block;
  width: 100%;
  max-width: 76px;
  height: auto;
  color: var(--secondary);
}

.pl-glyph .l {
  fill: var(--paper);
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.pl-glyph .k {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.55;
}

.pl-glyph .c {
  fill: var(--accent-soft);
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.pl-glyph .d {
  fill: var(--success);
  stroke: none;
}

.pl-name {
  display: grid;
  gap: 2px;
  align-content: start;
}

.pl-name b {
  color: var(--text-bright);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pl-name span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* the mini gateway block: identical in all three cards */
.pl-gw {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.pl-dot {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.pl-dot::before,
.pl-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
}

.pl-dot::after {
  opacity: 0;
}

.pl-ver {
  display: grid;
  min-width: 0;
}

.pl-ver b {
  color: var(--text-bright);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.pl-ver span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

/* ---------- motion: only while on screen ---------- */
.part.is-playing .pl-card {
  animation-duration: 10s, 10s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.part.is-playing .pl-c1 { animation-name: part-pl-in1, part-pl-glow; }
.part.is-playing .pl-c2 { animation-name: part-pl-in2, part-pl-glow; }
.part.is-playing .pl-c3 { animation-name: part-pl-in3, part-pl-glow; }

.part.is-playing .pl-c1 .pl-dot::before { animation: part-pl-on1 10s ease-in-out infinite; }
.part.is-playing .pl-c2 .pl-dot::before { animation: part-pl-on2 10s ease-in-out infinite; }
.part.is-playing .pl-c3 .pl-dot::before { animation: part-pl-on3 10s ease-in-out infinite; }

.part.is-playing .pl-dot::after {
  animation: part-pl-ring 10s ease-out infinite;
}

.part.is-playing .pl-ver {
  animation: part-pl-ver 10s ease-in-out infinite;
}

@keyframes part-pl-in1 {
  0%, 2% { opacity: 0.2; }
  12%, 92% { opacity: 1; }
  98%, 100% { opacity: 0.2; }
}

@keyframes part-pl-in2 {
  0%, 12% { opacity: 0.2; }
  22%, 92% { opacity: 1; }
  98%, 100% { opacity: 0.2; }
}

@keyframes part-pl-in3 {
  0%, 22% { opacity: 0.2; }
  32%, 92% { opacity: 1; }
  98%, 100% { opacity: 0.2; }
}

/* the green overlay on the grey dot */
@keyframes part-pl-on1 {
  0%, 14% { opacity: 0; }
  18%, 92% { opacity: 1; }
  98%, 100% { opacity: 0; }
}

@keyframes part-pl-on2 {
  0%, 24% { opacity: 0; }
  28%, 92% { opacity: 1; }
  98%, 100% { opacity: 0; }
}

@keyframes part-pl-on3 {
  0%, 34% { opacity: 0; }
  38%, 92% { opacity: 1; }
  98%, 100% { opacity: 0; }
}

@keyframes part-pl-ver {
  0%, 42% { opacity: 0; transform: translateX(-4px); }
  50%, 92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: translateX(-4px); }
}

/* the heartbeat: two soft beats, identical timing on all three cards */
@keyframes part-pl-glow {
  0%, 54% { box-shadow: 0 0 0 0 transparent; border-color: var(--border-subtle); }
  58% { box-shadow: 0 0 0 4px var(--accent-wash); border-color: var(--accent); }
  64%, 66% { box-shadow: 0 0 0 0 transparent; border-color: var(--border-subtle); }
  70% { box-shadow: 0 0 0 4px var(--accent-wash); border-color: var(--accent); }
  78%, 100% { box-shadow: 0 0 0 0 transparent; border-color: var(--border-subtle); }
}

@keyframes part-pl-ring {
  0%, 56% { transform: scale(1); opacity: 0; }
  57% { transform: scale(1); opacity: 0.45; }
  65% { transform: scale(2.4); opacity: 0; }
  68% { transform: scale(1); opacity: 0; }
  69% { transform: scale(1); opacity: 0.45; }
  77%, 100% { transform: scale(2.4); opacity: 0; }
}

/* Reduced motion: the base styles are the finished frame. */
@media (prefers-reduced-motion: reduce) {
  .part-platforms,
  .part-platforms *,
  .part-platforms *::before,
  .part-platforms *::after {
    animation: none !important;
  }
}

/* ---------- phone: the cards stack as compact rows ---------- */
@media (max-width: 560px) {
  .pl-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .pl-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 10px;
    align-items: center;
    padding: 12px 14px;
  }

  .pl-glyph {
    grid-row: 1 / 3;
    max-width: 64px;
  }

  .pl-gw {
    margin-top: 0;
    padding-top: 9px;
  }
}
