/* Intelligent Title: Board Panels v1.4 (merged homepage) */
.p4-k-light { color: var(--itb-cyan-soft, #5FD3E3); }
.p4-h2 { font-family: var(--serif, Georgia, serif); font-weight: 700; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.16; color: #fff; margin: 0 0 18px; text-wrap: balance; }

/* 1. Three Pipelines */
.p4-pipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 8px auto 48px; }
.p4-pipe { position: relative; overflow: hidden; border-radius: 16px; background: var(--itb-ink, #0A1B36); aspect-ratio: 3 / 3.4; isolation: isolate; box-shadow: 0 24px 50px -30px rgba(10,27,54,.7); }
.p4-pipe picture, .p4-pipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.p4-pipe::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,27,54,0) 25%, rgba(10,27,54,.78) 58%, rgba(7,20,41,.96)); }
.p4-pipe-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.p4-pipe-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); margin-bottom: 6px; }
.p4-pipe b { font-size: 19px; letter-spacing: .02em; }
.p4-pipe-q { font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.82); min-height: 2.9em; }
.p4-pipe em { font-style: normal; align-self: flex-start; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.p4-pipe-t { box-shadow: 0 0 0 1.5px rgba(63,227,240,.8), 0 0 40px rgba(63,227,240,.28), 0 24px 50px -30px rgba(10,27,54,.7); }
.p4-pipe-t .p4-pipe-n { background: var(--itb-cyan, #3FE3F0); color: var(--itb-ink, #0A1B36); border-color: transparent; box-shadow: 0 0 14px rgba(63,227,240,.7); }
.p4-pipe-t em { background: var(--itb-cyan, #3FE3F0); color: var(--itb-ink, #0A1B36); }

/* 2. Sample institutional portfolio */
.p4-dash { background: linear-gradient(160deg, #0F2342 0%, #0A1B36 70%); color: #fff; overflow: hidden; }
.p4-dash::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(63,227,240,.14), transparent); pointer-events: none; }
.p4-dash-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.p4-h2-stack { font-size: clamp(24px, 2.3vw, 34px); }
.p4-h2-stack span { display: block; white-space: nowrap; }
@media (max-width: 420px) { .p4-h2-stack span { white-space: normal; } }
.p4-dash-copy p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.85); margin: 0 0 14px; }
.p4-dash-copy .p4-dash-note { font-size: 15px; color: var(--itb-cyan-soft, #5FD3E3); border-left: 2px solid var(--itb-cyan, #3FE3F0); padding-left: 14px; }
.p4-console { margin: 0; border-radius: 16px; overflow: hidden; background: #0B1D3A; border: 1px solid rgba(95,211,227,.3); box-shadow: 0 0 40px rgba(63,227,240,.14), 0 30px 70px -30px rgba(0,0,0,.8); font-size: 13px; }
.p4-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.p4-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .12em; color: #fff; }
.p4-brand .it-shield { color: var(--itb-cyan, #3FE3F0); }
.p4-top-t { font-weight: 600; color: rgba(255,255,255,.9); }
.p4-top-r { margin-left: auto; font-size: 11.5px; color: rgba(255,255,255,.55); }
.p4-body { padding: 18px; }
.p4-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 64px; gap: 10px; align-items: center; margin-bottom: 16px; }
.p4-kpis div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; }
.p4-kpis span { display: block; font-size: 11px; color: rgba(255,255,255,.6); line-height: 1.3; }
.p4-kpis b { font-size: 24px; font-weight: 700; color: #fff; }
.p4-donut { width: 64px; height: 64px; transform: rotate(-90deg); }
.p4-table { width: 100%; border-collapse: collapse; }
.p4-table th { text-align: left; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; padding: 0 8px 8px; }
.p4-table td { padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.07); color: rgba(255,255,255,.85); vertical-align: top; line-height: 1.35; }
.p4-table td b { display: block; color: #fff; font-size: 13px; }
.p4-table td span { font-size: 11.5px; color: rgba(255,255,255,.55); }
.p4-chip { font-style: normal; white-space: nowrap; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.p4-ok { background: rgba(14,127,145,.35); color: #9EEFF6; }
.p4-warn { background: rgba(240,180,63,.2); color: #F5CF84; }
.p4-go { background: var(--itb-cyan, #3FE3F0); color: var(--itb-ink, #0A1B36); }
.p4-run { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }

/* 3. From LOI to Closing */
.p4-loi { position: relative; isolation: isolate; overflow: hidden; background: var(--itb-ink, #0A1B36); color: #fff; padding: 84px 0; }
.p4-loi .it-bd img { object-position: 70% 40%; }
.p4-loi::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,20,41,.95) 0%, rgba(10,27,54,.85) 50%, rgba(10,27,54,.6) 100%); }
.p4-loi-in { z-index: 2; }
.p4-steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.p4-steps::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, rgba(63,227,240,.2), var(--itb-cyan, #3FE3F0), rgba(63,227,240,.2)); box-shadow: 0 0 10px rgba(63,227,240,.5); }
.p4-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.p4-step-i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #0B1D3A; border: 1.5px solid var(--itb-cyan, #3FE3F0); box-shadow: 0 0 18px rgba(63,227,240,.35); color: var(--itb-cyan, #3FE3F0); margin-bottom: 6px; }
.p4-step-i .it-i { width: 24px; height: 24px; }
.p4-steps li:last-child .p4-step-i { background: var(--itb-cyan, #3FE3F0); color: var(--itb-ink, #0A1B36); }
.p4-steps b { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.p4-steps li > span:last-child { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.8); max-width: 15em; }

/* 4. Seven role portraits */
.p4-roles { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.p4-roles li { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 4.3; background: var(--itb-ink, #0A1B36); isolation: isolate; }
.p4-roles picture, .p4-roles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; transition: transform .6s ease; }
.p4-roles li:hover img { transform: scale(1.04); }
.p4-roles li::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,27,54,0) 40%, rgba(10,27,54,.85) 70%, rgba(7,20,41,.97)); }
.p4-roles li div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px; color: #fff; min-height: 44%; display: flex; flex-direction: column; justify-content: flex-start; }
.p4-roles li div b { min-height: 2.4em; display: flex; align-items: flex-end; }
.p4-roles b { display: block; font-size: 14.5px; line-height: 1.2; margin-bottom: 5px; }
.p4-roles li div span { display: block; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.8); }

@media (max-width: 1180px) {
  .p4-roles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .p4-dash-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 900px) {
  .p4-steps { grid-template-columns: 1fr; gap: 18px; }
  .p4-steps::before { top: 10px; bottom: 10px; left: 27px; right: auto; width: 2px; height: auto; }
  .p4-steps li { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: center; column-gap: 16px; }
  .p4-steps li > span:last-child { flex-basis: 100%; padding-left: 72px; max-width: none; margin-top: -10px; }
  .p4-step-i { margin-bottom: 0; }
}
@media (max-width: 760px) {
  .p4-pipes { grid-template-columns: 1fr; max-width: 420px; }
  .p4-pipe { aspect-ratio: 4 / 3; }
  .p4-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p4-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p4-donut { display: none; }
  .p4-table th:nth-child(3), .p4-table td:nth-child(3), .p4-table th:nth-child(4), .p4-table td:nth-child(4) { display: none; }
  .p4-top-r { display: none; }
  .p4-loi { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) { .p4-roles img { transition: none; } }
