/* Pinebridge · consulting and insights.
   The services index, a service page, the insights index and an article.
   Everything here sits on the shared sheet (site.css) and uses its tokens. */

/* A row of facts in the page opening that wraps tidily on a phone. */
.phero__meta + .phero__actions, .phero__actions + .phero__meta { margin-top: 26px; }

/* Services index · the service cards -------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.svc .pcard { flex: none; border-radius: 0; aspect-ratio: 425 / 290; }
.svc__no { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: rgba(4, 20, 36, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em; transition: background .3s, color .3s; }
.svc:hover .svc__no { background: var(--green); color: var(--navy-900); }
.svc__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 20px; }
.svc__promise { font-size: 15.5px; line-height: 1.6; margin: 0; }
.svc__label { margin: 20px 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.svc__steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; counter-reset: svc-step; }
.svc__steps li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.35; transition: background .25s; }
.svc__steps li::before { counter-increment: svc-step; content: counter(svc-step); display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: var(--navy-900); font-size: 12px; font-weight: 700; }
.svc:hover .svc__steps li { background: var(--green-50); }
.svc__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.svc__foot .link { min-height: 44px; font-size: 14.5px; }

/* Both indexes · the small strip of counted figures under a grid. */
.sec .stats--close { margin-top: clamp(44px, 5vw, 72px); }
.stat__cap a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.stat__cap a:hover { color: var(--navy-700); }
/* The words that arrive over a card's photograph stop short of its number. */
.svc .pcard__more { right: 76px; }
/* A white section followed by the closing panel: one gap between them, not two. */
.sec:not(.sec--soft) + #proposal > .sec { padding-top: 0; }

/* Services index · how the firm works: six steps round one photograph. */
.steps--six .step { padding: 26px 26px 24px; }
.steps--six .step .step__no { font-size: 38px; }
.steps--six .step h3 { margin-top: 12px; font-size: 20px; }
.steps--six .steps__photo { min-height: 520px; margin: 0; }

/* A written reference: one navy panel, a photograph beside the client's words. */
.refpanel { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); margin: 0; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--navy-950), var(--navy-700)); color: rgba(255, 255, 255, .86); overflow: hidden; isolation: isolate; }
.refpanel::before { content: ""; position: absolute; right: -8%; bottom: -60%; z-index: -1; width: 56%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(140, 198, 63, .26), transparent); pointer-events: none; }
.refpanel__photo { position: relative; min-height: 340px; overflow: hidden; }
.refpanel__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--at, 50% 50%); transition: transform 1s var(--ease); }
.refpanel:hover .refpanel__photo img { transform: scale(1.05); }
.refpanel__photo span { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(4, 20, 36, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13px; line-height: 1.45; }
.refpanel__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4.4vw, 60px); }
.refpanel__mark { font-size: 46px; color: var(--green); margin-bottom: 18px; }
.refpanel blockquote { margin: 0; font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, .88); }
.refpanel blockquote.is-short { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; color: #fff; font-weight: 500; letter-spacing: -.005em; }
.refpanel figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.refpanel__logo { display: grid; place-items: center; width: 60px; height: 60px; flex: none; padding: 8px; border-radius: 50%; background: #fff; overflow: hidden; }
.refpanel__logo img { max-height: 100%; object-fit: contain; }
.refpanel__who { flex: 1; min-width: 180px; }
.refpanel cite { display: block; font-style: normal; font-weight: 600; font-size: 17px; line-height: 1.3; color: #fff; }
.refpanel small { font-size: 14px; color: rgba(255, 255, 255, .7); }
.refpanel .link { min-height: 44px; }

/* Service page · the other services, as a row of pills under the opening. */
.svc-nav { background: #fff; box-shadow: 0 1px 0 var(--line); }
.svc-nav .pills { gap: 8px; padding: 14px 0; }
.svc-nav .pill { flex: none; padding: 0 16px; font-size: 14px; white-space: nowrap; }

/* Service page · the opening photograph, a little wider than tall. */
.phero--service .phero__photo { aspect-ratio: 5 / 3.6; }
.phero--service .phero__photo img { transition: transform 1.2s var(--ease); }
.phero--service .phero__photo:hover img { transform: scale(1.04); }

/* Service page · blocks down the main column. */
.block + .block { margin-top: clamp(48px, 6vw, 80px); }
.block__head { margin-bottom: 28px; }
.block__head h2 { margin-top: 16px; font-size: clamp(28px, 2.9vw, 40px); }
.block__head p { margin-top: 14px; max-width: 640px; }
.block__head .lead { color: var(--ink); }

/* The approach, step by step. */
.approach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.approach > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.approach .card { padding: 28px 26px 26px; }
.approach .card::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.approach .card:hover::after { transform: scaleX(1); }
.approach .card__no { font-size: 40px; margin-bottom: 14px; }
.approach h3 { font-size: 20px; }

/* What the work gives the client. */
.gains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gains > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.gain { display: flex; align-items: flex-start; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--soft); transition: background .3s, box-shadow .3s, transform .35s var(--ease); }
.gain:hover { background: #fff; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); transform: translateY(-4px); }
.gain .orb { transition: transform .35s var(--ease), background .3s, color .3s; }
.gain:hover .orb { background: var(--navy-900); color: var(--green); transform: rotate(-8deg) scale(1.06); }
.gain h3 { font-size: 18px; }
.gain p { margin-top: 6px; font-size: 15px; }

/* The panel that follows the reader down the page. */
.propose { padding: 30px 28px 26px; background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); overflow: hidden; isolation: isolate; }
.propose::before { content: ""; position: absolute; right: -30%; top: -28%; z-index: -1; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(140, 198, 63, .25), transparent); }
.propose h2 { font-size: 26px; margin: 18px 0 10px; }
.propose > p { font-size: 15.5px; }
.propose .btn { margin-top: 20px; }
.propose .facts { margin-top: 18px; }
.propose .facts > div { align-items: center; padding: 12px 0; font-size: 14.5px; }
.propose .facts dt .ico { color: var(--green); }
.propose__lines { display: grid; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .13); font-size: 15px; }
.propose__lines a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; font-weight: 500; word-break: break-word; }
.propose__lines a:hover { color: var(--green); }
.propose__lines .ico { flex: none; font-size: 18px; color: var(--green); }
.aside-tool { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.aside-tool p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.aside-tool b { display: block; color: var(--ink); font-size: 16px; }
.aside-tool .orb { transition: transform .35s var(--ease); }
.aside-tool:hover .orb { transform: rotate(-8deg) scale(1.08); }
.aside-tool a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }

/* The decision tool that goes with a service. */
.toolpanel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.toolpanel__main { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, 3.4vw, 44px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.toolpanel__main h2 { margin: 18px 0 8px; font-size: clamp(28px, 2.9vw, 40px); }
.toolpanel__name { display: flex; align-items: center; gap: 14px; margin: 14px 0 12px; }
.toolpanel__name h3 { font-size: 22px; }
.toolpanel__main .btn { margin-top: 24px; }
.toolpanel__note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.toolpanel__gives { position: relative; padding: clamp(26px, 3.4vw, 44px); border-radius: var(--r-lg); background: var(--navy-800); color: rgba(255, 255, 255, .86); overflow: hidden; isolation: isolate; }
.toolpanel__gives h3 { color: #fff; font-size: 21px; margin-bottom: 20px; }
.toolpanel__gives .ticks { gap: 0; }
.toolpanel__gives .ticks li { padding: 15px 0 15px 36px; border-top: 1px solid rgba(255, 255, 255, .12); transition: padding-left .3s var(--ease), color .3s; }
.toolpanel__gives .ticks li::before { top: 16px; }
.toolpanel__gives .ticks li:hover { padding-left: 42px; color: #fff; }
/* A five-by-five grid in the corner, as on the tools themselves. Decoration only. */
.toolpanel__grid { position: absolute; right: -26px; bottom: -26px; z-index: -1; display: grid; grid-template-columns: repeat(5, 30px); gap: 5px; opacity: .16; transform: rotate(-8deg); }
.toolpanel__grid i { aspect-ratio: 1; border-radius: 7px; background: var(--green); }
.toolpanel__grid i:nth-child(3n) { background: #fff; }

/* A row of one, two or three photo cards, shared out so that none is left alone. */
.trio { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.trio > * { grid-column: span 2; }
@media (min-width: 1021px) {
    .trio > :first-child:nth-last-child(2), .trio > :nth-child(2):last-child { grid-column: span 3; aspect-ratio: 16 / 9; }
    .trio > :only-child { grid-column: 1 / -1; aspect-ratio: 16 / 6; }
}
@media (min-width: 681px) and (max-width: 1020px) {
    .trio > * { grid-column: span 3; }
    .trio > :nth-child(odd):last-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
}
@media (max-width: 680px) {
    .trio > * { grid-column: 1 / -1; }
}

/* Insights · the list of articles ------------------------------------------- */
/* Cards three to a row. A last row of two is shared in halves, and a last row
   of one is avoided by taking a card from the row above: two and two. */
.posts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.posts > .ecard { grid-column: span 2; }
@media (min-width: 1021px) {
    .posts > .ecard:nth-child(3n+1):nth-last-child(2), .posts > .ecard:nth-child(3n+2):last-child,
    .posts > .ecard:nth-child(3n+1):nth-last-child(4), .posts > .ecard:nth-child(3n+2):nth-last-child(3),
    .posts > .ecard:nth-child(3n):nth-last-child(2), .posts > .ecard:nth-child(3n+1):last-child { grid-column: span 3; }
    .posts > .ecard:only-child { grid-column: 1 / -1; }
}
/* Two to a row; a card left over lies on its side across both columns. */
@media (min-width: 681px) and (max-width: 1020px) {
    .posts > .ecard { grid-column: span 3; }
    .posts > .ecard:nth-child(odd):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .posts > .ecard:nth-child(odd):last-child .ecard__media { aspect-ratio: auto; min-height: 260px; }
    .posts > .ecard:nth-child(odd):last-child .ecard__media img { position: absolute; inset: 0; }
    .posts > .ecard:nth-child(odd):last-child .ecard__body { justify-content: center; }
    .posts > .ecard:nth-child(odd):last-child p { flex: none; }
}
@media (max-width: 680px) {
    .posts > .ecard { grid-column: 1 / -1; }
}
.ecard[hidden] { display: none; }
.ecard__kind { font-size: 14px; font-weight: 600; color: var(--muted); }
.ecard--navy { background: var(--navy-900); color: rgba(255, 255, 255, .8); box-shadow: none; }
.ecard--navy h3 { color: #fff; }
.ecard--navy .ecard__meta { color: var(--green); }
.ecard--navy .ecard__meta .ico { color: var(--green); }
.ecard--navy .ecard__foot { border-color: rgba(255, 255, 255, .14); }
.ecard--navy .ecard__kind { color: #fff; }
.pager--words a, .pager--words span { padding: 0 22px; }
.pager--words span { background: transparent; box-shadow: none; color: var(--muted); font-weight: 500; }

/* The newest article leads the first page: photograph on the left, words on the right. */
.ecard--lead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.ecard--lead + .posts, .ecard--lead + .ecard--lead { margin-top: 24px; }
.ecard--lead .ecard__media { aspect-ratio: auto; min-height: 360px; }
.ecard--lead .ecard__media img { position: absolute; inset: 0; }
.ecard--lead .ecard__body { justify-content: center; padding: clamp(26px, 3.6vw, 52px); }
.ecard--lead .ecard__meta { margin-bottom: 14px; font-size: 14.5px; }
.ecard--lead h3 { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.2; margin-bottom: 14px; }
.ecard--lead p { flex: none; font-size: 16.5px; line-height: 1.7; }
.ecard--lead .ecard__foot { margin-top: 28px; }

/* Nothing published yet: said plainly, with somewhere to go. */
.empty--lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; padding: 0; text-align: left; overflow: hidden; border-radius: var(--r-lg); }
.empty--lead .empty__photo { position: relative; min-height: 320px; overflow: hidden; }
.empty--lead .empty__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.empty--lead:hover .empty__photo img { transform: scale(1.05); }
.empty--lead .empty__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 4.4vw, 60px); }
.empty--lead .orb { margin: 0 0 20px; }
.empty--lead h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 10px; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Article ------------------------------------------------------------------- */
.phero--article h1 { font-size: clamp(30px, 3.5vw, 48px); max-width: none; }
.phero--article .phero__meta { margin-top: 24px; }
.article .prose { max-width: 780px; }
.article .prose > :first-child { margin-top: 0; }
.article__end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; max-width: 780px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.article__end .link { min-height: 44px; }
.share h2, .more h2 { font-size: 20px; margin-bottom: 6px; }
.ask h2 { font-size: 20px; line-height: 1.3; }
.ask h2 + p { margin-top: 10px; }
.share p { font-size: 14.5px; }
.share__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.share__row .btn { flex: 1 1 100%; }
.share__ico { display: grid; place-items: center; flex: 1; min-width: 46px; height: 46px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 18px; transition: background .2s, color .2s, transform .25s var(--ease); }
.share__ico:hover { background: var(--navy-900); color: var(--green); transform: translateY(-3px); }
.more__list { display: grid; margin-top: 10px; }
.more__list a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.more__list li:first-child a { border-top: 0; }
.more__list img { flex: none; width: 68px; height: 68px; border-radius: 12px; object-fit: cover; transition: transform .35s var(--ease); }
.more__list a:hover img { transform: scale(1.06) rotate(-2deg); }
.more__list b { display: block; color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.35; transition: color .2s; }
.more__list a:hover b { color: var(--green-700); }
.more__list small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.more .link { margin-top: 14px; min-height: 44px; }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1180px) {
    .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* On a short screen the side panel scrolls with the page instead of being cut off. */
@media (max-height: 860px) {
    .with-aside > .stack--aside { position: static; }
}
@media (max-width: 1020px) {
    .refpanel, .toolpanel, .empty--lead { grid-template-columns: 1fr; }
    .stack--aside > :only-child { grid-column: 1 / -1; }
    .refpanel__photo { min-height: 260px; }
    .empty--lead .empty__photo { min-height: 240px; }
    .steps--six .steps__photo { min-height: 340px; }
    .stack--aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
/* Between a phone and a desktop the proposal panel runs the full width, so its
   own contents sit in two columns: the invitation on the left, the facts on the right. */
@media (min-width: 681px) and (max-width: 1020px) {
    .stack--propose { grid-template-columns: 1fr; }
    .propose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 56px); align-items: start; padding: 34px 34px 30px; }
    .propose > * { grid-column: 1; }
    .propose > .btn { justify-self: start; width: auto; min-width: 240px; }
    .propose > .facts { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-top: 0; }
    .propose > .propose__lines { grid-column: 2; grid-row: 4; align-self: end; margin-top: 0; }
}
@media (max-width: 680px) {
    .svc-grid, .approach, .gains { grid-template-columns: 1fr; }
    .approach > :last-child:nth-child(odd), .gains > :last-child:nth-child(odd) { grid-column: auto; }
    .svc__body { padding: 22px 20px 16px; }
    .svc__steps li { font-size: 14px; }
    .svc__label { font-size: 13px; }
    .refpanel__photo span, .more__list small { font-size: 14px; }
    /* On a phone the row of services slides sideways, this one first, and fades at the edge. */
    .svc-nav .pill[aria-current="page"] { order: -1; }
    .svc-nav .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 44px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
    .svc-nav .pills::-webkit-scrollbar { display: none; }
    .refpanel__photo { min-height: 220px; }
    .refpanel blockquote { font-size: 16px; }
    .refpanel blockquote.is-short { font-size: 18px; }
    .steps--six .steps__photo { min-height: 280px; }
    .stack--aside { grid-template-columns: 1fr; }
    .toolpanel__name h3 { font-size: 20px; }
    .phero .btn, .toolpanel__main .btn { max-width: 100%; white-space: normal; text-align: left; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }
    .ecard--lead { grid-template-columns: 1fr; }
    .ecard--lead .ecard__media { aspect-ratio: 16 / 10; min-height: 0; }
}
/* With motion turned off the green strip of words is one still line, not a wrapped block. */
@media (prefers-reduced-motion: reduce) {
    .band .marquee__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; }
}
