/* ==========================================================================
   Enterprise-Scale Case Study Styles
   ========================================================================== */

.case-page {
  background: #fff;
}

.case-container {
  width: min(1180px, 90vw);
  margin: auto;
  height: fit-content;
}

/* --------------------------------------------------------------------------
   Hero & Section Headers
   -------------------------------------------------------------------------- */
.case-hero {
  padding: 150px 0 120px;
  color: #fff;
  background: radial-gradient(circle at 75% 35%, rgba(18, 78, 255, .59), transparent 28%), linear-gradient(145deg, #000 0%, #0e0064 70%, #000 100%);
}

.case-hero h1 {
  /*max-width: 950px;*/
  /*font-size: clamp(54px, 7vw, 100px);*/
  max-width: 860px;
  font-size: clamp(54px, 7vw, 104px);
}

.case-hero em {
  color: #c000ff;
}

.case-hero > div > p:last-child {
  max-width: 670px;
  font-size: 20px;
  color: rgba(255, 255, 255, .75);
}

.case-overview {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 10vw;
  padding: 110px 0;
}

.case-overview h2,
.case-section h2,
.case-glance h2 {
  font-size: clamp(40px, 4.5vw, 68px);
}

.case-overview p {
  font-size: 17px;
  color: var(--muted);
}

.case-overview aside {
  border-left: 1px solid var(--line);
  padding-left: 38px;
}

.case-overview aside p {
  font-size: 14px;
}

.case-overview b {
  color: var(--ink);
}

.case-glance {
  padding: 100px 0;
  color: #fff;
  background: #050208;
}

.case-glance .eyebrow {
  color: #8adfff;
}

/* --------------------------------------------------------------------------
   Capability Map & Overview Grids
   -------------------------------------------------------------------------- */
.capability-map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 50px;
  background: rgba(164, 200, 255, .22);
}

.capability-map article {
  min-height: 245px;
  padding: 28px;
  background: linear-gradient(160deg, #0b0620, #100052);
}

.capability-map article:nth-child(2n) {
  background: linear-gradient(160deg, #06162a, #14052c);
}

.capability-map span {
  font: 300 46px/1 var(--display);
  color: #8adfff;
}

.capability-map h3 {
  margin: 48px 0 8px;
  font-size: 24px;
}

.capability-map p {
  margin: 0;
  color: #fff;
}

.capability-map small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, .65);
}


.case-initiatives,
.case-section {
  padding: 115px 0;
}

.case-section:nth-of-type(even) {
  background: #f7f2ff;
}

.case-lede {
  max-width: 720px;
  font-size: 20px;
  color: var(--muted);
}

.case-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
}

.case-compare div {
  padding: 35px;
  border: 1px solid var(--line);
}

.case-compare div:last-child {
  background: linear-gradient(135deg, #f4edff, #eefbff);
  border-color: #c8bcf4;
}

.case-compare b {
  font: 500 28px var(--display);
}

.case-compare p {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Fragmentation & Hex Morph Graphics
   -------------------------------------------------------------------------- */
.fragmentation {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: space-between;
  align-items: stretch;
}

.fragmentation span {
  position: relative;
  flex: 1;
  padding: 30px 22px 30px 34px;
  border: 0;
  border-left: 6px solid #5b00c2;
  border-radius: 0;
  background: #f7f2ff;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.fragmentation span:nth-child(even) {
  border-left-color: #12c0ff;
  background: #eefbff;
  transform: translateY(28px);
}

.hex-morph {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  max-width: 900px;
  height: 150px;
  margin: 50px auto;
  background: #d8ccff;
}

.hex-morph i {
  display: grid;
  place-items: center;
  background: #fff;
  color: #5b00c2;
  font-style: normal;
  font-weight: 700;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  animation: hexPulse 4s ease-in-out infinite;
  animation-play-state: paused;
}

.hex-morph i:nth-child(2n) {
  animation-delay: .35s;
  color: #12c0ff;
}

.hex-morph.is-active i {
  animation-play-state: running;
}

@keyframes hexPulse {
  50% {
    transform: translateY(-12px);
    background: #f3edff;
  }
}

.challenge-section,
.experience-model-section {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Initiatives & Rail Process
   -------------------------------------------------------------------------- */
.initiative-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 50px;
  padding-top: 3px;
  background: linear-gradient(90deg, #2b0b78, #12aeda);
}

.initiative-grid::before {
  position: absolute;
  top: 35.5px;
  right: calc(25% - 28px);
  left: 37px;
  z-index: 1;
  height: 1px;
  background: rgba(255, 255, 255, .36);
  content: "";
}

.initiative-grid article {
  position: relative;
  min-height: 352px;
  padding: 28px;
  color: #fff;
  background: #0d0750;
  display: flex;
  flex-direction: column;
}

.initiative-grid article:nth-child(2) { background: #19076e; }
.initiative-grid article:nth-child(3) { background: #0a396d; }
.initiative-grid article:nth-child(4) { background: #14245f; }

.initiative-grid article::before {
  position: relative;
  z-index: 2;
  width: 9px;
  height: 9px;
  margin-bottom: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #12c0ff;
  box-shadow: 0 0 0 6px rgba(18, 192, 255, .16);
  content: "";
}

.initiative-grid article:nth-child(2)::before,
.initiative-grid article:nth-child(4)::before {
  background: #c000ff;
  box-shadow: 0 0 0 6px rgba(192, 0, 255, .16);
}

.initiative-grid span { font: 300 46px/1 var(--display); color: rgba(255, 255, 255, .48); }
.initiative-grid h3 { margin-top: 62px; font-size: 26px; color: #fff; }
.initiative-grid p { color: rgba(255, 255, 255, .76); font-size: 14px; }
.initiative-grid b { margin-top: auto; color: #8adfff; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

.initiative-detail { background: #f8f9fb !important; }
.detail-heading { display: grid; grid-template-columns: 1.05fr .95fr; gap: 8vw; align-items: end; }
.detail-heading .case-lede { margin: 0; }

.process-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 62px; border-top: 1px solid #c7b8f1; }
.process-rail article { position: relative; padding: 28px 26px 24px; border-right: 1px solid #d8cff2; }
.process-rail article:first-child { padding-left: 0; }
.process-rail article:last-child { border-right: 0; }
.process-rail b { display: block; color: #5b00c2; font: 500 25px var(--display); }
.process-rail p { color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------------------
   Atlas Section
   -------------------------------------------------------------------------- */
.atlas-section {
  color: #fff !important;
  background: linear-gradient(135deg, #4a009a, #8500df) !important;
}

.atlas-section h2 { color: #fff; }
.atlas-section .eyebrow { color: #b8efff !important; }
.atlas-section .case-lede { color: rgba(255, 255, 255, .9) !important; }

.atlas-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; align-items: center; margin-top: 45px; }
.atlas-layout .case-lede { margin: 0; }
.atlas-flow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 30px; background: rgba(11, 3, 53, .42); border: 1px solid rgba(255, 255, 255, .32); }
.atlas-flow span { color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.atlas-flow i { color: #b8efff; font-size: 25px; font-style: normal; }






/* --------------------------------------------------------------------------
   Challenge Section & Opportunity Section
   -------------------------------------------------------------------------- */
.challenge-section {
  background: linear-gradient(135deg, #1b003d 0%, #32006c 58%, #4a008d 100%) !important;
  color: #fff;
}

.challenge-section .eyebrow { color: #b8efff; }
.challenge-section h2 { color: #fff; }
.challenge-section .case-lede { color: rgba(255, 255, 255, .84); }

.challenge-section .fragmentation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 50px;
}

.challenge-section .fragmentation span,
.challenge-section .fragmentation span:nth-child(even) {
  position: relative;
  flex: 0 0 auto;
  min-height: 80px;
  padding: 0 12px 0 34px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  clip-path: none;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.challenge-section .fragmentation span::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 8px;
  background: rgba(255, 255, 255, .72);
  content: "";
  transform: skewX(-28deg);
}

.challenge-section .fragmentation span:nth-child(even)::before {
  background: rgba(255, 255, 255, .72);
  transform: skewX(28deg);
}

.opportunity-section {
  color: #1a1f24;
  background: #fff;
  width: 100%;
}

.opportunity-section .eyebrow { color: #5b00c2; }
.opportunity-section h2 { color: #1a1f24; }
.opportunity-section .enterprise-flow { --flow-ink: #28105e; --flow-accent: #c000ff; }
.opportunity-section .flow-label { color: var(--flow-ink); }
.opportunity-section .flow-label:not(.is-active) { color: rgba(40, 16, 94, .42); }
.opportunity-section .flow-label:not(.is-active):hover { color: rgb(192, 0, 255); }
.opportunity-section .flow-line { background: rgba(40, 16, 94, .58); }
.opportunity-section .flow-project-label { color: #28105e; }
.opportunity-section .flow-stage.is-enterprise {
  background: radial-gradient(ellipse at 50% 50%, rgba(192, 0, 255, .11), rgba(18, 192, 255, .06) 38%, transparent 68%);
  opacity: .9;
}


/* --------------------------------------------------------------------------
   Enterprise Flow Interactive Component
   Replace the existing block of this name (from the opening comment above
   `.enterprise-flow {` down to the closing "END - Enterprise flow" comment)
   in your stylesheet with everything below.
   -------------------------------------------------------------------------- */
.enterprise-flow {
  --flow-ink: #28105e;
  --flow-accent: #c000ff;

  /* glow-only controls remain here; the rectangle's own top/height are no
     longer fixed CSS values — they're computed in JS to exactly match the
     stage's rendered box, so the purple fill can never drift out of sync
     with the lines it sits behind. */
  --flow-glow-gap: 8px;        /* distance the outer glow extends above/below the rectangle */
  --flow-glow-blur: 70px;      /* glow softness */
  --flow-glow-color: rgba(192, 0, 255, .25);

  max-width: 1060px;
  margin: 54px auto 0;
}

.flow-switch {
  display: flex;
  justify-content: center;
  gap: 56px;
}

.flow-label {
  padding: 4px 2px;
  border: 0;
  color: var(--flow-ink);
  background: transparent;
  font: 600 24px var(--display);
  cursor: pointer;
  opacity: .42;
}

.flow-label.is-active {
  opacity: 1;
}

.flow-eye {
  position: relative;
  height: 4px;
  margin-top: 16px;
}

.flow-eye span {
  position: absolute;
  height: 4px;
  background: var(--flow-accent);
  transition: left .7s cubic-bezier(.5, 0, .15, 1), width .7s cubic-bezier(.5, 0, .15, 1);
}

.flow-stage {
  position: relative;
  height: 390px;
  margin-top: 38px;
  overflow: visible;
}

/* Lines — single consolidated rule (was duplicated across two patches) */
.flow-line {
  position: absolute;
  height: 7px;
  margin-top: -3.5px;
  background: rgba(40, 16, 94, .58);
  transform-origin: 0 50%;
  transition: transform .6s cubic-bezier(.16,1,.3,1),
              width .6s cubic-bezier(.16,1,.3,1),
              opacity .35s ease;
  z-index: 1;
}

.flow-stage.is-enterprise .flow-line {
  height: 3px;
  margin-top: -1.5px;
  filter: drop-shadow(0 0 6px rgba(192, 0, 255, .35));
  /* opacity is controlled entirely by JS inline styles during the burst
     animation — no opacity rule here, and no !important, so JS always wins */
}

.flow-stage.is-enterprise {
  background: radial-gradient(ellipse at 50% 50%, rgba(192, 0, 255, .11), rgba(18, 192, 255, .06) 38%, transparent 68%);
}

/* INNER rectangle fill — real element, positioned/sized entirely by JS
   (left/top/width/height inline styles) so it always matches the exact
   full-bleed width and true rendered height of the stage that holds the
   lines. Only the fade/scale transition lives in CSS now. */
.flow-rect-fill {
  position: absolute;
  z-index: 0;
  background: linear-gradient(135deg, #ff54c2 0%, #c000ff 48%, #5b00c2 100%);
  opacity: 0;
  transform: scaleY(.94);
  transform-origin: center;
  transition: opacity .7s ease, transform .7s ease;
  pointer-events: none;
}

/* OUTER glow — same full-bleed sizing as the fill, plus the configured gap,
   with the glow itself painted via box-shadow on the top/bottom edges. */
.flow-rect-glow {
  position: absolute;
  z-index: 0;
  background: transparent;
  box-shadow:
    0 calc(-1 * var(--flow-glow-gap)) var(--flow-glow-blur) var(--flow-glow-color),
    0 var(--flow-glow-gap) var(--flow-glow-blur) var(--flow-glow-color);
  opacity: 0;
  transform: scaleY(.94);
  transform-origin: center;
  transition: opacity .7s ease, transform .7s ease;
  pointer-events: none;
}

.flow-stage.is-enterprise .flow-rect-fill,
.flow-stage.is-enterprise .flow-rect-glow {
  opacity: .92;
  transform: scaleY(1.10);
  transition-delay: .9s;
}

.flow-stage.is-enterprise .flow-rect-glow {
  opacity: .2;
}

.flow-project-label,
.flow-enterprise-label {
  position: absolute;
  width: 190px;
  color: var(--flow-ink);
  font: 700 13px/1.3 var(--body);
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity .42s ease;
  z-index: 2;
}

.flow-enterprise-label {
  width: 170px;
  padding: 10px 12px;
}

.flow-stage.is-enterprise .flow-enterprise-label {
  color: #fff;
  white-space: nowrap;
  font-size: 18px;
}

.flow-stage.is-project .flow-enterprise-label,
.flow-stage.is-enterprise .flow-project-label {
  opacity: 0;
}

.flow-stage.is-project .flow-project-label,
.flow-stage.is-enterprise .flow-enterprise-label {
  opacity: 1;
  transition-delay: .7s;
}

/* Full-width blurred band behind both rows of enterprise labels */
.flow-label-band {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  opacity: 0;
  transition: opacity .42s ease;
  transition-delay: .7s;
  z-index: 1;
  pointer-events: none;
}

.flow-stage.is-enterprise .flow-label-band {
  opacity: .5;
}

/* -------------------------------------------------------------------------- END - Enterprise flow */
/* -------------------------------------------------------------------------- END - Enterprise flow */

/* --------------------------------------------------------------------------
   Experience Model Section & Diamond Diagram
   -------------------------------------------------------------------------- */
/*.case-section.experience-detail.is-in-view,
.experience-model-section {
  color: #1a1f24 !important;
  background: #f3eeff !important;
}*/
.case-section.experience-detail.is-in-view {
  color: #1a1f24 !important;
  background: #f3eeff !important;
}









.experience-model-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
}

.experience-model-section::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background-color: #f3eeff !important;
  /*background-image: url('../../assets/img/portfolio/portfolio-piece-irsds-design-system.png') !important;*/
  background-size: cover !important;
  background-position: right !important;
  filter: blur(0px);
  opacity: .1;
  transform: scale(1.1);
  pointer-events: none;
}



.experience-model-section {
  position: relative;

  /* White edge fade */
  --white-color: 255, 255, 255;
  --white-opacity: 1;        /* strength at the edges */
  --white-clear-stop: 0%;   /* fully transparent up to here (from center) */
  --white-solid-stop: 100%;  /* reaches full white here */

  /* Purple glow */
  --glow-color: 124, 58, 237;
  --glow-opacity: 0.15;
  --glow-size: 1000px;
  --glow-x: 48%;
  --glow-y: 30%;
  --glow-fade: 100%;         /* lower = tighter core, higher = softer */
}

.experience-model-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    /* purple glow, sits on top */
    radial-gradient(
      circle closest-side,
      rgba(var(--glow-color), var(--glow-opacity)) 0%,
      rgba(var(--glow-color), calc(var(--glow-opacity) * 0.5)) 40%,
      rgba(var(--glow-color), 0) var(--glow-fade)
    ),
    /* white edge fade, underneath */
    radial-gradient(
      ellipse farthest-corner at center,
      rgba(var(--white-color), 0) var(--white-clear-stop),
      rgba(var(--white-color), var(--white-opacity)) var(--white-solid-stop)
    );

  background-repeat: no-repeat, no-repeat;
  background-size: var(--glow-size) var(--glow-size), 100% 100%;
  background-position: var(--glow-x) var(--glow-y), center;
}








.experience-model-section .case-container {
  position: relative;
  z-index: 1;
  color: #1a1f24 !important;
}












.experience-model-section .eyebrow { color: #5b00c2 !important; }
.experience-model-section .case-lede { color: #3f4d5a !important; }

.diamond-diagram {
  --card-w: 380px;
  --card-h: 150px;
  --deck-step: 88px;
  --deck-step: 75px;
  position: relative;
  display: flex;
  width: min(100%, 900px);
  height: 590px;
  min-height: 590px;
  margin: 72px auto 82px;
  margin: 86px auto 49px;
}

.diamond-deck {
  position: relative;
  width: var(--card-w);
  height: calc(var(--card-h) + var(--deck-step) * 5);
  overflow: visible;
}

.deck-spine {
  position: absolute;
  top: -4%;
  top: 2%;
  left: 50%;
  z-index: 100;
  width: 150px;
  height: 108%;
  height: 104%;
  box-sizing: border-box;
  border: 1px solid rgba(192, 0, 255, .10);
  border-radius: 8px;
  /*background: radial-gradient(circle at center, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.58) 70%);*/
  background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, .02) 100%); 
  transform: translateX(-50%);
  pointer-events: none;
}

.deck-card {
  position: absolute;
  left: 0;
  width: var(--card-w);
  height: var(--card-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  /*z-index: 10;*/
  /*color: #2e164b;*/
  color: #000;
  /*filter: drop-shadow(0 48px 23px rgba(28, 17, 61, .56));*/

  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.deck-card:nth-child(2) { --z: 20; }
.deck-card:nth-child(3) { --z: 30; }
.deck-card:nth-child(4) { --z: 40; }
.deck-card:nth-child(5) { --z: 50; }
.deck-card:nth-child(6) { --z: 60; }
.deck-card:nth-child(7) { --z: 70; }

.deck-card::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  height: 270px;
  border-radius: 22px;
  content: "";
  /*z-index: 10;*/
  z-index: calc(var(--z) + 5); 
  transform: translate(-50%, -50%) scaleY(.35) rotate(45deg);
  /*filter: drop-shadow(0 13px 16px rgba(28, 17, 61, .16));*/
  /*mask-image: linear-gradient(315deg, #000 10%, transparent 55%);*/
  mask-image: linear-gradient(315deg, #000 24%, transparent 67%);
}

.deck-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
    width: 240px;
    height: 240px;
    border-radius: 22px;
    background: rgba(67, 4, 255, .05);
    filter: blur(30px);
  z-index: var(--z);
  pointer-events: none;
  /* translate first = straight down in screen space, then squash/rotate */
  transform: translate(-50%, calc(-50% + 48px)) scaleY(.35) rotate(45deg);
}


.deck-card svg,
.deck-card span {
  margin-top: 4px;
  position: relative;
  z-index: 200;
}

.deck-card svg {
  width: 40px;
  height: 40px;
  fill: none;
  /*stroke: #401050;*/
  stroke: #000;
  /*box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5); */
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  top: 16px;
}

.deck-card:nth-of-type(2) svg { stroke: #FF5BCF; }
.deck-card:nth-of-type(3) svg { stroke: #ff54c2; }
.deck-card:nth-of-type(4) svg { stroke: #d630ff; }
.deck-card:nth-of-type(5) svg { stroke: #cc00ff; }
.deck-card:nth-of-type(6) svg { stroke: #a200ff; }
.deck-card:nth-of-type(7) svg { stroke: #8900ff; }

.deck-card:nth-child(2) { top: 0; }
.deck-card:nth-child(3) { top: calc(var(--deck-step) * 1); }
.deck-card:nth-child(4) { top: calc(var(--deck-step) * 2); }
.deck-card:nth-child(5) { top: calc(var(--deck-step) * 3); }
.deck-card:nth-child(6) { top: calc(var(--deck-step) * 4); }
.deck-card:nth-child(7) { top: calc(var(--deck-step) * 5); }

/*.deck-card:nth-child(2)::before { background: rgba(255, 84, 194, .6); }
.deck-card:nth-child(3)::before { background: rgba(229, 67, 198, .6); }
.deck-card:nth-child(4)::before { background: rgba(202, 50, 202, .6); }
.deck-card:nth-child(5)::before { background: rgba(176, 34, 207, .6); }
.deck-card:nth-child(6)::before { background: rgba(149, 17, 211, .6); }
.deck-card:nth-child(7)::before { background: rgba(123, 0, 215, .6); }*/

.deck-card:nth-child(2)::before { background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, rgba(255, 84, 194, .95) 100%); }
.deck-card:nth-child(3)::before { background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, rgba(229, 67, 198, .96) 100%); }
.deck-card:nth-child(4)::before { background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, rgba(202, 50, 202, .96) 100%); }
.deck-card:nth-child(5)::before { background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, rgba(176, 34, 207, .96) 100%); }
.deck-card:nth-child(6)::before { background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, rgba(149, 17, 211, .96) 100%); }
.deck-card:nth-child(7)::before { background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, rgba(123, 0, 215, .96) 100%); }



.deck-callouts {
  position: relative;
  display: block;
  flex: 1;
  height: 590px;
  margin-left: -10px;
  padding: 0;
}

.deck-callouts p {
  position: absolute;
  right: 0;
  left: 0;
  margin: 0;
  padding-left: 106px;
  line-height: 1;
  transform: translateY(-50%);
  color: #2b3540;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
  display: block;
}

.deck-callouts p::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 90px;
  height: 1px;
  margin: 0;
  /*background: #ff54c2;*/
  background: #f098d7;
  content: "";
}

.deck-callouts p::after {
  position: absolute;
  top: calc(50% - 4px);
  left: 86px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f098d7;
  content: "";
}

.deck-callouts p:nth-child(1) { top: 75px; }
.deck-callouts p:nth-child(2) { top: 150px; }
.deck-callouts p:nth-child(3) { top: 225px; }
.deck-callouts p:nth-child(4) { top: 300px; }
.deck-callouts p:nth-child(5) { top: 375px; }
.deck-callouts p:nth-child(6) { top: 450px; }

.deck-callouts p:nth-child(2)::before, .deck-callouts p:nth-child(2)::after { background: #f098d7; }
.deck-callouts p:nth-child(3)::before, .deck-callouts p:nth-child(3)::after { background: #e28dd8; }
.deck-callouts p:nth-child(4)::before, .deck-callouts p:nth-child(4)::after { background: #d687db; }
.deck-callouts p:nth-child(5)::before, .deck-callouts p:nth-child(5)::after { background: #bb7bde; }
.deck-callouts p:nth-child(6)::before, .deck-callouts p:nth-child(6)::after { background: #b17ae3; }
/*background: linear-gradient(to right, rgba(123, 0, 215, 0.25) 0%, rgba(123, 0, 215, 0.96) 90%);*/
.deck-callouts p:nth-child(6)::after { width: 10px; height: 10px; top: calc(50% - 5px); left: 85px; }

/* --------------------------------------------------------------------------
   Case Role Section & Role Tags
   -------------------------------------------------------------------------- */
.case-role {
  padding: 120px 0;
  color: #fff;
  background: linear-gradient(130deg, #05020e, #110048);
}

.case-role .eyebrow,
.connected-section .eyebrow,
.case-evidence .eyebrow {
  color: #8adfff;
}

.case-role-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 9vw;
  align-items: end;
}

.case-role h2,
.connected-section h2,
.case-evidence h2,
.case-takeaway h2 {
  font-size: clamp(42px, 5vw, 72px);
}

.case-role-grid p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 18px;
}

.role-tags {
  display: flex;
  max-width: none;
  margin-top: 58px;
  gap: 0;
  overflow: hidden;
}

.role-tags span {
  position: relative;
  width: 35%;
  min-height: 88px;
  margin-left: -4%;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  isolation: isolate;
}

.role-tags span:first-child { margin-left: 0; }

.role-tags span::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #ff54c2, #c000ff 48%, #12c0ff);
  clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%);
  content: "";
}

.role-tags span::after {
  position: absolute;
  inset: 1px;
  left: calc(1px + 1px);
  z-index: -1;
  border: 0;
  background: #0a0431;
  clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%);
  content: "";
}

/* --------------------------------------------------------------------------
   Connected System Loop & Stacked Perspective
   -------------------------------------------------------------------------- */
.connected-section {
  padding: 120px 0;
  color: #fff;
  background: #05020e;
}

.system-loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr 32px) 1fr;
  gap: 0;
  align-items: center;
  margin-top: 62px;
}

.system-loop article {
  min-height: 155px;
  padding: 22px;
  border: 1px solid rgba(138, 223, 255, .25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, .03);
}

.system-loop article:nth-of-type(2n) {
  border-color: rgba(179, 140, 255, .35);
  background: rgba(91, 0, 194, .15);
}

.system-loop b { color: #fff; font: 400 24px var(--display); }
.system-loop span { margin-top: 8px; color: rgba(255, 255, 255, .63); font-size: 12px; }
.system-loop > i { color: #12c0ff; font-size: 24px; font-style: normal; text-align: center; }
.system-note { max-width: 650px; margin: 28px 0 0; color: rgba(255, 255, 255, .66); }

.system-loop.stacked-perspective {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85%;
  margin: 0 auto;
  perspective: 1000px;
  perspective-origin: 15% 50%;
  padding: 40px 0;
}

.system-loop.stacked-perspective article {
  flex: 1 0 160px;
  max-width: 220px;
  margin-right: -60px;
  transform: rotateY(-55deg) rotateX(10deg) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.3s ease, z-index 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: -10px 10px 25px rgba(0, 0, 0, 0.3);
}

.system-loop.stacked-perspective article:nth-child(1) { z-index: 5; }
.system-loop.stacked-perspective article:nth-child(2) { z-index: 4; }
.system-loop.stacked-perspective article:nth-child(3) { z-index: 3; }
.system-loop.stacked-perspective article:nth-child(4) { z-index: 2; }
.system-loop.stacked-perspective article:nth-child(5) { z-index: 1; margin-right: 0; }

.system-loop.stacked-perspective article:hover {
  transform: rotateY(-40deg) rotateX(5deg) translateZ(30px) translateY(-10px);
  z-index: 10;
  box-shadow: -15px 20px 35px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Evidence & Impact
   -------------------------------------------------------------------------- */
.case-evidence {
  padding: 120px 0;
  color: #1a1f24;
  background: #fff;
}

.case-evidence .eyebrow { color: #5b00c2; }
.case-evidence h2 { color: #1a1f24; }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: #d8dce2;
}

.evidence-grid article {
  min-height: 210px;
  padding: 25px;
  background: linear-gradient(145deg, #08051d, #17034b);
}

.evidence-grid strong {
  display: block;
  color: #12c0ff;
  font: 300 clamp(44px, 4vw, 68px)/1 var(--display);
}

.evidence-grid span {
  display: block;
  margin-top: 28px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.evidence-caveat {
  max-width: 820px;
  margin: 28px 0 0;
  color: #58636d;
  font-size: 12px;
}

.impact-section-work { background: #f0f1f3; }
.impact-section-work .eyebrow, .impact-table b { color: #4b168d; }
.impact-table { margin-top: 48px; border-top: 1px solid var(--line); }
.impact-table div { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5vw; padding: 20px 0; border-bottom: 1px solid var(--line); }
.impact-table b { font: 500 21px var(--display); }
.impact-table span { color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   Transformation & Leadership Sections
   -------------------------------------------------------------------------- */
.transformation-section {
  padding: 120px 0;
  color: #fff;
  background: linear-gradient(135deg, #6500c9, #aa00f5);
}

.transformation-section .eyebrow { color: #b8efff; }
.transformation-section h2 { max-width: 780px; font-size: clamp(42px, 5vw, 70px); }

.transformation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 50px; }
.transformation-grid article { padding: 38px; border: 1px solid rgba(255, 255, 255, .34); color: #fff; background: rgba(16, 4, 62, .28); border-right: transparent; }
.transformation-grid article:last-child { color: #fff; border-color: transparent; background: rgba(8, 2, 38, .62); height: 110%; margin-top: -2.5%; }
.transformation-grid p { margin: 0 0 26px; font: 400 32px var(--display); }
.transformation-grid ul { margin: 0; padding: 0; list-style: none; }
.transformation-grid li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .28); font-size: 15px; }

.leadership-section { background: #fff; }
.leadership-section .eyebrow, .leadership-grid b { color: #5b00c2; }
.leadership-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 50px; background: #ded5f2; }
.leadership-grid article { min-height: 190px; padding: 28px; background: #faf9fd; }
.leadership-grid article:nth-child(2n) { background: #faf9fd; }
.leadership-grid b { display: block; font: 400 28px var(--display); }
.leadership-grid span { display: block; margin-top: 20px; color: var(--muted); font-size: 14px; }

.case-takeaway {
  padding: 140px 0;
  color: #fff;
  background: radial-gradient(circle at 82% 12%, rgba(18, 192, 255, .2), transparent 25%), linear-gradient(135deg, #000, #11003b);
}

.case-takeaway .eyebrow { color: #8adfff; font-size: 11px; font-weight: 700; letter-spacing: .19em; }
.case-takeaway h2 { max-width: 900px; }
.case-takeaway h2 em { color: #c000ff; }
.case-takeaway p { max-width: 690px; margin: 34px 0; color: rgba(255, 255, 255, .72); font-size: 19px; }

.flow-project-label {
  position: absolute;
  transform: translate(-50%, 0);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #2b2353;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Hide lines completely in Enterprise mode on mobile */
  .flow-stage.is-enterprise .flow-line {
    /*opacity: 0 !important;*/
    transition: opacity 1s ease;
  }
 
  .case-hero .eyebrow {
    color: #ff54c2;
  }


/* =========================================================
   Random portfolio background image inside .case-hero
   Append to transforming2.css (or wherever .case-hero is
   defined). Pairs with case-hero-bg-image.js, which injects
   the .case-hero-bg-image div on load.

   Layering (bottom to top):
     1. .case-hero's existing background (gradient / color)
     2. .case-hero-bg-image        <-- new
     3. .case-container (eyebrow, h1, p — your hero text)
   ========================================================= */

.case-hero {
  position: relative;
  isolation: isolate;   /* keep this section's z-index stack self-contained */
  overflow: hidden;     /* clip the rotated/oversized image to the hero */
}

.case-hero-bg-image {
  position: absolute;
  inset: -15%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .12;
  transform: rotate(var(--bg-angle, -5deg)) scale(1.12);
  transition: opacity .4s ease, transform .6s ease;
  pointer-events: none;

  /* soft fade into the surrounding gradient instead of a hard edge */
  mask-image: radial-gradient(circle at 60% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 60% 45%, black 30%, transparent 75%);
}

/* make sure the hero copy stays above the image layer */
.case-hero .case-container {
  position: relative;
  z-index: 1;
}

@media (max-width: 920px) {
  .case-hero-bg-image {
    opacity: .26;
    transform: rotate(var(--bg-angle, -5deg)) scale(1.05);
  }
}

@media (max-width: 580px) {
  .case-hero-bg-image {
    inset: -20%;
    opacity: .22;
  }
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 900px) {
  .case-role-grid,
  .detail-heading,
  .atlas-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .initiative-grid,
  .evidence-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-loop {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .system-loop > i {
    transform: rotate(90deg);
  }
}

@media (max-width: 760px) {
  /* Layout Paddings */
  .case-hero { padding: 60px 0 42.5px; }
  .case-overview, .case-compare { grid-template-columns: 1fr; }
  .case-overview aside { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .capability-map { grid-template-columns: 1fr; }
  .capability-map article { min-height: 0; }
  .case-section, .case-overview, .case-glance, .case-role, .opportunity-section { padding: 60px 0; }

  /* Challenge Section Mobile */
  .challenge-section .fragmentation { grid-template-columns: 1fr; gap: 8px; }
  .challenge-section .fragmentation span,
  .challenge-section .fragmentation span:nth-child(even) { min-height: 0; }

  /* Enterprise Flow Container Cleanups */
  .enterprise-flow {
    width: 100%;
    margin-top: 32px;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
  }

  .flow-switch {
    gap: 16px;
    flex-wrap: wrap;
  }

  .flow-label {
    font-size: 16px;
    padding: 6px 10px;
  }

  .flow-stage {
    width: 100% !important;
    margin: 20px auto 0 !important;
    position: relative;
    transform: none !important;
    overflow: visible;
  }

  .flow-project-label,
  .flow-enterprise-label {
    font-size: 11px !important;
    line-height: 1.2 !important;
    max-width: 90px;
    width: auto !important;
    text-align: center;
    white-space: normal !important;
    word-break: break-word;
    transform: translate(-50%, -50%) !important;
    pointer-events: none;
    margin: 0 !important;
  }

  .flow-line {
    height: 3px !important;
  }

  .flow-stage::before {
    top: 50% !important;
    left: 50% !important;
    width: 280px !important;
    height: 220px !important;
    transform: translate(-50%, -50%) scale(.94) !important;
  }

  .flow-stage.is-enterprise::before {
    transform: translate(-50%, -50%) scale(1) !important;
  }

  /* Experience Model & Diamond Deck Diagram Mobile */
  .experience-model-section {
    padding: 60px 0 !important;
  }

  .diamond-diagram {
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 40px auto 20px;
  }

  .diamond-deck {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    height: 502px;
    transform: scale(0.85);
    transform-origin: top center;
  }

  .deck-card {
    width: 100%;
  }

  .deck-card::before {
    width: 210px;
    height: 210px;
  }

  .deck-spine {
    top: -10px;
    bottom: -20px;
    left: 50%;
    width: 130px;
    height: 142.5%;
    height: 126%;
    transform: translateX(-50%);
  }

  .deck-callouts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;
    margin-left: 0;
    padding: 24px 16px 0;
  }

  .deck-callouts p {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    padding-left: 0;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 10px 14px;
    border-left: 4px solid #c000ff;
  }

  .deck-callouts p::before,
  .deck-callouts p::after {
    display: none !important;
  }

  /* Role Tags Stacking */
  .role-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 36px;
    overflow: visible;
  }

  .role-tags span,
  .role-tags span:nth-child(odd) {
    width: 100%;
    margin-left: 0;
    min-height: 56px;
    padding: 12px 16px;
  }

  .role-tags span::before,
  .role-tags span::after {
    clip-path: none;
    border-radius: 8px;
  }


.enterprise-flow {
    width: 100%;
    margin-top: 32px;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
  }

  .flow-stage {
    width: 100% !important;
    margin: 10px auto 0 !important;
    position: relative;
    transform: none !important;
    overflow: visible;
  }

  /* Project Mode Label Fixes */
  .flow-project-label {
    font-size: 10.5px !important;
    line-height: 1.15 !important;
    width: auto !important;
    max-width: 75px;
    text-align: center;
    white-space: normal !important;
    transform: translate(-50%, 0) !important; /* Top-aligned below line */
    pointer-events: none;
    margin: 0 !important;
  }

  /* Enterprise Hexagon Label Fixes */
  .flow-enterprise-label {
    font-size: 8px !important;
    line-height: 1.15 !important;
    max-width: 80px;
    width: auto !important;
    padding: 2px 4px !important;
    text-align: center;
    white-space: normal !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none;
    margin: 0 !important;
  }
  .flow-enterprise-label:last-of-type {
    font-size: 8px !important;
    max-width: 110px !important;
    white-space: nowrap !important;
  }

  .flow-line {
    height: 3px !important;
  }

  /* Hexagon background shape sizing on mobile */
  .flow-stage::before {
    top: 50% !important;
    left: 50% !important;
    width: 260px !important;
    height: 190px !important;
    transform: translate(-50%, -50%) scale(.94) !important;
  }

  .flow-stage.is-enterprise::before {
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .flow-project-label {
    font-size: 11px;
    white-space: normal;
    max-width: 80px;
  }
/*New Diamond styles - mobile */
/* ---- Experience model: mobile (diamonds only, labels centered on each) ---- */
.diamond-diagram {
  --m-scale: 0.85;
  position: relative;
  height: calc(var(--m-scale) * 510px);   /* collapse the dead space under the scaled deck */
  margin: 40px auto 20px;
}

.diamond-deck {
  height: 502px;
  transform: scale(var(--m-scale));
  transform-origin: top center;
  opacity: .5;
}

/* 1. Remove the spine, icons and in-diamond labels */
.diamond-diagram .deck-spine,
.diamond-diagram .deck-card svg,
.diamond-diagram .deck-card span {
  display: none;
}

/* 2. Overlay the callouts on the diamonds */
.diamond-diagram .deck-callouts {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  margin: 0;
  padding: 0;
  z-index: 200;            /* above the diamond ::before (z-index: 10) */
  display: block;
}

.diamond-diagram .deck-callouts p {
  position: absolute;
  left: 50%;
  right: auto;
  width: min(92%, 340px);
  box-sizing: border-box;
  margin: 0;
  padding: 16px 14px;
  transform: translate(-50%, -50%);   /* centers the pill on its diamond */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .05em;
  background: rgba(255, 255, 255, .85);
  border-radius: 8px;
  border-left: 4px solid #c000ff;
}

/* diamond centers are at 75, 150 ... 450px in the unscaled deck */
.diamond-diagram .deck-callouts p:nth-child(1) { top: calc(var(--m-scale) * 75px); }
.diamond-diagram .deck-callouts p:nth-child(2) { top: calc(var(--m-scale) * 150px); }
.diamond-diagram .deck-callouts p:nth-child(3) { top: calc(var(--m-scale) * 225px); }
.diamond-diagram .deck-callouts p:nth-child(4) { top: calc(var(--m-scale) * 300px); }
.diamond-diagram .deck-callouts p:nth-child(5) { top: calc(var(--m-scale) * 375px); }
.diamond-diagram .deck-callouts p:nth-child(6) { top: calc(var(--m-scale) * 450px); }

.diamond-diagram .deck-callouts p::before,
.diamond-diagram .deck-callouts p::after {
  display: none !important;
}

}

@media (max-width: 640px) {
  .case-role, .case-initiatives, .connected-section, .case-evidence, .transformation-section, .case-takeaway { padding: 78px 0; }
  .initiative-grid, .evidence-grid, .experience-panels, .transformation-grid, .leadership-grid { grid-template-columns: 1fr; }
  .initiative-grid::before { display: none; }
  .process-rail { grid-template-columns: 1fr; }
  .process-rail article, .process-rail article:first-child { padding: 22px 0; border-right: 0; border-bottom: 1px solid #d8cff2; }
  .atlas-flow { flex-direction: column; }
  .atlas-flow i { transform: rotate(90deg); }
  .impact-table div { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 480px) {
  .case-role h2 {
    font-size: 32px;
  }

  .diamond-deck {
    height: 425px;
    transform: scale(0.72);
  }

  .diamond-diagram { --m-scale: 0.72; }
  /* remove the old .diamond-deck { height: 425px; transform: scale(0.72); } */

}