/* Case study disclosure: make the deeper content unmistakably interactive */
.case-study-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0;
  padding: 1.15rem 1.25rem;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgb(51 65 85);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.72);
  color: rgb(226 232 240);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.case-study-toggle:hover {
  border-color: rgba(45, 212, 191, 0.65);
  background: rgba(20, 184, 166, 0.08);
  transform: translateY(-1px);
}

.case-study-toggle-title {
  display: block;
  font-weight: 600;
  color: rgb(241 245 249);
}

.case-study-toggle-meta {
  display: block;
  margin-top: 0.3rem;
  color: rgb(148 163 184);
  font-size: 0.8rem;
  line-height: 1.4;
}

.case-study-toggle-icon {
  flex: 0 0 auto;
  color: #2dd4bf;
  font-size: 1.75rem;
  line-height: 1;
}

.case-study-toggle-minus {
  display: none;
}

details[open] > .case-study-toggle .case-study-toggle-plus {
  display: none;
}

details[open] > .case-study-toggle .case-study-toggle-minus {
  display: inline;
}

@media (max-width: 640px) {
  .case-study-toggle {
    padding: 1rem;
  }

  .case-study-toggle-meta {
    font-size: 0.75rem;
  }
}

.project-jump {
  border: 1px solid rgb(51 65 85);
  color: rgb(203 213 225);
  background: transparent;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-jump:hover {
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.10);
  border-color: rgba(45, 212, 191, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45, 212, 191, 0.10);
}
.back-to-top-fixed {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;

  width: 3rem;
  height: 3rem;
  border-radius: 9999px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #020617;
  border: 1px solid #334155;
  color: #2dd4bf;

  font-size: 1.25rem;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.back-to-top-fixed.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-fixed:hover {
  background: rgba(45, 212, 191, 0.12);
  border-color: #2dd4bf;
  transform: translateY(-2px);
}

/* COVID case study prototype: expanded narrative and workflow */
.covid-details {
  max-width: 72rem;
  margin: 3.5rem auto 0;
  padding: 0 2rem;
}

.covid-detail-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 3rem;
  padding: 3.5rem 0;
}

.covid-detail-row--first {
  padding-top: 0.75rem;
}

.covid-detail-row--divided,
.covid-workflow-section {
  border-bottom: 1px solid rgb(30 41 59);
}

.covid-workflow-section {
  padding: 3.5rem 0;
}

.covid-workflow-section > .covid-detail-row {
  padding: 0;
}

.covid-result-section {
  padding-top: 3.5rem;
}

.covid-workflow {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.covid-workflow-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid rgb(51 65 85);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.6);
}

.covid-workflow-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.15rem;
  color: #2dd4bf;
  font-size: 1.65rem;
  line-height: 1;
}

.covid-arrow-down {
  display: none;
}

.covid-arrow-right {
  display: inline;
}

@media (max-width: 900px) {
  .covid-details {
    padding: 0 1rem;
  }

  .covid-detail-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.75rem 0;
  }

  .covid-detail-row--first {
    padding-top: 0.5rem;
  }

  .covid-workflow-section {
    padding: 2.75rem 0;
  }

  .covid-workflow {
    flex-direction: column;
  }

  .covid-workflow-arrow {
    padding: 0.15rem 0;
  }

  .covid-arrow-down {
    display: inline;
  }

  .covid-arrow-right {
    display: none;
  }

  .covid-result-section {
    padding-top: 2.75rem;
  }
}

@media (max-width: 640px) {
  .covid-details {
    padding: 0 0.25rem;
  }
}


/* COVID case study result metrics */
.covid-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(30 41 59);
}

.covid-metric {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 0.35rem 1.75rem;
  border-left: 1px solid rgb(30 41 59);
}

.covid-metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.covid-metric-icon {
  display: flex;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 0.8rem;
  background: rgba(20, 184, 166, 0.06);
  color: #2dd4bf;
}

.covid-metric-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.covid-metric-value {
  color: rgb(241 245 249);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.covid-metric-label {
  margin-top: 0.3rem;
  color: rgb(100 116 139);
  font-size: 0.875rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .covid-metrics {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .covid-metric,
  .covid-metric:first-child {
    padding: 0;
    border-left: 0;
  }
}


/* Inventory case study: narrative, reconciliation process, and evidence */
.inventory-details {
  max-width: 72rem;
  margin: 3.5rem auto 0;
  padding: 0 2rem;
}
.inventory-detail-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 3rem;
  padding: 3.5rem 0;
}
.inventory-detail-row--first { padding-top: 0.75rem; }
.inventory-detail-row--divided,
.inventory-process-section,
.inventory-findings-section { border-bottom: 1px solid rgb(30 41 59); }
.inventory-process-section,
.inventory-findings-section { padding: 3.5rem 0; }
.inventory-process-section > .inventory-detail-row,
.inventory-findings-section > .inventory-detail-row,
.inventory-result-section > .inventory-detail-row { padding: 0; }
.inventory-result-section { padding-top: 3.5rem; }
.inventory-process {
  margin-top: 2.25rem;
  border-top: 1px solid rgb(51 65 85);
}
.inventory-process-step {
  display: grid;
  grid-template-columns: 2.5rem 11rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(30 41 59);
}
.inventory-process-step:last-child { border-bottom: 0; }
.inventory-process-step span {
  color: #2dd4bf;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.inventory-process-step strong { color: rgb(241 245 249); font-weight: 600; }
.inventory-process-step p { color: rgb(148 163 184); font-size: 0.9rem; line-height: 1.55; }
.inventory-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.25rem;
  overflow: hidden;
  border: 1px solid rgb(30 41 59);
  border-radius: 1rem;
  background: rgb(30 41 59);
}
.inventory-evidence article {
  padding: 1.5rem;
  background: rgba(2, 6, 23, 0.72);
}
.inventory-evidence-value {
  color: #2dd4bf;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}
.inventory-evidence-label {
  margin-top: 0.65rem;
  color: rgb(148 163 184);
  font-size: 0.875rem;
  line-height: 1.55;
}
.inventory-evidence-note {
  margin-top: 1rem;
  color: rgb(100 116 139);
  font-size: 0.8rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .inventory-details { padding: 0 1rem; }
  .inventory-detail-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.75rem 0;
  }
  .inventory-detail-row--first { padding-top: 0.5rem; }
  .inventory-process-section,
  .inventory-findings-section { padding: 2.75rem 0; }
  .inventory-result-section { padding-top: 2.75rem; }
  .inventory-process-step { grid-template-columns: 2.25rem 1fr; }
  .inventory-process-step p { grid-column: 2; }
}
@media (max-width: 640px) {
  .inventory-details { padding: 0 0.25rem; }
  .inventory-evidence { grid-template-columns: 1fr; }
}


/* Pathfinder case study: connected operating model and continuity */
.pathfinder-details {
  max-width: 72rem;
  margin: 3.5rem auto 0;
  padding: 0 2rem;
}
.pathfinder-detail-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 3rem;
  padding: 3.5rem 0;
}
.pathfinder-detail-row--first { padding-top: 0.75rem; }
.pathfinder-detail-row--divided,
.pathfinder-model-section,
.pathfinder-reality-section { border-bottom: 1px solid rgb(30 41 59); }
.pathfinder-model-section,
.pathfinder-reality-section { padding: 3.5rem 0; }
.pathfinder-model-section > .pathfinder-detail-row,
.pathfinder-reality-section > .pathfinder-detail-row,
.pathfinder-result-section > .pathfinder-detail-row { padding: 0; }
.pathfinder-result-section { padding-top: 3.5rem; }
.pathfinder-map {
  margin-top: 2.25rem;
  overflow: hidden;
  border: 1px solid rgb(51 65 85);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.62);
}
.pathfinder-map-core {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid rgb(30 41 59);
  text-align: center;
}
.pathfinder-map-core span {
  display: block;
  color: #2dd4bf;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pathfinder-map-core strong {
  display: block;
  margin-top: 0.35rem;
  color: rgb(241 245 249);
  font-size: 1.2rem;
}
.pathfinder-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgb(30 41 59);
}
.pathfinder-map-grid article {
  min-width: 0;
  padding: 1.25rem;
  background: rgba(2, 6, 23, 0.82);
}
.pathfinder-map-grid span {
  color: rgb(241 245 249);
  font-weight: 600;
}
.pathfinder-map-grid p {
  margin-top: 0.45rem;
  color: rgb(100 116 139);
  font-size: 0.85rem;
  line-height: 1.5;
}
.pathfinder-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}
.pathfinder-evidence article {
  padding: 1.35rem;
  border: 1px solid rgb(30 41 59);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.62);
}
.pathfinder-evidence strong {
  display: block;
  color: #2dd4bf;
  font-size: 1.85rem;
  line-height: 1;
}
.pathfinder-evidence span {
  display: block;
  margin-top: 0.65rem;
  color: rgb(148 163 184);
  font-size: 0.85rem;
  line-height: 1.5;
}
.pathfinder-evidence-note {
  margin-top: 1rem;
  color: rgb(100 116 139);
  font-size: 0.8rem;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .pathfinder-details { padding: 0 1rem; }
  .pathfinder-detail-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.75rem 0;
  }
  .pathfinder-detail-row--first { padding-top: 0.5rem; }
  .pathfinder-model-section,
  .pathfinder-reality-section { padding: 2.75rem 0; }
  .pathfinder-result-section { padding-top: 2.75rem; }
  .pathfinder-map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pathfinder-evidence { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pathfinder-details { padding: 0 0.25rem; }
  .pathfinder-map-grid { grid-template-columns: 1fr; }
}


/* Pipeline outreach case study: remote compliance workflow and data validation */
.pipeline-details {
  max-width: 72rem;
  margin: 3.5rem auto 0;
  padding: 0 2rem;
}
.pipeline-detail-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 3rem;
  padding: 3.5rem 0;
}
.pipeline-detail-row--first { padding-top: 0.75rem; }
.pipeline-detail-row--divided,
.pipeline-workflow-section,
.pipeline-pilot-section { border-bottom: 1px solid rgb(30 41 59); }
.pipeline-workflow-section,
.pipeline-pilot-section { padding: 3.5rem 0; }
.pipeline-workflow-section > .pipeline-detail-row,
.pipeline-pilot-section > .pipeline-detail-row,
.pipeline-result-section > .pipeline-detail-row { padding: 0; }
.pipeline-result-section { padding-top: 3.5rem; }
.pipeline-workflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.25rem;
  overflow: hidden;
  border: 1px solid rgb(30 41 59);
  border-radius: 1rem;
  background: rgb(30 41 59);
}
.pipeline-workflow article {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 0.85rem;
  padding: 1.25rem;
  background: rgba(2, 6, 23, 0.76);
}
.pipeline-workflow article:last-child {
  grid-column: 1 / -1;
}
.pipeline-workflow span {
  grid-row: 1 / span 2;
  color: #2dd4bf;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.pipeline-workflow strong {
  color: rgb(241 245 249);
  font-weight: 600;
}
.pipeline-workflow p {
  margin-top: 0.4rem;
  color: rgb(148 163 184);
  font-size: 0.875rem;
  line-height: 1.55;
}
.pipeline-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}
.pipeline-scale article {
  padding: 1.35rem;
  border: 1px solid rgb(30 41 59);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.62);
}
.pipeline-scale strong {
  display: block;
  color: #2dd4bf;
  font-size: 2rem;
  line-height: 1;
}
.pipeline-scale span {
  display: block;
  margin-top: 0.65rem;
  color: rgb(148 163 184);
  font-size: 0.85rem;
  line-height: 1.5;
}
.pipeline-scale-note {
  margin-top: 1rem;
  color: rgb(100 116 139);
  font-size: 0.8rem;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .pipeline-details { padding: 0 1rem; }
  .pipeline-detail-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.75rem 0;
  }
  .pipeline-detail-row--first { padding-top: 0.5rem; }
  .pipeline-workflow-section,
  .pipeline-pilot-section { padding: 2.75rem 0; }
  .pipeline-result-section { padding-top: 2.75rem; }
  .pipeline-scale { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pipeline-details { padding: 0 0.25rem; }
  .pipeline-workflow { grid-template-columns: 1fr; }
  .pipeline-workflow article:last-child { grid-column: auto; }
}
