:root {
  --accent-teal: #00f1aa;
  --tstm-bg-light: #f5f5f3;
  --tstm-bg-light-alt: #f5f5f3;
  --tstm-bg-dark: #0f1113;
  --tstm-ink: #0f0f0f;
  --tstm-ink-muted: rgba(15, 15, 15, 0.64);
  --tstm-ink-dark-muted: rgba(245, 245, 243, 0.78);
  --tstm-line-light: rgba(15, 15, 15, 0.08);
  --tstm-line-dark: rgba(255, 255, 255, 0.12);
  --tstm-card-radius: 16px;
  --tstm-card-padding: 36px;
  --tstm-card-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  --tstm-text-max: 720px;
}

.topshop-case-study {
  background: var(--tstm-bg-light);
  color: var(--tstm-ink);
}

.topshop-case-study .cs-container {
  width: min(1100px, calc(100% - 48px));
  max-width: 1100px;
}

.topshop-case-study .tstm-section {
  padding: 120px 0;
}

/* ── Scroll cue ── */
.topshop-case-study .tstm-scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0;
  position: relative;
  background: var(--tstm-bg-light);
}
.topshop-case-study .tstm-scroll-cue::before,
.topshop-case-study .tstm-scroll-cue::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,15,15,0.12), transparent);
}
.topshop-case-study .tstm-scroll-cue::before {
  left: 0;
  right: calc(50% + 130px);
}
.topshop-case-study .tstm-scroll-cue::after {
  left: calc(50% + 130px);
  right: 0;
}
.topshop-case-study .tstm-scroll-cue .scroll-cue-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--tstm-bg-light);
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 10px;
  padding: 14px 28px;
  position: relative;
  z-index: 2;
}
.topshop-case-study .tstm-scroll-cue .cue-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: scrollPulse 2s ease-in-out infinite;
}
.topshop-case-study .tstm-scroll-cue .cue-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--tstm-ink-muted);
  stroke-width: 2;
  fill: none;
}
.topshop-case-study .tstm-scroll-cue .cue-icon svg:last-child {
  opacity: 0.4;
  margin-top: -10px;
}
.topshop-case-study .tstm-scroll-cue .scroll-cue-box span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--tstm-ink-muted);
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(4px); opacity: 0.7; }
}

.topshop-case-study .case-study > .tstm-section + .tstm-section {
  margin-top: 0px;
}
.topshop-case-study .tstm-context-problem {
  padding-bottom: 40px;
}
.topshop-case-study .tstm-arch-system {
  padding-top: 0;
  padding-bottom: 60px;
}
.topshop-case-study .tstm-ops-shift {
  padding-top: 70px;
}

.topshop-case-study .tstm-band-light {
  background: var(--tstm-bg-light);
}

.topshop-case-study .tstm-band-dark {
  background: var(--tstm-bg-dark);
  color: #f5f5f3;
  padding: 140px 0;
}

.topshop-case-study .section-label {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-teal);
  text-align: center;
}

.topshop-case-study .tstm-band-dark .section-label {
  color: var(--accent-teal);
}

.topshop-case-study .section-heading {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  font-variation-settings: "wght" 760;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: inherit;
  text-align: center;
}

.topshop-case-study .section-text {
  margin: 0 auto 20px;
  max-width: var(--tstm-text-max);
  color: var(--tstm-ink-muted);
  line-height: 1.7;
  font-size: 1rem;
  text-align: center;
}

.topshop-case-study .tstm-band-dark .section-text {
  color: var(--tstm-ink-dark-muted);
}

/* =========================================================
   CONTEXT / LIVE ENVIRONMENT — BENTO GRID
   ========================================================= */

.topshop-case-study .tstm-context-problem {
  background: var(--tstm-bg-light);
}

/* ── Bento grid ── */
.topshop-case-study .ctx-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(170px, auto);
  gap: 16px;
  margin-top: 48px;
}

/* ── Base card ── */
.topshop-case-study .ctx-card {
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topshop-case-study .ctx-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16);
}

/* ── Size modifiers ── */
.topshop-case-study .ctx-span2 { grid-column: span 2; }
.topshop-case-study .ctx-tall  { grid-row: span 2; }
.topshop-case-study .ctx-span-full { grid-column: span 4; }

/* ── Dark theme ── */
.topshop-case-study .ctx-dark {
  background: var(--tstm-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  justify-content: flex-end;
}

.topshop-case-study .ctx-dark h3 {
  color: #f5f5f3;
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topshop-case-study .ctx-dark p {
  color: var(--tstm-ink-dark-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Light theme ── */
.topshop-case-study .ctx-light {
  background: #ffffff;
  border: 1px solid var(--tstm-line-light);
  box-shadow: var(--tstm-card-shadow);
  justify-content: flex-start;
}

.topshop-case-study .ctx-light h3 {
  color: var(--tstm-ink);
  margin: 12px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topshop-case-study .ctx-light p {
  color: var(--tstm-ink-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Gradient theme ── */
.topshop-case-study .ctx-gradient {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #329a99 100%);
  justify-content: flex-start;
}

.topshop-case-study .ctx-gradient h3 {
  color: #012014;
  margin: 12px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topshop-case-study .ctx-gradient p {
  color: rgba(1, 32, 20, 0.75);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Problems card on gradient ── */
.topshop-case-study .ctx-gradient .ctx-problem-num {
  color: rgba(255, 255, 255, 0.75);
}
.topshop-case-study .ctx-gradient .ctx-problem-item h4 {
  color: #012014;
}
.topshop-case-study .ctx-gradient .ctx-problem-item p {
  color: rgba(1, 32, 20, 0.68);
}
.topshop-case-study .ctx-gradient .ctx-problems-divider {
  background: rgba(1, 32, 20, 0.15);
}

/* ── Icon chip ── */
.topshop-case-study .ctx-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topshop-case-study .ctx-light .ctx-card-icon {
  background: rgba(0, 241, 170, 0.12);
  color: #329a99;
}

.topshop-case-study .ctx-icon-dark {
  background: rgba(1, 32, 20, 0.14);
  color: #012014;
}

/* ── Card bottom row (text + IBM badge) ── */
.topshop-case-study .ctx-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

/* ── IBM hosted badge ── */
.topshop-case-study .ctx-ibm-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 12px;
  flex-shrink: 0;
}

.topshop-case-study .ctx-ibm-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 243, 0.45);
  white-space: nowrap;
}

.topshop-case-study .ctx-ibm-logo {
  height: 14px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 1;
  border-radius: 0;
  border: none;
}

/* ── Eyebrow label inside dark card ── */
.topshop-case-study .ctx-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 10px;
}

/* ── Visual stack (team node diagram) ── */
.topshop-case-study .ctx-visual-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.topshop-case-study .ctx-stack-node {
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245, 245, 243, 0.72);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topshop-case-study .ctx-stack-node::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  opacity: 0.55;
  flex-shrink: 0;
}

.topshop-case-study .ctx-stack-arrow {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(0, 241, 170, 0.4);
  margin: 2px 0;
}

.topshop-case-study .ctx-stack-hub {
  background: rgba(0, 241, 170, 0.08);
  border-color: rgba(0, 241, 170, 0.22);
  color: var(--accent-teal);
}

.topshop-case-study .ctx-stack-hub::after {
  opacity: 1;
}

/* ── Problems card ── */
.topshop-case-study .ctx-problems-card {
  justify-content: center;
  min-height: auto;
  padding: 36px;
}

.topshop-case-study .ctx-problems-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  width: 100%;
}

.topshop-case-study .ctx-problem-item {
  padding: 0 32px;
}

.topshop-case-study .ctx-problem-item:first-child { padding-left: 0; }
.topshop-case-study .ctx-problem-item:last-child  { padding-right: 0; }

.topshop-case-study .ctx-problem-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 10px;
}

.topshop-case-study .ctx-problem-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #f5f5f3;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.topshop-case-study .ctx-problem-item p {
  font-size: 0.88rem;
  line-height: 1.58;
  color: rgba(245, 245, 243, 0.56);
  margin: 0;
}

.topshop-case-study .ctx-problems-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  align-self: stretch;
  min-height: 80px;
}

.topshop-case-study .tstm-list {
  margin: 0 auto 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: var(--tstm-text-max);
  text-align: left;
}

.topshop-case-study .tstm-list li {
  padding-left: 18px;
  position: relative;
  color: inherit;
}

.topshop-case-study .tstm-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.topshop-case-study .tstm-hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 120px;
}

.topshop-case-study .tstm-hero .hero-bg-image {
  transform: scale(1.03);
}

.topshop-case-study .tstm-hero .hero-overlay {
  background: linear-gradient(65deg, #ffffff 10%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.15) 100%);
}

.topshop-case-study .tstm-hero .hero-system-mesh {
  display: none;
}

.topshop-case-study .tstm-hero .cs-hero-content {
  text-align: center;
  max-width: 1200px;
}

.topshop-case-study .tstm-hero .floating-logo {
  margin-bottom: 20px;
}

.topshop-case-study .tstm-hero .floating-logo img {
  max-height: 45px;
  width: auto;
  opacity: 0.9;
  filter: brightness(0);
  border: none;
  border-radius: 0;
}

.topshop-case-study .tstm-hero .cs-title {
  margin: 0 0 24px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.12;
}

.topshop-case-study .tstm-hero .cs-title-main {
  display: block;
  font-size: 5.1rem;
  line-height: 1.06;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #0f0f0f;
  color: #0f0f0f;
  margin-bottom: 0.75rem;
}

.topshop-case-study .tstm-hero .cs-title-sub {
  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;
}

.topshop-case-study .tstm-hero .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)
  );
}

.topshop-case-study .tstm-hero .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)
  );
}

.topshop-case-study .tstm-hero .cs-meta {
  justify-content: center;
  margin-bottom: 8px;
  color: var(--tstm-ink-muted);
}

.topshop-case-study .tstm-hero .cs-separator {
  color: var(--tstm-ink-muted);
}

.topshop-case-study .tstm-hero .cs-intro {
  margin: 0 auto;
  max-width: var(--tstm-text-max);
  color: var(--tstm-ink-muted);
  font-size: 1rem;
  line-height: 1.7;
  padding-bottom: 40px;
}

@media (max-width: 1024px) {
  .topshop-case-study .tstm-hero .cs-title-main {
    font-size: 3.4rem;
  }

  .topshop-case-study .tstm-hero .cs-title-sub {
    font-size: 1.7rem;
  }
}

@media (max-width: 767px) {
  .topshop-case-study .tstm-hero .cs-title-main {
    font-size: 2.3rem;
    line-height: 1.08;
  }

  .topshop-case-study .tstm-hero .cs-title-sub {
    font-size: 1.3rem;
  }
}

@media (max-width: 560px) {
  .topshop-case-study .tstm-hero .cs-title-main {
    font-size: 1.8rem;
  }

  .topshop-case-study .tstm-hero .cs-title-sub {
    font-size: 1.08rem;
    line-height: 1.35;
  }
}

.topshop-case-study .tstm-single-column {
  max-width: var(--tstm-text-max);
  margin: 0 auto;
}

.topshop-case-study .tstm-variation-copy {
  text-align: center;
}

.topshop-case-study .tstm-three-cards,
.topshop-case-study .tstm-four-cards {
  display: grid;
  gap: 32px;
}

.topshop-case-study .tstm-three-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topshop-case-study .tstm-four-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topshop-case-study .tstm-card,
.topshop-case-study .tstm-branch-diagram,
.topshop-case-study .result-item {
  border-radius: var(--tstm-card-radius);
  border: 1px solid var(--tstm-line-light);
  background: rgba(255, 255, 255, 0.78);
  padding: var(--tstm-card-padding);
  box-shadow: var(--tstm-card-shadow);
  min-height: 180px;
}

.topshop-case-study .tstm-band-dark .tstm-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.topshop-case-study .metric-card {
  transition: all 0.3s ease;
}

.topshop-case-study .metric-card:hover {
  transform: translateY(-4px);
}

.topshop-case-study .tstm-band-dark .metric-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.topshop-case-study .tstm-band-dark .metric-card.highlight {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.topshop-case-study .tstm-card h3 {
  margin: 0 0 12px;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.topshop-case-study .tstm-card p {
  margin: 0;
  line-height: 1.62;
  color: var(--tstm-ink-muted);
  text-align: center;
}

.topshop-case-study .tstm-band-dark .tstm-card p {
  color: var(--tstm-ink-dark-muted);
}

.topshop-case-study .tstm-variation-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.topshop-case-study .diagram-tier {
  display: grid;
  gap: 12px;
}

.topshop-case-study .tier-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topshop-case-study .tier-middle {
  grid-template-columns: minmax(0, 1fr);
}

.topshop-case-study .tier-bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topshop-case-study .diagram-node {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(15, 17, 19, 0.05);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: rgba(15, 15, 15, 0.8);
}

.topshop-case-study .diagram-node.highlight {
  background: var(--tstm-bg-dark);
  border-color: var(--accent-teal);
  color: #f5f5f3;
}

.topshop-case-study .branch-node {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 17, 19, 0.04);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(15, 15, 15, 0.86);
}

.topshop-case-study .branch-node.base {
  background: rgba(15, 17, 19, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.topshop-case-study .diagram-connector,
.topshop-case-study .branch-lines {
  height: 24px;
  position: relative;
}

.topshop-case-study .diagram-connector::before,
.topshop-case-study .branch-lines::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 10px;
  width: 1px;
  background: rgba(0, 0, 0, 0.12);
}

.topshop-case-study .diagram-connector::after,
.topshop-case-study .branch-lines::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}

.topshop-case-study .diagram-connector.connector-top::after {
  left: 12%;
  right: 12%;
}

.topshop-case-study .diagram-connector.connector-bottom::after {
  left: 12%;
  right: 12%;
}


/* ── Architecture & System: unified bento block ── */
.topshop-case-study .as-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
  margin-top: 48px;
}

.topshop-case-study .as-card {
  border-radius: var(--tstm-card-radius);
  padding: var(--tstm-card-padding);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: var(--tstm-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topshop-case-study .as-card h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--tstm-ink);
}

.topshop-case-study .as-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--tstm-ink-muted);
}

/* Span modifiers */
.topshop-case-study .as-span2     { grid-column: span 2; }
.topshop-case-study .as-tall      { grid-row: span 2; }
.topshop-case-study .as-span-full { grid-column: span 4; }

/* Dark card */
.topshop-case-study .as-dark {
  background: var(--tstm-bg-dark);
  border-color: rgba(255, 255, 255, 0.06);
}

.topshop-case-study .as-dark h3 {
  color: #f5f5f3;
}

.topshop-case-study .as-dark p {
  color: rgba(245, 245, 243, 0.65);
}

.topshop-case-study .as-dark .tstm-list li {
  color: rgba(245, 245, 243, 0.65);
}

/* Eyebrow label */
.topshop-case-study .as-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-teal);
}

/* Accent card (teal border, near-dark bg) */
.topshop-case-study .as-accent {
  background: rgba(15, 17, 19, 0.92);
  border: 1px solid var(--accent-teal);
}

.topshop-case-study .as-accent h3,
.topshop-case-study .as-accent p {
  color: rgba(245, 245, 243, 0.86);
}

/* ── Live flow diagram ── */
.topshop-case-study .as-flow {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.topshop-case-study .as-flow-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.topshop-case-study .as-fnode {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245, 245, 243, 0.72);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
  min-height: 44px;
}

.topshop-case-study .as-fhub {
  background: var(--accent-teal);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f1113;
  text-align: center;
  letter-spacing: -0.02em;
}

.topshop-case-study .as-fconnector {
  height: 28px;
  display: flex;
  justify-content: center;
  position: relative;
}

.topshop-case-study .as-fconnector::before {
  content: '';
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.14);
}

/* ── Module card visual elements ── */
.topshop-case-study .as-vis-spine,
.topshop-case-study .as-vis-dots,
.topshop-case-study .as-vis-parity,
.topshop-case-study .as-vis-stages {
  border-radius: 6px;
  flex-shrink: 0;
}

/* Template Spine: 3 stacked bars diminishing width */
.topshop-case-study .as-vis-spine {
  height: 48px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)) 0 0   / 100% 12px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.09)) 0 18px / 72%  12px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)) 0 36px / 46%  12px no-repeat;
}

/* Content Module Set: repeating dot grid */
.topshop-case-study .as-vis-dots {
  height: 48px;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.14) 2px, transparent 2px);
  background-size: 16px 16px;
  background-position: 4px 4px;
}

/* Web/App Parity: two frame outlines side by side */
.topshop-case-study .as-vis-parity {
  height: 48px;
  display: flex;
  gap: 8px;
}

.topshop-case-study .as-vis-parity span {
  flex: 1;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

/* Buyer-Stage Blocks: 3 connected pills (Discovery → Eval → Conversion) */
.topshop-case-study .as-vis-stages {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.topshop-case-study .as-vis-stages span {
  flex: 1;
  height: 24px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.topshop-case-study .as-vis-stages span:last-child {
  background: rgba(15, 17, 19, 0.1);
  border-color: rgba(15, 17, 19, 0.14);
}

/* Full-width assembly card */
.topshop-case-study .as-assembly {
  min-height: 0;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.topshop-case-study .as-assembly h3 {
  flex-shrink: 0;
  font-size: 1.1rem;
  max-width: 220px;
}

.topshop-case-study .as-assembly p {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 40px;
}

/* tstm-list inside a bento card: remove centering constraints */
.topshop-case-study .as-card .tstm-list {
  margin: 0;
  max-width: none;
}

/* ── Pipeline: Inputs → Framework → Outputs ── */
.topshop-case-study .as-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--tstm-card-radius);
  padding: 24px;
}
.topshop-case-study .as-pipeline-intro {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.topshop-case-study .as-pipeline-label {
  display: block;
  text-align: center;
  margin-bottom: 10px;
  padding-top: 16px;
}
.topshop-case-study .as-pipeline-heading {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--tstm-ink);
  text-align: center;
  margin: 0 0 10px;
}
.topshop-case-study .as-pipeline-desc {
  max-width: 480px;
  font-size: 0.82rem;
  color: var(--tstm-ink-muted);
  text-align: center;
  line-height: 1.7;
  margin: 0;
}

.topshop-case-study .as-pl-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topshop-case-study .as-pl-inputs,
.topshop-case-study .as-pl-outputs {
  flex: 1;
}

.topshop-case-study .as-pl-engine {
  flex: 0 0 220px;
}

.topshop-case-study .as-pl-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tstm-ink-muted);
  flex-shrink: 0;
}

.topshop-case-study .as-pl-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

/* Input items */
.topshop-case-study .as-pl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  flex: 1;
}

.topshop-case-study .as-pl-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--tstm-bg-dark);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Icon patterns */
.topshop-case-study .as-icon-brand::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.topshop-case-study .as-icon-calendar::before {
  content: '';
  position: absolute;
  inset: 7px;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 5px 5px;
}

.topshop-case-study .as-icon-product::before {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: rgba(255,255,255,0.6);
  box-shadow: 0 4px 0 rgba(255,255,255,0.4), 0 -4px 0 rgba(255,255,255,0.4);
}

.topshop-case-study .as-icon-market::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
}

.topshop-case-study .as-pl-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.topshop-case-study .as-pl-item-body strong {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--tstm-ink);
  display: block;
}

.topshop-case-study .as-pl-item-body span {
  font-size: 0.67rem;
  color: var(--tstm-ink-muted);
  line-height: 1.35;
}

/* Arrow connectors */
.topshop-case-study .as-pl-arrow {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 26px;
}

.topshop-case-study .as-pl-arrow::before {
  content: '';
  position: absolute;
  left: 4px;
  right: 14px;
  top: 50%;
  height: 1.5px;
  background: var(--accent-teal);
  transform: translateY(-50%);
}

.topshop-case-study .as-pl-arrow::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--accent-teal);
}

/* Hub / engine card */
.topshop-case-study .as-pl-hub {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: var(--tstm-bg-dark);
  border-radius: 10px;
  padding: 20px 18px;
}

.topshop-case-study .as-pl-hub-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-teal);
}

.topshop-case-study .as-pl-hub h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f5f5f3;
  line-height: 1.3;
}

.topshop-case-study .as-pl-hub-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topshop-case-study .as-pl-hub-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.topshop-case-study .as-pl-hub-stats strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f5f5f3;
  line-height: 1;
}

.topshop-case-study .as-pl-hub-stats span {
  font-size: 0.58rem;
  color: rgba(245,245,243,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.topshop-case-study .as-pl-hub-tags {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.topshop-case-study .as-pl-hub-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(245,245,243,0.55);
  padding: 7px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.07);
}

/* Output groups */
.topshop-case-study .as-pl-output-groups {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.topshop-case-study .as-pl-output-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  padding: 13px 12px;
}

.topshop-case-study .as-pl-output-tag {
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tstm-ink-muted);
}

.topshop-case-study .as-pl-output-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.topshop-case-study .as-pl-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 100px;
  color: var(--tstm-ink);
}

.topshop-case-study .as-chip-teal {
  background: rgba(0,241,170,0.1);
  border-color: rgba(0,241,170,0.28);
  color: #00956a;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4 — OPERATING MODEL SHIFT
   ═══════════════════════════════════════════════════════════ */

.topshop-case-study .tstm-ops-shift .ops-framing {
  color: var(--tstm-ink-dark-muted);
}

.topshop-case-study .ops-split {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  margin-top: 56px;
  gap: 0;
}

/* Wireframe */
.topshop-case-study .ops-wireframe {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.topshop-case-study .ops-wf-frame {
  width: 100%;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.topshop-case-study .ops-wf-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  width: 40%;
}
.topshop-case-study .ops-wf-hero {
  height: 72px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}
.topshop-case-study .ops-wf-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.topshop-case-study .ops-wf-block {
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}
/* Enhanced chrome & nav */
.topshop-case-study .ops-wf-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 10px;
}
.topshop-case-study .ops-wf-chrome-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.topshop-case-study .ops-wf-chrome-search {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}
.topshop-case-study .ops-wf-nav {
  height: 5px;
  width: 55%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 10px;
}
/* Second block row — asymmetric 2-col */
.topshop-case-study .ops-wf-blocks-b {
  grid-template-columns: 3fr 2fr;
}
.topshop-case-study .ops-wf-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
}
.topshop-case-study .ops-wf-short {
  width: 55%;
}
.topshop-case-study .ops-wf-caption {
  display: block;
  margin-top: 12px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
}

/* Connector */
.topshop-case-study .ops-connector {
  position: relative;
  align-self: stretch;
}
.topshop-case-study .ops-conn-spine {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 1px;
  height: 66%;
  background: rgba(255, 255, 255, 0.1);
}
.topshop-case-study .ops-conn-branch {
  position: absolute;
  left: 50%;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.topshop-case-study .ops-conn-branch:nth-child(2) { top: calc(50% - 56px); }
.topshop-case-study .ops-conn-branch:nth-child(3) { top: 50%; }
.topshop-case-study .ops-conn-branch:nth-child(4) { top: calc(50% + 56px); }

/* Rule blocks */
.topshop-case-study .ops-rules {
  display: flex;
  flex-direction: column;
}
.topshop-case-study .ops-rule {
  padding: 22px 0 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.topshop-case-study .ops-rule:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topshop-case-study .ops-rule-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 8px;
}
.topshop-case-study .ops-rule p {
  font-size: 0.88rem;
  color: var(--tstm-ink-dark-muted);
  line-height: 1.6;
  margin: 0;
}

.topshop-case-study .tstm-closing-line {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(245, 245, 243, 0.4);
  margin-top: 56px;
  letter-spacing: 0.06em;
}

/* Platform logo strip */
.topshop-case-study .ops-logo-strip {
  margin-top: 40px;
}
.topshop-case-study .ops-logo-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 32px;
}
.topshop-case-study .ops-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.topshop-case-study .ops-logo-img {
  height: 28px;
  width: auto;
  opacity: 0.8;
  filter: brightness(0) invert(1);
  user-select: none;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   OPERATING MODEL — LAYER 2: EMBEDDED CADENCE
   ═══════════════════════════════════════════════════════════ */

.topshop-case-study .ops-layer-div {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 32px 0;
}

.topshop-case-study .ops-cadence-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-teal);
  text-align: center;
  margin-bottom: 16px;
}

.topshop-case-study .ops-cadence-heading {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  font-variation-settings: "wght" 760;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #f5f5f3;
  text-align: center;
  margin: 0 0 16px;
}

.topshop-case-study .ops-cadence-framing {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 52px;
  font-size: 0.9rem;
  color: var(--tstm-ink-dark-muted);
  line-height: 1.65;
}

/* Cadence strip overrides — dark band context */
.topshop-case-study .tstm-ops-shift .cad-dot {
  background: rgba(245, 245, 243, 0.35);
  opacity: 1;
}
.topshop-case-study .tstm-ops-shift .cad-line {
  background: rgba(255, 255, 255, 0.1);
}
.topshop-case-study .tstm-ops-shift .cad-node h3 {
  color: rgba(245, 245, 243, 0.9);
}
.topshop-case-study .tstm-ops-shift .cad-node p {
  color: var(--tstm-ink-dark-muted);
}
.topshop-case-study .tstm-ops-shift .cad-index {
  color: var(--accent-teal);
}

/* ═══════════════════════════════════════════════════════════
   DELIVERY CADENCE (base styles — shared)
   ═══════════════════════════════════════════════════════════ */

.topshop-case-study .cad-strip {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
}
.topshop-case-study .cad-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.topshop-case-study .cad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tstm-ink);
  opacity: 0.2;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.topshop-case-study .cad-line {
  flex: 0 0 32px;
  height: 1px;
  background: var(--tstm-line-light);
  margin-top: 3px;
  align-self: flex-start;
  flex-shrink: 0;
}
.topshop-case-study .cad-body {
  text-align: center;
  padding: 0 16px;
}
.topshop-case-study .cad-index {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 10px;
}
.topshop-case-study .cad-node h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tstm-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.topshop-case-study .cad-node p {
  font-size: 0.82rem;
  color: var(--tstm-ink-muted);
  line-height: 1.6;
  margin: 0;
}

.topshop-case-study .tstm-closing-line-light {
  text-align: center;
  font-size: 0.82rem;
  color: var(--tstm-ink-muted);
  margin-top: 56px;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 6 — ORGANISATIONAL IMPACT
   ═══════════════════════════════════════════════════════════ */

.topshop-case-study .org-panel {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--tstm-line-light);
  padding-top: 48px;
}
.topshop-case-study .org-col {
  flex: 1;
  padding: 0 40px;
  text-align: center;
}
.topshop-case-study .org-col:first-child { padding-left: 0; }
.topshop-case-study .org-col:last-child  { padding-right: 0; }
.topshop-case-study .org-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tstm-ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.topshop-case-study .org-col p {
  font-size: 0.85rem;
  color: var(--tstm-ink-muted);
  line-height: 1.65;
  margin: 0;
}
.topshop-case-study .org-divider {
  width: 1px;
  background: var(--tstm-line-light);
  align-self: stretch;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 6 — OPERATING IMPACT
   ═══════════════════════════════════════════════════════════ */

.topshop-case-study .oi-panel {
  margin-top: 56px;
  border: 1px solid var(--tstm-line-light);
  border-radius: var(--tstm-card-radius);
  overflow: hidden;
}

/* Top row — three equal behavioural columns */
.topshop-case-study .oi-top {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 40px;
}
.topshop-case-study .oi-top-col {
  flex: 1;
  padding: 0 32px;
}
.topshop-case-study .oi-top-col:first-child { padding-left: 0; }
.topshop-case-study .oi-top-col:last-child  { padding-right: 0; }
.topshop-case-study .oi-top-col h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tstm-ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.topshop-case-study .oi-top-col p {
  font-size: 0.84rem;
  color: var(--tstm-ink-muted);
  line-height: 1.65;
  margin: 0;
}
.topshop-case-study .oi-top-div {
  width: 1px;
  background: var(--tstm-line-light);
  align-self: stretch;
  flex-shrink: 0;
}

/* Row divider */
.topshop-case-study .oi-row-div {
  height: 1px;
  background: var(--tstm-line-light);
  margin: 0 40px;
}

/* Bottom row — asymmetric results */
.topshop-case-study .oi-bottom {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 40px;
}
.topshop-case-study .oi-metric-major {
  flex: 2;
  padding-right: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.topshop-case-study .oi-col-div {
  width: 1px;
  background: var(--tstm-line-light);
  align-self: stretch;
  flex-shrink: 0;
}
.topshop-case-study .oi-minor-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 40px;
}
.topshop-case-study .oi-inner-div {
  height: 1px;
  background: var(--tstm-line-light);
  flex-shrink: 0;
}
.topshop-case-study .oi-minor-stack .oi-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 0;
}
.topshop-case-study .oi-minor-stack .oi-metric:first-child { padding-top: 0; }
.topshop-case-study .oi-minor-stack .oi-metric:last-child  { padding-bottom: 0; }

/* Shared metric typography */
.topshop-case-study .oi-metric-eyebrow {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 10px;
}
.topshop-case-study .oi-metric p {
  font-size: 0.88rem;
  color: var(--tstm-ink-muted);
  line-height: 1.6;
  margin: 0;
}
.topshop-case-study .oi-metric-major p {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   UNIFIED OPERATING IMPACT
   ═══════════════════════════════════════════════════════════ */

/* Context qualifier */
.topshop-case-study .opi-qualifier {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #329A8E;
  text-align: center;
  margin: 6px auto 48px;
}

/* Impact pillars — top half */
.topshop-case-study .opi-qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0;
}
.topshop-case-study .opi-qual-block {
  padding: 0 40px;
  border-left: 1px solid var(--tstm-line-light);
}
.topshop-case-study .opi-qual-block:first-child { border-left: none; padding-left: 0; }
.topshop-case-study .opi-qual-block:last-child { padding-right: 0; }

/* Pillar icon */
.topshop-case-study .opi-pillar-icon {
  display: block;
  width: 36px;
  height: 36px;
  color: var(--accent-teal);
  margin: 0 auto 20px;
  stroke-width: 1.25;
}
.topshop-case-study .opi-qual-block h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tstm-ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: center;
}
.topshop-case-study .opi-qual-block p {
  font-size: 0.84rem;
  color: var(--tstm-ink-muted);
  line-height: 1.65;
  margin: 0;
  text-align: center;
}

/* Legacy divider hidden */
.topshop-case-study .opi-section-div { display: none; }

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

/* Primary metric */
.topshop-case-study .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;
}
.topshop-case-study .opi-metric-primary[data-reveal] {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}
.topshop-case-study .opi-metric-primary[data-reveal].visible {
  opacity: 1;
  transform: scale(1);
}
.topshop-case-study .opi-primary-num {
  display: block;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cs-accent);
  margin-bottom: 24px;
}
.topshop-case-study .opi-primary-rule { display: none; }
.topshop-case-study .opi-primary-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.topshop-case-study .opi-primary-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tstm-ink);
}
.topshop-case-study .opi-primary-detail {
  font-size: 0.875rem;
  color: var(--tstm-ink-muted);
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

/* Secondary metrics */
.topshop-case-study .opi-metric-sec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: 32px 0 0;
}
.topshop-case-study .opi-metric-sec {
  padding: 40px;
  background: var(--cs-bg);
  border-radius: 16px;
  border: 1px solid rgba(0, 241, 170, 0.15);
}
.topshop-case-study .opi-metric-sec:not(.opi-metric-sec--major) {
  background: #f0f0ee;
}
.topshop-case-study .opi-metric-sec--major {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(0, 241, 170, 0.05) 0%, rgba(70, 196, 148, 0.1) 100%);
  border-color: var(--cs-accent);
}
.topshop-case-study .opi-metric-sec[data-reveal] {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
}
.topshop-case-study .opi-metric-sec[data-reveal].visible {
  opacity: 1;
  transform: scale(1);
}
.topshop-case-study .opi-metric-sec:nth-child(1)[data-reveal] { transition-delay: 0.1s; }
.topshop-case-study .opi-metric-sec:nth-child(2)[data-reveal] { transition-delay: 0.2s; }
.topshop-case-study .opi-metric-sec:nth-child(3)[data-reveal] { transition-delay: 0.3s; }
.topshop-case-study .opi-metric-sec:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 241, 170, 0.15);
}
.topshop-case-study .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;
}
.topshop-case-study .opi-metric-sec--major .opi-sec-num {
  font-size: 5rem;
}
.topshop-case-study .opi-sec-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tstm-ink);
  margin-bottom: 12px;
}
.topshop-case-study .opi-metric-sec p {
  font-size: 0.875rem;
  color: var(--tstm-ink-muted);
  line-height: 1.6;
  margin: 0;
}

/* Closing line */
.topshop-case-study .opi-closing {
  font-size: 0.76rem;
  color: var(--tstm-ink-muted);
  text-align: center;
  letter-spacing: 0.06em;
  margin: 48px 0 0;
  padding-top: 36px;
  border-top: 1px solid var(--tstm-line-light);
  opacity: 0.65;
}

/* Pipeline responsive */
@media (max-width: 1080px) {
  .topshop-case-study .as-pl-engine { flex: 0 0 190px; }
  .topshop-case-study .as-pl-arrow  { flex: 0 0 36px; }
  .topshop-case-study .as-pipeline  { padding: 16px; }
  .topshop-case-study .tstm-scroll-cue { padding: 40px 0; }
}

@media (max-width: 760px) {
  .topshop-case-study .tstm-scroll-cue { padding: 28px 0; }
  .topshop-case-study .as-pipeline {
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .topshop-case-study .as-pl-engine {
    flex: 0 0 auto;
  }
  .topshop-case-study .as-pl-arrow {
    display: none;
  }
}

/* ── Journey showcase: 3-phone buyer flow ── */
.topshop-case-study .as-journey-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  gap: 28px;
}

/* Background image layer — set --journey-bg-img via inline style or override rule */
.topshop-case-study .as-journey-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--journey-bg-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.topshop-case-study .as-journey-card > * {
  position: relative;
  z-index: 1;
}

.topshop-case-study .as-journey-hd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.topshop-case-study .as-journey-hd h3 {
  margin: 0;
  font-size: 1.1rem;
}

.topshop-case-study .as-journey-phones {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

/* Phone wrapper */
.topshop-case-study .as-phone-wrap {
  flex: 1;
  max-width: 152px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Header area — fixed min-height keeps all phone frames at the same Y position */
.topshop-case-study .as-phone-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 75px;
  justify-content: flex-start;
}

/* Caption above phone — section label style */
.topshop-case-study .as-phone-cap {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tstm-ink-muted);
  text-align: center;
}

/* Simple connector line between phones */
.topshop-case-study .as-conn {
  flex-shrink: 0;
  width: 48px;
  align-self: flex-start;
  /* skip past header (130px) + gap (10px), then match phone frame height */
  margin-top: calc(130px + 10px);
  height: calc(152px * 19.5 / 9);
  position: relative;
}

.topshop-case-study .as-conn::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-50%);
  border-radius: 1px;
}

/* Annotation labels below phone */
.topshop-case-study .as-phone-annotations {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.topshop-case-study .as-annot {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tstm-ink-muted);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 35px;
  padding: 2px 7px;
  text-align: center;
  line-height: 1.4;
}

/* Phone frame */
.topshop-case-study .as-phone {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  background: #2c2c2e;
  border-radius: 40px;
  padding: 10px 7px 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(0,0,0,0.6),
    0 16px 40px rgba(0,0,0,0.28);
}

/* Dynamic island — pill notch inside screen */
.topshop-case-study .as-phone-notch {
  width: 52px;
  height: 10px;
  background: #0a0a0a;
  border-radius: 10px;
  margin: 5px auto 6px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* Screen */
.topshop-case-study .as-phone-screen {
  flex: 1;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  padding: 8px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

/* ── Placeholder elements ── */
.topshop-case-study .as-ph-heading {
  height: 10px;
  width: 58%;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 3px;
  flex-shrink: 0;
}

.topshop-case-study .as-ph-text {
  height: 7px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 2px;
  flex-shrink: 0;
}

.topshop-case-study .as-ph-s75 { width: 75%; }
.topshop-case-study .as-ph-s85 { width: 85%; }

.topshop-case-study .as-ph-block {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 4px;
  flex-shrink: 0;
}

/* Main image blocks grow to fill remaining screen space */
.topshop-case-study .as-ph-img     { flex: 1; min-height: 60px; }
.topshop-case-study .as-ph-pdp-img { flex: 1; min-height: 100px; }
.topshop-case-study .as-ph-sm      { height: 42px; }
.topshop-case-study .as-ph-prod    { height: 66px; }

.topshop-case-study .as-ph-hero {
  flex: 1;
  min-height: 40px;
  border-radius: 0;
  margin: 0 -8px;
}

.topshop-case-study .as-ph-rule {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.topshop-case-study .as-ph-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  flex-shrink: 0;
}

/* Nav circles (phone 1) */
.topshop-case-study .as-nav-circles {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-shrink: 0;
  padding-bottom: 2px;
}

.topshop-case-study .as-nav-circles span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}

/* Shop the look CTA row (phone 1) */
.topshop-case-study .as-screen-cta {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  flex-shrink: 0;
}

.topshop-case-study .as-cta-ch {
  font-size: 9px;
  color: rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.topshop-case-study .as-cta-lbl {
  flex: 1;
  font-size: 6.5px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
}

.topshop-case-study .as-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  flex-shrink: 0;
}

/* Shop the look bar (phone 2) */
.topshop-case-study .as-stl-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 6.5px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
  flex-shrink: 0;
}

.topshop-case-study .as-stl-ch {
  font-size: 7px;
  color: rgba(0, 0, 0, 0.35);
}

/* PLP product row with carousel */
.topshop-case-study .as-plp-row {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.topshop-case-study .as-carousel-ch {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  line-height: 1;
}

.topshop-case-study .as-plp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  flex: 1;
}

.topshop-case-study .as-plp-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.topshop-case-study .as-plp-px {
  font-size: 6.5px;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* SHOP NOW button (phone 2) */
.topshop-case-study .as-shopnow {
  background: #0f1113;
  border-radius: 2px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #fff;
}

/* PDP close button */
.topshop-case-study .as-pdp-close {
  text-align: right;
  font-size: 9px;
  color: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  line-height: 1;
}

/* PDP product info */
.topshop-case-study .as-pdp-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.topshop-case-study .as-pdp-name {
  font-size: 7.5px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
  text-align: center;
}

.topshop-case-study .as-pdp-px {
  font-size: 7px;
  color: rgba(0, 0, 0, 0.5);
}

/* Color swatches */
.topshop-case-study .as-swatches {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-shrink: 0;
}

.topshop-case-study .as-swatches span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Size selector */
.topshop-case-study .as-size-sel {
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 2px;
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  font-size: 6.5px;
  color: rgba(0, 0, 0, 0.45);
}

.topshop-case-study .as-sel-ch {
  font-size: 8px;
  color: rgba(0, 0, 0, 0.3);
}

/* Add to bag row */
.topshop-case-study .as-atb-row {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.topshop-case-study .as-atb-btn {
  flex: 1;
  background: #0f1113;
  color: #fff;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 6px 4px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.topshop-case-study .as-atb-heart {
  width: 28px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: rgba(0, 0, 0, 0.3);
}

/* See full details */
.topshop-case-study .as-sfd-btn {
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 2px;
  padding: 5px;
  text-align: center;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

/* ── Journey header desc ── */
.topshop-case-study .as-journey-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--tstm-ink-muted);
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.5;
}

/* ── Framework annotation screens ── */
.topshop-case-study .as-fw-header {
  width: 100%;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

.topshop-case-study .as-fw-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  min-height: 0;
}

.topshop-case-study .as-fw-zone {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.topshop-case-study .as-fw-block {
  flex: 1;
  border-radius: 4px;
  min-width: 0;
  position: relative;
}

.topshop-case-study .as-fw-h38 { height: 38px; }
.topshop-case-study .as-fw-h30 { height: 30px; }
.topshop-case-study .as-fw-h24 { height: 24px; }

.topshop-case-study .as-fw-outline {
  background: transparent;
  border: 1.5px dashed rgba(0,0,0,0.2);
}

.topshop-case-study .as-fw-filled {
  background: rgba(0,0,0,0.07);
}

.topshop-case-study .as-fw-teal-fill {
  background: rgba(0,241,170,0.18);
  border: 1px solid rgba(0,241,170,0.3);
}

.topshop-case-study .as-fw-tagged {
  background: rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
}

.topshop-case-study .as-fw-dark {
  background: rgba(0,0,0,0.2);
}

.topshop-case-study .as-fw-live-teal {
  background: var(--accent-teal);
}

.topshop-case-study .as-fw-tag {
  font-size: 7px;
  font-weight: 700;
  color: rgba(0,0,0,0.45);
  line-height: 1;
}

.topshop-case-study .as-fw-tag-teal {
  color: #008f62;
}

.topshop-case-study .as-fw-label {
  font-size: 5.5px;
  font-weight: 600;
  color: rgba(0,0,0,0.4);
  line-height: 1.3;
  width: 46px;
  flex-shrink: 0;
}

.topshop-case-study .as-phone-wrap .as-phone-desc {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #329a99;
  text-align: center;
  line-height: 1.4;
  max-width: 160px;
  margin: 0;
}

/* ── Step breadcrumb ── */
.topshop-case-study .as-journey-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 8px;
}

.topshop-case-study .as-journey-step {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tstm-ink-muted);
}

.topshop-case-study .as-step-active {
  color: var(--tstm-ink);
}

.topshop-case-study .as-step-arrow {
  width: 32px;
  height: 1.5px;
  background: var(--accent-teal);
  position: relative;
  flex-shrink: 0;
  margin: 0 10px;
}

.topshop-case-study .as-step-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--accent-teal);
}

/* ── Video phone screen ── */
.topshop-case-study .as-screen-video {
  background: #0a0a0a;
  position: relative;
  padding: 0;
  gap: 0;
}

.topshop-case-study .as-notch-dark {
  background: #111;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 10;
}

.topshop-case-study .as-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* UI overlay sits above the video */
.topshop-case-study .as-video-ui {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 12px;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.72) 100%);
}

/* Centre play button */
.topshop-case-study .as-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.topshop-case-study .as-play-icon {
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff;
  margin-left: 2px;
}

/* Bottom meta + scrubber */
.topshop-case-study .as-video-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin-bottom: 6px;
}

.topshop-case-study .as-video-title {
  font-size: 7px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}

.topshop-case-study .as-video-time {
  font-size: 6.5px;
  color: rgba(255,255,255,0.55);
}

.topshop-case-study .as-video-scrubber {
  width: 100%;
}

.topshop-case-study .as-video-track {
  width: 100%;
  height: 2.5px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: relative;
}

.topshop-case-study .as-video-fill {
  width: 38%;
  height: 100%;
  background: var(--accent-teal);
  border-radius: 2px;
}

.topshop-case-study .as-video-thumb {
  position: absolute;
  top: 50%;
  left: 38%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

/* ── Mixed screen (video + product feed) ── */
.topshop-case-study .as-screen-mixed {
  background: #0a0a0a;
  padding: 0;
  gap: 6px;
  position: relative;
}

.topshop-case-study .as-vid-block {
  flex: 0 0 52%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.topshop-case-study .as-feed-section {
  flex: 1;
  background: #fff;
  border-radius: 10px 10px 24px 24px;
  padding: 7px 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow: hidden;
}

.topshop-case-study .as-feed-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.topshop-case-study .as-feed-label {
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.topshop-case-study .as-feed-count {
  font-size: 6px;
  color: rgba(0,0,0,0.4);
}

.topshop-case-study .as-feed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  flex: 1;
  min-height: 0;
}

.topshop-case-study .as-feed-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.topshop-case-study .as-feed-cell .as-ph-prod {
  flex: 1;
  height: auto;
  min-height: 24px;
}

/* Connector SVG zone */
.topshop-case-study .as-connector-zone {
  flex-shrink: 0;
  width: 80px;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.topshop-case-study .as-connector-zone svg {
  width: 100%;
  height: 100%;
}

/* Journey responsive */
@media (max-width: 1080px) {
  .topshop-case-study .as-phone-wrap { max-width: 130px; }
  .topshop-case-study .as-conn {
    width: 28px;
    margin-top: calc(130px + 10px);
    height: calc(130px * 19.5 / 9);
  }
}

@media (max-width: 760px) {
  .topshop-case-study .as-journey-phones {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .topshop-case-study .as-phone-wrap {
    max-width: 240px;
    width: 100%;
  }
  .topshop-case-study .as-phone-header {
    min-height: 0;
    justify-content: flex-start;
  }
  .topshop-case-study .as-conn {
    width: auto;
    height: 32px;
    margin-top: 0;
    align-self: center;
  }
  .topshop-case-study .as-conn::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 1.5px;
    height: 100%;
    transform: none;
  }
  /* keep old connector-zone hidden on mobile in case referenced elsewhere */
  .topshop-case-study .as-connector-zone {
    display: none;
  }
}

.topshop-case-study .branch-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.topshop-case-study .phase-card {
  min-height: 180px;
}

.topshop-case-study .phase-index {
  display: block;
  margin-bottom: 14px;
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(245, 245, 243, 0.54);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.topshop-case-study .outcomes-cards .light-card {
  min-height: 198px;
}

.topshop-case-study .consideration-card {
  background: #ffffff;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: var(--tstm-card-radius);
  padding: var(--tstm-card-padding);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--tstm-card-shadow);
  min-height: 180px;
}

.topshop-case-study .consideration-card:hover {
  border-color: rgba(15, 15, 15, 0.22);
  box-shadow: var(--tstm-card-shadow);
  transform: translateY(-2px);
}

.topshop-case-study .tstm-results {
  padding-top: 140px;
  padding-bottom: 140px;
  background: linear-gradient(180deg, #0f1113 0%, #15181c 100%);
  color: #f5f5f3;
}

.topshop-case-study .tstm-results-grid {
  margin-top: 24px;
  gap: 32px;
}

.topshop-case-study .tstm-results .result-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--tstm-card-radius);
  padding: var(--tstm-card-padding);
  text-align: center;
  opacity: 1;
  transform: none;
  transition: all 0.3s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  min-height: 180px;
}

.topshop-case-study .tstm-results .result-card.major {
  background: linear-gradient(135deg, rgba(0, 241, 170, 0.24) 0%, rgba(50, 154, 153, 0.24) 100%);
  border: 1px solid rgba(0, 241, 170, 0.45);
  grid-column: span 2;
  min-height: 220px;
}

.topshop-case-study .tstm-results .result-card[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.topshop-case-study .tstm-results .result-card[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.topshop-case-study .tstm-results .result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.topshop-case-study .hero-discipline-pills .discipline-mark {
  filter: none !important;
}

.topshop-case-study .result-number {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #ffffff;
}

.topshop-case-study .tstm-results .result-card.major .result-number {
  font-size: clamp(2.7rem, 6vw, 4.4rem);
}

.topshop-case-study .tstm-results .result-card:not(.major) .result-number {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  opacity: 0.82;
}

.topshop-case-study .tstm-results .result-visual {
  justify-content: center;
  margin-bottom: 12px;
}

.topshop-case-study .tstm-results .result-label {
  margin: 0 0 8px;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.topshop-case-study .tstm-results .result-detail {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
}

.topshop-case-study .tstm-results .result-card.major .result-detail {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1080px) {
  :root {
    --tstm-card-padding: 24px;
  }

  .topshop-case-study .tstm-section,
  .topshop-case-study .tstm-results {
    padding: 100px 0;
  }

  .topshop-case-study .case-study > .tstm-section + .tstm-section {
    margin-top: 100px;
  }

  .topshop-case-study .tstm-variation-layout {
    grid-template-columns: 1fr;
  }

  /* as-bento: collapse to 2-col */
  .topshop-case-study .as-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topshop-case-study .as-span-full {
    grid-column: span 2;
  }

  .topshop-case-study .as-assembly {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .topshop-case-study .as-assembly p {
    border-left: none;
    padding-left: 0;
  }

  /* ctx-bento: collapse to 2-col, keep span-2 tall card */
  .topshop-case-study .ctx-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topshop-case-study .ctx-span-full {
    grid-column: span 2;
  }

  .topshop-case-study .ctx-problems-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .topshop-case-study .ctx-problems-divider {
    display: none;
  }

  .topshop-case-study .ctx-problem-item {
    padding: 0;
  }

  .topshop-case-study .tstm-three-cards,
  .topshop-case-study .tstm-four-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topshop-case-study .tstm-results .result-card.major {
    grid-column: span 1;
    min-height: 180px;
  }

  /* ops-shift: tighten connector column + logo gap */
  .topshop-case-study .ops-split {
    grid-template-columns: 1fr 36px 1fr;
  }
  .topshop-case-study .ops-logos {
    gap: 40px;
  }

  /* org-impact: reduce column padding */
  .topshop-case-study .org-col {
    padding: 0 24px;
  }

  /* op-impact: tighten panel padding */
  .topshop-case-study .oi-top {
    padding: 32px;
  }
  .topshop-case-study .oi-top-col {
    padding: 0 20px;
  }
  .topshop-case-study .oi-row-div {
    margin: 0 32px;
  }
  .topshop-case-study .oi-bottom {
    padding: 32px;
  }
  .topshop-case-study .oi-metric-major {
    padding-right: 28px;
  }
  .topshop-case-study .oi-minor-stack {
    padding-left: 28px;
  }

  /* unified op-impact: reduce qual-grid padding */
  .topshop-case-study .opi-qual-block {
    padding-left: 24px;
    padding-right: 24px;
  }
  .topshop-case-study .opi-qual-block:first-child { padding-left: 0; }
  .topshop-case-study .opi-qual-block:last-child  { padding-right: 0; }
}

@media (max-width: 760px) {
  :root {
    --tstm-card-padding: 20px;
  }

  .topshop-case-study .tstm-section,
  .topshop-case-study .tstm-results {
    padding: 64px 0;
  }

  .topshop-case-study .case-study > .tstm-section + .tstm-section {
    margin-top: 64px;
  }

  .topshop-case-study .cs-container {
    width: min(1100px, calc(100% - 32px));
  }

  /* bento: single column on mobile */
  .topshop-case-study .ctx-bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .topshop-case-study .ctx-span2,
  .topshop-case-study .ctx-tall,
  .topshop-case-study .ctx-span-full {
    grid-column: span 1;
    grid-row: span 1;
  }

  .topshop-case-study .ctx-problems-card {
    padding: 24px;
  }

  .topshop-case-study .tstm-hero {
    min-height: 90vh;
    padding-top: 126px;
    padding-bottom: 104px;
  }

  .topshop-case-study .tstm-hero .cs-title {
    font-size: clamp(2.4rem, 11vw, 4.2rem);
  }

  .topshop-case-study .tstm-hero .cs-meta {
    justify-content: center;
    gap: 8px;
  }

  /* as-bento: single column */
  .topshop-case-study .as-bento-grid {
    grid-template-columns: 1fr;
  }

  .topshop-case-study .as-span2,
  .topshop-case-study .as-span-full {
    grid-column: span 1;
  }

  .topshop-case-study .as-tall {
    grid-row: span 1;
  }

  .topshop-case-study .tstm-three-cards,
  .topshop-case-study .tstm-four-cards,
  .topshop-case-study .tstm-results-grid,
  .topshop-case-study .branch-row,
  .topshop-case-study .tier-top,
  .topshop-case-study .tier-bottom {
    grid-template-columns: 1fr;
  }

  .topshop-case-study .tstm-results .result-card {
    padding: var(--tstm-card-padding);
  }

  /* ops-shift: stack wireframe above rule blocks, hide connector */
  .topshop-case-study .ops-split {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .topshop-case-study .ops-connector {
    display: none;
  }
  .topshop-case-study .ops-wireframe {
    width: 100%;
  }
  .topshop-case-study .ops-wf-frame {
    max-width: 100%;
  }
  .topshop-case-study .ops-rule {
    padding-left: 0;
  }

  /* cadence: stack nodes with continuous vertical spine */
  .topshop-case-study .cad-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: relative;
  }
  .topshop-case-study .cad-strip::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--tstm-line-light);
  }
  .topshop-case-study .tstm-ops-shift .cad-strip::before {
    background: rgba(255, 255, 255, 0.1);
  }
  .topshop-case-study .cad-node {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 28px;
    position: relative;
  }
  .topshop-case-study .cad-node:last-child {
    padding-bottom: 0;
  }
  .topshop-case-study .cad-dot {
    margin-bottom: 0;
    margin-top: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }
  .topshop-case-study .cad-body {
    text-align: left;
    padding: 0;
  }
  .topshop-case-study .cad-line {
    display: none;
  }

  /* org-impact: stack columns vertically (legacy — classes no longer active) */
  .topshop-case-study .org-panel {
    flex-direction: column;
  }
  .topshop-case-study .org-col {
    padding: 24px 0;
    text-align: left;
  }
  .topshop-case-study .org-col:first-child { padding-top: 0; }
  .topshop-case-study .org-col:last-child  { padding-bottom: 0; }
  .topshop-case-study .org-divider {
    width: 100%;
    height: 1px;
    align-self: auto;
  }

  /* op-impact: collapse to single column */
  .topshop-case-study .oi-panel {
    border-radius: 12px;
  }
  .topshop-case-study .oi-top {
    flex-direction: column;
    padding: 28px 24px;
    gap: 0;
  }
  .topshop-case-study .oi-top-col {
    padding: 20px 0;
    text-align: left;
  }
  .topshop-case-study .oi-top-col:first-child { padding-top: 0; }
  .topshop-case-study .oi-top-col:last-child  { padding-bottom: 0; }
  .topshop-case-study .oi-top-div {
    width: 100%;
    height: 1px;
    align-self: auto;
  }
  .topshop-case-study .oi-row-div {
    margin: 0 24px;
  }
  .topshop-case-study .oi-bottom {
    flex-direction: column;
    padding: 28px 24px;
    gap: 0;
  }
  .topshop-case-study .oi-metric-major {
    padding-right: 0;
    padding-bottom: 24px;
  }
  .topshop-case-study .oi-col-div {
    width: 100%;
    height: 1px;
    align-self: auto;
  }
  .topshop-case-study .oi-minor-stack {
    flex-direction: column;
    padding-left: 0;
    padding-top: 0;
  }
  .topshop-case-study .oi-minor-stack .oi-metric {
    padding: 20px 0;
  }
  .topshop-case-study .oi-minor-stack .oi-metric:first-child { padding-top: 24px; }
  .topshop-case-study .oi-minor-stack .oi-metric:last-child  { padding-bottom: 0; }
  /* logo strip: reduce gap on mobile */
  .topshop-case-study .ops-logos {
    gap: 32px;
  }

  /* unified op-impact: stack qual-grid and sec-grid */
  .topshop-case-study .opi-qual-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .topshop-case-study .opi-qual-block {
    border-left: none;
    border-top: 1px solid var(--tstm-line-light);
    padding: 28px 0;
  }
  .topshop-case-study .opi-qual-block:first-child {
    border-top: none;
    padding-top: 0;
  }
  .topshop-case-study .opi-qual-block:last-child {
    padding-bottom: 0;
  }
  .topshop-case-study .opi-metric-sec-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 0;
  }
  .topshop-case-study .opi-metric-sec--major {
    grid-column: span 1;
  }
  .topshop-case-study .opi-metrics-stage {
    margin-top: 48px;
  }
}
