/* Platform, section Five: services on the left, data items travelling along lines into one Ulmero system on the right,
   landing on one customer record and lighting up departments (platform-pull.js; Sam, October 25).
   Replaces the logo marquee on wide screens; phones keep the marquee. The audience pages use it too (audience-pull.js). */
.has-art-pull .int-marquee { display: none; }
.pp-wrap { margin: 0 auto 56px; }
@media (max-width: 900px) {
  .has-art-pull .int-marquee { display: grid; }
  .pp-wrap { display: none; }
}

.pp-stage { position: relative; height: 500px; display: grid; grid-template-columns: var(--pp-svc-w, 236px) minmax(110px, 1fr) minmax(0, 660px); }
.pp-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.pp-lines path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; transition: stroke 0.4s, stroke-width 0.4s; }
.pp-lines path.on { stroke: var(--turquoise); stroke-width: 2; }
.pp-lines circle { fill: var(--turquoise); }

.pp-head { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--turquoise); }

/* Services */
.pp-svcs { position: relative; z-index: 1; grid-column: 1; display: flex; flex-direction: column; }
.pp-svcs ul { flex: 1; display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.pp-svc { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--ground); color: var(--muted); font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: border-color 0.3s, box-shadow 0.3s, color 0.3s, transform 0.3s var(--ease); }
.pp-svc svg { width: 18px; height: 18px; fill: currentColor; flex: none; color: var(--ink); }
.pp-svc img { width: 18px; height: 18px; border-radius: 4px; flex: none; }
.pp-svc.on { color: var(--ink); border-color: var(--turquoise); box-shadow: 0 0 0 4px var(--accent-soft); transform: translateX(4px); }

/* A service with no logo here: its first letter */
.pp-letter { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; flex: none; background: var(--accent-soft); color: var(--turquoise); font-style: normal; font-size: 11.5px; font-weight: 700; line-height: 1; }
.pp-pill .pp-letter { width: 15px; height: 15px; border-radius: 4px; font-size: 10px; }

/* The Ulmero system */
.pp-sys { position: relative; z-index: 1; grid-column: 3; display: flex; flex-direction: column; min-width: 0; }
.pp-win { flex: 1; display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--panel); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); overflow: hidden; }
.pp-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pp-bar img { width: 20px; height: auto; }
.pp-bar b { color: var(--ink); font-weight: 600; }
.pp-bar > span { color: var(--faint); }
.pp-bar .pp-count { margin-left: auto; display: flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.pp-count strong { min-width: 3.2em; text-align: right; font-size: 20px; font-weight: 600; color: var(--turquoise); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pp-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; padding: 16px 18px 18px; min-height: 0; }

.pp-rec { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ground); min-width: 0; }
.pp-who { display: flex; align-items: center; gap: 11px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.pp-who i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--turquoise); font-style: normal; font-size: 14px; font-weight: 600; flex: none; }
.pp-who b { display: block; font-size: 16px; color: var(--ink); }
.pp-who span { font-size: 13px; color: var(--faint); }
.pp-rec dl { flex: 1; display: flex; flex-direction: column; justify-content: space-around; margin: 0; }
.pp-f { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 30px; }
.pp-f dt { font-size: 13px; color: var(--faint); }
.pp-f dd { position: relative; margin: 0; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; padding: 3px 7px; margin-left: -7px; }
.pp-f dd:empty::before { content: ""; display: block; height: 10px; width: 70%; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px); opacity: 0.6; }
.pp-f dd.land { animation: pp-land 1.1s var(--ease); }
@keyframes pp-land { 0% { background: rgba(132, 181, 210, 0.38); color: #fff; } 100% { background: transparent; } }

.pp-deps { display: flex; flex-direction: column; min-width: 0; }
.pp-deps .pp-head { margin: 2px 0 8px; }
.pp-deps ul { flex: 1; display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.pp-dep { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--ground); color: var(--muted); font-size: 14.5px; font-weight: 600; transition: border-color 0.5s, background 0.5s, color 0.5s, box-shadow 0.5s; }
.pp-dep svg { width: 17px; height: 17px; flex: none; }
.pp-dep em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.pp-dep.lit { color: var(--ink); border-color: rgba(132, 181, 210, 0.45); }
.pp-dep.lit svg { color: var(--turquoise); }
.pp-dep.lit em { color: var(--turquoise); }
.pp-dep.flash { background: var(--accent-soft); border-color: var(--turquoise); box-shadow: 0 0 0 4px var(--accent-soft); transition-duration: 0.12s; }
/* An optional line along the bottom of the window (where the data lives) */
.pp-foot { display: flex; align-items: center; gap: 9px; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pp-foot svg { width: 16px; height: 16px; flex: none; color: var(--turquoise); }

/* The intake on the window's edge, where every line arrives */
.pp-port { position: absolute; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; display: grid; place-items: center; border-radius: 50%; background: var(--ground); border: 1.5px solid var(--turquoise); box-shadow: 0 0 0 6px var(--accent-soft); }
.pp-port img { width: 26px; height: auto; }
.pp-port.gulp { animation: pp-gulp 0.5s var(--ease); }
@keyframes pp-gulp { 40% { transform: scale(1.14); box-shadow: 0 0 0 12px rgba(88, 150, 189, 0.28); } }

/* The travelling items */
.pp-fly { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pp-pill { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; border: 1px solid var(--turquoise); border-radius: 999px; background: var(--raised); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); will-change: transform, opacity; }
.pp-pill svg { width: 15px; height: 15px; fill: currentColor; flex: none; color: var(--ink); }
.pp-pill img { width: 15px; height: 15px; border-radius: 3px; flex: none; }

/* Clearing for the next run */
.pp-stage.clear .pp-f dd, .pp-stage.clear .pp-dep em { opacity: 0; transition: opacity 0.5s; }

@media (max-width: 1200px) {
  .pp-stage { grid-template-columns: var(--pp-svc-w-narrow, 206px) minmax(90px, 1fr) minmax(0, 600px); }
  .pp-f { grid-template-columns: 92px minmax(0, 1fr); }
}
