/* Restored Systems Overhaul interaction and chronological case-study narrative. */

/* Compatibility wrapper: preserve the August 19 hero/map while reusing the approved written case-study design. */
.rr-v2.systems-proof--final.case-study-written-wrapper {
  --rr-v2-header: 78px;
  display: block;
  background: var(--rr-white);
  font-size: var(--rr-type-body);
  line-height: 1.62;
}

.rr-v2.systems-proof--final.case-study-written-wrapper .case-study-narrative p,
.rr-v2.systems-proof--final.case-study-written-wrapper .case-study-narrative li {
  font-size: var(--rr-type-body);
  line-height: 1.62;
  text-wrap: pretty;
}

.rr-v2.systems-proof--final {
  background: var(--rr-background-page);
}

.rr-v2.systems-proof--final .case-study-interactive {
  position: relative;
  padding: clamp(5rem, 8vw, 8rem) 0 clamp(5.5rem, 9vw, 9rem);
  overflow: hidden;
  background: var(--rr-primary-navy);
  color: var(--rr-white);
}

.rr-v2.systems-proof--final .case-study-interactive::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--rr-white-rgb), .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--rr-white-rgb), .035) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

.rr-v2.systems-proof--final .case-study-interactive > .shell {
  position: relative;
  z-index: 1;
}

.rr-v2.systems-proof--final .case-study-interactive__intro {
  display: grid;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
  align-items: end;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .9fr);
  gap: 2rem clamp(3rem, 7vw, 7rem);
}

.rr-v2.systems-proof--final .case-study-interactive__intro h2 {
  max-width: 15ch;
  margin: 0;
  color: var(--rr-white);
}

.rr-v2.systems-proof--final .case-study-interactive__intro p {
  max-width: 38rem;
  margin: 0 0 .35rem;
  color: rgba(var(--rr-white-rgb), .76);
}

.rr-v2.systems-proof--final .case-study-interactive__instruction {
  display: flex;
  margin-top: 1.25rem;
  align-items: center;
  gap: .75rem;
  color: var(--rr-carolina-blue);
  font-size: var(--rr-type-compact) !important;
  font-weight: 700;
}

.rr-v2.systems-proof--final .case-study-interactive__instruction::before {
  width: 2.75rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.rr-v2.systems-proof--final .case-study-interactive .t6-system-map {
  max-width: 82rem;
  margin-inline: auto;
  box-shadow: 0 30px 90px rgba(var(--rr-black-rgb), .2);
}

.rr-v2.systems-proof--final .case-study-interactive .t6-mini-proprietary {
  display: none;
}

.rr-v2.systems-proof--final .case-study-interactive .t6-mini-logo:has(.t6-mini-proprietary) {
  padding-left: .75rem;
}

.rr-v2.systems-proof--final .case-study-narrative {
  background: var(--rr-white);
  color: var(--rr-primary-navy);
}

.rr-v2.systems-proof--final .case-study-narrative__nav {
  position: sticky;
  z-index: 18;
  top: var(--rr-v2-header);
  border-top: 1px solid var(--rr-border);
  border-bottom: 1px solid var(--rr-border);
  background: rgba(var(--rr-white-rgb), .96);
  backdrop-filter: blur(14px);
}

.rr-v2.systems-proof--final .case-study-narrative__nav .shell {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.rr-v2.systems-proof--final .case-study-narrative__nav .shell::-webkit-scrollbar {
  display: none;
}

.rr-v2.systems-proof--final .case-study-narrative__nav a {
  min-width: max-content;
  padding: 1rem clamp(1.25rem, 3vw, 2.5rem) .9rem 0;
  color: var(--rr-steel);
  font-size: var(--rr-type-meta) !important;
  font-weight: 760;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.rr-v2.systems-proof--final .case-study-narrative__nav a:hover,
.rr-v2.systems-proof--final .case-study-narrative__nav a:focus-visible {
  color: var(--rr-copper);
}

.rr-v2.systems-proof--final .case-study-chapter {
  padding: clamp(5.5rem, 9vw, 9rem) 0;
}

.rr-v2.systems-proof--final .case-study-chapter--mist {
  background: var(--rr-mist);
}

.rr-v2.systems-proof--final .case-study-chapter--navy {
  background: var(--rr-primary-navy);
  color: var(--rr-white);
}

.rr-v2.systems-proof--final .case-study-chapter--green {
  background: var(--rr-dark-green);
  color: var(--rr-white);
}

.rr-v2.systems-proof--final .case-study-chapter__heading {
  display: grid;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, .72fr);
  gap: 2rem clamp(3rem, 7vw, 7rem);
}

.rr-v2.systems-proof--final .case-study-chapter__number {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--rr-copper);
  font-size: var(--rr-type-meta) !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rr-v2.systems-proof--final .case-study-chapter__heading h2 {
  max-width: 17ch;
  margin: 0;
}

.rr-v2.systems-proof--final .case-study-chapter__heading > div:last-child {
  padding-top: .4rem;
}

.rr-v2.systems-proof--final .case-study-chapter__heading p + p {
  margin-top: 1.2rem;
}

.rr-v2.systems-proof--final .case-study-chapter--navy .case-study-chapter__heading h2,
.rr-v2.systems-proof--final .case-study-chapter--green .case-study-chapter__heading h2 {
  color: var(--rr-white);
}

.rr-v2.systems-proof--final .case-study-chapter--navy .case-study-chapter__heading p,
.rr-v2.systems-proof--final .case-study-chapter--green .case-study-chapter__heading p {
  color: rgba(var(--rr-white-rgb), .76);
}

.rr-v2.systems-proof--final .case-study-problem-grid {
  display: grid;
  border-top: 1px solid var(--rr-border-strong);
  border-left: 1px solid var(--rr-border-strong);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rr-v2.systems-proof--final .case-study-problem-grid article {
  min-height: 15rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-right: 1px solid var(--rr-border-strong);
  border-bottom: 1px solid var(--rr-border-strong);
  background: var(--rr-white);
}

.rr-v2.systems-proof--final .case-study-problem-grid strong {
  display: block;
  color: var(--rr-copper);
  font-size: var(--rr-type-meta) !important;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rr-v2.systems-proof--final .case-study-problem-grid h3 {
  margin-top: 1.4rem;
}

.rr-v2.systems-proof--final .case-study-problem-grid p {
  margin-top: 1rem;
  color: var(--rr-steel);
}

.rr-v2.systems-proof--final .case-study-trigger {
  display: grid;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  background: var(--rr-primary-navy);
  grid-template-columns: minmax(12rem, .35fr) minmax(0, 1.65fr);
  gap: 1.5rem 3rem;
}

.rr-v2.systems-proof--final .case-study-trigger strong {
  color: var(--rr-copper);
  font-size: var(--rr-type-meta) !important;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.rr-v2.systems-proof--final .case-study-trigger p {
  margin: 0;
  color: rgba(var(--rr-white-rgb), .86);
  font-size: var(--rr-type-lede) !important;
}

.rr-v2.systems-proof--final .case-study-discovery {
  display: grid;
  counter-reset: discovery;
  border-top: 1px solid var(--rr-border-strong);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rr-v2.systems-proof--final .case-study-discovery li {
  position: relative;
  min-height: 18rem;
  padding: 5rem 1.5rem 1.75rem;
  border-right: 1px solid var(--rr-border-strong);
  border-bottom: 1px solid var(--rr-border-strong);
  counter-increment: discovery;
  list-style: none;
}

.rr-v2.systems-proof--final .case-study-discovery li:first-child {
  border-left: 1px solid var(--rr-border-strong);
}

.rr-v2.systems-proof--final .case-study-discovery li::before {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: var(--rr-copper);
  content: counter(discovery, decimal-leading-zero);
  font-size: var(--rr-type-meta) !important;
  font-weight: 800;
  letter-spacing: .08em;
}

.rr-v2.systems-proof--final .case-study-discovery h3 {
  font-size: var(--rr-type-feature) !important;
}

.rr-v2.systems-proof--final .case-study-discovery p {
  margin-top: 1rem;
  color: var(--rr-steel);
}

.rr-v2.systems-proof--final .case-study-finding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(var(--rr-white-rgb), .2);
}

.rr-v2.systems-proof--final .case-study-finding-grid article {
  min-height: 17rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: rgba(var(--rr-primary-navy-rgb), .5);
}

.rr-v2.systems-proof--final .case-study-finding-grid h3 {
  color: var(--rr-white);
}

.rr-v2.systems-proof--final .case-study-finding-grid p {
  margin-top: 1rem;
  color: rgba(var(--rr-white-rgb), .72);
}

.rr-v2.systems-proof--final .case-study-finding-grid ul {
  margin-top: 1.25rem;
  padding-left: 1.1rem;
  color: rgba(var(--rr-white-rgb), .76);
}

.rr-v2.systems-proof--final .case-study-finding-grid li + li {
  margin-top: .65rem;
}

.rr-v2.systems-proof--final .case-study-work {
  display: grid;
  border-top: 1px solid var(--rr-border-strong);
}

.rr-v2.systems-proof--final .case-study-work article {
  display: grid;
  min-height: 15rem;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  align-items: start;
  border-bottom: 1px solid var(--rr-border-strong);
  grid-template-columns: minmax(10rem, .35fr) minmax(18rem, .7fr) minmax(22rem, 1.15fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
}

.rr-v2.systems-proof--final .case-study-work__phase {
  color: var(--rr-copper);
  font-size: var(--rr-type-meta) !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rr-v2.systems-proof--final .case-study-work h3 {
  margin: 0;
}

.rr-v2.systems-proof--final .case-study-work p {
  margin: 0;
  color: var(--rr-steel);
}

.rr-v2.systems-proof--final .case-study-work p + p {
  margin-top: 1rem;
}

.rr-v2.systems-proof--final .case-study-software {
  display: grid;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--rr-border-strong);
  background: var(--rr-mist);
  grid-template-columns: minmax(14rem, .45fr) minmax(0, 1.55fr);
  gap: 2rem 4rem;
}

.rr-v2.systems-proof--final .case-study-software__intro p {
  margin-top: 1rem;
  color: var(--rr-steel);
}

.rr-v2.systems-proof--final .case-study-software__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rr-border);
}

.rr-v2.systems-proof--final .case-study-software__grid div {
  display: grid;
  min-height: 7.25rem;
  padding: 1rem;
  place-content: center;
  background: var(--rr-white);
  text-align: center;
}

.rr-v2.systems-proof--final .case-study-software__grid img {
  width: auto;
  max-width: 7rem;
  height: 2rem;
  margin-inline: auto;
  object-fit: contain;
}

.rr-v2.systems-proof--final .case-study-software__grid span {
  display: block;
  margin-top: .7rem;
  color: var(--rr-primary-navy);
  font-size: var(--rr-type-meta) !important;
  font-weight: 700;
}

.rr-v2.systems-proof--final .case-study-software__grid .case-study-software__text {
  color: var(--rr-primary-navy);
  font-size: var(--rr-type-compact) !important;
  font-weight: 750;
}

.rr-v2.systems-proof--final .case-study-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(var(--rr-white-rgb), .22);
}

.rr-v2.systems-proof--final .case-study-control-grid article {
  min-height: 16rem;
  padding: clamp(1.75rem, 3vw, 2.6rem);
  background: rgba(var(--rr-dark-green-rgb), .9);
}

.rr-v2.systems-proof--final .case-study-control-grid h3 {
  color: var(--rr-white);
}

.rr-v2.systems-proof--final .case-study-control-grid p {
  margin-top: 1rem;
  color: rgba(var(--rr-white-rgb), .75);
}

.rr-v2.systems-proof--final .case-study-results-grid {
  display: grid;
  border-top: 1px solid rgba(var(--rr-white-rgb), .22);
  border-left: 1px solid rgba(var(--rr-white-rgb), .22);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rr-v2.systems-proof--final .case-study-results-grid article {
  min-height: 14rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-right: 1px solid rgba(var(--rr-white-rgb), .22);
  border-bottom: 1px solid rgba(var(--rr-white-rgb), .22);
}

.rr-v2.systems-proof--final .case-study-results-grid strong {
  display: block;
  color: var(--rr-white);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
}

.rr-v2.systems-proof--final .case-study-results-grid h3 {
  margin-top: 1rem;
  color: var(--rr-copper);
  font-size: var(--rr-type-control) !important;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.rr-v2.systems-proof--final .case-study-results-grid p {
  margin-top: .8rem;
  color: rgba(var(--rr-white-rgb), .72);
}

.rr-v2.systems-proof--final .case-study-results-summary {
  display: grid;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(var(--rr-white-rgb), .24);
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 2rem clamp(3rem, 7vw, 7rem);
}

.rr-v2.systems-proof--final .case-study-results-summary h3 {
  color: var(--rr-white);
}

.rr-v2.systems-proof--final .case-study-results-summary p {
  color: rgba(var(--rr-white-rgb), .78);
}

.rr-v2.systems-proof--final .case-study-results-summary p + p {
  margin-top: 1rem;
}

.rr-v2.systems-proof--final .case-study-disclaimer {
  margin-top: 2rem;
  color: rgba(var(--rr-white-rgb), .56);
  font-size: var(--rr-type-meta) !important;
}

.rr-v2.systems-proof--final .case-study-final-cta {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: var(--rr-copper);
  color: var(--rr-white);
}

.rr-v2.systems-proof--final .case-study-final-cta .shell {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 4rem;
}

.rr-v2.systems-proof--final .case-study-final-cta h2 {
  max-width: 18ch;
  color: var(--rr-white);
}

.rr-v2.systems-proof--final .case-study-final-cta p {
  max-width: 44rem;
  margin-top: 1rem;
  color: rgba(var(--rr-white-rgb), .82);
}

.rr-v2.systems-proof--final .case-study-final-cta .button {
  border-color: var(--rr-white);
  background: var(--rr-white);
  color: var(--rr-primary-navy);
}

@media (max-width: 1100px) {
  .rr-v2.systems-proof--final .case-study-narrative__nav {
    top: 0;
  }

  .rr-v2.systems-proof--final .case-study-discovery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rr-v2.systems-proof--final .case-study-discovery li:last-child {
    grid-column: 1 / -1;
  }

  .rr-v2.systems-proof--final .case-study-work article {
    grid-template-columns: minmax(8rem, .3fr) minmax(18rem, .7fr) minmax(0, 1fr);
  }

  .rr-v2.systems-proof--final .case-study-software {
    grid-template-columns: 1fr;
  }

  .rr-v2.systems-proof--final .case-study-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .rr-v2.systems-proof--final .case-study-interactive__intro,
  .rr-v2.systems-proof--final .case-study-chapter__heading,
  .rr-v2.systems-proof--final .case-study-results-summary {
    grid-template-columns: 1fr;
  }

  .rr-v2.systems-proof--final .case-study-interactive__intro p {
    max-width: none;
  }

  .rr-v2.systems-proof--final .case-study-problem-grid,
  .rr-v2.systems-proof--final .case-study-finding-grid,
  .rr-v2.systems-proof--final .case-study-control-grid {
    grid-template-columns: 1fr;
  }

  .rr-v2.systems-proof--final .case-study-trigger {
    grid-template-columns: 1fr;
  }

  .rr-v2.systems-proof--final .case-study-work article {
    grid-template-columns: 1fr;
    gap: .9rem;
  }

  .rr-v2.systems-proof--final .case-study-software__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rr-v2.systems-proof--final .case-study-final-cta .shell {
    grid-template-columns: 1fr;
  }

  .rr-v2.systems-proof--final .case-study-final-cta .button {
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .rr-v2.systems-proof--final .case-study-interactive {
    padding-top: 4rem;
  }

  .rr-v2.systems-proof--final .case-study-discovery,
  .rr-v2.systems-proof--final .case-study-results-grid {
    grid-template-columns: 1fr;
  }

  .rr-v2.systems-proof--final .case-study-discovery li:last-child {
    grid-column: auto;
  }

  .rr-v2.systems-proof--final .case-study-software__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rr-v2.systems-proof--final .t6-system-map,
  .rr-v2.systems-proof--final .t6-system-map *,
  .rr-v2.systems-proof--final .t6-department-dialog {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
