/* sowetan_ads_v2 - "the tile becomes the face". Scan-to-talk display ads for fictional demo advertisers.
   Card = stage (two rotating banners + a product tile that morphs into the live agent's face) | Talk dock (the agent's own QR
   + the page's only green: "Talk to <Name>"). The dock never rotates. Only transform / opacity / clip-path animate.
   Green rule: #0C7447 / #0A6640 / rgba(25,164,101,.28) appear on the CTA only; every live / on-air signal is red #FF2D2D. */
.ad-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; margin: 28px auto; }
.ad-band[hidden] { display: none; }

.ad { --tile: 176px; --qr: 142px; --e: cubic-bezier(.7, 0, .2, 1); --hold: 4000ms;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 196px; height: 308px; min-width: 0;
  border-radius: 18px; overflow: hidden; isolation: isolate; color: var(--ink);
  background: linear-gradient(120deg, var(--plate), var(--plate2));
  box-shadow: inset 0 1px 0 #ffffff14, 0 18px 40px -28px #000; font-family: Poppins, sans-serif; }
.ad * { box-sizing: border-box; }
.ad p, .ad ol { margin: 0; }

/* ---------- stage ---------- */
.ad-stage { position: relative; min-width: 0; overflow: hidden; }
.ad-stage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 50%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 60%),
              repeating-linear-gradient(115deg, transparent 0 22px, color-mix(in srgb, var(--ink) 3%, transparent) 22px 23px); }
.ad-tag { position: absolute; top: 10px; left: 10px; z-index: 8; padding: 4px 7px; border-radius: 5px; background: rgba(0,0,0,.5); color: #fff;
  font: 700 9px/1 Poppins, sans-serif; letter-spacing: .14em; }
.ad-pane { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ad[data-show="2"] .ad-p1, .ad[data-show="1"] .ad-p2 { opacity: 0; }
.ad-type { position: absolute; left: 24px; top: 30px; bottom: 36px; width: calc(100% - var(--tile) - 80px); min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 9px;
  translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px); transition: translate .3s ease-out; }

.ad-type > * { flex-shrink: 0; min-width: 0; }
/* banner 1: the offer */
.ad-kicker { font: 700 11px/1.2 Poppins, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--acc);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-p1 .ad-kicker, .ad-sub, .ad-reminder { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ad-orbit .ad-p1 .ad-kicker { color: #1f55e0; }
.ad-head { font: 900 48px/.92 "Barlow Condensed", "Oswald", sans-serif; letter-spacing: -.005em; text-transform: uppercase; color: var(--ink); }
.ad-line { display: block; overflow: hidden; padding: .05em 0 .02em; white-space: nowrap; }
.ad-w { display: inline-block; will-change: transform; }
.ad-br { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ad-price { display: flex; }
.ad-price > span { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--acc); color: var(--accInk);
  font: 800 24px/1 "Barlow Condensed", sans-serif; letter-spacing: .01em; transform: skewX(-6deg); white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.ad-price > .ad-stamp { font-size: 13px; letter-spacing: .14em; padding: 6px 10px; }
.ad-sub { font: 400 13px/1.3 Poppins, sans-serif; opacity: .85; overflow: hidden; }

/* banner 2: how the avatar agent works */
.ad-p2 .ad-type { gap: 8px; }
.ad-p2 .ad-kicker { align-self: flex-start; display: inline-flex; white-space: nowrap; align-items: center; gap: 7px; padding: 5px 9px 5px 8px; border-radius: 999px;
  background: rgba(10,10,12,.86); color: #FF4545; letter-spacing: .16em; font-size: 10.5px; max-width: 100%; }
.ad-rec { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #FF2D2D; animation: ad-rec 1s steps(1) infinite; }
.ad-p2 .ad-head { font-size: 36px; }
.ad-steps { position: relative; list-style: none; padding: 2px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ad-steps::before { content: ""; position: absolute; z-index: 0; left: 10px; top: 13px; bottom: 11px; width: 2px;
  background: color-mix(in srgb, var(--ink) 30%, transparent); transform-origin: center top; }
.ad-step { position: relative; z-index: 1; display: grid; grid-template-columns: 22px auto minmax(0, 1fr); align-items: center; column-gap: 9px; min-width: 0; }
.ad-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--acc); color: var(--accInk);
  font: 800 11px/1 Poppins, sans-serif; box-shadow: 0 0 0 3px color-mix(in srgb, var(--plate) 60%, var(--plate2)); }
.ad-verb { font: 800 16px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; }
.ad-stxt { display: none; }
.ad-sshort { display: block; min-width: 0; font: 500 14px/1.15 Poppins, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-reminder { font: 600 12px/1.2 Poppins, sans-serif; opacity: .75; overflow: hidden; }

/* ---------- the tile that becomes the face ---------- */
.ad-tile { position: absolute; z-index: 3; right: 24px; top: 46%; width: var(--tile); height: var(--tile); transform: translateY(-50%);
  translate: calc(var(--mx, 0) * 6px) calc(var(--my, 0) * 6px); transition: translate .3s ease-out, transform .7s var(--e) 60ms; }
.ad-clip { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 round 22px);
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--acc) 38%, transparent), transparent 66%),
              linear-gradient(155deg, color-mix(in srgb, var(--plate2) 70%, #000), color-mix(in srgb, var(--plate) 55%, #000));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12); transition: clip-path .7s var(--e) .1s; }
.ad-refurb .ad-clip { background: radial-gradient(circle at 50% 52%, rgba(63,208,255,.26), transparent 62%),
  radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 66%), linear-gradient(155deg, #26325a, #0e1530); }
.ad-refurb .ad-ghost { opacity: .1; }
.ad-ghost { position: absolute; left: -6%; bottom: -34%; font: 900 220px/1 "Barlow Condensed", sans-serif; color: #fff; opacity: .07;
  animation: ad-drift 12s ease-in-out infinite alternate; translate: calc(var(--mx, 0) * 3px) calc(var(--my, 0) * 3px); transition: opacity .4s .3s; }
.ad-art { position: absolute; inset: 0; display: grid; place-items: center; animation: ad-float 6s ease-in-out infinite; }
.ad-art svg { width: 85%; max-width: 150px; height: auto; filter: drop-shadow(0 12px 16px rgba(0,0,0,.4));
  transition: opacity .5s ease .2s, transform .5s var(--e) .2s; }
.ad-pw { position: absolute; inset: 0; opacity: 0; transform: scale(1.12); transition: opacity .6s ease .1s, transform .6s var(--e) .1s; }
.ad-portrait { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  animation: ad-breathe 4.8s ease-in-out infinite alternate, ad-sway 7s ease-in-out infinite; }
.ad-portrait { --breathe: 1.032; }
.ad-catch { position: absolute; left: 26%; top: 24%; width: 48%; height: 16%; border-radius: 50%; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), transparent); animation: ad-catch 5.6s linear infinite var(--catch, 0ms); }
.ad-ring { position: absolute; inset: -6px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: conic-gradient(from 0deg, var(--acc), transparent 30%, var(--acc) 55%, transparent 80%, var(--acc));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: ad-spin 12s linear infinite; transition: opacity .2s; }
.ad-onair { position: absolute; right: -2px; bottom: 8%; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px 4px 7px;
  border-radius: 999px; background: #FF2D2D; color: #fff; font: 800 10px/1 Poppins, sans-serif; letter-spacing: .08em;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
.ad-onair i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ad-onair i::after, .ad-mini-air::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ad-ping 1.8s ease-out infinite; }
.ad-chip { position: absolute; top: 2px; left: 2px; width: 36px; height: 36px; padding: 4px; display: grid; place-items: center; border-radius: 10px;
  background: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.55); transform: scale(0); transition: transform .2s; }
.ad-chip svg { width: 100%; height: auto; }

/* banner 2 resting state (also the calm "finished" state) */
.ad[data-show="2"] .ad-clip { clip-path: inset(0 round 50%); transition: clip-path .7s var(--e) 60ms; }
.ad[data-show="2"] .ad-ghost { opacity: 0; transition: opacity .3s; }
.ad[data-show="2"] .ad-art svg { opacity: 0; transform: scale(.6); transition: opacity .4s ease 60ms, transform .4s var(--e) 60ms; }
.ad[data-show="2"] .ad-pw { opacity: 1; transform: none; transition: opacity .6s ease .26s, transform .6s var(--e) .26s; }
.ad[data-show="2"] .ad-ring { opacity: 1; transition: opacity .36s .5s; }
.ad[data-show="2"] .ad-onair { opacity: 1; transform: none; transition: opacity .24s .62s, transform .24s var(--e) .62s; }
.ad[data-show="2"] .ad-chip { transform: scale(1); transition: transform .26s cubic-bezier(.3, 1.7, .5, 1) .7s; }

/* light sweep (1 -> 2), accent flood (2 -> 1), red pointer toward the QR */
.ad-sweep { position: absolute; z-index: 6; top: -10%; bottom: -10%; left: 0; width: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); transform: translateX(-120%) skewX(-20deg); }
.ad-flood { position: absolute; z-index: 6; inset: 0; pointer-events: none; background: color-mix(in srgb, var(--acc) 85%, transparent);
  transform: translateX(118%) skewX(-8deg); }
.ad-point { position: absolute; z-index: 5; right: 2px; top: 46%; display: flex; gap: 0; transform: translateY(-50%); opacity: 0; pointer-events: none; }
.ad-point b { width: 7px; height: 12px; background: #FF2D2D; clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%); }
.ad-point b:nth-child(2) { opacity: .7; } .ad-point b:nth-child(3) { opacity: .4; }

/* the viewer's question */
.ad-ask { position: absolute; z-index: 4; right: 20px; top: calc(46% + var(--tile) / 2 + 12px); max-width: 214px;
  padding: 5px 10px; border: 1px solid var(--acc); border-radius: 12px; background: color-mix(in srgb, var(--plate2) 82%, transparent);
  font: 500 11.5px/1.25 Poppins, sans-serif; text-align: right; opacity: 0; transition: opacity .2s; }
.ad-ask small { display: block; font: 600 9.5px/1.2 Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.ad[data-show="2"] .ad-ask { opacity: 1; }

.ad-legal { position: absolute; z-index: 4; left: 24px; bottom: 11px; max-width: calc(100% - 120px); font: 400 9.5px/1.2 Poppins, sans-serif;
  opacity: .62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-dots { position: absolute; z-index: 7; right: 22px; bottom: 13px; display: flex; gap: 6px; }
.ad-dots button { position: relative; width: 26px; height: 6px; padding: 0; border: 0; border-radius: 3px; cursor: pointer; overflow: visible;
  background: color-mix(in srgb, var(--ink) 26%, transparent); }
.ad-dots button::before { content: ""; position: absolute; inset: -10px -3px; }
.ad-prog { position: absolute; inset: 0; border-radius: inherit; background: color-mix(in srgb, var(--ink) 80%, transparent);
  transform: scaleX(0); transform-origin: left center; }
.ad.is-calm .ad-dots [aria-pressed="true"] .ad-prog { transform: none; }
.ad-dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Talk dock: never rotates ---------- */
.ad-dock { position: relative; z-index: 2; min-width: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px;
  padding: 12px; background: var(--dock); color: #fff; box-shadow: inset 1px 0 0 rgba(255,255,255,.06); }
.ad-who { display: flex; align-items: center; gap: 10px; min-width: 0; height: 40px; }
.ad-mini { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.ad-mini img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 22%; display: block;
  animation: ad-breathe 4.8s ease-in-out infinite alternate; }
.ad-mini-air { position: absolute; right: -2px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #FF2D2D; box-shadow: 0 0 0 2px var(--dock); }
.ad-who > b { min-width: 0; font: 800 13px/1.05 "Barlow Condensed", sans-serif; letter-spacing: .05em; }
.ad-who-w { display: block; opacity: .8; }
.ad-who-n { display: block; font-size: 19px; letter-spacing: .03em; color: color-mix(in srgb, var(--acc) 72%, #fff); }
.ad-who > b.ad-who-m { display: none; }
.ad-qr { --qri: var(--qrpx, 144px); position: relative; align-self: center; display: grid; place-items: center; flex: none; width: 164px; height: 164px;
  padding: 0; border-radius: 10px; background: #fff; }
.ad-qr img { display: block; width: var(--qri); height: var(--qri); }
.ad-qr:focus-visible { outline: 3px solid var(--acc); outline-offset: 9px; }
.ad-brk { position: absolute; inset: -6px; pointer-events: none; }
.ad-brk i { position: absolute; width: 18px; height: 18px; border: 3px solid var(--acc); }
.ad-brk i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.ad-brk i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.ad-brk i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.ad-brk i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.ad-scan { position: absolute; left: calc((100% - var(--qri)) / 2); right: calc((100% - var(--qri)) / 2); top: calc((100% - var(--qri)) / 2); height: 2px; background: rgba(255,45,45,.35); mix-blend-mode: multiply;
  opacity: 0; pointer-events: none; box-shadow: 0 0 6px rgba(255,45,45,.25); }
.ad-code { display: block; text-align: center; font: 500 9px/1.2 "Source Code Pro", monospace; letter-spacing: 0; color: rgba(255,255,255,.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the one green thing on the page */
.ad-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; overflow: hidden;
  border-radius: 12px; background: #0C7447; color: #fff; text-decoration: none; white-space: nowrap;
  font: 800 14px/1 Poppins, sans-serif; letter-spacing: -.005em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 16px -10px rgba(0,0,0,.7);
  transition: transform .18s ease-out, box-shadow .18s ease-out, background-color .18s; }
.ad-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent); transform: translateX(-120%) skewX(-20deg);
  animation: ad-shine 9s ease-in-out infinite 2s; }
.ad-cta:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 4px rgba(25,164,101,.28), 0 10px 18px -10px rgba(0,0,0,.7); }
.ad-cta:active { background: #0A6640; transform: translateY(2px) scale(.982); box-shadow: inset 0 3px 7px rgba(0,0,0,.4); transition-duration: 40ms; }
.ad-cta:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 6px #0C7447; }
.ad-ctx { flex: 0 0 auto; }
.ad-arr { flex: none; font-weight: 700; transition: transform .18s; }
.ad-cta:hover .ad-arr { transform: translateX(2px); }
.ad-wave { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.ad-wave i { width: 3px; height: 14px; border-radius: 2px; background: #fff; transform: scaleY(.35); animation: ad-wave 1.1s ease-in-out infinite; }
.ad-wave i:nth-child(2) { animation-delay: .18s; } .ad-wave i:nth-child(3) { animation-delay: .36s; }

/* ---------- morph 1 -> 2: "the tile becomes the face" ---------- */
.ad-go2 .ad-sweep { animation: ad-sweep .65s ease-out both; }
.ad-go2 .ad-p1 { animation: ad-keep .42s backwards; }
.ad-go2 .ad-p1 .ad-w { animation: ad-up-out .32s var(--e) both; }
.ad-go2 .ad-p1 .ad-br + .ad-line .ad-w { animation-delay: 80ms; }
.ad-go2 .ad-p1 .ad-kicker, .ad-go2 .ad-p1 .ad-price, .ad-go2 .ad-p1 .ad-sub { animation: ad-fade-out .16s both; }
.ad-go2 .ad-p2 .ad-kicker { animation: ad-fade-in .3s .3s both; }
.ad-go2 .ad-p2 .ad-w { animation: ad-rise .46s var(--e) both; animation-delay: calc(320ms + var(--i) * 40ms); }
.ad-go2 .ad-p2 .ad-reminder { animation: ad-fade-in .3s .7s both; }
.ad-go2 .ad-p2 .ad-steps { animation: ad-fade-in .32s .5s both; }

/* ---------- morph 2 -> 1: "iris open" ---------- */
.ad-go1 .ad-flood { animation: ad-flood .5s var(--e) both; }
.ad-go1 .ad-p2 { animation: ad-keep .32s backwards; }
.ad-go1 .ad-p2 .ad-type { animation: ad-down-out .3s ease-in both; }
.ad-go1 .ad-art svg { animation: ad-drop .6s var(--e) .2s both; }
.ad-go1 .ad-p1 .ad-w { animation: ad-slam-in .42s var(--e) both; animation-delay: calc(380ms + var(--i) * 70ms); }
.ad-go1 .ad-p1 .ad-kicker, .ad-go1 .ad-p1 .ad-sub { animation: ad-fade-in .3s .5s both; }
.ad-go1 .ad-p1 .ad-price > span { animation: ad-slam .3s 650ms both; }

/* ---------- each hold: brackets lock on, one scan sweep, progress ---------- */
.ad-kick .ad-brk { animation: ad-lock .4s var(--e) both; }
.ad-kick .ad-scan { animation: ad-scan .9s linear .4s both; }
.ad-kick .ad-dots [aria-pressed="true"] .ad-prog { animation: ad-prog var(--hold) linear both; }
.ad:not(.is-calm):not(.ad-kick)[data-show="2"] .ad-step { opacity: .35; }
.ad:not(.is-calm):not(.ad-kick)[data-show="2"] .ad-steps::before { transform: scaleY(0); }
.ad:not(.is-calm):not(.ad-kick)[data-show="2"] .ad-ask { opacity: 0; }
.ad-kick[data-show="2"] .ad-steps::before { animation: ad-draw .6s var(--e) both; }
.ad-kick[data-show="2"] .ad-step { animation: ad-lit .22s ease-out both; }
.ad-kick[data-show="2"] .ad-step .ad-num { animation: ad-disc .22s ease-out both; }
.ad-kick[data-show="2"] .ad-step[data-n="1"], .ad-kick[data-show="2"] .ad-step[data-n="1"] .ad-num { animation-delay: .6s; }
.ad-kick[data-show="2"] .ad-step[data-n="2"], .ad-kick[data-show="2"] .ad-step[data-n="2"] .ad-num { animation-delay: 1.2s; }
.ad-kick[data-show="2"] .ad-step[data-n="3"], .ad-kick[data-show="2"] .ad-step[data-n="3"] .ad-num { animation-delay: 1.8s; }
.ad-kick[data-show="2"] .ad-point { animation: ad-point .9s ease-in-out .9s both; }
.ad-kick[data-show="2"] .ad-ask { animation: ad-ask-in .3s ease-out 3s both; }

/* ---------- pause (hover, focus, offscreen, hidden tab) and calm ---------- */
.ad[data-paused], .ad[data-paused] *, .ad[data-paused] *::before, .ad[data-paused] *::after { animation-play-state: paused !important; }
.ad[data-paused] .ad-scan { visibility: hidden; }
.ad.is-calm *, .ad.is-calm *::before, .ad.is-calm *::after { animation: none !important; transition: opacity .12s !important; }
.ad.is-calm .ad-scan, .ad.is-calm .ad-point, .ad.is-calm .ad-sweep { display: none; }
.ad.is-calm .ad-tile, .ad.is-calm .ad-type, .ad.is-calm .ad-ghost { translate: none; }
.ad.is-calm .ad-wave i { transform: scaleY(.6); } .ad.is-calm .ad-wave i:nth-child(2) { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .ad *, .ad *::before, .ad *::after { animation: none !important; transition: opacity .12s !important; }
  .ad-scan, .ad-point, .ad-sweep { display: none; }
}

/* ---------- keyframes ---------- */
@keyframes ad-keep { from, to { opacity: 1; } }
@keyframes ad-fade-out { to { opacity: 0; } }
@keyframes ad-fade-in { from { opacity: 0; } }
@keyframes ad-up-out { to { transform: translateY(-105%); } }
@keyframes ad-rise { from { transform: translateY(110%); } }
@keyframes ad-down-out { to { transform: translateY(14px); opacity: 0; } }
@keyframes ad-slam-in { from { transform: translateY(40%) scale(1.25); opacity: 0; } }
@keyframes ad-slam { 0% { transform: skewX(-6deg) scale(1.25); opacity: 0; } 60% { transform: skewX(-6deg) scale(.98); opacity: 1; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
  100% { transform: skewX(-6deg) scale(1); box-shadow: 0 2px 0 rgba(0,0,0,.18); } }
@keyframes ad-drop { from { opacity: 0; transform: translateY(-12px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes ad-sweep { 0% { opacity: 1; transform: translateX(-120%) skewX(-20deg); } 100% { opacity: 1; transform: translateX(420%) skewX(-20deg); } }
@keyframes ad-flood { from { transform: translateX(118%) skewX(-8deg); } to { transform: translateX(-118%) skewX(-8deg); } }
@keyframes ad-lock { from { transform: scale(1.1); opacity: 0; } }
@keyframes ad-scan { 0% { opacity: 0; transform: translateY(0); } 6% { opacity: 1; } 94% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(var(--qri, var(--qr)) - 2px)); } }
@keyframes ad-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ad-draw { from { transform: scaleY(0); } }
@keyframes ad-lit { from { opacity: .35; } }
@keyframes ad-disc { from { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--acc), 0 0 0 3px color-mix(in srgb, var(--plate) 60%, var(--plate2)); } }
@keyframes ad-point { 0% { opacity: 0; transform: translate(0, -50%); } 15% { opacity: 1; } 30% { transform: translate(10px, -50%); } 50% { transform: translate(0, -50%); }
  70% { transform: translate(10px, -50%); } 85% { opacity: 1; transform: translate(0, -50%); } 100% { opacity: 0; transform: translate(4px, -50%); } }
@keyframes ad-ask-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes ad-breathe { from { scale: 1; } to { scale: var(--breathe, 1.025); } }
@keyframes ad-sway { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1px; } }
@keyframes ad-catch { 0%, 97.4% { opacity: 0; } 98.7% { opacity: .18; } 100% { opacity: 0; } }
@keyframes ad-float { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }
@keyframes ad-drift { from { transform: translateX(0); } to { transform: translateX(-8px); } }
@keyframes ad-spin { to { rotate: 360deg; } }
@keyframes ad-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes ad-rec { 0% { opacity: 1; } 50% { opacity: .15; } }
@keyframes ad-wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes ad-shine { 0%, 88% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(320%) skewX(-20deg); } }

@media (min-width: 1441px) { .ad-p1 .ad-head { font-size: 54px; } .ad-p2 .ad-head { font-size: 38px; } }
/* ---------- narrower desktops: two cards side by side, smaller tile, steps as rows ---------- */
@media (max-width: 1440px) and (min-width: 1101px) {
  .ad { --tile: 140px; }
  .ad-type { width: calc(100% - var(--tile) - 64px); }
  .ad-head { font-size: 40px; }
  .ad-p2 .ad-head { font-size: 30px; }
  .ad-steps { gap: 5px; }
  .ad-sshort { font-size: 13px; }
  .ad-reminder { font-size: 11px; line-height: 1.25; }   /* stays a 2-line clamp: never cut a compliance phrase mid-word */
  .ad-ask, .ad-ghost { display: none; }
  .ad-sub { font-size: 12px; }
  .ad-p1 .ad-kicker { letter-spacing: .14em; }
}
/* tablets: one card per row */
@media (max-width: 1100px) { .ad-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- phones: stage on top (fixed 10:7 box), dock row underneath ---------- */
@media (max-width: 720px) {
  .ad-band { margin: 4px 0; gap: 12px; }
  .ad { --tile: clamp(112px, 34vw, 140px); --qr: 122px; display: block; height: auto; }
  .ad-stage { aspect-ratio: 10 / 7; }
  .ad-tag { top: 8px; left: 8px; }
  .ad-type { left: 16px; top: 30px; bottom: 28px; width: calc(100% - var(--tile) - 44px); gap: 7px; }
  .ad-tile { right: 16px; top: 48%; }
  .ad-kicker { font-size: 10px; letter-spacing: .12em; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ad-head { font-size: 30px; }
  .ad-price > span { font-size: 18px; white-space: normal; }
  .ad-price > .ad-stamp { font-size: 11px; letter-spacing: .1em; }
  .ad-sub, .ad-reminder, .ad-ask, .ad-ghost, .ad-point, .ad-steps::before { display: none; }
  .ad-art svg { width: 80%; }
  /* banner 2: headline across the top, steps left, portal bottom-right */
  .ad-p2 .ad-type { top: 30px; bottom: auto; width: calc(100% - 32px); justify-content: flex-start; gap: 6px; }
  .ad-p2 .ad-kicker { display: inline-flex; font-size: 9.5px; padding: 4px 8px 4px 7px; }
  .ad-p2 .ad-head { font-size: 24px; }
  .ad-steps { width: calc(100% - var(--tile) * .74 - 10px); grid-template-columns: minmax(0, 1fr); gap: 5px; margin-top: 2px; }
  .ad-step { grid-template-columns: 20px auto minmax(0, 1fr); align-items: center; column-gap: 7px; }
  .ad-num { width: 20px; height: 20px; font-size: 10px; }
  .ad-verb { font-size: 14px; }
  .ad-sshort { display: block; font: 500 12px/1.15 Poppins, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ad[data-show="2"] .ad-tile { transform: translateY(calc(-50% + 26px)) translateX(6px) scale(.76); }
  .ad-onair { font-size: 11px; padding: 5px 9px 5px 8px; }
  .ad[data-show="2"] .ad-chip { transform: scale(1.15); }
  .ad-legal { left: 16px; bottom: 8px; max-width: calc(100% - 96px); font-size: 8.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ad-dots { right: 16px; bottom: 11px; }
  /* dock row: QR left, who + agent code + CTA right */
  .ad-dock { display: grid; grid-template-columns: 140px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 7px;
    align-content: center; height: 160px; padding: 10px 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
  .ad-qr { --qri: 124px; grid-column: 1; grid-row: 1 / span 3; width: 140px; height: 140px; }
  .ad-brk { inset: -4px; } .ad-brk i { width: 15px; height: 15px; }
  .ad-who { grid-column: 2; height: auto; gap: 8px; }
  .ad-mini { width: 32px; height: 32px; box-shadow: 0 0 0 2px #fff; }
  .ad-who > b { display: none; }
  .ad-who > b.ad-who-m { display: block; font: 700 12px/1.2 Poppins, sans-serif; letter-spacing: 0; }
  .ad-who-m span { color: color-mix(in srgb, var(--acc) 72%, #fff); }
  .ad-code { grid-column: 2; text-align: left; white-space: normal; font-size: 9.5px; }
  .ad-cta { grid-column: 2; min-height: 46px; font-size: 13px; gap: 6px; padding: 0 8px; }
  .ad-wave { height: 12px; } .ad-wave i { height: 12px; }
}
@media (max-width: 380px) {
  .ad-dock { column-gap: 10px; padding: 10px; }
  .ad-cta { font-size: 12.5px; padding: 0 6px; }
  .ad-arr { display: none; }
  .ad-price > span { font-size: 15px; }
  .ad-p1 .ad-kicker { letter-spacing: .08em; }
  .ad-code { font-size: 9px; letter-spacing: -.01em; }
}
