/* Sanjeh Experience: header, footer, hero and motion. Brand: navy #0B2A4A, teal #1F9E90, bg #F3F7FB. */
:root {
  --sx-navy: #0B2A4A;
  --sx-deep: #06182B;
  --sx-teal: #1F9E90;
  --sx-teal-soft: #5FD3C4;
  --sx-bg: #F3F7FB;
  --sx-muted: #C7D5E3;
  --sx-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- buttons shared by footer and header ---------- */
.sx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: transform .25s var(--sx-ease), box-shadow .25s var(--sx-ease), background .25s;
}
.sx-btn--primary { background: var(--sx-teal); color: #fff; box-shadow: 0 8px 24px -10px rgba(31, 158, 144, .8); }
.sx-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(31, 158, 144, .95); }
.sx-btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.sx-btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }

/* ---------- footer ---------- */
.sx-footer {
  position: relative; overflow: hidden; isolation: isolate;
  background-color: var(--sx-deep);
  background-image: radial-gradient(rgba(199, 213, 227, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--sx-muted); padding: 72px 24px 28px; font-family: Vazirmatn, Tahoma, sans-serif;
}
.sx-footer::before, .sx-footer::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.sx-footer::before { width: 520px; height: 520px; inset-inline-start: -160px; top: -220px; background: rgba(31, 158, 144, .28); }
.sx-footer::after { width: 420px; height: 420px; inset-inline-end: -140px; bottom: -220px; background: rgba(46, 110, 190, .22); }
.sx-footer__inner { max-width: 1240px; margin: 0 auto; }
.sx-footer a { color: var(--sx-muted); text-decoration: none; }

.sx-footer__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 40px 44px; margin-bottom: 64px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(31, 158, 144, .18), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px);
}
.sx-footer__cta-title { margin: 0; max-width: 620px; color: #fff; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.5; }
.sx-footer__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.sx-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; }
.sx-footer__col h3 { margin: 0 0 18px; color: #fff; font-size: 16px; font-weight: 800; }
.sx-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sx-footer__col li a {
  font-size: 15px; line-height: 1.8;
  background: linear-gradient(var(--sx-teal), var(--sx-teal)) no-repeat right bottom / 0 1px;
  transition: color .2s, background-size .3s var(--sx-ease);
}
[dir="ltr"] .sx-footer__col li a { background-position: left bottom; }
.sx-footer__col li a:hover { color: #fff; background-size: 100% 1px; }
.sx-footer__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sx-footer__brand img { width: 40px; height: 40px; object-fit: contain; }
.sx-footer__brand span { color: #fff; font-size: 22px; font-weight: 800; }
.sx-footer__about p { margin: 0; font-size: 15px; line-height: 2; max-width: 360px; }

.sx-footer__bottom {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px;
}
.sx-footer__bottom a:hover { color: #fff; }
.sx-footer__top { margin-inline-start: auto; }

@media (max-width: 1024px) { .sx-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .sx-footer { padding: 48px 18px 24px; }
  .sx-footer__cta { padding: 28px 22px; margin-bottom: 44px; }
  .sx-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .sx-footer__top { margin-inline-start: 0; }
}

/* ---------- header: floating glass capsule (Torque-style) ---------- */
body.sx { --sx-head-top: 12px; }
body.sx.admin-bar { --sx-head-top: 44px; }
@media (max-width: 782px) { body.sx.admin-bar { --sx-head-top: 58px; } }

body.sx #masthead {
  position: fixed; z-index: 999; top: var(--sx-head-top); left: 12px; right: 12px;
  background: none !important; border: 0 !important; box-shadow: none !important;
  pointer-events: none; transition: top .35s var(--sx-ease);
}
body.sx #masthead .main-header-bar {
  pointer-events: auto; max-width: 1240px; margin: 0 auto;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55) !important;
  background: rgba(255, 255, 255, .72) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  padding: 4px 18px; transition: padding .35s var(--sx-ease), box-shadow .35s var(--sx-ease), background .35s;
}
body.sx #masthead .ast-primary-header-bar .site-primary-header-wrap { min-height: 64px; }
body.sx.sx-compact #masthead .main-header-bar { padding-top: 0; padding-bottom: 0; }
body.sx.sx-compact #masthead .ast-primary-header-bar .site-primary-header-wrap { min-height: 56px; }
body.sx.sx-scrolled #masthead .main-header-bar { box-shadow: 0 18px 40px -22px rgba(6, 24, 43, .55); }

/* pages without a dark top band (blog, posts) start below the capsule */
body.sx:not(.sx-overlay) #content { padding-top: calc(var(--sx-head-top) + 96px); }

/* dark glass over dark bands (home and Elementor pages) */
body.sx-overlay #masthead .main-header-bar {
  background: rgba(6, 24, 43, .5) !important; border-color: rgba(255, 255, 255, .14) !important;
}
body.sx-overlay #masthead .site-title a,
body.sx-overlay #masthead .main-header-menu > .menu-item > .menu-link,
body.sx-overlay #masthead .ast-mobile-menu-trigger-minimal,
body.sx-overlay #masthead .menu-toggle { color: #fff !important; }
body.sx-overlay #masthead .menu-toggle svg { fill: #fff; }
body.sx-overlay.sx-scrolled #masthead .main-header-bar { background: rgba(6, 24, 43, .72) !important; }

/* menu links: teal underline grows from the centre; current page stays underlined */
body.sx #masthead .main-header-menu > .menu-item > .menu-link {
  position: relative; font-weight: 700; color: var(--sx-navy); transition: color .2s;
}
body.sx #masthead .main-header-menu > .menu-item > .menu-link::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 10px; height: 2px; border-radius: 2px;
  background: var(--sx-teal); transition: left .3s var(--sx-ease), right .3s var(--sx-ease);
}
body.sx #masthead .main-header-menu > .menu-item > .menu-link:hover::after,
body.sx #masthead .main-header-menu > .current_page_item:not(.menu-item-type-custom) > .menu-link::after { left: 16px; right: 16px; }
body.sx #masthead .main-header-menu > .menu-item > .menu-link:hover { color: var(--sx-teal) !important; }
body.sx-overlay #masthead .main-header-menu > .menu-item > .menu-link:hover { color: var(--sx-teal-soft) !important; }

/* header button: pill with a teal glow */
body.sx #masthead .ast-header-button-1 .ast-custom-button {
  border-radius: 999px !important; padding: 12px 22px !important; font-weight: 700;
  background: var(--sx-teal) !important; border: 0 !important; color: #fff !important;
  box-shadow: 0 8px 22px -10px rgba(31, 158, 144, .9); transition: transform .25s var(--sx-ease), box-shadow .25s var(--sx-ease);
}
body.sx #masthead .ast-header-button-1 .ast-custom-button:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(31, 158, 144, 1); }

/* mobile menu: large rounded navy panel under the capsule, items enter one by one */
body.sx #masthead .ast-mobile-header-content {
  pointer-events: auto; position: fixed; left: 12px; right: 12px; top: calc(var(--sx-head-top) + 84px);
  max-height: calc(100vh - var(--sx-head-top) - 100px); overflow-y: auto;
  border-radius: 28px; padding: 14px 10px; background: rgba(6, 24, 43, .94) !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .1);
}
body.sx #masthead .ast-mobile-header-content .menu-link {
  color: #fff !important; font-size: 18px; font-weight: 700; padding: 14px 18px !important; border: 0 !important; background: none !important;
}
body.sx #masthead .ast-mobile-header-content .menu-item { animation: sx-menu-in .45s var(--sx-ease) both; }
body.sx #masthead .ast-mobile-header-content .menu-item:nth-child(2) { animation-delay: .04s; }
body.sx #masthead .ast-mobile-header-content .menu-item:nth-child(3) { animation-delay: .08s; }
body.sx #masthead .ast-mobile-header-content .menu-item:nth-child(4) { animation-delay: .12s; }
body.sx #masthead .ast-mobile-header-content .menu-item:nth-child(5) { animation-delay: .16s; }
body.sx #masthead .ast-mobile-header-content .menu-item:nth-child(6) { animation-delay: .2s; }
body.sx #masthead .ast-mobile-header-content .menu-item:nth-child(n+7) { animation-delay: .24s; }
@keyframes sx-menu-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  body.sx #masthead, body.sx #masthead .main-header-bar, .sx-btn { transition: none !important; }
  body.sx #masthead .ast-mobile-header-content .menu-item { animation: none !important; }
}

/* mobile panel fixes: Astra paints its own backgrounds, borders and toggle box */
body.sx #masthead .ast-mobile-header-content *,
body.sx #masthead .ast-mobile-header-content .main-header-menu { background: transparent !important; border-color: transparent !important; }
body.sx #masthead .ast-mobile-header-content .menu-link { padding: 10px 18px !important; line-height: 1.6 !important; }
body.sx #masthead .ast-mobile-header-content .menu-link::after { display: none; }
body.sx #masthead .ast-mobile-header-content .menu-link:hover { color: var(--sx-teal-soft) !important; }
body.sx #masthead .menu-toggle,
body.sx #masthead .menu-toggle:hover, body.sx #masthead .menu-toggle:focus {
  background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 999px !important; color: inherit; box-shadow: none !important;
}
body.sx:not(.sx-overlay) #masthead .menu-toggle { background: rgba(11, 42, 74, .06) !important; border-color: rgba(11, 42, 74, .12) !important; }
body.sx:not(.sx-overlay) #masthead .menu-toggle svg { fill: var(--sx-navy); }
@media (max-width: 921px) {
  body.sx #masthead .main-header-bar { padding: 2px 10px 2px 14px; }
  body.sx #masthead .ast-primary-header-bar .site-primary-header-wrap,
  body.sx #masthead #ast-mobile-header .site-primary-header-wrap { min-height: 58px; }
  body.sx #masthead .ast-mobile-header-content { top: calc(var(--sx-head-top) + 72px); }
}

/* brand: logo mark and name side by side so the capsule stays short */
body.sx #masthead .ast-site-identity { display: flex; align-items: center; gap: 10px; padding: 0; }
body.sx #masthead .ast-site-identity .site-logo-img { padding: 0; }
body.sx #masthead .custom-logo { width: 32px !important; height: 32px !important; max-height: none; object-fit: contain; }
body.sx #masthead .site-title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1; }
body.sx-overlay #masthead .site-title a { color: #fff; }
@media (max-width: 921px) { body.sx #masthead .custom-logo { width: 28px !important; height: 28px !important; } }

/* ---------- home hero: navy gradient + particle stage (Inacio-style) ---------- */
body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh; padding-top: 120px; padding-bottom: 80px;
  background: radial-gradient(ellipse 60% 70% at 25% 45%, rgba(31, 158, 144, .22), transparent 65%),
              radial-gradient(ellipse 50% 60% at 85% 10%, rgba(46, 110, 190, .18), transparent 60%),
              linear-gradient(165deg, #04121F 0%, var(--sx-deep) 45%, var(--sx-navy) 100%) !important;
}
body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child::before,
body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child > .elementor-background-overlay { display: none !important; }
body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner { position: relative; z-index: 1; justify-content: center; }

.sx-hero-stage { position: absolute; z-index: 0; inset-block: 0; inset-inline-end: 0; width: 56%; pointer-events: none; transition: opacity .2s linear; }
.sx-hero-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.sx-hero-fallback { position: absolute; inset: 0; margin: auto; width: min(560px, 90%); height: auto; opacity: .9; }

@media (min-width: 1025px) {
  /* text block moves to the reading side, the scene takes the other half */
  body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner > .e-con {
    width: 52% !important; max-width: 660px; align-items: flex-start !important; margin-inline-end: auto;
  }
  body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child .elementor-heading-title { text-align: start !important; }
  body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget-button { align-self: flex-start; }
  body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child h1.elementor-heading-title { font-size: clamp(36px, 3.6vw, 54px) !important; line-height: 1.4 !important; }
  body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget-icon { align-self: flex-start; }
}
@media (max-width: 1024px) {
  .sx-hero-stage { inset: auto 0 0 0; width: 100%; height: 55%; opacity: .45; }
}
/* the Sierra hero carried a 390px top padding and a 430px-tall scroll-arrow widget; fit it to one screen */
body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner { padding-top: 0 !important; padding-bottom: 0 !important; min-height: calc(100svh - 200px); align-content: center; }
body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner > .e-con { justify-content: center; gap: 22px; }
body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget-icon { position: absolute; bottom: 28px; inset-inline-start: 50%; transform: translateX(50%); margin: 0 !important; padding: 0 !important; }
body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget-icon .elementor-widget-container { margin: 0 !important; padding: 0 !important; }
[dir="ltr"] body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget-icon { transform: translateX(-50%); }
@media (max-width: 1024px) {
  body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget-icon { display: none; }
}

/* ---------- reveal on scroll ---------- */
.sx-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--sx-ease) var(--sx-delay, 0ms), transform .7s var(--sx-ease) var(--sx-delay, 0ms); }
.sx-reveal.sx-in { opacity: 1; transform: none; }

/* ---------- scroll progress ---------- */
.sx-progress { position: fixed; z-index: 1000; top: 0; left: 0; right: 0; height: 3px; transform-origin: right center; transform: scaleX(0); background: linear-gradient(90deg, var(--sx-teal-soft), var(--sx-teal)); pointer-events: none; }
[dir="ltr"] .sx-progress { transform-origin: left center; }
body.admin-bar .sx-progress { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sx-progress { top: 46px; } }


/* ---------- soft moving gradient behind light sections (Stripe-style) ---------- */
body.sx::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background: radial-gradient(40vmax 30vmax at 15% 20%, rgba(31, 158, 144, .10), transparent 70%),
              radial-gradient(36vmax 28vmax at 85% 70%, rgba(46, 110, 190, .09), transparent 70%),
              radial-gradient(30vmax 24vmax at 60% 10%, rgba(95, 211, 196, .07), transparent 70%);
  animation: sx-drift 26s ease-in-out infinite alternate;
}
@keyframes sx-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-4vmax, 3vmax, 0); } }

/* ---------- tilt + glare ---------- */
.sx-tilt { transform: perspective(900px) rotateX(var(--sx-rx, 0deg)) rotateY(var(--sx-ry, 0deg)); transition: transform .35s var(--sx-ease), box-shadow .35s var(--sx-ease); will-change: transform; }
.sx-tilt::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--sx-mx, 50%) var(--sx-my, 50%), rgba(255, 255, 255, .16), transparent 45%);
}
.sx-tilt:hover::before { opacity: 1; }
.ast-article-post.sx-tilt { position: relative; }

@media (prefers-reduced-motion: reduce) {
  body.sx::before { animation: none; }
  .sx-reveal { transform: none !important; transition: opacity .5s ease var(--sx-delay, 0ms) !important; }
  .sx-tilt { transform: none !important; }
}

/* project rows on /work/ and case-study pages: rounded images with a gentle hover zoom */
body.sx-overlay:not(.sx-home) .elementor-widget-image .elementor-widget-container { overflow: hidden; border-radius: 22px; box-shadow: 0 28px 56px -34px rgba(6, 24, 43, .55); }
body.sx-overlay:not(.sx-home) .elementor-widget-image img { border-radius: 22px; transition: transform .6s var(--sx-ease); }
body.sx-overlay:not(.sx-home) .elementor-widget-image:hover img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { body.sx-overlay:not(.sx-home) .elementor-widget-image img { transition: none; } }

/* ---------- headings rise word by word ---------- */
.sx-words.sx-reveal { opacity: 1; transform: none; }
.sx-words .sx-word { display: inline-block; opacity: 0; transform: translateY(.55em) rotateX(-40deg); transform-origin: 50% 100%;
  transition: opacity .6s var(--sx-ease), transform .7s var(--sx-ease); transition-delay: calc(var(--sx-delay, 0ms) + var(--sx-i, 0) * 55ms); }
.sx-words.sx-in .sx-word { opacity: 1; transform: none; }

/* ---------- images open with a wipe ---------- */
.elementor-widget-image.sx-reveal { opacity: 1; transform: none; }
.elementor-widget-image.sx-reveal .elementor-widget-container { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--sx-ease) var(--sx-delay, 0ms); }
.elementor-widget-image.sx-reveal.sx-in .elementor-widget-container { clip-path: inset(-120px -120px -120px -120px); }

/* ---------- light sweep across buttons ---------- */
.elementor-button, .sx-btn, body.sx #masthead .ast-header-button-1 .ast-custom-button { position: relative; overflow: hidden; isolation: isolate; }
.elementor-button::after, .sx-btn::after, body.sx #masthead .ast-header-button-1 .ast-custom-button::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--sx-ease);
}
.elementor-button:hover::after, .sx-btn:hover::after, body.sx #masthead .ast-header-button-1 .ast-custom-button:hover::after { transform: translateX(120%); }
.elementor-button { transition: transform .25s var(--sx-ease), box-shadow .25s var(--sx-ease) !important; }
.elementor-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(31, 158, 144, .9); }

/* ---------- glow following the pointer on dark sections ---------- */
.sx-glow { position: relative; }
.sx-glow::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(520px circle at var(--sx-gx, 50%) var(--sx-gy, 50%), rgba(31, 158, 144, .16), transparent 60%);
}
.sx-glow:hover::after { opacity: 1; }
.sx-glow > * { position: relative; z-index: 1; }

/* ---------- inner pages: navy band with the particle network ---------- */
body.sx-overlay:not(.sx-home) [data-elementor-type="wp-page"] > .e-con:first-child {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 55% 80% at 80% 30%, rgba(31, 158, 144, .22), transparent 65%),
              radial-gradient(ellipse 45% 70% at 10% 90%, rgba(46, 110, 190, .2), transparent 60%),
              linear-gradient(165deg, #04121F 0%, var(--sx-deep) 50%, var(--sx-navy) 100%) !important;
}
body.sx-overlay:not(.sx-home) [data-elementor-type="wp-page"] > .e-con:first-child::before,
body.sx-overlay:not(.sx-home) [data-elementor-type="wp-page"] > .e-con:first-child > .elementor-background-overlay { display: none !important; }
.sx-band-field { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; }
body.sx-overlay:not(.sx-home) [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner { position: relative; z-index: 1; }
body.sx-overlay:not(.sx-home) [data-elementor-type="wp-page"] > .e-con:first-child .elementor-heading-title { text-shadow: 0 2px 24px rgba(4, 18, 31, .6); }

@media (prefers-reduced-motion: reduce) {
  .sx-words .sx-word { transform: none !important; transition: opacity .5s ease calc(var(--sx-delay, 0ms) + var(--sx-i, 0) * 40ms) !important; }
  .elementor-widget-image.sx-reveal .elementor-widget-container { clip-path: none !important; transition: none !important; }
  .elementor-button::after, .sx-btn::after { display: none; }
}
body.sx-overlay:not(.sx-home) [data-elementor-type="wp-page"] > .e-con:first-child { padding-top: calc(var(--sx-head-top) + 110px) !important; padding-bottom: 72px !important; min-height: 420px; }

/* ---------- case-study screenshots: browser window tilting into place (3D) ---------- */
.sx-shot { perspective: 1400px; }
.sx-shot .elementor-widget-container {
  position: relative; padding-top: 34px; background: #0B1F33; border-radius: 18px !important; overflow: hidden;
  border: 1px solid rgba(11, 42, 74, .12); box-shadow: 0 50px 90px -50px rgba(6, 24, 43, .75) !important;
  transform-origin: 50% 0; transform: rotateX(14deg) scale(.94); transition: transform 1.1s var(--sx-ease) var(--sx-delay, 0ms), clip-path 1s var(--sx-ease) !important;
}
.sx-shot.sx-in .elementor-widget-container { transform: none; }
.sx-shot .elementor-widget-container::before {
  content: ""; position: absolute; top: 12px; inset-inline-start: 16px; width: 10px; height: 10px; border-radius: 50%;
  background: #FF5F57; box-shadow: 16px 0 0 #FEBC2E, 32px 0 0 #28C840;
}
[dir="rtl"] .sx-shot .elementor-widget-container::before { box-shadow: -16px 0 0 #FEBC2E, -32px 0 0 #28C840; }
.sx-shot img { border-radius: 0 !important; display: block; }
.sx-shot:hover img { transform: none !important; }
@media (prefers-reduced-motion: reduce) { .sx-shot .elementor-widget-container { transform: none !important; } }

/* tablets and phones: the scene sits under the text and button instead of behind them */
@media (max-width: 1024px) {
  body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child { padding-bottom: calc(34vh + 32px) !important; }
  .sx-hero-stage { height: 34vh; opacity: .75; }
}


/* ---------- browser frame shared by the home showcase and the /work/ rows ---------- */
.sx-frame {
  position: relative; border-radius: 18px; background: #fff; overflow: visible;
  border: 1px solid rgba(11, 42, 74, .1); box-shadow: 0 40px 80px -46px rgba(6, 24, 43, .55), 0 2px 6px rgba(6, 24, 43, .06);
  transform: perspective(1400px) rotateX(var(--sx-rx, 0deg)) rotateY(var(--sx-ry, 0deg)); transform-style: preserve-3d;
  transition: transform .5s var(--sx-ease);
}
.sx-frame__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-bottom: 1px solid rgba(11, 42, 74, .08); background: #F6F9FC; border-radius: 18px 18px 0 0; }
.sx-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.sx-frame__bar i:nth-child(2) { background: #FEBC2E; }
.sx-frame__bar i:nth-child(3) { background: #28C840; }
.sx-frame__url { margin-inline-start: 12px; padding: 4px 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(11, 42, 74, .08); color: #6B7F93; font-size: 12px; direction: ltr; }
.sx-frame__screen { position: relative; overflow: hidden; border-radius: 0 0 18px 18px; background: #F3F7FB; }
.sx-frame__screen img { display: block; width: 100%; height: auto; }
.sx-frame__screen .elementor-widget-image, .sx-frame__screen .elementor-widget-container { margin: 0 !important; width: 100% !important; border-radius: 0 !important; box-shadow: none !important; clip-path: none !important; transform: none !important; padding: 0 !important; background: none !important; border: 0 !important; }
.sx-frame__screen .elementor-widget-container::before { display: none !important; }
.sx-frame__screen img { border-radius: 0 !important; transform: none !important; }

/* ---------- floating stat chips (3D layers over the frame) ---------- */
.sx-chips { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; }
.sx-chip {
  position: absolute; display: grid; gap: 2px; min-width: 132px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 22px 44px -22px rgba(6, 24, 43, .45), 0 0 0 1px rgba(11, 42, 74, .05);
  opacity: 0; transform: translate3d(0, 18px, 40px) scale(.94);
  transition: opacity .6s var(--sx-ease) calc(var(--d, 0) * 1ms), transform .8s var(--sx-ease) calc(var(--d, 0) * 1ms);
}
.sx-chip__label { color: #5B6E82; font-size: 12px; font-weight: 700; }
.sx-chip__value { color: var(--sx-navy); font-size: 26px; font-weight: 800; line-height: 1.2; font-feature-settings: "tnum"; }
.sx-chip--0 { top: 14%; inset-inline-start: -44px; --d: 150; --z: 70px; }
.sx-chip--1 { bottom: 16%; inset-inline-start: -30px; --d: 350; --z: 50px; }
.sx-chip--2 { top: 9%; inset-inline-end: -36px; --d: 500; --z: 90px; }
.sx-chip--chart { bottom: -28px; inset-inline-end: -34px; min-width: 210px; --d: 650; --z: 110px; }
.sx-live .sx-chip, .sx-chips.is-active.sx-live .sx-chip { opacity: 1; transform: translate3d(0, 0, var(--z, 60px)); }
.sx-live .sx-chip { animation: sx-bob 6s ease-in-out calc(var(--d, 0) * 1ms + 900ms) infinite; }
@keyframes sx-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* charts inside the chart chip */
.sx-chart { margin-top: 6px; }
.sx-chart--bars .sx-chart { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.sx-bar { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, var(--sx-teal), var(--sx-teal-soft)); transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--sx-ease) calc(700ms + var(--i) * 80ms); }
.sx-live .sx-bar { transform: scaleY(1); }
.sx-chart--donut .sx-chart { position: relative; width: 84px; height: 84px; }
.sx-chart--donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sx-donut__track { fill: none; stroke: rgba(11, 42, 74, .08); stroke-width: 8; }
.sx-donut__arc { fill: none; stroke: var(--sx-teal); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 0 var(--full); transition: stroke-dasharray 1.3s var(--sx-ease) .7s; }
.sx-live .sx-donut__arc { stroke-dasharray: var(--arc) var(--full); }
.sx-donut__value { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sx-navy); font-size: 17px; font-weight: 800; }
.sx-chart--steps .sx-chart { display: flex; gap: 6px; }
.sx-step { flex: 1; display: grid; justify-items: center; gap: 4px; }
.sx-step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; color: #fff; background: rgba(11, 42, 74, .2); transition: background .4s calc(700ms + var(--i) * 350ms), transform .4s var(--sx-ease) calc(700ms + var(--i) * 350ms); }
.sx-step em { font-style: normal; font-size: 11px; color: #5B6E82; }
.sx-live .sx-step b { background: var(--sx-teal); transform: scale(1.08); }
.sx-chart--typing .sx-chart { display: grid; gap: 8px; }
.sx-typing { display: inline-flex; gap: 5px; }
.sx-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sx-teal); animation: sx-dot 1.2s ease-in-out infinite; }
.sx-typing i:nth-child(2) { animation-delay: .15s; } .sx-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sx-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.sx-typing__lines { display: grid; gap: 6px; }
.sx-typing__lines i { height: 7px; border-radius: 4px; background: rgba(11, 42, 74, .12); transform-origin: right; transform: scaleX(0); transition: transform 1.1s var(--sx-ease); }
[dir="ltr"] .sx-typing__lines i { transform-origin: left; }
.sx-typing__lines i:nth-child(1) { width: 100%; transition-delay: .8s; } .sx-typing__lines i:nth-child(2) { width: 82%; transition-delay: 1.4s; } .sx-typing__lines i:nth-child(3) { width: 58%; transition-delay: 2s; }
.sx-live .sx-typing__lines i { transform: scaleX(1); }

/* ---------- home: tabbed showcase ---------- */
#work .sx-replaced { display: none !important; }
.sx-showcase { width: 100%; max-width: 1240px; margin: 36px auto 0; }
.sx-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.sx-tab {
  position: relative; overflow: hidden; padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(11, 42, 74, .12); background: rgba(255, 255, 255, .7); color: var(--sx-navy);
  font: inherit; font-size: 15px; font-weight: 700; transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.sx-tab:hover { border-color: rgba(31, 158, 144, .5); }
.sx-tab.is-active { background: var(--sx-navy); color: #fff; border-color: var(--sx-navy); box-shadow: 0 12px 28px -14px rgba(6, 24, 43, .7); }
.sx-tab__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sx-teal-soft); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .sx-tab__bar { transform-origin: left; }
.sx-showcase.sx-autoplay .sx-tab.is-active .sx-tab__bar { animation: sx-tabbar 7s linear forwards; }
@keyframes sx-tabbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sx-showcase__body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.sx-showcase__stage { padding: 30px 48px 46px; }
.sx-showcase .sx-frame__screen { aspect-ratio: 16 / 10; }
.sx-shot-img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.03); transition: opacity .7s var(--sx-ease), transform 1s var(--sx-ease); }
.sx-shot-img.is-active { opacity: 1; transform: none; }
.sx-showcase .sx-chips { opacity: 0; visibility: hidden; transition: opacity .3s; }
.sx-showcase .sx-chips.is-active { opacity: 1; visibility: visible; }
.sx-showcase__info { position: relative; display: grid; }
.sx-showcase__panel { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s var(--sx-ease), transform .6s var(--sx-ease); }
.sx-showcase__panel.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.sx-showcase__panel h3 { margin: 0 0 14px; color: var(--sx-navy); font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; line-height: 1.5; }
.sx-showcase__panel p { margin: 0 0 26px; color: #4A5E73; font-size: 17px; line-height: 2; }

/* ---------- /work/: alternating feature rows ---------- */
.sx-features { display: flex !important; flex-direction: column; gap: 120px !important; width: 100% !important; }
.sx-feature { display: grid !important; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; align-items: center; width: 100% !important; max-width: none !important; padding: 0 !important; }
.sx-feature:nth-child(even) .sx-feature__stage { order: 2; }
.sx-feature__stage { padding: 30px 46px 40px; perspective: 1400px; }
.sx-feature .sx-frame { transform: perspective(1400px) rotateX(calc(var(--sx-rx, 0deg) + 16deg)) rotateY(var(--sx-ry, 0deg)) scale(.94); opacity: .2; transition: transform 1.1s var(--sx-ease), opacity .8s var(--sx-ease); }
.sx-feature.sx-in .sx-frame { transform: perspective(1400px) rotateX(var(--sx-rx, 0deg)) rotateY(var(--sx-ry, 0deg)); opacity: 1; }
.sx-feature__text > .elementor-widget { width: 100% !important; margin: 0 0 12px !important; }
.sx-feature__num { display: block; margin-bottom: 14px; color: rgba(31, 158, 144, .35); font-size: 64px; font-weight: 900; line-height: 1; font-feature-settings: "tnum"; }
.sx-feature__text .elementor-heading-title { font-size: clamp(24px, 2.2vw, 34px) !important; line-height: 1.5 !important; }
.sx-feature__text .elementor-button { border-radius: 999px !important; }

@media (max-width: 1024px) {
  .sx-showcase__body, .sx-feature { grid-template-columns: 1fr; gap: 28px; }
  .sx-feature:nth-child(even) .sx-feature__stage { order: 0; }
  .sx-showcase__stage, .sx-feature__stage { padding: 20px 18px 36px; }
  .sx-features { gap: 80px !important; }
  .sx-chip { min-width: 0; padding: 8px 12px; border-radius: 12px; }
  .sx-chip__value { font-size: 19px; }
  .sx-chip--0 { inset-inline-start: -8px; } .sx-chip--1 { inset-inline-start: -6px; } .sx-chip--2 { display: none; }
  .sx-chip--chart { inset-inline-end: -6px; bottom: -22px; min-width: 150px; }
  .sx-chart--bars .sx-chart { height: 42px; } .sx-chart--donut .sx-chart { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-frame, .sx-feature .sx-frame, .sx-chip, .sx-bar, .sx-donut__arc, .sx-step b, .sx-typing__lines i, .sx-shot-img, .sx-showcase__panel { transition: none !important; animation: none !important; }
  .sx-feature .sx-frame { transform: none; opacity: 1; }
}
/* rows sit on the page itself, not in the template's white boxes; even rows mirror their columns */
.sx-feature { background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.sx-feature::before, .sx-feature::after { display: none !important; }
.sx-feature:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
@media (max-width: 1024px) { .sx-feature:nth-child(even) { grid-template-columns: 1fr; } }
.sx-frame__url { min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .sx-frame__bar { height: 30px; padding: 0 12px; } .sx-frame__url { font-size: 10px; padding: 2px 10px; } }

/* ---------- article images: one size and ratio on the blog list and the home articles section ---------- */
#blog .elementor-widget-image img, .ast-article-post .post-thumb img { width: 100% !important; max-width: none !important; height: auto !important; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; display: block; }
#blog .elementor-widget-image, #blog .elementor-widget-image .elementor-widget-container,
.ast-article-post .post-thumb, .ast-article-post .post-thumb-img-content { width: 100% !important; max-width: none !important; overflow: hidden; border-radius: 18px; }
.ast-article-post .post-thumb img, #blog .elementor-widget-image img { transition: transform .6s var(--sx-ease); }
.ast-article-post:hover .post-thumb img, #blog .elementor-widget-image:hover img { transform: scale(1.04); }
#blog .elementor-widget-image a, .ast-article-post .post-thumb a { display: block; width: 100%; }
/* phones: the particle logo forms above the heading, inside the first screen */
@media (max-width: 767px) {
  body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child { padding-top: calc(var(--sx-head-top) + 70px + 30vh) !important; padding-bottom: 56px !important; }
  body.sx-home [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner { min-height: 0; }
  .sx-hero-stage { inset: calc(var(--sx-head-top) + 64px) 0 auto 0; height: 32vh; opacity: 1; }
}
