:root {
  --current: #063b4c;
  --current-deep: #032c3a;
  --mist: #dce8e7;
  --ink: #102d35;
  --coral: #f06449;
  --coral-dark: #b93727;
  --white: #f8fbfa;
  --edge: rgba(6, 59, 76, 0.22);
  --sans: "Inter", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--current-deep);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--mist) url("assets/periscope-water-hero.jpg") center / cover no-repeat fixed;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(238, 246, 245, 0.93) 0%, rgba(230, 241, 240, 0.84) 50%, rgba(220, 234, 233, 0.58) 78%, rgba(5, 48, 62, 0.3) 100%),
    linear-gradient(180deg, rgba(248, 251, 250, 0.34), rgba(220, 232, 231, 0.2) 60%, rgba(3, 44, 58, 0.12));
  content: "";
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  clip: auto;
  background: var(--white);
  border: 2px solid var(--current);
  border-radius: 0.25rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.75rem max(1.5rem, calc((100vw - 96rem) / 2));
  background: rgba(235, 244, 243, 0.68);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.38rem;
  text-decoration: none;
  letter-spacing: -0.035em;
}

.wordmark-primary {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
}

.wordmark-secondary {
  font-size: clamp(0.85rem, 1.35vw, 1.05rem);
  font-weight: 500;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.2vw, 3.5rem);
  padding-top: 4px;
}

.primary-navigation a {
  border: 0;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.primary-navigation a {
  padding-block: 0.55rem;
  border-bottom: 1px solid transparent;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible {
  border-color: currentColor;
}

.primary-navigation a[aria-current="page"] {
  border-color: var(--current);
}

.nav-contact {
  padding: 0.72rem 1rem !important;
  color: var(--white);
  background: var(--coral-dark) !important;
  border: 1px solid var(--coral-dark) !important;
  border-radius: 0.2rem;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  background: #94291f !important;
  border-color: #94291f !important;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  width: min(100% - 3rem, 96rem);
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(14rem, 29vh, 18rem) clamp(0rem, 8vw, 8rem) clamp(4rem, 8vh, 7rem);
}

.hero-copy {
  max-width: 68rem;
}

.audience-line {
  width: fit-content;
  margin: 0 0 1.6rem;
  padding-bottom: 0.45rem;
  color: var(--current);
  border-bottom: 1px solid rgba(6, 59, 76, 0.42);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 600;
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6.2vw, 6.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.01;
  text-wrap: balance;
}

.headline-fixed {
  display: block;
}

.rotator-shell {
  display: grid;
  grid-template-rows: max-content;
  width: max-content;
  max-width: calc(100vw - 12rem);
  height: 1.18em;
  margin-top: 0.1em;
  overflow: hidden;
  color: var(--coral-dark);
}

.rotating-phrase {
  display: block;
  grid-area: 1 / 1;
  width: fit-content;
  padding-bottom: 0.06em;
  font-size: 0.82em;
  line-height: 1.12;
  text-decoration-line: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.09em;
  white-space: nowrap;
}

.rotating-phrase.is-leaving-up {
  animation: phrase-leave-up 560ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.rotating-phrase.is-entering-up {
  animation: phrase-enter-up 560ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.hero-summary {
  max-width: 44rem;
  margin: clamp(1.7rem, 3vh, 2.6rem) 0 0;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 500;
  line-height: 1.65;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  width: min(100% - 3rem, 96rem);
  margin: -3.25rem auto 0;
  padding-bottom: 1.5rem;
}

.cookie-preferences {
  padding: 0.35rem 0;
  color: var(--current);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(6, 59, 76, 0.45);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
}

.cookie-preferences:hover,
.cookie-preferences:focus-visible {
  border-color: currentColor;
}

.about-main {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 80rem);
  margin-inline: auto;
  padding: clamp(9.5rem, 16vh, 11.5rem) 0 5rem;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  column-gap: clamp(3rem, 8vw, 7rem);
  align-items: end;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.about-intro .audience-line {
  grid-column: 1 / -1;
}

.about-intro h1 {
  max-width: 11ch;
  font-size: clamp(3.6rem, 7vw, 6.8rem);
}

.about-lede {
  grid-column: 2;
  grid-row: 2;
  margin: 0 0 0.8rem;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  font-weight: 600;
  line-height: 1.55;
}

.about-supporting {
  grid-column: 2;
  margin: 0;
  color: rgba(16, 45, 53, 0.86);
  font-size: 0.98rem;
  line-height: 1.72;
}

.partners-section {
  border-top: 1px solid rgba(6, 59, 76, 0.38);
}

.section-marker {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: baseline;
  padding: 1.35rem 0 clamp(2.5rem, 5vw, 4rem);
}

.section-marker p,
.about-cta-kicker {
  margin: 0;
  color: var(--current);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-marker h2,
.about-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: rgba(242, 248, 247, 0.62);
  border-block: 1px solid rgba(6, 59, 76, 0.28);
  backdrop-filter: blur(14px);
}

.partner-profile {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(1.25rem, 2.6vw, 2rem);
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.partner-profile + .partner-profile {
  border-left: 1px solid rgba(6, 59, 76, 0.24);
}

.partner-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.02);
}

.partner-copy {
  min-width: 0;
}

.partner-credentials {
  margin: 0 0 0.55rem;
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.partner-copy h3 {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.partner-copy > p:not(.partner-credentials) {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.68;
}

.partner-details {
  display: grid;
  gap: 1rem;
  margin: 1.6rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(6, 59, 76, 0.2);
}

.partner-details div {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0.7rem;
}

.partner-details dt,
.partner-details dd {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.partner-details dt {
  color: var(--current);
  font-weight: 600;
}

.partner-details dd {
  color: rgba(16, 45, 53, 0.82);
}

.about-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  background: var(--current-deep);
}

.about-cta-kicker {
  margin-bottom: 0.8rem;
  color: rgba(248, 251, 250, 0.72);
}

.about-cta h2 {
  max-width: 19ch;
}

.about-cta-link {
  display: inline-block;
  padding: 0.95rem 1.2rem;
  color: var(--white);
  background: var(--coral-dark);
  border: 1px solid var(--coral-dark);
  border-radius: 0.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.about-cta-link:hover,
.about-cta-link:focus-visible {
  background: #94291f;
  border-color: #94291f;
}

.about-footer {
  width: min(100% - 3rem, 80rem);
  margin-top: -3.5rem;
}

.services-main {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 86rem);
  margin-inline: auto;
  padding: clamp(9.5rem, 16vh, 11.5rem) 0 5rem;
}

.services-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  column-gap: clamp(3rem, 8vw, 7rem);
  align-items: end;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.services-intro .audience-line {
  grid-column: 1 / -1;
}

.services-intro h1 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 6.8vw, 6.4rem);
}

.services-intro-copy {
  grid-column: 2;
  grid-row: 2;
}

.services-intro-copy p {
  margin: 0;
  color: rgba(16, 45, 53, 0.86);
  font-size: 0.98rem;
  line-height: 1.72;
}

.services-intro-copy .services-lede {
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  font-weight: 600;
  line-height: 1.55;
}

.rate-guide {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--white);
  background: var(--current-deep);
}

.rate-guide-heading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  align-items: baseline;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(248, 251, 250, 0.28);
}

.rate-guide-heading p,
.practice-label,
.services-close-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.rate-guide-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.rate-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.rate-list > div {
  padding: 1.7rem clamp(1rem, 2.2vw, 2rem) 1.55rem;
}

.rate-list > div:first-child {
  padding-left: 0;
}

.rate-list > div + div {
  border-left: 1px solid rgba(248, 251, 250, 0.22);
}

.rate-list dt {
  min-height: 2.5em;
  color: rgba(248, 251, 250, 0.72);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
}

.rate-list dd {
  margin: 0.55rem 0 0;
  font-size: 0.74rem;
  font-weight: 500;
}

.rate-list dd span {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.rate-note {
  max-width: 72ch;
  margin: 0;
  padding-top: 1.1rem;
  color: rgba(248, 251, 250, 0.62);
  border-top: 1px solid rgba(248, 251, 250, 0.28);
  font-size: 0.72rem;
  line-height: 1.55;
}

.service-index {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(6, 59, 76, 0.32);
  font-size: 0.8rem;
}

.service-index span {
  margin-right: auto;
  color: rgba(16, 45, 53, 0.66);
}

.service-index a {
  color: var(--current);
  font-weight: 600;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.25em;
}

.practice-section {
  scroll-margin-top: 7rem;
  padding-top: clamp(4rem, 7vw, 6rem);
}

.practice-heading {
  display: grid;
  grid-template-columns: minmax(18rem, 1.15fr) minmax(18rem, 0.85fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-bottom: clamp(2.2rem, 4vw, 3.5rem);
}

.practice-label {
  margin-bottom: 0.65rem;
  color: var(--coral-dark);
}

.practice-heading h2,
.services-close h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.practice-summary {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.68;
}

.practice-rate {
  margin: 0;
  color: var(--current);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.practice-rate span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.service-groups {
  display: grid;
  background: rgba(242, 248, 247, 0.68);
  border-block: 1px solid rgba(6, 59, 76, 0.28);
  backdrop-filter: blur(14px);
}

.service-groups-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-groups-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-group {
  min-width: 0;
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
}

.service-group + .service-group {
  border-left: 1px solid rgba(6, 59, 76, 0.22);
}

.service-group h3 {
  min-height: 2.5em;
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.group-rate {
  margin: -0.6rem 0 1.25rem;
  color: var(--coral-dark);
  font-size: 0.7rem;
  font-weight: 600;
}

.service-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding: 0.72rem 0 0.72rem 1rem;
  border-top: 1px solid rgba(6, 59, 76, 0.16);
  font-size: clamp(0.76rem, 0.9vw, 0.84rem);
  line-height: 1.45;
}

.service-list li::before {
  position: absolute;
  top: 1.05rem;
  left: 0;
  width: 0.4rem;
  height: 1px;
  background: var(--coral-dark);
  content: "";
}

.service-group-accent {
  color: var(--white);
  background: var(--current);
}

.service-group-accent .group-rate {
  color: #ff9f8b;
}

.service-group-accent .service-list li {
  border-color: rgba(248, 251, 250, 0.2);
}

.service-group-accent .service-list li::before {
  background: var(--coral);
}

.services-close {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  background: var(--current-deep);
}

.services-close-kicker {
  margin-bottom: 0.75rem;
  color: rgba(248, 251, 250, 0.68);
}

.services-close h2 {
  max-width: 19ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.services-close div > p:last-child {
  max-width: 64ch;
  margin: 1rem 0 0;
  color: rgba(248, 251, 250, 0.72);
  font-size: 0.88rem;
  line-height: 1.6;
}

.services-footer {
  width: min(100% - 3rem, 86rem);
  margin-top: -3.5rem;
}

.simple-page {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 96rem);
  min-height: 100svh;
  margin-inline: auto;
  padding: 2rem max(0rem, calc((100% - 80rem) / 2));
}

.simple-page-copy {
  max-width: 54rem;
  padding-top: clamp(8rem, 22vh, 14rem);
}

.simple-page h1 {
  max-width: 12ch;
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--coral-dark);
  font-weight: 600;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

@keyframes phrase-leave-up {
  to { opacity: 0; transform: translateY(-48%); }
}

@keyframes phrase-enter-up {
  from { opacity: 0; transform: translateY(48%); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .rotator-shell {
    width: auto;
    max-width: none;
    height: 2.22em;
  }

  .rotating-phrase {
    white-space: normal;
  }

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

  .partner-photo {
    width: min(100%, 13rem);
  }

  .service-groups-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-groups-four .service-group:nth-child(3) {
    border-top: 1px solid rgba(6, 59, 76, 0.22);
    border-left: 0;
  }

  .service-groups-four .service-group:nth-child(4) {
    border-top: 1px solid rgba(6, 59, 76, 0.22);
  }

  .practice-heading {
    grid-template-columns: minmax(17rem, 1fr) minmax(16rem, 0.9fr) auto;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  body.menu-open {
    overflow: hidden;
  }

  .hero {
    width: min(100% - 2rem, 96rem);
  }

  .site-footer {
    width: min(100% - 2rem, 96rem);
  }

  .site-header {
    padding: 1.2rem 1rem;
  }

  .wordmark {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    line-height: 1;
  }

  .wordmark-secondary {
    margin-top: 0.22rem;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
  }

  .menu-button {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.4rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.72rem 0.55rem;
    background: rgba(248, 251, 250, 0.65);
    border: 1px solid var(--edge);
    border-radius: 50%;
    cursor: pointer;
  }

  .menu-button span {
    width: 100%;
    height: 1px;
    background: var(--current);
    transition: transform 180ms ease;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(0.22rem) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-0.22rem) rotate(-45deg);
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    width: 100vw;
    height: calc(100dvh - 100%);
    padding: 2rem 1rem max(2rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: rgb(220, 232, 231);
    backdrop-filter: blur(12px);
  }

  .primary-navigation.is-open {
    display: flex;
  }

  .primary-navigation a {
    font-size: 1.25rem;
  }

  .hero {
    padding: clamp(12.5rem, 27vh, 14.5rem) 0 2.5rem;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.55rem, 11.8vw, 4.25rem);
    line-height: 1.04;
  }

  .rotator-shell {
    width: auto;
    max-width: none;
    height: 2.08em;
  }

  .rotating-phrase {
    line-height: 1.16;
    white-space: normal;
  }

  .hero-summary {
    max-width: 34rem;
    padding-right: 1rem;
  }

  .about-main {
    width: min(100% - 2rem, 80rem);
    padding-top: 8.5rem;
  }

  .about-intro {
    display: block;
    padding-bottom: 3.5rem;
  }

  .about-intro h1 {
    margin-bottom: 1.7rem;
    font-size: clamp(3.1rem, 16vw, 4.75rem);
  }

  .about-lede {
    font-size: 1.05rem;
  }

  .section-marker {
    display: block;
    padding-bottom: 2.2rem;
  }

  .section-marker p {
    margin-bottom: 0.7rem;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-profile {
    grid-template-columns: minmax(7.5rem, 0.78fr) minmax(0, 1.22fr);
    padding: 1.25rem 0;
    background: rgba(242, 248, 247, 0.68);
  }

  .partner-profile + .partner-profile {
    border-top: 1px solid rgba(6, 59, 76, 0.24);
    border-left: 0;
  }

  .partner-copy h3 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }

  .partner-details div {
    display: block;
  }

  .partner-details dt {
    margin-bottom: 0.2rem;
  }

  .about-cta {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    align-items: start;
    margin-inline: -1rem;
    padding: 2rem 1rem;
  }

  .about-cta-link {
    width: fit-content;
  }

  .about-footer {
    width: min(100% - 2rem, 80rem);
  }

  .services-main {
    width: min(100% - 2rem, 86rem);
    padding-top: 8.5rem;
  }

  .services-intro {
    display: block;
    padding-bottom: 3.5rem;
  }

  .services-intro h1 {
    margin-bottom: 1.7rem;
    font-size: clamp(3rem, 14.5vw, 4.6rem);
  }

  .services-lede {
    font-size: 1.05rem;
  }

  .rate-guide {
    margin-inline: -1rem;
    padding: 1.5rem 1rem;
  }

  .rate-guide-heading {
    display: block;
  }

  .rate-guide-heading p {
    margin-bottom: 0.65rem;
  }

  .rate-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rate-list > div {
    padding: 1.25rem 0.8rem;
  }

  .rate-list > div:first-child,
  .rate-list > div:nth-child(3) {
    padding-left: 0;
  }

  .rate-list > div:nth-child(3),
  .rate-list > div:nth-child(4) {
    border-top: 1px solid rgba(248, 251, 250, 0.22);
  }

  .rate-list > div:nth-child(3) {
    border-left: 0;
  }

  .service-index {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .service-index span {
    margin: 0 0 0.3rem;
  }

  .practice-section {
    scroll-margin-top: 5rem;
    padding-top: 4rem;
  }

  .practice-heading {
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
  }

  .practice-summary {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .service-groups-three,
  .service-groups-four {
    grid-template-columns: 1fr;
  }

  .service-group + .service-group,
  .service-groups-four .service-group:nth-child(4) {
    border-top: 1px solid rgba(6, 59, 76, 0.22);
    border-left: 0;
  }

  .service-group h3 {
    min-height: 0;
  }

  .services-close {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    align-items: start;
    margin-inline: -1rem;
    padding: 2rem 1rem;
  }

  .services-footer {
    width: min(100% - 2rem, 86rem);
  }

  body {
    background-attachment: scroll;
  }
}

@media (max-width: 520px) {
  .partner-profile {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .partner-photo {
    width: min(100%, 12rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
