/********** Home page (index.html) ************/
/* Layout pattern: orange hero card with duotone photo and stat cards,
   overlapping rounded content panel, bento service cards.
   Everything is scoped to body.home so other pages are unaffected. */

.home {
  --fx-orange: #F47820;
  --fx-orange-deep: #E2531A;
  --fx-cream: #FBF3E6;
  --fx-ink: #1d120c;
  --fx-bg: #ffffff;
  --fx-panel: #ffffff;
  --fx-surface: #ffffff;
  --fx-text: #1d120c;
  --fx-muted: #6b5d55;
  --fx-line: rgba(29, 18, 12, .12);
  --fx-card-cream: #ffffff;
  --fx-gutter: clamp(8px, 1.6vw, 20px);
  --fx-font: 'Inter Tight', 'Rubik', sans-serif;
}

html[data-theme="dark"] .home {
  --fx-bg: #000000;
  --fx-panel: #170a05;
  --fx-surface: #22120b;
  --fx-text: #fbf3e6;
  --fx-muted: #c2ada0;
  --fx-line: rgba(244, 120, 32, .22);
  --fx-card-cream: var(--fx-cream);
}

html body.home {
  overflow-x: hidden;
  overflow-x: clip;
  background-color: var(--fx-bg);
  color: var(--fx-muted);
  font-family: var(--fx-font);
}

/* ---- Shared pieces ---- */
.home .fx-display {
  margin: 0;
  font-family: var(--fx-font);
  font-size: clamp(34px, 5.2vw, 72px);
  font-weight: 400 !important;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--fx-text);
}

.home .fx-display em { font-style: normal; color: var(--fx-orange); }

.home .fx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  font-size: 16px;
  color: var(--fx-text);
}

.home .fx-chip .fa { font-size: 9px; color: var(--fx-orange); }

.home .fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 20px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}

.home .fx-btn:hover { transform: translateY(-2px); text-decoration: none; }

.home .fx-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
}

.home .fx-arrow .fa { transform: rotate(-45deg); }

.home a.fx-btn-light { color: #fff; }
.home a.fx-btn-light .fx-arrow { background: #fff; color: var(--fx-orange); }
.home a.fx-btn-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.home a.fx-btn-orange { border-color: var(--fx-orange); background: var(--fx-orange); color: #fff; }
.home a.fx-btn-orange .fx-arrow { background: #fff; color: var(--fx-orange); }
.home a.fx-btn-orange:hover { background: var(--fx-orange-deep); border-color: var(--fx-orange-deep); color: #fff; }

.home a.fx-btn-outline { color: var(--fx-text); }
.home a.fx-btn-outline .fx-arrow { background: var(--fx-orange); color: #fff; }
.home a.fx-btn-outline:hover { color: var(--fx-orange); }

.home .fx-avatars { display: flex; }
.home .fx-avatars img,
.home .fx-avatars span {
  width: 38px;
  height: 38px;
  border: 2px solid var(--fx-orange);
  border-radius: 50%;
  object-fit: cover;
  background: #2a1810;
}
.home .fx-avatars > * + * { margin-left: -12px; }
.home .fx-avatars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fx-orange);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

/* Orange duotone for photos */
.home .fx-duo { position: relative; overflow: hidden; background: var(--fx-orange); }
.home .fx-duo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; transition: filter .5s; }
.home .fx-duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 170, 60, .25), rgba(120, 30, 0, .35)); mix-blend-mode: soft-light; pointer-events: none; }

/* ===================== HERO ===================== */
.home .fx-hero {
  position: relative;
  margin: var(--fx-gutter) var(--fx-gutter) 0;
  padding: 18px clamp(16px, 3vw, 36px) 110px;
  border-radius: 36px 36px 0 0;
  /* Same background as the site footer (.bg-footer) */
  background: #090979;
  background: radial-gradient(circle, rgba(9, 9, 121, 1) 0%, rgba(156, 0, 65, 1) 0%, rgba(9, 9, 121, 1) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.home .fx-hero-photo {
  position: absolute;
  right: 20%;
  bottom: 0;
  z-index: -1;
  height: 94%;
  width: auto;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: luminosity;
  opacity: .55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 75%, transparent 100%);
}

.home .fx-watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: -2;
  font-family: var(--fx-font);
  font-size: clamp(80px, 17vw, 260px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.05em;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, .08);
  pointer-events: none;
}

/* Nav: brand left, outlined pill centre, round social buttons right */
.home .fx-nav-wrap { position: relative; z-index: 20; }
.home .fx-nav-wrap .navbar { padding: 0 !important; }

.home .fx-nav-wrap .navbar-brand img:first-child { width: 210px; }
.home .fx-nav-wrap .gpw-logo { width: 20px; margin-left: 8px; }

.home .fx-nav-wrap .navbar-nav.fx-pill {
  margin: 0 auto;
  padding: 4px;
  border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
}

.home .fx-nav-wrap .navbar-light .navbar-nav .nav-link {
  padding: 8px 10px;
  border-radius: 999px;
  font-family: var(--fx-font);
  font-size: 13px;
  text-transform: none;
  color: #fff;
}

.home .fx-nav-wrap .navbar-light .navbar-nav .nav-link:hover,
.home .fx-nav-wrap .navbar-light .navbar-nav .nav-link:focus { color: #fff; background: rgba(255, 255, 255, .15); }

.home .fx-nav-wrap .navbar-light .navbar-nav .nav-link.active { background: var(--fx-cream); color: var(--fx-ink); }

.home .fx-nav-wrap .dropdown-menu {
  margin-top: 8px !important;
  padding: 8px;
  border: 0;
  border-radius: 16px !important;
  background: var(--fx-cream);
  box-shadow: 0 18px 40px rgba(60, 20, 0, .25);
}

.home .fx-nav-wrap .dropdown-item { border-radius: 10px; font-family: var(--fx-font); font-size: 14px; color: var(--fx-ink); }
.home .fx-nav-wrap .dropdown-item:hover,
.home .fx-nav-wrap .dropdown-item:focus { background: rgba(244, 120, 32, .14); color: var(--fx-orange-deep); }

.home .fx-social { display: flex; gap: 8px; }
.home .fx-social { margin-left: 12px; }
@media (max-width: 1399.98px) { .home .fx-nav-wrap .gpw-logo { display: none; } }

.home a.fx-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fx-cream);
  font-size: 15px;
  color: var(--fx-orange-deep);
  text-decoration: none;
  transition: transform .2s;
}

.home a.fx-social-btn:hover { transform: translateY(-2px); color: var(--fx-orange-deep); }

.home .fx-nav-wrap .navbar-toggler { width: auto; margin-left: auto; padding: 6px 10px; border-color: rgba(255, 255, 255, .6); }
.home .fx-nav-wrap .navbar-toggler-icon { filter: brightness(0) invert(1); }

@media (max-width: 991.98px) {
  .home .fx-nav-wrap .navbar { display: flex; flex-wrap: wrap; }
  .home .fx-nav-wrap .navbar-collapse { flex-basis: 100%; margin-top: 12px; padding: 10px; border-radius: 22px; background: rgba(60, 20, 0, .35); }
  .home .fx-nav-wrap .navbar-nav.fx-pill { margin: 0; border: 0; border-radius: 0; }
  .home .fx-social { margin: 10px 4px 4px; }
  .home .fx-nav-wrap .navbar-brand img:first-child { width: 175px; }
}

/* Hero content */
.home .fx-hero-grid {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 32px;
  margin-top: clamp(32px, 5vw, 60px);
}

.home .fx-hero-title {
  position: relative;
  max-width: 560px;
  margin: 0;
  font-family: var(--fx-font);
  font-size: clamp(40px, 5.6vw, 78px);
  font-weight: 400 !important;
  line-height: .95;
  letter-spacing: -.045em;
  color: #fff;
}

.home .fx-kicker {
  display: inline-block;
  margin-right: 10px;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0;
  vertical-align: .9em;
  color: rgba(255, 255, 255, .85);
}

.home .fx-hero-sub { max-width: 430px; margin: 18px 0 22px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .92); }

.home .fx-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(36px, 6vw, 80px); }

.home .fx-stat {
  display: flex;
  flex-direction: column;
  width: 190px;
  min-height: 150px;
  padding: 16px;
  border-radius: 16px;
}

.home .fx-stat-num { font-size: 36px; font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.home .fx-stat-label { margin-top: 4px; font-size: 13px; }
.home .fx-stat p { margin: auto 0 0; font-size: 11.5px; line-height: 1.35; }

.home .fx-stat-solid { background: var(--fx-cream); color: var(--fx-ink); }
.home .fx-stat-solid p { color: #7a6a60; }

.home .fx-stat-glass {
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  color: #fff;
}

.home .fx-stat-glass p { color: rgba(255, 255, 255, .85); }

.home .fx-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }

.home .fx-proof { display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 1.2; text-align: right; }

.home .fx-profile {
  width: 100%;
  padding: 12px;
  border-radius: 20px;
  background: var(--fx-cream);
  color: var(--fx-ink);
  text-align: center;
}

.home .fx-profile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.home .fx-profile-top img { height: 22px; width: auto; }
.home .fx-profile-top .fx-chip { padding: 2px 9px; border-color: rgba(29, 18, 12, .15); font-size: 10px; color: var(--fx-ink); }
.home .fx-profile-top .fx-chip .fa { font-size: 7px; color: #2bb24c; }

.home .fx-profile-photo { overflow: hidden; aspect-ratio: 1.05; border-radius: 14px; }
.home .fx-profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.home .fx-profile-name { margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.2; }
.home .fx-profile-role { font-size: 13px; }
.home .fx-profile p { margin: 8px 0 12px; font-size: 11.5px; line-height: 1.35; color: #7a6a60; }
.home .fx-profile a.fx-btn { justify-content: space-between; width: 100%; }

@media (max-width: 991.98px) {
  .home .fx-hero { padding-bottom: 90px; }
  .home .fx-hero-grid { grid-template-columns: 1fr; }
  .home .fx-hero-photo { right: -10%; height: 60%; opacity: .55; }
  .home .fx-hero-side { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; }
  .home .fx-profile { max-width: 280px; }
  .home .fx-proof { order: 2; text-align: left; }
}

/* ===================== CONTENT PANEL ===================== */
.home .fx-panel {
  position: relative;
  z-index: 2;
  margin: -64px var(--fx-gutter) 0;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 36px) clamp(40px, 5vw, 64px);
  /* border: 1px solid var(--fx-line); */
  border-radius: 36px;
  background: var(--fx-panel);
}

.home .fx-section + .fx-section { margin-top: clamp(64px, 8vw, 110px); }

.home .fx-section-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.home .fx-section-top img { height: 22px; width: auto; }

/* About */
.home .fx-about-title { max-width: 820px; margin-bottom: clamp(28px, 4vw, 44px); }

.home .fx-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(20px, 4vw, 80px);
}

.home .fx-media {
  overflow: hidden;
  border-radius: 20px;
  background: var(--fx-surface);
}

.home .fx-media video { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; }

.home .fx-about-right { display: flex; flex-direction: column; gap: 32px; }

.home .fx-lead-lg {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--fx-text);
}

.home .fx-about-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.home .fx-about-row p { max-width: 380px; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--fx-muted); }

.home .fx-about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }

.home .fx-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 18px;
  border-radius: 16px;
}

.home .fx-card-cream { border: 1px solid var(--fx-line); background: var(--fx-card-cream); color: var(--fx-ink); }
.home .fx-card-num { font-size: 50px; line-height: 1; letter-spacing: -.04em; }
.home .fx-card-label { margin-top: 4px; font-size: 14px; }
.home .fx-card small { margin-top: 4px; font-size: 11.5px; color: #7a6a60; }

.home .fx-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0; }
.home .fx-logos img { height: 30px; width: auto; }
.home .fx-card a.fx-btn { align-self: flex-start; margin-top: auto; }

.home .fx-card-photo { position: relative; padding: 0; overflow: hidden; color: #fff; }
.home .fx-card-photo .fx-duo { position: absolute; inset: 0; }
.home .fx-card-photo-text { position: relative; z-index: 1; margin-top: auto; padding: 18px; background: linear-gradient(0deg, rgba(40, 10, 0, .7), rgba(40, 10, 0, 0)); }
.home .fx-card-photo-text small { color: rgba(255, 255, 255, .85); }

@media (max-width: 991.98px) {
  .home .fx-about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .home .fx-about-cards { grid-template-columns: 1fr; }
  .home .fx-about-row { flex-direction: column; align-items: flex-start; }
}

/* Services bento */
.home .fx-services-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.home .fx-services-head .fx-display { max-width: 640px; text-align: right; }

.home .fx-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 10px;
}

.home a.fx-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform .25s;
}

.home a.fx-tile:hover { transform: translateY(-4px); text-decoration: none; }

.home .fx-tile h3 {
  max-width: 80%;
  margin: 0;
  font-family: var(--fx-font);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400 !important;
  line-height: .95;
  letter-spacing: -.04em;
}

.home .fx-tile p { margin: auto 0 0; font-size: 12.5px; line-height: 1.35; }
.home .fx-tile .fx-arrow { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; font-size: 11px; }

.home a.fx-tile-cream { border: 1px solid var(--fx-line); background: var(--fx-card-cream); }
.home a.fx-tile-cream h3 { color: var(--fx-ink); }
.home a.fx-tile-cream p { color: #7a6a60; }
.home a.fx-tile-cream .fx-arrow { background: var(--fx-ink); color: #fff; }

.home a.fx-tile-orange { background: linear-gradient(160deg, #F47820, #E2531A); }
.home a.fx-tile-orange h3 { color: #fff; }
.home a.fx-tile-orange p { color: rgba(255, 255, 255, .88); }
.home a.fx-tile-orange .fx-arrow { border: 1.5px solid #fff; color: #fff; }

.home .fx-tile-note { display: flex; align-items: center; justify-content: center; padding: 18px; font-size: 16px; line-height: 1.25; color: var(--fx-text); }
.home .fx-tile-text { grid-column: span 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 0 18px 4px 0; }
.home .fx-tile-text a.fx-btn { align-self: flex-start; }
.home .fx-tile-text p { max-width: 380px; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--fx-muted); }

@media (max-width: 991.98px) {
  .home .fx-bento { grid-template-columns: repeat(2, 1fr); }
  .home .fx-services-head .fx-display { text-align: left; }
  .home .fx-tile-note { display: none; }
}

@media (max-width: 575.98px) {
  .home .fx-bento { grid-template-columns: 1fr; grid-auto-rows: minmax(190px, auto); }
  .home .fx-tile-text { grid-column: auto; }
}

/* Capabilities */
.home .fx-cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.home .fx-cap {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  background: var(--fx-surface);
  transition: border-color .25s, transform .25s;
}

.home .fx-cap:hover { border-color: var(--fx-orange); transform: translateY(-4px); }
.home .fx-cap-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.home .fx-cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fx-orange);
  font-size: 17px;
  color: #fff;
}

.home .fx-cap-num { font-size: 12px; color: var(--fx-muted); }

.home .fx-cap h3 {
  margin: 0 0 10px;
  font-family: var(--fx-font);
  font-size: 26px;
  font-weight: 500 !important;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--fx-text);
}

.home .fx-cap p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--fx-muted); }
.home .fx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.home .fx-chips li { padding: 3px 9px; border: 1px solid var(--fx-line); border-radius: 999px; font-size: 11px; color: var(--fx-muted); }

@media (max-width: 1199.98px) { .home .fx-cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .home .fx-cap-grid { grid-template-columns: 1fr; } }

/* Leadership */
.home .fx-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.home .fx-leader { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 16px; }
.home .fx-leader .fx-duo { position: absolute; inset: 0; }
.home .fx-leader .fx-duo img { object-position: top; }
.home .fx-leader:hover .fx-duo img { filter: none; mix-blend-mode: normal; }

.home .fx-leader-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 40px 16px 16px;
  background: linear-gradient(0deg, rgba(30, 8, 0, .85), rgba(30, 8, 0, 0));
  color: #fff;
}

.home .fx-leader-name { font-size: 18px; line-height: 1.15; letter-spacing: -.02em; }
.home .fx-leader-role { margin-top: 2px; font-size: 12.5px; color: rgba(255, 255, 255, .85); }

.home a.fx-leader-in {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fx-cream);
  color: var(--fx-orange-deep);
  text-decoration: none;
}

.home a.fx-leader-in:hover { background: #fff; color: var(--fx-orange-deep); }

@media (max-width: 991.98px) { .home .fx-team-grid { grid-template-columns: repeat(2, 1fr); } }

/* Experts */
.home .fx-quote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.home .fx-quote {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  background: var(--fx-card-cream);
  color: var(--fx-ink);
}

.home .fx-quote-head { display: flex; align-items: center; gap: 10px; }
.home .fx-quote-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #ece2d6; }
.home .fx-quote-name { font-size: 18px; font-weight: 600; line-height: 1.25; }
.home .fx-quote-role { font-size: 11.5px; line-height: 1.35; color: #7a6a60; }
.home .fx-quote .fa-quote-right { font-size: 20px; color: var(--fx-orange); }
.home .fx-quote p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #5d4f47; }

@media (max-width: 1199.98px) { .home .fx-quote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .home .fx-quote-grid { grid-template-columns: 1fr; } }

.home .fx-heading-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 14px 0 28px; }
.home .fx-heading-row p { max-width: 420px; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--fx-muted); }

/* Contact */
.home .fx-contact {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 24px;
  background: linear-gradient(150deg, #F47820 0%, #E2531A 60%, #B5380E 100%);
  color: #fff;
}

.home .fx-contact .fx-display { color: #fff; }
.home .fx-contact .fx-display em { color: var(--fx-ink); }

.home .fx-contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: end; }
.home .fx-contact-grid > div > p { max-width: 460px; margin: 16px 0 22px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.home .fx-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.home a.fx-btn-cream { border-color: var(--fx-cream); background: var(--fx-cream); color: var(--fx-ink); }
.home a.fx-btn-cream .fx-arrow { background: var(--fx-orange); color: #fff; }
.home a.fx-btn-cream:hover { background: #fff; color: var(--fx-ink); }

.home .fx-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home .fx-office { padding: 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 16px; background: rgba(255, 255, 255, .1); }
.home .fx-office-kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.home .fx-office-name { margin: 6px 0; font-size: 14px; font-weight: 600; line-height: 1.25; }
.home .fx-office p { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .9); }

.home .fx-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.home .fx-map { overflow: hidden; height: 300px; border-radius: 16px; background: rgba(0, 0, 0, .15); }
.home .fx-map iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 767.98px) {
  .home .fx-contact-grid, .home .fx-offices, .home .fx-maps { grid-template-columns: 1fr; }
  .home .fx-map { height: 240px; }
}

/* ===================== FOOTER (shape only; colours follow theme.css) ===================== */
.home .fx-footer-space { height: var(--fx-gutter); }
.home .bg-footer { margin: 0 var(--fx-gutter); border: 0; border-radius: 36px 36px 0 0; }
html[data-theme="dark"] body.home .bg-footer { background: #170a05; border: 1px solid rgba(244, 120, 32, .22); border-bottom: 0; }

/* Tighter nav between tablet and small-laptop widths */
@media (min-width: 992px) and (max-width: 1279.98px) {
  .home .fx-nav-wrap .navbar-brand img:first-child { width: 165px; }
  .home .fx-nav-wrap .navbar-light .navbar-nav .nav-link { padding: 8px 7px; font-size: 12px; }
  .home .fx-social { gap: 6px; margin-left: 8px; }
  .home a.fx-social-btn { width: 32px; height: 32px; font-size: 13px; }
}

/* Not enough room for the social buttons; email and phone stay on the profile card */
@media (min-width: 992px) and (max-width: 1099.98px) {
  .home .fx-social { display: none; }
}

/* Centred page frame: hero, panel and footer share one max width */
.home .fx-hero,
.home .fx-panel,
.home .bg-footer {
  width: auto;
  max-width: 1400px;
}

@media (min-width: 1440px) {
  .home .fx-hero { margin-left: auto; margin-right: auto; }
  .home .fx-panel { margin-left: auto; margin-right: auto; }
  .home .bg-footer { margin-left: auto !important; margin-right: auto !important; }
  .home .fx-footer-bottom { max-width: 1400px; margin-left: auto; margin-right: auto; }
}

/* Footer strip sits on the black page background in both themes */
.home .fx-footer-bottom .bold-text,
.home .fx-footer-bottom .bold-text a { color: #f3f3f6 !important; }
.home .fx-footer-bottom .logo-light { display: none !important; }
.home .fx-footer-bottom .logo-dark { display: inline-block !important; }
.home .fx-footer-bottom .btn-dark { background: #1c1c22; border-color: #2c2c34; }

/* Leadership photos: natural colour, no orange duotone */
.home .fx-leader .fx-duo { background: #e9e6ef; }
.home .fx-leader .fx-duo::after { display: none; }
.home .fx-leader .fx-duo img { filter: none; mix-blend-mode: normal; transition: transform .5s; }
.home .fx-leader:hover .fx-duo img { transform: scale(1.04); }

/* Global offices card photo: natural colour, no orange duotone */
.home .fx-card-photo .fx-duo { background: #2a2420; }
.home .fx-card-photo .fx-duo::after { display: none; }
.home .fx-card-photo .fx-duo img { filter: none; mix-blend-mode: normal; }

/* Footer card: round all four corners */
.home .bg-footer { border-radius: 36px; }
html[data-theme="dark"] body.home .bg-footer { border-bottom: 1px solid rgba(244, 120, 32, .22); }

/* About video: show the whole frame at its own aspect ratio (no cropping) */
.home .fx-media { align-self: start; }
.home .fx-media video { height: auto; min-height: 0; aspect-ratio: auto; object-fit: contain; }


/* Header banner background image (human + robot hands) */
.home .fx-hero {
  background:
    linear-gradient(90deg, rgba(9, 9, 60, .88) 0%, rgba(9, 9, 60, .55) 38%, rgba(9, 9, 60, .1) 70%, rgba(9, 9, 60, .35) 100%),
    url(../img/activeminds_techv2.png) center / cover no-repeat,
    #090979;
}

@media (max-width: 991.98px) {
  .home .fx-hero {
    background:
      linear-gradient(180deg, rgba(9, 9, 60, .85) 0%, rgba(9, 9, 60, .6) 55%, rgba(9, 9, 60, .85) 100%),
      url(../img/activeminds_techv2.png) 60% center / cover no-repeat,
      #090979;
  }
}

/* Footer: no background, sits on the black page */
html body.home .bg-footer,
html[data-theme="dark"] body.home .bg-footer {
  background: transparent;
  border: 0;
}

/* Footer quick links: five evenly spread columns */
.home .fx-footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}
.home .fx-footer-links h5 { margin-bottom: 14px; font-size: 18px; color: #fff !important; }
.home .fx-footer-links a { display: block; margin-bottom: 8px; font-size: 14px; line-height: 1.4; }
.home .fx-footer-links a:hover { color: var(--fx-orange) !important; text-decoration: none; }
@media (max-width: 991.98px) { .home .fx-footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .home .fx-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* Light theme: footer sits on the white page, so use black text */
html:not([data-theme="dark"]) body.home .bg-footer .text-white,
html:not([data-theme="dark"]) body.home .fx-footer-links h5,
html:not([data-theme="dark"]) body.home .fx-footer-links a,
html:not([data-theme="dark"]) body.home .fx-footer-links a i,
html:not([data-theme="dark"]) body.home .fx-footer-bottom .bold-text,
html:not([data-theme="dark"]) body.home .fx-footer-bottom .bold-text a { color: #111111 !important; }
html:not([data-theme="dark"]) body.home .fx-footer-links a:hover,
html:not([data-theme="dark"]) body.home .fx-footer-links a:hover i { color: var(--fx-orange) !important; }
html:not([data-theme="dark"]) body.home .fx-footer-bottom .logo-light { display: inline-block !important; }
html:not([data-theme="dark"]) body.home .fx-footer-bottom .logo-dark { display: none !important; }
html:not([data-theme="dark"]) body.home .fx-footer-bottom .btn-dark { background: #222429; border-color: #222429; }


/* Full width: no side gaps or max-width on the banner, panel and footer */
.home .fx-hero,
.home .fx-panel,
.home .bg-footer,
.home .fx-footer-bottom {
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* No gap above the header banner */
.home .fx-hero { margin-top: 0; }
.home .fx-hero { border-top-left-radius: 0; border-top-right-radius: 0; }

/* Smooth desktop submenus: fade/slide in, and an invisible bridge over the gap */
@media (min-width: 992px) {
  .home .fx-nav-wrap .dropdown-menu {
    display: block;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .home .fx-nav-wrap .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
  .home .fx-nav-wrap .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
  }
}

/* Hide the hero side column (GPTW line and CEO profile card) */
.home .fx-hero-side { display: none; }
.home .fx-hero-grid { grid-template-columns: 1fr; }


/* Slightly larger Great Place to Work badge in the header */
.home .fx-nav-wrap .gpw-logo { width: 36px; }

/* Bigger header logo and Great Place to Work badge on wide screens */
@media (min-width: 1280px) {
  .home .fx-nav-wrap .navbar-brand img:first-child { width: 240px; }
  .home .fx-nav-wrap .gpw-logo { width: 42px; }
}



/* Contact card: header banner colour only (no image) */
.home .fx-contact {
  background: #090979;
  background: radial-gradient(circle, rgba(9, 9, 121, 1) 0%, rgba(156, 0, 65, 1) 0%, rgba(9, 9, 121, 1) 100%);
}
.home .fx-contact .fx-display em { color: var(--fx-orange); }




/* White box behind the header logo: square top corners flush with the top edge, rounded bottom corners */
.home .fx-nav-wrap .navbar-brand {
  display: flex;
  align-items: center;
  margin-top: -18px;
  padding: 22px 22px 16px;
  border-radius: 0 0 22px 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(10, 8, 40, .18);
}

@media (max-width: 991.98px) {
  .home .fx-nav-wrap .navbar-brand { padding: 16px 16px 12px; border-radius: 0 0 18px 18px; }
}
