/* ==========================================================
   Services · Compass scene (replaces the old "Expertise" grid)
   Everything is namespaced cs-* and scoped to #services so it
   cannot collide with the journey section's .pin / .track.
   ========================================================== */
#services {
  --cs-col: 300px; --cs-gap: 56px;
  --cs-gold-soft: #FFD966; --cs-gold: #F2B705;
  --cs-ink: #0A0A0A; --cs-ink-2: #121008;
  --cs-cream: #F6F1E4; --cs-muted: #B9B09A;
  --cs-line: rgba(242, 183, 5, 0.18); --cs-line-strong: rgba(242, 183, 5, 0.55);
  --cs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cs-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --cs-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  position: relative; background: var(--cs-ink); color: var(--cs-cream);
  font-family: var(--cs-body); font-size: 16px; line-height: 1.6;
}
:where(#services) *, :where(#services) *::before, :where(#services) *::after { box-sizing: border-box; }
:where(#services) h2 { font-family: var(--cs-display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
:where(#services) p { margin: 0; }
:where(#services) a { color: inherit; text-decoration: none; }
:where(#services) :focus-visible { outline: 3px solid var(--cs-gold); outline-offset: 3px; }

.cs-wrap { max-width: 1240px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }


.cs-intro { padding-block: 140px 90px; text-align: center; }
.cs-eyebrow { display: inline-block; color: var(--cs-gold); font-weight: 600; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 16px; }
.cs-intro h2 { color: var(--cs-gold); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; }
.cs-intro p { color: var(--cs-muted); margin: 18px auto 0; font-size: 1.1rem; line-height: 1.75; max-width: 52ch; }
.cs-hint { display: inline-block; margin-top: 36px; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--cs-gold); }
.cs-hint::after { content: ""; display: block; width: 1px; height: 44px; margin: 14px auto 0; background: linear-gradient(var(--cs-gold), transparent); }

/* ---------- stage ---------- */
.cs-stage { display: grid; grid-template-columns: var(--cs-col) minmax(0, 1fr); gap: var(--cs-gap); align-items: stretch; border-top: 1px solid var(--cs-line); }
.cs-wf-col { min-width: 0; }
.cs-pinned .cs-wf-col { position: relative; z-index: 2; }
/* half dial: flat edge on the left, arc bulging toward the content; svg aspect 152:312 */
.cs-wf { --cs-w: min(290px, calc((100vh - 182px) * .487)); position: sticky; top: calc(50vh - var(--cs-w) / .974); width: var(--cs-w); }
.cs-wf svg { width: 100%; height: auto; display: block; overflow: hidden; filter: drop-shadow(0 0 22px rgba(242, 183, 5, .16)); transform-origin: 0 50%; }
.cs-wf.cs-pulse svg { animation: cs-nudge 1.1s var(--cs-ease); }
@keyframes cs-nudge { 0% { transform: scale(1); filter: drop-shadow(0 0 22px rgba(242,183,5,.16)); } 35% { transform: scale(1.045); filter: drop-shadow(0 0 40px rgba(242,183,5,.6)); } 100% { transform: scale(1); filter: drop-shadow(0 0 22px rgba(242,183,5,.16)); } }
.cs-wf .cs-ring { fill: none; stroke: var(--cs-gold); }
.cs-wf .cs-tick { stroke: rgba(242, 183, 5, .6); stroke-linecap: round; }
.cs-wf .cs-mark { fill: rgba(242, 183, 5, .55); }
.cs-wf .cs-face { fill: rgba(242, 183, 5, .035); }
.cs-wf .cs-stop { fill: var(--cs-ink); stroke: var(--cs-gold); stroke-width: 1.5; transition: fill .5s var(--cs-ease), r .5s var(--cs-ease); }
.cs-wf .cs-stop.cs-on { fill: var(--cs-gold); r: 6.5; }
.cs-wf .cs-hub { fill: var(--cs-ink); stroke: var(--cs-gold); stroke-width: 2; }
.cs-wf .cs-tip { fill: var(--cs-gold); }
.cs-wf .cs-rear { fill: rgba(10, 10, 10, .92); stroke: var(--cs-cream); stroke-width: 1.3; stroke-linejoin: round; }

/* ---------- services ---------- */
.cs-list { display: grid; }
.cs-svc {
  position: relative; isolation: isolate; min-height: 92vh; padding-block: 90px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  border-bottom: 1px solid var(--cs-line);
}
.cs-svc:last-child { border-bottom: 0; }
.cs-txt { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.cs-sym {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--cs-gold);
  border: 1px solid rgba(242, 183, 5, .4); background: rgba(242, 183, 5, .05); transition: background .6s var(--cs-ease), color .6s var(--cs-ease);
}
.cs-sym svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cs-svc.cs-is-focus .cs-sym { background: var(--cs-gold); color: #111; }
.cs-for { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cs-muted); }
.cs-svc h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; color: var(--cs-cream); transition: color .6s var(--cs-ease); }
.cs-svc.cs-is-focus h2 { color: var(--cs-gold); }
.cs-lead { color: var(--cs-muted); font-size: 1.08rem; line-height: 1.75; max-width: 40ch; }
.cs-pts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; color: var(--cs-cream); }
.cs-pts li { display: flex; gap: 12px; align-items: baseline; }
.cs-pts li::before { content: ""; flex: none; width: 16px; height: 1px; background: var(--cs-gold); transform: translateY(-4px); }
.cs-go {
  --cs-mx: 0px; --cs-my: 0px; translate: var(--cs-mx) var(--cs-my);
  margin-top: 0; display: inline-flex; align-items: center; gap: 16px; position: relative;
  padding: 8px 8px 8px 30px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--cs-gold); color: #111; font-size: .88rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(242, 183, 5, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: background .4s var(--cs-ease), box-shadow .5s var(--cs-ease), translate .25s ease-out, scale .3s var(--cs-ease);
}
.cs-go .cs-arr { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #111; color: var(--cs-gold); font-size: 1.05rem; letter-spacing: 0; transition: transform .5s var(--cs-ease), background .4s var(--cs-ease); }
.cs-go::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 1px solid var(--cs-gold); opacity: 0; transform: scale(.94); transition: opacity .5s var(--cs-ease), transform .6s var(--cs-ease); pointer-events: none; }
.cs-go:hover { background: var(--cs-gold-soft); box-shadow: 0 16px 44px rgba(242, 183, 5, .5), inset 0 1px 0 rgba(255, 255, 255, .55); }
.cs-go:hover .cs-arr { transform: translateX(3px) rotate(-45deg); }
.cs-go:hover::after { opacity: .5; transform: scale(1); }
.cs-go:active { scale: .97; }
.cs-go:focus-visible { outline-offset: 7px; }
.cs-svc.cs-is-focus .cs-go { animation: cs-ring 2.8s var(--cs-ease) 1.8s 2; }
@keyframes cs-ring { 0%, 100% { box-shadow: 0 10px 30px rgba(242,183,5,.28), 0 0 0 0 rgba(242,183,5,.5); } 50% { box-shadow: 0 10px 30px rgba(242,183,5,.28), 0 0 0 14px rgba(242,183,5,0); } }
.cs-side { display: grid; justify-items: start; gap: 24px; min-width: 0; position: relative; }
.cs-side .cs-pic { width: 100%; }
.cs-pic { margin: 0; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 1px solid var(--cs-line); background: var(--cs-ink-2); min-width: 0; }
.cs-pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.12); transition: transform 1.6s var(--cs-ease), filter 1.2s var(--cs-ease); }
.cs-svc.cs-is-focus .cs-pic img { filter: grayscale(.2); transform: scale(1); }

/* ---------- pinned scene: one service on screen at a time ---------- */
.cs-prog { display: none; }
.cs-pinned .cs-track { position: relative; height: 480vh; border-top: 1px solid var(--cs-line); }
.cs-pinned .cs-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; padding-top: 92px; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.cs-pinned .cs-pin > .cs-wrap { width: 100%; min-height: 0; }
.cs-pinned .cs-stage { height: 100%; border-top: 0; align-items: center; }
.cs-pinned .cs-wf { position: relative; top: auto; }
.cs-pinned .cs-list { position: relative; height: 100%; display: block; }
.cs-pinned .cs-svc { position: absolute; inset: 0; min-height: 0; padding-block: 0; border-bottom: 0; align-content: center; visibility: hidden; pointer-events: none; transition: visibility 0s linear 1s; }
.cs-pinned .cs-svc.cs-is-focus { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.cs-pinned .cs-svc.cs-is-out { visibility: visible; }

.cs-pinned .cs-svc .cs-rv { opacity: 0; transform: translateY(calc(var(--cs-dy, 1) * 44px)); transition: opacity .55s var(--cs-ease), transform .55s var(--cs-ease); }
.cs-pinned .cs-svc.cs-is-out .cs-rv { opacity: 0; transform: translateY(calc(var(--cs-dy, 1) * -44px)); transition-duration: .45s; }
.cs-pinned .cs-svc.cs-is-focus .cs-rv { opacity: 1; transform: none; transition: opacity 1s var(--cs-ease), transform 1.1s var(--cs-ease); transition-delay: calc(.25s + var(--cs-i, 0) * .09s); }
.cs-pinned .cs-svc .cs-pic.cs-rv { clip-path: inset(0 0 100% 0 round 24px); transform: none; }
.cs-pinned .cs-svc .cs-pic.cs-rv img { transform: scale(1.3); }
.cs-pinned .cs-svc.cs-is-out .cs-pic.cs-rv { clip-path: inset(100% 0 0 0 round 24px); transform: none; }
.cs-pinned .cs-svc.cs-is-focus .cs-pic.cs-rv { clip-path: inset(0 0 0 0 round 24px); transform: none; transition: clip-path 1.2s var(--cs-ease), opacity .6s var(--cs-ease); transition-delay: .15s; }
.cs-pinned .cs-svc.cs-is-focus .cs-pic.cs-rv img { transform: scale(1); transition: transform 1.8s var(--cs-ease), filter 1.2s var(--cs-ease); transition-delay: .15s; }
.cs-pinned[data-dir="up"] .cs-svc .cs-pic.cs-rv { clip-path: inset(100% 0 0 0 round 24px); }
.cs-pinned[data-dir="up"] .cs-svc.cs-is-out .cs-pic.cs-rv { clip-path: inset(0 0 100% 0 round 24px); }
.cs-pinned[data-dir="up"] .cs-svc.cs-is-focus .cs-pic.cs-rv { clip-path: inset(0 0 0 0 round 24px); }
/* rule that draws under the title */
.cs-rule { display: block; width: 0; height: 2px; background: var(--cs-gold); transition: width .5s var(--cs-ease); }
.cs-pinned .cs-svc.cs-is-focus .cs-rule { width: 72px; transition: width 1.1s var(--cs-ease) .55s; }

.cs-pin::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--cs-sx, 70%) var(--cs-sy, 45%), rgba(242, 183, 5, .07), transparent 70%); opacity: 0; transition: opacity .6s var(--cs-ease); }
.cs-pin.cs-hot::before { opacity: 1; }
.cs-pinned .cs-svc.cs-is-focus .cs-pic.cs-live img { transform: scale(1.09) translate(calc(var(--cs-px, 0) * -14px), calc(var(--cs-py, 0) * -12px)); transition: transform .5s var(--cs-ease), filter 1.2s var(--cs-ease); }
.cs-wf svg { cursor: pointer; }
.cs-wf .cs-stop { cursor: pointer; }
.cs-wf .cs-stop.cs-hov { fill: var(--cs-gold-soft); }
.cs-pinned .cs-prog { display: flex; gap: 14px; width: 100%; max-width: 1240px; margin-inline: auto; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 0 calc(var(--cs-col) + var(--cs-gap) + max(16px, env(safe-area-inset-left, 0px))); }
.cs-prog button { flex: 1 1 0; min-width: 0; background: none; border: 0; padding: 12px 0 0; cursor: pointer; text-align: left; position: relative; color: var(--cs-muted); font: 600 .7rem/1.2 var(--cs-body); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .5s var(--cs-ease); }
.cs-prog button::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(246, 241, 228, .16); }
.cs-prog button::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%; background: var(--cs-gold); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--cs-ease); }
.cs-prog button.cs-on { color: var(--cs-gold); }
.cs-prog button.cs-on::after { transform: scaleX(1); }
.cs-prog button.cs-done::after { transform: scaleX(1); opacity: .35; }


@media (max-width: 1099px) {
  #services { --cs-col: 200px; --cs-gap: 32px; }
  .cs-wf { --cs-w: min(190px, calc((100vh - 182px) * .487)); }
  .cs-svc { grid-template-columns: minmax(0, 1fr); gap: 36px; min-height: 0; padding-block: 80px; }
  .cs-side { order: -1; display: block; }
  .cs-pic { aspect-ratio: 16 / 9; }
  .cs-go { position: absolute; left: 14px; bottom: 14px; z-index: 3; padding: 5px 5px 5px 20px; gap: 12px; font-size: .76rem; }
  .cs-go .cs-arr { width: 36px; height: 36px; }
  .cs-pinned .cs-svc { gap: 22px; }
  .cs-pinned .cs-pic { aspect-ratio: auto; height: min(24vh, 200px); }
}
@media (max-width: 700px) {
  #services { --cs-col: 68px; --cs-gap: 14px; }
  .cs-pinned .cs-prog { padding-left: max(16px, env(safe-area-inset-left, 0px)); gap: 10px; }
  .cs-prog button { font-size: .62rem; letter-spacing: .1em; }
  .cs-wf { --cs-w: min(68px, calc((100vh - 182px) * .487)); }
  .cs-intro { padding-top: 120px; }
  .cs-svc { padding-block: 56px; gap: 28px; }
}
@media (max-height: 720px) and (min-width: 1100px) {
  .cs-txt { gap: 11px; }
  .cs-sym { width: 48px; height: 48px; }
  .cs-lead { font-size: 1rem; line-height: 1.6; }
  .cs-svc h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
  .cs-side { gap: 18px; }
  .cs-pic { aspect-ratio: 16 / 10; }
}
@media (max-width: 1099px) and (max-height: 720px) {
  .cs-pinned .cs-svc { gap: 14px; }
  .cs-pinned .cs-pic { height: min(19vh, 140px); }
  .cs-txt { gap: 9px; }
  .cs-sym { width: 42px; height: 42px; }
  .cs-sym svg { width: 22px; height: 22px; }
  .cs-lead { font-size: .93rem; line-height: 1.55; }
  .cs-pts { gap: 3px; font-size: .92rem; }
  .cs-svc h2 { font-size: 2rem; }
}
/* call to action: bottom right of each section, just above the progress bar */
.cs-pinned .cs-side { position: static; }
.cs-pinned .cs-go { position: absolute; bottom: 16px; right: 0; left: auto; top: auto; z-index: 4; }
@media (max-width: 1099px) { .cs-pinned .cs-svc { padding-bottom: 70px; } }
.cs-pinned.cs-calm .cs-svc .cs-rv, .cs-pinned.cs-calm .cs-svc.cs-is-out .cs-rv, .cs-pinned.cs-calm .cs-svc.cs-is-focus .cs-rv { transform: none !important; transition: opacity .4s linear !important; }
.cs-pinned.cs-calm .cs-svc .cs-pic.cs-rv, .cs-pinned.cs-calm .cs-svc.cs-is-out .cs-pic.cs-rv, .cs-pinned.cs-calm .cs-svc.cs-is-focus .cs-pic.cs-rv { clip-path: none !important; }
.cs-pinned.cs-calm .cs-svc .cs-pic.cs-rv img { transform: none !important; }
.cs-pinned.cs-calm .cs-svc.cs-is-focus .cs-rule { transition-duration: .01s; }
@media (prefers-reduced-motion: reduce) {
  .cs-pic img, .cs-sym, .cs-svc h2 { transition-duration: .01s; }
}

.skip { position: fixed; left: 16px; top: -80px; z-index: 10000; background: #F2B705; color: #111; padding: 12px 20px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }
