/* /solutions/projects: "The control tower". Dark instrument hero and alert feed, then light working sections. Scoped under .pg-projects. */
.pg-projects {
  --pj-amber: #f5b53a;
  --pj-ok: #5fd6a0;
  --pj-blue: #8fb4ff;
  --pj-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --pj-gutter: clamp(20px, 5vw, 48px);
  --pj-rule: rgba(var(--ink-rgb), 0.13);
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(15px, 0.5vw + 13.8px, 17px);
  line-height: 1.6;
  padding-bottom: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] .pg-projects { --pj-rule: rgba(255, 255, 255, 0.13); }
:where(.pg-projects) *, :where(.pg-projects) *::before, :where(.pg-projects) *::after { box-sizing: border-box; }
:where(.pg-projects) p, :where(.pg-projects) h1, :where(.pg-projects) h2, :where(.pg-projects) h3, :where(.pg-projects) ul, :where(.pg-projects) ol, :where(.pg-projects) figure, :where(.pg-projects) blockquote { margin: 0; padding: 0; }
:where(.pg-projects) ul, :where(.pg-projects) ol { list-style: none; }
:where(.pg-projects) a { color: inherit; text-decoration: none; }
:where(.pg-projects) a:focus-visible { outline: 3px solid var(--pj-blue); outline-offset: 3px; border-radius: 6px; }
.pj-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--pj-gutter); }
.pj-mono { font-family: var(--pj-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.pj-label { font-family: var(--pj-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pj-blue); margin-bottom: 14px; }
.pj-label--light { color: var(--accent); }
.pj-h2 { font-size: clamp(1.6rem, 2.6vw + 0.6rem, 2.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; color: #fff; max-width: 20ch; }
.pj-h2--ink { color: var(--ink); }
.pj-h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

/* ---------- 1. Hero (dark) ---------- */
.pj-hero { background: radial-gradient(120% 90% at 85% 0%, #14337a 0%, transparent 60%), var(--navy); color: #fff; padding: 128px 0 clamp(48px, 7vw, 88px); }
.pj-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--pj-mono); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 26px; }
.pj-crumb a:hover { color: #fff; }
.pj-crumb [aria-current] { color: #fff; }
.pj-hero__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.pj-h1 { font-size: clamp(2.2rem, 4.4vw + 0.6rem, 4.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; max-width: 14ch; }
.pj-lede { color: rgba(255, 255, 255, 0.82); max-width: 46ch; }
.pj-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 0.93rem; border: 1.5px solid transparent; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.pg-projects .pj-btn--solid { background: #2563eb; color: #fff; }
.pg-projects .pj-btn--solid:hover { background: #fff; color: var(--navy); transform: translateY(-1px); }
.pg-projects .pj-btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.pg-projects .pj-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.pj-btn--big { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }

.pj-panel { margin-top: clamp(36px, 5vw, 64px); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 22px; background: rgba(255, 255, 255, 0.04); padding: 0 0 22px; overflow: hidden; }
.pj-panel__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.78); background: rgba(255, 255, 255, 0.04); }
.pj-example { padding: 3px 9px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; font-size: 0.64rem; }
.pj-panel__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; padding: 22px 22px 6px; }
.pj-gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 12px 22px 8px; }
.pj-gauge { --c: var(--pj-blue); position: relative; display: grid; grid-template-rows: auto auto; justify-items: center; align-content: start; row-gap: 10px; padding: 20px 12px 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.035); text-align: center; }
.pj-gauge--warn, .pj-gauge--flag { --c: var(--pj-amber); }
.pj-gauge--ok { --c: var(--pj-ok); }
.pj-gauge > svg, .pj-gauge__read { grid-row: 1; grid-column: 1; }
.pj-gauge > svg { width: min(100%, 132px); height: auto; overflow: visible; }
.pj-track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 9; }
.pj-arc { fill: none; stroke: var(--c); stroke-width: 9; stroke-linecap: round; stroke-dasharray: var(--v) 100; }
.pj-tick { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.pj-gauge__read { align-self: center; display: grid; justify-items: center; gap: 2px; max-width: 90px; }
.pj-gauge__read strong { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.pj-gauge__read span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.78); line-height: 1.25; }
.pj-glyph { width: 26px; height: 26px; color: var(--c); }
.pj-gauge__name { grid-row: 2; font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.88); line-height: 1.35; }
.pj-panel__cap { padding: 14px 22px 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }

/* instruments sweep up, alerts arrive in order (motion allowed only: boot.js adds .js-reveal) */
html.js-reveal .pj-panel:not(.is-in) .pj-arc { stroke-dasharray: 0 100; opacity: 0; }
html.js-reveal .pj-arc { transition: stroke-dasharray 1.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s; }
html.js-reveal .pj-gauge:nth-child(2) .pj-arc { transition-delay: 0.12s; }
html.js-reveal .pj-gauge:nth-child(3) .pj-arc { transition-delay: 0.24s; }
html.js-reveal .pj-gauge:nth-child(4) .pj-arc { transition-delay: 0.36s; }
html.js-reveal .pj-feed:not(.is-in) .pj-alert { opacity: 0; transform: translateX(-28px); }
html.js-reveal .pj-alert { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 0.18s); }

/* ---------- 2. Alert feed (dark) ---------- */
.pj-feedsec { background: var(--navy); color: #fff; padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.pj-feedsec__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pj-feed { display: grid; gap: 12px; }
.pj-alert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.13); background: rgba(255, 255, 255, 0.05); }
.pj-alert:first-child { border-color: rgba(245, 181, 58, 0.5); }
.pj-alert__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(245, 181, 58, 0.16); color: var(--pj-amber); font-weight: 800; }
.pj-alert p { font-weight: 500; line-height: 1.45; }
.pj-alert__tag { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.82); white-space: nowrap; font-size: 0.66rem; }

/* ---------- 3. Bento ---------- */
.pj-build { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); background: var(--bg); }
.pj-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 16px; margin-top: 36px; }
.pj-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: clamp(20px, 2.4vw, 30px); border-radius: 22px; background: var(--surface); border: 1px solid var(--pj-rule); overflow: hidden; }
.pj-tile--a { grid-column: 1 / 3; }
.pj-tile--b { grid-column: 3; grid-row: 1 / 3; background: var(--navy); color: #fff; border-color: transparent; }
.pg-projects .pj-tile--b p { color: rgba(255, 255, 255, 0.82); }
.pj-tile--d { grid-column: 2; }
.pj-tile p { color: var(--muted); margin-top: 8px; max-width: 40ch; }
.pj-chart { width: 100%; height: auto; max-height: 150px; overflow: visible; }
.pj-chart--tall { max-height: 230px; }
.pj-chart--wide { max-height: 150px; }
.pj-chart--doc { max-height: 130px; }
.pj-grid { stroke: rgba(var(--ink-rgb), 0.12); stroke-width: 1; }
.pj-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pj-line--fee { stroke: rgba(var(--ink-rgb), 0.35); stroke-dasharray: 5 6; }
.pj-line--labor { stroke: var(--accent); }
.pj-dot { fill: var(--accent); }
.pj-bar { fill: rgba(var(--accent-rgb), 0.35); }
.pj-bar--ac { fill: var(--accent); }
.pj-tile--b .pj-bar { fill: rgba(255, 255, 255, 0.28); }
.pj-bar--warn { fill: var(--pj-amber) !important; }
.pj-flag { fill: var(--pj-amber); stroke: var(--pj-amber); stroke-width: 2; stroke-linejoin: round; }
.pj-arrow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pj-sheet { fill: var(--card); stroke: rgba(var(--ink-rgb), 0.25); stroke-width: 2; }
.pj-ln { stroke: rgba(var(--ink-rgb), 0.3); stroke-width: 3; stroke-linecap: round; }

/* ---------- 4. Timeline ---------- */
.pj-steps { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 104px); background: var(--bg); }
.pj-timeline { position: relative; margin-top: 40px; display: grid; gap: 6px; }
.pj-step:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50%; height: calc(100% + 6px); width: 2px; background: var(--pj-rule); }
.pj-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; padding: 22px 22px 22px 0; }
.pj-step__node { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 2px solid var(--pj-rule); font-family: var(--pj-mono); font-weight: 700; transition: background 0.4s, border-color 0.4s, color 0.4s; }
.pj-step.is-in .pj-step__node { background: var(--accent-fill, var(--accent)); border-color: transparent; color: #fff; }
.pj-step__txt p { color: var(--muted); margin-top: 6px; max-width: 36ch; }
.pj-scene { width: 100%; max-width: 360px; justify-self: end; height: auto; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--pj-rule); }
.pj-wire { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; opacity: 0.7; }
.pj-wire--go { stroke-dasharray: 6 6; }
.pj-node { fill: var(--accent); }
.pj-hub { fill: var(--card); stroke: var(--accent); stroke-width: 2.5; }
.pj-pulse { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0.5; }
.pj-avatar { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2.5; }
.pj-avatar-body { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .pj-pulse { transform-origin: 170px 46px; animation: pj-ping 2s ease-out infinite; }
  .pj-wire--go { animation: pj-dash 1.2s linear infinite; }
  @keyframes pj-ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3.2); opacity: 0; } }
  @keyframes pj-dash { to { stroke-dashoffset: -24; } }
}

/* ---------- 5. People ---------- */
.pj-people { background: var(--surface); border-block: 1px solid var(--pj-rule); padding-block: clamp(56px, 8vw, 104px); }
.pj-people__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pj-quote { margin-top: 28px; font-size: clamp(1.45rem, 2vw + 0.9rem, 2.35rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.22; max-width: 24ch; color: var(--ink); padding-left: 22px; border-left: 4px solid var(--accent); }
.pj-benefit { margin-top: 28px; color: var(--muted); max-width: 46ch; }
.pj-benefit .pj-mono { display: block; color: var(--accent); margin-bottom: 6px; }
.pj-checks { display: grid; border-top: 2px solid var(--ink); align-self: center; }
.pj-checks li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--pj-rule); }
.pj-checks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* ---------- 6. Related chips ---------- */
.pj-related { padding-block: clamp(56px, 8vw, 96px); background: var(--bg); }
.pj-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.pj-chips a { display: grid; gap: 8px; align-content: start; height: 100%; padding: 22px; border-radius: 20px; border: 1px solid var(--pj-rule); background: var(--card); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.pj-chips a:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(var(--ink-rgb), 0.5); }
.pj-chips span { color: var(--muted); font-size: 0.94rem; }
.pj-chips b { color: var(--accent); font-weight: 600; margin-top: 4px; }

/* ---------- 7. CTA strip ---------- */
.pj-cta { background: var(--navy); color: #fff; padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.pj-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.pj-cta .pj-mono { color: rgba(255, 255, 255, 0.78); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pj-hero__top, .pj-feedsec__grid, .pj-people__grid { grid-template-columns: 1fr; }
  .pj-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-tile--a { grid-column: 1 / 3; }
  .pj-tile--b { grid-column: 2; grid-row: auto; }
  .pj-tile--c { grid-column: 1; }
  .pj-tile--d { grid-column: 1 / 3; }
  .pj-chips { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pj-hero { padding-top: 112px; }
  .pj-panel { border-radius: 18px; }
  .pj-gauges { padding-inline: 14px; gap: 10px; }
  .pj-panel__title, .pj-panel__cap, .pj-panel__bar { padding-inline: 14px; }
  .pj-alert { grid-template-columns: auto minmax(0, 1fr); }
  .pj-alert__tag { grid-column: 2; justify-self: start; }
  .pj-bento { grid-template-columns: 1fr; }
  .pj-tile--a, .pj-tile--b, .pj-tile--c, .pj-tile--d { grid-column: 1; }
  .pj-step { grid-template-columns: 44px minmax(0, 1fr); padding-right: 0; }
  .pj-scene { grid-column: 2; justify-self: start; max-width: 320px; }
  .pj-cta__inner { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 420px) {
  .pj-actions .pj-btn { width: 100%; }
  .pj-gauge__read strong { font-size: 1.45rem; }
}
