/* Social media hero and separate post preview */
.social-page :is(.social-hero,.social-carousel) {
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.social-hero {
  --social-pattern-white:oklch(1 0 0);
  width:100vw;
  margin-inline:calc(50% - 50vw);
  background:var(--social-pattern-white);
}
.social-falling-pattern {
  position:absolute;
  inset:0;
  z-index:-1;
  padding:4px;
  pointer-events:none;
  mask-image:radial-gradient(ellipse at center,transparent,var(--social-pattern-white));
}
.social-falling-pattern::after {
  position:absolute;
  inset:0;
  backdrop-filter:blur(11px);
  background-image:radial-gradient(circle at 50% 50%,transparent 0,transparent 2px,var(--social-pattern-white) 2px);
  background-size:8px 8px;
  content:"";
}
.social-pattern-streams {
  width:100%;
  height:100%;
  background-color:var(--social-pattern-white);
  background-position:var(--pattern-start,0 0);
  animation:social-pattern-fall 110s linear infinite,social-pattern-in .2s ease-out;
}
@keyframes social-pattern-fall {
  to { background-position:var(--pattern-end,0 0); }
}
@keyframes social-pattern-in { from { opacity:0; } }
@media (prefers-reduced-motion:reduce) {
  .mattic-site:not([data-mattic-motion]) .social-pattern-streams { animation:none; }
}
.social-pattern-streams[data-motion-offscreen],
.social-post-wall[data-motion-offscreen] .social-post-track { animation-play-state:paused; }
.social-hero-inner {
  display:grid;
  place-items:center;
  width:min(calc(100% - 2rem),61rem);
  margin-inline:auto;
  padding-top:calc(4.5rem + clamp(2.1rem,4vw,4.25rem));
}
.social-hero-copy {
  width:100%;
  text-align:center;
  animation:social-copy-in .7s ease-out backwards;
}
.social-hero-kicker { margin:0 auto clamp(1.1rem,2vw,1.5rem); }
.social-page .social-hero .social-hero-copy h1 {
  margin:0;
  font-size:clamp(2rem,5.1vw,4rem);
  line-height:1.1;
  letter-spacing:-.048em;
  font-weight:600;
  text-wrap:balance;
}
.social-network-title {
  --network-title-ink:#0866ff;
  display:flex;
  align-items:center;
  gap:.24em;
  width:max-content;
  margin:.1em auto 0;
  text-align:start;
  white-space:nowrap;
}
.social-network-title[data-network="instagram"] { --network-title-ink:#aa2869; }
.social-network-title[data-network="linkedin"] { --network-title-ink:#0a66c2; }
.social-network-title-logo {
  position:relative;
  width:.82em;
  height:.82em;
  overflow:hidden;
  perspective:180px;
}
.social-network-title-logo svg {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:.08em;
  border-radius:.17em;
  color:#fff;
}
.social-network-title-word { display:grid; align-items:center; line-height:1.2; }
.social-network-title-word > span { grid-area:1 / 1; }
.social-network-title-sizer { visibility:hidden; padding-inline-end:.08em; }
.social-network-title-live { color:var(--network-title-ink); -webkit-text-fill-color:currentColor; }
.social-network-title[data-network="instagram"] .social-network-title-name {
  background:linear-gradient(105deg,#8029a0,#b92968 50%,#b7441d);
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.social-network-title[data-typing] .social-network-title-live::after {
  margin-inline-start:.06em;
  content:"_";
  animation:social-type-cursor 1s step-end infinite;
}
@keyframes social-type-cursor { 50% { opacity:0; } }
.social-hero-actions {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.45rem;
  margin-top:clamp(1.4rem,3vw,2.15rem);
}
.social-primary-cta { display:inline-flex; align-items:center; justify-content:center; }
.social-cta-arrow { order:1; display:grid; place-items:center; }
.social-primary-cta .mattic-ui-icon { width:.9rem; height:.9rem; }
.social-hero-visual {
  --phone-entry-duration:.9s;
  --network-entry-delay:calc(2 * var(--phone-entry-duration) + .06s);
  position:relative;
  width:min(100%,34rem);
  height:clamp(19rem,46vw,29rem);
  margin-top:clamp(2rem,5vw,3.75rem);
}
.social-hero-entry-zone {
  position:absolute;
  inset:0 0 auto;
  height:calc(37% + 4.5rem);
  pointer-events:none;
}
.social-hero-phone {
  position:absolute;
  width:44%;
  aspect-ratio:1 / 2;
  border:clamp(4px,.65vw,8px) solid #17181a;
  border-radius:clamp(18px,4vw,38px);
  background:#fff;
  box-shadow:0 0 0 1px #62656b,0 12px 26px #171c2929;
}
.social-hero-phone-front { z-index:2; top:0; left:9%; }
.social-hero-phone-back { z-index:1; top:37%; right:9%; }
@keyframes social-phone-in {
  from { opacity:0; translate:0 clamp(3.5rem,8vw,5rem); }
  to { opacity:1; translate:0 0; }
}
.social-hero-phone::after {
  position:absolute;
  top:3%;
  left:50%;
  width:30%;
  height:3%;
  translate:-50% 0;
  border-radius:999px;
  background:#08090b;
  content:"";
}
.social-hero-networks {
  --network-entry-duration:.58s;
  position:absolute;
  z-index:1;
  top:17%;
  right:9%;
  left:54%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:center;
  margin:0;
  padding:0;
  list-style:none;
}
.social-hero-network {
  display:grid;
  place-items:center;
}
.social-hero-network:nth-child(2) { --network-from-x:-235%; --network-stagger:var(--network-entry-duration); }
.social-hero-network:nth-child(3) { --network-from-x:-335%; --network-stagger:calc(2 * var(--network-entry-duration)); }
@keyframes social-network-out {
  from { opacity:0; translate:var(--network-from-x,-135%) .9rem; }
  to { opacity:1; translate:0 0; }
}
.social-hero-network svg {
  box-sizing:border-box;
  width:clamp(2rem,5vw,2.75rem);
  height:auto;
  padding:.16rem;
  border-radius:.42rem;
  color:#fff;
}
[data-mattic-motion] [data-hero-entry="pending"] :is(.social-hero-phone,.social-hero-network) { opacity:0; }
[data-mattic-motion] [data-hero-entry="playing"] .social-hero-phone {
  animation:social-phone-in var(--phone-entry-duration) cubic-bezier(.22,1,.36,1) both;
}
[data-mattic-motion] [data-hero-entry="playing"] .social-hero-phone-back { animation-delay:var(--phone-entry-duration); }
[data-mattic-motion] [data-hero-entry="playing"] .social-hero-network {
  animation:social-network-out var(--network-entry-duration) cubic-bezier(.18,.8,.28,1) both;
  animation-delay:calc(var(--network-entry-delay) + var(--network-stagger,0s));
}
.social-network-instagram {
  background:radial-gradient(circle at 23% 103%, #ffdc80 4%, #f77737 29%, #e1306c 55%, #833ab4 79%, #405de6);
}
.social-network-facebook { background:#0866ff }
.social-network-linkedin { background:#0a66c2 }
.social-carousel {
  width:100vw;
  margin-inline:calc(50% - 50vw);
  color:#fff;
  background:
    linear-gradient(139deg, transparent 23%, #224fc519 39%, #224fc54d 48%, #224fc51a 56%, transparent 69%),
    #000;
}
.social-carousel-inner {
  position:relative;
  display:grid;
  align-items:center;
  width:min(calc(100% - 3rem),76rem);
  min-height:clamp(27rem,41vw,32rem);
  margin-inline:auto;
}
.social-carousel-copy { width:45%; padding-block:2.75rem; }
.social-carousel-copy h2 {
  margin:0;
  font-size:clamp(1.85rem,4vw,3.5rem);
  font-weight:600;
  letter-spacing:-.048em;
  line-height:1.15;
  text-wrap:balance;
}
.social-carousel-copy p { max-width:46ch; margin:1.1rem 0 0; color:#c9d2e0; line-height:1.65; }
.social-carousel-networks {
  display:flex;
  flex-wrap:wrap;
  gap:.65rem 1rem;
  margin:1.35rem 0 0;
  padding:0;
  list-style:none;
  color:#e0e6ef;
}
.social-carousel-networks li { display:inline-flex; align-items:center; gap:.45rem; }
.social-carousel-networks svg { width:1.35rem; height:1.35rem; padding:.15rem; border-radius:.3rem; color:white; }
.social-post-wall {
  --post-gap: .7rem;
  position:absolute;
  inset:0 3% 0 auto;
  width:40%;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--post-gap);
  mask-image:linear-gradient(
    to bottom,
    transparent 20px,
    #000 100px,
    #000 calc(100% - 100px),
    transparent calc(100% - 20px)
  );
}
.social-post-column { overflow:hidden }
.social-post-track { animation:social-post-scroll 72s linear -20s infinite }
.social-post-column:nth-child(odd) .social-post-track { animation-direction:reverse }
.social-post-column:nth-child(2) .social-post-track { animation-delay:-45s }
.social-post-set { display:grid; gap:var(--post-gap); padding-bottom:var(--post-gap) }
.social-post-card {
  position:relative;
  isolation:isolate;
  margin:0;
  overflow:hidden;
  border:1px solid #adc9ff35;
  border-radius:.25rem;
}
.social-post-card img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4 / 5;
  object-fit:cover;
}
@media (hover:hover) and (pointer:fine) {
  .social-post-card { transition:border-color .35s ease }
  .social-post-card:hover { border-color:#adc9ff90 }
}
.social-post-wall[data-paused] .social-post-track { animation-play-state:paused }
.social-wall-pause {
  position:absolute;
  z-index:3;
  right:.8rem;
  bottom:.8rem;
  width:2.3rem;
  height:2.3rem;
  border:1px solid #596174;
  border-radius:50%;
  color:white;
  background:#171819;
  cursor:pointer;
}
[data-service="social"] .proof-rail { margin-top:32px; background:var(--surface); }
@keyframes social-post-scroll { to { transform:translateY(-50%) } }
@keyframes social-copy-in { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:translateY(0) } }

@media (max-width:640px) {
  .social-hero-visual { height:clamp(13rem,72vw,26rem); }
  .social-carousel-inner { display:block; width:calc(100% - 2rem); min-height:0; }
  .social-carousel-copy { width:100%; padding:2.5rem 0 .5rem; text-align:center; }
  .social-carousel-copy p { margin-inline:auto; }
  .social-carousel-networks { justify-content:center; }
  .social-post-wall { position:relative; inset:auto; width:66%; height:clamp(14rem,62vw,21rem); margin-inline:auto; }
}
@media (max-width:410px) {
  .social-post-wall { --post-gap:.35rem }
}

body.social-page {
  overflow-x:clip;
  background-image:url("../assets/paper-grain.svg");
}

.social-orbit-section {
  --orbit-travel:500px;
  min-height:calc(100svh + var(--orbit-travel) + 5rem);
  margin-block:clamp(2rem, 6vw, 5rem);
}
.social-orbit-sticky {
  position:sticky;
  top:0;
  min-height:100svh;
  box-sizing:border-box;
  padding-top:clamp(3.5rem, 8vh, 4.5rem);
  display:grid;
  place-items:center;
}
.social-orbit-stage {
  --orbit-radius:clamp(6rem, 36vw, 16rem);
  --orbit-distance:calc(var(--orbit-radius) * var(--orbit-progress, 1));
  --orbit-card:clamp(2.6rem, 12vw, 5.5rem);
  position:relative;
  isolation:isolate;
  display:grid;
  place-items:center;
  width:100%;
  min-height:calc(2 * var(--orbit-radius) + 1.4 * var(--orbit-card));
}
.social-orbit-ring {
  position:absolute;
  width:calc(2 * var(--orbit-radius));
  aspect-ratio:1;
  border:1px solid #224fc546;
  border-radius:50%;
  opacity:var(--orbit-progress, 1);
  box-shadow:inset 0 0 0 clamp(.5rem, 2vw, 1.5rem) #f3f7ff, 0 0 0 clamp(.5rem, 2vw, 1.5rem) #f3f7ff;
}
.social-orbit-track {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  animation:social-orbit-turn 144s linear infinite;
}
.social-orbit-post {
  grid-area:1 / 1;
  width:var(--orbit-card);
  transform:rotate(var(--angle)) translateX(var(--orbit-distance)) rotate(calc(-1 * var(--angle)));
}
.social-orbit-post img {
  display:block;
  width:100%;
  height:auto;
  border:2px solid #fff;
  border-radius:.55rem;
  box-shadow:0 6px 16px #14284a29;
  animation:social-orbit-turn 144s linear infinite reverse;
}
.social-orbit-copy {
  z-index:1;
  max-width:calc(var(--orbit-radius) * 1.4);
  text-align:center;
  opacity:var(--orbit-copy, 1);
  transition:opacity .3s ease;
}
.social-orbit-copy h2 {
  margin:0;
  font-family:"Manrope",Arial,sans-serif;
  font-size:clamp(1.05rem, 4vw, 2.5rem);
  line-height:1.15;
  font-weight:600;
  letter-spacing:-.045em;
}
.social-orbit-copy p { margin:.7rem 0 0; color:#4b5568; font-size:clamp(.69rem, 2vw, .91rem); line-height:1.45 }
@keyframes social-orbit-turn { to { rotate:1turn } }
@media (max-height:650px) and (min-width:850px) {
  .social-orbit-stage { --orbit-radius:clamp(8rem, 28vh, 14rem); --orbit-card:4.2rem }
}
