/* Ardenwell — Private Capital Suite modernization page
   Loaded after ../styles.css and ../articles/articles.css (page header, breadcrumbs), so it reuses
   the site's tokens, sections, services numerals, use-case grid and band. Section spacing is the
   standard .section rhythm. */

/* at-a-glance line under the lede */
.pcs-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); max-width: 46rem; font-size: .88rem; color: var(--ink-2); }
.pcs-facts li { position: relative; padding-left: 18px; }
.pcs-facts li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--brass); }

/* why now */
.pcs-why { display: grid; gap: 22px; }
.pcs-why > p:not(.statement):not(.pcs-source) { color: var(--ink-2); max-width: 40em; }
.pcs-source { font-size: .82rem; color: var(--ink-3); }
.pcs-source a { color: inherit; text-underline-offset: 3px; }
.pcs-source a:hover { color: var(--ink); }

/* workstreams: hairline rows, Roman numerals as on the home page */
.ws-list { border-top: 1px solid var(--line-strong); }
.ws { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 28px 64px; padding: clamp(30px, 3.6vw, 48px) 0; border-bottom: 1px solid var(--line); }
.ws h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.15; }
.ws-desc { margin-top: 14px; color: var(--ink-2); max-width: 30em; }
.ws-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; align-content: start; }
.ws-label { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.ws ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.ws li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--ink-2); }
.ws li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--brass); }

.ws-after { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 8px 64px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ws-after .ws-label { margin: 0; padding-top: .35em; }
.ws-after p:not(.ws-label) { color: var(--ink-2); max-width: 40em; }

/* the core pipeline: sources → platform → consumers, drawn in when it comes into view */
.pipe { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; }
.pipe-col { border: 1px solid var(--band-line); padding: clamp(20px, 2.4vw, 28px); background: rgba(20, 38, 32, .55); }
.pipe-core { border-color: var(--band-green); background: rgba(157, 188, 163, .07); }
.pipe-label { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--band-brass); margin-bottom: 12px; }
.pipe-core .pipe-label { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--band-ink); }
.pipe ul { list-style: none; margin: 0; padding: 0; }
.pipe li { padding: 8px 0; border-top: 1px solid var(--band-line); font-size: .93rem; color: var(--band-ink-2); }
.pipe li.pipe-key { color: var(--band-ink); }
.pipe-link { position: relative; align-self: center; height: 1px; }
.pipe-line { position: absolute; inset: 0; background: var(--band-green); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
.pipe-line::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--band-green); border-right: 1px solid var(--band-green); transform: rotate(45deg); }
.pipe-dot { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--band-green); box-shadow: 0 0 0 4px rgba(157, 188, 163, .14), 0 0 14px rgba(157, 188, 163, .5); opacity: 0; }
.pipe.is-active .pipe-line { transform: scaleX(1); }
.pipe.is-active .pipe-link:nth-of-type(2) .pipe-line { transition-delay: .9s; }
.pipe.is-active .pipe-dot { animation: aw-pulse 3.6s ease-in-out 2.2s infinite; }
.pipe.is-active .pipe-link:nth-of-type(2) .pipe-dot { animation-delay: 4s; }

/* systems and owners; role and boundaries */
.pcs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; align-items: start; }
.pcs-h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; margin-bottom: 18px; }
.pcs-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pcs-tags li { padding: 7px 12px; border: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.pcs-owners { margin: 0; border-top: 1px solid var(--line-strong); }
.pcs-owners div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pcs-owners dt { font-size: .9rem; font-weight: 600; color: var(--ink); }
.pcs-owners dd { margin: 0; font-size: .95rem; color: var(--ink-2); }
.pcs-list { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line-strong); display: grid; gap: 12px; }
.pcs-list li { position: relative; padding-left: 22px; color: var(--ink-2); }
.pcs-list li::before { content: ""; position: absolute; left: 0; top: .82em; width: 10px; height: 1px; background: var(--green); }
.pcs-not li::before { background: var(--ink-3); }
.pcs-independence { margin-top: clamp(32px, 4vw, 48px); padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-3); max-width: 52em; }

:root[data-motion="off"] .pipe-line { transition: none; transform: scaleX(1); }
:root[data-motion="off"] .pipe-dot { display: none; }

@media (max-width: 1080px) {
  .ws, .ws-after { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ws-cols, .pcs-two { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr; }
  .pipe-link { justify-self: start; margin-left: 28px; width: 1px; height: 44px; }
  .pipe-line { transform: scaleY(0); transform-origin: top; }
  .pipe-line::after { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
  .pipe.is-active .pipe-line, :root[data-motion="off"] .pipe-line { transform: scaleY(1); }
  .pipe-dot { display: none; }
  .pcs-owners div { grid-template-columns: 1fr; }
}
