/* ============================================================
   SABA ENERGY — Global Stylesheet
   Design system, layout, all sections
   ============================================================ */


/* ────────────────────────────────────────
   DESIGN TOKENS
──────────────────────────────────────── */
:root {
  --black:        #0a0a0a;
  --black-deep:   #060606;
  --black-mid:    #060606;
  --white:        #f0ece4;
  --white-dim:    #9a9a92;
  --green:        #00ad47;
  --green-deep:   #004d43;
  --border:       rgba(240, 236, 228, 0.08);

  --font-display: 'Noto Sans', sans-serif;
  --font-body:    'Noto Sans', sans-serif;

  --nav-height:   90px;
  --section-h-pad: 8%;
  --container-max: 1480px;

  --display-hero:     clamp(3.2rem, 5.5vw, 5.8rem);
  --display-monument: clamp(4rem, 8vw, 9.5rem);
  --display-1:        clamp(2.4rem, 4vw, 4.2rem);
  --display-2:        clamp(2rem, 3vw, 3.1rem);
  --display-3:        clamp(1.4rem, 2.2vw, 2rem);
  --text-body:  15px;
  --text-sm:    13px;
  --text-label: 11px;
  --text-micro: 10px;
  --white-soft: rgba(240, 236, 228, 0.75);
  --leading-display: 1.08;
  --leading-body:    1.8;
}


/* ────────────────────────────────────────
   SKIP LINK
   Visually hidden until keyboard-focused, then drops in above the nav.
──────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  padding: 12px 20px;
  background: var(--green);
  color: var(--black);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}


/* ────────────────────────────────────────
   PAGE TRANSITIONS
   A quiet fade between pages: the arriving page fades up on load, and internal
   links fade the current page out before navigating (main.js adds .is-leaving).
   Opacity only — safe for the fixed nav, which fades with the page — at ~0.3s.
   Reduced-motion turns it off entirely. Fades resolve to the dark page bg
   (set on html below) so there is never a white flash between pages.
──────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  body {
    animation: sabaPageIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  body.is-leaving {
    animation: sabaPageOut 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}

@keyframes sabaPageIn {
  from { opacity: 0; }
}

@keyframes sabaPageOut {
  to { opacity: 0; }
}


/* ────────────────────────────────────────
   RESET & BASE
──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--green);
  color: var(--white);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--green);
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

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

ul {
  list-style: none;
}

/* Keeps an acronym in its authored case inside an uppercased element
   (e.g. "PPAs" in the otherwise all-caps nav / overlay / button links) */
.preserve-case {
  text-transform: none;
}


/* ────────────────────────────────────────
   NAVIGATION
──────────────────────────────────────── */
/* Nav: full-width background layer — transparent over hero, fades in on scroll */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 100;
  pointer-events: none;
  background: rgba(6, 6, 6, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(240, 236, 228, 0);
  transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
}

.nav.scrolled {
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(240, 236, 228, 0.06);
}

/* Nav links group — fixed top-right, never moves */
.nav-inner {
  position: fixed;
  top: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 48px;
  background: none;
  border: none;
  pointer-events: all;
  z-index: 110;
}


/* Logo — floats freely top-left, completely unconstrained */
.nav-logo {
  position: fixed;
  top: 82px;
  left: 80px;
  z-index: 200;
  line-height: 0;
  display: block;
  pointer-events: all;
  opacity: 1;
  transition: top 0.4s ease, left 0.4s ease, opacity 0.5s ease;
}

/* On scroll the logo stays visible and docks into the nav bar (top-left),
   shrinking to sit neatly within the 64px bar rather than fading out. */
.nav-logo.docked {
  top: 13px;
  left: 48px;
}

.nav-logo.docked .nav-logo-img {
  height: 38px;
}

/* At the bottom of the page the footer has its own logo — fade the floating
   nav logo out once that footer logo scrolls into view so only one shows.
   Toggled by an IntersectionObserver in main.js. */
.nav-logo.at-footer {
  opacity: 0;
  pointer-events: none;
}

.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.55));
  transition: height 0.4s ease;
}

/* Light-hero pages (Europe, Africa): the green logo already has ample contrast
   on the bright photo, so drop the dark shadow that otherwise reads as a muddy
   halo. It still docks cleanly into the dark nav bar on scroll. */
body.hero-light .nav-logo-img {
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.25s ease;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

[aria-current] {
  color: var(--green);
}

.nav-cta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(240, 236, 228, 0.30);
  padding: 8px 18px;
  border-radius: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  border-color: var(--green);
  background: rgba(0, 173, 71, 0.15);
}

.nav-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-menu-btn span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--white);
}

.nav-item {
  position: relative;
}

/* ── Nav over a light/bright hero (Europe, Africa) ──
   Their hero photos have pale skies at the top, so white nav text needs a
   grey scrim that reads as an ugly band. Instead, use dark nav text at the
   top (no scrim needed); it flips back to white once the nav goes solid on
   scroll. A soft light halo keeps it legible where the nav crosses a
   mid-tone part of the image. */
.hero-light .nav:not(.scrolled) .nav-link,
.hero-light .nav:not(.scrolled) .nav-cta {
  color: var(--black);
  text-shadow: 0 1px 8px rgba(240, 236, 228, 0.6);
}

.hero-light .nav:not(.scrolled) .nav-cta {
  border-color: rgba(10, 10, 10, 0.35);
}

.hero-light .nav:not(.scrolled) .nav-menu-btn span {
  background: var(--black);
}

/* Active page keeps the green regardless of light/dark nav */
.hero-light .nav:not(.scrolled) [aria-current] {
  color: var(--green);
}


/* ────────────────────────────────────────
   FULLSCREEN OVERLAY MENU
──────────────────────────────────────── */
@keyframes overlayFadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  /* visibility keeps the closed menu out of the tab order and away from
     assistive tech (belt-and-braces with the inert attribute set in JS);
     the 0.35s delay lets the fade-out finish before it hides. */
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.overlay-close {
  position: absolute;
  top: 0;
  right: 0;
  height: 64px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}

.overlay-close-icon {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--white);
}

/* Three-column grid — vertically centered in overlay */
.overlay-grid {
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 38% 28% 34%;
  align-items: start;
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.overlay-link {
  position: relative;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--display-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
  transition: color 0.2s ease;
}

.overlay-link:hover,
.overlay-link.is-active {
  color: var(--green);
}

.overlay-sub-label {
  display: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.overlay-sub.has-active .overlay-sub-label {
  display: block;
  animation: overlayFadeInUp 0.2s ease forwards;
}

.overlay-submenu {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.overlay-submenu.is-active {
  display: flex;
  animation: overlayFadeInUp 0.2s ease forwards;
}

.overlay-submenu a {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-soft);
  line-height: 1;
  transition: color 0.2s ease;
}

/* Brand dotted-arrow (icon-arrow) slides in as the cursor moves between
   quick-link options — reserved space so the label never shifts. */
.overlay-submenu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 15px;
  height: 15px;
  background-color: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2067.1%2065.01%22%20%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M67.1%2C32.51c0%2C2.16-1.54%2C4.01-4.01%2C4.01-2.46%2C0-4.01-1.85-4.01-4.01s1.54-4.01%2C4.01-4.01c2.47%2C0%2C4.01%2C1.85%2C4.01%2C4.01Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M48.23%2C32.51c0%2C2.16-1.54%2C4.01-4.01%2C4.01-2.46%2C0-4.01-1.85-4.01-4.01%2C0-2.16%2C1.54-4.01%2C4.01-4.01%2C2.47%2C0%2C4.01%2C1.85%2C4.01%2C4.01Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M34.83%2C32.51c0%2C2.16-1.54%2C4.01-4.01%2C4.01-2.46%2C0-4.01-1.85-4.01-4.01s1.54-4.01%2C4.01-4.01c2.47%2C0%2C4.01%2C1.85%2C4.01%2C4.01Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M21.42%2C32.51c0%2C2.16-1.54%2C4.01-4.01%2C4.01-2.46%2C0-4.01-1.85-4.01-4.01%2C0-2.16%2C1.54-4.01%2C4.01-4.01%2C2.47%2C0%2C4.01%2C1.85%2C4.01%2C4.01Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M56.43%2C25.85c-1.53%2C1.53-3.92%2C1.74-5.67%2C0s-1.53-4.14%2C0-5.66c1.53-1.53%2C3.92-1.74%2C5.66%2C0%2C1.74%2C1.74%2C1.53%2C4.14%2C0%2C5.67Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M46.95%2C16.37c-1.53%2C1.53-3.92%2C1.74-5.67%2C0-1.74-1.74-1.53-4.14%2C0-5.66%2C1.53-1.53%2C3.92-1.74%2C5.66%2C0%2C1.74%2C1.74%2C1.53%2C4.14%2C0%2C5.67Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M37.47%2C6.89c-1.53%2C1.53-3.92%2C1.74-5.67%2C0s-1.53-4.14%2C0-5.66%2C3.92-1.74%2C5.66%2C0c1.74%2C1.74%2C1.53%2C4.14%2C0%2C5.67Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M56.47%2C39.15c1.53%2C1.53%2C1.74%2C3.92%2C0%2C5.67s-4.14%2C1.53-5.66%2C0-1.74-3.92%2C0-5.66%2C4.14-1.53%2C5.67%2C0Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M46.99%2C48.63c1.53%2C1.53%2C1.74%2C3.92%2C0%2C5.67-1.74%2C1.74-4.14%2C1.53-5.66%2C0-1.53-1.53-1.74-3.92%2C0-5.66%2C1.74-1.74%2C4.14-1.53%2C5.67%2C0Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M37.51%2C58.11c1.53%2C1.53%2C1.74%2C3.92%2C0%2C5.67-1.74%2C1.74-4.14%2C1.53-5.66%2C0-1.53-1.53-1.74-3.92%2C0-5.66%2C1.74-1.74%2C4.14-1.53%2C5.67%2C0Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M8.01%2C32.51c0%2C2.16-1.54%2C4.01-4.01%2C4.01-2.46%2C0-4.01-1.85-4.01-4.01s1.54-4.01%2C4.01-4.01c2.47%2C0%2C4.01%2C1.85%2C4.01%2C4.01Z%22%2F%3E%20%3C%2Fsvg%3E") no-repeat center;
  -webkit-mask-size: contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2067.1%2065.01%22%20%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M67.1%2C32.51c0%2C2.16-1.54%2C4.01-4.01%2C4.01-2.46%2C0-4.01-1.85-4.01-4.01s1.54-4.01%2C4.01-4.01c2.47%2C0%2C4.01%2C1.85%2C4.01%2C4.01Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M48.23%2C32.51c0%2C2.16-1.54%2C4.01-4.01%2C4.01-2.46%2C0-4.01-1.85-4.01-4.01%2C0-2.16%2C1.54-4.01%2C4.01-4.01%2C2.47%2C0%2C4.01%2C1.85%2C4.01%2C4.01Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M34.83%2C32.51c0%2C2.16-1.54%2C4.01-4.01%2C4.01-2.46%2C0-4.01-1.85-4.01-4.01s1.54-4.01%2C4.01-4.01c2.47%2C0%2C4.01%2C1.85%2C4.01%2C4.01Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M21.42%2C32.51c0%2C2.16-1.54%2C4.01-4.01%2C4.01-2.46%2C0-4.01-1.85-4.01-4.01%2C0-2.16%2C1.54-4.01%2C4.01-4.01%2C2.47%2C0%2C4.01%2C1.85%2C4.01%2C4.01Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M56.43%2C25.85c-1.53%2C1.53-3.92%2C1.74-5.67%2C0s-1.53-4.14%2C0-5.66c1.53-1.53%2C3.92-1.74%2C5.66%2C0%2C1.74%2C1.74%2C1.53%2C4.14%2C0%2C5.67Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M46.95%2C16.37c-1.53%2C1.53-3.92%2C1.74-5.67%2C0-1.74-1.74-1.53-4.14%2C0-5.66%2C1.53-1.53%2C3.92-1.74%2C5.66%2C0%2C1.74%2C1.74%2C1.53%2C4.14%2C0%2C5.67Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M37.47%2C6.89c-1.53%2C1.53-3.92%2C1.74-5.67%2C0s-1.53-4.14%2C0-5.66%2C3.92-1.74%2C5.66%2C0c1.74%2C1.74%2C1.53%2C4.14%2C0%2C5.67Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M56.47%2C39.15c1.53%2C1.53%2C1.74%2C3.92%2C0%2C5.67s-4.14%2C1.53-5.66%2C0-1.74-3.92%2C0-5.66%2C4.14-1.53%2C5.67%2C0Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M46.99%2C48.63c1.53%2C1.53%2C1.74%2C3.92%2C0%2C5.67-1.74%2C1.74-4.14%2C1.53-5.66%2C0-1.53-1.53-1.74-3.92%2C0-5.66%2C1.74-1.74%2C4.14-1.53%2C5.67%2C0Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M37.51%2C58.11c1.53%2C1.53%2C1.74%2C3.92%2C0%2C5.67-1.74%2C1.74-4.14%2C1.53-5.66%2C0-1.53-1.53-1.74-3.92%2C0-5.66%2C1.74-1.74%2C4.14-1.53%2C5.67%2C0Z%22%2F%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M8.01%2C32.51c0%2C2.16-1.54%2C4.01-4.01%2C4.01-2.46%2C0-4.01-1.85-4.01-4.01s1.54-4.01%2C4.01-4.01c2.47%2C0%2C4.01%2C1.85%2C4.01%2C4.01Z%22%2F%3E%20%3C%2Fsvg%3E") no-repeat center;
  mask-size: contain;
  opacity: 0;
  transform: translateY(-50%) translateX(-6px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.overlay-submenu a:hover::before,
.overlay-submenu a:focus-visible::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.overlay-submenu a:hover {
  color: var(--green);
}

.overlay-contact-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.overlay-contact-rule {
  width: 28px;
  height: 1px;
  background: var(--green);
  margin-bottom: 28px;
}

.overlay-offices {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.overlay-office-country {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--white);
  margin-bottom: 2px;
}

.overlay-office p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--white-soft);
}

.overlay-linkedin {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-soft);
  transition: color 0.2s ease;
}

.overlay-linkedin:hover {
  color: var(--white);
}

/* Bottom row — pinned to base of overlay */
.overlay-bottom {
  position: absolute;
  bottom: 48px;
  left: 8%;
  right: 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(240, 236, 228, 0.06);
}

.overlay-calc-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  transition: color 0.2s ease;
}

.overlay-copyright {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-sm);
  color: var(--white-soft);
}


/* ────────────────────────────────────────
   HERO
──────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  top: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Full-bleed video */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;
  pointer-events: none;
  will-change: transform;
}

/* Gradient overlay — shallow 160px top scrim (nav/logo legibility over bright
   video frames) layered with the main bottom fade. Anchored to .hero via
   inset:0, NOT the video, so the parallax transform does not move it. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Top scrim only — keeps the white nav legible over the bright sky at all
     times. The heavier bottom scrim lives on ::after so it can ease in. */
  background:
    linear-gradient(
      to bottom,
      rgba(6, 6, 6, 0.5) 0px,
      rgba(6, 6, 6, 0.22) 88px,
      transparent 160px
    );
}

/* Hero text — anchored to bottom */
.hero-text {
  position: absolute;
  left: 8%;
  bottom: 72px;
  z-index: 10;
  max-width: 700px;
}

/* Bottom fade — sits below text layer */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--black));
  z-index: 5;
  pointer-events: none;
}

.hero-rule {
  width: 32px;
  height: 1px;
  background: var(--green);
  margin-bottom: 28px;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--display-2);
  color: var(--white);
  line-height: var(--leading-display);
  margin-top: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.hero-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: var(--leading-body);
  color: var(--white);
  max-width: 420px;
  margin-top: 32px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Shared button base */
.btn {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border: 1px solid var(--green);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* Sweep layer: sits above the green background, below the label. */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-deep);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: -1;
}

.btn-secondary {
  background: transparent;
  color: rgba(240,236,228,0.85);
  border: 1.5px solid rgba(240,236,228,0.55);
}

.btn-secondary:hover {
  color: rgba(240,236,228,1);
  border-color: rgba(240,236,228,0.9);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.scroll-line {
  width: 2px;
  height: 32px;
  background: var(--white-dim);
  opacity: 0.3;
}

.scroll-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-micro);
  letter-spacing: 0.16em;
  color: var(--white-dim);
  opacity: 0.4;
  text-transform: uppercase;
}


/* ────────────────────────────────────────
   SECTION 2 — IMPACT BAR
──────────────────────────────────────── */
.impact-bar {
  background: var(--black-deep);
  padding: 80px 10%;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  max-width: var(--container-max);
  margin-inline: auto;
}

.impact-stat {
  padding: 0 40px;
  position: relative;
}

.impact-stat + .impact-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 1px;
  background: var(--border);
}

.impact-stat:first-child {
  padding-left: 0;
}

.impact-stat:last-child {
  padding-right: 0;
}

/* ────────────────────────────────────────
   SECTION 3 — DUAL CHAPTER CARDS
──────────────────────────────────────── */
.chapters {
  background: var(--black);
  padding: 80px var(--section-h-pad);
}

.chapters-header {
  text-align: center;
  margin-bottom: clamp(48px, 5vw, 72px);
  max-width: var(--container-max);
  margin-inline: auto;
}

.section-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--display-2);
  color: var(--white);
  line-height: 1.2;
}

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

.chapter-card {
  background: var(--black-mid);
  display: flex;
  flex-direction: column;
}

.chapter-card-inner {
  padding: 64px 52px 0;
  flex: 1;
}

.chapter-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--green);
  text-transform: uppercase;
}

.chapter-rule {
  width: 24px;
  height: 1px;
  background: var(--green);
  margin: 16px 0 28px;
}

.chapter-headline {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--display-2);
  color: var(--white);
  line-height: var(--leading-display);
}

.chapter-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--white-soft);
  margin-top: 20px;
}

.chapter-link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 40px;
  margin-bottom: 40px;
  transition: color 0.25s ease;
}

.text-link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 40px;
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-link:hover {
  color: var(--green);
  transform: translateX(3px);
}


/* ────────────────────────────────────────
   FOOTER
──────────────────────────────────────── */
.footer {
  background: var(--black-deep);
  padding: 64px 8% 40px;
  border-top: 1px solid rgba(240, 236, 228, 0.06);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  max-width: var(--container-max);
  margin-inline: auto;
}

.footer-logo-link {
  display: block;
  line-height: 0;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-linkedin {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-soft);
  transition: color 0.25s ease;
}

.footer-linkedin:hover {
  color: var(--white);
}

.footer-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: start;
  gap: clamp(56px, 9vw, 120px);
  margin-bottom: 48px;
  max-width: var(--container-max);
  margin-inline: auto;
}

.footer-address-col p.footer-region {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.footer-address-col p:last-child {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: rgba(240, 236, 228, 0.78);
}

.footer-divider {
  height: 1px;
  background: rgba(0, 173, 71, 0.2);
  margin-bottom: 28px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
}

.footer-bottom p,
.footer-bottom a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-sm);
  color: var(--white-soft);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-dot {
  color: var(--white-dim);
}


/* ────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────── */

/* ── ≤ 1024px: tablet ── */
@media (max-width: 1024px) {

  /* Impact bar — 4-col → 2×2 */
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .impact-stat,
  .impact-stat:first-child,
  .impact-stat:last-child {
    padding: 0 20px;
  }

  .impact-stat + .impact-stat::before {
    display: none;
  }

  .impact-stat:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .impact-stat:nth-child(-n+2) {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
  }

  .impact-stat:nth-child(n+3) {
    padding-top: 32px;
  }
}

/* ── ≤ 900px: hide nav text links ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

/* ── ≤ 768px: tablet & mobile ── */
@media (max-width: 768px) {

  /* Nav */
  .nav-cta {
    display: none;
  }

  .nav-inner {
    padding: 0 20px;
    gap: 16px;
  }

  .nav-logo {
    top: 52px;
    left: 40px;
  }

  .nav-logo.docked {
    top: 13px;
    left: 20px;
  }

  .nav-logo.docked .nav-logo-img {
    height: 32px;
  }

  .nav-logo-img {
    height: 46px;
  }

  /* Hero (index.html) */
  .hero-text {
    left: 6%;
    right: 6%;
    bottom: 60px;
    max-width: 100%;
  }

  .hero-headline {
    font-size: var(--display-2);
  }

  .hero-body {
    font-size: var(--text-body);
    max-width: 100%;
    margin-top: 20px;
    color: var(--white);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    margin-top: 28px;
  }

  .hero-buttons .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Impact bar — 2×2 grid */
  .impact-bar {
    padding: 80px 6%;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 0;
  }

  .impact-stat,
  .impact-stat:first-child,
  .impact-stat:last-child {
    padding: 40px 20px;
    text-align: center;
  }

  .impact-stat + .impact-stat::before {
    display: none;
  }

  .impact-stat:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .impact-stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  /* Chapters / Two Markets */
  .chapters {
    padding: 80px 6%;
  }

  .section-title {
    font-size: var(--display-2);
  }

  /* Footer */
  .footer {
    padding: 60px 8% 40px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    text-align: center;
  }

  .footer-logo-img {
    height: 37px;
  }

  .footer-addresses {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  /* Overlay — single column */
  .overlay-grid {
    position: absolute;
    top: 80px;
    left: 6%;
    right: 6%;
    bottom: 80px;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 48px;
    overflow-y: auto;
  }

  .overlay-sub {
    display: none !important;
  }

  .overlay-link {
    font-size: var(--display-2);
  }

  .overlay-bottom {
    bottom: 24px;
    left: 6%;
    right: 6%;
  }

  .overlay-close {
    padding: 0 20px;
  }
}


/* ────────────────────────────────────────
   HOMEPAGE CONTENT (content overhaul)
   New sections composed from existing tokens.
──────────────────────────────────────── */

/* Hero message rotator */
.hero-slides {
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-dots {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(240, 236, 228, 0.4);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-dot.is-active {
  background: var(--green);
  border-color: var(--green);
}

/* Welcome + Global Strategy lead paragraph */
.home-statement {
  background: var(--black);
  padding: 120px var(--section-h-pad);
  text-align: center;
}

.home-statement-inner {
  max-width: var(--container-max);
  margin-inline: auto;
}

.home-lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--display-3);
  line-height: var(--leading-body);
  color: var(--white-soft);
  max-width: 860px;
  margin: 24px auto 0;
}

/* ── Structured body copy ──
   Long centered paragraphs are justified into clean rectangular blocks
   (edges flush), with the last line kept centered so the block still reads
   as intentional within its centered section. Global rule — the selectors
   below live across all four pages. Reverts to plain center on mobile, where
   the short measure would open ugly justification gaps. */
.home-lead,
.uk-problem-inner .eu-copy,
.af-problem-text,
.af-cred-text,
.af-cta-body,
.contact-intro {
  text-align: justify;
  text-align-last: center;
  /* Hyphenate long words so justification doesn't open large word gaps.
     Only words ≥8 chars break (min 4 before / 3 after) — no busy short breaks. */
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 8 4 3;
}

@media (max-width: 768px) {
  .home-lead,
  .uk-problem-inner .eu-copy,
  .af-problem-text,
  .af-cred-text,
  .af-cta-body,
  .contact-intro {
    text-align: center;
    text-align-last: center;
    -webkit-hyphens: manual;
    hyphens: manual;
  }
}

/* News card */
.home-news {
  background: var(--black-deep);
  padding: 100px var(--section-h-pad);
}

.home-news-card {
  max-width: var(--container-max);
  margin-inline: auto;
  border: 1px solid rgba(240, 236, 228, 0.12);
  padding: 56px;
}

.home-news-headline {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--display-2);
  line-height: var(--leading-display);
  color: var(--white);
  margin: 20px 0;
  max-width: 900px;
}

.home-news-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--white-soft);
  max-width: 760px;
}

/* Benefit cards reusing the impact grid */
.impact-stat .benefit-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body);
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
}

.impact-stat .benefit-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--white-soft);
}

/* Footer tagline */
.footer-tagline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

@media (max-width: 768px) {
  .home-statement {
    padding: 80px 6%;
  }

  .home-news {
    padding: 60px 6%;
  }

  .home-news-card {
    padding: 32px;
  }

  .hero-dots {
    margin-top: 28px;
  }
}


/* ────────────────────────────────────────
   INTERACTIVE LAYER (hover-capable devices only)
   Transitions ride cubic-bezier(0.22, 1, 0.36, 1) at 0.3s.
──────────────────────────────────────── */
@media (hover: hover) {

  .btn-primary::before {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  .btn-primary:hover {
    border-color: var(--green-deep);
  }

  /* Overlay menu breathe: letter-spacing is the sanctioned
     exception to the transform/opacity-only rule. */
  .overlay-link {
    transition: color 0.2s ease, letter-spacing 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .overlay-link:hover {
    letter-spacing: 0.09em;
  }
}


/* ────────────────────────────────────────
   BRAND ICONS & GLYPHS
   Authentic brand SVGs, inlined and recoloured via currentColor.
   Benefit icons rest at 0.25 and rise to full green with their
   card (the same shift the dividers/numbers ride); glyphs inherit
   their context colour. Sizing is per-context.
──────────────────────────────────────── */
.brand-icon {
  display: block;
  width: auto;
  height: 40px;
  color: var(--green);
  opacity: 0.25;
  margin-bottom: 20px;
}

/* Positive Energy mark — quiet, beside the footer tagline */
.footer-tagline-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-tagline-icon {
  display: block;
  width: auto;
  height: 30px;
  color: var(--green);
}

/* External-link glyph trailing outbound links (LinkedIn) */
.link-ext {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.45em;
  vertical-align: baseline;
}

/* Arrow glyph on text-links (inherits the link's green) */
.text-link-arrow {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-left: 0.5em;
  vertical-align: middle;
}

@media (hover: hover) {
  .brand-icon {
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .benefit-card:hover .brand-icon,
  .impact-stat:hover .brand-icon {
    opacity: 1;
  }
}


/* ────────────────────────────────────────
   PHOTOGRAPHY — MEDIA PATTERNS
   A) .media-split  — text one side, image the other (50/50)
   B) .media-band   — full-bleed image strip with scrim
   C) card images   — inside chapter/news card components
   Image frames ride the [data-reveal="clip"] entrance. Slots
   hold their space via aspect-ratio / fixed height (no CLS).
──────────────────────────────────────── */

/* ── Pattern A: media split ── */
.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
}

.media-split-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* aspect-ratio set inline per source ratio — locks the slot */
}

.media-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Default: image right (source order text → media). Image-left flips it. */
.media-split--image-left .media-split-text { order: 2; }
.media-split--image-left .media-split-media { order: 1; }

/* ── Pattern B: media band ── */
.media-band {
  position: relative;
  min-height: clamp(360px, 50vh, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

/* Darkening scrim, left-to-right per pattern spec */
.media-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6, 6, 6, 0.55), rgba(6, 6, 6, 0.25));
  pointer-events: none;
}

.media-band-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--section-h-pad);
}

.media-band-eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.media-band-line {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--display-3);
  color: var(--white);
  line-height: var(--leading-display);
  margin-top: 16px;
  max-width: 620px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* ── Pattern C: chapter-card image ── */
.chapter-card-media {
  height: clamp(200px, 24vw, 280px);
  overflow: hidden;
  flex-shrink: 0;
}

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

/* ── Pattern C: news-card image ── */
.home-news-card {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.home-news-media {
  overflow: hidden;
  aspect-ratio: 848 / 971;
}

.home-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Media patterns: stack below 1024px, image first ── */
@media (max-width: 1024px) {
  .media-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .media-split .media-split-media { order: 1; }
  .media-split .media-split-text { order: 2; }
}

@media (max-width: 768px) {
  .home-news-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-news-media {
    order: 1;
    max-height: 380px;
  }

  .home-news-text {
    order: 2;
  }
}
