.showcase-float {
  position: absolute;
  z-index: 4;
  display: block;
  rotate: var(--float-angle, 0deg);
  pointer-events: none;
}
.showcase-float img { display: block; width: 100%; height: auto; }
.showcase-entered .showcase-float {
  animation: showcase-popup .8s var(--ease) var(--float-delay, 0s) both,
    showcase-hover var(--float-cycle, 5.4s) ease-in-out calc(.8s + var(--float-delay, 0s)) infinite;
}
.showcase-entered:not(.showcase-visible) .showcase-float { animation-play-state: paused; }
@keyframes showcase-popup {
  0% { opacity: 0; translate: var(--float-origin, 0 20px); scale: .65; rotate: calc(var(--float-angle, 0deg) - 9deg); }
  67% { opacity: 1; scale: 1.06; }
  100% { opacity: 1; translate: 0 0; scale: 1; rotate: var(--float-angle, 0deg); }
}
@keyframes showcase-hover {
  0%, 100% { translate: 0 0; rotate: var(--float-angle, 0deg); }
  48% { translate: 0 var(--float-lift, -9px); rotate: calc(var(--float-angle, 0deg) + 3deg); }
}

/* The two pop-ups sit outside the heading and the interactive case study cards. */
.work-popup {
  width: clamp(71px, 10vw, 137px);
  aspect-ratio: 1.22;
  border: 1px solid #6a511f63;
  border-radius: clamp(7px, 1vw, 14px);
  background: #fff6ba;
  box-shadow: 0 10px 26px -10px #59460064, 0 2px 0 #ad881639;
}
.work-popup-chrome {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 23%;
  padding: 0 9%;
  border-bottom: 1px solid #6a511f38;
}
.work-popup-chrome i { width: 6%; aspect-ratio: 1; border: 1px solid #6a511f80; border-radius: 50%; background: #f7d706; }
.work-popup-chrome i:nth-child(2) { background: #fff9d9; }
.work-popup-chrome i:nth-child(3) { background: #88813c; }
.work-popup img { width: 57%; height: 65%; margin: 3% auto 0; object-fit: contain; }
.work-popup-web { --float-angle: -12deg; --float-origin: -25px 22px; left: 11%; top: 43%; }
.work-popup-creative { --float-angle: 10deg; --float-origin: 24px 15px; --float-delay: .14s; --float-cycle: 6.2s; right: 10%; top: 26%; }

.results-showcase .sales-heading { position: relative; isolation: isolate; }
.growth-sticker { width: clamp(64px, 9vw, 124px); filter: drop-shadow(0 12px 13px #7b590044); }
.growth-sticker-shop { --float-angle: -14deg; --float-origin: -16px 17px; left: 16%; bottom: 3%; }
.growth-sticker-results { --float-angle: 12deg; --float-origin: 17px 18px; --float-delay: .17s; --float-cycle: 6.1s; right: 15%; bottom: 8%; }
.growth-section .result-centre { box-shadow: 0 16px 35px -28px #674a00a0; }

/* The captured pages share one browser so the wipe stays aligned. */
.web-proof .web-proof-heading { margin: 0 auto clamp(20px, 3.2vw, 44px); max-width: 1150px; }
.web-proof .web-proof-heading h2 { font-size: clamp(39px, 5vw, 72px); }
.web-proof-heading .glass-button-wrap { margin: 0; }
.comparison-stage {
  position: relative;
  max-width: 1150px;
  margin-inline: auto;
  padding: clamp(15px, 2.8vw, 41px);
  isolation: isolate;
  border: 1px solid #94712359;
  border-radius: clamp(18px, 3vw, 38px);
  background: radial-gradient(circle, #7e651d32 1px, transparent 1.65px) 0 0 / 13px 13px,
    radial-gradient(ellipse at 50% 58%, #fff5b4, #f7d53f 95%);
}
.comparison-browser {
  position: relative;
  z-index: 2;
  padding: clamp(7px, 1.05vw, 14px);
  border: 1px solid #98743e73;
  border-radius: clamp(13px, 1.8vw, 24px);
  background: #fff8db;
  box-shadow: 0 20px 49px -30px #3f2d006d, 0 4px 0 #b9953c24;
}
.comparison-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.comparison-chrome { padding: 2px 5px clamp(8px, 1vw, 12px); }
.comparison-chrome strong { font: 750 clamp(15px, 1.8vw, 25px)/1.15 var(--display); letter-spacing: -.04em; }
.comparison-chrome a { justify-self: end; font-size: clamp(12px, 1.14vw, 15px); font-weight: 690; text-decoration: underline; text-underline-offset: 3px; }
.comparison-lights { display: flex; gap: 5px; }
.comparison-lights i { width: clamp(5px, .65vw, 9px); aspect-ratio: 1; border: 1px solid #6b561b87; border-radius: 50%; background: #ffe100; }
.comparison-lights i:nth-child(2) { background: #fff1a2; }
.comparison-lights i:nth-child(3) { background: #807c3b; }
.comparison-browser .real-web-reveal {
  max-width: none;
  aspect-ratio: 1280 / 728;
  border-color: #181916;
  border-radius: clamp(8px, 1.15vw, 15px);
  background: #25241d;
  box-shadow: none;
}
.comparison-browser .web-reveal-before img { top: -9.34%; }
.comparison-browser .web-reveal-divider { width: 2px; background: #fff2a0; box-shadow: 0 0 0 1px #17191088; }
.comparison-browser .compare-grip {
  width: clamp(36px, 4.7vw, 58px);
  height: auto;
  aspect-ratio: 1;
  background: #ffe100;
  box-shadow: 0 3px 17px #17191086, 0 0 0 5px #fff0a34a;
}
.comparison-browser .compare-grip i { height: clamp(11px, 1.75vw, 19px); }
.comparison-folder {
  --float-angle: -14deg;
  --float-origin: -18px 14px;
  z-index: 1;
  left: -10px;
  top: 22%;
  width: clamp(55px, 9vw, 121px);
  aspect-ratio: 1.3;
  border: 1px solid #9978228a;
  border-radius: 9px;
  background: #f5cc1a;
  box-shadow: 0 12px 22px #87650036;
}
.comparison-folder::before {
  content: "";
  position: absolute;
  bottom: 99%;
  left: 6%;
  width: 40%;
  height: 18%;
  border-radius: 8px 8px 0 0;
  border: 1px solid #9978228a;
  border-bottom: 0;
  background: #f5cc1a;
}
.comparison-folder > span { position: absolute; inset: 11% 1px 1px; border-radius: inherit; background: #ffe45b; }
.comparison-sticker { --float-angle: 10deg; --float-delay: .22s; right: -2px; bottom: -21px; width: clamp(52px, 8vw, 101px); filter: drop-shadow(0 6px 6px #725a0042); }
.comparison-stage.showcase-entered .comparison-browser { animation: comparison-arrive .78s var(--ease) both; }
@keyframes comparison-arrive {
  from { opacity: .2; transform: translateY(24px) scale(.967) rotate(-1.8deg); }
  to { opacity: 1; transform: none; }
}

#paid-ads { gap: clamp(27px, 6vw, 95px); }
#paid-ads .brand-ads-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(7px, 1.2vw, 16px);
  padding: clamp(51px, 6vw, 91px) clamp(11px, 1.3vw, 20px);
  isolation: isolate;
}
#paid-ads .brand-campaign-card { width: auto; min-width: 0; }
#paid-ads .brand-campaign-card + .brand-campaign-card { margin-left: 0; }
#paid-ads .brand-campaign-card > a { text-decoration: underline; text-underline-offset: .19em; }
#paid-ads .brand-campaign-card > strong { font-size: clamp(17px, 2.8vw, 42px); }
.campaign-orbit {
  position: absolute;
  inset: 10% 2%;
  border: 1px dashed #8e6c2b72;
  border-radius: 49%;
  transform: rotate(-11deg);
  background: radial-gradient(ellipse, #fff6b180, transparent 74%);
  pointer-events: none;
}
.ads-platform {
  display: flex;
  align-items: center;
  gap: clamp(6px, .8vw, 11px);
  width: max-content;
  max-width: 60%;
  padding: clamp(6px, .95vw, 13px) clamp(8px, 1.2vw, 17px);
  border: 1px solid #a58c5485;
  border-radius: clamp(10px, 1.25vw, 17px);
  background: #fffdf1;
  color: #171910;
  font: 740 clamp(13px, 1.55vw, 22px)/1 var(--display);
  white-space: nowrap;
  box-shadow: 0 11px 32px -10px #62500071;
}
.ads-platform img { width: clamp(25px, 3.25vw, 47px); height: clamp(24px, 3vw, 45px); object-fit: contain; }
.ads-platform-google { --float-angle: -10deg; --float-origin: -23px 18px; top: 3%; left: 5%; }
.ads-platform-meta { --float-angle: 9deg; --float-origin: 26px 12px; --float-delay: .24s; --float-cycle: 6s; right: 5%; bottom: 3%; }

#paid-ads .showcase-entered .brand-campaign-card {
  --card-origin: -23px;
  animation: campaign-arrive .95s var(--ease) .06s both;
}
#paid-ads .showcase-entered .brand-campaign-card + .brand-campaign-card {
  --card-origin: 23px;
  animation-delay: .16s;
}
@keyframes campaign-arrive {
  from { opacity: .14; transform: translate(var(--card-origin), 26px) scale(.92); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .work-popup { width: clamp(52px, 15vw, 75px); top: auto; bottom: -65px; }
  .work-popup-web { left: 5%; }
  .work-popup-creative { right: 5%; bottom: -55px; }
  .growth-sticker { width: clamp(36px, 11vw, 56px); bottom: -8px; --float-lift: -5px; }
  .growth-sticker-shop { left: 0; }
  .growth-sticker-results { right: 0; }
  .results-showcase .sales-heading p { max-width: 22ch; }
  .web-proof .web-proof-heading .glass-button-wrap { margin-top: 15px; }
  .comparison-browser .real-web-reveal { aspect-ratio: 1.56; }
  .comparison-browser .web-reveal-before img { top: -8.08%; }
  .comparison-sticker { bottom: -17px; right: -3px; }
  #paid-ads .brand-campaign-card > strong { font-size: clamp(16px, 4.3vw, 26px); }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-entered .showcase-float,
  .comparison-stage.showcase-entered .comparison-browser,
  #paid-ads .showcase-entered .brand-campaign-card { animation: none; }
}
body.paused .showcase-entered .showcase-float,
body.paused .comparison-stage.showcase-entered .comparison-browser,
body.paused #paid-ads .showcase-entered .brand-campaign-card { animation: none; }

.comparison-browser [data-compare-mode="archive"] .compare-grip { transform: translate(calc(-100% - 3px), -50%); }
.comparison-browser [data-compare-mode="current"] .compare-grip { transform: translate(3px, -50%); }
