/* Peak Social page (/peak-social). Loaded after home.css, which provides the pl- base:
   colors, type, container, sections, buttons and the approach grid. */

/* ---------- hero: full-bleed photo with the copy over it ---------- */
.pl-social-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(34rem, 82vh, 48rem);
  padding: clamp(7.5rem, 14vw, 10rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.pl-social-hero__media { position: absolute; inset: 0; }
.pl-social-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.pl-social-hero__media::after { /* keeps the copy readable on any part of the photo */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 29, 28, 0.55) 0%, rgba(30, 29, 28, 0.15) 35%, rgba(30, 29, 28, 0.88) 78%, var(--pl-bg) 100%),
    linear-gradient(90deg, rgba(30, 29, 28, 0.7) 0%, rgba(30, 29, 28, 0) 65%);
}
.pl-social-hero .pl-container { position: relative; }
.pl-social-hero h1 {
  max-width: 46rem;
  margin-top: 1.25rem;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.04;
}
.pl-social-hero h1 em { font-style: normal; color: var(--pl-sand); }
.pl-social-hero .pl-hero__lede { color: #e4e2dd; }

/* ---------- facts strip under the hero ---------- */
.pl-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--pl-line);
  border-bottom: 1px solid var(--pl-line);
}
.pl-facts div { padding: 1.5rem 1.5rem 1.5rem 0; }
.pl-facts div + div { padding-left: 1.5rem; border-left: 1px solid var(--pl-line); }
.pl-facts strong {
  display: block;
  font-family: var(--pl-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--pl-text);
}
.pl-facts span { display: block; margin-top: 0.4rem; font-size: 0.875rem; color: var(--pl-soft); }

/* ---------- the course: figure-8 diagram + eight stations ---------- */
.pl-course {
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  background: radial-gradient(ellipse at center, rgba(13, 58, 78, 0.35), rgba(13, 58, 78, 0) 70%);
}
.pl-course svg { display: block; width: 100%; height: auto; max-height: 20rem; }
.pl-course { --pl-lap: 16s; } /* one lap of the runner; must match LAP where the SVG is built */
.pl-course__path {
  fill: none; stroke: var(--pl-accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0.1 9;
  animation: pl-march 0.9s linear infinite; /* the dots flow in the direction of travel */
}
.pl-course__stop { fill: var(--pl-bg-deep); stroke: var(--pl-sand); stroke-width: 1.5; }
/* --pl-at (set on each station) is when the runner reaches it, from the start of a lap */
.pl-course__station .pl-course__stop { animation: pl-visit-stop var(--pl-lap) linear var(--pl-at) infinite; }
.pl-course__station .pl-course__num { animation: pl-visit-num var(--pl-lap) linear var(--pl-at) infinite; }
.pl-course__dot { fill: var(--pl-accent); }
.pl-course__glow { fill: var(--pl-accent); opacity: 0.22; }
.pl-course__trail { fill: var(--pl-accent); opacity: 0.45; }
.pl-course__trail + .pl-course__trail { opacity: 0.7; }

@keyframes pl-march { to { stroke-dashoffset: -9.1; } }
/* a station lights up as the runner arrives, then fades back */
@keyframes pl-visit-stop {
  0% { fill: var(--pl-accent); stroke: var(--pl-accent); }
  7% { fill: var(--pl-bg-deep); stroke: var(--pl-sand); }
  100% { fill: var(--pl-bg-deep); stroke: var(--pl-sand); }
}
@keyframes pl-visit-num { 0% { fill: #fff; } 7%, 100% { fill: var(--pl-text); } }
.pl-course__num { fill: var(--pl-text); font-family: var(--pl-body); font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.pl-course figcaption { margin-top: 1rem; text-align: center; font-size: 0.875rem; color: var(--pl-soft); }

.pl-stations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  overflow: hidden;
  background: var(--pl-line); /* the 1px gaps become grid lines */
}
.pl-station { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.75rem 1.5rem; background: var(--pl-bg); }
.pl-station__num { font-size: 0.8125rem; letter-spacing: 0.14em; color: var(--pl-accent); }
.pl-station__skill { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pl-soft); }
.pl-station h3 { font-size: 1.5rem; line-height: 1.15; }
.pl-station p { font-size: 0.95rem; }

/* ---------- a season: four steps ---------- */
.pl-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.pl-step { position: relative; padding-top: 2.25rem; border-top: 1px solid var(--pl-line); }
.pl-step::before { /* a dot on the line, like a stop on the course */
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 0;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--pl-accent);
  box-shadow: 0 0 0 4px var(--pl-bg-deep);
}
.pl-step__when { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pl-soft); }
.pl-step h3 { margin-top: 0.75rem; font-size: 1.6rem; line-height: 1.15; }
.pl-step p { margin-top: 0.75rem; }

/* ---------- call to action ---------- */
.pl-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  background: linear-gradient(140deg, rgba(13, 58, 78, 0.6), rgba(13, 58, 78, 0.05) 75%);
}
.pl-cta h2 { margin-top: 1rem; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; }
.pl-cta p { margin-top: 1rem; font-size: 1.0625rem; }
.pl-cta ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pl-line); }
.pl-cta li { padding: 0.9rem 0 0.9rem 1.5rem; border-bottom: 1px solid var(--pl-line); position: relative; color: var(--pl-text); }
.pl-cta li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--pl-accent); }
.pl-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

#format { scroll-margin-top: 4.5rem; }

@media (prefers-reduced-motion: reduce) {
  .pl-course__runner { display: none; }
  .pl-course__path,
  .pl-course__station .pl-course__stop,
  .pl-course__station .pl-course__num { animation: none; }
}

@media (max-width: 991px) {
  .pl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pl-facts div:nth-child(n + 3) { border-top: 1px solid var(--pl-line); }
  .pl-stations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .pl-cta { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .pl-social-hero { min-height: 36rem; }
  .pl-social-hero__media img { object-position: 30% 50%; }
  .pl-stations,
  .pl-steps { grid-template-columns: minmax(0, 1fr); }
  .pl-course { padding: 1rem; }
  .pl-cta__actions .pl-btn { flex: 1 1 auto; }
}

/* "Why it matters": research strip under "Why Peak Social" (same deep background) */
.pl-matters { border-top: 1px solid var(--pl-line); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.pl-matters h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
.pl-matters__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.pl-matters__fig { display: block; font-family: var(--pl-heading); font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 1; color: var(--pl-text); }
.pl-home .pl-matters__list p { margin-top: 0.75rem; max-width: 30rem; font-size: 1.0625rem; }
.pl-home .pl-matters__sources { margin-top: 2rem; font-size: 0.8125rem; color: var(--pl-soft); }
.pl-matters__sources a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pl-matters__sources a:hover { color: var(--pl-text); }
@media (max-width: 767px) { .pl-matters__list { grid-template-columns: minmax(0, 1fr); } }
