/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0a0f1a;
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Desktop-first enterprise layout */
.site {
  min-width: 1240px;
}

.site--legal .site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 51, 0.06);
}

.page-header-bg {
  height: 200px;
  width: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.page-body {
  padding: 3rem 4vw 5rem;
  min-height: 45vh;
}

.page-placeholder {
  margin: 0;
  color: #5a6478;
  font-size: 1.05rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem 3vw;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  overflow: visible;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 51, 0.06);
}

.site-header--dark.is-solid {
  background: rgba(10, 15, 26, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header--dark.is-solid .nav-link {
  color: #e8ecf4;
}

.site-header--dark.is-solid .nav-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #050508;
  padding: 4px 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
}

.nav--enterprise {
  flex: 1;
  justify-content: flex-end;
  max-width: none;
  align-items: center;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000033;
  opacity: 0.88;
  padding: 0.35rem 0.15rem 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-dropdown__trigger:hover,
.nav-dropdown:focus-within .nav-dropdown__trigger {
  opacity: 1;
  border-bottom-color: rgba(0, 0, 51, 0.2);
}

.nav-dropdown__caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.1rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
  transform: translateY(1px);
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 300px;
  max-width: min(360px, 92vw);
  padding: 0.5rem 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 51, 0.14), 0 0 0 1px rgba(0, 0, 51, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__link {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #1a2435;
  line-height: 1.35;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nav-dropdown__link:hover {
  background: rgba(0, 0, 51, 0.05);
  border-left-color: rgba(42, 31, 92, 0.55);
  color: #000033;
}

.nav-link {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000033;
  opacity: 0.88;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  opacity: 1;
  border-bottom-color: rgba(0, 0, 51, 0.2);
}

.nav-link--cta {
  margin-left: 0.35rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  border-radius: 999px;
  border-bottom: none;
  background: rgba(0, 0, 51, 0.08);
}

.nav-link--cta:hover {
  background: rgba(0, 0, 51, 0.14);
  border-bottom-color: transparent;
}

.site-header--dark.is-solid .nav-dropdown__trigger {
  color: #e8ecf4;
}

.site-header--dark.is-solid .nav-dropdown__trigger:hover,
.site-header--dark.is-solid .nav-dropdown:focus-within .nav-dropdown__trigger {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.site-header--dark.is-solid .nav-dropdown__panel {
  background: #121826;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.site-header--dark.is-solid .nav-dropdown__link {
  color: #dce4f2;
}

.site-header--dark.is-solid .nav-dropdown__link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: rgba(140, 190, 255, 0.6);
  color: #fff;
}

.site-header--dark.is-solid .nav-link--cta {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-header--dark.is-solid .nav-link--cta:hover {
  background: rgba(255, 255, 255, 0.2);
}

.site--legal .nav-dropdown__panel {
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 51, 0.14), 0 0 0 1px rgba(0, 0, 51, 0.06);
}

.site--legal .nav-dropdown__link {
  color: #1a2435;
}

.site--legal .nav-dropdown__link:hover {
  background: rgba(0, 0, 51, 0.05);
  color: #000033;
}

/* --- Sections --- */
.section {
  position: relative;
  padding: 5.5rem 4vw;
  scroll-margin-top: 5.5rem;
}

.section--tight-top {
  padding-top: 4rem;
}

.section--gray {
  background: #f4f6f9;
}

.section--blue-tint {
  background: linear-gradient(180deg, #eef3fb 0%, #f7f9fc 100%);
}

.section--navy {
  background: #000022;
  color: #e8ecf4;
}

.section--charcoal {
  background: #1a1d24;
  color: #f2f4f8;
}

.section__title {
  text-align: center;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 920px;
  margin: 0 auto 3rem;
  color: #000033;
}

.section--navy .section__title,
.section--charcoal .section__title {
  color: inherit;
}

.section__lead {
  text-align: center;
  max-width: 720px;
  margin: -2rem auto 3rem;
  color: #5a6478;
  font-size: 1.05rem;
}

/* --- AHI Hero --- */
.ahi-hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6.5rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.ahi-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ahi-hero__rings {
  position: relative;
  width: min(120vmin, 900px);
  height: min(120vmin, 900px);
}

.ahi-ring-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: var(--rw, 50%);
  height: var(--rh, 50%);
  pointer-events: none;
}

.ahi-ring {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 0, 51, 0.22);
  animation: ahi-ring-rotate var(--dur, 80s) linear infinite;
  box-shadow: 0 0 0 1px rgba(0, 0, 51, 0.03) inset;
}

.ahi-ring::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 51, 0.04) 0 1px, transparent 1px 100%);
  background-size: 10px 10px;
  opacity: 0.5;
  animation: ahi-ring-pulse 6s ease-in-out infinite;
}

.ahi-ring-wrap:nth-child(odd) .ahi-ring {
  animation-direction: reverse;
}

@keyframes ahi-ring-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ahi-ring-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.65;
  }
}

.ahi-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  text-align: center;
}

.ahi-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #000033;
  max-width: 900px;
  margin: 0 auto 1rem;
  line-height: 1.12;
}

.ahi-hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #5a6478;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.ahi-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, #3d2b7a 0%, #2a1f5c 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(42, 31, 92, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 14px 36px rgba(42, 31, 92, 0.45);
}

.btn--ghost {
  background: transparent;
  color: #000033;
  font-weight: 600;
}

.btn--ghost svg {
  width: 1.1em;
  height: 1.1em;
}

.btn--light {
  background: #fff;
  color: #001a66;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--light:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.ahi-hero__visual {
  margin-top: 1rem;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 51, 0.12));
}

/* --- Cards --- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1120px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 51, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.card__icon {
  width: 56px;
  height: 56px;
  color: #2a1f5c;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #000033;
}

.card p {
  margin: 0;
  color: #5a6478;
  font-size: 0.95rem;
  flex: 1;
}

.card__more {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2a1f5c;
}

/* --- Solutions grid --- */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 900px) {
  .sol-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sol-item svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.6rem;
  color: #000033;
}

.sol-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2c3548;
  line-height: 1.35;
  display: block;
}

/* --- Insight cards --- */
.insights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.insight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 51, 0.06);
}

@media (max-width: 768px) {
  .insight-card {
    grid-template-columns: 1fr;
  }
}

.insight-card__img {
  min-height: 200px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.insight-card__body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insight-card__body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: #000033;
}

.insight-card__body p {
  margin: 0;
  color: #5a6478;
  font-size: 0.95rem;
}

.insight-card__more {
  margin-top: 1rem;
}

.insight-card__more a {
  font-weight: 600;
  font-size: 0.88rem;
  color: #2a5cff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Partner columns --- */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  .cols-3 {
    grid-template-columns: 1fr;
  }
}

.cols-3 svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: #2a1f5c;
}

.cols-3 h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: #000033;
}

.cols-3 p {
  margin: 0;
  color: #5a6478;
  font-size: 0.95rem;
}

/* --- AHI CTA mesh section --- */
.ahi-cta {
  position: relative;
  overflow: hidden;
  padding: 5rem 4vw;
  min-height: 360px;
}

.ahi-cta canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ahi-cta__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.ahi-cta h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

/* --- HIN: intro with dot grid --- */
.hin-intro {
  position: relative;
  padding: 5rem 4vw 3rem;
  overflow: hidden;
  min-height: 420px;
  background: #f8f9fb;
}

.hin-intro canvas#hinDotGrid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hin-intro__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hin-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hin-logo {
  width: 120px;
  height: auto;
}

.hin-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b7380;
  margin-bottom: 1rem;
}

.hin-intro__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000033;
}

.hin-intro__content p {
  color: #3d4556;
  font-size: 1.05rem;
}

.hin-intro__content p + p {
  margin-top: 1rem;
}

/* --- HIN help + constellation --- */
.hin-help {
  position: relative;
  padding: 4rem 4vw 5rem;
  overflow: hidden;
  min-height: 380px;
  background: #fff;
}

.hin-help canvas#hinConstellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hin-help__inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.hin-help h2 {
  text-align: center;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 0 0 2.5rem;
  color: #0a0f1a;
}

.hin-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .hin-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hin-features svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
  color: #1a1d24;
}

.hin-features span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3548;
}

/* --- HIN pillars --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillars h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.pillars p {
  margin: 0;
  opacity: 0.88;
  font-size: 0.95rem;
}

/* --- HIN product rows --- */
.hin-product {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 0;
}

@media (max-width: 900px) {
  .hin-product {
    grid-template-columns: 1fr;
  }
}

.hin-product h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #0a0f1a;
}

.hin-product p {
  margin: 0;
  color: #5a6478;
}

.hin-product__shot {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

/* --- HIN final CTA --- */
.hin-final {
  padding: 5rem 4vw 4rem;
}

.hin-final__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .hin-final__grid {
    grid-template-columns: 1fr;
  }
}

.hin-final h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #0a0f1a;
}

.hin-final p {
  margin: 0;
  color: #5a6478;
  font-size: 1.05rem;
  max-width: 520px;
}

.hin-final__visual {
  justify-self: end;
  opacity: 0.95;
}

@media (max-width: 900px) {
  .hin-final__visual {
    justify-self: start;
  }
}

/* --- Footer --- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0a0c14 0%, #05060a 45%, #03040a 100%);
  color: #b8c0d4;
  padding: 0;
  border-top: 1px solid rgba(42, 92, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3.25rem 4vw 1.85rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.88fr);
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
  margin: 0 0 2rem;
  padding-bottom: 2.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 900px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }
}

.site-footer__brand {
  min-width: 0;
  padding-right: clamp(0px, 2vw, 1.75rem);
}

@media (min-width: 901px) {
  .site-footer__brand {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    margin-right: 0.25rem;
  }
}

.site-footer .brand-logo {
  margin-bottom: 1rem;
  display: block;
}

.site-footer__about {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 28rem;
  color: #9aa4bd;
}

.site-footer__legal-name {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8ecf4;
}

.site-footer__contact {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.5rem;
  max-width: 28rem;
}

@media (max-width: 600px) {
  .site-footer__contact {
    grid-template-columns: 1fr;
  }
}

.site-footer__contact > div {
  margin: 0;
  min-width: 0;
}

.site-footer__contact dt {
  margin: 0 0 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b96ad;
}

.site-footer__contact dd {
  margin: 0;
  font-size: 0.93rem;
  color: #e8ecf4;
  line-height: 1.5;
}

.site-footer__contact a {
  color: #b9d6ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__contact a:hover {
  color: #fff;
}

.footer-nav {
  min-width: 0;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.35rem 1.25rem 1.35rem;
}

.footer-nav__main {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

@media (min-width: 901px) {
  .footer-nav__main {
    grid-template-columns: 1fr minmax(200px, 42%);
    grid-template-rows: auto auto;
    column-gap: 1.5rem;
    row-gap: 1.1rem;
  }

  .footer-nav__main > .footer-links {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .footer-nav__main > .footer-map-slot {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    width: 100%;
    max-width: 22rem;
    align-items: flex-end;
    text-align: right;
  }
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}

.site-footer--compact .footer-links {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-nav__main > .footer-map-slot {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

.footer-map-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  text-align: left;
}

.footer-map__label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b96ad;
}

.footer-map {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 10;
  max-height: 12.5rem;
}

.footer-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.footer-map__link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b9d6ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-map__link:hover {
  color: #fff;
}

.footer-col {
  min-width: 0;
  padding: 0 0.35rem;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8ecf4;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col li {
  margin: 0;
}

.footer-col a {
  font-size: 0.9rem;
  color: #c5ccd8;
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.site-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.15rem;
  font-size: 0.8rem;
}

.site-footer__copy {
  margin: 0;
  color: #6b7589;
  line-height: 1.5;
  flex: 1;
  min-width: min(100%, 16rem);
}

.to-top {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8ecf4;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.to-top:hover {
  background: rgba(42, 92, 255, 0.25);
  border-color: rgba(42, 92, 255, 0.45);
  color: #fff;
}

/* --- Resource hubs & long-form articles --- */
.resource-hub .article-title,
.project-hub .article-title,
.page-body > h1.article-title:first-of-type {
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  margin: 0 0 1rem;
  color: #000033;
  letter-spacing: -0.02em;
}

.resource-hub .hub-lead,
.project-hub .hub-lead,
.page-body > .hub-lead {
  max-width: 52rem;
  margin: 0 0 2.5rem;
  color: #5a6478;
  font-size: 1.05rem;
  line-height: 1.65;
}

.resource-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.resource-card,
.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 51, 0.06);
  border: 1px solid rgba(0, 0, 51, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover,
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0, 0, 51, 0.09);
}

.resource-card img,
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f0f4fb;
}

.resource-card__body,
.project-card__body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.resource-card__body h2,
.project-card__body h2 {
  margin: 0;
  font-size: 1.08rem;
  color: #000033;
}

.resource-card__body p,
.project-card__body p {
  margin: 0;
  font-size: 0.92rem;
  color: #5a6478;
  line-height: 1.55;
  flex: 1;
}

.resource-card__body a,
.project-card__body a {
  font-weight: 600;
  font-size: 0.88rem;
  color: #2a5cff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-detail {
  max-width: 46rem;
  margin: 0 auto;
}

.article-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a6478;
  font-weight: 600;
}

.article-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 2.2vw, 2.1rem);
  color: #000033;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.article-deck {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: #3d4a63;
  line-height: 1.65;
}

.article-hero,
.article-inline {
  margin: 0 0 1.75rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 51, 0.08);
}

.article-inline {
  margin-top: 2rem;
}

.article-detail p {
  margin: 0 0 1.1rem;
  color: #3d4a63;
  line-height: 1.68;
  font-size: 1.02rem;
}

.article-detail h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  color: #000033;
}

.article-end {
  margin-top: 2.5rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.text-link {
  color: #2a5cff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }
}

.quote-panel h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 2.2vw, 2.05rem);
  color: #000033;
}

.quote-panel h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  color: #000033;
}

.quote-panel .hub-lead {
  margin: 0 0 1rem;
  color: #5a6478;
  line-height: 1.65;
}

.quote-steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.quote-steps li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  color: #3d4a63;
  line-height: 1.55;
}

.quote-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #e8f0ff;
  color: #2a5cff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-form {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 51, 0.07);
  border: 1px solid rgba(0, 0, 51, 0.06);
}

.quote-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #5a6478;
  margin-bottom: 0.35rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 51, 0.12);
  font: inherit;
  background: #fafbff;
}

.quote-form textarea {
  min-height: 120px;
  resize: vertical;
}

.quote-form button[type="submit"] {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a5cff, #1a3fcc);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.quote-form button[type="submit"]:hover {
  filter: brightness(1.05);
}

.quote-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: #7a8699;
  line-height: 1.45;
}

/* --- Divider --- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 51, 0.12), transparent);
  margin: 0 4vw;
}

/* --- Legal subpages --- */
.legal-page {
  padding: 2.75rem 4vw 4rem;
  max-width: 860px;
  margin: 0 auto;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000033;
}

.legal-page .legal-meta {
  margin: 0 0 2.5rem;
  font-size: 0.9rem;
  color: #5a6478;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a0f1a;
}

.legal-page p,
.legal-page li {
  font-size: 0.98rem;
  color: #3d4556;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-page .legal-note {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: #f4f6f9;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #5a6478;
}
