/* Talent — after Kora's Services block: a centred title, a sticky horizontal
   bar graph, then photo-led cards that stack over it as you scroll. */
.services { position: relative; padding: 110px 12px 0; background: var(--newsprint, #f0f0f0); color: var(--ink, #0f2a44); }

/* ------------------------------------------------------------ overview */
.services-overview { --service-progress: 0; position: sticky; top: 100px; display: flex; flex-direction: column; align-items: center; max-width: 1180px; margin: 0 auto 80px; padding: 0 40px; text-align: center; opacity: calc(1 - var(--service-progress)); transform: scale(calc(1 - .06 * var(--service-progress))); transform-origin: center top; }
/* Faded behind the card stack (class set in services.js): let clicks and selection fall through. */
.services-overview.is-faded { pointer-events: none; }
.services-eyebrow, .service-kicker, .service-offer-label, .talent-graph-title { font: 400 11px/1.5 var(--font-mono); letter-spacing: .055em; text-transform: uppercase; }
.services-eyebrow { position: relative; color: #526a80; margin-bottom: 14px; } /* lifts it above the h2's tall text box (line-height .95) so the eyebrow can be selected */
.services h2 { font-size: clamp(84px, 11.5vw, 174px); font-weight: 500; line-height: .95; letter-spacing: -.06em; }
.services h2 > span { color: var(--cobalt); }
.services-summary { max-width: 640px; margin-top: 30px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; letter-spacing: -.03em; color: #2b4560; text-wrap: balance; }

/* ------------------------------------------------------------ bar graph */
.talent-graph { width: 100%; margin-top: 54px; text-align: left; }
.talent-graph-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.talent-graph-title { color: var(--cobalt); }
.talent-graph-gain { display: flex; align-items: baseline; gap: 10px; color: var(--cobalt); }
.talent-graph-gain strong { font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
.talent-graph-gain span { font-size: 12px; color: #526a80; }
.talent-graph-plot { position: relative; display: grid; gap: 10px; padding-bottom: 30px; }
.talent-graph-grid { position: absolute; inset: 0; pointer-events: none; }
.talent-graph-grid::after { content: ''; position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: #cdd7e1; }
.talent-graph-grid > span { position: absolute; top: 0; bottom: 22px; left: calc(var(--x) * 100%); width: 1px; background: #dde4eb; }
.talent-graph-grid i { position: absolute; bottom: -22px; left: 0; transform: translateX(-50%); font: normal 400 10px/1 var(--font-mono); color: #7c8fa2; white-space: nowrap; }
.talent-graph-grid > span:first-child i { transform: none; }
.talent-graph-grid > span:last-child i { transform: translateX(-100%); }
.talent-bar { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; height: 54px; width: 1%; min-width: 30px; padding: 9px 16px; overflow: hidden; border-radius: 15px; font-size: 13px; white-space: nowrap; transition: width 1.4s cubic-bezier(.22, 1, .36, 1); }
.talent-bar > * { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; transition-delay: 1s; }
.talent-bar strong { font-weight: 500; }
.talent-bar-with { background: var(--cobalt); color: #fff; }
.talent-bar-before { background: #dfe5eb; color: #3b5571; }
.talent-bar-with { transition-delay: .15s; }
.talent-bar-with > * { transition-delay: 1.15s; }
.talent-graph.is-drawn .talent-bar { width: calc(var(--w) * 100%); }
.talent-graph.is-drawn .talent-bar > * { opacity: 1; transform: none; }
.talent-graph-note { display: flex; justify-content: space-between; gap: 30px; margin-top: 16px; color: #526a80; font-size: 11px; line-height: 1.6; }
.talent-graph-note > span:first-child { flex: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.talent-graph-note > span:last-child { max-width: 520px; text-align: right; }

/* ------------------------------------------------------------ card stack */
.services-stack { position: relative; padding-bottom: 10px; }
/* Layering: every stage shares z-index 2 (above #how z1, below nav z50);
   equal z means DOM order decides, so each later card paints over the
   previous one. The 100vh stage box is transparent around its card, so only
   the card catches clicks and selection. */
.service-stage { position: sticky; top: 0; height: 100vh; min-height: 720px; display: flex; align-items: center; padding: 10px 0; z-index: 2; pointer-events: none; }
.service-stage:focus-within { z-index: 10; }
.service-stage > .service-card { pointer-events: auto; }
.service-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; width: 100%; height: calc(100vh - 40px); max-height: 700px; padding: 10px; background: #e6ecf1; border: 1px solid #dbe3ea; border-radius: 40px; box-shadow: 0 -12px 36px rgb(15 42 68 / 6%); overflow: hidden; }

.service-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-width: 0; padding: clamp(30px, 3.6vw, 50px); border-radius: 30px; background: #fff; overflow: hidden; }
.service-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.service-kicker { display: flex; align-items: center; gap: 12px; color: #3b5571; }
.service-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; background: #e2edfa; color: var(--cobalt); }
.service-count { font: 400 12px/1 var(--font-mono); color: #8396a8; }
.service-card h3 { font-size: clamp(30px, 3.4vw, 50px); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; }
.service-description { max-width: 440px; margin-top: 20px; font-size: 15px; line-height: 1.7; color: #526b82; }
.service-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.service-offer-label { color: #7c8fa2; font-size: 10px; }
.service-chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.service-chips li { padding: 8px 13px; border-radius: 30px; background: #f0f4f8; border: 1px solid #e3eaf1; color: #3b5571; font-size: 12px; line-height: 1.3; }
.service-cta { display: inline-flex; align-items: center; gap: 22px; padding: 5px 5px 5px 18px; margin-top: 8px; min-height: 46px; border-radius: 25px; background: var(--cobalt); color: #fff; font-size: 12px; transition: background .2s; }
.service-cta-arrow { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--cobalt); }
.service-cta-arrow svg { transition: transform .25s; }
.service-cta:hover { background: #1559b4; }
.service-cta:hover svg { transform: rotate(-35deg); }
.service-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }

/* photo side: full-bleed image, ink gradient rising from the bottom,
   frosted role card where Kora puts its testimonial */
.service-photo { position: relative; isolation: isolate; min-width: 0; margin: 0; overflow: hidden; border-radius: 30px; background: #c9d6e2; }
.service-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.is-service-visible .service-photo img { transform: scale(1); }
.service-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(15 42 68 / 0) 35%, rgb(15 42 68 / 72%) 100%); }
.service-photo-tag { position: absolute; top: 16px; left: 16px; padding: 7px 11px; border-radius: 30px; background: rgb(15 42 68 / 45%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: 400 10px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.service-photo-card { position: absolute; right: 10px; bottom: 10px; width: calc(100% - 20px); max-width: 300px; padding: 20px; border-radius: 20px; background: rgb(246 249 252 / 68%); box-shadow: 0 0 0 1px rgb(255 255 255 / 55%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.service-photo-eyebrow { color: var(--cobalt); font: 400 10px/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.service-photo-roles { margin: 10px 0 0; padding: 0; list-style: none; }
.service-photo-roles li { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid rgb(15 42 68 / 10%); font-size: 13px; font-weight: 500; line-height: 1.3; }
.service-photo-roles li > span { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--cobalt); font: 400 9px/1 var(--font-mono); }
.service-photo-foot { margin-top: 12px; color: #526a80; font: 400 9px/1.5 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.service-stage-finance .service-photo img { object-position: 50% 30%; }
.service-stage-specialists .service-photo img { object-position: 70% 50%; }

/* ------------------------------------------------------------ responsive */
@media (min-width: 1600px) { .service-card { max-width: 1600px; margin-inline: auto; } }
@media (max-width: 1100px) {
  .services-overview { padding-inline: 24px; }
  .service-copy { padding: 32px 26px; }
  .service-description { font-size: 14px; }
  .service-label-row { margin-bottom: 22px; }
}
@media (max-width: 809px) {
  .services { padding: 72px 12px 12px; }
  .services-overview { position: relative; top: auto; margin-bottom: 50px; padding: 0 6px; opacity: 1; transform: none; }
  .services-eyebrow { font-size: 9px; }
  .services h2 { font-size: clamp(78px, 17vw, 125px); }
  .services-summary { font-size: 18px; margin-top: 22px; }
  .talent-graph { margin-top: 40px; }
  .talent-graph-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .talent-bar { height: 50px; padding: 8px 12px; font-size: 11px; }
  .talent-bar-before { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0; }
  .talent-bar-before > span { display: none; }
  .talent-graph-note { flex-direction: column; gap: 8px; }
  .talent-graph-note > span:last-child { text-align: left; }
  .services-stack { display: grid; gap: 16px; padding-bottom: 0; }
  .service-stage { position: relative; top: auto; height: auto; min-height: 0; padding: 0; }
  .service-card { grid-template-columns: 1fr; height: auto; max-height: none; padding: 8px; gap: 8px; border-radius: 28px; }
  .service-photo { order: -1; min-height: 440px; border-radius: 21px; }
  .service-copy { padding: 28px 22px 24px; border-radius: 21px; }
  .service-card h3 { font-size: clamp(30px, 6.8vw, 43px); }
  .service-chips li { font-size: 11px; }
}
@media (max-width: 380px) {
  .service-copy { padding-inline: 16px; }
  .service-cta { gap: 10px; font-size: 11px; }
  .service-photo-card { padding: 16px; }
  .talent-bar { font-size: 10px; }
}
@media (min-width: 810px) and (max-height: 760px) {
  .services-overview { position: relative; top: auto; opacity: 1; transform: none; margin-bottom: 60px; }
  .service-stage { position: relative; top: auto; height: auto; min-height: 0; margin-bottom: 16px; }
  .service-card { height: auto; min-height: 600px; max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .services-overview { position: relative; top: auto; opacity: 1; transform: none; }
  .service-stage { position: relative; top: auto; height: auto; min-height: 0; margin-bottom: 24px; }
  .service-card { height: auto; min-height: 600px; max-height: none; }
  .talent-bar, .talent-bar > *, .service-photo img, .service-cta, .service-cta-arrow svg { transition: none; }
  .service-photo img { transform: none; }
  .service-cta:hover svg { transform: none; }
}
