/* One creator's page, /collaborators/<name> (Charlie, 17 Oct 2026: "mock up one signed creator's page on the copy ... so I can see
   what a proper creator page would look like"). Body made by creator-roster/build_profile.py, put inside the site's header
   and footer by build.py (redesign/new-pages.json). Scoped to html[data-wl-path="creator-profile"]. Photos and clips stay
   clean: no overlay, fade or text on a picture (rule 8); words sit beside or below them. */

html[data-wl-path="creator-profile"] .wl-cp {
  --cp-w: min(var(--wl-max), 100% - 2 * var(--wl-gutter));
  --cp-card: #0e1c48;
  padding-bottom: var(--wl-section);
  color: var(--wl-muted);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
html[data-wl-path="creator-profile"] .wl-cp *,
html[data-wl-path="creator-profile"] .wl-cp *::before,
html[data-wl-path="creator-profile"] .wl-cp *::after { box-sizing: border-box; }
html[data-wl-path="creator-profile"] .wl-cp > * { width: var(--cp-w); margin-left: auto; margin-right: auto; }
html[data-wl-path="creator-profile"] .wl-cp a:focus-visible { outline: 2px solid var(--wl-lime); outline-offset: 3px; }
/* a one-word name like "fermalibri_diorama_" breaks only where it would overflow (break-word, not anywhere: anywhere lets
   the heading's box shrink to one letter and squeezes the whole first screen); the name's box may shrink beside the photo */
html[data-wl-path="creator-profile"] .wl-cp :is(.wl-cp-h1, .wl-cp-h2, .wl-cp-cta, .wl-cp-lead, .wl-cp-faq, .wl-cp-crumbs) { overflow-wrap: break-word; }
html[data-wl-path="creator-profile"] .wl-cp-id > div { min-width: 0; }
html[data-wl-path="creator-profile"] .wl-cp ul,
html[data-wl-path="creator-profile"] .wl-cp dl { margin-block: 0; padding: 0; list-style: none; }  /* margin-block only: the page width rule centres them */

/* ---------- breadcrumb ---------- */
html[data-wl-path="creator-profile"] .wl-cp-crumbs {
  display: flex;
  gap: 10px;
  padding-top: clamp(20px, 2.6vw, 36px);
  color: var(--wl-faint);
  font-size: 14px;
}
html[data-wl-path="creator-profile"] .wl-cp-crumbs a { color: var(--wl-muted); text-decoration: none; }
html[data-wl-path="creator-profile"] .wl-cp-crumbs a:hover { color: var(--wl-lime); }

/* ---------- first screen: who he is beside one still from his own footage ---------- */
html[data-wl-path="creator-profile"] .wl-cp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  padding: clamp(18px, 2.4vw, 32px) 0 clamp(36px, 4.4vw, 64px);
}
html[data-wl-path="creator-profile"] .wl-cp-hero--solo { grid-template-columns: minmax(0, 1fr); }
html[data-wl-path="creator-profile"] .wl-cp-hero--solo .wl-cp-lead { max-width: 44em; }
html[data-wl-path="creator-profile"] .wl-cp-pre {
  margin: 0 0 clamp(16px, 1.8vw, 24px);
  color: var(--wl-lime);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
}
html[data-wl-path="creator-profile"] .wl-cp-id { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 24px); }
html[data-wl-path="creator-profile"] .wl-cp-avatar {
  flex: none;
  width: clamp(72px, 7vw, 104px);
  height: auto;
  aspect-ratio: 1;
  border: 2px solid var(--wl-lime);
  border-radius: 50%;
  object-fit: cover;
}
html[data-wl-path="creator-profile"] .wl-cp-hero-text {
  container-type: inline-size;
  --cp-h1: clamp(2.3rem, 1rem + 3.6vw, 4.4rem);
  --cp-av: calc(clamp(72px, 7vw, 104px) + clamp(16px, 1.8vw, 24px));  /* the photo and gap beside the name */
}
/* --lw (set on the h1 by build_profile.py) = letters in the name's longest word: a long word gets a smaller size instead of
   breaking in the middle (Bungee letters are under 0.95em wide) */
html[data-wl-path="creator-profile"] .wl-cp-h1 {
  margin: 0;
  color: #fff;
  font-family: Bungee, sans-serif;
  font-size: min(var(--cp-h1), calc((100cqi - var(--cp-av)) / (var(--lw, 8) * 0.95)));
  font-weight: 400;
  line-height: 1;
}
html[data-wl-path="creator-profile"] .wl-cp-handle { display: block; margin-top: 8px; color: var(--wl-faint); font-size: 15px; }
html[data-wl-path="creator-profile"] .wl-cp-lead {
  max-width: 36em;
  margin: clamp(22px, 2.4vw, 32px) 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.05rem, .95rem + .35vw, 1.25rem);
  line-height: 1.6;
}
html[data-wl-path="creator-profile"] .wl-cp-rep {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 7px 14px;
  border: 1px solid var(--wl-line-2);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
html[data-wl-path="creator-profile"] .wl-cp-rep span { width: 8px; height: 8px; border-radius: 50%; background: var(--wl-lime); }
html[data-wl-path="creator-profile"] .wl-cp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(26px, 3vw, 38px);
}
html[data-wl-path="creator-profile"] .wl-cp .wl-cp-cta { margin: 0; background: var(--wl-lime); border-color: var(--wl-lime); color: var(--wl-ink); }
html[data-wl-path="creator-profile"] .wl-cp-socials { display: flex; flex-wrap: wrap; gap: 6px 18px; }
html[data-wl-path="creator-profile"] .wl-cp-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
html[data-wl-path="creator-profile"] .wl-cp-social svg { width: 20px; height: 20px; color: var(--wl-lime); }
html[data-wl-path="creator-profile"] .wl-cp-social:hover span { text-decoration: underline; text-underline-offset: 4px; }
html[data-wl-path="creator-profile"] .wl-cp-still img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 746px);
  aspect-ratio: 9 / 16;
  border-radius: var(--wl-r-lg);
  object-fit: cover;
  background: var(--cp-card);
}

/* ---------- numbers ---------- */
html[data-wl-path="creator-profile"] .wl-cp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  overflow: hidden;
  border-top: 1px solid var(--wl-line-2);
  border-bottom: 1px solid var(--wl-line-2);
}
/* each cell draws its left and top hairline and is pulled 1px out, so the outer edges hide whatever the count or wrap */
html[data-wl-path="creator-profile"] .wl-cp-stats li {
  margin: -1px 0 0 -1px;
  padding: clamp(18px, 2vw, 28px) clamp(10px, 1.4vw, 20px);
  border-top: 1px solid var(--wl-line);
  border-left: 1px solid var(--wl-line);
}
html[data-wl-path="creator-profile"] .wl-cp-stats b {
  display: block;
  color: var(--wl-lime);
  font-family: Bungee, sans-serif;
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
}
html[data-wl-path="creator-profile"] .wl-cp-stats span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.35; }
html[data-wl-path="creator-profile"] .wl-cp-note { margin-top: 12px; margin-bottom: 0; color: var(--wl-faint); font-size: 14px; }

/* ---------- sections ---------- */
html[data-wl-path="creator-profile"] .wl-cp-sec { padding-top: clamp(48px, 6vw, 88px); }
html[data-wl-path="creator-profile"] .wl-cp-h2 {
  margin: 0 0 clamp(20px, 2.4vw, 32px);
  color: #fff;
  font-family: Bungee, sans-serif;
  font-size: var(--wl-h-section);
  font-weight: 400;
  line-height: 1.1;
}

/* the clips: three phone-shaped loops, captions below */
html[data-wl-path="creator-profile"] .wl-cp-clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
html[data-wl-path="creator-profile"] .wl-cp-clips[data-n="1"],
html[data-wl-path="creator-profile"] .wl-cp-clips[data-n="2"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-wl-path="creator-profile"] .wl-cp-clip { margin: 0; }
html[data-wl-path="creator-profile"] .wl-cp-frame { aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--wl-r-md); background: var(--cp-card); }
html[data-wl-path="creator-profile"] .wl-cp-video { display: block; width: 100%; height: 100%; object-fit: cover; }
html[data-wl-path="creator-profile"] .wl-cp-clip figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 14px; font-size: 15px; text-align: left; }
html[data-wl-path="creator-profile"] .wl-cp-clip figcaption b { color: #fff; font-weight: 600; }
html[data-wl-path="creator-profile"] .wl-cp-clip figcaption a {
  flex-basis: 100%;
  color: var(--wl-lime);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* what he posts + where */
html[data-wl-path="creator-profile"] .wl-cp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); }
html[data-wl-path="creator-profile"] .wl-cp-list li { padding: 14px 0; border-top: 1px solid var(--wl-line); color: rgba(255, 255, 255, .86); }
html[data-wl-path="creator-profile"] .wl-cp-list li:last-child { border-bottom: 1px solid var(--wl-line); }
html[data-wl-path="creator-profile"] .wl-cp-places { display: flex; flex-wrap: wrap; gap: 10px; }
html[data-wl-path="creator-profile"] .wl-cp-places li {
  padding: 8px 16px;
  border: 1px solid var(--wl-line-2);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

/* questions */
html[data-wl-path="creator-profile"] .wl-cp-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); }
html[data-wl-path="creator-profile"] .wl-cp-faq > div { padding: 20px 0; border-top: 1px solid var(--wl-line); }
html[data-wl-path="creator-profile"] .wl-cp-faq dt { color: #fff; font-weight: 600; }
html[data-wl-path="creator-profile"] .wl-cp-faq dd { margin: 6px 0 0; }

/* more creators like him */
html[data-wl-path="creator-profile"] .wl-cp-more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
html[data-wl-path="creator-profile"] .wl-cp-more-head .wl-cp-h2 { margin: 0; }
html[data-wl-path="creator-profile"] .wl-cp-more-all { color: var(--wl-lime); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
html[data-wl-path="creator-profile"] .wl-cp-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
html[data-wl-path="creator-profile"] .wl-cp-more-card { display: block; color: var(--wl-muted); font-size: 15px; text-decoration: none; }
html[data-wl-path="creator-profile"] .wl-cp-more-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 12px;
  border-radius: var(--wl-r-md);
  object-fit: cover;
  background: var(--cp-card);
}
html[data-wl-path="creator-profile"] .wl-cp-more-card b { display: block; color: #fff; font-weight: 600; line-height: 1.3; }
html[data-wl-path="creator-profile"] .wl-cp-more-card:hover b { color: var(--wl-lime); }

/* ---------- smaller screens ---------- */
@media screen and (max-width: 991px) {
  html[data-wl-path="creator-profile"] .wl-cp-hero:not(.wl-cp-hero--solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
}
@media screen and (max-width: 767px) {
  html[data-wl-path="creator-profile"] .wl-cp-hero,
  html[data-wl-path="creator-profile"] .wl-cp-hero:not(.wl-cp-hero--solo) { grid-template-columns: minmax(0, 1fr); }
  html[data-wl-path="creator-profile"] .wl-cp-still img { max-height: none; aspect-ratio: 4 / 5; object-position: 50% 78%; }  /* keep his feet on the ledge */
  html[data-wl-path="creator-profile"] .wl-cp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-wl-path="creator-profile"] .wl-cp-stats li:first-child { grid-column: 1 / -1; }
  /* the clips become a row you swipe through; the page itself never scrolls sideways */
  html[data-wl-path="creator-profile"] .wl-cp-clips {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(68vw, 300px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  html[data-wl-path="creator-profile"] .wl-cp-clips::-webkit-scrollbar { display: none; }
  html[data-wl-path="creator-profile"] .wl-cp-clip { scroll-snap-align: start; }
  html[data-wl-path="creator-profile"] .wl-cp-two,
  html[data-wl-path="creator-profile"] .wl-cp-faq { grid-template-columns: minmax(0, 1fr); }
  html[data-wl-path="creator-profile"] .wl-cp-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 479px) {
  html[data-wl-path="creator-profile"] .wl-cp-actions { flex-direction: column; align-items: stretch; }
  html[data-wl-path="creator-profile"] .wl-cp .wl-cp-cta { text-align: center; }
  html[data-wl-path="creator-profile"] .wl-cp-socials { justify-content: space-between; }
}
/* short screens: keep "Work with <name>" on the first screen (stress_test CTA-BELOW-FOLD) */
@media screen and (min-width: 992px) and (max-height: 760px) {
  html[data-wl-path="creator-profile"] .wl-cp-crumbs { padding-top: 14px; }
  html[data-wl-path="creator-profile"] .wl-cp-hero { padding-top: 8px; }
  html[data-wl-path="creator-profile"] .wl-cp-pre { margin-bottom: 12px; }
  html[data-wl-path="creator-profile"] .wl-cp-hero-text { --cp-h1: clamp(2.3rem, 1rem + 2.6vw, 3.4rem); }
  html[data-wl-path="creator-profile"] .wl-cp-lead { margin-top: 16px; font-size: 1.05rem; }
  html[data-wl-path="creator-profile"] .wl-cp-rep { margin-top: 14px; }
  html[data-wl-path="creator-profile"] .wl-cp-actions { margin-top: 20px; }
}
/* short phones (small iPhones, phones on their side): the button moves up under the name, the intro follows it */
@media screen and (max-width: 991px) and (max-height: 640px) {
  html[data-wl-path="creator-profile"] .wl-cp-crumbs { padding-top: 10px; }
  html[data-wl-path="creator-profile"] .wl-cp-hero { padding-top: 8px; }
  html[data-wl-path="creator-profile"] .wl-cp-hero-text { display: flex; flex-direction: column; align-items: flex-start; }
  html[data-wl-path="creator-profile"] .wl-cp-pre { order: 1; margin-bottom: 10px; }
  html[data-wl-path="creator-profile"] .wl-cp-id { order: 2; }
  html[data-wl-path="creator-profile"] .wl-cp-actions { order: 3; align-self: stretch; margin-top: 16px; }
  html[data-wl-path="creator-profile"] .wl-cp-lead { order: 4; margin-top: 20px; }
  html[data-wl-path="creator-profile"] .wl-cp-rep { order: 5; }
  html[data-wl-path="creator-profile"] .wl-cp-avatar { width: 60px; }
  html[data-wl-path="creator-profile"] .wl-cp-hero-text { --cp-h1: 2rem; --cp-av: calc(60px + 16px); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-wl-path="creator-profile"] .wl-cp-clips { scroll-snap-type: none; }
}
