/* ==========================================================================
   Sections – the content of both views, in page order.
   Card tilt reads --rx / --ry and the hero graphics --hpx / --hpy (pointer.js).
   ========================================================================== */

/* ==========================================================================
   BRANDS VIEW
   ========================================================================== */

/* ---------- Hero reel: three floating video cards ---------- */
.hero-reel {
  position: relative; display: flex; gap: 16px; justify-content: center;
  padding: 11px 0;
  margin-right: -11px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  transform: perspective(1400px) rotateY(calc(var(--hpx, 0) * -7deg)) rotateX(calc(var(--hpy, 0) * 5deg));
  transform-style: preserve-3d;
}
.hero-reel__card {
  position: relative; flex: none;
  width: clamp(150px, 16.5vw, 236px); aspect-ratio: 200 / 356;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 8px rgb(255 255 255 / .2);
  animation: reel-in .9s var(--ease-out) both, float 7s var(--ease-in-out) .9s infinite alternate;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.hero-reel__card:nth-child(2) { animation-delay: .08s, 1.4s; }
.hero-reel__card:nth-child(3) { animation-delay: .16s, 2s; }
.hero-reel__card:hover { transform: scale(1.03); box-shadow: 0 0 28px rgb(230 254 44 / .22); }
.hero-reel__card img { width: 100%; height: 100%; object-fit: cover; }
.hero-reel__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, rgb(53 53 53 / .12), rgb(53 53 53 / .04));
  box-shadow: inset 0 0 0 .5px rgb(230 254 44 / .5), inset 0 0 8px rgb(230 254 44 / .2);
}
@keyframes reel-in { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Be part of a smarter way to grow (Content 3, 800px) ---------- */
.grow { padding: 29px var(--gutter) 30px; }
.grow__title { max-width: none; color: rgb(245 245 245 / .9); } /* brands-only: fixed, not the theme heading colour */
.grow__cta { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 48px; }

/* Video wall: columns drift at different speeds while scrolling (motion.js writes --p, -1 … 1) */
.video-wall { margin: 40px auto 0; max-width: 859px; overflow: hidden; }
.video-wall__inner {
  position: relative;
  width: max(100%, 560px); margin-left: 50%; translate: -50% 0;
  aspect-ratio: 859 / 430;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0, #000 18%, #000 80%, transparent 100%),
    linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0, #000 18%, #000 80%, transparent 100%),
    linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}
/* --x / --y: position in the 859×430 Figma frame, set inline per image */
.video-wall__inner img {
  --speed: 0;
  position: absolute;
  left: calc(var(--x) / 859 * 100%); top: calc(var(--y) / 430 * 100%);
  width: calc(160 / 859 * 100%); height: calc(284 / 430 * 100%);
  object-fit: cover; border-radius: 8px;
  translate: 0 calc(var(--p, 0) * var(--speed) * 1px); will-change: translate;
}
.video-wall__inner img[style*="--x:-37"] { --speed: 70; }
.video-wall__inner img[style*="--x:147"] { --speed: -50; }
.video-wall__inner img[style*="--x:331"] { --speed: 90; }
.video-wall__inner img[style*="--x:515"] { --speed: -70; }
.video-wall__inner img[style*="--x:699"] { --speed: 55; }

/* ---------- We turn content into a performance system (Content 4, 880px) ---------- */
.performance { padding: 76px var(--gutter) 76px; }
.performance__title { max-width: 1000px; }
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 30px;
  max-width: 854px; margin: 40px auto 0;
}
.bento__card { position: relative; grid-column: span 2; border-radius: 24px; transition: transform .3s ease, filter .3s ease; }
.bento__card--lg { grid-column: span 3; }
.bento__card:nth-child(-n+3) { margin-inline: -7px; } /* 3 × 274 + 2 × 16 inside the 854 grid */
.bento__card img { width: 100%; }
.bento__text {
  position: absolute; z-index: 2; left: 50%; translate: -50% 0; width: min(231px, 88%); top: 68%;
  text-align: center;
}
.bento__text h3 { font-size: 1.0625rem; line-height: 1.2; font-weight: 600; color: var(--neutral-50); text-wrap: balance; }
.bento__text p { margin-top: 6px; font-size: .875rem; line-height: 1.3; color: var(--neutral-200); }

/* ---------- Campaigns we have achieved (Content 5) ---------- */
.campaigns { padding: 62px var(--gutter) 63px; text-align: center; }
.campaigns .dots { top: -120px; }
.campaigns .section__lead { text-wrap: balance; }
.campaign-list {
  display: flex; justify-content: center; align-items: flex-start; gap: 24px;
  margin: 48px auto 48px;
}
.campaign { position: relative; flex: none; width: 224px; transition: transform .7s var(--ease-out); }
.campaign:hover { transform: translateY(-8px); }
.campaign img { width: 100%; transition: filter .7s var(--ease-out); }
.campaign--main img { filter: drop-shadow(0 0 36px rgb(230 254 44 / .1)); }
.campaign--main:hover img { filter: drop-shadow(0 0 44px rgb(230 254 44 / .22)); }
.campaign--side { width: 204px; margin-top: 35px; }
.campaign--side img { filter: brightness(.88); }
.campaign--side:hover img { filter: none; }
.campaign--side:first-child { -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.campaign--side:last-child { -webkit-mask-image: linear-gradient(270deg, transparent, #000 30%); mask-image: linear-gradient(270deg, transparent, #000 30%); }
.campaign__tag {
  position: absolute; left: 9.8%; top: 6%;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: 999px;
  font-size: .875rem; font-weight: 500; line-height: 1;
  color: var(--neutral-50);
  background: rgb(23 23 23 / .55);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.campaign__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.campaign--side:first-child .campaign__tag { left: auto; right: 9.8%; } /* keep it out of the edge fade */
.campaign__stats {
  position: absolute; left: 9.8%; right: 9.8%; bottom: 6%;
  display: grid; gap: 8px;
}
.campaign__stats div {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgb(53 53 53 / .6), rgb(53 53 53 / .2));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07), inset 0 1px 0 rgb(255 255 255 / .1), inset 0 4px 8px rgb(230 254 44 / .1);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.campaign__stats dt { font-size: 1rem; font-weight: 500; color: var(--neutral-50); }
.campaign__stats dd { font-size: 1.75rem; color: var(--lime); font-variant-numeric: tabular-nums; }
.campaign--side .campaign__stats div { height: 40px; }
.campaign--side .campaign__stats dd { font-size: 1.6rem; }

/* ---------- Proven to deliver results (Content 6, 720px): glass stat cards ---------- */
.results { padding: 159px var(--gutter) 159px; }
.results .dots { top: 0; }
.glow--results {
  left: 50%; top: -110px; translate: -50% 0; width: 420px; height: 380px;
  background: var(--lime); opacity: .28;
  animation: breathe 6s var(--ease-in-out) infinite alternate;
}
.stat-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: center; gap: 24px;
  margin-top: 56px;
}
.stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  height: 260px; padding: 32px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(0 0 0 / .55), rgb(170 170 170 / .08));
  box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 var(--glass-highlight), 0 0 8px rgb(255 255 255 / .06);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: transform .3s ease, box-shadow .3s ease;
}
.stat img { width: 80px; height: 80px; transition: transform .7s var(--ease-spring); }
.stat:hover img { transform: translateY(-4px) scale(1.06); }
.stat span { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); color: var(--neutral-50); text-align: center; }
.count { font-variant-numeric: tabular-nums; }

.bento__card:hover, .stat:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px); filter: drop-shadow(0 24px 48px rgb(230 254 44 / .14)); }

/* ---------- Final call to action (both views) ---------- */
.cta { padding: 200px var(--gutter); text-align: center; }
.cta .dots { top: 0; width: min(1181px, 100%); height: 666px; }
.cta__title { color: var(--heading); font-size: var(--fs-sm); max-width: 1000px; margin-inline: auto; line-height: 1.02; }
.cta__text { max-width: 520px; margin: 24px auto 64px; color: var(--muted); font-size: 1.25rem; }
.glow--cta {
  left: 50%; top: 40px; translate: -50% 0; width: 760px; height: 480px;
  background: var(--lime); opacity: .38; filter: blur(120px);
  animation: breathe 7s var(--ease-in-out) infinite alternate;
}
/* Light CTA uses the 60px headline + 18px copy */
.view--creators .cta { padding-top: 127px; }
.view--creators .cta__title { max-width: 1100px; }
.view--creators .cta__text { max-width: 470px; margin-bottom: 40px; font-size: 1.125rem; }
.view--creators .glow--cta { top: 60px; width: 700px; height: 460px; opacity: .45; }
.view--creators .cta .dots { top: -158px; width: min(1072px, 100%); height: 604px; }

/* ==========================================================================
   CREATORS VIEW
   ========================================================================== */

/* ---------- Hero collage: three floating cards ---------- */
.hero-collage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 499 / 419; justify-self: end; }
.hero-collage img {
  position: absolute;
  filter: drop-shadow(0 12px 24px rgb(159 154 16 / .08));
  animation: float-in 1s var(--ease-out) var(--enter-delay, 0s) both, float 8s var(--ease-in-out) var(--float-delay, 1s) infinite alternate;
}
.hero-collage__video { left: 0; top: 0; width: 54.9%; transform: translate3d(calc(var(--hpx, 0) * -18px), calc(var(--hpy, 0) * -14px), 0); }
.hero-collage__list { --enter-delay: .15s; --float-delay: 1.8s; left: 45.1%; top: 20.8%; width: 54.9%; transform: translate3d(calc(var(--hpx, 0) * 26px), calc(var(--hpy, 0) * 20px), 0); }
.hero-collage__money { --enter-delay: .25s; --float-delay: 2.6s; left: 21.4%; top: 57%; width: 36.1%; transform: translate3d(calc(var(--hpx, 0) * 40px), calc(var(--hpy, 0) * 30px), 0); }
@keyframes float-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* ---------- Simple steps (Content 2, 640px) ---------- */
.steps { padding: 70px var(--gutter) 128px; text-align: center; }
.steps .section__lead { margin-top: 16px; }
.step-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 274px)); justify-content: center; gap: 29px;
  margin-top: 39px;
}
.step { position: relative; border-radius: 24px; transition: transform .3s ease; }
.step img { width: 100%; }
.step > span { z-index: 2; }
.step > span:not(.sr-only) {
  position: absolute; left: 8%; right: 8%; top: 74.2%;
  font-size: 1rem; line-height: 1.2; color: rgb(23 23 23 / .9); text-wrap: balance;
}

/* ---------- Get paid through a proven system (Content 3, 800px) ---------- */
.system { padding: 66px var(--gutter) 97px; }
.system-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
  max-width: 846px; margin: 51px auto 0;
}
.system-card {
  position: relative; grid-column: span 2;
  border-radius: 24px;
  box-shadow: 2px 2px 10px rgb(0 0 0 / .1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.system-card--wide { grid-column: span 3; }
.system-card img { width: 100%; border-radius: inherit; }
.system-card > span {
  position: absolute; z-index: 2; left: 4%; right: 4%; top: 75.9%;
  text-align: center; font-size: clamp(1.25rem, 1rem + .6vw, 1.5rem); color: var(--neutral-900);
}
.system-card--wide > span { top: 74.7%; font-size: clamp(1.375rem, 1rem + .9vw, 1.75rem); }

.step:hover, .system-card:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px); }
.step:hover { filter: drop-shadow(0 18px 36px rgb(159 154 16 / .16)); }
.system-card:hover { box-shadow: 0 20px 44px rgb(60 60 20 / .12), 0 2px 6px rgb(0 0 0 / .04); }

/* ---------- Testimonials (Content 4, 840px, lime with light ellipse) ---------- */
.testimonials {
  padding: 69px 0 70px;
  border-radius: 40px 40px 0 0;
  background: linear-gradient(var(--lime) 0 45%, var(--neutral-100) 45%);
  overflow: hidden;
}
.testimonials::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 47px; translate: -50% 0;
  width: max(1659px, 115%); height: 1071px; border-radius: 50%;
  background: var(--neutral-100);
  filter: blur(36px);
}
.testimonials .section__title { max-width: 1000px; padding-inline: var(--gutter); }
/* Edge fades only appear on the side that still has cards to scroll to (sliders.js) */
.testimonials__track {
  --fade: 120px;
  margin-top: 48px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  transition: --fade-l .4s var(--ease-out), --fade-r .4s var(--ease-out);
}
.testimonials__track.can-scroll-prev { --fade-l: var(--fade); }
.testimonials__track.can-scroll-next { --fade-r: var(--fade); }
.testimonials__track::-webkit-scrollbar { display: none; }
.testimonials__track:focus-visible { outline-offset: -2px; }
.testimonials__track ul {
  display: flex; gap: 32px; width: max-content;
  padding: 8px max(var(--gutter), calc(50% - 624px));
  margin-inline: auto;
}
.testimonial { flex: none; width: 224px; scroll-snap-align: center; text-align: center; }
.testimonial img { width: 224px; aspect-ratio: 224 / 313; object-fit: cover; object-position: top; height: auto; transition: transform .7s var(--ease-out); }
.testimonial:hover img { transform: translateY(-6px) scale(1.02); }
.testimonial blockquote { margin-top: -57px; padding: 0 10px; transition: transform .7s var(--ease-out); }
.testimonial:hover blockquote { transform: translateY(-3px); }
.testimonial__rating {
  display: block; margin-bottom: 8px;
  font-size: .8125rem; letter-spacing: .14em; line-height: 1;
  color: var(--olive);
}
.testimonial p { font-size: 1.0625rem; line-height: 1.35; color: var(--neutral-800); text-wrap: pretty; }
.testimonial strong {
  font-weight: 600; color: var(--neutral-950);
  background: linear-gradient(transparent 58%, rgb(230 254 44 / .75) 58% 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: 1px;
}

.testimonials__nav { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.testimonials__arrow {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--neutral-200); background: #fff; color: var(--neutral-900);
  box-shadow: 0 2px 8px rgb(0 0 0 / .05);
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease-out), opacity .25s ease;
}
.testimonials__arrow svg { width: 22px; height: 22px; rotate: -90deg; }
.testimonials__arrow--prev svg { rotate: 90deg; }
.testimonials__arrow:hover:not(:disabled) { background: var(--lime); border-color: var(--lime); box-shadow: 0 8px 20px rgb(159 154 16 / .25); transform: translateY(-1px); }
.testimonials__arrow:active:not(:disabled) { transform: scale(.94); }
.testimonials__arrow:focus-visible { outline: 2px solid var(--neutral-900); outline-offset: 3px; }
.testimonials__arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
.testimonials__cta { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 40px; }
.testimonials__nav[hidden] + .testimonials__cta { margin-top: 48px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-reel { margin-inline: calc(var(--gutter) * -1) 0; overflow: hidden; }
  .hero-reel__card { width: clamp(140px, 30vw, 200px); }
  .hero-collage { justify-self: center; }

  .bento { grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 600px; }
  .bento__card, .bento__card--lg { grid-column: span 1; }
  .bento__card:nth-child(-n+3) { margin-inline: 0; }
  .bento__card--lg { grid-column: span 2; }
  .bento__card:nth-child(3) { grid-column: span 2; justify-self: center; width: calc(50% - 8px); }

  .stat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .stat { height: auto; aspect-ratio: 307 / 218; gap: 24px; }
  .stat span { font-size: 1.375rem; }

  .system-grid { gap: 16px; }
}

@media (max-width: 640px) {
  .hero-reel { gap: 10px; }
  .hero-reel__card { width: 40vw; border-radius: 12px; }

  .grow { padding-bottom: 80px; }
  .video-wall { margin-top: 24px; }

  .performance { padding-top: 40px; padding-bottom: 80px; }
  .bento { grid-template-columns: 1fr; max-width: 420px; }
  .bento__card--lg, .bento__card:nth-child(3) { grid-column: span 1; width: auto; }
  .bento__card--sm { max-width: 340px; width: 100%; justify-self: center; }

  .campaigns { padding-top: 40px; padding-bottom: 80px; }
  .campaign-list { gap: 12px; margin-inline: calc(var(--gutter) * -1); }
  .campaign { width: 46vw; max-width: 224px; }
  .campaign--side { width: 26vw; margin-top: 8%; }
  .campaign--side .campaign__stats, .campaign--side .campaign__tag { display: none; }
  .campaign__stats div { height: 38px; padding: 0 10px; }
  .campaign__stats dt { font-size: .875rem; }
  .campaign__stats dd { font-size: 1.375rem; }

  .results { padding-top: 96px; padding-bottom: 96px; }
  .glow--results { width: 280px; height: 260px; }
  .stat-list { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; margin-top: 40px; }
  .stat { aspect-ratio: auto; height: 180px; }

  .cta { padding-top: 104px; padding-bottom: 104px; }
  .view--creators .cta { padding-top: 96px; }
  .cta__text { margin-bottom: 40px; }
  /* Ambient glows are smaller on phones (less overdraw, no edge bleed) */
  .glow--cta, .view--creators .glow--cta { width: 120%; height: 360px; filter: blur(90px); }

  .steps { padding-top: 48px; padding-bottom: 80px; }
  .step-list { grid-template-columns: minmax(0, 300px); gap: 20px; }

  .system { padding-top: 40px; padding-bottom: 72px; }
  .system-grid { grid-template-columns: 1fr; max-width: 420px; margin-top: 36px; }
  .system-card, .system-card--wide { grid-column: span 1; }

  .testimonials { border-radius: 28px 28px 0 0; padding-top: 56px; }
  .testimonials::before { width: 260%; top: 40px; }
  .testimonials .section__title br { display: none; }
  .testimonials__track { --fade: 40px; }
  .testimonials__track ul { gap: 16px; padding-inline: calc(50% - 112px); }
}

/* Touch devices: hover effects would "stick" after a tap – keep them off and
   give a short press feedback instead. */
@media (hover: none) {
  .bento__card:hover, .stat:hover, .step:hover, .system-card:hover,
  .campaign:hover, .hero-reel__card:hover, .testimonial:hover img, .testimonial:hover blockquote,
  .stat:hover img { transform: none; filter: none; }
  .system-card:hover { box-shadow: 2px 2px 10px rgb(0 0 0 / .1); }
  .hero-reel__card:hover { box-shadow: 0 0 8px rgb(255 255 255 / .2); }
  .bento__card:active, .step:active, .system-card:active, .stat:active { transform: scale(.985); transition-duration: .15s; }
}
