/* css/contact-social.css — "bounce cards" for the social channels in the contact page hero.
 * The four cards sit fanned out and pop in with a bounce; the hovered card straightens and lifts
 * while its neighbours slide aside; a click launches the card away and then opens the channel
 * (js/site/contact-social.js). Loaded on contact.html only. */

.cs-follow__label {
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--se-signal-400, #a6cd3e);
}
.cs-follow__label span { font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: rgb(226 235 246 / 0.6); }

.cs-bounce {
  --w: 168px; --h: 200px; --overlap: -12px; --push: 38px;
  list-style: none; margin: 0; padding: 14px 0 22px 6px;
  display: flex; align-items: flex-start;
}
.cs-card {
  --r: 0deg; --y: 0px;
  position: relative; flex: none; width: var(--w); height: var(--h);
  rotate: var(--r); translate: 0 var(--y);
  transition: rotate 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), translate 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cs-card + .cs-card { margin-left: var(--overlap); }
.cs-card:nth-child(1) { --r: -10deg; --y: 12px; z-index: 1; }
.cs-card:nth-child(2) { --r: -3.5deg; --y: 0px; z-index: 2; }
.cs-card:nth-child(3) { --r: 3.5deg; --y: 0px; z-index: 3; }
.cs-card:nth-child(4) { --r: 10deg; --y: 12px; z-index: 4; }

.cs-card__link {
  --brand: #0a66c2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 100%; box-sizing: border-box; padding: 14px 10px;
  border-radius: 24px; border: 4px solid rgb(255 255 255 / 0.95);
  background: var(--brand); color: #fff; text-decoration: none; text-align: center;
  box-shadow: 0 18px 34px -14px rgb(1 11 28 / 0.75);
  animation: cs-pop 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 110ms + 200ms);
}
.cs-card--instagram .cs-card__link { --brand: #e1306c; background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.cs-card--x .cs-card__link { --brand: #000; background: #000; }
.cs-card--youtube .cs-card__link { --brand: #ff0000; }
.cs-card__logo { display: grid; place-items: center; width: 68px; height: 68px; }
.cs-card__logo svg { width: 58px; height: 58px; }
.cs-card__name { font-weight: 800; font-size: 1.18rem; line-height: 1.1; }
.cs-card__handle { font-size: 0.84rem; font-weight: 600; opacity: 0.85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@keyframes cs-pop {
  0% { scale: 0; opacity: 0; }
  45% { scale: 1.12; opacity: 1; }
  65% { scale: 0.94; }
  82% { scale: 1.03; }
  100% { scale: 1; opacity: 1; }
}

/* Hover / keyboard focus: the card straightens and lifts, neighbours slide out of the way. */
.cs-card:is(:hover, :focus-within) { rotate: 0deg; translate: 0 -16px; scale: 1.08; z-index: 10; }
.cs-card:is(:hover, :focus-within) ~ .cs-card { translate: var(--push) var(--y); }
.cs-card:has(~ .cs-card:is(:hover, :focus-within)) { translate: calc(var(--push) * -1) var(--y); }
.cs-card:is(:hover, :focus-within) .cs-card__link { box-shadow: 0 26px 44px -16px color-mix(in srgb, var(--brand) 70%, #01152f); }
.cs-card__link:focus-visible { outline: 3px solid #a6cd3e; outline-offset: 4px; }

/* Click: the chosen card bounces and flies off; the rest drop back. Then the page redirects. */
.cs-card.is-launching { z-index: 20; }
.cs-card.is-launching .cs-card__link { animation: cs-launch 0.6s cubic-bezier(0.55, 0, 0.75, 0.2) forwards; }
.cs-bounce.is-leaving .cs-card:not(.is-launching) .cs-card__link { animation: cs-settle 0.45s ease forwards; }
@keyframes cs-launch {
  0% { scale: 1; translate: 0 0; rotate: 0deg; opacity: 1; }
  30% { scale: 1.2; translate: 0 8px; rotate: -4deg; }
  100% { scale: 0.7; translate: 40px -150px; rotate: 18deg; opacity: 0; }
}
@keyframes cs-settle { to { scale: 0.9; opacity: 0.35; } }

/* Phones: smaller cards, still fanned; the handle is dropped to keep it clean. */
/* Tablets / small laptops: one step down so four cards still fit in a row. */
@media (max-width: 680px) {
  .cs-bounce { --w: 130px; --h: 158px; --overlap: -8px; --push: 28px; }
  .cs-card__logo { width: 54px; height: 54px; }
  .cs-card__logo svg { width: 46px; height: 46px; }
  .cs-card__name { font-size: 1rem; }
  .cs-card__handle { font-size: 0.74rem; }
}
@media (max-width: 480px) {
  .cs-bounce { --w: 88px; --h: 116px; --overlap: -4px; --push: 14px; padding-left: 2px; }
  .cs-card__link { border-width: 3px; border-radius: 18px; padding: 8px 6px; gap: 4px; }
  .cs-card__logo { width: 40px; height: 40px; }
  .cs-card__logo svg { width: 35px; height: 35px; }
  .cs-card__name { font-size: 0.84rem; }
  .cs-card__handle { display: none; }
  .cs-card:nth-child(1), .cs-card:nth-child(4) { --y: 8px; }
}
@media (max-width: 350px) {
  .cs-bounce { --w: 72px; --h: 98px; --overlap: -3px; }
  .cs-card__logo svg { width: 30px; height: 30px; }
  .cs-card__name { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-card, .cs-card__link { transition: none; animation: none !important; }
  .cs-card:is(:hover, :focus-within) { scale: 1; }
}
