/* =========================================================
   Jory&Co — What we do page
   Builds on main.css (tokens, buttons, ticker-box, marquee, footer, nav)
   Figma: Design AW (Updated) › What we do_A (7183:11823)
   ========================================================= */

.page-wwd .main { background: var(--black); }

/* ---------- shared bits (same as the other inner pages) ---------- */
[data-lines] .line { display: block; overflow: hidden; padding: .16em .08em .26em; margin: -.16em -.08em -.26em; }
[data-lines] .line + .line { margin-top: -.42em; } /* adjoining line margins collapse (-.26 vs -.16): restore the full overlap so a multi-line heading keeps its height */
[data-lines] { display: flow-root; }
[data-lines] .line__inner { display: block; will-change: transform, opacity; }
html.js [data-fade] { opacity: 0; }
html.js .ph__title { visibility: hidden; }

/* ---------- Page header ---------- */
.ph { position: relative; padding: 257px 20px 0; }
.ph .hero__bar { position: absolute; }
.ph__inner { display: flex; flex-direction: column; align-items: center; gap: 50px; text-align: center; }
.ph__title { margin: 0; font-weight: 600; font-size: clamp(48px, 6.25vw, 90px); line-height: 1; letter-spacing: -0.03em; }
.ph__text { max-width: 690px; margin: 0; font-size: 17px; line-height: 1.4; }

/* ---------- Co-Create process ---------- */
.wd-process { margin-top: 100px; }
.wd-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.wd-step { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wd-step__num {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--white);
  display: grid; place-items: center; line-height: 1;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.wd-step__name { margin: 0; font-weight: 600; font-size: clamp(24px, 2.08vw, 30px); line-height: 1.2; white-space: nowrap; }
.wd-card {
  position: relative; flex: 1; min-height: 336px;
  display: grid; grid-template-rows: 1fr auto;
  padding: 30px 10px; border-radius: var(--radius);
  background: var(--white-10);
  transition: background-color .4s ease;
}
.wd-card__face { grid-area: 1 / 1; transition: opacity .45s ease, transform .6s var(--ease-out), filter .6s var(--ease-out); }
.wd-card__lead { margin: 0 0 22px; color: var(--new-green); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.033em; }
.wd-card__body { margin: 0; font-size: 14px; line-height: 1.4; }
.wd-card__face--back { opacity: 0; transform: translateY(12px); filter: blur(6px); pointer-events: none; }
.wd-card__label { margin: 0 0 18px; color: var(--new-green); }
.wd-card__list { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; }
.wd-card__list li { position: relative; padding-left: 14px; }
.wd-card__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--new-green); }
.wd-card__more {
  justify-self: start; margin-top: 30px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--white); font: 600 14px/1.4 var(--font-sans);
  display: inline-flex; gap: 4px; align-items: baseline;
  transition: color .3s ease;
}
.wd-card__plus { display: inline-block; transition: transform .45s var(--ease-out); }
.wd-card__more:hover, .wd-card__more:focus-visible { color: var(--new-green); }
.wd-step.is-open .wd-card__face--front { opacity: 0; transform: translateY(-12px); filter: blur(6px); pointer-events: none; }
.wd-step.is-open .wd-card__face--back { opacity: 1; transform: none; filter: blur(0); pointer-events: auto; }
.wd-step.is-open .wd-card__plus { transform: rotate(45deg); }
.wd-step:hover .wd-step__num, .wd-step.is-open .wd-step__num { background: var(--new-green); border-color: var(--new-green); color: var(--black); }

/* the duration bar: fills as you scroll through the five steps, with a week counter */
.wd-bar { --p: 0%; --arrow: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  position: relative; height: 40px; margin-top: 50px; }
.wd-bar__track { position: absolute; inset: 0; background: var(--white-10); border-radius: var(--radius) 0 0 var(--radius); clip-path: var(--arrow); }
.wd-bar__text { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); margin: 0; white-space: nowrap; color: var(--white); opacity: .5; }
.wd-bar__clip { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); overflow: hidden; }
.wd-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--bw, 100vw); background: var(--new-green); border-radius: var(--radius) 0 0 var(--radius); clip-path: var(--arrow); }
.wd-bar__fill .wd-bar__text { color: var(--black); opacity: 1; }
.wd-bar__marker {
  position: absolute; bottom: calc(100% + 10px); left: var(--p);
  transform: translateX(-100%); white-space: nowrap; color: var(--new-green);
  transition: opacity .3s ease;
}
.wd-bar__marker b { font-weight: 400; font-variant-numeric: tabular-nums; }
.wd-bar.is-empty .wd-bar__marker { opacity: 0; }

/* ---------- Our services ---------- */
.wd-services { margin-top: 200px; display: grid; grid-template-columns: 1fr 690px; column-gap: 20px; align-items: start; }
.wd-services__aside { position: sticky; top: calc(50vh - 40px); }
.wd-services__title { margin: 0; font-weight: 600; font-size: clamp(44px, 4.86vw, 70px); line-height: 1.1; letter-spacing: -0.03em; }
.wd-services__list { display: flex; flex-direction: column; gap: 20px; }
.wd-svc { border-top: 1px solid var(--white-20); padding: 20px 0 30px; }
.wd-svc__title { margin: 0 0 30px; font-weight: 600; font-size: 30px; line-height: 1.2; }
.wd-svc__list { margin: 0; padding: 0 0 0 25.5px; list-style: disc; font-size: 17px; line-height: 1.4; }
.wd-svc__list li + li { margin-top: 8px; }
.wd-svc__list a { display: inline-flex; align-items: flex-end; gap: 10px; transition: color .3s ease; }
.wd-svc__arrow { width: 9px; height: 9px; margin-bottom: .35em; opacity: 0; transform: translateX(-6px) rotate(180deg) scaleY(-1); transition: opacity .3s ease, transform .4s var(--ease-out); }
.wd-svc__list a:hover, .wd-svc__list a:focus-visible { color: var(--new-green); }
.wd-svc__list a:hover .wd-svc__arrow, .wd-svc__list a:focus-visible .wd-svc__arrow { opacity: 1; transform: rotate(180deg) scaleY(-1); }
.wd-svc__list li::marker { transition: color .3s; }
.wd-svc__list li:hover::marker { color: var(--new-green); }

/* sticky title changes with the group in view */
.wd-word { display: inline-block; white-space: nowrap; }

/* hover preview: a project thumbnail that trails the cursor */
.wd-peek {
  position: fixed; left: 0; top: 0; z-index: 70; width: 260px; aspect-ratio: 100 / 66;
  border-radius: var(--radius); overflow: hidden; pointer-events: none;
  opacity: 0; filter: blur(12px); transform: translate3d(-999px,-999px,0) scale(.9);
  transition: opacity .35s ease, filter .45s var(--ease-out);
  background: #111;
}
.wd-peek.is-on { opacity: 1; filter: blur(0); }
.wd-peek img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s ease; }
.wd-peek__name { position: absolute; left: 8px; bottom: 8px; padding: 5px; background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); color: var(--white); white-space: nowrap; }

/* little easter egg under the list */
.wd-ideas { margin: 50px 0 0; opacity: .5; }
.wd-ideas span { display: inline-block; font-variant-numeric: tabular-nums; transition: color .4s ease; }
.wd-ideas.is-tick { opacity: 1; transition: opacity .3s; }
.wd-ideas.is-tick span { color: var(--new-green); }
.wd-svc:last-child { padding-bottom: 0; }

/* CTA keeps the homepage spacing */
.page-wwd .ticker-box--cta { margin-top: 200px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .wd-steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .wd-services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .ph { padding-top: 140px; }
  .wd-process, .wd-services, .page-wwd .ticker-box--cta { margin-top: 120px; }
  .wd-steps { grid-template-columns: 1fr; }
  .wd-card { min-height: 0; }
  .wd-bar__text { font-size: 9px; letter-spacing: .4px; }
  .wd-peek { display: none; }
  .wd-services { grid-template-columns: 1fr; row-gap: 40px; }
  .wd-services__aside { position: static; }
}
