:root {
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --brand-dark: #072a7d;
  --brand-accent: #11bfd8;
  --line: rgba(11, 48, 123, 0.12);
  --ring: #48c5e8;
  --shadow: 0 22px 50px rgba(7, 34, 92, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
}

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  padding-top: 110px;
  position: relative;
  overflow-x: hidden;
}

.global-background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(6, 182, 212, 0.2), transparent 26%),
    radial-gradient(
      circle at 88% 24%,
      rgba(96, 165, 250, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 16% 82%,
      rgba(14, 165, 233, 0.13),
      transparent 24%
    ),
    radial-gradient(
      circle at 84% 78%,
      rgba(37, 99, 235, 0.14),
      transparent 26%
    ),
    linear-gradient(120deg, rgba(248, 250, 252, 0.3), rgba(11, 15, 25, 0.12));
  animation: ambient-shift 28s ease-in-out infinite alternate;
  will-change: transform;
}

.global-background-canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  mix-blend-mode: normal;
  opacity: 1;
}

@keyframes ambient-shift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.site-header {
  position: fixed;
  top: 1.1rem;
  left: 0;
  right: 0;
  width: min(1600px, calc(100% - 1rem));
  margin: 0 auto;
  z-index: 1000;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(7, 42, 125, 0.1);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(1.2);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92),
      rgba(246, 250, 255, 0.8)
    ),
    var(--surface);
  box-shadow: var(--shadow);
  position: relative;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.brand img {
  display: block;
  width: auto;
  height: 52px;
  object-fit: contain;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid rgba(7, 42, 125, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
  color: var(--brand-dark);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 42, 125, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.search-toggle:hover,
.search-toggle:focus-visible,
.search-toggle[aria-expanded="true"] {
  border-color: rgba(72, 197, 232, 0.55);
  box-shadow:
    0 0 0 4px rgba(72, 197, 232, 0.12),
    0 14px 28px rgba(7, 42, 125, 0.12);
  transform: translateY(-1px);
}

.search-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.menu {
  list-style: none;
  margin: 0;
  margin-left: 0.15rem;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.menu-item {
  position: relative;
}

.menu-link {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  border-radius: 12px;
  min-height: 52px;
  padding: 0.55rem 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: none;
  position: relative;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.menu-link-about {
  border: 1px solid rgba(6, 182, 212, 0.22);
  background: linear-gradient(
    180deg,
    rgba(236, 254, 255, 0.96),
    rgba(224, 242, 254, 0.82)
  );
  color: #072a7d;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 24px rgba(7, 34, 92, 0.08);
}

.menu-link-about:hover,
.menu-item:focus-within > .menu-link-about {
  background: linear-gradient(
    180deg,
    rgba(220, 252, 231, 0.95),
    rgba(224, 242, 254, 0.9)
  );
  color: #0f172a;
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 14px 28px rgba(7, 34, 92, 0.1);
}

.menu-link:hover,
.menu-item:focus-within > .menu-link {
  background: linear-gradient(
    180deg,
    rgba(230, 240, 255, 0.9),
    rgba(235, 245, 255, 0.6)
  );
  color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(7, 34, 92, 0.06);
}

.menu-item.active > .menu-link {
  color: var(--brand-dark);
}

/* active left accent */
.menu-item.active > .menu-link::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--brand-accent), var(--brand-dark));
}

.menu-item {
  position: relative;
}

.menu-link:focus-visible,
.mobile-menu-toggle:focus-visible,
.submenu a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.menu-link::after {
  /* hide the decorative chevron to avoid duplication with submenu-toggle */
  display: none;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.submenu-toggle {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 4px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
}

.submenu-toggle::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.menu-item.active > .submenu-toggle::after,
.menu-item:focus-within > .submenu-toggle::after {
  transform: rotate(-135deg) translate(-1px, -2px);
}

.menu-item.active > .menu-link::after,
.menu-item:focus-within > .menu-link::after {
  transform: rotate(-135deg) translate(-1px, -2px);
}

/* submenu: more structured, two-column on wide screens */
.submenu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  /* allow width to size to content and available space */
  min-width: 0;
  width: auto;
  border: 1px solid rgba(9, 41, 116, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 28px 60px rgba(2, 27, 82, 0.12);
  padding: 0.8rem;
  display: grid;
  gap: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  z-index: 10;
}

.submenu-title {
  margin: 0 0 0.25rem 0;
  padding: 0 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.submenu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.submenu a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-accent), var(--brand-dark));
  flex-shrink: 0;
}

.submenu a:hover {
  background: rgba(17, 191, 216, 0.06);
  transform: translateX(4px);
  color: var(--brand-dark);
}

/* two-column layout on wider screens */
@media (min-width: 720px) {
  /* let submenu columns adapt to content: auto-fit creates as many
     columns of at least 220px as needed for the links, constrained by
     available space */
  .submenu {
    display: grid;
    grid-auto-flow: column; /* Force items to fill columns horizontally */
    grid-template-rows: repeat(
      7,
      auto
    ); /* Max of 4 items per column before starting a new one */
    gap: 0.6rem 1rem; /* More gap between columns */
    width: max-content; /* Now perfectly shrinks/grows to fit the columns */
  }
}

.menu-item.active > .submenu,
.menu-item:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.search-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 4.8rem;
  z-index: 20;
  min-width: min(420px, calc(100vw - 2rem));
  padding: 0.85rem;
  border: 1px solid rgba(9, 41, 116, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(2, 27, 82, 0.14);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.35rem 0.45rem 0.35rem 0.65rem;
  border: 1px solid rgba(7, 42, 125, 0.12);
  border-radius: 999px;
  background: rgba(247, 250, 255, 0.92);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.search-form:focus-within {
  border-color: rgba(72, 197, 232, 0.7);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(72, 197, 232, 0.14);
}

.search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.search-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-form input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}

.search-form input::placeholder {
  color: #7b8dab;
}

.search-form button {
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-accent));
  color: #ffffff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.connect-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-accent));
  box-shadow:
    0 0 0 0 rgba(17, 191, 216, 0.35),
    0 12px 28px rgba(7, 42, 125, 0.22);
  position: relative;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  animation: pulse-glow 2.8s ease-in-out infinite;
}

.connect-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 30%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.18) 70%,
    transparent 100%
  );
  transform: translateX(-130%);
  animation: sheen 3.2s ease-in-out infinite;
  pointer-events: none;
}

.connect-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 8px rgba(17, 191, 216, 0.12),
    0 16px 32px rgba(7, 42, 125, 0.26);
  filter: saturate(1.04);
}

.connect-cta:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin: 2.5rem 0 0;
  padding: 2.25rem clamp(1rem, 4vw, 3rem) 1.5rem;
  border-top: 1px solid rgba(7, 42, 125, 0.12);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background:
    radial-gradient(
      circle at 16% 14%,
      rgba(17, 191, 216, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at 84% 18%,
      rgba(59, 130, 246, 0.1),
      transparent 22%
    ),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 55%, #edf4ff 100%);
  box-shadow:
    0 24px 48px rgba(7, 42, 125, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.86) 50%,
      transparent 100%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 18%);
  opacity: 0.95;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 3rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(17, 191, 216, 0.8),
    transparent
  );
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.9fr));
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.site-footer-brand {
  display: grid;
  gap: 0.9rem;
}

.site-footer-brand img {
  width: auto;
  height: 52px;
  display: block;
  background: transparent;
  mix-blend-mode: normal;
  filter: none;
}

.site-footer-brand-mark {
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border-radius: 16px;
  border: 1px solid rgba(7, 42, 125, 0.06);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72),
    rgba(239, 246, 255, 0.82)
  );
  box-shadow: none;
}

.site-footer-brand-mark:hover {
  border-color: rgba(7, 42, 125, 0.08);
}

.site-footer-brand p,
.site-footer-links a,
.site-footer-meta,
.site-footer-note {
  color: var(--muted);
}

.site-footer-links {
  display: grid;
  gap: 0.55rem;
}

.site-footer-links h3 {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.site-footer-links a {
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer-links a:hover {
  color: var(--brand-dark);
}

.site-footer-cta {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-footer-cta .connect-cta {
  min-width: 170px;
}

.site-footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(7, 42, 125, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.site-footer-note {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer-meta {
  font-size: 0.88rem;
}

.site-footer-cta h3 {
  margin: 0;
  color: var(--text);
}

.site-footer-cta .site-footer-meta {
  margin: 0;
}

.site-footer-cta .connect-cta {
  box-shadow:
    0 0 0 0 rgba(17, 191, 216, 0.25),
    0 14px 30px rgba(7, 42, 125, 0.2);
}

.site-footer-cta .connect-cta:hover {
  box-shadow:
    0 0 0 8px rgba(125, 211, 252, 0.1),
    0 18px 34px rgba(7, 42, 125, 0.26);
}

@media (max-width: 960px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer {
    width: 100vw;
    border-radius: 28px 28px 0 0;
    padding: 1.3rem 1rem 1rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.mobile-menu-toggle {
  margin-left: auto;
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 0;
  background: #f4f9ff;
  padding: 0.7rem;
  cursor: pointer;
  position: relative;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-dark);
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
  transition:
    transform 220ms ease,
    opacity 180ms ease,
    top 220ms ease;
}

.mobile-menu-toggle span:nth-child(1) {
  transform: translate(-50%, -9px);
}

.mobile-menu-toggle span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.mobile-menu-toggle span:nth-child(3) {
  transform: translate(-50%, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.2);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
  .menu-item:hover > .submenu,
  .menu-item:hover > .menu-link {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background: linear-gradient(180deg, #eef7ff, #e7f2ff);
    color: var(--brand-dark);
  }
}

@media (max-width: 1160px) {
  .search-panel {
    left: 4.5rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .search-panel {
    min-width: min(360px, calc(100vw - 1.5rem));
  }

  .connect-cta {
    padding-inline: 0.9rem;
  }

  .submenu {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1320px) {
  body {
    padding-top: 104px;
  }

  .site-header {
    width: min(1220px, calc(100% - 1rem));
  }

  .nav-shell {
    flex-wrap: wrap;
  }

  .search-panel {
    left: 0.45rem;
    right: 0.45rem;
    min-width: 0;
    top: calc(100% + 0.45rem);
  }

  .mobile-menu-toggle {
    display: inline-block;
  }

  .nav-actions {
    width: 100%;
    order: 3;
    margin-left: 0;
    padding-top: 0.2rem;
  }

  .menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
    margin-left: 0;
  }
  .nav-shell.mobile-open .menu {
    max-height: 90vh;
    padding-bottom: 0.45rem;
  }

  .menu-link {
    width: auto;
    text-align: left;
    display: flex;
    align-items: center;
    background: #f8fbff;
  }

  .menu-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
  }

  .menu-item > .menu-link,
  .menu-item > .submenu-toggle {
    width: auto;
  }

  .menu-item > .submenu-toggle {
    margin-left: auto;
    margin-top: 0;
    flex: 0 0 auto;
  }

  .submenu {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    transform: none;
    border-radius: 10px;
    border-color: #e6f0ff;
    grid-template-columns: 1fr;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: auto;
    overflow-x: hidden;
    margin-top: 0;
  }

  .submenu::-webkit-scrollbar-track {
    background-color: #f5f5f5;
  }

  .submenu::-webkit-scrollbar {
    width: 5px;
  }

  .submenu::-webkit-scrollbar-thumb {
    background-color: #8b8888;
  }

  .nav-shell::-webkit-scrollbar-track {
    background-color: #f5f5f5;
  }

  .nav-shell::-webkit-scrollbar {
    width: 5px;
  }

  .nav-shell::-webkit-scrollbar-thumb {
    background-color: #8b8888;
  }

  .menu-item.active > .submenu {
    max-height: 200px;
    padding-top: 0.55rem;
    padding-bottom: 0.45rem;
    margin-top: 0.2rem;
  }

  .submenu a {
    width: 100%;
  }

  .connect-cta {
    flex-shrink: 0;
  }

  .nav-shell {
    overflow: visible;
    max-height: none;
  }
  
  .nav-shell.mobile-open {
    overflow: visible;
  }
  
  .nav-shell.mobile-open .menu {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 85vh;
    border-radius: 0 0 16px 16px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 96px;
  }

  .nav-shell {
    padding: 0.75rem 0.8rem;
    border-radius: 20px;
  }

  .brand img {
    height: 46px;
  }

  .search-toggle {
    width: 42px;
    height: 42px;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form,
  .connect-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(17, 191, 216, 0.34),
      0 12px 28px rgba(7, 42, 125, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(17, 191, 216, 0.08),
      0 16px 34px rgba(7, 42, 125, 0.28);
  }
}

@keyframes sheen {
  0%,
  35% {
    transform: translateX(-130%);
  }
  70%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-4deg) scale(1);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(2deg) scale(1.04);
  }
}

@keyframes logo-pulse {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.18;
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.08);
    opacity: 0.26;
  }
}

/* homepage content */
.page-main {
  width: min(1220px, calc(100% - 2rem));
  margin: 4rem auto 3.5rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  margin-top: 1.5rem;
  padding: 1.35rem;
  border: 1px solid rgba(7, 42, 125, 0.08);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.86),
    rgba(248, 252, 255, 0.92)
  );
  box-shadow: 0 24px 48px rgba(7, 42, 125, 0.08);
  overflow: hidden;
  animation: section-rise 700ms ease both;
}

.section::before,
.section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.section::before {
  width: 180px;
  height: 180px;
  right: -90px;
  top: -90px;
  background: radial-gradient(
    circle,
    rgba(17, 191, 216, 0.16),
    transparent 68%
  );
}

.section::after {
  width: 240px;
  height: 240px;
  left: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(7, 42, 125, 0.08), transparent 68%);
}

.hero {
  margin-top: 0;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  background: #0b0f19;
}

.hero-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: #0b0f19;
  border-radius: 28px;
  opacity: 0.68;
}

@media (max-width: 720px) {
  .global-background-layer {
    animation: none;
  }

  .hero-network-canvas {
    opacity: 0.55;
  }
}

.hero-grid,
.service-showcase,
.two-column-section,
.content-split {
  display: grid;
  gap: 1.25rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.9fr);
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero-copy,
.hero-visual,
.section-heading,
.showcase-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.hero h1,
.section h2,
.process-section h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.7vw, 4.8rem);
  line-height: 0.96;
  max-width: 12ch;
}

.section h2 {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.hero-text,
.section-lead,
.section p,
.process-grid p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-text {
  max-width: 70ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.hero-cta {
  min-width: 180px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 700;
  border: 1px solid rgba(7, 42, 125, 0.12);
  background: rgba(255, 255, 255, 0.88);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.hero-link:hover {
  transform: translateY(-1px);
  border-color: rgba(72, 197, 232, 0.52);
  box-shadow: 0 16px 30px rgba(7, 42, 125, 0.1);
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.hero-card,
.service-card,
.metric-card,
.mini-card,
.process-grid article,
.contact-band {
  backdrop-filter: blur(10px);
}

.hero-card-main,
.metric-card,
.mini-card,
.service-card,
.process-grid article,
.contact-band {
  border: 1px solid rgba(7, 42, 125, 0.09);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(247, 250, 255, 0.9)
  );
  box-shadow: 0 18px 36px rgba(7, 42, 125, 0.08);
}

.hero-card-main {
  padding: 1.2rem;
  border-radius: 22px;
  min-height: 220px;
  display: grid;
  gap: 0.8rem;
  animation: float-card 6s ease-in-out infinite;
}

.hero-card-label,
.service-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-card-main strong,
.service-card h3,
.process-grid h3,
.value-grid h3,
.service-aside-card strong,
.service-aside-mini,
.mini-card {
  color: var(--text);
}

.hero-card-main p {
  margin: 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric-card {
  padding: 1rem;
  border-radius: 20px;
  min-height: 150px;
  display: grid;
  align-content: space-between;
  animation: rise 700ms ease both;
}

.metric-card span,
.process-grid span {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.metric-card p,
.process-grid p {
  margin: 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 1rem;
}

.section-heading.compact {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.value-grid,
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.value-grid article {
  border-radius: 22px;
  padding: 1.15rem;
  border: 1px solid rgba(7, 42, 125, 0.09);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(247, 250, 255, 0.92)
  );
  box-shadow: 0 18px 36px rgba(7, 34, 92, 0.08);
}

.value-card-image,
.mini-card-image {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.value-card-image::before,
.mini-card-image::before {
  content: none;
}

.value-card-image::after,
.mini-card-image::after {
  content: none;
}

.value-card-image,
.mini-card-image {
  color: var(--brand-dark);
  text-shadow: none;
}

.value-card-image h3,
.value-card-image p {
  color: var(--text);
}

.value-card-image {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.65rem;
  padding-top: 11.5rem;
}

.value-card-image:hover::before,
.mini-card-image:hover::before {
  transform: scale(1.12);
  filter: saturate(1.08);
}

.value-grid h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.08rem;
}

.value-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.value-band,
.industry-band {
  margin-top: 1.2rem;
  padding: 1.6rem;
}

.industry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  display: grid;
  opacity: 0.22;
  padding: 1.2rem;
  border-radius: 22px;
  text-decoration: none;
  opacity: 0.38;
  min-height: 240px;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
  animation: rise 720ms ease both;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 191, 216, 0.28);
  box-shadow: 0 24px 44px rgba(7, 42, 125, 0.14);
}

.service-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
  color: var(--text);
}

.service-card p {
  margin: 0;
}

.service-band,
.two-column-section,
.service-showcase,
.process-section,
.contact-band {
  margin-top: 1.2rem;
}

.trust-band {
  margin-top: 1.2rem;
  padding: 1.6rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-card {
  border-radius: 22px;
  padding: 1.2rem;
  border: 1px solid rgba(7, 42, 125, 0.09);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(247, 250, 255, 0.92)
  );
  box-shadow: 0 18px 36px rgba(7, 34, 92, 0.08);
}

.trust-card h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-split,
.two-column-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-band,
.service-showcase,
.contact-band {
  padding: 1.6rem;
}

.service-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.service-band-grid.reverse {
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
}

.service-band-grid > .section-heading {
  margin-bottom: 0;
}

.service-band-grid > .section-heading p:last-of-type {
  margin-bottom: 0;
}

.service-band-grid > .section-heading p,
.service-band-grid > .section-heading h2 {
  max-width: 74ch;
}

.service-band-grid > .section-heading p {
  margin-bottom: 0.95rem;
}

.service-aside {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.service-aside-card {
  border-radius: 24px;
  min-height: 260px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.5rem;
  border: 1px solid rgba(7, 42, 125, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(247, 250, 255, 0.92)
  );
  box-shadow: 0 18px 36px rgba(7, 34, 92, 0.08);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.service-aside-card-image::before {
  content: none;
}

.service-aside-card-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-aside-card-image::after {
  content: none;
}

.service-aside-card span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.service-aside-card strong {
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.4;
  max-width: 18ch;
}

.service-aside-stack {
  display: grid;
  gap: 0.65rem;
}

.service-aside-mini {
  border-radius: 18px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(7, 42, 125, 0.09);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(7, 34, 92, 0.08);
}

.service-showcase {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
}

.showcase-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.mini-card {
  min-height: 120px;
  border-radius: 18px;
  display: flex;
  align-items: end;
  padding: 1rem;
  color: var(--text);
  font-weight: 700;
  animation: shimmer-in 800ms ease both;
}

.mini-card-image {
  min-height: 170px;
  padding: 1rem;
  color: var(--text);
  line-height: 1.25;
}

.two-column-section > div,
.service-band > .content-split > p {
  position: relative;
  z-index: 1;
}

.two-column-section h2,
.service-band h2,
.service-showcase h2,
.contact-band h2 {
  margin-bottom: 0.75rem;
}

.two-column-section p,
.service-showcase p,
.contact-band p {
  margin-top: 0;
}

.two-column-section.alt {
  background: linear-gradient(
    180deg,
    rgba(245, 250, 255, 0.92),
    rgba(255, 255, 255, 0.96)
  );
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.process-grid article {
  border-radius: 20px;
  padding: 1.15rem;
  min-height: 210px;
  display: grid;
  gap: 0.75rem;
  animation: rise 700ms ease both;
}

.explore-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.explore-link {
  border: 1px solid rgba(7, 42, 125, 0.12);
  border-radius: 14px;
  background: rgba(252, 254, 255, 0.92);
  text-decoration: none;
  color: #1f3c68;
  padding: 0.9rem 1rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.explore-link:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 191, 216, 0.52);
}

.contact-band {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}

.contact-cta {
  min-width: 190px;
}

@media (max-width: 1320px) {
  .page-main {
    width: min(1220px, calc(100% - 1rem));
  }

  .hero-grid,
  .service-showcase,
  .two-column-section,
  .content-split,
  .process-grid,
  .service-grid,
  .value-grid,
  .industry-grid,
  .trust-grid,
  .explore-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding: 1.5rem;
  }

  .section,
  .trust-band,
  .service-band,
  .service-showcase,
  .contact-band {
    padding: 1.15rem;
  }
}

@media (max-width: 640px) {
  .page-main {
    width: calc(100% - 0.8rem);
  }

  .animated-background-logo {
    width: 82vw;
    max-width: 680px;
    opacity: 0.13;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-actions,
  .showcase-panel {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .hero,
  .trust-band,
  .service-band,
  .service-showcase,
  .contact-band {
    border-radius: 22px;
  }
}

@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes traceLogo {
  0% {
    stroke-dashoffset: 1000;
  }
  40% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes shimmer-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* premium hybrid homepage */
.hero-slate {
  background: linear-gradient(
    180deg,
    rgba(11, 15, 25, 0.92),
    rgba(11, 15, 25, 0.78)
  );
  border-color: rgba(118, 139, 174, 0.16);
  box-shadow: 0 34px 80px rgba(3, 8, 22, 0.35);
}

.hero-slate::before,
.hero-slate::after {
  content: none;
}

.hero-grid-dark {
  align-items: center;
}

.hero-copy-dark,
.hero-visual-dark {
  color: #e8eef9;
}

.hero-copy-dark h1 {
  color: #ffffff;
}

.hero-copy-dark .hero-text,
.hero-copy-dark .eyebrow-light,
.hero-copy-dark .hero-link-dark {
  color: #e2e8f0;
}

.eyebrow-light {
  color: #94a3b8;
}

.hero-text-light {
  color: #cbd5e1;
}

.hero-card-dark,
.metric-card-dark {
  background: linear-gradient(
    180deg,
    rgba(18, 25, 41, 0.94),
    rgba(13, 18, 30, 0.96)
  );
  border-color: rgba(125, 149, 185, 0.14);
  box-shadow: 0 24px 44px rgba(2, 6, 18, 0.32);
}

.hero-card-dark strong,
.hero-card-dark p,
.metric-card-dark p {
  color: #cbd5e1;
}

.hero-card-dark strong,
.metric-card-dark span {
  color: #ffffff;
}

.hero-card-label-light {
  color: #94a3b8;
}

.hero-link-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(141, 220, 240, 0.2);
  box-shadow: none;
}

.hero-link-dark:hover {
  border-color: rgba(141, 220, 240, 0.42);
  box-shadow: 0 16px 30px rgba(2, 6, 18, 0.22);
}

.hero-metrics-dark .metric-card-dark span {
  color: #8ddcf0;
}

.page-main .section:nth-of-type(n + 2) {
  margin-top: 1.25rem;
}

.section-intro,
.service-band,
.two-column-section,
.service-showcase,
.process-section,
.contact-band {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(248, 250, 252, 0.98)
  );
}

.section-intro .service-card,
.process-section article,
.contact-band,
.service-band,
.two-column-section,
.service-showcase {
  border-radius: 24px;
}

.service-card p,
.content-split p,
.two-column-section p,
.service-showcase p,
.contact-band p,
.process-grid p {
  color: #5b7091;
}

.section-lead {
  font-size: 1.02rem;
  max-width: 78ch;
}

.service-card {
  min-height: 280px;
}

.service-card:nth-child(odd),
.process-grid article:nth-child(odd),
.mini-card:nth-child(odd) {
  animation-delay: 60ms;
}

.service-card:nth-child(even),
.process-grid article:nth-child(even),
.mini-card:nth-child(even) {
  animation-delay: 120ms;
}

.service-card h3,
.process-grid h3 {
  font-size: 1.18rem;
  line-height: 1.25;
}

.service-card:hover,
.process-grid article:hover,
.mini-card:hover {
  transform: translateY(-4px);
}

.process-section article {
  min-height: 240px;
}

.contact-band {
  padding: 2rem;
}

@media (max-width: 1320px) {
  .hero-slate {
    padding: 1.5rem;
  }

  .service-card {
    min-height: 0;
  }

  .service-band-grid,
  .service-band-grid.reverse {
    grid-template-columns: 1fr;
  }

  .service-aside-card {
    min-height: 220px;
  }

  .value-card-image {
    min-height: 240px;
  }

  .mini-card-image {
    min-height: 150px;
  }
}

@media (max-width: 640px) {
  .hero-slate {
    padding: 1.15rem;
  }

  .hero-copy-dark h1 {
    font-size: clamp(2.05rem, 10vw, 3.2rem);
  }

  .contact-band {
    padding: 1.35rem;
  }
}

/* Final responsive navigation refinements */
.submenu.cascade-menu,
.cascade-flyout {
  scrollbar-width: thin;
  scrollbar-color: #8bb8dd #eef6fd;
}

.submenu.cascade-menu::-webkit-scrollbar,
.cascade-flyout::-webkit-scrollbar,
.nav-shell.mobile-open .menu::-webkit-scrollbar {
  width: 7px;
}

.submenu.cascade-menu::-webkit-scrollbar-thumb,
.cascade-flyout::-webkit-scrollbar-thumb,
.nav-shell.mobile-open .menu::-webkit-scrollbar-thumb {
  border: 2px solid #eef6fd;
  border-radius: 999px;
  background: #8bb8dd;
}

@media (max-width: 1320px) {
  .nav-shell {
    gap: 0.45rem;
    padding: 0.7rem 0.8rem;
  }

  .nav-shell.mobile-open {
    max-height: calc(100dvh - 1rem);
    overflow: hidden;
    border-color: rgba(15, 78, 145, 0.16);
    box-shadow: 0 20px 55px rgba(4, 36, 76, 0.2);
  }

  .nav-shell .menu {
    order: 2;
    gap: 0.3rem;
    padding: 0;
  }

  .nav-shell.mobile-open .menu {
    max-height: calc(100dvh - 190px);
    padding: 0.55rem 0.15rem 0.65rem;
    border-top: 1px solid #e4edf7;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .nav-actions {
    display: none;
    order: 3;
    padding: 0.15rem 0 0;
  }

  .nav-shell.mobile-open .nav-actions {
    display: flex;
  }

  .nav-actions .connect-cta {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .menu-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 0.2rem;
    align-items: center;
  }

  .menu-item:not(.has-submenu) {
    grid-template-columns: 1fr;
  }

  .menu-item > .menu-link {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: left;
  }

  .menu-item > .submenu-toggle {
    width: 44px;
    height: 44px;
    margin: 0;
    border: 1px solid #dceaf7;
    border-radius: 11px;
    background: #f3f8fd;
  }

  .menu-item.active > .submenu-toggle {
    color: #075a9c;
    background: #e5f4ff;
  }

  .submenu.cascade-menu,
  .menu-item.active > .submenu.cascade-menu {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0.15rem 0 0;
    border-radius: 14px;
  }

  .submenu.cascade-menu {
    max-height: 0;
    border-width: 0;
    overflow: hidden;
  }

  .menu-item.active > .submenu.cascade-menu {
    max-height: none;
    padding: 0;
    border-width: 1px;
    overflow: visible;
  }

  .cascade-menu__header {
    padding: 0.8rem 0.85rem 0.72rem;
  }

  .cascade-menu__header p {
    margin-top: 0.3rem;
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .cascade-list {
    padding: 0.42rem;
  }

  .cascade-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    min-height: 46px;
  }

  .submenu.cascade-menu .cascade-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.65rem 0.7rem;
    font-size: 0.82rem;
  }

  .cascade-child-toggle {
    width: 42px;
    min-height: 42px;
    align-self: center;
  }

  .cascade-flyout,
  .cascade-item.is-open > .cascade-flyout,
  .cascade-item.is-open:hover > .cascade-flyout,
  .cascade-item.is-open:focus-within > .cascade-flyout {
    width: auto;
    margin: 0.15rem 0.35rem 0.5rem 0.85rem;
    padding: 0.35rem;
    border-left: 3px solid #27b9d0;
    background: #f8fbff;
  }

  .cascade-flyout__heading {
    padding: 0.45rem 0.6rem 0.3rem;
  }

  .submenu.cascade-menu .cascade-flyout a {
    min-height: 44px;
    padding: 0.62rem;
  }

  .submenu.cascade-menu .cascade-menu__all {
    min-height: 44px;
    margin: 0 0.5rem 0.55rem;
    padding: 0.7rem;
    background: #edf7ff;
  }
}

@media (max-width: 480px) {
  .site-header {
    width: calc(100% - 0.7rem);
  }

  .nav-shell {
    padding: 0.6rem 0.65rem;
    border-radius: 17px;
  }

  .brand img {
    height: 42px;
    max-width: 158px;
  }

  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-shell.mobile-open .menu {
    max-height: calc(100dvh - 176px);
  }
}

/* Cascading service navigation */
.submenu.cascade-menu {
  width: 410px;
  display: flex;
  flex-direction: column;
  grid-auto-flow: row;
  grid-template-rows: none;
  padding: 0;
  gap: 0;
  overflow: visible;
  border-color: rgba(15, 78, 145, 0.14);
  background: #ffffff;
}

.cascade-menu__header {
  padding: 1rem 1.05rem 0.9rem;
  border-bottom: 1px solid #e6eef8;
  background: linear-gradient(145deg, #f5faff, #ffffff);
}

.cascade-menu__eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: #2875ba;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.submenu.cascade-menu .cascade-menu__hub {
  display: inline-flex;
  padding: 0;
  color: #082d5f;
  font-family: var(--font-heading);
  font-size: 1.03rem;
  font-weight: 800;
}

.submenu.cascade-menu .cascade-menu__hub::before,
.submenu.cascade-menu .cascade-link::before,
.submenu.cascade-menu .cascade-flyout a::before,
.submenu.cascade-menu .cascade-menu__all::before {
  content: none;
}

.cascade-menu__header p {
  margin: 0.4rem 0 0;
  color: #53677f;
  font-size: 0.79rem;
  line-height: 1.5;
}

.cascade-list,
.cascade-flyout {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cascade-list {
  padding: 0.55rem;
}

.cascade-item {
  position: relative;
  min-width: 0;
}

.cascade-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  align-items: stretch;
}

.submenu.cascade-menu .cascade-link {
  min-width: 0;
  padding: 0.58rem 0.7rem;
  color: #183a60;
  font-size: 0.81rem;
  font-weight: 650;
  line-height: 1.35;
}

.cascade-child-toggle {
  position: relative;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1c679f;
  cursor: pointer;
}

.cascade-child-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-65%, -50%) rotate(45deg);
}

.cascade-item:hover > .cascade-row,
.cascade-item:focus-within > .cascade-row,
.cascade-item.is-open > .cascade-row {
  border-radius: 9px;
  background: #edf7ff;
}

.cascade-child-toggle:hover,
.cascade-child-toggle:focus-visible {
  background: #dbeeff;
  outline: 2px solid transparent;
}

.cascade-flyout {
  position: absolute;
  top: -0.5rem;
  left: calc(100% + 0.35rem);
  width: 360px;
  padding: 0.55rem;
  border: 1px solid rgba(15, 78, 145, 0.14);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(4, 36, 76, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  z-index: 40;
}

.cascade-item:hover > .cascade-flyout,
.cascade-item:focus-within > .cascade-flyout,
.cascade-item.is-open > .cascade-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.cascade-flyout__heading {
  padding: 0.55rem 0.65rem 0.4rem;
  color: #62758c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submenu.cascade-menu .cascade-flyout a {
  padding: 0.58rem 0.65rem;
  color: #163d67;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.submenu.cascade-menu .cascade-link:hover,
.submenu.cascade-menu .cascade-flyout a:hover {
  color: #075a9c;
  background: #edf7ff;
  transform: none;
}

.submenu.cascade-menu .cascade-menu__all {
  margin: 0 0.65rem 0.7rem;
  padding: 0.65rem 0.72rem;
  border-top: 1px solid #e4edf7;
  border-radius: 8px;
  color: #075a9c;
  font-size: 0.78rem;
  font-weight: 800;
}

.cascade-menu__empty {
  display: grid;
  gap: 0.25rem;
  margin: 0.65rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: #f2f8fd;
  color: #556b82;
  font-size: 0.78rem;
  line-height: 1.45;
}

.cascade-menu__empty strong {
  color: #173f68;
}

@media (min-width: 1321px) {
  .submenu.cascade-menu,
  #submenu-custom.cascade-menu {
    width: min(420px, calc(100vw - 2rem));
    max-height: none;
    overflow: visible;
  }

  #submenu-custom .cascade-list {
    display: block;
  }

  .cascade-menu__header {
    position: relative;
    z-index: 4;
  }

  .cascade-flyout {
    position: absolute;
    top: -0.5rem;
    left: calc(100% - 1px);
    display: block;
    width: min(360px, calc(100vw - 2rem));
    max-height: calc(100dvh - 112px);
    margin: 0;
    padding: 0.55rem;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 24px 52px rgba(4, 36, 76, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    pointer-events: none;
  }

  .cascade-item:hover > .cascade-flyout,
  .cascade-item:focus-within > .cascade-flyout,
  .cascade-item.is-open > .cascade-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  .cascade-item.flyout-left > .cascade-flyout {
    right: calc(100% - 1px);
    left: auto;
    transform: translateX(-8px);
  }

  .cascade-item.flyout-left:hover > .cascade-flyout,
  .cascade-item.flyout-left:focus-within > .cascade-flyout,
  .cascade-item.flyout-left.is-open > .cascade-flyout {
    transform: translateX(0);
  }

  .cascade-child-toggle::after {
    transform: translate(-65%, -50%) rotate(45deg);
  }

  .cascade-item:hover .cascade-child-toggle::after,
  .cascade-item:focus-within .cascade-child-toggle::after,
  .cascade-child-toggle[aria-expanded="true"]::after {
    transform: translate(-65%, -50%) rotate(45deg);
  }
}

@media (max-width: 1320px) {
  .submenu.cascade-menu {
    width: 100%;
    display: block;
    max-height: 0;
    overflow: hidden;
  }

  .menu-item.active > .submenu.cascade-menu {
    max-height: min(64vh, 620px);
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .cascade-menu__header {
    padding: 0.85rem 0.9rem 0.7rem;
  }

  .cascade-list {
    display: block;
    padding: 0.4rem 0.55rem;
  }

  .cascade-flyout {
    position: static;
    display: none;
    width: auto;
    margin: 0 0.35rem 0.35rem 1rem;
    padding: 0.35rem;
    border-radius: 10px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .cascade-item:hover > .cascade-flyout,
  .cascade-item:focus-within > .cascade-flyout {
    display: none;
  }

  .cascade-item.is-open > .cascade-flyout,
  .cascade-item.is-open:hover > .cascade-flyout,
  .cascade-item.is-open:focus-within > .cascade-flyout {
    display: block;
  }

  .cascade-child-toggle::after {
    transform: translate(-50%, -65%) rotate(135deg);
  }

  .cascade-child-toggle[aria-expanded="true"]::after {
    transform: translate(-50%, -35%) rotate(-45deg);
  }
}

/* Current-page treatment for service hubs and focused service pages. */
.menu-item.current > .menu-link {
  color: #062e69;
  background: linear-gradient(180deg, rgba(230, 240, 255, 0.95), rgba(235, 250, 255, 0.76));
  font-weight: 750;
}

.menu-item.current > .menu-link::before {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: 0.22rem;
  left: 0.8rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0e489b, #11bfd8);
}

.submenu.submenu--tiered {
  grid-auto-flow: initial;
  grid-template-rows: none;
  align-items: stretch;
  width: min(690px, calc(100vw - 2rem));
  padding: 0.85rem;
  gap: 0.75rem;
}

.submenu--tiered.submenu--two {
  grid-template-columns: repeat(2, minmax(225px, 1fr));
}

.submenu--tiered.submenu--three {
  grid-template-columns: repeat(3, minmax(205px, 1fr));
  width: min(835px, calc(100vw - 2rem));
}

.submenu--tiered.submenu--four {
  grid-template-columns: repeat(4, minmax(205px, 1fr));
  width: min(1080px, calc(100vw - 2rem));
}

.submenu-group {
  display: grid;
  align-content: start;
  gap: 0.28rem;
  padding: 0.72rem;
  border: 1px solid rgba(14, 72, 155, 0.1);
  border-radius: 13px;
  background: rgba(248, 251, 255, 0.86);
}

.submenu-group--hub {
  background: linear-gradient(145deg, rgba(229, 241, 255, 0.94), rgba(238, 252, 255, 0.96));
}

.submenu-group--tier2 {
  background: linear-gradient(145deg, rgba(240, 247, 255, 0.97), rgba(246, 251, 255, 0.97));
}

.submenu-group--tier3 {
  background: linear-gradient(145deg, rgba(235, 250, 255, 0.96), rgba(241, 253, 250, 0.96));
}

.submenu-group--tier4 {
  background: linear-gradient(145deg, rgba(248, 246, 255, 0.97), rgba(243, 250, 255, 0.97));
}

.submenu--tiered .submenu-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  min-height: 1.65rem;
  margin: 0 0 0.2rem;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 750;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.24rem 0.46rem;
  border-radius: 999px;
  background: #0e489b;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.tier-badge--three {
  background: #087f8c;
}

.tier-badge--one {
  background: #dce9fb;
  color: #072e68;
}

.tier-badge--four {
  background: #6d4bc3;
  font-size: 0.54rem;
}

.submenu--tiered .submenu-tier4-link {
  margin-left: 0.55rem;
  border-left: 2px solid rgba(109, 75, 195, 0.24);
  background: rgba(109, 75, 195, 0.045);
  font-size: 0.82rem;
}

.submenu--tiered .submenu-tier4-link::before {
  display: none;
}

.submenu--tiered .submenu-directory-link {
  margin-top: 0.25rem;
  border: 1px dashed rgba(8, 127, 140, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: #0a6670;
  font-weight: 760;
}

.submenu--tiered .submenu-hub {
  display: block;
  padding: 0.78rem;
  border: 1px solid rgba(14, 72, 155, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.submenu--tiered .submenu-hub::before {
  display: none;
}

.submenu-hub span {
  display: block;
  color: #082e69;
  font-weight: 780;
  line-height: 1.25;
}

.submenu-hub small {
  display: block;
  margin-top: 0.35rem;
  color: #526d8e;
  font-size: 0.76rem;
  line-height: 1.4;
}

.site-tier-trail {
  position: relative;
  z-index: 2;
  margin: 0 0 0.8rem;
}

.site-tier-trail ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(14, 72, 155, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(7, 34, 92, 0.055);
  list-style: none;
  backdrop-filter: blur(10px);
}

.site-tier-trail li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: #55708f;
  font-size: 0.75rem;
}

.tier-trail__kicker {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0.23rem 0.4rem;
  border-radius: 999px;
  background: #e7f2ff;
  color: #0e489b;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-tier-trail a,
.site-tier-trail [aria-current="page"] {
  color: #193c67;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.site-tier-trail a:hover {
  color: #0755b4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tier-trail__separator {
  color: #9db0c6;
  font-weight: 500;
}

@media (max-width: 1320px) {
  .menu-item.current > .menu-link::before {
    top: 0.65rem;
    right: auto;
    bottom: 0.65rem;
    left: 0.2rem;
    width: 3px;
    height: auto;
  }

  .submenu.submenu--tiered,
  .submenu--tiered.submenu--two,
  .submenu--tiered.submenu--three,
  .submenu--tiered.submenu--four {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0;
    padding: 0;
    border-width: 0;
    overflow: hidden;
  }

  .menu-item.active > .submenu.submenu--tiered {
    max-height: min(58vh, 560px);
    gap: 0.45rem;
    padding: 0.55rem;
    border-width: 1px;
    overflow-y: auto;
  }

  .submenu-group {
    padding: 0.55rem;
  }
}

@media (max-width: 640px) {
  .site-tier-trail ol {
    align-items: flex-start;
    padding: 0.62rem;
  }

  .site-tier-trail li {
    flex-wrap: wrap;
    font-size: 0.7rem;
  }
}

@media (max-width: 1320px) {
  .menu-item.active > .submenu.cascade-menu {
    max-height: none;
    overflow: visible;
  }
}

/* Keep the complete service tree inside the mobile viewport. */
@media (max-width: 1320px) {
  .nav-shell.mobile-open {
    display: flex;
    max-height: calc(100dvh - 1rem);
    overflow: hidden;
  }

  .nav-shell.mobile-open .menu {
    flex: 0 1 100%;
    flex-basis: 100%;
    width: 100%;
    min-height: 0;
    max-height: calc(100dvh - 165px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .nav-shell.mobile-open .menu-item {
    contain: inline-size;
  }

  .menu-item,
  .menu-item > .menu-link,
  .submenu.cascade-menu,
  .cascade-menu__header,
  .cascade-list,
  .cascade-row,
  .cascade-flyout {
    min-width: 0;
    max-width: 100%;
  }

  .submenu.cascade-menu,
  .menu-item.active > .submenu.cascade-menu {
    position: static;
    inset: auto;
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: 100%;
    width: 100%;
    overflow-x: hidden;
    transform: none;
  }

  .menu-item.active > .submenu.cascade-menu {
    overflow-x: clip;
    overflow-y: visible;
  }

  .submenu.cascade-menu a,
  .cascade-menu__header p {
    overflow-wrap: anywhere;
  }

  .cascade-flyout,
  .cascade-item.is-open > .cascade-flyout {
    box-sizing: border-box;
    inline-size: calc(100% - 0.7rem);
    max-inline-size: calc(100% - 0.7rem);
    width: calc(100% - 0.7rem);
    margin-right: 0;
    margin-left: 0.7rem;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .site-header {
    top: 0.35rem;
  }

  .nav-shell.mobile-open {
    max-height: calc(100dvh - 0.7rem);
  }

  .nav-shell.mobile-open .menu {
    padding-right: 0;
    padding-left: 0;
    scrollbar-gutter: auto;
  }

  .cascade-menu__header {
    padding-inline: 0.7rem;
  }

  .cascade-list {
    padding-inline: 0.3rem;
  }
}

/* Shared standard for every current and future “On this page” guide. */
body .page-main nav.site-sticky-guide {
  position: sticky;
  z-index: 120;
  top: 5.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  max-height: calc(100vh - 6.4rem);
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  overflow: auto;
  border: 1px solid #cbdfea;
  border-radius: 4px 16px 4px 4px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(6, 35, 93, 0.09);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

body .page-main nav.site-sticky-guide > :is(strong, span) {
  flex: 0 0 auto;
  margin-right: auto;
  color: #06295f;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

body .page-main nav.site-sticky-guide > div {
  display: flex;
  flex: 1 1 680px;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: center;
}

body .page-main nav.site-sticky-guide a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0.28rem 0.25rem;
  border: 0;
  border-bottom: 2px solid #c5dbe6;
  border-radius: 0;
  background: transparent;
  color: #0b4f95;
  font-size: 0.75rem;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
}

body .page-main nav.site-sticky-guide a:hover,
body .page-main nav.site-sticky-guide a:focus-visible {
  border-bottom-color: #08a9bf;
  background: #eef8fb;
  color: #063c7a;
}

@media (max-width: 1320px) {
  body .page-main nav.site-sticky-guide {
    top: 7.25rem;
    max-height: calc(100vh - 8.25rem);
  }
}

@media (max-width: 820px) {
  body .page-main nav.site-sticky-guide {
    position: static;
    max-height: none;
    overflow: visible;
  }

  body .page-main nav.site-sticky-guide > :is(strong, span) {
    width: 100%;
  }

  body .page-main nav.site-sticky-guide > div {
    flex-basis: 100%;
  }
}

@media print {
  body .page-main nav.site-sticky-guide {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
/* Compact page start: the fixed navigation clearance is provided by body.
   Page layouts should not add a second large top offset. */
body {
  padding-top: 98px;
}

body > main.page-main,
body > main.tier-content-main {
  margin-top: 1rem;
}

body.home-page > main.home-main,
body.research-page > main.research-main {
  padding-top: 1rem;
}

@media (max-width: 1320px) {
  body {
    padding-top: 92px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 84px;
  }

  body > main.page-main,
  body > main.tier-content-main {
    margin-top: 0.75rem;
  }

  body.home-page > main.home-main,
  body.research-page > main.research-main {
    padding-top: 0.75rem;
  }
}
/* ===== Business Web Application Development ===== */
/* Clean, approachable, conversion-focused design */

main.page-main {
  width: min(1220px, calc(100% - 2rem));
  margin: 4rem auto 3.5rem;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.14;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

p, li {
  line-height: 1.72;
  color: #27436c;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0b4f95;
}

/* ─── Section Shared ─── */
.section-card {
  border: 1px solid rgba(7, 42, 125, 0.11);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(247,251,255,0.93));
  box-shadow: 0 18px 40px rgba(6, 35, 93, 0.1);
  margin-top: 1.2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.section-card h2 { color: #062863; }
.section-card p, .section-card li { color: #27436c; }

.section-heading { max-width: 80ch; }
.section-heading p:not(.eyebrow) { margin-top: 0.7rem; }

/* ─── BIZ HERO ─── */
.biz-hero {
  border: 1px solid rgba(7, 42, 125, 0.11);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(247,251,255,0.93));
  box-shadow: 0 18px 40px rgba(6, 35, 93, 0.1);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.biz-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17,191,216,0.08), transparent 65%);
  pointer-events: none;
}

.biz-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.biz-hero-copy h1 { margin-top: 0.5rem; }

.biz-hero-copy p {
  margin-top: 0.8rem;
  font-size: 1rem;
}

.biz-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.biz-primary-btn {
  min-height: 50px;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  text-decoration: none;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
  border: 1px solid rgba(8, 60, 138, 0.2);
  color: #08306f;
  background: rgba(245, 250, 255, 0.75);
}

.biz-primary-btn.solid {
  color: #ffffff;
  background: linear-gradient(130deg, #042b7a, #11bfd8);
  box-shadow: 0 14px 26px rgba(3, 35, 106, 0.25);
  border: none;
}

.biz-primary-btn:hover { transform: translateY(-2px); }
.biz-primary-btn.solid:hover { box-shadow: 0 18px 32px rgba(3, 35, 106, 0.32); }

.biz-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.biz-stat {
  border: 1px solid rgba(14, 72, 155, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(233,245,255,0.88), rgba(252,255,255,0.9));
  padding: 0.75rem 0.6rem;
  text-align: center;
}

.biz-stat strong {
  display: block;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0b4f95;
}

.biz-stat span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: #385980;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.biz-hero-panel {
  display: grid;
  gap: 0.8rem;
}

.biz-hero-card {
  border: 1px solid rgba(14, 72, 155, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(233,245,255,0.88), rgba(252,255,255,0.9));
  padding: 1.1rem;
}

.biz-hero-card span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0b4f95;
  font-weight: 700;
  font-family: "Sora", "Segoe UI", sans-serif;
}

.biz-hero-card strong {
  display: block;
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: #062863;
}

.biz-hero-card p {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #27436c;
}

/* ─── TIER 3 NAV ─── */
.biz-section {
  border: 1px solid rgba(7, 42, 125, 0.11);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(247,251,255,0.93));
  box-shadow: 0 18px 40px rgba(6, 35, 93, 0.1);
  margin-top: 1rem;
  padding: clamp(1.15rem, 2.7vw, 2rem);
}

.tier3-nav {
  margin-top: 1rem;
}

.tier3-nav-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0b4f95;
}

.tier3-nav-header svg {
  width: 18px;
  height: 18px;
  fill: #0b4f95;
}

.tier3-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
}

.tier3-link {
  display: block;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(14, 72, 155, 0.1);
  border-radius: 12px;
  background: rgba(245, 250, 255, 0.6);
  color: #1f3c68;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.tier3-link:hover {
  background: rgba(233, 245, 255, 0.9);
  border-color: rgba(17, 191, 216, 0.4);
  transform: translateY(-2px);
}

.tier3-link.active {
  background: linear-gradient(180deg, rgba(233,245,255,0.95), rgba(252,255,255,0.95));
  border-color: rgba(17, 191, 216, 0.5);
  color: #062863;
}

/* ─── TIER 4 ─── */
.tier4-section {
  margin-top: 1rem;
}

.tier4-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0b4f95;
}

.tier4-header svg {
  width: 18px;
  height: 18px;
  fill: #0b4f95;
}

.tier4-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.tier4-card {
  border: 1px dashed rgba(14, 72, 155, 0.18);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(245, 250, 255, 0.4);
  transition: border-color 200ms ease, background 200ms ease;
}

.tier4-card:hover {
  border-color: rgba(17, 191, 216, 0.35);
  background: rgba(233, 245, 255, 0.6);
}

.tier4-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 191, 216, 0.1);
  color: #0b4f95;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Sora", "Segoe UI", sans-serif;
  margin-bottom: 0.5rem;
}

.tier4-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #062863;
}

.tier4-card p {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #27436c;
}

.tier4-coming {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: #64748b;
  font-style: italic;
}

/* ─── CONTENT GRID ─── */
.biz-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.biz-content-card {
  border: 1px solid rgba(14, 72, 155, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(233,245,255,0.88), rgba(252,255,255,0.9));
  padding: 1.2rem;
}

.biz-content-card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(17, 191, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.biz-content-card .card-icon svg {
  width: 20px;
  height: 20px;
  fill: #0b4f95;
}

.biz-content-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #062863;
}

.biz-content-card p {
  margin: 0.5rem 0 0;
  color: #27436c;
}

/* ─── FEATURES GRID ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.feature-card {
  border: 1px solid rgba(14, 72, 155, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(233,245,255,0.88), rgba(252,255,255,0.9));
  padding: 1.1rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(4, 37, 98, 0.08);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(17, 191, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: #0b4f95;
}

.feature-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #062863;
}

.feature-card p {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: #27436c;
}

/* ─── LONGFORM CONTENT ─── */
.longform-content {
  margin-top: 0.8rem;
}

.longform-content h3 {
  margin: 1.5rem 0 0.6rem;
  color: #062863;
  font-size: 1.05rem;
}

.longform-content p {
  margin: 0.6rem 0;
}

.longform-content ul,
.longform-content ol {
  padding-left: 1.3rem;
  margin: 0.6rem 0;
}

.longform-content li {
  margin-bottom: 0.5rem;
}

/* ─── BUDGET TABLE ─── */
.budget-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.budget-card {
  border: 1px solid rgba(14, 72, 155, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(233,245,255,0.88), rgba(252,255,255,0.9));
  padding: 0.9rem;
  text-align: center;
}

.budget-card .budget-range {
  display: block;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #062863;
}

.budget-card .budget-desc {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #27436c;
  line-height: 1.4;
}

/* ─── CTA ─── */
.cta-section {
  text-align: center;
  background:
    radial-gradient(820px 280px at 50% -40%, rgba(17,191,216,0.2), transparent 70%),
    linear-gradient(180deg, #fafdff, #eef7ff);
}

.cta-section h2 { color: #062863; }
.cta-section p {
  margin: 0.8rem auto 1.2rem;
  max-width: 72ch;
  color: #27436c;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.2rem;
}

/* ─── PROCESS STEPS ─── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.process-step {
  border: 1px solid rgba(14, 72, 155, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(233,245,255,0.88), rgba(252,255,255,0.9));
  padding: 1.1rem;
}

.process-step .step-num {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(17, 191, 216, 0.2);
  line-height: 1;
}

.process-step h3 {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  color: #062863;
}

.process-step p {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: #27436c;
}

/* ─── FAQ ─── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid rgba(14, 72, 155, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(233,245,255,0.88), rgba(252,255,255,0.9));
  padding: 1rem;
}

.faq-item h3 {
  margin: 0;
  font-size: 0.92rem;
  color: #062863;
}

.faq-item p {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: #27436c;
}

/* ─── TESTIMONIAL ─── */
.testimonial-block {
  border: 1px solid rgba(14, 72, 155, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(233,245,255,0.88), rgba(252,255,255,0.9));
  padding: 1.5rem;
  margin-top: 1rem;
}

.testimonial-block blockquote {
  margin: 0;
  font-size: 1rem;
  color: #1f3c68;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-block .attribution {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: #385980;
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1060px) {
  main.page-main { width: min(1220px, calc(100% - 1rem)); }
  .biz-hero-grid { grid-template-columns: 1fr; }
  .biz-content-grid,
  .features-grid,
  .tier4-grid,
  .budget-strip,
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .biz-hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .biz-hero-stats,
  .biz-content-grid,
  .features-grid,
  .tier4-grid,
  .budget-strip,
  .process-steps { grid-template-columns: 1fr; }
  .tier3-link-grid { grid-template-columns: 1fr; }
}
/* Shared conversion and visual layer.
   Page-specific styles remain responsible for the brand theme; this file adds
   reusable outcome, proof, and editorial-image patterns across the site. */

.marketing-photo {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(14, 72, 155, 0.16);
  border-radius: 18px;
  background: #dceafb;
  box-shadow: 0 18px 38px rgba(3, 35, 106, 0.16);
}

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

.marketing-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(3, 18, 45, 0.88));
  pointer-events: none;
}

.marketing-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 0.9rem;
  left: 1rem;
  color: #f8fbff;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.marketing-photo--dark {
  border-color: rgba(141, 220, 240, 0.2);
  box-shadow: 0 22px 48px rgba(2, 6, 18, 0.32);
}

.outcome-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.outcome-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-height: 68px;
  padding: 0.8rem;
  border: 1px solid rgba(14, 72, 155, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #183f70;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.outcome-points li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 0.34rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #0755b4, #11bfd8);
  box-shadow: 0 0 0 4px rgba(17, 191, 216, 0.12);
}

.hero-slate .outcome-points li,
.hero-section .outcome-points li {
  border-color: rgba(141, 220, 240, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: #e5eef9;
}

.proof-policy {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 1rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid rgba(14, 72, 155, 0.13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 12%, rgba(17, 191, 216, 0.12), transparent 34%),
    linear-gradient(135deg, #08244f, #0d3868);
  color: #eef7ff;
}

.proof-policy .eyebrow,
.proof-policy h2,
.proof-policy h3,
.proof-policy p {
  color: inherit;
}

.proof-policy p {
  margin-bottom: 0;
  color: #cbdced;
}

.proof-policy__label {
  display: inline-flex;
  width: fit-content;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(141, 220, 240, 0.26);
  border-radius: 999px;
  background: rgba(141, 220, 240, 0.08);
  color: #8ddcf0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.proof-policy__checks {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.proof-policy__checks li {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(141, 220, 240, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: #e7f2fc;
  line-height: 1.5;
}

.photo-placeholder {
  display: grid;
  place-content: center;
  min-height: 220px;
  padding: 1rem;
  border: 1px dashed rgba(14, 72, 155, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(17, 191, 216, 0.12), transparent),
    #edf6ff;
  color: #31557e;
  text-align: center;
}

.photo-placeholder strong {
  color: #082e69;
}

.photo-placeholder span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.form-note {
  margin: 0.65rem 0 0;
  color: #56708f;
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-note a,
.contact-method-card a,
.contact-info-card a {
  color: #0754a8;
  font-weight: 700;
}

/* Prevent very long service guides from feeling like an uninterrupted wall. */
.page-main > section:nth-of-type(n + 3) {
  scroll-margin-top: 7rem;
}

@media (max-width: 900px) {
  .outcome-points,
  .proof-policy {
    grid-template-columns: 1fr;
  }

  .marketing-photo {
    min-height: 230px;
  }
}

@media (max-width: 560px) {
  .outcome-points {
    grid-template-columns: 1fr;
  }

  .outcome-points li {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-photo,
  .outcome-points li {
    animation: none !important;
    transition: none !important;
  }
}


/* Keep hero promises readable and visually separate from supporting copy. */
.page-main > .reveal:first-of-type {
  /* A tall mobile hero may never reach an observer's percentage threshold.
     The first meaningful section must remain visible even without JavaScript. */
  opacity: 1;
  transform: none;
}

.hero-slate .hero-copy > h1,
.hero-section .hero-copy > h1,
.biz-hero-copy > h1,
.contact-hero-copy > h1,
.about-hero-copy > h1 {
  margin-bottom: 1.1rem;
}

.hero-slate .hero-copy > h1 {
  max-width: 14ch;
  line-height: 1.02;
}

.section-heading h2 {
  margin-bottom: 0.75rem;
}

.section-heading > p:not(.eyebrow),
.section-lead {
  max-width: 76ch;
}

/* A consistent, restrained interaction layer across all page card systems. */
:is(
  .value-card,
  .benefit-card,
  .domain-card,
  .process-grid article,
  .faq-grid article,
  .faq-card,
  .process-step,
  .why-card,
  .feature-card,
  .service-card,
  .contact-info-card,
  .location-card,
  .mini-card
) {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

:is(
  .value-card,
  .benefit-card,
  .domain-card,
  .process-grid article,
  .faq-grid article,
  .faq-card,
  .process-step,
  .why-card,
  .feature-card,
  .service-card,
  .contact-info-card,
  .location-card,
  .mini-card
):hover {
  border-color: rgba(14, 72, 155, 0.2);
  box-shadow: 0 18px 38px rgba(7, 34, 92, 0.1);
  transform: translateY(-3px);
}

.marketing-photo img {
  transition: transform 420ms ease;
}

.marketing-photo:hover img {
  transform: scale(1.025);
}

:is(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(17, 191, 216, 0.72);
  outline-offset: 3px;
}

.tier-specializations {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(17, 191, 216, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.98));
}

.tier-specialization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.tier-specialization-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tier-specialization-grid--single {
  grid-template-columns: minmax(0, 720px);
}

.tier-specialization-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 250px;
  padding: clamp(1.25rem, 2.6vw, 1.9rem);
  overflow: hidden;
  border: 1px solid rgba(17, 191, 216, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(17, 191, 216, 0.18), transparent 35%),
    linear-gradient(145deg, #08244f, #0d3868);
  box-shadow: 0 18px 40px rgba(7, 34, 92, 0.12);
  color: #eaf5ff;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.tier-specialization-card--regulated {
  background:
    radial-gradient(circle at 100% 0, rgba(67, 214, 190, 0.2), transparent 35%),
    linear-gradient(145deg, #092c4d, #0b4a5d);
}

.tier-specialization-card--cost {
  background:
    radial-gradient(circle at 100% 0, rgba(243, 150, 46, 0.2), transparent 35%),
    linear-gradient(145deg, #35230b, #76501e);
}

.tier-specialization-card--cloud {
  background:
    radial-gradient(circle at 100% 0, rgba(99, 163, 255, 0.24), transparent 35%),
    linear-gradient(145deg, #102851, #174c80);
}

.tier-specialization-card:hover {
  border-color: rgba(141, 220, 240, 0.56);
  box-shadow: 0 22px 48px rgba(7, 34, 92, 0.18);
  transform: translateY(-4px);
}

.tier-specialization-card__badge {
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.33rem 0.55rem;
  border: 1px solid rgba(141, 220, 240, 0.28);
  border-radius: 999px;
  background: rgba(141, 220, 240, 0.1);
  color: #8ddcf0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tier-specialization-card h3 {
  margin: 0 0 0.7rem;
  color: #ffffff;
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  line-height: 1.16;
}

.tier-specialization-card p {
  margin: 0;
  color: #cadbec;
  line-height: 1.62;
}

.tier-specialization-card__link {
  align-self: end;
  margin-top: 1.15rem;
  color: #8ddcf0;
  font-size: 0.84rem;
  font-weight: 780;
}

/* The hierarchy is visible, but each tier keeps a distinct design role. */
body[data-site-tier="2"] .site-tier-trail ol {
  border-color: rgba(14, 72, 155, 0.13);
  background: rgba(249, 252, 255, 0.82);
}

body[data-site-tier="3"] .site-tier-trail ol {
  border-color: rgba(8, 127, 140, 0.16);
  background: linear-gradient(90deg, rgba(244, 253, 252, 0.88), rgba(247, 251, 255, 0.84));
}

body[data-site-tier="3"] .tier-trail__kicker {
  background: #ddf5f2;
  color: #08747c;
}

body[data-site-tier="4"] .site-tier-trail ol {
  border-color: rgba(109, 75, 195, 0.18);
  background: linear-gradient(90deg, rgba(249, 247, 255, 0.9), rgba(244, 252, 255, 0.86));
}

body[data-site-tier="4"] .tier-trail__kicker {
  background: #eee8ff;
  color: #5e3eaa;
}

/* Semantic visual stories add breathing room without pretending stock is proof. */
.visual-evidence-section {
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid rgba(8, 58, 126, 0.12);
  border-radius: 25px;
  background:
    radial-gradient(circle at 92% 8%, rgba(17, 191, 216, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 253, 0.97));
  box-shadow: 0 17px 40px rgba(7, 34, 92, 0.075);
}

.visual-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.visual-evidence-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 58, 126, 0.11);
  border-radius: 19px;
  background: #e9f2fb;
}

.visual-evidence-card img {
  display: block;
  width: 100%;
  min-height: 285px;
  max-height: 420px;
  object-fit: cover;
  transition: transform 420ms ease;
}

.visual-evidence-card:hover img {
  transform: scale(1.025);
}

.visual-evidence-card figcaption {
  min-height: 62px;
  padding: 0.76rem 0.85rem;
  background: #ffffff;
  color: #496783;
  font-size: 0.74rem;
  line-height: 1.5;
}

.visual-evidence-note {
  margin: 0.85rem 0 0;
  padding-left: 0.72rem;
  border-left: 3px solid rgba(11, 135, 147, 0.35);
  color: #526d88;
  font-size: 0.78rem;
  line-height: 1.55;
}

/* Static Tier 3 directories connect each Tier 2 hub to its canonical child pages. */
.blueprint-directory {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 3.25rem);
  border: 1px solid rgba(8, 58, 126, 0.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 2%, rgba(16, 190, 214, 0.13), transparent 29%),
    linear-gradient(145deg, #f9fcff 0%, #eef7fc 58%, #f7fbff 100%);
  box-shadow: 0 22px 56px rgba(7, 34, 92, 0.08);
}

.blueprint-directory::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #0e489b, #0ba6b6);
  content: "";
}

.blueprint-directory__intro {
  max-width: 800px;
}

.blueprint-directory__intro h2 {
  max-width: 760px;
  margin: 0 0 0.75rem;
  color: #092f68;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.12;
}

.blueprint-directory__intro > p:not(.eyebrow) {
  max-width: 740px;
  margin: 0;
  color: #45627f;
  line-height: 1.7;
}

.blueprint-directory__count {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(14, 72, 155, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #0b508c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.blueprint-directory__groups {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.4rem, 3vw, 2.25rem);
}

.blueprint-directory-group {
  padding: clamp(1rem, 2.5vw, 1.55rem);
  border: 1px solid rgba(8, 58, 126, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(7, 34, 92, 0.045);
}

.blueprint-directory-group__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.blueprint-directory-group__heading h3 {
  margin: 0 0 0.3rem;
  color: #0b3f79;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1.25;
}

.blueprint-directory-group__heading p {
  max-width: 700px;
  margin: 0;
  color: #57718a;
  font-size: 0.8rem;
  line-height: 1.55;
}

.blueprint-directory-group__heading > span {
  flex: 0 0 auto;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: #e6f5f7;
  color: #08747c;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.blueprint-directory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blueprint-directory-link {
  position: relative;
  display: flex;
  min-height: 74px;
  flex-direction: column;
  justify-content: center;
  gap: 0.34rem;
  padding: 0.78rem 2.35rem 0.78rem 0.9rem;
  border: 1px solid rgba(8, 58, 126, 0.1);
  border-radius: 13px;
  background: #f9fcff;
  color: #153f6c;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.blueprint-directory-link::after {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  color: #0b8d9d;
  content: "\2192";
  font-size: 1rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.blueprint-directory-link:hover {
  border-color: rgba(11, 141, 157, 0.32);
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(7, 34, 92, 0.08);
  transform: translateY(-2px);
}

.blueprint-directory-link:focus-visible {
  outline: 3px solid rgba(13, 140, 156, 0.32);
  outline-offset: 2px;
}

.blueprint-directory-link__title {
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.35;
}

.blueprint-directory-link__meta {
  color: #62809a;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.35;
}

.blueprint-directory__empty {
  display: grid;
  gap: 0.32rem;
  max-width: 740px;
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(8, 58, 126, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: #506d88;
  line-height: 1.55;
}

.blueprint-directory__empty strong {
  color: #123f70;
}

@media (max-width: 640px) {
  .hero-slate .hero-copy > h1,
  .hero-section .hero-copy > h1,
  .biz-hero-copy > h1,
  .contact-hero-copy > h1,
  .about-hero-copy > h1 {
    margin-bottom: 0.9rem;
  }

  .tier-specialization-grid {
    grid-template-columns: 1fr;
  }

  .tier-specialization-grid--three,
  .visual-evidence-grid {
    grid-template-columns: 1fr;
  }

  .tier-specialization-card {
    min-height: 0;
  }

  .blueprint-directory {
    padding: 1.2rem 1rem 1.25rem 1.15rem;
    border-radius: 20px;
  }

  .blueprint-directory-group {
    padding: 0.9rem;
  }

  .blueprint-directory-group__heading {
    display: grid;
  }

  .blueprint-directory-group__heading > span {
    width: fit-content;
  }

  .blueprint-directory-list {
    grid-template-columns: 1fr;
  }

  .blueprint-directory-link {
    min-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-photo img,
  :is(
    .value-card,
    .benefit-card,
    .domain-card,
    .process-grid article,
    .faq-grid article,
    .faq-card,
    .process-step,
    .why-card,
    .feature-card,
    .service-card,
    .contact-info-card,
    .location-card,
    .mini-card,
    .tier-specialization-card,
    .blueprint-directory-link
  ) {
    transition: none !important;
  }
}
