/* ==================================================
   Adnect Media — Hero Redesign Override
   ================================================== */

#top .adnect-hero-root { display: block; }

/* Hide the original React-rendered hero inner block once new one is live */
#top[data-hero-swapped="1"] > div.relative.z-10:not(.adnect-hero-root) {
  display: none !important;
}

/* Adjusted section alignment */
#top[data-hero-swapped="1"] {
  align-items: center !important;
  padding-top: 7rem !important;
  padding-bottom: 4rem !important;
}

.adnect-hero-root {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) { .adnect-hero-root { padding: 0 40px; } }

.adnect-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .adnect-hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 96px;
  }
}

/* ---------- Headline ---------- */
.adnect-h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.028em;
  line-height: 1.05;
  font-size: clamp(30px, 4.95vw, 74px);
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .adnect-h1 {
    white-space: normal;
    font-size: clamp(26px, 8.2vw, 34px);
    line-height: 1.12;
  }
}
.adnect-h1 > span { display: block; }
.adnect-h1 .adnect-h1-accent {
  color: #a855f7;
  background: linear-gradient(90deg, #7c3aed 0%, #c084fc 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Sub row (socials + paragraph) ---------- */
.adnect-sub-row {
  margin-top: 36px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.adnect-socials {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-top: 4px;
}
.adnect-sicon {
  width: 41px; height: 41px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease, color .25s ease;
  text-decoration: none;
}
.adnect-sicon:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
  transform: translateY(-2px);
}

.adnect-sub-text {
  font-family: 'Manrope', sans-serif;
  color: #a1a1aa;
  font-size: 18px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0;
}
.adnect-sub-col { display: flex; flex-direction: column; gap: 16px; }

/* ---------- CTA ---------- */
.adnect-cta-row { margin-top: 30px; }

/* ---------- Typed line (inside sub-col, under paragraph) ---------- */
.adnect-typed {
  margin-top: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  color: #d4d4d8;
  letter-spacing: .005em;
  display: inline-flex;
  align-items: baseline;
  line-height: 1.5;
  opacity: 0;
  animation: adnect-rise 0.9s cubic-bezier(.2,.7,.15,1) 0.9s forwards;
}
.adnect-typed-prefix { color: #d4d4d8; }
.adnect-typed-word {
  color: #a855f7;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-left: 6px;
  white-space: nowrap;
}
.adnect-typed-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  background: #a855f7;
  margin-left: 2px;
  transform: translateY(2px);
  animation: adnect-caret-blink 0.85s steps(2, end) infinite;
  border-radius: 1px;
}
@keyframes adnect-caret-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.adnect-cta {
  display: inline-flex;
  align-items: center;
  gap: 19px;
  background: #ffffff;
  color: #0a0a0a;
  padding: 9px 11px 9px 34px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.18), 0 4px 14px rgba(0,0,0,.25);
  letter-spacing: -0.01em;
}
.adnect-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(124, 58, 237,.28), 0 6px 18px rgba(0,0,0,.3); }
.adnect-cta-arrow {
  width: 47px; height: 47px;
  border-radius: 999px;
  background: #7c3aed;
  color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.adnect-cta:hover .adnect-cta-arrow { transform: translateX(4px); }

/* ---------- Right: testimonial ---------- */
.adnect-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
@media (min-width: 1024px) { .adnect-right { justify-content: flex-end; } }

.adnect-testimonial-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-top: 100px;
}

.adnect-quote-chip {
  position: absolute;
  top: -26px; right: 30px;
  width: 58px; height: 58px;
  border-radius: 999px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
}

.adnect-testimonial {
  background: #ffffff;
  color: #111111;
  border-radius: 22px;
  padding: 44px 30px 28px 30px;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0 22px 60px rgba(0,0,0,0.45);
}
.adnect-tquote {
  font-size: 18px;
  line-height: 1.55;
  font-style: italic;
  font-weight: 500;
  margin: 0 0 22px 0;
  color: #1a1a1a;
}
.adnect-tname {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #0a0a0a;
}
.adnect-trole {
  font-size: 13px;
  color: #6b6b6b;
  margin-top: 3px;
}

/* ---------- Clients strip ---------- */
.adnect-clients {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.adnect-avatars { display: flex; }
.adnect-avatars img {
  width: 46px; height: 46px; border-radius: 999px;
  border: 2px solid #a855f7;
  object-fit: cover;
  margin-left: -12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.45);
  background: #222;
}
.adnect-avatars img:first-child { margin-left: 0; }
.adnect-clients-num {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.adnect-clients-label {
  font-size: 12px;
  color: #a1a1aa;
  margin-top: 3px;
  letter-spacing: .02em;
}

/* Hide "SCROLL TO EXPLORE" helper that sat under old hero (kept by React) */
#top[data-hero-swapped="1"] ~ * { }

/* Small-screen tweaks */
@media (max-width: 767px) {
  .adnect-sub-row { flex-direction: column; gap: 22px; }
  .adnect-socials { flex-direction: row; gap: 12px; padding-top: 0; }
  .adnect-quote-chip { right: 18px; }
  .adnect-clients { justify-content: flex-start; }
}

/* ==========================================================
   Modern entrance + micro interactions
   ========================================================== */
@keyframes adnect-rise {
  0%   { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0);  }
}
@keyframes adnect-slide-in-right {
  0%   { opacity: 0; transform: translateX(50px) scale(0.96); }
  100% { opacity: 1; transform: translateX(0)   scale(1);    }
}
@keyframes adnect-pop {
  0%   { opacity: 0; transform: scale(0.3) rotate(-18deg); }
  70%  { opacity: 1; transform: scale(1.15) rotate(6deg);  }
  100% { opacity: 1; transform: scale(1)    rotate(0);     }
}
@keyframes adnect-fade-left {
  0%   { opacity: 0; transform: translateX(-18px); }
  100% { opacity: 1; transform: translateX(0);    }
}
@keyframes adnect-shimmer {
  0%   { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}
@keyframes adnect-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes adnect-underline {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
@keyframes adnect-ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(124, 58, 237, 0.45); }
  50%      { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0);    }
}

/* Headline lines — staggered rise */
.adnect-h1 > span {
  opacity: 0;
  animation: adnect-rise 0.9s cubic-bezier(.2,.7,.15,1) forwards;
}
.adnect-h1 > span:nth-child(1) { animation-delay: 0.10s; }
.adnect-h1 > span:nth-child(2) { animation-delay: 0.25s; }
.adnect-h1 > span:nth-child(3) { animation-delay: 0.40s; }

/* Red accent line — shimmer + animated underline */
.adnect-h1 .adnect-h1-accent {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #7c3aed 0%, #c084fc 50%, #7c3aed 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: adnect-rise 0.9s cubic-bezier(.2,.7,.15,1) 0.40s forwards,
             adnect-shimmer 6s linear 1.5s infinite;
}
.adnect-h1 .adnect-h1-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.08em;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #c084fc, transparent);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: adnect-underline 0.9s cubic-bezier(.2,.7,.15,1) 1.2s forwards;
}

/* Sub-row rise */
.adnect-sub-row {
  opacity: 0;
  animation: adnect-rise 0.9s cubic-bezier(.2,.7,.15,1) 0.55s forwards;
}

/* Social icons — staggered fade in from left */
.adnect-socials .adnect-sicon {
  opacity: 0;
  animation: adnect-fade-left 0.55s cubic-bezier(.2,.7,.15,1) forwards;
}
.adnect-socials .adnect-sicon:nth-child(1) { animation-delay: 0.80s; }
.adnect-socials .adnect-sicon:nth-child(2) { animation-delay: 0.92s; }
.adnect-socials .adnect-sicon:nth-child(3) { animation-delay: 1.04s; }

/* CTA rise + attention pulse */
.adnect-cta-row {
  opacity: 0;
  animation: adnect-rise 0.9s cubic-bezier(.2,.7,.15,1) 0.75s forwards;
}
.adnect-cta-arrow { animation: adnect-ring-pulse 2.4s ease-out 1.6s infinite; }
.adnect-cta:hover .adnect-cta-arrow { animation-play-state: paused; }

/* CTA icon ticks right on hover */
.adnect-cta-arrow svg { transition: transform .3s cubic-bezier(.2,.7,.15,1); }
.adnect-cta:hover .adnect-cta-arrow svg { transform: translateX(3px); }

/* Right column entrance */
.adnect-right {
  opacity: 0;
  animation: adnect-slide-in-right 1s cubic-bezier(.2,.7,.15,1) 0.45s forwards;
}

/* Quote chip pop + float loop */
.adnect-quote-chip {
  opacity: 0;
  animation: adnect-pop 0.8s cubic-bezier(.2,.9,.2,1.4) 1.1s forwards,
             adnect-float 4s ease-in-out 2s infinite;
  transition: transform .3s ease, background-color .3s ease;
}
.adnect-testimonial-wrap:hover .adnect-quote-chip {
  background: #7c3aed;
  transform: translateY(-4px) scale(1.06);
}

/* Testimonial card lift on hover */
.adnect-testimonial {
  transition: transform .35s cubic-bezier(.2,.7,.15,1), box-shadow .35s ease;
}
.adnect-testimonial-wrap:hover .adnect-testimonial {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}

/* Avatars — staggered pop */
.adnect-avatars img {
  opacity: 0;
  animation: adnect-pop 0.6s cubic-bezier(.2,.9,.2,1.4) forwards;
  transition: transform .25s ease;
}
.adnect-avatars img:nth-child(1) { animation-delay: 1.30s; }
.adnect-avatars img:nth-child(2) { animation-delay: 1.42s; }
.adnect-avatars img:nth-child(3) { animation-delay: 1.54s; }
.adnect-avatars img:hover { transform: translateY(-3px) scale(1.06); z-index: 3; }

.adnect-clients-num,
.adnect-clients-label {
  opacity: 0;
  animation: adnect-rise 0.7s cubic-bezier(.2,.7,.15,1) 1.6s forwards;
}
.adnect-clients-label { animation-delay: 1.72s; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .adnect-h1 > span,
  .adnect-h1 .adnect-h1-accent,
  .adnect-h1 .adnect-h1-accent::after,
  .adnect-sub-row,
  .adnect-socials .adnect-sicon,
  .adnect-cta-row,
  .adnect-right,
  .adnect-quote-chip,
  .adnect-avatars img,
  .adnect-clients-num,
  .adnect-clients-label {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ==========================================================
   Services section — purple cards (original design)
   ========================================================== */
#services .grid .group.relative.rounded-2xl {
  background: linear-gradient(135deg, #3b0a7a 0%, #140532 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 44px rgba(59, 10, 122, 0.30), 0 10px 30px rgba(0, 0, 0, 0.40);
  transition: transform .35s cubic-bezier(.2,.7,.15,1), box-shadow .35s ease !important;
}
#services .grid .group.relative.rounded-2xl:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 66px rgba(91, 33, 182, 0.45), 0 16px 44px rgba(0, 0, 0, 0.5);
}

/* Reorder cards handled via DOM in thumbnail-service.js */

/* Tighten card padding a bit when we show 4 in one row */
@media (min-width: 1024px) {
  #services .grid.adnect-services-grid-4,
  #services .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  #services .grid.adnect-services-grid-4 .group.relative.rounded-2xl {
    padding: 26px !important;
    min-height: 340px !important;
  }
  #services .grid.adnect-services-grid-4 .group.relative.rounded-2xl h3 {
    font-size: 22px !important;
  }
  #services .grid.adnect-services-grid-4 .group.relative.rounded-2xl p {
    font-size: 14px !important;
  }
}

/* Soften the decorative ring overlay on purple */
#services .grid .group.relative.rounded-2xl > div[aria-hidden="true"]:first-of-type {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.25) 100%) !important;
}

/* Hover top glow — bright white-violet */
#services .grid .group.relative.rounded-2xl > div[aria-hidden="true"]:nth-of-type(2) {
  filter: blur(36px) !important;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32) 0%, transparent 70%) !important;
}

/* Heading → white */
#services .grid h3 { color: #ffffff !important; }
/* Description → translucent white */
#services .grid p { color: rgba(255, 255, 255, 0.82) !important; }
/* "SERVICE 01" label */
#services .grid .text-xs.tracking-widest { color: rgba(255, 255, 255, 0.55) !important; }

/* Category chip (EDITING / PODCASTS / PRODUCTION) */
#services .grid .group.relative.rounded-2xl > div.relative > div:first-child {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* "Learn more / Talk to us" link — white on purple */
#services .grid span.text-red-500 { color: #ffffff !important; }

/* ==========================================================
   Social Proof — creator chips turned white for contrast
   ========================================================== */
#about a[data-testid^="creator-card-"] {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease !important;
}
#about a[data-testid^="creator-card-"]:hover {
  background: #ffffff !important;
  border-color: rgba(124, 58, 237, 0.55) !important;
  transform: scale(1.05);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.30);
}

/* Creator name */
#about a[data-testid^="creator-card-"] span.text-white {
  color: #0a0a0a !important;
}
/* Subscriber count */
#about a[data-testid^="creator-card-"] span.text-zinc-400 {
  color: #6b6b6b !important;
}

/* Avatar ring — subtle dark edge instead of white/10 */
#about a[data-testid^="creator-card-"] img {
  border-color: rgba(0, 0, 0, 0.08) !important;
  background: #f4f4f5 !important;
}
#about a[data-testid^="creator-card-"]:hover img {
  border-color: rgba(124, 58, 237, 0.55) !important;
}

/* ==========================================================
   Contact form — black card with purple border
   ========================================================== */
#contact form[data-testid="contact-form"] {
  background: #000000 !important;
  border: 1px solid #a855f7 !important;
  border-radius: 22px !important;
  box-shadow: none !important;
  /* Align the form's top with the "Let's Work Together" heading and
     scale it down by 5% for a more balanced layout. */
  margin-top: 54px;
  transform: scale(0.95);
  transform-origin: top right;
}

/* Heading + helper copy */
#contact form[data-testid="contact-form"] h3 { color: #ffffff !important; }
#contact form[data-testid="contact-form"] > p { color: rgba(255, 255, 255, 0.70) !important; }

/* Field labels */
#contact form[data-testid="contact-form"] label > span { color: rgba(255, 255, 255, 0.62) !important; }

/* Inputs + textarea — transparent on black with purple border */
#contact form[data-testid="contact-form"] input,
#contact form[data-testid="contact-form"] textarea {
  background: transparent !important;
  border: 1px solid rgba(168, 85, 247, 0.45) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
}
#contact form[data-testid="contact-form"] input::placeholder,
#contact form[data-testid="contact-form"] textarea::placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
}
#contact form[data-testid="contact-form"] input:focus,
#contact form[data-testid="contact-form"] textarea:focus {
  background: rgba(168, 85, 247, 0.08) !important;
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.22) !important;
  outline: none !important;
}

/* Fine-print line next to Send button */
#contact form[data-testid="contact-form"] > div > p { color: rgba(255, 255, 255, 0.50) !important; }

/* Send Message button → purple on black card */
#contact form[data-testid="contact-form"] button[data-testid="contact-submit-button"] {
  background: #7c3aed !important;
  color: #ffffff !important;
  border: 1px solid #a855f7 !important;
  border-radius: 999px !important;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
#contact form[data-testid="contact-form"] button[data-testid="contact-submit-button"]:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #a855f7 !important;
  transform: translateY(-2px);
}

/* ==========================================================
   Portfolio — side decorations (subtle ambient)
   ========================================================== */
.adnect-port-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Corner frame brackets (film-set crop marks) */
.adnect-port-deco .adnect-corner {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  opacity: 0.55;
}
.adnect-port-deco .adnect-corner.tl { top: 40px;   left: 40px;   border-right: 0; border-bottom: 0; }
.adnect-port-deco .adnect-corner.tr { top: 40px;   right: 40px;  border-left:  0; border-bottom: 0; }
.adnect-port-deco .adnect-corner.bl { bottom: 40px; left: 40px;  border-right: 0; border-top:    0; }
.adnect-port-deco .adnect-corner.br { bottom: 40px; right: 40px; border-left:  0; border-top:    0; }

/* Side column wrappers (left and right empty space) */
.adnect-port-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  pointer-events: none;
}
.adnect-port-side.left  { left: 16%; }
.adnect-port-side.right { right: 16%; }

/* Vertical label */
.adnect-port-vlabel {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.35);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 18px 0;
  border-left: 1px solid rgba(124, 58, 237, 0.25);
  border-right: 1px solid rgba(124, 58, 237, 0.25);
  text-transform: uppercase;
  font-weight: 600;
  user-select: none;
}
.adnect-port-vlabel.flip {
  transform: rotate(0deg);
  writing-mode: vertical-rl;
}

/* Big circular side arrows (pulse + clickable) */
.adnect-port-arrow {
  pointer-events: auto;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  position: relative;
  isolation: isolate;
}
.adnect-port-arrow::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(124, 58, 237, 0.35);
  animation: adnect-port-pulse 2.6s ease-out infinite;
  z-index: -1;
}
.adnect-port-arrow:hover {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.85);
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.35);
}
@keyframes adnect-port-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.35); opacity: 0;   }
  100% { transform: scale(1.35); opacity: 0;   }
}

/* Ambient floating red dots */
.adnect-port-side .adnect-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #7c3aed;
  opacity: 0.55;
  filter: blur(0.5px);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}
.adnect-port-side .d1 { top: -70px;  left: 25%;  animation: adnect-port-float 5s ease-in-out infinite;     }
.adnect-port-side .d2 { bottom: -80px; right: 20%; animation: adnect-port-float 6.5s ease-in-out 0.8s infinite; }
.adnect-port-side .d3 { top: 50%;  left: -4px;  width: 4px; height: 4px; opacity: 0.35; animation: adnect-port-float 4s ease-in-out 1.2s infinite; }

@keyframes adnect-port-float {
  0%, 100% { transform: translateY(0)    scale(1);   opacity: 0.55; }
  50%      { transform: translateY(-14px) scale(1.25); opacity: 0.9;  }
}

/* Hide side decorations on tight screens */
@media (max-width: 1023px) {
  .adnect-port-side { display: none; }
  .adnect-port-deco .adnect-corner { width: 26px; height: 26px; }
}

/* ==========================================================
   Modern Footer Override
   ========================================================== */
footer.adnect-footer-host {
  border-top: 0 !important;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}
.adnect-footer-root {
  position: relative;
  isolation: isolate;
  padding: 84px 0 28px;
  background: linear-gradient(to bottom, #0b0b0b 0%, #050505 100%);
}
/* Top red glow strip */
.adnect-footer-glow {
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237,0.8), transparent);
  box-shadow: 0 0 40px rgba(124, 58, 237,0.55);
  z-index: 0;
}
/* Soft grid background */
.adnect-footer-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.9) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.9) 0%, transparent 70%);
  opacity: 0.6;
  z-index: 0;
}

.adnect-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .adnect-footer-inner { padding: 0 40px; } }

/* ---- Top CTA band ---- */
.adnect-footer-cta {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 44px;
}
@media (min-width: 900px) {
  .adnect-footer-cta { flex-direction: row; align-items: flex-end; gap: 48px; }
}

.adnect-status-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.07);
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #ffd4d4;
}
.adnect-status-dot {
  width: 7px; height: 7px; border-radius: 999px; background: #a855f7;
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6);
  animation: adnect-status-pulse 1.8s ease-out infinite;
}
@keyframes adnect-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(168, 85, 247,0.6); }
  50%      { box-shadow: 0 0 0 10px rgba(168, 85, 247,0);   }
}

.adnect-footer-title {
  margin: 16px 0 0 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1;
  font-size: clamp(38px, 5.2vw, 76px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adnect-footer-title .adnect-faded {
  color: #9a9a9a;
  font-weight: 800;
  letter-spacing: -0.025em;
  display: inline-block;
  opacity: 0.5;
  transition: color .35s ease, opacity .35s ease;
}
.adnect-footer-title:hover .adnect-faded {
  color: #a855f7;
  opacity: 1;
}

.adnect-footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #7c3aed;
  color: #ffffff;
  padding: 9px 9px 9px 30px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
  box-shadow: 0 12px 34px rgba(124, 58, 237, 0.35);
  white-space: nowrap;
  align-self: flex-start;
}
@media (min-width: 900px) { .adnect-footer-cta-btn { align-self: flex-end; } }
.adnect-footer-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(124, 58, 237, 0.5);
  background: #8b5cf6;
}
.adnect-footer-cta-arrow {
  width: 40px; height: 40px; border-radius: 999px;
  background: #ffffff; color: #0a0a0a;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.adnect-footer-cta-btn:hover .adnect-footer-cta-arrow { transform: translateX(3px) rotate(-3deg); }

/* Dividers */
.adnect-footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14) 50%, transparent);
}
.adnect-footer-divider.thin { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 50%, transparent); }

/* ---- Main grid ---- */
.adnect-footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 50px 0 44px;
}
@media (min-width: 768px) {
  .adnect-footer-main {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 52px;
  }
}

.adnect-footer-logo {
  height: 188px;
  width: auto;
  display: block;
  margin-left: -10px;
  filter: drop-shadow(0 8px 22px rgba(124, 58, 237, 0.25));
}
.adnect-footer-tag {
  color: #a1a1aa;
  margin: 20px 0 24px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  max-width: 420px;
}
.adnect-footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.adnect-footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d4d4d8;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}
.adnect-footer-contact svg { color: #a855f7; }
.adnect-footer-contact:hover { color: #ffffff; transform: translateX(3px); }

/* Columns */
.adnect-footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a855f7;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-left: 14px;
}
.adnect-footer-col-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 1px;
  background: #a855f7;
  transform: translateY(-0.5px);
}

.adnect-footer-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 11px;
}
.adnect-footer-list a {
  color: #d4d4d8;
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: color .25s ease, transform .25s ease, letter-spacing .25s ease;
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
}
.adnect-footer-list a::before {
  content: "→";
  opacity: 0;
  margin-right: 0;
  color: #a855f7;
  transition: opacity .25s ease, margin-right .25s ease;
  font-size: 13px;
}
.adnect-footer-list a:hover { color: #ffffff; transform: translateX(3px); }
.adnect-footer-list a:hover::before { opacity: 1; margin-right: 4px; }

/* Socials in footer */
.adnect-footer-socials { display: flex; flex-direction: column; gap: 10px; }
.adnect-fsocial {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: #d4d4d8;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease, transform .25s ease;
  width: fit-content;
}
.adnect-fsocial svg {
  width: 32px; height: 32px; padding: 7px; border-radius: 10px;
  background: rgba(124, 58, 237, 0.08);
  color: #a855f7;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
  box-sizing: border-box;
}
.adnect-fsocial:hover {
  border-color: rgba(124, 58, 237, 0.5);
  color: #ffffff;
  transform: translateX(3px);
}
.adnect-fsocial:hover svg {
  background: #a855f7; color: #ffffff;
  transform: rotate(-4deg) scale(1.06);
}

/* Bottom row */
.adnect-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: #71717a;
}
@media (min-width: 700px) { .adnect-footer-bottom { flex-direction: row; } }
.adnect-footer-bottom strong { color: #d4d4d8; font-weight: 700; }
.adnect-footer-meta {
  display: flex; align-items: center; gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
}
.adnect-footer-sep { color: #3f3f46; }
.adnect-footer-top {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #d4d4d8;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease;
}
.adnect-footer-top:hover {
  border-color: rgba(124, 58, 237, 0.6);
  background: rgba(124, 58, 237, 0.1);
  color: #ffffff;
  transform: translateY(-3px);
}
.adnect-footer-top svg { color: #a855f7; }

/* Huge watermark */
.adnect-footer-wordmark {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 20px);
  line-height: 0.9;
  user-select: none;
  pointer-events: none;
}
.adnect-footer-wordmark span {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 12vw, 180px);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.09);
  text-stroke: 1px rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 90%);
  -webkit-background-clip: text;
  background-clip: text;
}
.adnect-footer-wordmark .sp { width: clamp(10px, 2vw, 30px); -webkit-text-stroke: 0; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .adnect-status-dot { animation: none; }
}

/* ==========================================================
   Hide "SERVICE 01 / 02 / 03" labels on service cards
   ========================================================== */
#services .grid .text-xs.tracking-widest { display: none !important; }

/* ==========================================================
   Thumbnail Design — subpage (/services/thumbnail-design)
   ========================================================== */
.adnect-td-page {
  min-height: 100vh;
  background: #070708;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  position: relative;
  padding-bottom: 120px;
}
.adnect-td-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(700px 420px at 90% 120%, rgba(88, 28, 135, 0.25), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.adnect-td-page > * { position: relative; z-index: 1; }

/* Top nav */
.adnect-td-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin: 28px auto 0;
  padding: 14px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 12, 14, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.adnect-td-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
}
.adnect-td-logo span { color: #a855f7; }
.adnect-td-links { display: flex; gap: 34px; }
.adnect-td-links a {
  color: #d4d4d8;
  text-decoration: none;
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  transition: color .25s ease;
}
.adnect-td-links a:hover { color: #a855f7; }
.adnect-td-nav-actions { display: flex; align-items: center; gap: 14px; }
.adnect-td-wa {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.adnect-td-wa:hover { background: #25D366; color: #000; transform: translateY(-1px); }
.adnect-td-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #7c3aed;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color .25s ease, transform .25s ease;
}
.adnect-td-book:hover { background: #6d28d9; transform: translateY(-1px); }

/* Hero */
.adnect-td-hero {
  max-width: 1160px;
  margin: 80px auto 0;
  padding: 0 24px;
  text-align: center;
}
.adnect-td-topbar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.adnect-td-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  color: #a1a1aa;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  transition: border-color .25s ease, color .25s ease;
}
.adnect-td-back:hover { color: #ffffff; border-color: rgba(168,85,247,0.5); }
.adnect-td-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(168,85,247,0.4);
  background: rgba(124,58,237,0.10);
  color: #e9d5ff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
}
.adnect-td-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
}
.adnect-td-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.028em;
  line-height: 1.05;
  font-size: clamp(40px, 5vw, 72px);
  margin: 28px auto 0;
  max-width: 1000px;
}
.adnect-td-accent {
  background: linear-gradient(90deg, #7c3aed 0%, #c084fc 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.adnect-td-sub {
  font-family: 'Manrope', sans-serif;
  color: #a1a1aa;
  font-size: 17px;
  line-height: 1.65;
  max-width: 720px;
  margin: 22px auto 0;
}
.adnect-td-cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.adnect-td-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: #7c3aed;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(124,58,237,0.35);
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.adnect-td-btn-primary:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(124,58,237,0.48);
}
.adnect-td-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .25s ease, background-color .25s ease;
}
.adnect-td-btn-ghost:hover { border-color: rgba(168,85,247,0.6); background: rgba(168,85,247,0.05); }

/* Gallery */
.adnect-td-gallery {
  max-width: 1280px;
  margin: 120px auto 0;
  padding: 0 24px;
}
.adnect-td-gallery-head {
  text-align: center;
  margin-bottom: 56px;
}
.adnect-td-gallery-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 3.4vw, 50px);
  letter-spacing: -0.02em;
  margin: 18px 0 10px;
  color: #ffffff;
}
.adnect-td-gallery-sub {
  color: #a1a1aa;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
}

.adnect-td-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.adnect-td-grid .adnect-thumb-card:nth-child(1) { grid-column: span 6; }
.adnect-td-grid .adnect-thumb-card:nth-child(2),
.adnect-td-grid .adnect-thumb-card:nth-child(3) { grid-column: span 3; }
.adnect-td-grid .adnect-thumb-card:nth-child(4),
.adnect-td-grid .adnect-thumb-card:nth-child(5) { grid-column: span 3; }

@media (max-width: 900px) {
  .adnect-td-grid { grid-template-columns: repeat(2, 1fr); }
  .adnect-td-grid .adnect-thumb-card:nth-child(n) { grid-column: span 2; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .adnect-td-grid .adnect-thumb-card:nth-child(2),
  .adnect-td-grid .adnect-thumb-card:nth-child(3),
  .adnect-td-grid .adnect-thumb-card:nth-child(4),
  .adnect-td-grid .adnect-thumb-card:nth-child(5) { grid-column: span 3; }
}

.adnect-thumb-card {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0f0f12;
  aspect-ratio: 16 / 9;
  transition: transform .45s cubic-bezier(.2,.7,.15,1), border-color .35s ease, box-shadow .35s ease;
}
.adnect-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.7,.15,1);
}
.adnect-thumb-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 28px 60px rgba(124,58,237,0.25), 0 10px 30px rgba(0,0,0,0.45);
}
.adnect-thumb-card:hover img { transform: scale(1.04); }
.adnect-thumb-meta {
  position: absolute;
  left: 16px; bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8,8,10,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e4e4e7;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  letter-spacing: .1em;
}
.adnect-thumb-num { color: #a855f7; font-weight: 700; }
.adnect-thumb-label { text-transform: uppercase; color: #d4d4d8; }

/* Closing CTA */
.adnect-td-closing {
  max-width: 900px;
  margin: 120px auto 0;
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.adnect-td-closing h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 10px;
}
.adnect-td-closing p {
  color: #a1a1aa;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  margin: 0 0 24px;
}

/* Responsive nav tweaks */
@media (max-width: 768px) {
  .adnect-td-links { display: none; }
  .adnect-td-nav { margin: 16px 12px 0; padding: 10px 14px; }
  .adnect-td-book { padding: 8px 14px; font-size: 13px; }
  .adnect-td-hero { margin-top: 56px; }
  .adnect-td-gallery { margin-top: 80px; }
}

/* ==========================================================
   Thumbnail Design — carousel showcase (reference style)
   ========================================================== */
.adnect-td-carousel {
  position: relative;
  margin: 56px auto 0;
  max-width: 980px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.adnect-td-carousel-nav {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease, color .25s ease;
  z-index: 3;
}
.adnect-td-carousel-nav:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
  transform: translateY(-1px);
}
.adnect-td-carousel-viewport {
  flex: 1 1 auto;
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
}
.adnect-td-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.adnect-td-carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  filter: blur(4px) brightness(.6);
  transition: transform .6s cubic-bezier(.2,.7,.15,1), opacity .5s ease, filter .5s ease;
  pointer-events: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.adnect-td-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.adnect-td-carousel-slide.is-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: blur(0) brightness(1);
  z-index: 2;
  pointer-events: auto;
  box-shadow:
    0 30px 80px rgba(124, 58, 237, 0.35),
    0 18px 50px rgba(0, 0, 0, 0.6);
}
.adnect-td-carousel-slide.is-prev {
  transform: translate(-112%, -50%) scale(0.78);
  opacity: 0.55;
  filter: blur(2px) brightness(.7);
  z-index: 1;
}
.adnect-td-carousel-slide.is-next {
  transform: translate(12%, -50%) scale(0.78);
  opacity: 0.55;
  filter: blur(2px) brightness(.7);
  z-index: 1;
}
.adnect-td-carousel-slide.is-far {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

/* Ambient backlight behind the active slide */
.adnect-td-carousel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.22), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 900px) {
  .adnect-td-carousel { gap: 10px; padding: 0 10px; }
  .adnect-td-carousel-viewport { height: 300px; }
  .adnect-td-carousel-slide { width: 78%; }
  .adnect-td-carousel-slide.is-prev { transform: translate(-118%, -50%) scale(0.82); }
  .adnect-td-carousel-slide.is-next { transform: translate(18%, -50%) scale(0.82); }
  .adnect-td-carousel-nav { flex: 0 0 42px; width: 42px; height: 42px; }
}
