}

.tier-selector-btn:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.tier-selector-btn.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: white;
  font-weight: 600;
}

/* ─── Noise Texture Overlay ─── */

/* ─── Delivery Pipeline ─── */
.delivery-pipeline {
  margin-top: 3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.delivery-pipeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #3ab4e9, #2aebeb, transparent);
}

.delivery-pipeline::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  width: 22px;
  height: 2px;
  background: var(--accent-3);
}

.pipeline-stage {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
  transition: all var(--transition-med);
}

.pipeline-stage:hover {
  background: rgba(58, 180, 233, 0.02);
  border-radius: 16px;
}

.pipeline-number {
  position: absolute;
  top: 2rem;
  left: 0;
  width: 60px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-3);
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.pipeline-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  z-index: 1;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.pipeline-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-gradient);
  transform: scale(0);
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
}

.pipeline-stage:hover .pipeline-icon::before {
  transform: scale(1);
}

.pipeline-stage:hover .pipeline-icon {
  border-color: var(--accent-5);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.4), 0 0 60px rgba(42, 235, 235, 0.15);
  transform: scale(1.1);
}

/* Pipeline travel dot */
.pipeline-travel-dot {
  position: absolute;
  left: 22px;
  top: 15px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-5);
  z-index: 2;
  transform: translateY(-50%);
  opacity: 0.5;
  transition: top 0.5s var(--ease-out-expo), opacity 0.3s ease;
  box-shadow: 0 0 20px var(--accent-5), 0 0 40px rgba(42, 235, 235, 0.3);
}

.pipeline-travel-dot.active {
  opacity: 1;
}

.pipeline-content {
  flex: 1;
  padding: 0.5rem 0;
}

.pipeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.pipeline-stage:hover .pipeline-content h3 {
  color: var(--accent-4);
}

.pipeline-content > p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.pipeline-details {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}

.pipeline-details li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.pipeline-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-3);
}

/* ─── Tracking Demo ─── */
.tracking-demo {
  margin-top: 3rem;
}

.tracking-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.tracking-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-5), var(--accent-3));
  background-size: 200% 100%;
  animation: tracking-shimmer 3s linear infinite;
}

@keyframes tracking-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tracking-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tracking-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.tracking-status-dot.active {
  background: #00E676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}

.tracking-project-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.tracking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tracking-metric {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.tracking-metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-4);
  margin-bottom: 0.25rem;
}

.tracking-metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.tracking-bar {
  height: 4px;
  background: var(--glass-border);
  border-radius: 2px;
  overflow: hidden;
}

.tracking-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-5));
  border-radius: 2px;
  transition: width 1.5s var(--ease-out-expo);
}

.tracking-timeline-mini {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: space-between;
  position: relative;
  padding: 1rem 0;
}

.tracking-timeline-mini::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--glass-border);
  transform: translateY(-50%);
}

.tracking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.tracking-step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--glass-border);
  transition: all var(--transition-fast);
}

.tracking-step.completed .tracking-step-dot {
  background: var(--accent-5);
  border-color: var(--accent-5);
  box-shadow: 0 0 8px rgba(42, 235, 235, 0.3);
}

.tracking-step.active .tracking-step-dot {
  background: #00E676;
  border-color: #00E676;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}

.tracking-step span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

.tracking-step.completed span,
.tracking-step.active span {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .pipeline-details {
    grid-template-columns: 1fr;
  }

  /* Push the page header below the fixed nav so 'Delivery & Lifecycle'
     isn't crammed against the top of the viewport on mobile */
  body[data-page="delivery"] .hero.section,
  .hero.section {
    padding-top: calc(var(--nav-height, 64px) + 2.5rem);
  }

  /* ── Project Dashboard tracking timeline ──
     Reflow the 8 steps into a 3-up grid (3 / 3 / 2). Drop the long
     horizontal connector line and replace it with numbered cards plus
     subtle arrows that show the sequence direction. */
  .tracking-timeline-mini {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 0.6rem;
    padding: 1.25rem 0 0.5rem;
    counter-reset: tracking-step;
    justify-content: stretch;
  }
  .tracking-timeline-mini::before { display: none; }

  .tracking-step {
    counter-increment: tracking-step;
    padding: 0.7rem 0.35rem 0.6rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    gap: 0.4rem;
    min-width: 0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }
  /* Numbered badge top-right */
  .tracking-step::after {
    content: counter(tracking-step);
    position: absolute;
    top: 4px;
    right: 6px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.7;
  }
  /* Sequence arrow between steps in the same row (skip the 3rd of each row) */
  .tracking-step:not(:nth-child(3n))::before {
    content: '›';
    position: absolute;
    right: -0.55rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    line-height: 1;
    color: var(--accent-3);
    opacity: 0.55;
    z-index: 2;
    pointer-events: none;
  }
  .tracking-step span {
    font-size: 0.62rem;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
    word-break: break-word;
  }
  .tracking-step-dot {
    width: 12px;
    height: 12px;
  }
  .tracking-step.completed {
    background: color-mix(in srgb, var(--accent-5) 8%, rgba(255,255,255,0.025));
    border-color: color-mix(in srgb, var(--accent-5) 35%, var(--glass-border));
  }
  .tracking-step.active {
    background: color-mix(in srgb, #00E676 10%, rgba(255,255,255,0.025));
    border-color: color-mix(in srgb, #00E676 45%, var(--glass-border));
    transform: translateY(-1px);
  }
}

