/* =====================================================================
   SERVICES GROUP: /services/ and the four capability pages.
   Small additions on top of site.css, in v5's visual language.
   Type sizes use the round 2 tokens on :root (site.css).
   ===================================================================== */

/* ---------- tick list inside dark cards (same mark as v5 .mini) ---------- */
.svc-ticks { margin-top: 16px; display: grid; gap: 6px; }
.svc-ticks li { position: relative; padding-left: 20px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.svc-ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 5px; border-left: 2px solid var(--teal-l); border-bottom: 2px solid var(--teal-l); transform: rotate(-45deg); }

/* ---------- signals ("you may recognise this") ---------- */
.svc-signals { display: grid; gap: 12px; }
.svc-signals li { padding: 16px 20px; border-left: 2px solid var(--gold); border-radius: 0 var(--r-s) var(--r-s) 0; background: rgba(255,255,255,.03); color: var(--ink); font-size: var(--fs-body); line-height: 1.55; }
.svc-signals--3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- in-page jump links under the hero ---------- */
.svc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.svc-jump a { font-size: var(--fs-sm); font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; transition: border-color .3s, color .3s; }
.svc-jump a:hover { border-color: rgba(60,195,197,.6); color: var(--teal-l); }

/* small uppercase label */
.svc-k { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-l); }
.svc-note { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 18px; }
.svc-note a { color: var(--teal-l); font-weight: 600; }
.feat .link-arrow { margin-top: 10px; font-size: var(--fs-sm); }

/* dark chips (on the charcoal background) */
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chips span { font-size: var(--fs-xs); font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--ink-2); }

/* =====================================================================
   /services/: sticky service index + alternating rows
   ===================================================================== */
.svc-index { position: sticky; top: 84px; z-index: 5; display: flex; justify-content: safe center; gap: 4px; margin: 0 auto 8px; width: max-content; max-width: 100%;
  padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(16,17,18,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow-x: auto; scrollbar-width: none; }
.svc-index::-webkit-scrollbar { display: none; }
.svc-index a { flex: none; font-size: var(--fs-sm); font-weight: 600; padding: 9px 16px; border-radius: 999px; color: var(--ink-3); text-decoration: none; white-space: nowrap; transition: color .3s, background-color .3s; }
.svc-index a:hover { color: var(--ink); }
.svc-index a.is-active { color: #061011; background: var(--teal-l); }
.svc-rows { display: grid; gap: clamp(56px, 8vw, 104px); margin-top: clamp(40px, 5vw, 64px); }
.svc-row { scroll-margin-top: 150px; }
.svc-row h3 { font-size: var(--fs-display); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; margin-top: 10px; }
.svc-row p { margin-top: 14px; }
.svc-row .checks { margin-top: 20px; }
.svc-row .link-arrow { margin-top: 22px; }
.svc-row__n { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; color: var(--gold-l); }

/* visual panels used beside rows and inside tab panels */
.svc-vis { padding: clamp(24px, 3vw, 36px); border-radius: 24px; color: #0e1718; }
.svc-vis--mint { background: #f4e6b8; } .svc-vis--sand { background: #cfe6e6; } .svc-vis--stone { background: #ebe3d5; } .svc-vis--grey { background: #dfe3ea; }
.svc-vis .tag { margin-bottom: 14px; }
.svc-vis__t { font-size: var(--fs-h4); font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.svc-vis .flow li b { font-size: var(--fs-body); }
.svc-vis .scard__link { margin-top: 18px; }
.svc-dark { padding: clamp(24px, 3vw, 32px); border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card); }
.svc-dark h4 { font-size: var(--fs-h4); font-weight: 700; margin-bottom: 12px; }
.svc-dark h4 + .svc-chips, .svc-dark h4 + .svc-ticks { margin-top: 0; }
.svc-dark .svc-chips + h4, .svc-dark .svc-ticks + h4 { margin-top: 24px; }

/* week one / week two strip */
.svc-weeks { display: grid; gap: 14px; }
.svc-weeks li { padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card); }
.svc-weeks li:last-child { border-color: rgba(217,163,22,.45); background: linear-gradient(135deg, rgba(217,163,22,.10), var(--card) 60%); }
.svc-weeks b { display: block; font-size: var(--fs-h4); margin-top: 8px; }
.svc-weeks p { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 6px; }

/* =====================================================================
   tab panels (.utabs from site.css): text + visual split
   ===================================================================== */
.svc-tabs { margin-top: clamp(32px, 4vw, 48px); }
.svc-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-panel h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.svc-panel .body { margin-top: 12px; }
.svc-panel .checks { margin-top: 20px; }
.svc-panel .link-arrow { margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .utabs__panel:not([hidden]) .svc-panel { animation: svc-in .45s var(--ease) both; }
  @keyframes svc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* comparison panel (FDE): definition rows */
.svc-cmp { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.svc-cmp > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.svc-cmp dt { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); }
.svc-cmp dd { font-size: var(--fs-body); color: var(--ink); }

/* HRive frame with floating chips */
.svc-float { position: relative; }
.svc-float .browser img { width: 100%; height: auto; display: block; }
.svc-float__chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; color: #0e1718; font-size: var(--fs-xs); font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.svc-float__chip i { color: var(--teal-d); font-size: var(--fs-body); }
.svc-float__chip:nth-of-type(1) { top: 18%; left: -14px; }
.svc-float__chip:nth-of-type(2) { top: 52%; right: -14px; }
.svc-float__chip:nth-of-type(3) { top: -14px; right: 10%; }
@media (prefers-reduced-motion: no-preference) {
  .svc-float__chip { animation: svc-bob 3.2s ease-in-out infinite; }
  .svc-float__chip:nth-of-type(2) { animation-delay: -1.1s; }
  .svc-float__chip:nth-of-type(3) { animation-delay: -2.2s; }
  @keyframes svc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
.svc-shot .browser img { width: 100%; }

/* =====================================================================
   readiness / fit
   ===================================================================== */
.svc-ready { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-ready .cards { gap: 16px; }
.svc-ready .card h3 { font-size: var(--fs-h4); }
.svc-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-fit .card h3 { font-size: var(--fs-h4); }
.svc-fit .card--muted { background: rgba(255,255,255,.02); }
.svc-fit .card--muted .svc-ticks li::before { border-color: var(--ink-3); transform: none; border: 0; width: 8px; height: 2px; top: 10px; background: var(--ink-3); }

/* pinned "first two weeks" (desktop: left column sticks) */
.svc-pin { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.svc-pin__side { position: sticky; top: 120px; }
.svc-pin .nsteps li { padding-bottom: 8px; }

/* proof strip */
.svc-proof { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding: 22px 28px; border-radius: var(--r); border: 1px dashed var(--line-2); }
.svc-proof p { flex: 1 1 380px; color: var(--ink-2); font-size: var(--fs-body); }
.svc-proof b { color: var(--ink); }

/* industries row (AI page) */
.svc-inds .card h3 { font-size: var(--fs-h4); }
.svc-inds .card p { font-size: var(--fs-sm); }

/* =====================================================================
   responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .svc-signals--3 { grid-template-columns: 1fr; }
  .svc-pin { grid-template-columns: 1fr; }
  .svc-pin__side { position: static; }
}
@media (max-width: 960px) {
  .svc-panel, .svc-ready { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .svc-fit { grid-template-columns: 1fr; }
  .svc-cmp > div { grid-template-columns: 1fr; gap: 4px; }
  .svc-index { top: 72px; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .svc-float__chip:nth-of-type(1) { left: 8px; }
  .svc-float__chip:nth-of-type(2) { right: 8px; }
  .svc-proof { padding: 20px; }
}
.cards + .svc-note, .svc-fit + .svc-note { margin-top: 28px; }
.utabs__panel > .svc-cmp { border-top: 0; }
.utabs__panel > .svc-cmp > div:first-child { padding-top: 0; }

/* =====================================================================
   IMAGE ROUND: photos paired with text (Elexoft balance)
   TODO(replace-before-launch): photos from /assets/img/temp-pinterest/ are unlicensed placeholders.
   ===================================================================== */
/* photo frame */
.svc-ph { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line-2); background: #151516; aspect-ratio: 4 / 3; }
.svc-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.svc-ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(15,15,16,0) 55%, rgba(15,15,16,.32)), rgba(15,15,16,.06); }
.svc-ph--16x9 { aspect-ratio: 16 / 9; }
.svc-ph--3x2 { aspect-ratio: 3 / 2; }
.svc-ph--wide { aspect-ratio: 21 / 8; }
.svc-ph--tall { aspect-ratio: 4 / 5; }
.svc-ph__cap { position: absolute; left: 16px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(14,14,15,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; }
.svc-ph__cap i { color: var(--teal-l); }

/* page hero with a photo beside the text */
.svc-hero { align-items: center; }
.svc-hero .phero__title { max-width: 18ch; }
.svc-ph--hero { aspect-ratio: 5 / 4.6; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.svc-ph--hero::before { content: ""; position: absolute; inset: auto -20% -30% auto; width: 60%; height: 60%; z-index: 1; pointer-events: none; background: radial-gradient(closest-side, rgba(217,163,22,.18), transparent); }
.svc-hero .browser img { width: 100%; height: auto; display: block; }

/* photo with a blueprint card overlapping its lower edge */
.svc-overlap { position: relative; }
.svc-overlap > .svc-vis { position: relative; z-index: 2; margin: -96px 0 0 clamp(20px, 4vw, 48px); box-shadow: 0 24px 60px rgba(0,0,0,.35); }

/* column that stacks a photo over a panel */
.svc-col { display: grid; gap: 20px; align-content: start; }
.svc-ready .svc-ph, .split > div > .svc-ph { margin-top: 32px; }
.svc-shot--flat { padding: 20px; }

/* photo-backed band: dark overlay keeps the text AA */
.svc-photoband { position: relative; isolation: isolate; overflow: hidden; }
.svc-photoband__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.svc-photoband__bg img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; opacity: .62; filter: saturate(.8); }
.svc-photoband__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.5) 36%, rgba(10,10,10,.62) 72%, rgba(10,10,10,.94) 100%), radial-gradient(60% 50% at 50% 0%, rgba(10,10,10,.5), transparent); }
.svc-photoband .xcard { background: rgba(23,23,24,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* steps carrying a photo (FDE first two weeks) */
.nsteps .svc-ph { margin-top: 18px; max-width: 560px; }

/* image-topped cards */
.card__media { margin: -28px -28px 22px; aspect-ratio: 16 / 9; border-radius: var(--r) var(--r) 0 0; overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); }

/* gentle motion: the photo settles from a slight zoom, frames open from a soft clip, bands drift.
   Scroll-driven, so it is static where unsupported and off with reduced motion. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .svc-ph:not(.svc-ph--hero) { animation: svc-clip linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .svc-ph img, .card__media img { animation: svc-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    .svc-photoband__bg img { animation: svc-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes svc-clip { from { clip-path: inset(6% 5% 6% 5% round 24px); } to { clip-path: inset(0 0 0 0 round 24px); } }
    @keyframes svc-settle { from { transform: scale(1.1); } to { transform: scale(1); } }
    @keyframes svc-drift { from { transform: translateY(-5%); } to { transform: translateY(5%); } }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .svc-ph--hero img { animation: svc-hero-in 1.6s var(--ease) both; }
  @keyframes svc-hero-in { from { transform: scale(1.08); } to { transform: scale(1); } }
}

@media (max-width: 960px) {
  .svc-ph--hero { aspect-ratio: 16 / 10; margin-top: 8px; }
  .svc-ph--wide { aspect-ratio: 16 / 9; }
  .svc-overlap > .svc-vis { margin: -48px 12px 0; }
}
@media (max-width: 600px) {
  .card__media { margin: -24px -24px 20px; }
  .svc-ph, .svc-ph--hero { border-radius: 20px; }
}
.svc-fit-head { margin-bottom: clamp(32px, 4vw, 48px); }
.svc-fit-head .sec-head { margin-bottom: 0; }
.split > div > .svc-shot { margin-top: 32px; }
.split > div > .svc-shot:first-child { margin-top: 0; }
.svc-shot--flat .browser img { width: 100%; height: auto; display: block; }
/* crops that keep baked-in marks outside the frame: keep these ratios narrower than the source */
.svc-ph--crop-l { aspect-ratio: 4 / 3; }
.svc-ph--band { margin-bottom: clamp(32px, 4vw, 48px); }
.scard .svc-ph { border-color: rgba(0,0,0,.08); }
@media (max-width: 960px) { .svc-ph--wide.svc-ph--band { aspect-ratio: 2 / 1; } }
/* /services/ engagement models: tall photo beside the three cards */
.svc-models { display: grid; grid-template-columns: .8fr 1.6fr; gap: 20px; align-items: stretch; }
.svc-models > .svc-ph { aspect-ratio: auto; min-height: 100%; }
.svc-models__cards { gap: 20px; }
.svc-models__cards > .card--hl { grid-column: 1 / -1; }
@media (max-width: 960px) {
  .svc-models { grid-template-columns: 1fr; }
  .svc-models > .svc-ph { aspect-ratio: 16 / 9; min-height: 0; }
}
.svc-ph--crop-sq { aspect-ratio: 1 / 1; max-height: 520px; width: 100%; }

/* =====================================================================
   VISUAL ROUND: cinematic heroes, big splits, collages, pinned industries,
   photo cards and the capability marquee (components in site.css).
   TODO(replace-before-launch): temporary Pinterest media, unlicensed.
   ===================================================================== */
/* capability rows as big splits (/services/) */
.svc-rows > .bigsplit + .bigsplit { margin-top: 0; }
.svc-rows .bigsplit__txt .checks { margin-top: 20px; }
.bigsplit__media.svc-overlap > .svc-vis { margin: -120px 0 0 auto; max-width: 440px; margin-right: clamp(-28px, -2vw, 0px); }
.bigsplit--rev .bigsplit__media.svc-overlap > .svc-vis { margin-left: clamp(-28px, -2vw, 0px); margin-right: auto; }
.svc-weeks--float { position: relative; z-index: 2; grid-template-columns: 1fr 1fr; margin: -84px clamp(16px, 3vw, 36px) 0; }
.svc-weeks--float li { background: rgba(20,22,23,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); }
.bigsplit__media .svc-shot { margin: 0; }

/* capability marquee band */
.svc-marquee { padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(7,94,99,.08), transparent); }

/* photo cards */
.svc-pcards { margin-top: clamp(40px, 5vw, 64px); }
.sec-head + .svc-pcards { margin-top: 0; }
.svc-pcards .pcard__body .svc-ticks { margin-top: 14px; }
.svc-pcards .pcard__body > a.card__more { margin-top: auto; padding-top: 20px; }
.pcard--hl { border-color: rgba(217,163,22,.5); background: linear-gradient(180deg, rgba(217,163,22,.08), var(--card) 40%); }

/* bigsplit media: collage fits the column */
.bigsplit__media > [data-collage] { width: 100%; }

/* tab panels with media keep the svc panel type */
.utabs__panel--media h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.utabs__panel--media .body { margin-top: 12px; }
.utabs__panel--media .checks { margin-top: 20px; }
.utabs__panel--media .link-arrow, .utabs__panel--media .svc-chips { margin-top: 20px; }
.utabs__panel--media .svc-dark, .utabs__panel--media .svc-vis { margin-top: 24px; }
.utabs__media--tall { aspect-ratio: 4 / 5; }

/* tall portrait video panel (custom platforms) */
.svc-tallvid .vmedia { max-width: 460px; }

@media (max-width: 960px) {
  .bigsplit__media.svc-overlap > .svc-vis, .bigsplit--rev .bigsplit__media.svc-overlap > .svc-vis { margin: -48px 12px 0; max-width: none; }
  .svc-weeks--float { margin: -40px 12px 0; }
  .svc-tallvid .vmedia { max-width: none; }
}
@media (max-width: 600px) {
  .svc-weeks--float { grid-template-columns: 1fr; }
}
/* blueprint card laid out as a wide row under a big split */
.svc-vis--row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.svc-vis--row .flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.svc-vis--row .flow li { margin: 0; }
.svc-pico { color: var(--teal-l); margin-right: 10px; font-size: 1.1em; vertical-align: -2px; }
@media (max-width: 1080px) { .svc-vis--row { grid-template-columns: 1fr; } .svc-vis--row .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-vis--row .flow { grid-template-columns: 1fr; } }
.svc-vis--row { grid-template-columns: minmax(0, .55fr) minmax(0, 2.45fr); }
.svc-vis--row .flow li { align-content: start; padding: 54px 16px 16px; }
.svc-vis--row .flow li::before { top: 16px; left: 16px; transform: none; }
@media (max-width: 1080px) { .svc-vis--row { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .svc-vis--row .flow li { padding: 14px 18px 14px 58px; } .svc-vis--row .flow li::before { top: 50%; transform: translateY(-50%); } }
/* HRive shot as the media of a tab panel */
.svc-tabshot { margin: 0; }
.svc-tabshot .browser img { width: 100%; height: auto; display: block; }
@media (max-width: 960px) { .svc-tabshot { order: -1; } }
.bigsplit__txt .nsteps { margin-top: 32px; }
/* FDE: comparison tabs centred under the big split */
.svc-differs { margin-top: clamp(64px, 8vw, 112px); }
.utabs__panel--media > .svc-cmp { border-top: 0; align-self: center; }
.utabs__panel--media > .svc-cmp > div:first-child { padding-top: 0; }
/* custom platforms: two HRive shots stacked with an offset */
.svc-shots { display: grid; }
.svc-shots > .shot:first-child { margin-right: clamp(0px, 6vw, 72px); }
.svc-shots > .shot + .shot { position: relative; z-index: 2; margin: 20px 0 0 clamp(0px, 6vw, 72px); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
@media (max-width: 960px) { .svc-shots > .shot:first-child { margin-right: 0; } .svc-shots > .shot + .shot { margin: 20px 0 0; } }
/* hero photo that is a product UI: soften it so the sample figures do not compete with the title */
.svc-hero-ui .phero__bg > img { filter: blur(3px) saturate(.6) brightness(.8); transform: scale(1.04); }
/* pinned industries on short desktop screens (e.g. 1280x720): keep the whole block, step dots included, inside the viewport */
@media (min-width: 1101px) and (max-height: 820px) { [data-pinlist].is-pinned .pinlist__media { max-height: 52svh; } }
