@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin-400-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin-500-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin-600-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin-700-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/plus-jakarta-sans-latin-800-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin-400-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin-500-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin-700-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/libre-caslon-text-latin-400-normal.woff2")
    format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/libre-caslon-text-latin-700-normal.woff2")
    format("woff2");
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: #f4f6fa;
  color: #131c29;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
.cta {
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.cta:hover {
  transform: translateY(-1px);
  background: #f0bd00;
}
.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.chip:hover {
  border-color: #326bb3;
}
.tab:hover {
  background: #ffffff;
}
.lift {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(19, 28, 41, 0.12);
}
.logo {
  filter: grayscale(1);
  opacity: 0.62;
  transition:
    filter 0.2s,
    opacity 0.2s;
}
.logo:hover {
  filter: none;
  opacity: 1;
}
.zoom img {
  transition: transform 0.5s ease;
}
.zoom:hover img {
  transform: scale(1.04);
}
@keyframes sail {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}
@keyframes pulse {
  0% {
    r: 6;
    opacity: 0.7;
  }
  100% {
    r: 18;
    opacity: 0;
  }
}
@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(-1.2deg);
  }
  50% {
    transform: translateY(-8px) rotate(-1.2deg);
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.ship {
  offset-path: path(
    "M115,240 C160,200 190,175 230,165 S330,140 370,150 S420,215 440,250 S475,285 490,300 C420,365 250,345 115,240"
  );
  animation: sail 14s linear infinite;
  offset-rotate: auto;
}
.ping {
  animation: pulse 2.4s ease-out infinite;
}
.float {
  animation: drift 7s ease-in-out infinite;
}
.bar {
  transform-origin: left;
  animation: grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.rowx {
  transition:
    background 0.25s ease,
    opacity 0.25s ease;
}
.rowx:hover {
  opacity: 1 !important;
}
.cam {
  transition: transform 1.1s cubic-bezier(0.45, 0.05, 0.2, 1);
}
.fade {
  transition:
    opacity 0.5s ease,
    fill 0.6s ease,
    stroke 0.6s ease;
}
.draw {
  transition:
    stroke-dashoffset 1.4s ease,
    stroke 0.6s ease,
    stroke-width 0.6s ease;
}
.lbl {
  transition:
    font-size 0.9s ease,
    fill 0.6s ease;
}
.dot {
  transition:
    r 0.9s ease,
    fill 0.6s ease,
    stroke 0.6s ease;
}
g.fade path {
  vector-effect: non-scaling-stroke;
}
.list::-webkit-scrollbar {
  width: 8px;
}
g.fade path {
  vector-effect: non-scaling-stroke;
}
.list::-webkit-scrollbar-thumb {
  background: #d7dee8;
  border-radius: 8px;
}
input,
select,
textarea {
  font-family: inherit;
}

/* Hero gradient: keep the original look but avoid a hard split between left panel and map. */
#hero {
  background: linear-gradient(
    90deg,
    #101b2c 0%,
    #131c29 34%,
    #132033 52%,
    #12233a 68%,
    #102338 100%
  );
}
#hero .hero-map {
  width: min(56vw, 980px) !important;
  right: 0;
  filter: saturate(1.03) brightness(0.98);
}
#hero .hero-blend {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(19, 28, 41, 1) 0%,
      rgba(19, 28, 41, 1) 24%,
      rgba(19, 28, 41, 0.96) 33%,
      rgba(19, 28, 41, 0.88) 43%,
      rgba(19, 28, 41, 0.7) 53%,
      rgba(19, 28, 41, 0.48) 62%,
      rgba(19, 28, 41, 0.24) 72%,
      rgba(19, 28, 41, 0.1) 82%,
      rgba(19, 28, 41, 0) 100%
    ),
    radial-gradient(
      circle at 36% 50%,
      rgba(19, 28, 41, 0.3) 0%,
      rgba(19, 28, 41, 0.18) 20%,
      rgba(19, 28, 41, 0) 42%
    );
  pointer-events: none;
}
#hero .hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(
    180deg,
    rgba(19, 28, 41, 0) 0%,
    rgba(19, 28, 41, 0.55) 46%,
    #131c29 100%
  );
  pointer-events: none;
}
#hero .hero-header {
  background: linear-gradient(
    90deg,
    rgba(19, 28, 41, 0.72) 0%,
    rgba(19, 28, 41, 0.46) 35%,
    rgba(19, 28, 41, 0.18) 62%,
    rgba(19, 28, 41, 0.04) 82%,
    rgba(19, 28, 41, 0) 100%
  );
  backdrop-filter: saturate(115%);
}
#hero .hero-content {
  z-index: 1;
}
@media (max-width: 700px) {
  #hero .hero-map {
    width: 100% !important;
    opacity: 0.92;
  }
  #hero .hero-blend {
    background: linear-gradient(
      180deg,
      rgba(19, 28, 41, 0.94) 0%,
      rgba(19, 28, 41, 0.88) 18%,
      rgba(19, 28, 41, 0.74) 34%,
      rgba(19, 28, 41, 0.48) 52%,
      rgba(19, 28, 41, 0.14) 72%,
      rgba(19, 28, 41, 0) 100%
    );
  }
}

/* Responsive-only adaptations: original desktop design values retained. */
@media (max-width: 1100px) {
  section,
  footer {
    max-width: 100%;
  }
  section[id],
  footer {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }
  header {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }
  nav {
    gap: 12px !important;
  }
  h1 {
    font-size: clamp(42px, 6vw, 80px) !important;
  }
  h2 {
    font-size: clamp(30px, 4vw, 50px) !important;
  }
  .hero-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #hero .hero-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }
  header {
    gap: 12px !important;
  }
  header nav {
    display: none !important;
  }
  header img {
    max-width: 135px;
    height: auto !important;
  }
  section {
    height: auto !important;
    min-height: 0 !important;
  }
  section:first-child {
    min-height: 650px !important;
  }
  section:first-child > div[style*="padding: 150px"] {
    padding: 120px 6% 75px !important;
  }
  section[id],
  footer {
    padding: 48px 6% !important;
  }
  section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  section [style*="grid-template-columns: repeat(6"] {
    grid-template-columns: repeat(3, 1fr) !important;
    height: auto !important;
    gap: 20px !important;
  }
  section [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  section [style*="padding: 0 160px"] {
    padding-left: 6% !important;
    padding-right: 6% !important;
  }
  section [style*="padding: 0 80px"] {
    padding-left: 6% !important;
    padding-right: 6% !important;
  }
  section [style*="width: 800px"] {
    max-width: 100% !important;
  }
  section [style*="height: 760px"] {
    height: auto !important;
  }
  section img {
    max-width: 100%;
  }
  footer {
    grid-template-columns: 1fr !important;
  }
  form {
    padding: 25px 20px !important;
  }
  form [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  #hero .hero-header {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }
}

/* Interactive journey: preserve the original two-panel layout at desktop widths. */
@media (min-width: 701px) and (max-width: 1100px) {
  #how {
    padding: 0 !important;
    grid-template-columns: minmax(380px, 55.555%) minmax(0, 1fr) !important;
  }
  #how h2 {
    font-size: clamp(28px, 3.5vw, 42px) !important;
  }
}
@media (max-width: 700px) {
  #how {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }
  #how > div:first-child {
    height: 530px;
    flex: none;
  }
  #how > div:nth-child(2) {
    height: 680px;
    flex: none;
  }
  #how > div:nth-child(2) > div:first-child {
    padding: 24px !important;
  }
  #how .list {
    min-height: 330px;
  }
  #how .rowx {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    padding: 18px 14px !important;
  }
  #how .rowx span[style*="font-size: 23px"] {
    font-size: 18px !important;
  }
  #how [style*="right: 20px; top: 20px; width: 264px"] {
    right: 8px !important;
    top: 70px !important;
    width: 210px !important;
  }
  #how [style*="left: 20px; bottom: 20px; width: 260px"] {
    width: 210px !important;
  }
  #how svg[viewBox="0 0 800 860"] {
    max-width: none !important;
  }
}

/* Back to Top: isolated control, without modifying the reference layout. */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: #131c29;
  color: #fff;
  box-shadow: 0 8px 25px rgba(19, 28, 41, 0.2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
}
#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: #326bb3;
}
#back-to-top:focus-visible {
  outline: 3px solid #ffc900;
  outline-offset: 3px;
}
#back-to-top span:first-child {
  font-size: 19px;
  line-height: 0.8;
}
@media (max-width: 700px) {
  #back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #back-to-top {
    transition: none;
  }
}

/* The Mapifly Blueprint — fully editable HTML, CSS and inline SVG. */
#blueprint {
  background: #131c29;
  color: #fff;
  padding: 20px 80px 22px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  overflow: hidden;
}
#blueprint * {
  box-sizing: border-box;
}
#blueprint .blueprint-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 52px;
}
#blueprint .bp-eyebrow {
  font:
    500 12px/1.4 "JetBrains Mono",
    monospace;
  letter-spacing: 0.21em;
  color: #a8c8f8;
  margin: 0 0 22px;
}
#blueprint h2 {
  font-size: clamp(43px, 5.7vw, 70px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.055em;
  margin: 0;
}
#blueprint h2 span {
  color: #ffc900;
}
#blueprint .blueprint-description {
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  margin: 42px 0 0;
  max-width: 400px;
  color: #f3f5fb;
}
#blueprint .bp-frame {
  border: 1px solid #34404e;
  border-radius: 6px;
  overflow: hidden;
}
#blueprint .bp-frame-caption {
  padding: 33px 36px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font:
    400 10px/1.5 "JetBrains Mono",
    monospace;
  letter-spacing: 0.19em;
  color: #9ab1d9;
}
#blueprint .bp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 0 36px 36px;
}
#blueprint .bp-step {
  min-width: 0;
}
#blueprint .bp-progress {
  display: flex;
  align-items: center;
  height: 21px;
  margin-bottom: 15px;
}
#blueprint .bp-progress:after {
  content: "";
  height: 1px;
  flex: 1;
  margin-left: 12px;
  border-top: 1px dashed #34404e;
}
#blueprint .bp-step:last-child .bp-progress:after {
  display: none;
}
#blueprint .bp-dot {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffc900;
  box-shadow: 0 0 0 5px rgba(255, 201, 0, 0.16);
}
#blueprint .bp-step-label {
  font:
    700 12px/1.4 "JetBrains Mono",
    monospace;
  letter-spacing: 0.1em;
  color: #ffc900;
  margin: 0 0 18px;
}
#blueprint .bp-visual {
  height: 178px;
  border-radius: 5px;
  margin-bottom: 24px;
  position: relative;
  color: #081426;
  font-size: 12px;
  line-height: 1.3;
}
#blueprint .bp-collect,
#blueprint .bp-queue,
#blueprint .bp-deliver {
  background: #fff;
  padding: 12px;
}
#blueprint .bp-collect {
  overflow: hidden;
}
#blueprint .bp-chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e8ebef;
}
#blueprint .bp-chip-row span {
  background: #eef1f5;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  white-space: nowrap;
}
#blueprint .bp-stop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  border-bottom: 1px solid #e8ebef;
  font-weight: 600;
  font-size: 12px;
}
#blueprint .bp-stop small {
  font:
    400 10px "JetBrains Mono",
    monospace;
  color: #53617c;
  white-space: nowrap;
}
#blueprint .bp-stop .bp-depart {
  background: #fff1c4;
  color: #876b00;
  padding: 5px 6px;
  border-radius: 2px;
}
#blueprint .bp-queue {
  overflow: visible;
}
#blueprint .bp-queue-caption {
  font:
    400 9px "JetBrains Mono",
    monospace;
  letter-spacing: 0.16em;
  color: #627194;
  margin: 2px 0 8px;
}
#blueprint .bp-queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #edf1f5;
  padding: 8px 10px;
  border-radius: 3px;
  margin: 5px 0;
  min-height: 31px;
}
#blueprint .bp-queue-item strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  flex: 1;
}
#blueprint .bp-queue-item small {
  font:
    400 9px/1.2 "JetBrains Mono",
    monospace;
  color: #68799c;
  text-align: right;
  width: 60px;
  flex: none;
}
#blueprint .bp-queue-index {
  font:
    400 10px "JetBrains Mono",
    monospace;
  color: #7382a2;
}
#blueprint .bp-queue-first {
  background: #131c29;
  color: white;
}
#blueprint .bp-queue-first small {
  color: #fff;
}
#blueprint .bp-queue-first .bp-queue-index {
  color: #ffc900;
}
#blueprint .bp-map {
  background: #efeadf;
  overflow: hidden;
}
#blueprint .bp-map.tanzania {
  background-image: url("../assets/compose.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: cover;
}
#blueprint .bp-map svg {
  width: 100%;
  height: 100%;
  display: block;
}
#blueprint .bp-style-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #131c29;
  border-radius: 2px;
  color: white;
  padding: 5px 8px;
  font:
    700 10px "JetBrains Mono",
    monospace;
  white-space: nowrap;
}
#blueprint .bp-deliver {
  overflow: hidden;
}
#blueprint .bp-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e9edf2;
}
#blueprint .bp-languages span {
  background: #eef1f5;
  padding: 4px 6px;
  border-radius: 2px;
  font:
    700 10px "JetBrains Mono",
    monospace;
  white-space: nowrap;
}
#blueprint .bp-languages .bp-active {
  background: #131c29;
  color: white;
}
#blueprint .bp-format {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  align-items: center;
  border-bottom: 1px solid #e7eaf0;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
#blueprint .bp-format small {
  font:
    400 10px "JetBrains Mono",
    monospace;
  color: #5b6b8d;
}
#blueprint .bp-step h3 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 0 0 10px;
  color: white;
}
#blueprint .bp-step > p:last-child {
  font-size: 14px;
  line-height: 1.62;
  margin: 0;
  color: #e6edfa;
}
#blueprint .bp-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #34404e;
}
#blueprint .bp-summary > div {
  padding: 26px 36px 29px;
  min-width: 0;
}
#blueprint .bp-summary > div + div {
  border-left: 1px solid #34404e;
}
#blueprint .bp-summary-label {
  font:
    500 10px/1.5 "JetBrains Mono",
    monospace;
  letter-spacing: 0.17em;
  color: #9bbcf1;
  margin: 0 0 11px;
}
#blueprint .bp-summary-label.bp-yellow {
  color: #ffc900;
}
#blueprint .bp-summary strong {
  display: block;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.025em;
  font-weight: 800;
}
@media (min-width: 1450px) {
  #blueprint {
    padding: 45px 80px 36px;
  }
  #blueprint .blueprint-intro {
    margin-bottom: 56px;
  }
  #blueprint .bp-visual {
    height: 195px;
  }
}
@media (max-width: 1000px) {
  #blueprint .bp-steps {
    gap: 16px;
    padding: 0 22px 28px;
  }
  #blueprint .bp-frame-caption {
    padding-left: 22px;
    padding-right: 22px;
  }
  #blueprint .bp-step h3 {
    font-size: 19px;
  }
  #blueprint .bp-visual {
    height: 178px;
  }
  #blueprint .bp-deliver {
    padding: 8px;
  }
  #blueprint .bp-format {
    font-size: 10px;
  }
  #blueprint .bp-format small {
    font-size: 8px;
  }
  #blueprint .bp-chip-row span {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  #blueprint {
    padding: 42px 6%;
  }
  #blueprint .blueprint-intro {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 32px;
  }
  #blueprint .blueprint-description {
    margin: 0;
    max-width: 620px;
  }
  #blueprint .bp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
  }
  #blueprint .bp-frame-caption {
    font-size: 9px;
  }
  #blueprint .bp-step h3 {
    font-size: 21px;
  }
  #blueprint .bp-summary > div {
    padding: 24px;
  }
  #blueprint .bp-summary strong {
    font-size: 15px;
  }
}
@media (max-width: 460px) {
  #blueprint .bp-steps {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px 28px;
  }
  #blueprint .bp-visual {
    height: 178px;
    max-width: 330px;
  }
  #blueprint .bp-frame-caption {
    padding: 23px 20px;
    gap: 12px;
    flex-wrap: wrap;
  }
  #blueprint .bp-summary {
    grid-template-columns: 1fr;
  }
  #blueprint .bp-summary > div + div {
    border-left: 0;
    border-top: 1px solid #34404e;
  }
  #blueprint .bp-step h3 {
    font-size: 23px;
  }
  #blueprint .bp-step > p:last-child {
    font-size: 15px;
  }
  #blueprint .bp-queue-item {
    max-width: 320px;
  }
}

@media (max-width: 700px) {
  #clients > div:nth-child(2) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
#back-to-top {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  gap: 0;
}

/* Consent UI: independent of all original page sections. */
[hidden] {
  display: none !important;
}
.cookie-consent {
  position: fixed;
  z-index: 3000;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 1160px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 24px;
  border-radius: 8px;
  background: #fff;
  color: #131c29;
  border: 1px solid #e2e7ee;
  box-shadow: 0 16px 65px rgba(0, 0, 0, 0.26);
}
.cookie-copy {
  flex: 1;
}
.cookie-copy h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}
.cookie-copy p {
  margin: 0;
  color: #45556b;
  font-size: 13px;
  line-height: 1.55;
}
.cookie-copy a {
  text-decoration: underline;
  color: #326bb3;
}
.cookie-actions,
.cookie-pref-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-actions button,
.cookie-pref-actions button {
  cursor: pointer;
  border: 1px solid #a6b3c4;
  border-radius: 4px;
  padding: 12px 14px;
  background: #fff;
  color: #131c29;
  font-weight: 700;
  font-size: 12px;
}
.cookie-actions #cookie-accept,
.cookie-pref-actions #cookie-save {
  background: #ffc900;
  border-color: #ffc900;
}
.cookie-preferences {
  position: fixed;
  z-index: 3001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 17, 29, 0.7);
}
.cookie-preferences-panel {
  background: #fff;
  border-radius: 8px;
  width: min(500px, 100%);
  padding: 28px;
  color: #131c29;
}
.cookie-preferences-panel h2 {
  font-size: 24px;
  margin: 0 0 8px;
}
.cookie-preferences-panel p {
  color: #55647a;
  font-size: 14px;
}
.cookie-preferences-panel label {
  display: block;
  padding: 15px 0;
  border-top: 1px solid #e2e7ee;
  font-weight: 700;
}
.cookie-preferences-panel label input {
  accent-color: #326bb3;
  margin-right: 10px;
}
.cookie-preferences-panel small {
  display: block;
  margin: 4px 0 0 27px;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
}
.cookie-pref-actions {
  justify-content: flex-end;
  margin-top: 18px;
}
.privacy-settings-footer {
  background: #131c29;
  text-align: center;
  padding: 0 12px 18px;
}
.privacy-settings-footer button {
  color: #b6c5d7;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
}
@media (max-width: 700px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: block;
    padding: 16px;
  }
  .cookie-actions {
    margin-top: 12px;
  }
  .cookie-actions button {
    flex: 1 1 42%;
  }
}

/* Editable, keyboard-accessible Northern Tanzania itinerary illustration */
.tanzania-map {
  width: 400px;
  max-width: 100%;
  aspect-ratio: 400/380;
  height: auto !important;
  position: relative;
  overflow: hidden;
  background: #efe9dc;
}
.tanzania-map svg {
  width: 100%;
  height: 100%;
  display: block;
}
.tanzania-map [data-stop] {
  cursor: pointer;
  transition:
    stroke-width 0.15s,
    fill 0.15s;
}
.tanzania-map [data-stop]:hover,
.tanzania-map [data-stop]:focus {
  stroke: #326bb3;
  stroke-width: 4;
  outline: none;
}
.tanzania-map .tanzania-selected {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #132136;
  font-size: 10px;
  line-height: 1.25;
  padding: 5px 7px;
  border-radius: 3px;
  max-width: 160px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.tanzania-map .tanzania-selected.is-visible {
  opacity: 1;
}

/* Responsive correction: keep the source GIF's natural proportions on every device.
   Fixed 400px image boxes previously produced inconsistent apparent scaling. */
#possibilities .map-output-visual {
  height: auto !important;
  max-width: 100%;
  overflow: hidden;
  background: #f4f6fa !important;
}
#possibilities .map-output-visual img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
}
#possibilities > div:nth-of-type(2) > div {
  min-width: 0;
}
@media (max-width: 700px) {
  #possibilities > div:nth-of-type(2) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 30px !important;
  }
  #possibilities > div:nth-of-type(2) > div {
    width: 100%;
    max-width: 100%;
  }
  #possibilities > div:last-child {
    flex-wrap: wrap;
  }
  #possibilities > div:last-child > div {
    margin-left: 0 !important;
    flex-wrap: wrap;
    gap: 12px !important;
  }
}

/* Responsive correction: production queue remains inside its own card,
   and Blueprint steps switch to a legible vertical layout on phones. */
#blueprint .bp-steps > * {
  min-width: 0;
  max-width: 100%;
}
#blueprint .bp-visual {
  max-width: 100%;
}
#blueprint .bp-queue {
  height: auto;
  min-height: 178px;
  overflow: hidden;
}
#blueprint .bp-queue-item {
  max-width: 100%;
  min-width: 0;
  gap: 6px;
}
#blueprint .bp-queue-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
#blueprint .bp-queue-item small {
  width: auto;
  max-width: 66px;
  flex: 0 0 auto;
  white-space: normal;
}
#blueprint .bp-step h3,
#blueprint .bp-step > p:last-child {
  overflow-wrap: break-word;
}
@media (min-width: 761px) and (max-width: 1200px) {
  #blueprint .bp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
  }
  #blueprint .bp-visual {
    min-height: 178px;
  }
}
@media (max-width: 640px) {
  #blueprint .bp-steps {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
    padding: 0 20px 28px !important;
  }
  #blueprint .bp-frame-caption {
    padding: 22px 20px;
    flex-wrap: wrap;
  }
  #blueprint .bp-summary {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #blueprint .bp-summary > div + div {
    border-left: 0;
    border-top: 1px solid #34404e;
  }
  #blueprint .bp-step {
    width: 100%;
  }
  #blueprint .bp-visual {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 178px;
  }
  #blueprint .bp-collect,
  #blueprint .bp-deliver {
    min-height: 178px;
  }
  #blueprint .bp-map {
    height: 200px;
    min-height: 0;
  }
  #blueprint .bp-queue {
    min-height: 178px;
  }
}

/* MapShaman project narrative */
#how {
  height: min(100svh, 900px) !important;
  min-height: 680px;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
}
#how > div:first-child {
  min-width: 0;
  min-height: 0;
  background: #d8e0e4 !important;
}
#how > div:first-child > svg,
#how > div:first-child > div:not(#mapshaman-canvas):not(.journey-map-overlay) {
  display: none !important;
}
#mapshaman-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #d8e0e4;
  touch-action: pan-y;
  transition:
    opacity 0.3s ease,
    filter 0.9s ease,
    background-color 0.9s ease;
}
#mapshaman-canvas.is-loading {
  opacity: 0.55;
}
#mapshaman-canvas .maplibregl-canvas {
  outline: 0;
}
.journey-map-overlay {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(310px, calc(100% - 40px));
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(19, 28, 41, 0.1);
  box-shadow: 0 10px 30px rgba(19, 28, 41, 0.13);
  pointer-events: none;
}
.journey-map-kicker,
.journey-map-mode,
#journey-map-status {
  font:
    700 10px/1.4 "JetBrains Mono",
    monospace;
  letter-spacing: 0.08em;
  color: #5a6678;
}
.journey-map-kicker {
  color: #326bb3;
}
.journey-map-overlay strong {
  font-size: 16px;
  line-height: 1.3;
}
#journey-map-mode {
  color: #8a97ab;
}
#journey-map-status {
  font-weight: 500;
  letter-spacing: 0;
}
#how > div:first-child > button {
  z-index: 4;
}
#how > div:nth-child(2) {
  min-width: 0;
  min-height: 0;
}
#how > div:nth-child(2) > div:first-child {
  padding: 34px 40px 22px !important;
  gap: 12px !important;
}
#how > div:nth-child(2) > div:first-child > div {
  gap: 28px !important;
}
#how > div:nth-child(2) > div:first-child h2 {
  font-size: clamp(30px, 3.2vw, 42px) !important;
}
#how .list {
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
#how .rowx {
  grid-template-columns: 66px minmax(0, 1fr) auto !important;
  padding: 24px 36px 24px 30px !important;
  min-height: 180px;
}
#how .rowx[aria-current="step"] {
  background: #f4f6fa !important;
  border-left-color: #ffc900 !important;
  opacity: 1 !important;
}
#how .how-end-note {
  height: 180px !important;
}
@media (min-width: 701px) and (max-width: 1100px) {
  #how {
    grid-template-columns: minmax(0, 55.555%) minmax(0, 1fr) !important;
  }
  #how > div:nth-child(2) > div:first-child {
    padding: 28px 26px 20px !important;
  }
  #how .rowx {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    padding: 22px 24px !important;
  }
  #how .rowx > span:last-child {
    display: none;
  }
}
@media (max-width: 700px) {
  body > div:first-of-type {
    overflow: visible !important;
  }
  #how {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  #how > div:first-child {
    z-index: 5;
    flex: none;
    height: 50svh !important;
    min-height: 320px;
    max-height: 430px;
  }
  #how > div:nth-child(2) > div:first-child {
    padding: 28px 20px 22px !important;
  }
  #how > div:nth-child(2) > div:first-child > div {
    gap: 18px !important;
  }
  #how .list {
    display: block;
    flex: none;
    min-height: 0 !important;
    overflow: visible !important;
  }
  #how .rowx {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 10px;
    padding: 26px 18px !important;
    min-height: 220px;
  }
  #how .rowx > span:last-child {
    display: none;
  }
  #how .rowx span[style*="font-size: 23px"] {
    font-size: 20px !important;
  }
  #how .how-end-note {
    height: 90px !important;
    padding: 24px 20px !important;
  }
}

/* Client logos refreshed */
.logo-ak {
  max-width: 300px !important;
  max-height: 96px !important;
}
.logo-silversea {
  max-width: 240px !important;
  max-height: 50px !important;
}
#clients .logo.logo-crystal {
  max-width: 240px !important;
  max-height: 66px !important;
}

/* Possibilities gallery: rebalance the two visuals while preserving desktop composition. */
#possibilities .possibilities-gallery {
  align-items: start;
}
#possibilities .map-output-card {
  min-width: 0;
}
#possibilities .map-output-visual {
  background: #f4f6fa !important;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#possibilities .map-output-screen .map-output-visual {
  aspect-ratio: 1.08/1;
  min-height: 420px;
}
#possibilities .map-output-page .map-output-visual {
  aspect-ratio: 1.2/1;
  min-height: 420px;
}
#possibilities .map-output-screen-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.01);
}
#possibilities .map-output-page-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: center center;
  padding: 0;
}
#possibilities .map-output-card > div:last-child {
  min-height: 72px;
}
@media (max-width: 1100px) {
  #possibilities .map-output-screen .map-output-visual,
  #possibilities .map-output-page .map-output-visual {
    min-height: 360px;
  }
}
@media (max-width: 700px) {
  #possibilities .possibilities-gallery {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  #possibilities .map-output-screen .map-output-visual,
  #possibilities .map-output-page .map-output-visual {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
  }
  #possibilities .map-output-screen-img,
  #possibilities .map-output-page-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
    object-position: center center;
    transform: none;
  }
  #possibilities .map-output-card > div:last-child {
    min-height: 0;
  }
}

/* Normalize client logos to the original smaller visual scale */
#clients [style*="grid-template-columns: repeat(6"] {
  align-items: center;
}
#clients .logo {
  display: block;
  max-width: 140px !important;
  max-height: 50px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  justify-self: center;
  align-self: center;
}
#clients .logo-ak {
  max-width: 168px !important;
  max-height: 58px !important;
}
#clients .logo-silversea {
  max-width: 210px !important;
  max-height: 42px !important;
}
@media (max-width: 700px) {
  #clients .logo {
    max-width: 120px !important;
    max-height: 40px !important;
  }
  #clients .logo-ak {
    max-width: 150px !important;
    max-height: 52px !important;
  }
  #clients .logo-silversea {
    max-width: 170px !important;
    max-height: 34px !important;
  }
}

/* Desktop gallery alignment: both panels have the same visual height and caption baseline.
   The screen GIF has only been trimmed of its baked-in empty margins. */
@media (min-width: 701px) {
  #possibilities .possibilities-gallery {
    align-items: stretch !important;
  }
  #possibilities .map-output-card {
    display: grid !important;
    grid-template-rows: clamp(310px, 32vw, 500px) auto;
    align-content: start;
    gap: 18px !important;
    min-width: 0;
  }
  #possibilities .map-output-card .map-output-visual {
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f6fa !important;
  }
  #possibilities .map-output-screen-img,
  #possibilities .map-output-page-img {
    height: 100% !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    max-width: 100%;
  }
  #possibilities .map-output-card > div:last-child {
    min-height: 0 !important;
  }
}
@media (max-width: 700px) {
  #possibilities .map-output-card .map-output-visual {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }
  #possibilities .map-output-card img {
    display: block;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
  }
}

/* Mobile/tablet audit: scoped overrides, desktop layout stays unchanged. */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  background: rgba(19, 28, 41, 0.65);
  color: #fff;
  flex-shrink: 0;
}
.mobile-menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.mobile-menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 850px) {
  .site-nav-header,
  .policy-header-inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 72px;
    gap: 12px !important;
    padding: 0 5% !important;
    z-index: 50;
  }
  .site-nav-header {
    height: 72px !important;
  }
  .site-nav-header > img {
    height: 32px !important;
    max-width: 125px !important;
    object-fit: contain;
  }
  .mobile-menu-toggle {
    display: flex;
    order: 3;
    margin-left: 0;
  }
  .site-nav-header > .cta,
  .policy-header .policy-cta {
    margin-left: auto !important;
    font-size: 12px !important;
    padding: 0 12px !important;
    height: 42px !important;
    gap: 7px !important;
    order: 2;
  }
  .site-nav-header > .mobile-navigation,
  .policy-header .mobile-navigation {
    display: none !important;
    position: absolute !important;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px 5% 20px !important;
    margin: 0 !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: #131c29;
    color: #fff;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.3);
    z-index: 60;
    border-bottom: 1px solid #34404e;
  }
  .site-nav-header > .mobile-navigation.is-open,
  .policy-header .mobile-navigation.is-open {
    display: flex !important;
  }
  .mobile-navigation a {
    display: block !important;
    padding: 14px 8px !important;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .policy-header .mobile-menu-toggle {
    margin-left: auto;
    order: 3;
  }
  .policy-header .policy-cta {
    order: 2;
    margin-left: auto !important;
  }
}
@media (max-width: 700px) {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
  }
  body {
    overflow-x: clip;
  }
  body > div:first-of-type {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  section,
  section[id],
  footer {
    min-width: 0;
    max-width: 100%;
  }
  section[id]:not(#hero):not(#how):not(#blueprint),
  section:not(#hero):not(#how):not(#blueprint) {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }
  #hero {
    height: auto !important;
    min-height: 620px !important;
    padding: 0 !important;
  }
  #hero .hero-map {
    position: absolute;
    top: 0;
    right: 0;
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    object-position: 55% center;
    opacity: 0.55;
  }
  #hero .hero-blend {
    background: linear-gradient(
      90deg,
      rgba(19, 28, 41, 0.96),
      rgba(19, 28, 41, 0.69)
    ) !important;
  }
  #hero .hero-content {
    padding: 92px 5% 100px !important;
    gap: 24px !important;
    max-width: 100% !important;
  }
  #hero h1 {
    font-size: clamp(39px, 10vw, 60px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
    overflow-wrap: normal;
  }
  #hero .hero-content p {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
  #hero .hero-content > div:last-child {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px !important;
  }
  #hero .hero-content .cta {
    height: auto !important;
    min-height: 52px;
    font-size: 14px !important;
    padding: 12px 16px !important;
    gap: 12px !important;
  }
  #clients {
    padding-top: 40px !important;
    padding-bottom: 48px !important;
  }
  #clients > div:nth-child(2) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    height: auto !important;
    gap: 22px 10px !important;
    padding: 24px 0 !important;
  }
  #clients .logo {
    max-width: min(120px, 85%) !important;
    max-height: 46px !important;
  }
  #clients .logo-ak {
    max-width: min(145px, 95%) !important;
  }
  #clients .logo-silversea {
    max-width: min(150px, 95%) !important;
  }
  #clients > div:nth-child(3) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
    margin-top: 36px !important;
  }
  #clients > div:nth-child(4) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px 15px !important;
    margin-top: 34px !important;
  }
  #clients > div:nth-child(4) > div > span:first-child {
    font-size: clamp(29px, 8vw, 43px) !important;
  }
  #blueprint {
   
    overflow: visible;
  }

  #blueprint .blueprint-intro {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  #blueprint h2 {
    font-size: clamp(37px, 9.5vw, 56px) !important;
    line-height: 1.06 !important;
    overflow-wrap: normal;
  }
  #blueprint .bp-frame-caption {
    padding: 20px 14px !important;
    font-size: 9px !important;
  }
  #blueprint .bp-steps {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 0 14px 28px !important;
    gap: 34px !important;
  }
  #blueprint .bp-step {
    min-width: 0 !important;
    max-width: 100%;
  }
  #blueprint .bp-visual {
    width: 100%;
    height: auto !important;
    min-height: 185px;
    max-width: none !important;
    overflow: hidden;
  }
  #blueprint .bp-queue {
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }
  #blueprint .bp-queue-item {
    min-width: 0;
    max-width: 100%;
  }
  #blueprint .bp-map {
    height: 220px !important;
  }
  #blueprint .bp-summary {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #blueprint .bp-summary > div {
    padding: 22px 15px !important;
  }
  #how {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    grid-template-rows: none !important;
    padding: 0 !important;
    overflow: hidden;
  }
  #how > div:first-child {
    position: relative;
    flex: none;
    height: 480px !important;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  #how > div:first-child > svg {
    width: 800px !important;
    height: 860px !important;
    max-width: none !important;
    transform: scale(0.62);
    transform-origin: top left;
    pointer-events: none;
  }
  #how > div:nth-child(2) {
    height: auto !important;
    min-height: 610px;
    max-height: none !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #how > div:nth-child(2) > div:first-child {
    padding: 24px 5% !important;
  }
  #how .list {
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  #how .rowx {
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 16px 5% !important;
  }
  #how .rowx > * {
    min-width: 0;
    overflow-wrap: break-word;
  }
  #possibilities > div:first-child,
  #solutions > div:first-child {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }
  #possibilities .possibilities-gallery {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }
  #possibilities .map-output-card,
  .map-output-card {
    min-width: 0 !important;
  }
  #possibilities .map-output-visual {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden;
  }
  #possibilities .map-output-card img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
  }
  #possibilities .map-output-card > div:last-child {
    min-height: 0 !important;
  }
  #possibilities > div:last-child {
    flex-wrap: wrap;
    gap: 10px;
  }
  #possibilities > div:last-child > div {
    margin-left: 0 !important;
    flex-wrap: wrap;
    gap: 12px !important;
  }
  #solutions .rowx {
    grid-template-columns: 38px minmax(0, 1fr) 24px !important;
    gap: 10px !important;
    padding: 22px 0 !important;
  }
  #solutions .rowx > span:nth-child(2) {
    font-size: clamp(21px, 6vw, 29px) !important;
  }
  #solutions .rowx > div:nth-child(3) {
    grid-column: 2 / 4;
    grid-row: 2;
  }
  #solutions .rowx > a:last-child {
    grid-column: 3;
    grid-row: 1;
  }
  #demo {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }
  #demo form {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 22px 16px !important;
  }
  #demo form > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #demo input,
  #demo textarea {
    max-width: 100%;
    min-width: 0;
  }
  footer {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 23px !important;
  }
  section h2 {
    font-size: clamp(29px, 8vw, 43px) !important;
    line-height: 1.15 !important;
  }
  section p,
  section span {
    overflow-wrap: break-word;
  }
  .tanzania-map {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 701px) and (max-width: 1100px) {
  section:not(#hero):not(#how):not(#blueprint) {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }
  #demo {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr) !important;
    gap: 30px !important;
  }
  #solutions .rowx {
    grid-template-columns: 50px minmax(170px, 0.8fr) minmax(0, 1fr) 28px !important;
    gap: 14px !important;
  }
}

/* Final small-screen safeguards across remaining standalone grid sections. */
@media (max-width: 700px) {
  section[style*="display: grid"]:not(#how):not(#demo) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }
  section[style*="display: grid"]:not(#how):not(#demo) > * {
    min-width: 0;
    max-width: 100%;
  }
  section
    [style*="grid-template-columns"]:not(.bp-steps):not(.bp-summary):not(
      .possibilities-gallery
    ) {
    min-width: 0;
  }
  section [style*="width: 620px"],
  section [style*="width: 640px"],
  section [style*="width: 500px"] {
    width: 100% !important;
    max-width: 100% !important;
  }
  section input,
  section textarea,
  section select {
    font-size: 16px;
  }
  #how > div:first-child > div {
    max-width: calc(100% - 16px);
  }
  #how > div:nth-child(2) [style*="grid-template-columns: 76px"] {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 9px !important;
  }
  .cookie-consent {
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }
}
@media (max-width: 380px) {
  .site-nav-header > .cta {
    font-size: 11px !important;
    padding: 0 9px !important;
  }
  .site-nav-header > img {
    max-width: 104px !important;
  }
  #hero h1 {
    font-size: 38px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Brand lock-up and navigation refinement */
.site-nav-header > img {
  height: 60px !important;
  width: auto !important;
  max-height: 60px !important;
  max-width: none !important;
  object-fit: contain;
}
footer > img[src*="mapifly-logo-official"] {
  height: 60px !important;
  width: auto !important;
  max-height: 60px !important;
  max-width: 100% !important;
  object-fit: contain;
}
@media (max-width: 850px) {
  .site-nav-header {
    min-height: 84px !important;
    height: 84px !important;
  }
  .site-nav-header > img {
    height: 60px !important;
    max-height: 60px !important;
    max-width: none !important;
  }
}
@media (max-width: 390px) {
  .site-nav-header {
    gap: 6px !important;
    padding-left: 3% !important;
    padding-right: 3% !important;
  }
  .site-nav-header > .cta {
    padding-left: 8px !important;
    padding-right: 8px !important;
    gap: 3px !important;
    font-size: 11px !important;
  }
  .site-nav-header .mobile-menu-toggle {
    width: 40px;
    min-width: 40px;
  }
}

/* Footer company link and high-visibility Back to Top button. */
.keytech-footer-link {
  color: #fff;
  text-decoration: none;
  text-underline-offset: 4px;
}
.keytech-footer-link:hover,
.keytech-footer-link:focus-visible {
  text-decoration: underline;
}
#back-to-top {
  background: #ffc900 !important;
  color: #131c29 !important;
  border: 2px solid #131c29 !important;
  box-shadow: 0 5px 20px rgba(19, 28, 41, 0.3) !important;
}
#back-to-top:hover {
  background: #ffe066 !important;
  transform: translateY(-3px);
}
#back-to-top:focus-visible {
  outline: 3px solid #326bb3;
  outline-offset: 3px;
}
#back-to-top span:first-child {
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

/* Mobile: remove the fixed-height blank tail after the seven interactive steps. */
@media (max-width: 700px) {
  #how .how-end-note {
    display: none !important;
  }
  #how > div:nth-child(2) {
    min-height: 0 !important;
    height: auto !important;
  }
  #how .list {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
  }
}

/* Inside Mapifly section */
.workspace-section {
  padding: 88px 80px 72px;
  background: #f4f6fa;
  display: flex;
  flex-direction: column;
  gap: 42px;
}
.workspace-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: start;
}
.workspace-title-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.workspace-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #326bb3;
}
.workspace-section h2 {
  margin: 0;
  font-size: 50px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #131c29;
}
.workspace-section h2 span {
  color: #326bb3;
}
.workspace-intro p {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: #5a6678;
}
.workspace-visual-wrap {
  width: 100%;
}
.workspace-visual {
  display: block;
  width: 100%;
  max-width: 944px;
  height: auto;
  border: 1px solid #e2e7ee;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(19, 28, 41, 0.06);
  background: #fff;
}
.workspace-meta {
  display: grid;
  grid-template-columns: 240px 240px;
  gap: 28px 36px;
  max-width: 560px;
}
.workspace-meta-label {
  display: block;
  margin-bottom: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #326bb3;
}
.workspace-meta p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #5a6678;
}
@media (max-width: 1100px) {
  .workspace-section {
    padding: 72px 5% 60px;
  }
  .workspace-intro {
    grid-template-columns: 1fr 320px;
    gap: 40px;
  }
  .workspace-section h2 {
    font-size: clamp(38px, 5vw, 50px);
  }
}
@media (max-width: 700px) {
  .workspace-section {
    padding: 56px 6%;
  }
  .workspace-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .workspace-intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
  }
  .workspace-visual {
    max-width: 100%;
    border-radius: 8px;
  }
  .workspace-meta {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 22px;
  }
  .workspace-section h2 {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.06;
  }
}

@media (max-width: 700px) {
  #how {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  #how > div:first-child {
    z-index: 5;
    width: 100% !important;
    height: 50svh !important;
    min-height: 320px;
    max-height: 430px;
    overflow: hidden !important;
  }

  #how .list {
    display: block !important;
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Workspace section with layered two-image composition */
.workspace-visual-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.workspace-stage {
  position: relative;
  width: min(100%, 1120px);
  min-height: 620px;
  padding: 0 18px 108px 18px;
}
.workspace-visual {
  display: block;
  height: auto;
  border: 1px solid #e2e7ee;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(19, 28, 41, 0.06);
  background: #fff;
}
.workspace-visual-main {
  width: min(92%, 980px);
}
.workspace-visual-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(43%, 470px);
}
.workspace-meta {
  margin-top: -8px;
}
@media (max-width: 1100px) {
  .workspace-stage {
    min-height: 540px;
    padding: 0 8px 86px 8px;
  }
  .workspace-visual-main {
    width: min(100%, 900px);
  }
  .workspace-visual-secondary {
    width: min(45%, 390px);
    right: 8px;
  }
}
@media (max-width: 700px) {
  .workspace-stage {
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .workspace-visual-main,
  .workspace-visual-secondary {
    position: static;
    width: 100%;
    max-width: 100%;
  }
  .workspace-meta {
    margin-top: 0;
  }
}

/* Updated workspace screenshots and simpler blue back-to-top */
.workspace-stage {
  position: relative;
  width: min(100%, 1120px);
  min-height: 660px;
  padding: 0 18px 118px 18px;
}
.workspace-visual-main {
  width: min(92%, 1000px);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(19, 28, 41, 0.1);
}
.workspace-visual-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(45%, 500px);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(19, 28, 41, 0.1);
}
@media (max-width: 1100px) {
  .workspace-stage {
    min-height: 560px;
    padding: 0 8px 88px 8px;
  }
  .workspace-visual-main {
    width: min(100%, 920px);
  }
  .workspace-visual-secondary {
    width: min(46%, 400px);
    right: 8px;
  }
}
@media (max-width: 700px) {
  .workspace-stage {
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .workspace-visual-main,
  .workspace-visual-secondary {
    position: static;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  }
}

#back-to-top {
  background: #3e78c6 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(62, 120, 198, 0.28) !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  align-items: center;
}
#back-to-top:hover {
  background: #346cb9 !important;
  transform: translateY(-2px);
}
#back-to-top:focus-visible {
  outline: 3px solid rgba(62, 120, 198, 0.35);
  outline-offset: 3px;
}
#back-to-top span:first-child {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  display: block;
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  #back-to-top {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
  #back-to-top span:first-child {
    font-size: 26px;
  }
}

/* Final refinement for the Inside Mapifly overlap and mobile behavior */
.workspace-section {
  overflow: hidden;
}
.workspace-visual-wrap {
  margin-top: 4px;
}
.workspace-stage {
  width: min(100%, 1140px);
  min-height: 700px;
  padding: 0 28px 128px 28px;
}
.workspace-visual {
  border: 1px solid #dee6f0;
  box-shadow: 0 18px 36px rgba(19, 28, 41, 0.1);
}
.workspace-visual-main {
  width: min(90%, 980px);
  border-radius: 14px;
}
.workspace-visual-secondary {
  right: 10px;
  bottom: 0;
  width: min(43%, 470px);
  border-radius: 14px;
}
.workspace-meta {
  margin-top: -16px;
}
@media (max-width: 1200px) {
  .workspace-stage {
    min-height: 620px;
    padding: 0 16px 104px 16px;
  }
  .workspace-visual-main {
    width: min(92%, 920px);
  }
  .workspace-visual-secondary {
    width: min(44%, 420px);
    right: 6px;
  }
}
@media (max-width: 900px) {
  .workspace-section {
    gap: 34px;
  }
  .workspace-stage {
    min-height: 520px;
    padding: 0 10px 76px 10px;
  }
  .workspace-visual-main {
    width: min(100%, 860px);
  }
  .workspace-visual-secondary {
    width: min(46%, 340px);
    right: 4px;
  }
  .workspace-meta {
    margin-top: -4px;
  }
}
@media (max-width: 700px) {
  .workspace-section {
    padding: 56px 6% 52px;
    gap: 26px;
  }
  .workspace-intro {
    gap: 16px;
  }
  .workspace-stage {
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .workspace-visual-main,
  .workspace-visual-secondary {
    position: static;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(19, 28, 41, 0.08);
  }
  .workspace-meta {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: none;
    margin-top: 0;
  }
}

/* Final fix: keep the small workspace image visually attached to the large one */
.workspace-visual-wrap {
  display: flex;
  justify-content: center;
}
.workspace-stage {
  position: relative !important;
  width: min(100%, 980px) !important;
  min-height: 640px !important;
  padding: 0 0 118px 0 !important;
  margin: 0 auto !important;
}
.workspace-visual-main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  border-radius: 14px !important;
}
.workspace-visual-secondary {
  position: absolute !important;
  right: -54px !important;
  bottom: 0 !important;
  width: min(42%, 410px) !important;
  max-width: 410px !important;
  border-radius: 14px !important;
}
@media (max-width: 1200px) {
  .workspace-stage {
    width: min(100%, 920px) !important;
    min-height: 580px !important;
    padding-bottom: 100px !important;
  }
  .workspace-visual-secondary {
    right: -24px !important;
    width: min(41%, 360px) !important;
    max-width: 360px !important;
  }
}
@media (max-width: 900px) {
  .workspace-stage {
    width: min(100%, 760px) !important;
    min-height: 500px !important;
    padding-bottom: 74px !important;
  }
  .workspace-visual-secondary {
    right: 0 !important;
    bottom: 0 !important;
    width: min(40%, 300px) !important;
    max-width: 300px !important;
  }
}
@media (max-width: 700px) {
  .workspace-stage {
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: center !important;
  }
  .workspace-visual-main,
  .workspace-visual-secondary {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* HERO 2026 — animated SVG, seamless fade and fluid scaling.
   Scoped to #hero: no change to other sections or Mapifly SVG animations. */
#hero {
  isolation: isolate;
  background: #131c29 !important;
}
#hero .hero-map {
  position: absolute !important;
  z-index: 0;
  inset: auto 0 0 auto !important;
  top: 84px !important;
  bottom: auto !important;
  height: calc(100% - 84px) !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: right center !important;
  opacity: 1 !important;
  filter: none !important;
  /* Fade the SVG itself: its baked-in background can no longer form a seam. */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 11%,
    rgba(0, 0, 0, 0.7) 27%,
    #000 43%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 11%,
    rgba(0, 0, 0, 0.7) 27%,
    #000 43%
  );
  pointer-events: none;
}
#hero .hero-blend {
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(19, 28, 41, 0.42) 0%,
    rgba(19, 28, 41, 0.18) 34%,
    transparent 66%
  ) !important;
  pointer-events: none;
}
#hero .hero-bottom-fade {
  z-index: 1;
  height: 76px !important;
  background: linear-gradient(
    0deg,
    #131c29 0%,
    rgba(19, 28, 41, 0) 100%
  ) !important;
  pointer-events: none;
}
#hero .hero-header {
  position: relative !important;
  z-index: 10 !important;
  background: rgba(19, 28, 41, 0.97) !important;
  backdrop-filter: none !important;
}
#hero .hero-content {
  position: relative;
  z-index: 3;
}
@media (min-width: 701px) and (max-width: 1250px) {
  #hero .hero-map {
    height: calc(100% - 84px) !important;
    right: -8% !important;
    opacity: 0.9 !important;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 20%,
      #000 52%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 20%,
      #000 52%
    );
  }
  #hero .hero-blend {
    background: linear-gradient(
      90deg,
      #131c29 0%,
      rgba(19, 28, 41, 0.78) 34%,
      rgba(19, 28, 41, 0.08) 84%
    ) !important;
  }
}
@media (max-width: 700px) {
  #hero .hero-map {
    top: 84px !important;
    right: -55% !important;
    height: calc(100% - 84px) !important;
    width: auto !important;
    opacity: 0.6 !important;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.3) 26%,
      #000 65%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.3) 26%,
      #000 65%
    );
  }
  #hero .hero-blend {
    background: linear-gradient(
      90deg,
      rgba(19, 28, 41, 0.86) 0%,
      rgba(19, 28, 41, 0.46) 72%,
      rgba(19, 28, 41, 0.25) 100%
    ) !important;
  }
}

/* Persistent global navigation. Spacer preserves the original hero alignment. */
#hero .site-nav-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  height: 84px !important;
  min-height: 84px !important;
  z-index: 2000 !important;
  box-sizing: border-box !important;
  background: rgba(19, 28, 41, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  -webkit-backdrop-filter: blur(14px) saturate(115%) !important;
  backdrop-filter: blur(14px) saturate(115%) !important;
}
#hero .site-nav-spacer {
  height: 84px;
  flex: none;
  pointer-events: none;
}
html {
  scroll-padding-top: 100px;
}
section[id] {
  scroll-margin-top: 100px;
}
@media (max-width: 700px) {
  #hero .site-nav-header {
    height: 84px !important;
    min-height: 84px !important;
  }
  #hero .site-nav-spacer {
    height: 84px;
  }
}
/* Legal page: the same persistent nav with equivalent flow compensation. */
.policy-page .policy-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(19, 28, 41, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.policy-page {
  padding-top: 84px;
}

/* NAV FIX: global fixed layer outside #hero's isolated stacking context.
   Keep this header above all maps, animated SVGs and section overlays. */
body > .site-nav-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 84px !important;
  min-height: 84px !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  background: #131c29 !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  isolation: isolate;
  overflow: visible !important;
}
body > .site-nav-header .mobile-navigation {
  z-index: 2;
}
body > .site-nav-header .mobile-menu-toggle {
  z-index: 3;
}
/* The existing hero spacer keeps the first section's vertical rhythm unchanged. */
#hero .site-nav-spacer {
  height: 84px !important;
}
html {
  scroll-padding-top: 100px !important;
}
section[id] {
  scroll-margin-top: 100px !important;
}
@media (max-width: 850px) {
  body > .site-nav-header {
    position: fixed !important;
    height: 84px !important;
    min-height: 84px !important;
    z-index: 100000 !important;
  }
  body > .site-nav-header > .mobile-navigation.is-open {
    display: flex !important;
  }
}

#possibilities .map-output-visual > img.map-output-screen-img,
#possibilities .map-output-visual > img.map-output-page-img {
  height: 100% !important;
  width: auto !important;
}
.grecaptcha-badge {
  visibility: hidden;
}
.widthSite {
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
}
