:root {
  --connect-shadow: 0 24px 70px rgba(36, 49, 45, 0.10);
  --connect-radius: 1.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }

.connect-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(36,49,45,.08);
  backdrop-filter: blur(12px);
}

.connect-header .wp-block-site-logo img { max-height: 52px; width: auto; }
.connect-header .wp-block-navigation-item__content { text-decoration: none; }

.connect-eyebrow {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 700;
}

.connect-hero {
  min-height: min(780px, 86vh);
  position: relative;
}

.connect-hero::before,
.connect-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.connect-hero::before {
  width: clamp(240px, 35vw, 540px);
  height: clamp(240px, 35vw, 540px);
  right: -10vw;
  top: -6rem;
  background: rgba(170,184,174,.26);
}
.connect-hero::after {
  width: 180px;
  height: 180px;
  left: 48%;
  bottom: 4rem;
  background: rgba(183,119,91,.10);
}

.connect-photo {
  min-height: 520px;
  border-radius: var(--connect-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--connect-shadow);
  background:
    linear-gradient(180deg, transparent 40%, rgba(36,49,45,.28) 100%),
    url('../images/hero-placeholder.svg') center/cover no-repeat;
}

.connect-photo-small {
  min-height: 430px;
  border-radius: var(--connect-radius);
  background: url('../images/care-placeholder.svg') center/cover no-repeat;
  box-shadow: var(--connect-shadow);
}

.connect-photo-team {
  aspect-ratio: 4 / 3;
  border-radius: var(--connect-radius);
  background: url('../images/team-placeholder.svg') center/cover no-repeat;
  box-shadow: var(--connect-shadow);
}

.connect-card {
  height: 100%;
  border: 1px solid rgba(36,49,45,.10);
  border-radius: 1.35rem;
  background: rgba(255,255,255,.58);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.connect-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(36,49,45,.09);
  background: #fff;
}

.connect-number {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36,49,45,.18);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
}

.connect-team-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 1.25rem;
}

.connect-quote {
  border-radius: var(--connect-radius);
  min-height: 100%;
}

.connect-cta {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
}
.connect-cta::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -100px;
  bottom: -170px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
}

.connect-footer a { text-decoration: none; }
.connect-footer .wp-block-navigation { gap: .7rem; }

.connect-prose > * + * { margin-block-start: 1.25rem; }
.connect-prose h2 { margin-block-start: 2.5rem; }

@media (max-width: 781px) {
  .connect-header .wp-block-buttons { display: none; }
  .connect-hero { min-height: auto; }
  .connect-photo { min-height: 400px; }
  .connect-photo-small { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .connect-card, .wp-block-button__link { transition: none; }
}
