/* ============================================================
   SOCIAL: A NOSSA PÁGINA DE INSTAGRAM (V6, 28 set 2026)
   Cena presa ao scroll em três fitas verticais, cores vivas da marca:
   a da esquerda desce de cima, a do meio sobe de baixo, a da direita desce de cima.
   Cada fita é uma parte da cena: perfil, reels, publicação com vários slides.
   Preparada para crescer: cada fita é um .sx-rb genérico (uma rede nova, como o TikTok,
   é mais uma fita ou troca o conteúdo de uma). Só transform e opacity nas animações.
   JS em assets/js/social.js. Prefixo .sx.
   ============================================================ */
.sx { position: relative; margin-top: var(--section-y); height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: transparent; color: #fff; } /* sem fundo próprio: enquanto as fitas entram vê-se o fundo do site, não um bloco preto */
.sx a { color: inherit; text-decoration: none; }

/* ── as três fitas (fundo) ── */
.sx-rbs { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.sx-rb { position: relative; overflow: hidden; will-change: transform; }
.sx-rb::before { content: ""; position: absolute; inset: 0; }
.sx-rb--1::before { background: radial-gradient(90% 60% at 30% 20%, #FF8A2A 0%, transparent 70%), linear-gradient(180deg, #FF6A00 0%, #FF5500 55%, #F2410B 100%); }
.sx-rb--2::before { background: radial-gradient(80% 55% at 70% 80%, #FF6B9E 0%, transparent 70%), linear-gradient(0deg, #FF2878 0%, #F0306A 50%, #E11D63 100%); }
.sx-rb--3::before { background: radial-gradient(90% 60% at 40% 20%, #B45CFF 0%, transparent 70%), linear-gradient(180deg, #9A3BF0 0%, #8B2FE0 55%, #6C1FC0 100%); }
/* costura clara entre fitas, como se a cena fosse cortada em três */
.sx-rb + .sx-rb { box-shadow: -1px 0 0 rgba(255, 255, 255, .22); }
/* palavra gigante de fundo em cada fita */
.sx-ghost { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(90px, 13vw, 210px); letter-spacing: -.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22); }
.sx-rb--2 .sx-ghost { transform: translate(-50%, -50%) rotate(90deg); }

/* ── conteúdo de cada fita ── */
.sx-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); z-index: 2; }
.sx-col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 110px clamp(16px, 2.4vw, 40px) 40px; min-width: 0; }
.sx-tag { position: absolute; top: 96px; left: clamp(16px, 2.4vw, 40px); display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.sx-tag b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-weight: 400; font-size: 10px; letter-spacing: 0; }

/* coluna 1: título e perfil */
.sx-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.1vw, 48px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.sx-title em { font-style: normal; display: inline-block; padding: 0 .12em; margin-left: -.12em; background: #fff; color: #FF5500; border-radius: .12em; }
.sx-lead { margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .88); max-width: 34ch; }
.sx-profile { margin-top: 26px; width: 100%; max-width: 360px; padding: 18px; border-radius: 22px; background: rgba(20, 6, 0, .22); border: 1px solid rgba(255, 255, 255, .28); }
.sx-id { display: flex; align-items: center; gap: 14px; }
.sx-avatar { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #FFD36B, #FF5500, #FF2878, #8B2FE0, #FFD36B); }
.sx-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 2px solid #1a0a05; }
.sx-name b { display: block; font-size: 16px; font-weight: 700; }
.sx-name span { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.sx-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.sx-stat { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .14); }
.sx-stat b { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sx-stat span { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.sx-follow { margin-top: 14px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 20px; border-radius: 99px;
  background: #fff; color: #1a0a05 !important; font-weight: 700; font-size: 15px; transition: transform .4s var(--ease-fluid, ease); }
.sx-follow:hover { transform: translateY(-2px); }
.sx-follow i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #FF5500, #FF2878 55%, #8B2FE0); }
.sx-follow svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* coluna 2: um reel a tocar, com a interface do Instagram */
.sx-reels { position: relative; width: min(100%, 310px); aspect-ratio: 9 / 16; max-height: 70vh; }
.sx-reel { position: absolute; inset: 0; display: block; border-radius: 28px; overflow: hidden; background: #000; border: 5px solid #120812;
  box-shadow: 0 34px 70px -20px rgba(60, 0, 30, .65); transform: rotate(-2deg); }
.sx-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 16%, transparent 58%, rgba(0,0,0,.72) 100%); z-index: 1; }
.sx-reel-hit { position: absolute; inset: 0; z-index: 2; }
.sx-reel-top { position: absolute; left: 14px; right: 10px; top: 12px; z-index: 3; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.sx-reel-top b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.sx-sound { pointer-events: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; }
.sx-sound svg { width: 17px; height: 17px; fill: #fff; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sx-sound .sx-ic-on, .sx-sound[aria-pressed="true"] .sx-ic-off { display: none; }
.sx-sound[aria-pressed="true"] .sx-ic-on { display: block; }
.sx-rail { position: absolute; right: 8px; bottom: 74px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sx-rail a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.sx-ic svg { width: 25px; height: 25px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.sx-rail .sx-heart svg { fill: #fff; stroke: none; }
.sx-rail a:last-child svg { fill: #fff; stroke: none; }
.sx-reel-foot { position: absolute; left: 12px; right: 52px; bottom: 16px; z-index: 3; }
.sx-who { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
.sx-who img { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #fff; }
.sx-who em { font-style: normal; padding: 3px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,.75); font-size: 11.5px; }
.sx-reel-foot p { margin: 7px 0 0; font-size: 13px; line-height: 1.35; }
.sx-audio { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11.5px; overflow: hidden; }
.sx-audio svg { flex: none; width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2; }
.sx-audio > span { overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.sx-audio i { display: inline-block; font-style: normal; padding-left: 100%; animation: sxMarquee 9s linear infinite; }
@keyframes sxMarquee { to { transform: translateX(-100%); } }
.sx-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255,255,255,.25); }
.sx-prog i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }

/* coluna 3: publicação com vários slides */
.sx-post { width: min(100%, 360px); border-radius: 22px; overflow: hidden; background: #fff; color: #111; box-shadow: 0 30px 60px -18px rgba(30, 0, 60, .6); }
.sx-post-top { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 13px; font-weight: 700; }
.sx-post-top img { width: 30px; height: 30px; border-radius: 50%; }
.sx-post-top em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: #666; }
.sx-slides { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #eee; max-height: 46vh; width: 100%; }
.sx-track { position: absolute; inset: 0; display: flex; will-change: transform; }
.sx-track img { flex: none; width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-count { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.sx-post-foot { padding: 11px 14px 14px; }
.sx-post-foot .sx-meta { color: #111; }
.sx-post-foot .sx-heart svg { fill: #FF2878; }
.sx-dots { display: flex; gap: 4px; margin-left: auto; }
.sx-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d6d6d6; transition: background .3s, transform .3s; }
.sx-dots i.is-on { background: #FF2878; transform: scale(1.2); }
.sx-post-foot p { margin: 8px 0 0; font-size: 13px; line-height: 1.45; }
.sx-post-foot p b { font-weight: 700; }

/* linha de baixo */
.sx-foot { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; }
.sx-foot a { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.9); padding: 7px 14px; border-radius: 99px; background: rgba(0,0,0,.22); }
.sx-foot a:hover { background: rgba(0,0,0,.35); }

/* ── telemóvel: as fitas fazem o fundo e o conteúdo passa a vir uma parte de cada vez ── */
@media (max-width: 899px) {
  .sx-cols { display: block; }
  .sx-col { position: absolute; inset: 0; padding: 92px 20px 64px; }
  .sx-tag { top: 76px; left: 20px; }
  .sx-ghost { font-size: 32vw; -webkit-text-stroke-width: 1px; }
  .sx-title { font-size: clamp(32px, 9vw, 42px); text-align: center; }
  .sx-lead { text-align: center; margin-inline: auto; }
  .sx-reels { width: min(64vw, 260px); max-height: 64svh; }
  .sx-post { width: min(84vw, 340px); }
  .sx-slides { max-height: 48svh; }
}
@media (max-height: 700px) and (max-width: 899px) { .sx-lead { display: none; } }

/* sem animação: tudo à vista, sem prender o scroll */
@media (prefers-reduced-motion: reduce) {
  .sx { height: auto; }
  .sx-cols { position: relative; }
}

/* a publicação é uma ligação <a> com <span> por dentro: blocos explícitos e texto escuro sobre o branco */
.sx .sx-post { display: block; color: #111; }
.sx-post-foot p { color: #111; }
.sx-reel { display: block; }
/* palavras de fundo mais discretas, para não competirem com o conteúdo */
.sx-ghost { -webkit-text-stroke-color: rgba(255, 255, 255, .15); }
@media (max-width: 899px) {
  .sx-post-top em { display: none; }
  .sx-ghost { -webkit-text-stroke-color: rgba(255, 255, 255, .1); }
}

/* setas do carrossel, como no Instagram */
.sx-track { display: flex; }
.sx-arrow { position: absolute; top: 50%; z-index: 2; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .88); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; transition: opacity .25s, transform .25s; }
.sx-arrow svg { width: 16px; height: 16px; fill: none; stroke: #111; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sx-arrow:hover { transform: scale(1.08); }
.sx-arrow--prev { left: 10px; } .sx-arrow--next { right: 10px; }
.sx-arrow[hidden] { display: grid; opacity: 0; pointer-events: none; }
.sx-post-foot .sx-meta a { display: inline-flex; align-items: center; gap: 5px; color: #111; }
.sx-post-link { display: inline-block; margin-top: 8px; font-size: 12.5px; color: #8e8e8e !important; }
.sx-post-link:hover { color: #111 !important; }

/* gostos e comentários (partilhado pelo reel e pela publicação) */
.sx-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sx-meta a, .sx-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.sx-meta svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.sx-post-foot .sx-meta .sx-heart svg { fill: #FF2878; stroke: none; }
.sx .sx-post-top em { display: none; } /* o "1 / 3" fica só no canto da imagem, como no Instagram */
/* destaque do título: acompanha cada linha em vez de fazer uma caixa */
.sx-title em { display: inline; padding: 0 .1em; margin-left: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.1; }
@media (max-width: 899px) {
  .sx-reels { width: min(74vw, 290px); }
  .sx-who { font-size: 11.5px; gap: 6px; }
  .sx-who em { padding: 2px 7px; font-size: 10.5px; }
}

/* ============ Reel como telemóvel a sério (29 set 2026: o cartão parecia barato) ============
   Moldura metálica com reflexo, botões laterais, ecrã com ilha e barra de estado, interface do
   Instagram afinada e corações a subir do gosto. Só transform e opacity nas animações. */
.sx-reels { width: min(100%, 318px); }
.sx-reel { padding: 9px; border: 0; border-radius: 48px; overflow: visible; transform: rotate(-3deg);
  background: linear-gradient(150deg, #5a5a62 0%, #1c1c20 22%, #0c0c0e 50%, #2c2c31 78%, #6a6a72 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 0 0 3px rgba(0,0,0,.6),
              0 60px 90px -34px rgba(90, 0, 45, .75), 0 24px 44px -24px rgba(0, 0, 0, .7);
  animation: sxFloat 6s ease-in-out infinite; }
@keyframes sxFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.sx-reel::after { display: none; }
/* reflexo na moldura */
.sx-reel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5;
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 18%, transparent 70%, rgba(255,255,255,.08) 100%); }
.sx-side { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #2a2a2e, #6c6c74); }
.sx-side--a { left: -3px; top: 20%; height: 7%; } .sx-side--b { left: -3px; top: 30%; height: 11%; } .sx-side--c { right: -3px; top: 26%; height: 15%; }
.sx-scr { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #000; isolation: isolate; }
.sx-scr::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 52%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.85) 100%); }
/* barra de estado com ilha */
.sx-status { position: absolute; left: 0; right: 0; top: 0; height: 40px; z-index: 4; display: flex; align-items: center; justify-content: space-between; padding: 0 24px 0 28px; pointer-events: none; }
.sx-status b { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.sx-island { position: absolute; left: 50%; top: 10px; width: 88px; height: 25px; margin-left: -44px; border-radius: 20px; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.sx-sig { display: flex; align-items: flex-end; gap: 2px; }
.sx-sig i { width: 3px; border-radius: 1px; background: #fff; }
.sx-sig i:nth-child(1) { height: 4px; } .sx-sig i:nth-child(2) { height: 6px; } .sx-sig i:nth-child(3) { height: 8px; } .sx-sig i:nth-child(4) { height: 10px; }
.sx-sig em { width: 22px; height: 11px; margin-left: 6px; border-radius: 3.5px; border: 1.3px solid rgba(255,255,255,.6); position: relative; }
.sx-sig em::after { content: ""; position: absolute; inset: 1.5px; right: 5px; border-radius: 1.5px; background: #fff; }
/* interface do Instagram, mais fina */
.sx-reel-top { top: 44px; left: 16px; right: 12px; }
.sx-reel-top b { font-size: 19px; letter-spacing: -.02em; }
.sx-sound { width: 30px; height: 30px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); }
.sx-rail { right: 10px; bottom: 92px; gap: 16px; }
.sx-rail a { font-size: 11px; }
.sx-ic svg { width: 26px; height: 26px; stroke-width: 1.7; }
.sx-reel-foot { left: 14px; right: 56px; bottom: 22px; }
.sx-who { font-size: 12.5px; }
.sx-who img { width: 28px; height: 28px; border: 1.5px solid rgba(255,255,255,.9); }
.sx-who em { border-radius: 8px; border-color: rgba(255,255,255,.55); font-weight: 600; }
.sx-reel-foot p { font-size: 13px; font-weight: 500; }
.sx-audio { font-size: 11px; opacity: .92; }
.sx-prog { left: 14px; right: 14px; bottom: 9px; height: 2px; border-radius: 2px; overflow: hidden; }
/* corações a subir do gosto, em ciclo */
.sx-hearts { position: absolute; right: 16px; bottom: 150px; width: 26px; height: 120px; z-index: 3; pointer-events: none; }
.sx-hearts i { position: absolute; left: 4px; bottom: 0; width: 16px; height: 16px; opacity: 0;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF3B6B' d='M12 20.5s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7.6a4.3 4.3 0 0 1 7.5 2.7c0 5.6-7.5 10.2-7.5 10.2Z'/%3E%3C/svg%3E");
  animation: sxHeart 4.8s ease-out infinite; }
.sx-hearts i:nth-child(2) { animation-delay: 1.6s; left: -2px; } .sx-hearts i:nth-child(3) { animation-delay: 3.2s; left: 9px; }
@keyframes sxHeart { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 12% { opacity: 1; transform: translate(0, -10px) scale(1); }
  70% { opacity: .9; } 100% { opacity: 0; transform: translate(-8px, -110px) scale(.8) rotate(-14deg); } }
@media (max-width: 899px) {
  .sx-reels { width: min(72vw, 286px); }
  .sx-reel { border-radius: 42px; padding: 8px; }
  .sx-scr { border-radius: 35px; }
  .sx-status { padding: 0 20px 0 24px; height: 36px; }
  .sx-island { width: 76px; height: 22px; margin-left: -38px; top: 9px; }
  .sx-reel-top { top: 38px; }
}
@media (prefers-reduced-motion: reduce) { .sx-reel, .sx-hearts i { animation: none; } }
/* corações a sair do ícone do gosto */
.sx-hearts { right: 13px; bottom: 262px; }
@media (max-width: 899px) { .sx-hearts { right: 12px; bottom: 250px; } }
/* proporção de telemóvel real (~9:19,5); a largura sai da altura, para nunca ficar "gordo" (29 set 2026) */
.sx-reels { width: auto; max-width: 100%; height: min(70vh, 640px); max-height: none; aspect-ratio: 9 / 18.2; } /* meio termo: 9:16 ficava gordo, 9:19,5 fino demais */
@media (max-width: 899px) { .sx-reels { width: auto; height: min(62svh, 560px); } }
.sx-who { display: flex; max-width: 100%; min-width: 0; font-size: 11.5px; }
.sx-who img, .sx-who em { flex: none; }
.sx-u { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-reel-foot { right: 50px; }

/* ============ leveza (29 set 2026) ============
   Animações contínuas só com a secção à vista (.sx-live posta pelo JS); sem filtros nem máscaras
   por cima do vídeo; no telemóvel o reel não flutua (já se mexe com o scroll). */
.sx:not(.sx-live) .sx-reel, .sx:not(.sx-live) .sx-hearts i, .sx:not(.sx-live) .sx-audio i { animation-play-state: paused; }
.sx-ic svg { filter: none; }
.sx-audio > span { -webkit-mask-image: none; mask-image: none; }
@media (max-width: 899px) { .sx-reel { animation: none; } }
/* enquanto a secção está presa, as fitas tapam o ecrã todo: o fundo animado do site (estrelas e auroras)
   deixa de ser desenhado por baixo (classe posta pelo social.js) */
html.sx-cover .stars, html.sx-cover .glow { visibility: hidden; }

/* V7: deslizar os slides do post com o dedo (social.js); a página continua a fazer scroll na vertical */
.sx-slides { touch-action: pan-y; }
.sx-track img { -webkit-user-drag: none; user-select: none; }
