/* SINGLE TALENT (single-talent.php) */

body.single-talent {
  --t-ink: #0a0a0a;
  --t-muted: rgba(10, 10, 10, .4);
  --t-accent: #ffd800;
  --t-ease: cubic-bezier(.16, 1, .3, 1);
  --t-ease-io: cubic-bezier(.65, 0, .35, 1);
}

.talent-page { overflow-x: clip; padding-bottom: 0 !important; }
.talent-icon {display: inline-flex;width: 1.2em;height: 1.2em;flex: none;}
.talent-icon svg { width: 100%; height: 100%; }

.talent-eyebrow {
  margin: 0 0 22px !important;
  padding: 0 !important;
  font-size: 0.75rem !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase;
  text-align: center;
  color: var(--t-muted) !important;
}

/* REVEALS: html.talent-anim is set in <head>; JS adds .is-in on scroll */
html.talent-anim [data-reveal],
html.talent-anim .talent-hero .entry-title {
  transition: opacity 1.1s var(--t-ease) var(--d, 0s), transform 1.3s var(--t-ease) var(--d, 0s), clip-path 1.4s var(--t-ease);
}
html.talent-anim [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 28px, 0); }
html.talent-anim .talent-hero .entry-title:not(.is-in) { clip-path: inset(0 0 100% 0); transform: translate3d(0, 35%, 0); }
html.talent-anim .talent-hero .entry-title.is-in { clip-path: inset(0 0 -20% 0); }
html.talent-anim [data-reveal="gallery"]:not(.is-in) { opacity: 1; transform: none; }

/* HERO */

.talent-stats-wrap:before {
    content: '';
    height: 1px;
    background: #dfdfdf;
    display: block;
    position: absolute;
    margin-left: -50vw;
    left: 50%;
    width: 100vw;
    top: 0;
}

.talent-stats-wrap {
    padding-top: 75px;
    position: relative;
}

.container.main-content.talent-hero {
    padding: 55px 0px 75px;
}

.container.main-content.talent-hero h1.entry-title.is-in.is-settled {
    font-size: 4rem;
    line-height: 0.9;
}
.talent-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  margin: 25px 0 30px;
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.talent-meta__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--t-accent); }
.talent-meta a {
  padding-bottom: 4px;
  color: inherit !important;
  text-decoration: none !important;
  background: linear-gradient(var(--t-accent), var(--t-accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--t-ease);
}
.talent-meta a:hover, .talent-meta a:focus-visible { background-size: 100% 2px; }

.talent-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.talent-socials li { margin: 0 !important; list-style: none !important; }

.talent-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--t-ink);
  color: #fff !important;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none !important;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--t-ease), transform .45s var(--t-ease);
}
.talent-social::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--t-accent);
  transform: translate3d(0, 101%, 0);
  transition: transform .55s var(--t-ease);
}
.talent-social:hover { color: var(--t-ink) !important; transform: translateY(-2px); }
.talent-social:hover::before { transform: none; }
.talent-social .talent-icon { font-size: 16px; }

/* GALLERY
   Slide height/shape: change the variables. Ratio = width / height.
   --t-overhang is the extra image width each side for the parallax drift;
   keep it above MAX_DRIFT in single-talent.js. */
.talent-gallery {
  --t-h: 650px;
  --t-ratio: 2 / 3;
  --t-gap: 10px;
  --t-overhang: 10%;
  margin-bottom: 0px;
}

.talent-slider { display: flex; overflow: hidden; cursor: grab; touch-action: pan-y; }
.talent-slider:active { cursor: grabbing; }
.talent-slider.has-cursor, .talent-slider.has-cursor * { cursor: none !important; }

.talent-slide { flex: none; padding: 0 calc(var(--t-gap) / 2); }

.talent-slide__inner {
  position: relative;
  height: var(--t-h);
  width: calc(var(--t-h) * var(--t-ratio));
  overflow: hidden;
  background: #eee;
  contain: paint;
}

.talent-slide__visual { position: absolute; inset: 0; will-change: transform; }

.talent-slide__img {
  position: absolute;
  top: 0;
  left: calc(var(--t-overhang) * -1);
  width: calc(100% + var(--t-overhang) * 2) !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center 25%;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Intro: slides wipe up in turn. Removed once played (.is-settled) so dragging never repaints. */
html.talent-anim .talent-gallery:not(.is-settled) .talent-slide__inner {
  transition: clip-path 1.3s var(--t-ease) calc(var(--i, 0) * .07s + .1s);
}
html.talent-anim .talent-gallery:not(.is-in) .talent-slide__inner { clip-path: inset(100% 0 0 0); }
html.talent-anim .talent-gallery.is-in:not(.is-settled) .talent-slide__inner { clip-path: inset(0); }

/* Drag / Play cursor (desktop) */
.talent-cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }
.talent-cursor div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--t-accent);
  color: var(--t-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .5s var(--t-ease);
}
.talent-cursor.is-on div { transform: translate(-50%, -50%) scale(1); }
.talent-cursor.is-on.is-down div { transform: translate(-50%, -50%) scale(.82); }

/* VIDEO SLIDES */
.talent-video { background: #111; }
.talent-video.no-poster .talent-slide__img { display: none; }
.talent-video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent 45%);
}
.talent-video__backdrop {
  position: absolute;
  inset: -10%;
  background: center / cover;
  filter: blur(24px) brightness(.55);
}

/* Muted autoplay preview: covers the slide, fades in over the poster once playing */
.talent-video__live {
  position: absolute;
  inset: 0 calc(var(--t-overhang) * -1);
  overflow: hidden;
  container-type: size;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s var(--t-ease);
}
.talent-video__live.is-playing { opacity: 1; }
.talent-video__live iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 100cqh * var(--r));
  height: max(100cqh, 100cqw / var(--r));
  transform: translate(-50%, -50%);
  border: 0;
}
/* TikTok: drawn at a fixed large size, then scaled and cropped by single-talent.js so its cookie banner and author bar sit outside the slide */
.talent-video__live[data-platform="tiktok"] iframe {
  top: 0;
  left: 0;
  width: 1440px;
  height: 2560px;
  transform-origin: 0 0;
}

/* A video whose post was deleted fades out before it's removed */
.talent-slide.is-gone { opacity: 0; transition: opacity .4s; }

.talent-video__trigger {
  position: absolute !important;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  outline: unset;
}
.talent-video__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 22px;
  transition: transform .6s var(--t-ease), background-color .4s, color .4s, border-color .4s, opacity .6s;
}
.talent-video.is-playing .talent-video__play { opacity: .8; transform: scale(.8); }
.talent-video__trigger:hover .talent-video__play,
.talent-video__trigger:focus-visible .talent-video__play {
  opacity: 1;
  transform: scale(1.1);
  background: var(--t-accent);
  border-color: var(--t-accent);
  color: var(--t-ink);
}
.talent-video__label {
  position: absolute;
  left: 25px;
  bottom: 22.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: capitalize;
}

/* LIGHTBOX */
.talent-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, .92);
  opacity: 0;
  transition: opacity .5s var(--t-ease-io);
}
.talent-lightbox[hidden] { display: none; }
.talent-lightbox.is-open { opacity: 1; }
.talent-lightbox__frame {
  position: relative;
  background: #000;
  transform: translate3d(0, 30px, 0) scale(.96);
  opacity: 0;
  transition: transform .8s var(--t-ease) .08s, opacity .6s var(--t-ease) .08s;
}
.talent-lightbox.is-open .talent-lightbox__frame { transform: none; opacity: 1; }
.talent-lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.talent-lightbox__close {
  position: absolute !important;
  top: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .3) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 20px;
  cursor: pointer;
  transition: transform .6s var(--t-ease), background-color .3s, color .3s;
}
.talent-lightbox__close:hover { transform: rotate(90deg); background: var(--t-accent) !important; color: var(--t-ink) !important; }

/* BIO + DETAILS (stacked, centred) */
.talent-details {padding: 75px 0 0;background: #fff;}

.talent-bio {max-width: 850px;margin: 0 auto 85px;text-align: center;}
.talent-bio:last-child { margin-bottom: 0; }
.talent-bio__text { font-size: 19px; line-height: 1.7; color: var(--t-ink); }
.talent-bio__text p { margin: 0; padding-bottom: 1em !important; }
.talent-bio__text p:last-child { padding-bottom: 0 !important; }

.talent-similar__foot a.nectar-button {
    margin: auto !important;
    display: table;
}

.talent-similar__grid {
    margin: 45px 0px 45px;
}

/* Clamp only when JS has confirmed the bio is long enough */
.talent-bio.is-clamp .talent-bio__text {
  max-height: calc(1.7em * 4);
  overflow: hidden;
  transition: max-height .9s var(--t-ease-io);
}
.talent-bio.is-clamp:not(.is-open) .talent-bio__text {
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}

.talent-bio__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0 !important;
  padding: 0 0 0px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--t-ink) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.talent-bio__toggle[hidden] { display: none; }
.talent-bio__toggle::after {
}
.talent-bio__toggle:hover::after { transform: scaleX(0); }
.talent-bio__toggle i {position: relative;width: 10px;height: 10px;display: none;}
.talent-bio__toggle i::before,
.talent-bio__toggle i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  margin-top: -.75px;
  background: currentColor;
  transition: transform .6s var(--t-ease);
}
.talent-bio__toggle i::after { transform: rotate(90deg); }
.talent-bio.is-open .talent-bio__toggle i::after { transform: rotate(180deg); }

/* Details: soft grey panel, even grid, no rules */
.talent-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  max-width: 1250px;
  margin: 0 auto !important;
  padding: 50px 50px !important;
  background: #f6f6f6;
  text-align: center;
}
.talent-stat { margin: 0; min-width: 0; }
.talent-stat dt {
  margin: 0 0 7.5px !important;
  padding: 0 !important;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t-muted);
}
.talent-stat dd {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--t-ink);
}

/* ACTIONS */
.talent-actions {padding: 55px 0 75px;}
.talent-actions .container {display: flex;flex-wrap: wrap;justify-content: center;gap: 10px;}
.talent-actions .nectar-button.jumbo { margin: 0 !important; }
.talent-page .talent-back-button,
.talent-page .talent-similar__button { background-color: rgba(0, 0, 0, .05) !important; color: #000 !important; }

/* SIMILAR TALENTS */
.talent-similar {padding: 100px 0 100px;border-top: 1px solid #e0e0e0;}
.talent-similar__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
  text-align: center;
}
.talent-similar__title {margin: 0 !important;padding: 0 !important;font-size: 2rem;line-height: .95 !important;}
/* "a" matches style.css's phone button rule, so this margin wins there too */
.talent-similar__head a.nectar-button.jumbo { margin: 0 !important; }
.talent-similar__grid .fwpl-layout { margin-top: 0 !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }

/* RESPONSIVE */
@media only screen and (max-width: 1300px) {
  .talent-stats {grid-template-columns: repeat(3, minmax(0, 1fr));}
  .talent-similar__grid  .fwpl-result.r5 {display: none;}
  .talent-similar__grid .fwpl-layout {grid-template-columns: repeat(4, minmax(0, 1fr)) !important;}
}

@media only screen and (max-width: 999px) {
  .talent-gallery { --t-h: 500px; }
  .talent-details {padding: 70px 0 0;}
  .talent-bio { margin-bottom: 64px; }
  .talent-bio__text { font-size: 17px; }
  .talent-stats {grid-template-columns: repeat(2, minmax(0, 1fr));gap: 32px 24px;padding: 44px 40px !important;}
  .talent-stat dd {font-size: 20px;}
  .talent-actions { padding: 50px 0; }
  .talent-similar {padding: 75px 0px;}
  .container.main-content.talent-hero {padding: 75px 0px 75px;}
  
  /* Socials: icon-only circles */
  .talent-social { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .talent-social .talent-icon { font-size: 18px; }
  .talent-social__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* Similar: swipeable row */
  .talent-similar__grid .fwpl-layout {
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: 38%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-left: -50vw;
    left: 50%;
    width: 100vw;
    position: relative;
    padding: 0px 25px;
    scroll-padding-left: 25px;
    scroll-padding-right: 25px;
    gap: 7.5px !important;
  }
  .talent-similar__grid .fwpl-result.r5 {display: block}
  .talent-similar__grid .fwpl-layout::-webkit-scrollbar { display: none; }
  .talent-similar__grid .fwpl-result { scroll-snap-align: start; }
}

@media only screen and (max-width: 690px) {
    .talent-similar {padding: 55px 0px;}

  .talent-gallery { --t-h: 350px; --t-gap: 8px; }
  .talent-meta {gap: 8px 12px;font-size: 13px;margin: 22.5px 0 25px;}
  .talent-socials {}
  .talent-social { width: 44px; height: 44px; }
  .talent-video__play { width: 58px; height: 58px; font-size: 18px; }
  .talent-video__label { left: 14px; bottom: 14px; font-size: 10px; }
  .talent-details {padding: 55px 0 0;}
  .talent-bio__text { font-size: 16px; }
  .talent-stats {grid-template-columns: 1fr;gap: 35px 10px;padding: 35px 20px !important;}
  .talent-stat dd {font-size: 18px;}
  .talent-actions .container:before, .talent-actions .container:after {display: none;}
  .talent-similar__head { gap: 20px; margin-bottom: 30px; }
  .talent-similar__grid .fwpl-layout { grid-auto-columns: 64%; }
  .talent-lightbox__close { top: 14px; right: 14px; width: 46px; height: 46px; }
  .container.main-content.talent-hero {padding: 55px 0px 55px;}
  .talent-similar__grid .fwpl-layout {padding: 0px 20px;scroll-padding-left: 20px;scroll-padding-right: 20px;}
}




@media (prefers-reduced-motion: reduce) {
  .talent-page *, .talent-lightbox, .talent-lightbox * { transition-duration: .01ms !important; }
}
