
:root {
  --max-primary: #00D4B8;      /* Purple - transformation */
  --max-secondary: #00F1AA;    /* Indigo */
  --max-accent: #46C494;       /* Keep brand mint for continuity */
  --max-dark: #0f0f0f;
  --max-light: #f5f5f3;
}

/* =========================================================
   HERO - Max Gradient (Purple tones)
   ========================================================= */

.max-hero {
  background: var(--max-light);
}

.max-case-study .hero-bg-image {
  filter: saturate(0.5);
}

.max-hero .hero-gradient-overlay {
  background: 
    radial-gradient(ellipse at center, rgba(245, 245, 243, 0.2) 0%, rgba(245, 245, 243, 0.95) 70%);
  background-image: url(../assets/max_pattern.png);
  background-position: center;
  opacity: 0.08;
  background-size: cover;
}

.max-hero .statement-line.highlight {
  background: linear-gradient(135deg, var(--max-primary) 0%, var(--max-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.max-hero .hero-context .separator {
  color: var(--max-primary);
}

.max-hero .scope-pill:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.max-hero .scope-value {
  color: var(--max-primary);
}

/* =========================================================
   HERO OVERRIDES - MATCH DEBENHAMS STYLE
   ========================================================= */

.max-case-study .floating-logo {
  margin-bottom: 20px;
}

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

.max-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;
}

.max-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;
}

.max-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)
  );
}

.max-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)
  );
}

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

.max-case-study .scope-pill {
  background: rgba(0, 0, 0, 0.08);
  transition: none;
}

.max-case-study .scope-pill:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
  transform: none;
  box-shadow: none;
}

/* Brand consolidation strip */
.brand-consolidation-strip {
  margin-top: 48px;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  text-align: center;
}

.consolidation-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(15, 15, 15, 0.5);
  margin-bottom: 16px;
}

.brand-logos-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.brand-logos-inline img {
  height: 20px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.brand-logos-inline img:hover {
  opacity: 1;
}

/* =========================================================
   MAX SECTIONS - Base styles
   ========================================================= */

.max-section {
  padding: 120px 20px;
  position: relative;
}

.max-section .section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--max-primary);
  margin-bottom: 16px;
  text-align: center;
}

.max-section .section-heading {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--max-dark);
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: -0.02em;
}

.max-section .section-heading.white {
  color: #ffffff;
}

.max-section .section-subhead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(15, 15, 15, 0.65);
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}

/* =========================================================
   CONTEXT SECTION
   ========================================================= */

.context-section {
  background: var(--max-light);
}

.context-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.context-text .lead-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--max-dark);
  margin-bottom: 24px;
  font-weight: 500;
}

.context-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(15, 15, 15, 0.7);
  margin-bottom: 16px;
}

/* Consolidation diagram */
.consolidation-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.diagram-before,
.diagram-after {
  text-align: center;
}

.diagram-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(15, 15, 15, 0.4);
  margin-bottom: 16px;
}

.diagram-boxes.scattered {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.brand-box {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

.brand-box.hbo { background: #5822b4; color: white; }
.brand-box.discovery { background: #1a3c6e; color: white; }
.brand-box.euro { background: #ffd700; color: #000; }
.brand-box.tnt { background: #e31837; color: white; }
.brand-box.max { 
  background: linear-gradient(135deg, #0033cc 0%, #6600cc 100%); 
  color: white;
  padding: 24px 32px;
  font-size: 1rem;
}

.diagram-arrow {
  color: var(--max-primary);
}

/* =========================================================
   CHALLENGE SECTION
   ========================================================= */

.challenge-section {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
}

.challenge-section .section-text {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.challenge-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.challenge-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
}

.challenge-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--max-primary);
}

.challenge-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.challenge-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   INTENT SECTION
   ========================================================= */

.intent-section {
  background: #ffffff;
}

.intent-content {
  max-width: 1200px;
  margin: 0 auto;
}

.intent-statement {
  margin-bottom: 60px;
}

.lead-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--max-dark);
  font-style: italic;
  text-align: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  border-left: 4px solid var(--max-primary);
}

.intent-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar {
  text-align: center;
  padding: 32px;
}

.pillar-number {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--max-primary);
  margin-bottom: 16px;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 20px;
}

.pillar h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--max-dark);
  margin-bottom: 12px;
}

.pillar p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(15, 15, 15, 0.65);
}

/* =========================================================
   OPERATING MODEL SECTION
   ========================================================= */

.operating-model-section {
  background: var(--max-light);
}

.model-characteristics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.characteristic {
  text-align: center;
  padding: 32px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.characteristic:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.char-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--max-primary);
}

.characteristic h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--max-dark);
  margin-bottom: 8px;
}

.characteristic p {
  font-size: 0.85rem;
  color: rgba(15, 15, 15, 0.6);
}

/* Tech stack summary */
.tech-stack-summary {
  text-align: center;
  padding: 32px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 700px;
  margin: 0 auto;
}

.stack-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(15, 15, 15, 0.5);
  margin-bottom: 20px;
}

.stack-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stack-logos img {
  height: 24px;
  width: auto;
  opacity: 0.7;
}

/* =========================================================
   ROLLOUT SECTION
   ========================================================= */

.rollout-section {
  background: #ffffff;
}

.rollout-regions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.region-card {
  background: var(--max-light);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.region-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.region-card.pilot {
  border-style: dashed;
  border-color: rgba(139, 92, 246, 0.3);
}

.region-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.region-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--max-primary);
  padding: 6px 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 6px;
}

.region-type {
  font-size: 0.8rem;
  color: rgba(15, 15, 15, 0.5);
}

.region-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--max-dark);
  margin-bottom: 12px;
}

.region-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(15, 15, 15, 0.65);
  margin-bottom: 24px;
}

.region-stats {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.region-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.region-stat .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--max-primary);
}

.region-stat .stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(15, 15, 15, 0.5);
}

.rollout-note {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.rollout-note p {
  font-size: 0.95rem;
  color: rgba(15, 15, 15, 0.6);
  font-style: italic;
}

/* =========================================================
   ENABLEMENT SECTION
   ========================================================= */

.enablement-section {
  background: var(--max-light);
}

.enablement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.enablement-content .section-label {
  text-align: left;
}

.enablement-content .section-heading {
  text-align: left;
  margin-bottom: 20px;
}

.enablement-content > p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(15, 15, 15, 0.7);
  margin-bottom: 32px;
}

.enablement-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enablement-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.enablement-marker {
  width: 8px;
  height: 8px;
  background: var(--max-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.enablement-item span:last-child {
  font-size: 0.95rem;
  color: rgba(15, 15, 15, 0.75);
}

.enablement-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.adoption-metric {
  text-align: center;
  padding: 48px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.adoption-number {
  display: block;
  font-size: 4rem;
  font-weight: 700;
  color: var(--max-primary);
  line-height: 1;
  margin-bottom: 12px;
}

.adoption-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--max-dark);
  margin-bottom: 12px;
}

.adoption-metric p {
  font-size: 0.9rem;
  color: rgba(15, 15, 15, 0.6);
  max-width: 200px;
  margin: 0 auto;
}

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

.outcomes-section {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
}

.outcomes-intro {
  text-align: center;
  margin-bottom: 60px;
}

.outcomes-intro p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 60px;
}

.outcome-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.outcome-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
}

.outcome-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--max-primary);
}

.outcome-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.outcome-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* Metrics bar */
.outcomes-metrics {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--max-primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   ROLE SECTION
   ========================================================= */

.role-section {
  background: var(--max-light);
  padding: 80px 20px;
}

.role-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.role-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(15, 15, 15, 0.7);
  margin-bottom: 32px;
}

.role-areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.role-tag {
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--max-dark);
}

/* =========================================================
   RELATED SECTION
   ========================================================= */

.related-section {
  background: #ffffff;
  padding: 80px 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.related-card {
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  background: var(--max-light);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.related-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.related-image.hbo-bg {
  background: linear-gradient(135deg, #5822b4 0%, #1a1a2e 100%);
}

.related-image.ct-bg {
  background: linear-gradient(135deg, #c9a86c 0%, #8b6914 100%);
}

.related-content {
  padding: 24px;
}

.related-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--max-dark);
  margin-bottom: 8px;
}

.related-content p {
  font-size: 0.9rem;
  color: rgba(15, 15, 15, 0.6);
  line-height: 1.5;
}

/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

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

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

  .context-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .challenge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .intent-pillars {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .model-characteristics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .rollout-regions {
    grid-template-columns: 1fr;
  }
  
  .enablement-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .enablement-content .section-label,
  .enablement-content .section-heading {
    text-align: center;
  }
  
  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .outcomes-metrics {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .max-case-study .cs-hero {
    padding: 104px 20px 72px;
  }

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

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

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

/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 640px) {
  .max-section {
    padding: 80px 16px;
  }
  
  .brand-logos-inline {
    gap: 20px;
  }
  
  .brand-logos-inline img {
    height: 16px;
  }
  
  .consolidation-diagram {
    flex-direction: column;
    padding: 24px;
  }
  
  .diagram-arrow {
    transform: rotate(90deg);
  }
  
  .challenge-grid {
    grid-template-columns: 1fr;
  }
  
  .lead-quote {
    font-size: 1.15rem;
    padding: 24px;
  }
  
  .model-characteristics {
    grid-template-columns: 1fr;
  }
  
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
  
  .outcomes-metrics {
    flex-direction: column;
    gap: 24px;
  }
  
  .metric-value {
    font-size: 2rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .adoption-number {
    font-size: 3rem;
  }
}

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

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

/* =========================================================
   MAX CASE STUDY - POW CONTROLS & OVERRIDES
   ========================================================= */

.max-case-study .hero-system-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 212, 184, 0.18), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(0, 212, 184, 0.12), transparent 50%),
    linear-gradient(120deg, rgba(15, 15, 15, 0.12), rgba(15, 15, 15, 0));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.max-case-study .cs-hero-assertion {
  margin-top: 28px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cs-text);
  max-width: 640px;
}

/* POW #2 - The System */
.max-case-study .system-section {
  background: #0f1116;
  color: #ffffff;
}

.max-case-study .system-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.max-case-study .system-section .section-heading,
.max-case-study .system-section .section-subhead {
  color: #ffffff;
  text-align: left;
}

.max-case-study .system-section .section-label {
  text-align: left;
  color: var(--max-accent);
}

.max-case-study .system-section .section-subhead {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 40px;
}

.max-case-study .system-points {
  display: grid;
  gap: 20px;
}

.max-case-study .system-point {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.max-case-study .point-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--max-primary);
}

.max-case-study .point-detail {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.max-case-study .system-visual {
  position: relative;
  height: 420px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(0, 241, 170, 0.12), transparent 55%);
  overflow: hidden;
}

.max-case-study .system-layer {
  position: absolute;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.max-case-study .system-layer.layer-back {
  inset: 20px;
  background: linear-gradient(140deg, rgba(0, 241, 170, 0.08), rgba(0, 0, 0, 0.6));
}

.max-case-study .system-layer.layer-mid {
  inset: 50px 30px 70px 30px;
  background: linear-gradient(160deg, rgba(0, 212, 184, 0.18), rgba(15, 15, 15, 0.7));
}

.max-case-study .system-layer.layer-front {
  inset: 90px 50px 110px 50px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.85));
}

.max-case-study .system-core {
  position: absolute;
  inset: auto 60px 60px 60px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(0, 241, 170, 0.3);
  text-align: center;
}

.max-case-study .core-label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--max-primary);
  margin-bottom: 8px;
}

.max-case-study .core-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Solution section - calm bento */
.max-case-study .solution-section {
  background: #f4f3ef;
}

.max-case-study .solution-section .section-heading {
  color: var(--max-dark);
}

.max-case-study .solution-section .section-subhead {
  color: rgba(15, 15, 15, 0.6);
  margin-bottom: 56px;
}

.max-case-study .solution-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
}

.max-case-study .solution-panel {
  background: #fbfbf9;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.max-case-study .solution-panel h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f0f0f;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.max-case-study .solution-panel p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(15, 15, 15, 0.65);
  margin: 0;
}

.max-case-study .panel-primary {
  grid-column: 1 / 7;
  grid-row: 1 / 3;
  background: #101218;
  border-color: rgba(255, 255, 255, 0.08);
}

.max-case-study .panel-primary h3 {
  color: #ffffff;
}

.max-case-study .panel-primary p {
  color: rgba(255, 255, 255, 0.75);
}

.max-case-study .panel-secondary {
  grid-column: 7 / 13;
  grid-row: 1 / 2;
}

.max-case-study .panel-tertiary {
  grid-column: 7 / 10;
  grid-row: 2 / 3;
}

.max-case-study .panel-wide {
  grid-column: 1 / 10;
  grid-row: 3 / 4;
}

.max-case-study .panel-control {
  grid-column: 10 / 13;
  grid-row: 2 / 4;
}

.max-case-study .panel-tools {
  grid-column: 1 / 6;
  grid-row: 4 / 5;
}

/* POW #3 - Rollout timeline with depth */
.max-case-study .rollout-section {
  background: #f5f4f0;
}

.max-case-study .rollout-section .section-heading {
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  font-weight: 700;
}

.max-case-study .rollout-section .section-subhead {
  max-width: 760px;
}

.max-case-study .rollout-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto 60px;
  display: grid;
  gap: 36px;
}



.max-case-study .timeline-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 26px;
  position: relative;
  z-index: 1;
}

.max-case-study .timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.max-case-study .timeline-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f0f0f;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  position: relative;
}

.max-case-study .timeline-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, #0f0f0f 0%, rgba(15, 15, 15, 0.1) 100%);
  margin-top: 12px;
  min-height: 60px;
  border-radius: 999px;
}

.max-case-study .timeline-step:last-child .timeline-marker {
  background: transparent;
  border: 2px dashed rgba(15, 15, 15, 0.35);
  color: rgba(15, 15, 15, 0.45);
  box-shadow: none;
}

.max-case-study .timeline-step:last-child .timeline-line {
  display: none;
}


.max-case-study .timeline-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 36px;
  border: 1px solid rgba(15, 15, 15, 0.045);
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.045);
}

.max-case-study .timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.max-case-study .timeline-region {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--max-primary);
  padding: 6px 12px;
  background: rgba(0, 241, 170, 0.12);
  border-radius: 999px;
}

.max-case-study .timeline-phase {
  font-size: 0.8rem;
  color: rgba(15, 15, 15, 0.55);
}

.max-case-study .timeline-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--max-dark);
  margin-bottom: 10px;
}

.max-case-study .timeline-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(15, 15, 15, 0.65);
  margin-bottom: 22px;
}

.max-case-study .timeline-stats {
  display: flex;
  gap: 28px;
  font-size: 0.8rem;
  color: rgba(15, 15, 15, 0.6);
  border-top: 1px solid rgba(15, 15, 15, 0.06);
  padding-top: 16px;
  margin-top: 8px;
}

.max-case-study .timeline-stats strong {
  color: var(--max-dark);
  font-size: 1rem;
}

.max-case-study .timeline-stats span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: rgba(15, 15, 15, 0.6);
}

.max-case-study .rollout-governance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.max-case-study .governance-item {
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.max-case-study .governance-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--max-primary);
  margin-bottom: 10px;
}

.max-case-study .governance-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(15, 15, 15, 0.65);
}

/* POW #4 - Results moment only */
.max-case-study .results-intro {
  opacity: 1;
  transform: none;
  transition: none;
}

.max-case-study .result-card {
  opacity: 1;
  transform: none;
  transition: none;
}

.max-case-study .result-card.results-moment {
  border-color: var(--cs-accent);
  background: linear-gradient(135deg, rgba(0, 241, 170, 0.12) 0%, rgba(70, 196, 148, 0.18) 100%);
}

.max-case-study .result-card.results-moment .result-number,
.max-case-study .result-card.results-moment .result-symbol {
  color: var(--cs-accent);
}

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

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

/* Solution bento swap (page-scoped) */
@media (min-width: 1025px) {
  .max-case-study .solution-section-bento .sync-card {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .max-case-study .solution-section-bento .integrations-card {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
  }

  .max-case-study .solution-section-bento .sheets-card {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .max-case-study .solution-section-bento .dataclay-card {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
  }

  .max-case-study .solution-section-bento .showcase-card {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
  }
}

/* Override shared HBO results styling for the Max page */
.max-case-study .cs-results {
  background: #ffffff;
}

.max-case-study .results-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px;
}

.max-case-study .results-intro p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--cs-text-light);
  margin-bottom: 24px;
}

.max-case-study .results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.max-case-study .result-card {
  background: var(--cs-bg);
  border-radius: 16px;
  border: 1px solid rgba(0, 241, 170, 0.15);
  padding: 40px;
  text-align: left;
}

.max-case-study .result-card.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);
}

.max-case-study .result-visual {
  justify-content: flex-start;
}

.max-case-study .result-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cs-text);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.max-case-study .result-detail {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--cs-text-light);
}

@media (max-width: 1024px) {
  .max-case-study .results-grid {
    grid-template-columns: 1fr;
  }

  .max-case-study .result-card.major {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .max-case-study .result-card {
    display: block;
    align-items: stretch;
    text-align: left;
  }

  .max-case-study .result-card .result-number,
  .max-case-study .result-card .result-suffix,
  .max-case-study .result-card .result-label,
  .max-case-study .result-card .result-detail {
    text-align: left;
  }
}

/* Calm sections: remove motion emphasis */
.max-case-study .challenge-card:hover,
.max-case-study .outcome-card:hover,
.max-case-study .related-card:hover,
.max-case-study .result-card:hover {
  transform: none;
  box-shadow: none;
}

.max-case-study .challenge-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.max-case-study .outcome-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.max-case-study .related-card:hover {
  border-color: rgba(0, 241, 170, 0.15);
}

.max-case-study .related-card {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 1024px) {
  .max-case-study .system-layout {
    grid-template-columns: 1fr;
  }

  .max-case-study .system-section .section-heading,
  .max-case-study .system-section .section-subhead,
  .max-case-study .system-section .section-label {
    text-align: center;
  }

  .max-case-study .system-visual {
    height: 360px;
  }

  .max-case-study .rollout-governance {
    grid-template-columns: 1fr;
  }

  .max-case-study .solution-bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .max-case-study .panel-primary {
    grid-column: 1 / 7;
  }

  .max-case-study .panel-secondary {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
  }

  .max-case-study .panel-tertiary {
    grid-column: 4 / 7;
    grid-row: 3 / 4;
  }

  .max-case-study .panel-wide {
    grid-column: 1 / 7;
  }

  .max-case-study .panel-control {
    grid-column: 1 / 7;
    grid-row: 4 / 5;
  }

  .max-case-study .panel-tools {
    grid-column: 1 / 7;
    grid-row: 5 / 6;
  }

}

@media (max-width: 640px) {
  .max-case-study .timeline-step {
    grid-template-columns: 56px 1fr;
  }

  .max-case-study .timeline-marker {
    width: 40px;
    height: 40px;
  }

  .max-case-study .timeline-track {
    left: 28px;
  }

  .max-case-study .timeline-line {
    margin-top: 10px;
    min-height: 50px;
  }

  .max-case-study .timeline-card {
    padding: 24px 28px;
  }

  .max-case-study .rollout-governance {
    gap: 16px;
  }

  .max-case-study .solution-bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .max-case-study .panel-primary,
  .max-case-study .panel-secondary,
  .max-case-study .panel-tertiary,
  .max-case-study .panel-wide,
  .max-case-study .panel-control,
  .max-case-study .panel-tools {
    grid-column: auto;
    grid-row: auto;
  }

}

/* =========================================================
   INSIDE THE SYSTEM - Platform Architecture
   Mobile-first design
   Uses YOUR teal colour system
   ========================================================= */

/* =========================================================
   SECTION BASE
   ========================================================= */

.system-architecture-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #0f1419 100%);
  padding: 80px 16px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid overlay */
.system-architecture-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 184, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.system-architecture-section .cs-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.system-architecture-section .section-label {
  color: #00D4B8;
  text-align: center;
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.system-architecture-section .section-heading {
  color: #ffffff;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.system-architecture-section .section-subhead {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 48px;
}


/* =========================================================
   LAYER STRUCTURE
   ========================================================= */

.system-layer {
  margin-bottom: 0;
}

.layer-label {
  margin-bottom: 20px;
}

.layer-label span {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00D4B8;
  padding: 6px 12px;
  background: rgba(0, 212, 184, 0.1);
  border: 1px solid rgba(0, 212, 184, 0.2);
  border-radius: 4px;
  writing-mode: horizontal-tb;
}

.layer-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* =========================================================
   SYSTEM NODES - Mobile First
   ========================================================= */

.system-node {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.node-icon {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
}

.node-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.node-icon.small {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 8px;
}

.node-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.node-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

.node-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.node-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #0f0f0f;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
}


/* =========================================================
   CONNECTORS
   ========================================================= */

.system-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
}

.connector-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, rgba(0, 212, 184, 0.4) 0%, rgba(0, 212, 184, 0.2) 100%);
}

.connector-arrows {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #00D4B8;
}

.arrow-down.small {
  border-left-width: 4px;
  border-right-width: 4px;
  border-top-width: 6px;
}


/* =========================================================
   CENTRAL HUB
   ========================================================= */

.system-hub {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 
    0 0 0 1px rgba(0, 212, 184, 0.2),
    0 8px 32px rgba(0, 212, 184, 0.15),
    0 0 60px rgba(0, 212, 184, 0.1);
}

.hub-logo {
  margin-bottom: 12px;
}

.hub-logo img {
  height: 28px;
  width: auto;
}

.hub-description {
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f0f0f;
  line-height: 1.5;
  margin: 0;
}


/* =========================================================
   CREATIVE LAYER - Stacks
   ========================================================= */

.creative-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.creative-stack {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 16px;
}

.stack-primary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stack-connector {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  gap: 24px;
}

.stack-connector.dual {
  justify-content: space-around;
  max-width: 200px;
  margin: 0 auto;
}

.stack-secondary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 212, 184, 0.05);
  border: 1px dashed rgba(0, 212, 184, 0.2);
  border-radius: 10px;
}

.stack-secondary.dual {
  flex-direction: column;
  gap: 12px;
}

.stack-secondary .node-desc {
  font-size: 0.7rem;
}

.secondary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}


/* =========================================================
   TABLET STYLES (640px+)
   ========================================================= */

@media (min-width: 640px) {
  .system-architecture-section {
    padding: 100px 24px;
  }
  
  .system-architecture-section .section-heading {
    font-size: 2.5rem;
  }
  
  .layer-content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .system-node {
    flex: 1 1 calc(50% - 8px);
    min-width: 250px;
  }
  
  .creative-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .connector-arrows {
    gap: 32px;
  }
  
  .stack-secondary.dual {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
  
  .secondary-item {
    width: auto;
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}


/* =========================================================
   DESKTOP STYLES (1024px+)
   ========================================================= */

@media (min-width: 1024px) {
  .system-architecture-section {
    padding: 120px 40px;
  }
  
  .system-architecture-section .section-subhead {
    max-width: 600px;
    margin-bottom: 60px;
  }
  
  /* Partners layer - horizontal with vertical label */
  .system-layer {
    display: flex;
    gap: 24px;
    align-items: stretch;
  }
  
  .layer-label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }
  
  .layer-label span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 16px 8px;
  }
  
  .layer-content {
    flex: 1;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
  }
  
  .system-node {
    flex: 1;
    min-width: 0;
  }
  
  /* Hub spans full width */
  .system-hub {
    padding: 28px 40px;
  }
  
  .hub-logo img {
    height: 32px;
  }
  
  .hub-description {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
  }
  
  /* Creative layer - 4 columns */
  .creative-layer .layer-content {
    display: flex;
    flex-direction: row;
  }
  
  .creative-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    flex: 1;
  }
  
  .creative-stack {
    display: flex;
    flex-direction: column;
  }
  
  .stack-primary {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .stack-primary .node-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
  }
  
  .stack-primary .node-info {
    align-items: center;
    text-align: center;
  }
  
  .stack-secondary {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
  
  .stack-secondary.dual {
    flex-direction: row;
    justify-content: center;
  }
  
  .secondary-item {
    flex-direction: column;
    text-align: center;
  }
  
  /* Connector arrows spread across */
  .connector-arrows {
    gap: 80px;
  }
  
  .connector-arrows.branching {
    gap: 120px;
  }
}


/* =========================================================
   LARGE DESKTOP (1200px+)
   ========================================================= */

@media (min-width: 1200px) {
  .system-architecture-section .section-heading {
    font-size: 3rem;
  }
  
  .node-title {
    font-size: 0.9rem;
  }
  
  .creative-grid {
    gap: 20px;
  }
  
  .creative-stack {
    padding: 20px;
  }
}


/* =========================================================
   OPERATIONAL GOVERNANCE - Bento Card Diagram
   Sits inside .bento-visual
   ========================================================= */

/* Make bento-visual a flex container for centering */
.bento-card.dark .bento-visual:has(.gov-diagram-compact) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gov-diagram-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  width: 100%;
}

/* Rows */
.gov-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.gov-row.regions {
  gap: 8px;
}

/* Pills */
.gov-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.gov-pill.central {
  background: rgba(0, 212, 184, 0.15);
  border-color: rgba(0, 212, 184, 0.4);
  color: #00D4B8;
  padding: 12px 20px;
}

.gov-pill.central svg {
  stroke: #00D4B8;
  flex-shrink: 0;
}

/* Connectors */
.gov-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 0;
}

.gov-connector.triple {
  flex-direction: row;
  gap: 65px;
}

.gov-line {
  width: 2px;
  height: 18px;
  background: rgba(0, 212, 184, 0.4);
  border-radius: 1px;
}

.gov-arrow {
  font-size: 0.75rem;
  color: #00D4B8;
  line-height: 1;
}

/* Region tags */
.region-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gov-diagram-compact {
    gap: 10px;
    padding: 24px 16px;
  }
  
  .gov-pill {
    padding: 8px 14px;
    font-size: 0.75rem;
    border-radius: 100px;
  }
  
  .gov-connector.triple {
    gap: 58px;
  }
  
  .region-tag {
    padding: 5px 10px;
    font-size: 0.65rem;
  }
}
