/* page head */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}

.page-head .wrap {
  position: relative;
  z-index: 1;
}

.page-head h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  max-width: 22ch;
}

.page-head .lede {
  margin-block-start: 1rem;
}

.page-head__line {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  width: 100%;
  height: 90px;
  opacity: 0.8;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.925rem;
  color: var(--ink-soft);
}

.crumbs li + li::before {
  content: "/";
  margin-inline-end: 0.5rem;
  color: var(--peach);
}

.crumbs a {
  color: var(--ink-soft);
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

.section--after-head {
  padding-block-start: clamp(2.5rem, 5vw, 4rem);
}

.simple-page {
  max-width: 40rem;
  padding-block: 2rem;
}

.simple-page > * + * {
  margin-block-start: 1.25rem;
}

/* service detail */
.svc-detail {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .svc-detail {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}

.svc-detail__main h2 {
  font-size: 1.4rem;
  margin-block-end: 0.75rem;
}

.svc-detail__main > p {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.svc-detail__team-title {
  margin-block-start: 2.5rem;
}

.mini-people,
.other-svc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini-people a,
.other-svc__list a {
  display: flex;
  align-items: center;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
  min-height: 64px;
  padding-block: 0.85rem;
  border-block-end: 1px solid var(--line-warm);
  color: var(--ink);
  text-decoration: none;
}

.mini-people a strong,
.other-svc__list a strong {
  font-weight: 600;
}

.mini-people a span,
.other-svc__list a span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1 1 12rem;
}

.mini-people .icon,
.other-svc__list .icon {
  color: var(--teal);
}

@media (hover: hover) and (pointer: fine) {
  .mini-people a:hover strong,
  .other-svc__list a:hover strong { color: var(--teal); text-decoration: underline; }
}

.svc-detail__card,
.profile__card {
  background: var(--white);
  border: 1px solid var(--line-warm);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .svc-detail__card,
  .profile__side {
    position: sticky;
    inset-block-start: 110px;
  }
}

.svc-detail__fees-title {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-block: 1.25rem 0.25rem;
}

.svc-detail__actions,
.profile__actions {
  display: grid;
  gap: 0.6rem;
  margin-block-start: 1.5rem;
}

.svc-detail__note {
  margin-block-start: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.other-svc {
  background: var(--white);
  border-block-start: 1px solid var(--line-warm);
}

.other-svc h2 {
  font-size: 1.3rem;
  margin-block-end: 0.5rem;
}

@media (min-width: 768px) {
  .other-svc__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
  }
}

/* team page */
@media (min-width: 1100px) {
  .people--page .person-card { padding: 2.25rem; }
}

/* profile */
.profile__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .profile__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}

.profile__main > section + section {
  margin-block-start: 2.5rem;
}

.profile__main h2 {
  font-size: 1.3rem;
  margin-block-end: 0.85rem;
}

.profile__main p {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.profile__main p + p {
  margin-block-start: 0.85rem;
}

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

.profile-list li {
  position: relative;
  padding-block: 0.6rem;
  padding-inline-start: 1.5rem;
  border-block-end: 1px solid var(--line-warm);
}

.profile-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.2rem;
  inset-block-start: 1.25rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--peach);
}

.profile-list--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-list--chips li {
  padding: 0.45rem 1rem;
  border: 1px solid #d5e6e2;
  background: var(--mist);
  border-radius: 999px;
  font-size: 0.95rem;
}

.profile-list--chips li::before {
  display: none;
}

.profile__side > .text-link {
  margin-block-start: 1rem;
}

.profile__mono {
  width: 64px;
  height: 64px;
  font-size: 1.7rem;
}

.profile__card-name {
  font-weight: 700;
  font-size: 1.15rem;
}

.profile__card-role {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  margin-block-start: 0.25rem;
}

.profile__links-title {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-block: 1.5rem 0.25rem;
}

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

.profile__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 600;
}

/* contact */
.contact {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}

.contact__primary {
  display: grid;
  gap: 1rem;
}

.contact__big {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}

.contact__big:active {
  transform: scale(0.99);
}

.contact__big > span:nth-child(2) {
  display: grid;
  gap: 0.15rem;
}

.contact__big strong {
  font-size: 1.25rem;
}

.contact__big--light {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-warm);
}

.contact__phone {
  font-size: 1.15rem;
  color: var(--teal);
  font-weight: 600;
  text-align: start;
}

.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.16);
}

.contact__big--light .contact__icon {
  background: var(--mist);
  color: var(--teal);
}

.contact__icon .icon {
  width: 26px;
  height: 26px;
}

@media (hover: hover) and (pointer: fine) {
  .contact__big:hover { background: var(--teal-deep); }
  .contact__big--light:hover { background: var(--mist); }
}

.contact__facts {
  margin: 0;
  border-radius: var(--r-lg);
  background: var(--mist);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.contact__facts > div + div {
  margin-block-start: 1.25rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid #d5e6e2;
}

.contact__facts dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

.contact__facts dt .icon {
  color: var(--teal);
}

.contact__facts dd {
  margin: 0.35rem 0 0;
  padding-inline-start: 1.65rem;
  color: var(--ink-soft);
}

/* supplied portraits */
.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #e8e8e8;
}

.person-card__photo,
.profile__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-sm);
  margin-block-end: 1.25rem;
  background: #e8e8e8;
}

.person-card__photo {
  max-width: 220px;
}

.profile__photo {
  max-width: 320px;
  border-radius: var(--r-md);
}

@media (max-width: 899px) {
  .profile__side { order: -1; }
  .profile__photo { max-width: 240px; }
}


