/* ============================================================
   BIOSIGMA ENERGY — Waste to Energy Infrastructure
   Design system: azure / orange / navy, Space Grotesk + Manrope
   ============================================================ */

:root {
  --azure: #1B87CE;
  --azure-dark: #14699F;
  --azure-deep: #0D4E79;
  --azure-tint: #E3F1FA;
  --navy: #0F2C4C;
  --navy-2: #16395E;
  --orange: #EE7B2E;
  --orange-dark: #C9611B;
  --amber: #F6A83C;
  --ink: #16232F;
  --slate: #5A6B7B;
  --mist: #F1F5F9;
  --line: #DBE4EC;
  --white: #FFFFFF;
  --shadow: 0 6px 24px rgba(15, 44, 76, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 44, 76, 0.16);
  --radius: 4px;
  --font-display: 'Space Grotesk', 'Manrope', -apple-system, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--azure-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--orange-dark); }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 104px 0; }
.section--mist { background: var(--mist); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--ink);
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 620px;
  margin-bottom: 52px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Eyebrow — orange square marker, the site's signature label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--orange);
  flex: 0 0 auto;
}

/* Buttons — solid ones carry the cut-corner signature */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  line-height: 1;
  transition: all var(--transition);
}

.btn svg { width: 17px; height: 17px; transition: transform var(--transition); }

.btn-primary {
  background: var(--azure);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 8px 20px rgba(27, 135, 206, 0.28);
}
.btn-primary:hover {
  background: var(--azure-deep);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(13, 78, 121, 0.35);
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.btn-light:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-3px);
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.nav-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nav-logo-img { height: 44px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > a,
.nav-links > .nav-item > .nav-parent {
  display: inline-block;
  padding: 10px 13px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav-links > a:hover,
.nav-links > .nav-item > .nav-parent:hover {
  color: var(--azure-dark);
  background: var(--mist);
}
.nav-links > a.active,
.nav-links > .nav-item > .nav-parent.active {
  color: var(--azure-dark);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.nav-item { position: relative; }

.nav-chevron {
  width: 13px;
  height: 13px;
  margin-left: 4px;
  vertical-align: -1px;
  transition: transform var(--transition);
}
.nav-item:hover .nav-chevron { transform: rotate(180deg); }

.nav-sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--azure);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-sub a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  border-left: 3px solid transparent;
}
.nav-sub a:hover {
  color: var(--azure-dark);
  background: var(--mist);
  border-left-color: var(--orange);
}

/* ============================================================
   Hero (home slideshow)
   ============================================================ */
.hero-stage {
  position: relative;
  height: min(92vh, 880px);
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-slides, .hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; animation: heroZoom 8s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 44, 76, 0.94) 0%, rgba(15, 44, 76, 0.68) 46%, rgba(15, 44, 76, 0.18) 100%);
}
.hero-overlay::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--azure) 0 26px, var(--orange) 26px 34px);
}

.hero-copy {
  position: relative;
  max-width: 680px;
  padding: 90px 0 120px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #BFE0F5;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--orange);
}
.hero-eyebrow::after {
  content: "";
  width: 54px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  color: var(--white);
}
.hero-title .highlight { color: var(--amber); }

.hero-sub {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}
.hero-badge {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(15, 44, 76, 0.38);
  backdrop-filter: blur(4px);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: 34px;
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 38px;
  height: 4px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}
.hero-dot .fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
}
.hero-dot.active .fill {
  width: 100%;
  transition: width 6s linear;
}

.hero-scroll {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 5;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ============================================================
   Hero mini (inner pages)
   ============================================================ */
.hero-mini {
  position: relative;
  height: 400px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-mini-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-mini::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 44, 76, 0.42) 0%, rgba(15, 44, 76, 0.88) 78%);
}
.hero-mini .container {
  position: relative;
  z-index: 2;
  padding-bottom: 58px;
}
.hero-mini-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #BFE0F5;
  margin-bottom: 12px;
}
.hero-mini-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--orange);
}
.hero-mini h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 10px;
}
.hero-mini p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 640px;
}

/* ============================================================
   Statement block
   ============================================================ */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 920px;
}
.statement .hl { color: var(--azure-dark); border-bottom: 3px solid var(--orange); }
.statement .hlw { color: var(--white); border-bottom: 3px solid var(--orange); }

/* ============================================================
   Feature cards
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--azure);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-top-color: var(--orange);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--azure-tint);
  border-radius: var(--radius);
  margin: 0 auto 20px;
}
.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.feature-card p { font-size: 0.95rem; color: var(--slate); }

/* ============================================================
   Showcase (text + image split)
   ============================================================ */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.showcase-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.showcase-content p { color: var(--slate); margin-bottom: 16px; }
.showcase-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.showcase-visual::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 5px;
  background: repeating-linear-gradient(180deg, var(--azure) 0 22px, var(--orange) 22px 30px);
}

/* ============================================================
   Stats band
   ============================================================ */
.stats {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 84px 0;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 16px);
  pointer-events: none;
}
.stats::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--azure) 0 26px, var(--orange) 26px 34px);
}
.stats .container { position: relative; z-index: 2; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-grid > div {
  padding: 6px 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.stats-grid > div:first-child { border-left: none; padding-left: 0; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-number b { color: var(--amber); font-weight: 700; }
.stat-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

/* ============================================================
   Cards grid
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--azure);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  border-top-color: var(--orange);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--azure-tint);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p { font-size: 0.94rem; color: var(--slate); }

/* ============================================================
   Advantages list
   ============================================================ */
.advantages-list { max-width: 860px; margin: 0 auto; }

.advantage-item {
  display: flex;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.advantage-item:first-child { border-top: 1px solid var(--line); }
.advantage-item svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--azure);
  margin-top: 3px;
}
.advantage-item h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.advantage-item p { font-size: 0.94rem; color: var(--slate); }

/* ============================================================
   Values
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: all var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-card .value-number {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.value-card p { font-size: 0.94rem; color: var(--slate); }

/* ============================================================
   Leadership
   ============================================================ */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.leader-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--azure);
  border-radius: var(--radius);
  padding: 40px 34px;
  text-align: center;
  transition: all var(--transition);
}
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.leader-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azure), var(--azure-deep));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 0 0 6px var(--azure-tint);
}
.leader-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.leader-card .role {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 14px;
}
.leader-card > p:not(.role) { font-size: 0.94rem; color: var(--slate); }

/* ============================================================
   Executive profile (leadership page)
   ============================================================ */
.profile-card {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--azure);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 52px;
}
.profile-avatar {
  flex: 0 0 auto;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azure), var(--azure-deep));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--azure-tint);
}
.profile-info { flex: 1; }
.profile-info h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.profile-info .role {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 16px;
}
.profile-info p { color: var(--slate); margin-bottom: 14px; }
.profile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.profile-meta div { font-size: 0.88rem; color: var(--slate); }
.profile-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--azure-dark);
  margin-bottom: 2px;
}

/* ============================================================
   Process steps
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.process-step {
  position: relative;
  padding-top: 26px;
  border-top: 3px solid var(--line);
  transition: border-color var(--transition);
}
.process-step:hover { border-top-color: var(--orange); }
.step-number {
  position: absolute;
  top: -23px;
  left: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 14px 0 8px;
}
.process-step p { font-size: 0.88rem; color: var(--slate); }

/* ============================================================
   Tabs (social impact) + tab grid + callout
   ============================================================ */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.tab-btn {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 12px 22px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn:hover { border-color: var(--azure); color: var(--azure-dark); }
.tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tabFade 0.45s ease; }
@keyframes tabFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.tab-sublist { margin-top: 14px; }
.tab-sublist li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 0.92rem;
  color: var(--slate);
}
.tab-sublist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 9px;
  height: 9px;
  background: var(--azure);
}
.tab-sublist li strong { color: var(--ink); }

.tab-callout {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--navy);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 30px 36px;
  color: var(--white);
  margin-bottom: 48px;
}
.tab-callout-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
}
.tab-callout-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}
.tab-callout p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); max-width: 640px; }

/* ============================================================
   Partners
   ============================================================ */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--azure);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}
.partner-card:hover { transform: translateY(-6px); border-top-color: var(--orange); box-shadow: var(--shadow-lg); }
.partner-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.partner-country { font-size: 0.86rem; color: var(--slate); margin-bottom: 12px; }
.partner-role {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: #FDF1E7;
  border: 1px solid #F3D4B8;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.partner-desc { font-size: 0.92rem; color: var(--slate); margin-bottom: 14px; }
.partner-facts li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: 0.88rem;
  color: var(--slate);
}
.partner-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--orange);
}
.partner-facts li strong { color: var(--ink); }

.partner-mini {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--azure);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: all var(--transition);
}
.partner-mini:hover { border-left-color: var(--orange); box-shadow: var(--shadow); }
.partner-mini .partner-name { font-size: 1.02rem; }
.partner-mini p { font-size: 0.88rem; color: var(--slate); }

/* ============================================================
   Projects
   ============================================================ */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project-card + .project-card { margin-top: 44px; }
.project-media { position: relative; min-height: 380px; }
.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-media .media-tag,
.project-mini-media .media-tag {
  position: absolute;
  left: 0;
  bottom: 22px;
  z-index: 2;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 18px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.project-body { padding: 42px 44px; }
.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.project-body .project-sub { color: var(--slate); font-size: 0.98rem; margin-bottom: 20px; }
.project-body p { font-size: 0.94rem; color: var(--slate); margin-bottom: 14px; }

.project-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 22px 0 26px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.fact { font-size: 0.86rem; color: var(--slate); }
.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--azure-dark);
}

/* ============================================================
   Compact side-by-side project cards (home)
   ============================================================ */
.projects-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.project-mini {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--azure);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.project-mini:hover {
  transform: translateY(-6px);
  border-top-color: var(--orange);
  box-shadow: var(--shadow-lg);
}
.project-mini-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.project-mini-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-mini-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 30px;
}
.project-mini-body h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.project-mini-body .project-sub {
  color: var(--slate);
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.project-mini-body .desc {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 16px;
}
.project-mini-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.project-mini .btn { margin-top: auto; align-self: flex-start; }

.chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure-deep);
  background: var(--azure-tint);
  padding: 6px 12px;
  border-radius: 3px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

/* ============================================================
   Data table (CAPEX)
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 560px;
}
.data-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: left;
  padding: 15px 20px;
}
.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.data-table tbody tr:nth-child(even) { background: #F8FBFD; }
.data-table .num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr.total td {
  background: #FDF1E7;
  border-top: 2px solid var(--orange);
  border-bottom: none;
  font-weight: 800;
  color: var(--orange-dark);
}
.data-table .phase-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure-dark);
  background: var(--azure-tint);
  padding: 3px 10px;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-info h3, .contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 26px;
}
.contact-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:first-of-type { border-top: 1px solid var(--line); }
.contact-item svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--azure);
  margin-top: 3px;
}
.contact-item h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-item p { font-size: 0.92rem; color: var(--slate); }

.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
.office-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--azure);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
}
.office-card h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 8px;
}
.office-card p { font-size: 0.9rem; color: var(--slate); }
.office-card .entity { font-size: 0.8rem; color: var(--slate); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(27, 135, 206, 0.14);
}
.form-group textarea { min-height: 150px; resize: vertical; }

.map-section { background: var(--mist); }
.map-container {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
}

/* ============================================================
   CTA + Footer
   ============================================================ */
.cta-section {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 96px 0;
  text-align: center;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 16px);
}
.cta-section::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--azure) 0 26px, var(--orange) 26px 34px);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.cta-section p { color: rgba(255, 255, 255, 0.75); font-size: 1.05rem; margin-bottom: 34px; }

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.74);
  padding: 76px 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
  gap: 44px;
  padding-bottom: 54px;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.footer-logo {
  height: 46px;
  width: auto;
  margin-bottom: 18px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
}
.footer-brand p { line-height: 1.75; }
.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  padding: 5px 0;
}
.footer-links a:hover { color: var(--amber); }
.footer-contact p { margin-bottom: 12px; line-height: 1.65; }
.footer-contact strong { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Cookie consent
   ============================================================ */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: var(--white);
  border-top: 3px solid var(--orange);
  box-shadow: 0 -10px 40px rgba(15, 44, 76, 0.18);
  padding: 20px 0;
  transform: translateY(120%);
  transition: transform 0.45s ease;
}
.cookie-consent.show { transform: translateY(0); }
.cookie-consent .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-consent p { font-size: 0.9rem; color: var(--slate); max-width: 640px; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 22px; font-size: 0.85rem; }
.btn-cookie-decline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.btn-cookie-decline:hover { border-color: var(--ink); }

/* ============================================================
   404
   ============================================================ */
.page-404 {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
  background:
    radial-gradient(circle at 12% 18%, rgba(27, 135, 206, 0.08), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(238, 123, 46, 0.08), transparent 42%),
    var(--mist);
}
.page-404 img { height: 56px; width: auto; margin: 0 auto 30px; background: var(--white); padding: 8px 14px; border-radius: var(--radius); }
.page-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--azure);
  letter-spacing: -0.03em;
}
.page-404 h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 10px 0 8px;
}
.page-404 p { color: var(--slate); margin-bottom: 30px; }

/* ============================================================
   Motion & utilities
   ============================================================ */
.fade-in, .fade-in-left, .fade-in-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left { transform: translateX(-36px); }
.fade-in-right { transform: translateX(36px); }
.fade-in.visible, .fade-in-left.visible, .fade-in-right.visible {
  opacity: 1;
  transform: none;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--azure), var(--orange));
  z-index: 3000;
}

.note-box {
  background: var(--azure-tint);
  border-left: 3px solid var(--azure);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--azure-deep);
}

/* ============================================================
   Responsive — mobile-first adjustments per breakpoint
   ============================================================ */
@media (max-width: 1100px) {
  .nav-links > a, .nav-links > .nav-item > .nav-parent { padding: 10px 9px; font-size: 0.86rem; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav .container { position: relative; }
  body.nav-open { overflow: hidden; }
  .nav-links {
    position: fixed;
    top: 78px;
    right: 0;
    width: min(380px, 86vw);
    height: calc(100vh - 78px);
    background: var(--white);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px;
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a, .nav-links > .nav-item > .nav-parent {
    padding: 13px 12px;
    font-size: 0.98rem;
    border-radius: var(--radius);
  }
  .nav-links > a.active, .nav-links > .nav-item > .nav-parent.active { box-shadow: inset 3px 0 0 var(--orange); }
  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--line);
    margin: 0 0 6px 12px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-item.open .nav-sub { max-height: 480px; }
  .nav-sub a { padding: 10px 16px; }

  .features-grid, .cards-grid, .values-grid, .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .stats-grid > div:nth-child(3) { border-left: none; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-scroll { display: none; }
}

@media (max-width: 860px) {
  .showcase-grid, .tab-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-card { grid-template-columns: 1fr; }
  .project-media { min-height: 280px; }
  .project-body { padding: 32px 28px; }
  .office-grid { grid-template-columns: 1fr; }
  .projects-duo { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; align-items: center; text-align: center; padding: 36px 28px; gap: 26px; }
  .chip-row, .profile-contact, .profile-meta { justify-content: center; }
  .tab-callout { flex-direction: column; align-items: flex-start; gap: 12px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-subtitle { margin-bottom: 38px; }

  /* Compact nav bar */
  .nav .container { min-height: 64px; }
  .nav-logo-img { height: 36px; }
  .nav-links { top: 64px; height: calc(100vh - 64px); }

  .features-grid, .cards-grid, .values-grid, .partner-grid, .leadership-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Hero */
  .hero-stage { min-height: 520px; }
  .hero-copy { padding: 64px 0 92px; }
  .hero-sub { font-size: 1rem; }
  .hero-dots { left: 20px; bottom: 24px; }
  .hero-mini { height: 340px; }
  .hero-mini .container { padding-bottom: 42px; }

  .cta-section { padding: 72px 0; }
  .stats { padding: 60px 0; }

  /* Footer: brand on top, link columns side by side, contact below */
  .footer { padding: 56px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact p { margin-bottom: 8px; }
  .footer-bottom { text-align: center; font-size: 0.78rem; padding: 18px 0; }

  .map-container iframe { height: 300px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }

  /* Stats: keep the 2-up rhythm, just tighter */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 14px; }
  .stats-grid > div { border-left: none; padding: 0; }
  .stat-number { font-size: 1.65rem; }
  .stat-label { font-size: 0.66rem; letter-spacing: 0.07em; }

  .process-steps { grid-template-columns: 1fr; }
  .project-facts { grid-template-columns: 1fr; }
  .project-body { padding: 26px 22px; }
  .project-mini-body { padding: 22px 20px 26px; }

  /* Full-width hero buttons stack cleanly */
  .hero-buttons { width: 100%; flex-direction: column; gap: 12px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-badge { font-size: 0.68rem; padding: 7px 12px; }

  .leader-avatar { width: 76px; height: 76px; font-size: 1.4rem; }
  .profile-avatar { width: 108px; height: 108px; font-size: 2.1rem; }
  .profile-contact { width: 100%; flex-direction: column; }
  .profile-contact .btn { width: 100%; justify-content: center; }

  .tab-btn { font-size: 0.8rem; padding: 10px 14px; }
  .contact-item { gap: 14px; }

  .cookie-consent .container { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }

  .footer-bottom { padding: 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-in, .fade-in-left, .fade-in-right { opacity: 1; transform: none; }
}
