/* ==========================================================================
   Work With Me — page-specific styles (tokens only; loaded after components)
   ========================================================================== */

/* ---- Hero: no portrait, the type is the image ------------------------ */
.wwm-hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
}
.wwm-hero .hero__title { margin-top: 0; }
.hero__line.wwm-hero__kicker {
  margin-bottom: var(--space-5);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.wwm-hero .hero__line--serif {
  font-size: clamp(52px, 8.6vw, 156px);
  line-height: 1.02;
}

/* ---- ( 01 ) Audience cards: jump links into the lanes ------------------ */
.wwm-aud__card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.wwm-aud__card .card__body { flex: 1; }
.wwm-aud__link::after {          /* whole card is the hit area */
  content: "";
  position: absolute;
  inset: 0;
}
.wwm-aud__link:focus-visible { outline: none; }
.wwm-aud__card:focus-within { outline: 2px solid var(--on-surface); outline-offset: 6px; }
.wwm-aud__icon {
  width: 44px;
  height: 44px;
  margin-top: var(--space-6);
}
.wwm-aud__icon svg { transform: rotate(90deg); }
.wwm-aud__card:hover .wwm-aud__icon { background: var(--on-surface); color: var(--surface); }

@media (max-width: 899px) {
  /* stack instead of the shared side-scroller: three short cards read better down the page */
  .cards.wwm-aud {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

/* ---- Bridge: full-height dark curtain that the lanes slide over -------- */
.wwm-bridge {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: var(--section-y);
  overflow: hidden;
}
.wwm-bridge ~ * { position: relative; z-index: 1; }
.wwm-bridge__kicker {
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.wwm-bridge__title {
  margin-top: var(--space-6);
  font-weight: 500;
  text-transform: uppercase;
}
.wwm-bridge__line {
  display: block;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: var(--ls-display);
}
.wwm-bridge__line--serif {
  margin-top: 0.08em;
  padding-left: var(--offset);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-statement);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.wwm-bridge__sub {
  max-width: 26em;
  margin-top: var(--space-6);
  margin-left: var(--offset);
  font-size: var(--fs-body-lg);
  line-height: 1.45;
  color: var(--muted);
}
.wwm-bridge__down {
  display: flex;
  width: max-content;
  margin: var(--block-gap) auto 0;
}

/* ---- ( 02 )–( 04 ) Lanes: stacked sections under a sticky jump nav ---- */
.wwm-lanes { --jump-h: 56px; }
.wwm-jump {
  position: sticky;
  top: var(--header-h-live, var(--header-h));  /* live header height, set by main.js */
  z-index: 2;
  border-bottom: var(--hairline);
  transition: top 0.45s var(--ease);
}
/* the shared header slides away on scroll down: let the nav take its place */
.site-header.is-hidden ~ main .wwm-jump { top: 0; }
.wwm-jump__list {
  display: flex;
  gap: clamp(20px, 4vw, 64px);
  height: var(--jump-h);
  overflow-x: auto;
  scrollbar-width: none;
}
.wwm-jump__list::-webkit-scrollbar { display: none; }
.wwm-jump__list li { display: flex; flex: none; }
.wwm-jump__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  transition: color var(--dur) ease;
}
.wwm-jump__num { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
@media (max-width: 599px) {
  .wwm-jump__num { display: none; }   /* all three labels fit at 360–390px */
  .wwm-jump__list { justify-content: space-between; gap: var(--space-4); }
}
.wwm-jump__link::after {        /* active rule sits on the bottom hairline */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc((var(--jump-h) - 44px) / -2 - 1px);
  height: 2px;
  background: var(--on-surface);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.wwm-jump__link:hover,
.wwm-jump__link[aria-current] { color: var(--on-surface); }
.wwm-jump__link[aria-current]::after { transform: scaleX(1); }
.wwm-jump__link:focus-visible { outline-offset: -2px; }

/* room for the sticky nav (+ header) above each lane's index row,
   so a jump never lands the header under the bars */
.wwm-lane { padding-top: calc(var(--section-y) + var(--jump-h)); }

/* Panel intro: photo in the left column (sticky on desktop),
   lead + outcome blocks at the offset */
.wwm-intro { display: grid; gap: var(--space-7); }
.wwm-intro__media { --ratio: 3 / 2; }
.wwm-intro__text > * + * { margin-top: var(--space-5); }
.wwm-intro__text > .wwm-intro__outcomes { margin-top: var(--block-gap); }
@media (min-width: 992px) {
  .wwm-intro {
    grid-template-columns: minmax(0, calc(var(--offset) - var(--space-7))) minmax(0, 1fr);
    column-gap: var(--space-7);
    align-items: start;
  }
  .wwm-intro__media {
    --ratio: 4 / 5;
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
    max-width: 22rem;
  }
}
.wwm-label { margin-bottom: var(--space-5); color: var(--muted); }
.wwm-bestfor .label,
.wwm-howstart .label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--muted);
}

/* Four formats: 2 × 2, then 4 across on wide screens */
@media (min-width: 900px) {
  .cards.wwm-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-8); }
}
@media (min-width: 1280px) {
  .cards.wwm-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Verb-led outcome blocks */
.wwm-outcomes {
  display: grid;
  gap: var(--space-6) clamp(24px, 3vw, 48px);
}
@media (min-width: 600px) { .wwm-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .wwm-outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wwm-outcome {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-strong);
}
.wwm-outcome__title {
  margin-bottom: var(--space-3);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ---- ( 06 ) Self-test: page title is a phrase, not a word -------------- */
.wwm-quiz__index { margin-bottom: var(--space-5); }
.wwm-quiz__more { max-width: 30em; margin: var(--space-5) auto 0; color: var(--muted); }
.wwm-quiz__disq { max-width: 30em; margin: var(--space-6) auto 0; }

