/* Interior page polish (November 2026, Paper board "botha-websites", About page).
   .has-page-header swaps the full-screen .site-hero for a calm page header (.site-page-header).
   Other interior pages adopt it by replacing has-site-hero with has-page-header and using the same markup.
   Section styles below are scoped to the page that uses them. Load before brand-polish.css (its icons override). */
.boutique-page.has-page-header {
  --page-edge: clamp(12px, 4.7vw, 68px);
  /* Content never spreads wider than the composition it was designed at;
     on large screens the page centres instead of drifting to the edges. */
  --page-max: 1800px;
  --page-pad: max(var(--page-edge), calc((100% - var(--page-max)) / 2));
  /* Opening photographs fill the first screen, but never thinner than about 2.5:1.
     Wide, short laptop windows scroll a little instead of slicing the photo into a strip. */
  --photo-min: clamp(360px, 36vw, 640px);
}

/* ---------- Light navigation on paper ---------- */
.boutique-page.has-page-header .site-header.header-area { padding: 6px var(--page-pad) 0; background: transparent; }
.boutique-page.has-page-header .site-header .header-area__inner { height: 84px; border-bottom: 0; }
.boutique-page.has-page-header .site-header.header-area .header__logo img { filter: none; }
@media (min-width: 768px) {
  .boutique-page.has-page-header .site-header .main-menu {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .boutique-page.has-page-header .site-header .main-menu > ul { gap: clamp(20px, 2.4vw, 36px); }
  .boutique-page.has-page-header .site-header .main-menu li + li { border-left: 0; }
  .boutique-page.has-page-header .site-header .main-menu li a {
    padding: 4px 0;
    color: var(--polish-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 50% calc(100% - 6px) / 0 1px no-repeat;
    transition: background-size .35s var(--polish-ease), color .2s;
  }
  .boutique-page.has-page-header .site-header .main-menu li a:hover { color: var(--polish-ink); background-size: 100% 1px; }
  .boutique-page.has-page-header .site-header .main-menu a[aria-current="page"] { color: var(--cobalt); }
  .boutique-page.has-page-header .site-header .main-menu a[aria-current="page"]::after { display: none; }
  .boutique-page.has-page-header .site-header .main-menu li.menu-contact a {
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--polish-ink);
    color: var(--polish-cream);
    transition: transform .35s var(--polish-ease), box-shadow .35s;
  }
  .boutique-page.has-page-header .site-header .main-menu li.menu-contact a::after { content: '\2197'; color: #b4b3ec; }
  .boutique-page.has-page-header .site-header .main-menu li.menu-contact a:hover {
    background-size: 0 0;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(23, 22, 27, .2);
  }
}

/* ---------- Page header: a calm opening instead of a full hero ---------- */
.site-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: end;
  column-gap: 48px;
  padding: clamp(48px, 7.2vw, 104px) var(--page-pad) 0;
}
.boutique-page .site-page-header h1 {
  margin: 0;
  color: var(--polish-ink);
  font-size: clamp(52px, 7.2vw, 104px);
  font-weight: 300;
  line-height: .97;
  letter-spacing: -.045em;
}
.site-page-header-aside { padding-bottom: 12px; }
.boutique-page .site-page-header-aside > p { margin: 0 0 24px; color: #41483f; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }

/* The header's label and actions, and About's portrait of the directors. */
.site-page-label { margin: 0 0 30px; color: var(--polish-sage); font-size: 15px; font-weight: 500; }
.site-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.boutique-page .site-page-header .site-page-portrait {
  position: relative;
  height: clamp(560px, calc(100svh - 120px), 860px);
  margin: 0 calc(-1 * var(--page-edge)) 0 0;
  overflow: hidden;
  border-radius: 26px;
  background: #d8d2c6;
}
.site-page-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 32%; }
@media (prefers-reduced-motion: no-preference) {
  .site-page-portrait img { transform: scale(1.1); transform-origin: 70% 40%; }
}

/* ---------- Buttons at the scale of the references (illos.dev, paper.design) ----------
   Compact rectangles: one solid cobalt primary, one quiet secondary. No capsules. */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.site-btn--primary { background: var(--cobalt); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(3, 2, 122, .25); }
.site-btn--primary:hover { background: var(--cobalt-deep); color: #fff; }
.site-btn--quiet { background: #e6e2d9; color: var(--polish-ink); }
.site-btn--quiet:hover { background: #ddd8cd; color: var(--polish-ink); }
.site-btn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.site-btn-icon {
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform .3s var(--polish-ease);
}
.site-btn:hover .site-btn-icon { transform: translateX(2px); }

/* Navigation: small and quiet; the contact link is the same compact cobalt button. */
@media (min-width: 768px) {
  .boutique-page.has-page-header .site-header .header-area__inner { height: 80px; }
  /* The logo is a trace of a small bitmap; below ~150px its fine lettering breaks up. */
  .boutique-page.has-page-header .site-header.header-area .header__logo img { width: clamp(150px, 10vw, 172px); }
  .boutique-page.has-page-header .site-header .main-menu > ul { gap: 28px; }
  .boutique-page.has-page-header .site-header .main-menu li a { color: #41483f; font-size: 14px; font-weight: 500; }
  .boutique-page.has-page-header .site-header .main-menu li a:hover,
  .boutique-page.has-page-header .site-header .main-menu a[aria-current="page"] { color: var(--polish-ink); }
  .boutique-page.has-page-header .site-header .main-menu a[aria-current="page"] { background-size: 100% 1px; }
  .boutique-page.has-page-header .site-header .main-menu li.menu-contact { margin-left: 4px; }
  .boutique-page.has-page-header .site-header .main-menu li.menu-contact a {
    gap: 8px;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 7px;
    background: var(--cobalt);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(3, 2, 122, .25);
  }
  .boutique-page.has-page-header .site-header .main-menu li.menu-contact a:hover { background: var(--cobalt-deep); color: #fff; transform: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
  .boutique-page.has-page-header .site-header .main-menu li.menu-contact a::after { width: 12px; height: 12px; }
}
@media (max-width: 767px) {
  .boutique-page.has-page-header .site-header .header-contact.home-button { min-height: 38px; padding: 0 13px; border-radius: 7px; background: var(--cobalt); color: #fff; font-size: 14px; }
  .boutique-page.has-page-header .site-header .side-toggle { border-radius: 7px; }
}

/* ---------- Framed page header: headline and intro side by side, the photograph framed below ---------- */
.site-page-header--framed {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  align-items: end;
  column-gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(48px, 6vw, 88px);
}
.site-page-header--framed .site-page-label { margin: 0 0 20px; color: var(--polish-sage); font-size: 14px; font-weight: 500; }
.boutique-page .site-page-header--framed h1 {
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.04em;
}
.site-page-header--framed .site-page-header-aside { padding-bottom: 6px; }
.boutique-page .site-page-header--framed .site-page-header-aside > p { margin: 0 0 22px; color: #41483f; font-size: 16px; line-height: 1.6; }
.site-page-header--framed .site-page-actions { gap: 8px; }
/* With no intro text beside the headline, the actions close the line at the column's right edge,
   flush with the photograph below. */
@media (min-width: 1024px) {
  .site-page-header--framed .site-page-header-aside:not(:has(> p)) { justify-self: end; }
}
.site-frame { margin: 0; padding: 6px 6px 0; border-radius: var(--radius-card); background: #e6e2d9; }
.site-frame-screen { position: relative; overflow: hidden; border-radius: var(--radius-inner); background: #d8d2c6; }
.site-frame-caption { display: flex; justify-content: space-between; gap: 16px; padding: 12px 10px 13px; color: var(--polish-sage); font-size: 14px; }
.site-frame-caption strong { margin-right: 6px; color: var(--polish-ink); font-weight: 600; }
.boutique-page .site-page-header .site-page-portrait.site-frame {
  grid-column: 1 / -1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  height: auto;
  margin: clamp(28px, 3.2vw, 44px) 0 0;
  overflow: visible;
  border-radius: var(--radius-card);
}
/* The header fills the first screen: the photograph takes whatever height is left. */
@media (min-width: 768px) {
  .site-page-header--framed { grid-template-rows: auto 1fr; min-height: calc(100svh - 88px); padding-bottom: clamp(14px, 1.6vw, 24px); }
  .site-page-portrait.site-frame .site-frame-screen { flex: 1; min-height: var(--photo-min); }
  .site-page-portrait.site-frame .site-frame-screen > img { position: absolute; top: 0; left: -50%; width: 150%; max-width: none; height: 100%; margin: 0; }
}
/* The photograph leaves its left side empty for text; the desktop rule above crops into the people. */
.site-page-portrait.site-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
@media (max-width: 1023px) {
  /* Tablets: headline and intro stack, so the headline keeps a full line. */
  .site-page-header--framed { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; row-gap: 24px; }
  .site-page-header--framed .site-page-header-aside { max-width: 560px; }
}
@media (max-width: 767px) {
  .site-page-header--framed { grid-template-columns: minmax(0, 1fr); row-gap: 22px; padding-top: 36px; }
  .boutique-page .site-page-header .site-page-portrait.site-frame { aspect-ratio: auto; margin-top: 8px; border-radius: 14px; }
  .site-page-portrait.site-frame .site-frame-screen { height: auto; aspect-ratio: 4 / 3; }
  .site-page-portrait.site-frame img { object-position: 88% 30%; }
  .site-frame-caption { font-size: 12px; }
  .site-frame-caption > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-btn, .site-btn-icon { transition: none; }
}

/* ---------- About: the story as a sideways journey ----------
   Stacked by default (mobile, tablet, reduced motion). about.js adds .is-pinned on large screens:
   the section pins and the three chapters travel sideways with the scroll. */
.about-journey { position: relative; padding: clamp(80px, 8.3vw, 120px) var(--page-pad) clamp(40px, 4vw, 64px); }
.about-journey-track { display: flex; flex-direction: column; gap: clamp(72px, 8vw, 112px); }
.about-chapter { position: relative; display: grid; gap: 24px; }
.about-chapter-numeral {
  margin: 0;
  color: #e6e1d6;
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 200;
  line-height: .9;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}
.about-chapter-copy { position: relative; z-index: 1; max-width: 560px; }
.about-chapter-label { margin: 0 0 16px; color: var(--polish-sage); font-size: 15px; font-weight: 500; }
.boutique-page .about-chapter-copy h2 { margin: 0 0 20px; color: var(--polish-ink); font-size: clamp(36px, 3.9vw, 56px); font-weight: 300; line-height: 1.04; letter-spacing: -.04em; }
.boutique-page .about-chapter-copy > p:last-child { margin: 0; color: #41483f; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.62; }
.boutique-page .about-chapter-photo { position: relative; margin: 0; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 3; background: #d8d2c6; }
.about-chapter-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-chapter-photo--people img { object-position: 100% 35%; }
.about-journey-progress { display: none; }
.about-progress-dots { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(23, 22, 27, .05), 0 8px 20px rgba(23, 22, 27, .06); }
.about-progress-dots i { width: 8px; height: 8px; border-radius: 999px; background: #cfcbc1; transition: width .45s var(--polish-ease), background .45s; }
.about-progress-dots i.is-active { width: 36px; background: var(--polish-ink); }

.about-journey.is-pinned { height: 100svh; padding: 0; overflow: hidden; }
.about-journey.is-pinned .about-journey-track {
  flex-direction: row;
  gap: 24px;
  width: max-content;
  height: 100%;
  padding: 72px max(var(--page-edge), calc((100vw - var(--page-max)) / 2)) 88px;
  will-change: transform;
}
.about-journey.is-pinned .about-chapter {
  display: flex;
  align-items: stretch;
  gap: clamp(32px, 3.9vw, 56px);
  /* Viewport units only: a percentage cannot resolve inside the max-content track. */
  width: min(1232px, calc(100vw - 200px));
  height: 100%;
  flex-shrink: 0;
}
.about-journey.is-pinned .about-chapter-numeral {
  position: absolute;
  z-index: 0;
  top: -2.5vh;
  left: -12px;
  /* Sized to the copy column so the photograph never covers part of the year (it hid the "82" of 1982). */
  font-size: calc(clamp(360px, 31vw, 440px) / 2.4);
}
.about-journey.is-pinned .about-chapter-copy { display: flex; flex-direction: column; justify-content: flex-end; flex: 0 0 clamp(360px, 31vw, 440px); padding-bottom: 8px; }
.boutique-page .about-journey.is-pinned .about-chapter-photo { flex: 1; aspect-ratio: auto; border-radius: 26px; }
.about-journey.is-pinned .about-journey-progress {
  position: absolute;
  z-index: 2;
  left: var(--page-pad);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #41483f;
  font-size: 14px;
  font-weight: 500;
}

/* The pinned story keeps to the page column (2026-11-25). It used to run edge to edge between an intro
   and a values panel that both sit on the column, so the page lost its edges halfway down. about.js
   measures the column (--col-x inset, --col-w width); the section is clipped to it, the track starts
   and ends on it, and each chapter is one column wide. */
.about-journey.is-pinned { clip-path: inset(0 var(--col-x, 0px)); }
.about-journey.is-pinned .about-journey-track { padding-inline: var(--col-x, max(var(--page-edge), calc((100vw - var(--page-max)) / 2))); }
.about-journey.is-pinned .about-chapter { width: var(--col-w, min(1232px, calc(100vw - 200px))); }
.about-journey.is-pinned .about-chapter-numeral { left: 0; }

/* ---------- About: three promises, one per screen ---------- */
.about-promises { padding: 0; }
.about-promises-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 5vw, 72px);
  padding: clamp(56px, 5.6vw, 80px) max(clamp(20px, 5.4vw, 78px), calc((100% - var(--page-max)) / 2)) clamp(48px, 5vw, 72px);
  border-radius: 32px;
  background: radial-gradient(90% 80% at 80% 10%, #2a2830 0%, var(--polish-ink) 62%);
  color: var(--polish-cream);
}
.about-promises-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.boutique-page .about-promises-top h2 { margin: 0; color: var(--polish-cream); font-size: clamp(28px, 2.6vw, 40px); font-weight: 300; line-height: 1.1; letter-spacing: -.03em; }
.about-promises .about-progress-dots { display: none; background: rgba(255, 253, 245, .08); box-shadow: none; }
.about-promises .about-progress-dots i { background: rgba(255, 253, 245, .25); }
.about-promises .about-progress-dots i.is-active { background: var(--polish-cream); }
.about-promise-stage { display: flex; flex-direction: column; gap: clamp(56px, 6vw, 88px); }
.about-promise { display: flex; flex-direction: column; gap: 24px; }
.boutique-page .about-promise h3 {
  max-width: 12ch;
  margin: 0;
  color: var(--polish-cream);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 300;
  line-height: .96;
  letter-spacing: -.05em;
}
.boutique-page .about-promise p { max-width: 520px; margin: 0; color: var(--polish-stone); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.57; }

.about-promises.is-pinned { padding: 14px 0; }
.about-promises.is-pinned .about-promises-panel { height: calc(100svh - 28px); }
.about-promises.is-pinned .about-progress-dots { display: inline-flex; }
.about-promises.is-pinned .about-promise-stage { position: relative; flex: 1; }
.about-promises.is-pinned .about-promise { position: absolute; inset: 0; justify-content: space-between; gap: 32px; }
.boutique-page .about-promises.is-pinned .about-promise h3 { max-width: 13ch; margin-block: auto; font-size: clamp(88px, 11.2vw, 168px); line-height: .93; letter-spacing: -.055em; }
.about-promise .promise-word { display: inline-block; }

/* ---------- About: clients drifting past ---------- */
.about-clients { padding: clamp(96px, 10vw, 140px) 0; text-align: center; }
.boutique-page .about-clients h2 { margin: 0 var(--page-pad); color: var(--polish-ink); font-size: clamp(36px, 4.4vw, 64px); font-weight: 300; line-height: 1.06; letter-spacing: -.04em; }
.about-rating { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 16px; color: #41483f; font-size: 15px; font-weight: 500; }
.about-rating:hover { color: var(--polish-ink); }
.site-rating-score { color: var(--polish-ink); font-size: 20px; font-weight: 400; letter-spacing: -.02em; }
.site-rating-stars { color: var(--polish-star); letter-spacing: .08em; }
.about-rating-arrow { width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon-arrow-diagonal) center / contain no-repeat; mask: var(--icon-arrow-diagonal) center / contain no-repeat; transition: transform .35s var(--polish-ease); }
.about-rating:hover .about-rating-arrow { transform: translate(2px, -2px); }
/* Six clients, each shown once: a still row on the content column (no repeating marquee). */
.about-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 40px;
  margin: clamp(48px, 4.4vw, 64px) 0 0;
  padding: 0 var(--page-pad);
  list-style: none;
}
.about-logos li { display: grid; place-items: center; height: 96px; flex: 0 0 auto; }
.about-logos img { display: block; width: auto; max-width: 180px; height: 46px; object-fit: contain; }
.about-logos .client-logo--dispro { height: 56px; }
.about-logos .client-logo--elmandi { width: 190px; height: 46px; max-width: none; object-fit: cover; object-position: center 47%; mix-blend-mode: multiply; }
.about-logos .client-logo--damhuis { height: 48px; }
.about-logos .about-logo--seeff { height: 84px; padding: 8px 14px; border-radius: 14px; background: #17214b; }
.about-logos .client-logo--seeff { width: 120px; height: 68px; max-width: none; object-fit: cover; }
.about-logos .client-name { color: var(--polish-ink); font-size: 22px; font-weight: 500; line-height: 1.15; white-space: nowrap; }
.about-logos .client-name small { display: block; margin-top: 3px; color: #41483f; font-size: 11px; font-weight: 400; }
@media (max-width: 1320px) {
  /* An even three-by-two grid: no orphaned logos on a short last row. */
  .about-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; gap: 28px 32px; }
}
@media (max-width: 767px) {
  .about-journey { padding-top: 64px; }
  .boutique-page .about-chapter-photo { border-radius: 16px; }
  .about-promises-panel { border-radius: 22px; }
  .about-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; gap: 20px 24px; }
  .about-logos li { height: 72px; }
  .about-logos img { height: 34px; }
  .about-logos .about-logo--seeff { height: 64px; }
  .about-logos .client-logo--seeff { width: 90px; height: 50px; }
  .about-logos li { min-width: 0; }
  .about-logos .client-logo--elmandi { width: 140px; max-width: 100%; height: 34px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .boutique-page.has-page-header .site-header.header-area { padding: 0 12px; }
  .boutique-page.has-page-header .site-header .header-area__inner { height: 68px; }
  .boutique-page.has-page-header .site-header .header-contact { border: 0; border-radius: 999px; background: var(--polish-ink); color: var(--polish-cream); }
  .boutique-page.has-page-header .site-header .side-toggle { border: 0; background: #fff; color: var(--polish-ink); box-shadow: 0 1px 2px rgba(23, 22, 27, .05), 0 6px 16px rgba(23, 22, 27, .06); }
  .site-page-header { grid-template-columns: minmax(0, 1fr); row-gap: 24px; padding-top: 40px; }
  .site-page-header-aside { padding-bottom: 0; }
  .site-page-label { margin-bottom: 18px; font-size: 13px; }
  .boutique-page .site-page-header .site-page-portrait { height: auto; aspect-ratio: 1 / 1; margin: 8px calc(-1 * var(--page-edge)) 0; border-radius: 18px; }
  .site-page-portrait img { object-position: 92% 30%; }
}

@media (prefers-reduced-motion: reduce) {
  .boutique-page.has-page-header .site-header .main-menu li a { transition: none; }
}

/* ---------- Shared helpers ---------- */
.site-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-btn-icon--down { -webkit-mask-image: var(--icon-arrow-down); mask-image: var(--icon-arrow-down); }
.site-btn:hover .site-btn-icon--down { transform: translateY(2px); }

/* ---------- Plain page header (Team): headline and intro only, no photograph ---------- */
@media (min-width: 768px) {
  .site-page-header--framed.site-page-header--plain { grid-template-rows: auto; min-height: 0; padding-bottom: 0; }
}
@media (max-width: 1023px) {
  .site-page-header--framed.site-page-header--plain { grid-template-rows: auto auto; }
}

/* ---------- Team: the two attorneys, framed side by side ---------- */
.team-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(32px, 3.1vw, 44px) var(--page-pad) 0;
}
.team-person.site-frame { display: flex; flex-direction: column; padding-bottom: 0; color: var(--polish-ink); text-decoration: none; }
.team-person-screen { display: block; aspect-ratio: 632 / 780; max-height: 82svh; }
.team-person-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-position, 50% 22%);
  transition: transform 1.1s var(--polish-ease);
}
.team-person:hover .team-person-screen img { transform: scale(1.035); }
.team-person-caption { display: flex; flex: 1; flex-direction: column; gap: 18px; padding: 22px 18px 24px; }
.team-person-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.team-person-title { display: flex; flex-direction: column; gap: 6px; }
.team-person-name { color: var(--polish-ink); font-size: clamp(26px, 2.25vw, 32px); font-weight: 400; line-height: 1.13; letter-spacing: -.03em; }
.team-person-meta { color: var(--polish-sage); font-size: 14px; font-weight: 500; line-height: 1.43; }
.team-person-arrow {
  position: relative;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 7px;
  background: #fff;
  color: var(--polish-ink);
  transition: background-color .3s, color .3s;
}
.team-person-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow-diagonal) center / contain no-repeat;
  mask: var(--icon-arrow-diagonal) center / contain no-repeat;
  transition: transform .35s var(--polish-ease);
}
.team-person:hover .team-person-arrow { background: var(--cobalt); color: #fff; }
.team-person:hover .team-person-arrow::before { transform: translate(2px, -2px); }
.team-person:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.team-person-description { max-width: 440px; color: #41483f; font-size: 16px; line-height: 1.56; }
.team-person-areas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.team-person-areas > span:not(.site-sr-only) { padding: 7px 11px; border-radius: 999px; background: #f4f2ee; color: var(--polish-ink); font-size: 13px; font-weight: 500; line-height: 16px; }

/* ---------- Team: who to speak to ---------- */
.team-matcher { padding: clamp(96px, 11.7vw, 168px) 0 0; }
.team-matcher-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(380px, 34.7vw, 500px);
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 3.9vw, 56px);
  row-gap: 48px;
  padding: 80px max(clamp(20px, 3.75vw, 54px), calc((100% - var(--page-max)) / 2)) 54px;
  border-radius: 28px;
  background: radial-gradient(90% 80% at 80% 10%, #2a2830 0%, var(--polish-ink) 62%);
  color: var(--polish-cream);
}
.team-matcher-copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 20px; }
.boutique-page .team-matcher-copy h2 { margin: 0; color: var(--polish-cream); font-size: clamp(40px, 4.45vw, 64px); font-weight: 300; line-height: 1.03; letter-spacing: -.045em; }
.boutique-page .team-matcher-copy p { max-width: 420px; margin: 0; color: var(--polish-stone); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.56; }
/* The same motion as the Expertise directory: one highlight glides between rows (team.js sets
   --indicator-y/-h), quiet rows brighten as they are chosen, and only the active arrow fills. */
.team-matches { position: relative; isolation: isolate; grid-column: 1; grid-row: 2; align-self: end; margin: 0; padding: 0; list-style: none; }
.team-matches::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: var(--indicator-h, 0);
  border: 1px solid rgba(244, 242, 238, .07);
  border-radius: 12px;
  background: linear-gradient(180deg, #28272d, #222126);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 36px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--indicator-y, 0));
  transition: transform .6s var(--site-ease), height .6s var(--site-ease), opacity .4s ease;
}
.team-matches.is-ready::before { opacity: 1; }
/* Without the script the active row carries its own surface. */
.team-matches:not(.is-ready) .team-match.is-active { background: rgba(255, 253, 245, .07); }
.team-matches li { position: relative; }
.team-matches li + li::before { content: ''; position: absolute; top: 0; left: 16px; right: 8px; height: 1px; background: rgba(244, 242, 238, .08); transition: opacity .4s ease; }
/* The rules either side of the highlighted row step back. */
.team-matches li:has(.is-active)::before, .team-matches li:has(.is-active) + li::before { opacity: 0; }
.team-match {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding: 10px 8px 10px 16px;
  border-radius: 12px;
  color: #8d887f;
  text-decoration: none;
}
.team-match-matter { flex: 1; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.3; letter-spacing: -.01em; transition: color .35s ease, transform .6s var(--site-ease); }
.team-match-who { flex: 0 0 120px; color: #77736b; font-size: 14px; font-weight: 500; line-height: 1.3; text-align: right; transition: color .35s ease; }
.team-match-arrow { position: relative; flex: 0 0 32px; height: 32px; border: 1px solid transparent; border-radius: 7px; color: #6f6b64; transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.team-match-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform .3s var(--polish-ease);
}
.team-match:hover { color: #c9c4ba; }
.team-match:hover .team-match-arrow { border-color: rgba(244, 242, 238, .18); color: var(--polish-cream); }
.team-match.is-active { color: #fff; }
.team-match.is-active .team-match-matter { transform: translateX(6px); }
.team-match.is-active .team-match-who { color: #c9c4ba; }
.team-match.is-active .team-match-arrow { border-color: var(--polish-cream); background: var(--polish-cream); color: var(--polish-ink); }
.team-match:focus-visible { outline: 2px solid #c9c6bd; outline-offset: -2px; }

/* The preview: three cards stacked in one place; the active one shows. */
.team-matcher-preview { grid-column: 2; grid-row: 1 / -1; display: grid; align-self: end; }
.team-match-card {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 6px 6px 0;
  border-radius: 16px;
  background: rgba(255, 253, 245, .08);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--polish-ease), visibility 0s .45s;
}
.team-match-card.is-active { opacity: 1; visibility: visible; transition: opacity .45s var(--polish-ease), visibility 0s; }
.team-match-screen { position: relative; display: block; height: clamp(440px, 41.7vw, 600px); overflow: hidden; border-radius: 11px; background: #2a2830; }
.team-match-screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--portrait-position, 50% 20%); transform: scale(1.06); transition: transform 1.2s var(--polish-ease); }
.team-match-card.is-active .team-match-screen > img { transform: scale(1); }
.team-match-screen--team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 3.3vw, 48px);
  padding: 32px;
  background: radial-gradient(120% 90% at 50% 0%, #24223a 0%, #1e1d24 70%);
  text-align: center;
}
/* The team as a fan of portrait cards. It gathers into a stack while hidden and
   opens when "Something else entirely" is chosen. Two or three portraits both work:
   add the third director's <img> and the fan widens to three. */
.team-match-fan { position: relative; display: block; width: 100%; height: clamp(200px, 17vw, 250px); flex-shrink: 0; }
.team-match-fan img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(124px, 11vw, 160px);
  height: auto;
  aspect-ratio: 156 / 204;
  border: 4px solid #1e1d24;
  border-radius: 14px;
  object-fit: cover;
  object-position: var(--portrait-position, 50% 20%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  transform: translate(-50%, -50%);
  transition: transform .9s var(--site-ease);
}
.team-match-card.is-active .team-match-fan img:nth-child(1) { transform: translate(-86%, -48%) rotate(-7deg); }
.team-match-card.is-active .team-match-fan img:nth-child(2) { z-index: 2; transform: translate(-14%, -52%) rotate(6deg); }
/* Three directors: the middle card leads, larger and upright, the outer two tilt away. */
.team-match-fan:has(> img:nth-child(3)) img:nth-child(2) { z-index: 3; }
.team-match-card.is-active .team-match-fan:has(> img:nth-child(3)) img:nth-child(1) { transform: translate(-118%, -44%) rotate(-10deg); }
.team-match-card.is-active .team-match-fan:has(> img:nth-child(3)) img:nth-child(2) { transform: translate(-50%, -54%) scale(1.1); }
.team-match-card.is-active .team-match-fan:has(> img:nth-child(3)) img:nth-child(3) { transform: translate(18%, -44%) rotate(10deg); }
.team-match-invite { color: var(--polish-cream); font-size: clamp(36px, 3vw, 44px); font-weight: 300; line-height: 1.09; letter-spacing: -.04em; }
.team-match-invite .title-muted { color: var(--polish-muted); }
.team-match-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 10px 16px 12px; }
.team-match-label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.team-match-label strong { color: var(--polish-cream); font-size: 18px; font-weight: 500; line-height: 1.33; }
.team-match-label span { color: var(--polish-stone); font-size: 14px; line-height: 1.3; }
.team-match-caption .site-btn--primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.team-match-caption .site-btn:focus-visible { outline-color: var(--polish-cream); }

/* ---------- Team: one statement, filled word by word ---------- */
.team-statement { padding: clamp(96px, 11.7vw, 168px) var(--page-pad); }
.boutique-page .team-statement p {
  max-width: 1220px;
  margin: 0;
  color: var(--polish-ink);
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.045em;
}
/* team.js adds .is-filling only when motion is allowed; otherwise the sentence is simply ink. */
.team-statement.is-filling .team-word { color: #d4cfc4; }

/* Below wide, tall screens the intro line goes and the panel gets shorter with it: the portrait
   no longer sets the height, it stretches to the left column (title + five rows) instead. */
@media (max-width: 1599px), (max-height: 900px) {
  .boutique-page .team-matcher-copy p { display: none; }
}
@media (min-width: 1024px) and (max-width: 1599px), (min-width: 1024px) and (max-height: 900px) {
  .team-matcher-panel { row-gap: 36px; padding-top: 56px; padding-bottom: 40px; }
  .team-matcher-preview { align-self: stretch; }
  .team-match-screen { flex: 1 1 0; height: auto; min-height: 0; }
  .team-match-screen--team { gap: 24px; padding: 24px; }
  .team-match-fan { height: clamp(150px, 13vw, 200px); }
}

/* ---------- Team: tablets and phones ---------- */
@media (max-width: 1023px) {
  .team-matcher-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 32px; padding: 56px clamp(20px, 5vw, 48px) 40px; }
  .team-matcher-copy, .team-matcher-preview, .team-matches { grid-column: 1; grid-row: auto; }
  /* The preview becomes a compact card above the list: portrait, name, profile link. */
  .team-match-card { flex-direction: row; gap: 14px; padding: 6px; border-radius: 14px; }
  .team-match-screen { flex: 0 0 96px; height: 120px; border-radius: 10px; }
  .team-match-screen--team { padding: 0; }
  .team-match-fan { height: 100%; }
  .team-match-fan img { width: 46px; border-width: 2px; border-radius: 7px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
  .team-match-invite { display: none; }
  .team-match-caption { flex: 1; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 6px 4px 4px 0; }
  .team-match-label strong { font-size: 17px; }
  .team-match-label span { font-size: 13px; }
  .team-match-caption .site-btn { min-height: 38px; padding: 0 13px; }
}
@media (max-width: 767px) {
  .team-people { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 28px; }
  .team-person.site-frame { border-radius: 14px; }
  .team-person-screen { aspect-ratio: 354 / 420; }
  .team-person-caption { gap: 16px; padding: 18px 10px 20px; }
  .team-person-name { font-size: 26px; }
  .team-person-meta { font-size: 13px; }
  .team-person-description { font-size: 15px; }
  .team-matcher { padding: 96px 0 0; }
  .team-matcher-panel { padding: 48px 12px 24px; border-radius: 22px; }
  .boutique-page .team-matcher-copy { padding: 0 8px; }
  .boutique-page .team-matcher-copy h2 { font-size: 38px; }
  .team-match { gap: 12px; min-height: 60px; padding: 10px 8px; }
  .team-matches li + li::before { left: 8px; }
  .team-match-matter { font-size: 16px; }
  .team-match-who { display: none; }
  .team-match-arrow { flex-basis: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-person-screen img, .team-person-arrow, .team-person-arrow::before,
  .team-matches::before, .team-matches li::before, .team-match-matter, .team-match-who,
  .team-match-arrow, .team-match-arrow::before, .team-match-card, .team-match-screen > img, .team-match-fan img { transition: none; }
  .team-person:hover .team-person-screen img, .team-match-screen > img { transform: none; }
}

/* ---------- Attorney profile (team/*.html, built by tools/build_profiles.py) ----------
   One section: the portrait on the left runs the full height of the copy beside it, so the
   back link meets the top of the photograph and the team card meets its bottom. */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 560fr) minmax(0, 664fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "photo head" "photo body";
  column-gap: clamp(40px, 5.6vw, 80px);
  row-gap: 40px;
  padding: clamp(24px, 2.8vw, 40px) var(--page-pad) clamp(96px, 8.9vw, 128px);
}
.profile-head { grid-area: head; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.profile-portrait { grid-area: photo; display: flex; flex-direction: column; }
.profile-portrait .site-frame-screen { flex: 1; min-height: 520px; }
.profile-portrait .site-frame-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--portrait-position, 50% 22%); }
.profile-portrait .site-frame-caption strong { margin-right: 6px; }
.profile-body { grid-area: body; display: flex; flex-direction: column; gap: 32px; }

/* On tall screens the profile sits in the middle of the space below the header instead of
   leaving an empty band above the footer. main is already at least one screen tall; the
   bottom padding (about the header's height) centres it in what is visible, not in main. */
@media (min-width: 1024px) {
  .page-profile #site-main { display: flex; flex-direction: column; justify-content: center; padding-bottom: 90px; }
  .page-profile .profile { padding-block: 40px; }
}

/* Arrow tiles, as on the Team page: a light square that contrasts with its surface
   (white on the paper-coloured rows, paper on the white cards), cobalt on hover. */
.profile-tile {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 22, 27, .06);
  color: var(--polish-ink);
  transition: background-color .3s, color .3s;
}
.profile-person .profile-tile, .profile-back .profile-tile, .profile-link .profile-tile { background: #f4f2ee; box-shadow: none; }
.profile-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow-diagonal) center / contain no-repeat;
  mask: var(--icon-arrow-diagonal) center / contain no-repeat;
  transition: transform .35s var(--polish-ease);
}
.profile-tile--back { flex-basis: 30px; width: 30px; height: 30px; border-radius: 7px; }
.profile-tile--back::before { width: 16px; height: 16px; -webkit-mask-image: var(--icon-arrow); mask-image: var(--icon-arrow); transform: rotate(180deg); }
a:hover > .profile-tile, .profile-person:hover .profile-tile, .profile-back:hover .profile-tile { background: var(--cobalt); color: #fff; }
a:hover > .profile-tile:not(.profile-tile--back)::before { transform: translate(2px, -2px); }
a:hover > .profile-tile--back::before { transform: rotate(180deg) translateX(2px); }

.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 22, 27, .04), 0 8px 20px rgba(23, 22, 27, .05);
  color: var(--polish-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 30px;
}
.profile-back:hover { color: var(--polish-ink); }
.boutique-page .profile-head h1 { margin: 0; color: var(--polish-ink); font-size: clamp(44px, 4.6vw, 66px); font-weight: 400; line-height: 1.03; letter-spacing: -.04em; }
/* Two-tone title, like the page headers: the name in ink, the role a muted second line. */
.boutique-page .profile-role { margin: 0; color: var(--polish-muted); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; letter-spacing: -.035em; }
.boutique-page .profile-lead { max-width: 600px; margin: 0; color: var(--polish-ink); font-size: clamp(19px, 1.55vw, 22px); font-weight: 300; line-height: 1.5; letter-spacing: -.01em; }
.profile-actions { gap: 8px; }

/* Numbered practice tiles, as on the expertise pages, with the related expertise pages
   as quiet link rows at the foot of the same panel. */
.profile-practice { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: var(--radius-card); background: #fff; box-shadow: 0 1px 2px rgba(23, 22, 27, .04), 0 12px 32px rgba(23, 22, 27, .06); }
.profile-services, .profile-links, .profile-people { margin: 0; padding: 0; list-style: none; }
.profile-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.profile-services li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: var(--radius-inner); background: #f4f2ee; color: var(--polish-ink); font-size: 16px; line-height: 1.5; }
.profile-services li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.profile-service-number { flex: 0 0 22px; color: var(--polish-sage); font-size: 13px; font-weight: 500; line-height: 24px; font-variant-numeric: tabular-nums; }
.profile-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 6px 6px 18px; border-radius: var(--radius-inner); color: var(--polish-sage); font-size: 16px; line-height: 24px; transition: background-color .3s; }
.profile-link:hover { background: #f8f7f4; color: var(--polish-sage); }
.profile-link strong { color: var(--polish-ink); font-weight: 500; }
.profile-link .profile-tile { flex-basis: 38px; width: 38px; height: 38px; }

/* Pushed to the bottom of the column so it meets the foot of the portrait. */
.profile-team { margin-top: auto; }
.profile-people { display: flex; flex-wrap: wrap; gap: 12px; }
.profile-people li { flex: 0 1 auto; min-width: 0; }
.profile-person {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 8px 6px 6px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 22, 27, .04), 0 12px 32px rgba(23, 22, 27, .06);
  color: var(--polish-ink);
  transition: box-shadow .35s, transform .35s var(--polish-ease);
}
.profile-person:hover { color: var(--polish-ink); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(23, 22, 27, .05), 0 16px 36px rgba(23, 22, 27, .1); }
.profile-person img { flex: 0 0 68px; width: 68px; height: 84px; border-radius: var(--radius-inner); object-fit: cover; object-position: var(--portrait-position, 50% 18%); }
.profile-person-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; padding-right: 8px; }
.profile-person-label { color: var(--polish-sage); font-size: 14px; line-height: 20px; }
.profile-person-line { color: var(--polish-sage); font-size: 17px; line-height: 24px; }
.profile-person-name { color: var(--polish-ink); font-weight: 500; letter-spacing: -.01em; }
.profile-person-focus::before { content: '· '; }
.profile-back:focus-visible, .profile-link:focus-visible, .profile-person:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

@media (max-width: 1023px) {
  /* Stacked: name first, then the portrait, then everything else. */
  .profile { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "photo" "body"; row-gap: 28px; }
  .profile-head { padding-top: 16px; }
  .profile-back { margin-bottom: 22px; }
  .profile-portrait .site-frame-screen { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .profile-team { margin-top: 12px; }
}
@media (max-width: 767px) {
  .profile { padding-bottom: 96px; }
  .boutique-page .profile-head h1 { font-size: 44px; }
  .boutique-page .profile-role { font-size: 28px; }
  .profile-back { font-size: 13px; }
  .profile-portrait.site-frame { border-radius: 14px; }
  .profile-portrait .site-frame-screen { aspect-ratio: 354 / 400; }
  .profile-body { gap: 28px; }
  .profile-practice { gap: 5px; padding: 5px; }
  .profile-services { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .profile-services li { gap: 12px; padding: 14px 16px; font-size: 15px; line-height: 22px; }
  .profile-service-number { line-height: 22px; }
  .profile-link { gap: 12px; padding-left: 16px; font-size: 15px; line-height: 22px; }
  .profile-people li { flex-basis: 100%; }
  .profile-person { gap: 14px; }
  .profile-person img { flex-basis: 64px; width: 64px; height: 80px; }
  .profile-person-label { font-size: 13px; line-height: 18px; }
  .profile-person-name { display: block; font-size: 17px; line-height: 22px; }
  .profile-person-focus { display: block; font-size: 13px; line-height: 18px; }
  .profile-person-focus::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-tile, .profile-tile::before, .profile-link, .profile-person { transition: none; }
  .profile-person:hover { transform: none; }
}

/* ---------- Expertise: the directory on a dark panel ----------
   expertise.js owns the motion, the same as the Team matcher: one highlight glides between rows
   (--indicator-y/-h), the photograph crossfades, and the caption names who handles the area.
   Below 1024px the photograph steps aside and the list stands alone. */
/* A clear breath between the page header and the dark panel, as between every other section. */
.expertise-directory { padding: clamp(56px, 5.6vw, 80px) 0 0; }
.expertise-panel {
  display: grid;
  grid-template-columns: clamp(360px, 37.5vw, 540px) minmax(0, 1fr);
  column-gap: clamp(40px, 3.9vw, 56px);
  padding: 54px max(clamp(20px, 3.75vw, 54px), calc((100% - var(--page-max)) / 2));
  border-radius: 28px;
  background: radial-gradient(90% 80% at 80% 10%, #2a2830 0%, var(--polish-ink) 62%);
  color: var(--polish-cream);
}
.expertise-visual { position: relative; display: flex; min-height: 600px; margin: 0; padding: 6px; border-radius: var(--radius-card); background: rgba(255, 253, 245, .08); }
.expertise-photos { position: relative; display: block; flex: 1; overflow: hidden; border-radius: var(--radius-inner); background: #2a2830; }
.expertise-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .6s ease, transform 1.2s var(--site-ease);
}
.expertise-photos img.is-active { opacity: 1; transform: scale(1); }
.expertise-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 16px 16px;
  border: 1px solid rgba(255, 253, 245, .12);
  border-radius: 12px;
  background: rgba(23, 22, 27, .62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.expertise-caption-copy { display: flex; flex-direction: column; gap: 12px; padding: 0 8px; transition: opacity .18s ease, transform .18s ease; }
.expertise-caption.is-changing .expertise-caption-copy, .expertise-caption.is-changing .expertise-handler-text { opacity: 0; transform: translateY(6px); }
.expertise-caption-number { color: var(--polish-stone); font-size: 13px; font-weight: 500; line-height: 16px; }
.expertise-caption-title { color: var(--polish-cream); font-size: clamp(28px, 2.4vw, 34px); font-weight: 300; line-height: 1.12; letter-spacing: -.04em; }
.expertise-caption-note { color: var(--polish-stone); font-size: 15px; line-height: 1.53; }
.expertise-handler {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 6px 12px;
  border-radius: 10px;
  background: rgba(255, 253, 245, .08);
  color: var(--polish-stone);
  font-size: 14px;
  line-height: 18px;
  transition: background-color .3s;
}
.expertise-handler:hover { background: rgba(255, 253, 245, .14); color: var(--polish-stone); }
.expertise-handler strong { color: var(--polish-cream); font-weight: 500; }
.expertise-handler-text { transition: opacity .18s ease, transform .18s ease; }
.expertise-handler:focus-visible { outline: 2px solid var(--polish-cream); outline-offset: 2px; }

/* Arrow tiles: never a bare glyph. Faint on quiet rows, cream on the chosen one. */
.expertise-tile {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 253, 245, .06);
  color: #8d887f;
  transition: background-color .35s ease, color .35s ease;
}
.expertise-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow-diagonal) center / contain no-repeat;
  mask: var(--icon-arrow-diagonal) center / contain no-repeat;
  transition: transform .35s var(--polish-ease);
}
.expertise-handler .expertise-tile { flex-basis: 30px; width: 30px; height: 30px; border-radius: 7px; background: var(--polish-cream); color: var(--polish-ink); }
.expertise-handler .expertise-tile::before { width: 16px; height: 16px; }
.expertise-handler:hover .expertise-tile { background: var(--cobalt); color: #fff; }
.expertise-handler:hover .expertise-tile::before, .expertise-row:hover .expertise-tile::before { transform: translate(2px, -2px); }

.expertise-list { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.boutique-page .expertise-list h2 { margin: 0; padding: 0 8px 0 24px; color: var(--polish-cream); font-size: clamp(36px, 3.05vw, 44px); font-weight: 300; line-height: 1.05; letter-spacing: -.045em; }
.expertise-rows { position: relative; isolation: isolate; margin: auto 0 0; padding: 0; list-style: none; }
.expertise-rows::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: var(--indicator-h, 0);
  border: 1px solid rgba(244, 242, 238, .07);
  border-radius: 12px;
  background: linear-gradient(180deg, #28272d, #222126);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 36px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--indicator-y, 0));
  transition: transform .6s var(--site-ease), height .6s var(--site-ease), opacity .4s ease;
}
.expertise-rows.is-ready::before { opacity: 1; }
.expertise-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 12px 10px 12px 24px;
  border-radius: 12px;
  color: #8d887f;
}
.expertise-row-number { flex: 0 0 24px; color: #6f6b64; font-size: 13px; font-weight: 500; line-height: 16px; font-variant-numeric: tabular-nums; transition: color .35s ease; }
.expertise-row-name { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; transition: transform .6s var(--site-ease); }
.expertise-row-title { font-size: clamp(22px, 1.95vw, 28px); font-weight: 300; line-height: 1.15; letter-spacing: -.03em; transition: color .35s ease; }
.expertise-row-tagline { color: #77736b; font-size: 14px; line-height: 18px; transition: color .35s ease; }
.expertise-row:hover { color: #c9c4ba; }
.expertise-row:hover .expertise-tile { color: var(--polish-cream); }
.expertise-row.is-active { color: #fff; }
.expertise-row.is-active .expertise-row-name { transform: translateX(6px); }
.expertise-row.is-active .expertise-row-number { color: var(--polish-cream); }
.expertise-row.is-active .expertise-row-tagline { color: #c9c4ba; }
.expertise-row.is-active .expertise-tile { background: var(--polish-cream); color: var(--polish-ink); }
.expertise-row:focus-visible { outline: 2px solid var(--polish-stone); outline-offset: -2px; }

@media (max-width: 1023px) {
  /* The list stands alone: every row reads clearly, no highlight to chase. */
  .expertise-panel { grid-template-columns: minmax(0, 1fr); padding: 48px clamp(20px, 5vw, 48px) 24px; }
  .expertise-visual { display: none; }
  .boutique-page .expertise-list h2 { padding: 0 4px; }
  .expertise-rows { margin-top: 0; }
  .expertise-rows::before { display: none; }
  .expertise-row { padding-inline: 4px; color: var(--polish-cream); }
  .expertise-row .expertise-row-number { color: var(--polish-stone); }
  .expertise-row .expertise-row-tagline { color: #9d988f; }
  .expertise-row.is-active .expertise-row-name { transform: none; }
  .expertise-row .expertise-tile, .expertise-row.is-active .expertise-tile { background: rgba(255, 253, 245, .08); color: var(--polish-cream); }
}
@media (max-width: 767px) {
  .expertise-directory { padding: 40px 0 0; }
  .expertise-panel { padding: 40px 12px 12px; border-radius: 22px; }
  .boutique-page .expertise-list h2 { padding: 0 8px; font-size: 34px; }
  .expertise-row { gap: 14px; min-height: 76px; padding: 10px 8px; }
  .expertise-row-number { flex-basis: 20px; }
  .expertise-row-title { font-size: 21px; }
  .expertise-row-tagline { font-size: 13px; }
  .expertise-tile { flex-basis: 36px; width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .expertise-photos img, .expertise-caption-copy, .expertise-handler-text, .expertise-handler, .expertise-tile, .expertise-tile::before,
  .expertise-rows::before, .expertise-row-number, .expertise-row-name, .expertise-row-title, .expertise-row-tagline { transition: none; }
  .expertise-photos img { transform: none; }
}

/* ---------- Practice areas (expertise/*.html, built by tools/build_expertise.py) ----------
   Plain page header, a framed photograph, the scope list beside "Your attorney",
   Property Law's calculators, then "Keep exploring" with the next area as the hero. */
/* Scoped to .boutique-page so it outranks site-pages.css's `.boutique-page figure { margin: 0 }`. */
.boutique-page .area-photo { margin: clamp(28px, 2.8vw, 40px) var(--page-pad) 0; }
.area-photo .site-frame-screen { display: block; height: clamp(300px, 36vw, 520px); }
.area-photo .site-frame-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, center); }
.area-photo .site-frame-caption strong { margin-right: 8px; }

/* Light arrow tiles, as on the Team page and the profiles: cobalt on hover. */
.area-tile {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f4f2ee;
  color: var(--polish-ink);
  transition: background-color .3s, color .3s;
}
.area-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow-diagonal) center / contain no-repeat;
  mask: var(--icon-arrow-diagonal) center / contain no-repeat;
  transition: transform .35s var(--polish-ease);
}
.area-tile--back::before, .area-tile--next::before { -webkit-mask-image: var(--icon-arrow); mask-image: var(--icon-arrow); }
.area-tile--back::before { transform: rotate(180deg); }
a:hover > .area-tile, a:hover .area-tile { background: var(--cobalt); color: #fff; }
a:hover .area-tile:not(.area-tile--back):not(.area-tile--next)::before { transform: translate(2px, -2px); }
a:hover .area-tile--back::before { transform: rotate(180deg) translateX(2px); }
a:hover .area-tile--next::before { transform: translateX(2px); }

.boutique-page .area-label { margin: 0 0 12px; color: var(--polish-sage); font-size: 14px; font-weight: 500; line-height: 20px; }
.area-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 8px 6px 6px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 22, 27, .04), 0 12px 32px rgba(23, 22, 27, .06);
  color: var(--polish-ink);
  transition: box-shadow .35s, transform .35s var(--polish-ease);
}
.area-card:hover { color: var(--polish-ink); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(23, 22, 27, .05), 0 16px 36px rgba(23, 22, 27, .1); }
.area-card:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.area-card img { flex: 0 0 68px; width: 68px; height: 84px; border-radius: var(--radius-inner); object-fit: cover; object-position: var(--portrait-position, center); }
.area-card-mark { display: grid; flex: 0 0 68px; place-items: center; width: 68px; height: 68px; border-radius: var(--radius-inner); background: #f4f2ee; color: var(--polish-ink); font-size: 20px; font-weight: 300; letter-spacing: -.02em; }
.area-card-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; color: var(--polish-sage); font-size: 14px; line-height: 18px; }
.area-card-title { color: var(--polish-ink); font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: -.01em; }

.area-scope {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: 40px clamp(40px, 3.9vw, 56px);
  padding: clamp(96px, 8.9vw, 128px) var(--page-pad) 0;
}
/* The two columns share their top and bottom edges: the list starts level with the heading and ends
   level with the attorney card. Whichever side is shorter stretches to meet the other. */
.area-scope-side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.boutique-page .area-scope-side h2,
.boutique-page .area-explore-side h2 { margin: 0; color: var(--polish-ink); font-size: clamp(40px, 3.6vw, 52px); font-weight: 300; line-height: 1.04; letter-spacing: -.045em; }
.area-scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 6px;
  margin: 0;
  padding: 6px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 22, 27, .04), 0 12px 32px rgba(23, 22, 27, .06);
  list-style: none;
}
.area-scope-list li { display: flex; align-items: center; padding: 18px 20px; border-radius: var(--radius-inner); background: #f4f2ee; color: var(--polish-ink); font-size: 16px; line-height: 1.5; }
/* The number and its text centre together in the card; the number stays level with the first line. */
.area-scope-item { display: flex; align-items: first baseline; gap: 16px; min-width: 0; }
.area-scope-number { flex: 0 0 22px; color: var(--polish-sage); font-size: 13px; font-weight: 500; line-height: 24px; font-variant-numeric: tabular-nums; }

/* ---------- Keep exploring: the next area is the hero ---------- */
.area-explore {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: 40px clamp(40px, 3.9vw, 56px);
  padding: clamp(96px, 8.9vw, 128px) var(--page-pad) clamp(120px, 11.7vw, 168px);
}
.area-explore-side { display: flex; flex-direction: column; gap: 40px; }
.area-explore-links { display: flex; flex-direction: column; gap: 8px; }
.area-explore .area-card img { flex-basis: 56px; width: 56px; height: 56px; border-radius: 10px; object-position: center; }
.area-explore .area-card-mark { flex-basis: 56px; width: 56px; height: 56px; border-radius: 10px; }
.area-explore .area-card-title { font-size: 17px; line-height: 22px; }
.area-next { display: flex; padding: 6px; border-radius: var(--radius-card); background: #e6e2d9; color: var(--polish-cream); }
.area-next:hover { color: var(--polish-cream); }
.area-next:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.area-next-screen { position: relative; display: flex; flex: 1; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: clamp(320px, 27.8vw, 400px); padding: clamp(20px, 2vw, 28px); overflow: hidden; border-radius: var(--radius-inner); background: #2a2830; isolation: isolate; }
.area-next-screen img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--polish-ease); }
.area-next-screen::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(23, 22, 27, 0) 35%, rgba(23, 22, 27, .8) 100%); }
.area-next:hover .area-next-screen img { transform: scale(1.04); }
.area-next-copy { display: flex; flex-direction: column; gap: 10px; color: #e6e2d9; font-size: 15px; line-height: 20px; }
.area-next-copy > span:first-child { font-size: 14px; font-weight: 500; }
.area-next-title { max-width: 12ch; color: var(--polish-cream); font-size: clamp(34px, 3.3vw, 48px); font-weight: 300; line-height: 1.04; letter-spacing: -.045em; }
.area-next .area-tile { flex-basis: 52px; width: 52px; height: 52px; border-radius: 10px; background: var(--polish-cream); }
.area-next .area-tile::before { width: 18px; height: 18px; }

/* ---------- Property Law: Plan your purchase ---------- */
.area-calculators { padding: clamp(96px, 8.9vw, 128px) 0 0; }
.calc-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 64px max(clamp(20px, 3.75vw, 54px), calc((100% - var(--page-max)) / 2)) 54px;
  border-radius: 28px;
  background: radial-gradient(90% 80% at 80% 10%, #2a2830 0%, var(--polish-ink) 62%);
  color: var(--polish-cream);
}
.calc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 32px; }
.boutique-page .calc-head h2 { margin: 0; color: var(--polish-cream); font-size: clamp(40px, 3.9vw, 56px); font-weight: 300; line-height: 1.04; letter-spacing: -.045em; }
.calc-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: rgba(255, 253, 245, .06); }
.calc-tab { padding: 11px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--polish-stone); font-size: 14px; font-weight: 500; line-height: 18px; transition: background-color .3s, color .3s; }
.calc-tab:hover { color: var(--polish-cream); }
.calc-tab[aria-selected="true"] { background: var(--polish-cream); color: var(--polish-ink); }
.calc-tab:focus-visible { outline: 2px solid var(--polish-cream); outline-offset: 2px; }
.calc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 16px; }
/* All three calculators share one cell, so the panel keeps the tallest one's height and switching
   tabs never changes the page height (which pulled the view up). Hidden ones stay laid out but invisible;
   !important beats Bootstrap's [hidden] { display: none !important }. */
.calc-body { grid-area: 2 / 1; }
.calc-body[hidden] { display: grid !important; visibility: hidden; }
.calc-fields { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.calc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-label { color: var(--polish-stone); font-size: 13px; font-weight: 500; line-height: 16px; }
.calc-input { display: flex; align-items: center; gap: 10px; height: 84px; padding: 0 22px; border: 1px solid rgba(255, 253, 245, .1); border-radius: var(--radius-inner); background: rgba(255, 253, 245, .06); transition: border-color .25s, background-color .25s; }
.calc-input:focus-within { border-color: rgba(255, 253, 245, .4); background: rgba(255, 253, 245, .09); }
.calc-field.is-invalid .calc-input { border-color: #e08a7a; }
.calc-input input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--polish-cream); font-size: 26px; line-height: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-affix { color: var(--polish-muted); font-size: 18px; line-height: 24px; }
.boutique-page .calc-note { margin: 0; color: var(--polish-muted); font-size: 13px; line-height: 20px; }
.calc-result { display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: var(--radius-card); background: var(--polish-cream); color: var(--polish-ink); }
.calc-figure { display: flex; flex-direction: column; gap: 6px; color: #41483f; font-size: 15px; line-height: 20px; }
.calc-figure-label { color: var(--polish-sage); font-size: 14px; font-weight: 500; }
.calc-figure output { color: var(--polish-ink); font-size: clamp(44px, 4.2vw, 60px); font-weight: 300; line-height: 1.07; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.calc-breakdown { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 9px; background: #f4f2ee; font-size: 14px; line-height: 18px; }
.calc-breakdown dt { color: var(--polish-sage); font-weight: 400; }
.calc-breakdown dd { margin: 0; color: var(--polish-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.boutique-page .calc-small { margin: 0; color: var(--polish-sage); font-size: 12px; line-height: 18px; }
.calc-estimate { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding: 8px 8px 8px 16px; border-radius: var(--radius-inner); background: #f4f2ee; color: var(--polish-ink); }
.calc-estimate:hover { color: var(--polish-ink); }
.calc-estimate .area-tile { background: #fff; box-shadow: 0 1px 2px rgba(23, 22, 27, .06); }
.calc-estimate-text { display: flex; flex-direction: column; gap: 2px; color: var(--polish-sage); font-size: 13px; line-height: 18px; }
.calc-estimate-text strong { color: var(--polish-ink); font-size: 16px; font-weight: 500; line-height: 22px; }
.calc-estimate:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

@media (max-width: 1023px) {
  .area-scope, .area-explore { grid-template-columns: minmax(0, 1fr); }
  .area-scope-side { gap: 28px; }
  .area-attorney { max-width: 420px; }
  .area-explore-links { flex-direction: row; flex-wrap: wrap; }
  .area-explore-links .area-card { flex: 1 1 260px; }
  .calc-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
}
@media (max-width: 767px) {
  .area-photo.site-frame { border-radius: 14px; }
  .area-photo .site-frame-screen { height: auto; aspect-ratio: 4 / 3; }
  .area-photo .site-frame-caption > span:last-child { display: inline; }
  .area-scope-list { grid-template-columns: minmax(0, 1fr); }
  .area-scope-list li { padding: 16px; font-size: 15px; }
  .area-explore-links { flex-direction: column; }
  .area-explore-links .area-card { flex: none; }
  .area-next-screen { min-height: 300px; }
  .area-calculators { padding-inline: 0; }
  .calc-panel { gap: 28px; padding: 40px 12px 12px; border-radius: 22px; }
  .calc-head { padding: 0 8px; }
  .calc-tabs { width: 100%; }
  .calc-tab { flex: 1; padding-inline: 8px; }
  .calc-row { grid-template-columns: minmax(0, 1fr); }
  .calc-field--spacer { display: none; }
  .calc-fields { padding: 0 4px; }
  .calc-input { height: 64px; padding: 0 16px; }
  .calc-input input { font-size: 22px; }
  .calc-result { padding: 22px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .area-tile, .area-tile::before, .area-card, .area-next-screen img, .calc-tab, .calc-input { transition: none; }
  .area-card:hover { transform: none; }
  .area-next:hover .area-next-screen img { transform: none; }
}

/* ---------- Practice areas: "Your first step" (areas without calculators) ----------
   The calculator panel's dark surface, with the steps as an accordion: the open step turns cream. */
.area-steps { padding: clamp(96px, 8.9vw, 128px) 0 0; }
.area-steps-panel {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  grid-template-areas: "head list" "cta list";
  grid-template-rows: auto 1fr;
  gap: 32px clamp(40px, 3.9vw, 56px);
  padding: 64px max(clamp(20px, 3.75vw, 54px), calc((100% - var(--page-max)) / 2)) 54px;
  border-radius: 28px;
  background: radial-gradient(90% 80% at 80% 10%, #2a2830 0%, var(--polish-ink) 62%);
  color: var(--polish-cream);
}
.area-steps-side { display: contents; }
.boutique-page .area-steps h2 { grid-area: head; margin: 0; color: var(--polish-cream); font-size: clamp(40px, 3.9vw, 56px); font-weight: 300; line-height: 1.04; letter-spacing: -.045em; }
.area-steps-cta { grid-area: cta; align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 16px; border-radius: var(--radius-inner); background: rgba(255, 253, 245, .06); color: var(--polish-cream); transition: background-color .3s; }
.area-steps-cta:hover { background: rgba(255, 253, 245, .1); color: var(--polish-cream); }
.area-steps-cta .calc-estimate-text { color: var(--polish-stone); }
.area-steps-cta .calc-estimate-text strong { color: var(--polish-cream); }
.area-steps-cta .area-tile { background: var(--polish-cream); }
.area-steps-cta:focus-visible { outline: 2px solid var(--polish-cream); outline-offset: 3px; }
.area-steps-list { grid-area: list; display: flex; flex-direction: column; gap: 8px; }
.area-step { border-radius: 14px; background: rgba(255, 253, 245, .06); transition: background-color .35s ease; }
.area-step[open] { background: var(--polish-cream); }
.area-step summary { display: flex; align-items: center; gap: 20px; padding: 22px 24px; list-style: none; cursor: pointer; }
.area-step summary::-webkit-details-marker { display: none; }
.area-step summary:focus-visible { outline: 2px solid var(--polish-cream); outline-offset: 2px; border-radius: 14px; }
.area-step[open] summary:focus-visible { outline-color: var(--cobalt); }
/* The step number sits in a small badge: faint on closed steps, cobalt on the open one. */
.area-step-number { display: grid; flex: 0 0 auto; place-items: center; min-width: 40px; height: 30px; padding: 0 10px; border-radius: 8px; background: rgba(255, 253, 245, .08); color: var(--polish-stone); font-size: 13px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; transition: background-color .35s ease, color .35s ease; }
.area-step-title { flex: 1; color: var(--polish-cream); font-size: clamp(18px, 1.4vw, 20px); font-weight: 300; line-height: 1.3; letter-spacing: -.02em; }
.area-step[open] .area-step-number { background: var(--cobalt); color: #fff; }
.area-step[open] .area-step-title { color: var(--polish-ink); font-size: clamp(19px, 1.55vw, 22px); font-weight: 400; }
.area-step-toggle { position: relative; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; background: rgba(255, 253, 245, .08); color: var(--polish-cream); transition: background-color .3s; }
.area-step-toggle::before, .area-step-toggle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .35s var(--polish-ease); }
.area-step-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.area-step summary:hover .area-step-toggle { background: rgba(255, 253, 245, .14); }
.area-step[open] .area-step-toggle { background: #f4f2ee; color: var(--polish-ink); }
.area-step[open] .area-step-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.boutique-page .area-step p { max-width: 620px; margin: 0; padding: 0 24px 26px; color: #41483f; font-size: 16px; line-height: 1.56; }
@media (max-width: 1023px) {
  .area-steps-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list" "cta"; grid-template-rows: none; }
  .area-steps-cta { align-self: auto; }
}
@media (max-width: 767px) {
  .area-steps { padding-inline: 0; }
  .area-steps-panel { gap: 24px; padding: 40px 12px 12px; border-radius: 22px; }
  .boutique-page .area-steps h2 { padding: 0 8px; }
  .area-step summary { gap: 14px; padding: 18px 16px; }
  .boutique-page .area-step p { padding: 0 16px 20px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .area-step, .area-step-number, .area-step-toggle, .area-step-toggle::before, .area-step-toggle::after, .area-steps-cta { transition: none; }
}

/* ---------- Contact (Paper: Contact round 2, option 4) ----------
   About's framed opening with the office courtyard, three ways in, the Team page's matcher as the
   enquiry form, then the map on paper so it never meets the dark footer back to back.
   Every enquiry goes to info@: the matcher only says who usually handles a matter, never who receives it. */
@media (min-width: 1024px) {
  .page-contact .site-page-header--framed { grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); }
}
/* About crops its wide photograph from the left; the courtyard is shown whole. */
@media (min-width: 768px) {
  .page-contact .contact-hero .site-frame-screen > img { left: 0; width: 100%; object-position: 50% 58%; }
}
.page-contact .contact-hero img { object-position: 50% 58%; }

/* Ways in: three nested shells, the same white shell and stone cell as the practice scope lists. */
.contact-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px var(--page-pad) 0; }
.contact-way { display: flex; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(23, 22, 27, .04), 0 12px 32px rgba(23, 22, 27, .06); color: var(--polish-ink); transition: transform .35s var(--polish-ease), box-shadow .35s; }
.contact-way:hover { color: var(--polish-ink); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(23, 22, 27, .05), 0 16px 36px rgba(23, 22, 27, .1); }
.contact-way:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.contact-way-cell { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 36px; min-width: 0; padding: 20px 20px 20px 22px; border-radius: 11px; background: #f4f2ee; }
.contact-way-head { display: flex; justify-content: space-between; color: var(--polish-sage); font-size: 14px; font-weight: 500; line-height: 20px; }
.contact-way-head > span + span { color: var(--polish-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.contact-way-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.contact-way-value { min-width: 0; font-size: clamp(20px, 1.75vw, 26px); line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.contact-way:first-child .contact-way-value { font-size: clamp(24px, 2.1vw, 30px); letter-spacing: -.03em; }
.contact-way .area-tile { background: #fff; }
.contact-way .contact-way-tile--primary { background: var(--cobalt); color: #fff; }

/* The enquiry: the Team matcher's rows are the topics (radio inputs), its preview is the form. */
.contact-matcher { scroll-margin-top: 24px; }
.page-contact .contact-matcher-panel { grid-template-columns: minmax(0, 1fr) clamp(420px, 39vw, 580px); margin-block: 0; }
.contact-matters { grid-column: 1; grid-row: 2; align-self: end; min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-matters .team-match { position: relative; margin: 0; cursor: pointer; }
.contact-matters input { position: absolute; opacity: 0; pointer-events: none; }
.contact-matters .team-match:has(input:focus-visible) { outline: 2px solid #c9c6bd; outline-offset: -2px; }
.page-contact .team-matcher-copy p { display: block; }

.contact-form-card { display: flex; flex-direction: column; gap: 18px; align-self: stretch; padding: 24px; border-radius: 16px; background: var(--polish-cream); color: var(--polish-ink); }
.contact-handlers { display: grid; }
.contact-handler { grid-area: 1 / 1; display: flex; align-items: center; gap: 14px; margin: 0; padding: 6px 8px 6px 6px; border-radius: 14px; background: #f4f2ee; font-size: 17px; font-weight: 500; line-height: 22px; }
.contact-handler[hidden] { display: none; }
.contact-handler img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 9px; object-fit: cover; object-position: 50% 18%; }
.contact-handler-pair { display: flex; flex: 0 0 auto; }
.contact-handler-pair img { flex-basis: 44px; width: 44px; border: 2px solid #f4f2ee; }
.contact-handler-pair img + img { margin-left: -16px; }
.contact-handler-note { display: block; margin-bottom: 2px; color: var(--polish-sage); font-size: 13px; font-weight: 400; line-height: 18px; }
.contact-handler strong { font-weight: 500; }
.contact-handler-role { color: var(--polish-sage); font-size: 14px; font-weight: 400; }

.contact-fields { display: grid; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto minmax(0, 1fr); gap: 14px 8px; }
.contact-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact-field--full { grid-column: 1 / -1; }
.contact-field label { margin: 0; color: var(--polish-ink); font-size: 14px; font-weight: 500; line-height: 18px; }
.contact-field label span { color: var(--polish-muted); font-weight: 400; }
.contact-field input, .contact-field textarea {
  width: 100%;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  outline: 0;
  background: #f4f2ee;
  color: var(--polish-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.contact-field input { height: 52px; }
.contact-field textarea { flex: 1; min-height: 120px; padding-top: 14px; padding-bottom: 14px; resize: vertical; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: var(--polish-muted); opacity: 1; }
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 4px rgba(5, 4, 170, .1); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.boutique-page .contact-actions p { margin: 0; color: var(--polish-sage); font-size: 13px; line-height: 19px; }
.contact-submit { min-height: 46px; padding: 0 18px; cursor: pointer; }
.contact-submit:disabled { opacity: .7; cursor: progress; }
.boutique-page .contact-form-card .ajax-response { display: none; margin: 0; padding: 14px 16px; border-radius: var(--radius-inner); font-size: 15px; line-height: 1.5; }
.boutique-page .contact-form-card .ajax-response.success-message { background: #e8efe6; color: #2d4a2a; }
.boutique-page .contact-form-card .ajax-response.error-message { background: #f6e6e2; color: #7a2e1f; }

/* Find us: the live map framed with a caption, the address and a nested shell beside it. */
.contact-office { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); align-items: stretch; gap: 40px clamp(40px, 3.9vw, 56px); padding: clamp(96px, 8.9vw, 128px) var(--page-pad); }
.boutique-page .contact-map { margin: 0; }
.contact-map .site-frame-screen { display: block; height: clamp(360px, 33vw, 520px); }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-office-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.boutique-page .contact-office h2 { margin: 0 0 22px; color: var(--polish-ink); font-size: clamp(40px, 3.9vw, 56px); font-weight: 300; line-height: 1.04; letter-spacing: -.045em; }
.boutique-page .contact-address { margin: 0; color: #41483f; font-size: 18px; line-height: 1.55; }
.contact-office-shell { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(23, 22, 27, .04), 0 12px 32px rgba(23, 22, 27, .06); }
.contact-office-rows { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.contact-office-rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 16px 20px; border-radius: var(--radius-inner); background: #f4f2ee; font-size: 15px; line-height: 20px; }
.contact-office-rows dt { color: var(--polish-sage); font-weight: 400; }
.contact-office-rows dd { margin: 0; color: var(--polish-ink); font-weight: 500; }
.contact-directions { display: flex; align-items: center; gap: 16px; padding: 6px 6px 6px 20px; border-radius: var(--radius-inner); background: #f4f2ee; color: var(--polish-ink); }
.contact-directions:hover { color: var(--polish-ink); }
.contact-directions .area-card-text { font-size: 13px; }
.contact-directions .area-card-title { font-size: 16px; line-height: 22px; }
.contact-directions .area-tile { background: #fff; }
.contact-directions:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

@media (max-width: 1023px) {
  .contact-ways { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .contact-way-cell { gap: 14px; }
  .page-contact .contact-matcher-panel { grid-template-columns: minmax(0, 1fr); }
  .contact-matters { grid-column: 1; grid-row: auto; }
  .contact-office { grid-template-columns: minmax(0, 1fr); }
  .contact-office-copy { order: -1; }
}
@media (max-width: 767px) {
  .contact-ways { padding-top: 10px; }
  .contact-way-cell { padding: 16px 14px 14px 16px; }
  .contact-way .contact-way-value, .contact-way:first-child .contact-way-value { font-size: 19px; }
  .contact-form-card { padding: 16px; }
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
  .contact-actions .contact-submit { width: 100%; }
  .contact-map .site-frame-screen { height: 320px; }
  .contact-map .site-frame-caption > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-way, .contact-field input, .contact-field textarea { transition: none; }
}

/* ---------- 404: "null and void", with a chat from the court (Paper: 404 round 3, option 5) ----------
   The one page allowed a joke. Left: the code, a two-tone title and the four ways back as numbered
   tiles (as on the expertise and profile pages). Right: a slightly tilted chat window.
   No site header or footer: just the logo, and the whole joke on one screen. */
.page-not-found #smooth-content { display: flex; flex-direction: column; min-height: 100svh; }
.page-not-found #site-main { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.site-error-header { padding: 20px var(--page-pad) 0; }
.site-error-logo { display: inline-block; }
.site-error-logo img { display: block; width: 130px; height: auto; }
.site-error-logo:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 6px; }
.page-not-found .site-error-page {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) clamp(380px, 32vw, 460px);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  padding: 16px var(--page-pad) 32px;
}
.site-error-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.page-not-found .site-error-code { margin: 0 0 32px; color: var(--polish-ink); font-size: clamp(150px, 15.3vw, 220px); font-weight: 300; line-height: .86; letter-spacing: -.07em; }
.site-error-code span { color: var(--cobalt); }
.page-not-found .site-error-copy h1 { margin: 0 0 32px; color: var(--polish-ink); font-size: clamp(36px, 3.35vw, 48px); font-weight: 400; line-height: 1.1; letter-spacing: -.04em; }
.page-not-found .site-error-copy h1 .title-muted { color: var(--polish-muted); }

.site-error-exits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 600px; margin: 0; padding: 6px; border-radius: var(--radius-card); background: #fff; box-shadow: 0 1px 2px rgba(23, 22, 27, .04), 0 12px 32px rgba(23, 22, 27, .06); list-style: none; }
.site-error-exit { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: var(--radius-inner); background: #f4f2ee; color: var(--polish-ink); font-size: 17px; font-weight: 500; line-height: 24px; transition: background-color .3s; }
.site-error-exit:hover { background: #ece9e2; color: var(--polish-ink); }
.site-error-exit:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.site-error-exit-number { flex: 0 0 22px; color: var(--polish-sage); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.site-error-exit-title { flex: 1; min-width: 0; }
.site-error-exit-tile { position: relative; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 8px; background: #fff; color: var(--polish-ink); transition: background-color .3s, color .3s; }
.site-error-exit-tile::before { content: ''; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon-arrow-diagonal) center / contain no-repeat; mask: var(--icon-arrow-diagonal) center / contain no-repeat; transition: transform .35s var(--polish-ease); }
.site-error-exit:hover .site-error-exit-tile { background: var(--cobalt); color: #fff; }
.site-error-exit:hover .site-error-exit-tile::before { transform: translate(2px, -2px); }

.site-error-chat { padding: 6px; border-radius: 24px; background: #fff; box-shadow: 0 2px 4px rgba(23, 22, 27, .06), 0 30px 60px rgba(23, 22, 27, .12); transform: rotate(2deg); }
.page-not-found .site-error-chat-head { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px 14px; }
.site-error-chat-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--polish-ink); color: var(--polish-cream); font-size: 18px; font-weight: 600; }
.site-error-chat-who { display: flex; flex-direction: column; gap: 1px; color: var(--polish-sage); font-size: 13px; line-height: 18px; }
.site-error-chat-who strong { color: var(--polish-ink); font-size: 16px; font-weight: 600; line-height: 22px; }
.site-error-thread { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 18px 16px; border-radius: 18px; background: #f4f2ee; list-style: none; }
.site-error-thread li { display: flex; flex-direction: column; gap: 2px; max-width: 82%; padding: 10px 14px 8px; color: var(--polish-ink); font-size: 15px; line-height: 22px; }
.site-error-thread .is-you { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--cobalt); color: #fff; }
.site-error-thread .is-court { align-self: flex-start; border-radius: 18px 18px 18px 6px; background: #fff; box-shadow: 0 1px 2px rgba(23, 22, 27, .06); }
.site-error-time { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--polish-muted); font-size: 11px; line-height: 14px; }
.is-you .site-error-time { color: rgba(255, 255, 255, .62); }
.site-error-ticks { width: 15px; height: 15px; vertical-align: -3px; }
.site-error-thread .is-photo { gap: 8px; width: 260px; padding: 4px 4px 8px; }
.site-error-exhibit { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 150px; border-radius: 14px; background: #e6e2d9; color: var(--polish-sage); font-size: 13px; font-weight: 600; line-height: 18px; }
.site-error-exhibit strong { color: var(--polish-ink); font-size: 76px; font-weight: 700; line-height: 1; letter-spacing: -.07em; }
.site-error-exhibit strong span { color: var(--polish-muted); }
.site-error-caption { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 10px; color: #41483f; font-size: 13px; line-height: 18px; }
/* Short laptop screens: the chat tightens so the page still fits without scrolling. */
@media (min-width: 1024px) and (max-height: 780px) {
  .page-not-found .site-error-code { margin-bottom: 24px; font-size: clamp(120px, 21vh, 200px); }
  .page-not-found .site-error-copy h1 { margin-bottom: 24px; }
  .page-not-found .site-error-chat-head { padding: 8px 12px 10px; }
  .site-error-thread { gap: 6px; padding: 12px; }
  .site-error-thread li { padding: 8px 12px 6px; font-size: 14px; line-height: 20px; }
  .site-error-exhibit { height: 96px; }
  .site-error-exhibit strong { font-size: 56px; }
}
@media (max-width: 1023px) {
  /* Stacked: the joke reads top to bottom, then the ways back. */
  .site-error-logo img { width: 120px; }
  .page-not-found .site-error-page { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 28px var(--page-pad) 48px; }
  .site-error-copy { display: contents; }
  .page-not-found .site-error-code { order: 1; margin-bottom: -22px; font-size: clamp(110px, 33vw, 200px); }
  .page-not-found .site-error-copy h1 { order: 2; margin: 0; font-size: clamp(32px, 8.7vw, 44px); }
  .site-error-chat { order: 3; justify-self: center; width: min(100%, 460px); transform: rotate(1deg); }
  .site-error-exits { order: 4; justify-self: center; max-width: 460px; }
}
@media (max-width: 767px) {
  .site-error-exits { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 5px; }
  .site-error-exit { gap: 12px; padding-left: 16px; font-size: 16px; line-height: 22px; }
  .site-error-thread { padding: 16px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-error-exit, .site-error-exit-tile, .site-error-exit-tile::before { transition: none; }
}

/* ---------- Area pages (expertise/*.html): the header is one line ----------
   The area's name on the left and its one action on the right edge of the column, centred on the
   name's line. Below 1024px the action sits under the name on every area page, long names or short. */
.page-area .site-page-header--framed.site-page-header--plain { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; }
.page-area .site-page-header--framed .site-page-header-aside { flex-shrink: 0; max-width: none; padding-bottom: 0; }
@media (max-width: 1023px) {
  .page-area .site-page-header--framed.site-page-header--plain { flex-direction: column; align-items: flex-start; }
}

/* ---------- First screen (Expertise, Team) ----------
   The title and the block beneath it share the opening screen exactly as About's title and photograph
   do: the same gap under the title, and the block reaching down to the foot of the window. Taller
   windows give the extra height to the part that can use it, never to empty space. */
@media (min-width: 1024px) {
  .site-first-screen { display: flex; flex-direction: column; min-height: calc(100svh - 88px); padding-bottom: clamp(14px, 1.6vw, 24px); }
  .site-first-screen > .site-page-header { flex: none; }
  .site-first-screen > section:last-child { flex: 1; padding-top: clamp(28px, 3.2vw, 44px); }

  /* Expertise: the six rows share the height, so the list stays under its heading. */
  .site-first-screen > .expertise-directory { display: flex; flex-direction: column; }
  .site-first-screen .expertise-panel { flex: 1; }
  .site-first-screen .expertise-rows { display: flex; flex: 1; flex-direction: column; margin-top: 0; }
  .site-first-screen .expertise-rows > li { display: flex; flex: 1; }
  .site-first-screen .expertise-row { flex: 1; }

  /* Team: each portrait takes the height left above its caption (never less than 360px),
     so the cards end at the foot of the window instead of running a screen and a half. */
  .site-first-screen > .team-people { align-items: stretch; }
  .site-first-screen .team-person-screen { flex: 1 1 0; min-height: max(360px, 30vw); max-height: none; aspect-ratio: auto; }
  .site-first-screen .team-person-caption { flex: none; }
  /* Two lines kept for the description so both captions, and so both portraits, match in height. */
  .site-first-screen .team-person-description { min-height: 3.12em; }

  /* Practice areas: the photograph takes the height left under the title, as About's does. */
  .site-first-screen > .area-photo { display: flex; flex: 1; flex-direction: column; margin-top: clamp(28px, 3.2vw, 44px); }
  .site-first-screen > .area-photo .site-frame-screen { flex: 1 1 0; height: auto; min-height: var(--photo-min); }

}

/* ---------- Phones: the title's actions always sit side by side ----------
   A tighter button (less padding, 13px type, a smaller arrow) so every pair fits one row from 360px up. */
@media (max-width: 767px) {
  .site-page-header .site-page-actions { flex-wrap: nowrap; gap: 8px; }
  .site-page-header .site-page-actions .site-btn { flex: 0 1 auto; min-width: 0; padding-inline: 13px; gap: 7px; font-size: 13px; }
  .site-page-header .site-page-actions .site-btn-icon { width: 16px; height: 16px; }
  .area-scope-list { grid-auto-rows: auto; }
  /* A long label gives way to its short form (Contact's "Call +27 12 347 0480" reads "Call us"). */
  .site-btn-wide { display: none; }
}
@media (min-width: 768px) { .site-btn-narrow { display: none; } }
@media (max-width: 374px) {
  .site-page-header .site-page-actions { gap: 6px; }
  .site-page-header .site-page-actions .site-btn { padding-inline: 11px; }
  .site-page-header .site-page-actions .site-btn-icon { display: none; }
}
