/* Services group (B3): the hub /services/ and the six service pages. A service page is the template's financial-solutions page: the hero
   (a full-height hero, the service's big mark behind a stacked indented title, a paragraph bottom left, the key facts along the bottom),
   a scattered collage of four photographs around a big statement, ONE table band on a stone ground (the only section drawn with
   hairlines), the strip of deals (sell-side), an accordion of stone cards, the other services. Every distance is a vw on the template's
   canvas and becomes min(Xvw, Ypx) at 1100px and below. Shared parts live in parts.css. Nothing here is wider than its column:
   grid children carry min-width 0 and long headings wrap (a <wbr> after every "/"). */

/* ---------------------------------------------------------------- hero */
.shero { position: relative; height: 100vh; min-height: 620px; background: var(--stone); overflow: hidden; }
.shero__photo { position: absolute; inset: 0; overflow: hidden; }
.shero__photo img { position: absolute; left: 0; top: -4%; width: 100%; height: 108%; max-width: none; object-fit: cover; mix-blend-mode: multiply; }
/* the hero is a real photograph now (round 5): a soft stone fade in the bottom-left corner keeps the lead paragraph and the key facts readable over any of the six */
.shero__photo::before { content: ""; position: absolute; z-index: 1; left: 0; bottom: 0; width: 48vw; height: 52%; background: radial-gradient(ellipse 100% 100% at 0% 100%, var(--stone) 34%, rgba(232, 236, 242, 0) 100%); pointer-events: none; }
.shero__photo::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 13vw; background: linear-gradient(to bottom, var(--stone) 18%, rgba(232, 236, 242, 0) 100%); pointer-events: none; }
.shero__mark { position: absolute; left: 56%; top: 50%; width: 46.5vw; transform: translate(-50%, -50%); color: var(--mark-big); mix-blend-mode: multiply; z-index: 1; pointer-events: none; }
.shero__mark svg { width: 100%; height: auto; }
.shero__mark .m-a, .shero__mark .m-b { transform-origin: 150px 116px; animation: shMark 1.8s var(--expo-out) both; }
.shero__mark .m-b { animation-delay: .18s; }
@keyframes shMark { from { transform: scale(0); } to { transform: scale(1); } }
.shero__inner { position: absolute; inset: 0; z-index: 2; }
.shero__inner > .display { position: absolute; left: 10vw; top: 50%; width: 70vw; transform: translateY(-50%); }
.shero__inner .line { will-change: transform; }
.shero__text { position: absolute; left: 5vw; bottom: 8.5vw; width: 20vw; display: flex; flex-direction: column; gap: 1vw; }
.shero__facts { position: absolute; left: 5vw; right: 5vw; bottom: 2.4vw; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.667vw; }
.shero__facts .fact { display: flex; flex-direction: column; gap: .35vw; }
.shero__facts dd { margin: 0; line-height: 1.3; }
@media (max-width: 1100px) {
  .shero { height: 100svh; min-height: 0; }
  .shero__mark { left: 50%; top: 36%; width: 92vw; }
  .shero__inner > .display { left: 10vw; width: 90vw; top: 34%; font-size: min(16.5vw, 64px); }
  .shero__text { left: var(--pad-x); right: var(--pad-x); width: auto; bottom: min(52vw, 205px); gap: min(3vw, 12px); }
  .shero__facts { left: var(--pad-x); right: var(--pad-x); bottom: min(8vw, 31px); grid-template-columns: 1fr; gap: min(3vw, 12px); }
  .shero__facts .fact { flex-direction: row; gap: 10px; align-items: baseline; }
  .shero__facts dd { font-size: min(3.889vw, 15.4px); }
}
@media (prefers-reduced-motion: reduce) { .shero__mark .m-a, .shero__mark .m-b { animation: none; } }

/* numerals set inside running text and the one serif span */
.sn { font-family: var(--serif); font-weight: 400; letter-spacing: -.05em; }
.nb { white-space: nowrap; }
.slist, .spts, .sacc__steps { list-style: none; margin: 0; padding: 0; }

/* ---------------------------------------------------------------- the collage (the template's gallery: four photographs around a statement) */
.scol__stage { position: relative; min-height: 100.5vw; padding: 27.5vw 0 33vw; overflow: hidden; }
.scol__ph { position: absolute; margin: 0; overflow: hidden; background: var(--stone); }
.scol__ph img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.scol__ph--a { left: 1.667vw; top: 5vw; width: 15vw; height: 15vw; }
.scol__ph--b { right: 0; top: 15vw; width: 20vw; height: 25vw; }
.scol__ph--c { left: 0; top: 50vw; width: 30vw; height: 20vw; }
.scol__ph--d { left: 50vw; bottom: 7vw; width: 20vw; height: 24.6vw; }
.scol__text { position: relative; margin-left: 30vw; width: 40vw; min-width: 0; }
.scol__stmt { margin: 0; text-wrap: balance; }
.scol__stmt.is-long { font-size: 3.2vw; }
.scol__p { margin: 2.5vw 0 0 16vw; width: 24vw; max-width: 100%; }
.scol__tag { margin: 1.2vw 0 0 16vw; width: 24vw; }
.scol__link { margin: 1.6vw 0 0 16vw; }
@media (max-width: 1100px) {
  .scol__stage { min-height: 0; padding: min(20vw, 79px) var(--pad-x) min(14vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: min(4vw, 16px); align-items: start; }
  .scol__text { grid-column: 1 / -1; order: -1; margin: 0 0 min(8vw, 32px); width: auto; }
  .scol__stmt.is-long { font-size: min(7.6vw, 30px); }
  .scol__p, .scol__tag, .scol__link { margin-left: 0; width: auto; }
  .scol__p { margin-top: min(6vw, 24px); }
  .scol__tag { margin-top: min(3vw, 12px); }
  .scol__link { margin-top: min(4vw, 16px); }
  .scol__ph { position: relative; inset: auto; width: 100%; height: auto; }
  .scol__ph--a { aspect-ratio: 1; }
  .scol__ph--b { aspect-ratio: 4 / 5; margin-top: min(10vw, 40px); }
  .scol__ph--c { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .scol__ph--d { grid-column: 2; aspect-ratio: 4 / 5; }
}

/* ---------------------------------------------------------------- the one table band (stone ground; the timeline and comparison tables keep hairline rows, the plain and subs tables are cards, m5 below) */
.stab { background: var(--stone); padding: 12vw 0 4vw; }
.stab__in { padding: 0 5vw; }
.stab__top { display: grid; grid-template-columns: 25vw minmax(0, 1fr); column-gap: 20vw; align-items: start; }
.stab__lead { margin: 0; min-width: 0; }
.stab__title { margin: 0; min-width: 0; max-width: 100%; overflow-wrap: break-word; }
.stab__head { display: grid; grid-template-columns: 25vw minmax(0, 1fr) minmax(0, 1fr); column-gap: 3vw; margin-top: 6vw; }
.stab__head .label { margin: 0; }
.stab__head .label:first-child { grid-column: 1; }
.stab__rows { margin-top: 5vw; }
.stab__head + .stab__rows { margin-top: 1.2vw; }
.stab__row { display: grid; grid-template-columns: 25vw minmax(0, 1fr); column-gap: 20vw; padding: 2.5vw 0 3vw; border-top: 1px solid var(--line-hair); align-items: start; }
.stab__row > * { min-width: 0; }
.stab__k { margin: 0; overflow-wrap: break-word; }
.stab__v { margin: 0; max-width: 40vw; }
.stab__subs { display: flex; flex-direction: column; gap: 1.6vw; }
.stab__sub { display: grid; grid-template-columns: 14vw minmax(0, 1fr); column-gap: 2vw; }
.stab__sub h4 { margin: 0; }
.stab__sub p { margin: 0; max-width: 26vw; color: var(--quiet); }
.stab--cmp .stab__row { grid-template-columns: 25vw minmax(0, 1fr) minmax(0, 1fr); column-gap: 3vw; }
.stab--cmp .stab__v { max-width: none; color: var(--quiet); }
.stab--cmp .stab__us { color: var(--navy); }
.stab--timeline .stab__row { grid-template-columns: 25vw minmax(0, 1fr) minmax(0, 1fr); column-gap: 3vw; }
.stab--timeline .stab__v { display: flex; flex-direction: column; gap: .9vw; max-width: none; }
.stab--timeline .stab__v h3, .stab--timeline .stab__v p { margin: 0; }
.stab__w { display: flex; align-items: baseline; gap: .8vw; margin: 1vw 0 0; }
.stab__lab { margin: .9vw 0 0; color: var(--quiet); }
.stab__close { margin: 4vw 0 0 30vw; max-width: 50vw; }
/* m5: the plain (M&A, growth) and subs (corporate finance) tables are tinted cards of one height, no hairlines: ivory on the stone ground,
   the card radius from the tokens. Three columns (two for four cards), every card as tall as the tallest of its row. */
.stab--plain .stab__rows, .stab--subs .stab__rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .833vw; align-items: stretch; }
.stab--plain .stab__rows[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stab--plain .stab__row, .stab--subs .stab__row { display: flex; flex-direction: column; gap: 1.667vw; padding: 2.083vw; border-top: 0; background: var(--ivory); border-radius: var(--radius); }
.stab--plain .stab__v { max-width: none; margin-top: auto; }      /* title at the top, text at the foot: the texts of one row end on one line */
.stab--subs .stab__subs { gap: 1.25vw; }
.stab--subs .stab__sub { grid-template-columns: minmax(0, 1fr); row-gap: .4vw; }
.stab--subs .stab__sub p { max-width: none; }
@media (max-width: 1100px) {
  .stab--plain .stab__rows, .stab--subs .stab__rows, .stab--plain .stab__rows[data-n="4"] { grid-template-columns: minmax(0, 1fr); gap: min(3.4vw, 13px); }
  .stab--plain .stab__row, .stab--subs .stab__row { gap: min(4vw, 16px); padding: min(6vw, 24px); }
  .stab--subs .stab__sub { row-gap: min(1.5vw, 6px); }
}
@media (max-width: 1100px) {
  .stab { padding: min(24vw, 95px) 0 min(8vw, 32px); }
  .stab__in { padding: 0 var(--pad-x); }
  .stab__top, .stab__row, .stab--cmp .stab__row, .stab--timeline .stab__row { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: min(4vw, 16px); }
  .stab__top { row-gap: min(8vw, 32px); }
  .stab__top > div:empty { display: none; }
  .stab__head { display: none; }
  .stab__rows, .stab__head + .stab__rows { margin-top: min(12vw, 48px); }
  .stab__row { padding: min(5vw, 20px) 0 min(6vw, 24px); }
  .stab__v, .stab__sub p { max-width: none; }
  .stab__sub { grid-template-columns: minmax(0, 1fr); row-gap: min(1.5vw, 6px); }
  .stab__subs { gap: min(5vw, 20px); }
  .stab--cmp .stab__v::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: min(3.056vw, 12.13px); font-weight: 700; text-transform: uppercase; color: var(--navy); }
  .stab__w { gap: min(2vw, 8px); margin-top: min(2vw, 8px); }
  .stab__lab { margin-top: min(3vw, 12px); }
  .stab__close { margin: min(10vw, 40px) 0 0; max-width: none; }
}

/* ---------------------------------------------------------------- the accordion (stone cards, the template's other-services ground; no rules) */
.sacc { padding: 10vw 5vw 6vw; }
.sacc__in { display: flex; flex-direction: column; gap: .375vw; }
.sacc__label { margin: 0 0 2vw; }
.sacc__row { background: var(--stone); border-radius: var(--radius); padding: 0 2.5vw; }
.sacc__sum { display: flex; justify-content: space-between; align-items: flex-start; gap: 2vw; padding: 2.4vw 0; cursor: pointer; list-style: none; }
.sacc__sum::-webkit-details-marker { display: none; }
.sacc__t { display: flex; align-items: baseline; gap: 1.4vw; min-width: 0; flex: 1 1 auto; }
.sacc__name { margin: 0; min-width: 0; max-width: 100%; overflow-wrap: break-word; }
.sacc__n { color: var(--navy); flex: none; }
.sacc__plus { position: relative; flex: none; width: 2.5vw; height: 2.5vw; background: rgba(11, 35, 64, .06); transition: background-color .4s var(--expo-out); }
.sacc__sum:hover .sacc__plus, .sacc__sum:focus-visible .sacc__plus { background: rgba(11, 35, 64, .12); }
.sacc__plus i { position: absolute; left: 50%; top: 50%; width: .9vw; height: 1px; background: var(--navy); transform: translate(-50%, -50%); transition: transform .6s var(--expo-out); }
.sacc__plus i + i { transform: translate(-50%, -50%) rotate(90deg); }
.sacc__row[open] .sacc__plus i + i { transform: translate(-50%, -50%) rotate(0deg); }
.sacc__sum:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.sacc__panel { overflow: hidden; }
.sacc__body { margin-left: 42.5vw; max-width: 40vw; padding: .4vw 0 3.2vw; display: flex; flex-direction: column; gap: 1.8vw; min-width: 0; }
.sacc__body > * { min-width: 0; }
.sacc__lead, .sacc__p, .sacc__note { margin: 0; }
.sacc__note { color: var(--quiet); }
.sacc__item h4 { margin: 0 0 .5vw; }
.sacc__item p { margin: 0; }
.slist { display: flex; flex-direction: column; gap: .6vw; }
.spts { display: flex; flex-direction: column; gap: 1.2vw; }
.sacc__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5vw; }
.sacc__cols h4 { margin: 0 0 .9vw; }
.sacc__fig { display: flex; align-items: baseline; gap: 1vw; margin: 0; }
.sacc__steps { display: flex; flex-direction: column; gap: .375vw; }
.sacc__step { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4vw; padding: 1.4vw; background: var(--ivory); border-radius: var(--radius); }
.sacc__step.has-n { grid-template-columns: 3.4vw minmax(0, 1fr); column-gap: 1.2vw; }
.sacc__step.has-n .sacc__sn { grid-row: 1 / span 4; color: var(--navy); line-height: .9; }
.sacc__step.has-n > :not(.sacc__sn) { grid-column: 2; }
.sacc__step h4, .sacc__step p { margin: 0; }
.sacc__step p { color: var(--quiet); }
.sacc__prin { display: flex; flex-direction: column; gap: .375vw; }
.sprin { display: flex; flex-direction: column; gap: .5vw; padding: 1.4vw; background: var(--ivory); border-radius: var(--radius); }
.sprin p, .sprin h4 { margin: 0; }
.sprin .text.--medium { color: var(--quiet); }
.stl { display: flex; flex-direction: column; gap: .7vw; padding: 1.8vw; background: var(--ivory); border-radius: var(--radius); }
.stl p, .stl h4 { margin: 0; }
.stl__w { display: flex; align-items: baseline; gap: .8vw; }
.stl__lab { margin-top: .8vw !important; color: var(--quiet); }
@media (max-width: 1100px) {
  .sacc { padding: min(20vw, 79px) var(--pad-x) min(12vw, 48px); }
  .sacc__in { gap: min(2vw, 8px); }
  .sacc__label { margin-bottom: min(5vw, 20px); }
  .sacc__row { padding: 0 min(5vw, 20px); }
  .sacc__sum { padding: min(5vw, 20px) 0; gap: min(3vw, 12px); }
  .sacc__t { gap: min(3vw, 12px); flex-wrap: wrap; }
  .sacc__plus { width: min(10vw, 40px); height: min(10vw, 40px); }
  .sacc__plus i { width: min(3.6vw, 14px); }
  .sacc__body { margin-left: 0; max-width: none; padding: 0 0 min(7vw, 28px); gap: min(5vw, 20px); }
  .slist { gap: min(2vw, 8px); }
  .spts { gap: min(4vw, 16px); }
  .sacc__cols { grid-template-columns: minmax(0, 1fr); gap: min(6vw, 24px); }
  .sacc__cols h4 { margin-bottom: min(2vw, 8px); }
  .sacc__step, .sprin, .stl { padding: min(5vw, 20px); gap: min(1.5vw, 6px); }
  .sacc__step.has-n { grid-template-columns: min(12vw, 48px) minmax(0, 1fr); column-gap: min(3vw, 12px); }
  .sacc__steps, .sacc__prin { gap: min(2vw, 8px); }
}

/* ---------------------------------------------------------------- other services and the closing call */
.sother { padding: 8vw 0 8vw; }
.sother__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 2.5vw; }
.sother__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .375vw; }
.sother__card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2vw; height: 19vw; overflow: hidden; background: var(--stone); border-radius: var(--radius); padding: 0 1vw; text-align: center; }
.sother__card::before { content: ""; position: absolute; inset: 0; background: var(--tex) center / cover no-repeat; opacity: .0001; transform: scale(1.1); transition: opacity .6s var(--p2-out), transform 4s var(--expo-out); }
.sother__card:hover::before, .sother__card:focus-visible::before { opacity: 1; transform: scale(1); }
.sother__mark { position: relative; width: 6.667vw; color: var(--navy); }
.sother__mark svg { width: 100%; height: auto; }
.sother__name { position: relative; text-align: center; }
.scta { padding-bottom: 4vw; }
.scta .statement__box { display: flex; flex-direction: column; align-items: center; gap: 1.667vw; }
.scta .cta__p { color: var(--quiet); }
.scta__form { width: 100%; max-width: 44vw; margin-top: 1.667vw; text-align: left; }      /* the contact form their closing line points at ("the contact form below") */
.scta__form .contact-form { max-width: none; }
.scta__form .field { margin-bottom: 1.3vw; }
.scta__form .field textarea { min-height: 7vw; }
@media (max-width: 1100px) {
  .scta__form { max-width: none; margin-top: min(4vw, 16px); }
  .scta__form .field { margin-bottom: min(6vw, 24px); }
  .scta__form .field textarea { min-height: min(32vw, 128px); }
  .sother { padding: min(20vw, 79px) 0 min(16vw, 63px); }
  .sother__head { padding-bottom: min(6vw, 24px); }
  .sother__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: min(2vw, 8px); }
  .sother__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sother__card { height: min(52vw, 205px); gap: min(3vw, 12px); }
  .sother__mark { width: min(24vw, 95px); }
  .sother__name { font-size: min(4.4vw, 17px); }
  .scta { padding-bottom: min(8vw, 32px); }
  .shero__photo::before { width: 100%; height: 44%; background: radial-gradient(ellipse 120% 100% at 0% 100%, var(--stone) 30%, rgba(232, 236, 242, 0) 100%); }
}

/* ---------------------------------------------------------------- Meridian: the request form */
.sreq { padding: 8vw 5vw 6vw; }
.sreq__grid { display: grid; grid-template-columns: 38vw minmax(0, 1fr); gap: 4vw; align-items: start; }
.sreq__grid > * { min-width: 0; }
.sreq__head { display: flex; flex-direction: column; gap: 1.667vw; align-items: flex-start; }
.sreq__head h2, .sreq__head p { margin: 0; }
.sreq__lead { color: var(--quiet); max-width: 28vw; }
.mform { max-width: 36vw; }
.mform__nda { color: var(--quiet); margin: 1.2vw 0 1.667vw; }
@media (max-width: 1100px) {
  .sreq { padding: min(20vw, 79px) var(--pad-x) min(12vw, 48px); }
  .sreq__grid { grid-template-columns: minmax(0, 1fr); gap: min(8vw, 32px); }
  .sreq__lead, .mform { max-width: none; }
  .sreq__head { gap: min(4vw, 16px); }
}

/* ---------------------------------------------------------------- the hub list */
.hub { padding: 0 0 8vw; }
.hub__list { border-top: 1px solid var(--hair); }
.hrow { position: relative; display: grid; grid-template-columns: 4vw 9vw minmax(0, 1fr) 24vw 17vw; align-items: center; column-gap: 2vw; min-height: 14vw; padding: 1.667vw 1.667vw; border-bottom: 1px solid var(--hair); overflow: hidden; }
.hrow::before { content: ""; position: absolute; inset: 0; background: var(--tex) center / cover no-repeat; mix-blend-mode: multiply; opacity: .0001; transition: opacity .6s var(--p2-out); }
.hrow:hover::before, .hrow:focus-visible::before { opacity: .55; }
.hrow > * { position: relative; min-width: 0; }
.hrow__n { align-self: start; font-family: var(--serif); font-size: 1.6vw; line-height: 1; letter-spacing: 0; color: var(--navy); }
.hrow__mark { color: var(--navy); }
.hrow__mark svg { width: 100%; height: auto; }
.hrow__name { max-width: 100%; overflow-wrap: break-word; }
.hrow__side { display: flex; flex-direction: column; gap: 1vw; align-items: flex-start; }
.hrow__blurb { color: var(--navy); }
.hrow__facts { display: flex; flex-direction: column; gap: .5vw; font-size: .917vw; line-height: 1.3; font-weight: 500; color: var(--navy); }
.hrow__fl { font-size: .75vw; font-weight: 700; text-transform: uppercase; color: var(--quiet); }
@media (max-width: 1100px) {
  .hub { padding-bottom: min(12vw, 48px); }
  .hrow { grid-template-columns: min(12vw, 48px) minmax(0, 1fr); column-gap: min(4vw, 16px); row-gap: min(3vw, 12px); min-height: 0; padding: min(6vw, 24px) var(--pad-x); }
  .hrow__n { grid-column: 1; grid-row: 1; font-size: min(6vw, 24px); }
  .hrow__mark { grid-column: 1; grid-row: 2; width: min(12vw, 48px); }
  .hrow__name { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .hrow__side { grid-column: 1 / -1; gap: min(3vw, 12px); }
  .hrow__facts { grid-column: 1 / -1; font-size: min(3.889vw, 15.4px); gap: 6px; }
  .hrow__fl { font-size: min(3.056vw, 12.13px); }
}
