
/* ── SITE HEADER ── */
.site-header {
  position: relative;
  z-index: 100;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-top: 56px;
  padding: 80px 48px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.page-header-left {
  display: flex;
  flex-direction: column;
}

.page-header-right {
  display: flex;
  flex-direction: column;
}

.page-label {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5ddcff;
  margin-bottom: 20px;
}

.page-title {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: #e8f1f5;
}

.page-title em {
  font-style: italic;
  color: #b3c4cc;
}

.page-desc {
  font-size: 1rem;
  color: #b3c4cc;
  line-height: 1.75;
  max-width: 420px;
  margin-left: auto;
}

.page-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: "Libre Baskerville", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #e8f1f5;
  line-height: 1;
}

.stat-label {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f98a3;
  margin-top: 6px;
}

/* ── MAIN CONTENT ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 120px;
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 8px;
  padding-top: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.filter-btn {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f98a3;
  background: none;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  flex: 1 1 140px;
  min-width: 140px;
}

.filter-btn:hover { color: #e8f1f5; }
.filter-btn.active {
  color: #5ddcff;
  border-bottom-color: #5ddcff;
}

/* ── PROJECTS CONTAINER ── */
.projects {
  display: flex;
  flex-direction: column;
}
.project-outcome {
  font-size: 0.9rem;
  color: #b3c4cc;
  margin-bottom: 20px;
}

.project-outcome strong {
  color: #5ddcff;
}

/* ── PROJECT ROWS ── */
.project-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0 40px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-row.visible {
  opacity: 1;
  transform: none;
}

.project-index {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  color: #7f98a3;
  letter-spacing: 0.05em;
  padding-top: 6px;
}

.project-body {
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5ddcff;
  background: rgba(93, 220, 255, 0.08);
  padding: 3px 10px;
  border-radius: 2px;
}

.project-status {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f98a3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7f98a3;
}

.status-dot.live  { background: #3a9e5f; }
.status-dot.pilot { background: #e0a020; }

.project-name {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: #e8f1f5;
  line-height: 1.2;
  margin-bottom: 10px;
}

.project-client {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #7f98a3;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-insight {
  font-size: 1rem;
  color: #b3c4cc;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 24px;
}

.project-insight strong {
  color: #5ddcff;
  font-weight: 600;
}

.project-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.breakdown-pill {
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  color: #b3c4cc;
  background: rgba(24, 47, 58, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 2px;
}

.insight-block {
  border-left: 2px solid #5ddcff;
  padding: 14px 20px;
  background: rgba(93, 220, 255, 0.08);
  margin-bottom: 28px;
  max-width: 560px;
}

.insight-block p {
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #e8f1f5;
  line-height: 1.7;
}

.project-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.project-link {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5ddcff;
  text-decoration: none;
  border-bottom: 1px solid #5ddcff;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.project-link:hover { opacity: 0.7; }

/* ── VISUAL CARDS ── */
.project-visual { width: 200px; flex-shrink: 0; }

.visual-card {
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.visual-card.ganga {
  background: linear-gradient(160deg, #1a3a5c 0%, #0d1f33 60%, #060f1a 100%);
}

.visual-card.des {
  background: linear-gradient(160deg, #1f1a0a 0%, #2d2510 60%, #0f0d05 100%);
}

.vc-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.vc-name {
  font-family: "Libre Baskerville", serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}

.vc-decoration {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}

.vc-lines {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.03) 12px,
    rgba(255,255,255,0.03) 13px
  );
}

/* ── BOTTOM CTA ── */
.bottom-cta {
  margin-top: 80px;
  padding: 64px;
  background: #1a1a1a;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.bcta-label {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.bcta-title {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
}

.bcta-title em { font-style: italic; color: rgba(255,255,255,0.6); }

.bcta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d1a21;
  background: #5ddcff;
  padding: 16px 28px;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s;
}

.bcta-btn:hover { background: rgba(93, 220, 255, 0.9); color: #0d1a21; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }

  .page-header {
    grid-template-columns: 1fr;
    padding: 60px 24px 40px;
    gap: 32px;
  }

  .page-desc { 
    display: none;
    margin-left: 0; max-width: 100%; }

  main { padding: 0 24px 80px; }

  .filter-bar {
    gap: 10px;
    padding-top: 24px;
  }

  .filter-btn {
    min-width: 120px;
  }

 .project-row {
    grid-template-columns: 32px 1fr;
    gap: 0 16px;
    padding: 32px 0;
  }

  .project-name {
    font-size: 1.3rem;
  }

  .project-insight {
    font-size: 0.95rem;
  }

  .project-breakdown {
    gap: 6px;
  }

  .breakdown-pill {
    font-size: 0.6rem;
    padding: 4px 8px;
  }


  .project-visual { display: none; }

  .bottom-cta {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 32px;
  }
}

.work-intro {
  padding: 80px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.work-intro__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.work-intro__label {
  font-family: "DM Mono";
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5ddcff;
  margin-bottom: 16px;
}

.work-intro__heading {
  font-family: "Libre Baskerville";
  font-size: 2rem;
  color: #e8f1f5;
  line-height: 1.3;
}

.work-intro__right p {
  color: #b3c4cc;
  line-height: 1.7;
  margin-bottom: 16px;
}

.work-intro__right p em {
  font-style: italic;
  color: #5ddcff;
}

@media (max-width: 900px) {

  .work-intro {
    padding: 30px 24px;
  }

  .work-intro__container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .work-intro__heading {
    font-size: 1.6rem;
  }

  .work-intro__right p {
    display: none;
    font-size: 0.95rem;
  }

}


/* ── SYSTEM TYPES SECTION ── */
.system-types {
  padding: 64px 48px;
}

.system-types__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.system-type h3 {
  font-family: "Libre Baskerville";
  font-size: 1.2rem;
  color: #e8f1f5;
  margin-bottom: 10px;
}

.system-type p {
  font-size: 0.9rem;
  color: #7f98a3;
}

@media (max-width: 900px) {

  .system-types {
    display: none;
    padding: 48px 24px;
  }

  .system-types__container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .system-type h3 {
    font-size: 1rem;
  }

  .system-type p {
    font-size: 0.85rem;
  }

}

@media (max-width: 500px) {

  .system-types__container {
    grid-template-columns: 1fr;
  }

}

/* ── COMPARISON SECTION ── */

.comparison {
  padding: 80px 48px;
  background: #1a1a1a;
}

.comparison__container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.comparison__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
  gap: 32px;
}

.comparison__col {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px;
}

.comparison__col.highlight {
  border-color: #5ddcff;
}

.comparison__col h4 {
  margin-bottom: 16px;
  color: #e8f1f5;
}

.comparison__col ul {
  list-style: none;
  padding: 0;
}

.comparison__col li {
  color: #b3c4cc;
  margin-bottom: 10px;
}

@media (max-width: 900px) {

  .comparison {
    padding: 60px 24px;
  }

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

  .comparison__col {
    padding: 24px;
  }

}

/* ── PIPELINE INLINE STYLES (MOVED FROM HTML) ── */

/* Indented pipeline row */
.pipeline-row--indented {
  padding-left: 1rem;
}

/* Flex container for pipeline outputs */
.pipeline-flex-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: 0.5rem;
}

/* Badge styling (NEW, CONTACTED, etc) */
.pipeline-badge {
  margin-left: 0.3rem;
  padding: 0.15rem 0.5rem;
}

/* Muted/secondary node */
.pipeline-node--muted {
  opacity: 0.6;
}

/* Small footnote text in pipeline */
.pipeline-footnote {
  opacity: 0.6;
  font-size: 0.65rem;
}

/* ── PIPELINE RESPONSIVE FIXES ── */

@media (max-width: 720px) {
  .pipeline-diagram {
    margin: var(--space-md) 0;
    padding: var(--space-sm);
  }

  .pipeline {
    min-width: auto;
  }

  .pipeline-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .pipeline-node,
  .pipeline-arrow {
    min-width: 0;
  }

  .pipeline-node {
    white-space: normal;
    flex: 1 1 100%;
  }

  .pipeline-arrow {
    flex: 0 0 auto;
    margin: 0.25rem 0;
  }

  .pipeline-row.pipeline-row--indented {
    padding-left: 0;
  }

  .pipeline-flex-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 0;
  }

  .pipeline-divider {
    margin: 0.75rem 0;
  }
}

@media (max-width: 520px) {
  .pipeline-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline-node,
  .pipeline-arrow {
    width: 100%;
  }

  .pipeline-arrow {
    text-align: center;
  }
}

/* Pipeline diagram styles */
    .pipeline-diagram {
      margin: var(--space-lg) 0;
      padding: var(--space-md);
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
      overflow-x: auto;
    }

    .pipeline-diagram__label {
      font-family: "DM Mono", monospace;
      font-size: var(--fs-300);
      color: var(--color-text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: var(--space-md);
    }

    .pipeline {
      display: flex;
      flex-direction: column;
      gap: var(--space-sm);
      min-width: 480px;
    }

    .pipeline-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .pipeline-node {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.45rem 0.85rem;
      border-radius: var(--radius-sm);
      font-family: "DM Mono", monospace;
      font-size: 0.72rem;
      line-height: 1.3;
      white-space: nowrap;
      border: 1px solid var(--color-border);
      background: var(--color-bg-soft);
      color: var(--color-text-secondary);
    }

    .pipeline-node.trigger {
      border-color: var(--color-accent);
      color: var(--color-accent);
      background: rgba(93, 220, 255, 0.06);
    }

    .pipeline-node.engine {
      border-color: rgba(93, 220, 255, 0.4);
      background: rgba(93, 220, 255, 0.04);
      color: var(--color-text-primary);
    }

    .pipeline-node.output {
      background: rgba(255,255,255,0.04);
      color: var(--color-text-secondary);
    }

    .pipeline-node.status-new {
      border-color: rgba(255,200,80,0.4);
      color: rgba(255,200,80,0.9);
      background: rgba(255,200,80,0.05);
    }

    .pipeline-node.status-contacted {
      border-color: rgba(93, 220, 255, 0.4);
      color: var(--color-accent);
      background: rgba(93, 220, 255, 0.05);
    }

    .pipeline-node.status-confirmed {
      border-color: rgba(80,220,120,0.4);
      color: rgba(80,220,120,0.9);
      background: rgba(80,220,120,0.05);
    }

    .pipeline-node.tracker {
      border-color: rgba(180,130,255,0.4);
      color: rgba(180,130,255,0.9);
      background: rgba(180,130,255,0.05);
    }

    .pipeline-node.delta {
      border-color: rgba(80,220,120,0.35);
      color: rgba(80,220,120,0.85);
      background: rgba(80,220,120,0.04);
    }

    .pipeline-arrow {
      color: var(--color-text-muted);
      font-size: 0.75rem;
      flex-shrink: 0;
    }

    .pipeline-split {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .pipeline-divider {
      height: 1px;
      background: var(--color-border);
      margin: 0.25rem 0;
      width: 100%;
    }

    .pipeline-section-label {
      font-family: "DM Mono", monospace;
      font-size: 0.65rem;
      color: var(--color-text-muted);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      padding: 0.2rem 0;
    }

    @media (max-width: 720px) {
      .pipeline-diagram {
        margin: var(--space-md) 0;
        padding: var(--space-sm);
      }

      .pipeline {
        min-width: auto;
      }

      .pipeline-row {
        flex-wrap: wrap;
        justify-content: flex-start;
      }

      .pipeline-node,
      .pipeline-arrow {
        min-width: 0;
      }

      .pipeline-node {
        white-space: normal;
        flex: 1 1 100%;
      }

      .pipeline-arrow {
        flex: 0 0 auto;
        margin: 0.25rem 0;
      }

      .pipeline-row.pipeline-row--indented {
        padding-left: 0;
      }

      .pipeline-flex-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-left: 0;
      }

      .pipeline-divider {
        margin: 0.75rem 0;
      }
    }

    @media (max-width: 520px) {
      .pipeline-row {
        flex-direction: column;
        align-items: stretch;
      }

      .pipeline-node,
      .pipeline-arrow {
        width: 100%;
      }

      .pipeline-arrow {
        text-align: center;
      }
    }

    /* visual card for BCE */
    .visual-card.bce {
      background: linear-gradient(135deg, #0d1f2d 0%, #0a2a1a 100%);
      border: 1px solid rgba(80, 220, 120, 0.2);
    }
    .visual-card.bce .vc-tag {
      color: rgba(80, 220, 120, 0.7);
    }
    .visual-card.bce .vc-name {
      color: rgba(80, 220, 120, 0.9);
    }