@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap");

/* ============================================
   SUSTAINNOVATE HUB - HYBRID BRAND THEME (LIGHT + DARK)
   ============================================ */

/* --------------------------------------------
   1. BRAND TOKENS
-------------------------------------------- */
:root {
  /* Brand Colors */
  --brand-primary: #0b6f5c;          /* Emerald */
  --brand-primary-light: #12a389;    /* Light Emerald */
  --brand-accent: #1f7ae0;           /* Ocean Blue */
  --brand-highlight: #f1b93a;        /* Solar Gold (sparingly) */

  /* Neutral Palette */
  --neutral-50: #ffffff;
  --neutral-100: #f4f6f3;
  --neutral-300: #95a59f;
  --neutral-900: #0b1412;            /* Dark background */

  /* Surface Shades */
  --surface-dark: #0f1b19;           /* Card background (dark mode) */
  --surface-light: #ffffff;          /* Card background (light mode) */

  /* Shadows & Radius */
  --shadow-soft: 0 8px 24px rgba(11, 20, 18, 0.08);
  --shadow-medium: 0 16px 36px rgba(11, 20, 18, 0.13);
  --shadow-strong: 0 24px 52px rgba(11, 20, 18, 0.18);
  --shadow-lift: 0 18px 42px rgba(11, 20, 18, 0.1);
  --radius: 22px;

  /* Typography */
  --font-body: "Manrope", "Trebuchet MS", Verdana, sans-serif;
  --font-display: "Fraunces", "Palatino Linotype", "Book Antiqua", serif;

  /* Buttons */
  --btn-bg: var(--brand-primary);
  --btn-bg-hover: var(--brand-primary-light);
  --btn-text: #fff;

  /* Borders */
  --border-light: rgba(11, 20, 18, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);

  --bg-page: #f6f3ee;
  --bg-hero: #eef8f4;
  --header: rgba(246, 250, 248, 0.88);
  --page-grad-start: #edf6f2;
  --page-grad-mid: #f4f2ed;
  --page-grad-end: #f8f6f2;
  --hero-grad-start: rgba(11, 111, 92, 0.12);
  --hero-grad-mid: rgba(11, 111, 92, 0.02);
  --hero-grad-end: rgba(248, 245, 240, 0);
  --hero-glow-blue: rgba(31, 122, 224, 0.22);
  --hero-glow-green: rgba(11, 111, 92, 0.16);
  --hero-glow-warm: rgba(241, 185, 58, 0.3);
  --header-height: 112px;
  --menu-bg: rgba(248, 251, 249, 0.98);
  --menu-border: rgba(11, 20, 18, 0.12);
  --menu-text: #0b1412;
  --menu-sub-bg: rgba(11, 20, 18, 0.04);
  --surface-glass: rgba(255, 255, 255, 0.68);
  --surface-glass-strong: rgba(255, 255, 255, 0.9);
  --section-rule: rgba(11, 20, 18, 0.07);

}

/* --------------------------------------------
   2. GLOBAL BASE
-------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background:
    radial-gradient(900px circle at 8% 8%, rgba(31, 122, 224, 0.12), transparent 58%),
    radial-gradient(760px circle at 92% 4%, rgba(241, 185, 58, 0.14), transparent 55%),
    linear-gradient(180deg, var(--page-grad-start) 0%, var(--page-grad-mid) 55%, var(--page-grad-end) 100%);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(900px circle at 8% 8%, rgba(31, 122, 224, 0.12), transparent 58%),
    radial-gradient(760px circle at 92% 4%, rgba(241, 185, 58, 0.14), transparent 55%),
    linear-gradient(180deg, var(--page-grad-start) 0%, var(--page-grad-mid) 55%, var(--page-grad-end) 100%);
  color: var(--neutral-900);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100%;
}

body {
  padding-top: calc(var(--header-height) + env(safe-area-inset-top));
}

body.menu-open {
  overflow: hidden;
  height: 100dvh;
  touch-action: none;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #1359a8;
}

main p,
main li,
main .sub {
  text-align: left;
  text-justify: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .experts-teaser-grid {
    grid-template-columns: 1fr;
  }
  .experts-grid {
    grid-template-columns: 1fr;
  }
}

main > section {
  padding: clamp(54px, 6vw, 78px) 0;
}

main > section + section {
  padding-top: clamp(28px, 3.8vw, 48px);
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(31px, 3.5vw, 46px);
  margin: 0 0 12px;
  line-height: 1.12;
}

h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
  line-height: 1.24;
}

ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

li + li {
  margin-top: 6px;
}

.sub {
  color: #49655d;
  font-size: 1.08rem;
  margin: 10px 0 18px;
  max-width: 64ch;
  line-height: 1.72;
}

main > section > .container > h2,
main > section > .container > .eyebrow + h2 {
  text-wrap: balance;
}

main > section > .container > h2 + .sub {
  margin-top: 8px;
  margin-bottom: clamp(20px, 2.4vw, 30px);
}

.experts-directory .sub,
.experts-hero .sub,
#expert-pool .sub {
  text-align: left;
  text-justify: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.84rem;
  color: #4f6b62;
}

.breadcrumbs a {
  color: #2f6156;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: #1f4f46;
}

.list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 22px);
  margin-top: 24px;
}

.list .li {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(11, 20, 18, 0.07);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(11, 20, 18, 0.07);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.list .li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
  opacity: 0.72;
}

.list .li strong {
  display: inline-block;
  margin-bottom: 6px;
  color: #10231f;
}

.list .li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(11, 111, 92, 0.18);
}

/* --------------------------------------------
   3. NAVIGATION
-------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  padding-top: env(safe-area-inset-top);
  border-bottom: 0;
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

header.header-hidden {
  transform: translateY(-110%);
  box-shadow: none;
}


.nav {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 24px;
  padding-bottom: 0;
  position: relative;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 36px rgba(11, 20, 18, 0.04);
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.brand,
.menu,
.nav-actions,
.burger {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--neutral-900);
  text-decoration: none !important;
}

.brand:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.brand-logo {
  display: block;
  width: auto;
  height: clamp(70px, 7.5vw, 96px);
  max-width: min(360px, 44vw);
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.menu {
  display: flex;
  gap: 0.75rem;
  margin-left: 10px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.menu > .nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 12px;
  color: var(--neutral-900);
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.menu > .nav-item > a:hover {
  background: rgba(11, 20, 18, 0.06);
  transform: translateY(-1px);
}

.menu > .nav-item > a.is-active {
  background: rgba(11, 111, 92, 0.12);
  border: 1px solid rgba(11, 111, 92, 0.2);
  color: #0b4f41;
  font-weight: 600;
}

.menu > .nav-item > a.is-active:hover {
  background: rgba(11, 111, 92, 0.18);
}

.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(11, 20, 18, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(11, 20, 18, 0.16);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--neutral-900);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dropdown a:hover {
  background: rgba(11, 20, 18, 0.06);
  transform: translateX(2px);
}

.dropdown-item {
  position: relative;
}

.dropdown-item.has-submenu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-item.has-submenu > a::after {
  content: ">";
  opacity: 0.6;
  margin-left: 12px;
}

.submenu-right {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 260px;
  padding: 8px;
  margin-left: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(11, 20, 18, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 70;
}

.dropdown-item.has-submenu:hover .submenu-right,
.dropdown-item.has-submenu:focus-within .submenu-right {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.submenu-right a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--neutral-900);
  font-weight: 500;
  white-space: nowrap;
}

.submenu-right a:hover {
  background: rgba(11, 20, 18, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-left: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search {
  position: relative;
  width: min(260px, 24vw);
}

.site-search-input {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(11, 20, 18, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--neutral-900);
  padding: 0 14px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search-input::placeholder {
  color: #587068;
}

.site-search-input:focus {
  outline: none;
  border-color: rgba(11, 111, 92, 0.45);
  box-shadow: 0 0 0 3px rgba(11, 111, 92, 0.14);
  background: rgba(255, 255, 255, 0.95);
}

.site-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(11, 20, 18, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow-medium);
  padding: 6px;
  display: none;
  z-index: 70;
}

.site-search.is-open .site-search-results {
  display: grid;
  gap: 4px;
}

.search-hit {
  text-align: left;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 2px;
  box-shadow: none;
}

.search-hit:hover,
.search-hit.is-active {
  background: rgba(11, 111, 92, 0.1);
  border-color: rgba(11, 111, 92, 0.18);
  transform: none;
}

.search-hit-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.search-hit-meta {
  font-size: 0.75rem;
  color: #567067;
  line-height: 1.2;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(11, 111, 92, 0.16), rgba(31, 122, 224, 0.12));
  border: 1px solid rgba(11, 111, 92, 0.26);
  color: #0b4f41;
  padding: 0;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 10px 22px rgba(11, 20, 18, 0.12);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  background: linear-gradient(135deg, rgba(11, 111, 92, 0.22), rgba(31, 122, 224, 0.16));
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 14px 28px rgba(11, 20, 18, 0.16);
}

.theme-toggle .icon-moon,
.theme-toggle .icon-sun {
  width: 19px;
  height: 19px;
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.theme-toggle .icon-moon {
  opacity: 1;
  z-index: 1;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%2024%2024'><path d='M21%2014.5A8.5%208.5%200%201%201%209.5%203a7%207%200%200%200%2011.5%2011.5Z' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%2024%2024'><path d='M21%2014.5A8.5%208.5%200%201%201%209.5%203a7%207%200%200%200%2011.5%2011.5Z' fill='black'/></svg>");
}

.theme-toggle .icon-sun {
  opacity: 0;
  z-index: 2;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%2024%2024'><circle cx='12' cy='12' r='4.5' fill='black'/><path d='M12%202v2M12%2020v2M4.9%204.9l1.4%201.4M17.7%2017.7l1.4%201.4M2%2012h2M20%2012h2M4.9%2019.1l1.4-1.4M17.7%206.3l1.4-1.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%2024%2024'><circle cx='12' cy='12' r='4.5' fill='black'/><path d='M12%202v2M12%2020v2M4.9%204.9l1.4%201.4M17.7%2017.7l1.4%201.4M2%2012h2M20%2012h2M4.9%2019.1l1.4-1.4M17.7%206.3l1.4-1.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}

.nav-pill {
  background: rgba(11, 111, 92, 0.12);
  border: 1px solid rgba(11, 111, 92, 0.2);
  color: #0b4f41;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-pill:hover {
  background: rgba(11, 111, 92, 0.18);
}

.cta {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-medium);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover {
  background: linear-gradient(135deg, #0a5c4c, #0f907a);
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
  color: #fff !important;
}
.menu .cta {
  color: #fff !important;
}

.menu .cta:hover {
  background: linear-gradient(135deg, #0a5c4c, #0f907a);
}
.cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 111, 92, 0.28), var(--shadow-strong);
}

.header-cta {
  margin-left: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(11, 111, 92, 0.08);
  border: 1px solid rgba(11, 111, 92, 0.2);
  color: var(--neutral-900);
  padding: 0;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.burger:hover {
  background: rgba(11, 20, 18, 0.06);
  transform: translateY(-1px);
}
.burger:focus {
  outline: none;
  box-shadow: none;
}
.burger:focus-visible {
  box-shadow: none;
}

.burger svg {
  width: 20px;
  height: 20px;
  display: block;
}

#m {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: min(360px, 90vw);
  height: 100dvh;
  background: var(--menu-bg);
  color: var(--menu-text);
  border-left: 1px solid var(--menu-border);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 60;
  transform: translateX(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

#m.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#m a {
  color: inherit;
  white-space: nowrap;
}

#m .submenu[hidden] {
  display: none;
}

#m .mobile-menu {
  padding: calc(14px + var(--header-height) + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  display: grid;
  gap: 10px;
  --menu-row-h: clamp(40px, 9vw, 48px);
}

#m .site-search {
  width: 100%;
}

#m .site-search-results {
  position: static;
  margin-top: 8px;
}

#m .menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 2px 6px;
}

#m .menu-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--menu-border);
  background: rgba(11, 111, 92, 0.08);
  color: var(--menu-text);
  padding: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#m .menu-close svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
}

#m .menu-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--menu-sub-bg);
  border: 1px solid var(--menu-border);
  border-radius: 12px;
  padding: 0 12px;
  width: 100%;
  height: var(--menu-row-h);
  min-height: var(--menu-row-h);
}

#m .menu-link {
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  display: block;
  width: 100%;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

#m .submenu-toggle {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#m .submenu-toggle[aria-expanded="true"] {
  color: var(--brand-primary);
}

#m .submenu {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  padding: 6px 8px 10px;
}

#m .submenu a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--menu-sub-bg);
  white-space: nowrap;
  border: 1px solid var(--menu-border);
  width: 100%;
  height: var(--menu-row-h);
  min-height: var(--menu-row-h);
  line-height: 1.2;
}

#m .submenu .menu-group {
  padding: 9px 12px;
}

#m .submenu .menu-link {
  font-weight: inherit;
}

#m .submenu .menu-group > .menu-link {
  background: transparent;
  border: 0;
  padding: 0;
}

#m .submenu-label {
  margin: 10px 0 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(11, 20, 18, 0.6);
}

#m .menu-group--nested {
  margin-top: 0;
}

#m .submenu .submenu {
  padding-left: 0;
}

#m .menu-group--nested .submenu-toggle {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

#m .container {
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}


#m > .mobile-menu > a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--menu-sub-bg);
  border: 1px solid var(--menu-border);
  font-weight: 600;
  height: var(--menu-row-h);
  min-height: var(--menu-row-h);
  display: flex;
  align-items: center;
}

#m > .mobile-menu > a.is-active {
  border-color: var(--menu-border);
  background: var(--menu-sub-bg);
  color: inherit;
}

#m .theme-toggle {
  justify-self: start;
}

#m .cta--menu {
  width: max-content;
}

#m > .mobile-menu > a.cta--menu {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  border: 0;
  color: #fff;
  box-shadow: var(--shadow-medium);
}

#m > .mobile-menu > a.cta--menu:hover {
  background: linear-gradient(135deg, #0a5c4c, #0f907a);
  box-shadow: var(--shadow-strong);
}

#m .nav-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f5f7f4;
}

/* --------------------------------------------
   4. HERO (LIGHT SECTION)
-------------------------------------------- */
.hero {
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, var(--hero-grad-start) 0%, var(--hero-grad-mid) 55%, var(--hero-grad-end) 100%),
              radial-gradient(520px circle at 14% 18%, var(--hero-glow-blue), transparent 60%),
              radial-gradient(560px circle at 86% 10%, var(--hero-glow-green), transparent 62%);
  padding: 150px 0 clamp(76px, 7vw, 102px);
}

#hero {
  margin-top: calc(-1 * (var(--header-height) + env(safe-area-inset-top)));
}

main > section:first-child:not(#hero) {
  margin-top: calc(-1 * (var(--header-height) + env(safe-area-inset-top)));
  padding-top: calc(var(--header-height) + env(safe-area-inset-top));
}

.contact-hero {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 clamp(26px, 4vw, 44px);
  background:
    radial-gradient(540px circle at 16% 55%, rgba(31, 122, 224, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(11, 111, 92, 0.13), rgba(11, 111, 92, 0));
}

.contact-hero .lead {
  max-width: 44ch;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.8;
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--hero-glow-warm), transparent 65%);
  top: -130px;
  right: 10%;
}

.hero::after {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--hero-glow-blue), transparent 70%);
  bottom: -130px;
  left: 6%;
}


.grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 4vw, 48px);
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 34rem);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11, 111, 92, 0.1);
  border: 1px solid rgba(11, 111, 92, 0.24);
  color: #0b6f5c;
  font-weight: 700;
  white-space: normal;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
  color: var(--neutral-900);
  font-weight: 700;
  max-width: 15ch;
  text-wrap: balance;
}

.hero .lead {
  color: #415a53;
  max-width: 58ch;
  font-size: clamp(1.08rem, 1.8vw, 1.24rem);
  line-height: 1.72;
  text-align: left;
  text-justify: auto;
}

.hero-note {
  margin-top: 16px;
  max-width: 60ch;
  color: #36514a;
  font-size: 1rem;
  line-height: 1.68;
  text-align: left;
  text-justify: auto;
  padding: 12px 0 12px 16px;
  border-left: 3px solid rgba(11, 111, 92, 0.3);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  border-radius: 0 18px 18px 0;
}

.hero .hero-actions {
  margin-top: 22px;
  gap: 14px;
}

.hero .hero-actions a:not(.cta) {
  font-weight: 600;
  color: #1e6cc8;
  padding: 6px 2px;
}

.hero .hero-actions a:not(.cta):hover {
  color: #1658a3;
}

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

.hero-affiliations-label {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #48635c;
  font-weight: 700;
}

.hero-affiliation-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 111, 92, 0.25);
  background: rgba(255, 255, 255, 0.7);
  color: #1a3d35;
  font-weight: 600;
  text-decoration: none;
}

.hero-affiliation-item img {
  width: auto;
  height: 30px;
  display: block;
}

.hero-affiliation-item:hover {
  border-color: rgba(11, 111, 92, 0.4);
  background: rgba(255, 255, 255, 0.9);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.metric {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(11, 20, 18, 0.08);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--neutral-900);
}

.metric-label {
  display: block;
  font-size: 0.92rem;
  color: #5a7068;
  margin-top: 6px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(11, 20, 18, 0.08);
  padding: 28px;
  border-radius: 22px;
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(8px);
}

.hero-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-side-image {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(11, 20, 18, 0.08);
  box-shadow: 0 28px 70px rgba(11, 20, 18, 0.16);
  background: rgba(255, 255, 255, 0.7);
  aspect-ratio: 4 / 3;
}

.hero-side-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mini-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 20, 18, 0.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  min-height: 162px;
}

.hero-mini-card h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
  line-height: 1.24;
}

.hero-mini-card p {
  margin: 0;
  color: #4f6b62;
  font-size: 0.95rem;
  line-height: 1.56;
}

.hero-mobile-metrics {
  display: none;
}

.hero-mobile-services {
  display: none;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2f5f54;
  background: rgba(11, 111, 92, 0.12);
  border: 1px solid rgba(11, 111, 92, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.hero-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(11, 111, 92, 0.18);
  color: #0b4f41;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

/* --------------------------------------------
   5. DARK SECTIONS - Services / Why Us / CTA / Footer
-------------------------------------------- */

section.dark {
  background: var(--neutral-900);
  color: var(--neutral-100);
  padding: 80px 0;
}

.dark h2 {
  color: var(--neutral-100);
}

.dark .sub {
  color: var(--neutral-300);
}

.dark .card {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  color: var(--neutral-100);
  box-shadow: var(--shadow-strong);
}

.dark .list .li {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  color: var(--neutral-100);
}

/* --------------------------------------------
   6. CARDS & SERVICES
-------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 2vw, 24px);
}

#services .cards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#services .cards > .card {
  grid-column: span 2;
}

#services .cards > .card:nth-child(4) {
  grid-column: 2 / span 2;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88));
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(11, 20, 18, 0.08);
  box-shadow: 0 12px 30px rgba(11, 20, 18, 0.07);
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card h3 {
  margin-top: 0;
}

.card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(11, 111, 92, 0.12), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(11, 20, 18, 0.12);
  border-color: rgba(11, 111, 92, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 253, 251, 0.92));
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.card-head h3 {
  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(11, 111, 92, 0.13), rgba(31, 122, 224, 0.08));
  border: 1px solid rgba(11, 111, 92, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b4f41;
  margin-top: 2px;
  flex: 0 0 auto;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.card p,
.card li {
  color: #48645c;
  line-height: 1.66;
}

.card ul {
  padding-left: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding-left: 18px;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-primary);
}

/* Sector grid: equal-height cards with aligned CTAs */
#sectors .sub {
  max-width: none;
}

#sectors .cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

#sectors .card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#sectors .card p {
  margin: 0 0 14px;
}

#sectors .card .cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  white-space: nowrap;
  font-size: 0.9rem;
  line-height: 1.1;
  padding: 8px 12px;
  border-radius: 999px;
}

.usecase-cards .card {
  position: relative;
  overflow: hidden;
}

.usecase-cards .card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(31, 122, 224, 0.15), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.usecase-cards .card:nth-child(2n)::after {
  background: radial-gradient(circle, rgba(11, 111, 92, 0.15), transparent 70%);
}

.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.service-nav a {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(11, 111, 92, 0.2);
  color: #0b4f41;
  padding: 10px 15px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(11, 20, 18, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-nav a:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(11, 111, 92, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(11, 20, 18, 0.08);
}

.process {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 20, 18, 0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(31, 122, 224, 0.12);
  color: #174f90;
  font-weight: 700;
  font-family: var(--font-display);
  transition: transform 0.25s ease;
}

.process-step h3 {
  margin: 0 0 6px;
}

.step-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(11, 20, 18, 0.08);
  background: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2c5c52;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-icon svg {
  width: 26px;
  height: 26px;
  display: block;
  transition: transform 0.25s ease;
}

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.process-step:hover .step-num {
  transform: translateY(-1px);
}

.process-step:hover .step-icon {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(11, 20, 18, 0.12);
}

.process-step:hover .step-icon svg {
  transform: scale(1.05);
}

.step-icon {
  animation: iconFloat 4s ease-in-out infinite;
}

.process-step:nth-child(2) .step-icon {
  animation-delay: 0.2s;
}

.process-step:nth-child(3) .step-icon {
  animation-delay: 0.4s;
}

.process-step:nth-child(4) .step-icon {
  animation-delay: 0.6s;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.case-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 20, 18, 0.08);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.case-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5a7068;
  margin-bottom: 10px;
}

.case-outcome {
  margin-top: 12px;
  color: #2f3f3b;
}

.poc-callout {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, rgba(11, 111, 92, 0.18), rgba(31, 122, 224, 0.12));
  border: 1px solid rgba(11, 20, 18, 0.08);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}

.poc-callout h3 {
  margin: 0 0 6px;
}

.poc-callout p {
  margin: 0;
  color: #2f4e46;
}

.usecase-highlight {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 20, 18, 0.08);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.usecase-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.usecase-cta {
  background: rgba(11, 111, 92, 0.08);
  border: 1px solid rgba(11, 111, 92, 0.2);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.usecase-cta p {
  margin: 0;
  color: #2f4e46;
}

/* --------------------------------------------
   7. CTA STRIP
-------------------------------------------- */
.strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 26px 30px;
  margin-top: 30px;
  background: linear-gradient(90deg, rgba(11, 111, 92, 0.16), rgba(31, 122, 224, 0.14));
  border: 1px solid rgba(11, 20, 18, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.strip::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(241, 185, 58, 0.35), transparent 70%);
  opacity: 0.8;
  pointer-events: none;
}

.strip > * {
  position: relative;
  z-index: 1;
}

.strip strong {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.35;
  max-width: 40ch;
}

.strip .cta {
  flex-shrink: 0;
}

.fade {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade {
    animation: none;
    opacity: 1;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .step-icon {
    animation: none;
  }
  .process-step,
  .process-step .step-num,
  .process-step .step-icon,
  .process-step .step-icon svg {
    transition: none;
  }
  header {
    transition: none;
  }
}

@media (max-width: 1150px) {
  .nav {
    height: var(--header-height);
    padding: 0 16px;
  }

  #expert-pool .experts-teaser-grid {
    width: auto;
    min-width: 100%;
  }
  .brand {
    padding-right: 0;
    overflow-y: visible;
  }
  .menu {
    gap: 0.6rem;
    justify-content: flex-end;
  }
  .menu a {
    padding: 8px 12px;
  }
  .cta {
    padding: 8px 14px;
  }
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
  .site-search {
    width: min(220px, 24vw);
  }
  .header-cta {
    margin-left: 0;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --brand-accent: #7bb5ff;
  --neutral-50: #0b1412;
  --neutral-100: #111d1a;
  --neutral-300: #9aa6a1;
  --neutral-900: #f5f7f4;
  --surface-light: #111d1a;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(255, 255, 255, 0.14);
  --header: rgba(12, 20, 18, 0.9);
  --menu-bg: rgba(9, 17, 16, 0.98);
  --menu-border: rgba(255, 255, 255, 0.12);
  --menu-text: #f5f7f4;
  --menu-sub-bg: rgba(255, 255, 255, 0.06);
  --page-grad-start: #0b1412;
  --page-grad-mid: #0f1c18;
  --page-grad-end: #0b1412;
  --hero-grad-start: rgba(12, 28, 22, 0.9);
  --hero-grad-mid: rgba(12, 28, 22, 0.5);
  --hero-grad-end: rgba(12, 28, 22, 0);
  --hero-glow-blue: rgba(68, 132, 255, 0.18);
  --hero-glow-green: rgba(18, 160, 136, 0.16);
  --hero-glow-warm: rgba(241, 185, 58, 0.18);
  --surface-glass: rgba(17, 29, 26, 0.72);
  --surface-glass-strong: rgba(17, 29, 26, 0.92);
  --section-rule: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] a:hover {
  color: #9ac7ff;
}

html[data-theme="dark"] .sub,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .metric-label {
  color: #c8d2ce;
}

html[data-theme="dark"] .breadcrumbs {
  color: #b8c5c0;
}

html[data-theme="dark"] .breadcrumbs a {
  color: #cfe0db;
}

html[data-theme="dark"] .breadcrumbs a:hover {
  color: #e6f0ec;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .list .li,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .hero-mini-card,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .process-step,
html[data-theme="dark"] .case-card {
  background: rgba(17, 29, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .nav::before {
  background: rgba(12, 20, 18, 0.34);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .list .li strong,
html[data-theme="dark"] .metric-value {
  color: #f5f7f4;
}

html[data-theme="dark"] .card p,
html[data-theme="dark"] .card li {
  color: #cbd8d3;
}

html[data-theme="dark"] .hero-note {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  color: #d3ddd9;
}

html[data-theme="dark"] .usecase-highlight {
  background: rgba(17, 29, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .hero-side-image {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(17, 29, 26, 0.9);
}

html[data-theme="dark"] .usecase-cta {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .usecase-cta p {
  color: #d3ddd9;
}

html[data-theme="dark"] .card-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #d9e6e1;
}

html[data-theme="dark"] .usecase-cards .card::after {
  background: radial-gradient(circle, rgba(123, 181, 255, 0.16), transparent 70%);
}

html[data-theme="dark"] .usecase-cards .card:nth-child(2n)::after {
  background: radial-gradient(circle, rgba(18, 160, 136, 0.16), transparent 70%);
}

html[data-theme="dark"] .poc-callout {
  background: linear-gradient(90deg, rgba(18, 160, 136, 0.22), rgba(68, 132, 255, 0.16));
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .poc-callout p {
  color: #d3ddd9;
}

html[data-theme="dark"] .step-icon {
  background: rgba(17, 29, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cfe0db;
}

html[data-theme="dark"] .strip {
  background: linear-gradient(90deg, rgba(18, 160, 136, 0.2), rgba(68, 132, 255, 0.16));
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .menu > .nav-item > a:hover {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .nav-pill,
html[data-theme="dark"] .menu > .nav-item > a.is-active,
html[data-theme="dark"] .service-nav a,
html[data-theme="dark"] .pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f2f6f3;
}

html[data-theme="dark"] .theme-toggle {
  background: linear-gradient(135deg, rgba(18, 160, 136, 0.24), rgba(68, 132, 255, 0.2));
  border-color: rgba(255, 255, 255, 0.22);
  color: #f5f7f4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 22px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .site-search-input {
  background: rgba(17, 29, 26, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f5f7f4;
}

html[data-theme="dark"] .site-search-input::placeholder {
  color: #b8c5c0;
}

html[data-theme="dark"] .site-search-results {
  background: rgba(12, 20, 18, 0.98);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .search-hit {
  color: #f5f7f4;
}

html[data-theme="dark"] .search-hit-meta {
  color: #b8c5c0;
}

html[data-theme="dark"] .search-hit:hover,
html[data-theme="dark"] .search-hit.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
}

html[data-theme="dark"] .nav-pill:hover,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .service-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .dropdown {
  background: rgba(12, 20, 18, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .dropdown a {
  color: #f5f7f4;
}

html[data-theme="dark"] .dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .submenu-right {
  background: rgba(12, 20, 18, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .submenu-right a {
  color: #f5f7f4;
}

html[data-theme="dark"] .submenu-right a:hover {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .burger {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f5f7f4;
}

html[data-theme="dark"] .tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #d4ddd9;
}

html[data-theme="dark"] .step-num {
  background: rgba(68, 132, 255, 0.18);
  color: #cfe0ff;
  border: 1px solid rgba(110, 165, 255, 0.35);
}

html[data-theme="dark"] input:not([type="checkbox"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: rgba(17, 29, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f7f4;
}

html[data-theme="dark"] label {
  color: #d4ddd9;
}

html[data-theme="dark"] .case-tag {
  color: #b8c5c0;
}

html[data-theme="dark"] .case-outcome {
  color: #d5dfdb;
}

html[data-theme="dark"] .contact-social {
  color: #c8d2ce;
}

html[data-theme="dark"] footer {
  background: linear-gradient(180deg, rgba(10, 18, 16, 0.98), rgba(8, 14, 13, 0.96));
}

html[data-theme="dark"] #sectors .card {
  background: linear-gradient(180deg, rgba(14, 29, 25, 0.96), rgba(11, 24, 21, 0.94));
  border-color: rgba(182, 214, 203, 0.18);
}

html[data-theme="dark"] #sectors .card p {
  color: #d2ddd8;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(11, 20, 18, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #0b4f41;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 60;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  box-shadow: var(--shadow-strong);
}

.to-top svg {
  width: 34px;
  height: 34px;
}

html[data-theme="dark"] .to-top {
  background: rgba(17, 29, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #d9e6e1;
}

/* --------------------------------------------
   8. FORMS
-------------------------------------------- */
form {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
}
label {
  font-size: 0.9rem;
  color: var(--neutral-900);
  font-weight: 700;
}

label input[type="checkbox"] {
  margin-right: 8px;
}

.contact-social {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: #4f6b62;
  flex-wrap: wrap;
}

.contact-social a {
  font-weight: 600;
}

.container-narrow {
  max-width: 900px;
}

.container-form {
  max-width: 960px;
}

.section-contact {
  padding-top: 18px;
  padding-bottom: 64px;
}

.policy-content {
  padding-top: 20px;
  padding-bottom: 72px;
}

.policy-container {
  max-width: 900px;
}

.policy-container h2 {
  margin-top: 34px;
  margin-bottom: 10px;
}

.policy-container h2:first-child {
  margin-top: 0;
}

.policy-container p,
.policy-container li {
  line-height: 1.72;
}

.policy-container .sub {
  margin-bottom: 14px;
}

.policy-container .list {
  margin-top: 0;
  margin-bottom: 30px;
}

.legal-content {
  padding-top: 20px;
  padding-bottom: 72px;
}

.legal-container {
  max-width: 900px;
}

.legal-container h2 {
  margin-top: 34px;
  margin-bottom: 10px;
}

.legal-container h2:first-child {
  margin-top: 0;
}

.legal-container p,
.legal-container li {
  line-height: 1.72;
}

.sectors-hero {
  padding: clamp(28px, 4.8vw, 46px) 0 clamp(18px, 3.2vw, 30px);
}

.sectors-hero .container {
  max-width: 1200px;
}

.sectors-hero--industrial .container {
  max-width: 1400px;
}

.sectors-hero--overview .container {
  max-width: 1400px;
}

.sectors-hero-grid {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(24px, 3.2vw, 40px);
}

.sectors-hero--industrial .sectors-hero-grid {
  grid-template-columns: 0.5fr 1.5fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

.sectors-hero--overview .sectors-hero-grid {
  grid-template-columns: minmax(390px, 0.72fr) minmax(620px, 1.28fr);
  gap: clamp(22px, 2.8vw, 42px);
  align-items: start;
}

.sectors-hero-copy {
  max-width: 34rem;
}

.sectors-hero--industrial .sectors-hero-copy {
  max-width: 26rem;
}

.sectors-hero--overview .sectors-hero-copy {
  max-width: 31rem;
}

.sectors-hero h1,
.sectors-hero .lead {
  max-width: 30ch;
}

.sectors-hero h1 {
  font-size: clamp(38px, 4.1vw, 54px);
  line-height: 1.04;
  margin-bottom: 14px;
}

.sectors-hero .lead {
  font-size: clamp(1.03rem, 1.45vw, 1.18rem);
  line-height: 1.66;
}

.sectors-hero .hero-actions {
  margin-top: 18px;
}

.sectors-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.sectors-hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(11, 111, 92, 0.18);
  background: rgba(255, 255, 255, 0.56);
  color: #24564d;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.1;
}

.sectors-hero-image {
  margin: 0;
  justify-self: end;
  width: min(100%, 780px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(11, 20, 18, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.sectors-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.sectors-hero-image--industrial {
  align-self: start;
  width: min(100%, 1320px);
  aspect-ratio: auto;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}

.sectors-hero-image--industrial img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.sectors-hero-image--overview {
  align-self: start;
  width: min(100%, 1280px);
  aspect-ratio: auto;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sectors-hero-collage {
  display: grid;
  gap: 16px;
}

.sectors-hero-main-visual {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(11, 20, 18, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 248, 0.82));
  box-shadow: 0 22px 52px rgba(11, 20, 18, 0.11);
}

.sectors-hero-image--overview img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.sectors-hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sectors-hero-highlight {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 20, 18, 0.08);
  border-radius: 16px;
  padding: 15px 16px 16px;
  box-shadow: 0 12px 28px rgba(11, 20, 18, 0.08);
}

.sectors-hero-highlight-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2f5f54;
}

.sectors-hero-highlight strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--neutral-900);
}

#sectors {
  padding-top: 22px;
}

.sector-section-head {
  max-width: 980px;
  margin-bottom: 26px;
}

.sector-section-head .eyebrow {
  margin-bottom: 14px;
}

.sector-section-head .sub {
  margin-bottom: 0;
}

.sector-card {
  min-height: 280px;
  padding: 22px;
}

.sector-card .card-head {
  margin-bottom: 12px;
}

.sector-card p {
  color: #3f5b53;
  line-height: 1.62;
}

.sector-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 18px;
}

.sector-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 122, 224, 0.08);
  border: 1px solid rgba(31, 122, 224, 0.14);
  color: #245f9f;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
}

.experts-teaser-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#expert-pool .experts-carousel {
  overflow: hidden;
  width: 100%;
}

#expert-pool .experts-carousel--draggable {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

#expert-pool .experts-carousel--draggable.is-dragging {
  cursor: grabbing;
}

#expert-pool .experts-carousel--draggable a,
#expert-pool .experts-carousel--draggable img {
  -webkit-user-drag: none;
  user-select: none;
}

.experts-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 10px 0 16px;
}

.experts-carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(11, 111, 92, 0.35);
  background: linear-gradient(135deg, #0b6f5c, #12a389);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(11, 111, 92, 0.22);
}

.experts-carousel-btn:hover {
  background: linear-gradient(135deg, #0a5c4c, #0f907a);
}

.experts-carousel-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 122, 224, 0.32), var(--shadow-medium);
}

.experts-carousel-icon {
  font-size: 0;
  line-height: 1;
  pointer-events: none;
}

.experts-carousel-btn[data-experts-prev] .experts-carousel-icon::before,
.experts-carousel-btn[data-experts-next] .experts-carousel-icon::before {
  display: inline-block;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.experts-carousel-btn[data-experts-prev] .experts-carousel-icon::before {
  content: "\2039";
}

.experts-carousel-btn[data-experts-next] .experts-carousel-icon::before {
  content: "\203A";
}

#expert-pool .experts-teaser-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: max-content;
  grid-template-columns: none;
}

#expert-pool .expert-teaser-card {
  flex: 0 0 clamp(260px, 23vw, 310px);
}

.expert-teaser-card {
  padding: 0;
}

.expert-teaser-link {
  display: block;
  color: inherit;
  padding: 20px;
  height: 100%;
}

.expert-teaser-link:hover {
  color: inherit;
}

.expert-teaser-avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(11, 20, 18, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(11, 20, 18, 0.1);
  margin-bottom: 14px;
}

.expert-teaser-placeholder,
.expert-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #0b4f41;
  background: linear-gradient(145deg, rgba(11, 111, 92, 0.18), rgba(31, 122, 224, 0.14));
}

.experts-hero .lead {
  max-width: 58ch;
}

.experts-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(18px, 2vw, 24px);
}

.expert-card {
  padding: 0;
}

.expert-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  padding: 0;
  height: auto;
  min-height: 100%;
}

.expert-card-link:hover {
  color: inherit;
}

.expert-role {
  margin: 0 18px 10px;
  font-size: 0.9rem;
  color: #436159;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  text-justify: auto;
}

.expert-card .expert-avatar,
.expert-card .expert-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px 20px 0 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.expert-card .expert-avatar {
  object-fit: cover;
  background: rgba(222, 232, 227, 0.9);
}

.expert-card .expert-avatar--youssef {
  object-position: center 28%;
}

.expert-card .expert-avatar--hossam {
  object-position: center 10%;
}

.expert-card .expert-avatar--ghada {
  object-fit: contain;
  object-position: center;
  padding: 6px;
  background: #eef3f1;
}

.expert-card .expert-avatar--randa {
  object-position: center 0%;
}

.expert-card .expert-avatar--ezzeldin {
  object-position: center 18%;
}

.expert-card .expert-avatar--khalid {
  object-position: center 12%;
}

.expert-card .expert-avatar--moustafa {
  object-position: center 34%;
}

.expert-card .expert-avatar--awah {
  object-fit: contain;
  object-position: center;
  background: #eef3f1;
}

.expert-card .expert-avatar--samir {
  object-fit: contain;
  object-position: center;
  padding: 6px;
  background: #eef3f1;
}

.expert-card .expert-avatar--maros
{
  object-position: center 15%;
}
.expert-card .expert-avatar--asfour{
  object-position: center 8%;
}
.expert-card .expert-avatar--salma {
  object-position: center 20%;
}

.expert-card .expert-avatar--ahmed {
  object-position: center 10%;
}
.expert-card .expert-avatar--simon {
  object-position: center 10%;
}

.expert-card .expert-avatar--paul {
  object-position: center 2%;
}

.expert-card .expert-avatar--islam {
  object-position: center 15%;
}

.expert-card .expert-avatar--elham {
  object-position: center 100%;
}

.expert-card .expert-avatar--magda {
  object-position: 48% 40%;
}

.expert-card .expert-avatar--alessandro {
  object-position: center 15%;
}

.expert-card .expert-avatar--ruediger {
  object-position: center 30%;
}

.expert-card .expert-avatar--magali {
  object-position: center 0%;
}

.expert-card .expert-avatar--george {
  object-position: center 18%;
}

.expert-card .expert-avatar--garyfallia {
  object-position: center 20%;
}

.expert-card .expert-avatar--rania {
  object-position: center 18%;
}

.expert-card .expert-avatar--mazen {
  object-position: center 24%;
}

.expert-card .expert-avatar--shadia {
  object-position: center 22%;
}

.expert-teaser-avatar--hossam {
  object-position: center 10%;
}

.expert-teaser-avatar--ghada {
  object-fit: contain;
  object-position: center;
  padding: 4px;
  background: #eef3f1;
}

.expert-teaser-avatar--randa {
  object-position: center 0%;
}

.expert-teaser-avatar--ezzeldin {
  object-position: center 32%;
}

.expert-teaser-avatar--khalid {
  object-position: center 39%;
}

.expert-teaser-avatar--moustafa {
  object-position: center 34%;
}

.expert-teaser-avatar--awah {
  object-fit: contain;
  object-position: center;
  padding: 4px;
  background: #eef3f1;
}

.expert-avatar-lg.expert-avatar--awah {
  object-fit: contain;
  object-position: center;
  padding: 6px;
  background: #eef3f1;
}

.expert-avatar-lg.expert-avatar--samir {
  object-fit: contain;
  object-position: center 28%;
  transform: none;
  padding: 6px;
  background: #eef3f1;
}

.expert-teaser-avatar--samir {
  object-fit: contain;
  padding: 4px;
  background: #eef3f1;
}

.expert-teaser-avatar--maros,
.expert-teaser-avatar--asfour,
.expert-teaser-avatar--salma {
  object-position: center 20%;
}

.expert-teaser-avatar--asfour {
  object-position: center 12%;
}

.expert-teaser-avatar--ahmed {
  object-position: center 20%;
}

.expert-teaser-avatar--paul {
  object-position: center 58%;
}

.expert-teaser-avatar--islam {
  object-position: center 15%;
}

.expert-teaser-avatar--elham {
  object-position: center 100%;
}

.expert-teaser-avatar--magda {
  object-position: 48% 40%;
}

.expert-teaser-avatar--george {
  object-position: center 18%;
}

.expert-teaser-avatar--garyfallia {
  object-position: center 20%;
}

.expert-teaser-avatar--rania {
  object-position: center 18%;
}

.expert-teaser-avatar--mazen {
  object-position: center 24%;
}

.expert-teaser-avatar--shadia {
  object-position: center 22%;
}

.expert-avatar-lg.expert-avatar--maros,
.expert-avatar-lg.expert-avatar--asfour,
.expert-avatar-lg.expert-avatar--salma {
  object-position: center 20%;
}

.expert-avatar-lg.expert-avatar--ahmed {
  object-position: center 20%;
}

.expert-avatar-lg.expert-avatar--paul {
  object-position: center 15%;
}

.expert-avatar-lg.expert-avatar--islam {
  object-position: center 15%;
}

.expert-avatar-lg.expert-avatar--elham {
  object-position: center 100%;
}

.expert-avatar-lg.expert-avatar--magda {
  object-position: 48% 40%;
}

.expert-avatar-lg.expert-avatar--magali {
  object-position: center 20%;
}

.expert-avatar-lg.expert-avatar--george {
  object-position: center 18%;
}

.expert-avatar-lg.expert-avatar--garyfallia {
  object-position: center 20%;
}

.expert-avatar-lg.expert-avatar--rania {
  object-position: center 18%;
}

.expert-avatar-lg.expert-avatar--mazen {
  object-position: center 24%;
}

.expert-avatar-lg.expert-avatar--shadia {
  object-position: center 22%;
}

.expert-avatar-lg.expert-avatar--ghada{
  object-fit: contain;
  object-position: center 28%;
  transform: none;
  padding: 6px;
  background: #eef3f1;
}
.expert-avatar-lg.expert-avatar--randa{
  object-position: center 0%;
}
.expert-avatar-lg.expert-avatar--ezzeldin {
  object-position: center 5%;
}

.expert-card .expert-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.expert-card-link h3,
.expert-card-link p,
.expert-card-link .pill-row {
  padding-left: 20px;
  padding-right: 20px;
}

.expert-card-link h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: clamp(1.24rem, 1.6vw, 1.48rem);
  text-wrap: balance;
}

.expert-card-link p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.expert-card-link .pill-row {
  margin-top: 8px;
  margin-bottom: 14px;
}

.experts-grid .pill-row .pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap !important;
  flex: 0 0 auto;
}

.experts-grid .expert-role {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.experts-grid .expert-card-link > p:not(.expert-role) {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expert-profile-section {
  padding-top: 16px;
}

.expert-profile-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 20px;
  align-items: start;
}

.expert-profile-side {
  position: sticky;
  top: calc(var(--header-height) + 14px);
}

.expert-avatar-lg {
  width: 126px;
  height: 126px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 14px;
}

.expert-profile-main h2 {
  margin-top: 0;
}

.expert-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

html[data-theme="dark"] .expert-role {
  color: #cde0d9;
}

html[data-theme="dark"] .expert-teaser-avatar,
html[data-theme="dark"] .expert-avatar {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(17, 29, 26, 0.92);
}

html[data-theme="dark"] .expert-card .expert-avatar {
  background: rgba(17, 29, 26, 0.9);
}

html[data-theme="dark"] .expert-teaser-placeholder,
html[data-theme="dark"] .expert-placeholder {
  color: #d7ebe3;
  background: linear-gradient(145deg, rgba(18, 160, 136, 0.24), rgba(68, 132, 255, 0.2));
}

.services-hero {
  padding: clamp(32px, 5.2vw, 50px) 0 clamp(12px, 2.6vw, 22px);
}

.services-hero .lead {
  max-width: 54ch;
}

.services-intro {
  padding-top: 18px;
  padding-bottom: clamp(18px, 2.4vw, 28px);
}

#commitment-map {
  padding-top: clamp(18px, 2.4vw, 28px);
}

#contact .list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

#contact .list .li {
  min-height: 100%;
}

#contact form {
  margin-top: 8px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  border: 1px solid rgba(11, 20, 18, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lift);
  gap: 16px;
}

#contact .form-actions-row small {
  max-width: 64ch;
}

.form-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.form-status {
  display: none;
  background: rgba(18, 163, 137, 0.15);
  border: 1px solid rgba(18, 163, 137, 0.35);
  padding: 12px 14px;
  border-radius: 12px;
}

.form-status.is-visible {
  display: block;
}

input:not([type="checkbox"]), textarea, select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(11, 20, 18, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--neutral-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
textarea {
  min-height: 130px;
  resize: vertical;
}
.full {
  grid-column: 1/-1;
}

input:not([type="checkbox"]):focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(11, 111, 92, 0.5);
  box-shadow: 0 0 0 3px rgba(11, 111, 92, 0.15);
}

button {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  border: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

/* --------------------------------------------
   9. FOOTER (Dark)
-------------------------------------------- */
footer {
  background:
    radial-gradient(640px circle at 85% 0%, rgba(18, 160, 136, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(11, 20, 18, 0.98), rgba(8, 15, 14, 0.96));
  padding: clamp(42px, 5vw, 62px) 0;
  color: var(--neutral-300);
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

footer nav a {
  white-space: normal;
  padding: 5px 8px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

footer a,
footer a:visited {
  color: #dfe9e5;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] footer a,
html[data-theme="dark"] footer a:visited {
  color: #dfe9e5;
}

html[data-theme="dark"] footer a:hover,
html[data-theme="dark"] footer a:focus-visible {
  color: #ffffff;
}

/* --------------------------------------------
   10. UX V2 REFINEMENTS (Global + Navigation)
-------------------------------------------- */
p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

h1, h2, h3 {
  line-height: 1.15;
}

.sub,
.lead {
  max-width: 62ch;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.submenu-toggle:focus-visible,
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 122, 224, 0.32);
  border-radius: 12px;
}

header.is-scrolled {
  background: rgba(246, 250, 248, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 20, 18, 0.1);
  box-shadow: 0 8px 24px rgba(11, 20, 18, 0.1);
}

.menu > .nav-item > a {
  font-size: 1.03rem;
  letter-spacing: 0.01em;
}

.menu > .nav-item > a:hover {
  border-color: rgba(11, 20, 18, 0.12);
}

.dropdown,
.submenu-right {
  border-radius: 16px;
  padding: 10px;
}

.dropdown a,
.submenu-right a {
  line-height: 1.3;
}

.site-search-input {
  height: 42px;
}

.search-hit {
  padding: 9px 10px;
}

.cta {
  min-height: 40px;
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.cards {
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
}

.card p {
  color: #355149;
  line-height: 1.68;
}

.card .cta {
  margin-top: auto;
}

main > section > .container > h2 {
  max-width: 20ch;
}

#m > .mobile-menu > a,
#m .submenu a {
  white-space: normal;
  height: auto;
  min-height: var(--menu-row-h);
  align-items: flex-start;
  padding-top: 10px;
  padding-bottom: 10px;
}

html[data-theme="dark"] header.is-scrolled {
  background: rgba(10, 18, 16, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .card p,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .hero-note,
html[data-theme="dark"] .sub {
  color: #d2ddd8;
}

html[data-theme="dark"] .eyebrow {
  background: rgba(123, 181, 255, 0.1);
  border-color: rgba(123, 181, 255, 0.28);
  color: #b9d6ff;
}

html[data-theme="dark"] .hero-note {
  border-left-color: rgba(123, 181, 255, 0.44);
}

html[data-theme="dark"] .hero .hero-actions a:not(.cta) {
  color: #9dc7ff;
}

html[data-theme="dark"] .hero .hero-actions a:not(.cta):hover {
  color: #c1ddff;
}

html[data-theme="dark"] .hero-affiliations-label {
  color: #d2ddd8;
}

html[data-theme="dark"] .hero-affiliation-item {
  border-color: rgba(123, 181, 255, 0.3);
  background: rgba(13, 24, 21, 0.75);
  color: #e9f3ef;
}

html[data-theme="dark"] .hero-affiliation-item:hover {
  border-color: rgba(123, 181, 255, 0.45);
  background: rgba(16, 30, 26, 0.92);
}

html[data-theme="dark"] .hero-mini-card h3 {
  color: #f2f6f3;
}

html[data-theme="dark"] .hero-mini-card p {
  color: #cfe0db;
}

html[data-theme="dark"] .form-status {
  background: rgba(18, 163, 137, 0.22);
  border-color: rgba(93, 214, 188, 0.4);
  color: #e6f5f0;
}

html[data-theme="dark"] #contact form {
  background: rgba(17, 29, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .policy-container p,
html[data-theme="dark"] .policy-container li {
  color: #d2ddd8;
}

html[data-theme="dark"] .legal-container p,
html[data-theme="dark"] .legal-container li {
  color: #d2ddd8;
}

html[data-theme="dark"] .sectors-hero-image {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(17, 29, 26, 0.9);
}

html[data-theme="dark"] .sectors-hero-proof span,
html[data-theme="dark"] .sectors-hero-highlight,
html[data-theme="dark"] .sectors-hero-main-visual {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(17, 29, 26, 0.86);
}

html[data-theme="dark"] .sectors-hero-proof span,
html[data-theme="dark"] .sectors-hero-highlight-kicker {
  color: #9be2d0;
}

html[data-theme="dark"] .sectors-hero-highlight strong,
html[data-theme="dark"] .sector-card p {
  color: #e4eee9;
}

html[data-theme="dark"] .sector-card-tags span {
  background: rgba(31, 122, 224, 0.18);
  border-color: rgba(101, 166, 239, 0.28);
  color: #b9d8ff;
}

html[data-theme="dark"] .menu > .nav-item > a:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .dropdown,
html[data-theme="dark"] .submenu-right {
  border-color: rgba(255, 255, 255, 0.16);
}

/* --------------------------------------------
   11. RESPONSIVE
-------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --header-height: 76px;
    --header: rgba(248, 251, 249, 0.95);
  }
  html[data-theme="dark"] {
    --header: rgba(10, 18, 16, 0.92);
  }
  main > section {
    padding: 42px 0;
  }
  main > section + section {
    padding-top: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    max-width: none;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .hero-content .metrics {
    display: none;
  }
  .hero-affiliations {
    margin-top: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero-affiliations-label {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }
  .hero-affiliation-item {
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
    padding: 7px 11px;
    font-size: 0.96rem;
  }
  .hero-affiliation-item img {
    height: 22px;
  }
  .hero-mobile-services {
    display: block;
    margin-top: 14px;
  }
  .hero-mini-cards {
    grid-template-columns: 1fr;
  }
  .hero-mini-card {
    min-height: 0;
  }
  .hero-side .hero-card {
    display: none;
  }
  .hero-mobile-metrics {
    display: grid;
    gap: 14px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  #services .cards {
    grid-template-columns: 1fr;
  }
  #services .cards > .card,
  #services .cards > .card:nth-child(4) {
    grid-column: auto;
  }
  #sectors .cards {
    grid-template-columns: 1fr;
  }
  .usecase-highlight {
    grid-template-columns: 1fr;
  }
  .poc-callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-actions-row {
    flex-direction: column;
    align-items: flex-start;
  }
  #contact .list {
    grid-template-columns: 1fr;
  }
  form {
    grid-template-columns: 1fr;
  }
  #contact form {
    padding: 16px;
  }
  .policy-content {
    padding-top: 12px;
    padding-bottom: 56px;
  }
  .legal-content {
    padding-top: 12px;
    padding-bottom: 56px;
  }
  .sectors-hero {
    padding: 28px 0 12px;
  }
  .sectors-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .sectors-hero--overview .sectors-hero-grid {
    grid-template-columns: 1fr;
  }
  .sectors-hero-copy {
    max-width: none;
  }
  .sectors-hero h1,
  .sectors-hero .lead {
    max-width: none;
  }
  .sectors-hero-highlights {
    grid-template-columns: 1fr;
  }
  .sectors-hero-main-visual {
    border-radius: 18px;
  }
  .sector-section-head {
    margin-bottom: 20px;
  }
  .sector-card {
    min-height: 0;
  }
  .experts-teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .experts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expert-profile-layout {
    grid-template-columns: 1fr;
  }
  .expert-profile-side {
    position: static;
  }
  .expert-avatar-lg {
    width: 110px;
    height: 110px;
  }
  #sectors {
    padding-top: 20px;
  }
  .services-hero {
    padding: 26px 0 12px;
  }
  .services-intro {
    padding-top: 14px;
  }
  .hero {
    padding: 108px 0 62px;
  }
  .contact-hero {
    padding: 36px 0 22px;
  }
  .menu {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .nav-actions .theme-toggle {
    display: none;
  }
  .burger {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    background: rgba(11, 111, 92, 0.14);
    border-color: rgba(11, 111, 92, 0.35);
    box-shadow: 0 6px 16px rgba(11, 20, 18, 0.12);
    color: #0b4f41;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .burger svg {
    width: 22px;
    height: 22px;
  }
  header {
    box-shadow: none;
    border-bottom: 0;
  }
  header.is-scrolled {
    box-shadow: none;
    border-bottom: 0;
  }
  .nav {
    height: var(--header-height);
    gap: 10px;
    justify-content: space-between;
    position: relative;
    padding-right: 56px;
    padding-bottom: 0;
  }
  .nav::before {
    inset: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.2);
  }
  .brand {
    gap: 0;
    padding-right: 56px;
  }
  .brand-logo {
    width: 82px;
    height: 62px;
    border-radius: 9px;
  }
  footer .container > div {
    align-items: flex-start;
  }
  footer nav {
    width: 100%;
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .experts-grid {
    grid-template-columns: 1fr;
  }

  .expert-card .expert-avatar,
  .expert-card .expert-placeholder {
    aspect-ratio: 16 / 10;
  }

  .expert-role {
    font-size: 0.84rem;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 900px) {
  #expert-pool .expert-teaser-card {
    flex-basis: clamp(230px, 72vw, 280px);
  }

  #expert-pool .expert-teaser-card.reveal {
    opacity: 1;
    transform: none;
  }

  #expert-pool .experts-teaser-grid {
    width: auto;
    min-width: 100%;
  }

  #expert-pool .experts-carousel {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  @supports (-webkit-overflow-scrolling: touch) {
    #expert-pool .experts-teaser-grid {
      display: inline-flex;
    }

    #expert-pool .experts-carousel {
      overflow-x: scroll;
    }
  }

  #expert-pool .experts-carousel {
    scrollbar-width: none;
  }

  #expert-pool .experts-carousel::-webkit-scrollbar {
    display: none;
  }

  .experts-carousel-controls {
    justify-content: flex-start;
  }
}

/* --------------------------------------------
   12. COOKIE CONSENT BANNER
-------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(11, 20, 18, 0.12);
  box-shadow: 0 -8px 32px rgba(11, 20, 18, 0.15);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.is-visible {
  transform: translateY(0);
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text strong {
  display: block;
  font-size: 1.1rem;
  font-family: var(--font-display);
  color: var(--neutral-900);
  margin-bottom: 6px;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.92rem;
  color: #4f6b62;
  line-height: 1.55;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  min-width: 120px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  color: #fff;
  box-shadow: var(--shadow-medium);
}

.cookie-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.cookie-btn-secondary {
  background: rgba(11, 20, 18, 0.06);
  color: var(--neutral-900);
  border-color: rgba(11, 20, 18, 0.16);
}

.cookie-btn-secondary:hover {
  background: rgba(11, 20, 18, 0.12);
  border-color: rgba(11, 20, 18, 0.24);
}

.cookie-link {
  color: var(--brand-accent);
  text-decoration: underline;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 8px;
}

.cookie-link:hover {
  color: #1359a8;
}

html[data-theme="dark"] .cookie-consent-banner {
  background: linear-gradient(180deg, rgba(17, 29, 26, 0.98), rgba(15, 25, 22, 0.96));
  border-top-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .cookie-consent-text strong {
  color: var(--neutral-900);
}

html[data-theme="dark"] .cookie-consent-text p {
  color: #c8d2ce;
}

html[data-theme="dark"] .cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7f4;
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

html[data-theme="dark"] .cookie-link {
  color: #7bb5ff;
}

html[data-theme="dark"] .cookie-link:hover {
  color: #9ac7ff;
}

@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-consent-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-link {
    width: 100%;
    text-align: center;
  }
}

/* --------------------------------------------
   13. NEWSLETTER SECTION
-------------------------------------------- */
#newsletter {
  width: min(calc(100% - 48px), 1152px);
  background:
    radial-gradient(520px circle at 92% 8%, rgba(241, 185, 58, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(11, 111, 92, 0.1), rgba(31, 122, 224, 0.09));
  border: 1px solid rgba(11, 20, 18, 0.08);
  border-radius: 24px;
  padding: clamp(34px, 4.5vw, 54px);
  margin: clamp(34px, 4vw, 56px) auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

#newsletter::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(241, 185, 58, 0.2), transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

#newsletter .newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

#newsletter h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

#newsletter .sub {
  margin: 0 auto 24px;
  max-width: 60ch;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(11, 20, 18, 0.16);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
}

.newsletter-form button {
  flex-shrink: 0;
  min-height: 50px;
  padding: 14px 28px;
  white-space: nowrap;
}

.newsletter-privacy {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #5a7068;
  text-align: center;
}

.newsletter-privacy a {
  color: var(--brand-accent);
  text-decoration: underline;
}

html[data-theme="dark"] #newsletter {
  background: linear-gradient(135deg, rgba(18, 160, 136, 0.18), rgba(68, 132, 255, 0.14));
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .newsletter-form input[type="email"] {
  background: rgba(17, 29, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f5f7f4;
}

html[data-theme="dark"] .newsletter-form input[type="email"]::placeholder {
  color: #b8c5c0;
}

html[data-theme="dark"] .newsletter-privacy {
  color: #c8d2ce;
}

html[data-theme="dark"] .newsletter-privacy a {
  color: #7bb5ff;
}

@media (max-width: 600px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
    min-width: 100%;
  }
}

