:root {
  --ink: #22354e;
  --muted: #48596e;
  --primary: #3d6298;
  --dark: #2c496f;
  --accent: #a33948;
  --pale: #edf3fa;
  --line: #d3deeb;
  --paper: #fcfdff;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
a { color: var(--dark); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible { outline: .2rem solid var(--accent); outline-offset: .25rem; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 2; transform: translateY(-200%); padding: .7rem 1rem; background: white; }
.skip:focus { transform: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--pale);
  border-bottom: 1px solid #bdcee4;
  box-shadow: 0 .2rem .75rem #22354e12;
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.5rem, 2.5vw, 2rem);
  min-height: 5.5rem;
  padding-block: .65rem;
}
.nav-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.header-brand { display: block; }
.header-brand img { width: 100%; height: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; border: 1px solid var(--primary); padding: .57rem 1.15rem; border-radius: .45rem; text-align: center; text-decoration: none; font-weight: 700; }
.nav-link {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: .2rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: underline .08em transparent;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--primary);
  text-decoration-color: currentColor;
  text-decoration-thickness: .08em;
}
.primary { background: var(--primary); color: white; }
.primary:hover { background: var(--dark); }
.outline { background: white; }
.outline:hover { background: var(--pale); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button {
    transition: background-color 160ms ease-out, border-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out;
  }
  .button:hover { transform: translateY(-1px); box-shadow: 0 2px 5px #22354e20; }
  .button:active { transform: none; box-shadow: none; }
  .nav-link { transition: color 160ms ease-out, text-decoration-color 160ms ease-out; }
  .service-list summary { transition: color 160ms ease-out, background-color 160ms ease-out; }
}
.hero { background: #f3f7fc; }
.hero-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2rem, 5vw, 5.25rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.eyebrow { color: var(--primary); font-weight: 750; font-size: .93rem; margin: 0 0 .7rem; }
.hero .eyebrow { color: var(--accent); font-size: 1.125rem; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1.06; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
h2 { font-size: clamp(2.4rem, 4.4vw, 3.65rem); }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .5rem; }
p { margin: 0; }
.intro { font-size: 1.2rem; color: var(--muted); max-width: 64ch; margin: 1.35rem 0 1.6rem; }
.actions { display: flex; gap: 1.15rem; align-items: center; flex-wrap: wrap; }
.text-link { font-weight: 650; }
#testimonials-heading { margin-bottom: 1rem; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.testimonials-viewport:focus-visible { outline: .2rem solid var(--accent); outline-offset: .15rem; }
.testimonials-viewport { position: relative; max-height: 24rem; overflow: auto; }
.testimonials-list { display: grid; gap: .75rem; padding-bottom: .75rem; }
.testimonials-more { display: none; font: inherit; font-weight: 700; color: var(--dark); cursor: pointer; }
.testimonial { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); }
.testimonial-stars { color: #8a510d; letter-spacing: .1em; }
.testimonial blockquote { margin: .35rem 0 0; }
.testimonial blockquote p + p { margin-top: .6em; }
.testimonial figcaption { margin-top: .55rem; color: var(--dark); font-weight: 700; }
.testimonials-scene { display: none; }
@media (width > 48rem) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .testimonials-viewport.is-scrolling:not(:focus) { overflow: hidden; }
  .is-scrolling:not(:focus) > .testimonials-list {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .is-scrolling:not(:focus) .testimonials-scene {
    display: block;
    position: relative;
    height: 24rem;
    overflow: hidden;
    perspective: 600px;
    mask-image:
      linear-gradient(to bottom, transparent, #000 17% 83%, transparent),
      linear-gradient(to right, transparent, #000 12% 88%, transparent);
    mask-composite: intersect;
  }
  .testimonials-plane {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    display: grid;
    grid-template-columns: repeat(4, clamp(9rem, 17vw, 12rem));
    gap: .75rem;
    height: 34rem;
    transform: translate(-50%, -50%) translateZ(-65px) rotateX(18deg) rotateY(-10deg) rotateZ(15deg);
  }
  .testimonials-column { overflow: hidden; }
  .testimonials-track { animation: testimonial-marquee var(--duration) linear infinite; }
  .testimonials-column:nth-child(2) .testimonials-track,
  .testimonials-column:nth-child(3) .testimonials-track { animation-direction: reverse; }
  .testimonials-track .testimonial { font-size: .875rem; line-height: 1.45; padding: .75rem; }
  .is-scrolling:hover .testimonials-track { animation-play-state: paused; }
}
@keyframes testimonial-marquee {
  to { transform: translateY(-50%); }
}
.visit-strip { background: #e5eef9; color: var(--ink); }
.strip-inner { display: flex; align-items: center; gap: 2rem; padding-block: 1.1rem; }
.strip-inner div { flex: 1; display: flex; gap: .7rem 1rem; flex-wrap: wrap; }
.strip-inner a { font-weight: 650; }
.section { padding-block: clamp(3rem, 7vw, 5.2rem); }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 1.75rem;
}
.approach-grid > div { border-top: 1px solid var(--line); padding-top: 1rem; }
.approach-grid p { color: var(--muted); max-width: 60ch; }
#services { border-top: 1px solid var(--line); }
.section-intro { margin-top: 1rem; color: var(--muted); }
.team-grid { display: grid; gap: 1rem; margin-top: 1.8rem; }
.service-list { display: grid; gap: .7rem; margin-top: 1.8rem; }
.service-list details { border: 1px solid var(--line); border-radius: .55rem; background: white; }
.service-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: .9rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.15rem;
  font-weight: 700;
}
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary::after {
  content: "";
  flex: 0 0 .6rem;
  height: .6rem;
  margin-right: .2rem;
  border: solid var(--primary);
  border-width: 0 .13rem .13rem 0;
  transform: translateY(-.15rem) rotate(45deg);
}
.service-list details[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.service-list summary:hover { color: var(--primary); background-color: #f3f7fc; border-radius: .55rem; }
.service-list summary:focus-visible { outline: .2rem solid var(--accent); outline-offset: .15rem; border-radius: .4rem; }
.service-description { padding: 0 1.25rem 1.15rem; color: var(--muted); max-width: 72ch; }
.service-description ul { padding-inline-start: 1.25rem; margin: .55rem 0 0; }
.service-description li + li { margin-top: .25rem; }
.service-description p + p, .service-description ul + p { margin-top: .6rem; }
.headshot { width: 10rem; height: 10rem; object-fit: cover; object-position: center 22%; margin-top: 1rem; border-radius: .5rem; }
.team-grid { grid-template-columns: repeat(2, 1fr); }
.team-grid article, .visit-card { padding: 1.3rem; border: 1px solid var(--line); border-radius: .55rem; background: white; }
.visit-card { margin-top: 1.8rem; }
.visit-card p { max-width: 70ch; }
.team-grid p, .visit-card p, address { color: var(--muted); }
.band { background: var(--pale); }
address { margin: .9rem 0; font-style: normal; }
html { scroll-padding-top: 7rem; }
.support { display: flex; gap: 1rem 2.5rem; flex-wrap: wrap; margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
footer { background: var(--pale); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; padding-block: 1.25rem; }
@media (max-width: 48rem), (hover: none) {
  .testimonials-viewport { max-height: none; overflow: visible; }
  .testimonials-more:not([hidden]) { display: inline-flex; justify-self: start; }
  .testimonials-list.is-collapsed > .testimonial:not(:first-of-type) { display: none; }
  .testimonials-list.is-collapsed > .testimonial:first-of-type blockquote {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
}
@media (max-width: 48rem) {
  .wrap { width: min(100% - 2rem, 72rem); }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 2rem; padding-block: 2rem 2.5rem; }
  .hero .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .approach-grid { grid-template-columns: 1fr; }
  .strip-inner { gap: .5rem 1.35rem; flex-wrap: wrap; }
  .strip-inner div { flex-basis: 100%; gap: 0 .7rem; }
}
@media (max-width: 44rem) {
  html { scroll-padding-top: 8rem; }
  .header-inner { grid-template-columns: minmax(5rem, 1fr) minmax(0, 1.5fr) minmax(5rem, 1fr); }
  .nav-group { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: .3rem; }
  .nav-link { font-size: .9375rem; }
}
@media (max-width: 31rem) {
  .team-grid { grid-template-columns: 1fr; }
}
