/**
 * Abaad Elhader Case Study Stylesheet
 * 
 * High-performance styling for Abaad Elhader Case Study showcase.
 * Matches Code1001 dark/light aesthetic in strict compliance with note.md.
 *
 * @package Code1001
 * @version 1.0.53
 */

/* ==========================================================================
   0. ROOT TOKENS & CASE STUDY SPECIFICS (STRICT NOTE.MD COMPLIANCE)
   ========================================================================== */
/* Ensure sticky positioning works on case study page */
html,
body,
.site-grid-layout,
.abaad-case-study-page {
  overflow: visible !important;
  overflow-x: clip !important;
}

.abaad-case-study-page {
  --font-latin: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  
  width: 100%;
  background-color: transparent;
  color: var(--text);
  padding-bottom: 0;
}

/* Base Wrapper constraint inside sections */
.abaad-case-study-page .wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .abaad-case-study-page .wrap {
    padding: 0 20px;
  }
}

/* Section Common System */
.cs-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
  border-top: none;
  border-bottom: 1px solid var(--layout-grid-line);
}

.cs-section-intro {
  margin-bottom: 48px;
  text-align: left;
}

.cs-section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cs-section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-dim);
  max-width: 680px;
  line-height: 1.6;
}

/* ==========================================================================
   1. EDITORIAL 2-COLUMN HERO SECTION
   ========================================================================== */
/* TOP BREADCRUMB STRIP BAR (STICKY BELOW HEADER) */
.cs-breadcrumb-bar {
  position: -webkit-sticky;
  position: sticky;
  top: var(--site-nav-height, 67px);
  z-index: 990;
  width: 100%;
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 0;
  background: rgba(23, 23, 26, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cs-breadcrumb-bar.is-stuck {
  background: rgba(23, 23, 26, 0.94);
  box-shadow: none;
  border-bottom-color: var(--border);
}

html[data-theme="light"] .cs-breadcrumb-bar {
  background: rgba(243, 243, 241, 0.88);
}

html[data-theme="light"] .cs-breadcrumb-bar.is-stuck {
  background: rgba(243, 243, 241, 0.96);
  box-shadow: none;
  border-bottom-color: var(--border);
}

/* Responsive Sticky Offsets */
@media (max-width: 991px) {
  .cs-breadcrumb-bar {
    top: var(--site-nav-height, 56px);
  }
}

@media (max-width: 782px) {
  .cs-breadcrumb-bar {
    top: var(--site-nav-height, 52px);
    padding: 10px 0;
  }
}

/* WordPress Admin Bar Offsets */
.admin-bar .cs-breadcrumb-bar {
  top: calc(var(--site-nav-height, 67px) + 32px);
}

@media (max-width: 991px) {
  .admin-bar .cs-breadcrumb-bar {
    top: calc(var(--site-nav-height, 56px) + 32px);
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .cs-breadcrumb-bar {
    top: calc(var(--site-nav-height, 52px) + 46px);
  }
}

.cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-latin);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

.cs-breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.cs-breadcrumb a:hover {
  color: var(--text);
}

.cs-bc-sep {
  color: var(--text-faint);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1;
  user-select: none;
  opacity: 0.7;
}

.cs-bc-current {
  color: var(--text);
  font-weight: 600;
}

/* HERO SECTION */
.cs-hero-section {
  padding: 56px 0 64px;
  position: relative;
  z-index: 2;
  border-top: none;
  border-bottom: 1px solid var(--layout-grid-line);
}

/* 2-Column Hero Grid */
.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.cs-hero-info-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Hero Title */
.cs-hero-title {
  margin-top: 0;
  font-family: var(--font-latin);
  font-size: clamp(2.4rem, 4.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
  text-wrap: balance;
}

/* Client Metadata Line */
.cs-hero-client-meta {
  font-family: var(--font-latin);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.cs-meta-term {
  font-weight: 700;
  color: var(--text);
  margin-right: 8px;
}

.cs-meta-client-val {
  color: var(--text-dim);
}

.cs-meta-sep {
  padding: 0 4px;
  opacity: 0.6;
}

/* Services Line */
.cs-hero-services-block {
  font-family: var(--font-latin);
  margin-top: 4px;
}

.cs-services-term {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.cs-services-links {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.cs-services-links a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cs-services-links a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

/* Right Column Visual Showcase */
.cs-hero-visual-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-hero-visual-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.cs-hero-visual-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.4);
}

/* Mockup Browser Window Top Bar (Hero Showcase) */
.cs-mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.cs-mockup-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cs-mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.cs-mockup-dot.dot-r { background: #ef4444; }
.cs-mockup-dot.dot-y { background: #f59e0b; }
.cs-mockup-dot.dot-g { background: #10b981; }

.cs-mockup-url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-mockup-lock {
  width: 11px;
  height: 11px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.cs-mockup-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(19, 165, 127, 0.12);
  color: #13a57f;
  border: 1px solid rgba(19, 165, 127, 0.22);
  flex-shrink: 0;
}

/* Slide Mockup Window Bar */
.cs-mockup-slide-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 0 !important;
}

.cs-mockup-slide-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.cs-mockup-slide-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-faint);
}

.cs-hero-visual-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   2. METRICS / IMPACT STAT STRIP (4 DASHBOARD CARDS IN ONE ROW)
   ========================================================================== */
.cs-stats-strip-section {
  padding: 64px 0 80px;
  position: relative;
  z-index: 2;
  border-top: none;
  border-bottom: 1px solid var(--layout-grid-line);
  background: transparent;
}

.cs-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Base Dashboard Card */
.cs-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease;
}

.cs-stat-card:nth-child(1) { transition-delay: 0.05s; }
.cs-stat-card:nth-child(2) { transition-delay: 0.15s; }
.cs-stat-card:nth-child(3) { transition-delay: 0.25s; }
.cs-stat-card:nth-child(4) { transition-delay: 0.35s; }

.cs-stat-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.cs-stat-card.in-view:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px -12px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Fallback for no-js */
html:not(.js) .cs-stat-card {
  opacity: 1;
  transform: none;
}

/* Card Headers */
.cs-sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.cs-sc-title {
  font-family: var(--font-latin);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.cs-sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-sc-badge.badge-green {
  background: rgba(19, 165, 127, 0.14);
  color: #13a57f;
  border: 1px solid rgba(19, 165, 127, 0.25);
}

.cs-sc-badge.badge-blue {
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.cs-sc-badge.badge-yellow {
  background: rgba(250, 204, 21, 0.14);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.cs-sc-badge.badge-purple {
  background: rgba(167, 139, 250, 0.14);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.beacon-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #13a57f;
  box-shadow: 0 0 8px #13a57f;
  animation: csPulse 2s infinite ease-in-out;
}

@keyframes csPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px #13a57f; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Metrics Typography */
.cs-sc-metric-wrap {
  margin-bottom: 16px;
}

.cs-stat-number {
  font-family: var(--font-latin);
  font-size: clamp(2.1rem, 2.7vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
  font-feature-settings: "tnum" 1, "cv05" 1;
}

.cs-stat-label {
  font-family: var(--font-latin);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-dim);
  margin: 0;
}

/* Card 1: Pills & Sub-row */
.cs-sc-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cs-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card-3);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cs-mini-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.cs-pill-arrow {
  color: #13a57f;
  font-weight: 800;
  font-size: 0.8125rem;
}

.cs-sc-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
  margin-top: auto;
}

.cs-sc-sub-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-sc-sub-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 700;
}

.cs-sc-sub-val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

/* Card 2: Segmented Bar & Chips */
.cs-sc-seg-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  gap: 3px;
  background: var(--card-3);
  margin-bottom: 16px;
  padding: 1px;
}

.cs-seg {
  height: 100%;
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.seg-blue { background: #60a5fa; }
.seg-green { background: #13a57f; }
.seg-yellow { background: #facc15; }
.seg-purple { background: #a78bfa; }

.cs-sc-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: auto;
}

.cs-sc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.cs-sc-chip strong {
  color: var(--text);
  font-weight: 700;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: #13a57f; }
.dot-blue { background: #60a5fa; }
.dot-yellow { background: #facc15; }
.dot-purple { background: #a78bfa; }

/* Card 3: Rows List */
.cs-sc-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.cs-sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  font-size: 0.75rem;
}

.cs-row-name {
  color: var(--text-dim);
  font-weight: 500;
}

.cs-row-val {
  color: var(--text);
  font-weight: 700;
}

.cs-row-tag {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-row-tag.tag-green {
  background: rgba(19, 165, 127, 0.16);
  color: #13a57f;
}

.cs-row-tag.tag-blue {
  background: rgba(96, 165, 250, 0.16);
  color: #60a5fa;
}

.cs-row-tag.tag-purple {
  background: rgba(167, 139, 250, 0.16);
  color: #a78bfa;
}

/* Card 4: Spendings / Conversion Bar Chart */
.cs-sc-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  color: var(--text-faint);
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.leg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.leg-dot.dot-yellow { background: #facc15; }
.leg-dot.dot-muted { background: var(--text-faint); opacity: 0.6; }

.cs-sc-barchart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 82px;
  padding-top: 10px;
  gap: 6px;
  margin-top: auto;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 6px;
}

.cs-bc-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.cs-bc-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 56px;
  width: 100%;
  justify-content: center;
}

.cs-bc-bar {
  width: 7px;
  border-radius: 4px 4px 1px 1px;
  transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.cs-bc-bar.bar-active {
  background: #facc15;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.3);
}

.cs-bc-bar.bar-base {
  background: rgba(152, 152, 159, 0.28);
}

.cs-bc-col-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   THMARTY BESPOKE STAT CARD MOCKUPS / WIDGETS
   ========================================================================== */

/* --- Card 1: Trade Distribution Bar & KPI Pods --- */
.cs-trade-dist-wrap {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-trade-dist-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.cs-trade-dist-labels strong {
  color: var(--text);
  font-weight: 700;
}

.cs-trade-dist-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  gap: 3px;
  background: var(--card-3);
  padding: 1px;
}

.cs-td-segment {
  display: block;
  height: 100%;
  border-radius: 999px;
  width: var(--target-w, 50%);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.cs-td-export {
  background: #13a57f;
  box-shadow: 0 0 8px rgba(19, 165, 127, 0.35);
}

.cs-td-import {
  background: #facc15;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.25);
}

.cs-trade-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.cs-trade-kpi-tile {
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-kpi-tile-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 700;
}

.cs-kpi-tile-val {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-latin);
}

.cs-kpi-tile-sub {
  font-size: 0.625rem;
  color: #13a57f;
  font-weight: 600;
}

/* --- Card 2: Speed Waterfall Latency Pipeline --- */
.cs-speed-pipeline {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cs-pipe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 0.75rem;
}

.cs-pipe-stage {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-size: 0.6875rem;
}

.cs-pipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cs-pipe-dot.dot-blue { background: #60a5fa; }
.cs-pipe-dot.dot-yellow { background: #facc15; }
.cs-pipe-dot.dot-green { background: #13a57f; }

.cs-pipe-time {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text);
}

.cs-pipe-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 10px;
  margin-top: 1px;
}

.cs-pipe-sum-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cs-pipe-sum-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
}

/* --- Card 3: Cold-Chain Sensor HUD & Atmosphere Matrix --- */
.cs-sensor-hud {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cs-temp-scale-box {
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-temp-scale-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.cs-temp-scale-head strong {
  color: #13a57f;
  font-family: var(--font-mono, monospace);
}

.cs-temp-track {
  position: relative;
  height: 6px;
  background: var(--card-3);
  border-radius: 999px;
  overflow: visible;
}

.cs-temp-safe-zone {
  position: absolute;
  left: 20%;
  width: 55%;
  height: 100%;
  background: rgba(19, 165, 127, 0.35);
  border-radius: 999px;
}

.cs-temp-pointer {
  position: absolute;
  top: -3px;
  left: 48%;
  width: 12px;
  height: 12px;
  background: #13a57f;
  border: 2px solid var(--card);
  border-radius: 50%;
  box-shadow: 0 0 8px #13a57f;
  transform: translateX(-50%);
}

.cs-sensor-pods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cs-sensor-pod {
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 6px 6px;
  text-align: center;
}

.cs-sensor-pod-name {
  display: block;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 700;
}

.cs-sensor-pod-val {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
}

/* --- Card 4: Procurement Turnaround Velocity Comparison --- */
.cs-turnaround-hud {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-turnaround-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-turnaround-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
}

.cs-turnaround-title {
  color: var(--text-dim);
  font-size: 0.6875rem;
}

.cs-turnaround-time {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--text);
}

.cs-turnaround-bar-track {
  height: 8px;
  background: var(--card-3);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
}

.cs-turnaround-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  width: var(--target-w, 50%);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.cs-fill-legacy {
  background: rgba(152, 152, 159, 0.5) !important;
}

.cs-fill-modern {
  background: #facc15 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

.cs-procure-funnel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 2px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 6px;
}

.cs-funnel-step {
  text-align: center;
}

.cs-funnel-step-name {
  display: block;
  font-size: 0.5625rem;
  color: var(--text-faint);
  font-weight: 600;
  text-transform: uppercase;
}

.cs-funnel-step-rate {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
  font-weight: 800;
  color: #facc15;
  margin-top: 1px;
}

/* ==========================================================================
   EASY GPA CALCULATOR STARTUP STAT CARD MOCKUPS (SEO, SPEED, TRACTION, SCALES)
   ========================================================================== */

/* --- Card 1: Organic SEO & Search Console Telemetry --- */
.cs-seo-hud {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cs-seo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 0.75rem;
}

.cs-seo-query {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-seo-icon {
  color: #13a57f;
  flex-shrink: 0;
}

.cs-seo-rank {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 0.6875rem;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.cs-seo-rank.rank-1 {
  background: rgba(19, 165, 127, 0.16);
  color: #13a57f;
  border: 1px solid rgba(19, 165, 127, 0.3);
}

.cs-seo-rank.rank-top {
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.cs-seo-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 1px;
}

.cs-seo-stat-tile {
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 6px;
  text-align: center;
}

.cs-seo-stat-tile .cs-kpi-tile-label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  font-weight: 700;
  display: block;
}

.cs-seo-stat-tile .cs-kpi-tile-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 2px;
  display: block;
}

/* --- Card 3: Student Traction & Completion Progress --- */
.cs-student-hud {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-student-bar-box {
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cs-student-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.cs-student-bar-head strong {
  color: #13a57f;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
}

.cs-student-bar-track {
  height: 7px;
  background: var(--card-3);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.cs-student-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #13a57f;
  box-shadow: 0 0 8px rgba(19, 165, 127, 0.4);
  width: var(--target-w, 88%);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.cs-student-bar-sub {
  font-size: 0.625rem;
  color: var(--text-faint);
  font-family: var(--font-mono, monospace);
}

/* --- Card 4: Grading Scales Agility & Export HUD --- */
.cs-scales-hud {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-scales-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cs-scale-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-family: var(--font-mono, monospace);
}

.cs-scale-tag.tag-au {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.25);
}

.cs-scale-tag.tag-wam {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.25);
}

.cs-scale-tag.tag-us {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.25);
}

.cs-scale-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 10px;
}

.cs-scale-sum-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #facc15;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cs-scale-sum-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
}

/* ==========================================================================
   THE CLEAN PLUMBER STAT CARD MOCKUPS (BOOKING RADAR, CWV, UPTIME, SERP)
   ========================================================================== */
.cs-plumber-hud {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Card 1: Booking & Dispatch Simulator */
.cs-sim-service-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}

.cs-sim-icon-badge {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(19, 165, 127, 0.14);
  color: #13a57f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-sim-icon-badge svg {
  width: 13px;
  height: 13px;
}

.cs-sim-service-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.cs-sim-sub-tag {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 700;
}

.cs-sim-service-name {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-sim-status-chip {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
  white-space: nowrap;
}

.cs-sim-postcode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  gap: 8px;
}

.cs-sim-postcode-field {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
}

.cs-sim-pin-icon {
  width: 12px;
  height: 12px;
  color: #13a57f;
  flex-shrink: 0;
}

.cs-sim-dispatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.625rem;
  color: #13a57f;
  font-weight: 700;
  white-space: nowrap;
}

.cs-sim-funnel-bar-box {
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cs-sim-funnel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.cs-sim-funnel-head strong {
  font-family: var(--font-mono, monospace);
  font-size: 0.6875rem;
  font-weight: 800;
}

.cs-sim-track {
  height: 6px;
  background: var(--card-3);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.cs-sim-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.cs-sim-fill.fill-emerald {
  background: #13a57f;
  box-shadow: 0 0 8px rgba(19, 165, 127, 0.4);
}

.cs-sim-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cs-sim-kpi-tile {
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 6px 8px;
  text-align: center;
}

.cs-sim-kpi-lbl {
  font-size: 0.5625rem;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  display: block;
  letter-spacing: 0.04em;
}

.cs-sim-kpi-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 1px;
  display: block;
}

/* Card 2: Core Web Vitals 4-Circle Radar */
.cs-cwv-scores-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 8px 6px;
}

.cs-cwv-circle {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 44px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-cwv-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.cs-circle-bg {
  fill: none;
  stroke: var(--card-3);
  stroke-width: 3.2;
}

.cs-circle-val {
  fill: none;
  stroke: #13a57f;
  stroke-width: 3.2;
  stroke-linecap: round;
}

.cs-cwv-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cs-cwv-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 800;
  color: #13a57f;
}

.cs-cwv-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  margin-top: 1px;
}

.cs-cwv-timing-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cs-cwv-timing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 0.6875rem;
}

.cs-cwv-t-left {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-size: 0.6875rem;
}

.cs-cwv-t-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Card 3: 24/7 Production Cluster Monitor */
.cs-up-status-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}

.cs-up-status-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cs-up-status-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.cs-up-status-sub {
  display: block;
  font-size: 0.5625rem;
  color: #13a57f;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cs-up-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(19, 165, 127, 0.14);
  color: #13a57f;
  border: 1px solid rgba(19, 165, 127, 0.25);
}

.cs-up-cache-box {
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cs-up-cache-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.cs-up-cache-head strong {
  color: #13a57f;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 0.6875rem;
}

.cs-up-cache-track {
  height: 6px;
  background: var(--card-3);
  border-radius: 999px;
  overflow: hidden;
  width: 100%;
}

.cs-up-cache-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #13a57f, #34d399);
  box-shadow: 0 0 10px rgba(19, 165, 127, 0.5);
}

/* Card 4: Mobile UX Redesign & Service Discovery HUD */
.cs-redesign-hud {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-redesign-compare-box {
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cs-redesign-compare-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.cs-redesign-compare-head strong {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  color: #13a57f;
  font-size: 0.6875rem;
}

.cs-redesign-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.cs-redesign-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-redesign-pill svg {
  width: 12px;
  height: 12px;
  color: #13a57f;
  flex-shrink: 0;
}

.text-emerald { color: #13a57f !important; }
.text-blue { color: #60a5fa !important; }
.text-yellow { color: #facc15 !important; }

/* Light Mode Overrides for Plumber HUD Mockups */
html[data-theme="light"] .cs-sim-service-pill,
html[data-theme="light"] .cs-sim-postcode-row,
html[data-theme="light"] .cs-sim-funnel-bar-box,
html[data-theme="light"] .cs-sim-kpi-tile,
html[data-theme="light"] .cs-cwv-scores-row,
html[data-theme="light"] .cs-cwv-timing-row,
html[data-theme="light"] .cs-up-status-box,
html[data-theme="light"] .cs-up-cache-box,
html[data-theme="light"] .cs-redesign-compare-box,
html[data-theme="light"] .cs-redesign-pill {
  background: #f7f7f6;
  border-color: rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .cs-circle-bg,
html[data-theme="light"] .cs-sim-track,
html[data-theme="light"] .cs-up-cache-track {
  background: rgba(0, 0, 0, 0.08);
  stroke: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   3. EDITORIAL NARRATIVE STATEMENT (CENTERED LEAD WITH SCROLL WORD REVEAL)
   ========================================================================== */
.cs-editorial-lead-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
  border-top: none;
  border-bottom: 1px solid var(--layout-grid-line);
}

.cs-editorial-lead-text {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-latin);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--text);
}

.cs-reveal-word {
  display: inline;
  color: var(--text);
  opacity: 0.22;
  transition: opacity 0.1s ease-out;
  will-change: opacity;
}

.cs-reveal-word.is-active {
  opacity: 1;
}

/* Responsive Breakpoints for Hero & Stats */
@media (max-width: 1024px) {
  .cs-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cs-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .cs-hero-section {
    padding: 40px 0 56px;
  }
}

@media (max-width: 640px) {
  .cs-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cs-editorial-lead-section {
    padding: 48px 0;
  }
  .cs-hero-title {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
  }
}

.cs-stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #13a57f;
  box-shadow: 0 0 8px rgba(19, 165, 127, 0.6);
}

/* ==========================================================================
   4. ABOUT THE PROJECT (METADATA CARDS)
   ========================================================================== */
.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

@media (max-width: 992px) {
  .cs-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .cs-meta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.cs-meta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.cs-meta-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

/* Subtle dot-matrix pattern in corner matching reference design */
.cs-meta-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background-image: radial-gradient(circle, var(--text-faint) 1.2px, transparent 1.2px);
  background-size: 11px 11px;
  opacity: 0.2;
  mask-image: radial-gradient(circle at 100% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

html[dir="rtl"] .cs-meta-card::after {
  right: auto;
  left: 0;
  mask-image: radial-gradient(circle at 0% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 0% 0%, black 20%, transparent 75%);
}

.cs-meta-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 24px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.cs-meta-card:hover .cs-meta-icon {
  transform: scale(1.06);
}

.cs-meta-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.cs-meta-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 12px 0;
  letter-spacing: -0.015em;
}

.cs-meta-desc {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.cs-meta-desc a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cs-meta-desc a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

html[data-theme="light"] .cs-meta-desc a:hover {
  color: #000000;
  text-decoration-color: #000000;
}

@media (max-width: 640px) {
  .cs-meta-card {
    padding: 28px 22px;
  }

  .cs-meta-title {
    font-size: 1.125rem;
  }
}

/* Narrative Story Block */
.cs-story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 40px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 20px;
}

@media (max-width: 768px) {
  .cs-story-block {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }
}

.cs-story-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.cs-story-col p {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 14px;
}

.cs-story-col p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   5. PROJECT OVERVIEW (1.5 IMAGE SLIDER WITH LIGHT GRID BORDERS)
   ========================================================================== */
.cs-overview-section {
  padding: 80px 0 96px;
  position: relative;
  z-index: 2;
  border-top: none;
  border-bottom: 1px solid var(--layout-grid-line);
  overflow: hidden;
}

.cs-overview-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.cs-overview-title-col {
  max-width: 640px;
}

.cs-overview-title-col .cs-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.cs-overview-title-col .cs-section-subtitle {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* Slider Controls */
.cs-slider-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cs-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 !important;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.cs-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.cs-nav-btn:active {
  transform: scale(0.96);
}

.cs-nav-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.cs-slider-counter {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  padding: 0 6px;
  user-select: none;
}

.cs-counter-curr {
  color: var(--text);
  font-weight: 700;
}

.cs-counter-sep {
  margin: 0 4px;
  opacity: 0.4;
}

/* Slider Track */
.cs-slider-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 2px 16px;
  cursor: grab;
}

.cs-slider-track::-webkit-scrollbar {
  display: none;
}

.cs-slider-track.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

/* 1.5 Images per slide: 1 full image + 28px gap + 0.5 next image visible */
.cs-slider-item {
  flex: 0 0 calc((100% - 28px) / 1.5);
  min-width: 0;
  scroll-snap-align: start;
  border-radius: 0 !important;
}

/* Light Grid Border Technical Framing (Zero Border Radius) */
.cs-slider-grid-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 !important;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-image: 
    linear-gradient(to right, var(--border-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-soft) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}

.cs-slider-grid-frame:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

/* Corner Crosshairs (+) for Architectural Technical Grid */
.cs-grid-cross {
  position: absolute;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: var(--text-dim);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.cs-grid-cross.cross-tl { top: -7px; left: -7px; }
.cs-grid-cross.cross-tr { top: -7px; right: -7px; }
.cs-grid-cross.cross-bl { bottom: -7px; left: -7px; }
.cs-grid-cross.cross-br { bottom: -7px; right: -7px; }

/* Image Container (Zero Border Radius) */
.cs-slider-img-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0 !important;
  background: #000000;
  aspect-ratio: 16 / 10.6;
}

.cs-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-slider-grid-frame:hover .cs-slider-img {
  transform: scale(1.02);
}

/* RTL Support */
html[dir="rtl"] .cs-prev-btn svg,
html[dir="rtl"] .cs-next-btn svg {
  transform: scaleX(-1);
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 991px) {
  .cs-slider-item {
    flex: 0 0 calc((100% - 20px) / 1.35);
  }
  .cs-slider-track {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .cs-overview-section {
    padding: 60px 0 72px;
  }

  .cs-overview-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
  }

  .cs-slider-item {
    flex: 0 0 86%;
  }

  .cs-slider-grid-frame {
    padding: 10px;
  }

  .cs-slide-caption {
    white-space: normal;
  }
}

/* ==========================================================================
   6. HOMEPAGE CTA ADAPTATION
   ========================================================================== */
.cs-cta-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 100px 0 120px;
}

/* ==========================================================================
   6. LIGHT MODE SYSTEM OVERRIDES (STRICT NOTE.MD COMPLIANCE)
   ========================================================================== */
/* Light Mode Stat Cards */
html[data-theme="light"] .cs-stat-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .cs-stat-card.in-view:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .cs-mini-pill {
  background: #f7f7f6;
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text);
}

html[data-theme="light"] .cs-stat-card .cs-sc-chip,
html[data-theme="light"] .cs-stat-card .cs-sc-row {
  background: #f7f7f6;
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .cs-bc-bar.bar-base {
  background: rgba(0, 0, 0, 0.1);
}

/* Light Mode Project Overview & Hero */
html[data-theme="light"] .cs-meta-icon {
  background: none;
  border: none;
  color: var(--text);
}

html[data-theme="light"] .cs-meta-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .cs-meta-card:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .cs-hero-visual-card {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .cs-hero-visual-card:hover {
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.14);
}

/* Light Mode Slider Frame & Controls */
html[data-theme="light"] .cs-nav-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

html[data-theme="light"] .cs-nav-btn:hover {
  background: #f0f0ee;
  border-color: rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .cs-slider-grid-frame {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  box-shadow: 0 4px 20px -6px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .cs-slider-grid-frame:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.09);
}

html[data-theme="light"] .cs-slider-img-wrap {
  border-color: rgba(0, 0, 0, 0.1);
  background: #f7f7f6;
}

html[data-theme="light"] .cs-grid-cross {
  color: rgba(0, 0, 0, 0.4);
}

/* Light Theme Overrides for Browser Mockup Elements */
html[data-theme="light"] .cs-mockup-bar,
html[data-theme="light"] .cs-mockup-slide-bar {
  background: #f2f2f0;
  border-bottom-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .cs-mockup-url {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text);
}

html[data-theme="light"] .cs-mockup-slide-url {
  color: var(--text-dim);
}

html[data-theme="light"] .cs-mockup-slide-num {
  color: var(--text-faint);
}

/* Light Theme Overrides for Thmarty Stat Card Widgets */
html[data-theme="light"] .cs-trade-kpi-tile,
html[data-theme="light"] .cs-pipe-row,
html[data-theme="light"] .cs-temp-scale-box,
html[data-theme="light"] .cs-sensor-pod,
html[data-theme="light"] .cs-procure-funnel {
  background: #f7f7f6;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .cs-pipe-summary-bar {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.25);
}

html[data-theme="light"] .cs-turnaround-bar-track,
html[data-theme="light"] .cs-trade-dist-bar,
html[data-theme="light"] .cs-temp-track {
  background: #e9e9e6;
}

/* Light Theme Overrides for Easy GPA Calculator Stat Card Widgets */
html[data-theme="light"] .cs-seo-row,
html[data-theme="light"] .cs-seo-stat-tile,
html[data-theme="light"] .cs-student-bar-box,
html[data-theme="light"] .cs-scale-tag {
  background: #f7f7f6;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .cs-student-bar-track {
  background: #e9e9e6;
}

/* ==========================================================================
   Project Overview Slider Lightbox Popup
   ========================================================================== */
.cs-slider-img-wrap,
.cs-slider-grid-frame {
  cursor: zoom-in;
}

.cs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.cs-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cs-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 11, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: zoom-out;
}

.cs-lightbox-dialog {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: min(1360px, 94vw);
  max-height: 94vh;
  margin: auto;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.cs-lightbox.is-open .cs-lightbox-dialog {
  transform: scale(1) translateY(0);
}

/* Lightbox Top Control Bar */
.cs-lightbox-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--text);
  gap: 16px;
}

.cs-lightbox-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cs-lightbox-counter {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #10b981;
  white-space: nowrap;
}

.cs-lightbox-caption {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
}

.cs-lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cs-lightbox-close:hover {
  background: var(--card-3);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
  transform: scale(1.06);
}

.cs-lightbox-close svg {
  width: 20px;
  height: 20px;
}

/* Lightbox Stage & Frame (Technical Architectural Grid) */
.cs-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.7);
  background-image:
    linear-gradient(to right, var(--border-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-soft) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}

.cs-lightbox-cross {
  position: absolute;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: var(--text-dim);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
  z-index: 5;
}

.cs-lightbox-cross.cross-tl { top: -7px; left: -7px; }
.cs-lightbox-cross.cross-tr { top: -7px; right: -7px; }
.cs-lightbox-cross.cross-bl { bottom: -7px; left: -7px; }
.cs-lightbox-cross.cross-br { bottom: -7px; right: -7px; }

.cs-lightbox-img-wrap {
  position: relative;
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-lightbox-img {
  display: block;
  max-width: min(1200px, 86vw);
  max-height: 74vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cs-lightbox-img.is-loading {
  opacity: 0.4;
  transform: scale(0.98);
}

/* Navigation Arrows */
.cs-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(23, 23, 26, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: all 0.22s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.cs-lightbox-prev {
  left: -26px;
}

.cs-lightbox-next {
  right: -26px;
}

.cs-lightbox-nav:hover {
  background: var(--card-3);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.cs-lightbox-nav svg {
  width: 26px;
  height: 26px;
}

/* Light Theme Overrides */
html[data-theme="light"] .cs-lightbox-backdrop {
  background: rgba(240, 240, 242, 0.92);
}

html[data-theme="light"] .cs-lightbox-stage {
  box-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .cs-lightbox-nav {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Mobile & Small Screens */
@media (max-width: 768px) {
  .cs-lightbox {
    padding: 16px 12px;
  }

  .cs-lightbox-header {
    margin-bottom: 10px;
  }

  .cs-lightbox-stage {
    padding: 8px;
  }

  .cs-lightbox-img {
    max-width: 92vw;
    max-height: 65vh;
  }

  .cs-lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .cs-lightbox-prev {
    left: 8px;
  }

  .cs-lightbox-next {
    right: 8px;
  }
}
