.project-story { --project-paper: #fff9ec; --project-ink: #225448; }
.project-handoff { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(4.4rem, .38fr) minmax(0, 1fr); align-items: center; gap: .7rem; }
.project-build, .project-repeat { background: var(--project-paper); padding: .85rem; border-radius: 10px; text-align: center; }
.project-build { border: 2px solid var(--project-ink); }
.project-repeat { border: 2px dashed var(--project-ink); }
.project-build h4, .project-repeat h4 { margin: 0; }
.project-handoff h4 span { display: inline-block; margin-left: .45em; padding: .1em .45em; border-radius: .25em; background: #f4d66c; }
.project-repeat h4 span { background: #bde7d4; }
.project-stages { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 2rem; padding: 0; margin: .65rem 0 0; list-style: none; }
.project-stages li { position: relative; text-align: center; }
.project-stages li + li::before { position: absolute; top: 2.8rem; right: calc(100% + .28rem); width: 1.4rem; height: .8rem; background: var(--project-ink); clip-path: polygon(0 32%, 63% 32%, 63% 0, 100% 50%, 63% 100%, 63% 68%, 0 68%); content: ""; }
.project-stages img, .project-repeat > img { display: block; width: clamp(4.4rem, 8vw, 6.5rem); height: auto; margin: .3rem auto; }
.project-stages b, .project-stages span, .project-repeat b { display: block; }
.project-deliver { display: grid; align-content: center; gap: .25rem; text-align: center; font-weight: 700; color: var(--project-ink); }
.project-deliver .flow-arrow { width: 100%; }
.project-recurring { display: flex; justify-content: center; align-items: center; gap: .35rem; white-space: nowrap; }
.project-recurring .flow-arrow { flex: 0 1 1.1rem; min-width: .7rem; }
.project-process { margin: 0; padding: .8rem; background: var(--project-paper); border-radius: 10px; }
.project-process li:nth-child(3) { background: #f8e49c; border-radius: 7px; }
.project-review-detail { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; padding: .6rem .9rem; background: #e3f1e6; border-top: 2px solid var(--project-ink); }
.project-review-detail::before { content: ""; position: absolute; bottom: 100%; left: 63%; height: 1.8rem; border-left: 2px solid var(--project-ink); }
.project-review-detail table { width: 100%; border-collapse: collapse; text-align: center; }
.project-review-detail caption { text-align: left; font-weight: 700; }
.project-review-detail :is(th, td) { padding: .15rem .45rem; border-bottom: 1px solid #a9c9b8; }
.project-review-gap { background: #f8e49c; font-weight: 700; }
.project-review-action { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: center; gap: .7rem; }
.project-review-action .flow-arrow { width: 100%; }
.project-review-action p { margin: 0; }
.project-review-action b, .project-review-action span { display: block; }

.project-gantt-scroll { overflow-x: auto; }
.project-gantt { width: 100%; min-width: 25rem; border-collapse: separate; border-spacing: 2px; table-layout: fixed; text-align: center; }
.project-gantt caption { text-align: left; font-weight: 700; color: var(--project-ink); }
.project-gantt caption img { width: 3rem; height: auto; vertical-align: middle; }
.project-gantt :is(th, td) { padding: .32rem .15rem; background: var(--project-paper); }
.project-gantt thead { color: var(--project-ink); }
.project-gantt :is(th[rowspan], th[scope="row"]) { width: 28%; text-align: left; padding-left: .55rem; }
.project-gantt tbody td:empty { box-shadow: inset -1px 0 #e2dac8; }
.project-gantt td.project-gantt-plan { border: 2px dashed var(--project-ink); border-radius: 5px; }
.project-gantt td.project-gantt-actual { background: #cce9db; border: 2px solid var(--project-ink); border-radius: 5px; }
.project-gantt td.project-gantt-delay { background: #f8e49c; }
.project-impact :is(th[rowspan], th[scope="row"]) { width: 19%; }
.project-impact td { position: relative; padding-block: .95rem; }
.project-impact td:has([data-diagram-arrow]) { padding-right: .65rem; }
.project-impact [data-diagram-arrow] { position: absolute; z-index: 1; right: -.6rem; top: calc(50% - .36rem); width: 1.35rem; }

.project-report-route { display: grid; grid-template-columns: minmax(0, 1fr) 5rem minmax(0, 1fr) 6.6rem minmax(0, 1.65fr); align-items: center; gap: .5rem; }
.project-report-person { display: grid; justify-items: center; padding: .7rem .4rem; text-align: center; }
.project-report-person img { width: 6rem; height: auto; }
.project-report-person p, .project-report-destinations p { margin: .25rem 0 0; }
.project-report-person span { color: var(--project-ink); }
.project-report-arrow { display: grid; justify-items: center; gap: .35rem; color: var(--project-ink); text-align: center; }
.project-report-arrow .flow-arrow { width: 100%; }
.project-report-destinations { position: relative; display: grid; grid-auto-rows: 1fr; gap: .45rem; padding-left: 1.05rem; }
.project-report-destinations::before { content: ""; position: absolute; top: 25%; bottom: 25%; left: -.5rem; border-left: 3px solid var(--project-ink); }
.project-report-destinations section { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: center; gap: .5rem; padding: .55rem .6rem; background: var(--project-paper); border-radius: 0 8px 8px 0; }
.project-report-destinations section::before { content: ""; position: absolute; top: calc(50% - .33rem); right: 100%; width: 1.55rem; height: .66rem; background: var(--project-ink); clip-path: polygon(0 36%, 66% 36%, 66% 0, 100% 50%, 66% 100%, 66% 64%, 0 64%); }
.project-report-destinations section:last-child { background: #e3f1e6; }
.project-report-destinations img { width: 100%; height: auto; }
.project-report-destinations h4 { margin: 0; }
.project-report-destinations small { display: block; font-size: .85em; }

@media (max-width: 680px) {
  .project-handoff { grid-template-columns: minmax(0, 1fr); }
  .project-deliver .flow-arrow { width: 1.3rem; transform: rotate(90deg); margin: .35rem auto; }
  .project-process { grid-auto-flow: row; gap: 1.6rem; }
  .project-process li + li::before { right: calc(50% - .7rem); top: -1.35rem; transform: rotate(90deg); }
  .project-review-detail { grid-template-columns: minmax(0, 1fr); }
  .project-review-detail::before { display: none; }
  .project-report-route { grid-template-columns: minmax(0, 1fr); }
  .project-report-arrow .flow-arrow { width: 1.35rem; transform: rotate(90deg); margin: .2rem 0; }
  .project-report-destinations { padding-left: 0; }
  .project-report-destinations::before, .project-report-destinations section::before { display: none; }
}
