/* Social FX: the HorizonX "VESPERA Plasma Hero" scoped to #social-fx (no site
   header or menus: the theme has its own). The plasma video is recoloured by
   js/social-fx.js on a canvas laid over it. */

/* Undo what themes usually put on plain elements; the block's own rules win. */
#social-fx :is(div, section, aside, ol, li, p, h1, h2, a, button, span, dl, dt, dd, video, canvas, svg) {
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none; float: none;
  text-transform: none; text-shadow: none; text-decoration: none; letter-spacing: normal;
  font-family: inherit; color: inherit; line-height: inherit; min-height: 0; max-width: none;
}
#social-fx :is(h1, h2, p, li)::before, #social-fx :is(h1, h2, p, li)::after { content: none; }
#social-fx *, #social-fx *::before, #social-fx *::after { box-sizing: border-box; }

#social-fx {
  --ink: #f4f4f6;
  --ink-soft: rgba(244, 244, 246, 0.62);
  --line: rgba(244, 244, 246, 0.18);
  --bg: #101010;
  --paper: #101010;
  --accent: #ff471c;
  --sf-pos: 50%;
  --gutter: clamp(1.5rem, 4.45vw, 4rem);
  --font: inherit;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  /* Text sizes chosen in the settings (1 = as designed); phones have their own. */
  --sf-title: var(--sv-title-d, 1);
  --sf-text: var(--sv-text-d, 1);
  position: relative; isolation: isolate; overflow: hidden;
  font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.5; text-align: left;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
#social-fx.social-fx--full { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
#social-fx.social-fx--own-font { --font: "Helvetica Neue", Helvetica, Arial, sans-serif; }
#social-fx a { color: inherit; text-decoration: none; }
#social-fx button { font: inherit; color: inherit; cursor: pointer; }
#social-fx :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- Stage ---------- */
#social-fx .hero {
  position: relative;
  min-height: calc(var(--sf-height, 100) * 1vh);
  min-height: calc(var(--sf-height, 100) * 1svh);
  overflow: hidden; isolation: isolate; background: var(--bg);
}
#social-fx .hero__media {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background: var(--bg);
}
/* The logo stage: a canvas the size of the block (js/social-fx.js draws it). */
#social-fx .hero__fx { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

#social-fx .hero__content {
  position: relative; z-index: 2;
  min-height: calc(var(--sf-height, 100) * 1vh);
  min-height: calc(var(--sf-height, 100) * 1svh);
  margin-inline: var(--gutter);
  /* room for the theme's header laid over the top of the block */
  padding-top: var(--sv-header, 0px);
}

#social-fx .eyebrow {
  margin: 0; color: var(--ink-soft);
  font-family: var(--mono); font-size: calc(0.7rem * var(--sf-text)); font-weight: 600;
  line-height: 1.35; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Capabilities (top left) ---------- */
#social-fx .capabilities {
  position: absolute; top: calc(clamp(2.5rem, 6vh, 5rem) + var(--sv-header, 0px)); left: 0;
  width: min(19rem, 24vw);
  animation: sf-enter 700ms 180ms both cubic-bezier(0.22, 1, 0.36, 1);
}
#social-fx .capabilities ol { padding: 0; margin: 1.15rem 0 0; list-style: none; border-top: 1px solid var(--line); }
#social-fx .capabilities li {
  display: grid; grid-template-columns: 2rem 1fr; align-items: center; min-height: 2.35rem;
  border-bottom: 1px solid var(--line);
  font-size: calc(0.76rem * var(--sf-text)); font-weight: 620; letter-spacing: 0.015em;
}
#social-fx .capabilities li span { color: var(--ink-soft); font-family: var(--mono); font-size: calc(0.62rem * var(--sf-text)); }

/* ---------- Statement (top right) ---------- */
#social-fx .statement {
  position: absolute; top: calc(clamp(2.5rem, 6vh, 5rem) + var(--sv-header, 0px)); right: 0;
  width: min(18.5rem, 25vw);
  animation: sf-enter 700ms 260ms both cubic-bezier(0.22, 1, 0.36, 1);
}
#social-fx .statement > p:last-child:not(.eyebrow) {
  max-width: 18rem; margin: 1rem 0 0;
  font-size: calc(clamp(0.9rem, 1.05vw, 1.05rem) * var(--sf-text)); line-height: 1.48; letter-spacing: -0.015em;
}

/* Platform logos under the statement */
#social-fx .platforms {
  display: flex; flex-wrap: wrap; gap: 0.55rem 1.1rem; margin: 1.1rem 0 0; padding: 0.9rem 0 0; list-style: none;
  border-top: 1px solid var(--line);
}
#social-fx .platforms li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: calc(0.66rem * var(--sf-text)); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); opacity: .85;
}
#social-fx .platforms svg { display: block; width: 1.15rem; height: 1.15rem; flex: none; }

/* ---------- Hero copy (bottom left) ---------- */
#social-fx .hero-copy {
  position: absolute; bottom: clamp(2.25rem, 6.5vh, 4.5rem); left: 0;
  width: min(37rem, 45vw);
  animation: sf-enter 760ms 340ms both cubic-bezier(0.22, 1, 0.36, 1);
}
#social-fx .hero-copy :is(h1, h2) {
  display: flex; align-items: flex-start; flex-direction: column; gap: 0.08em;
  margin: 0.75rem 0 0;
  font-size: calc(clamp(3.2rem, 5.25vw, 5.35rem) * var(--sf-title)); font-weight: 450; line-height: 0.91; letter-spacing: -0.065em;
  color: var(--ink);
}
/* No boxes behind the headline (the template had paper-coloured ones): on
   the dark background the text sits straight over the figure. */
#social-fx .hero-copy :is(h1, h2) span {
  display: inline-block; width: fit-content; padding: 0 0.08em 0.05em; white-space: nowrap;
  text-shadow: 0 2px 18px color-mix(in srgb, var(--bg) 80%, transparent);
}
#social-fx .hero-copy .eyebrow { display: inline-block; padding: 0.25rem 0; color: var(--ink); opacity: .78; }
#social-fx .cta {
  display: inline-flex; align-items: center; gap: 1.2rem; margin-top: 1.4rem;
  min-height: 2.35rem; padding: 0.2rem 0.3rem 0.2rem 0.85rem;
  border: 1px solid var(--ink); border-radius: 4px; background: var(--paper);
  font-size: calc(0.72rem * var(--sf-text)); font-weight: 650; letter-spacing: 0.03em;
  transition: color 180ms ease, background-color 180ms ease;
}
#social-fx .cta span { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border-left: 1px solid var(--ink); }
#social-fx .cta svg { display: block; width: 0.95rem; height: 0.95rem; }
#social-fx .cta:hover, #social-fx .cta:focus-visible { color: var(--paper); background: var(--ink); }
#social-fx .cta:hover span, #social-fx .cta:focus-visible span { border-color: var(--paper); }

/* ---------- Signal card (bottom right) ---------- */
#social-fx .signal {
  position: absolute; right: 0; bottom: clamp(2.25rem, 6.5vh, 4.5rem);
  width: min(19rem, 25vw); padding: 1rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  animation: sf-enter 760ms 420ms both cubic-bezier(0.22, 1, 0.36, 1);
}
#social-fx .signal .eyebrow, #social-fx .signal dt { color: var(--ink); opacity: .78; }
#social-fx .signal__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
#social-fx .signal__top .eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; }
#social-fx .signal__dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
#social-fx .motion-control {
  display: grid; width: 2rem; height: 2rem; padding: 0; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: transparent;
}
#social-fx .motion-control svg { display: block; width: 0.9rem; height: 0.9rem; }
#social-fx .motion-control .ic-play { display: none; }
#social-fx .motion-control[aria-pressed="true"] .ic-pause { display: none; }
#social-fx .motion-control[aria-pressed="true"] .ic-play { display: block; }
#social-fx .signal dl { display: grid; gap: 0.5rem; margin: 0; padding-top: 0.85rem; }
#social-fx .signal dl div { display: flex; justify-content: space-between; gap: 1rem; margin: 0; font-size: calc(0.69rem * var(--sf-text)); line-height: 1.35; }
#social-fx .signal dd { margin: 0; font-weight: 650; text-align: right; }

@keyframes sf-enter { from { opacity: 0; transform: translateY(0.75rem); } }

/* ---------- Responsive (the template's own breakpoints) ---------- */
@media (max-width: 1023px) {
  #social-fx .capabilities { display: none; }
  #social-fx .statement { width: min(17rem, 36vw); }
  #social-fx .hero-copy { width: min(31rem, 58vw); }
  #social-fx .signal { width: min(17rem, 30vw); }
}
@media (max-width: 767px) {
  #social-fx { --gutter: 1.5rem; --sf-title: var(--sv-title-m, 1); --sf-text: var(--sv-text-m, 1); }
  #social-fx .statement { top: calc(1.5rem + var(--sv-header, 0px)); right: auto; left: 0; width: min(17rem, 82vw); }
  #social-fx .statement > p:last-child:not(.eyebrow) { margin-top: 0.7rem; font-size: calc(0.85rem * var(--sf-text)); line-height: 1.42; }
  #social-fx .hero-copy {
    right: 0; bottom: 1.5rem; width: auto; padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 8px;
    background: color-mix(in srgb, var(--paper) 91%, transparent);
  }
  #social-fx .hero-copy :is(h1, h2) { margin-top: 0.5rem; font-size: calc(clamp(2.2rem, 10vw, 3.4rem) * var(--sf-title)); line-height: 0.94; letter-spacing: -0.06em; }
  #social-fx .hero-copy :is(h1, h2) span { white-space: normal; padding: 0; text-shadow: none; }
  #social-fx .hero-copy .eyebrow { padding: 0; }
  #social-fx .cta { margin-top: 1.1rem; }
  #social-fx .signal { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #social-fx *, #social-fx *::before, #social-fx *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
