/* ==== Global Reset & Base ==== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}


/* Ensure main doesn't introduce extra spacing */
main {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ==== Container ==== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Transparent Navbar (Overlay Style) === */
header.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 0;
  z-index: 1000;
  /*background-color: rgba(0, 0, 0, 0.5);*/
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.1));
  backdrop-filter: blur(8px);
  box-shadow: none;
}


.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

.logo img.logo-img {
  height: 56px;  /* adjust height to fit your navbar */
  width: auto;

}

.logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1e3a8a;
}

/* New hex logo lockup */
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 42px; height: 42px; display: block; flex-shrink: 0; }
.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}
.lw-main { color: #ffffff; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; }
.lw-sub { color: #60a5fa; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.3em; margin-top: 3px; }
@media (max-width: 480px) { .logo-word { display: none; } }

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  padding-bottom: 4px;
  transition: all 0.2s ease;
  color: #ffffff;
}
.nav-links a:hover {
  color: #60a5fa; /* light blue on hover */
}

.nav-links a.active {
  border-bottom: 2px solid #60a5fa;
  color: #60a5fa;
}

/* ==== Hero Section ==== */

.hero {
  position: relative;
  background: radial-gradient(ellipse at 50% 25%, #16243f 0%, #0a0f1d 70%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  z-index: 1;
}


.hero-overlay {
  background-color: rgba(0, 0, 0, 0.55); /* Dark overlay */
  padding: 60px 30px;
  border-radius: 12px;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f1f1f1;
}

.btn-primary {
  display: inline-block;
  background-color: #2563eb;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  margin-right: 12px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #1e3a8a;
}


/* footer ---- */
.site-footer {
  background-color: #0f172a;
  color: #f1f5f9;
  padding: 60px 0 30px;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
  gap: 100px;
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}


.footer-map iframe {
  width: 100%;
  height: 160px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  margin-left: 0px;
}


.footer-bottom-links i {
  font-size: 1.2rem;
  margin: 0 10px;
  color: #60a5fa;
  transition: 0.2s ease;
}

.footer-bottom-links i:hover {
  color: #ffffff;
}


.footer-links,
.footer-contact,
.footer-solutions,
.footer-services {
  flex: 1 1 200px;
}

.footer-links h4,
.footer-contact h4,
.footer-solutions h4,
.footer-services h4 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: #f8fafc;
}

.footer-links ul,
.footer-solutions ul,
.footer-services ul{
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-solutions li,
.footer-services li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-solutions a,
.footer-services a {
  color: #94a3b8;
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact p,
.footer-contact a,
.footer-solutions a,
.footer-services a,
.footer-links a {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Bottom Footer */
.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 12px;
  color: #94a3b8;
}

.footer-bottom-links a {
  margin: 0 10px;
  color: #60a5fa;
  font-weight: 500;
  transition: 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

.footer-links,
.footer-contact {
  min-width: 200px;
  margin-left: -50px;
}

/* About ---- */
.about-hero {
  background: url('../images/about.JPG') no-repeat center center / cover;
  color: #fff;
  padding: 120px 24px;
  text-align: left;
  position: relative;
  height: 50vh;
  display: flex;
  align-items: right;
  justify-content: left;
  z-index: 1;

}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.about-hero p {
  font-size: 1.2rem;
}

.about-section {
  padding: 60px 24px;
}

.about-section h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: #1e3a8a;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.expertise-card {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  color: #1f2937;
}

.why-us ul {
  list-style: none;
  padding-left: 0;
  line-height: 1.8;
}

.about-cta {
  background-color: #1e3a8a;
  color: white;
  text-align: center;
  padding: 60px 24px;
}

.about-cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-split {
  background-color: #111827; /* Dark Slate */
  color: #f9fafb;            /* Light text */
  padding: 80px 24px;
  position: relative;
}

.about-split h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-split p {
  color: #e5e7eb;
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}


.about-cta-split {
  background-color: #1e3a8a;
  color: white;
  padding: 80px 24px;
}

.cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.cta-text {
  flex: 1;
  min-width: 280px;
}

.cta-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-text p {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.cta-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.cta-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.mv-split {
  background-color: #0f172a;
  color: #f9fafb;
  padding: 80px 24px;
}

.mv-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.mv-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.mv-block.reverse {
  flex-direction: row-reverse;
}

.mv-text {
  flex: 1;
  min-width: 280px;
}

.mv-text h2 {
  font-size: 2rem;
  color: #93c5fd;
  margin-bottom: 16px;
}

.mv-text p {
  font-size: 1rem;
  color: #e5e7eb;
  line-height: 1.6;
}

.mv-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.mv-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}


.expertise {
  background-color: #0f172a; /* Dark navy */
  color: #f9fafb;
  padding: 80px 24px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: #93c5fd;
  margin-bottom: 48px;
}

.expertise-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.expertise-item {
  background-color: #1e293b;
  padding: 32px;
  border-radius: 12px;
  flex: 1 1 280px;
  max-width: 360px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.expertise-item:hover {
  transform: translateY(-6px);
}

.expertise-item h3 {
  font-size: 1.3rem;
  color: #60a5fa;
  margin-bottom: 12px;
}

.expertise-item p {
  font-size: 1rem;
  color: #e5e7eb;
  line-height: 1.6;
}

.why-choose {
  background-color: #0f172a;
  color: #f9fafb;
  padding: 80px 24px;
  text-align: center;
}

.why-choose .section-heading {
  font-size: 2rem;
  color: #93c5fd;
  margin-bottom: 48px;
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.why-card {
  background-color: #1e293b;
  padding: 32px;
  border-radius: 12px;
  flex: 1 1 280px;
  max-width: 360px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
}

.why-card h3 {
  color: #60a5fa;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.why-card p {
  color: #e5e7eb;
  font-size: 1rem;
  line-height: 1.6;
}
.why-choose {
  background-color: #0f172a;
  color: #f9fafb;
  padding: 80px 24px;
  text-align: center;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.page-hero.services-hero {
  background: url("../images/services-hero.jpg") no-repeat center center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.services-hero .hero-overlay {
  background-color: rgba(0, 0, 0, 0.55);
  padding: 40px;
  border-radius: 12px;
  color: #fff;
}

.services-section {
  background-color: #0f172a;
  color: #f9fafb;
  padding: 80px 24px;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.service-card {
  background-color: #1e293b;
  padding: 32px;
  border-radius: 12px;
  flex: 1 1 280px;
  max-width: 360px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card h3 {
  font-size: 1.3rem;
  color: #60a5fa;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 1rem;
  color: #e5e7eb;
  line-height: 1.6;
}

.cta-banner {
  background-color: #1e3a8a;
  color: white;
  padding: 60px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.cta-banner .btn-primary {
  background-color: #2563eb;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  color: white;
}
.page-hero.solutions-hero {
  background: url("../images/solutions-hero.jpg") no-repeat center center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.solutions-hero .hero-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 12px;
  color: #ffffff;
}

.solutions-section {
  background-color: #0f172a;
  color: #f9fafb;
  padding: 80px 24px;
}

.solutions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.solution-card {
  background-color: #1e293b;
  padding: 32px;
  border-radius: 12px;
  flex: 1 1 280px;
  max-width: 360px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
}

.solution-card h3 {
  font-size: 1.3rem;
  color: #60a5fa;
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 1rem;
  color: #e5e7eb;
  line-height: 1.6;
}

.page-hero.contact-hero {
  background: url("../images/contact-hero.jpg") no-repeat center center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-hero .hero-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 12px;
  color: #ffffff;
}

.contact-section {
  background-color: #0f172a;
  color: #f9fafb;
  padding: 80px 24px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h3 {
  font-size: 1.6rem;
  color: #60a5fa;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 1rem;
  color: #e5e7eb;
  margin-bottom: 10px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 6px;
  background-color: #1e293b;
  color: #f9fafb;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form button {
  background-color: #2563eb;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #1e40af;
}

.static-form-note {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.5;
}

.legal-section {
  background-color: #0f172a;
  color: #f1f5f9;
  padding: 80px 24px;
}

.legal-section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: #60a5fa;
}

.legal-section p {
  line-height: 1.7;
  max-width: 800px;
  margin: auto;
  color: #e2e8f0;
}

.page-hero.careers-hero {
  background: url("../images/careers-hero.jpg") no-repeat center center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.careers-hero .hero-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 12px;
  color: #fff;
}

.careers-section {
  background-color: #0f172a;
  color: #f9fafb;
  padding: 80px 24px;
}

.job-listings {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.job-card {
  background-color: #1e293b;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.job-card h3 {
  color: #60a5fa;
  margin-bottom: 12px;
}

.career-growth {
  background: url("../images/joinus.jpg") no-repeat center center / cover;
  color: #f1f5f9;
  padding: 80px 24px;
  position: relative;
}

.career-growth::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* dark overlay */
  z-index: 1;
}

.career-growth .container {
  position: relative;
  z-index: 2;
}

.training-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
}

.training-card {
  background-color: #334155;
  border-radius: 10px;
  padding: 24px;
  flex: 1 1 280px;
  min-width: 280px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.training-card h4 {
  color: #60a5fa;
  margin-bottom: 12px;
}

.training-card p {
  color: #e2e8f0;
}

.internship-form-section {
  background-color: #0f172a;
  color: #f1f5f9;
  padding: 80px 24px;
}

.internship-form-section h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
  color: #60a5fa;
}

.internship-form {
  max-width: 700px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.internship-form input,
.internship-form select,
.internship-form textarea {
  padding: 12px;
  border-radius: 6px;
  background-color: #1e293b;
  border: none;
  color: #f1f5f9;
}

.internship-form input::placeholder,
.internship-form textarea::placeholder {
  color: #9ca3af;
}

.internship-form-section,
.training-card {
  animation: fadeSlideUp 1s ease-out both;
}

.training-card:nth-child(1) {
  animation-delay: 0.2s;
}
.training-card:nth-child(2) {
  animation-delay: 0.4s;
}
.training-card:nth-child(3) {
  animation-delay: 0.6s;
}

/* ==== Animation Keyframes ==== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Services rebuild — pillars, engagement, tech matrix, home
   ============================================================ */

/* Hero gradient fallbacks (the *-hero.jpg images don't exist) */
.page-hero.services-hero,
.page-hero.solutions-hero,
.page-hero.contact-hero,
.page-hero.careers-hero,
.page-hero.training-hero {
  background:
    url("../images/hero-pattern.svg") center / cover no-repeat,
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

/* About mission/vision icons */
.mv-image img {
  width: 150px;
  height: auto;
  margin: 0 auto;
}

/* Services intro */
.services-intro {
  background-color: #0b1220;
  color: #f9fafb;
  padding: 72px 24px 8px;
  text-align: center;
}
.services-intro h2 {
  font-size: 2rem;
  color: #93c5fd;
  margin-bottom: 16px;
}
.services-intro p {
  max-width: 780px;
  margin: 0 auto;
  color: #cbd5e1;
  font-size: 1.1rem;
}

/* Pillar cards (extend .service-card) */
.services-grid .pillar-card {
  flex: 1 1 340px;
  max-width: 380px;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.pillar-tagline {
  color: #93c5fd;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 12px;
}
.pillar-card > p {
  margin-bottom: 16px;
}
.pillar-offerings {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.pillar-offerings li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #e5e7eb;
  font-size: 0.95rem;
}
.pillar-offerings li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: #60a5fa;
}
.pillar-tools {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-tag {
  background: #0f172a;
  border: 1px solid #334155;
  color: #93c5fd;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.pillar-link {
  display: inline-block;
  margin-top: 14px;
  color: #60a5fa;
  font-weight: 600;
  font-size: 0.9rem;
}
.pillar-link:hover {
  color: #93c5fd;
}
.pillar-badge {
  display: inline-block;
  align-self: flex-start;
  background: #2563eb;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Engagement models */
.engagement-section {
  background-color: #0b1220;
  color: #f9fafb;
  padding: 80px 24px;
  text-align: center;
}
.engagement-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 8px;
}
.engagement-card {
  background-color: #1e293b;
  border-radius: 12px;
  padding: 32px;
  flex: 1 1 280px;
  max-width: 340px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.engagement-card:hover {
  transform: translateY(-6px);
}
.engagement-card h3 {
  color: #60a5fa;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.engagement-card p {
  color: #e5e7eb;
}

/* Technologies matrix */
.tech-section {
  background-color: #0f172a;
  color: #f9fafb;
  padding: 80px 24px;
  text-align: center;
}
.tech-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-top: 8px;
}
.tech-group {
  background-color: #1e293b;
  border-radius: 12px;
  padding: 24px;
  flex: 1 1 280px;
  max-width: 340px;
  text-align: left;
}
.tech-group h4 {
  color: #60a5fa;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-chips span {
  background: #0f172a;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 5px 11px;
  border-radius: 999px;
}

/* Homepage — pipeline strip */
.pipeline-strip {
  background-color: #1e3a8a;
  color: #fff;
  padding: 50px 24px;
  text-align: center;
}
.pipeline-strip h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.pipeline-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.pipeline-flow .step {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}

/* Redesigned process flow — even numbered steps, graceful wrap */
.pipeline-sub {
  text-align: center;
  color: #bfdbfe;
  margin: 6px 0 32px;
  font-size: 1rem;
}
.process-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 10px;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1 1 110px;
  max-width: 150px;
}
.process-num {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(147, 197, 253, 0.5);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.process-step:hover .process-num {
  transform: translateY(-4px);
  border-color: #60a5fa;
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.5);
}
.process-label {
  color: #dbeafe;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.pipeline-flow .arrow {
  color: #93c5fd;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Homepage — pillars overview */
.home-pillars {
  background-color: #0f172a;
  color: #f9fafb;
  padding: 80px 24px;
  text-align: center;
}
.home-pillars .section-title {
  margin-bottom: 16px;
}
.home-pillars .intro {
  max-width: 720px;
  margin: 0 auto 40px;
  color: #cbd5e1;
  font-size: 1.1rem;
}
.home-pillar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.home-pillar {
  background-color: #1e293b;
  border-radius: 12px;
  padding: 24px;
  flex: 1 1 240px;
  max-width: 280px;
  text-align: left;
  transition: transform 0.3s ease;
}
.home-pillar:hover {
  transform: translateY(-6px);
}
.home-pillar h3 {
  color: #60a5fa;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.home-pillar p {
  color: #cbd5e1;
  font-size: 0.92rem;
}
.home-pillars-cta {
  margin-top: 40px;
}

/* Case study / Projects page */
.case-study {
  background-color: #0f172a;
  color: #f9fafb;
  padding: 80px 24px;
}
.case-study .case-title {
  text-align: left;
  margin: 12px 0 8px;
}
.case-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 900px;
  margin-bottom: 40px;
}
.todo {
  color: #fbbf24;
  font-style: italic;
}
.case-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.case-gallery {
  flex: 1 1 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}
.case-gallery .case-photo:first-child {
  grid-column: 1 / -1;
}
.case-photo {
  background: #1e293b;
  border: 2px dashed #334155;
  border-radius: 10px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #93c5fd;
  text-align: center;
  padding: 12px;
}
.case-photo span { font-weight: 600; }
.case-photo small { color: #64748b; font-size: 0.72rem; }
.case-details {
  flex: 1 1 320px;
}
.case-details h3 {
  color: #60a5fa;
  font-size: 1.2rem;
  margin: 0 0 14px;
}
.case-details h3 + ul {
  margin-bottom: 28px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #334155;
  color: #e5e7eb;
  font-size: 0.95rem;
  vertical-align: top;
}
.spec-table td:first-child {
  color: #93c5fd;
  font-weight: 600;
  width: 42%;
}
.more-projects {
  background-color: #1e3a8a;
  color: #fff;
  padding: 70px 24px;
  text-align: center;
}
.more-projects p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: #dbeafe;
}

/* Flash / toast messages (form confirmations) */
.flash-toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  width: min(92%, 520px);
}
.flash-toast .flash {
  background: #065f46;
  color: #ecfdf5;
  border: 1px solid #10b981;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Mobile niceties */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .pipeline-flow .arrow { display: none; }
  .nav-links { gap: 12px; }
}

/* ============================================================
   Editorial hero + live Systems Monitor widget + marquee
   ============================================================ */
.hero-editorial {
  height: auto;
  min-height: 100vh;
  display: block;
  text-align: left;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Centered hero (Systems Monitor widget removed) */
.hero-centered .hero-inner {
  justify-content: center;
  text-align: center;
}
.hero-centered .hero-copy {
  flex: 0 1 780px;
  margin: 0 auto;
}
.hero-centered.hero-editorial h1 { text-align: center; }
.hero-centered.hero-editorial p {
  margin-left: auto;
  margin-right: auto;
}
.hero-centered .hero-stats { justify-content: center; }
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 42%, rgba(8, 12, 22, 0.82) 0%, rgba(8, 12, 22, 0.5) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  min-height: calc(100vh - 70px);
  padding-top: 120px;
  padding-bottom: 50px;
}
.hero-copy { flex: 1 1 460px; }
.hero-eyebrow {
  display: inline-block;
  color: #60a5fa;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-editorial h1 {
  font-size: 3.4rem;
  line-height: 1.06;
  font-weight: 800;
  color: #f8fafc;
  text-align: left;
  margin-bottom: 20px;
}
.rotator {
  display: inline-block;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.35s ease;
}
.hero-editorial p {
  color: #cbd5e1;
  font-size: 1.12rem;
  max-width: 540px;
  margin-bottom: 0;
}
.hero-editorial .hero-buttons { margin-top: 28px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 38px;
}
.hero-stat strong { display: block; color: #f1f5f9; font-size: 0.96rem; }
.hero-stat span { color: #94a3b8; font-size: 0.82rem; }

.hero-widget { flex: 1 1 320px; display: flex; justify-content: center; }
.sysmon {
  width: 100%;
  max-width: 380px;
  background: rgba(15, 23, 42, 0.70);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  font-family: 'Consolas', 'Courier New', monospace;
}
.sysmon-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.sysmon-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  margin-right: 6px;
  box-shadow: 0 0 8px #22d3ee;
}
.sysmon-live { color: #34d399; font-size: 0.66rem; letter-spacing: 0.12em; }
.sysmon-cap { color: #64748b; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; }
.sysmon-clock {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.03em;
  line-height: 1.15;
}
.sysmon-date { color: #94a3b8; font-size: 0.76rem; margin-bottom: 18px; }
.sysmon-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 16px;
}
.sysmon-metrics label {
  display: block;
  color: #64748b;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.sysmon-metrics b { color: #e2e8f0; font-size: 1.05rem; font-weight: 700; }
.sysmon-metrics b.ok { color: #34d399; }
.sysmon-spark { width: 100%; height: 54px; display: block; margin-bottom: 12px; }
.sysmon-foot { color: #475569; font-size: 0.62rem; line-height: 1.45; }

.hero-marquee {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  overflow: hidden;
  padding: 16px 0;
  background: rgba(8, 12, 22, 0.55);
}
.hero-marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.hero-marquee-track span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .hero-editorial h1 { font-size: 2.5rem; }
  .hero-inner { gap: 32px; min-height: auto; padding-top: 110px; }
  .hero-widget { width: 100%; }
}
@media (max-width: 600px) {
  .hero-editorial h1 { font-size: 2.1rem; }
  .hero-stats { gap: 18px; }
  .sysmon-clock { font-size: 2.1rem; }
}

/* ============================================================
   Trust signals — stats bar, ratings, testimonials, video
   ============================================================ */
.stats-bar {
  background: #1e3a8a;
  color: #fff;
  padding: 40px 24px;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat span {
  color: #bfdbfe;
  font-size: 0.9rem;
}

.trust-section {
  background: #0f172a;
  color: #f9fafb;
  padding: 80px 24px;
  text-align: center;
}
.trust-disclaimer {
  max-width: 660px;
  margin: 8px auto 36px;
  font-size: 0.85rem;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 48px;
}
.trust-badge {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 22px 32px;
  min-width: 220px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.trust-badge:hover {
  transform: translateY(-4px);
  border-color: #60a5fa;
}
.trust-badge-platform { color: #fff; font-weight: 700; font-size: 1.1rem; }
.trust-badge-stars { color: #fbbf24; font-size: 1.05rem; letter-spacing: 2px; }
.trust-badge-meta { color: #94a3b8; font-size: 0.82rem; }
.trust-badge-link { color: #60a5fa; font-size: 0.82rem; font-weight: 600; margin-top: 4px; }

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.testimonial {
  background: #1e293b;
  border-radius: 12px;
  border-top: 3px solid #60a5fa;
  padding: 28px;
  flex: 1 1 280px;
  max-width: 360px;
  margin: 0;
  text-align: left;
}
.testimonial blockquote {
  margin: 0 0 18px;
  color: #e5e7eb;
  font-size: 0.98rem;
  line-height: 1.6;
  font-style: italic;
}
.testimonial figcaption strong { display: block; color: #fff; }
.testimonial figcaption span { color: #94a3b8; font-size: 0.85rem; }

.video-section {
  background: #0b1220;
  color: #f9fafb;
  padding: 80px 24px;
  text-align: center;
}
.video-lead {
  max-width: 600px;
  margin: 0 auto 36px;
  color: #cbd5e1;
}
.video-slot {
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #111827;
  border: 2px dashed #334155;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #93c5fd;
  padding: 16px;
}
.video-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  padding-left: 4px;
}
.video-slot span { font-weight: 600; }
.video-slot small { color: #64748b; font-size: 0.78rem; }
.video-slot code {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ============================================================
   Professional polish — typography, mobile nav, footer
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.section-title, .hero h1, .rotator {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* Hamburger / mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.nav-cta-mobile { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .cta { display: none; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #0b1220;
    border-top: 1px solid #1e293b;
    padding: 14px 24px 22px;
    display: none;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
  }
  .nav-menu.open { display: flex; }
  .nav-links {
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }
  .nav-cta-mobile {
    display: inline-block;
    text-align: center;
    margin-top: 14px;
  }
}

/* Footer cleanup */
.footer-container {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}
.footer-links,
.footer-contact {
  margin-left: 0;
  min-width: 0;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin: 14px 0 4px;
}
.footer-social a {
  color: #60a5fa;
  font-size: 1.3rem;
  transition: color 0.2s ease;
}
.footer-social a:hover { color: #ffffff; }
.footer-services ul { list-style: none; padding: 0; }
.footer-services li { margin-bottom: 10px; }
.footer-services a { color: #94a3b8; transition: color 0.2s ease; }
.footer-services a:hover { color: #ffffff; }

/* ============================================================
   Motion — animated 3-axis rate table, scroll reveal
   ============================================================ */
.case-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 8px auto 44px;
  padding: 30px;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.10), transparent 70%);
  border-radius: 16px;
}
.gyro { width: 100%; max-width: 280px; height: auto; }
.gyro-ring { transform-box: fill-box; transform-origin: center; }
.gyro-r1 { animation: gyro-spin 9s linear infinite; }
.gyro-r2 { animation: gyro-spin 6s linear infinite reverse; }
.gyro-r3 { animation: gyro-spin 7.5s linear infinite; }
.gyro-core { transform-box: fill-box; transform-origin: center; animation: gyro-pulse 2.4s ease-in-out infinite; }
@keyframes gyro-spin { to { transform: rotate(360deg); } }
@keyframes gyro-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.case-visual-cap { color: #64748b; font-size: 0.8rem; font-style: italic; text-align: center; }

/* Animated iron-bird image (Ken Burns + live scan + diagnostic hotspots) */
.ironbird {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(96, 165, 250, 0.18);
}
.ironbird-img {
  position: absolute;
  inset: 0;
  background: url("../images/iron-bird.jpg") center / cover no-repeat;
  animation: ib-kenburns 22s ease-in-out infinite alternate;
}
@keyframes ib-kenburns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.07) translate(-1%, -0.5%); }
}
.ironbird-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent 0%, rgba(96, 165, 250, 0.18) 50%, transparent 100%);
  animation: ib-scan 6.5s linear infinite;
  pointer-events: none;
}
@keyframes ib-scan {
  0%   { transform: translateY(-120%); }
  100% { transform: translateY(460%); }
}
.ironbird-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  background: rgba(8, 12, 22, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.ironbird-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  margin-right: 6px;
  animation: ib-blink 1.6s ease-in-out infinite;
}
@keyframes ib-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.ib-hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ib-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.6);
  animation: ib-ping 2.2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes ib-ping {
  0%   { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.6); }
  100% { box-shadow: 0 0 0 16px rgba(96, 165, 250, 0); }
}
.ib-hotspot em {
  font-style: normal;
  font-size: 0.68rem;
  color: #e2e8f0;
  background: rgba(8, 12, 22, 0.7);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.ib-h1 { top: 26%; left: 34%; }
.ib-h2 { top: 54%; left: 58%; }
.ib-h3 { top: 72%; left: 44%; }

@media (prefers-reduced-motion: reduce) {
  .ironbird-img, .ironbird-scan, .ironbird-dot, .ib-pulse { animation: none !important; }
}

/* ============================================================
   More animations — pipeline flow, scroll progress, micro-interactions
   ============================================================ */

/* Animated pipeline — a highlight travels through the process */
.pipeline-flow .step { animation: pipe-pulse 3s ease-in-out infinite; }
.pipeline-flow .step:nth-child(1)  { animation-delay: 0s; }
.pipeline-flow .step:nth-child(3)  { animation-delay: 0.25s; }
.pipeline-flow .step:nth-child(5)  { animation-delay: 0.5s; }
.pipeline-flow .step:nth-child(7)  { animation-delay: 0.75s; }
.pipeline-flow .step:nth-child(9)  { animation-delay: 1s; }
.pipeline-flow .step:nth-child(11) { animation-delay: 1.25s; }
@keyframes pipe-pulse {
  0%, 55%, 100% {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
  }
  22% {
    background: rgba(96, 165, 250, 0.4);
    border-color: #93c5fd;
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.55);
  }
}
.pipeline-flow .arrow { animation: arrow-pulse 3s ease-in-out infinite; }
.pipeline-flow .arrow:nth-child(2)  { animation-delay: 0.12s; }
.pipeline-flow .arrow:nth-child(4)  { animation-delay: 0.37s; }
.pipeline-flow .arrow:nth-child(6)  { animation-delay: 0.62s; }
.pipeline-flow .arrow:nth-child(8)  { animation-delay: 0.87s; }
.pipeline-flow .arrow:nth-child(10) { animation-delay: 1.12s; }
@keyframes arrow-pulse {
  0%, 55%, 100% { color: #93c5fd; transform: translateX(0); opacity: 0.7; }
  22% { color: #ffffff; transform: translateX(4px); opacity: 1; }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  z-index: 3000;
  transition: width 0.1s linear;
}

/* Button shine sweep on hover */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover::after { left: 130%; }

/* Card hover glow */
.service-card, .home-pillar, .engagement-card, .audience-card, .why-card, .expertise-item, .tech-group {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover, .home-pillar:hover, .engagement-card:hover,
.audience-card:hover, .why-card:hover, .expertise-item:hover, .tech-group:hover {
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .pipeline-flow .step, .pipeline-flow .arrow { animation: none !important; }
  .btn-primary::after { display: none; }
}

/* Draw-in underline under section headings */
.section-title, .section-heading { position: relative; }
.section-title::after, .section-heading::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-title.underline-in::after,
.section-heading.underline-in::after { transform: scaleX(1); }
.case-title::after { margin-left: 0; transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
  .section-title::after, .section-heading::after { transition: none; transform: scaleX(1); }
}

/* Animated pillar icons */
.pillar-icon { width: 46px; height: 46px; display: block; margin-bottom: 16px; }
.ic-core { transform-box: fill-box; transform-origin: center; animation: ic-corepulse 1.8s ease-in-out infinite; }
@keyframes ic-corepulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }
.ic-nd { animation: ic-ndpulse 1.8s ease-in-out infinite; }
@keyframes ic-ndpulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.ic-wave { stroke-dasharray: 8 5; animation: ic-flow 0.9s linear infinite; }
@keyframes ic-flow { to { stroke-dashoffset: -13; } }
.ic-gear { transform-box: fill-box; transform-origin: center; animation: ic-spin 8s linear infinite; }
@keyframes ic-spin { to { transform: rotate(360deg); } }
.ic-cursor { animation: ic-blink 1.1s steps(1) infinite; }
@keyframes ic-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.ic-cadbox { animation: ic-march 1.5s linear infinite; }
@keyframes ic-march { to { stroke-dashoffset: -16; } }
.ic-corners { animation: ic-ndpulse 2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .ic-core, .ic-nd, .ic-wave, .ic-gear, .ic-cursor, .ic-cadbox, .ic-corners { animation: none !important; }
}

/* ============================================================
   World-class refinement — typography, cohesion, whitespace
   ============================================================ */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4,
.section-title, .hero-editorial h1, .rotator { letter-spacing: -0.02em; }
.hero-editorial h1 { letter-spacing: -0.03em; }
.section-title { font-size: 2.15rem; margin-bottom: 14px; }

/* Cohesive premium bands (replace flat royal blue) */
.pipeline-strip,
.stats-bar,
.about-cta-split,
.more-projects { background: linear-gradient(135deg, #16243f 0%, #101d38 100%); }
.cta-banner { background: linear-gradient(135deg, #1d2e54 0%, #132346 100%); }

/* Softer, consistent card surfaces */
.service-card, .home-pillar, .engagement-card,
.audience-card, .tech-group, .why-card, .expertise-item {
  border: 1px solid rgba(148, 163, 184, 0.10);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

/* More breathing room between sections */
.services-section, .home-pillars, .trust-section, .engagement-section,
.tech-section, .video-section, .audience-section, .case-study,
.about-split, .mv-split, .expertise, .why-choose {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Refined buttons — equal height, consistent, premium */
.btn-primary, .btn-secondary {
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  vertical-align: middle;
}
.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* Team section (About) */
.team-section {
  background-color: #0f172a;
  color: #f9fafb;
  padding: 100px 24px;
  text-align: center;
}
.team-intro {
  max-width: 720px;
  margin: 0 auto 48px;
  color: #cbd5e1;
  font-size: 1.1rem;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.team-card {
  background-color: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-top: 3px solid #60a5fa;
  border-radius: 12px;
  padding: 28px;
  flex: 1 1 300px;
  max-width: 360px;
  text-align: left;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}
.team-role {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.team-disc {
  display: block;
  color: #60a5fa;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.team-card p {
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.team-edu {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* About — "At a Glance" panel (replaces stock photo) */
.about-text p { margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.about-panel {
  flex: 1;
  min-width: 300px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.about-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.about-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
}
.about-facts { margin: 0; }
.about-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.about-facts > div:last-child { border-bottom: none; }
.about-facts dt {
  color: #94a3b8;
  font-size: 0.85rem;
  white-space: nowrap;
}
.about-facts dd {
  margin: 0;
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

/* About hero banner */
.page-hero.about-banner {
  background:
    url("../images/hero-pattern.svg") center / cover no-repeat,
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  height: 54vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* subtle depth on the About intro */
.about-split {
  background-image: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.14), transparent 55%);
}

/* Mission & Vision — technical animated cards */
.mv-section {
  background-color: #0b1220;
  color: #f9fafb;
  padding: 100px 24px;
}
.mv-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.mv-card {
  flex: 1 1 360px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #15233f 0%, #0d1526 100%);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.mv-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}
.mv-card::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 170px; height: 170px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 70%);
  pointer-events: none;
}
.mv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
}
.mv-card-label {
  color: #22d3ee;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.mv-icon { width: 76px; height: 76px; display: block; margin-bottom: 20px; position: relative; }
.mv-card h2 { color: #ffffff; font-size: 1.7rem; margin-bottom: 14px; }
.mv-card p { color: #cbd5e1; font-size: 1.05rem; line-height: 1.7; }
.mv-spin, .mv-radar, .mv-core { transform-box: fill-box; transform-origin: center; }
.mv-spin { animation: mv-rot 9s linear infinite; }
.mv-radar { animation: mv-rot 3.2s linear infinite; }
@keyframes mv-rot { to { transform: rotate(360deg); } }
.mv-core { animation: mv-pulse 1.8s ease-in-out infinite; }
@keyframes mv-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.4); } }

@media (prefers-reduced-motion: reduce) {
  .mv-spin, .mv-radar, .mv-core { animation: none !important; }
}

/* About intro — centered statement + credential strip */
.about-intro { max-width: 900px; margin: 0 auto; text-align: center; }
.about-intro h2 { margin-bottom: 20px; }
.about-intro p {
  max-width: 760px;
  margin: 0 auto 16px;
  color: #e5e7eb;
  font-size: 1.1rem;
  line-height: 1.7;
}
.about-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.about-strip > div { flex: 1 1 190px; max-width: 250px; text-align: center; }
.about-strip strong {
  display: block;
  color: #60a5fa;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 6px;
  line-height: 1.3;
}
.about-strip span { color: #94a3b8; font-size: 0.82rem; }

/* Service pillar image headers */
.services-grid .pillar-card,
.services-grid .course-card { overflow: hidden; }
.pillar-media {
  margin: -32px -32px 22px;
  height: 170px;
  position: relative;
  overflow: hidden;
}
.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.pillar-card:hover .pillar-media img { transform: scale(1.06); }
.pillar-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 45%, rgba(30, 41, 59, 0.9) 100%);
}

/* Clean, professional page-hero banners (replaces the busy circuit pattern) */
.page-hero.services-hero,
.page-hero.solutions-hero,
.page-hero.contact-hero,
.page-hero.careers-hero,
.page-hero.training-hero,
.page-hero.about-banner {
  background: linear-gradient(135deg, #0b1220 0%, #142a52 60%, #1e3a8a 100%);
}
.page-hero .hero-overlay {
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.page-hero .hero-overlay h1 { color: #ffffff; }
.page-hero .hero-overlay p { color: #cbd5e1; }

/* Insights section */
.insights-section {
  background-color: #0b1220;
  color: #f9fafb;
  padding: 100px 24px;
  text-align: center;
}
.insights-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  color: #cbd5e1;
  font-size: 1.05rem;
}
.insights-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.insight-card {
  background-color: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 12px;
  padding: 28px;
  flex: 1 1 300px;
  max-width: 360px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.insight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}
.insight-tag {
  display: inline-block;
  color: #22d3ee;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.insight-card h3 { color: #ffffff; font-size: 1.2rem; margin-bottom: 10px; }
.insight-card p { color: #cbd5e1; font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }
.insight-link { color: #60a5fa; font-weight: 600; font-size: 0.9rem; }
.insight-link:hover { color: #93c5fd; }

/* Bold closing CTA */
.bold-cta {
  background: linear-gradient(135deg, #0b1220 0%, #15264a 55%, #1e3a8a 100%);
  color: #ffffff;
  padding: 120px 24px;
  text-align: center;
}
.bold-cta h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #ffffff;
}
.bold-cta p {
  color: #cbd5e1;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
}
.bold-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .gyro-ring, .gyro-core, .hero-marquee-track, .rotator { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Training / Workshops page */
.course-card {
  text-align: left;
  display: flex;
  flex-direction: column;
}
.course-card p { margin-bottom: 14px; }
.course-meta {
  margin-top: auto;
  align-self: flex-start;
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  background: #0f172a;
  border: 1px solid #334155;
  padding: 5px 12px;
  border-radius: 999px;
}
.audience-section {
  background: #0b1220;
  color: #f9fafb;
  padding: 80px 24px;
  text-align: center;
}
.audience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.audience-card {
  background: #1e293b;
  border-radius: 12px;
  border-top: 3px solid #60a5fa;
  padding: 28px;
  flex: 1 1 260px;
  max-width: 320px;
  text-align: left;
}
.audience-card h3 { color: #60a5fa; font-size: 1.15rem; margin-bottom: 10px; }
.audience-card p { color: #e5e7eb; }

/* Services — modern capability cards */
.services-section .services-grid {
  counter-reset: service-pillar;
}

.services-grid .pillar-card {
  counter-increment: service-pillar;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(155deg, #1d2b42 0%, #162136 100%);
  box-shadow: 0 16px 40px rgba(2, 8, 23, 0.28);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.services-grid .pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
}

.services-grid .pillar-card::after {
  content: "0" counter(service-pillar);
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 15, 29, 0.72);
  color: #bfdbfe;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.services-grid .pillar-card:hover,
.services-grid .pillar-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(96, 165, 250, 0.52);
  box-shadow: 0 24px 54px rgba(2, 8, 23, 0.46), 0 0 28px rgba(37, 99, 235, 0.12);
}

.services-grid .pillar-card .pillar-media {
  height: 190px;
  margin: -28px -28px 24px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
}

.services-grid .pillar-card .pillar-media img {
  filter: saturate(0.88) contrast(1.04);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.services-grid .pillar-card:hover .pillar-media img {
  transform: scale(1.055);
  filter: saturate(1.02) contrast(1.08);
}

.services-grid .pillar-card .pillar-media::after {
  background: linear-gradient(
    to bottom,
    rgba(8, 15, 29, 0.02) 35%,
    rgba(22, 33, 54, 0.94) 100%
  );
}

.services-grid .pillar-card h3 {
  color: #f8fafc;
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 9px;
}

.services-grid .pillar-card .pillar-tagline {
  margin-bottom: 16px;
  color: #60a5fa;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-grid .pillar-card > p:not(.pillar-tagline) {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
}

.services-grid .pillar-card .pillar-offerings {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.services-grid .pillar-card .pillar-offerings li {
  padding-left: 25px;
  color: #dbe4ef;
  line-height: 1.55;
}

.services-grid .pillar-card .pillar-offerings li::before {
  content: "\2713";
  top: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  font-size: 0.62rem;
  font-weight: 700;
}

.services-grid .pillar-card .pillar-tools {
  gap: 7px;
  padding-top: 4px;
}

.services-grid .pillar-card .tool-tag {
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(8, 15, 29, 0.62);
  color: #bfdbfe;
}

.services-grid .pillar-card .pillar-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.services-grid .pillar-card .pillar-link:hover {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(37, 99, 235, 0.2);
  color: #dbeafe;
}

.services-grid .pillar-card .pillar-badge {
  border: 1px solid rgba(147, 197, 253, 0.3);
  background: rgba(37, 99, 235, 0.2);
  color: #bfdbfe;
}

/* Small-phone containment fixes; tablet and desktop rules remain unchanged. */
@media (max-width: 480px) {
  .about-flex,
  .cta-flex,
  .contact-container,
  .case-grid,
  .training-grid {
    min-width: 0;
  }

  .about-text,
  .about-image,
  .cta-text,
  .cta-image,
  .mv-card,
  .team-card,
  .why-card,
  .contact-info,
  .contact-form,
  .case-gallery,
  .case-details,
  .job-card,
  .training-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .about-text,
  .about-image,
  .cta-text,
  .cta-image,
  .contact-info,
  .contact-form,
  .case-gallery,
  .case-details {
    flex: 1 1 100%;
  }

  .about-image img,
  .cta-image img,
  .ironbird,
  .footer-map iframe {
    width: 100%;
    max-width: 100%;
  }

  .contact-form form,
  .internship-form,
  .contact-form input,
  .contact-form textarea,
  .internship-form input,
  .internship-form select,
  .internship-form textarea {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-gallery .case-photo:first-child {
    grid-column: auto;
  }

  .case-photo,
  .case-visual,
  .spec-table {
    min-width: 0;
    max-width: 100%;
  }

  .case-photo small,
  .spec-table td,
  .contact-info p,
  .footer-contact p,
  .footer-contact a {
    overflow-wrap: anywhere;
  }

  .spec-table {
    table-layout: fixed;
  }

  .case-visual {
    padding: 16px;
  }

  .ironbird-badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 8px;
    font-size: 0.58rem;
    line-height: 1.25;
    letter-spacing: 0.04em;
    white-space: normal;
  }

  .ironbird {
    aspect-ratio: 4 / 3;
  }

  .ib-hotspot {
    gap: 4px;
  }

  .ib-pulse {
    width: 8px;
    height: 8px;
  }

  .ib-hotspot em {
    max-width: 64px;
    padding: 2px 4px;
    font-size: 0.55rem;
    line-height: 1.2;
    white-space: normal;
  }

  .ib-h1 { top: 40%; left: 28%; }
  .ib-h2 { top: 58%; left: 52%; }
  .ib-h3 { top: 76%; left: 38%; }

  .contact-form button,
  .internship-form button {
    max-width: 100%;
    white-space: normal;
  }

  /* Compact mobile rhythm: one container owns horizontal gutters. */
  .services-section,
  .home-pillars,
  .trust-section,
  .engagement-section,
  .tech-section,
  .audience-section,
  .case-study,
  .about-split,
  .mv-section,
  .team-section,
  .why-choose,
  .insights-section,
  .contact-section,
  .careers-section,
  .career-growth,
  .internship-form-section,
  .services-intro,
  .about-cta-split,
  .more-projects,
  .bold-cta,
  .stats-bar,
  .cta-banner {
    padding: 32px 0;
  }

  .legal-section {
    padding: 96px 0 32px;
  }

  header.navbar {
    padding: 10px 0;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .nav-toggle {
    height: 44px;
  }

  /* Shorter page heroes preserve hierarchy without consuming a viewport. */
  .page-hero.services-hero,
  .page-hero.solutions-hero,
  .page-hero.contact-hero,
  .page-hero.careers-hero,
  .page-hero.training-hero,
  .page-hero.about-banner {
    height: auto;
    min-height: 280px;
    padding: 84px 24px 32px;
  }

  .hero-editorial {
    min-height: 0;
  }

  .hero-inner {
    min-height: 0;
    padding-top: 96px;
    padding-bottom: 32px;
  }

  .hero-marquee {
    padding: 12px 0;
  }

  main h1,
  .hero-editorial h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  main h2,
  .section-title,
  .section-heading,
  .bold-cta h2,
  .internship-form-section h2,
  .about-split h2,
  .cta-text h2,
  .mv-card h2,
  .services-intro h2,
  .cta-banner h2,
  .why-choose .section-heading {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  main h3 {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .contact-info h3 {
    font-size: 1.2rem;
  }

  .section-title,
  .section-heading {
    margin-bottom: 12px;
  }

  .section-title::after,
  .section-heading::after {
    margin-top: 10px;
  }

  .page-hero .hero-overlay p,
  .hero-editorial p,
  .about-split p,
  .services-intro p,
  .team-intro,
  .insights-intro,
  .home-pillars .intro {
    font-size: 0.95rem;
  }

  .team-intro,
  .insights-intro,
  .home-pillars .intro,
  .trust-disclaimer {
    margin-bottom: 24px;
  }

  /* Long card collections become discoverable, touch-friendly swipe rails. */
  .home-pillar-grid,
  .services-grid,
  .team-grid,
  .why-grid,
  .testimonial-grid,
  .insights-grid,
  .engagement-grid,
  .tech-groups,
  .audience-grid,
  .training-grid,
  .job-listings,
  .case-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 12px;
  }

  .home-pillar-grid::-webkit-scrollbar,
  .services-grid::-webkit-scrollbar,
  .team-grid::-webkit-scrollbar,
  .why-grid::-webkit-scrollbar,
  .testimonial-grid::-webkit-scrollbar,
  .insights-grid::-webkit-scrollbar,
  .engagement-grid::-webkit-scrollbar,
  .tech-groups::-webkit-scrollbar,
  .audience-grid::-webkit-scrollbar,
  .training-grid::-webkit-scrollbar,
  .job-listings::-webkit-scrollbar,
  .case-gallery::-webkit-scrollbar {
    display: none;
  }

  .home-pillar,
  .service-card,
  .services-grid .pillar-card,
  .services-grid .course-card,
  .team-card,
  .why-card,
  .testimonial,
  .insight-card,
  .engagement-card,
  .tech-group,
  .audience-card,
  .training-card,
  .job-card,
  .case-gallery .case-photo {
    flex: 0 0 86%;
    width: auto;
    max-width: 320px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .service-card,
  .home-pillar,
  .team-card,
  .why-card,
  .testimonial,
  .insight-card,
  .engagement-card,
  .tech-group,
  .audience-card,
  .training-card,
  .job-card,
  .mv-card {
    padding: 20px;
  }

  .pillar-media,
  .services-grid .pillar-card .pillar-media {
    height: 150px;
    margin: -20px -20px 16px;
  }

  .services-grid .pillar-card {
    border-radius: 14px;
  }

  .services-grid .pillar-card::after {
    top: 13px;
    right: 13px;
    min-width: 34px;
    height: 26px;
    font-size: 0.66rem;
  }

  .services-grid .pillar-card h3 {
    font-size: 1.15rem;
  }

  .about-image img,
  .cta-image img,
  .pillar-media img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
  }

  .about-flex,
  .cta-flex,
  .mv-cards,
  .contact-container,
  .case-grid {
    gap: 24px;
  }

  .about-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    margin-top: 24px;
    padding-top: 24px;
  }

  .about-strip > div {
    max-width: none;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .stat strong {
    font-size: 1.8rem;
  }

  .job-listings {
    margin-top: 20px;
  }

  .contact-form form,
  .internship-form {
    gap: 12px;
  }

  .contact-form input,
  .contact-form textarea,
  .internship-form input,
  .internship-form select,
  .internship-form textarea {
    min-height: 44px;
  }

  .contact-info p {
    margin-bottom: 6px;
  }

  .btn-primary,
  .btn-secondary,
  .contact-form button,
  .internship-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    margin-right: 0;
  }

  .hero-buttons,
  .bold-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-buttons > a,
  .bold-cta-buttons > a {
    flex: 1 1 150px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding: 32px 0 20px;
  }

  .footer-bottom {
    margin-top: 28px;
    padding-top: 16px;
  }
}

@media (max-width: 360px) {
  .container,
  .navbar-container,
  .footer-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-hero.services-hero,
  .page-hero.solutions-hero,
  .page-hero.contact-hero,
  .page-hero.careers-hero,
  .page-hero.training-hero,
  .page-hero.about-banner {
    min-height: 260px;
    padding: 80px 18px 28px;
  }

  main h1,
  .hero-editorial h1 {
    font-size: 1.6rem;
  }

  main h2,
  .section-title,
  .section-heading,
  .bold-cta h2,
  .internship-form-section h2,
  .about-split h2,
  .cta-text h2,
  .mv-card h2,
  .services-intro h2,
  .cta-banner h2,
  .why-choose .section-heading {
    font-size: 1.25rem;
  }

  .home-pillar,
  .service-card,
  .services-grid .pillar-card,
  .services-grid .course-card,
  .team-card,
  .why-card,
  .testimonial,
  .insight-card,
  .engagement-card,
  .tech-group,
  .audience-card,
  .training-card,
  .job-card,
  .case-gallery .case-photo {
    flex-basis: 90%;
  }

  .case-visual {
    padding: 12px;
  }
}
