/* =========================================================================
   Advisory (/services/advisory/)
   ========================================================================= */

/* ---- 1. Hero: white, copy beside a portrait and the services index ---- */
.jd-adv-hero { position: relative; overflow: clip; background: var(--surface); color: var(--ink); padding-block: calc(72px + 16px + clamp(40px, 5vw, 72px)) clamp(56px, 7vw, 104px); }
.jd-adv-hero > .jd-container { position: relative; z-index: 1; }
.jd-adv-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-9); align-items: center; }
.jd-adv-hero__copy { display: grid; gap: var(--space-5); justify-items: start; }
.jd-adv-hero__title { margin: 0; font-size: var(--fs-h1); font-weight: 500; line-height: 1.06; letter-spacing: -.025em; }
.jd-adv-hero__title em { padding: 0 .06em; font-style: normal; color: var(--forest); background: linear-gradient(transparent 62%, var(--lime) 62% 92%, transparent 92%); }
.jd-adv-hero__text { margin: 0; max-width: 54ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-muted); }
.jd-adv-hero__btns { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.jd-adv-hero__jump { gap: var(--space-3); }
.jd-adv-hero__jump svg { width: 18px; height: 18px; }

.jd-adv-hero__side { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4); align-items: stretch; }
.jd-adv-hero__photo { margin: 0; min-height: 420px; overflow: hidden; border-radius: var(--radius-lg); background: var(--forest-tint); }
.jd-adv-hero__photo img { display: block; width: 100%; height: 115%; object-fit: cover; object-position: 50% 20%; }
.jd-adv-hero__index { display: grid; align-content: space-between; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--forest); color: var(--on-forest); }
.jd-adv-hero__index-h { margin: 0 0 var(--space-4); font-size: var(--fs-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.jd-adv-hero__index ol { margin: 0; padding: 0; list-style: none; }
.jd-adv-hero__index a { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; gap: var(--space-3); align-items: center; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14); color: var(--on-forest); font-size: var(--fs-small); font-weight: 500; line-height: 1.3; text-decoration: none; transition: color .3s, padding .3s var(--ease-out); }
.jd-adv-hero__index a:hover, .jd-adv-hero__index a:focus-visible { padding-left: 6px; color: var(--lime); }
.jd-adv-hero__index svg { width: 16px; height: 16px; }
.jd-adv-hero__n { font-size: 12px; color: var(--on-forest-muted); }

@media (max-width: 1279px) {
  .jd-adv-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
}
@media (max-width: 639px) {
  .jd-adv-hero__side { grid-template-columns: minmax(0, 1fr); }
  .jd-adv-hero__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .jd-adv-hero__photo img { object-position: 50% 15%; }
}

/* ---- 2. Challenges we solve: soft green, challenges as speech bubbles ---- */
.jd-adv-ch { position: relative; overflow: clip; background: var(--forest-tint); color: var(--ink); padding-block: clamp(72px, 8vw, 120px); }
.jd-adv-ch > .jd-container { position: relative; z-index: 1; }
.jd-adv-ch p { margin: 0; }
.jd-adv-ch__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-8); align-items: end; }
.jd-adv-ch__title { margin: var(--space-4) 0 0; font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.jd-adv-ch__title em { font-style: normal; color: var(--forest); }
.jd-adv-ch__intro { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); }

.jd-adv-ch__wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); align-items: start; margin: var(--space-9) 0 0; padding: 0; list-style: none; }
/* A speech bubble: one squared-off corner is the "tail" */
.jd-adv-ch__bubble { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-6); border-radius: 28px 28px 28px 6px; background: var(--surface); font-size: var(--fs-lead); font-weight: 500; line-height: 1.45; color: var(--ink); box-shadow: 0 18px 40px -28px rgba(35, 56, 49, .5); }
/* The middle column sits lower, so the bubbles read as a conversation */
.jd-adv-ch__bubble:nth-child(3n+2) { margin-top: var(--space-7); }
.jd-adv-ch__bubble--forest { border-radius: 28px 28px 6px 28px; background: var(--forest); color: var(--on-forest); }
.jd-adv-ch__bubble--lime { background: var(--lime); color: var(--forest); }
.jd-adv-ch__tag { justify-self: start; margin: 0; padding: 6px 12px; border-radius: 99px; background: var(--forest-tint); color: var(--forest); font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; }
.jd-adv-ch__bubble--forest .jd-adv-ch__tag { background: rgba(255, 255, 255, .1); color: var(--lime); }
.jd-adv-ch__bubble--lime .jd-adv-ch__tag { background: rgba(35, 56, 49, .1); }
.jd-adv-ch__close { max-width: 62ch; margin: var(--space-8) auto 0 !important; font-size: var(--fs-lead); line-height: 1.55; text-align: center; color: var(--forest); }

@media (max-width: 1023px) {
  .jd-adv-ch__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .jd-adv-ch__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jd-adv-ch__bubble:nth-child(3n+2) { margin-top: 0; }
  .jd-adv-ch__bubble:nth-child(even) { margin-top: var(--space-6); }
}
@media (max-width: 639px) {
  .jd-adv-ch__wall { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .jd-adv-ch__bubble:nth-child(even) { margin-top: 0; }
  .jd-adv-ch__bubble { padding: var(--space-5); }
}

/* ---- 3. Our advisory services: forest, five panels in a row (pinned and driven by scroll on desktop) ---- */
.jd-adv-sv { position: relative; overflow: clip; background: var(--forest); color: var(--on-forest); }
.jd-adv-sv__pin { position: relative; z-index: 1; padding-block: clamp(72px, 7vw, 104px); }
.jd-adv-sv p { margin: 0; }
.jd-adv-sv__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-8); align-items: end; }
.jd-adv-sv__title { margin: var(--space-4) 0 0; font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.jd-adv-sv__title em { font-style: normal; color: var(--lime); }
.jd-adv-sv__intro { font-size: var(--fs-lead); line-height: 1.55; color: var(--on-forest-muted); }

/* At rest: a native swipe row with snap points, lined up with the container edge */
.jd-adv-sv__viewport { --edge: max(var(--gutter), calc((100vw - var(--container)) / 2)); margin-top: var(--space-7); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; }
.jd-adv-sv__viewport::-webkit-scrollbar { display: none; }
.jd-adv-sv__track { display: flex; gap: var(--space-4); width: max-content; margin: 0; padding: 0 var(--edge); list-style: none; }
.jd-adv-sv__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); width: min(1040px, 82vw); padding: var(--space-5); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); scroll-snap-align: start; scroll-margin-top: 120px; }
.jd-adv-sv__photo { position: relative; min-height: 100%; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); }
.jd-adv-sv__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jd-adv-sv__num { position: absolute; left: var(--space-4); top: var(--space-4); padding: 8px 14px; border-radius: 99px; background: var(--lime); color: var(--forest); font-size: var(--fs-small); font-weight: 600; }
.jd-adv-sv__copy { display: grid; gap: var(--space-4); align-content: start; justify-items: start; padding: var(--space-3) var(--space-3) var(--space-3) 0; font-size: var(--fs-body); line-height: 1.65; color: var(--on-forest-muted); }
.jd-adv-sv__copy h3 { margin: 0; font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; color: var(--on-forest); }
.jd-adv-sv__how-h { margin-bottom: var(--space-3) !important; font-size: var(--fs-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.jd-adv-sv__how ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--space-5); margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); line-height: 1.45; color: var(--on-forest); }
.jd-adv-sv__how li { display: flex; gap: var(--space-3); align-items: flex-start; }
.jd-adv-sv__how li span { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: -1px; border-radius: 50%; background: var(--lime); color: var(--forest); }
.jd-adv-sv__how svg { width: 12px; height: 12px; stroke-width: 2.4; }
.jd-adv-sv__ideal { font-size: var(--fs-small); line-height: 1.6; }
.jd-adv-sv__ideal strong { color: var(--on-forest); }
.jd-adv-sv__progress { height: 2px; margin-top: var(--space-6); background: rgba(255, 255, 255, .14); }
.jd-adv-sv__progress span { display: block; height: 100%; background: var(--lime); transform-origin: 0 50%; }
/* Pinned: the JS moves the track, so the row no longer scrolls on its own */
.jd-adv-sv__pin.is-pinned .jd-adv-sv__viewport { overflow: visible; scroll-snap-type: none; }

@media (max-width: 1023px) {
  .jd-adv-sv__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .jd-adv-sv__panel { grid-template-columns: minmax(0, 1fr); width: 84vw; }
  .jd-adv-sv__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .jd-adv-sv__how ul { grid-template-columns: 1fr; }
}

/* ---- 4. How we work with you: white, each step beside its deliverable as a document ---- */
.jd-adv-work { position: relative; overflow: clip; background: var(--surface); color: var(--ink); padding-block: clamp(72px, 8vw, 120px); }
.jd-adv-work > .jd-container { position: relative; z-index: 1; }
.jd-adv-work p { margin: 0; }
.jd-adv-work__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-8); align-items: end; }
.jd-adv-work__title { margin: var(--space-4) 0 0; font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.jd-adv-work__title em { font-style: normal; color: var(--forest); }
.jd-adv-work__intro { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); }

.jd-adv-work__rows { display: grid; gap: var(--space-4); margin: var(--space-9) 0 0; padding: 0; list-style: none; }
.jd-adv-work__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6); align-items: center; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--forest-tint); }
.jd-adv-work__copy { display: flex; gap: var(--space-5); align-items: flex-start; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-muted); }
.jd-adv-work__ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--forest); color: var(--lime); }
.jd-adv-work__ic svg { width: 24px; height: 24px; }
.jd-adv-work__num { display: block; margin-bottom: 4px; font-size: var(--fs-small); font-weight: 600; color: var(--ink-subtle); }
.jd-adv-work__copy h3 { margin: 0 0 var(--space-2); font-size: var(--fs-h4); font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
/* The deliverable: a paper document, tilted one way then the other */
.jd-adv-work__doc { position: relative; display: grid; gap: var(--space-3); padding: var(--space-5) var(--space-5) var(--space-6); border-radius: 6px 6px 18px 18px; background: var(--surface); box-shadow: 0 20px 40px -24px rgba(35, 56, 49, .45); transform: rotate(-1.5deg); font-size: var(--fs-body); font-weight: 500; line-height: 1.45; color: var(--ink); }
.jd-adv-work__row:nth-child(even) .jd-adv-work__doc { transform: rotate(1.5deg); }
.jd-adv-work__tab { position: absolute; right: var(--space-5); top: -12px; padding: 4px 10px; border-radius: 6px; background: var(--lime); color: var(--forest); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.jd-adv-work__doc-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--forest); color: var(--lime); }
.jd-adv-work__doc-ic svg { width: 18px; height: 18px; }
.jd-adv-work__lines { display: grid; gap: 6px; }
.jd-adv-work__lines i { display: block; height: 6px; border-radius: 3px; background: var(--forest-tint); }
.jd-adv-work__lines i:nth-child(2) { width: 80%; }
.jd-adv-work__lines i:nth-child(3) { width: 55%; }

@media (max-width: 1023px) {
  .jd-adv-work__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
}
@media (max-width: 767px) {
  .jd-adv-work__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); padding-bottom: var(--space-6); }
  .jd-adv-work__copy { flex-direction: column; gap: var(--space-3); }
}

/* ---- 5. Ways to work with us: forest, four model cards with small drawn visuals ---- */
.jd-adv-ways { position: relative; overflow: clip; background: var(--forest); color: var(--on-forest); padding-block: clamp(72px, 8vw, 120px); }
.jd-adv-ways > .jd-container { position: relative; z-index: 1; }
.jd-adv-ways p { margin: 0; }
.jd-adv-ways__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-8); align-items: end; }
.jd-adv-ways__title { margin: var(--space-4) 0 0; font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.jd-adv-ways__title em { font-style: normal; color: var(--lime); }
.jd-adv-ways__intro { font-size: var(--fs-lead); line-height: 1.55; color: var(--on-forest-muted); }

.jd-adv-ways__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-9) 0 0; padding: 0; list-style: none; }
.jd-adv-ways__card { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-5); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); font-size: var(--fs-small); line-height: 1.6; color: var(--on-forest-muted); }
.jd-adv-ways__card h3 { margin: var(--space-3) 0 0; font-size: var(--fs-h4); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; color: var(--on-forest); }
.jd-adv-ways__foot { display: flex; justify-content: center; margin-top: var(--space-8); }

.jd-adv-ways__vis { position: relative; display: block; height: 120px; overflow: hidden; border-radius: var(--radius-md); background: rgba(255, 255, 255, .06); }
/* Project: a bar that runs from start to finish */
.jd-adv-ways__bar { position: absolute; left: 16%; right: 16%; top: 50%; height: 10px; margin-top: -5px; border-radius: 5px; background: var(--lime); transform-origin: 0 50%; animation: jd-ways-grow 3s var(--ease-out) infinite; }
.jd-adv-ways__start, .jd-adv-ways__end { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--surface); }
.jd-adv-ways__start { left: 16%; }
.jd-adv-ways__end { left: 84%; background: var(--lime); }
@keyframes jd-ways-grow { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
/* Retained: calendar dots that keep ticking */
.jd-adv-ways__vis--retained { display: grid; grid-template-columns: repeat(6, 14px); gap: 10px; place-content: center; }
.jd-adv-ways__vis--retained i { width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .18); animation: jd-ways-tick 3.6s infinite; }
.jd-adv-ways__vis--retained i:nth-child(1) { animation-delay: 0.0s; }
.jd-adv-ways__vis--retained i:nth-child(2) { animation-delay: 0.3s; }
.jd-adv-ways__vis--retained i:nth-child(3) { animation-delay: 0.6s; }
.jd-adv-ways__vis--retained i:nth-child(4) { animation-delay: 0.9s; }
.jd-adv-ways__vis--retained i:nth-child(5) { animation-delay: 1.2s; }
.jd-adv-ways__vis--retained i:nth-child(6) { animation-delay: 1.5s; }
.jd-adv-ways__vis--retained i:nth-child(7) { animation-delay: 1.8s; }
.jd-adv-ways__vis--retained i:nth-child(8) { animation-delay: 2.1s; }
.jd-adv-ways__vis--retained i:nth-child(9) { animation-delay: 2.4s; }
.jd-adv-ways__vis--retained i:nth-child(10) { animation-delay: 2.7s; }
.jd-adv-ways__vis--retained i:nth-child(11) { animation-delay: 3.0s; }
.jd-adv-ways__vis--retained i:nth-child(12) { animation-delay: 3.3s; }
@keyframes jd-ways-tick { 0%, 20% { background: var(--lime); } 30%, 100% { background: rgba(255, 255, 255, .18); } }
/* Workshops: people around a table */
.jd-adv-ways__vis--workshop b { position: absolute; left: 50%; top: 50%; width: 64px; height: 30px; margin: -15px 0 0 -32px; border-radius: 8px; background: var(--lime); }
.jd-adv-ways__vis--workshop i { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--surface); }
.jd-adv-ways__vis--workshop i:nth-child(1) { transform: translate(-44px, -30px); }
.jd-adv-ways__vis--workshop i:nth-child(2) { transform: translate(0, -34px); }
.jd-adv-ways__vis--workshop i:nth-child(3) { transform: translate(44px, -30px); }
.jd-adv-ways__vis--workshop i:nth-child(4) { transform: translate(-44px, 30px); }
.jd-adv-ways__vis--workshop i:nth-child(5) { transform: translate(0, 34px); }
.jd-adv-ways__vis--workshop i:nth-child(6) { transform: translate(44px, 30px); }
/* Advisory + training: two linked rings drifting together */
.jd-adv-ways__vis--combined i { position: absolute; top: 50%; width: 60px; height: 60px; margin-top: -30px; border: 6px solid var(--lime); border-radius: 50%; }
.jd-adv-ways__vis--combined i:first-child { left: calc(50% - 50px); border-color: var(--surface); animation: jd-ways-left 3s ease-in-out infinite alternate; }
.jd-adv-ways__vis--combined i:last-child { left: calc(50% - 10px); animation: jd-ways-right 3s ease-in-out infinite alternate; }
@keyframes jd-ways-left { from { transform: translateX(-14px); } }
@keyframes jd-ways-right { from { transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) { .jd-adv-ways__vis * { animation: none !important; } }

@media (max-width: 1023px) {
  .jd-adv-ways__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .jd-adv-ways__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .jd-adv-ways__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 6. Advisory and training together: white, two photos joined by a lime "+" ---- */
.jd-adv-tg { position: relative; overflow: clip; background: var(--surface); color: var(--ink); padding-block: clamp(72px, 8vw, 120px); }
.jd-adv-tg > .jd-container { position: relative; z-index: 1; }
.jd-adv-tg p { margin: 0; }
.jd-adv-tg__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-8); align-items: end; }
.jd-adv-tg__title { margin: var(--space-4) 0 0; font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.jd-adv-tg__title em { font-style: normal; color: var(--forest); }
.jd-adv-tg__lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); }

.jd-adv-tg__photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-9); }
.jd-adv-tg__ph { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--forest-tint); }
.jd-adv-tg__ph img { display: block; width: 100%; height: 115%; object-fit: cover; }
.jd-adv-tg__ph figcaption { position: absolute; left: var(--space-5); bottom: var(--space-5); padding: 8px 16px; border-radius: 99px; background: var(--surface); color: var(--forest); font-size: var(--fs-small); font-weight: 600; }
.jd-adv-tg__plus { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--lime); color: var(--forest); font-size: 48px; font-weight: 400; line-height: 1; box-shadow: 0 0 0 10px var(--surface); }
.jd-adv-tg__foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); align-items: center; margin-top: var(--space-7); font-size: var(--fs-body); line-height: 1.65; color: var(--ink-muted); }
.jd-adv-tg__foot > div { justify-self: end; }

@media (max-width: 1023px) {
  .jd-adv-tg__head, .jd-adv-tg__foot { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .jd-adv-tg__foot > div { justify-self: start; }
}
@media (max-width: 559px) {
  .jd-adv-tg__photos { grid-template-columns: 1fr; }
  .jd-adv-tg__plus { width: 64px; height: 64px; margin: -32px 0 0 -32px; font-size: 36px; }
}
