/* ===========================================================
   Wheelhouse — the joint program page.
   Mixed DNA: Rogue Fraction's geometry and color, The C-Suite
   Collective's black-and-serif editorial register.

   Volume discipline: three dark moments only (hero, roster,
   CTA) with one calm light run between them. Two accents:
   gold for editorial marks, coral for actions. Serif italic
   is reserved for headline accents and large numerals.
   =========================================================== */
:root {
  --whx-black: #0b0b0d;
  --whx-black-2: #121216;
  --whx-white: #f5f2ec;
  --whx-white-soft: rgba(245, 242, 236, 0.72);
  --whx-white-faint: rgba(245, 242, 236, 0.45);
  --whx-gold: #c9a55c;              /* dark backgrounds only */
  --whx-gold-line: rgba(201, 165, 92, 0.35);
  --whx-serif: "Newsreader", Georgia, serif;
}
/* On light ground, gold rides the site's sun tokens so contrast
   holds in both site themes. */

/* ---------- Type ---------- */
.whx-h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 30px 0 0;
}
.whx-h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.whx-h1 em, .whx-h2 em, .whx-em {
  font-family: var(--whx-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.whx-h1 em { color: var(--whx-gold); }
.whx-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  max-width: 620px;
}

/* ---------- Sections ---------- */
.whx-dark {
  background: var(--whx-black);
  color: var(--whx-white);
}
.whx-dark h2, .whx-dark h3 { color: var(--whx-white); }
.whx-dark p { color: var(--whx-white-soft); }
.whx-section { padding: clamp(100px, 12vw, 170px) 0; }
.whx-warm { background: var(--paper-warm); }

/* Section boundaries in the light run: a hairline opener where
   light meets light, and a subtle paper/warm alternation. */
.whx-ruled { padding-top: clamp(64px, 8vw, 96px); }
.whx-ruled > .wrap {
  position: relative;
  padding-top: clamp(56px, 7vw, 84px);
}
.whx-ruled > .wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
/* JS marks the wrap .wv-rule; the hairline then draws itself in */
.wv-rule::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.wv-rule-in::before { transform: scaleX(1); }

/* Shared head architecture: headline left, lead right, one baseline */
.whx-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px 80px;
  align-items: end;
  margin-bottom: clamp(56px, 8vw, 90px);
}
.whx-head .whx-lead { margin: 0 0 6px; color: var(--ink-soft); }
.whx-dark .whx-head .whx-lead { color: var(--whx-white-soft); }

/* ---------- Buttons & links ---------- */
.whx-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 16px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.whx-btn:hover { text-decoration: none; transform: translateY(-2px); }
.whx-btn .arr { transition: transform 0.18s ease; }
.whx-btn:hover .arr { transform: translateX(4px); }
.whx-btn--coral {
  background: var(--coral-btn);
  color: #fff;
  box-shadow: 0 10px 28px rgba(201, 71, 71, 0.3);
}
.whx-btn--coral:hover { background: var(--coral-btn-hover); }
.whx-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--whx-white-soft);
  border-bottom: 1px solid var(--whx-gold-line);
  padding-bottom: 3px;
}
.whx-link:hover { color: var(--whx-white); text-decoration: none; border-color: var(--whx-white-soft); }

/* ---------- Hero ---------- */
.whx-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 12vw, 160px) 0 0;
}
.whx-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 22px;
}
.whx-lockup img {
  height: 30px;
  width: auto;
  /* RF logo art is dark ink — flip it for the black hero */
  filter: invert(1) hue-rotate(180deg);
}
.whx-lockup .x {
  font-family: var(--whx-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--whx-gold);
}
.whx-lockup .tcc {
  font-family: var(--whx-serif);
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--whx-white);
  white-space: nowrap;
}
.whx-lockup .tcc b { font-weight: 600; }
.whx-lockup .tcc sup { font-size: 0.55em; }
.whx-name {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.55em;
  text-indent: 0.55em; /* recenters letterspaced text */
  text-transform: uppercase;
  color: var(--whx-gold);
  margin: 42px 0 12px;
}
.whx-hero__body { text-align: center; max-width: 820px; margin: 0 auto; }
.whx-hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.7;
  color: var(--whx-white-soft);
  max-width: 660px;
  margin: 30px auto 0;
}
.whx-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 48px;
}

/* People in the hero: the pairing, literally */
.whx-hero__people {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 26px;
  margin: clamp(64px, 8vw, 96px) auto 0;
  padding: 30px 24px clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--whx-gold-line);
  max-width: 760px;
}
.whx-avatars { display: flex; }
.whx-avatars img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--whx-black);
  background: var(--whx-black-2);
}
.whx-avatars img + img { margin-left: -14px; }
.whx-hero__people-copy {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--whx-white-faint);
  max-width: 380px;
}
.whx-hero__people-copy strong { color: var(--whx-white-soft); font-weight: 600; }

/* ---------- Mechanism & problem: numbered pairs ---------- */
.whx-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 72px;
}
.whx-craft .num {
  font-family: var(--whx-serif);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--sun-display);
}
.whx-craft h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin: 14px 0 6px;
  letter-spacing: -0.02em;
}
.whx-craft .prose {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 52ch;
}
.whx-craft ul { list-style: none; margin-top: 26px; padding: 0; }
.whx-craft li {
  position: relative;
  padding: 15px 0 15px 30px;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.whx-craft li::before {
  content: "→";
  position: absolute; left: 0; top: 15px;
  color: var(--sun-display);
}
.whx-outcome {
  margin-top: clamp(56px, 8vw, 84px);
  background: var(--whx-black);
  color: var(--whx-white);
  border-radius: 22px;
  padding: clamp(40px, 6vw, 60px) clamp(28px, 5vw, 70px);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.whx-outcome em {
  font-family: var(--whx-serif);
  font-weight: 500;
  color: var(--whx-gold);
}
.whx-monthline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: clamp(56px, 8vw, 84px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.whx-monthline .mo {
  font-family: var(--whx-serif);
  font-style: italic;
  font-size: clamp(1.7rem, 2.8vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sun-display);
  white-space: nowrap;
}
.whx-monthline .cap {
  font-size: 0.97rem;
  color: var(--ink-soft);
  max-width: 560px;
}

/* ---------- Team ---------- */
.whx-side-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.whx-side-title span { color: var(--sun-text); }
.whx-coach-note {
  margin-top: 20px;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 46ch;
}
.whx-team-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px 80px;
  align-items: center;
}
.whx-partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 24px;
}
.whx-partner { text-align: center; }
.whx-partner img {
  width: 100%;
  max-width: 124px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 14px;
}
.whx-partner h3 { font-size: 0.92rem; letter-spacing: 0; }
.whx-partner .role {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 3px;
}
.whx-eng-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 72px;
  margin-top: 34px;
}
.whx-eng {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 26px;
  align-items: start;
}
.whx-eng img {
  width: 116px; height: 116px;
  object-fit: cover;
  border-radius: 50%;
}
.whx-eng h3 { font-size: 1.15rem; }
.whx-eng .role {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 3px 0 12px;
}
.whx-eng p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- Commitments ---------- */
.whx-commits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(56px, 8vw, 84px) clamp(56px, 8vw, 100px);
}
.whx-commit { position: relative; padding-left: 64px; }
.whx-commit .num {
  position: absolute;
  left: 0; top: -4px;
  font-family: var(--whx-serif);
  font-style: italic;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--sun-display);
}
.whx-commit h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.whx-commit p { font-size: 0.97rem; line-height: 1.7; color: var(--ink-soft); }

/* ---------- Client roster strip ---------- */
.whx-trusted {
  padding: 72px 0 78px;
  background: var(--whx-black);
  overflow: hidden;
}
.whx-trusted__label {
  text-align: center;
  font-family: var(--whx-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--whx-gold);
  margin-bottom: 44px;
  padding: 0 24px;
}
.whx-trusted__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.whx-trusted__track {
  display: flex;
  width: max-content;
  animation: whx-marquee 55s linear infinite;
}
.whx-trusted__viewport:hover .whx-trusted__track { animation-play-state: paused; }
.whx-trusted__set {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 32px;
}
.whx-trusted__set img {
  height: clamp(34px, 4.5vw, 52px);
  width: auto;
  flex-shrink: 0;
  filter: grayscale(1) invert(1);
  opacity: 0.45;
  transition: opacity 0.3s;
}
.whx-trusted__set img:hover { opacity: 0.8; }
@keyframes whx-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Fit ---------- */
.whx-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 80px;
}
.whx-fit-col h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.whx-fit-col ul { list-style: none; padding: 0; }
.whx-fit-col li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.whx-fit-col--yes li::before { content: "✓"; position: absolute; left: 0; top: 14px; color: var(--ink-soft); }
.whx-fit-col--no li::before { content: "—"; position: absolute; left: 0; top: 14px; color: var(--ink-soft); }

/* ---------- Straight answers ---------- */
.whx-faq { max-width: 800px; }
.whx-faq details { border-top: 1px solid var(--line); }
.whx-faq details:last-child { border-bottom: 1px solid var(--line); }
.whx-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 26px 60px 26px 0;
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  letter-spacing: -0.01em;
}
.whx-faq summary::-webkit-details-marker { display: none; }
.whx-faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink-soft);
  transition: transform 0.2s ease;
}
.whx-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.whx-faq details > div { padding: 0 0 30px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.75; max-width: 700px; }
.whx-faq details > div p + p { margin-top: 12px; }

/* ---------- CTA ---------- */
.whx-cta { text-align: center; }
.whx-cta .whx-h2 { max-width: none; }
.whx-cta .whx-h2 em { color: var(--whx-gold); }
.whx-cta p {
  max-width: 560px;
  margin: 26px auto 44px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.whx-cta .whx-endnote {
  margin: 40px auto 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--whx-white-faint);
}

/* ---------- Reveal system ----------
   JS applies .wv (hidden) and .wv-in (shown), then removes both once
   settled so stylesheet transitions (button hovers) take back over.
   Without JS nothing is ever hidden. */
.wv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.wv.wv-scale { transform: translateY(12px) scale(0.96); }
.wv.wv-in { opacity: 1; transform: none; }
/* Outcome band two-step: the gold line lands a half-beat after the band */
.whx-outcome.wv em { opacity: 0; transition: opacity 0.6s ease 0.45s; }
.whx-outcome.wv-in em { opacity: 1; }

/* Partner portraits rest slightly desaturated until met */
.whx-partner img { filter: saturate(0.85); transition: filter 0.3s ease; }
.whx-partner img:hover { filter: saturate(1); }

/* ---------- Hero choreography (load) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .whx-lockup, .whx-name, .whx-h1, .whx-hero__sub, .whx-hero__actions, .whx-hero__people {
    animation: whx-rise 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .whx-name { animation-delay: 0.12s; }
  .whx-h1 { animation-delay: 0.22s; }
  .whx-hero__sub { animation-delay: 0.34s; }
  .whx-hero__actions { animation-delay: 0.46s; }
  .whx-hero__people { animation-delay: 0.6s; }
  .whx-avatars img { animation: whx-rise 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .whx-avatars img:nth-child(1) { animation-delay: 0.72s; }
  .whx-avatars img:nth-child(2) { animation-delay: 0.78s; }
  .whx-avatars img:nth-child(3) { animation-delay: 0.84s; }
  .whx-avatars img:nth-child(4) { animation-delay: 0.9s; }
  .whx-avatars img:nth-child(5) { animation-delay: 0.96s; }
}
@keyframes whx-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .whx-trusted__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .whx-trusted__set { flex-wrap: wrap; justify-content: center; row-gap: 28px; }
  .whx-trusted__set[aria-hidden="true"] { display: none; }
  .whx-trusted__viewport { -webkit-mask-image: none; mask-image: none; }
  .whx-btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .whx-eng-grid, .whx-pair, .whx-fit, .whx-commits { grid-template-columns: 1fr; }
  .whx-team-split { grid-template-columns: 1fr; }
  .whx-head { grid-template-columns: 1fr; align-items: start; }
  .whx-head .whx-lead { margin-bottom: 0; }
}
@media (max-width: 720px) {
  .whx-section { padding: 80px 0; }
  .whx-eng { grid-template-columns: 96px 1fr; gap: 20px; }
  .whx-eng img { width: 96px; height: 96px; }
  .whx-partners { grid-template-columns: repeat(2, 1fr); }
  .whx-hero__people { flex-direction: column; text-align: center; }
  .whx-hero__people-copy { text-align: center; }
  .whx-avatars img { width: 48px; height: 48px; }
  .whx-commit { padding-left: 0; padding-top: 44px; }
  .whx-commit .num { top: 0; }
}
