/* ===========================================================================
   Projects Page Styles (Mobile-First High Fidelity)
   =========================================================================== */

/* ---- Hero / Headline ---- */
.projects-hero {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
  background: linear-gradient(135deg, #F0F6FA 0%, #FAFBFD 55%, #FFFDF8 100%);
  text-align: center;
  width: 100%;
}
.projects-hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #0B192C;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 1rem;
}
.projects-hero__text {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  color: #526071;
  max-width: 65ch;
  margin-inline: auto;
  line-height: 1.65;
}

/* ---- Row 1: Intelligent Solutions for Connected Operations ---- */
.projects-intro {
  padding-block: 40px;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
  width: 100%;
}
.projects-intro__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 40px);
  align-items: center;
}
@media (min-width: 900px) {
  .projects-intro__inner {
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
  }
}
.projects-intro__inner > * { min-width: 0; }

.projects-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #00A896;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.projects-eyebrow .badge-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #00B4A0;
  display: inline-block;
  margin-right: 0;
  box-shadow: 0 0 3px rgba(0, 180, 160, 0.45);
  animation: dot-pulse-subtle 3s ease-in-out infinite;
}
.projects-intro__heading {
  font-size: clamp(1.5rem, 4vw, 2.65rem);
  font-weight: 800;
  color: #0B192C;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.projects-intro__text {
  font-size: clamp(0.9rem, 2.2vw, 0.98rem);
  line-height: 1.68;
  color: #526071;
}
.projects-intro__media {
  border-radius: clamp(16px, 3vw, 24px);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(11, 25, 44, 0.08);
  background: #0B192C;
  max-width: 540px;
  margin-inline: auto;
  width: 100%;
}
@media (min-width: 900px) {
  .projects-intro__media {
    max-width: none;
  }
}
.projects-intro__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ---- Numbered Category Badge ---- */
.project-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #E6FBF7;
  border: 1px solid #B7F4E9;
  color: #0D9488;
  padding: 0.3rem 0.8rem 0.3rem 0.3rem;
  border-radius: 9999px;
  font-size: clamp(0.68rem, 2vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  max-width: 100%;
}
.badge-num-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 50%;
  background: #00B4A0;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

/* ---- Featured Projects Section & Boxed Cards ---- */
.featured-projects-section {
  padding-block: 40px;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
  width: 100%;
}
.featured-projects-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.featured-project-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: clamp(18px, 3.5vw, 24px);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: 0 4px 24px rgba(11, 25, 44, 0.03);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 40px);
  align-items: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.featured-project-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 12px 36px rgba(11, 25, 44, 0.06);
}

@media (min-width: 900px) {
  .featured-project-card {
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
  }
  .featured-project-card--reversed {
    grid-template-columns: 1fr 1.15fr;
  }
  .featured-project-card--reversed .featured-media-frame {
    order: 2;
  }
  .featured-project-card--reversed .featured-content {
    order: 1;
  }
}
.featured-project-card > * { min-width: 0; }

.featured-media-frame {
  border-radius: clamp(16px, 3vw, 20px);
  overflow: hidden;
  background: #0B192C;
  box-shadow: 0 14px 36px rgba(11, 25, 44, 0.15);
  padding: clamp(1.25rem, 3.5vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 540px;
  margin-inline: auto;
  width: 100%;
}
@media (min-width: 900px) {
  .featured-media-frame {
    max-width: none;
  }
}
.featured-media-frame img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}
.featured-content {
  text-align: left;
}
.featured-content__title {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 800;
  color: #0B192C;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
}
.featured-content__subheading {
  font-size: clamp(0.95rem, 2.5vw, 1.12rem);
  font-weight: 700;
  color: #0B192C;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.featured-content__text {
  font-size: clamp(0.88rem, 2vw, 0.95rem);
  line-height: 1.65;
  color: #526071;
  margin-bottom: 1.25rem;
  max-width: 55ch;
}
.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1.5rem;
}
.project-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0B192C;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  min-height: 34px;
  white-space: nowrap;
}
.featured-action {
  margin-top: 0.5rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0B192C;
  text-decoration: none;
  min-height: 40px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.project-link:hover, .project-link:focus-visible {
  gap: 0.65rem;
  color: #00A896;
}
