/* Exits page (was Deals; renamed 2026-10-29): typographic opener on the pale sky band with the stats the customer asked
   for (exits, kinds of buyer, conversion rate) and the buyer-type filter, a wall of typographic tombstones from the
   customer's spreadsheet, the owners' words on navy, the buyers we reach, a valuation call to action. */

/* ---------- opener: mist, faint indirect photo, headline and filter ---------- */
.dl-open { position: relative; overflow: clip; isolation: isolate; padding: calc(var(--head-h) + clamp(36px, 4.4vw, 64px)) 0 0; }
.dl-open__wash { position: absolute; inset: 0; z-index: -1; overflow: hidden; opacity: .16; }
.dl-open__wash-img { position: absolute; left: 0; right: 0; top: -5%; height: 110%; background: url(../img/leeds-skyline-morning-haze-1400.webp) center 60% / cover no-repeat; filter: saturate(.35); }
.dl-open__wash::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--mist) 0%, rgba(238,244,246,.4) 55%, rgba(238,244,246,0) 100%); }
.dl-open__head { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 5vw, 88px); align-items: end; }
.dl-open__title { font-size: clamp(2.6rem, 4.3vw, 4.3rem); line-height: 1.06; margin: 0; }
.dl-open__lede { margin: 0; color: var(--navy-700); }

/* filter: quiet text tabs on a bronze hairline */
.dl-filter { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); margin-top: clamp(30px, 3.4vw, 48px); border-top: 1px solid var(--gold-line); }
.dl-filter__label { margin: 0; flex: none; font-size: .875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }
.dl-filter__btns { display: flex; flex-wrap: wrap; gap: 0 clamp(4px, 1.2vw, 18px); }
.dl-filter__btns button { position: relative; display: inline-flex; align-items: baseline; gap: 8px; min-height: 60px; padding: 18px 10px 16px; border: 0; background: none; cursor: pointer;
  font: 500 1rem/1.2 var(--sans); color: var(--ink-soft); transition: color .3s var(--ease); }
.dl-filter__btns button::after { content: ''; position: absolute; left: 10px; right: 10px; top: -1px; height: 2px; background: var(--navy-700); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.dl-filter__btns button:hover { color: var(--navy-700); }
.dl-filter__btns button[aria-pressed="true"] { color: var(--navy-800); font-weight: 600; }
.dl-filter__btns button[aria-pressed="true"]::after { transform: scaleX(1); }
.dl-filter__n { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; color: var(--ember); font-variant-numeric: tabular-nums; }
/* without JS the buttons could not filter, so the bar stays a plain hairline and every card shows */
html.no-js .dl-filter__label, html.no-js .dl-filter__btns { display: none; }
html.no-js .dl-filter { padding-bottom: clamp(20px, 2vw, 32px); }

/* ---------- tombstones: white cards, bronze hairline, an inner rule like a printed deal announcement ---------- */
.dl-grid { padding-top: clamp(36px, 3.6vw, 56px); }
.ts-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); }
.ts { transition: opacity .18s ease; }
.ts[hidden] { display: none; }
.ts-grid.is-fading .ts { opacity: 0; }
.ts__card { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(26px, 2.4vw, 34px) 22px 22px;
  background: #fff; border: 1px solid var(--gold-line); border-radius: var(--r-lg); box-shadow: 0 18px 40px rgba(24,44,79,.06);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease); }
/* an inner rule, like a printed deal announcement */
.ts__card::after { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(176,138,91,.24); border-radius: 2px; pointer-events: none; transition: border-color .4s var(--ease); }
.ts__card:hover { border-color: var(--coral); box-shadow: 0 24px 50px rgba(24,44,79,.11); transform: translateY(-4px); }
.ts__card:hover::after { border-color: rgba(176,138,91,.5); }
.ts__mark { display: block; flex: none; width: 30px; height: 30px; margin-bottom: 16px; background: var(--navy-700);
  -webkit-mask: url(../img/starling-mark-white.png) center / contain no-repeat; mask: url(../img/starling-mark-white.png) center / contain no-repeat; transition: background-color .4s; }
.ts__card:hover .ts__mark { background: var(--ember); }
.ts__name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.5vw, 1.5rem); line-height: 1.2; color: var(--navy-800); text-wrap: pretty; }
.ts__what { margin: 6px 0 0; font-size: .9rem; line-height: 1.4; color: var(--ink-soft); }
.ts__by { display: grid; gap: 4px; margin: 0; padding-top: 14px; font-weight: 600; line-height: 1.35; color: var(--navy-800); }
.ts__by::before { content: ''; justify-self: center; width: 36px; height: 1px; background: var(--coral); margin-bottom: 10px; }
.ts__by span { font-size: .875rem; font-weight: 500; font-style: italic; font-family: var(--serif); letter-spacing: .01em; color: var(--ember); }
.ts__type { margin: 4px 0 0; font-size: .875rem; color: var(--ink-soft); }
.ts__foot { display: grid; gap: 2px; width: 100%; margin: auto 0 0; padding-top: 18px; font-size: .875rem; line-height: 1.35; color: var(--ink-soft); }
.ts__date { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); }
.ts-more { display: flex; justify-content: center; margin: clamp(34px, 3.6vw, 52px) 0 0; }
.ts-more[hidden] { display: none; }

/* the opener's figures: exits, kinds of buyer, conversion rate, buyers we know */
.ex-stats { list-style: none; margin: clamp(30px, 3.4vw, 46px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); }
.ex-stats li { display: grid; align-content: start; gap: 6px; padding-top: 18px; border-top: 1px solid var(--gold-line); }
.ex-stats strong { font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 3.4vw, 3.4rem); line-height: 1; color: var(--navy-800); font-variant-numeric: lining-nums; }
.ex-stats .ex-stats__word { font-size: clamp(1.7rem, 2.3vw, 2.3rem); line-height: 1.15; font-style: italic; color: var(--ember); padding-top: .2em; }
.ex-stats span { color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }

/* ---------- the owners' words: navy with a faint photo ---------- */
.dl-owners { overflow: clip; }
.dl-owners__wash { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.dl-owners__wash-img { position: absolute; left: 0; right: 0; top: -5%; height: 110%; background: url(../img/buyer-meeting-notes-1400.webp) center / cover no-repeat; opacity: .16; filter: saturate(.4); }
.dl-owners__wash::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,51,.4), rgba(10,26,51,.1) 50%, rgba(10,26,51,.5)); }
.dl-owners h2 em { color: var(--sun-soft); }
.dl-owners .lede { color: rgba(255,255,255,.82); }
.dl-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 88px); }
.dl-quote { margin: 0; padding-top: 30px; border-top: 1px solid rgba(201,169,110,.55); display: flex; flex-direction: column; }
.dl-quote blockquote { margin: 0 0 24px; }
.dl-quote p { text-indent: -.42em; font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.75vw, 1.7rem); line-height: 1.42; color: #fff; margin: 0; }
.dl-quote p::before { content: '\201C'; color: var(--sunrise); margin-right: .04em; }
.dl-quote p::after { content: '\201D'; color: var(--sunrise); }
.dl-quote figcaption { margin-top: auto; display: grid; gap: 2px; font-weight: 600; color: #fff; }
.dl-quote figcaption span { font-weight: 500; font-size: .92rem; color: var(--sun-soft); }
.dl-owners__more { margin: clamp(30px, 3.4vw, 48px) 0 0; }
.dl-owners .link-arrow { color: #fff; border-bottom-color: rgba(230,211,174,.5); }
.dl-owners .link-arrow:hover { color: var(--sun-soft); }

/* ---------- the buyers we reach ---------- */
.dl-reach__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 3.2vw, 48px) clamp(24px, 3vw, 48px); }
.dl-buyer { padding-top: 24px; border-top: 1px solid var(--gold-line); display: flex; flex-direction: column; }
.dl-buyer h3 { margin-bottom: .35em; }
.dl-buyer p { margin: 0; color: var(--ink-soft); }
.dl-buyer__n { margin-top: 14px; font-size: .92rem; font-weight: 600; color: var(--ember); }
.dl-reach__more { margin: clamp(30px, 3.4vw, 48px) 0 0; }

/* ---------- call to action on the soft sunrise ---------- */
.dl-cta { color: var(--navy-800); overflow: clip; background: #E3EEF0; }
.dl-cta__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.dl-cta__bg img { position: absolute; left: 0; top: -5%; width: 100%; height: 110%; object-fit: cover; object-position: center 80%; }
.dl-cta__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.5) 50%, rgba(255,255,255,.15) 100%); }
.dl-cta__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.dl-cta__copy .lede { color: var(--navy-700); }
.dl-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.dl-cta__btns .btn--line { background: rgba(255,255,255,.6); }
.dl-next { background: rgba(255,255,255,.94); border-radius: var(--r-lg); padding: clamp(18px, 2vw, 28px) clamp(20px, 2.2vw, 32px); box-shadow: 0 30px 70px rgba(10,26,51,.12); border-top: 2px solid var(--sunrise); }
.dl-next__h { margin: 0 0 6px; font-size: .875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }
.dl-next a { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(24,44,79,.1); text-decoration: none; }
.dl-next a:first-of-type { border-top: 0; }
.dl-next strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.25; color: var(--navy-700); transition: color .3s; }
.dl-next span { grid-column: 1; color: var(--ink-soft); font-size: .95rem; }
.dl-next svg { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; fill: none; stroke: var(--navy-700); stroke-width: 1.5; transition: transform .4s var(--ease); }
.dl-next a:hover strong { color: var(--ember); }
.dl-next a:hover svg { transform: translateX(5px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dl-open__head, .dl-quotes, .dl-cta__in { grid-template-columns: 1fr; }
  .dl-open__head { gap: 16px; }
  .dl-reach__grid { grid-template-columns: 1fr 1fr; }
  .dl-filter { display: block; padding-top: 14px; margin-top: 24px; }
  .dl-filter__btns { gap: 6px; margin-top: 10px; padding-bottom: 4px; }
  .dl-filter__btns button { min-height: 44px; padding: 9px 12px; gap: 6px; border: 1px solid rgba(24,44,79,.2); border-radius: var(--r-sm); background: rgba(255,255,255,.6); font-size: .95rem; }
  .dl-filter__btns button::after { display: none; }
  .dl-filter__btns button[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
  .dl-filter__btns button[aria-pressed="true"] .dl-filter__n { color: var(--sun-soft); }
  .dl-cta__bg::after { background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.55)); }
}
@media (max-width: 700px) {
  .dl-open { padding-top: calc(var(--head-h) + 28px); }
  .dl-open__title { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  .dl-open__lede { font-size: 1.02rem; line-height: 1.6; }
  .dl-filter__btns button { font-size: .9rem; }
  .dl-grid { padding-top: 28px; }
  .dl-open__wash::after { background: linear-gradient(180deg, rgba(238,244,246,.6), var(--mist)); }
  .ts-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ts__card { padding: 20px 12px 16px; }
  .ts__card::after { inset: 6px; }
  .ts__mark { width: 24px; height: 24px; margin-bottom: 10px; }
  .ts__name { font-size: 1.1rem; }
  .ts__by { font-size: .92rem; padding-top: 10px; }
  .ts__by::before { margin-bottom: 6px; }
  .ts__foot { font-size: .8rem; padding-top: 12px; }
  .ts__foot span:last-child { display: none; }
  .ex-stats { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .dl-reach__grid { grid-template-columns: 1fr; gap: 26px; }
}


@media (max-width: 1100px) {
  .ex-stats { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1101px) {
  .ts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* the wall of tombstones drifts as you scroll: alternate columns move a little against each other (exits.js) */
html.motion .ts { transform: translateY(calc(var(--sh, 0) * var(--dir, 0) * 14px)); }

/* ================= 2026-11-17: tombstones dealt in on scroll, no dates, a closing invitation ================= */
.ts__card { justify-content: center; min-height: 236px; }
/* while a card is being dealt in, GSAP moves it: no CSS transition fighting it (exits.js) */
.ts__card.is-arriving { transition: none; }
/* the bronze rule above "successfully acquired by" draws as the card lands */
html.motion .ts__card .ts__by::before { transform: scaleX(0); transition: transform .9s var(--ease) .1s; }
html.motion .ts__card.is-in .ts__by::before { transform: scaleX(1); }
/* deals whose details are still to come */
.ts--confidential .ts__name { font-style: italic; color: var(--navy-700); }
.ts--confidential .ts__mark { background: var(--coral); }
/* the last tombstone: the next seller's invitation, in navy */
.ts--cta .ts__card { background: var(--navy-800); border-color: var(--navy-800); color: #fff; box-shadow: 0 24px 50px rgba(10,26,51,.22); }
.ts--cta .ts__card::after { border-color: rgba(230,211,174,.35); }
.ts--cta .ts__mark { background: var(--sun-soft); }
.ts--cta .ts__name { color: #fff; }
.ts--cta .ts__name em { color: var(--sun-soft); }
.ts--cta .ts__what { color: rgba(255,255,255,.82); margin-top: 10px; }
.ts--cta .ts__go { margin-top: 18px; }
.ts--cta .ts__link { margin-top: 6px; display: inline-flex; align-items: center; min-height: 44px; color: rgba(255,255,255,.88); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.ts--cta .ts__link:hover { color: var(--sun-soft); }
.ts--cta .ts__card:hover { border-color: var(--sunrise); }
@media (max-width: 700px) {
  .ts__card { min-height: 0; }
  .ts--cta { grid-column: 1 / -1; }
}
/* the cover keeps its own space below the figures now that the filter has gone */
.dl-open { padding-bottom: clamp(40px, 4.4vw, 64px); }
/* names one size on every screen, so a long one fits its line where it can */
.ts__name { font-size: clamp(1.2rem, 1.45vw, 1.3rem); }
@media (max-width: 700px) { .ts__name { font-size: 1.1rem; } }
