/* ============================================================
   EMECSA — Styles
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --navy: #0D1F3C;
  --navy-light: #1A3358;
  --green: #00875A;
  --green-light: #00A86A;
  --green-dim: rgba(0, 135, 90, 0.12);
  --gray-100: #F0F2F5;
  --gray-200: #E2E6EA;
  --gray-400: #8A95A3;
  --gray-600: #495057;
  --ink: #061936;
  --shadow-soft: 0 24px 60px rgba(13, 31, 60, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  overflow-x: hidden;
  scroll-behavior: auto;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.is-loading {
  overflow: hidden;
}

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

a {
  color: inherit;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* === PRELOADER === */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
}

.preloader-logo {
  width: min(230px, 58vw);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.preloader-bar {
  width: 180px;
  height: 1px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-light));
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  z-index: 10001;
  transform: scaleX(0);
  transform-origin: left;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.35rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: padding 0.35s var(--ease), background 0.35s ease, box-shadow 0.35s ease;
}

header.scrolled,
body.inner-page header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.85rem 3.5rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
}

.header-logo {
  height: 42px;
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.header-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.header-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0;
}

.header-logo-text span {
  color: var(--green);
}

nav {
  display: flex;
  gap: 1.45rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.58;
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

nav a:hover,
nav a[aria-current="page"] {
  opacity: 1;
}

.nav-cta {
  padding: 0.55rem 1.15rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 5px;
  opacity: 1;
  transition: background 0.25s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--green);
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  padding: 0 1.5rem;
}

.hero-logo-wrap {
  width: 200px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.75);
  will-change: transform, opacity;
}

.hero-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-fallback {
  font-size: 3rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0;
}

.logo-fallback span {
  color: var(--green);
}

.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #00784f;
  font-weight: 800;
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
}

.hero-headline {
  font-size: 5.2rem;
  font-weight: 900;
  color: #061936;
  line-height: 1.04;
  letter-spacing: 0;
  max-width: 820px;
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.82),
    0 14px 34px rgba(255, 255, 255, 0.86),
    0 4px 18px rgba(13, 31, 60, 0.18);
}

.hero-headline em {
  font-style: normal;
  color: #007f55;
}

.hero-sub {
  font-size: 1rem;
  color: #162844;
  max-width: 540px;
  line-height: 1.7;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.96),
    0 10px 24px rgba(255, 255, 255, 0.72);
}

.hero-cta-row,
.page-hero-actions,
.cta-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-cta-row {
  opacity: 0;
  transform: translateY(16px);
  justify-content: center;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.85rem 1.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-cta-row .btn-primary {
  background: linear-gradient(180deg, #102b4f 0%, #071629 100%);
  border-color: rgba(0, 135, 90, 0.34);
  box-shadow:
    0 16px 34px rgba(13, 31, 60, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  animation: bulbPulse 4.8s infinite;
}

.hero-cta-row .btn-primary::before {
  content: '';
  position: absolute;
  inset: -32%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 168, 106, 0.34) 0%, rgba(0, 168, 106, 0.22) 18%, rgba(0, 168, 106, 0.08) 36%, rgba(0, 168, 106, 0) 68%);
  filter: blur(8px);
  opacity: 0.38;
  z-index: 0;
  pointer-events: none;
  animation: bulbFlicker 4.8s infinite;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s var(--ease);
  z-index: 0;
}

.btn-primary:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.btn-primary:hover::after {
  transform: scaleX(1);
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

@keyframes bulbFlicker {
  0%, 100% {
    opacity: 0.34;
    transform: scale(0.98);
    filter: blur(8px) brightness(1);
  }
  4% {
    opacity: 0.58;
  }
  7% {
    opacity: 0.22;
  }
  10% {
    opacity: 0.62;
  }
  14% {
    opacity: 0.28;
  }
  18% {
    opacity: 0.72;
    transform: scale(1.02);
  }
  24% {
    opacity: 0.38;
  }
  38% {
    opacity: 0.66;
  }
  46% {
    opacity: 0.3;
  }
  56% {
    opacity: 0.7;
    transform: scale(1.03);
  }
  68% {
    opacity: 0.42;
  }
  82% {
    opacity: 0.64;
  }
}

@keyframes bulbPulse {
  0%, 100% {
    box-shadow:
      0 16px 34px rgba(13, 31, 60, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.06) inset,
      0 0 0 0 rgba(0, 135, 90, 0.0);
  }
  18% {
    box-shadow:
      0 18px 40px rgba(13, 31, 60, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      0 0 0 10px rgba(0, 135, 90, 0.06);
  }
  33% {
    box-shadow:
      0 14px 30px rgba(13, 31, 60, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset,
      0 0 0 4px rgba(0, 135, 90, 0.03);
  }
  54% {
    box-shadow:
      0 20px 44px rgba(13, 31, 60, 0.26),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      0 0 0 12px rgba(0, 135, 90, 0.08);
  }
  72% {
    box-shadow:
      0 15px 32px rgba(13, 31, 60, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset,
      0 0 0 5px rgba(0, 135, 90, 0.035);
  }
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.68);
  color: var(--navy);
  border: 1.5px solid rgba(13, 31, 60, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.dark-text {
  background: transparent;
  color: var(--navy);
  border-color: rgba(13, 31, 60, 0.18);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  z-index: 2;
}

.hero-scroll-cue span {
  font-size: 0.65rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--gray-400);
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.25; transform: scaleY(0.4) translateY(10px); }
}

@media (max-height: 820px) {
  .hero-scroll-cue {
    display: none;
  }
}

/* ============================================================
   SHARED CONTENT
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}

.section {
  padding: 8rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3.3rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0;
  line-height: 1.08;
  max-width: 720px;
}

.section-title em {
  font-style: normal;
  color: var(--green);
}

.lead {
  margin-top: 1.35rem;
  color: var(--gray-600);
  font-size: 1.04rem;
  line-height: 1.75;
  max-width: 680px;
}

.copy-block p:not(.lead) {
  margin-top: 1.3rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.split-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 5rem;
  align-items: center;
}

.split-layout.reverse {
  grid-template-columns: 0.9fr 1fr;
}

.parallax-media {
  border-radius: 8px;
  overflow: hidden;
  min-height: 430px;
  background: var(--gray-100);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  position: relative;
}

.parallax-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card img,
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.company-stats-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  isolation: isolate;
}

.company-stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 168, 106, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%);
  pointer-events: none;
  z-index: -1;
}

.company-marquee {
  position: absolute;
  left: 0;
  bottom: 3rem;
  z-index: -1;
  display: flex;
  width: max-content;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.company-marquee span {
  display: inline-flex;
  padding-right: 2rem;
  font-size: 10rem;
  line-height: 0.85;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.035);
}

.company-stats-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.company-stats-section .section-label {
  color: var(--green-light);
}

.company-stats-section .section-title {
  max-width: 850px;
  color: var(--white);
}

.company-stats-section .lead {
  color: rgba(255, 255, 255, 0.7);
}

.company-proof-row {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  max-width: 980px;
  background: rgba(255, 255, 255, 0.12);
}

.company-proof-row div {
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.045);
}

.company-proof-row span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--green-light);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.company-proof-row strong {
  color: var(--white);
  font-size: 0.96rem;
}

.company-stats-grid {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  max-width: 760px;
}

.company-stat {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}

.company-stat strong {
  display: flex;
  align-items: flex-start;
  gap: 0.08em;
  color: var(--white);
  font-size: 5.1rem;
  font-weight: 900;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.company-stat sup {
  margin-top: 0.18em;
  color: var(--green-light);
  font-size: 0.42em;
  line-height: 1;
}

.company-stat > span {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.company-stat-bar {
  height: 1px;
  margin-top: 1.4rem;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.company-stat-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0);
  transform-origin: left;
}

.company-media {
  aspect-ratio: 4 / 3;
}

.fact-list {
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
}

.fact-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--gray-200);
}

.fact-list span {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--green);
}

.fact-list strong {
  font-size: 0.98rem;
  color: var(--navy);
}

.metric-strip {
  width: min(1180px, 100%);
  margin: 5rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.metric-item {
  min-height: 126px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--gray-200);
}

.metric-item:last-child {
  border-right: 0;
}

.metric-item strong {
  font-size: 1.7rem;
  line-height: 1.05;
  color: var(--navy);
}

.metric-item span {
  color: var(--gray-600);
  font-weight: 700;
  font-size: 0.84rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-scroll {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
  background:
    linear-gradient(180deg, var(--off-white), #ffffff 58%, var(--off-white));
}

.services-carousel-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.services-heading {
  display: block;
  margin-bottom: 3rem;
}

.services-heading .section-title {
  max-width: 620px;
}

.services-heading .lead {
  max-width: 520px;
  margin-top: 0;
}

.service-carousel {
  --service-card-gap: 1.25rem;
  position: relative;
  padding: 1.5rem 3.5rem;
  margin-block: -1.5rem;
  overflow: visible;
  isolation: isolate;
}

.service-carousel::before {
  content: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(13, 31, 60, 0.1);
  transform: translateY(-50%);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-btn--prev {
  left: 0.25rem;
}

.carousel-btn--next {
  right: 0.25rem;
}

.carousel-btn:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 14px 30px rgba(13, 31, 60, 0.1);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}

.service-carousel-viewport {
  overflow-x: clip;
  overflow-y: visible;
  cursor: grab;
  touch-action: pan-y;
}

.service-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.service-carousel-track {
  width: 100%;
  min-width: 100%;
  display: flex;
  gap: var(--service-card-gap);
  will-change: transform;
}

.service-carousel-card {
  flex: 0 0 calc((100% - (var(--service-card-gap) * 2)) / 3);
  min-height: 430px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.96));
  border: 1px solid rgba(13, 31, 60, 0.09);
  box-shadow: 0 18px 42px rgba(13, 31, 60, 0.07);
  display: flex;
  flex-direction: column;
  position: relative;
  transform-origin: center center;
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.55s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  user-select: none;
}

.service-carousel-card.is-active {
  opacity: 1;
  border-color: rgba(0, 135, 90, 0.28);
  box-shadow: 0 22px 50px rgba(13, 31, 60, 0.11);
  transform: scale(1);
  z-index: 2;
}

.service-carousel-card.is-side {
  opacity: 0.88;
  transform: scale(0.96);
  z-index: 1;
}

.service-carousel-card.is-far {
  opacity: 0.52;
  transform: scale(0.92);
  z-index: 0;
}

.service-carousel-card:focus-visible,
.carousel-btn:focus-visible {
  outline: 3px solid rgba(0, 135, 90, 0.22);
  outline-offset: 3px;
}

.service-card-media {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(0, 135, 90, 0.08), rgba(13, 31, 60, 0.03));
}

.service-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(13, 31, 60, 0.08));
  pointer-events: none;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-card-content {
  min-width: 0;
  width: 100%;
  padding: clamp(1.35rem, 2vw, 1.7rem);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.service-carousel-card h3 {
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.22;
}

.service-carousel-card p {
  margin-top: 0.75rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-detail-card,
.standard-card,
.mission-card,
.project-list,
.timeline-grid article {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
}

.service-detail-card > span,
.mission-card > span,
.timeline-grid span {
  display: inline-flex;
  color: var(--green);
  font-weight: 900;
  font-size: 0.76rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.service-detail-card h2,
.standard-card h3,
.mission-card h2,
.project-list h3,
.timeline-grid h3 {
  font-size: 1.32rem;
  line-height: 1.25;
  color: var(--navy);
}

.service-detail-card p,
.standard-card p,
.mission-card p,
.project-list li,
.timeline-grid p {
  margin-top: 0.85rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.service-detail-card ul,
.project-list ul {
  margin-top: 1.1rem;
  padding-left: 1.2rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.services-cta {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

/* ============================================================
   STANDARDS
   ============================================================ */
.standards-section {
  background: var(--navy);
  color: var(--white);
}

.standards-section.compact {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.standards-section .section-title,
.standards-section .lead {
  color: var(--white);
}

.standards-section .lead {
  color: rgba(255, 255, 255, 0.68);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 3.5rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading.centered {
  display: block;
  text-align: center;
  max-width: 820px;
}

.section-heading.centered .section-title,
.section-heading.centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.standards-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.standard-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 1.55rem;
  min-height: 250px;
}

.standard-card span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--green-light);
  font-weight: 900;
}

.standard-card h3 {
  color: var(--white);
}

.standard-card p {
  color: rgba(255, 255, 255, 0.68);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-section {
  background: var(--white);
}

.projects-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 670px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--gray-100);
  isolation: isolate;
}

.project-card--featured {
  grid-row: span 2;
}

.project-card img {
  transform: scale(1.06);
  transition: transform 0.7s var(--ease);
}

.project-card:hover img {
  transform: scale(1.01);
}

.project-reveal {
  position: absolute;
  inset: 0;
  background: var(--off-white);
  transform-origin: left;
  z-index: 3;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 38, 0.9) 0%, rgba(10, 20, 38, 0.08) 62%);
  z-index: 1;
}

.project-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem;
  z-index: 2;
  color: var(--white);
}

.project-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--green-light);
  margin-bottom: 0.5rem;
}

.project-info h3 {
  font-size: 1.35rem;
  line-height: 1.18;
}

.project-info p {
  margin-top: 0.65rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  font-size: 0.9rem;
}

.projects-cta {
  width: min(1180px, 100%);
  margin: 2.2rem auto 0;
  display: flex;
  justify-content: center;
}

.sectors-section {
  background: var(--off-white);
}

.sector-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.sector-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.sector-list strong {
  color: var(--green);
}

.sector-list span {
  color: var(--gray-600);
  line-height: 1.6;
}

.culture-section {
  background: var(--white);
}

.culture-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.values-grid span {
  min-height: 130px;
  padding: 1.5rem;
  display: flex;
  align-items: end;
  border-radius: 8px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  min-height: 76vh;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--green-dim);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
}

.cta-ring:nth-child(1) { width: 500px; height: 500px; }
.cta-ring:nth-child(2) { width: 800px; height: 800px; border-color: rgba(0, 135, 90, 0.07); }
.cta-ring:nth-child(3) { width: 1100px; height: 1100px; border-color: rgba(0, 135, 90, 0.04); }

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.cta-headline {
  font-size: 4rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0;
  line-height: 1.05;
}

.cta-sub {
  margin: 1.35rem auto 0;
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 560px;
}

.cta-actions {
  margin-top: 2.4rem;
  justify-content: center;
}

.cta-contact-row {
  margin-top: 3rem;
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.cta-contact-item .label {
  font-size: 0.66rem;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--gray-400);
}

.cta-contact-item .value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero {
  width: min(1180px, calc(100% - 7rem));
  min-height: 92vh;
  margin: 0 auto;
  padding: 8.5rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 5rem;
  align-items: center;
}

.page-hero-copy h1 {
  font-size: 4.1rem;
  line-height: 1.04;
  color: var(--navy);
  letter-spacing: 0;
}

.page-hero-copy p {
  margin-top: 1.35rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 660px;
}

.page-hero-actions {
  margin-top: 2rem;
}

.page-hero-media {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.service-detail-section,
.project-gallery-section,
.project-list-section,
.mission-section,
.timeline-section,
.org-section {
  background: var(--off-white);
}

.service-detail-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-detail-card {
  padding: 1.65rem;
  min-height: 330px;
}

.portfolio-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.portfolio-card {
  min-height: 430px;
  display: grid;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.portfolio-card.is-large {
  grid-column: span 2;
}

.portfolio-card div {
  padding: 1.35rem;
}

.portfolio-card span {
  display: inline-flex;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.portfolio-card h3 {
  font-size: 1.18rem;
  color: var(--navy);
  line-height: 1.25;
}

.portfolio-card p {
  margin-top: 0.75rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.project-list-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-list {
  padding: 1.55rem;
  background: var(--white);
}

.project-list ul {
  list-style-position: outside;
}

.mission-grid,
.timeline-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mission-card {
  min-height: 310px;
  padding: 2rem;
}

.timeline-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}

.timeline-grid article {
  padding: 1.55rem;
  background: var(--white);
}

.org-chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.org-chart div,
.org-chart span {
  min-height: 96px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 8px;
  font-weight: 900;
}

.org-chart div {
  background: var(--navy);
  color: var(--white);
}

.org-chart span {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--green);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  padding: 2.5rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  width: 120px;
  height: 56px;
  display: flex;
  align-items: center;
}

.footer-brand img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.36);
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--green-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  header,
  header.scrolled,
  body.inner-page header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  nav {
    gap: 1rem;
  }

  .section {
    padding: 6.5rem 1.5rem;
  }

  .split-layout,
  .split-layout.reverse,
  .page-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-heading {
    display: block;
  }

  .services-heading .lead {
    max-width: 680px;
    margin-top: 1.2rem;
  }

  .service-carousel-card {
    flex-basis: calc((100% - var(--service-card-gap)) / 2);
  }

  .page-hero {
    width: min(100% - 3rem, 920px);
    min-height: auto;
  }

  .parallax-media {
    min-height: 380px;
  }

  .standards-grid,
  .company-stats-grid,
  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-stat strong {
    font-size: 4.4rem;
  }

  .metric-item:nth-child(2) {
    border-right: 0;
  }

  .metric-item:nth-child(1),
  .metric-item:nth-child(2) {
    border-bottom: 1px solid var(--gray-200);
  }

  .projects-grid {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .project-card {
    min-height: 390px;
  }

  .project-card--featured {
    grid-row: auto;
  }

  .service-detail-grid,
  .portfolio-grid,
  .project-list-grid,
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-card.is-large {
    grid-column: span 1;
  }
}

@media (max-width: 820px) {
  header,
  header.scrolled,
  body.inner-page header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
  }

  .header-logo {
    height: 34px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    gap: 0.9rem;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    font-size: 0.72rem;
  }

  .nav-cta {
    padding: 0.45rem 0.9rem;
  }

  .hero-headline {
    font-size: 3.2rem;
  }

  .hero-sub {
    font-size: 0.92rem;
  }

  .section {
    padding: 5rem 1rem;
  }

  .services-heading {
    margin-bottom: 2rem;
  }

  .service-carousel {
    padding: 1.5rem 3.25rem;
  }

  .service-carousel-card {
    flex-basis: calc(100% - 8px);
    min-height: 0;
  }

  .service-card-media {
    height: 230px;
  }

  .service-card-content {
    padding: 1.5rem;
  }

  .section-title,
  .page-hero-copy h1,
  .cta-headline {
    font-size: 2.45rem;
  }

  .page-hero {
    width: calc(100% - 2rem);
    padding-top: 9rem;
  }

  .metric-strip,
  .company-proof-row,
  .company-stats-grid,
  .standards-grid,
  .culture-grid,
  .values-grid,
  .service-detail-grid,
  .portfolio-grid,
  .project-list-grid,
  .mission-grid,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .company-stats-section {
    min-height: auto;
  }

  .company-marquee {
    bottom: 1.8rem;
  }

  .company-marquee span {
    font-size: 5.5rem;
  }

  .company-proof-row {
    margin-top: 2rem;
  }

  .company-stats-grid {
    gap: 2.4rem;
    margin-top: 3.5rem;
  }

  .company-stat {
    min-height: 150px;
  }

  .company-stat strong {
    font-size: 3.8rem;
  }

  .metric-item,
  .metric-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .metric-item:last-child {
    border-bottom: 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading .btn-ghost {
    margin-top: 1.25rem;
  }

  .fact-list div,
  .sector-list div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .cta-contact-row {
    gap: 1.4rem;
  }

  footer {
    padding: 2rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-logo-wrap {
    width: 170px;
    height: 92px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }

  .parallax-media,
  .project-card {
    min-height: 300px;
  }

  .portfolio-card {
    min-height: 390px;
  }

  .service-carousel-card {
    min-height: 0;
  }

  .service-carousel {
    padding: 1.5rem 2.75rem;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
  }

  .service-card-media {
    height: 205px;
  }

  .service-card-content {
    padding: 1.25rem;
  }

  .service-carousel-card h3 {
    font-size: 1.12rem;
  }

  .services-cta {
    margin-top: 1.35rem;
  }

  .cta-actions,
  .page-hero-actions,
  .hero-cta-row {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
