/* Reference hero artwork: preserve the existing copy and portrait, match the supplied composition. */
html,
body {
  overflow-x: hidden;
}

body {
  background: var(--paper);
}

.container {
  width: min(calc(100% - var(--gutter) * 2), 1468px);
  padding-inline: clamp(30px, 3.5vw, 72px);
}

/* Keep the PM monogram and GENESIS as one aligned wordmark. */
.site-header .brand,
.footer-brand {
  position: relative;
  align-items: center;
  padding-bottom: 14px;
}

.site-header .brand-type,
.footer-brand .brand-type {
  align-self: center;
}

.site-header .brand-name,
.footer-brand .brand-name {
  display: block;
  font-size: 30px;
  line-height: 1;
  letter-spacing: .035em;
  transform: translateY(6px);
}

.site-header .brand-descriptor,
.footer-brand .brand-descriptor {
  position: absolute;
  left: 9px;
  bottom: 0;
  display: block;
  margin-top: 0;
  white-space: nowrap;
}

/* Carry the hero's DM Sans typography through the content sections. */
main h2,
main h3,
main p,
main a,
main button,
main label,
main input,
main select,
main textarea {
  font-family: var(--sans);
}

main h2 {
  font-weight: 700;
  letter-spacing: -.045em;
}

.site-footer .footer-main > p {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.045em;
}

/* Give the expanded foundation section a balanced four-card desktop grid. */
.foundation-cards {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
}

.foundation-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.foundation-card {
  padding: 10px 8px 16px;
  border-radius: 14px;
}

.foundation-photo-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 1.35;
  margin: 0 0 14px;
}

.foundation-badge {
  display: none;
}

/* Clear service definitions */
.service-menu {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-menu-panel {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.service-menu-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.service-menu-panel h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.2;
}

.service-menu-list {
  counter-reset: service-step;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-menu-list li {
  counter-increment: service-step;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.45;
}

.service-menu-list li::before {
  content: counter(service-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.foundation-card .section-tag {
  font-size: clamp(10px, .75vw, 12px);
  padding: 5px 10px;
  margin-bottom: 16px;
}

.foundation-card h3 {
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.25;
  margin-bottom: 12px;
}

.foundation-card > p:last-child {
  font-size: clamp(13px, .9vw, 15px);
  line-height: 1.55;
}

.foundation-card:nth-child(4) .foundation-photo {
  object-position: 50% 24%;
}

@media (max-width: 1050px) {
  .foundation-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

.footer-brand .brand-investments {
  display: none;
}

/* Make the Why Choose Us artwork a true responsive circle. */
.about-visual {
  --about-visual-size: clamp(22rem, 26vw, 31.75rem);
  width: min(100%, var(--about-visual-size));
  max-width: var(--about-visual-size);
  aspect-ratio: 1;
  height: auto;
  align-self: start;
  margin: 0 auto 100px;
  padding-bottom: 0;
}

.about-section {
  align-items: start;
}

.about-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.about-visual .inset-primary {
  bottom: -84px;
}

.about-visual .inset-secondary {
  bottom: -36px;
}


.site-header {
  min-height: 96px;
  padding-block: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.primary-nav {
  gap: 38px;
}

.primary-nav > a:not(.button) {
  font-size: 15px;
  border-bottom: 0;
}

.primary-nav > a:hover,
.primary-nav > a[aria-current] {
  color: var(--ink);
  border-bottom-color: transparent;
}

.primary-nav .nav-cta {
  min-height: 52px;
  margin-left: 4px;
  padding-inline: 29px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
}

.primary-nav .nav-cta:hover {
  background: var(--blue-dark);
  color: #fff;
}

.hero {
  position: relative;
  overflow: visible;
}

.hero-grid,
.hero-baseline {
  position: relative;
  z-index: 1;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 4.5%;
  min-height: 590px;
  padding-top: 48px;
  padding-bottom: 24px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 700px;
  padding-block: 0;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
}

.hero .eyebrow::before {
  content: '';
  width: 44px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--ink);
}

.hero h1 {
  max-width: 680px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: clamp(54px, 4.6vw, 70px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.055em;
}

.hero h1 em,
.hero .marked-word {
  color: inherit;
  font-style: normal;
  font-weight: 700;
}

/* Keep the desktop line breaks while allowing "begin with people." to share a line on mobile. */
.hero h1 br + .marked-word {
  margin-left: 0;
}

.hero .marked-word {
  padding-bottom: 0;
}

.hero .underline-art {
  display: none;
}

.hero-description {
  max-width: 620px;
  margin-top: 26px;
  color: var(--body-text);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  gap: 18px;
  margin-top: 52px;
}

.hero-actions .button {
  min-height: 52px;
  padding-inline: 29px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.hero-actions .button:hover {
  background: var(--blue-dark);
}

.hero-actions .text-link {
  color: var(--navy);
  font-size: 14px;
}

.hero-background-ring {
  position: absolute;
  z-index: 0;
  left: -300px;
  bottom: -80px;
  width: 460px;
  height: auto;
  max-width: none;
  opacity: .16;
  pointer-events: none;
}

.hero-art {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  justify-items: end;
  align-items: center;
  min-height: 520px;
}

.hero-ring-network {
  position: absolute;
  z-index: 2;
  top: 34%;
  right: 260px;
  width: 420px;
  height: auto;
  max-width: none;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-art .portrait-frame {
  justify-self: end;
  z-index: 3;
  width: min(400px, 100%);
  max-width: 400px;
  max-height: none;
  margin-right: 0;
  aspect-ratio: .76;
  transform: none;
}

@media (max-width: 1050px) {
  .site-header {
    min-height: 102px;
  }

  .primary-nav {
    gap: 20px;
  }

  .primary-nav > a:not(.button) {
    font-size: 13px;
  }

  .primary-nav .nav-cta {
    min-height: 46px;
    padding-inline: 21px;
    font-size: 13px;
  }

  .hero-grid {
    min-height: 500px;
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .hero .eyebrow {
    margin-bottom: 24px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: clamp(48px, 5.5vw, 60px);
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 36px;
  }

  .hero-art {
    min-height: 440px;
  }

  .hero-ring-network {
    right: 120px;
    width: 420px;
  }

  .hero-art .portrait-frame {
    width: min(340px, 100%);
    transform: none;
  }
}

@media (max-width: 800px) {
  .site-header {
    min-height: 88px;
    padding-block: 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 42px;
    padding-top: 48px;
  }

  .hero .eyebrow {
    margin-bottom: 24px;
    font-size: 13px;
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(48px, 8vw, 66px);
  }

  .hero-description {
    max-width: 580px;
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 42px;
  }

  .hero-art {
    min-height: 470px;
    justify-items: center;
  }

  .hero-art .portrait-frame {
    justify-self: center;
  }

  .hero-ring-network {
    top: 50%;
    right: 50%;
    width: 560px;
    transform: translate(50%, -50%);
  }

  .hero-background-ring {
    left: -240px;
    bottom: -190px;
    width: 430px;
  }
}

@media (max-width: 600px) {
  /* Use the reference's generous mobile text measure across every section. */
  .container {
    width: 100%;
    padding-inline: 18px;
  }

  .service-menu {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 32px;
  }

  .service-menu-panel {
    padding: 18px 14px;
  }

  .service-menu-list {
    gap: 10px;
  }

  .service-menu-list li {
    font-size: 13px;
  }

  .hero-grid {
    gap: 32px;
    padding-top: 36px;
  }

  .foundation-cards {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .foundation-card {
    display: block;
    padding: 10px 8px 14px;
  }

  .foundation-photo-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1.35;
    margin: 0 0 12px;
  }

  .foundation-card .section-tag {
    font-size: 10px;
  }

  .foundation-card h3 {
    font-size: 18px;
  }

  .foundation-card > p:last-child {
    font-size: 13px;
  }

  .hero-copy {
    text-align: center;
    margin-inline: auto;
  }

  .hero .eyebrow {
    justify-content: center;
  }

  .hero .eyebrow {
    gap: 11px;
    margin-bottom: 20px;
    font-size: 11px;
  }

  .hero .eyebrow::before {
    display: none;
  }

  .hero .eyebrow::before {
    width: 30px;
  }

  .hero h1 {
    font-size: clamp(42px, 11vw, 58px);
    letter-spacing: -.045em;
    margin-inline: auto;
  }

  .hero h1 br:nth-of-type(2) {
    display: none;
  }

  .hero h1 br:nth-of-type(2) + .marked-word {
    margin-left: .18em;
  }

  .hero-description {
    margin-top: 22px;
    font-size: 16px;
    font-weight: 500;
    max-width: none;
    width: 100%;
    margin-inline: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 38px;
    justify-content: center;
  }

  .hero-actions .button {
    min-height: 52px;
    padding-inline: 23px;
    font-size: 14px;
  }

  .hero-actions .text-link {
    font-size: 13px;
  }

  .hero-art {
    min-height: 380px;
  }

  .hero-ring-network {
    left: -15px;
    right: auto;
    top: 20%;
    width: 180px;
    transform: translateY(-50%);
  }

  .hero-art .portrait-frame {
    justify-self: end;
    width: min(278px, calc(100% - 28px));
    margin-right: 13px;
    transform: none;
  }

  .hero-background-ring {
    left: -205px;
    bottom: -135px;
    width: 340px;
  }
}

@media (min-width: 480px) and (max-width: 600px) {
  .hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 350px) {
  .hero-art {
    min-height: 330px;
  }

  .hero-ring-network {
    width: 9.375rem;
  }

  .hero-art .portrait-frame {
    width: 270px;
    transform: none;
  }
}

/* Final consistency pass: one palette, one type scale, and safer small-screen overrides. */
:root {
  --paper: #f7f7f5;
  --ink: #292d35;
  --blue: #323e80;
  --blue-dark: #252e66;
  --navy: #07142f;
  --body-text: #203b5f;
  --teal: #469da6;
  --sky: #d3e9ed;
  --muted: #5d6069;
  --line: #d4d7e2;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
}

.site-header {
  border-bottom-color: var(--line);
}

.primary-nav .nav-cta,
.hero-actions .button {
  border-color: var(--blue);
  background: var(--blue);
}

.primary-nav .nav-cta:hover,
.hero-actions .button:hover {
  background: var(--blue-dark);
}

.hero h1,
.hero-actions .text-link {
  color: var(--navy);
}

.hero-description,
.service-menu-list li {
  color: var(--body-text);
}

main h2 {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.2vw, 2.625rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.045em;
}

main h3 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.3;
}

.section-heading > p,
.center-heading > p:last-child {
  font-size: .875rem;
}

.about-copy > p:not(.section-tag),
.foundation-card > p:last-child,
.benefit-card p,
.contact-copy > p:not(.section-tag) {
  font-size: .875rem;
}

.service-card h3 {
  font-size: .9375rem;
  min-height: 2.7em;
}

.benefit-card h3 {
  font-size: .875rem;
}

.service-menu-list li {
  font-size: .9375rem;
}

.service-menu-panel {
  border-color: var(--line);
}

.service-card:nth-child(even) {
  transform: none;
}

@media (max-width: 600px) {
  .site-header .brand-name {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
  }

  .footer-brand .brand-name {
    font-size: clamp(1.2rem, 5.8vw, 1.45rem);
  }

  .site-header .brand-descriptor,
  .footer-brand .brand-descriptor {
    left: 8px;
    font-size: .5rem;
  }

  .hero-ring-network {
    width: clamp(9.375rem, 46vw, 11.25rem);
  }

  .service-card h3 {
    font-size: .875rem;
    min-height: 3.2em;
  }

  .benefit-card h3,
  .benefit-card p,
  .foundation-card > p:last-child,
  .contact-copy > p:not(.section-tag) {
    font-size: .875rem;
  }

  .foundation-card h3 {
    font-size: 1rem;
  }
}

@media (max-width: 350px) {
  .site-header .brand-name,
  .footer-brand .brand-name {
    font-size: 1.25rem;
  }

  .hero-ring-network {
    width: 9.375rem;
  }
}

/* Direct contact links: keep them visible, branded, and touch-friendly. */
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem;
}

.hero-social-links {
  margin-top: 1.125rem;
}

.social-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(247, 247, 245, .82);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.social-link svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--sky);
  transform: translateY(-1px);
}

.footer-social-links {
  justify-content: center;
}

@media (max-width: 600px) {
  .hero-social-links {
    justify-content: center;
  }

  .footer-social-links {
    width: 100%;
    order: 4;
  }

  .footer-social-links .social-link {
    flex: 1 1 8.5rem;
    justify-content: center;
  }
}

/* Refined editorial footer: a calm, structured close to the page. */
.site-footer {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  background: #edf0f6;
  color: var(--navy);
}

.site-footer::before {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue);
  content: '';
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(8rem, .6fr) minmax(18rem, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.footer-brand-block {
  min-width: 0;
}

.footer-brand-block .footer-brand {
  width: max-content;
  max-width: 100%;
}

.footer-lede {
  max-width: 23rem;
  margin: 1.25rem 0 0;
  color: var(--body-text);
  font-size: .9375rem;
  line-height: 1.65;
}

.footer-kicker {
  margin: .2rem 0 1.1rem;
  color: var(--blue);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-nav {
  display: grid;
  justify-items: start;
  gap: .75rem;
}

.footer-nav a {
  color: var(--body-text);
  font-size: .875rem;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--blue);
  transform: translateX(2px);
}

.footer-contact > p:not(.footer-kicker) {
  max-width: 24rem;
  margin: 0;
  color: var(--body-text);
  font-size: .875rem;
  line-height: 1.6;
}

.site-footer .footer-social-links {
  justify-content: flex-start;
  margin-top: 1rem;
}

.site-footer .social-link {
  background: rgba(247, 247, 245, .72);
}

.footer-cta {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .55rem;
  margin-top: 1.25rem;
  padding: .72rem 1rem;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.footer-cta img {
  width: 1.1rem;
  height: 1.1rem;
  filter: brightness(0) invert(1);
}

.footer-cta:hover,
.footer-cta:focus-visible {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.1rem 1.35rem;
  border-top: 1px solid rgba(50, 62, 128, .16);
  color: var(--muted);
  font-size: .6875rem;
}

.site-footer .footer-bottom p {
  margin: 0;
}

.site-footer .footer-bottom .text-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
  color: var(--blue);
  font-size: .75rem;
}

@media (max-width: 768px) {
  .site-footer .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(8rem, .7fr);
    gap: 2.5rem 2rem;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-footer .footer-main {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-block: 3rem 3.25rem;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.25rem;
  }

  .footer-nav .footer-kicker {
    flex-basis: 100%;
    margin-bottom: .1rem;
  }

  .footer-contact {
    grid-column: auto;
  }

  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: .65rem;
  }

  .site-footer .footer-bottom .text-link {
    margin-left: 0;
  }
}

/* Compact footer spacing while preserving readable contact targets. */
.site-footer .footer-main {
  gap: clamp(1.75rem, 4vw, 4rem);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}

.footer-lede {
  margin-top: .9rem;
}

.footer-kicker {
  margin-bottom: .75rem;
}

.footer-contact > p:not(.footer-kicker) {
  line-height: 1.45;
}

.footer-email {
  display: inline-block;
  max-width: 100%;
  margin-top: .6rem;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.site-footer .footer-social-links {
  margin-top: .75rem;
}

.footer-cta {
  margin-top: .9rem;
}

.site-footer .footer-bottom {
  padding-block: .85rem 1rem;
}

@media (max-width: 768px) {
  .site-footer .footer-main {
    gap: 2rem 1.5rem;
    padding-block: 2.25rem 2.75rem;
  }
}

@media (max-width: 600px) {
  .site-footer .footer-main {
    gap: 1.75rem;
    padding-block: 2.25rem 2.5rem;
  }
}
