/* ==========================================================================
   Platforms Strip — compact hero (live 3D) + slim rail.
   Uses site theme variables (auto light/dark). No green glow.
   ========================================================================== */
/* allow the section to span wider than the default .container cap */
.plat-strip-wrap {
  max-width: 1920px;
}

.plat-strip {
  max-width: 1920px;
  margin: 0 auto;
}

/* ── featured row ── */
.plat-strip__feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-highlight, 0 1px 0 rgba(255,255,255,.4)), 0 16px 40px -24px rgba(13, 107, 58, 0.28);
  padding: 1.1rem 1.6rem;
  min-height: 280px;
  overflow: hidden;
}

.plat-strip__stage {
  position: relative;
  height: 250px;
}

.plat-strip__mv {
  width: 100%;
  height: 100%;
  background-color: transparent;
  --poster-color: transparent;
  --progress-bar-height: 0px;   /* hide model-viewer's grey loading bar */
}

.plat-strip__info {
  position: relative;
}

.plat-strip__info .is-swapping,
.plat-strip__info.is-swapping > * {
  opacity: 0;
}
.plat-strip__cat,
.plat-strip__name,
.plat-strip__tag { transition: opacity 0.22s ease; }

.plat-strip__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(var(--accent-primary-rgb), 0.10);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.20);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.plat-strip__name {
  margin: 0.55rem 0 0.3rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.plat-strip__tag {
  margin: 0 0 1.1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 34ch;
}

.plat-strip__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.plat-strip__btn {
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}
.plat-strip__btn--solid {
  background: linear-gradient(135deg, rgb(var(--accent-primary-rgb)), rgb(var(--accent-dark-rgb)));
  color: var(--text-on-accent);
  box-shadow: 0 6px 16px rgba(var(--accent-primary-rgb), 0.28);
}
.plat-strip__btn--solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--accent-primary-rgb), 0.38); }
.plat-strip__btn--ghost { background: var(--bg-primary); border-color: var(--border-color); color: var(--text-primary); }
.plat-strip__btn--ghost:hover { border-color: var(--accent-primary); color: var(--accent-dark); }

.plat-strip__count {
  position: absolute;
  top: 0; right: 0;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.plat-strip__count b { color: var(--accent-primary); font-size: 1.3rem; }

/* ── slim rail ── */
.plat-strip__railwrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.plat-strip__rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 0.6rem 0.4rem 0.7rem;
  flex: 1;
  cursor: grab;
  /* hide the native scrollbar — nav arrows + drag handle scrolling */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* fade the chips as they reach either edge so it reads as a strip */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
}
.plat-strip__rail::-webkit-scrollbar { display: none; }
.plat-strip__rail:active { cursor: grabbing; }

.plat-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 104px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.plat-chip:hover { transform: translateY(-3px); border-color: rgba(var(--accent-primary-rgb), 0.4); box-shadow: 0 8px 18px -10px rgba(13, 107, 58, 0.4); }
.plat-chip__img { height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.3rem; }
.plat-chip__img img { max-height: 52px; max-width: 84%; object-fit: contain; }
.plat-chip__img model-viewer { width: 100%; height: 60px; background: transparent; --poster-color: transparent; --progress-bar-height: 0px; pointer-events: none; }
.plat-chip__name { display: block; font-size: 0.68rem; font-weight: 700; line-height: 1.15; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plat-chip__cat { display: block; font-size: 0.56rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.plat-chip.is-active { border-color: var(--accent-primary); box-shadow: 0 0 0 2px rgba(var(--accent-primary-rgb), 0.18), 0 10px 20px -10px rgba(13, 107, 58, 0.45); }
.plat-chip.is-active .plat-chip__cat { color: var(--accent-dark); }

.plat-strip__nav {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-dark);
  transition: 0.2s;
}
.plat-strip__nav:hover { border-color: var(--accent-primary); background: var(--accent-primary); color: var(--text-on-accent); }
.plat-strip__nav svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .plat-strip__feature { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .plat-strip__tag { margin-inline: auto; }
  .plat-strip__actions { justify-content: center; }
  .plat-strip__stage { height: 200px; }
  .plat-strip__count { position: static; display: block; margin-bottom: 0.5rem; }
}
