/* =========================================================
   Debenhams – Delivery Governance Programme
   Authority architecture case study styles
   ========================================================= */

/* ── Section base ── */
.deb-section {
  padding: 96px 20px;
}

.deb-band-white {
  background: #ffffff;
}

.deb-band-light {
  background: var(--cs-bg);
}

/* ── Local typography overrides ── */
.deb-case-study .section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-accent-teal);
  margin-bottom: 16px;
}

.deb-case-study .section-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--cs-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.deb-case-study .section-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--cs-text-light);
  max-width: 640px;
  margin-bottom: 0;
}

/* ── Hero adjustments ── */
.deb-case-study .floating-logo {
  margin-bottom: 20px;
}

.deb-case-study .floating-logo img {
  max-height: 25px;
}

.deb-case-study .cs-title-sub {
  display: block;
  font-size: 5.1rem;
  line-height: 1.06;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.deb-case-study .cs-title-main {
  display: block;
  font-size: 2.04rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
  line-height: 1.3;
  background: linear-gradient(180deg, #00F1AA 0%, #329A99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.deb-case-study .cs-title::after {
  content: '';
  display: block;
  width: min(760px, 86%);
  height: 1px;
  margin: 24px auto 0;
  background: linear-gradient(
    90deg,
    rgba(15, 15, 15, 0),
    rgba(15, 15, 15, 0.24),
    rgba(15, 15, 15, 0)
  );
}

.deb-case-study .cs-tagline {
  letter-spacing: 0.08em;
}

.deb-case-study .cs-tagline::after {
  content: '';
  display: block;
  width: min(560px, 78%);
  height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(
    90deg,
    rgba(15, 15, 15, 0),
    rgba(15, 15, 15, 0.2),
    rgba(15, 15, 15, 0)
  );
}

.deb-case-study .cs-intro {
  padding-bottom: 40px;
}

.deb-case-study .cs-hero-content {
  padding-bottom: 130px;
}

@media (min-width: 1024px) {
  .deb-case-study .cs-hero {
    min-height: 100vh;
    height: 100vh;
    padding: 0 20px;
  }

  .deb-case-study .cs-hero-content {
    margin-top: 108px;
    margin-bottom: 94px;
    min-height: calc(100vh - 108px - 94px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 0;
  }

  .deb-case-study .deb-hero-scope {
    padding: 16px 24px;
  }
}

.deb-case-study .deb-hero-scope {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 18px 24px;
  background: linear-gradient(
    90deg,
    rgba(15, 15, 15, 0.7) 0%,
    #1a1a1a 100%
  );
}

.deb-case-study .deb-scope-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: none;
}

.deb-case-study .deb-scope-pill:hover {
  background: transparent;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.deb-case-study .deb-scope-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
  text-align: center;
}

.deb-case-study .deb-scope-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cs-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  opacity: 0.8;
}

/* =========================================================
   CONTEXT – Structural Friction
   ========================================================= */

.deb-context {
  background: #ffffff;
  padding-top: 132px;
  --db-gs-progress: 0;
  --db-gs-cue: 0;
  --db-gs-cue-shift: 0;
  --db-gs-fade-authority: 0;
}

.db-gs-intro {
  max-width: 1200px;
  margin: 0 auto 28px;
  text-align: center;
}

.db-gs-intro-copy {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--cs-text-light);
}

.db-gs-intro .section-label,
.db-gs-intro .section-heading {
  text-align: center;
}

.db-gs-intro .section-heading {
  max-width: none;
}

.db-governance-scroll {
  --db-gs-progress: 0;
  --db-gs-align: 0;
  --db-gs-govern: 0;
  --db-gs-lock: 0;
  --db-gs-fade-friction: 0;
  --db-gs-fade-authority: 0;
  --db-gs-cue: 0;
  --db-gs-drift-x: 0px;
  --db-gs-drift-y: 0px;
  --db-gs-desktop-nav-offset: 76px;
  --db-gs-mobile-nav-offset: 76px;
  margin-top: 24px;
}

.db-gs-scroll {
  height: 235vh;
  position: relative;
}

.db-gs-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 32px 0;
}

@media (min-width: 769px) {
  .db-gs-pin {
    top: var(--db-gs-desktop-nav-offset);
    min-height: calc(100vh - var(--db-gs-desktop-nav-offset));
    align-items: center;
    padding: 0;
  }

  .db-gs-stage {
    height: calc(100vh - var(--db-gs-desktop-nav-offset) - 24px);
    max-height: none;
  }
}

.db-gs-stage {
  position: relative;
  height: clamp(460px, 66vh, 640px);
  border-radius: 14px;
  border: 1px solid rgba(149, 176, 185, 0.18);
  background:
    radial-gradient(circle at 66% 52%, rgba(80, 233, 191, calc(0.08 + (var(--db-gs-lock) * 0.12))), rgba(80, 233, 191, 0) 48%),
    linear-gradient(180deg, #131f2c 0%, #182935 100%);
  overflow: hidden;
}

.db-gs-layout {
  height: 100%;
  display: grid;
  grid-template-columns: 45% 55%;
}

.db-gs-content-plane {
  position: relative;
  padding: clamp(24px, 3vw, 44px);
  min-height: 100%;
  display: grid;
  align-items: center;
  z-index: 5;
}

.db-gs-panel {
  position: absolute;
  inset: clamp(24px, 3vw, 44px);
  display: grid;
  align-content: center;
  max-width: 96%;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms cubic-bezier(0.22, 1, 0.36, 1), transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.db-gs-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.db-gs-visual-plane {
  position: relative;
  min-width: 0;
  border-left: 1px solid rgba(166, 193, 202, 0.2);
  overflow: hidden;
}

.db-gs-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.db-gs-nodes circle {
  fill: rgba(214, 231, 236, 0.7);
  stroke: rgba(189, 211, 220, 0.55);
  stroke-width: 1.6;
  transform-origin: center;
}

.db-gs-lines path,
.db-gs-spine {
  fill: none;
  stroke: rgba(168, 190, 202, 0.55);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 420ms cubic-bezier(0.22, 1, 0.36, 1), stroke-width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.db-gs-lines-fric path {
  stroke-dasharray: calc(10 - (var(--db-gs-align) * 5)) calc(12 - (var(--db-gs-align) * 6));
  opacity: calc(0.34 + ((1 - var(--db-gs-fade-friction)) * 0.46));
  stroke-width: calc(1.2 + (var(--db-gs-align) * 0.3));
}

.db-gs-friction {
  opacity: calc(1 - var(--db-gs-fade-friction));
  transform: translate3d(
    calc(var(--db-gs-drift-x) * -0.5),
    calc((var(--db-gs-align) * 10px) + (var(--db-gs-drift-y) * -0.4)),
    0
  );
  transform-origin: center;
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.db-gs-authority {
  opacity: var(--db-gs-fade-authority);
  transform: translate3d(
    calc(var(--db-gs-drift-x) * 0.4),
    calc((1 - var(--db-gs-fade-authority)) * 12px + (var(--db-gs-drift-y) * 0.4)),
    0
  );
  transform-origin: center;
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.db-gs-spine {
  stroke: #56f2bc;
  stroke-width: calc(2.4 + (var(--db-gs-lock) * 0.9));
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - (var(--db-gs-govern) * 100));
}

.db-gs-lines-auth path {
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - (var(--db-gs-govern) * 100));
}

.db-gs-lines-primary path {
  stroke: #44dcb4;
  stroke-width: 2;
}

.db-gs-lines-peripheral path {
  stroke: rgba(112, 220, 186, 0.8);
  stroke-width: 1.3;
}

.db-gs-core-glow {
  fill: rgba(86, 242, 188, calc(0.08 + (var(--db-gs-lock) * 0.1)));
  opacity: calc(0.55 + (var(--db-gs-lock) * 0.3));
}

.db-gs-nodes-edge circle,
.db-gs-nodes-core circle {
  fill: rgba(105, 223, 194, 0.88);
  stroke: rgba(141, 245, 216, 0.92);
}

.db-gs-nodes-core circle:nth-child(3) {
  fill: rgba(152, 255, 228, 0.95);
  stroke: rgba(178, 255, 236, 0.98);
  filter: drop-shadow(0 0 calc(8px + (var(--db-gs-lock) * 10px)) rgba(130, 255, 225, calc(0.2 + (var(--db-gs-lock) * 0.24))));
}

.db-gs-authority .db-gs-lines-primary path,
.db-gs-authority .db-gs-lines-peripheral path,
.db-gs-authority .db-gs-spine,
.db-gs-authority .db-gs-nodes circle {
  opacity: calc(0.5 + (var(--db-gs-lock) * 0.5));
}

.db-gs-micro {
  position: absolute;
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(226, 240, 245, 0.8);
  background: rgba(22, 40, 51, 0.56);
  border: 1px solid rgba(138, 176, 188, 0.24);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.db-gs-micro-1,
.db-gs-micro-2 {
  opacity: calc(0.8 - (var(--db-gs-fade-friction) * 0.7));
}

.db-gs-micro-3,
.db-gs-micro-4 {
  opacity: calc(0.52 - (var(--db-gs-fade-friction) * 0.42));
}

.db-gs-micro-5 {
  opacity: calc(0.56 * (1 - var(--db-gs-fade-friction)));
}

.db-gs-micro-1 { top: 14%; left: 8%; }
.db-gs-micro-2 { top: 15%; right: 8%; }
.db-gs-micro-3 { bottom: 24%; right: 15%; }
.db-gs-micro-4 { bottom: 17%; left: 12%; }
.db-gs-micro-5 { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.db-gs-eyebrow {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(145, 224, 198, 0.94);
  margin-bottom: 14px;
}

.db-gs-title {
  margin: 0 0 14px;
  color: #edf5f8;
  max-width: 13ch;
  line-height: 1.04;
}

.db-gs-subline {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(209, 223, 230, 0.88);
  max-width: 32ch;
}

.db-gs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.db-gs-pills span {
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  border: 1px solid rgba(153, 190, 201, 0.34);
  background: rgba(22, 40, 51, 0.4);
  color: rgba(222, 235, 241, 0.92);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 11px;
  line-height: 1.2;
}

.db-gs-central-tag {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  border-radius: 100px;
  border: 1px solid rgba(152, 228, 207, 0.42);
  background: #0f0f0f;
  color: rgba(215, 249, 237, 0.96);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  white-space: nowrap;
  opacity: calc(var(--db-gs-fade-authority) * (0.3 + (var(--db-gs-lock) * 0.7)));
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.db-gs-after-footer {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  text-align: center;
  width: min(90%, 520px);
  opacity: calc(var(--db-gs-fade-authority) * (0.32 + (var(--db-gs-lock) * 0.68)));
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.db-gs-cue-bridge {
  height: clamp(210px, 30vh, 330px);
  display: grid;
  place-items: center;
  margin: 2px 0 4px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.db-gs-after-cue {
  opacity: calc(0.82 + (var(--db-gs-cue-shift) * 0.18));
  transition: opacity 220ms linear;
  pointer-events: none;
}

.db-gs-link-cue {
  width: 152px;
  height: 338px;
  display: block;
  overflow: visible;
}

.db-gs-cue-top-ring {
  fill: rgba(105, 132, 145, 0.62);
}

.db-gs-cue-top,
.db-gs-cue-bottom-group {
  transform-box: fill-box;
  transform-origin: center center;
}

.db-gs-cue-top {
  transform: scale(calc(2.7 - (var(--db-gs-cue-shift) * 1.95)));
  opacity: calc(1 - (var(--db-gs-cue-shift) * 0.32));
  transition: transform 100ms linear, opacity 100ms linear;
}

.db-gs-cue-top-core {
  fill: #1a2a37;
  stroke: rgba(176, 206, 217, 0.9);
  stroke-width: 2;
}

.db-gs-cue-glyph-challenge {
  fill: #d4e6ee;
}

.db-gs-cue-glyph-challenge-accent {
  fill: #1a2a37;
}

.db-gs-cue-line-base {
  stroke: rgba(145, 168, 176, 0.42);
  stroke-width: 3.2;
  stroke-linecap: round;
}

.db-gs-cue-line-active {
  stroke: #00f1aa;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 236;
  stroke-dashoffset: calc(236 - (var(--db-gs-cue-shift) * 236));
}

.db-gs-cue-bottom-ring {
  fill: rgba(0, 241, 170, 0.28);
}

.db-gs-cue-bottom-group {
  transform: translateY(var(--db-gs-cue-bottom-offset, 0px)) scale(calc(0.02 + (var(--db-gs-cue-shift) * 2.68)));
  transition: transform 100ms linear;
}

.db-gs-cue-bottom {
  fill: #00f1aa;
  opacity: calc(0.08 + (var(--db-gs-cue-shift) * 0.92));
}

.db-gs-cue-glyph-solution {
  fill: none;
  stroke: #063022;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.db-gs-after-flow {
  margin: 0;
  color: rgba(220, 238, 244, 0.94);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.db-gs-after-tech {
  margin: 6px 0 0;
  color: rgba(181, 207, 216, 0.9);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.db-gs-after-tech img {
  height: 12px;
  width: auto;
  display: block;
  opacity: 0.86;
  filter: grayscale(1) brightness(1.45) contrast(0.86);
}

@media (max-width: 1024px) {
  .deb-blueprint-quote {
    padding: 28px 26px;
    margin-bottom: 32px;
    border-radius: 20px;
  }

  .deb-blueprint-quote p {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
  }

  .db-governance-scroll {
    margin-top: 28px;
  }

  .db-gs-scroll {
    height: 250vh;
  }

  .db-gs-pin {
    top: 8px;
    min-height: calc(100vh - 8px);
  }

  .db-gs-stage {
    height: clamp(430px, 68vh, 640px);
  }

  .db-gs-layout {
    grid-template-columns: 48% 52%;
  }

  .db-gs-panel {
    max-width: 100%;
  }

  .db-gs-micro {
    font-size: 0.56rem;
    letter-spacing: 0.07em;
    padding: 4px 9px;
  }

  .db-gs-micro-1 { top: 12%; left: 6%; }
  .db-gs-micro-2 { top: 13%; right: 6%; }
  .db-gs-micro-3 { bottom: 18%; right: 10%; }
  .db-gs-micro-4 { bottom: 12%; left: 8%; }
  .db-gs-micro-5 { top: 46%; }
}

@media (max-width: 768px) {
  .deb-blueprint-quote {
    padding: 22px 18px;
    margin-bottom: 26px;
    border-radius: 18px;
  }

  .deb-blueprint-quote p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .db-gs-intro {
    margin-bottom: 22px;
  }

  .db-gs-intro-copy {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .db-gs-scroll {
    height: 285vh;
  }

  .db-gs-pin {
    top: var(--db-gs-mobile-nav-offset);
    min-height: calc(100vh - var(--db-gs-mobile-nav-offset));
    min-height: calc(100svh - var(--db-gs-mobile-nav-offset));
    padding: 10px 0;
  }

  .db-gs-stage {
    height: calc(100vh - var(--db-gs-mobile-nav-offset) - 20px);
    height: calc(100svh - var(--db-gs-mobile-nav-offset) - 20px);
    min-height: 0;
    max-height: none;
    border-radius: 12px;
  }

  .db-gs-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 42%) minmax(0, 58%);
  }

  .db-gs-content-plane {
    min-height: 0;
    padding: 16px 16px 10px;
    border-bottom: 1px solid rgba(148, 183, 194, 0.2);
  }

  .db-gs-panel {
    inset: 16px 16px 10px;
  }

  .db-gs-visual-plane {
    min-height: 0;
    border-left: 0;
  }

  .db-gs-subline {
    max-width: 34ch;
  }

  .db-gs-pills {
    gap: 6px;
    margin-top: 14px;
  }

  .db-gs-pills span {
    font-size: 0.58rem;
    padding: 5px 9px;
  }

  .db-gs-micro {
    font-size: 0.56rem;
    padding: 4px 8px;
    letter-spacing: 0.06em;
    max-width: 48vw;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .db-gs-micro-1 { top: 9%; left: 5%; }
  .db-gs-micro-2 { top: 14%; right: 5%; }
  .db-gs-micro-3 { bottom: 24%; right: 22%; }
  .db-gs-micro-4,
  .db-gs-micro-5 { display: none; }

  .db-gs-mobile-hide,
  .db-gs-mobile-hide-line {
    display: none;
  }

  .db-gs-central-tag {
    top: 49%;
    text-align: center;
    font-size: 0.56rem;
    padding: 7px 10px;
    max-width: 82%;
    white-space: normal;
    line-height: 1.28;
  }

  .db-gs-after-footer {
    bottom: 30px;
    width: 92%;
  }

  .db-gs-cue-bridge {
    height: clamp(172px, 24vh, 250px);
    margin: 4px 0 -2px;
  }

  .db-gs-link-cue {
    width: 124px;
    height: 316px;
  }

  .db-gs-after-cue {
    --db-gs-cue-bottom-offset: 26px;
  }

  .db-gs-after-flow {
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }

  .db-gs-after-tech {
    font-size: 0.54rem;
    gap: 6px;
  }

.db-gs-after-tech img {
  height: 10px;
}
}

/* =========================================================
   TRANSITION CUE – H to Tick with Output Reveal
   ========================================================= */

/* ── Conduit: H → Line → Image → Tags → Tick ───────────────────── */

.deb-cue-transition {
  --db-cue2-h-enter:        0;
  --db-cue2-line-grow:      0;
  --db-cue2-line-fill:      0;
  --db-cue2-image-in:       0;
  --db-cue2-image-out:      0;
  --db-cue2-image-parallax: 0;
  --db-cue2-image:          0;
  --db-cue2-msg-0:          0;
  --db-cue2-msg-1:          0;
  --db-cue2-msg-2:          0;
  --db-cue2-msg-3:          0;
  --db-cue2-msg-4:          0;
  --db-cue2-msg-5:          0;
  --db-cue2-msg-6:          0;
  --db-cue2-msg-7:          0;
  --db-cue2-h-scale:        1;
  --db-cue2-tick:           0;
  --db-cue2-tick-scale:     0.1;
  --db-cue2-unit-exit:      0;
  background: #ffffff;
  padding: 0;
  /* Balanced overlap for a mid-speed transition into the next section. */
  margin-bottom: -22vh;
}

/* Midpoint track length for balanced section handoff timing. */
.deb-cue2-scroll {
  height: 190vh;
  position: relative;
}

/* Sticky pin — holds 100vh while scroll track passes */
.deb-cue2-pin {
  position: sticky;
  top: 0;
  height: 100vh;
}

/* Single coordinate wrapper — unit exit moves everything upward */
.deb-cue2-conduit-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateY(calc(var(--db-cue2-unit-exit) * -34vh));
  will-change: transform;
}

/* ── H logo node ────────────────────────────────────────────────── */
/* z:5 — above image.
   Enters from above viewport: translateY(-30vh → 0) tied to h-enter.
   Grey-line uses the same translateY so they move as one unit.
   Visual style matches db-gs-cue-top: grey-blue ring, dark core. */
.deb-cue2-h-logo {
  position: absolute;
  left: 50%;
  top: 14vh;
  width: 48px;
  height: 48px;
  transform:
    translateX(-50%)
    translateY(calc((1 - var(--db-cue2-h-enter)) * 86vh))
    scale(var(--db-cue2-h-scale));
  transform-origin: bottom center;
  /* Mirrors db-gs-cue-top opacity: starts full, settles at ~0.72 */
  opacity: calc(1 - var(--db-cue2-h-enter) * 0.28);
  z-index: 5;
  will-change: transform, opacity;
}

.deb-cue2-h-svg {
  display: block;
  width: 48px;
  height: 48px;
  overflow: visible;
  /* Soft blue-white aura matching the ring stroke glow of db-gs-cue-top */
  filter: drop-shadow(0 0 8px rgba(176, 206, 217, 0.45));
}

.deb-cue2-h-ring {
  fill: rgba(105, 132, 145, 0.45);
}

.deb-cue2-h-core {
  fill: #1a2a37;
  stroke: rgba(176, 206, 217, 0.9);
  stroke-width: 2;
}

.deb-cue2-h-img {
  filter: brightness(0) invert(84%) sepia(40%) saturate(1248%) hue-rotate(96deg) brightness(98%) contrast(101%);
}

/* ── Grey line ──────────────────────────────────────────────────── */
/* z:1 — behind image.
   top = 14vh H position + 48px H node height.
   Uses the SAME translateY as H logo so they move as one entry unit.
   clip-path bottom uses max() to track tick position:
     — during grow phase: growth clip dominates (line reveals downward)
     — after grow: tick clip dominates (line bottom = tick circle centre)
       formula: 4vh + 48px + tick * 35vh
       at tick=0 → line reaches 115vh (tick start, off-screen)
       at tick=1 → line reaches 80vh (tick rest, within viewport) */
.deb-cue2-grey-line {
  position: absolute;
  left: 50%;
  top: calc(14vh + 48px);
  transform:
    translateX(-50%)
    translateY(calc((1 - var(--db-cue2-h-enter)) * 86vh));
  width: 2px;
  height: 105vh;
  background: rgba(145, 168, 176, 0.48);
  z-index: 0;
  clip-path: inset(0 0 max(calc((1 - var(--db-cue2-line-grow)) * 100%), calc(17vh + 48px + var(--db-cue2-tick) * 22vh)) 0);
  will-change: transform;
  overflow: hidden;
}

/* ── Green fill ─────────────────────────────────────────────────── */
/* Child of grey-line. Full height, scaleY from bottom.
   Because grey-line is fully grown (lineGrow=1) before fill starts
   (progress 0.15), there is no compound clip issue. */
.deb-cue2-line-fill {
  position: absolute;
  inset: 0;
  background: #00f1aa;
  transform: scaleY(var(--db-cue2-line-fill));
  transform-origin: top;
  will-change: transform;
}

/* ── Image container ────────────────────────────────────────────── */
/* z:3 — above line, below H.
   Centered at 50vh — midpoint of viewport during hold phase. */
.deb-cue2-image-container {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(680px, 90vw);
  aspect-ratio: 782 / 394; /* definite height so child % heights resolve */
  transform:
    translate(
      -50%,
      calc(
        -50%
        + calc((1 - var(--db-cue2-image-in)) * 20px)
        + calc(var(--db-cue2-image-parallax) * -18px)
        + calc(var(--db-cue2-image-out) * -140px)
      )
    )
    scale(calc(var(--db-cue2-image-in) - var(--db-cue2-image-out) * 0.3));
  opacity: var(--db-cue2-image);
  z-index: 3;
  will-change: transform, opacity;
}

/* Video sits behind the PNG frame, filling the iMac screen area.
   Coordinates measured from the 782×394 source image. */
.deb-cue2-video {
  position: absolute;
  left: 25%;
  top: 6%;
  width: 49%;
  height: 54%;
  object-fit: cover;
  z-index: 1;
}

/* PNG frame overlays the video — position:absolute so z-index is respected */
.deb-cue2-image-container > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  object-fit: fill;
  filter: saturate(0.95) contrast(0.98);
}

/* ── Message bubbles ─────────────────────────────────────────────── */
.deb-cue2-msg {
  position: absolute;
  max-width: 180px;
  padding: 11px 14px;
  background: #00f1aa;
  border-radius: 14px;
  font-size: 0.68rem;
  line-height: 1.6;
  font-weight: 400;
  color: #0f0f0f;
  letter-spacing: 0.01em;
  pointer-events: none;
  z-index: 7;
  will-change: transform, opacity;
  /* Vertical: towards top of image */
  top: calc(56vh - min(680px, 90vw) * 0.252 + 20px);
  /* Move with image Y animation */
  transform: translateY(calc(
    (1 - var(--db-cue2-image-in)) * 20px
    + var(--db-cue2-image-parallax) * -18px
    + var(--db-cue2-image-out) * -140px
  ));
}

.deb-cue2-msg--left {
  right: calc(50% + min(680px, 90vw) / 2 + 24px);
  border-bottom-right-radius: 4px;
  opacity: var(--db-cue2-msg-0);
}

.deb-cue2-msg--left::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 14px;
  border-width: 6px 0 6px 7px;
  border-style: solid;
  border-color: transparent transparent transparent #00f1aa;
}

.deb-cue2-msg--right {
  --db-cue2-msg-right-bg: #e8ecef;
  left: calc(50% + min(680px, 90vw) / 2 + 24px);
  background: var(--db-cue2-msg-right-bg);
  border-bottom-left-radius: 4px;
  opacity: var(--db-cue2-msg-1);
}

.deb-cue2-msg--left-2 {
  top: calc(56vh - min(680px, 90vw) * 0.252 + 84px);
  opacity: var(--db-cue2-msg-2);
}

.deb-cue2-msg--right-2 {
  top: calc(56vh - min(680px, 90vw) * 0.252 + 112px);
  opacity: var(--db-cue2-msg-3);
}

.deb-cue2-msg--left-3 {
  top: calc(56vh - min(680px, 90vw) * 0.252 + 160px);
  opacity: var(--db-cue2-msg-4);
}

.deb-cue2-msg--right-3 {
  top: calc(56vh - min(680px, 90vw) * 0.252 + 208px);
  opacity: var(--db-cue2-msg-5);
}

.deb-cue2-msg--left-4 {
  top: calc(56vh - min(680px, 90vw) * 0.252 + 256px);
  opacity: var(--db-cue2-msg-6);
}

.deb-cue2-msg--right-4 {
  top: calc(56vh - min(680px, 90vw) * 0.252 + 292px);
  opacity: var(--db-cue2-msg-7);
}

.deb-cue2-msg--left-4,
.deb-cue2-msg--right-4 {
  font-size: 1.7rem;
  line-height: 1;
}

.deb-cue2-msg--right::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 14px;
  border-width: 6px 7px 6px 0;
  border-style: solid;
  border-color: transparent var(--db-cue2-msg-right-bg) transparent transparent;
}

/* Reflow bubbles under the image on smaller screens */
@media (max-width: 1100px) {
  .deb-cue-transition {
    margin-bottom: -14vh;
  }

  .deb-cue2-msg {
    display: block;
    max-width: clamp(130px, 30vw, 220px);
    padding: 10px 11px;
    font-size: 0.6rem;
    line-height: 1.45;
    transform: translateY(calc(
      (1 - var(--db-cue2-image-in)) * 20px
      + var(--db-cue2-image-parallax) * -18px
      + var(--db-cue2-image-out) * -140px
    ));
  }

  .deb-cue2-msg--left-4,
  .deb-cue2-msg--right-4 {
    font-size: 2rem;
    line-height: 1;
  }

  .deb-cue2-msg--left,
  .deb-cue2-msg--left-2,
  .deb-cue2-msg--left-3,
  .deb-cue2-msg--left-4 {
    left: 16px;
    right: auto;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 14px;
  }

  .deb-cue2-msg--right,
  .deb-cue2-msg--right-2,
  .deb-cue2-msg--right-3,
  .deb-cue2-msg--right-4 {
    right: 16px;
    left: auto;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 14px;
  }

  .deb-cue2-msg--left {
    top: calc(56vh - min(500px, 92vw) * 0.252 - 208px);
  }

  .deb-cue2-msg--right {
    top: calc(56vh - min(500px, 92vw) * 0.252 - 168px);
  }

  .deb-cue2-msg--left-2 {
    top: calc(56vh - min(500px, 92vw) * 0.252 - 130px);
  }

  .deb-cue2-msg--right-2 {
    top: calc(56vh - min(500px, 92vw) * 0.252 - 90px);
  }

  .deb-cue2-msg--left-3 {
    top: calc(56vh - min(500px, 92vw) * 0.252 - 32px);
  }

  .deb-cue2-msg--left-4 {
    top: calc(56vh - min(500px, 92vw) * 0.252 + 60px);
  }

  .deb-cue2-msg--right-3 {
    top: calc(56vh - min(500px, 92vw) * 0.252 + 12px);
  }

  .deb-cue2-msg--right-4 {
    top: calc(56vh - min(500px, 92vw) * 0.252 + 88px);
  }

  .deb-cue2-msg--left::after {
    right: -6px;
    left: auto;
    border-width: 6px 0 6px 7px;
    border-color: transparent transparent transparent #00f1aa;
  }

  .deb-cue2-msg--right::after {
    left: -6px;
    right: auto;
    border-width: 6px 7px 6px 0;
    border-color: transparent var(--db-cue2-msg-right-bg) transparent transparent;
  }
}

/* ── Tick node ──────────────────────────────────────────────────── */
/* z:6 — topmost during entry. Matches db-gs-cue-bottom style.
   Rest position: circle centre at 80vh. Enters from 35vh below (115vh).
   Grey line bottom tracks tick centre via clip-path max() formula,
   so line and tick always appear connected during travel.
   transform-origin: 50% 24px keeps circle centre on axis during scale. */
.deb-cue2-tick-container {
  position: absolute;
  left: 50%;
  top: calc(80vh - 24px);
  width: 48px;
  height: 48px;
  transform:
    translateX(-50%)
    translateY(calc((1 - var(--db-cue2-tick)) * 22vh))
    scale(var(--db-cue2-tick-scale));
  transform-origin: 50% 24px;
  z-index: 6;
  will-change: transform;
}

.deb-cue2-tick-svg {
  display: block;
  width: 48px;
  height: 48px;
  overflow: visible;
}

.deb-cue2-tick-ring {
  fill: rgba(0, 241, 170, 0.18);
}

.deb-cue2-tick-core {
  fill: #00f1aa;
  /* Mirrors db-gs-cue-bottom opacity build: starts semi-transparent, arrives full */
  opacity: calc(0.15 + var(--db-cue2-tick) * 0.85);
}

.deb-cue2-tick-glyph {
  fill: none;
  stroke: #063022;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .deb-cue2-scroll {
    height: 180vh;
  }

  .deb-cue2-image-container {
    width: min(500px, 92vw);
  }

}

@media (max-width: 768px) {
  .deb-cue2-msg {
    max-width: clamp(84px, 24vw, 120px);
    padding: 8px 9px;
    font-size: 0.54rem;
    line-height: 1.4;
  }

  .deb-cue2-msg--left-4,
  .deb-cue2-msg--right-4 {
    font-size: 2rem;
    line-height: 1;
  }
}

@media (max-width: 560px) {
  .deb-cue-transition {
    margin-bottom: -18vh;
  }

  .deb-cue2-msg {
    max-width: clamp(90px, 38vw, 132px);
    top: calc(56vh - min(500px, 92vw) * 0.252 - 86px);
  }

  .deb-cue2-msg--left-4,
  .deb-cue2-msg--right-4 {
    font-size: 2rem;
    line-height: 1;
  }

  .deb-cue2-msg--left,
  .deb-cue2-msg--left-2,
  .deb-cue2-msg--left-3,
  .deb-cue2-msg--left-4 {
    left: calc(50% - min(500px, 92vw) / 2 + 10px);
    right: auto;
  }

  .deb-cue2-msg--right,
  .deb-cue2-msg--right-2,
  .deb-cue2-msg--right-3,
  .deb-cue2-msg--right-4 {
    right: calc(50% - min(500px, 92vw) / 2 + 10px);
    left: auto;
  }

  .deb-cue2-msg--left {
    top: calc(56vh - min(500px, 92vw) * 0.252 - 162px);
  }

  .deb-cue2-msg--right {
    top: calc(56vh - min(500px, 92vw) * 0.252 - 124px);
  }

  .deb-cue2-msg--left-2 {
    top: calc(56vh - min(500px, 92vw) * 0.252 - 86px);
  }

  .deb-cue2-msg--right-2 {
    top: calc(56vh - min(500px, 92vw) * 0.252 - 42px);
  }

  .deb-cue2-msg--left-3 {
    top: calc(56vh - min(500px, 92vw) * 0.252 + 150px);
  }

  .deb-cue2-msg--left-4 {
    top: calc(56vh - min(500px, 92vw) * 0.252 + 250px);
  }

  .deb-cue2-msg--right-3 {
    top: calc(56vh - min(500px, 92vw) * 0.252 + 196px);
  }

  .deb-cue2-msg--right-4 {
    top: calc(56vh - min(500px, 92vw) * 0.252 + 292px);
  }

  .deb-cue2-msg--left::after,
  .deb-cue2-msg--right::after {
    display: block;
    top: 14px;
  }

  .db-governance-scroll {
    margin-top: 32px;
  }

  .db-gs-stage {
    height: clamp(610px, 90vh, 740px);
  }

  .db-gs-title {
    max-width: 14ch;
  }

  .db-gs-subline {
    font-size: 0.86rem;
  }
}

.db-governance-scroll.is-static .db-gs-scroll {
  height: auto;
}

.db-governance-scroll.is-static .db-gs-pin {
  position: relative;
  top: auto;
  min-height: auto;
  display: block;
  padding: 0;
}

.db-governance-scroll.is-static .db-gs-stage {
  height: auto;
}

.db-governance-scroll.is-static .db-gs-panel {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: none;
  background: rgba(22, 40, 51, 0.58);
  border: 1px solid rgba(149, 176, 185, 0.2);
  border-radius: 10px;
  padding: 16px;
  margin: 0 0 14px;
}

.db-governance-scroll.is-static .db-gs-layout {
  grid-template-columns: 1fr;
}

.db-governance-scroll.is-static .db-gs-content-plane {
  padding: 18px;
  display: block;
}

.db-governance-scroll.is-static .db-gs-visual-plane {
  min-height: 280px;
  border-top: 1px solid rgba(149, 176, 185, 0.2);
  border-left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .db-governance-scroll {
    --db-gs-progress: 0;
    --db-gs-align: 0;
    --db-gs-govern: 0;
    --db-gs-lock: 0;
    --db-gs-fade-friction: 0;
    --db-gs-fade-authority: 0;
    --db-gs-cue: 0;
    --db-gs-drift-x: 0px;
    --db-gs-drift-y: 0px;
  }

  .db-governance-scroll .db-gs-panel,
  .db-governance-scroll .db-gs-friction,
  .db-governance-scroll .db-gs-authority,
  .db-governance-scroll .db-gs-lines path,
  .db-governance-scroll .db-gs-spine {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   EXECUTIVE MANDATE
   ========================================================= */

.deb-mandate-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.deb-mandate-context {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--cs-text-light);
  margin-top: 24px;
  max-width: 420px;
}

.deb-mandate-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 52px;
}

.deb-mandate-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--cs-bg);
  border-radius: 8px;
  border: 1px solid rgba(15, 15, 15, 0.05);
}

.deb-mandate-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cs-accent-teal);
  flex-shrink: 0;
  margin-top: 7px;
}

.deb-mandate-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cs-text);
  line-height: 1.55;
}

/* =========================================================
   AUTHORITY ARCHITECTURE – Blueprint
   ========================================================= */

.deb-blueprint {
  background: #ffffff;
  padding: 160px 20px;
}

.deb-blueprint-header {
  text-align: center;
  margin-bottom: 96px;
}

.deb-blueprint-intro {
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--cs-text-light);
}

.deb-blueprint-quote {
  margin: 0 auto 44px;
  padding: 30px;
  background: #0f0f0f;
  border-radius: 20px;
  border-left: 4px solid #00d9b0;
}

.deb-blueprint-quote p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  font-style: italic;
  font-weight: 500;
  text-align: center;
}

/* Schematic container */
.deb-schematic {
  max-width: 1100px;
  margin: 0 auto;
}

/* Column labels row */
.deb-schema-labels {
  display: grid;
  grid-template-columns: 1fr 80px minmax(240px, 280px) 80px 1fr;
  margin-bottom: 20px;
  align-items: end;
}

.deb-schema-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.35);
}

.deb-schema-label:last-child {
  text-align: right;
}

.deb-schema-label-spine {
  grid-column: 3;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-accent-teal);
  text-align: center;
}

/* Schema body: 5-column grid */
.deb-schema-body {
  display: grid;
  grid-template-columns: 1fr 80px minmax(240px, 280px) 80px 1fr;
  align-items: stretch;
  min-height: 340px;
}

/* Left: Parallel Functions */
.deb-schema-left {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-end;
  padding-right: 0;
}

.deb-fn-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
  padding: 13px 20px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 5px;
  background: transparent;
  transition: border-color 0.2s ease;
}

.deb-fn-node:hover {
  border-color: rgba(15, 15, 15, 0.22);
}

.deb-fn-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cs-text);
  letter-spacing: 0.01em;
}

/* Connector columns */
.deb-conn {
  position: relative;
  overflow: visible;
}

.deb-conn svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Center: Authority Spine */
.deb-schema-spine {
  align-self: center;
}

.deb-spine-inner {
  border: 1px solid rgba(50, 154, 153, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(50, 154, 153, 0.025);
}

.deb-spine-el {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px;
}

.deb-spine-divider {
  height: 1px;
  background: rgba(50, 154, 153, 0.14);
  margin: 0 18px;
}

.deb-spine-num {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--cs-accent-teal);
  opacity: 0.6;
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 16px;
}

.deb-spine-content h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cs-text);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.deb-spine-content p {
  font-size: 0.7rem;
  color: var(--cs-text-light);
  line-height: 1.45;
}

/* Right: Integrated Delivery Streams */
.deb-schema-right {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
}

.deb-del-node {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 200px;
  padding: 13px 16px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-left: 2px solid rgba(50, 154, 153, 0.5);
  border-radius: 0 5px 5px 0;
  background: transparent;
}

.deb-del-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cs-text);
  letter-spacing: 0.01em;
}

.deb-del-type {
  font-size: 0.62rem;
  color: var(--cs-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

/* Schematic footer */
.deb-schema-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(15, 15, 15, 0.06);
}

.deb-schema-state {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cs-text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deb-schema-state-governed {
  color: var(--cs-accent-teal);
}

.deb-schema-arrow-sym {
  color: rgba(15, 15, 15, 0.2);
  font-size: 1rem;
  font-weight: 300;
}

/* =========================================================
   STRUCTURAL PILLARS
   ========================================================= */

.deb-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}

.deb-pillar {
  background: #ffffff;
  border-radius: 10px;
  padding: 32px;
  border: 1px solid rgba(15, 15, 15, 0.06);
}

.deb-pillar-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.deb-pillar-letter {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid rgba(50, 154, 153, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cs-accent-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.deb-pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cs-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.deb-pillar-sub {
  font-size: 0.68rem;
  color: var(--cs-text-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.deb-pillar-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--cs-text-light);
  margin-bottom: 24px;
}

/* ── RACI visual ── */
.deb-raci-visual {
  border: 1px solid rgba(15, 15, 15, 0.07);
  border-radius: 7px;
  overflow: hidden;
}

.deb-raci-row {
  display: grid;
  grid-template-columns: 1fr repeat(4, 26px);
  gap: 6px;
  padding: 7px 10px;
  align-items: center;
  border-bottom: 1px solid rgba(15, 15, 15, 0.05);
  font-size: 0.7rem;
  color: var(--cs-text);
}

.deb-raci-row:last-child {
  border-bottom: none;
}

.deb-raci-head {
  background: rgba(15, 15, 15, 0.02);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--cs-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.deb-raci-dot {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
}

.deb-r { background: rgba(50, 154, 153, 0.12); color: var(--cs-accent-teal); }
.deb-a { background: rgba(0, 241, 170, 0.1); color: #329A99; }
.deb-c { background: rgba(15, 15, 15, 0.05); color: rgba(15, 15, 15, 0.45); }
.deb-i { background: rgba(15, 15, 15, 0.03); color: rgba(15, 15, 15, 0.3); }

/* ── Escalation visual ── */
.deb-esc-visual {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deb-esc-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid rgba(15, 15, 15, 0.07);
  background: rgba(15, 15, 15, 0.01);
}

.deb-esc-tier-3 {
  border-color: rgba(50, 154, 153, 0.22);
  background: rgba(50, 154, 153, 0.04);
}

.deb-esc-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cs-text);
}

.deb-esc-tier-3 .deb-esc-label {
  color: var(--cs-accent-teal);
}

.deb-esc-tag {
  font-size: 0.68rem;
  color: var(--cs-text-light);
}

.deb-esc-arrow-row {
  text-align: center;
  color: rgba(15, 15, 15, 0.18);
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: -0.5em;
  padding: 0;
}

/* ── Cadence timeline visual ── */
.deb-cad-visual {
  margin-top: 4px;
}

.deb-cad-track {
  display: flex;
  align-items: center;
}

.deb-cad-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(15, 15, 15, 0.12);
  flex-shrink: 0;
  background: transparent;
}

.deb-cad-node span {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--cs-text-light);
  text-align: center;
  line-height: 1.25;
  padding: 0 2px;
}

.deb-cad-node-active {
  border-color: rgba(50, 154, 153, 0.4);
  background: rgba(50, 154, 153, 0.05);
}

.deb-cad-node-active span {
  color: var(--cs-accent-teal);
}

.deb-cad-line {
  flex: 1;
  height: 1px;
  background: rgba(15, 15, 15, 0.1);
}

.deb-cad-label {
  font-size: 0.68rem;
  color: var(--cs-text-light);
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* =========================================================
   BEHAVIOUR SHIFT
   ========================================================= */

.deb-section.deb-structural-consequence {
  padding-top: 24px;
}

.deb-behaviour-intro {
  margin-bottom: 0;
}

.deb-shift-grid {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  margin-top: 64px;
  align-items: start;
}

.deb-shift-col {
  padding: 40px;
  border-radius: 10px;
}

.deb-shift-before {
  background: rgba(15, 15, 15, 0.02);
  border: 1px solid rgba(15, 15, 15, 0.06);
}

.deb-shift-after {
  background: rgba(50, 154, 153, 0.03);
  border: 1px solid rgba(50, 154, 153, 0.14);
}

.deb-shift-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.06);
}

.deb-shift-after .deb-shift-header {
  border-color: rgba(50, 154, 153, 0.12);
}

.deb-shift-state-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cs-text-light);
}

.deb-shift-state-label-governed {
  color: var(--cs-accent-teal);
}

.deb-shift-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deb-shift-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.deb-shift-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.2);
  flex-shrink: 0;
  margin-top: 8px;
}

.deb-shift-bullet-g {
  background: var(--cs-accent-teal);
}

.deb-shift-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--cs-text-light);
}

.deb-shift-after .deb-shift-text {
  color: var(--cs-text);
}

/* Divider between columns */
.deb-shift-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.deb-shift-div-line {
  flex: 1;
  width: 1px;
  background: rgba(15, 15, 15, 0.08);
}

.deb-shift-div-arrow {
  font-size: 1.1rem;
  color: rgba(15, 15, 15, 0.18);
  padding: 10px 0;
  font-weight: 300;
}

/* =========================================================
   STRUCTURAL LONGEVITY
   ========================================================= */

.deb-longevity-inner {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.deb-longevity-box {
  margin-top: 26px;
  border: 0;
  border-radius: 10px;
  background: #f7f7f5;
  padding: 22px 20px;
}

.deb-longevity-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cs-text);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.3;
}

.deb-longevity-body {
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--cs-text-light);
  margin-top: 0;
}

.deb-longevity-body + .deb-longevity-body {
  margin-top: 10px;
}

.deb-longevity-mark .deb-mechanism-icon-wrap {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.deb-longevity-icon {
  display: block;
  color: var(--cs-accent);
}

/* =========================================================
   OUTCOMES
   ========================================================= */

.deb-outcomes-grid {
  display: flex;
  flex-direction: column;
  margin-top: 64px;
}

.deb-outcome-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(15, 15, 15, 0.07);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.deb-outcome-item:first-child {
  border-top: 1px solid rgba(15, 15, 15, 0.07);
}

.deb-outcome-item[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.deb-outcome-item:nth-child(1) { transition-delay: 0s; }
.deb-outcome-item:nth-child(2) { transition-delay: 0.08s; }
.deb-outcome-item:nth-child(3) { transition-delay: 0.16s; }
.deb-outcome-item:nth-child(4) { transition-delay: 0.24s; }
.deb-outcome-item:nth-child(5) { transition-delay: 0.32s; }

.deb-outcome-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cs-accent-teal);
  letter-spacing: 0.06em;
  padding-top: 4px;
  opacity: 0.7;
}

.deb-outcome-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cs-text);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.deb-outcome-body p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--cs-text-light);
}

/* =========================================================
   OPERATING IMPACT – Unified Final Section
   ========================================================= */

.deb-op-impact .section-heading {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.deb-opi-support {
  max-width: 520px;
  margin-bottom: 0;
}

/* ── Impact pillars ── */
.deb-opi-qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
}

.deb-opi-qual-block {
  padding: 0 40px;
  border-left: 1px solid rgba(15, 15, 15, 0.09);
  text-align: center;
}

.deb-opi-qual-block:first-child {
  border-left: none;
  padding-left: 0;
}

.deb-opi-qual-block:last-child {
  padding-right: 0;
}

.deb-opi-pillar-icon {
  display: block;
  width: 36px;
  height: 36px;
  color: #00f1aa;
  margin: 0 auto 20px;
  stroke-width: 1.25;
}

.deb-opi-qual-block h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cs-text);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.deb-opi-qual-block p {
  font-size: 0.84rem;
  color: var(--cs-text-light);
  line-height: 1.65;
  margin: 0;
}

/* ── Metrics panel ── */
.deb-opi-metrics-stage {
  position: relative;
  overflow: hidden;
  margin-top: 64px;
}

.deb-opi-metrics-stage > * {
  position: relative;
  z-index: 1;
}

/* ── Primary metric: 01 ── */
.deb-opi-metric-primary {
  padding: 40px;
  background: linear-gradient(135deg, rgba(0, 241, 170, 0.05) 0%, rgba(70, 196, 148, 0.1) 100%);
  border-radius: 16px;
  border: 1px solid var(--cs-accent);
  position: relative;
}

.deb-opi-metric-primary[data-reveal] {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}

.deb-opi-metric-primary[data-reveal].visible {
  opacity: 1;
  transform: scale(1);
}

.deb-opi-primary-num {
  display: block;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cs-accent);
  margin-bottom: 24px;
}

.deb-opi-primary-rule {
  display: none;
}

.deb-opi-primary-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.deb-opi-primary-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cs-text);
}

.deb-opi-primary-detail {
  font-size: 0.875rem;
  color: var(--cs-text-light);
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

/* ── Secondary metrics: 02–05 (2×2 grid) ── */
.deb-opi-metric-sec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: 32px 0 0;
}

.deb-opi-metric-sec {
  padding: 40px;
  background: var(--cs-bg);
  border-radius: 16px;
  border: 1px solid rgba(0, 241, 170, 0.15);
}

.deb-opi-metric-sec[data-reveal] {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}

.deb-opi-metric-sec[data-reveal].visible {
  opacity: 1;
  transform: scale(1);
}

.deb-opi-metric-sec:nth-child(1)[data-reveal] { transition-delay: 0.10s; }
.deb-opi-metric-sec:nth-child(2)[data-reveal] { transition-delay: 0.20s; }
.deb-opi-metric-sec:nth-child(3)[data-reveal] { transition-delay: 0.30s; }
.deb-opi-metric-sec:nth-child(4)[data-reveal] { transition-delay: 0.40s; }

.deb-opi-metric-sec:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 241, 170, 0.15);
}

.deb-opi-sec-num {
  display: block;
  font-size: clamp(1.4rem, 3.5vw, 3.5rem);
  font-weight: 700;
  color: var(--cs-accent);
  line-height: 1;
  margin-bottom: 24px;
  white-space: nowrap;
}

.deb-opi-sec-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cs-text);
  margin-bottom: 12px;
}

.deb-opi-metric-sec p {
  font-size: 0.875rem;
  color: var(--cs-text-light);
  line-height: 1.6;
  margin: 0;
}

/* ── Closing line ── */
.deb-opi-closing {
  font-size: 0.76rem;
  color: var(--cs-text-light);
  text-align: center;
  letter-spacing: 0.06em;
  margin: 48px 0 0;
  padding-top: 36px;
  border-top: 1px solid rgba(15, 15, 15, 0.09);
  opacity: 0.65;
}

/* =========================================================
   RESPONSIVE – TABLET
   ========================================================= */

@media (max-width: 1024px) {
  .deb-case-study .cs-title-sub {
    font-size: 3.4rem;
  }

  .deb-case-study .cs-title-main {
    font-size: 1.7rem;
  }

  .deb-context {
    padding-top: 120px;
  }

  .deb-fric-panel {
    gap: 14px;
    padding: 16px;
  }

  .deb-fric-tile {
    padding: 18px;
  }

  .deb-fric-tile-core {
    grid-column: span 6;
  }

  .deb-section {
    padding: 96px 20px;
  }

  .deb-blueprint {
    padding: 120px 20px;
  }

  .deb-schema-labels {
    grid-template-columns: 1fr 56px minmax(200px, 240px) 56px 1fr;
  }

  .deb-schema-body {
    grid-template-columns: 1fr 56px minmax(200px, 240px) 56px 1fr;
  }

  .deb-mandate-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .deb-mandate-items {
    padding-top: 0;
  }

  .deb-pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .deb-longevity-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .deb-longevity-box {
    margin-top: 20px;
    padding: 22px 18px;
    border-radius: 12px;
  }

  .deb-mechanism-grid {
    gap: 14px;
  }

  .deb-mechanism-card,
  .deb-longevity-box--bento {
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: 0 10px 22px rgba(15, 15, 15, 0.06);
  }

  .deb-longevity-mark {
    display: none;
  }
}

@media (max-width: 768px) {
  .deb-case-study,
  .deb-case-study .case-study,
  .deb-case-study .cs-hero {
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }

  .deb-longevity-inner {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: flex-start;
  }

  .deb-longevity-mark {
    display: block;
  }

  .deb-longevity-mark .deb-mechanism-icon-wrap {
    width: 32px;
    height: 32px;
  }

  .deb-context {
    padding-top: 88px;
  }

  .deb-fric-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 40px;
    padding: 14px;
  }

  .deb-fric-visual-grid {
    width: 210px;
    height: 210px;
    top: -52px;
    right: -62px;
  }

  .deb-fric-visual-nodes {
    width: 260px;
    height: 154px;
    left: -82px;
    top: 56%;
  }

  .deb-fric-visual-ring {
    width: 160px;
    height: 160px;
    right: -30px;
    bottom: -62px;
  }

  .deb-fric-tile-primary,
  .deb-fric-tile-core,
  .deb-fric-tile-support {
    grid-column: 1 / -1;
  }

  .deb-fric-tile {
    padding: 16px;
    gap: 12px;
  }

  .deb-fric-icon-wrap {
    width: 26px;
    height: 26px;
  }

  .deb-fric-icon {
    width: 22px;
    height: 22px;
  }

  .deb-fric-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .deb-case-study .cs-hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 88px 20px 56px;
  }

  .deb-case-study .cs-hero-content {
    padding-bottom: calc(228px + env(safe-area-inset-bottom, 0px));
  }

  .deb-case-study .cs-title {
    margin-bottom: 18px;
  }

  .deb-case-study .cs-title-sub {
    font-size: 2.3rem;
    line-height: 1.08;
  }

  .deb-case-study .cs-title-main {
    font-size: 1.3rem;
  }

  .deb-case-study .deb-hero-scope {
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px calc(20px + env(safe-area-inset-bottom, 0px));
    align-items: center;
  }

  .deb-case-study .deb-scope-pill {
    padding: 0;
    flex: 0 0 auto;
    min-width: 0;
  }

  .deb-case-study .deb-scope-value {
    font-size: 1.1rem;
    line-height: 1.25;
    text-align: center;
  }

  .deb-case-study .deb-scope-label {
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }

  .deb-section {
    padding: 72px 20px;
  }

  .deb-blueprint {
    padding: 80px 20px;
  }

  .deb-blueprint-header {
    margin-bottom: 56px;
  }

  /* Collapse blueprint to single column */
  .deb-schema-labels {
    display: none;
  }

  .deb-schema-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: auto;
  }

  .deb-conn {
    display: none;
  }

  .deb-schema-left {
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-bottom: 24px;
  }

  .deb-schema-left,
  .deb-schema-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .deb-fn-node,
  .deb-del-node {
    max-width: none;
    width: auto;
    flex: 0 1 auto;
  }

  .deb-schema-spine {
    margin: 0 0 24px;
  }

  .deb-schema-right {
    margin-top: 24px;
  }

  .deb-schema-footer {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
  }

  /* Behaviour shift */
  .deb-shift-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .deb-shift-divider {
    flex-direction: row;
    padding: 0;
    height: 40px;
  }

  .deb-shift-div-line {
    flex: 1;
    width: auto;
    height: 1px;
  }

  .deb-shift-div-arrow {
    padding: 0 12px;
    transform: none;
  }

  .deb-shift-col {
    padding: 28px 24px;
  }
}

@media (max-width: 560px) {
  .deb-case-study .cs-title-sub {
    font-size: 1.8rem;
  }

  .deb-case-study .cs-title-main {
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .deb-mandate-layout {
    gap: 32px;
  }

  .deb-outcome-item {
    grid-template-columns: 40px 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .deb-fric-tag {
    font-size: 0.54rem;
    letter-spacing: 0.07em;
    padding: 4px 6px;
  }

  .deb-fric-visual-nodes {
    display: none;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .deb-outcome-item,
  .deb-opi-metric-primary,
  .deb-opi-metric-sec {
    transition: none;
  }
}

@media (max-width: 768px) {
  .deb-opi-qual-grid,
  .deb-opi-metric-sec-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .deb-opi-qual-block {
    border-left: none;
    border-top: 1px solid rgba(15, 15, 15, 0.09);
    padding: 28px 0;
    text-align: center;
  }

  .deb-opi-qual-block:first-child {
    border-top: none;
    padding-top: 0;
  }

  .deb-opi-qual-block:last-child {
    padding-bottom: 0;
  }

  .deb-opi-pillar-icon {
    margin: 0 auto 16px;
  }

  .deb-opi-metrics-stage {
    padding: 40px 0px 36px;
    margin-top: 48px;
  }

  .deb-opi-metric-sec-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 0;
  }

  .deb-opi-closing {
    margin-top: 28px;
    padding-top: 28px;
  }
}


/* =========================================================
   AUTHORITY ARCHITECTURE — SYSTEM DIAGRAM (v2)
   ========================================================= */

/* Override old padding */
.deb-blueprint {
  padding: 120px 20px;
}

/* Gray container wrapping the diagram */
.deb-sys-diagram {
  background: #f0f0ee;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

/* 5-zone flow grid: inputs | connector | spine | connector | outputs */
.deb-sys-flow {
  display: grid;
  grid-template-columns: 1fr 56px minmax(260px, 320px) 56px 1fr;
  align-items: start;
  gap: 0;
  padding: 48px 40px 40px;
  position: relative;
}

.deb-sys-flow::before {
  content: '';
  position: absolute;
  inset: -40px;
  background-image: url('../assets/debenhams/deb-bg-1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
  will-change: transform;
}

.deb-sys-flow > * {
  position: relative;
  z-index: 1;
}

/* Column labels */
.deb-sys-col-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cs-text-light);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ── INPUTS column ─────────────────────────── */
.deb-sys-inputs {
  display: flex;
  flex-direction: column;
  padding-right: 8px;
}

.deb-sys-input-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.deb-sys-input-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(15,15,15,0.08);
  border-radius: 8px;
  padding: 10px 14px;
}

/* Dark icon square */
.deb-sys-icon-sq {
  width: 34px;
  height: 34px;
  background: #0f0f0f;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cs-accent);
}

.deb-sys-input-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deb-sys-input-body strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cs-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.deb-sys-input-body span {
  font-size: 0.68rem;
  color: var(--cs-text-light);
  line-height: 1.3;
}

/* Pre-governance note */
.deb-sys-pre-state {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(15,15,15,0.08);
  padding-top: 16px;
}

.deb-sys-pre-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(15,15,15,0.38);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.deb-sys-pre-state span:not(.deb-sys-pre-label) {
  font-size: 0.7rem;
  color: rgba(15,15,15,0.44);
  line-height: 1.4;
}

.deb-sys-pre-state span:not(.deb-sys-pre-label)::before {
  content: '· ';
}

/* ── CONNECTORS ─────────────────────────────── */
.deb-sys-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  align-self: center;
}

/* ── SPINE (dominant dark card) ─────────────── */
.deb-sys-spine {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.deb-sys-spine-card {
  background: #0f0f0f;
  border-radius: 12px;
  padding: 32px 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.deb-sys-spine-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cs-accent);
  text-transform: uppercase;
}

.deb-sys-spine-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Stats row: 5 / 4 / 1 */
.deb-sys-spine-stats {
  display: flex;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.deb-sys-spine-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deb-sys-spine-stat strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cs-accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.deb-sys-spine-stat span {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Layer tags inside spine */
.deb-sys-spine-layers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.deb-sys-spine-layer {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.01em;
}

/* ── OUTPUTS column ─────────────────────────── */
.deb-sys-outputs {
  display: flex;
  flex-direction: column;
  padding-left: 8px;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
}

.deb-sys-output-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.deb-sys-output-group-pre {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
}

.deb-sys-output-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(15,15,15,0.38);
  text-transform: uppercase;
}

.deb-sys-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deb-sys-chip {
  display: inline-block;
  background: #ffffff;
  border: 1px solid rgba(15,15,15,0.12);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cs-text);
  line-height: 1;
  white-space: nowrap;
}

.deb-sys-chip-accent {
  background: var(--cs-accent);
  border-color: var(--cs-accent);
  color: #0f0f0f;
  font-weight: 700;
}

/* ── Stats bar (inside diagram container) ───── */
.deb-sys-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #0f0f0f;
  padding: 20px 40px;
  flex-wrap: wrap;
}

.deb-sys-stat-blk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.deb-sys-stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.deb-sys-stat-lbl {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.deb-sys-stat-sep {
  font-size: 1rem;
  color: var(--cs-accent);
  font-weight: 600;
  line-height: 1;
}

.deb-sys-stat-eq {
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  line-height: 1;
}

.deb-sys-stat-outcome .deb-sys-stat-val {
  color: var(--cs-accent);
  font-size: 1rem;
}

/* ── Mechanism cards below diagram ──────────── */
.deb-mechanism-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.deb-mechanism-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-radius: 16px;
  padding: 24px 22px;
  border: 1px solid rgba(15,15,15,0.08);
  box-shadow: 0 12px 28px rgba(15, 15, 15, 0.06);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.deb-mechanism-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 15, 15, 0.1);
  border-color: rgba(50, 154, 153, 0.28);
}

.deb-mechanism-card--light {
  background: linear-gradient(135deg, #ffffff 0%, #f6f8f8 100%);
}

.deb-mechanism-card--dark {
  background: linear-gradient(135deg, #0f1824 0%, #182a36 100%);
  border-color: rgba(151, 184, 196, 0.24);
  box-shadow: 0 16px 34px rgba(6, 16, 25, 0.28);
}

.deb-mechanism-card--accent {
  background: linear-gradient(135deg, rgba(0, 241, 170, 0.22) 0%, rgba(50, 154, 153, 0.2) 100%), #eaf7f3;
  border-color: rgba(50, 154, 153, 0.26);
}

.deb-mechanism-icon-wrap {
  width: 36px;
  height: 36px;
  border: 1px solid var(--cs-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cs-accent);
}

.deb-mechanism-card h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cs-text);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.3;
}

.deb-mechanism-card p {
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--cs-text-light);
  margin: 0;
}

.deb-mechanism-card--dark h4 {
  color: #eff7fa;
}

.deb-mechanism-card--dark p {
  color: rgba(218, 233, 239, 0.82);
}

.deb-mechanism-card--dark .deb-mechanism-icon-wrap {
  border-color: rgba(0, 241, 170, 0.76);
  color: #00f1aa;
  background: rgba(0, 241, 170, 0.08);
}

.deb-longevity-box--bento {
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 12px 28px rgba(15, 15, 15, 0.06);
  background: linear-gradient(135deg, #ffffff 0%, #f6f8f8 100%);
}

.deb-longevity-box--dark {
  border-radius: 16px;
  padding: 24px 22px;
  background: linear-gradient(135deg, #00D4B8 0%, #00f1aa 64%, #818589 100%);
  border-color: rgba(151, 184, 196, 0.24);
  box-shadow: 0 16px 34px rgba(6, 16, 25, 0.28);
}

.deb-longevity-box--dark .deb-longevity-title {
  color: rgba(0, 0, 0, 0.7);
}

.deb-longevity-box--dark .deb-longevity-body {
  color: rgba(0, 0, 0, 0.7);
}

.deb-longevity-box--dark .deb-longevity-mark .deb-mechanism-icon-wrap {
  border-color: #000000;
  color: #000000;
  background: transparent;
}

.deb-longevity-box--dark .deb-longevity-icon {
  color: #000000;
}


/* =========================================================
   STRUCTURAL PILLARS — FRAMEWORK LAYOUT (v2)
   ========================================================= */

.deb-fw-header {
  text-align: center;
  margin-bottom: 56px;
}

/* Outer gray container */
.deb-fw-container {
  background: #f0f0ee;
  border-radius: 16px;
  padding: 40px;
}

/* 3-column grid: side | center | side */
.deb-fw-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px) 1fr;
  gap: 20px;
  align-items: stretch;
}

/* ── Side cards (white) ─────────────────────── */
.deb-fw-card-side {
  background: #ffffff;
  border: 1px solid rgba(15,15,15,0.08);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.deb-fw-num {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(15,15,15,0.3);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.deb-fw-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cs-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.deb-fw-desc {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--cs-text-light);
  margin: 0;
  flex: 1;
}

.deb-fw-divider {
  height: 1px;
  background: rgba(15,15,15,0.08);
  margin: 20px 0;
}

.deb-fw-mechs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deb-fw-mech {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  color: var(--cs-text);
  line-height: 1.4;
}

.deb-fw-mech-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cs-accent);
  flex-shrink: 0;
}

/* ── Center card (dark dominant) ────────────── */
.deb-fw-card-center {
  background: #0f1113;
  border-radius: 12px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.deb-fw-center-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cs-accent);
  text-transform: uppercase;
}

.deb-fw-center-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.deb-fw-center-stats {
  display: flex;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.deb-fw-center-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.deb-fw-center-stat strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cs-accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.deb-fw-center-stat span {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.deb-fw-center-layers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.deb-fw-center-layer {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.01em;
}


/* =========================================================
   RESPONSIVE — SYSTEM DIAGRAM + FRAMEWORK (≤ 1024px)
   ========================================================= */

@media (max-width: 1024px) {

  /* System diagram: collapse to vertical stack */
  .deb-sys-flow {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 12px;
  }

  /* Stacking order: inputs → pre-governance → spine → outputs → tech stack */
  .deb-sys-inputs  { order: 1; }
  .deb-sys-spine   { order: 3; }
  .deb-sys-outputs { order: 4; }
  .deb-sys-connector { display: none; }

  .deb-sys-inputs,
  .deb-sys-outputs {
    padding: 0;
  }

  /* Pre-governance sits between inputs and spine */
  .deb-sys-pre-state {
    order: 2;
    margin-top: 4px;
    padding-bottom: 24px;
    text-align: left;
    align-items: flex-start;
  }

  /* Tech stack sits after outputs */
  .deb-sys-post-state {
    margin-top: 16px;
  }

  /* Outputs: breathing room above after pre-governance / spine */
  .deb-sys-outputs {
    padding-top: 12px;
  }

  /* Tech stack block — centered */
  .deb-sys-post-state {
    text-align: center;
    align-items: center;
  }
  .deb-sys-platform-logos {
    justify-content: center;
  }


  .deb-sys-spine-card {
    border-radius: 10px;
    padding: 28px 22px;
  }

  .deb-sys-stats-bar {
    padding: 16px 24px;
    gap: 12px;
  }

  /* Mechanism cards: 1 column on mobile */
  .deb-mechanism-grid {
    grid-template-columns: 1fr;
  }

  /* Framework: collapse side cards below center */
  .deb-fw-container {
    padding: 24px;
  }

  .deb-fw-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Center card first on mobile */
  .deb-fw-card-center { order: -1; }
}

@media (max-width: 768px) {
  .deb-sys-flow {
    padding: 24px 20px;
  }

  .deb-sys-input-stack {
    gap: 8px;
  }

  .deb-sys-spine-title {
    font-size: 1.15rem;
  }

  .deb-sys-spine-stats {
    gap: 16px;
  }

  .deb-fw-center-title {
    font-size: 1.25rem;
  }

  .deb-fw-center-stats {
    gap: 14px;
  }
}


/* =========================================================
   OUTPUTS — PLATFORM INFRASTRUCTURE BLOCK
   ========================================================= */

/* Supporting tech stack */
.deb-sys-post-state {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(15,15,15,0.08);
  padding-top: 16px;
  width: 100%;
}

/* Horizontal logo row */
.deb-sys-platform-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* IBM + dotdigital — both img tags, neutralised */
.deb-sys-platform-logo-ibm,
.deb-sys-platform-logo-dd {
  height: 14px;
  width: auto;
  display: block;
  flex-shrink: 0;
  opacity: 0.42;
  filter: grayscale(1) contrast(0.8);
}


/* =========================================================
   STRUCTURAL PILLARS — BLUEPRINT PANEL  (db-sp-*)
   ========================================================= */

/* ── Scroll cue (matched to Topshop/Topman) ── */
.deb-case-study .db-sp-scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #ffffff;
}

.deb-case-study .db-sp-scroll-cue::before,
.deb-case-study .db-sp-scroll-cue::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,15,15,0.12), transparent);
}

.deb-case-study .db-sp-scroll-cue::before {
  left: 0;
  right: calc(50% + 130px);
}

.deb-case-study .db-sp-scroll-cue::after {
  left: calc(50% + 130px);
  right: 0;
}

.deb-case-study .db-sp-scroll-cue .db-sp-scroll-cue-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #01201408;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 10px;
  padding: 14px 28px;
  position: relative;
  z-index: 2;
}

.deb-case-study .db-sp-scroll-cue .db-sp-cue-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: debScrollPulse 2s ease-in-out infinite;
}

.deb-case-study .db-sp-scroll-cue .db-sp-cue-icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(15, 15, 15, 0.64);
  stroke-width: 2;
  fill: none;
}

.deb-case-study .db-sp-scroll-cue .db-sp-cue-icon svg:last-child {
  opacity: 0.4;
  margin-top: -10px;
}

.deb-case-study .db-sp-scroll-cue .db-sp-scroll-cue-box span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(15, 15, 15, 0.64);
}

@keyframes debScrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(4px); opacity: 0.7; }
}

/* Section header */
.db-sp-header {
  margin-bottom: 40px;
  text-align: center;
}

.db-sp-subline {
  font-size: 0.9375rem;
  color: var(--cs-text-light);
  margin-top: 10px;
  line-height: 1.5;
}

/* Blueprint Panel */
.db-sp-panel {
  background: #f0f0ee;
  border: 1px solid rgba(15,15,15,0.10);
  border-radius: 14px;
  padding: 32px 32px 0;
  overflow: hidden;
  position: relative;
}

.db-sp-panel::before {
  content: '';
  position: absolute;
  inset: -40px;
  background-image: url('../assets/debenhams/deb-bg-2.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
  will-change: transform;
}

.db-sp-panel > * {
  position: relative;
  z-index: 1;
}

/* ── Column labels ── */
.db-sp-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 20px;
}

.db-sp-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(15,15,15,0.38);
}

.db-sp-label-core {
  color: var(--cs-accent-teal);
  text-align: center;
}

.db-sp-label-right {
  text-align: right;
}

.db-sp-label-em {
  font-weight: 400;
  opacity: 0.75;
}

/* ── Tiles wrapper (relative for spine positioning) ── */
.db-sp-tiles-wrap {
  position: relative;
}

/* ── 3-column tile grid ── */
.db-sp-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

/* ── Individual tile ── */
.db-sp-tile {
  padding: 24px 28px 56px;
  border-left: 1px solid rgba(15,15,15,0.09);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.db-sp-tile:first-child {
  border-left: none;
}

/* Center tile — teal top accent */
.db-sp-tile-core {
  border-top: 2px solid var(--cs-accent);
  padding-top: 22px;
  background: rgba(255, 255, 255, 0.8);
}

/* ── SVG Icon ── */
.db-sp-icon {
  width: 40px;
  height: 40px;
  color: var(--cs-text);
  flex-shrink: 0;
  margin-bottom: 2px;
}

/* ── Tile title ── */
.db-sp-tile-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cs-text);
  line-height: 1.3;
  margin: 0;
}

.db-sp-tile-core .db-sp-tile-title {
  font-size: 1.0625rem;
}

/* ── Tile descriptor ── */
.db-sp-tile-desc {
  font-size: 0.8125rem;
  color: var(--cs-text-light);
  line-height: 1.55;
  margin: 0;
}

/* ── Micro tags ── */
.db-sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.db-sp-tag {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cs-text);
  border: 1px solid rgba(15,15,15,0.18);
  border-radius: 100px;
  padding: 3px 7px;
  background: rgba(255,255,255,0.55);
}

/* ── Spine node ── */
.db-sp-tile-node {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15,15,15,0.22);
  z-index: 2;
}

.db-sp-tile-core .db-sp-tile-node {
  background: var(--cs-accent);
  width: 10px;
  height: 10px;
  bottom: 19px; /* keep center aligned with siblings: 20 + 4 - 5 = 19 */
}

/* ── Horizontal spine line ── */
/* Node center from tile bottom: bottom(20px) + radius(4px) = 24px */
.db-sp-spine-line {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(15,15,15,0.10);
  z-index: 1;
}

/* =========================================================
   db-sp-* MOBILE  (≤768px)
   ========================================================= */
@media (max-width: 768px) {
  .db-sp-panel {
    padding: 24px 20px 0;
    border-radius: 10px;
  }

  /* Hide desktop column labels — data-layer ::before used instead */
  .db-sp-labels {
    display: none;
  }

  /* Single column */
  .db-sp-tiles {
    grid-template-columns: 1fr;
  }

  .db-sp-tile {
    border-left: none;
    border-top: 1px solid rgba(15,15,15,0.08);
    padding: 24px 0 24px;
  }

  .db-sp-tile:first-child {
    border-top: none;
  }

  /* Governance Cadence — second on mobile (natural DOM order) */
  .db-sp-tile-core {
    border-top: 2px solid var(--cs-accent);
    padding-top: 24px;
    margin-top: 0;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 0;
  }

  /* Hide spine elements on mobile */
  .db-sp-spine-line,
  .db-sp-tile-node {
    display: none;
  }

  /* Panel bottom padding on mobile (tiles no longer provide it) */
  .db-sp-panel {
    padding-bottom: 24px;
  }

  /* Mobile data-layer label via data attribute */
  .db-sp-tile::before {
    content: attr(data-layer);
    display: block;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(15,15,15,0.38);
    margin-bottom: 12px;
  }

  .db-sp-tile-core::before {
    color: var(--cs-accent-teal);
  }
}

@media (max-width: 768px) {
  .is-samsung-device .deb-case-study .cs-hero-content {
    margin-top: var(--deb-samsung-hero-shift, 0px);
    zoom: var(--deb-samsung-hero-zoom, 1);
  }
}
