/* ============================================================
   PECULIEX — INFLUENCER MARKETING
   Page styles for influencer-marketing.html.
   The shared pieces (hx-*, px-*) live in site.css; this file
   only holds what is particular to this page: the banner hero,
   the funnel rows, the talent roster and the comparison board.
   ============================================================ */

.im-page-wrapper { position: relative; overflow-x: clip; }

/* section headlines carry longer phrases here than on the homepage */
.im-page-wrapper .px-head .hx-h2 { font-size: clamp(38px, 6vw, 112px); }
.im-head--solo { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .px-head.im-head--solo { grid-template-columns: minmax(0, 1fr); }
  .px-head.im-head--wide { grid-template-columns: minmax(0, 8.5fr) minmax(0, 3.5fr); }
}

/* ---------- Hero: the creator-network banner sits behind the type ---------- */
.im-hero { min-height: clamp(560px, 92svh, 980px); }
.im-hero .px-hero-media img { object-position: 50% 28%; }
.im-hero .px-hero-media::after {
  background:
    linear-gradient(180deg, rgba(9, 9, 12, 0.7) 0%, rgba(9, 9, 12, 0.3) 30%, rgba(9, 9, 12, 0.72) 62%, rgba(9, 9, 12, 0.97) 100%);
}
/* the aurora only tints the monochrome banner */
.im-hero .hx-aurora { mix-blend-mode: screen; opacity: 0.75; }
.im-hero .px-hero-title { font-size: clamp(42px, 8.4vw, 160px); }

/* ---------- Funnel: three rows, each a stage with its figure ---------- */
.im-stage-stat {
  grid-column: 2;
  display: flex;
  align-items: flex-start;
  margin: 6px 0 0;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(72px, 23vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--c);
}
.im-stage-stat sup {
  font-size: 0.42em;
  line-height: 1;
  margin: 0.12em 0 0 0.06em;
}
[data-theme="dark"] .im-stage:first-child .im-stage-stat { color: var(--color-primary); }
.im-stage .hx-step-desc { max-width: 44ch; }
@media (min-width: 1024px) {
  .im-stage {
    grid-template-columns: auto minmax(0, 1.25fr) minmax(0, 0.75fr);
    padding-right: 0;
    align-items: start;
  }
  .im-stage .hx-step-num { grid-row: 1 / span 2; }
  .im-stage .hx-step-title { grid-row: 1 / span 2; font-size: clamp(40px, 4.6vw, 88px); }
  .im-stage-stat { grid-column: 3; grid-row: 1; margin: -0.04em 0 0; font-size: clamp(88px, 9.4vw, 180px); }
  .im-stage .hx-step-desc { grid-column: 3; grid-row: 2; }
}

/* ---------- Roster ---------- */
.im-roster { scroll-margin-top: 0; }
.im-rail + .im-rail { margin-top: clamp(64px, 8vw, 130px); }
.im-rail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: clamp(16px, 1.8vw, 26px);
}
.im-rail-title {
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(28px, 3.8vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.im-rail-title sup {
  margin-left: 0.3em;
  font-family: var(--hx-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.42em;
  letter-spacing: 0;
  vertical-align: top;
  color: var(--hx-lime);
}
.im-rail-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hx-mute);
}
.im-rail-tag::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }

/* hairline grid: every profile is on the page, nothing is hidden in a carousel */
.im-faces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hx-line);
}
.im-face {
  --c: var(--hx-purple);
  --on-c: #fff;
  position: relative;
  min-width: 0;
  border-bottom: 1px solid var(--hx-line);
  border-left: 1px solid var(--hx-line);
}
.im-face:nth-child(3n + 2) { --c: var(--hx-orange); --on-c: #0b0b0f; }
.im-face:nth-child(3n) { --c: var(--hx-lime); --on-c: #0b0b0f; }
@media (max-width: 639px) { .im-face:nth-child(2n + 1) { border-left: 0; } }
@media (min-width: 640px) and (max-width: 1023px) {
  .im-faces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .im-face:nth-child(4n + 1) { border-left: 0; }
}
@media (min-width: 1024px) {
  .im-faces { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .im-face:nth-child(5n + 1) { border-left: 0; }
}

.im-face-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px clamp(10px, 1.2vw, 20px) clamp(16px, 1.6vw, 24px);
  color: inherit;
  transition: color 0.45s ease;
}
/* colour flood rising from the bottom rule */
.im-face-link::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--c);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.75s var(--hx-ease);
  z-index: -1;
}
.im-face-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.im-face-idx {
  font-family: var(--hx-serif);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1;
  opacity: 0.6;
}
.im-face-go {
  flex: none;
  width: clamp(24px, 2.1vw, 32px);
  height: clamp(24px, 2.1vw, 32px);
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--hx-line);
  transition: transform 0.6s var(--hx-ease), border-color 0.45s ease, background-color 0.45s ease, color 0.45s ease;
}
.im-face-go svg { width: 46%; height: 46%; }
/* 4:5 frame: the square portraits only lose a sliver left and right, the 4:5 ones fit exactly */
.im-face-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: clamp(8px, 0.9vw, 14px);
  background: var(--hx-ink-2);
}
.im-face-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 1.1s var(--hx-ease), filter 0.6s ease;
  -webkit-user-drag: none;
}
.im-face-role {
  display: flex;
  align-items: flex-end;
  margin-top: clamp(10px, 1vw, 14px);
  min-height: 2.7em; /* two lines, so names line up across a row */
  font-family: var(--font-label);
  font-size: clamp(9.5px, 0.78vw, 11.5px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hx-mute);
  transition: color 0.45s ease;
}
.im-face-name {
  margin-top: 6px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(16px, 1.6vw, 27px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.im-face-handle {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  margin-top: auto;
  padding-top: clamp(10px, 1vw, 16px);
  font-size: clamp(11.5px, 0.92vw, 13.5px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--hx-mute);
  overflow-wrap: anywhere;
  transition: color 0.45s ease;
}
.im-face-handle svg { flex: none; width: 14px; height: 14px; margin-top: 0.1em; color: var(--hx-lime); transition: color 0.45s ease; }

.im-face-link:focus-visible { outline: 2px solid var(--hx-lime); outline-offset: -2px; }
.im-face-link:focus-visible::before { transform: scaleY(1); }
.im-face-link:focus-visible { color: var(--on-c); }
.im-face-link:focus-visible :is(.im-face-role, .im-face-handle, .im-face-handle svg) { color: currentColor; }
@media (hover: hover) {
  /* portraits rest in monochrome like the banner and come alive on hover; touch screens keep full colour */
  .im-face-photo img { filter: grayscale(1) contrast(1.04); }
  .im-face-link:hover { color: var(--on-c); }
  .im-face-link:hover::before { transform: scaleY(1); }
  .im-face-link:hover :is(.im-face-role, .im-face-handle, .im-face-handle svg) { color: currentColor; }
  .im-face-link:hover .im-face-photo img,
  .im-face-link:focus-visible .im-face-photo img { filter: none; transform: scale(1.045); }
  .im-face-link:hover .im-face-go { transform: rotate(45deg); background: var(--on-c); border-color: var(--on-c); color: var(--c); }
}

/* the booking tile closes the grid */
.im-face--cta { --c: #fff; --on-c: #0b0b0f; }
.im-face--cta .im-face-link {
  justify-content: space-between;
  gap: 24px;
  min-height: 220px;
  background: var(--hx-lime);
  color: #0b0b0f;
}
.im-face--cta .im-face-idx { opacity: 0.7; }
.im-face--cta .im-face-go { border-color: rgba(11, 11, 15, 0.3); }
.im-face-cta-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(17px, 5vw, 26px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.im-face-cta-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 11, 15, 0.22);
  font-family: var(--font-label);
  font-size: clamp(9.5px, 0.8vw, 12px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.im-face-cta-foot svg { flex: none; width: 18px; height: 18px; transition: transform 0.5s var(--hx-ease); }
@media (min-width: 640px) {
  .im-face-cta-title { font-size: clamp(13px, 2vw, 38px); }
}
@media (hover: hover) {
  .im-face--cta .im-face-link:hover .im-face-go { background: #0b0b0f; border-color: #0b0b0f; color: #fff; }
  .im-face--cta .im-face-link:hover .im-face-cta-foot svg { transform: translateX(6px); }
}

/* ---------- Comparison board ---------- */
.im-vs-grid { display: grid; gap: clamp(14px, 1.6vw, 24px); }
@media (min-width: 900px) { .im-vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.im-vs-col {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 3vw, 52px);
  border: 1px solid var(--hx-line);
  border-radius: 22px;
}
/* the Peculiex side is a solid flood, the traditional side stays an empty outline */
.im-vs-col--new {
  --hx-line: rgba(255, 255, 255, 0.26);
  --hx-mute: rgba(255, 255, 255, 0.82);
  background: var(--hx-purple);
  border-color: var(--hx-purple);
  color: #fff;
}
.im-vs-head { margin-bottom: clamp(26px, 4vw, 72px); }
.im-vs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: clamp(16px, 2vw, 30px);
}
.im-vs-idx {
  font-family: var(--hx-serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1;
  opacity: 0.6;
}
.im-vs-title {
  margin: 0;
  max-width: 9.5em;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(25px, 2.9vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.im-vs-col--old .im-vs-title { color: var(--hx-mute); }
.im-vs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--hx-line);
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--hx-mute);
}
.im-vs-badge svg { width: 13px; height: 13px; }
.im-vs-col--new .im-vs-badge { background: var(--hx-lime); border-color: var(--hx-lime); color: #0b0b0f; }
.im-vs-list { list-style: none; margin: auto 0 0; padding: 0; }
.im-vs-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: clamp(16px, 1.7vw, 26px) 0;
  border-top: 1px solid var(--hx-line);
}
.im-vs-list li:last-child { padding-bottom: 0; }
@media (max-width: 599px) {
  .im-vs-list li { flex-direction: column; align-items: flex-start; }
}
.im-vs-label { font-size: clamp(14.5px, 1.1vw, 17px); line-height: 1.4; color: var(--hx-mute); }
.im-vs-val {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(22px, 2.3vw, 40px);
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.im-vs-col--old .im-vs-val { color: var(--hx-mute); }
/* "vs" disc on the seam between the two sides */
.im-vs-mark {
  position: absolute;
  left: 50%; top: 0;
  z-index: 2;
  width: clamp(52px, 5vw, 76px);
  height: clamp(52px, 5vw, 76px);
  transform: translate(-50%, calc(-50% - clamp(7px, 0.8vw, 12px)));
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-on-background);
  color: var(--color-background);
  box-shadow: 0 0 0 6px var(--color-surface-container-lowest);
  font-family: var(--hx-serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  padding-bottom: 0.12em;
}
@media (min-width: 900px) {
  .im-vs-mark { left: 0; top: 50%; transform: translate(calc(-50% - clamp(7px, 0.8vw, 12px)), -50%); }
}

/* ---------- Proven stats ---------- */
/* "K+" and "M+" read as words: no quarter turn on hover */
.im-stats .hx-stat:hover .hx-stat-num sup { transform: none; }

/* ---------- Closing call to action ---------- */
.im-cta .px-cta .tag-acid { margin-bottom: clamp(20px, 2.2vw, 30px); }
.im-cta .px-cta .hx-h2 { font-size: clamp(36px, 6.4vw, 124px); }
.im-cta .px-cta-foot .hx-link:hover { color: var(--hx-lime); }

@media (prefers-reduced-motion: reduce) {
  .im-face-link, .im-face-link::before, .im-face-photo img, .im-face-go { transition: none; }
}
