/* Sinfluent desktop reference top bar v9: 16px spacing between navigation elements, 14px text, centered pill,
   circular favicon. Original mobile header/menu is untouched. */
.sf-ref-nav, #sf-ref-article-header { display: none; }
@media (min-width: 1024px) {
  #sf-global-shell .sf-global-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  #sf-global-shell .sf-global-header > .sf-menu-trigger,
  #sf-global-shell .sf-global-header > .sf-nav-logo,
  #sf-global-shell .sf-global-header > .sf-global-cta,
  body #sf-global-shell header.sf-global-header > a.sf-global-cta {display: none !important;}

  /* The parent is positioning/scroll behavior only, never a full-width color strip. */
  #sf-global-shell header.sf-global-header,
  #sf-global-shell header.sf-global-header.sf-scroll-solid {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  /* Restore the original editorial article bar, not the new desktop pill. */
  .article-page > .site-header.article-site-header {
    display: flex !important;
  }
  #sf-ref-article-header {
    position: fixed; inset: 0 0 auto; width: 100%; height: 80px;
    z-index: 2140000000; box-sizing: border-box; padding: 0 18px;
    display: flex; justify-content: center; align-items: center;
    background: transparent;
    transition: transform 340ms cubic-bezier(.22, 1, .36, 1), background-color 360ms ease;
    will-change: transform;
  }
  #sf-ref-article-header.sf-scroll-solid { background: rgba(247,244,236,.78); }
  #sf-ref-article-header.sf-scroll-hidden { transform: translate3d(0,calc(-100% - 2px),0); pointer-events:none; }

  /* Reference-like centered narrow pill, not a near-full-width navigation. */
  .sf-ref-nav {
    --sf-ref-accent:#9066FF;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    width:max-content;
    max-width:calc(100vw - 36px);
    height:auto;
    min-height:0;
    padding:4px;
    gap:16px;
    background:rgba(9,10,16,.77);
    border:1px solid rgba(255,255,255,.5);
    border-radius:999px;
    box-shadow:0 8px 25px rgba(0,0,0,.15);
    color:#f7f5fa;
    font-family:Inter,Arial,sans-serif;
    -webkit-backdrop-filter:blur(22px) saturate(145%);
    backdrop-filter:blur(22px) saturate(145%);
    transition:background-color .3s ease,border-color .3s ease,box-shadow .3s ease;
    isolation:isolate;
  }
  #sf-global-shell .sf-global-header.sf-scroll-solid .sf-ref-nav,
  #sf-ref-article-header.sf-scroll-solid .sf-ref-nav {
    background:rgba(9,10,16,.84);
    border-color:rgba(255,255,255,.5);
    box-shadow:0 10px 30px rgba(0,0,0,.23);
  }
  .sf-ref-nav *, .sf-ref-nav *::before, .sf-ref-nav *::after { box-sizing:border-box; }
  .sf-ref-nav a {color:inherit;text-decoration:none;}
  .sf-ref-nav__logo {
    flex:0 0 38px;
    display:grid;place-items:center;
    width:38px;height:38px;
    border-radius:50%;overflow:hidden;
    background:#0d0e11;line-height:0;
  }
  .sf-ref-nav__logo img {
    display:block;width:38px;height:38px;
    object-fit:cover;border-radius:50%;clip-path:circle(50% at 50% 50%);
  }
  .sf-ref-nav__links {
    flex:0 0 auto;min-width:0;
    display:flex;align-items:center;justify-content:center;
    gap:16px;
  }
  .sf-ref-nav__link, .sf-ref-nav__services-button {
    display:inline-flex;align-items:center;justify-content:center;
    height:auto;padding:12px 12px;
    border-radius:999px;white-space:nowrap;
    font:500 14px/1 Inter,Arial,sans-serif;
    letter-spacing:0;
    color:#f7f5fa;
    transition:color .2s ease,background-color .2s ease,border-color .2s ease;
  }
  .sf-ref-nav__link {border:1.5px solid transparent;}
  .sf-ref-nav__link:hover,.sf-ref-nav__link:focus-visible {color:#c2adff;}
  /* Only the actual page is selected, never Services by default. */
  .sf-ref-nav__link[aria-current="page"] {
    color:#fff;
    border-color:var(--sf-ref-accent);
    background:rgba(144,102,255,.12);
  }
  .sf-ref-nav__services {position:relative;flex:0 0 auto;}
  .sf-ref-nav__services-button {
    appearance:none;cursor:pointer;
    gap:7px;
    padding-inline:12px;
    background:transparent;
    border:1.5px solid transparent;
    color:#f7f5fa;
  }
  .sf-ref-nav__services-button:hover,
  .sf-ref-nav__services-button[aria-expanded="true"],
  .sf-ref-nav__services-button[aria-current="page"] {
    border-color:var(--sf-ref-accent);
    background:rgba(144,102,255,.12);
  }
  .sf-ref-nav__services-button svg {
    width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none;
    transition:transform .2s ease;
  }
  .sf-ref-nav__services-button[aria-expanded="true"] svg {transform:rotate(180deg);}
  .sf-ref-nav__dropdown {
    position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%,-7px);
    min-width:245px;padding:7px;
    border:1px solid rgba(255,255,255,.2);border-radius:15px;
    background:rgba(17,19,27,.92);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);box-shadow:0 20px 45px rgba(0,0,0,.38);
    opacity:0;visibility:hidden;pointer-events:none;
    transition:opacity .18s ease,transform .18s ease,visibility .18s;
  }
  .sf-ref-nav__services[data-open="true"] .sf-ref-nav__dropdown {
    opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0);
  }
  .sf-ref-nav__dropdown a {
    display:block;padding:11px 13px;border-radius:10px;
    font:500 14px/1.35 Inter,Arial,sans-serif;color:#f7f5fa;
    white-space:nowrap;
  }
  .sf-ref-nav__dropdown a:hover,.sf-ref-nav__dropdown a:focus-visible {
    background:rgba(144,102,255,.17);color:#fff;
  }
  .sf-ref-nav__cta {
    flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
    height:auto;min-height:0;
    gap:7px;
    padding:16px 20px;
    border-radius:999px;
    background:var(--sf-ref-accent);color:#fff !important;
    font:700 14px/1 Inter,Arial,sans-serif;
    letter-spacing:0;
    white-space:nowrap;
    transition:background-color .2s ease,transform .2s ease,box-shadow .2s ease;
  }
  .sf-ref-nav__cta svg {
    width:14px;height:14px;flex:0 0 14px;
    fill:none;stroke:currentColor;stroke-width:2;
    stroke-linecap:round;stroke-linejoin:round;
  }
  .sf-ref-nav__cta:hover,.sf-ref-nav__cta:focus-visible {
    background:#a58bff;transform:translateY(-1px);box-shadow:0 7px 20px rgba(144,102,255,.34);
  }
  /* Insights index is on cream (#f7f4ec): same pill geometry, dark labels,
     cream surface, same violet CTA. This does not apply to article pages. */
  #sf-global-shell .sf-ref-nav.sf-ref-nav--light {
    background: rgba(247,244,236,.78);
    border-color: rgba(37,38,36,.5);
    box-shadow: 0 8px 25px rgba(37,38,36,.1);
    color: #171717;
  }
  #sf-global-shell .sf-global-header.sf-scroll-solid .sf-ref-nav.sf-ref-nav--light {
    background: rgba(247,244,236,.9);
    border-color: rgba(37,38,36,.5);
    box-shadow: 0 10px 30px rgba(37,38,36,.14);
  }
  #sf-global-shell .sf-ref-nav--light .sf-ref-nav__link,
  #sf-global-shell .sf-ref-nav--light .sf-ref-nav__services-button {
    color: #171717;
  }
  #sf-global-shell .sf-ref-nav--light .sf-ref-nav__link:hover,
  #sf-global-shell .sf-ref-nav--light .sf-ref-nav__services-button:hover {
    color: #6241c2;
  }
  #sf-global-shell .sf-ref-nav--light .sf-ref-nav__link[aria-current="page"],
  #sf-global-shell .sf-ref-nav--light .sf-ref-nav__services-button[aria-current="page"] {
    color: #171717;
    background: rgba(144,102,255,.09);
  }
  #sf-global-shell .sf-ref-nav--light .sf-ref-nav__dropdown {
    background:rgba(247,244,236,.94);
    -webkit-backdrop-filter:blur(22px) saturate(145%);
    backdrop-filter:blur(22px) saturate(145%);
    border-color:rgba(37,38,36,.2);
    box-shadow: 0 18px 40px rgba(37,38,36,.14);
  }
  #sf-global-shell .sf-ref-nav--light .sf-ref-nav__dropdown a {color:#171717;}
  #sf-global-shell .sf-ref-nav--light .sf-ref-nav__dropdown a:hover,
  #sf-global-shell .sf-ref-nav--light .sf-ref-nav__dropdown a:focus-visible {
    background:rgba(144,102,255,.13);color:#171717;
  }
  .sf-ref-nav a:focus-visible,.sf-ref-nav button:focus-visible {
    outline:2px solid #d3c5ff;outline-offset:2px;
  }
  #sf-service-microdrama,#sf-service-commercials,#sf-service-music-video {scroll-margin-top:110px;}
}
/* At every desktop width, preserve the same item spacing and typography.
   The compact content-sized bar naturally remains centered. */
@media (min-width:1024px) and (prefers-reduced-motion:reduce) {
  #sf-ref-article-header,.sf-ref-nav,.sf-ref-nav *,
  .sf-ref-nav *::before,.sf-ref-nav *::after {transition:none !important;}
}
