/* page shell: kill horizontal bleed (mirrors .staffing-page) */
.higher-ed-page {
  overflow-x: hidden;
  max-width: 100%;
}

/* ===== Top bar ===== */
.he-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #e9e9ea;
}

.he-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.he-topbar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  min-width: 0;
}

.he-topbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
  line-height: 0;
}

.he-topbar-divider {
  width: 1px;
  height: 28px;
  background: #d2d2d4;
  margin: 0 6px;
}

.he-topbar-tagline {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #1f1c26;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transform: translateY(2px);
  display: inline-block;
  pointer-events: none;
  user-select: none;
}

.he-topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}

.he-topbar-cta {
  flex: none;
  text-decoration: none;
  background: #5848f7;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 8px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .he-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .he-topbar-inner {
    padding: 14px 20px;
  }

  .he-topbar-divider,
  .he-topbar-tagline {
    display: none;
  }

  /* fixed nav: reserve space so hero isn't tucked under it */
  .higher-ed-page {
    padding-top: 62px;
  }

  .he-hero-top {
    text-align: left !important;
    padding: 40px 20px 12px !important;
  }

  .he-hero-title {
    font-size: clamp(32px, 8vw, 36px) !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    max-width: none !important;
  }

  .he-hero-subtitle {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin: 16px 0 0 !important;
    max-width: none !important;
  }

  .he-hero-ctas {
    justify-content: flex-start !important;
    margin-top: 24px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .he-hero-ctas a {
    flex: 1 1 0;
    min-width: 0;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 11px 14px !important;
    text-align: center;
    white-space: nowrap;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  .he-hero-ctas a:last-child {
    font-size: 12.5px !important;
    padding: 11px 12px !important;
  }

  .he-hero-chat-section {
    padding: 20px 20px 44px !important;
  }

  /* Hero chat: flatten 3D tilt + contain like staffing */
  .he-hero-chat {
    overflow: hidden;
    perspective: none;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .he-hero-chat .hero-chat-pulse {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none !important;
    animation: none !important;
  }

  .he-hero-chat .hero-chat-tilt,
  .he-hero-chat .hero-chat-tilt-y {
    width: 100%;
    transform: none !important;
    animation: none !important;
  }

  .hero-chat-wrap {
    perspective: none;
    overflow: hidden;
  }

  .hero-chat-tilt,
  .hero-chat-tilt-y {
    transform: none !important;
    animation: none !important;
  }

  .hero-chat-pulse {
    animation: none !important;
  }
}

/* hero intro: fade-in-from-bottom with subtle stagger */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-rise {
  opacity: 0;
  animation: hero-rise 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* subtle 3D tilt on the hero chat */
.hero-chat-wrap {
  perspective: 1100px;
}
.hero-chat-tilt {
  transform: rotateX(5deg);
  transform-origin: 50% 42%;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero-chat-tilt-y {
  transform-origin: 50% 42%;
  animation: hero-card-3d-idle 28s ease-in-out infinite;
}
@keyframes hero-card-3d-idle {
  0%,
  100% {
    transform: rotateX(5deg) rotateY(-5deg) translateY(0) scale(1);
  }
  25% {
    transform: rotateX(6.25deg) rotateY(-5deg) translateY(-7px) scale(1.003);
  }
  50% {
    transform: rotateX(5deg) rotateY(5deg) translateY(0) scale(1);
  }
  75% {
    transform: rotateX(6.25deg) rotateY(5deg) translateY(-7px) scale(1.003);
  }
}
.hero-chat-pulse {
  transform-origin: 50% 42%;
  animation: hero-card-scale-pulse 8.4s ease-in-out infinite;
}
.hero-chat-wrap .hero-chat-pulse {
  animation: hero-card-scale-pulse 8.4s ease-in-out infinite;
}
@keyframes hero-card-scale-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.006);
  }
}
.hero-chat-tilt .hc-card {
  box-shadow:
    0 1px 13px rgba(0, 0, 0, 0.08),
    0 26px 52px -22px rgba(31, 28, 38, 0.2);
}
