/* ============================================================
   WHY JOIN GRASSIK page (why-join-grassik.html) only
   Loaded after style.css, hero.css and theme.css. Reuses the
   shared .eyebrow, .wg-head, .wg-card, .wg-panel, .final and
   .btn components; only the page-specific layout lives here.
   Section order: photo hero (navy shade) · executive search (white) ·
   pivot (navy) · six reasons (beige) · closing CTA (white).
   ============================================================ */

/* hero · photo banner, heading only. The photo, navy shade, zoom and on-dark type all come
   from the homepage's .hero--photo in theme.css; only the height is set here, since this
   hero carries a heading and no intro or stats */

.hero.hero--photo.wj-hero {
  min-height: clamp(304px,32vw,448px);
  padding: clamp(64px,7vw,104px) 0;
}

/* keeps the man on the stairs in frame on the right, clear of the heading */
.wj-hero .hero-photo {
  object-position: 62% 42%;
}

@media (max-width:940px) {
  .hero.hero--photo.wj-hero {
    min-height: 272px;
  }
  .wj-hero .hero-photo {
    object-position: 68% 45%;
  }
}

@media (max-width:560px) {
  .hero.hero--photo.wj-hero {
    min-height: 240px;
  }
  .wj-hero .hero-photo {
    object-position: 72% 45%;
  }
}

/* hero · parallax (js/why-join.js adds .has-parallax unless reduced motion is on).
   The photo is made taller than the banner and starts with its extra height above it;
   as the page scrolls the script slides it down (the `translate` property, so it never
   fights the settle-in zoom on `transform`) and the banner shows a slowly drifting photo. */
.wj-hero.has-parallax .hero-photo {
  top: -28%;
  height: 128%;
  will-change: translate;
  /* the taller box crops lower; this puts the resting framing back where it was */
  object-position: 62% 10%;
}

@media (max-width:940px) {
  .wj-hero.has-parallax .hero-photo {
    object-position: 68% 20%;
  }
}

@media (max-width:560px) {
  .wj-hero.has-parallax .hero-photo {
    top: -18%;
    height: 118%;
    object-position: 72% 45%;
  }
}

/* .hero is a grid; without this the .wrap shrinks to its content and sits centred */
.wj-hero > .wrap {
  width: 100%;
}

.wj-hero h1 {
  margin: 0;
}


/* A · why executive search */

.wj-search {
  background: var(--surface);
  padding: clamp(64px,8vw,104px) 0;
  scroll-margin-top: 74px;
}

/* heading left, intro right. Same columns as .wj-body below, so the intro starts at the top
   of the section (level with the eyebrow) and lines up with the panel's left and right edges */

.wj-head {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  gap: clamp(40px,5vw,80px);
  align-items: start;
  margin-bottom: clamp(40px,5vw,64px);
}

.wj-head .wg-head {
  margin: 0;
}

.wj-head > p {
  font-size: clamp(16px,1.6vw,18.5px);
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}

@media (max-width:980px) {
  .wj-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .wj-head > p {
    max-width: 62ch;
  }
}

/* numbered points left, closing list right */

.wj-body {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  gap: clamp(40px,5vw,80px);
  align-items: start;
}

@media (max-width:980px) {
  .wj-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.wj-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wj-item {
  display: grid;
  grid-template-columns: clamp(56px,6vw,84px) minmax(0,1fr);
  gap: clamp(12px,2vw,24px);
  padding: clamp(28px,3vw,36px) 0;
  border-top: 1px solid var(--hair);
}

@media (max-width:560px) {
  .wj-item {
    grid-template-columns: 44px minmax(0,1fr);
    gap: 8px;
  }
}

.wj-item:first-child {
  border-top: none;
  padding-top: 0;
}

.wj-item:last-child {
  padding-bottom: 0;
}

.wj-num {
  font-family: var(--display);
  font-size: clamp(26px,2.4vw,32px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: var(--dtrack);
  color: var(--accent);
}

.wj-item h3 {
  font-family: var(--display);
  font-weight: var(--dweight);
  font-size: calc(clamp(20px,1.9vw,23px) * var(--ds));
  line-height: 1.25;
  letter-spacing: var(--dtrack);
  color: var(--ink);
  margin: 0 0 12px;
}

.wj-item p {
  font-size: clamp(15px,1.3vw,16.5px);
  line-height: 1.75;
  color: var(--body);
  margin: 0;
  max-width: 62ch;
}

/* the panel stays in view beside the points on wide screens */

@media (min-width:981px) {
  .wj-panel {
    position: sticky;
    top: 104px;
  }
}

/* panel heading: no eyebrow above it here */

.wj-panel .wg-quote {
  margin-top: 0;
}

/* pivot · navy band between the two halves */

.wj-pivot {
  position: relative;
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: clamp(64px,8vw,104px) 0;
}

/* rings · top right, partly off the band; faint coral lines behind the heading */

.wj-pivot {
  overflow: hidden;
  isolation: isolate;
}

.wj-pivot > .wrap {
  position: relative;
}

.wj-rings {
  position: absolute;
  z-index: -1;
  width: clamp(360px,48vw,720px);
  height: auto;
  right: clamp(-320px,-20vw,-110px);
  top: 50%;
  transform: translateY(-53%);
  fill: none;
  pointer-events: none;
  overflow: visible;
}

.wj-rings circle {
  vector-effect: non-scaling-stroke;
}

.wj-ring {
  stroke-width: 1;
  /* drawn in: a full-length dash pushed off, then slid into place */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s cubic-bezier(.65,0,.35,1);
}

.wj-ring-1 {
  stroke: rgba(217,131,107,.45);
}

.wj-ring-2 {
  stroke: rgba(217,131,107,.32);
  transition-delay: .35s;
}

.wj-pivot.on .wj-ring {
  stroke-dashoffset: 0;
}

/* inner dashed ring fades in, then turns slowly */

.wj-ring-dash {
  stroke: rgba(255,255,255,.26);
  stroke-width: 1;
  stroke-dasharray: 2 9;
  opacity: 0;
  transition: opacity 1.4s ease 1.1s;
  transform-box: view-box;
  transform-origin: 300px 300px;
  animation: wj-spin 120s linear infinite;
}

.wj-pivot.on .wj-ring-dash {
  opacity: 1;
}

/* dots glide back and forth along the visible (left) arc of each solid ring, out of step */

.wj-orbit {
  transform-box: view-box;
  transform-origin: 300px 300px;
  opacity: 0;
  transition: opacity 1.2s ease 1.8s;
}

.wj-pivot.on .wj-orbit {
  opacity: 1;
}

.wj-orbit-a {
  animation: wj-sway-a 11s ease-in-out infinite alternate;
}

.wj-orbit-b {
  animation: wj-sway-b 15s ease-in-out -4s infinite alternate;
}

.wj-dot {
  fill: var(--accent-lift);
}

.wj-dot-soft {
  fill: rgba(255,255,255,.55);
}

/* outer ring breathes very slightly */

.wj-breathe {
  transform-box: view-box;
  transform-origin: 300px 300px;
  animation: wj-breathe 9s ease-in-out infinite alternate;
}

@keyframes wj-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wj-sway-a {
  from {
    transform: rotate(-38deg);
  }
  to {
    transform: rotate(38deg);
  }
}

@keyframes wj-sway-b {
  from {
    transform: rotate(26deg);
  }
  to {
    transform: rotate(-26deg);
  }
}

@keyframes wj-breathe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion:reduce) {
  .wj-ring,
  .wj-ring-dash,
  .wj-orbit {
    stroke-dashoffset: 0;
    opacity: 1;
    transition: none;
    animation: none;
  }
  .wj-breathe {
    animation: none;
  }
}

/* phone: the rings sit behind the heading, so they stay lighter there */

@media (max-width:560px) {
  .wj-rings {
    opacity: .7;
  }
}

.wj-pivot h2 {
  font-family: var(--display);
  font-weight: var(--dweight);
  font-size: calc(clamp(28px,4vw,48px) * var(--ds));
  line-height: 1.18;
  letter-spacing: var(--dtrack);
  color: #fff;
  margin: 0 auto;
  max-width: 24ch;
}

.wj-pivot h2 em {
  font-style: var(--dital);
  font-weight: 400;
  color: var(--accent-lift);
}

/* B · six reasons on beige, white cards */

.wj-firm {
  padding: clamp(64px,8vw,104px) 0;
  scroll-margin-top: 74px;
}

/* closing CTA · the homepage .final on white so it separates from the beige cards above (no top rule) */

.final.wj-final {
  background: var(--surface);
}

.final.wj-final::after {
  background: radial-gradient(ellipse 45% 60% at 50% 45%,rgba(255,255,255,.92) 0%,rgba(255,255,255,0) 100%);
}

.final.wj-final h2 {
  max-width: 22ch;
}
