:root {
  --dawn-pace: .55;
  --sunrise-duration: 3.3s;
  --sunrise-motion: var(--sunrise-duration) cubic-bezier(.32,.04,.20,1) both;
}
body.enquiry-home { max-width: 1440px; }
.enquiry-home > .wrap { max-width: none; padding-inline: var(--gutter); }
.city-panorama {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  overflow: hidden;
  height: 30vw;
  background: #b8bab9;
}
.panorama-art {
  position: absolute;
  --left-crop: 8cqw;
  width: 116%;
  left: calc(-1 * var(--left-crop));
  top: 50%;
  transform: translateY(-50%);
  aspect-ratio: 2172 / 574;
}
.panorama-art picture { display: block; }
.shoreline { display: block; width: 100%; height: auto; }
/* The alpha matte follows the photograph's individual trees, buildings and distant hills.
   It stays in landscape coordinates while the gold disc moves behind it. */
.sun-horizon {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--horizon-mask) center / 100% 100% no-repeat;
  mask: var(--horizon-mask) center / 100% 100% no-repeat;
}
/* Centre the disc on the portrait even when the phone crop favours the mosque. */
/* --sun-sink lowers the settled disc a few CSS px behind the horizon; studies inherit it too. */
.rising-sun {
  margin-bottom: calc(-1 * var(--sun-sink, 0px));
  position: absolute;
  display: block;
  width: 84cqw;
  height: auto;
  left: calc(50cqw + var(--left-crop));
  top: 2%;
  translate: -50% 0;
}
.rising-sun img { display: block; width: 100%; height: auto; }
/* Use the tiny copy of the original texture while the full-resolution image is in flight. */
@media (scripting: enabled) {
  .rising-sun { background: var(--sun-preview, none) center / 100% 100% no-repeat; }
}

/* The original dusk covers the entire viewport once. Both animations first match
   when the parser reaches the disc, so their start is shared even on streamed HTML. */
@media screen and (prefers-reduced-motion: no-preference) {
  [data-first-light] body.enquiry-home::before {
    content: ""; position: fixed; inset: 0; z-index: 19; pointer-events: none;
    background: #112536; opacity: .73;
  }
  [data-first-light] body.enquiry-home:has(.rising-sun)::before {
    animation: daybreak var(--sunrise-motion);
  }
  [data-first-light] .rising-sun { animation: sunrise var(--sunrise-motion); }
  /* The wordmark and the reading content rise on their own timings, early and short;
     fill-mode backwards leaves no transform or stacking context once they rest. */
  [data-first-light] .enquiry-home .name-wordmark {
    animation: first-rise calc(.85s * var(--dawn-pace)) cubic-bezier(.22,.75,.2,1) backwards;
  }
  /* The group's own children move, so the rise also works where the group is display: contents
     (landscape phones). The footer's inner group joins the sequence; the marble bands stay still. */
  [data-first-light="page"] .enquiry-home :is(.invitation-group > *, .invitation-intro, .front-page > .home-row, .site-foot > nav) {
    animation: first-rise calc(1.1s * var(--dawn-pace)) cubic-bezier(.22,.75,.2,1) calc(.12s * var(--dawn-pace)) backwards;
  }
  [data-first-light="page"] .enquiry-home .front-page > .home-row { animation-delay: calc(.26s * var(--dawn-pace)); }
  [data-first-light="page"] .enquiry-home .front-page > .home-row ~ .home-row { animation-delay: calc(.38s * var(--dawn-pace)); }
  [data-first-light="page"] .enquiry-home .site-foot > nav { animation-delay: calc(.46s * var(--dawn-pace)); }
  /* The portrait rises softly while its clip holds the lower edge where it stands, so it never
     dips over the band beneath it. */
  [data-first-light="page"] .enquiry-home .advisor-portrait {
    animation: portrait-rise calc(1.2s * var(--dawn-pace)) cubic-bezier(.22,.75,.2,1) calc(.06s * var(--dawn-pace)) backwards;
  }
}
@keyframes sunrise { from { transform: translateY(71%); } to { transform: translateY(0); } }
@keyframes daybreak { from { opacity: .73; } to { opacity: 0; } }
@keyframes first-rise { from { opacity: .5; transform: translateY(9px); } }
/* An explicit end inset keeps the clip interpolating with the transform (inset to none would jump). */
@keyframes portrait-rise {
  from { opacity: .62; transform: translateY(6px); clip-path: inset(0 0 6px 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}

.front-page { padding-inline: var(--gutter); }
.front-page :is(h1, h2, h3, p) { margin: 0; }
.front-page :is(h1, h2, h3) { text-wrap: balance; }
.front-page p { text-wrap: pretty; }
.front-page a:not(.primary, .marble-link) {
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: .19em;
}
.front-page a:hover { text-decoration-color: currentColor; }
.invitation {
  --portrait-size: clamp(248px, 31vw, max(410px, 22vw));
  /* The portrait stands on paper below the banner: a positive gap, never an overlap. */
  --portrait-gap: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--portrait-size) minmax(0, 1fr);
  grid-template-areas: "title portrait description" "action portrait description";
  gap: 0 clamp(18px, 3vw, 48px);
  align-items: center;
}
.invitation h1 {
  grid-area: title;
  align-self: end;
  margin-block: 20px 9px;
  font: 470 clamp(3.45rem, 5.35vw, 5.25rem)/.97 var(--display);
  letter-spacing: -.046em;
}
.service-description { grid-area: description; padding-block: 20px; }
.invitation .standfirst {
  max-width: 22ch;
  font: 420 clamp(1.35rem, 2vw, 2rem)/1.11 var(--display);
  letter-spacing: -.018em;
}
.enquiry-home .invitation .primary {
  grid-area: action;
  align-self: start;
  justify-self: start;
  gap: 26px;
  min-height: 46px;
  margin-block: 4px 20px;
  padding: 11px 17px;
  background: var(--dark);
  border-color: var(--dark);
}
.enquiry-home .invitation .primary:hover { background: var(--action-hover); }
.advisor-portrait {
  grid-area: portrait;
  position: relative;
  z-index: 1;
  align-self: start;
  justify-self: center;
  display: block;
  width: var(--portrait-size);
  height: auto;
  margin-top: var(--portrait-gap);
  pointer-events: none;
}
/* On a shallow desktop, trim water below the ridge and keep the enquiry within reach. */
@media (min-width: 761px) and (min-aspect-ratio: 16/9) {
  .city-panorama { height: 24vw; }
  .panorama-art { top: -1vw; transform: none; }
  .invitation {
    --portrait-size: clamp(190px, 44svh, 380px);
  }
}

@media (min-width: 761px) and (max-height: 480px) {
  .city-panorama { height: 21.5vw; }
  .panorama-art { top: -1.7vw; transform: none; }
  .invitation { --portrait-size: clamp(154px, 40svh, 200px); }
  .invitation :is(.service-description, .enquiry-invitation) { padding-block: 6px; }
}

@media (max-width: 760px) {
  :root { --dawn-pace: .45; --sunrise-duration: 1.65s; }
  .city-panorama { height: 44vw; }
  .panorama-art { --left-crop: 10cqw; width: 132%; aspect-ratio: 3; }
  /* The phone photograph includes the sky and water outside the desktop crop. */
  .sun-horizon { inset-block: 9.945% 10.774%; }
  .rising-sun { width: 76cqw; }
  .invitation {
    --portrait-size: clamp(172px, 54vw, 324px);
    --portrait-gap: 14px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "portrait" "title" "description" "action";
    justify-items: center;
    text-align: center;
  }
  .invitation .advisor-portrait { border-bottom: 1px solid var(--rule); }
  .invitation h1 { margin: 12px 0 5px; font-size: clamp(2.75rem, 8vw, 3.75rem); }
  .service-description { padding: 0; }
  .invitation .standfirst { max-width: 29ch; font-size: clamp(1.2rem, 4.1vw, 1.55rem); }
  .enquiry-home .invitation .primary { justify-self: center; margin: 12px 0 18px; min-height: 44px; }
}
@media print {
  .rising-sun { animation: none !important; transform: none !important; }
  body.enquiry-home::before { display: none; }
}

/* The arrow is decorative and only drawn where Book has its own line weight. */
.route-arrow { display: none; }

/* Question, availability, Book and Ask read as one group on the reading edge;
   the introduction answers it from the opposite rail. Both are centred in the row. */
.invitation-group { grid-area: description; align-self: center; padding-block: clamp(20px, 2.2vw, 36px); }
.invitation-group .service-description { padding: 0 0 10px; }
.enquiry-home .invitation-group .standfirst { max-width: 30ch; font-size: clamp(23px, 2.15vw, 32px); }
.invitation-group .enquiry-invitation { padding: 0; max-width: none; }
.invitation-group .enquiry-invitation p { margin-bottom: 10px; }
/* The portrait stands on the practice band even when the group is taller than its lower half. */
@media (min-width: 761px) { .enquiry-home .invitation .advisor-portrait { align-self: end; } }
.invitation-intro {
  grid-area: action; align-self: center; max-width: 32ch; padding-block: clamp(20px, 2.2vw, 36px);
  color: var(--muted); font: 420 clamp(1.15rem, 1.4vw, 1.45rem)/1.32 var(--display); text-wrap: pretty;
}

/* Below the invitation every section shares one reading grid: a heading rail and three tracks.
   Recognition follows Ask on the masthead's pale stone; the rest are ruled rows on paper. */
.home-row {
  display: grid;
  /* Six half-tracks after the rail: three practice entries take two each, paired items three each. */
  grid-template-columns: minmax(0, 2.2fr) repeat(6, minmax(0, 1fr));
  column-gap: clamp(12px, 1.5vw, 24px);
  row-gap: 14px;
  width: min(calc(100% - 2 * var(--gutter)), var(--reading-width));
  margin-inline: auto;
  padding-block: clamp(24px, 2.4vw, 38px);
  border-top: 1px solid var(--rule);
}
.recognition-row {
  border-top: 0;
  background: var(--sky);
  box-shadow: 0 0 0 100vmax var(--sky);
  clip-path: inset(0 -100vmax);
  padding-block: clamp(28px, 3vw, 46px);
}
.recognition-row + .home-row { border-top: 0; }
.home-row h2 { font: 470 clamp(1.65rem, 2.2vw, 2.3rem)/1.06 var(--display); letter-spacing: -.03em; }
.home-row h2 a { color: inherit; }
.rail-link { display: inline-block; margin-top: 9px; font-size: .82rem; }
.practice-entry { grid-column: span 2; }
:is(.client-row, .recognition-row) article { grid-column: span 3; }
.home-row article { position: relative; border-left: 1px solid #b8a681; padding-left: clamp(16px, 1.6vw, 26px); }
.home-row h3 { font: 490 clamp(1.35rem, 1.75vw, 1.8rem)/1.14 var(--display); letter-spacing: -.01em; }
.home-row article p { max-width: 42ch; margin-top: 6px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.home-row a { text-decoration-color: #ad9360; }
.practice-mark { display: block; width: 40px; height: 40px; margin: -2px 0 10px -3px; color: var(--ink); }
.practice-mark-gold { stroke: var(--horizon); stroke-width: 1.6; }
/* The whole entry opens its practice page; the title remains the link's accessible name. */
.practice-entry h3 a::after { content: ""; position: absolute; inset: 0; }
.practice-entry:hover h3 a { text-decoration-color: currentColor; }
.recognition-row article { display: flex; align-items: flex-start; gap: clamp(12px, 1.2vw, 18px); }
.recognition-row img { flex: none; width: 46px; height: 51px; object-fit: contain; margin-top: 3px; }
.recognition-row article p { margin-top: 4px; }
.about-row article { grid-column: 2 / -1; }
.publication-row article { grid-column: span 3; }
.publication-row h3 { max-width: 46ch; font-size: clamp(1.3rem, 1.6vw, 1.65rem); line-height: 1.2; }
.about-row .about-lede { max-width: 56ch; margin: 0; color: var(--ink); font: 420 clamp(1.3rem, 1.6vw, 1.65rem)/1.25 var(--display); letter-spacing: -.01em; }
/* Each practice entry leads with the visitor's situation; the practice name, like a case's sector
   and years, follows as a quiet label in the kicker's type. */
.home-row :is(.practice-name, .case-meta) {
  max-width: none; margin-top: 7px;
  color: var(--action); font: 600 .74rem/1.35 var(--body); letter-spacing: .11em; text-transform: uppercase;
}
.case-years { white-space: nowrap; }
/* The last row meets the footer; a tall screen extends the charcoal base, not empty paper. */
.enquiry-home > main { flex: 0 0 auto; }
.enquiry-home > .footer-band { flex: 1 0 auto; }

@media (min-width: 761px) {
  .invitation-kicker {
    margin: 0 0 10px;
    color: var(--action);
    font: 600 .86rem/1.3 var(--body);
    letter-spacing: .13em;
    text-transform: uppercase;
  }
  .enquiry-invitation .booking-route {
    display: inline-flex;
    align-items: baseline;
    gap: .4em;
    white-space: nowrap;
    color: var(--ink);
    font: 520 clamp(1.2rem, 1.4vw, 1.4rem)/1.3 var(--display);
  }
  .booking-route .route-arrow { display: inline; color: var(--action); font-family: var(--body); font-size: .85em; }
}

@media (min-width: 761px) and (max-width: 1099px) {
  .home-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .row-rail { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
  .rail-link { margin: 0; }
  .about-row article { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .invitation-group { padding: 0; }
  /* Outranks the .front-page paragraph reset: clear space after Ask and before the stone band. */
  .front-page .invitation-intro { max-width: 34ch; margin: 12px auto 16px; padding: 0; font-size: 1.05rem; text-align: center; }
  .invitation-kicker {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .home-row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; padding-block: 20px; }
  .recognition-row { padding-block: 22px 24px; }
  .row-rail { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
  .home-row h2 { font-size: 1.75rem; }
  .rail-link { margin: 0; min-height: 24px; }
  .home-row article { border-left: 0; padding-left: 0; }
  .home-row article p { font-size: .87rem; }
  .practice-entry {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px;
    padding-block: 12px; border-top: 1px solid var(--rule);
  }
  .practice-entry .practice-mark { grid-row: 1 / 3; width: 34px; height: 34px; margin: 0; }
  .practice-entry > :not(.practice-mark) { grid-column: 2; }
  .home-row :is(.practice-name, .case-meta) { margin-top: 4px; font-size: .7rem; }
  .practice-entry h3 { font-size: 1.3rem; }
  .practice-entry p { margin-top: 2px; }
  /* Two explicit tracks: client entries sit side by side; each recognition is one full-width row,
     its compact mark beside the linked detail. */
  :is(.client-row, .recognition-row) article { grid-column: span 1; }
  .recognition-row article { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 14px; }
  .recognition-row img { width: 40px; height: 44px; margin: 2px 0 0; }
  .recognition-row h3 { font-size: 1.2rem; }
  :is(.publication-row, .about-row) article { grid-column: 1 / -1; }
  .publication-row h3, .about-row .about-lede { font-size: 1.2rem; }
}

/* A landscape phone keeps its earlier three-column first screen: question, portrait, then Ask. */
@media (min-width: 480px) and (max-width: 760px) and (orientation: landscape) {
  .invitation-group { display: contents; }
  .invitation-group .service-description { padding: 0; }
  .invitation-intro { display: none; }
}

/* Landscape phones wider than 760 px (812×375 to 932×430) and other very short screens:
   the earlier 42svh band, showing the photograph from its top to the quay (source row 421) on the
   band's lower edge; the portrait 12 px below the band, and question | portrait | Book + Ask in one row.
   The portrait is 34svh so Book and Ask stay on the first screen. */
@media (min-width: 761px) and (max-height: 500px) {
  body.enquiry-home .city-panorama { height: min(calc(min(100vw, 2172px) / 3.784 * .733), 42svh); }
  body.enquiry-home .panorama-art { top: 100%; transform: translate(-50%, -73.3%); }
  body.enquiry-home .rising-sun { width: min(17cqw, 150px); bottom: 30%; --sun-sink: 3px; }
  body.enquiry-home .invitation {
    --portrait-size: clamp(110px, min(34svh, 19vw), 188px);
    --portrait-gap: 12px;
    column-gap: clamp(12px, 2vw, 28px);
  }
  body.enquiry-home .invitation .advisor-portrait { align-self: start; }
  .invitation-group { display: contents; }
  .invitation-group .service-description { align-self: center; padding: 10px 0; }
  .invitation-group .enquiry-invitation { grid-area: action; align-self: center; padding: 10px 0; }
  .invitation-group .enquiry-invitation p { margin-bottom: 8px; font-size: 14px; line-height: 1.4; }
  .enquiry-home .invitation-group .standfirst { font-size: clamp(20px, 2.6vw, 24px); }
  .invitation-kicker { margin-bottom: 4px; font-size: .72rem; }
  .enquiry-invitation .booking-route { font: inherit; white-space: normal; }
  .booking-route .route-arrow { display: none; }
  .enquiry-invitation .marble-link { min-height: 44px; }
  .invitation-intro { display: none; }
}

/* Reading progression below Recognition: the three situations are the primary destinations on paper,
   the two client examples turn the page as one full-bleed ink band on the shared grid, and
   publications with About close quietly before the footer. */
.practice-row { padding-block: clamp(30px, 3.2vw, 52px); }
.practice-row h3 { font-size: clamp(1.45rem, 1.95vw, 2.05rem); }
.client-row {
  --band-text: var(--white);
  --band-muted: #cfcbc3;
  border-top: 0;
  padding-block: clamp(40px, 5vw, 84px);
  color: var(--band-text);
  background: var(--dark);
  /* The outset paints the wings in the row's own geometry, so a fractional top leaves no seam. */
  border-image: conic-gradient(var(--dark) 0 0) fill 0 / / 0 100vmax;
}
.client-row a { color: var(--band-text); text-decoration-color: #9d8559; }
.client-row a:hover { text-decoration-color: var(--gold); }
.client-row :focus-visible { outline-color: var(--gold); }
.client-row article { border-left-color: #7a6a4c; }
.client-row h3 { font: 450 clamp(1.9rem, 2.9vw, 3rem)/1.04 var(--display); letter-spacing: -.025em; }
.client-row article p { color: var(--band-muted); font-size: 1rem; }
.client-row .case-meta { margin-top: 10px; color: var(--gold); }
@media (min-width: 1100px) { .client-row .rail-link { margin-top: 14px; } }
.client-row + .home-row { border-top: 0; }
/* The closing pair is smaller and tighter than the destinations above it. */
:is(.publication-row, .about-row) { padding-block: clamp(22px, 2.2vw, 34px); }
:is(.publication-row, .about-row) h2 { font-size: clamp(1.35rem, 1.65vw, 1.75rem); }
.publication-row h3 { font-size: clamp(1.12rem, 1.3vw, 1.38rem); }
.about-row .about-lede { font-size: clamp(1.12rem, 1.3vw, 1.38rem); }
.publication-row + .about-row { border-top-color: #d8d5cf; }
@media (max-width: 760px) {
  .practice-row { padding-block: 22px 26px; }
  .practice-row h3 { font-size: 1.36rem; }
  /* Phones keep the compact two-column pair inside the band. */
  .client-row { padding-block: 30px 32px; }
  .client-row h3 { font-size: 1.42rem; }
  .client-row article p { font-size: .87rem; }
  :is(.publication-row, .about-row) { padding-block: 18px 20px; }
  :is(.publication-row, .about-row) h2 { font-size: 1.4rem; }
  .publication-row h3, .about-row .about-lede { font-size: 1.1rem; }
}
