/* ==========================================================
   ACMOBOOK Talent Marketplace — Visual Correction
   Premium · light futuristic · editorial · dense
   Scoped under .acm-tm / .acm-talent-marketplace
   ========================================================== */

.acm-talent-marketplace-page .site-main,
.acm-tm {
  --tm-primary: #635BFF;
  --tm-violet: #7C5CFF;
  --tm-cyan: #27C8FF;
  --tm-pink: #EC4899;
  --tm-orange: #F59E0B;
  --tm-bg: #FFFFFF;
  --tm-soft: #F7F7FF;
  --tm-lavender: #F3F1FF;
  --tm-text: #10152B;
  --tm-muted: #667085;
  --tm-border: #E7E8F2;
  background: var(--tm-bg);
  color: var(--tm-text);
  overflow-x: clip;
}

.acm-tm-wrap {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.acm-tm-wrap--wide {
  width: min(100% - 32px, 1280px);
}

.acm-tm-section {
  padding: clamp(40px, 5.5vw, 72px) 0;
}

.acm-tm-section--soft,
.acm-tm-section--collections {
  background: linear-gradient(180deg, var(--tm-soft) 0%, #FFFFFF 100%);
}

.acm-tm-section--cats {
  padding-top: clamp(28px, 4vw, 48px);
}

.acm-tm-section--results {
  padding-top: clamp(28px, 4vw, 48px);
  background: #fff;
}

.acm-tm-eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(99, 91, 255, 0.1);
  color: #5146E5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.acm-tm-section__head {
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

.acm-tm-section__head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.acm-tm-section__head p {
  margin: 0;
  color: var(--tm-muted);
  max-width: 38rem;
  line-height: 1.55;
}

.acm-tm-section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
}

.acm-tm-section__head--center { text-align: center; }
.acm-tm-section__head--center p { margin-inline: auto; }

.acm-tm-section__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--tm-primary);
  font-weight: 650;
  text-decoration: none;
}

.acm-tm-count {
  margin: 0;
  color: var(--tm-muted);
  font-weight: 650;
  font-size: 0.95rem;
}

.acm-tm .acm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.acm-tm .acm-btn--primary {
  background: var(--tm-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(99, 91, 255, 0.28);
}

.acm-tm .acm-btn--primary:hover {
  background: #5146E5;
  transform: translateY(-1px);
}

.acm-tm .acm-btn--secondary,
.acm-tm .acm-btn--ghost {
  background: #fff;
  color: var(--tm-primary);
  border-color: rgba(99, 91, 255, 0.28);
}

.acm-tm .acm-btn--ghost:hover,
.acm-tm .acm-btn--secondary:hover {
  background: var(--tm-lavender);
}

.acm-tm .acm-btn--light {
  background: #fff;
  color: #5146E5;
  box-shadow: 0 10px 28px rgba(16, 21, 43, 0.12);
}

.acm-tm .acm-btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}

.acm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Hero ---------- */
.acm-tm-hero {
  position: relative;
  min-height: 0;
  max-height: none;
  display: flex;
  align-items: center;
  padding: clamp(24px, 3.5vw, 44px) 0 clamp(32px, 4.5vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% 18%, rgba(99, 91, 255, 0.18), transparent 58%),
    radial-gradient(700px 420px at 12% 85%, rgba(39, 200, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #F4F2FF 0%, #F7F7FF 42%, #FFFFFF 100%);
}

@media (min-width: 1024px) {
  .acm-tm-hero {
    min-height: clamp(480px, 56vh, 620px);
  }
}

.acm-tm-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.acm-tm-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.acm-tm-hero__orb--a {
  width: 280px;
  height: 280px;
  right: 6%;
  top: 8%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 70%);
  animation: acmTmBreathe 8s ease-in-out infinite alternate;
}

.acm-tm-hero__orb--b {
  width: 200px;
  height: 200px;
  right: 30%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(39, 200, 255, 0.28), transparent 70%);
  animation: acmTmBreathe 9s ease-in-out 1s infinite alternate;
}

.acm-tm-hero__orb--c {
  width: 120px;
  height: 120px;
  right: 18%;
  top: 42%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 70%);
}

.acm-tm-hero__orbit {
  position: absolute;
  right: 8%;
  top: 12%;
  width: min(420px, 42vw);
  aspect-ratio: 1;
  border: 1px solid rgba(99, 91, 255, 0.18);
  border-radius: 50%;
  opacity: 0.7;
}

.acm-tm-hero__orbit--2 {
  right: 12%;
  top: 18%;
  width: min(320px, 34vw);
  border-color: rgba(39, 200, 255, 0.2);
}

.acm-tm-hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 91, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 91, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  opacity: 0.5;
}

.acm-tm-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

@media (min-width: 1024px) {
  .acm-tm-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }
}

.acm-tm-hero__title {
  margin: 0 0 14px;
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 1.02;
}

.acm-tm-hero__title-accent {
  background: linear-gradient(110deg, #635BFF 0%, #7C5CFF 45%, #27C8FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.acm-tm-hero__lead {
  margin: 0 0 22px;
  max-width: 34rem;
  color: var(--tm-muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
}

.acm-tm-hero__search {
  margin-bottom: 14px;
  max-width: 560px;
}

.acm-tm-hero__search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(231, 232, 242, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 44px rgba(99, 91, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.acm-tm-hero__search-field:focus-within {
  border-color: rgba(99, 91, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.12), 0 18px 44px rgba(99, 91, 255, 0.16);
}

.acm-tm-hero__search-field > i { color: #94A3B8; }
.acm-tm-hero__search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
}
.acm-tm-hero__search-field button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  min-width: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #635BFF, #7C5CFF);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(99, 91, 255, 0.3);
}

.acm-tm-hero__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.acm-tm-hero__chips::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .acm-tm-hero__chips {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }
}

.acm-tm-hero__chips > span {
  color: #98A2B3;
  font-size: 0.75rem;
  font-weight: 650;
}

.acm-tm-hero__chips a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--tm-border);
  background: rgba(255, 255, 255, 0.9);
  color: #475467;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.acm-tm-hero__chips a:hover {
  border-color: rgba(99, 91, 255, 0.45);
  color: #5146E5;
  background: #EEF0FF;
}

.acm-tm-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.acm-tm-hero__visual {
  position: relative;
  min-height: 420px;
  display: flex;
  justify-content: center;
}

.acm-tm-hero__collage {
  position: relative;
  width: min(100%, 480px);
  height: 420px;
}

.acm-tm-hero__portrait {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 3px solid #fff;
  background: linear-gradient(160deg, #EDE9FE, #CFFAFE);
  box-shadow: 0 28px 56px rgba(16, 21, 43, 0.18);
}

.acm-tm-hero__portrait img,
.acm-tm-hero__fill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acm-tm-hero__fill {
  background: linear-gradient(160deg, rgba(99, 91, 255, 0.45), rgba(39, 200, 255, 0.28));
}

.acm-tm-hero__portrait figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(16, 21, 43, 0.72));
  color: #fff;
}

.acm-tm-hero__portrait figcaption strong {
  display: block;
  font-size: 0.88rem;
}

.acm-tm-hero__portrait figcaption span {
  font-size: 0.72rem;
  opacity: 0.92;
}

.acm-tm-hero__portrait--0 {
  width: 158px;
  height: 218px;
  left: 0;
  top: 56px;
  transform: rotate(-7deg);
  z-index: 1;
}

.acm-tm-hero__portrait--1 {
  width: 210px;
  height: 290px;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 3;
}

.acm-tm-hero__portrait--2 {
  width: 158px;
  height: 218px;
  right: 0;
  top: 64px;
  transform: rotate(7deg);
  z-index: 2;
}

.acm-tm-hero__toast {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(99, 91, 255, 0.18);
  backdrop-filter: blur(14px);
  font-size: 0.75rem;
  color: var(--tm-text);
}

.acm-tm-hero__toast strong { display: block; font-size: 0.8rem; }
.acm-tm-hero__toast span { color: var(--tm-muted); }
.acm-tm-hero__toast i { color: var(--tm-primary); }
.acm-tm-hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
}

.acm-tm-hero__toast--a { left: 8px; bottom: 42px; }
.acm-tm-hero__toast--b { right: 8px; top: 24px; }
.acm-tm-hero__toast--c { right: 28px; bottom: 22px; }

@media (max-width: 1023.98px) {
  .acm-tm-hero { min-height: 0; }
  .acm-tm-hero__grid { display: flex; flex-direction: column; }
  .acm-tm-hero__visual { order: -1; min-height: 0; }
  .acm-tm-hero__collage { width: min(100%, 320px); height: 250px; }
  .acm-tm-hero__portrait--0,
  .acm-tm-hero__portrait--2 { width: 108px; height: 150px; top: 42px; }
  .acm-tm-hero__portrait--1 { width: 138px; height: 190px; top: 12px; }
  .acm-tm-hero__toast--c { display: none; }
  .acm-tm-hero__orbit { display: none; }
  .acm-tm-hero__ctas { display: grid; grid-template-columns: 1fr 1fr; }
  .acm-tm-hero__ctas .acm-btn { width: 100%; }
  .acm-tm-hero__search-field button span { display: none; }
}

@media (max-width: 575.98px) {
  .acm-tm-hero__toast--b { display: none; }
  .acm-tm-hero__toast--a { transform: scale(0.92); transform-origin: left bottom; bottom: 10px; }
}

/* ---------- Category rail ---------- */
.acm-tm-cat-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 2px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.acm-tm-cat-rail::-webkit-scrollbar { display: none; }

.acm-tm-cat-card {
  flex: 0 0 auto;
  width: 168px;
  scroll-snap-align: start;
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.acm-tm-cat-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(99, 91, 255, 0.22), rgba(39, 200, 255, 0.14)),
    var(--tm-lavender);
  border: 1px solid rgba(231, 232, 242, 0.9);
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 12px 28px rgba(99, 91, 255, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.acm-tm-cat-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acm-tm-cat-card__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(16, 21, 43, 0.55));
  z-index: 1;
}

.acm-tm-cat-card__visual > i {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(16, 21, 43, 0.15);
}

.acm-tm-cat-card:hover .acm-tm-cat-card__visual {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 20px 40px rgba(99, 91, 255, 0.18);
}

.acm-tm-cat-card:hover .acm-tm-cat-card__visual img {
  transform: scale(1.06);
  transition: transform 0.4s ease;
}

.acm-tm-cat-card__meta {
  display: grid;
  gap: 2px;
}

.acm-tm-cat-card__label {
  font-weight: 700;
  font-size: 0.95rem;
}

.acm-tm-cat-card__count {
  color: var(--tm-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.acm-tm-cat-card__arrow {
  opacity: 0;
  color: var(--tm-primary);
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-4px);
}

.acm-tm-cat-card:hover .acm-tm-cat-card__arrow {
  opacity: 1;
  transform: none;
}

/* ---------- Collections (cinematic) ---------- */
.acm-tm-collections {
  display: grid;
  gap: 14px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.acm-tm-collections::-webkit-scrollbar { display: none; }

@media (min-width: 1100px) {
  .acm-tm-collections {
    grid-auto-flow: unset;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }
}

.acm-tm-collection {
  position: relative;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 20px 18px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 16px 40px rgba(16, 21, 43, 0.14);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.acm-tm-collection:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(99, 91, 255, 0.2);
}

.acm-tm-collection__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #4C1D95, #635BFF 45%, #0E7490);
}

.acm-tm-collection--wedding .acm-tm-collection__media { background: linear-gradient(145deg, #7C3AED, #DB2777 60%, #F59E0B); }
.acm-tm-collection--brands .acm-tm-collection__media { background: linear-gradient(145deg, #312E81, #635BFF 55%, #27C8FF); }
.acm-tm-collection--events .acm-tm-collection__media { background: linear-gradient(145deg, #9D174D, #EC4899 50%, #F472B6); }
.acm-tm-collection--corporate .acm-tm-collection__media { background: linear-gradient(145deg, #1E3A8A, #6366F1 55%, #22D3EE); }
.acm-tm-collection--production .acm-tm-collection__media { background: linear-gradient(145deg, #7C2D12, #EA580C 50%, #FBBF24); }

.acm-tm-collection__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.5s ease;
}

.acm-tm-collection:hover .acm-tm-collection__media img {
  transform: scale(1.06);
}

.acm-tm-collection__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 21, 43, 0.15) 0%, rgba(16, 21, 43, 0.78) 100%);
}

.acm-tm-collection__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding-right: 40px;
}

.acm-tm-collection__body strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.acm-tm-collection__body span {
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.92;
}

.acm-tm-collection__go {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.acm-tm-collection:hover .acm-tm-collection__go {
  background: #fff;
  color: var(--tm-primary);
  transform: translateX(3px);
}

/* ---------- Intent ---------- */
.acm-tm-intent {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1024px) {
  .acm-tm-intent {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.acm-tm-intent-card {
  display: grid;
  gap: 10px;
  padding: 26px 22px;
  border-radius: 22px;
  border: 1px solid var(--tm-border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(16, 21, 43, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.acm-tm-intent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(99, 91, 255, 0.12);
}

.acm-tm-intent-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 1.3rem;
}

.acm-tm-intent-card--violet .acm-tm-intent-card__icon { background: rgba(99, 91, 255, 0.12); color: #635BFF; }
.acm-tm-intent-card--pink .acm-tm-intent-card__icon { background: rgba(236, 72, 153, 0.12); color: #EC4899; }
.acm-tm-intent-card--cyan .acm-tm-intent-card__icon { background: rgba(39, 200, 255, 0.14); color: #0891B2; }
.acm-tm-intent-card--orange .acm-tm-intent-card__icon { background: rgba(245, 158, 11, 0.14); color: #D97706; }

.acm-tm-intent-card strong { font-size: 1.08rem; }
.acm-tm-intent-card span { color: var(--tm-muted); font-size: 0.9rem; line-height: 1.45; }
.acm-tm-intent-card em {
  font-style: normal;
  color: var(--tm-primary);
  font-weight: 650;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Results layout ---------- */
.acm-tm-layout {
  display: grid;
  gap: 22px;
}

@media (min-width: 1024px) {
  .acm-tm-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
  }
}

.acm-tm-filters-panel {
  display: none;
  position: sticky;
  top: calc(var(--acm-header-h, 64px) + 12px);
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--tm-border);
  background: rgba(247, 247, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(99, 91, 255, 0.06);
}

@media (min-width: 1024px) {
  .acm-tm-filters-panel { display: block; }
}

.acm-tm-filters-panel h3 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.acm-tm-filters-panel label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 650;
  color: #475467;
}

.acm-tm-filters-panel input,
.acm-tm-filters-panel select {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #fff;
  font: inherit;
  font-weight: 500;
  color: var(--tm-text);
}

.acm-tm-filters-panel__actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.acm-tm-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  position: sticky;
  top: calc(var(--acm-header-h, 64px) + env(safe-area-inset-top, 0px));
  z-index: 30;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

@media (min-width: 1024px) {
  .acm-tm-toolbar {
    position: static;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
  }
  .acm-tm-mobile-actions { display: none; }
}

.acm-tm-toolbar.is-stuck {
  box-shadow: 0 8px 24px rgba(16, 21, 43, 0.06);
}

.acm-tm-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--tm-border);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  padding-left: 4px;
  box-shadow: 0 6px 18px rgba(99, 91, 255, 0.06);
}

.acm-tm-search i {
  padding: 0 8px 0 12px;
  color: #94A3B8;
}

.acm-tm-search input {
  flex: 1;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  padding: 0 8px;
}

.acm-tm-search button {
  min-height: 44px;
  margin: 4px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--tm-primary);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.acm-tm-mobile-actions {
  display: flex;
  gap: 8px;
}

.acm-tm-mobile-actions .acm-btn {
  min-height: 44px;
  flex: 1;
}

.acm-tm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.acm-tm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: #EEF0FF;
  color: #5146E5;
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
}

/* ---------- Cards ---------- */
.acm-tm-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .acm-tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .acm-tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 1280px) {
  .acm-tm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.acm-tm-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(231, 232, 242, 0.95);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 21, 43, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.acm-tm-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 91, 255, 0.35);
  box-shadow: 0 22px 48px rgba(99, 91, 255, 0.16);
}

.acm-tm-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tm-lavender);
}

.acm-tm-card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 45%),
    linear-gradient(155deg, #DDD6FE 0%, #C4B5FD 40%, #A5F3FC 100%);
}

.acm-tm-card--tone-1 .acm-tm-card__fallback { background: linear-gradient(155deg, #E9D5FF, #C4B5FD 45%, #A5B4FC); }
.acm-tm-card--tone-2 .acm-tm-card__fallback { background: linear-gradient(155deg, #CFFAFE, #A5F3FC 40%, #C4B5FD); }
.acm-tm-card--tone-3 .acm-tm-card__fallback { background: linear-gradient(155deg, #FCE7F3, #FBCFE8 40%, #DDD6FE); }
.acm-tm-card--tone-4 .acm-tm-card__fallback { background: linear-gradient(155deg, #FFEDD5, #FED7AA 40%, #C4B5FD); }

.acm-tm-card__monogram {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-inline: auto;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  color: #5146E5;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 12px 28px rgba(99, 91, 255, 0.18);
  backdrop-filter: blur(8px);
}

.acm-tm-card__fallback-cat {
  color: rgba(16, 21, 43, 0.65);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.acm-tm-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.acm-tm-card__photo.is-broken {
  display: none;
}

.acm-tm-card:hover .acm-tm-card__photo {
  transform: scale(1.04);
}

.acm-tm-card__shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(16, 21, 43, 0.28));
  pointer-events: none;
}

.acm-tm-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  max-width: calc(100% - 56px);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(99, 91, 255, 0.94);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 18px rgba(99, 91, 255, 0.28);
}

.acm-tm-card__verified {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--tm-primary);
  box-shadow: 0 8px 18px rgba(16, 21, 43, 0.12);
}

.acm-tm-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 14px 16px;
  flex: 1;
}

.acm-tm-card__name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.acm-tm-card__name a {
  color: inherit;
  text-decoration: none;
  display: inline;
}

.acm-tm-card__name a:hover { color: var(--tm-primary); }

.acm-tm-card__profession {
  margin: 0;
  color: #475467;
  font-size: 0.84rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.acm-tm-card__profession i { font-size: 0.78rem; }
.acm-tm-card__dot { opacity: 0.5; }

.acm-tm-card__price {
  margin: 2px 0 0;
  color: var(--tm-text);
  font-weight: 750;
  font-size: 0.92rem;
}

.acm-tm-card__rating {
  margin: 0;
  color: var(--tm-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.acm-tm-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.acm-tm-card__tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #F2F4F7;
  color: #475467;
  font-size: 0.7rem;
  font-weight: 650;
}

.acm-tm-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.acm-tm-card__actions .acm-btn {
  width: 100%;
  min-height: 44px;
  font-size: 0.8125rem;
  padding: 0 8px;
  white-space: nowrap;
}

.acm-tm-card:hover .acm-tm-card__secondary {
  box-shadow: 0 10px 22px rgba(99, 91, 255, 0.32);
}

/* ---------- Empty ---------- */
.acm-tm-empty {
  padding: 48px 24px;
  text-align: center;
  border-radius: 22px;
  border: 1px dashed #D0D5DD;
  background: var(--tm-soft);
}

.acm-tm-empty h3 { margin: 0 0 8px; }
.acm-tm-empty p { margin: 0 0 18px; color: var(--tm-muted); }
.acm-tm-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ---------- Pagination ---------- */
.acm-tm-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.acm-tm-pagination a,
.acm-tm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--tm-border);
  background: #fff;
  color: var(--tm-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.acm-tm-pagination a:hover { border-color: var(--tm-primary); color: var(--tm-primary); }
.acm-tm-pagination a.is-active {
  background: var(--tm-primary);
  border-color: var(--tm-primary);
  color: #fff;
}
.acm-tm-pagination .is-disabled { opacity: 0.45; }

/* ---------- Cities ---------- */
.acm-tm-city-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.acm-tm-city-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--tm-border);
  background: #fff;
  color: var(--tm-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(99, 91, 255, 0.05);
  transition: 0.2s ease;
}

.acm-tm-city-pill:hover {
  border-color: rgba(99, 91, 255, 0.4);
  color: #5146E5;
  background: #EEF0FF;
  transform: translateY(-1px);
}

.acm-tm-city-pill i { color: var(--tm-primary); }

/* ---------- Bridge CTA ---------- */
.acm-tm-bridge {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0;
  color: #fff;
  background: linear-gradient(125deg, #5146E5 0%, #635BFF 38%, #7C5CFF 68%, #27C8FF 115%);
}

.acm-tm-bridge__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 15% 30%, rgba(255, 255, 255, 0.2), transparent 60%),
    radial-gradient(360px 200px at 85% 70%, rgba(39, 200, 255, 0.35), transparent 55%);
  pointer-events: none;
}

.acm-tm-bridge__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 32px;
}

.acm-tm-bridge__copy {
  max-width: 36rem;
}

.acm-tm-bridge h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
}

.acm-tm-bridge p {
  margin: 0;
  opacity: 0.94;
  font-size: 1.05rem;
  line-height: 1.55;
}

.acm-tm-bridge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Drawer ---------- */
.acm-tm-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 12000;
}

.acm-tm-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.acm-tm-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(88vh, 640px);
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.18);
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 12001;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.acm-tm-drawer.is-open { transform: none; }

.acm-tm-drawer__handle {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #D0D5DD;
  margin: 10px auto 0;
}

.acm-tm-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #EEF2F7;
}

.acm-tm-drawer__head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.acm-tm-drawer__body {
  padding: 16px;
  overflow: auto;
  display: grid;
  gap: 14px;
}

.acm-tm-drawer__body label {
  display: grid;
  gap: 6px;
  font-weight: 650;
  font-size: 0.88rem;
  color: #475467;
}

.acm-tm-drawer__body select,
.acm-tm-drawer__body input {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 0 12px;
  font: inherit;
}

.acm-tm-drawer__foot {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 8px;
}

body.acm-tm-drawer-open {
  overflow: hidden;
}

/* ---------- Motion ---------- */
.acm-tm-hero__copy > .acm-motion-reveal:nth-child(1) { transition-delay: 40ms; }
.acm-tm-hero__copy > .acm-motion-reveal:nth-child(2) { transition-delay: 120ms; }
.acm-tm-hero__copy > .acm-motion-reveal:nth-child(3) { transition-delay: 200ms; }
.acm-tm-hero__copy > .acm-motion-reveal:nth-child(4) { transition-delay: 280ms; }
.acm-tm-hero__copy > .acm-motion-reveal:nth-child(5) { transition-delay: 360ms; }
.acm-tm-hero__copy > .acm-motion-reveal:nth-child(6) { transition-delay: 440ms; }
.acm-tm-hero__visual.acm-motion-reveal { transition-delay: 160ms; }

.acm-tm-hero__portrait--0 { animation: acmTmFloat 7s ease-in-out infinite alternate; }
.acm-tm-hero__portrait--1 { animation: acmTmFloat 8.5s ease-in-out 0.4s infinite alternate; }
.acm-tm-hero__portrait--2 { animation: acmTmFloat 7.5s ease-in-out 0.8s infinite alternate; }
.acm-tm-hero__toast--a { animation: acmTmFloat 6.5s ease-in-out infinite alternate; }
.acm-tm-hero__toast--b { animation: acmTmFloat 7.2s ease-in-out 0.6s infinite alternate; }
.acm-tm-hero__toast--c { animation: acmTmFloat 8s ease-in-out 1s infinite alternate; }

@keyframes acmTmFloat {
  from { translate: 0 0; }
  to { translate: 0 -10px; }
}

@keyframes acmTmBreathe {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}

.acm-tm :focus-visible {
  outline: 2px solid #635BFF;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .acm-tm *,
  .acm-tm *::before,
  .acm-tm *::after {
    animation: none !important;
    transition: none !important;
  }

  .acm-tm .acm-motion-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================
   Production readiness hardening (no redesign)
   ========================================================== */

.acm-talent-marketplace-page,
.acm-tm {
  max-width: 100%;
}

.acm-tm-wrap,
.acm-tm-wrap--wide {
  max-width: 100%;
  box-sizing: border-box;
}

.acm-tm-toolbar-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

/* Prevent photo CLS / broken icon flash */
.acm-tm-card__photo {
  background: transparent;
}

.acm-tm-card__photo.is-broken,
img.acm-tm-card__photo[src=""] {
  display: none !important;
}

.acm-tm-card__tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acm-tm-cat-card__label,
.acm-tm-collection__body strong,
.acm-tm-intent-card strong {
  overflow-wrap: anywhere;
}

.acm-tm-drawer__foot .acm-btn {
  min-height: 48px;
}

.acm-tm-drawer-overlay.is-open {
  touch-action: none;
}

/* Touch: no hover-only transforms */
@media (hover: none) {
  .acm-tm-card:hover,
  .acm-tm-cat-card:hover .acm-tm-cat-card__visual,
  .acm-tm-collection:hover,
  .acm-tm-intent-card:hover,
  .acm-tm-city-pill:hover {
    transform: none;
  }

  .acm-tm-card:hover .acm-tm-card__photo,
  .acm-tm-collection:hover .acm-tm-collection__media img {
    transform: none;
  }
}

/* Very narrow phones: keep CTAs stacked if needed */
@media (max-width: 359.98px) {
  .acm-tm-hero__ctas {
    grid-template-columns: 1fr;
  }

  .acm-tm-card__actions {
    grid-template-columns: 1fr;
  }
}

/* Large desktop: keep marketplace width balanced */
@media (min-width: 1440px) {
  .acm-tm-wrap--wide {
    width: min(100% - 48px, 1320px);
  }
}

@media (min-width: 1920px) {
  .acm-tm-wrap--wide {
    width: min(100% - 64px, 1400px);
  }
}
