:root, body.enquiry-site {
  --paper: #faf9f6;
  --sky: #eeede9;
  --ink: #252526;
  --muted: #505052;
  --rule: #bcbab5;
  --horizon: #947546;
  --action: #74572e;
  --action-hover: #413d38;
  --daybreak: #e9d9b9;
  --field: #fcfbf8;
  --dark: #292828;
  --gold: #dbbb79;
  --white: #f7f5ef;
  --rim: 2px;
  --top-gold: linear-gradient(to top, #a48242, #bb954d 24%, #ecbd63 43%, #ffe077 55%, #a88644 68%, #826733 80%, #6c5529);
  --bottom-gold: linear-gradient(to bottom, #a48242, #ae8b47 24%, #d4a958 43%, #9a7a3e 55%, #725a2c 68%, #6c5529);
  --marble-base: #363534;
  --slab: url("/images/charcoal-slab.webp");
  --slab-width: 800px;
  --stone: url("/images/charcoal-marble.webp");
}
html:has(> body.enquiry-site) { scrollbar-gutter: stable; }
html, body.enquiry-site, .enquiry-home main { background: var(--paper); color: var(--ink); }
.enquiry-site .masthead { background: var(--sky); }
.enquiry-site .nameplate { border: 0; padding: clamp(16px,1.6vw,23px) var(--gutter) clamp(13px,1.1vw,18px); }
.identity-heading { display: flex; margin: 0; }
.nameplate .practice-identity {
  display: inline-flex; align-items: center; justify-content: center;
  max-width: 100%; text-decoration: none;
}
.practice-identity img { display: block; flex: none; object-fit: contain; }
.enquiry-site { --wordmark-width: clamp(186px,34vw,467px); }
.practice-identity .name-wordmark { width: var(--wordmark-width); height: auto; }
.enquiry-home .advisor-portrait, .profile-portrait .profile-person { filter: grayscale(100%); }
.profile-portrait { background: var(--sky); }
.enquiry-site .primary, .enquiry-home .invitation .primary {
  color: var(--white); background-color: #282726; border: 1px solid #302d28;
  box-shadow: inset 0 -2px 0 #ac8c51;
}
.enquiry-site .primary:hover { background: var(--action-hover); box-shadow: inset 0 -2px 0 var(--gold); }
.enquiry-site .primary span { color: var(--gold); }
.invitation .standfirst { color: #353432; }
.company-toggle { color: var(--action); border-color: #a59478; }
.section-nav a, .site-foot a { text-underline-offset:.25em; }
.enquiry-site .document h1, .enquiry-site .workspace-body > h1, .profile-reading h1 { color:#302d27; }
.enquiry-site .profile-portrait { border:0; border-bottom:2px solid var(--horizon); }
.enquiry-site .field :is(input,select,textarea), .archive-field :is(input,select) { background:var(--field); border-color:#a5a09a; }
.enquiry-site .footer-band { padding: 2px var(--page-inset); }
.enquiry-site .site-foot {
  display: block; padding: clamp(1.3rem, 2.3vw, 2rem) 0;
  color: #f1ede5; border: 0; font: 400 .875rem/1.4 var(--body);
}
.site-foot nav {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: .95rem 2rem;
}
.footer-wordmark {
  display: block; width: min(100%, 20rem, calc(var(--wordmark-width) * .76)); height: auto;
  aspect-ratio: 841.20 / 104.33;
}
.site-foot .marble-link { justify-self: end; }
.footer-links {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap;
  column-gap: 2rem;
}
.footer-links ul {
  display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0;
  gap: 0 clamp(1.2rem, 2.5vw, 2.8rem);
}
.enquiry-site :focus-visible { outline: 2px solid #85622c; outline-offset: 3px; }
.enquiry-site .marble-nav :focus-visible { outline: 2px solid #ffe6a6; outline-offset: -2px; }
@media (max-width:760px) {
  .enquiry-site .nameplate { padding-block: 14px 13px; }
  .enquiry-site { --wordmark-width: clamp(182px,60vw,345px); }
}

/* The navigation names each section. Preserve document headings for readers using heading navigation. */
.enquiry-site .accessible-title {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* The gold profiles sample reflection on two quarter-cylinders under the same
   overhead light. At distance u from the stone face the reflected angle is
   ±2 asin(u). The upper lip catches the key light, the lower lip its softer fill. */
.enquiry-site .marble-nav {
  background-color: var(--marble-base);
  background-image: var(--top-gold), var(--bottom-gold), var(--slab);
  background-position: top, bottom, center 46%;
  background-size: 100% var(--rim), 100% var(--rim), var(--slab-width) auto;
  background-repeat: no-repeat, no-repeat, repeat; background-blend-mode: normal, normal, soft-light;
  box-shadow: 0 2px 3px -2px rgb(32 25 15 / 58%);
}
.enquiry-site .section-nav {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; padding: var(--rim) max(var(--gutter), calc((100% - 62rem) / 2));
}
/* The separately deployed enquiry Worker can still serve the four-link masthead. */
.section-nav > :is(.desktop-sections, .mobile-sections) { grid-column: 1 / -1; }
.section-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mobile-sections { display: none; }
.enquiry-site .section-nav a {
  min-width: 0; min-height: 48px; display: grid; place-items: center;
  text-decoration: none; color: #f6f2e9;
  font: 510 clamp(1.1rem, 1.45vw, 1.35rem)/1.16 var(--display);
  letter-spacing: -.015em;
}
.nav-label { position: relative; display: block; transform-origin: center; }
.nav-rule {
  position: absolute; bottom: -.22em; width: 2.2rem; left: 50%; translate: -50% 0; height: 1px;
  background: currentColor; opacity: 0; transform: scaleX(.35); transform-origin: center;
}
.section-nav [aria-current] .nav-label { font-weight: 650; transform: scale(1.065); }
.section-nav :is([aria-current], :focus-visible) .nav-rule { opacity: 1; transform: scaleX(1); }
@media (hover: hover) {
  .section-nav a:hover .nav-label { transform: scale(1.065); }
  .section-nav a:hover .nav-rule { opacity: 1; transform: scaleX(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .nav-label { transition: transform 250ms cubic-bezier(.22,.75,.2,1), font-weight 250ms ease; }
  .nav-rule { transition: transform 280ms cubic-bezier(.22,.75,.2,1), opacity 180ms ease; }
}
.site-foot a.footer-link {
  display: inline-flex; align-items: center; min-height: 32px; color: #f1ede5;
  font: 520 1.14rem/1.2 var(--display); text-decoration: none;
}
.site-foot .footer-link span { text-shadow: 0 0 0 transparent; }
/* Contact opens a small panel above its label. The panel overlays the footer instead of
   reflowing it, so the toggle stays under the pointer on every page and width. */
.footer-contact { position: relative; }
.site-foot summary.footer-link {
  display: inline-flex; align-items: center; gap: .45em; min-height: 32px; color: #f1ede5;
  font: 520 1.14rem/1.2 var(--display); cursor: pointer; list-style: none;
}
.site-foot summary.footer-link::-webkit-details-marker { display: none; }
.site-foot summary.footer-link::after {
  content: ""; width: .36em; height: .36em; margin-top: -.18em;
  border: solid currentColor; border-width: 0 1px 1px 0; rotate: 45deg; opacity: .8;
}
.footer-contact details[open] > summary::after { margin-top: .18em; rotate: 225deg; }
.footer-contact ul {
  position: absolute; z-index: 3; bottom: calc(100% + .2rem); left: -.75rem;
  display: flex; flex-direction: column; align-items: start; margin: 0; padding: .15rem .75rem;
  list-style: none; white-space: nowrap;
  background: var(--marble-base) var(--slab) center 46% / var(--slab-width) auto; background-blend-mode: soft-light;
  border: 1px solid var(--horizon); box-shadow: 0 6px 14px rgb(16 13 9 / 45%);
}
.site-foot .footer-link:is(:focus-visible, :active) span {
  color: #f6deb0;
  text-shadow: 0 -.6px 0 #fff6df, 0 1px 0 #624a2d, 0 2px 2px #100e0c;
}
.enquiry-site .marble-link {
  --face-y: 0px; --label-y: 0px; --lip: 2px; --shadow-y: 2px; --shadow-blur: 3px;
  --glint-position: -30%; --glint-opacity: 0;
  position: relative; isolation: isolate;
  display: inline-grid; grid-template-columns: 18px minmax(0, 1fr) 18px; align-items: center; gap: .35em;
  width: var(--marble-button-width, 14.5rem); max-width: 100%; padding: calc(.38em + 4px) .7em; text-align: center;
  min-height: 50px; border-radius: 5px;
  color: var(--inlay-ink, #30291e); background: #201d18; text-decoration: none;
  box-shadow: inset 0 2px 3px #0e0b08, inset 0 -1px 0 #978973, 0 1px 1px #15120e;
}
.enquiry-site :is(.primary, .marble-link) {
  font: 650 1.24rem/1.15 var(--display);
  letter-spacing: -.012em;
}
.marble-link .inlay-label { grid-column: 2; }
.marble-link .inlay-arrow { grid-column: 3; justify-self: end; }
.enquiry-site .marble-link--charcoal {
  border: var(--rim) solid transparent;
  background: linear-gradient(#201d18, #201d18) padding-box,
    var(--top-gold) top / 100% var(--rim) no-repeat border-box,
    var(--bottom-gold) bottom / 100% var(--rim) no-repeat border-box,
    linear-gradient(90deg, #94733c, #ebcc87 50%, #96743e) border-box;
  --inlay-ink: #fff7e7; --inlay-arrow: #e8c789;
  --inlay-base: var(--marble-base); --inlay-edge: #817457;
  --inlay-bevel: #4c4338; --inlay-lip: #332d26;
  --inlay-glint: .16;
}
.inlay-face {
  /* The socket holds still as the stone rises and reveals its lower edge. */
  position: absolute; z-index: -1; inset: 3px 4px 5px;
  isolation: isolate; overflow: hidden; pointer-events: none; border-radius: 3px;
  background: var(--inlay-base, #ede8df); transform: translateY(var(--face-y));
  box-shadow: inset 0 1px 0 var(--inlay-edge, #fffdf6), inset 0 -1px 0 var(--inlay-bevel, #bcb3a3),
              0 var(--lip) 0 var(--inlay-lip, #a09686), 0 var(--shadow-y) var(--shadow-blur) 1px rgb(12 9 6 / .72);
}
.inlay-face::before {
  content: ""; position: absolute; inset: 1px; z-index: -2;
  background: var(--stone) 48% 62% / 240px auto; filter: var(--inlay-filter, grayscale(1) invert(1)); opacity: var(--inlay-grain, .52);
}
.marble-link--charcoal .inlay-face::before {
  background: var(--marble-base) var(--slab) center 46% / var(--slab-width) auto;
  background-blend-mode: soft-light; filter: none; opacity: 1;
}
.inlay-face::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(109deg, transparent 14%, rgb(255 248 229 / var(--inlay-glint, .62)) 49%, transparent 78%);
  opacity: var(--glint-opacity);
}
.inlay-arrow { display: block; flex: none; color: var(--inlay-arrow, #795b2d); }
@media (hover: hover) {
  .site-foot .footer-link:hover span {
    color: #f6deb0;
    text-shadow: 0 -.6px 0 #fff6df, 0 1px 0 #624a2d, 0 2px 2px #100e0c;
  }
  .enquiry-site .marble-link:hover {
    --face-y: -2px; --label-y: -1px; --lip: 4px; --shadow-y: 5px; --shadow-blur: 6px;
    --glint-position: 16%; --glint-opacity: .7;
    text-decoration: none;
  }
}
.enquiry-site .marble-link:focus-visible {
  --glint-position: 16%; --glint-opacity: .7;
  outline-offset: 3px;
}
.enquiry-site .marble-link:active {
  --face-y: 1px; --label-y: 1px; --lip: 1px; --shadow-y: 1px; --shadow-blur: 1px;
  --glint-position: 8%; --glint-opacity: .23;
}
@media (prefers-reduced-motion: no-preference) {
  .footer-link span { transition: color 150ms ease, text-shadow 180ms ease; }
  .inlay-face { transition: transform 200ms ease-out, box-shadow 200ms ease-out; }
  .inlay-label, .inlay-arrow {
    transform: translateY(var(--label-y)); transition: transform 200ms ease-out;
  }
  .inlay-face::after {
    transform: translateX(var(--glint-position));
    transition: transform 340ms cubic-bezier(.2,.7,.25,1), opacity 220ms ease-out;
  }
  .marble-link:active :is(.inlay-face, .inlay-label, .inlay-arrow),
  .marble-link:active .inlay-face::after { transition-duration: 80ms; }
}
@media (prefers-reduced-motion: reduce) {
  .inlay-face { transform: none; }
}
.enquiry-home .invitation {
  grid-template-areas: "description portrait action";
  grid-template-columns: minmax(0,1fr) var(--portrait-size) minmax(0,1fr);
}
.enquiry-home .invitation .standfirst {
  max-width: 22ch; font-size: clamp(23px,2.35vw,34px); line-height: 1.15;
}
.enquiry-invitation { grid-area: action; padding-block: 20px; max-width: 36ch; }
.enquiry-invitation p { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.document-copy > .marble-link { margin-top: 10px; }
.profile-reading .profile-lede { margin-top: 0; }
.enquiry-site .archive-filters { margin-top: clamp(16px,2.5vw,32px); }
.enquiry-site .document h1:not(.accessible-title) {
  font-size: clamp(23px,2.1vw,30px); letter-spacing: -.025em; margin-bottom: 13px;
}
@media (max-width:760px) {
  .enquiry-site .section-nav a { min-height: 44px; font-size: 1.08rem; }
  .enquiry-home .invitation {
    grid-template-areas:"portrait" "description" "action"; grid-template-columns: minmax(0,1fr);
  }
  .enquiry-home .invitation .standfirst { max-width: 28ch; font-size: 22px; padding-top: 14px; }
  .enquiry-invitation { padding-block: 8px 18px; }
  .enquiry-invitation p { margin-bottom: 12px; font-size: 14px; }
  .profile-intro { grid-template-areas:"portrait" "copy"; }
}
@media (max-width: 760px) {
  .enquiry-site .site-foot { padding: 1.1rem 0 .8rem; }
  .site-foot nav { gap: .65rem 1.1rem; }
  .site-foot :is(a, summary).footer-link { min-height: 34px; font-size: 1.08rem; }
  .enquiry-site :is(.primary, .marble-link) { font-size: 1.1rem; }
  .enquiry-site .marble-link { padding-inline: .75em; }
}
@media (max-width: 560px) {
  .site-foot nav { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .site-foot .marble-link { justify-self: start; }
  .footer-links { flex-direction: column; }
  .footer-links ul { column-gap: 1.25rem; }
}
/* Keep the two-step form usable on a short phone, with every footer link reachable. */
@media (max-width: 760px) and (max-height: 720px) {
  .enquiry-site:has(.intake-form) .site-foot { padding-block: .55rem; }
  .enquiry-site:has(.intake-form) .site-foot nav { row-gap: .5rem; }
  .enquiry-site:has(.intake-form) .footer-link { min-height: 25px; }
}
/* At small desktop widths the portrait shares a row with both text columns. */
@media (min-width: 761px) and (max-width: 940px) {
  .enquiry-site { --marble-button-width: min(14.5rem, 25vw); }
  .enquiry-site .marble-link { grid-template-columns: 12px minmax(0, 1fr) 12px; font-size: 1.1rem; padding-inline: .5em; gap: .2em; }
  .marble-link .inlay-arrow { width: 14px; }
}
@media (max-width: 760px) {
  .section-nav.marble-nav {
    background-position: top, bottom, center top;
  }
  .enquiry-site .section-nav > a { font-size: clamp(.93rem, 4.1vw, 1.05rem); }
  .desktop-sections { display: none; }
  .mobile-sections { position: relative; display: block; }
  .menu-page {
    min-height: 44px; margin-inline: 48px; display: grid; place-content: center;
    color: var(--white); text-align: center; font: 650 1.22rem/1.1 var(--display);
  }
  .section-menu summary {
    position: absolute; inset: 0 0 auto auto; display: grid; place-items: center;
    width: 48px; height: 44px; color: var(--white); cursor: pointer; list-style: none;
  }
  .section-menu summary::-webkit-details-marker { display: none; }
  .section-menu summary:focus-visible { outline: 1px solid var(--white); outline-offset: -4px; border-radius: 4px; }
  .menu-icon { position: relative; display: block; width: 21px; height: 14px; }
  .menu-icon::before, .menu-icon i, .menu-icon::after {
    position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 1px; background: currentColor;
  }
  .menu-icon::before, .menu-icon::after { content: ""; }
  .menu-icon::before { top: 0; }
  .menu-icon i { top: calc(50% - .75px); }
  .menu-icon::after { bottom: 0; }
  .section-menu[open] .menu-icon::before { transform: translateY(6.25px) rotate(45deg); }
  .section-menu[open] .menu-icon::after { transform: translateY(-6.25px) rotate(-45deg); }
  .section-menu[open] .menu-icon i { opacity: 0; }
  .section-links { grid-template-columns: 1fr; padding-block: 0 .5rem; }
  .section-menu .nav-rule { display: none; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .menu-icon::before, .menu-icon::after { transition: transform 180ms ease-out; }
  .menu-icon i { transition: opacity 130ms ease-out; }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .section-menu { interpolate-size: allow-keywords; }
    .section-menu::details-content {
      block-size: 0; overflow: clip;
      transition: block-size 220ms cubic-bezier(.22,.75,.2,1), content-visibility 220ms allow-discrete;
    }
    .section-menu[open]::details-content { block-size: auto; }
  }
}

.question-feature { width: 100%; }
.question-stack {
  display: grid;
  text-wrap: wrap;
}
.question-stack > span {
  grid-area: 1 / 1;
  align-self: start;
  text-wrap: wrap;
}
/* Each complete question reserves its wrapped height and remains readable to assistive technology. */
.question-option { opacity: 0; }
.question-option:first-child { opacity: 1; }
.question-feature[data-typing] .question-option:first-child { opacity: 0; }
.question-ink { pointer-events: none; user-select: none; }
.question-word, .question-prefix { display: inline-block; }
.question-prefix { position: relative; }
.question-rest { visibility: hidden; }
.question-word[data-caret] .question-prefix::after {
  content: ""; position: absolute; right: -.065em; bottom: 0;
  height: .82em; width: 1.5px; background: var(--caret-ink, var(--action));
}
@media (prefers-reduced-motion: no-preference) {
  /* All words inherit one blink phase, including when the caret wraps to a new line. */
  .question-feature[data-typing] .question-ink { animation: type-caret 1s step-end infinite; }
  @keyframes type-caret {
    0%, 100% { --caret-ink: var(--action); }
    50% { --caret-ink: transparent; }
  }
}
@media (max-width: 760px) {
  .enquiry-home .question-stack { margin-inline: auto; }
}
@media print, (prefers-reduced-motion: reduce) {
  .question-ink { display: none; }
  .question-feature[data-typing] .question-option:first-child { opacity: 1; }
}

/* Full-bleed artwork and navigation frame a narrower reading column. */
body.enquiry-home, .enquiry-site .masthead { max-width: none; }
/* Resolve the inset on each page so its strip and reading column have the same margins. */
:where(.enquiry-site, .workspace, .work-directory, .profile-page) {
  --page-inset: max(var(--gutter), calc((100% - var(--reading-width)) / 2));
}
.enquiry-site {
  --reading-width: 1305px;
}
.enquiry-site .masthead { padding-inline: 0; }
.enquiry-home .front-page { padding-inline: 0; }
.enquiry-home .front-page > .invitation {
  width: min(calc(100% - 2 * var(--gutter)), var(--reading-width));
  margin-inline: auto;
}

body.enquiry-site:not(.enquiry-home) {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.enquiry-site:not(.enquiry-home) > :is(.masthead, main) { width: 100%; }
.enquiry-site:not(.enquiry-home) > main { flex: 1; }
.enquiry-site .document { max-width: none; padding: 0; border: 0; }
.legal-notice {
  width: min(100% - 2 * var(--gutter), 66ch); margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 4.5rem); color: var(--ink); line-height: 1.65;
}
.legal-notice h1 { margin: .35rem 0 1.25rem; font: 580 clamp(2.2rem, 4vw, 3.3rem)/1.05 var(--display); }
.legal-notice [data-pilot-policy] { white-space: pre-line; }
.legal-notice h2 { margin: 1.6rem 0 .35rem; font: 560 1.65rem/1.15 var(--display); }
.legal-notice a { color: var(--action); text-decoration: underline; text-underline-offset: .18em; }
.notice-edition, .notice-version { color: var(--muted); font-size: .84rem; }
.legal-notice .notice-version { margin-top: 1.5rem; }
.document-intro {
  padding: clamp(24px, 3vw, 42px) var(--page-inset);
}
.document-intro > div, .document-copy {
  max-width: var(--reading-width);
  margin-inline: auto;
}
.document-intro .back { color: var(--action); margin: 0; }
.document .document-intro .lede {
  max-width: 49ch; margin: 0; color: var(--ink);
  font: 440 clamp(22px, 2.15vw, 31px)/1.22 var(--display);
}
.document-copy {
  width: calc(100% - 2 * var(--gutter));
  padding-block: clamp(24px, 3.1vw, 45px) clamp(48px, 6vw, 84px);
}
.document-copy > p:first-child { margin-top: 0; }
.enquiry-site:has(.workspace) { --reading-width: 60rem; }
.enquiry-site:has(.work-directory) { --reading-width: 76rem; }
.enquiry-site:has(.profile-page) { --reading-width: 1150px; }
.workspace-intro {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px clamp(18px, 2.2vw, 36px);
  padding: 14px var(--page-inset) 12px;
}
.workspace-label { font: 510 clamp(1.1rem, 1.45vw, 1.35rem)/1.16 var(--display); }
.workspace-body > h1 {
  font: 580 clamp(1.85rem, 2.7vw, 2.7rem)/1.08 var(--display);
  letter-spacing: -.025em; margin-bottom: .65rem;
}
.workspace-body h2 { font: 520 clamp(1.5rem, 2vw, 2rem)/1.16 var(--display); }
.workspace-body h3 { font: 520 1.25rem/1.2 var(--display); }
.workspace-body .lede {
  max-width: 60ch; font: 400 1rem/1.5 var(--body);
  letter-spacing: normal; color: var(--muted);
}
.workspace :is(.back, .secondary) { font: 520 1.125rem/1.2 var(--display); }
.workspace .workspace-notice {
  margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted);
  text-wrap: pretty;
}
.workspace-intro .back { margin: 0; color: var(--action); }
.workspace-body {
  margin-inline: var(--page-inset);
  padding-block: clamp(24px, 3.4vw, 48px) clamp(48px, 6vw, 84px);
}
.enquiry-site .profile-recognition { padding: clamp(22px, 2.6vw, 38px) var(--page-inset); }
.workspace-body .prose { max-width: 72ch; }
.workspace .status { background: var(--daybreak); color: var(--ink); }
.workspace :is(.stats dt, .stats dd) { border-color: var(--rule); }
@media (min-width: 761px) {
  .document-intro > div:has(.back) {
    display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr);
    column-gap: clamp(28px, 5vw, 82px);
    align-items: center;
  }
  .document-intro .back { justify-self: start; }
  .document-intro h1:not(.accessible-title) { grid-column: 1; margin: 0; }
  .document-intro .back ~ .lede { grid-column: 2; grid-row: 1 / 3; }
}
/* Practice detail pages keep the back link on its own row. From 900px the title shares the
   lede's first baseline, and the guidance and Ask action continue in the lede's column. */
@media (min-width: 761px) {
  .practice-detail { --practice-space: clamp(20px, 2.2vw, 32px); }
  .practice-detail .document-intro { padding-bottom: 0; }
  .practice-detail .document-intro > div { display: block; }
  .practice-detail .document-intro h1:not(.accessible-title) { margin: 0 0 14px; }
  .practice-detail .document-copy { padding-top: var(--practice-space); }
  .practice-detail .document-copy > p { max-width: 62ch; margin: 0; }
  .practice-detail .document-copy > .marble-link { margin-top: var(--practice-space); }
}
@media (min-width: 900px) {
  .practice-detail :is(.document-intro > div, .document-copy) {
    display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr);
    column-gap: clamp(28px, 5vw, 82px);
  }
  .practice-detail .document-intro > div { align-items: baseline; }
  .practice-detail .document-intro .back { grid-column: 1 / -1; }
  .practice-detail .document-intro h1:not(.accessible-title) { grid-column: 1; margin: 0; }
  .practice-detail .document-intro .back ~ .lede { grid-column: 2; grid-row: auto; }
  .practice-detail .document-copy > * { grid-column: 2; justify-self: start; }
}
@media (max-width: 760px) {
  .workspace-intro { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding-block: 10px 16px; }
  .workspace-intro .back { grid-area: 1 / 2; }
  .workspace-notice { grid-column: 1 / -1; max-width: 56ch; }
}

.enquiry-site:has(.workspace[data-screen="ask"]) { --reading-width: 52rem; }
.workspace .intake-header {
  grid-template-columns: minmax(0, 1fr) fit-content(calc(100% - 8rem)) minmax(0, 1fr);
  gap: 0; padding-block: 18px 4px;
}
.enquiry-site .intake-header h1 {
  grid-area: 1 / 2; margin: 0; color: var(--ink); text-align: center;
  font: 590 clamp(1.85rem, 3vw, 2.7rem)/1.06 var(--display);
  letter-spacing: -.024em; text-wrap: balance;
}
.intake-back {
  grid-area: 1 / 1; justify-self: start;
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--action);
}
.intake-back::before {
  content: ""; width: 12px; height: 12px;
  border: solid currentColor; border-width: 0 0 1.75px 1.75px;
  transform: rotate(45deg);
}
.intake-back:hover { color: var(--ink); }
.intake-progress {
  grid-area: 1 / 3; justify-self: end; white-space: nowrap;
  color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.workspace .intake-form { margin: 0; gap: 0; }
.intake-fields { display: grid; align-content: start; gap: 16px; padding: 4px; }
.intake-options summary { display: list-item; align-content: center; width: fit-content; }
.intake-options > :is(p, .two) { margin-block: 6px 12px; }
.intake-actions {
  display: flex; justify-content: flex-end;
  margin-top: 12px; padding: 14px 4px 0; border-top: 1px solid var(--rule);
}
.intake-actions .primary { min-inline-size: 7rem; }
@media (max-width: 760px) {
  .workspace .intake-header { padding-block: 5px 10px; }
  .intake-fields { gap: 12px; }
}
@media screen and (min-height: 520px) {
  /* Only the active step scrolls. Its action stays in view below the fields. */
  body.enquiry-site:has(.intake-form) {
    display: grid; height: 100dvh; min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  main:has(.intake-form) { display: grid; min-height: 0; }
  .workspace:has(.intake-form) {
    display: grid; min-height: 0; grid-template-rows: auto minmax(0, 1fr);
  }
  .workspace-body:has(.intake-form) {
    display: grid; min-height: 0; grid-template-rows: auto minmax(0, 1fr);
    padding-block: clamp(12px, 2.2vh, 24px);
  }
  #screen:has(> .intake-form) { grid-row: 2; min-height: 0; }
  .workspace .intake-form { display: flex; flex-direction: column; max-height: 100%; }
  .intake-fields { min-height: 0; overflow-y: auto; }
  .intake-actions { flex: none; }
}

.practice-index {
  width: min(calc(100% - 2 * var(--gutter)), 64rem);
  margin-inline: auto; padding-block: clamp(1.25rem, 6svh, 4rem);
}
.practice-index ul { margin: 0; padding: 0; list-style: none; }
.practice-index li + li { border-top: 1px solid var(--rule); }
.practice-index a {
  display: grid; grid-template-columns: 1fr minmax(0, 1fr) auto;
  align-items: baseline; gap: .3rem clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.15rem, 3.5svh, 2.25rem);
  color: var(--ink); text-decoration: none;
}
.practice-index h2 { margin: 0; font: 520 clamp(1.6rem, 3vw, 2.6rem)/1.1 var(--display); }
.practice-index p { margin: 0; color: var(--muted); font: 400 1rem/1.45 var(--body); }
.practice-index a > span { color: var(--action); }
.practice-index a:is(:hover, :focus-visible) h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.enquiry-home #services-heading a { font: inherit; color: inherit; }
@media (max-width: 760px) {
  .practice-index a { grid-template-columns: 1fr auto; align-items: center; }
  .practice-index p { grid-area: 2 / 1; }
  .practice-index a > span { grid-area: 1 / 2 / 3; }
}

@media (orientation: landscape) and (max-height: 480px) {
  .enquiry-site .nameplate { padding-block: 5px; }
  .enquiry-site { --wordmark-width: clamp(180px, 25vw, 270px); }
  .practice-index { padding-block: 14px; }
  .practice-index a { padding-block: 8px; }
}

@media (max-height: 600px) {
  .document-intro { padding-block: 12px 8px; }
  .document-copy { padding-top: 6px; }
  .document-copy > p { margin-bottom: 10px; }
}

/* A landscape phone has space beside the portrait for the question and its action. */
@media (min-width: 480px) and (max-width: 760px) and (orientation: landscape) {
  /* The earlier full band, capped at the rows above the quay anchor (72.5% of the 116% photograph). */
  .city-panorama { height: min(22.2vw, 37svh); }
  .panorama-art { --left-crop: 8cqw; width: 116%; aspect-ratio: 2172 / 574; top: -1vw; transform: none; }
  .sun-horizon { inset: 0; }
  .rising-sun { width: 84cqw; }
  .enquiry-home .invitation {
    --portrait-size: clamp(96px, min(34svh, 20vw), 188px);
    --portrait-gap: 12px;
    grid-template-areas: "description portrait action";
    grid-template-columns: minmax(0,1fr) var(--portrait-size) minmax(0,1fr);
    column-gap: 12px;
  }
  .enquiry-home .invitation .standfirst { padding-top: 0; }
  .enquiry-invitation { padding-block: 8px; width: 100%; }
  .enquiry-invitation p { margin-bottom: 6px; }
  .enquiry-invitation .marble-link { grid-template-columns: 12px minmax(0,1fr) 12px; gap: .2em; padding-inline: .5em; }
  .profile-intro {
    grid-template-columns: minmax(0,.78fr) minmax(0,1.14fr);
    grid-template-areas: "portrait copy"; align-items: start;
  }
  .profile-reading { display: block; }
  .profile-reading .profile-lede { font-size: clamp(1.25rem, 3.5vw, 1.45rem); }
  .profile-reading > :is(.actions, p:not(.profile-lede)) { margin-top: 12px; }
  .profile-portrait { aspect-ratio: 4 / 5; max-height: 68svh; }
  .practice-index a { grid-template-columns: minmax(0,.9fr) minmax(0,1.3fr) auto; }
  .practice-index :is(p, a > span) { grid-area: auto; }
}

@media (min-width: 480px) and (max-width: 760px) and (orientation: landscape) and (max-height: 480px) {
  .enquiry-site .practice-detail {
    display: grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr); gap: 16px;
    padding: 8px var(--gutter) 24px;
  }
  .practice-detail .document-intro, .practice-detail .document-copy { width: 100%; padding: 0; }
  .practice-detail .document-copy p { line-height: 1.4; }
  .practice-detail .document-copy .marble-link { margin-top: 0; }
}

@media (min-width: 761px) and (min-aspect-ratio: 3/1) {
  .enquiry-home .nameplate { padding-block: 6px; }
  .enquiry-home { --wordmark-width: clamp(210px, 32svh, 340px); }
}

/* The phone reference shows the whole phone photograph, sky to water, with a small disc; the portrait
   stands 14 px below it. Same crop with Safari's toolbar either way. */
@media (max-width: 760px) and (orientation: portrait), (max-width: 479px) {
  .enquiry-home .city-panorama { height: 37.333vw; }
  .enquiry-home .panorama-art { --left-crop: 5.5cqw; width: 112%; }
  /* 26cqw, not the earlier 29cqw: keeps at least 4 px of open sky between the gold and the far bridge
     tower on the left and the first Amsterdam trees on the right at 320–430 px. */
  .enquiry-home .rising-sun { width: min(26cqw, 140px); top: auto; bottom: 24%; --sun-sink: 3px; }
  .enquiry-home .invitation {
    --portrait-size: clamp(112px, 36.5vw, 180px);
    --portrait-gap: 14px;
  }
}
/* Landscape phones keep the quay line (source row 416) on the band's lower edge, as above 760 px. */
@media (min-width: 480px) and (max-width: 760px) and (orientation: landscape) {
  .enquiry-home .panorama-art { top: 100%; transform: translateY(-72.5%); }
  .enquiry-home .rising-sun { width: min(25cqw, 150px); top: auto; bottom: 30%; --sun-sink: 3px; }
}

/* At desktop scale the panorama band spans the whole shell. The photograph never exceeds its
   2172 px source width; beyond that its edges dissolve into a field toned from its own sky,
   distant ridge and water, so the band continues to both edges without repeating a landmark.
   Sun and portrait keep their own caps so a larger monitor never magnifies the gold texture. */
/* The band shows source rows 36–432 of the 574-row photograph (about two thirds of its height):
   minaret tips at row 50 down to the bridge arches. Row 432 (75.26%) stays on the band's lower edge,
   so where the height cap binds (very wide, short windows) sky is trimmed before the quay or sun. */
@media (min-width: 761px) {
  .enquiry-home .city-panorama {
    --art-ratio: 3.784;
    --frame-anchor: -75.26%;
    height: min(calc(min(100vw, 2172px) / var(--art-ratio) * .69), 33.3svh);
    border-bottom: var(--rim) solid #8f7140;
    border-image: var(--bottom-gold) 1;
    background: #c9c9c9;
  }
  .enquiry-home .city-panorama::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 100%;
    height: calc(min(100cqw, 2172px) / var(--art-ratio));
    translate: 0 var(--frame-anchor);
    background:
      linear-gradient(to right, rgb(52 52 52 / 15%), transparent 9%, transparent 91%, rgb(52 52 52 / 15%)),
      linear-gradient(to bottom, #bcbcbc, #c9c9c9 22%, #d5d5d5 45%, #d8d8d8 56%, #d1d1d1 62%,
      #c7c7c7 67%, #bfbfbf 72%, #b9b9b9 82%, #b0b0b0 92%, #a7a7a7);
  }
  .enquiry-home .panorama-art {
    --left-crop: 0px;
    container-type: inline-size;
    left: 50%;
    width: min(100cqw, 2172px);
    top: 100%;
    transform: translate(-50%, var(--frame-anchor));
  }
  /* Wide screens only: two peripheral plates continue both quays from a registered wider master.
     They sit under the original photograph, which keeps the landmarks, horizon mask, sun and portrait,
     and meet it across a 72 px overlap. The same container width switches plates and the
     narrow edge blend together, and phones never request either plate. */
  .shore-wings { display: none; }
  @container (min-width: 2173px) {
    .enquiry-home .shore-wings {
      display: block;
      position: absolute;
      left: 50%;
      top: 100%;
      width: 2172px;
      aspect-ratio: 2172 / 574;
      transform: translate(-50%, var(--frame-anchor));
      pointer-events: none;
    }
    .shore-wings::before, .shore-wings::after {
      content: "";
      position: absolute;
      top: 0;
      height: 100%;
      background: center / 100% 100% no-repeat;
    }
    .shore-wings::before {
      right: calc(100% - 72px);
      aspect-ratio: 534 / 317;
      background-image: url("/images/shore-wing-left-db7130f9cf.webp");
    }
    .shore-wings::after {
      left: calc(100% - 72px);
      aspect-ratio: 519 / 317;
      background-image: url("/images/shore-wing-right-b83a48badb.webp");
    }
    .enquiry-home .city-panorama .panorama-art {
      -webkit-mask: linear-gradient(to right, transparent, #000 3.3%, #000 96.7%, transparent);
      mask: linear-gradient(to right, transparent, #000 3.3%, #000 96.7%, transparent);
    }
  }
  /* Each plate reaches 895 px beyond the photograph, so its outer end shows past 3962 px.
     From there the plates fall off progressively into the toned field instead of ending in a cut. */
  @container (min-width: 3962px) {
    .shore-wings { --falloff: clamp(0px, (100cqw - 3962px) * .75, 620px); }
    .shore-wings::before {
      -webkit-mask: linear-gradient(to right, transparent, #000 var(--falloff));
      mask: linear-gradient(to right, transparent, #000 var(--falloff));
    }
    .shore-wings::after {
      -webkit-mask: linear-gradient(to left, transparent, #000 var(--falloff));
      mask: linear-gradient(to left, transparent, #000 var(--falloff));
    }
  }
  /* The 260 px disc (520 px texture, native on 2x screens) settles 6 px lower behind the ridge.
     21cqw rather than 23cqw below 1238 px keeps 10 px of sky to the far tower and the first trees. */
  .enquiry-home .rising-sun {
    width: min(21cqw, 260px);
    top: auto;
    bottom: 30%;
    --sun-sink: 6px;
  }
  .enquiry-home .invitation {
    --portrait-size: clamp(168px, min(26vw, 34svh), 350px);
    --portrait-gap: clamp(20px, 1.8vw, 28px);
  }
}
