/* Workar Featured Work — cinematic selected-project showcase. */
.workar-featured {
  --wf-bg: #111315;
  --wf-ivory: #f2f0ea;
  --wf-champagne: #d5c8b0;
  --wf-teal: #00d7c8;
  --wf-muted: #a6a59f;
  --wf-line: rgba(213, 200, 176, .16);
  --wf-font: var(--e-global-typography-text-font-family, inherit);
  position: relative;
  display: block;
  width: 100%;
  overflow: visible;
  isolation: isolate;
  color: var(--wf-ivory);
  background: var(--wf-bg);
  font-family: var(--wf-font);
  direction: ltr;
  padding-block: clamp(44px, 5vw, 72px);
}

.workar-featured,
.workar-featured *,
.workar-featured *::before,
.workar-featured *::after {
  box-sizing: border-box;
}

.workar-featured img {
  max-width: 100%;
}

.workar-featured a {
  color: inherit;
  text-decoration: none;
}

.workar-featured button {
  font: inherit;
  color: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.workar-featured__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, .98fr) minmax(420px, 1.35fr) minmax(300px, .92fr);
  grid-template-areas: "rail stage intro";
  align-items: center;
  gap: clamp(18px, 1.55vw, 26px);
  width: min(100%, 1640px);
  min-height: 360px;
  margin-inline: auto;
  padding: 0 clamp(22px, 3.2vw, 54px);
}

.workar-featured__intro {
  grid-area: intro;
  position: relative;
  z-index: 2;
  min-width: 0;
  text-align: right;
  direction: rtl;
  transform: translateY(-20px);
}

.workar-featured__eyebrow {
  align-self: flex-end;
  margin: 0 0 12px;
}

.workar-featured__heading {
  margin: 0;
  color: var(--wf-ivory);
  font-family: var(--wf-font);
  font-size: clamp(28px, 2.65vw, 42px);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.workar-featured__description {
  max-width: 460px;
  margin: 12px 0 0 auto;
  color: rgba(242, 240, 234, .77);
  font-size: clamp(11px, .92vw, 14px);
  font-weight: 400;
  line-height: 1.9;
}

.workar-featured__extended-description {
  max-width: 460px;
  margin: 10px 0 0 auto;
  color: rgba(242, 240, 234, .62);
  font-size: clamp(10px, .82vw, 12.5px);
  font-weight: 400;
  line-height: 2;
  text-align: right;
  white-space: pre-line;
}

.workar-featured__proof-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.25vw, 22px);
  margin-top: clamp(20px, 2.2vw, 32px);
  direction: ltr;
}

.workar-featured__stat {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  direction: ltr;
  white-space: nowrap;
}

.workar-featured__stat strong {
  color: var(--wf-champagne);
  font: 700 clamp(30px, 3vw, 45px)/.95 Arial, sans-serif;
  letter-spacing: -.055em;
}

.workar-featured__stat span {
  max-width: 76px;
  color: var(--wf-champagne);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
  direction: rtl;
  text-align: right;
  white-space: normal;
}

.workar-featured__stage {
  grid-area: stage;
  position: relative;
  z-index: 1;
  min-width: 0;
  height: auto;
  aspect-ratio: 2400 / 1610;
  isolation: isolate;
}

/* Authentic PSDT hardware shell. Project screenshots remain live Elementor media. */
.workar-featured__device-mockup {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  isolation: isolate;
}

.workar-featured__device-display {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0a0e13;
  isolation: isolate;
}
.workar-featured__desktop-media {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.workar-featured__screen-scroll {
  position: relative;
  display: block;
  flex: 1 1 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #0a0e13;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

.workar-featured__screen-scroll::-webkit-scrollbar {
  display: none;
}

.workar-featured__screen-scroll.is-scroll-enabled {
  overflow-x: hidden;
  overflow-y: auto;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}

.workar-featured__screen-scroll.is-scroll-enabled.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.workar-featured__screen-scroll.is-scroll-enabled:focus-visible {
  outline: 2px solid rgba(0,215,200,.78);
  outline-offset: -3px;
}

.workar-featured__screen-scroll.is-scroll-enabled .workar-featured__device-image {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: top left;
}

.workar-featured__screen-scroll.is-scroll-enabled .workar-featured__device-image {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.workar-featured__monitor-caption {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 18%;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 22px;
  padding: 2px 10px;
  overflow: hidden;
  border-top: 1px solid rgba(242,240,234,.06);
  color: rgba(242,240,234,.88);
  background: #0a0e13;
  direction: rtl;
  text-align: center;
  font-family: var(--wf-font);
  font-size: clamp(6px, .62vw, 10px);
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
}
.workar-featured__monitor-caption[hidden] { display: none !important; }

/* Coordinates are mapped to the original PSDT display openings (2400 x 1610 frame). */
.workar-featured__device-display--laptop {
  left: 18.86%;
  top: 18.47%;
  width: 62.50%;
  height: 58.83%;
  border-radius: 0.35% / 0.55%;
}

.workar-featured__device-display--phone {
  left: 10.02%;
  top: 36.83%;
  width: 15.10%;
  height: 50.91%;
  z-index: 2;
  border-radius: 8.5% / 3.6%;
}

.workar-featured__screen-scroll--phone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.workar-featured__device-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.workar-featured__device-display--phone .workar-featured__device-image.is-derived-preview {
  object-position: center 18%;
}

.workar-featured__device-image.is-hidden {
  display: none;
}

/* Every project image fills its physical display opening; legacy screenshot switches remain stored for compatibility. */
.workar-featured__device-display.has-image .workar-featured__device-placeholder {
  display: none;
}

.workar-featured__device-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 8%;
  color: #f2f0ea;
  background: radial-gradient(ellipse at 70% 25%, #1b2b3b, #0a0e13 68%);
  direction: rtl;
}

.workar-featured__device-placeholder > span {
  color: #d5c8b0;
  font: 600 clamp(5px, .55vw, 9px)/1.3 Arial, sans-serif;
  letter-spacing: .12em;
}

.workar-featured__device-placeholder strong {
  color: #f2f0ea;
  font: 700 clamp(12px, 1.2vw, 20px)/1.25 IRANSansX, IRANSans, Tahoma, sans-serif;
}

.workar-featured__device-placeholder small {
  color: rgba(242,240,234,.72);
  font: 500 clamp(6px, .62vw, 10px)/1.6 IRANSansX, IRANSans, Tahoma, sans-serif;
}

.workar-featured__device-placeholder.is-phone {
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12%;
  text-align: center;
  border-radius: inherit;
}

.workar-featured__device-placeholder.is-phone > span {
  font: 700 clamp(12px, 1.05vw, 18px)/1 Georgia, serif;
  letter-spacing: 0;
}

.workar-featured__device-placeholder.is-phone strong {
  font-size: clamp(7px, .65vw, 11px);
}

.workar-featured__device-placeholder.is-phone small {
  font-size: clamp(5px, .48vw, 8px);
}

.workar-featured__device-copy {
  position: relative;
  inset-block: auto;
  right: auto;
  z-index: 2;
  display: none;
  width: 42%;
  flex: 0 0 42%;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(5px, .7vw, 11px);
  padding: clamp(8px, 1.15vw, 18px);
  color: var(--wf-ivory);
  background: #111315;
  border-left: 1px solid rgba(213,200,176,.14);
  direction: rtl;
  text-align: right;
}

.workar-featured__device-display--laptop.has-side-copy .workar-featured__desktop-media {
  flex-direction: row;
}
.workar-featured__device-display--laptop.has-side-copy .workar-featured__screen-scroll--desktop {
  flex: 0 0 58%;
  width: 58%;
  height: 100%;
}
.workar-featured__device-display--laptop.has-side-copy .workar-featured__screen-scroll--desktop:not(.is-scroll-enabled) .workar-featured__device-image,
.workar-featured__device-display--laptop.has-side-copy .workar-featured__screen-scroll--desktop:not(.is-scroll-enabled) .workar-featured__device-placeholder {
  width: 100%;
}
.workar-featured__device-display--laptop.has-side-copy .workar-featured__device-copy {
  display: flex;
}

.workar-featured__device-copy > span {
  color: var(--wf-champagne);
  font: 600 clamp(5px, .48vw, 8px)/1.3 Arial, sans-serif;
  letter-spacing: .12em;
  direction: ltr;
}

.workar-featured__device-copy strong {
  color: var(--wf-ivory);
  font: 700 clamp(8px, .86vw, 14px)/1.5 var(--wf-font);
}

.workar-featured__device-copy small {
  color: rgba(242,240,234,.72);
  font: 400 clamp(6px, .62vw, 10px)/1.65 var(--wf-font);
}

.workar-featured__device-frame {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.workar-featured__rail {
  grid-area: rail;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  direction: rtl;
}

.workar-featured__project-viewport {
  position: relative;
  width: 100%;
  max-width: none;
  height: 304px;
  padding-inline: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  direction: rtl;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  cursor: grab;
}

.workar-featured__project-viewport::-webkit-scrollbar {
  display: none;
}

.workar-featured__project-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.workar-featured__project-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  transform: none;
  will-change: auto;
}

.workar-featured__project-set {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding-bottom: 4px;
}

.workar-featured__project {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0,1fr) 22px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 7px 9px;
  border: 1px solid rgba(213,200,176,.22);
  border-radius: var(--workar-buttons-radius, 5px);
  color: var(--wf-ivory);
  background: rgba(242,240,234,.025);
  direction: ltr;
  text-align: right;
  cursor: pointer;
  transition: border-color .24s ease, background .24s ease, box-shadow .24s ease, transform .24s ease;
  appearance: none;
  -webkit-appearance: none;
}

.workar-featured__project:hover {
  background: rgba(213,200,176,.08);
  border-color: rgba(213,200,176,.42);
  transform: translateX(2px);
}

.workar-featured__project.is-active {
  border-color: rgba(0,215,200,.58);
  background: linear-gradient(105deg, rgba(0,215,200,.085), rgba(0,215,200,.018) 68%, transparent);
  box-shadow: 0 0 18px rgba(0,215,200,.11), inset 0 0 14px rgba(0,215,200,.035);
}

.workar-featured__project-thumb {
  grid-column: 1;
  position: relative;
  display: block;
  width: 84px;
  height: 47px;
  overflow: hidden;
  border: 1px solid rgba(213,200,176,.16);
  border-radius: 7px;
  background: linear-gradient(135deg, #18242c, #4d3a29 55%, #090d10);
}

.workar-featured__project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity .22s ease;
}

.workar-featured__thumb-fallback {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(145deg, #101d22, #5d4934 58%, #111211);
}

.workar-featured__project-thumb[data-style="interior"] .workar-featured__thumb-fallback {
  background: repeating-linear-gradient(90deg, #1e1711 0 8px, #59442f 9px 13px, #241b12 14px 23px);
}

.workar-featured__project-thumb[data-style="pet"] .workar-featured__thumb-fallback {
  background: radial-gradient(circle at 68% 38%, #c6a374 0 16%, transparent 17%), linear-gradient(135deg, #152d24, #536044 58%, #10140f);
}

.workar-featured__project-thumb[data-style="technology"] .workar-featured__thumb-fallback {
  background: radial-gradient(circle at 50% 50%, rgba(0,215,200,.35), transparent 42%), linear-gradient(135deg, #071725, #102e42 58%, #06090e);
}

.workar-featured__project-thumb[data-style="hospitality"] .workar-featured__thumb-fallback {
  background: linear-gradient(135deg, #17201a, #8a704f 55%, #11100d);
}

.workar-featured__project-copy {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
  direction: rtl;
  text-align: right;
}

.workar-featured__project-copy strong {
  display: block;
  overflow: hidden;
  color: #f2f0ea;
  font: 700 12.5px/1.45 var(--wf-font);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workar-featured__project-copy small {
  display: block;
  overflow: hidden;
  color: rgba(242,240,234,.69);
  font: 400 10.5px/1.65 var(--wf-font);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workar-featured__project-arrow {
  grid-column: 3;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: rgba(213,200,176,.68);

  opacity: .68;
  transition: color .24s ease, transform .24s ease, opacity .24s ease;
}
.workar-featured__project-arrow .workar-ui-icon { width: 17px; height: 17px; }

.workar-featured__project.is-active .workar-featured__project-arrow,
.workar-featured__project:hover .workar-featured__project-arrow {
  color: var(--wf-teal);
  opacity: 1;
  transform: translateX(2px);
}

.workar-featured__project:focus-visible {
  outline: 2px solid rgba(0,215,200,.78);
  outline-offset: 3px;
}

.workar-featured__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.workar-featured__editor-empty {
  padding: 28px;
  border: 1px dashed rgba(213,200,176,.3);
  border-radius: 12px;
  color: var(--wf-muted);
  background: #090b0d;
  text-align: center;
  font-family: var(--wf-font);
}


.workar-featured.is-editor-preview .workar-featured__project-viewport {
  height: auto;
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.workar-featured.is-editor-preview .workar-featured__project-track {
  animation: none;
}

.workar-featured.is-editor-preview .workar-featured__project-set.is-clone {
  display: none;
}

@media (max-width: 1120px) {
  .workar-featured__inner {
    grid-template-columns: minmax(270px, 1fr) minmax(360px, 1.35fr) minmax(245px, .92fr);
    grid-template-areas: "rail stage intro";
    gap: 14px;
    padding-inline: 22px;
  }

  .workar-featured__project-viewport { height: 280px; }
  .workar-featured__project {
    grid-template-columns: 76px minmax(0,1fr) 20px;
    gap: 9px;
    min-height: 60px;
    padding-inline: 7px;
  }
  .workar-featured__project-thumb { width: 76px; height: 42px; }
  .workar-featured__project-copy strong { font-size: 11.5px; }
  .workar-featured__project-copy small { font-size: 9.5px; }
}

@media (max-width: 960px) {
  .workar-featured__intro { transform: none; }
  .workar-featured__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .98fr);
    grid-template-areas:
      "stage intro"
      "rail rail";
    gap: 18px 22px;
    padding-block: 0;
  }

  .workar-featured__rail {
    width: 100%;
    margin-top: 6px;
  }

  .workar-featured__project-viewport {
    height: 260px;
    max-width: 720px;
    margin-inline: auto;
  }

  .workar-featured__project {
    grid-template-columns: 80px minmax(0,1fr) 20px;
    min-height: 60px;
  }

  .workar-featured__project-thumb { width: 80px; height: 44px; }
}

@media (max-width: 620px) {
  .workar-featured {
    padding-block: 38px;
  }

  .workar-featured__inner {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    grid-template-areas:
      "intro"
      "stage"
      "rail";
    gap: 14px;
    min-height: 0;
    padding: 0 18px;
  }

  .workar-featured__intro { padding-inline: 2px; }
  .workar-featured__eyebrow { margin-bottom: 8px; }
  .workar-featured__heading { font-size: clamp(26px, 7.2vw, 34px); line-height: 1.35; }
  .workar-featured__description { margin-top: 8px; font-size: 11px; line-height: 1.8; }
  .workar-featured__extended-description { margin-top: 7px; font-size: 10px; line-height: 1.8; }
  .workar-featured__proof-row { justify-content: flex-end; margin-top: 16px; gap: 12px; }
  .workar-featured__stat strong { font-size: 31px; }
  .workar-featured__stat span { font-size: 10px; }
  .workar-featured__stage { margin: 0 -6px; }
  .workar-featured__rail { display: flex; width: 100%; margin-top: 0; }
  .workar-featured__project-viewport { width: 100%; height: 246px; }
  .workar-featured__project { grid-template-columns: 76px minmax(0,1fr) 20px; min-height: 58px; padding: 5px 7px; }
  .workar-featured__project-thumb { width: 76px; height: 40px; }
  .workar-featured__project-copy strong { font-size: 11.5px; }
  .workar-featured__project-copy small { font-size: 9.5px; }
  .workar-featured__device-copy { padding: 6px; gap: 4px; }
  .workar-featured__monitor-caption { font-size: 7px; min-height: 18px; padding-inline: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .workar-featured__project-viewport { overflow-y: auto; }
  .workar-featured__project-track { transform: none; }
  .workar-featured__project-set.is-clone { display: none; }
  .workar-featured *,
  .workar-featured *::before,
  .workar-featured *::after {
    scroll-behavior: auto;
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
  }
}
