.profile-page {
  background: #ffffff;
}

.profile-page .profile-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 14%, rgba(34, 81, 255, .18), transparent 28%),
    linear-gradient(135deg, #051c2c 0%, #051c2c 66%, #ffffff 66%, #ffffff 100%);
  border-bottom: 0;
}

.profile-page .profile-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: clamp(2.5rem, 5vw, 5.5rem);
}

.profile-page .profile-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 81, 255, .72), transparent);
}

.profile-page .profile-kicker,
.profile-page .eyebrow {
  color: #2251ff;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
}

.profile-page .profile-hero h1,
.profile-page .profile-subheadline {
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .34);
}

.profile-page .profile-subheadline {
  max-width: 680px;
  color: rgba(255, 253, 247, .9);
}

.profile-page .profile-badges,
.profile-page .profile-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.profile-page .profile-badges {
  margin-top: 1.35rem;
}

.profile-page .profile-badges span,
.profile-page .profile-meta-item {
  border: 1px solid rgba(255, 253, 247, .28);
  border-radius: 999px;
  background: rgba(4, 31, 22, .56);
  color: #ffffff;
  padding: .68rem .9rem;
  font-weight: 850;
  line-height: 1.2;
}

.profile-page .profile-meta-strip {
  margin-top: 1.45rem;
}

.profile-page .profile-meta-item {
  display: grid;
  gap: .22rem;
  min-width: min(100%, 190px);
  border-radius: 16px;
  background: rgba(4, 31, 22, .62);
}

.profile-page .profile-meta-item small {
  color: rgba(255, 253, 247, .82);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-page .profile-meta-item strong {
  color: #ffffff;
}

.profile-page .profile-visual {
  width: 100%;
  min-height: clamp(460px, 42vw, 590px);
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: 20px;
  background: rgba(255, 253, 247, .08);
  border: 1px solid rgba(255, 253, 247, .16);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .22);
}

.profile-page .profile-portrait {
  width: min(100%, 480px);
  height: clamp(420px, 38vw, 540px);
  aspect-ratio: auto;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .24);
}

.profile-page.profile-felix .profile-portrait {
  object-position: center top;
}

.profile-page .profile-body {
  background: #ffffff;
}

.profile-page .profile-narrative {
  max-width: 980px;
}

.profile-page .profile-narrative h2 {
  color: #051c2c;
}

.profile-page .profile-section-grid {
  align-items: stretch;
}

.profile-page .profile-panel {
  border-color: rgba(5, 28, 44, .13);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(5, 28, 44, .07);
}

.profile-page .profile-panel h2,
.profile-page .profile-panel h3 {
  color: #051c2c;
}

.profile-page .profile-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.profile-page .profile-service-card {
  display: grid;
  gap: .7rem;
  min-height: 100%;
  border: 1px solid rgba(5, 28, 44, .13);
  border-radius: 16px;
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 10px 26px rgba(5, 28, 44, .06);
}

.profile-page .profile-service-card span {
  color: #8b7a54;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-page .profile-service-card h3 {
  margin: 0;
  color: #051c2c;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.profile-page .profile-service-card p {
  margin: 0;
  color: #506058;
  line-height: 1.6;
}

.profile-page .profile-service-card a {
  color: #051c2c;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-page .profile-public-note {
  border-left: 4px solid #2251ff;
  background: #fcfbf7;
}

.profile-page .profile-disclaimer-wrap {
  display: flex;
  justify-content: flex-end;
  min-height: 44px;
}

.profile-page .profile-disclaimer {
  position: relative;
}

.profile-page .profile-disclaimer summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(5, 28, 44, .18);
  border-radius: 999px;
  background: #ffffff;
  color: #051c2c;
  box-shadow: 0 12px 30px rgba(5, 28, 44, .12);
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

.profile-page .profile-disclaimer summary::-webkit-details-marker {
  display: none;
}

.profile-page .profile-disclaimer summary:focus-visible {
  outline: 3px solid rgba(34, 81, 255, .45);
  outline-offset: 4px;
}

.profile-page .profile-disclaimer-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .75rem);
  z-index: 4;
  width: min(440px, calc(100vw - 2rem));
  border: 1px solid rgba(5, 28, 44, .16);
  border-radius: 18px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 24px 60px rgba(5, 28, 44, .18);
}

.profile-page .profile-disclaimer-panel p {
  margin: 0;
  color: #506058;
  font-size: .92rem;
  line-height: 1.55;
}

.profile-page .profile-cta {
  background:
    linear-gradient(135deg, rgba(5, 28, 44, .08), transparent 32%),
    #f7f3e8;
  color: #1a2e25 !important;
}

.profile-page .profile-cta .closing-inner h2 {
  color: #051c2c !important;
  text-shadow: none !important;
}

.profile-page .profile-cta .closing-inner p {
  color: #344054 !important;
  text-shadow: none !important;
}

.profile-page .profile-cta .eyebrow {
  color: #6f540e !important;
  text-shadow: none !important;
}

.profile-page .profile-cta .hero-actions {
  justify-content: center;
}

.profile-page .profile-cta .button-primary {
  color: #ffffff !important;
  background: #051c2c !important;
  border-color: #051c2c !important;
}

.profile-page .profile-cta .button-outline,
.profile-page .profile-cta .button-secondary {
  color: #051c2c !important;
  background: #ffffff !important;
  border-color: rgba(5, 28, 44, .28) !important;
  box-shadow: 0 10px 28px rgba(5, 28, 44, .08);
}

.profile-page .profile-cta .button-outline:hover,
.profile-page .profile-cta .button-outline:focus-visible,
.profile-page .profile-cta .button-secondary:hover,
.profile-page .profile-cta .button-secondary:focus-visible {
  color: #ffffff !important;
  background: #051c2c !important;
  border-color: #051c2c !important;
}

@media (max-width: 900px) {
  .profile-page .profile-hero {
    background:
      radial-gradient(circle at top right, rgba(34, 81, 255, .14), transparent 20rem),
      linear-gradient(180deg, #051c2c 0%, #051c2c 100%);
  }

  .profile-page .profile-hero-grid {
    grid-template-columns: 1fr;
  }

  .profile-page .profile-service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .profile-page .profile-hero {
    padding-top: 52px;
  }

  .profile-page .profile-hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.7rem);
  }

  .profile-page .profile-meta-strip,
  .profile-page .profile-badges {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-page .profile-badges span,
  .profile-page .profile-meta-item {
    border-radius: 14px;
  }

  .profile-page .profile-visual {
    min-height: 0;
    padding: 1rem;
  }

  .profile-page .profile-portrait {
    width: min(100%, 340px);
    height: auto;
    aspect-ratio: 4 / 4.8;
  }

  .profile-page .profile-disclaimer-wrap {
    justify-content: flex-start;
  }

  .profile-page .profile-disclaimer-panel {
    left: 0;
    right: auto;
  }
}
