:root {
  --brand-purple: #2a176b;
  --brand-purple-deep: #1d0f4d;
  --brand-purple-soft: #f4f1fb;
  --brand-red: #e51b18;
  --brand-red-deep: #bd1413;
  --brand-ink: #201932;
  --brand-muted: #635d74;
  --brand-line: rgba(42, 23, 107, 0.16);
  --navy: var(--brand-purple);
  --deep: var(--brand-purple-deep);
  --ink: var(--brand-ink);
  --slate: var(--brand-muted);
  --muted: #827c91;
  --line: var(--brand-line);
  --canvas: #f8f6fc;
  --accent: var(--brand-red);
}

.ibv2-home {
  --ibv2-navy: var(--brand-purple);
  --ibv2-navy-2: var(--brand-purple-deep);
  --ibv2-stone: #f8f6fc;
  --ibv2-stone-2: #eee9fa;
  --ibv2-brass: var(--brand-red);
  --ibv2-brass-light: #ff4b42;
  --ibv2-emerald: var(--brand-purple-deep);
  --ibv2-slate: var(--brand-muted);
  --ibv2-hairline: rgba(42, 23, 107, 0.16);
  --ibv2-hairline-light: rgba(255, 255, 255, 0.2);
}

.theme-seal {
  --seal-paper: #f8f6fc;
  --seal-paper-deep: #eee9fa;
  --seal-ink: var(--brand-purple);
  --seal-muted: var(--brand-muted);
  --seal-line: rgba(42, 23, 107, 0.16);
  --seal-gold: var(--brand-red);
}

body,
.theme-seal,
.ibv2-home {
  background: #f8f6fc;
  color: var(--brand-ink);
}

h1,
h2,
h3,
.content-card h3,
.brief-card h3,
.module h2,
.lead-form h2,
.form-section h2,
.contact-option h3 {
  color: var(--brand-purple);
}

.label,
.nav a.highlight,
.nav a.active,
.nav a[aria-current="page"],
.ibv2-eyebrow,
.ibv2-tag,
.ibv2-eco-tag,
.module-number,
.module-meta span,
.cards span,
.journal span,
.index-list span {
  color: var(--brand-red);
}

.button,
.button-like,
.mock-form button,
.lead-submit,
.ibv2-btn-primary,
.ibv2-btn-brass {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #ffffff;
}

.theme-seal .button,
.theme-seal .button-like,
.theme-seal .mock-form button,
.theme-seal .lead-submit,
.ibv2-home .button,
.ibv2-home .button-like,
.ibv2-home .mock-form button,
.ibv2-home .lead-submit {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #ffffff;
}

.button:hover,
.button-like:hover,
.mock-form button:hover,
.lead-submit:hover,
.ibv2-btn-primary:hover,
.ibv2-btn-brass:hover {
  border-color: var(--brand-red-deep);
  background: var(--brand-red-deep);
  color: #ffffff;
}

.button.secondary,
.ibv2-btn-ghost,
.lead-option.secondary {
  border-color: rgba(42, 23, 107, 0.22);
  background: #ffffff;
  color: var(--brand-purple);
}

.theme-seal .button.secondary,
.ibv2-home .button.secondary,
.theme-seal .lead-option.secondary,
.ibv2-home .lead-option.secondary {
  border-color: rgba(42, 23, 107, 0.22);
  background: #ffffff;
  color: var(--brand-purple);
}

.statement,
.cta-band,
.ibv2-dark,
.ibv2-footer {
  background: var(--brand-purple-deep);
  color: #ffffff;
}

.ibv2-dark h2,
.ibv2-dark h3,
.ibv2-footer,
.ibv2-footer a,
.statement h2,
.statement blockquote,
.cta-band h2,
.cta-band p {
  color: #ffffff;
}

.ibv2-eco-card,
.ibv2-step,
.cards article,
.content-card,
.brief-card,
.lead-card,
.lead-form,
.mock-form,
.contact-panel,
.calendar,
.journal article {
  border-color: var(--brand-line);
}

.final-header,
.theme-seal .final-header,
.ibv2-home .final-header {
  border-bottom-color: rgba(42, 23, 107, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.final-header .brand {
  gap: 14px;
  min-width: 390px;
  padding-right: clamp(24px, 3vw, 42px);
  border-right: 1px solid rgba(42, 23, 107, 0.16);
}

.official-logo {
  width: 122px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
  background: #ffffff;
}

.final-header .ibv2-brand-name {
  color: var(--brand-purple);
}

.final-header .ibv2-brand-name span {
  color: var(--brand-muted);
}

.final-header .nav a {
  color: #332b48;
}

.final-header .nav a:hover,
.final-header .nav a:focus-visible {
  color: var(--brand-red);
}

.final-header .nav .cta {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

.final-header .nav .cta:hover,
.final-header .nav .cta:focus-visible {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #ffffff;
}

.final-header .nav .cta.active,
.final-header .nav .cta[aria-current="page"] {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: #ffffff;
}

.final-header .nav-toggle-label {
  border-color: rgba(42, 23, 107, 0.28);
  color: var(--brand-purple);
}

.final-header .nav-toggle:focus-visible + .nav-toggle-label {
  outline-color: var(--brand-red);
}

.ibv2-hero-bg svg g {
  stroke: var(--brand-purple);
}

.ibv2-hero-visual {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.ibv2-animated-visual {
  display: grid;
  min-height: 430px;
  place-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(229, 27, 24, 0.12), transparent 32%),
    radial-gradient(circle at 18% 78%, rgba(42, 23, 107, 0.12), transparent 34%);
  box-shadow: none;
}

.pathway-animation {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
}

.pathway-animation::before {
  position: absolute;
  inset: 0;
  content: "";
  border: 0;
  background-image:
    linear-gradient(rgba(42, 23, 107, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 23, 107, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.28;
}

.pathway-halo {
  position: absolute;
  border: 1px solid rgba(229, 27, 24, 0.2);
  border-radius: 999px;
  animation: haloDrift 9s ease-in-out infinite alternate;
}

.halo-one {
  width: 260px;
  height: 260px;
  right: -76px;
  top: -52px;
}

.halo-two {
  width: 340px;
  height: 340px;
  left: -128px;
  bottom: -138px;
  border-color: rgba(42, 23, 107, 0.18);
  animation-delay: -3s;
}

.pathway-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.route {
  fill: none;
  stroke: url(#path-gradient);
  stroke-linecap: round;
  stroke-width: 3;
  stroke-dasharray: 10 16;
  animation: routeFlow 18s linear infinite;
}

.route-soft {
  stroke-width: 2;
  opacity: 0.55;
  animation-duration: 22s;
}

.route-soft.delay {
  animation-delay: -8s;
}

.node {
  fill: #ffffff;
  stroke: var(--brand-purple);
  stroke-width: 3;
}

.node-origin {
  stroke: var(--brand-red);
}

.pulse-dot {
  fill: var(--brand-red);
  filter: drop-shadow(0 0 10px rgba(229, 27, 24, 0.45));
  opacity: 0.85;
  transform-origin: center;
  animation: nodePulse 2.8s ease-in-out infinite;
}

.dot-two {
  animation-delay: 0.8s;
}

.dot-three {
  animation-delay: 1.6s;
}

.ibv2-animated-visual .path-card {
  position: absolute;
  z-index: 2;
  display: block;
  width: 176px;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(42, 23, 107, 0.16);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 38px rgba(29, 15, 77, 0.12);
  backdrop-filter: blur(12px);
  animation: cardFloat 6s ease-in-out infinite alternate;
}

.ibv2-animated-visual .path-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-red);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ibv2-animated-visual .path-card strong {
  display: block;
  color: var(--brand-purple);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.24;
}

.card-ghana {
  left: 8%;
  top: 44%;
}

.card-university {
  right: 7%;
  top: 18%;
  animation-delay: -1.8s;
}

.card-institution {
  left: 35%;
  top: 8%;
  animation-delay: -3s;
}

.card-students {
  right: 14%;
  bottom: 13%;
  animation-delay: -4.2s;
}

.pathway-logo {
  position: absolute;
  z-index: 3;
  left: 9%;
  bottom: 11%;
  width: 158px;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(29, 15, 77, 0.18);
}

.ibv2-animated-visual img,
.ibv2-hero-visual .pathway-logo img {
  width: 100%;
  height: auto;
  min-height: 0 !important;
  object-fit: contain;
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -260;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.84);
  }

  50% {
    opacity: 1;
    transform: scale(1.28);
  }
}

@keyframes cardFloat {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes haloDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-18px, 14px, 0) scale(1.04);
  }
}

.ibv2-visual-seal {
  display: none;
}

.ibv2-visual-brand {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(190px, 42%);
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(29, 15, 77, 0.18);
}

.ibv2-hero-visual .ibv2-visual-brand img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.ibv2-foot-brand {
  gap: 12px;
}

.official-footer-logo {
  width: 96px;
  height: 46px;
  object-fit: contain;
  background: #ffffff;
}

.footer {
  border-top-color: var(--brand-line);
}

.theme-seal .hero,
.theme-seal .content-hero {
  isolation: isolate;
}

.theme-seal .hero > *,
.theme-seal .content-hero > * {
  position: relative;
  z-index: 1;
}

.theme-seal .hero::after,
.theme-seal .content-hero::after {
  z-index: 0;
  opacity: 0.18;
  box-shadow:
    inset 0 0 0 13px var(--seal-paper),
    inset 0 0 0 14px rgba(167, 117, 53, 0.16);
}

.theme-seal .hero-card,
.theme-seal .brief-card,
.theme-seal .content-card,
.theme-seal .route-card,
.theme-seal .lead-route,
.theme-seal .lead-form,
.theme-seal .contact-panel,
.theme-seal .calendar,
.theme-seal .proof-card,
.theme-seal .why-grid article,
.theme-seal .founder-card,
.theme-seal .form-panel,
.theme-seal .mock-form,
.theme-seal .journal article,
.theme-seal .timeline-step,
.theme-seal .research-row,
.theme-seal .feature-list div,
.theme-seal .protocol-rows span,
.theme-seal .index-list a {
  position: relative;
  z-index: 1;
  border-color: rgba(42, 23, 107, 0.14);
  background: #fffefa;
  box-shadow: 0 18px 44px rgba(29, 15, 77, 0.08);
}

.theme-seal .brief-card,
.theme-seal .lead-form,
.theme-seal .form-panel,
.theme-seal .mock-form,
.theme-seal .contact-panel {
  background: #ffffff;
}

.theme-seal .lead-form input,
.theme-seal .lead-form select,
.theme-seal .lead-form textarea,
.theme-seal .rich-form input,
.theme-seal .rich-form select,
.theme-seal .rich-form textarea,
.theme-seal .mock-form input,
.theme-seal .mock-form select,
.theme-seal .mock-form textarea {
  border-color: rgba(42, 23, 107, 0.18);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(42, 23, 107, 0.03);
}

.theme-seal .lead-form input:focus,
.theme-seal .lead-form select:focus,
.theme-seal .lead-form textarea:focus,
.theme-seal .rich-form input:focus,
.theme-seal .rich-form select:focus,
.theme-seal .rich-form textarea:focus,
.theme-seal .mock-form input:focus,
.theme-seal .mock-form select:focus,
.theme-seal .mock-form textarea:focus {
  border-color: var(--brand-purple);
  outline: 3px solid rgba(42, 23, 107, 0.1);
}

.lead-option.whatsapp,
.whatsapp-link {
  border-color: #1f7a4f;
  background: #1f7a4f;
  color: #ffffff;
}

@media (max-width: 1120px) {
  .final-header .brand {
    min-width: 0;
    justify-self: start;
    padding-right: 0;
    border-right: 0;
  }

  .official-logo {
    width: 104px;
    height: 50px;
  }

  .final-header .nav .cta {
    border-color: var(--brand-purple);
  }

}

@media (max-width: 680px) {
  .official-logo {
    width: 86px;
    height: 42px;
  }

  .final-header .ibv2-brand-name {
    max-width: 150px;
    font-size: 11px;
  }

  .final-header .ibv2-brand-name span {
    display: none;
  }

  .ibv2-visual-brand {
    width: 132px;
    right: 12px;
    bottom: 12px;
  }

  .ibv2-animated-visual .path-card {
    width: min(142px, 42vw);
    padding: 12px;
  }

  .ibv2-animated-visual .path-card strong {
    font-size: 12px;
  }

  .card-institution {
    left: 19%;
  }

  .card-university {
    right: 3%;
  }

  .card-students {
    right: 4%;
    bottom: 15%;
  }

  .pathway-logo {
    width: min(126px, 40vw);
  }

}

@media (prefers-reduced-motion: reduce) {
  .route,
  .pulse-dot,
  .path-card,
  .pathway-halo {
    animation: none;
  }
}
